@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,58 +1,62 @@
|
|
|
1
1
|
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
2
2
|
|
|
3
3
|
exports[`Form/Radio Checked smoke-test 1`] = `
|
|
4
|
-
<
|
|
5
|
-
<
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
<
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
<
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
</
|
|
4
|
+
<div class="mx-page default">
|
|
5
|
+
<fieldset class="mx-form-item mx-fieldset ">
|
|
6
|
+
<legend class="mx-legend ">
|
|
7
|
+
Do you like music?
|
|
8
|
+
</legend>
|
|
9
|
+
<div class="mx-radio ">
|
|
10
|
+
<input id="radio-set-yes"
|
|
11
|
+
type="radio"
|
|
12
|
+
name="music"
|
|
13
|
+
value="yes"
|
|
14
|
+
checked="checked"
|
|
15
|
+
>
|
|
16
|
+
<label for="radio-set-yes">
|
|
17
|
+
Yes
|
|
18
|
+
</label>
|
|
19
|
+
</div>
|
|
20
|
+
<div class="mx-radio ">
|
|
21
|
+
<input id="radio-set-no"
|
|
22
|
+
type="radio"
|
|
23
|
+
name="music"
|
|
24
|
+
value="no"
|
|
25
|
+
>
|
|
26
|
+
<label for="radio-set-no">
|
|
27
|
+
No
|
|
28
|
+
</label>
|
|
29
|
+
</div>
|
|
30
|
+
</fieldset>
|
|
31
|
+
</div>
|
|
30
32
|
`;
|
|
31
33
|
|
|
32
34
|
exports[`Form/Radio Radio smoke-test 1`] = `
|
|
33
|
-
<
|
|
34
|
-
<
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
<
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
<
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
</
|
|
35
|
+
<div class="mx-page default">
|
|
36
|
+
<fieldset class="mx-form-item mx-fieldset ">
|
|
37
|
+
<legend class="mx-legend ">
|
|
38
|
+
Do you like music?
|
|
39
|
+
</legend>
|
|
40
|
+
<div class="mx-radio ">
|
|
41
|
+
<input id="radio-set-yes"
|
|
42
|
+
type="radio"
|
|
43
|
+
name="music"
|
|
44
|
+
value="yes"
|
|
45
|
+
>
|
|
46
|
+
<label for="radio-set-yes">
|
|
47
|
+
Yes
|
|
48
|
+
</label>
|
|
49
|
+
</div>
|
|
50
|
+
<div class="mx-radio ">
|
|
51
|
+
<input id="radio-set-no"
|
|
52
|
+
type="radio"
|
|
53
|
+
name="music"
|
|
54
|
+
value="no"
|
|
55
|
+
>
|
|
56
|
+
<label for="radio-set-no">
|
|
57
|
+
No
|
|
58
|
+
</label>
|
|
59
|
+
</div>
|
|
60
|
+
</fieldset>
|
|
61
|
+
</div>
|
|
58
62
|
`;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Meta, StoryObj } from "@storybook/html"
|
|
1
|
+
import { Meta, StoryObj } from "@storybook/html-vite"
|
|
2
2
|
import Component from "./search-form.twig"
|
|
3
3
|
import "../form.css"
|
|
4
4
|
|
|
@@ -14,9 +14,6 @@ const meta: Meta<SearchFormType> = {
|
|
|
14
14
|
action: "#search",
|
|
15
15
|
id: "search-keyword",
|
|
16
16
|
},
|
|
17
|
-
parameters: {
|
|
18
|
-
deepControls: { enabled: true },
|
|
19
|
-
},
|
|
20
17
|
}
|
|
21
18
|
|
|
22
19
|
export default meta
|
|
@@ -1,26 +1,28 @@
|
|
|
1
1
|
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
2
2
|
|
|
3
3
|
exports[`Form/Search Search smoke-test 1`] = `
|
|
4
|
-
<
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
<input class="mx-input__text "
|
|
9
|
-
id="search-keyword"
|
|
10
|
-
name="search-form"
|
|
11
|
-
type="search"
|
|
12
|
-
value
|
|
13
|
-
aria-label="Search by keywords"
|
|
14
|
-
placeholder="Keywords..."
|
|
4
|
+
<div class="mx-page default">
|
|
5
|
+
<form class="mx-form mx-form--inline-button"
|
|
6
|
+
role="search"
|
|
7
|
+
action="#search"
|
|
15
8
|
>
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
9
|
+
<input class="mx-input__text "
|
|
10
|
+
id="search-keyword"
|
|
11
|
+
name="search-form"
|
|
12
|
+
type="search"
|
|
13
|
+
value
|
|
14
|
+
aria-label="Search by keywords"
|
|
15
|
+
placeholder="Keywords..."
|
|
16
|
+
>
|
|
17
|
+
<button class="mx-button mx-button--icon-only"
|
|
18
|
+
type="submit"
|
|
19
|
+
>
|
|
20
|
+
<span class="mx-icon mx-icon--search">
|
|
21
|
+
</span>
|
|
22
|
+
<span class="sr-only">
|
|
23
|
+
Search
|
|
24
|
+
</span>
|
|
25
|
+
</button>
|
|
26
|
+
</form>
|
|
27
|
+
</div>
|
|
26
28
|
`;
|
|
@@ -16,7 +16,7 @@ const Option = ({ label, value }: OptionProps): JSX.Element => (
|
|
|
16
16
|
<option value={value}>{label}</option>
|
|
17
17
|
)
|
|
18
18
|
|
|
19
|
-
type FormSelectProps = ComponentPropsWithoutRef<"select"> & {
|
|
19
|
+
export type FormSelectProps = ComponentPropsWithoutRef<"select"> & {
|
|
20
20
|
options: OptionProps[]
|
|
21
21
|
label?: string
|
|
22
22
|
className?: string
|
|
@@ -1,20 +1,22 @@
|
|
|
1
1
|
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
2
2
|
|
|
3
3
|
exports[`Form/Select Select smoke-test 1`] = `
|
|
4
|
-
<
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
</
|
|
4
|
+
<div class="mx-page default">
|
|
5
|
+
<select class="mx-input__select "
|
|
6
|
+
id="form-input-select"
|
|
7
|
+
name="example-form-input"
|
|
8
|
+
aria-label="Visually hidden label"
|
|
9
|
+
aria-describedby="unique-0"
|
|
10
|
+
>
|
|
11
|
+
<option value="1">
|
|
12
|
+
Option 1
|
|
13
|
+
</option>
|
|
14
|
+
<option value="2">
|
|
15
|
+
Option 2
|
|
16
|
+
</option>
|
|
17
|
+
<option value="3">
|
|
18
|
+
Option 3
|
|
19
|
+
</option>
|
|
20
|
+
</select>
|
|
21
|
+
</div>
|
|
20
22
|
`;
|
|
@@ -1,28 +1,30 @@
|
|
|
1
1
|
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
2
2
|
|
|
3
3
|
exports[`Form/Text Input/Divider InputDivider smoke-test 1`] = `
|
|
4
|
-
<div class="mx-
|
|
5
|
-
<div class="mx-form-item">
|
|
6
|
-
<
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
<
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
4
|
+
<div class="mx-page default">
|
|
5
|
+
<div class="mx-form-item mx-form-item--inline">
|
|
6
|
+
<div class="mx-form-item">
|
|
7
|
+
<label class="mx-label mx-label--inline"
|
|
8
|
+
for="input1"
|
|
9
|
+
>
|
|
10
|
+
Input field
|
|
11
|
+
</label>
|
|
12
|
+
<input class="mx-input__text"
|
|
13
|
+
type="text"
|
|
14
|
+
id="input1"
|
|
15
|
+
>
|
|
16
|
+
</div>
|
|
17
|
+
<div class="mx-input__divider">
|
|
18
|
+
OR
|
|
19
|
+
</div>
|
|
20
|
+
<div class="mx-form-item">
|
|
21
|
+
<input class="mx-input__text"
|
|
22
|
+
type="text"
|
|
23
|
+
id="input2"
|
|
24
|
+
placeholder="Other input"
|
|
25
|
+
aria-label="Other input field"
|
|
26
|
+
>
|
|
27
|
+
</div>
|
|
26
28
|
</div>
|
|
27
29
|
</div>
|
|
28
30
|
`;
|
|
@@ -1,25 +1,29 @@
|
|
|
1
1
|
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
2
2
|
|
|
3
3
|
exports[`Form/TextInput Icon smoke-test 1`] = `
|
|
4
|
-
<
|
|
4
|
+
<div class="mx-page default">
|
|
5
|
+
<span class="mx-input--icon mx-icon mx-icon--email">
|
|
6
|
+
<input class="mx-input__text "
|
|
7
|
+
id="form-input-text"
|
|
8
|
+
name="example-form-input"
|
|
9
|
+
type="email"
|
|
10
|
+
value
|
|
11
|
+
aria-label="Visually hidden label"
|
|
12
|
+
placeholder="A text field"
|
|
13
|
+
>
|
|
14
|
+
</span>
|
|
15
|
+
</div>
|
|
16
|
+
`;
|
|
17
|
+
|
|
18
|
+
exports[`Form/TextInput TextInput smoke-test 1`] = `
|
|
19
|
+
<div class="mx-page default">
|
|
5
20
|
<input class="mx-input__text "
|
|
6
21
|
id="form-input-text"
|
|
7
22
|
name="example-form-input"
|
|
8
|
-
type="
|
|
23
|
+
type="text"
|
|
9
24
|
value
|
|
10
25
|
aria-label="Visually hidden label"
|
|
11
26
|
placeholder="A text field"
|
|
12
27
|
>
|
|
13
|
-
</
|
|
14
|
-
`;
|
|
15
|
-
|
|
16
|
-
exports[`Form/TextInput TextInput smoke-test 1`] = `
|
|
17
|
-
<input class="mx-input__text "
|
|
18
|
-
id="form-input-text"
|
|
19
|
-
name="example-form-input"
|
|
20
|
-
type="text"
|
|
21
|
-
value
|
|
22
|
-
aria-label="Visually hidden label"
|
|
23
|
-
placeholder="A text field"
|
|
24
|
-
>
|
|
28
|
+
</div>
|
|
25
29
|
`;
|
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
2
2
|
|
|
3
3
|
exports[`Form/Textarea TextArea smoke-test 1`] = `
|
|
4
|
-
<
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
4
|
+
<div class="mx-page default">
|
|
5
|
+
<textarea class="mx-input__textarea "
|
|
6
|
+
id="form-input-textarea"
|
|
7
|
+
name="example-form-input"
|
|
8
|
+
aria-label="Visually hidden label"
|
|
9
|
+
aria-describedby="unique-0"
|
|
10
|
+
>
|
|
11
|
+
</textarea>
|
|
12
|
+
</div>
|
|
11
13
|
`;
|
package/src/Form/form.css
CHANGED
|
@@ -29,6 +29,9 @@
|
|
|
29
29
|
|
|
30
30
|
@layer design-system.atoms {
|
|
31
31
|
:is(.mx-input__text, .mx-input__select, .mx-input__textarea) {
|
|
32
|
+
--outline-size: var(--line-width, 2px);
|
|
33
|
+
--outline-offset: calc(var(--outline-size, 2px) * -1);
|
|
34
|
+
|
|
32
35
|
box-shadow: none;
|
|
33
36
|
font: inherit;
|
|
34
37
|
letter-spacing: inherit;
|
|
@@ -46,10 +49,6 @@
|
|
|
46
49
|
line-height: var(--line-height-ui);
|
|
47
50
|
block-size: var(--form-element-height, var(--spacing-xxl));
|
|
48
51
|
|
|
49
|
-
&:focus-visible {
|
|
50
|
-
outline-offset: calc(var(--line-width, 2px) * -1);
|
|
51
|
-
}
|
|
52
|
-
|
|
53
52
|
&::placeholder {
|
|
54
53
|
color: var(--placeholder-colour, var(--colour-foreground-alt));
|
|
55
54
|
opacity: 1;
|
|
@@ -61,11 +60,11 @@
|
|
|
61
60
|
}
|
|
62
61
|
|
|
63
62
|
&.error {
|
|
64
|
-
border-color: var(--error-foreground, var(--colour-error
|
|
63
|
+
border-color: var(--error-foreground, var(--colour-error));
|
|
65
64
|
}
|
|
66
65
|
|
|
67
66
|
&.success {
|
|
68
|
-
border-color: var(--success-foreground, var(--colour-success
|
|
67
|
+
border-color: var(--success-foreground, var(--colour-success));
|
|
69
68
|
}
|
|
70
69
|
}
|
|
71
70
|
|
|
@@ -117,14 +116,11 @@
|
|
|
117
116
|
}
|
|
118
117
|
|
|
119
118
|
&:has(.error)::before {
|
|
120
|
-
background-color: var(--error-foreground, var(--colour-error
|
|
119
|
+
background-color: var(--error-foreground, var(--colour-error));
|
|
121
120
|
}
|
|
122
121
|
|
|
123
122
|
&:has(.success)::before {
|
|
124
|
-
background-color: var(
|
|
125
|
-
--success-foreground,
|
|
126
|
-
var(--colour-success-foreground)
|
|
127
|
-
);
|
|
123
|
+
background-color: var(--success-foreground, var(--colour-success));
|
|
128
124
|
}
|
|
129
125
|
}
|
|
130
126
|
}
|
|
@@ -145,10 +141,8 @@
|
|
|
145
141
|
var(--line-colour, var(--line-colour, var(--colour-border)));
|
|
146
142
|
|
|
147
143
|
&:has(.mx-input__text:focus-visible) {
|
|
148
|
-
--outline-size
|
|
149
|
-
|
|
150
|
-
outline: var(--outline-width, var(--outline-size))
|
|
151
|
-
var(--outline-style, solid) var(--outline-color, currentcolor);
|
|
144
|
+
outline: var(--outline-size) var(--outline-style, solid)
|
|
145
|
+
var(--outline-color, currentcolor);
|
|
152
146
|
outline-offset: calc(var(--line-width, 2px) * -1);
|
|
153
147
|
}
|
|
154
148
|
|
|
@@ -212,11 +206,6 @@
|
|
|
212
206
|
background-position: center;
|
|
213
207
|
}
|
|
214
208
|
|
|
215
|
-
&:focus-visible {
|
|
216
|
-
outline: var(--line-width, 2px) auto var(--outline-color);
|
|
217
|
-
outline-offset: 0;
|
|
218
|
-
}
|
|
219
|
-
|
|
220
209
|
&[disabled] {
|
|
221
210
|
&::after {
|
|
222
211
|
opacity: var(--disabled-opacity, 0.6);
|
|
@@ -235,11 +224,11 @@
|
|
|
235
224
|
}
|
|
236
225
|
|
|
237
226
|
&.error {
|
|
238
|
-
border-color: var(--error-foreground, var(--colour-error
|
|
227
|
+
border-color: var(--error-foreground, var(--colour-error));
|
|
239
228
|
}
|
|
240
229
|
|
|
241
230
|
&.success {
|
|
242
|
-
border-color: var(--success-foreground, var(--colour-success
|
|
231
|
+
border-color: var(--success-foreground, var(--colour-success));
|
|
243
232
|
}
|
|
244
233
|
}
|
|
245
234
|
}
|
|
@@ -280,11 +269,6 @@
|
|
|
280
269
|
}
|
|
281
270
|
}
|
|
282
271
|
|
|
283
|
-
&:focus-visible {
|
|
284
|
-
outline: var(--line-width, 2px) auto var(--outline-color);
|
|
285
|
-
outline-offset: 0;
|
|
286
|
-
}
|
|
287
|
-
|
|
288
272
|
&[disabled] {
|
|
289
273
|
&::after {
|
|
290
274
|
opacity: var(--disabled-opacity, 0.6);
|
|
@@ -303,15 +287,18 @@
|
|
|
303
287
|
}
|
|
304
288
|
|
|
305
289
|
&.error {
|
|
306
|
-
border-color: var(--error-foreground, var(--colour-error
|
|
290
|
+
border-color: var(--error-foreground, var(--colour-error));
|
|
307
291
|
}
|
|
308
292
|
|
|
309
293
|
&.success {
|
|
310
|
-
border-color: var(--success-foreground, var(--colour-success
|
|
294
|
+
border-color: var(--success-foreground, var(--colour-success));
|
|
311
295
|
}
|
|
312
296
|
}
|
|
313
297
|
|
|
314
298
|
:is(.mx-radio, .mx-checkbox) {
|
|
299
|
+
--outline-size: var(--line-width, 2px);
|
|
300
|
+
--outline-offset: calc(var(--outline-size, 2px) * -1);
|
|
301
|
+
|
|
315
302
|
margin-block-end: var(--spacing-xxxs);
|
|
316
303
|
display: flex;
|
|
317
304
|
align-items: center;
|
|
@@ -343,6 +330,9 @@
|
|
|
343
330
|
|
|
344
331
|
@layer design-system.atoms {
|
|
345
332
|
.mx-input__select {
|
|
333
|
+
--outline-size: var(--line-width, 2px);
|
|
334
|
+
--outline-offset: calc(var(--outline-size, 2px) * -1);
|
|
335
|
+
|
|
346
336
|
appearance: none;
|
|
347
337
|
cursor: pointer;
|
|
348
338
|
background-color: var(--background, var(--colour-background));
|
|
@@ -377,6 +367,9 @@
|
|
|
377
367
|
|
|
378
368
|
@layer design-system.atoms {
|
|
379
369
|
.mx-input__textarea {
|
|
370
|
+
--outline-size: var(--line-width, 2px);
|
|
371
|
+
--outline-offset: calc(var(--outline-size, 2px) * -1);
|
|
372
|
+
|
|
380
373
|
block-size: calc(4 * var(--form-element-height, var(--spacing-xxl)));
|
|
381
374
|
inline-size: 100%;
|
|
382
375
|
}
|
|
@@ -466,14 +459,11 @@
|
|
|
466
459
|
|
|
467
460
|
.mx-error-message::before {
|
|
468
461
|
mask-image: svg-load("./images/form-error.svg");
|
|
469
|
-
background-color: var(--error-foreground, var(--colour-error
|
|
462
|
+
background-color: var(--error-foreground, var(--colour-error));
|
|
470
463
|
}
|
|
471
464
|
|
|
472
465
|
.mx-success-message::before {
|
|
473
466
|
mask-image: svg-load("./images/form-success.svg");
|
|
474
|
-
background-color: var(
|
|
475
|
-
--success-foreground,
|
|
476
|
-
var(--colour-success-foreground)
|
|
477
|
-
);
|
|
467
|
+
background-color: var(--success-foreground, var(--colour-success));
|
|
478
468
|
}
|
|
479
469
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Meta, StoryObj } from "@storybook/html"
|
|
1
|
+
import { Meta, StoryObj } from "@storybook/html-vite"
|
|
2
2
|
import Component from "./footer.twig"
|
|
3
3
|
import Link from "../../Atom/Link/link.twig"
|
|
4
4
|
import Icon from "../../Atom/Icon/icon.twig"
|
|
@@ -12,7 +12,6 @@ import {
|
|
|
12
12
|
IconSizeModifier,
|
|
13
13
|
FooterModifier,
|
|
14
14
|
} from "@pnx-mixtape/ids-shape"
|
|
15
|
-
import { Page } from "../../../.storybook/decorators"
|
|
16
15
|
import { Icons } from "../../enums"
|
|
17
16
|
|
|
18
17
|
const meta: Meta<FooterType> = {
|
|
@@ -67,10 +66,6 @@ const meta: Meta<FooterType> = {
|
|
|
67
66
|
],
|
|
68
67
|
copyright: "© 2025 Company Name",
|
|
69
68
|
},
|
|
70
|
-
parameters: {
|
|
71
|
-
deepControls: { enabled: true },
|
|
72
|
-
},
|
|
73
|
-
decorators: [Page],
|
|
74
69
|
}
|
|
75
70
|
|
|
76
71
|
export default meta
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
2
2
|
|
|
3
3
|
exports[`Layout/Footer Everything smoke-test 1`] = `
|
|
4
|
-
<div class="mx-page">
|
|
5
|
-
<footer class="mx-footer mx-section
|
|
4
|
+
<div class="mx-page default">
|
|
5
|
+
<footer class="mx-footer mx-section--top-l mx-section--bottom-m mx-background--reverse">
|
|
6
6
|
<div class="mx-footer__inner">
|
|
7
7
|
<img alt="Mixtape"
|
|
8
8
|
src="./mixtape-logo.png"
|
|
@@ -129,8 +129,8 @@ exports[`Layout/Footer Everything smoke-test 1`] = `
|
|
|
129
129
|
`;
|
|
130
130
|
|
|
131
131
|
exports[`Layout/Footer Footer smoke-test 1`] = `
|
|
132
|
-
<div class="mx-page">
|
|
133
|
-
<footer class="mx-footer mx-section
|
|
132
|
+
<div class="mx-page default">
|
|
133
|
+
<footer class="mx-footer mx-section--top-l mx-section--bottom-m mx-background--reverse">
|
|
134
134
|
<div class="mx-footer__inner">
|
|
135
135
|
<img alt="Mixtape"
|
|
136
136
|
src="./mixtape-logo.png"
|
|
@@ -187,8 +187,8 @@ exports[`Layout/Footer Footer smoke-test 1`] = `
|
|
|
187
187
|
`;
|
|
188
188
|
|
|
189
189
|
exports[`Layout/Footer Light smoke-test 1`] = `
|
|
190
|
-
<div class="mx-page">
|
|
191
|
-
<footer class="mx-footer mx-section
|
|
190
|
+
<div class="mx-page default">
|
|
191
|
+
<footer class="mx-footer mx-section--top-l mx-section--bottom-m mx-background--alt">
|
|
192
192
|
<div class="mx-footer__inner">
|
|
193
193
|
<img alt="Mixtape"
|
|
194
194
|
src="./mixtape-logo.png"
|
|
@@ -245,8 +245,8 @@ exports[`Layout/Footer Light smoke-test 1`] = `
|
|
|
245
245
|
`;
|
|
246
246
|
|
|
247
247
|
exports[`Layout/Footer NoMenu smoke-test 1`] = `
|
|
248
|
-
<div class="mx-page">
|
|
249
|
-
<footer class="mx-footer mx-section
|
|
248
|
+
<div class="mx-page default">
|
|
249
|
+
<footer class="mx-footer mx-section--top-l mx-section--bottom-m mx-background--reverse">
|
|
250
250
|
<div class="mx-footer__inner">
|
|
251
251
|
<img alt="Mixtape"
|
|
252
252
|
src="./mixtape-logo.png"
|
|
@@ -276,8 +276,8 @@ exports[`Layout/Footer NoMenu smoke-test 1`] = `
|
|
|
276
276
|
`;
|
|
277
277
|
|
|
278
278
|
exports[`Layout/Footer WithAcknowledgment smoke-test 1`] = `
|
|
279
|
-
<div class="mx-page">
|
|
280
|
-
<footer class="mx-footer mx-section
|
|
279
|
+
<div class="mx-page default">
|
|
280
|
+
<footer class="mx-footer mx-section--top-l mx-section--bottom-m mx-background--reverse">
|
|
281
281
|
<div class="mx-footer__inner">
|
|
282
282
|
<div class="mx-footer__aoc mx-text--s">
|
|
283
283
|
We acknowledge the traditional owners and custodians of country throughout Australia and acknowledges their continuing connection to land, waters and community. We pay our respects to the people, the cultures and the elders past, present and emerging.
|