@pnx-mixtape/mxds 0.0.6 → 0.0.7
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/package.json +2 -2
- package/src/Atom/Button/Button.stories.ts +4 -3
- package/src/Atom/Button/__snapshots__/Button.stories.tsx.snap +2 -2
- package/src/Atom/Button/_buttons.css +1 -1
- package/src/Atom/Button/button.twig +1 -1
- package/src/Atom/Heading/__snapshots__/Heading.stories.ts.snap +1 -1
- package/src/Atom/Heading/heading.twig +4 -1
- package/src/Atom/Icon/__snapshots__/Icon.stories.tsx.snap +3 -3
- package/src/Atom/Icon/icon.twig +1 -1
- package/src/Atom/Link/Link.stories.ts +8 -7
- package/src/Atom/Link/__snapshots__/Link.stories.ts.snap +5 -9
- package/src/Atom/Link/__snapshots__/Link.stories.tsx.snap +3 -3
- package/src/Atom/Link/_links.css +12 -2
- package/src/Atom/Link/link.twig +6 -4
- package/src/Atom/Media/Media.stories.ts +9 -9
- package/src/Atom/Media/__snapshots__/Media.stories.ts.snap +1 -1
- package/src/Atom/Media/__snapshots__/Media.stories.tsx.snap +1 -1
- package/src/Atom/Media/media.twig +6 -2
- package/src/Atom/_generic.css +0 -13
- package/src/Component/Accordion/Accordion.stories.ts +9 -7
- package/src/Component/Accordion/__snapshots__/Accordion.stories.ts.snap +2 -2
- package/src/Component/Accordion/__snapshots__/Accordion.stories.tsx.snap +4 -4
- package/src/Component/Accordion/accordion-item.twig +1 -1
- package/src/Component/Accordion/accordion.twig +3 -1
- package/src/Component/Breadcrumb/Breadcrumb.stories.ts +23 -5
- package/src/Component/Breadcrumb/__snapshots__/Breadcrumb.stories.ts.snap +15 -8
- package/src/Component/Breadcrumb/__snapshots__/Breadcrumb.stories.tsx.snap +6 -6
- package/src/Component/Breadcrumb/breadcrumb.css +7 -3
- package/src/Component/Breadcrumb/breadcrumb.twig +14 -12
- package/src/Component/Callout/Callout.stories.ts +5 -4
- package/src/Component/Callout/__snapshots__/Callout.stories.ts.snap +1 -1
- package/src/Component/Callout/callout.twig +1 -1
- package/src/Component/Card/Card.stories.ts +47 -20
- package/src/Component/Card/Card.stories.tsx +5 -4
- package/src/Component/Card/__snapshots__/Card.stories.ts.snap +123 -49
- package/src/Component/Card/__snapshots__/Card.stories.tsx.snap +18 -18
- package/src/Component/Card/card.css +57 -43
- package/src/Component/Card/card.twig +13 -13
- package/src/Component/ContentBlock/ContentBlock.stories.ts +73 -6
- package/src/Component/ContentBlock/ContentBlock.stories.tsx +19 -10
- package/src/Component/ContentBlock/ContentBlock.tsx +25 -17
- package/src/Component/ContentBlock/__snapshots__/ContentBlock.stories.ts.snap +137 -5
- package/src/Component/ContentBlock/__snapshots__/ContentBlock.stories.tsx.snap +21 -14
- package/src/Component/ContentBlock/content-block.css +21 -10
- package/src/Component/ContentBlock/content-block.twig +21 -11
- package/src/Component/DropMenu/Components/DropMenuItem.tsx +1 -1
- package/src/Component/DropMenu/DropMenu.stories.ts +1 -1
- package/src/Component/DropMenu/DropMenu.tsx +6 -6
- package/src/Component/DropMenu/__snapshots__/DropMenu.stories.ts.snap +2 -2
- package/src/Component/DropMenu/__snapshots__/DropMenu.stories.tsx.snap +2 -2
- package/src/Component/DropMenu/drop-menu.css +2 -2
- package/src/Component/DropMenu/drop-menu.twig +2 -2
- package/src/Component/GlobalAlert/GlobalAlert.stories.ts +5 -6
- package/src/Component/GlobalAlert/__snapshots__/GlobalAlert.stories.tsx.snap +7 -7
- package/src/Component/GlobalAlert/global-alert.css +1 -1
- package/src/Component/GlobalAlert/global-alert.twig +1 -1
- package/src/Component/HeroBanner/HeroBanner.stories.ts +17 -12
- package/src/Component/HeroBanner/__snapshots__/HeroBanner.stories.ts.snap +11 -11
- package/src/Component/HeroBanner/__snapshots__/HeroBanner.stories.tsx.snap +9 -9
- package/src/Component/HeroBanner/hero-banner.twig +2 -2
- package/src/Component/InPageAlert/InPageAlert.stories.ts +4 -3
- package/src/Component/InPageAlert/__snapshots__/InPageAlert.stories.ts.snap +1 -3
- package/src/Component/InPageAlert/in-page-alert.twig +1 -1
- package/src/Component/InPageNavigation/Elements/InPageNavigation.ts +2 -2
- package/src/Component/InPageNavigation/InPageNavigation.stories.ts +30 -7
- package/src/Component/InPageNavigation/InPageNavigation.tsx +4 -4
- package/src/Component/InPageNavigation/__snapshots__/InPageNavigation.stories.ts.snap +103 -5
- package/src/Component/InPageNavigation/__snapshots__/InPageNavigation.stories.tsx.snap +21 -21
- package/src/Component/InPageNavigation/in-page-navigation.css +3 -3
- package/src/Component/InPageNavigation/in-page-navigation.twig +13 -17
- package/src/Component/InPageNavigation/twig/{in-page-navigation-content-example.twig → content-example.twig} +2 -0
- package/src/Component/InPageNavigation/twig/in-page-navigation-story.twig +2 -0
- package/src/Component/LinkList/__snapshots__/LinkList.stories.tsx.snap +8 -8
- package/src/Component/LinkList/link-list.twig +1 -1
- package/src/Component/ListItem/ListItem.stories.ts +105 -0
- package/src/Component/ListItem/{Teaser.stories.tsx → ListItem.stories.tsx} +4 -5
- package/src/Component/ListItem/ListItem.tsx +55 -0
- package/src/Component/ListItem/__snapshots__/ListItem.stories.ts.snap +184 -0
- package/src/Component/ListItem/__snapshots__/ListItem.stories.tsx.snap +23 -0
- package/src/Component/ListItem/list-item.css +109 -0
- package/src/Component/ListItem/list-item.twig +32 -0
- package/src/Component/Navigation/Components/DropdownLevel.tsx +11 -6
- package/src/Component/Navigation/Dropdown.tsx +2 -2
- package/src/Component/Navigation/Elements/Navigation.ts +6 -5
- package/src/Component/Navigation/Navigation.stories.ts +261 -5
- package/src/Component/Navigation/Navigation.tsx +2 -2
- package/src/Component/Navigation/__snapshots__/Dropdown.stories.tsx.snap +4 -4
- package/src/Component/Navigation/__snapshots__/Navigation.stories.ts.snap +294 -7
- package/src/Component/Navigation/__snapshots__/Navigation.stories.tsx.snap +2 -2
- package/src/Component/Navigation/_navigation-collapsible.css +22 -12
- package/src/Component/Navigation/_navigation-dropdown.css +8 -8
- package/src/Component/Navigation/_navigation-mega.css +4 -4
- package/src/Component/Navigation/_navigation.css +9 -6
- package/src/Component/Navigation/menu.twig +42 -0
- package/src/Component/Navigation/navigation.css +1 -1
- package/src/Component/Navigation/navigation.twig +23 -9
- package/src/Component/Pagination/Components/PaginationItem.tsx +4 -4
- package/src/Component/Pagination/Pagination.stories.ts +55 -6
- package/src/Component/Pagination/Pagination.tsx +2 -2
- package/src/Component/Pagination/__snapshots__/Pagination.stories.ts.snap +36 -33
- package/src/Component/Pagination/__snapshots__/Pagination.stories.tsx.snap +11 -11
- package/src/Component/Pagination/pagination-item.twig +7 -0
- package/src/Component/Pagination/pagination.css +12 -9
- package/src/Component/Pagination/pagination.twig +12 -37
- package/src/Component/SideNavigation/SideNavigation.stories.ts +97 -0
- package/src/Component/SideNavigation/__snapshots__/SideNavigation.stories.ts.snap +86 -0
- package/src/Component/SideNavigation/side-navigation.css +78 -0
- package/src/Component/SideNavigation/side-navigation.twig +35 -0
- package/src/Component/SideNavigation/twig/side-navigation-story.twig +7 -0
- package/src/Component/SocialLinks/SocialLinks.stories.ts +58 -0
- package/src/Component/SocialLinks/__snapshots__/SocialLinks.stories.ts.snap +32 -0
- package/src/Component/SocialLinks/social-links.css +17 -0
- package/src/Component/SocialLinks/social-links.twig +6 -0
- package/src/Component/SocialShare/__snapshots__/SocialShare.stories.tsx.snap +3 -3
- package/src/Component/Steps/Steps.stories.ts +88 -0
- package/src/Component/Steps/__snapshots__/Steps.stories.ts.snap +111 -0
- package/src/Component/Steps/step-item.twig +11 -0
- package/src/Component/Steps/steps.css +99 -0
- package/src/Component/Steps/steps.entry.js +0 -0
- package/src/Component/Steps/steps.twig +18 -0
- package/src/Component/Sticky/Sticky.stories.ts +3 -0
- package/src/Component/Sticky/__snapshots__/Sticky.stories.ts.snap +7 -8
- package/src/Component/Sticky/sticky.twig +2 -20
- package/src/Component/Tabs/Components/Tab.tsx +1 -2
- package/src/Component/Tabs/Components/TabDropMenu.tsx +1 -1
- package/src/Component/Tabs/Components/TabList.tsx +1 -1
- package/src/Component/Tabs/Components/TabPanel.tsx +2 -2
- package/src/Component/Tabs/Elements/Tabs.ts +98 -49
- package/src/Component/Tabs/Tabs.stories.ts +45 -8
- package/src/Component/Tabs/Tabs.stories.tsx +3 -3
- package/src/Component/Tabs/Tabs.tsx +2 -2
- package/src/Component/Tabs/__snapshots__/Tabs.stories.ts.snap +46 -92
- package/src/Component/Tabs/__snapshots__/Tabs.stories.tsx.snap +11 -14
- package/src/Component/Tabs/tab-item.twig +11 -0
- package/src/Component/Tabs/tabs.css +20 -17
- package/src/Component/Tabs/tabs.twig +10 -46
- package/src/Component/Tag/__snapshots__/Tag.stories.tsx.snap +1 -1
- package/src/Component/Tag/tags.twig +1 -1
- package/src/Component/Tile/__snapshots__/Tile.stories.tsx.snap +4 -4
- package/src/Form/Checkbox/Checkbox.stories.ts +39 -0
- package/src/Form/Checkbox/FormCheckbox.tsx +3 -3
- package/src/Form/Checkbox/__snapshots__/Checkbox.stories.ts.snap +28 -0
- package/src/Form/Checkbox/input-checkbox.twig +27 -24
- package/src/Form/Description/Description.stories.ts +10 -7
- package/src/Form/Description/FormDescription.tsx +3 -3
- package/src/Form/Description/FormStatus.stories.ts +31 -0
- package/src/Form/Description/__snapshots__/Description.stories.ts.snap +2 -9
- package/src/Form/Description/__snapshots__/FormDescription.stories.tsx.snap +1 -1
- package/src/Form/Description/__snapshots__/FormStatus.stories.ts.snap +19 -0
- package/src/Form/Description/form-description.twig +4 -3
- package/src/Form/Description/form-status.twig +10 -0
- package/src/Form/Form/FormTitle.tsx +1 -1
- package/src/Form/Form/__snapshots__/FormTitle.stories.tsx.snap +1 -1
- package/src/Form/Form/form.twig +14 -0
- package/src/Form/Form/twig/form-example.twig +4 -4
- package/src/Form/FormItem/FormItem.stories.ts +119 -0
- package/src/Form/{Item → FormItem}/FormItem.tsx +1 -1
- package/src/Form/FormItem/__snapshots__/FormItem.stories.ts.snap +133 -0
- package/src/Form/{Item → FormItem}/__snapshots__/FormItem.stories.tsx.snap +24 -16
- package/src/Form/FormItem/form-item.twig +22 -0
- package/src/Form/Label/FormLabel.tsx +1 -1
- package/src/Form/Label/Label.stories.ts +16 -19
- package/src/Form/Label/__snapshots__/FormLabel.stories.tsx.snap +6 -2
- package/src/Form/Label/__snapshots__/Label.stories.ts.snap +11 -9
- package/src/Form/Label/label.twig +13 -2
- package/src/Form/Radio/FormRadio.tsx +2 -2
- package/src/Form/Radio/Radio.stories.ts +72 -0
- package/src/Form/Radio/__snapshots__/Radio.stories.ts.snap +58 -0
- package/src/Form/Radio/input-radio.twig +18 -24
- package/src/Form/Search/Search.stories.ts +50 -0
- package/src/Form/Search/__snapshots__/Search.stories.ts.snap +26 -0
- package/src/Form/Search/search-form.twig +11 -0
- package/src/Form/Select/FormSelect.tsx +1 -1
- package/src/Form/Select/Select.stories.ts +24 -31
- package/src/Form/Select/__snapshots__/FormSelect.stories.tsx.snap +1 -1
- package/src/Form/Select/__snapshots__/Select.stories.ts.snap +16 -144
- package/src/Form/Select/input-select.twig +25 -0
- package/src/Form/TextInput/FormText.tsx +4 -7
- package/src/Form/TextInput/TextInput.stories.ts +23 -41
- package/src/Form/TextInput/__snapshots__/FormText.stories.tsx.snap +1 -1
- package/src/Form/TextInput/__snapshots__/InputDivider.stories.ts.snap +10 -14
- package/src/Form/TextInput/__snapshots__/TextInput.stories.ts.snap +20 -96
- package/src/Form/TextInput/input-divider.twig +7 -8
- package/src/Form/TextInput/input-text-icon.twig +5 -5
- package/src/Form/TextInput/input-text.twig +31 -5
- package/src/Form/Textarea/FormTextarea.tsx +4 -7
- package/src/Form/Textarea/Textarea.stories.ts +11 -8
- package/src/Form/Textarea/__snapshots__/FormTextarea.stories.tsx.snap +1 -1
- package/src/Form/Textarea/__snapshots__/Textarea.stories.ts.snap +8 -16
- package/src/Form/Textarea/input-textarea.twig +21 -0
- package/src/Form/form.css +103 -103
- package/src/Layout/Footer/Footer.stories.ts +196 -4
- package/src/Layout/Footer/Footer.stories.tsx +5 -9
- package/src/Layout/Footer/Footer.tsx +21 -19
- package/src/Layout/Footer/__snapshots__/Footer.stories.ts.snap +296 -78
- package/src/Layout/Footer/__snapshots__/Footer.stories.tsx.snap +52 -58
- package/src/Layout/Footer/footer.css +102 -25
- package/src/Layout/Footer/footer.twig +29 -23
- package/src/Layout/Grid/Grid.stories.ts +15 -14
- package/src/Layout/Grid/Grid.stories.tsx +14 -14
- package/src/Layout/Grid/Grid.tsx +10 -10
- package/src/Layout/Grid/__snapshots__/Grid.stories.tsx.snap +10 -10
- package/src/Layout/Grid/grid-item.twig +1 -1
- package/src/Layout/Grid/grid.twig +7 -4
- package/src/Layout/Header/Components/GlobalToggle.tsx +0 -1
- package/src/Layout/Header/Components/Logo.tsx +1 -1
- package/src/Layout/Header/Elements/GlobalToggle.ts +6 -1
- package/src/Layout/Header/Header.stories.ts +242 -7
- package/src/Layout/Header/Header.tsx +22 -19
- package/src/Layout/Header/__snapshots__/Header.stories.ts.snap +464 -100
- package/src/Layout/Header/__snapshots__/Header.stories.tsx.snap +50 -46
- package/src/Layout/Header/_header.css +28 -21
- package/src/Layout/Header/_toggles.css +2 -2
- package/src/Layout/Header/header-stacked.twig +49 -0
- package/src/Layout/Header/header.twig +42 -21
- package/src/Layout/Header/twig/logo.twig +2 -2
- package/src/Layout/Masthead/Masthead.stories.ts +42 -6
- package/src/Layout/Masthead/__snapshots__/Masthead.stories.ts.snap +44 -27
- package/src/Layout/Masthead/masthead.css +5 -14
- package/src/Layout/Masthead/masthead.twig +25 -7
- package/src/Layout/Page/Page.tsx +2 -2
- package/src/Layout/Page/__snapshots__/Page.stories.tsx.snap +61 -59
- package/src/Layout/Page/page.css +19 -84
- package/src/Layout/Page/page.twig +8 -3
- package/src/Layout/Section/Section.stories.ts +12 -9
- package/src/Layout/Section/Section.stories.tsx +5 -9
- package/src/Layout/Section/Section.tsx +6 -10
- package/src/Layout/Section/SectionGrid.stories.tsx +5 -11
- package/src/Layout/Section/SectionGrid.tsx +8 -13
- package/src/Layout/Section/__snapshots__/Background.stories.ts.snap +12 -12
- package/src/Layout/Section/__snapshots__/Breakouts.stories.ts.snap +17 -17
- package/src/Layout/Section/__snapshots__/Flow.stories.ts.snap +18 -18
- package/src/Layout/Section/__snapshots__/Section.stories.ts.snap +4 -4
- package/src/Layout/Section/__snapshots__/Section.stories.tsx.snap +6 -6
- package/src/Layout/Section/__snapshots__/SectionGrid.stories.tsx.snap +6 -6
- package/src/Layout/Section/section.twig +1 -1
- package/src/Layout/Section/twig/section-background.twig +5 -5
- package/src/Layout/Section/twig/sections-breakout.twig +16 -16
- package/src/Layout/Section/twig/sections-flow.twig +17 -17
- package/src/Layout/Section/twig/sections-stacked.twig +8 -16
- package/src/Layout/Sidebar/Sidebar.stories.ts +25 -3
- package/src/Layout/Sidebar/Sidebar.stories.tsx +1 -1
- package/src/Layout/Sidebar/Sidebar.tsx +4 -4
- package/src/Layout/Sidebar/__snapshots__/Sidebar.stories.ts.snap +39 -16
- package/src/Layout/Sidebar/__snapshots__/Sidebar.stories.tsx.snap +6 -6
- package/src/Layout/Sidebar/sidebar.css +6 -6
- package/src/Layout/Sidebar/sidebar.twig +25 -16
- package/src/Utility/utilities.css +5 -2
- package/src/react.ts +1 -2
- package/dist/build/accordion.css +0 -108
- package/dist/build/accordion.entry.js +0 -139
- package/dist/build/accordion.entry.js.map +0 -1
- package/dist/build/base.css +0 -999
- package/dist/build/breadcrumb.css +0 -47
- package/dist/build/button.css +0 -132
- package/dist/build/callout.css +0 -11
- package/dist/build/card.css +0 -136
- package/dist/build/chunks/disclosure-widget-CQLPJ8Ta.js +0 -124
- package/dist/build/chunks/disclosure-widget-CQLPJ8Ta.js.map +0 -1
- package/dist/build/chunks/keyboard-C73DHu0c.js +0 -101
- package/dist/build/chunks/keyboard-C73DHu0c.js.map +0 -1
- package/dist/build/chunks/polyfills-CJ5uTmUJ.js +0 -749
- package/dist/build/chunks/polyfills-CJ5uTmUJ.js.map +0 -1
- package/dist/build/chunks/popover-wbPSyFRj.js +0 -654
- package/dist/build/chunks/popover-wbPSyFRj.js.map +0 -1
- package/dist/build/chunks/utilities-B4YZb689.js +0 -243
- package/dist/build/chunks/utilities-B4YZb689.js.map +0 -1
- package/dist/build/constants.css +0 -120
- package/dist/build/container-grid.css +0 -208
- package/dist/build/content-block.css +0 -23
- package/dist/build/dialog.css +0 -98
- package/dist/build/dialog.entry.js +0 -113
- package/dist/build/dialog.entry.js.map +0 -1
- package/dist/build/drop-menu.css +0 -78
- package/dist/build/drop-menu.entry.js +0 -129
- package/dist/build/drop-menu.entry.js.map +0 -1
- package/dist/build/drupal.css +0 -74
- package/dist/build/footer-menu.css +0 -32
- package/dist/build/footer.css +0 -61
- package/dist/build/form.css +0 -589
- package/dist/build/global-alert.css +0 -60
- package/dist/build/global-alert.entry.js +0 -68
- package/dist/build/global-alert.entry.js.map +0 -1
- package/dist/build/grid.css +0 -200
- package/dist/build/header.css +0 -131
- package/dist/build/header.entry.js +0 -98
- package/dist/build/header.entry.js.map +0 -1
- package/dist/build/hero-banner.css +0 -62
- package/dist/build/icon.css +0 -399
- package/dist/build/in-page-alert.css +0 -94
- package/dist/build/in-page-navigation.css +0 -17
- package/dist/build/in-page-navigation.entry.js +0 -89
- package/dist/build/in-page-navigation.entry.js.map +0 -1
- package/dist/build/link-list.css +0 -72
- package/dist/build/masthead.css +0 -39
- package/dist/build/nav-list.css +0 -26
- package/dist/build/navigation.css +0 -371
- package/dist/build/navigation.entry.js +0 -123
- package/dist/build/navigation.entry.js.map +0 -1
- package/dist/build/page.css +0 -184
- package/dist/build/pagination.css +0 -123
- package/dist/build/section.css +0 -163
- package/dist/build/sidebar.css +0 -105
- package/dist/build/sticky.css +0 -47
- package/dist/build/sticky.entry.js +0 -60
- package/dist/build/sticky.entry.js.map +0 -1
- package/dist/build/tabs.css +0 -106
- package/dist/build/tabs.entry.js +0 -161
- package/dist/build/tabs.entry.js.map +0 -1
- package/dist/build/tag.css +0 -67
- package/dist/build/tiles.css +0 -61
- package/dist/build/utilities.css +0 -175
- package/src/Atom/Button/twig/story-button.twig +0 -11
- package/src/Atom/Link/twig/story-link.twig +0 -11
- package/src/Atom/Media/twig/story-media.twig +0 -11
- package/src/Atom/NavList/NavList.stories.ts +0 -15
- package/src/Atom/NavList/__snapshots__/NavList.stories.ts.snap +0 -43
- package/src/Atom/NavList/nav-list.css +0 -23
- package/src/Atom/NavList/nav-list.twig +0 -25
- package/src/Component/Accordion/twig/accordion-story.twig +0 -13
- package/src/Component/Author/Author.stories.tsx +0 -18
- package/src/Component/Author/Author.tsx +0 -30
- package/src/Component/Author/__snapshots__/Author.stories.tsx.snap +0 -21
- package/src/Component/Callout/twig/callout-story.twig +0 -11
- package/src/Component/Card/twig/old-card.twig +0 -17
- package/src/Component/Card/twig/story-card.twig +0 -29
- package/src/Component/ContentBlock/twig/content-block-example.twig +0 -7
- package/src/Component/GlobalAlert/twig/story-global-alert.twig +0 -14
- package/src/Component/HeroBanner/twig/hero-banner-story.twig +0 -19
- package/src/Component/InPageAlert/twig/story-in-page-alert.twig +0 -11
- package/src/Component/InPageNavigation/twig/in-page-navigation-menu-example.twig +0 -6
- package/src/Component/ListItem/Teaser.tsx +0 -54
- package/src/Component/ListItem/__snapshots__/Teaser.stories.tsx.snap +0 -32
- package/src/Component/Navigation/Collapsible.stories.ts +0 -16
- package/src/Component/Navigation/Dropdown.stories.ts +0 -16
- package/src/Component/Navigation/MegaNav.stories.ts +0 -16
- package/src/Component/Navigation/__snapshots__/Collapsible.stories.ts.snap +0 -123
- package/src/Component/Navigation/__snapshots__/Dropdown.stories.ts.snap +0 -125
- package/src/Component/Navigation/navigation-collapsible.twig +0 -7
- package/src/Component/Navigation/navigation-dropdown.twig +0 -7
- package/src/Component/Navigation/navigation-mega-nav.twig +0 -7
- package/src/Component/Navigation/twig/navigation-subnav-list.twig +0 -108
- package/src/Component/Sticky/twig/sticky-example.twig +0 -4
- package/src/Component/Tabs/twig/panel.twig +0 -5
- package/src/Component/Tabs/twig/tab-list.twig +0 -26
- package/src/Form/Checkbox/Checkboxes.stories.ts +0 -47
- package/src/Form/Checkbox/__snapshots__/Checkboxes.stories.ts.snap +0 -115
- package/src/Form/Checkbox/input-checkbox-single.twig +0 -6
- package/src/Form/Description/ErrorMessage.stories.ts +0 -16
- package/src/Form/Description/__snapshots__/ErrorMessage.stories.ts.snap +0 -20
- package/src/Form/Description/form-error.twig +0 -5
- package/src/Form/Fieldset/Fieldset.stories.ts +0 -34
- package/src/Form/Fieldset/__snapshots__/Fieldset.stories.ts.snap +0 -23
- package/src/Form/Fieldset/fieldset.twig +0 -4
- package/src/Form/Radio/Radios.stories.ts +0 -47
- package/src/Form/Radio/__snapshots__/Radios.stories.ts.snap +0 -125
- package/src/Form/Search/TextInputWithInlineButton.stories.ts +0 -16
- package/src/Form/Search/__snapshots__/TextInputWithInlineButton.stories.ts.snap +0 -26
- package/src/Form/Search/input-text-inline-submit.twig +0 -8
- package/src/Form/Select/select.twig +0 -16
- package/src/Form/TextInput/TextInputWithIcon.stories.ts +0 -40
- package/src/Form/TextInput/__snapshots__/TextInputWithIcon.stories.ts.snap +0 -67
- package/src/Form/Textarea/textarea.twig +0 -5
- package/src/Layout/Footer/FooterMenu/FooterMenu.stories.ts +0 -15
- package/src/Layout/Footer/FooterMenu/__snapshots__/FooterMenu.stories.ts.snap +0 -101
- package/src/Layout/Footer/FooterMenu/footer-menu.css +0 -29
- package/src/Layout/Footer/FooterMenu/footer-menu.twig +0 -5
- package/src/Layout/Grid/twig/container-grid-dynamic.twig +0 -47
- package/src/Layout/Grid/twig/container-grid.twig +0 -46
- package/src/Layout/Grid/twig/grid-story.twig +0 -6
- package/src/Layout/Grid/twig/old-grid.twig +0 -46
- package/src/Layout/Header/Stacked/Stacked.stories.ts +0 -16
- package/src/Layout/Header/Stacked/__snapshots__/Stacked.stories.ts.snap +0 -353
- package/src/Layout/Header/Stacked/header-stacked.twig +0 -33
- package/src/Layout/Header/twig/global-header.twig +0 -4
- package/src/Layout/Section/twig/section-story.twig +0 -14
- /package/src/Form/{Item → FormItem}/FormItem.stories.tsx +0 -0
|
@@ -1,101 +1,25 @@
|
|
|
1
1
|
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
2
2
|
|
|
3
|
-
exports[`Form/
|
|
4
|
-
<
|
|
5
|
-
<
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
aria-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
<div class="form__description"
|
|
15
|
-
id="unique-0"
|
|
16
|
-
role="tooltip"
|
|
17
|
-
>
|
|
18
|
-
Help text that provides additional information about the field.
|
|
19
|
-
</div>
|
|
20
|
-
</div>
|
|
21
|
-
`;
|
|
22
|
-
|
|
23
|
-
exports[`Form/Text Input Small smoke-test 1`] = `
|
|
24
|
-
<div class="form__item">
|
|
25
|
-
<label for="input">
|
|
26
|
-
Input text field
|
|
27
|
-
</label>
|
|
28
|
-
<input type="text"
|
|
29
|
-
id="input"
|
|
30
|
-
aria-describedby="unique-0"
|
|
31
|
-
class="input--small"
|
|
32
|
-
placeholder
|
|
33
|
-
>
|
|
34
|
-
<div class="form__description"
|
|
35
|
-
id="unique-0"
|
|
36
|
-
role="tooltip"
|
|
37
|
-
>
|
|
38
|
-
Help text that provides additional information about the field.
|
|
39
|
-
</div>
|
|
40
|
-
</div>
|
|
41
|
-
`;
|
|
42
|
-
|
|
43
|
-
exports[`Form/Text Input Success smoke-test 1`] = `
|
|
44
|
-
<div class="form__item">
|
|
45
|
-
<label for="input">
|
|
46
|
-
Input text field
|
|
47
|
-
</label>
|
|
48
|
-
<input type="text"
|
|
49
|
-
id="input"
|
|
50
|
-
aria-describedby="unique-0"
|
|
51
|
-
class="success"
|
|
52
|
-
placeholder
|
|
53
|
-
>
|
|
54
|
-
<div class="form__description"
|
|
55
|
-
id="unique-0"
|
|
56
|
-
role="tooltip"
|
|
57
|
-
>
|
|
58
|
-
Help text that provides additional information about the field.
|
|
59
|
-
</div>
|
|
60
|
-
</div>
|
|
61
|
-
`;
|
|
62
|
-
|
|
63
|
-
exports[`Form/Text Input TextInput smoke-test 1`] = `
|
|
64
|
-
<div class="form__item">
|
|
65
|
-
<label for="input">
|
|
66
|
-
Input text field
|
|
67
|
-
</label>
|
|
68
|
-
<input type="text"
|
|
69
|
-
id="input"
|
|
70
|
-
aria-describedby="unique-0"
|
|
71
|
-
class
|
|
72
|
-
placeholder
|
|
73
|
-
>
|
|
74
|
-
<div class="form__description"
|
|
75
|
-
id="unique-0"
|
|
76
|
-
role="tooltip"
|
|
77
|
-
>
|
|
78
|
-
Help text that provides additional information about the field.
|
|
79
|
-
</div>
|
|
80
|
-
</div>
|
|
3
|
+
exports[`Form/TextInput Icon smoke-test 1`] = `
|
|
4
|
+
<span class="mx-input--icon mx-icon mx-icon--email">
|
|
5
|
+
<input class="mx-input__text "
|
|
6
|
+
id="form-input-text"
|
|
7
|
+
name="example-form-input"
|
|
8
|
+
type="email"
|
|
9
|
+
value
|
|
10
|
+
aria-label="Visually hidden label"
|
|
11
|
+
placeholder="A text field"
|
|
12
|
+
>
|
|
13
|
+
</span>
|
|
81
14
|
`;
|
|
82
15
|
|
|
83
|
-
exports[`Form/
|
|
84
|
-
<
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
placeholder
|
|
93
|
-
>
|
|
94
|
-
<div class="form__description"
|
|
95
|
-
id="unique-0"
|
|
96
|
-
role="tooltip"
|
|
97
|
-
>
|
|
98
|
-
Help text that provides additional information about the field.
|
|
99
|
-
</div>
|
|
100
|
-
</div>
|
|
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
|
+
>
|
|
101
25
|
`;
|
|
@@ -1,11 +1,10 @@
|
|
|
1
|
-
<div class="
|
|
2
|
-
<div class="
|
|
3
|
-
<label class="label--inline" for="input1{{ id }}">Input field</label>
|
|
4
|
-
<input type="text" id="input1{{ id }}"
|
|
1
|
+
<div class="mx-form-item mx-form-item--inline">
|
|
2
|
+
<div class="mx-form-item">
|
|
3
|
+
<label class="mx-label mx-label--inline" for="input1{{ id }}">Input field</label>
|
|
4
|
+
<input class="mx-input__text" type="text" id="input1{{ id }}">
|
|
5
5
|
</div>
|
|
6
|
-
<div class="input__divider">OR</div>
|
|
7
|
-
<div class="
|
|
8
|
-
<
|
|
9
|
-
<input type="text" id="input2{{ id }}" class="{{ modifier_class }}" placeholder="Other input">
|
|
6
|
+
<div class="mx-input__divider">OR</div>
|
|
7
|
+
<div class="mx-form-item">
|
|
8
|
+
<input class="mx-input__text" type="text" id="input2{{ id }}" placeholder="Other input" aria-label="Other input field">
|
|
10
9
|
</div>
|
|
11
10
|
</div>
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
<div class="
|
|
2
|
-
<label for="input{{ id }}">{{ label|default('Input text field') }}</label>
|
|
3
|
-
<span class="
|
|
4
|
-
<input type="{{ type|default('text') }}" id="input{{ id }}" aria-describedby="input{{ id }}Help"
|
|
1
|
+
<div class="mx-form-item">
|
|
2
|
+
<label class="mx-label" for="input{{ id }}">{{ label|default('Input text field') }}</label>
|
|
3
|
+
<span class="mx-input--icon mx-icon mx-icon--{{ icon|default('email') }}">
|
|
4
|
+
<input class="mx-input__text" type="{{ type|default('text') }}" id="input{{ id }}" aria-describedby="input{{ id }}Help" placeholder="{{ placeholder }}">
|
|
5
5
|
</span>
|
|
6
|
-
<div class="
|
|
6
|
+
<div class="mx-description" id="input{{ id }}Help" role="tooltip">{{ description|default('Help text that provides additional information about the field.') }}</div>
|
|
7
7
|
</div>
|
|
@@ -1,5 +1,31 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
{% set classes = [
|
|
2
|
+
'mx-input__text',
|
|
3
|
+
status == "invalid" ? "error" : null,
|
|
4
|
+
status == "valid" ? "success" : null,
|
|
5
|
+
] %}
|
|
6
|
+
{% set attributes = (attributes ?? create_attribute()).addClass(classes) %}
|
|
7
|
+
{% set status = status|default("default") %}
|
|
8
|
+
{% if hasDescription or status != "default" %}
|
|
9
|
+
{% set helpers = [
|
|
10
|
+
hasDescription ? "help-"~ id : null,
|
|
11
|
+
status != "default" ? "status-"~ id : null,
|
|
12
|
+
]|join(" ")|trim() %}
|
|
13
|
+
{% endif %}
|
|
14
|
+
|
|
15
|
+
{% if icon %}
|
|
16
|
+
<span class="mx-input--icon mx-icon mx-icon--{{ icon }}">
|
|
17
|
+
{% endif %}
|
|
18
|
+
<input{{ attributes }}
|
|
19
|
+
id="{{ id }}"
|
|
20
|
+
name="{{ name }}"
|
|
21
|
+
type="{{ type }}"
|
|
22
|
+
value="{{ value }}"
|
|
23
|
+
{% if label %} aria-label="{{ label }}"{% endif %}
|
|
24
|
+
{% if placeholder %} placeholder="{{ placeholder }}"{% endif %}
|
|
25
|
+
{% if helpers %} aria-describedby="{{ helpers }}"{% endif %}
|
|
26
|
+
{% if status == "invalid" %} aria-invalid="true"{% endif %}
|
|
27
|
+
{% if required %} required{% endif %}
|
|
28
|
+
/>
|
|
29
|
+
{% if icon %}
|
|
30
|
+
</span>
|
|
31
|
+
{% endif %}
|
|
@@ -27,13 +27,10 @@ const FormTextarea = ({
|
|
|
27
27
|
currentTarget,
|
|
28
28
|
}) => setInputValue(currentTarget.value)
|
|
29
29
|
|
|
30
|
-
const classes = classNames(
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
success: status === FormStatus.VALID,
|
|
35
|
-
},
|
|
36
|
-
)
|
|
30
|
+
const classes = classNames("mx-input__textarea", className, {
|
|
31
|
+
error: status === FormStatus.INVALID,
|
|
32
|
+
success: status === FormStatus.VALID,
|
|
33
|
+
})
|
|
37
34
|
|
|
38
35
|
return (
|
|
39
36
|
<textarea
|
|
@@ -1,16 +1,19 @@
|
|
|
1
1
|
import { Meta, StoryObj } from "@storybook/html"
|
|
2
|
-
import Component from "./textarea.twig"
|
|
2
|
+
import Component from "./input-textarea.twig"
|
|
3
3
|
import "../form.css"
|
|
4
|
+
import { FormTextArea as FormTextAreaType } from "@pnx-mixtape/ids-shape"
|
|
4
5
|
|
|
5
|
-
const meta: Meta<
|
|
6
|
-
|
|
7
|
-
tags: ["autodocs"],
|
|
6
|
+
const meta: Meta<FormTextAreaType> = {
|
|
7
|
+
tags: ["autodocs", "ids-mvp"],
|
|
8
8
|
component: Component,
|
|
9
|
+
args: {
|
|
10
|
+
id: "form-input-textarea",
|
|
11
|
+
name: "example-form-input",
|
|
12
|
+
label: "Visually hidden label",
|
|
13
|
+
},
|
|
9
14
|
}
|
|
10
15
|
|
|
11
16
|
export default meta
|
|
12
|
-
type Story = StoryObj<
|
|
17
|
+
type Story = StoryObj<FormTextAreaType>
|
|
13
18
|
|
|
14
|
-
export const
|
|
15
|
-
args: {},
|
|
16
|
-
}
|
|
19
|
+
export const TextArea: Story = {}
|
|
@@ -1,19 +1,11 @@
|
|
|
1
1
|
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
2
2
|
|
|
3
|
-
exports[`Form/Textarea
|
|
4
|
-
<
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
</textarea>
|
|
12
|
-
<div class="form__description"
|
|
13
|
-
id="unique-0"
|
|
14
|
-
role="tooltip"
|
|
15
|
-
>
|
|
16
|
-
Help text that provides additional information about the field.
|
|
17
|
-
</div>
|
|
18
|
-
</div>
|
|
3
|
+
exports[`Form/Textarea TextArea smoke-test 1`] = `
|
|
4
|
+
<textarea class="mx-input__textarea "
|
|
5
|
+
id="form-input-textarea"
|
|
6
|
+
name="example-form-input"
|
|
7
|
+
aria-label="Visually hidden label"
|
|
8
|
+
aria-describedby="unique-0"
|
|
9
|
+
>
|
|
10
|
+
</textarea>
|
|
19
11
|
`;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
{% set classes = [
|
|
2
|
+
'mx-input__textarea',
|
|
3
|
+
status == "invalid" ? "error" : null,
|
|
4
|
+
status == "valid" ? "success" : null,
|
|
5
|
+
] %}
|
|
6
|
+
{% set attributes = (attributes ?? create_attribute()).addClass(classes) %}
|
|
7
|
+
{% if hasDescription or status != "default" %}
|
|
8
|
+
{% set helpers = [
|
|
9
|
+
hasDescription ? "help-"~ id : null,
|
|
10
|
+
status != "default" ? "status-"~ id : null,
|
|
11
|
+
]|join(" ")|trim() %}
|
|
12
|
+
{% endif %}
|
|
13
|
+
|
|
14
|
+
<textarea{{ attributes }}
|
|
15
|
+
id="{{ id }}"
|
|
16
|
+
name="{{ name }}"
|
|
17
|
+
{% if label %} aria-label="{{ label }}"{% endif %}
|
|
18
|
+
{% if helpers %} aria-describedby="{{ helpers }}"{% endif %}
|
|
19
|
+
{% if status == "invalid" %} aria-invalid="true"{% endif %}
|
|
20
|
+
{% if required %} required{% endif %}
|
|
21
|
+
></textarea>
|
package/src/Form/form.css
CHANGED
|
@@ -3,13 +3,23 @@
|
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
5
|
@layer design-system.atoms {
|
|
6
|
-
.
|
|
6
|
+
.mx-form-item {
|
|
7
7
|
max-inline-size: var(--container-max-width);
|
|
8
|
+
}
|
|
8
9
|
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
10
|
+
.mx-form-item--inline {
|
|
11
|
+
display: flex;
|
|
12
|
+
align-items: flex-start;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
/**
|
|
16
|
+
* Form actions.
|
|
17
|
+
*/
|
|
18
|
+
.mx-form-actions {
|
|
19
|
+
display: flex;
|
|
20
|
+
flex-wrap: wrap;
|
|
21
|
+
align-items: center;
|
|
22
|
+
gap: var(--spacing-s);
|
|
13
23
|
}
|
|
14
24
|
}
|
|
15
25
|
|
|
@@ -18,20 +28,7 @@
|
|
|
18
28
|
*/
|
|
19
29
|
|
|
20
30
|
@layer design-system.atoms {
|
|
21
|
-
:is(
|
|
22
|
-
.input__text,
|
|
23
|
-
[type="text"],
|
|
24
|
-
[type="search"],
|
|
25
|
-
[type="tel"],
|
|
26
|
-
[type="url"],
|
|
27
|
-
[type="email"],
|
|
28
|
-
[type="password"],
|
|
29
|
-
[type="date"],
|
|
30
|
-
[type="time"],
|
|
31
|
-
[type="number"],
|
|
32
|
-
select,
|
|
33
|
-
textarea
|
|
34
|
-
) {
|
|
31
|
+
:is(.mx-input__text, .mx-input__select, .mx-input__textarea) {
|
|
35
32
|
box-shadow: none;
|
|
36
33
|
font: inherit;
|
|
37
34
|
letter-spacing: inherit;
|
|
@@ -72,12 +69,12 @@
|
|
|
72
69
|
}
|
|
73
70
|
}
|
|
74
71
|
|
|
75
|
-
|
|
72
|
+
.mx-input--small {
|
|
76
73
|
min-inline-size: 0;
|
|
77
74
|
border-width: 1px;
|
|
78
75
|
}
|
|
79
76
|
|
|
80
|
-
|
|
77
|
+
.mx-input--wide {
|
|
81
78
|
inline-size: 100%;
|
|
82
79
|
}
|
|
83
80
|
}
|
|
@@ -87,7 +84,7 @@
|
|
|
87
84
|
*/
|
|
88
85
|
|
|
89
86
|
@layer design-system.atoms {
|
|
90
|
-
.input__divider {
|
|
87
|
+
.mx-input__divider {
|
|
91
88
|
padding: var(--form-spacing, var(--spacing-s));
|
|
92
89
|
line-height: var(--line-height-ui);
|
|
93
90
|
}
|
|
@@ -98,7 +95,7 @@
|
|
|
98
95
|
*/
|
|
99
96
|
|
|
100
97
|
@layer design-system.atoms {
|
|
101
|
-
.
|
|
98
|
+
.mx-input--icon {
|
|
102
99
|
display: inline-block;
|
|
103
100
|
max-inline-size: 100%;
|
|
104
101
|
min-inline-size: 100%;
|
|
@@ -113,7 +110,7 @@
|
|
|
113
110
|
inset-inline-start: var(--form-spacing, var(--spacing-s));
|
|
114
111
|
}
|
|
115
112
|
|
|
116
|
-
&
|
|
113
|
+
& .mx-input__text {
|
|
117
114
|
inline-size: 100%;
|
|
118
115
|
padding-inline-start: calc(var(--form-spacing, var(--spacing-s)) * 2.5);
|
|
119
116
|
background-color: transparent;
|
|
@@ -137,24 +134,37 @@
|
|
|
137
134
|
*/
|
|
138
135
|
|
|
139
136
|
@layer design-system.atoms {
|
|
140
|
-
.
|
|
137
|
+
.mx-form--inline-button {
|
|
141
138
|
position: relative;
|
|
142
|
-
display:
|
|
139
|
+
display: flex;
|
|
143
140
|
max-inline-size: 100%;
|
|
144
141
|
min-inline-size: 100%;
|
|
145
142
|
border-radius: var(--border-radius);
|
|
146
143
|
background-color: var(--background, var(--colour-background));
|
|
144
|
+
border: var(--line-width, 2px) solid
|
|
145
|
+
var(--line-colour, var(--line-colour, var(--colour-border)));
|
|
147
146
|
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
147
|
+
&:has(.mx-input__text:focus-visible) {
|
|
148
|
+
--outline-size: max(0.125rem, 0.15em);
|
|
149
|
+
|
|
150
|
+
outline: var(--outline-width, var(--outline-size))
|
|
151
|
+
var(--outline-style, solid) var(--outline-color, currentcolor);
|
|
152
|
+
outline-offset: calc(var(--line-width, 2px) * -1);
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
& .mx-input__text {
|
|
151
156
|
background-color: transparent;
|
|
157
|
+
border: 0;
|
|
158
|
+
flex-grow: 1;
|
|
159
|
+
|
|
160
|
+
&:focus-visible {
|
|
161
|
+
outline: none;
|
|
162
|
+
}
|
|
152
163
|
}
|
|
153
164
|
|
|
154
|
-
&
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
inset-inline-end: var(--spacing-xxxxs);
|
|
165
|
+
& .mx-button {
|
|
166
|
+
margin: var(--spacing-xxxxs);
|
|
167
|
+
flex-shrink: 0;
|
|
158
168
|
border: 0;
|
|
159
169
|
border-radius: 3px;
|
|
160
170
|
block-size: calc(
|
|
@@ -169,20 +179,20 @@
|
|
|
169
179
|
*/
|
|
170
180
|
|
|
171
181
|
@layer design-system.atoms {
|
|
172
|
-
:is(label, legend) {
|
|
182
|
+
:is(.mx-label, .mx-legend) {
|
|
173
183
|
display: block;
|
|
174
184
|
margin-block-end: var(--spacing-xxxs);
|
|
175
185
|
font-size: var(--font-size);
|
|
176
186
|
color: var(--label-foreground, var(--foreground, var(--colour-foreground)));
|
|
177
187
|
|
|
178
|
-
&.label--inline {
|
|
188
|
+
&.mx-label--inline {
|
|
179
189
|
display: inline-block;
|
|
180
190
|
margin-block-end: 0;
|
|
181
191
|
margin-inline-end: var(--spacing-xxs);
|
|
182
192
|
}
|
|
183
193
|
}
|
|
184
194
|
|
|
185
|
-
[type="checkbox"] {
|
|
195
|
+
.mx-checkbox [type="checkbox"] {
|
|
186
196
|
box-shadow: none;
|
|
187
197
|
appearance: none;
|
|
188
198
|
inline-size: var(--control-size, var(--spacing-m));
|
|
@@ -243,7 +253,7 @@
|
|
|
243
253
|
*/
|
|
244
254
|
|
|
245
255
|
@layer design-system.atoms {
|
|
246
|
-
[type="radio"] {
|
|
256
|
+
.mx-radio [type="radio"] {
|
|
247
257
|
box-shadow: none;
|
|
248
258
|
appearance: none;
|
|
249
259
|
display: flex;
|
|
@@ -301,7 +311,7 @@
|
|
|
301
311
|
}
|
|
302
312
|
}
|
|
303
313
|
|
|
304
|
-
:is(.
|
|
314
|
+
:is(.mx-radio, .mx-checkbox) {
|
|
305
315
|
margin-block-end: var(--spacing-xxxs);
|
|
306
316
|
display: flex;
|
|
307
317
|
align-items: center;
|
|
@@ -320,19 +330,53 @@
|
|
|
320
330
|
flex-shrink: 0;
|
|
321
331
|
}
|
|
322
332
|
|
|
323
|
-
&.
|
|
333
|
+
&.mx-form-item--inline {
|
|
324
334
|
display: inline-flex;
|
|
325
335
|
margin-inline-end: var(--control-gap, var(--spacing-xxs));
|
|
326
336
|
}
|
|
327
337
|
}
|
|
328
338
|
}
|
|
329
339
|
|
|
340
|
+
/**
|
|
341
|
+
* Select
|
|
342
|
+
*/
|
|
343
|
+
|
|
344
|
+
@layer design-system.atoms {
|
|
345
|
+
.mx-input__select {
|
|
346
|
+
appearance: none;
|
|
347
|
+
cursor: pointer;
|
|
348
|
+
background-color: var(--background, var(--colour-background));
|
|
349
|
+
background-image: svg-load("./images/form-chevron-down.svg");
|
|
350
|
+
background-position: right var(--form-spacing, var(--spacing-s)) center;
|
|
351
|
+
padding-block: 0;
|
|
352
|
+
padding-inline-end: var(--spacing-xl);
|
|
353
|
+
|
|
354
|
+
&[multiple] {
|
|
355
|
+
block-size: auto;
|
|
356
|
+
background-image: none;
|
|
357
|
+
}
|
|
358
|
+
|
|
359
|
+
&.mx-input--small {
|
|
360
|
+
padding-inline-end: var(--spacing-m);
|
|
361
|
+
background-position: right var(--spacing-xs) center;
|
|
362
|
+
}
|
|
363
|
+
}
|
|
364
|
+
|
|
365
|
+
:is(.translated-rtl .mx-input__select, [dir="rtl"] .mx-input__select) {
|
|
366
|
+
background-position: left var(--spacing-s) center;
|
|
367
|
+
|
|
368
|
+
&.mx-input--small {
|
|
369
|
+
background-position: left var(--spacing-xs) center;
|
|
370
|
+
}
|
|
371
|
+
}
|
|
372
|
+
}
|
|
373
|
+
|
|
330
374
|
/**
|
|
331
375
|
* Textarea
|
|
332
376
|
*/
|
|
333
377
|
|
|
334
378
|
@layer design-system.atoms {
|
|
335
|
-
|
|
379
|
+
.mx-input__textarea {
|
|
336
380
|
block-size: calc(4 * var(--form-element-height, var(--spacing-xxl)));
|
|
337
381
|
inline-size: 100%;
|
|
338
382
|
}
|
|
@@ -343,7 +387,7 @@
|
|
|
343
387
|
*/
|
|
344
388
|
|
|
345
389
|
@layer design-system.atoms {
|
|
346
|
-
|
|
390
|
+
.mx-fieldset {
|
|
347
391
|
border: var(--line-width, 2px) solid
|
|
348
392
|
var(--line-colour, var(--colour-border));
|
|
349
393
|
border-radius: var(--border-radius);
|
|
@@ -354,24 +398,24 @@
|
|
|
354
398
|
padding-block: 0;
|
|
355
399
|
padding-inline: var(--form-spacing, var(--spacing-s));
|
|
356
400
|
}
|
|
357
|
-
}
|
|
358
401
|
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
padding: 0;
|
|
362
|
-
|
|
363
|
-
& legend {
|
|
402
|
+
&:is(.mx-fieldset--plain, :has(.mx-checkbox, .mx-radio)) {
|
|
403
|
+
border: 0;
|
|
364
404
|
padding: 0;
|
|
405
|
+
|
|
406
|
+
& legend {
|
|
407
|
+
padding: 0;
|
|
408
|
+
}
|
|
365
409
|
}
|
|
366
|
-
}
|
|
367
410
|
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
411
|
+
&.mx-fieldset--inline {
|
|
412
|
+
display: flex;
|
|
413
|
+
flex-wrap: wrap;
|
|
414
|
+
gap: var(--spacing-xxs);
|
|
372
415
|
|
|
373
|
-
|
|
374
|
-
|
|
416
|
+
& :is(.form__item, .form__item--inline) {
|
|
417
|
+
margin: 0;
|
|
418
|
+
}
|
|
375
419
|
}
|
|
376
420
|
}
|
|
377
421
|
}
|
|
@@ -381,7 +425,7 @@
|
|
|
381
425
|
*/
|
|
382
426
|
|
|
383
427
|
@layer design-system.atoms {
|
|
384
|
-
.
|
|
428
|
+
.mx-description {
|
|
385
429
|
margin-block: var(--form-spacing, var(--spacing-s));
|
|
386
430
|
margin-inline: 0;
|
|
387
431
|
font-size: var(--font-size-xs);
|
|
@@ -393,11 +437,11 @@
|
|
|
393
437
|
}
|
|
394
438
|
|
|
395
439
|
/**
|
|
396
|
-
*
|
|
440
|
+
* Messages
|
|
397
441
|
*/
|
|
398
442
|
|
|
399
443
|
@layer design-system.atoms {
|
|
400
|
-
:is(.
|
|
444
|
+
:is(.mx-success-message, .mx-error-message) {
|
|
401
445
|
margin-block: var(--form-spacing, var(--spacing-s));
|
|
402
446
|
margin-inline: 0;
|
|
403
447
|
font-size: var(--font-size-s);
|
|
@@ -420,12 +464,12 @@
|
|
|
420
464
|
}
|
|
421
465
|
}
|
|
422
466
|
|
|
423
|
-
.
|
|
467
|
+
.mx-error-message::before {
|
|
424
468
|
mask-image: svg-load("./images/form-error.svg");
|
|
425
469
|
background-color: var(--error-foreground, var(--colour-error-foreground));
|
|
426
470
|
}
|
|
427
471
|
|
|
428
|
-
.
|
|
472
|
+
.mx-success-message::before {
|
|
429
473
|
mask-image: svg-load("./images/form-success.svg");
|
|
430
474
|
background-color: var(
|
|
431
475
|
--success-foreground,
|
|
@@ -433,47 +477,3 @@
|
|
|
433
477
|
);
|
|
434
478
|
}
|
|
435
479
|
}
|
|
436
|
-
|
|
437
|
-
/**
|
|
438
|
-
* Select
|
|
439
|
-
*/
|
|
440
|
-
|
|
441
|
-
@layer design-system.atoms {
|
|
442
|
-
select {
|
|
443
|
-
appearance: none;
|
|
444
|
-
cursor: pointer;
|
|
445
|
-
background-color: var(--background, var(--colour-background));
|
|
446
|
-
background-image: svg-load("./images/form-chevron-down.svg");
|
|
447
|
-
background-position: right var(--form-spacing, var(--spacing-s)) center;
|
|
448
|
-
padding-block: 0;
|
|
449
|
-
padding-inline-end: var(--spacing-xl);
|
|
450
|
-
|
|
451
|
-
&[multiple] {
|
|
452
|
-
block-size: auto;
|
|
453
|
-
background-image: none;
|
|
454
|
-
}
|
|
455
|
-
|
|
456
|
-
&.input--small {
|
|
457
|
-
padding-inline-end: var(--spacing-m);
|
|
458
|
-
background-position: right var(--spacing-xs) center;
|
|
459
|
-
}
|
|
460
|
-
}
|
|
461
|
-
|
|
462
|
-
:is(.translated-rtl select, [dir="rtl"] select) {
|
|
463
|
-
background-position: left var(--spacing-s) center;
|
|
464
|
-
|
|
465
|
-
&.input--small {
|
|
466
|
-
background-position: left var(--spacing-xs) center;
|
|
467
|
-
}
|
|
468
|
-
}
|
|
469
|
-
|
|
470
|
-
/**
|
|
471
|
-
* Form actions.
|
|
472
|
-
*/
|
|
473
|
-
.form__actions {
|
|
474
|
-
display: flex;
|
|
475
|
-
flex-wrap: wrap;
|
|
476
|
-
align-items: center;
|
|
477
|
-
gap: var(--spacing-s);
|
|
478
|
-
}
|
|
479
|
-
}
|