@pnx-mixtape/mxds 0.0.13 → 0.0.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/build/accordion.entry.js +1 -1
- package/dist/build/chunks/{Accordion-DSze7pxN.js → Accordion-Bjaw7SdG.js} +2 -2
- package/dist/build/chunks/{Accordion-DSze7pxN.js.map → Accordion-Bjaw7SdG.js.map} +1 -1
- package/dist/build/chunks/{disclosure-widget-CQLPJ8Ta.js → disclosure-widget-DwuxsaOS.js} +2 -2
- package/dist/build/chunks/{disclosure-widget-CQLPJ8Ta.js.map → disclosure-widget-DwuxsaOS.js.map} +1 -1
- package/dist/build/chunks/{drop-menu.entry-BC6x9vst.js → drop-menu.entry-Cxpti_QG.js} +2 -2
- package/dist/build/chunks/{drop-menu.entry-BC6x9vst.js.map → drop-menu.entry-Cxpti_QG.js.map} +1 -1
- package/dist/build/chunks/{utilities-B4YZb689.js → utilities-DZ_l-he4.js} +1 -49
- package/dist/build/chunks/utilities-DZ_l-he4.js.map +1 -0
- package/dist/build/dialog.entry.js +1 -1
- package/dist/build/drop-menu.entry.js +1 -1
- package/dist/build/filters.entry.js +1 -1
- package/dist/build/global-alert.entry.js +1 -1
- package/dist/build/header.entry.js +2 -2
- package/dist/build/in-page-navigation.entry.js +1 -1
- package/dist/build/navigation.entry.js +2 -2
- package/dist/build/sticky.entry.js +1 -1
- package/dist/build/tabs.entry.js +2 -2
- package/package.json +11 -20
- package/src/Atom/Background/Backgrounds.stories.ts +13 -1
- package/src/Atom/Background/__snapshots__/Backgrounds.stories.ts.snap +157 -81
- package/src/Atom/Background/_background.css +16 -10
- package/src/Atom/Base.mdx +25 -17
- package/src/Atom/Button/Button.stories.ts +1 -4
- package/src/Atom/Button/Button.stories.tsx +1 -1
- package/src/Atom/Button/__snapshots__/Button.stories.ts.snap +47 -37
- package/src/Atom/Button/_buttons-styles.css +7 -7
- package/src/Atom/Button/_buttons.css +1 -6
- package/src/Atom/DefinitionList/DefinitionList.stories.ts +32 -0
- package/src/Atom/DefinitionList/DefinitionList.stories.tsx +1 -1
- package/src/Atom/DefinitionList/__snapshots__/DefinitionList.stories.ts.snap +32 -0
- package/src/Atom/DefinitionList/definition-list.twig +9 -0
- package/src/Atom/Heading/Heading.stories.ts +1 -1
- package/src/Atom/Heading/Heading.stories.tsx +1 -1
- package/src/Atom/Heading/__snapshots__/Heading.stories.ts.snap +5 -3
- package/src/Atom/Icon/Icon.mdx +1 -1
- package/src/Atom/Icon/Icon.stories.ts +1 -1
- package/src/Atom/Icon/Icon.stories.tsx +1 -1
- package/src/Atom/Icon/Icon.tsx +2 -2
- package/src/Atom/Icon/__snapshots__/Icon.stories.ts.snap +14 -8
- package/src/Atom/Icon/_icon.css +4 -4
- package/src/Atom/Image/Image.stories.ts +1 -1
- package/src/Atom/Image/__snapshots__/Image.stories.ts.snap +7 -5
- package/src/Atom/Image/_image.css +2 -7
- package/src/Atom/Link/Link.stories.ts +1 -1
- package/src/Atom/Link/Link.stories.tsx +1 -1
- package/src/Atom/Link/__snapshots__/Link.stories.ts.snap +50 -37
- package/src/Atom/Link/_links.css +2 -22
- package/src/Atom/Link/link.twig +1 -0
- package/src/Atom/Media/Media.stories.ts +1 -1
- package/src/Atom/Media/Media.stories.tsx +1 -1
- package/src/Atom/Media/__snapshots__/Media.stories.ts.snap +25 -21
- package/src/Atom/Spacing/Spacing.stories.ts +1 -1
- package/src/Atom/Spacing/__snapshots__/Spacing.stories.ts.snap +5 -3
- package/src/Atom/Table/Table.stories.ts +1 -1
- package/src/Atom/Table/TableResponsive.stories.ts +1 -1
- package/src/Atom/Table/__snapshots__/Table.stories.ts.snap +256 -248
- package/src/Atom/Table/__snapshots__/TableResponsive.stories.ts.snap +65 -63
- package/src/Atom/Text/Text.stories.tsx +1 -1
- package/src/Atom/Text/TextSizes.stories.ts +1 -1
- package/src/Atom/Text/__snapshots__/TextSizes.stories.ts.snap +59 -55
- package/src/Atom/Text/rich-text.twig +9 -0
- package/src/Atom/Video/Video.stories.ts +1 -1
- package/src/Atom/Video/__snapshots__/Video.stories.ts.snap +9 -7
- package/src/Atom/_animated.css +0 -14
- package/src/Atom/_generic.css +56 -15
- package/src/Atom/base.css +1 -1
- package/src/Component/Accordion/Accordion.stories.ts +1 -4
- package/src/Component/Accordion/Accordion.stories.tsx +1 -1
- package/src/Component/Accordion/__snapshots__/Accordion.stories.ts.snap +60 -56
- package/src/Component/Accordion/accordion.css +16 -4
- package/src/Component/Breadcrumb/Breadcrumb.stories.ts +1 -1
- package/src/Component/Breadcrumb/Breadcrumb.stories.tsx +1 -1
- package/src/Component/Breadcrumb/__snapshots__/Breadcrumb.stories.ts.snap +31 -29
- package/src/Component/Breadcrumb/breadcrumb.css +4 -0
- package/src/Component/Callout/Callout.stories.ts +1 -9
- package/src/Component/Callout/__snapshots__/Callout.stories.ts.snap +9 -7
- package/src/Component/Card/Card.stories.ts +11 -18
- package/src/Component/Card/Card.stories.tsx +1 -1
- package/src/Component/Card/Card.tsx +9 -5
- package/src/Component/Card/__snapshots__/Card.stories.ts.snap +257 -229
- package/src/Component/Card/card.css +36 -33
- package/src/Component/Card/card.twig +6 -6
- package/src/Component/Carousel/Carousel.stories.ts +201 -0
- package/src/Component/Carousel/Elements/Carousel.ts +241 -0
- package/src/Component/Carousel/__snapshots__/Carousel.stories.ts.snap +912 -0
- package/src/Component/Carousel/carousel.css +119 -0
- package/src/Component/Carousel/carousel.twig +27 -0
- package/src/Component/ContentBlock/ContentBlock.stories.ts +27 -19
- package/src/Component/ContentBlock/ContentBlock.stories.tsx +1 -1
- package/src/Component/ContentBlock/__snapshots__/ContentBlock.stories.ts.snap +153 -93
- package/src/Component/Dialog/Dialog.stories.ts +76 -7
- package/src/Component/Dialog/Dialog.stories.tsx +1 -1
- package/src/Component/Dialog/Elements/Dialog.ts +14 -34
- package/src/Component/Dialog/__snapshots__/Dialog.stories.ts.snap +102 -66
- package/src/Component/Dialog/dialog.css +31 -19
- package/src/Component/Dialog/dialog.twig +14 -15
- package/src/Component/DropMenu/DropMenu.stories.ts +1 -1
- package/src/Component/DropMenu/DropMenu.stories.tsx +1 -1
- package/src/Component/DropMenu/__snapshots__/DropMenu.stories.ts.snap +28 -26
- package/src/Component/DropMenu/drop-menu.css +10 -2
- package/src/Component/Filters/Filters.stories.ts +1 -4
- package/src/Component/Filters/__snapshots__/Filters.stories.ts.snap +397 -389
- package/src/Component/Filters/filters.css +14 -5
- package/src/Component/GlobalAlert/GlobalAlert.stories.ts +1 -1
- package/src/Component/GlobalAlert/GlobalAlert.stories.tsx +1 -1
- package/src/Component/GlobalAlert/__snapshots__/GlobalAlert.stories.ts.snap +33 -29
- package/src/Component/GlobalAlert/global-alert.css +2 -2
- package/src/Component/HeroBanner/HeroBanner.stories.ts +1 -4
- package/src/Component/HeroBanner/HeroBanner.stories.tsx +1 -1
- package/src/Component/HeroBanner/__snapshots__/HeroBanner.stories.ts.snap +68 -64
- package/src/Component/HeroBanner/hero-banner.css +6 -1
- package/src/Component/HeroBanner/hero-banner.twig +3 -4
- package/src/Component/InPageAlert/InPageAlert.stories.ts +1 -1
- package/src/Component/InPageAlert/InPageAlert.stories.tsx +1 -1
- package/src/Component/InPageAlert/__snapshots__/InPageAlert.stories.ts.snap +10 -8
- package/src/Component/InPageAlert/in-page-alert.css +8 -8
- package/src/Component/InPageNavigation/Elements/InPageNavigation.ts +1 -1
- package/src/Component/InPageNavigation/InPageNavigation.stories.ts +1 -4
- package/src/Component/InPageNavigation/InPageNavigation.stories.tsx +1 -1
- package/src/Component/InPageNavigation/__snapshots__/InPageNavigation.stories.ts.snap +64 -62
- package/src/Component/LinkList/LinkList.stories.ts +1 -1
- package/src/Component/LinkList/LinkList.stories.tsx +1 -1
- package/src/Component/LinkList/__snapshots__/LinkList.stories.ts.snap +31 -29
- package/src/Component/ListItem/ListItem.stories.ts +2 -4
- package/src/Component/ListItem/ListItem.stories.tsx +1 -1
- package/src/Component/ListItem/__snapshots__/ListItem.stories.ts.snap +162 -148
- package/src/Component/ListItem/list-item.css +7 -88
- package/src/Component/ListItem/list-item.twig +8 -8
- package/src/Component/Navigation/Dropdown.stories.tsx +1 -1
- package/src/Component/Navigation/Navigation.stories.ts +1 -1
- package/src/Component/Navigation/Navigation.stories.tsx +1 -1
- package/src/Component/Navigation/__snapshots__/Navigation.stories.ts.snap +291 -283
- package/src/Component/Navigation/_navigation-collapsible.css +11 -14
- package/src/Component/Navigation/_navigation-dropdown.css +11 -17
- package/src/Component/Pagination/Pagination.stories.ts +1 -1
- package/src/Component/Pagination/Pagination.stories.tsx +1 -1
- package/src/Component/Pagination/__snapshots__/Pagination.stories.ts.snap +59 -57
- package/src/Component/Pagination/pagination.css +2 -8
- package/src/Component/ResultsBar/Components/ResultsBarInfo.tsx +28 -0
- package/src/Component/ResultsBar/Components/ResultsBarSort.tsx +17 -0
- package/src/Component/ResultsBar/ResultsBar.stories.ts +37 -0
- package/src/Component/ResultsBar/ResultsBar.stories.tsx +50 -0
- package/src/Component/ResultsBar/ResultsBar.tsx +7 -0
- package/src/Component/ResultsBar/__snapshots__/ResultsBar.stories.ts.snap +54 -0
- package/src/Component/ResultsBar/__snapshots__/ResultsBar.stories.tsx.snap +53 -0
- package/src/Component/ResultsBar/results-bar.css +19 -0
- package/src/Component/ResultsBar/results-bar.twig +24 -0
- package/src/Component/SideNavigation/SideNavigation.stories.ts +1 -1
- package/src/Component/SideNavigation/__snapshots__/SideNavigation.stories.ts.snap +82 -80
- package/src/Component/SideNavigation/side-navigation.css +2 -8
- package/src/Component/SocialLinks/SocialLinks.stories.ts +1 -1
- package/src/Component/SocialLinks/__snapshots__/SocialLinks.stories.ts.snap +30 -28
- package/src/Component/Steps/Steps.stories.ts +1 -1
- package/src/Component/Steps/__snapshots__/Steps.stories.ts.snap +86 -78
- package/src/Component/Steps/steps.css +1 -1
- package/src/Component/Sticky/Sticky.stories.ts +1 -1
- package/src/Component/Sticky/Sticky.stories.tsx +1 -1
- package/src/Component/Sticky/__snapshots__/Sticky.stories.ts.snap +9 -7
- package/src/Component/Tabs/Tabs.stories.ts +1 -1
- package/src/Component/Tabs/Tabs.stories.tsx +1 -1
- package/src/Component/Tabs/__snapshots__/Tabs.stories.ts.snap +73 -71
- package/src/Component/Tabs/tabs.css +14 -21
- package/src/Component/Tag/Tag.stories.ts +1 -1
- package/src/Component/Tag/Tag.stories.tsx +1 -1
- package/src/Component/Tag/__snapshots__/Tag.stories.ts.snap +59 -53
- package/src/Component/Tag/tag.css +6 -6
- package/src/Component/Tile/Tile.stories.ts +38 -12
- package/src/Component/Tile/Tile.stories.tsx +2 -2
- package/src/Component/Tile/Tile.tsx +30 -17
- package/src/Component/Tile/__snapshots__/Tile.stories.ts.snap +49 -75
- package/src/Form/Checkbox/Checkbox.stories.ts +1 -1
- package/src/Form/Checkbox/FormCheckbox.stories.tsx +1 -1
- package/src/Form/Checkbox/__snapshots__/Checkbox.stories.ts.snap +23 -19
- package/src/Form/Description/Description.stories.ts +1 -1
- package/src/Form/Description/FormDescription.stories.tsx +1 -1
- package/src/Form/Description/FormStatus.stories.ts +1 -1
- package/src/Form/Description/__snapshots__/Description.stories.ts.snap +7 -5
- package/src/Form/Description/__snapshots__/FormStatus.stories.ts.snap +14 -10
- package/src/Form/Form/Form.stories.tsx +1 -1
- package/src/Form/Form/FormTitle.stories.tsx +1 -1
- package/src/Form/FormItem/FormItem.stories.ts +1 -4
- package/src/Form/FormItem/FormItem.stories.tsx +1 -1
- package/src/Form/FormItem/__snapshots__/FormItem.stories.ts.snap +119 -109
- package/src/Form/Label/FormLabel.stories.tsx +1 -1
- package/src/Form/Label/FormLabel.tsx +1 -1
- package/src/Form/Label/Label.stories.ts +1 -1
- package/src/Form/Label/__snapshots__/Label.stories.ts.snap +21 -15
- package/src/Form/Radio/FormRadio.stories.tsx +1 -1
- package/src/Form/Radio/Radio.stories.ts +1 -1
- package/src/Form/Radio/__snapshots__/Radio.stories.ts.snap +55 -51
- package/src/Form/Search/Search.stories.ts +1 -4
- package/src/Form/Search/__snapshots__/Search.stories.ts.snap +23 -21
- package/src/Form/Select/FormSelect.stories.tsx +1 -1
- package/src/Form/Select/FormSelect.tsx +1 -1
- package/src/Form/Select/Select.stories.ts +1 -1
- package/src/Form/Select/__snapshots__/Select.stories.ts.snap +18 -16
- package/src/Form/TextInput/FormText.stories.tsx +1 -1
- package/src/Form/TextInput/InputDivider.stories.ts +1 -1
- package/src/Form/TextInput/TextInput.stories.ts +1 -1
- package/src/Form/TextInput/__snapshots__/InputDivider.stories.ts.snap +24 -22
- package/src/Form/TextInput/__snapshots__/TextInput.stories.ts.snap +18 -14
- package/src/Form/Textarea/FormTextarea.stories.tsx +1 -1
- package/src/Form/Textarea/Textarea.stories.ts +1 -1
- package/src/Form/Textarea/__snapshots__/Textarea.stories.ts.snap +9 -7
- package/src/Form/form.css +24 -34
- package/src/Layout/Footer/Footer.stories.ts +1 -6
- package/src/Layout/Footer/Footer.stories.tsx +1 -1
- package/src/Layout/Footer/__snapshots__/Footer.stories.ts.snap +10 -10
- package/src/Layout/Footer/footer.css +2 -6
- package/src/Layout/Footer/footer.twig +0 -1
- package/src/Layout/Grid/Grid.stories.ts +8 -8
- package/src/Layout/Grid/Grid.stories.tsx +1 -1
- package/src/Layout/Grid/__snapshots__/Grid.stories.ts.snap +38 -32
- package/src/Layout/Grid/container-grid.css +1 -1
- package/src/Layout/Grid/grid-item.twig +3 -1
- package/src/Layout/Grid/grid.css +1 -1
- package/src/Layout/Header/Header.stories.ts +1 -6
- package/src/Layout/Header/Header.stories.tsx +1 -1
- package/src/Layout/Header/__snapshots__/Header.stories.ts.snap +11 -11
- package/src/Layout/Header/_header.css +18 -16
- package/src/Layout/Header/header.twig +1 -2
- package/src/Layout/Masthead/Masthead.stories.ts +1 -3
- package/src/Layout/Masthead/__snapshots__/Masthead.stories.ts.snap +6 -6
- package/src/Layout/Masthead/masthead.twig +0 -2
- package/src/Layout/Page/Page.stories.tsx +1 -1
- package/src/Layout/Page/page.css +16 -40
- package/src/Layout/Page/page.twig +6 -1
- package/src/Layout/Section/Background.stories.ts +60 -8
- package/src/Layout/Section/Breakouts.stories.ts +1 -3
- package/src/Layout/Section/Flow.stories.ts +1 -3
- package/src/Layout/Section/Section.stories.ts +1 -6
- package/src/Layout/Section/Section.stories.tsx +1 -1
- package/src/Layout/Section/SectionGrid.stories.tsx +1 -1
- package/src/Layout/Section/__snapshots__/Background.stories.ts.snap +36 -24
- package/src/Layout/Section/__snapshots__/Breakouts.stories.ts.snap +54 -52
- package/src/Layout/Section/__snapshots__/Flow.stories.ts.snap +18 -18
- package/src/Layout/Section/__snapshots__/Section.stories.ts.snap +2 -2
- package/src/Layout/Section/section.css +2 -5
- package/src/Layout/Section/section.twig +0 -1
- package/src/Layout/Section/twig/section-background.twig +29 -10
- package/src/Layout/Section/twig/sections-breakout.twig +28 -33
- package/src/Layout/Section/twig/sections-flow.twig +17 -17
- package/src/Layout/Section/twig/sections-stacked.twig +4 -4
- package/src/Layout/Sidebar/Sidebar.stories.ts +1 -3
- package/src/Layout/Sidebar/Sidebar.stories.tsx +1 -1
- package/src/Layout/Sidebar/__snapshots__/Sidebar.stories.ts.snap +5 -5
- package/src/Layout/Sidebar/sidebar.css +2 -18
- package/src/Utility/Drupal/drupal.css +1 -5
- package/src/constants.css +53 -24
- package/src/enums.ts +1 -0
- package/src/react.ts +3 -0
- package/src/tokens.js +19 -19
- package/dist/build/chunks/utilities-B4YZb689.js.map +0 -1
- package/src/Component/Tile/tile.twig +0 -10
- package/src/Component/Tile/tiles.css +0 -58
- package/src/Component/Tile/twig/tiles.twig +0 -18
|
@@ -1,100 +1,176 @@
|
|
|
1
1
|
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
2
2
|
|
|
3
|
+
exports[`Atom/Backgrounds Accent smoke-test 1`] = `
|
|
4
|
+
<div class="mx-page default">
|
|
5
|
+
<div class="mx-spacing--m mx-rich-text mx-vertical-flow mx-background--accent">
|
|
6
|
+
<blockquote>
|
|
7
|
+
<p>
|
|
8
|
+
But I must explain to you how all this mistaken idea of denouncing of a
|
|
9
|
+
<a href="#">
|
|
10
|
+
pleasure and praising pain
|
|
11
|
+
</a>
|
|
12
|
+
was born and I will give you a complete account of the system, and expound the actual teachings of the great explorer of the truth, the master-builder of human happiness. No one rejects, dislikes, or avoids pleasure itself, because it is pleasure, but because those who do not know how to pursue pleasure rationally encounter consequences that are extremely painful. Nor again is there anyone who loves or pursues or desires to obtain pain of itself, because it is pain, but occasionally circumstances occur in which toil and pain can procure him some great pleasure. To take a trivial example, which of us ever undertakes laborious physical exercise, except to obtain some advantage from it? But who has any right to find fault with a man who chooses to enjoy a pleasure that has no annoying consequences.
|
|
13
|
+
</p>
|
|
14
|
+
<a href="#"
|
|
15
|
+
class="mx-link--external"
|
|
16
|
+
>
|
|
17
|
+
Contact the Lorem Ipsum Squad
|
|
18
|
+
</a>
|
|
19
|
+
</blockquote>
|
|
20
|
+
<blockquote class="mx-background--reset">
|
|
21
|
+
<p>
|
|
22
|
+
But I must explain to you how all this mistaken idea of denouncing of a
|
|
23
|
+
<a href="#">
|
|
24
|
+
pleasure and praising pain
|
|
25
|
+
</a>
|
|
26
|
+
was born and I will give you a complete account of the system, and expound the actual teachings of the great explorer of the truth, the master-builder of human happiness. No one rejects, dislikes, or avoids pleasure itself, because it is pleasure, but because those who do not know how to pursue pleasure rationally encounter consequences that are extremely painful. Nor again is there anyone who loves or pursues or desires to obtain pain of itself, because it is pain, but occasionally circumstances occur in which toil and pain can procure him some great pleasure. To take a trivial example, which of us ever undertakes laborious physical exercise, except to obtain some advantage from it? But who has any right to find fault with a man who chooses to enjoy a pleasure that has no annoying consequences.
|
|
27
|
+
</p>
|
|
28
|
+
<a href="#"
|
|
29
|
+
class="mx-link--external"
|
|
30
|
+
>
|
|
31
|
+
Contact the Lorem Ipsum Squad
|
|
32
|
+
</a>
|
|
33
|
+
</blockquote>
|
|
34
|
+
</div>
|
|
35
|
+
</div>
|
|
36
|
+
`;
|
|
37
|
+
|
|
3
38
|
exports[`Atom/Backgrounds Alt smoke-test 1`] = `
|
|
4
|
-
<div class="mx-
|
|
5
|
-
<
|
|
6
|
-
<
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
39
|
+
<div class="mx-page default">
|
|
40
|
+
<div class="mx-spacing--m mx-rich-text mx-vertical-flow mx-background--alt">
|
|
41
|
+
<blockquote>
|
|
42
|
+
<p>
|
|
43
|
+
But I must explain to you how all this mistaken idea of denouncing of a
|
|
44
|
+
<a href="#">
|
|
45
|
+
pleasure and praising pain
|
|
46
|
+
</a>
|
|
47
|
+
was born and I will give you a complete account of the system, and expound the actual teachings of the great explorer of the truth, the master-builder of human happiness. No one rejects, dislikes, or avoids pleasure itself, because it is pleasure, but because those who do not know how to pursue pleasure rationally encounter consequences that are extremely painful. Nor again is there anyone who loves or pursues or desires to obtain pain of itself, because it is pain, but occasionally circumstances occur in which toil and pain can procure him some great pleasure. To take a trivial example, which of us ever undertakes laborious physical exercise, except to obtain some advantage from it? But who has any right to find fault with a man who chooses to enjoy a pleasure that has no annoying consequences.
|
|
48
|
+
</p>
|
|
49
|
+
<a href="#"
|
|
50
|
+
class="mx-link--external"
|
|
51
|
+
>
|
|
52
|
+
Contact the Lorem Ipsum Squad
|
|
10
53
|
</a>
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
54
|
+
</blockquote>
|
|
55
|
+
<blockquote class="mx-background--reset">
|
|
56
|
+
<p>
|
|
57
|
+
But I must explain to you how all this mistaken idea of denouncing of a
|
|
58
|
+
<a href="#">
|
|
59
|
+
pleasure and praising pain
|
|
60
|
+
</a>
|
|
61
|
+
was born and I will give you a complete account of the system, and expound the actual teachings of the great explorer of the truth, the master-builder of human happiness. No one rejects, dislikes, or avoids pleasure itself, because it is pleasure, but because those who do not know how to pursue pleasure rationally encounter consequences that are extremely painful. Nor again is there anyone who loves or pursues or desires to obtain pain of itself, because it is pain, but occasionally circumstances occur in which toil and pain can procure him some great pleasure. To take a trivial example, which of us ever undertakes laborious physical exercise, except to obtain some advantage from it? But who has any right to find fault with a man who chooses to enjoy a pleasure that has no annoying consequences.
|
|
62
|
+
</p>
|
|
63
|
+
<a href="#"
|
|
64
|
+
class="mx-link--external"
|
|
65
|
+
>
|
|
66
|
+
Contact the Lorem Ipsum Squad
|
|
24
67
|
</a>
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
<a href="#"
|
|
28
|
-
class="mx-link--external"
|
|
29
|
-
>
|
|
30
|
-
Contact the Lorem Ipsum Squad
|
|
31
|
-
</a>
|
|
32
|
-
</blockquote>
|
|
68
|
+
</blockquote>
|
|
69
|
+
</div>
|
|
33
70
|
</div>
|
|
34
71
|
`;
|
|
35
72
|
|
|
36
73
|
exports[`Atom/Backgrounds Backgrounds smoke-test 1`] = `
|
|
37
|
-
<div class="mx-
|
|
38
|
-
<
|
|
39
|
-
<
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
74
|
+
<div class="mx-page default">
|
|
75
|
+
<div class="mx-spacing--m mx-rich-text mx-vertical-flow ">
|
|
76
|
+
<blockquote>
|
|
77
|
+
<p>
|
|
78
|
+
But I must explain to you how all this mistaken idea of denouncing of a
|
|
79
|
+
<a href="#">
|
|
80
|
+
pleasure and praising pain
|
|
81
|
+
</a>
|
|
82
|
+
was born and I will give you a complete account of the system, and expound the actual teachings of the great explorer of the truth, the master-builder of human happiness. No one rejects, dislikes, or avoids pleasure itself, because it is pleasure, but because those who do not know how to pursue pleasure rationally encounter consequences that are extremely painful. Nor again is there anyone who loves or pursues or desires to obtain pain of itself, because it is pain, but occasionally circumstances occur in which toil and pain can procure him some great pleasure. To take a trivial example, which of us ever undertakes laborious physical exercise, except to obtain some advantage from it? But who has any right to find fault with a man who chooses to enjoy a pleasure that has no annoying consequences.
|
|
83
|
+
</p>
|
|
84
|
+
<a href="#"
|
|
85
|
+
class="mx-link--external"
|
|
86
|
+
>
|
|
87
|
+
Contact the Lorem Ipsum Squad
|
|
88
|
+
</a>
|
|
89
|
+
</blockquote>
|
|
90
|
+
<blockquote class="mx-background--reset">
|
|
91
|
+
<p>
|
|
92
|
+
But I must explain to you how all this mistaken idea of denouncing of a
|
|
93
|
+
<a href="#">
|
|
94
|
+
pleasure and praising pain
|
|
95
|
+
</a>
|
|
96
|
+
was born and I will give you a complete account of the system, and expound the actual teachings of the great explorer of the truth, the master-builder of human happiness. No one rejects, dislikes, or avoids pleasure itself, because it is pleasure, but because those who do not know how to pursue pleasure rationally encounter consequences that are extremely painful. Nor again is there anyone who loves or pursues or desires to obtain pain of itself, because it is pain, but occasionally circumstances occur in which toil and pain can procure him some great pleasure. To take a trivial example, which of us ever undertakes laborious physical exercise, except to obtain some advantage from it? But who has any right to find fault with a man who chooses to enjoy a pleasure that has no annoying consequences.
|
|
97
|
+
</p>
|
|
98
|
+
<a href="#"
|
|
99
|
+
class="mx-link--external"
|
|
100
|
+
>
|
|
101
|
+
Contact the Lorem Ipsum Squad
|
|
102
|
+
</a>
|
|
103
|
+
</blockquote>
|
|
104
|
+
</div>
|
|
105
|
+
</div>
|
|
106
|
+
`;
|
|
107
|
+
|
|
108
|
+
exports[`Atom/Backgrounds Primary smoke-test 1`] = `
|
|
109
|
+
<div class="mx-page default">
|
|
110
|
+
<div class="mx-spacing--m mx-rich-text mx-vertical-flow mx-background--primary">
|
|
111
|
+
<blockquote>
|
|
112
|
+
<p>
|
|
113
|
+
But I must explain to you how all this mistaken idea of denouncing of a
|
|
114
|
+
<a href="#">
|
|
115
|
+
pleasure and praising pain
|
|
116
|
+
</a>
|
|
117
|
+
was born and I will give you a complete account of the system, and expound the actual teachings of the great explorer of the truth, the master-builder of human happiness. No one rejects, dislikes, or avoids pleasure itself, because it is pleasure, but because those who do not know how to pursue pleasure rationally encounter consequences that are extremely painful. Nor again is there anyone who loves or pursues or desires to obtain pain of itself, because it is pain, but occasionally circumstances occur in which toil and pain can procure him some great pleasure. To take a trivial example, which of us ever undertakes laborious physical exercise, except to obtain some advantage from it? But who has any right to find fault with a man who chooses to enjoy a pleasure that has no annoying consequences.
|
|
118
|
+
</p>
|
|
119
|
+
<a href="#"
|
|
120
|
+
class="mx-link--external"
|
|
121
|
+
>
|
|
122
|
+
Contact the Lorem Ipsum Squad
|
|
43
123
|
</a>
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
124
|
+
</blockquote>
|
|
125
|
+
<blockquote class="mx-background--reset">
|
|
126
|
+
<p>
|
|
127
|
+
But I must explain to you how all this mistaken idea of denouncing of a
|
|
128
|
+
<a href="#">
|
|
129
|
+
pleasure and praising pain
|
|
130
|
+
</a>
|
|
131
|
+
was born and I will give you a complete account of the system, and expound the actual teachings of the great explorer of the truth, the master-builder of human happiness. No one rejects, dislikes, or avoids pleasure itself, because it is pleasure, but because those who do not know how to pursue pleasure rationally encounter consequences that are extremely painful. Nor again is there anyone who loves or pursues or desires to obtain pain of itself, because it is pain, but occasionally circumstances occur in which toil and pain can procure him some great pleasure. To take a trivial example, which of us ever undertakes laborious physical exercise, except to obtain some advantage from it? But who has any right to find fault with a man who chooses to enjoy a pleasure that has no annoying consequences.
|
|
132
|
+
</p>
|
|
133
|
+
<a href="#"
|
|
134
|
+
class="mx-link--external"
|
|
135
|
+
>
|
|
136
|
+
Contact the Lorem Ipsum Squad
|
|
57
137
|
</a>
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
<a href="#"
|
|
61
|
-
class="mx-link--external"
|
|
62
|
-
>
|
|
63
|
-
Contact the Lorem Ipsum Squad
|
|
64
|
-
</a>
|
|
65
|
-
</blockquote>
|
|
138
|
+
</blockquote>
|
|
139
|
+
</div>
|
|
66
140
|
</div>
|
|
67
141
|
`;
|
|
68
142
|
|
|
69
143
|
exports[`Atom/Backgrounds Reverse smoke-test 1`] = `
|
|
70
|
-
<div class="mx-
|
|
71
|
-
<
|
|
72
|
-
<
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
144
|
+
<div class="mx-page default">
|
|
145
|
+
<div class="mx-spacing--m mx-rich-text mx-vertical-flow mx-background--reverse">
|
|
146
|
+
<blockquote>
|
|
147
|
+
<p>
|
|
148
|
+
But I must explain to you how all this mistaken idea of denouncing of a
|
|
149
|
+
<a href="#">
|
|
150
|
+
pleasure and praising pain
|
|
151
|
+
</a>
|
|
152
|
+
was born and I will give you a complete account of the system, and expound the actual teachings of the great explorer of the truth, the master-builder of human happiness. No one rejects, dislikes, or avoids pleasure itself, because it is pleasure, but because those who do not know how to pursue pleasure rationally encounter consequences that are extremely painful. Nor again is there anyone who loves or pursues or desires to obtain pain of itself, because it is pain, but occasionally circumstances occur in which toil and pain can procure him some great pleasure. To take a trivial example, which of us ever undertakes laborious physical exercise, except to obtain some advantage from it? But who has any right to find fault with a man who chooses to enjoy a pleasure that has no annoying consequences.
|
|
153
|
+
</p>
|
|
154
|
+
<a href="#"
|
|
155
|
+
class="mx-link--external"
|
|
156
|
+
>
|
|
157
|
+
Contact the Lorem Ipsum Squad
|
|
76
158
|
</a>
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
159
|
+
</blockquote>
|
|
160
|
+
<blockquote class="mx-background--reset">
|
|
161
|
+
<p>
|
|
162
|
+
But I must explain to you how all this mistaken idea of denouncing of a
|
|
163
|
+
<a href="#">
|
|
164
|
+
pleasure and praising pain
|
|
165
|
+
</a>
|
|
166
|
+
was born and I will give you a complete account of the system, and expound the actual teachings of the great explorer of the truth, the master-builder of human happiness. No one rejects, dislikes, or avoids pleasure itself, because it is pleasure, but because those who do not know how to pursue pleasure rationally encounter consequences that are extremely painful. Nor again is there anyone who loves or pursues or desires to obtain pain of itself, because it is pain, but occasionally circumstances occur in which toil and pain can procure him some great pleasure. To take a trivial example, which of us ever undertakes laborious physical exercise, except to obtain some advantage from it? But who has any right to find fault with a man who chooses to enjoy a pleasure that has no annoying consequences.
|
|
167
|
+
</p>
|
|
168
|
+
<a href="#"
|
|
169
|
+
class="mx-link--external"
|
|
170
|
+
>
|
|
171
|
+
Contact the Lorem Ipsum Squad
|
|
90
172
|
</a>
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
<a href="#"
|
|
94
|
-
class="mx-link--external"
|
|
95
|
-
>
|
|
96
|
-
Contact the Lorem Ipsum Squad
|
|
97
|
-
</a>
|
|
98
|
-
</blockquote>
|
|
173
|
+
</blockquote>
|
|
174
|
+
</div>
|
|
99
175
|
</div>
|
|
100
176
|
`;
|
|
@@ -5,36 +5,39 @@
|
|
|
5
5
|
:where([class*="mx-background--"]) {
|
|
6
6
|
background-color: var(--background, var(--colour-background));
|
|
7
7
|
color: var(--foreground, var(--colour-foreground));
|
|
8
|
+
color-scheme: var(--scheme, var(--color-scheme));
|
|
8
9
|
}
|
|
9
10
|
|
|
10
11
|
.mx-background--reset {
|
|
11
12
|
/* use to revert .background--reverse on children */
|
|
13
|
+
--scheme: var(--color-scheme);
|
|
12
14
|
--background: var(--colour-background);
|
|
13
15
|
--foreground: var(--colour-foreground);
|
|
14
|
-
--link-colour: var(--colour-
|
|
16
|
+
--link-colour: var(--colour-link);
|
|
15
17
|
--line-colour: var(--colour-border);
|
|
16
18
|
}
|
|
17
19
|
|
|
18
20
|
.mx-background--alt {
|
|
21
|
+
--scheme: var(--alt-scheme, light);
|
|
19
22
|
--background: var(--colour-background-alt);
|
|
20
23
|
}
|
|
21
24
|
|
|
22
25
|
.mx-background--primary {
|
|
26
|
+
--scheme: var(--primary-scheme, dark);
|
|
23
27
|
--background: var(--colour-primary);
|
|
24
|
-
--foreground: var(--colour-foreground-reverse);
|
|
25
|
-
--line-colour: var(--colour-border-reverse);
|
|
26
28
|
--link-colour: var(--colour-primary-light);
|
|
29
|
+
--line-colour: var(--colour-primary-light);
|
|
27
30
|
}
|
|
28
31
|
|
|
29
32
|
.mx-background--accent {
|
|
33
|
+
--scheme: var(--accent-scheme, dark);
|
|
30
34
|
--background: var(--colour-accent);
|
|
31
|
-
--foreground: var(--colour-foreground-reverse);
|
|
32
|
-
--line-colour: var(--colour-border-reverse);
|
|
33
35
|
--link-colour: var(--colour-accent-light);
|
|
36
|
+
--line-colour: var(--colour-accent-light);
|
|
34
37
|
}
|
|
35
38
|
|
|
36
39
|
.mx-background--image {
|
|
37
|
-
&
|
|
40
|
+
& img {
|
|
38
41
|
object-fit: cover;
|
|
39
42
|
position: absolute;
|
|
40
43
|
inline-size: 100%;
|
|
@@ -46,14 +49,17 @@
|
|
|
46
49
|
}
|
|
47
50
|
|
|
48
51
|
.mx-background--reverse {
|
|
49
|
-
--
|
|
50
|
-
--link-colour: var(--colour-primary-light);
|
|
51
|
-
--background: var(--colour-background-reverse);
|
|
52
|
-
--foreground: var(--colour-foreground-reverse);
|
|
52
|
+
--scheme: var(--reverse-scheme, dark);
|
|
53
53
|
|
|
54
54
|
& .mx-background--image {
|
|
55
55
|
--bg-img-brightness: 0.45;
|
|
56
56
|
--bg-img-opacity: 1;
|
|
57
57
|
}
|
|
58
58
|
}
|
|
59
|
+
|
|
60
|
+
.mx-background--box {
|
|
61
|
+
border: 1px solid var(--line-colour, var(--colour-border));
|
|
62
|
+
border-radius: var(--border-radius);
|
|
63
|
+
padding-inline: var(--gutter, 1rem);
|
|
64
|
+
}
|
|
59
65
|
}
|
package/src/Atom/Base.mdx
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Meta, ColorPalette, ColorItem } from "@storybook/blocks"
|
|
1
|
+
import { Meta, ColorPalette, ColorItem } from "@storybook/addon-docs/blocks"
|
|
2
2
|
|
|
3
3
|
<Meta title="Atom/Base" />
|
|
4
4
|
|
|
@@ -13,26 +13,34 @@ Base styles and HTML elements, used by all Elements and Components.
|
|
|
13
13
|
title="Light"
|
|
14
14
|
subtitle="Neutral colours"
|
|
15
15
|
colors={{
|
|
16
|
-
white: "
|
|
17
|
-
light: "
|
|
18
|
-
mid: "
|
|
16
|
+
white: "oklch(1 0 100)",
|
|
17
|
+
light: "oklch(0.95 0 100)",
|
|
18
|
+
mid: "oklch(0.9 0 100)",
|
|
19
19
|
}}
|
|
20
20
|
/>
|
|
21
21
|
<ColorItem
|
|
22
22
|
title="Dark"
|
|
23
23
|
subtitle="Neutral colours"
|
|
24
24
|
colors={{
|
|
25
|
-
black: "
|
|
26
|
-
dark: "
|
|
27
|
-
mid: "
|
|
25
|
+
black: "oklch(0 0 100)",
|
|
26
|
+
dark: "oklch(0.1 0 100)",
|
|
27
|
+
mid: "oklch(0.25 0 100)",
|
|
28
|
+
}}
|
|
29
|
+
/>
|
|
30
|
+
<ColorItem
|
|
31
|
+
title="Primary"
|
|
32
|
+
subtitle="Primary colour"
|
|
33
|
+
colors={{
|
|
34
|
+
full: "oklch(0.5 0.3 260)",
|
|
35
|
+
light: "color-mix(in oklch, oklch(0.5 0.3 260), white 95%)",
|
|
28
36
|
}}
|
|
29
37
|
/>
|
|
30
38
|
<ColorItem
|
|
31
39
|
title="Accent"
|
|
32
40
|
subtitle="Accent colour"
|
|
33
41
|
colors={{
|
|
34
|
-
full: "
|
|
35
|
-
light: "
|
|
42
|
+
full: "oklch(0.5 0.3 320)",
|
|
43
|
+
light: "color-mix(in oklch, oklch(0.5 0.3 320), white 95%)",
|
|
36
44
|
}}
|
|
37
45
|
/>
|
|
38
46
|
</ColorPalette>
|
|
@@ -45,32 +53,32 @@ Base styles and HTML elements, used by all Elements and Components.
|
|
|
45
53
|
title="Success"
|
|
46
54
|
subtitle="Success colour"
|
|
47
55
|
colors={{
|
|
48
|
-
full: "
|
|
49
|
-
light: "
|
|
56
|
+
full: "oklch(0.5 0.3 140)",
|
|
57
|
+
light: "color-mix(in oklch, oklch(0.5 0.3 140), white 95%)",
|
|
50
58
|
}}
|
|
51
59
|
/>
|
|
52
60
|
<ColorItem
|
|
53
61
|
title="Warning"
|
|
54
62
|
subtitle="Warning colour"
|
|
55
63
|
colors={{
|
|
56
|
-
full: "
|
|
57
|
-
light: "
|
|
64
|
+
full: "oklch(0.55 0.3 90)",
|
|
65
|
+
light: "color-mix(in oklch, oklch(0.55 0.3 90), white 95%)",
|
|
58
66
|
}}
|
|
59
67
|
/>
|
|
60
68
|
<ColorItem
|
|
61
69
|
title="Error"
|
|
62
70
|
subtitle="Error colour"
|
|
63
71
|
colors={{
|
|
64
|
-
full: "
|
|
65
|
-
light: "
|
|
72
|
+
full: "oklch(0.5 0.3 20)",
|
|
73
|
+
light: "color-mix(in oklch, oklch(0.5 0.3 20), white 95%)",
|
|
66
74
|
}}
|
|
67
75
|
/>
|
|
68
76
|
<ColorItem
|
|
69
77
|
title="Info"
|
|
70
78
|
subtitle="Info colour"
|
|
71
79
|
colors={{
|
|
72
|
-
full: "
|
|
73
|
-
light: "
|
|
80
|
+
full: "oklch(0.5 0.3 260)",
|
|
81
|
+
light: "color-mix(in oklch, oklch(0.5 0.3 260), white 95%)",
|
|
74
82
|
}}
|
|
75
83
|
/>
|
|
76
84
|
</ColorPalette>
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Meta, StoryObj } from "@storybook/html"
|
|
1
|
+
import { Meta, StoryObj } from "@storybook/html-vite"
|
|
2
2
|
import Component from "./button.twig"
|
|
3
3
|
import Icon from "../Icon/icon.twig"
|
|
4
4
|
import "./button.css"
|
|
@@ -17,9 +17,6 @@ const meta: Meta<ButtonType> = {
|
|
|
17
17
|
title: "Button",
|
|
18
18
|
as: ButtonTypes.BUTTON,
|
|
19
19
|
},
|
|
20
|
-
parameters: {
|
|
21
|
-
deepControls: { enabled: true },
|
|
22
|
-
},
|
|
23
20
|
argTypes: {
|
|
24
21
|
modifiers: {
|
|
25
22
|
options: Object.values(ButtonModifiers),
|
|
@@ -1,53 +1,63 @@
|
|
|
1
1
|
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
2
2
|
|
|
3
3
|
exports[`Atom/Button Button smoke-test 1`] = `
|
|
4
|
-
<
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
</
|
|
4
|
+
<div class="mx-page default">
|
|
5
|
+
<button class="mx-button "
|
|
6
|
+
type="button"
|
|
7
|
+
>
|
|
8
|
+
<span>
|
|
9
|
+
Button
|
|
10
|
+
</span>
|
|
11
|
+
</button>
|
|
12
|
+
</div>
|
|
11
13
|
`;
|
|
12
14
|
|
|
13
15
|
exports[`Atom/Button IconButton smoke-test 1`] = `
|
|
14
|
-
<
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
</
|
|
16
|
+
<div class="mx-page default">
|
|
17
|
+
<button class="mx-button "
|
|
18
|
+
type="button"
|
|
19
|
+
>
|
|
20
|
+
<span>
|
|
21
|
+
Button
|
|
22
|
+
</span>
|
|
23
|
+
<span class="mx-icon mx-icon--arrow-right ">
|
|
24
|
+
</span>
|
|
25
|
+
</button>
|
|
26
|
+
</div>
|
|
23
27
|
`;
|
|
24
28
|
|
|
25
29
|
exports[`Atom/Button Link smoke-test 1`] = `
|
|
26
|
-
<
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
</
|
|
30
|
+
<div class="mx-page default">
|
|
31
|
+
<a class="mx-button "
|
|
32
|
+
href="#"
|
|
33
|
+
>
|
|
34
|
+
<span>
|
|
35
|
+
Button
|
|
36
|
+
</span>
|
|
37
|
+
</a>
|
|
38
|
+
</div>
|
|
33
39
|
`;
|
|
34
40
|
|
|
35
41
|
exports[`Atom/Button Primary smoke-test 1`] = `
|
|
36
|
-
<
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
</
|
|
42
|
+
<div class="mx-page default">
|
|
43
|
+
<button class="mx-button mx-button--dark"
|
|
44
|
+
type="button"
|
|
45
|
+
>
|
|
46
|
+
<span>
|
|
47
|
+
Button
|
|
48
|
+
</span>
|
|
49
|
+
</button>
|
|
50
|
+
</div>
|
|
43
51
|
`;
|
|
44
52
|
|
|
45
53
|
exports[`Atom/Button Text smoke-test 1`] = `
|
|
46
|
-
<
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
</
|
|
54
|
+
<div class="mx-page default">
|
|
55
|
+
<button class="mx-button mx-button--light"
|
|
56
|
+
type="button"
|
|
57
|
+
>
|
|
58
|
+
<span>
|
|
59
|
+
Button
|
|
60
|
+
</span>
|
|
61
|
+
</button>
|
|
62
|
+
</div>
|
|
53
63
|
`;
|
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
|
|
5
5
|
@layer design-system.atoms {
|
|
6
6
|
.mx-button--dark {
|
|
7
|
-
--
|
|
8
|
-
--background: var(--colour-
|
|
7
|
+
--line-colour: var(--colour-link);
|
|
8
|
+
--background: var(--colour-link);
|
|
9
9
|
--foreground: var(--colour-foreground-reverse);
|
|
10
10
|
|
|
11
11
|
&.button--outline {
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
|
|
17
17
|
.mx-button--light {
|
|
18
18
|
border: transparent;
|
|
19
|
-
color: var(--link-colour, var(--colour-
|
|
19
|
+
color: var(--link-colour, var(--colour-link));
|
|
20
20
|
text-decoration-line: underline;
|
|
21
21
|
|
|
22
22
|
&:hover {
|
|
@@ -25,18 +25,18 @@
|
|
|
25
25
|
}
|
|
26
26
|
|
|
27
27
|
.mx-button--destructive {
|
|
28
|
-
--
|
|
29
|
-
--background: var(--colour-error
|
|
28
|
+
--line-colour: var(--colour-error);
|
|
29
|
+
--background: var(--colour-error);
|
|
30
30
|
--foreground: var(--colour-foreground-reverse);
|
|
31
31
|
|
|
32
32
|
&.button--outline {
|
|
33
33
|
--background: transparent;
|
|
34
|
-
--foreground: var(--colour-error
|
|
34
|
+
--foreground: var(--colour-error);
|
|
35
35
|
}
|
|
36
36
|
}
|
|
37
37
|
|
|
38
38
|
.mx-button--white {
|
|
39
|
-
--
|
|
39
|
+
--line-colour: var(--colour-foreground-reverse);
|
|
40
40
|
--background: var(--colour-foreground-reverse);
|
|
41
41
|
--foreground: var(--colour-foreground);
|
|
42
42
|
|
|
@@ -5,7 +5,6 @@
|
|
|
5
5
|
@layer design-system.atoms {
|
|
6
6
|
.mx-button {
|
|
7
7
|
--outline-offset: 1px;
|
|
8
|
-
--outline-width: 2px;
|
|
9
8
|
|
|
10
9
|
display: inline-flex;
|
|
11
10
|
inline-size: fit-content;
|
|
@@ -15,17 +14,13 @@
|
|
|
15
14
|
font-family: var(--font-family);
|
|
16
15
|
line-height: var(--line-height-ui);
|
|
17
16
|
border: var(--line-width, 2px) solid
|
|
18
|
-
var(--
|
|
17
|
+
var(--line-colour, var(--colour-border));
|
|
19
18
|
border-radius: var(--radius, var(--border-radius-l));
|
|
20
19
|
padding-block: var(--vertical-padding, var(--spacing-xxs));
|
|
21
20
|
padding-inline: var(--horizontal-padding, var(--spacing-m));
|
|
22
21
|
background-color: var(--background, var(--colour-background));
|
|
23
22
|
color: var(--foreground, var(--colour-foreground));
|
|
24
23
|
text-decoration-line: none;
|
|
25
|
-
transition:
|
|
26
|
-
0.2s color,
|
|
27
|
-
0.2s background-color,
|
|
28
|
-
0.2s border-color;
|
|
29
24
|
|
|
30
25
|
&:hover {
|
|
31
26
|
cursor: pointer;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { Meta, StoryObj } from "@storybook/html-vite"
|
|
2
|
+
import Component from "./definition-list.twig"
|
|
3
|
+
import "../_base.css"
|
|
4
|
+
import { DefinitionList as DefinitionListType } from "@pnx-mixtape/ids-shape"
|
|
5
|
+
|
|
6
|
+
const meta: Meta<DefinitionListType> = {
|
|
7
|
+
tags: ["autodocs", "ids-mvp"],
|
|
8
|
+
component: Component,
|
|
9
|
+
args: {
|
|
10
|
+
items: [
|
|
11
|
+
{
|
|
12
|
+
title: "Some title",
|
|
13
|
+
content: "Some content",
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
title: "Another title",
|
|
17
|
+
content: "More content",
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
title: "Yet another title",
|
|
21
|
+
content: "And even more content",
|
|
22
|
+
},
|
|
23
|
+
],
|
|
24
|
+
},
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
export default meta
|
|
28
|
+
type Story = StoryObj<DefinitionListType>
|
|
29
|
+
|
|
30
|
+
export const DefinitionList: Story = {
|
|
31
|
+
args: {},
|
|
32
|
+
}
|