|
|
|
|
@@ -8,6 +8,7 @@ import { I18nService } from "@bitwarden/common/platform/abstractions/i18n.servic
|
|
|
|
|
import { PlatformUtilsService } from "@bitwarden/common/platform/abstractions/platform-utils.service";
|
|
|
|
|
|
|
|
|
|
import { ButtonModule } from "../button";
|
|
|
|
|
import { Icon } from "../icon";
|
|
|
|
|
import { LockIcon } from "../icon/icons";
|
|
|
|
|
import { I18nMockService } from "../utils/i18n-mock.service";
|
|
|
|
|
|
|
|
|
|
@@ -18,6 +19,23 @@ class MockPlatformUtilsService implements Partial<PlatformUtilsService> {
|
|
|
|
|
getClientType = () => ClientType.Web;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
type StoryArgs = Pick<
|
|
|
|
|
AnonLayoutComponent,
|
|
|
|
|
| "title"
|
|
|
|
|
| "subtitle"
|
|
|
|
|
| "showReadonlyHostname"
|
|
|
|
|
| "hideCardWrapper"
|
|
|
|
|
| "hideIcon"
|
|
|
|
|
| "hideLogo"
|
|
|
|
|
| "hideFooter"
|
|
|
|
|
| "maxWidth"
|
|
|
|
|
> & {
|
|
|
|
|
contentLength: "normal" | "long" | "thin";
|
|
|
|
|
showSecondary: boolean;
|
|
|
|
|
useDefaultIcon: boolean;
|
|
|
|
|
icon: Icon;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
export default {
|
|
|
|
|
title: "Component Library/Anon Layout",
|
|
|
|
|
component: AnonLayoutComponent,
|
|
|
|
|
@@ -31,12 +49,11 @@ export default {
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
provide: I18nService,
|
|
|
|
|
useFactory: () => {
|
|
|
|
|
return new I18nMockService({
|
|
|
|
|
useFactory: () =>
|
|
|
|
|
new I18nMockService({
|
|
|
|
|
accessing: "Accessing",
|
|
|
|
|
appLogoLabel: "app logo label",
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
}),
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
provide: EnvironmentService,
|
|
|
|
|
@@ -55,196 +72,179 @@ export default {
|
|
|
|
|
],
|
|
|
|
|
}),
|
|
|
|
|
],
|
|
|
|
|
|
|
|
|
|
render: (args: StoryArgs) => {
|
|
|
|
|
const { useDefaultIcon, icon, ...rest } = args;
|
|
|
|
|
return {
|
|
|
|
|
props: {
|
|
|
|
|
...rest,
|
|
|
|
|
icon: useDefaultIcon ? null : icon,
|
|
|
|
|
},
|
|
|
|
|
template: `
|
|
|
|
|
<auth-anon-layout
|
|
|
|
|
[title]="title"
|
|
|
|
|
[subtitle]="subtitle"
|
|
|
|
|
[icon]="icon"
|
|
|
|
|
[showReadonlyHostname]="showReadonlyHostname"
|
|
|
|
|
[maxWidth]="maxWidth"
|
|
|
|
|
[hideCardWrapper]="hideCardWrapper"
|
|
|
|
|
[hideIcon]="hideIcon"
|
|
|
|
|
[hideLogo]="hideLogo"
|
|
|
|
|
[hideFooter]="hideFooter"
|
|
|
|
|
>
|
|
|
|
|
<ng-container [ngSwitch]="contentLength">
|
|
|
|
|
<div *ngSwitchCase="'thin'" class="tw-text-center"> <div class="tw-font-bold">Thin Content</div></div>
|
|
|
|
|
<div *ngSwitchCase="'long'">
|
|
|
|
|
<div class="tw-font-bold">Long Content</div>
|
|
|
|
|
<div>Sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium doloremque laudantium, totam rem aperiam, eaque ipsa quae ab illo inventore veritatis et quasi architecto beatae vitae dicta sunt explicabo. Nemo enim ipsam voluptatem quia voluptas sit aspernatur aut odit aut fugit, sed quia consequuntur magni dolores eos qui ratione voluptatem sequi nesciunt. Neque porro quisquam est, qui dolorem ipsum quia dolor sit amet, consectetur, adipisci velit, sed quia non numquam eius modi tempora incidunt ut labore et dolore magnam aliquam quaerat voluptatem. Ut enim ad minima veniam, quis nostrum exercitationem ullam corporis suscipit laboriosam, nisi ut aliquid ex ea commodi consequatur? Quis autem vel eum iure reprehenderit qui in ea voluptate velit esse quam nihil molestiae consequatur, vel illum qui dolorem eum fugiat quo voluptas nulla pariatur?</div>
|
|
|
|
|
<div>Sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium doloremque laudantium, totam rem aperiam, eaque ipsa quae ab illo inventore veritatis et quasi architecto beatae vitae dicta sunt explicabo. Nemo enim ipsam voluptatem quia voluptas sit aspernatur aut odit aut fugit, sed quia consequuntur magni dolores eos qui ratione voluptatem sequi nesciunt. Neque porro quisquam est, qui dolorem ipsum quia dolor sit amet, consectetur, adipisci velit, sed quia non numquam eius modi tempora incidunt ut labore et dolore magnam aliquam quaerat voluptatem. Ut enim ad minima veniam, quis nostrum exercitationem ullam corporis suscipit laboriosam, nisi ut aliquid ex ea commodi consequatur? Quis autem vel eum iure reprehenderit qui in ea voluptate velit esse quam nihil molestiae consequatur, vel illum qui dolorem eum fugiat quo voluptas nulla pariatur?</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div *ngSwitchDefault>
|
|
|
|
|
<div class="tw-font-bold">Normal Content</div>
|
|
|
|
|
<div>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. </div>
|
|
|
|
|
</div>
|
|
|
|
|
</ng-container>
|
|
|
|
|
|
|
|
|
|
<div *ngIf="showSecondary" slot="secondary" class="tw-text-center">
|
|
|
|
|
<div class="tw-font-bold tw-mb-2">
|
|
|
|
|
Secondary Projected Content (optional)
|
|
|
|
|
</div>
|
|
|
|
|
<button bitButton>Perform Action</button>
|
|
|
|
|
</div>
|
|
|
|
|
</auth-anon-layout>
|
|
|
|
|
`,
|
|
|
|
|
};
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
argTypes: {
|
|
|
|
|
title: { control: "text" },
|
|
|
|
|
subtitle: { control: "text" },
|
|
|
|
|
|
|
|
|
|
icon: { control: false, table: { disable: true } },
|
|
|
|
|
useDefaultIcon: {
|
|
|
|
|
control: false,
|
|
|
|
|
table: { disable: true },
|
|
|
|
|
description: "If true, passes null so component falls back to its built-in icon",
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
showReadonlyHostname: { control: "boolean" },
|
|
|
|
|
maxWidth: {
|
|
|
|
|
control: "select",
|
|
|
|
|
options: ["md", "lg", "xl", "2xl", "3xl"],
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
hideCardWrapper: { control: "boolean" },
|
|
|
|
|
hideIcon: { control: "boolean" },
|
|
|
|
|
hideLogo: { control: "boolean" },
|
|
|
|
|
hideFooter: { control: "boolean" },
|
|
|
|
|
|
|
|
|
|
contentLength: {
|
|
|
|
|
control: "radio",
|
|
|
|
|
options: ["normal", "long", "thin"],
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
showSecondary: { control: "boolean" },
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
args: {
|
|
|
|
|
title: "The Page Title",
|
|
|
|
|
subtitle: "The subtitle (optional)",
|
|
|
|
|
showReadonlyHostname: true,
|
|
|
|
|
icon: LockIcon,
|
|
|
|
|
hideLogo: false,
|
|
|
|
|
useDefaultIcon: false,
|
|
|
|
|
showReadonlyHostname: false,
|
|
|
|
|
maxWidth: "md",
|
|
|
|
|
hideCardWrapper: false,
|
|
|
|
|
hideIcon: false,
|
|
|
|
|
hideLogo: false,
|
|
|
|
|
hideFooter: false,
|
|
|
|
|
contentLength: "normal",
|
|
|
|
|
showSecondary: false,
|
|
|
|
|
},
|
|
|
|
|
} as Meta;
|
|
|
|
|
} as Meta<StoryArgs>;
|
|
|
|
|
|
|
|
|
|
type Story = StoryObj<AnonLayoutComponent>;
|
|
|
|
|
type Story = StoryObj<StoryArgs>;
|
|
|
|
|
|
|
|
|
|
export const WithPrimaryContent: Story = {
|
|
|
|
|
render: (args) => ({
|
|
|
|
|
props: args,
|
|
|
|
|
template:
|
|
|
|
|
// Projected content (the <div>) and styling is just a sample and can be replaced with any content/styling.
|
|
|
|
|
`
|
|
|
|
|
<auth-anon-layout [title]="title" [subtitle]="subtitle" [showReadonlyHostname]="showReadonlyHostname" [hideLogo]="hideLogo" >
|
|
|
|
|
<div>
|
|
|
|
|
<div class="tw-font-bold">Primary Projected Content Area (customizable)</div>
|
|
|
|
|
<div>Lorem ipsum dolor sit amet consectetur adipisicing elit. Necessitatibus illum vero, placeat recusandae esse ratione eius minima veniam nemo, quas beatae! Impedit molestiae alias sapiente explicabo. Sapiente corporis ipsa numquam?</div>
|
|
|
|
|
</div>
|
|
|
|
|
</auth-anon-layout>
|
|
|
|
|
`,
|
|
|
|
|
}),
|
|
|
|
|
export const NormalPrimaryContent: Story = {
|
|
|
|
|
args: {
|
|
|
|
|
contentLength: "normal",
|
|
|
|
|
},
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
export const WithSecondaryContent: Story = {
|
|
|
|
|
render: (args) => ({
|
|
|
|
|
props: args,
|
|
|
|
|
template:
|
|
|
|
|
// Projected content (the <div>'s) and styling is just a sample and can be replaced with any content/styling.
|
|
|
|
|
// Notice that slot="secondary" is requred to project any secondary content.
|
|
|
|
|
`
|
|
|
|
|
<auth-anon-layout [title]="title" [subtitle]="subtitle" [showReadonlyHostname]="showReadonlyHostname" [hideLogo]="hideLogo" >
|
|
|
|
|
<div>
|
|
|
|
|
<div class="tw-font-bold">Primary Projected Content Area (customizable)</div>
|
|
|
|
|
<div>Lorem ipsum dolor sit amet consectetur adipisicing elit. Necessitatibus illum vero, placeat recusandae esse ratione eius minima veniam nemo, quas beatae! Impedit molestiae alias sapiente explicabo. Sapiente corporis ipsa numquam?</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div slot="secondary" class="tw-text-center">
|
|
|
|
|
<div class="tw-font-bold tw-mb-2">Secondary Projected Content (optional)</div>
|
|
|
|
|
<button bitButton>Perform Action</button>
|
|
|
|
|
</div>
|
|
|
|
|
</auth-anon-layout>
|
|
|
|
|
`,
|
|
|
|
|
}),
|
|
|
|
|
export const LongPrimaryContent: Story = {
|
|
|
|
|
args: {
|
|
|
|
|
contentLength: "long",
|
|
|
|
|
},
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
export const WithLongContent: Story = {
|
|
|
|
|
render: (args) => ({
|
|
|
|
|
props: args,
|
|
|
|
|
template:
|
|
|
|
|
// Projected content (the <div>'s) and styling is just a sample and can be replaced with any content/styling.
|
|
|
|
|
`
|
|
|
|
|
<auth-anon-layout title="Page Title lorem ipsum dolor consectetur sit amet expedita quod est" subtitle="Subtitle here Lorem ipsum dolor sit amet consectetur adipisicing elit. Expedita, quod est?" [showReadonlyHostname]="showReadonlyHostname" [hideLogo]="hideLogo" >
|
|
|
|
|
<div>
|
|
|
|
|
<div class="tw-font-bold">Primary Projected Content Area (customizable)</div>
|
|
|
|
|
<div>Lorem ipsum dolor sit amet consectetur adipisicing elit. Necessitatibus illum vero, placeat recusandae esse ratione eius minima veniam nemo, quas beatae! Impedit molestiae alias sapiente explicabo. Sapiente corporis ipsa numquam? Lorem ipsum dolor sit amet consectetur adipisicing elit. Lorem ipsum dolor sit amet consectetur adipisicing elit. Lorem ipsum dolor sit amet consectetur adipisicing elit. Lorem ipsum dolor sit amet consectetur adipisicing elit. Lorem ipsum dolor sit amet consectetur adipisicing elit. Lorem ipsum dolor sit amet consectetur adipisicing elit. Lorem ipsum dolor sit amet consectetur adipisicing elit. Lorem ipsum dolor sit amet consectetur adipisicing elit. Lorem ipsum dolor sit amet consectetur adipisicing elit.</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div slot="secondary" class="tw-text-center">
|
|
|
|
|
<div class="tw-font-bold tw-mb-2">Secondary Projected Content (optional)</div>
|
|
|
|
|
<p>Lorem ipsum dolor sit amet consectetur adipisicing elit. Molestias laborum nostrum natus. Lorem ipsum dolor sit amet consectetur adipisicing elit. Molestias laborum nostrum natus. Expedita, quod est? </p>
|
|
|
|
|
<button bitButton>Perform Action</button>
|
|
|
|
|
</div>
|
|
|
|
|
</auth-anon-layout>
|
|
|
|
|
`,
|
|
|
|
|
}),
|
|
|
|
|
export const ThinPrimaryContent: Story = {
|
|
|
|
|
args: {
|
|
|
|
|
contentLength: "thin",
|
|
|
|
|
},
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
export const WithThinPrimaryContent: Story = {
|
|
|
|
|
render: (args) => ({
|
|
|
|
|
props: args,
|
|
|
|
|
template:
|
|
|
|
|
// Projected content (the <div>'s) and styling is just a sample and can be replaced with any content/styling.
|
|
|
|
|
`
|
|
|
|
|
<auth-anon-layout [title]="title" [subtitle]="subtitle" [showReadonlyHostname]="showReadonlyHostname" [hideLogo]="hideLogo" >
|
|
|
|
|
<div class="tw-text-center">Lorem ipsum</div>
|
|
|
|
|
|
|
|
|
|
<div slot="secondary" class="tw-text-center">
|
|
|
|
|
<div class="tw-font-bold tw-mb-2">Secondary Projected Content (optional)</div>
|
|
|
|
|
<button bitButton>Perform Action</button>
|
|
|
|
|
</div>
|
|
|
|
|
</auth-anon-layout>
|
|
|
|
|
`,
|
|
|
|
|
}),
|
|
|
|
|
export const LongContentAndTitlesAndDefaultWidth: Story = {
|
|
|
|
|
args: {
|
|
|
|
|
title:
|
|
|
|
|
"This is a very long title that might not fit in the default width. It's really long and descriptive, so it might take up more space than usual.",
|
|
|
|
|
subtitle:
|
|
|
|
|
"This is a very long subtitle that might not fit in the default width. It's really long and descriptive, so it might take up more space than usual.",
|
|
|
|
|
contentLength: "long",
|
|
|
|
|
},
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
export const WithCustomIcon: Story = {
|
|
|
|
|
render: (args) => ({
|
|
|
|
|
props: args,
|
|
|
|
|
template:
|
|
|
|
|
// Projected content (the <div>) and styling is just a sample and can be replaced with any content/styling.
|
|
|
|
|
`
|
|
|
|
|
<auth-anon-layout [title]="title" [subtitle]="subtitle" [icon]="icon" [showReadonlyHostname]="showReadonlyHostname">
|
|
|
|
|
<div>
|
|
|
|
|
<div class="tw-font-bold">Primary Projected Content Area (customizable)</div>
|
|
|
|
|
<div>Lorem ipsum dolor sit amet consectetur adipisicing elit. Necessitatibus illum vero, placeat recusandae esse ratione eius minima veniam nemo, quas beatae! Impedit molestiae alias sapiente explicabo. Sapiente corporis ipsa numquam?</div>
|
|
|
|
|
</div>
|
|
|
|
|
</auth-anon-layout>
|
|
|
|
|
`,
|
|
|
|
|
}),
|
|
|
|
|
export const LongContentAndTitlesAndLargestWidth: Story = {
|
|
|
|
|
args: {
|
|
|
|
|
title:
|
|
|
|
|
"This is a very long title that might not fit in the default width. It's really long and descriptive, so it might take up more space than usual.",
|
|
|
|
|
subtitle:
|
|
|
|
|
"This is a very long subtitle that might not fit in the default width. It's really long and descriptive, so it might take up more space than usual.",
|
|
|
|
|
contentLength: "long",
|
|
|
|
|
maxWidth: "3xl",
|
|
|
|
|
},
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
export const HideCardWrapper: Story = {
|
|
|
|
|
render: (args) => ({
|
|
|
|
|
props: {
|
|
|
|
|
...args,
|
|
|
|
|
hideCardWrapper: true,
|
|
|
|
|
},
|
|
|
|
|
template: `
|
|
|
|
|
<auth-anon-layout [title]="title" [subtitle]="subtitle" [showReadonlyHostname]="showReadonlyHostname" [hideLogo]="hideLogo" [hideCardWrapper]="hideCardWrapper">
|
|
|
|
|
<div>
|
|
|
|
|
<div class="tw-font-bold">Primary Projected Content Area (customizable)</div>
|
|
|
|
|
<div>Lorem ipsum dolor sit amet consectetur adipisicing elit. Necessitatibus illum vero, placeat recusandae esse ratione eius minima veniam nemo, quas beatae! Impedit molestiae alias sapiente explicabo. Sapiente corporis ipsa numquam?</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div slot="secondary" class="tw-text-center">
|
|
|
|
|
<div class="tw-font-bold tw-mb-2">Secondary Projected Content (optional)</div>
|
|
|
|
|
<button bitButton>Perform Action</button>
|
|
|
|
|
</div>
|
|
|
|
|
</auth-anon-layout>
|
|
|
|
|
`,
|
|
|
|
|
}),
|
|
|
|
|
export const SecondaryContent: Story = {
|
|
|
|
|
args: {
|
|
|
|
|
showSecondary: true,
|
|
|
|
|
},
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
export const HideIcon: Story = {
|
|
|
|
|
render: (args) => ({
|
|
|
|
|
props: args,
|
|
|
|
|
template:
|
|
|
|
|
// Projected content (the <div>) and styling is just a sample and can be replaced with any content/styling.
|
|
|
|
|
`
|
|
|
|
|
<auth-anon-layout [title]="title" [subtitle]="subtitle" [showReadonlyHostname]="showReadonlyHostname" [hideIcon]="true" >
|
|
|
|
|
<div>
|
|
|
|
|
<div class="tw-font-bold">Primary Projected Content Area (customizable)</div>
|
|
|
|
|
<div>Lorem ipsum dolor sit amet consectetur adipisicing elit. Necessitatibus illum vero, placeat recusandae esse ratione eius minima veniam nemo, quas beatae! Impedit molestiae alias sapiente explicabo. Sapiente corporis ipsa numquam?</div>
|
|
|
|
|
</div>
|
|
|
|
|
</auth-anon-layout>
|
|
|
|
|
`,
|
|
|
|
|
}),
|
|
|
|
|
export const NoTitle: Story = { args: { title: undefined } };
|
|
|
|
|
|
|
|
|
|
export const NoSubtitle: Story = { args: { subtitle: undefined } };
|
|
|
|
|
|
|
|
|
|
export const NoWrapper: Story = {
|
|
|
|
|
args: { hideCardWrapper: true },
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
export const HideLogo: Story = {
|
|
|
|
|
render: (args) => ({
|
|
|
|
|
props: args,
|
|
|
|
|
template:
|
|
|
|
|
// Projected content (the <div>) and styling is just a sample and can be replaced with any content/styling.
|
|
|
|
|
`
|
|
|
|
|
<auth-anon-layout [title]="title" [subtitle]="subtitle" [showReadonlyHostname]="showReadonlyHostname" [hideLogo]="true" >
|
|
|
|
|
<div>
|
|
|
|
|
<div class="tw-font-bold">Primary Projected Content Area (customizable)</div>
|
|
|
|
|
<div>Lorem ipsum dolor sit amet consectetur adipisicing elit. Necessitatibus illum vero, placeat recusandae esse ratione eius minima veniam nemo, quas beatae! Impedit molestiae alias sapiente explicabo. Sapiente corporis ipsa numquam?</div>
|
|
|
|
|
</div>
|
|
|
|
|
</auth-anon-layout>
|
|
|
|
|
`,
|
|
|
|
|
}),
|
|
|
|
|
export const DefaultIcon: Story = {
|
|
|
|
|
args: { useDefaultIcon: true },
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
export const HideFooter: Story = {
|
|
|
|
|
render: (args) => ({
|
|
|
|
|
props: args,
|
|
|
|
|
template:
|
|
|
|
|
// Projected content (the <div>) and styling is just a sample and can be replaced with any content/styling.
|
|
|
|
|
`
|
|
|
|
|
<auth-anon-layout [title]="title" [subtitle]="subtitle" [showReadonlyHostname]="showReadonlyHostname" [hideFooter]="true" [hideLogo]="hideLogo" >
|
|
|
|
|
<div>
|
|
|
|
|
<div class="tw-font-bold">Primary Projected Content Area (customizable)</div>
|
|
|
|
|
<div>Lorem ipsum dolor sit amet consectetur adipisicing elit. Necessitatibus illum vero, placeat recusandae esse ratione eius minima veniam nemo, quas beatae! Impedit molestiae alias sapiente explicabo. Sapiente corporis ipsa numquam?</div>
|
|
|
|
|
</div>
|
|
|
|
|
</auth-anon-layout>
|
|
|
|
|
`,
|
|
|
|
|
}),
|
|
|
|
|
export const NoIcon: Story = {
|
|
|
|
|
args: { hideIcon: true },
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
export const WithTitleAreaMaxWidth: Story = {
|
|
|
|
|
render: (args) => ({
|
|
|
|
|
props: {
|
|
|
|
|
...args,
|
|
|
|
|
title: "This is a very long long title to demonstrate titleAreaMaxWidth set to 'md'",
|
|
|
|
|
subtitle:
|
|
|
|
|
"This is a very long subtitle that demonstrates how the max width container handles longer text content with the titleAreaMaxWidth input set to 'md'. Lorem ipsum dolor sit amet consectetur adipisicing elit. Expedita, quod est?",
|
|
|
|
|
},
|
|
|
|
|
template: `
|
|
|
|
|
<auth-anon-layout [title]="title" [subtitle]="subtitle" [showReadonlyHostname]="showReadonlyHostname" [hideLogo]="hideLogo" [titleAreaMaxWidth]="'md'">
|
|
|
|
|
<div>
|
|
|
|
|
<div class="tw-font-bold">Primary Projected Content Area (customizable)</div>
|
|
|
|
|
<div>Lorem ipsum dolor sit amet consectetur adipisicing elit. Necessitatibus illum vero, placeat recusandae esse ratione eius minima veniam nemo, quas beatae! Impedit molestiae alias sapiente explicabo. Sapiente corporis ipsa numquam?</div>
|
|
|
|
|
</div>
|
|
|
|
|
</auth-anon-layout>
|
|
|
|
|
`,
|
|
|
|
|
}),
|
|
|
|
|
export const NoLogo: Story = {
|
|
|
|
|
args: { hideLogo: true },
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
export const NoFooter: Story = {
|
|
|
|
|
args: { hideFooter: true },
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
export const ReadonlyHostname: Story = {
|
|
|
|
|
args: { showReadonlyHostname: true },
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
export const MinimalState: Story = {
|
|
|
|
|
args: {
|
|
|
|
|
title: undefined,
|
|
|
|
|
subtitle: undefined,
|
|
|
|
|
contentLength: "normal",
|
|
|
|
|
hideCardWrapper: true,
|
|
|
|
|
hideIcon: true,
|
|
|
|
|
hideLogo: true,
|
|
|
|
|
hideFooter: true,
|
|
|
|
|
},
|
|
|
|
|
};
|
|
|
|
|
|