Skip to content

Commit

Permalink
Add stories
Browse files Browse the repository at this point in the history
  • Loading branch information
macandcheese committed Jan 29, 2024
1 parent 785f404 commit b5a252a
Showing 1 changed file with 70 additions and 0 deletions.
70 changes: 70 additions & 0 deletions packages/calcite-components/src/components/scrim/scrim.stories.ts
Original file line number Diff line number Diff line change
Expand Up @@ -82,3 +82,73 @@ export const noContent_TestOnly = (): string =>
html` <div tabindex="0" style="position: relative; width: 400px; height: 400px">
<calcite-scrim></calcite-scrim>
</div>`;

export const theming_TestOnly = (): string => html`
<div tabindex="0" style="position: relative; width: 400px; height: 400px">
<calcite-scrim
dir="rtl"
class="calcite-mode-dark"
${boolean("loading", false)}
style="--calcite-scrim-background-color: purple"
></calcite-scrim>
<div style="width: 400px; height: 400px; overflow: auto">
<p>
Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Vestibulum tortor
quam, feugiat vitae, ultricies eget, tempor sit amet, ante. Donec eu libero sit amet quam egestas semper. Aenean
ultricies mi vitae est. Mauris placerat eleifend leo.
</p>
<ul>
<li>
Morbi in sem quis dui placerat ornare. Pellentesque odio nisi, euismod in, pharetra a, ultricies in, diam. Sed
arcu. Cras consequat.
</li>
<li>
Praesent dapibus, neque id cursus faucibus, tortor neque egestas augue, eu vulputate magna eros eu erat.
Aliquam erat volutpat. Nam dui mi, tincidunt quis, accumsan porttitor, facilisis luctus, metus.
</li>
<li>
Phasellus ultrices nulla quis nibh. Quisque a lectus. Donec consectetur ligula vulputate sem tristique cursus.
Nam nulla quam, gravida non, commodo a, sodales sit amet, nisi.
</li>
<li>
Pellentesque fermentum dolor. Aliquam quam lectus, facilisis auctor, ultrices ut, elementum vulputate, nunc.
</li>
</ul>
</div>
</div>
`;

export const themingDeprecatedFallback_TestOnly = (): string => html`
<div tabindex="0" style="position: relative; width: 400px; height: 400px">
<calcite-scrim
dir="rtl"
class="calcite-mode-dark"
${boolean("loading", false)}
style="--calcite-scrim-background: purple"
></calcite-scrim>
<div style="width: 400px; height: 400px; overflow: auto">
<p>
Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Vestibulum tortor
quam, feugiat vitae, ultricies eget, tempor sit amet, ante. Donec eu libero sit amet quam egestas semper. Aenean
ultricies mi vitae est. Mauris placerat eleifend leo.
</p>
<ul>
<li>
Morbi in sem quis dui placerat ornare. Pellentesque odio nisi, euismod in, pharetra a, ultricies in, diam. Sed
arcu. Cras consequat.
</li>
<li>
Praesent dapibus, neque id cursus faucibus, tortor neque egestas augue, eu vulputate magna eros eu erat.
Aliquam erat volutpat. Nam dui mi, tincidunt quis, accumsan porttitor, facilisis luctus, metus.
</li>
<li>
Phasellus ultrices nulla quis nibh. Quisque a lectus. Donec consectetur ligula vulputate sem tristique cursus.
Nam nulla quam, gravida non, commodo a, sodales sit amet, nisi.
</li>
<li>
Pellentesque fermentum dolor. Aliquam quam lectus, facilisis auctor, ultrices ut, elementum vulputate, nunc.
</li>
</ul>
</div>
</div>
`;

0 comments on commit b5a252a

Please sign in to comment.