Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { modesDarkDefault } from "../../../.storybook/utils";
import { placeholderImage } from "../../../.storybook/placeholderImage";
import readme from "./readme.md";
import { html } from "../../../support/formatting";
import { storyFilters } from "../../../.storybook/helpers";
Expand All @@ -11,10 +12,12 @@ export default {
...storyFilters()
};

const thumbnailImage = placeholderImage({ width: 44, height: 44 });

const simpleHTML = html`<calcite-stack>
<calcite-action appearance="transparent" text="banana" icon="banana" slot="actions-start"></calcite-action>
Hello World
<calcite-avatar slot="content-end" thumbnail="http://placekitten.com/105/105" scale="s"> </calcite-avatar>
<calcite-avatar slot="content-end" thumbnail="${thumbnailImage}" scale="s"> </calcite-avatar>
<calcite-chip slot="content-start" value="chip" scale="s" appearance="outline">My great chip</calcite-chip>
<calcite-action appearance="transparent" text="Close" icon="x" slot="actions-end"></calcite-action>
</calcite-stack>`;
Expand All @@ -27,7 +30,7 @@ simpleDarkMode_TestOnly.parameters = { modes: modesDarkDefault };
export const disabled_TestOnly = (): string => html`<calcite-stack disabled>
<calcite-action appearance="transparent" text="banana" icon="banana" slot="actions-start"></calcite-action>
Hello World
<calcite-avatar slot="content-end" thumbnail="http://placekitten.com/105/105" scale="s"> </calcite-avatar>
<calcite-avatar slot="content-end" thumbnail="${thumbnailImage}" scale="s"> </calcite-avatar>
<calcite-chip slot="content-start" value="chip" scale="s" appearance="outline">My great chip</calcite-chip>
<calcite-action appearance="transparent" text="Close" icon="x" slot="actions-end"></calcite-action>
</calcite-stack>`;
Expand All @@ -38,7 +41,7 @@ export const panelFooter_TestOnly = (): string => html`<calcite-panel>
<calcite-stack slot="footer">
<calcite-action text="select" icon="check" slot="actions-start"></calcite-action>
<calcite-input disabled></calcite-input>
<calcite-avatar slot="content-start" thumbnail="http://placekitten.com/105/105" scale="s"> </calcite-avatar>
<calcite-avatar slot="content-start" thumbnail="${thumbnailImage}" scale="s"> </calcite-avatar>
<calcite-chip slot="content-end" value="chip" scale="s" appearance="outline">My great chip</calcite-chip>
<calcite-action text="delete" icon="trash" slot="actions-end"></calcite-action>
</calcite-stack>
Expand Down