@guardian/stand 0.0.40 → 0.0.42
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/README.md +1 -1
- package/dist/AlertBanner.cjs +5 -9
- package/dist/AlertBanner.d.cts +5 -0
- package/dist/AlertBanner.d.ts +5 -0
- package/dist/AlertBanner.js +3 -2
- package/dist/Avatar.cjs +5 -9
- package/dist/Avatar.d.cts +5 -0
- package/dist/Avatar.d.ts +5 -0
- package/dist/Avatar.js +3 -2
- package/dist/AvatarButton.cjs +3 -7
- package/dist/AvatarButton.d.cts +4 -0
- package/dist/AvatarButton.d.ts +4 -0
- package/dist/AvatarButton.js +2 -1
- package/dist/AvatarLink.cjs +3 -7
- package/dist/AvatarLink.d.cts +4 -0
- package/dist/AvatarLink.d.ts +4 -0
- package/dist/AvatarLink.js +2 -1
- package/dist/Button.cjs +5 -9
- package/dist/Button.d.cts +5 -0
- package/dist/Button.d.ts +5 -0
- package/dist/Button.js +3 -2
- package/dist/Byline.cjs +5 -9
- package/dist/Byline.d.cts +5 -0
- package/dist/Byline.d.ts +5 -0
- package/dist/Byline.js +3 -2
- package/dist/Checkbox.cjs +7 -11
- package/dist/Checkbox.d.cts +6 -0
- package/dist/Checkbox.d.ts +6 -0
- package/dist/Checkbox.js +4 -3
- package/dist/DatePicker.cjs +5 -9
- package/dist/DatePicker.d.cts +5 -0
- package/dist/DatePicker.d.ts +5 -0
- package/dist/DatePicker.js +3 -2
- package/dist/Favicon.cjs +5 -9
- package/dist/Favicon.d.cts +5 -0
- package/dist/Favicon.d.ts +5 -0
- package/dist/Favicon.js +3 -2
- package/dist/Form.cjs +3 -7
- package/dist/Form.d.cts +2 -0
- package/dist/Form.d.ts +2 -0
- package/dist/Form.js +2 -1
- package/dist/Grid.cjs +6 -10
- package/dist/Grid.d.cts +5 -0
- package/dist/Grid.d.ts +5 -0
- package/dist/Grid.js +3 -2
- package/dist/Icon.cjs +5 -9
- package/dist/Icon.d.cts +5 -0
- package/dist/Icon.d.ts +5 -0
- package/dist/Icon.js +3 -2
- package/dist/IconButton.cjs +3 -7
- package/dist/IconButton.d.cts +4 -0
- package/dist/IconButton.d.ts +4 -0
- package/dist/IconButton.js +2 -1
- package/dist/IconLinkButton.cjs +3 -7
- package/dist/IconLinkButton.d.cts +4 -0
- package/dist/IconLinkButton.d.ts +4 -0
- package/dist/IconLinkButton.js +2 -1
- package/dist/InlineMessage.cjs +5 -9
- package/dist/InlineMessage.d.cts +5 -0
- package/dist/InlineMessage.d.ts +5 -0
- package/dist/InlineMessage.js +3 -2
- package/dist/IntendedAudienceSignifier.cjs +5 -9
- package/dist/IntendedAudienceSignifier.d.cts +5 -0
- package/dist/IntendedAudienceSignifier.d.ts +5 -0
- package/dist/IntendedAudienceSignifier.js +3 -2
- package/dist/Layout.cjs +5 -9
- package/dist/Layout.d.cts +5 -0
- package/dist/Layout.d.ts +5 -0
- package/dist/Layout.js +3 -2
- package/dist/Link.cjs +5 -9
- package/dist/Link.d.cts +5 -0
- package/dist/Link.d.ts +5 -0
- package/dist/Link.js +3 -2
- package/dist/LinkButton.cjs +3 -7
- package/dist/LinkButton.d.cts +4 -0
- package/dist/LinkButton.d.ts +4 -0
- package/dist/LinkButton.js +2 -1
- package/dist/Menu.cjs +9 -13
- package/dist/Menu.d.cts +5 -0
- package/dist/Menu.d.ts +5 -0
- package/dist/Menu.js +3 -2
- package/dist/RadioGroup.cjs +6 -10
- package/dist/RadioGroup.d.cts +5 -0
- package/dist/RadioGroup.d.ts +5 -0
- package/dist/RadioGroup.js +3 -2
- package/dist/Select.cjs +6 -10
- package/dist/Select.d.cts +5 -0
- package/dist/Select.d.ts +5 -0
- package/dist/Select.js +3 -2
- package/dist/TagPicker.cjs +11 -15
- package/dist/TagPicker.d.cts +6 -0
- package/dist/TagPicker.d.ts +6 -0
- package/dist/TagPicker.js +6 -5
- package/dist/TextArea.cjs +5 -9
- package/dist/TextArea.d.cts +5 -0
- package/dist/TextArea.d.ts +5 -0
- package/dist/TextArea.js +3 -2
- package/dist/TextInput.cjs +5 -9
- package/dist/TextInput.d.cts +5 -0
- package/dist/TextInput.d.ts +5 -0
- package/dist/TextInput.js +3 -2
- package/dist/TopBar.cjs +13 -17
- package/dist/TopBar.d.cts +14 -0
- package/dist/TopBar.d.ts +14 -0
- package/dist/TopBar.js +6 -5
- package/dist/Typography.cjs +5 -9
- package/dist/Typography.d.cts +5 -0
- package/dist/Typography.d.ts +5 -0
- package/dist/Typography.js +3 -2
- package/dist/UserMenu.cjs +5 -9
- package/dist/UserMenu.d.cts +3 -0
- package/dist/UserMenu.d.ts +3 -0
- package/dist/UserMenu.js +3 -2
- package/dist/_virtual/_rolldown/runtime.cjs +23 -0
- package/dist/components/AlertBanner/AlertBanner.cjs +39 -62
- package/dist/components/AlertBanner/AlertBanner.d.cts +16 -0
- package/dist/components/AlertBanner/AlertBanner.d.ts +16 -0
- package/dist/components/AlertBanner/AlertBanner.js +37 -26
- package/dist/components/AlertBanner/styles.cjs +10 -11
- package/dist/components/AlertBanner/styles.d.cts +8 -0
- package/dist/components/AlertBanner/styles.d.ts +8 -0
- package/dist/components/AlertBanner/styles.js +7 -7
- package/dist/components/AlertBanner/types.d.cts +31 -0
- package/dist/components/AlertBanner/types.d.ts +31 -0
- package/dist/components/Avatar/Avatar.cjs +34 -53
- package/dist/components/Avatar/Avatar.d.cts +15 -0
- package/dist/components/Avatar/Avatar.d.ts +15 -0
- package/dist/components/Avatar/Avatar.js +32 -22
- package/dist/components/Avatar/styles.cjs +10 -11
- package/dist/components/Avatar/styles.d.cts +9 -0
- package/dist/components/Avatar/styles.d.ts +9 -0
- package/dist/components/Avatar/styles.js +6 -6
- package/dist/components/Avatar/types.cjs +12 -13
- package/dist/components/Avatar/types.d.cts +47 -0
- package/dist/components/Avatar/types.d.ts +47 -0
- package/dist/components/Avatar/types.js +12 -11
- package/dist/components/AvatarButton/AvatarButton.cjs +16 -11
- package/dist/components/AvatarButton/AvatarButton.d.cts +6 -0
- package/dist/components/AvatarButton/AvatarButton.d.ts +6 -0
- package/dist/components/AvatarButton/AvatarButton.js +15 -9
- package/dist/components/AvatarButton/styles.cjs +7 -8
- package/dist/components/AvatarButton/styles.d.cts +7 -0
- package/dist/components/AvatarButton/styles.d.ts +7 -0
- package/dist/components/AvatarButton/styles.js +5 -5
- package/dist/components/AvatarButton/types.d.cts +7 -0
- package/dist/components/AvatarButton/types.d.ts +7 -0
- package/dist/components/AvatarLink/AvatarLink.cjs +16 -11
- package/dist/components/AvatarLink/AvatarLink.d.cts +6 -0
- package/dist/components/AvatarLink/AvatarLink.d.ts +6 -0
- package/dist/components/AvatarLink/AvatarLink.js +15 -9
- package/dist/components/AvatarLink/styles.cjs +7 -8
- package/dist/components/AvatarLink/styles.d.cts +7 -0
- package/dist/components/AvatarLink/styles.d.ts +7 -0
- package/dist/components/AvatarLink/styles.js +5 -5
- package/dist/components/AvatarLink/types.d.cts +7 -0
- package/dist/components/AvatarLink/types.d.ts +7 -0
- package/dist/components/Button/Button.cjs +22 -33
- package/dist/components/Button/Button.d.cts +13 -0
- package/dist/components/Button/Button.d.ts +13 -0
- package/dist/components/Button/Button.js +22 -15
- package/dist/components/Button/styles.cjs +11 -12
- package/dist/components/Button/styles.d.cts +9 -0
- package/dist/components/Button/styles.d.ts +9 -0
- package/dist/components/Button/styles.js +6 -6
- package/dist/components/Button/types.d.cts +22 -0
- package/dist/components/Button/types.d.ts +22 -0
- package/dist/components/Byline/Byline.cjs +333 -366
- package/dist/components/Byline/Byline.d.cts +87 -0
- package/dist/{types/components → components}/Byline/Byline.d.ts +30 -26
- package/dist/components/Byline/Byline.js +331 -270
- package/dist/components/Byline/Preview.cjs +32 -42
- package/dist/components/Byline/Preview.js +31 -23
- package/dist/components/Byline/lib.cjs +152 -216
- package/dist/components/Byline/lib.d.cts +23 -0
- package/dist/components/Byline/lib.d.ts +24 -0
- package/dist/components/Byline/lib.js +153 -163
- package/dist/components/Byline/placeholder.cjs +15 -24
- package/dist/components/Byline/placeholder.js +14 -22
- package/dist/components/Byline/plugins.cjs +89 -120
- package/dist/components/Byline/plugins.js +87 -110
- package/dist/components/Byline/schema.cjs +45 -65
- package/dist/components/Byline/schema.js +45 -58
- package/dist/components/Byline/styles.cjs +19 -20
- package/dist/components/Byline/styles.js +13 -13
- package/dist/components/Byline/theme.d.cts +7 -0
- package/dist/components/Byline/theme.d.ts +7 -0
- package/dist/components/Checkbox/Checkbox.cjs +33 -52
- package/dist/components/Checkbox/Checkbox.d.cts +13 -0
- package/dist/components/Checkbox/Checkbox.d.ts +13 -0
- package/dist/components/Checkbox/Checkbox.js +33 -16
- package/dist/components/Checkbox/CheckboxGroup.cjs +30 -33
- package/dist/components/Checkbox/CheckboxGroup.d.cts +10 -0
- package/dist/components/Checkbox/CheckboxGroup.d.ts +10 -0
- package/dist/components/Checkbox/CheckboxGroup.js +29 -25
- package/dist/components/Checkbox/styles.cjs +13 -17
- package/dist/components/Checkbox/styles.d.cts +9 -0
- package/dist/components/Checkbox/styles.d.ts +9 -0
- package/dist/components/Checkbox/styles.js +8 -8
- package/dist/components/Checkbox/types.d.cts +15 -0
- package/dist/components/Checkbox/types.d.ts +15 -0
- package/dist/components/DatePicker/DatePicker.cjs +156 -149
- package/dist/components/DatePicker/DatePicker.d.cts +12 -0
- package/dist/components/DatePicker/DatePicker.d.ts +12 -0
- package/dist/components/DatePicker/DatePicker.js +160 -114
- package/dist/components/DatePicker/styles.cjs +15 -20
- package/dist/components/DatePicker/styles.d.cts +8 -0
- package/dist/components/DatePicker/styles.d.ts +8 -0
- package/dist/components/DatePicker/styles.js +11 -11
- package/dist/components/DatePicker/types.d.cts +23 -0
- package/dist/components/DatePicker/types.d.ts +23 -0
- package/dist/components/Favicon/Favicon.cjs +40 -44
- package/dist/components/Favicon/Favicon.d.cts +6 -0
- package/dist/components/Favicon/Favicon.d.ts +6 -0
- package/dist/components/Favicon/Favicon.js +39 -27
- package/dist/components/Favicon/styles.cjs +11 -12
- package/dist/components/Favicon/styles.d.cts +9 -0
- package/dist/components/Favicon/styles.d.ts +9 -0
- package/dist/components/Favicon/styles.js +7 -7
- package/dist/components/Favicon/types.d.cts +41 -0
- package/dist/components/Favicon/types.d.ts +41 -0
- package/dist/components/Form/Form.cjs +35 -45
- package/dist/components/Form/Form.js +33 -14
- package/dist/components/Form/styles.cjs +16 -24
- package/dist/components/Form/styles.d.cts +8 -0
- package/dist/components/Form/styles.d.ts +8 -0
- package/dist/components/Form/styles.js +8 -8
- package/dist/components/Form/types.cjs +13 -10
- package/dist/components/Form/types.d.cts +38 -0
- package/dist/components/Form/types.d.ts +38 -0
- package/dist/components/Form/types.js +12 -8
- package/dist/components/Grid/Grid.cjs +21 -33
- package/dist/components/Grid/Grid.d.cts +20 -0
- package/dist/components/Grid/Grid.d.ts +20 -0
- package/dist/components/Grid/Grid.js +18 -9
- package/dist/components/Grid/styles.cjs +65 -55
- package/dist/components/Grid/styles.d.cts +9 -0
- package/dist/components/Grid/styles.d.ts +9 -0
- package/dist/components/Grid/styles.js +56 -33
- package/dist/components/Grid/types.d.cts +29 -0
- package/dist/components/Grid/types.d.ts +29 -0
- package/dist/components/Icon/Icon.cjs +34 -41
- package/dist/components/Icon/Icon.d.cts +15 -0
- package/dist/components/Icon/Icon.d.ts +15 -0
- package/dist/components/Icon/Icon.js +32 -13
- package/dist/components/Icon/Styles.cjs +22 -0
- package/dist/components/Icon/Styles.d.cts +7 -0
- package/dist/components/Icon/Styles.d.ts +7 -0
- package/dist/components/Icon/{styles.js → Styles.js} +6 -6
- package/dist/components/Icon/types.d.cts +31 -0
- package/dist/components/Icon/types.d.ts +31 -0
- package/dist/components/IconButton/IconButton.cjs +30 -43
- package/dist/components/IconButton/IconButton.d.cts +14 -0
- package/dist/components/IconButton/IconButton.d.ts +14 -0
- package/dist/components/IconButton/IconButton.js +28 -23
- package/dist/components/IconButton/styles.cjs +5 -7
- package/dist/components/IconButton/styles.d.cts +6 -0
- package/dist/components/IconButton/styles.d.ts +6 -0
- package/dist/components/IconButton/styles.js +3 -3
- package/dist/components/IconButton/types.d.cts +31 -0
- package/dist/components/IconButton/types.d.ts +31 -0
- package/dist/components/IconLinkButton/IconLinkButton.cjs +30 -40
- package/dist/components/IconLinkButton/IconLinkButton.d.cts +14 -0
- package/dist/components/IconLinkButton/IconLinkButton.d.ts +14 -0
- package/dist/components/IconLinkButton/IconLinkButton.js +28 -20
- package/dist/components/IconLinkButton/styles.cjs +5 -7
- package/dist/components/IconLinkButton/styles.d.cts +6 -0
- package/dist/components/IconLinkButton/styles.d.ts +6 -0
- package/dist/components/IconLinkButton/styles.js +3 -3
- package/dist/components/IconLinkButton/types.d.cts +31 -0
- package/dist/components/IconLinkButton/types.d.ts +31 -0
- package/dist/components/InlineMessage/InlineMessage.cjs +34 -62
- package/dist/components/InlineMessage/InlineMessage.d.cts +15 -0
- package/dist/components/InlineMessage/InlineMessage.d.ts +15 -0
- package/dist/components/InlineMessage/InlineMessage.js +32 -24
- package/dist/components/InlineMessage/styles.cjs +8 -9
- package/dist/components/InlineMessage/styles.d.cts +9 -0
- package/dist/components/InlineMessage/styles.d.ts +9 -0
- package/dist/components/InlineMessage/styles.js +6 -6
- package/dist/components/InlineMessage/types.d.cts +25 -0
- package/dist/components/InlineMessage/types.d.ts +25 -0
- package/dist/components/IntendedAudienceSignifier/FlagIcons.cjs +113 -112
- package/dist/components/IntendedAudienceSignifier/FlagIcons.js +112 -8
- package/dist/components/IntendedAudienceSignifier/IntendedAudienceSignifier.cjs +55 -92
- package/dist/components/IntendedAudienceSignifier/IntendedAudienceSignifier.d.cts +13 -0
- package/dist/components/IntendedAudienceSignifier/IntendedAudienceSignifier.d.ts +13 -0
- package/dist/components/IntendedAudienceSignifier/IntendedAudienceSignifier.js +54 -61
- package/dist/components/IntendedAudienceSignifier/styles.cjs +9 -10
- package/dist/components/IntendedAudienceSignifier/styles.d.cts +8 -0
- package/dist/components/IntendedAudienceSignifier/styles.d.ts +8 -0
- package/dist/components/IntendedAudienceSignifier/styles.js +4 -4
- package/dist/components/IntendedAudienceSignifier/types.d.cts +11 -0
- package/dist/components/IntendedAudienceSignifier/types.d.ts +11 -0
- package/dist/components/Layout/Layout.cjs +85 -71
- package/dist/components/Layout/Layout.d.cts +14 -0
- package/dist/components/Layout/Layout.d.ts +14 -0
- package/dist/components/Layout/Layout.js +79 -21
- package/dist/components/Layout/styles.cjs +26 -29
- package/dist/components/Layout/styles.d.cts +13 -0
- package/dist/components/Layout/styles.d.ts +13 -0
- package/dist/components/Layout/styles.js +16 -18
- package/dist/components/Layout/types.d.cts +34 -0
- package/dist/components/Layout/types.d.ts +34 -0
- package/dist/components/Link/Link.cjs +21 -35
- package/dist/components/Link/Link.d.cts +13 -0
- package/dist/components/Link/Link.d.ts +13 -0
- package/dist/components/Link/Link.js +21 -16
- package/dist/components/Link/styles.cjs +7 -8
- package/dist/components/Link/styles.d.cts +9 -0
- package/dist/components/Link/styles.d.ts +9 -0
- package/dist/components/Link/styles.js +5 -5
- package/dist/components/Link/types.d.cts +15 -0
- package/dist/components/Link/types.d.ts +15 -0
- package/dist/components/LinkButton/LinkButton.cjs +22 -33
- package/dist/components/LinkButton/LinkButton.d.cts +13 -0
- package/dist/components/LinkButton/LinkButton.d.ts +13 -0
- package/dist/components/LinkButton/LinkButton.js +20 -13
- package/dist/components/LinkButton/Styles.cjs +7 -0
- package/dist/components/LinkButton/Styles.d.cts +6 -0
- package/dist/components/LinkButton/Styles.d.ts +6 -0
- package/dist/components/LinkButton/{styles.js → Styles.js} +3 -3
- package/dist/components/LinkButton/types.d.cts +22 -0
- package/dist/components/LinkButton/types.d.ts +22 -0
- package/dist/components/Menu/Menu.cjs +119 -186
- package/dist/components/Menu/Menu.d.cts +41 -0
- package/dist/components/Menu/Menu.d.ts +41 -0
- package/dist/components/Menu/Menu.js +117 -61
- package/dist/components/Menu/styles.cjs +24 -25
- package/dist/components/Menu/styles.d.cts +17 -0
- package/dist/components/Menu/styles.d.ts +17 -0
- package/dist/components/Menu/styles.js +5 -5
- package/dist/components/Menu/types.d.cts +67 -0
- package/dist/components/Menu/types.d.ts +67 -0
- package/dist/components/RadioGroup/RadioGroup.cjs +44 -61
- package/dist/components/RadioGroup/RadioGroup.d.cts +19 -0
- package/dist/components/RadioGroup/RadioGroup.d.ts +19 -0
- package/dist/components/RadioGroup/RadioGroup.js +43 -29
- package/dist/components/RadioGroup/styles.cjs +11 -12
- package/dist/components/RadioGroup/styles.d.cts +8 -0
- package/dist/components/RadioGroup/styles.d.ts +8 -0
- package/dist/components/RadioGroup/styles.js +8 -8
- package/dist/components/RadioGroup/types.d.cts +14 -0
- package/dist/components/RadioGroup/types.d.ts +14 -0
- package/dist/components/Select/Select.cjs +43 -51
- package/dist/components/Select/Select.d.cts +15 -0
- package/dist/components/Select/Select.d.ts +15 -0
- package/dist/components/Select/Select.js +43 -35
- package/dist/components/Select/styles.cjs +13 -14
- package/dist/components/Select/styles.d.cts +9 -0
- package/dist/components/Select/styles.d.ts +9 -0
- package/dist/components/Select/styles.js +9 -9
- package/dist/components/Select/types.d.cts +10 -0
- package/dist/components/Select/types.d.ts +10 -0
- package/dist/components/TagPicker/Autocomplete.cjs +146 -102
- package/dist/components/TagPicker/Autocomplete.d.cts +134 -0
- package/dist/{types/components → components}/TagPicker/Autocomplete.d.ts +49 -32
- package/dist/components/TagPicker/Autocomplete.js +145 -21
- package/dist/components/TagPicker/TagAutocomplete.cjs +116 -37
- package/dist/components/TagPicker/TagAutocomplete.d.cts +144 -0
- package/dist/{types/components → components}/TagPicker/TagAutocomplete.d.ts +46 -30
- package/dist/components/TagPicker/TagAutocomplete.js +114 -5
- package/dist/components/TagPicker/TagTable.cjs +212 -188
- package/dist/components/TagPicker/TagTable.d.cts +143 -0
- package/dist/{types/components → components}/TagPicker/TagTable.d.ts +54 -37
- package/dist/components/TagPicker/TagTable.js +210 -75
- package/dist/components/TagPicker/styles.cjs +29 -30
- package/dist/components/TagPicker/styles.js +26 -26
- package/dist/components/TagPicker/types.d.cts +11 -0
- package/dist/components/TagPicker/types.d.ts +11 -0
- package/dist/components/TextArea/TextArea.cjs +23 -33
- package/dist/components/TextArea/TextArea.d.cts +12 -0
- package/dist/components/TextArea/TextArea.d.ts +12 -0
- package/dist/components/TextArea/TextArea.js +23 -11
- package/dist/components/TextArea/styles.cjs +10 -11
- package/dist/components/TextArea/styles.d.cts +8 -0
- package/dist/components/TextArea/styles.d.ts +8 -0
- package/dist/components/TextArea/styles.js +6 -6
- package/dist/components/TextArea/types.d.cts +11 -0
- package/dist/components/TextArea/types.d.ts +11 -0
- package/dist/components/TextInput/TextInput.cjs +23 -33
- package/dist/components/TextInput/TextInput.d.cts +12 -0
- package/dist/components/TextInput/TextInput.d.ts +12 -0
- package/dist/components/TextInput/TextInput.js +21 -9
- package/dist/components/TextInput/styles.cjs +10 -11
- package/dist/components/TextInput/styles.d.cts +8 -0
- package/dist/components/TextInput/styles.d.ts +8 -0
- package/dist/components/TextInput/styles.js +6 -6
- package/dist/components/TextInput/types.d.cts +11 -0
- package/dist/components/TextInput/types.d.ts +11 -0
- package/dist/components/TopBar/TopBar.cjs +150 -223
- package/dist/components/TopBar/TopBar.d.cts +28 -0
- package/dist/components/TopBar/TopBar.d.ts +28 -0
- package/dist/components/TopBar/TopBar.js +143 -101
- package/dist/components/TopBar/TopBarItem/TopBarItem.cjs +13 -30
- package/dist/components/TopBar/TopBarItem/TopBarItem.d.cts +15 -0
- package/dist/components/TopBar/TopBarItem/TopBarItem.d.ts +15 -0
- package/dist/components/TopBar/TopBarItem/TopBarItem.js +11 -10
- package/dist/components/TopBar/TopBarItem/styles.cjs +9 -10
- package/dist/components/TopBar/TopBarItem/styles.d.cts +9 -0
- package/dist/components/TopBar/TopBarItem/styles.d.ts +9 -0
- package/dist/components/TopBar/TopBarItem/styles.js +5 -5
- package/dist/components/TopBar/TopBarItem/types.d.cts +23 -0
- package/dist/components/TopBar/TopBarItem/types.d.ts +23 -0
- package/dist/components/TopBar/TopBarNavigation/TopBarNavigation.cjs +68 -83
- package/dist/components/TopBar/TopBarNavigation/TopBarNavigation.d.cts +21 -0
- package/dist/components/TopBar/TopBarNavigation/TopBarNavigation.d.ts +21 -0
- package/dist/components/TopBar/TopBarNavigation/TopBarNavigation.js +66 -21
- package/dist/components/TopBar/TopBarNavigation/styles.cjs +19 -20
- package/dist/components/TopBar/TopBarNavigation/styles.d.cts +9 -0
- package/dist/components/TopBar/TopBarNavigation/styles.d.ts +9 -0
- package/dist/components/TopBar/TopBarNavigation/styles.js +8 -8
- package/dist/components/TopBar/TopBarNavigation/types.d.cts +53 -0
- package/dist/components/TopBar/TopBarNavigation/types.d.ts +53 -0
- package/dist/components/TopBar/TopBarToolName/TopBarToolName.cjs +65 -89
- package/dist/components/TopBar/TopBarToolName/TopBarToolName.d.cts +10 -0
- package/dist/components/TopBar/TopBarToolName/TopBarToolName.d.ts +10 -0
- package/dist/components/TopBar/TopBarToolName/TopBarToolName.js +62 -24
- package/dist/components/TopBar/TopBarToolName/styles.cjs +28 -33
- package/dist/components/TopBar/TopBarToolName/styles.d.cts +9 -0
- package/dist/components/TopBar/TopBarToolName/styles.d.ts +9 -0
- package/dist/components/TopBar/TopBarToolName/styles.js +15 -15
- package/dist/components/TopBar/TopBarToolName/types.d.cts +44 -0
- package/dist/components/TopBar/TopBarToolName/types.d.ts +44 -0
- package/dist/components/TopBar/styles.cjs +18 -22
- package/dist/components/TopBar/styles.d.cts +9 -0
- package/dist/components/TopBar/styles.d.ts +9 -0
- package/dist/components/TopBar/styles.js +10 -10
- package/dist/components/TopBar/types.d.cts +16 -0
- package/dist/components/TopBar/types.d.ts +16 -0
- package/dist/components/Typography/Typography.cjs +11 -24
- package/dist/components/Typography/Typography.d.cts +17 -0
- package/dist/components/Typography/Typography.d.ts +17 -0
- package/dist/components/Typography/Typography.js +9 -10
- package/dist/components/Typography/styles.cjs +10 -11
- package/dist/components/Typography/styles.d.cts +9 -0
- package/dist/components/Typography/styles.d.ts +9 -0
- package/dist/components/Typography/styles.js +6 -6
- package/dist/components/Typography/types.d.cts +18 -0
- package/dist/components/Typography/types.d.ts +18 -0
- package/dist/components/UserMenu/PreferenceRadioGroup.cjs +34 -51
- package/dist/components/UserMenu/PreferenceRadioGroup.js +32 -16
- package/dist/components/UserMenu/TitleText.cjs +35 -26
- package/dist/components/UserMenu/TitleText.js +33 -19
- package/dist/components/UserMenu/UserMenu.cjs +51 -58
- package/dist/components/UserMenu/UserMenu.d.cts +30 -0
- package/dist/components/UserMenu/UserMenu.d.ts +30 -0
- package/dist/components/UserMenu/UserMenu.js +49 -8
- package/dist/components/UserMenu/defaultOptions.cjs +101 -0
- package/dist/components/UserMenu/defaultOptions.js +99 -0
- package/dist/components/UserMenu/model.d.cts +13 -0
- package/dist/components/UserMenu/model.d.ts +13 -0
- package/dist/components/UserMenu/styles.cjs +18 -19
- package/dist/components/UserMenu/styles.js +17 -17
- package/dist/components/UserMenu/types.d.cts +8 -0
- package/dist/components/UserMenu/types.d.ts +8 -0
- package/dist/fonts/materialSymbolsTypes.d.cts +5 -0
- package/dist/fonts/materialSymbolsTypes.d.ts +5 -0
- package/dist/index.cjs +71 -75
- package/dist/index.d.cts +36 -0
- package/dist/index.d.ts +36 -0
- package/dist/index.js +36 -35
- package/dist/styleD/build/typescript/base/colors.cjs +143 -141
- package/dist/styleD/build/typescript/base/colors.d.cts +147 -0
- package/dist/styleD/build/typescript/base/colors.d.ts +147 -0
- package/dist/styleD/build/typescript/base/colors.js +143 -139
- package/dist/styleD/build/typescript/base/radius.cjs +11 -9
- package/dist/styleD/build/typescript/base/radius.d.cts +15 -0
- package/dist/styleD/build/typescript/base/radius.d.ts +15 -0
- package/dist/styleD/build/typescript/base/radius.js +11 -7
- package/dist/styleD/build/typescript/base/sizing.cjs +25 -23
- package/dist/styleD/build/typescript/base/sizing.d.cts +29 -0
- package/dist/styleD/build/typescript/base/sizing.d.ts +29 -0
- package/dist/styleD/build/typescript/base/sizing.js +25 -21
- package/dist/styleD/build/typescript/base/spacing.cjs +39 -37
- package/dist/styleD/build/typescript/base/spacing.d.cts +43 -0
- package/dist/styleD/build/typescript/base/spacing.d.ts +43 -0
- package/dist/styleD/build/typescript/base/spacing.js +39 -35
- package/dist/styleD/build/typescript/base/typography.cjs +78 -78
- package/dist/styleD/build/typescript/base/typography.d.cts +84 -0
- package/dist/styleD/build/typescript/base/typography.d.ts +84 -0
- package/dist/styleD/build/typescript/base/typography.js +78 -76
- package/dist/styleD/build/typescript/component/alertBanner.cjs +37 -45
- package/dist/styleD/build/typescript/component/alertBanner.d.cts +51 -0
- package/dist/styleD/build/typescript/component/alertBanner.d.ts +51 -0
- package/dist/styleD/build/typescript/component/alertBanner.js +37 -43
- package/dist/styleD/build/typescript/component/autocomplete.cjs +31 -29
- package/dist/styleD/build/typescript/component/autocomplete.d.cts +35 -0
- package/dist/styleD/build/typescript/component/autocomplete.d.ts +35 -0
- package/dist/styleD/build/typescript/component/autocomplete.js +31 -27
- package/dist/styleD/build/typescript/component/avatar.cjs +124 -168
- package/dist/styleD/build/typescript/component/avatar.d.cts +174 -0
- package/dist/styleD/build/typescript/component/avatar.d.ts +174 -0
- package/dist/styleD/build/typescript/component/avatar.js +124 -166
- package/dist/styleD/build/typescript/component/button.cjs +323 -395
- package/dist/styleD/build/typescript/component/button.d.cts +401 -0
- package/dist/styleD/build/typescript/component/button.d.ts +401 -0
- package/dist/styleD/build/typescript/component/button.js +323 -393
- package/dist/styleD/build/typescript/component/byline.cjs +41 -39
- package/dist/styleD/build/typescript/component/byline.d.cts +45 -0
- package/dist/styleD/build/typescript/component/byline.d.ts +45 -0
- package/dist/styleD/build/typescript/component/byline.js +41 -37
- package/dist/styleD/build/typescript/component/checkbox.cjs +87 -97
- package/dist/styleD/build/typescript/component/checkbox.d.cts +103 -0
- package/dist/styleD/build/typescript/component/checkbox.d.ts +103 -0
- package/dist/styleD/build/typescript/component/checkbox.js +87 -95
- package/dist/styleD/build/typescript/component/datePicker.cjs +146 -182
- package/dist/styleD/build/typescript/component/datePicker.d.cts +188 -0
- package/dist/styleD/build/typescript/component/datePicker.d.ts +188 -0
- package/dist/styleD/build/typescript/component/datePicker.js +146 -180
- package/dist/styleD/build/typescript/component/favicon.cjs +19 -17
- package/dist/styleD/build/typescript/component/favicon.d.cts +23 -0
- package/dist/styleD/build/typescript/component/favicon.d.ts +23 -0
- package/dist/styleD/build/typescript/component/favicon.js +19 -15
- package/dist/styleD/build/typescript/component/form.cjs +38 -50
- package/dist/styleD/build/typescript/component/form.d.cts +54 -0
- package/dist/styleD/build/typescript/component/form.d.ts +54 -0
- package/dist/styleD/build/typescript/component/form.js +38 -48
- package/dist/styleD/build/typescript/component/grid.cjs +28 -26
- package/dist/styleD/build/typescript/component/grid.d.cts +32 -0
- package/dist/styleD/build/typescript/component/grid.d.ts +32 -0
- package/dist/styleD/build/typescript/component/grid.js +28 -24
- package/dist/styleD/build/typescript/component/icon.cjs +12 -16
- package/dist/styleD/build/typescript/component/icon.d.cts +22 -0
- package/dist/styleD/build/typescript/component/icon.d.ts +22 -0
- package/dist/styleD/build/typescript/component/icon.js +12 -14
- package/dist/styleD/build/typescript/component/inlineMessage.cjs +22 -26
- package/dist/styleD/build/typescript/component/inlineMessage.d.cts +32 -0
- package/dist/styleD/build/typescript/component/inlineMessage.d.ts +32 -0
- package/dist/styleD/build/typescript/component/inlineMessage.js +22 -24
- package/dist/styleD/build/typescript/component/intendedAudienceSignifier.cjs +31 -29
- package/dist/styleD/build/typescript/component/intendedAudienceSignifier.d.cts +35 -0
- package/dist/styleD/build/typescript/component/intendedAudienceSignifier.d.ts +35 -0
- package/dist/styleD/build/typescript/component/intendedAudienceSignifier.js +31 -27
- package/dist/styleD/build/typescript/component/layout.cjs +43 -47
- package/dist/styleD/build/typescript/component/layout.d.cts +53 -0
- package/dist/styleD/build/typescript/component/layout.d.ts +53 -0
- package/dist/styleD/build/typescript/component/layout.js +43 -45
- package/dist/styleD/build/typescript/component/link.cjs +15 -23
- package/dist/styleD/build/typescript/component/link.d.cts +27 -0
- package/dist/styleD/build/typescript/component/link.d.ts +27 -0
- package/dist/styleD/build/typescript/component/link.js +15 -21
- package/dist/styleD/build/typescript/component/menu.cjs +130 -142
- package/dist/styleD/build/typescript/component/menu.d.cts +148 -0
- package/dist/styleD/build/typescript/component/menu.d.ts +148 -0
- package/dist/styleD/build/typescript/component/menu.js +130 -140
- package/dist/styleD/build/typescript/component/radioGroup.cjs +74 -82
- package/dist/styleD/build/typescript/component/radioGroup.d.cts +88 -0
- package/dist/styleD/build/typescript/component/radioGroup.d.ts +88 -0
- package/dist/styleD/build/typescript/component/radioGroup.js +74 -80
- package/dist/styleD/build/typescript/component/select.cjs +63 -67
- package/dist/styleD/build/typescript/component/select.d.cts +71 -0
- package/dist/styleD/build/typescript/component/select.d.ts +71 -0
- package/dist/styleD/build/typescript/component/select.js +63 -65
- package/dist/styleD/build/typescript/component/tagTable.cjs +52 -50
- package/dist/styleD/build/typescript/component/tagTable.d.cts +56 -0
- package/dist/styleD/build/typescript/component/tagTable.d.ts +56 -0
- package/dist/styleD/build/typescript/component/tagTable.js +52 -48
- package/dist/styleD/build/typescript/component/textArea.cjs +39 -45
- package/dist/styleD/build/typescript/component/textArea.d.cts +51 -0
- package/dist/styleD/build/typescript/component/textArea.d.ts +51 -0
- package/dist/styleD/build/typescript/component/textArea.js +39 -43
- package/dist/styleD/build/typescript/component/textInput.cjs +44 -46
- package/dist/styleD/build/typescript/component/textInput.d.cts +52 -0
- package/dist/styleD/build/typescript/component/textInput.d.ts +52 -0
- package/dist/styleD/build/typescript/component/textInput.js +44 -44
- package/dist/styleD/build/typescript/component/topBar.cjs +166 -192
- package/dist/styleD/build/typescript/component/topBar.d.cts +198 -0
- package/dist/styleD/build/typescript/component/topBar.d.ts +198 -0
- package/dist/styleD/build/typescript/component/topBar.js +166 -190
- package/dist/styleD/build/typescript/component/typography.cjs +6 -6
- package/dist/styleD/build/typescript/component/typography.d.cts +10 -0
- package/dist/styleD/build/typescript/component/typography.d.ts +10 -0
- package/dist/styleD/build/typescript/component/typography.js +6 -4
- package/dist/styleD/build/typescript/component/userMenu.cjs +36 -34
- package/dist/styleD/build/typescript/component/userMenu.d.cts +40 -0
- package/dist/styleD/build/typescript/component/userMenu.d.ts +40 -0
- package/dist/styleD/build/typescript/component/userMenu.js +36 -32
- package/dist/styleD/build/typescript/semantic/breakpoints.cjs +8 -6
- package/dist/styleD/build/typescript/semantic/breakpoints.d.cts +12 -0
- package/dist/styleD/build/typescript/semantic/breakpoints.d.ts +12 -0
- package/dist/styleD/build/typescript/semantic/breakpoints.js +8 -4
- package/dist/styleD/build/typescript/semantic/colors.cjs +82 -80
- package/dist/styleD/build/typescript/semantic/colors.d.cts +86 -0
- package/dist/styleD/build/typescript/semantic/colors.d.ts +86 -0
- package/dist/styleD/build/typescript/semantic/colors.js +82 -78
- package/dist/styleD/build/typescript/semantic/grid.cjs +20 -18
- package/dist/styleD/build/typescript/semantic/grid.d.cts +24 -0
- package/dist/styleD/build/typescript/semantic/grid.d.ts +24 -0
- package/dist/styleD/build/typescript/semantic/grid.js +20 -16
- package/dist/styleD/build/typescript/semantic/shadow.cjs +6 -6
- package/dist/styleD/build/typescript/semantic/shadow.d.cts +10 -0
- package/dist/styleD/build/typescript/semantic/shadow.d.ts +10 -0
- package/dist/styleD/build/typescript/semantic/shadow.js +6 -4
- package/dist/styleD/build/typescript/semantic/sizing.cjs +28 -28
- package/dist/styleD/build/typescript/semantic/sizing.d.cts +34 -0
- package/dist/styleD/build/typescript/semantic/sizing.d.ts +34 -0
- package/dist/styleD/build/typescript/semantic/sizing.js +28 -26
- package/dist/styleD/build/typescript/semantic/typography.cjs +380 -378
- package/dist/styleD/build/typescript/semantic/typography.d.cts +384 -0
- package/dist/styleD/build/typescript/semantic/typography.d.ts +384 -0
- package/dist/styleD/build/typescript/semantic/typography.js +380 -376
- package/dist/styleD/utils/semantic/mq.cjs +48 -31
- package/dist/styleD/utils/semantic/mq.d.cts +56 -0
- package/dist/{types/styleD → styleD}/utils/semantic/mq.d.ts +18 -14
- package/dist/styleD/utils/semantic/mq.js +48 -21
- package/dist/styleD/utils/semantic/typography.cjs +10 -11
- package/dist/styleD/utils/semantic/typography.d.cts +12 -0
- package/dist/styleD/utils/semantic/typography.d.ts +12 -0
- package/dist/styleD/utils/semantic/typography.js +9 -9
- package/dist/util/mergeDeep.cjs +11 -15
- package/dist/util/mergeDeep.js +11 -13
- package/dist/util/reset.cjs +4 -10
- package/dist/util/reset.d.cts +4 -0
- package/dist/util/reset.d.ts +4 -0
- package/dist/util/reset.js +4 -8
- package/dist/util/reset2.cjs +8 -0
- package/dist/util/reset2.js +8 -0
- package/dist/util/types.d.cts +34 -0
- package/dist/util/types.d.ts +34 -0
- package/dist/util/useResize.cjs +24 -31
- package/dist/util/useResize.js +22 -28
- package/dist/utils.cjs +10 -14
- package/dist/utils.d.cts +4 -0
- package/dist/utils.d.ts +4 -0
- package/dist/utils.js +4 -3
- package/package.json +278 -131
- package/dist/components/Icon/styles.cjs +0 -27
- package/dist/components/LinkButton/styles.cjs +0 -9
- package/dist/components/UserMenu/default-options.cjs +0 -109
- package/dist/components/UserMenu/default-options.js +0 -105
- package/dist/types/AlertBanner.d.ts +0 -19
- package/dist/types/Avatar.d.ts +0 -19
- package/dist/types/AvatarButton.d.ts +0 -18
- package/dist/types/AvatarLink.d.ts +0 -18
- package/dist/types/Button.d.ts +0 -20
- package/dist/types/Byline.d.ts +0 -25
- package/dist/types/Checkbox.d.ts +0 -21
- package/dist/types/DatePicker.d.ts +0 -21
- package/dist/types/Favicon.d.ts +0 -19
- package/dist/types/Form.d.ts +0 -8
- package/dist/types/Grid.d.ts +0 -20
- package/dist/types/Icon.d.ts +0 -27
- package/dist/types/IconButton.d.ts +0 -20
- package/dist/types/IconLinkButton.d.ts +0 -20
- package/dist/types/InlineMessage.d.ts +0 -19
- package/dist/types/IntendedAudienceSignifier.d.ts +0 -19
- package/dist/types/Layout.d.ts +0 -20
- package/dist/types/Link.d.ts +0 -19
- package/dist/types/LinkButton.d.ts +0 -20
- package/dist/types/Menu.d.ts +0 -20
- package/dist/types/RadioGroup.d.ts +0 -20
- package/dist/types/Select.d.ts +0 -20
- package/dist/types/TagPicker.d.ts +0 -22
- package/dist/types/TextArea.d.ts +0 -20
- package/dist/types/TextInput.d.ts +0 -20
- package/dist/types/TopBar.d.ts +0 -29
- package/dist/types/Typography.d.ts +0 -19
- package/dist/types/UserMenu.d.ts +0 -18
- package/dist/types/components/AlertBanner/AlertBanner.d.ts +0 -2
- package/dist/types/components/AlertBanner/sandbox.d.ts +0 -5
- package/dist/types/components/AlertBanner/styles.d.ts +0 -9
- package/dist/types/components/AlertBanner/types.d.ts +0 -27
- package/dist/types/components/Avatar/Avatar.d.ts +0 -2
- package/dist/types/components/Avatar/sandbox.d.ts +0 -5
- package/dist/types/components/Avatar/styles.d.ts +0 -9
- package/dist/types/components/Avatar/types.d.ts +0 -45
- package/dist/types/components/AvatarButton/AvatarButton.d.ts +0 -2
- package/dist/types/components/AvatarButton/sandbox.d.ts +0 -5
- package/dist/types/components/AvatarButton/styles.d.ts +0 -6
- package/dist/types/components/AvatarButton/types.d.ts +0 -3
- package/dist/types/components/AvatarLink/AvatarLink.d.ts +0 -2
- package/dist/types/components/AvatarLink/sandbox.d.ts +0 -5
- package/dist/types/components/AvatarLink/styles.d.ts +0 -6
- package/dist/types/components/AvatarLink/types.d.ts +0 -3
- package/dist/types/components/Button/Button.d.ts +0 -2
- package/dist/types/components/Button/sandbox.d.ts +0 -5
- package/dist/types/components/Button/styles.d.ts +0 -8
- package/dist/types/components/Button/types.d.ts +0 -18
- package/dist/types/components/Byline/Preview.d.ts +0 -4
- package/dist/types/components/Byline/contributors-fixture.d.ts +0 -1
- package/dist/types/components/Byline/lib.d.ts +0 -48
- package/dist/types/components/Byline/lib.test.d.ts +0 -1
- package/dist/types/components/Byline/placeholder.d.ts +0 -2
- package/dist/types/components/Byline/plugins.d.ts +0 -4
- package/dist/types/components/Byline/schema.d.ts +0 -2
- package/dist/types/components/Byline/styles.d.ts +0 -13
- package/dist/types/components/Byline/theme.d.ts +0 -3
- package/dist/types/components/Checkbox/Checkbox.d.ts +0 -2
- package/dist/types/components/Checkbox/CheckboxGroup.d.ts +0 -2
- package/dist/types/components/Checkbox/CheckboxGroupSandbox.d.ts +0 -5
- package/dist/types/components/Checkbox/CheckboxSandbox.d.ts +0 -5
- package/dist/types/components/Checkbox/styles.d.ts +0 -10
- package/dist/types/components/Checkbox/types.d.ts +0 -11
- package/dist/types/components/DatePicker/DatePicker.d.ts +0 -2
- package/dist/types/components/DatePicker/sandbox.d.ts +0 -2
- package/dist/types/components/DatePicker/styles.d.ts +0 -11
- package/dist/types/components/DatePicker/types.d.ts +0 -21
- package/dist/types/components/Favicon/Favicon.d.ts +0 -2
- package/dist/types/components/Favicon/sandbox.d.ts +0 -5
- package/dist/types/components/Favicon/styles.d.ts +0 -9
- package/dist/types/components/Favicon/types.d.ts +0 -38
- package/dist/types/components/Form/Form.d.ts +0 -5
- package/dist/types/components/Form/styles.d.ts +0 -13
- package/dist/types/components/Form/types.d.ts +0 -40
- package/dist/types/components/Grid/Grid.d.ts +0 -3
- package/dist/types/components/Grid/sandbox.d.ts +0 -5
- package/dist/types/components/Grid/styles.d.ts +0 -11
- package/dist/types/components/Grid/styles.test.d.ts +0 -1
- package/dist/types/components/Grid/types.d.ts +0 -25
- package/dist/types/components/Icon/Icon.d.ts +0 -2
- package/dist/types/components/Icon/sandbox.d.ts +0 -5
- package/dist/types/components/Icon/styles.d.ts +0 -9
- package/dist/types/components/Icon/types.d.ts +0 -28
- package/dist/types/components/IconButton/IconButton.d.ts +0 -2
- package/dist/types/components/IconButton/sandbox.d.ts +0 -5
- package/dist/types/components/IconButton/styles.d.ts +0 -398
- package/dist/types/components/IconButton/types.d.ts +0 -26
- package/dist/types/components/IconLinkButton/IconLinkButton.d.ts +0 -2
- package/dist/types/components/IconLinkButton/sandbox.d.ts +0 -5
- package/dist/types/components/IconLinkButton/styles.d.ts +0 -398
- package/dist/types/components/IconLinkButton/types.d.ts +0 -26
- package/dist/types/components/InlineMessage/InlineMessage.d.ts +0 -2
- package/dist/types/components/InlineMessage/sandbox.d.ts +0 -5
- package/dist/types/components/InlineMessage/styles.d.ts +0 -9
- package/dist/types/components/InlineMessage/types.d.ts +0 -21
- package/dist/types/components/IntendedAudienceSignifier/FlagIcons.d.ts +0 -5
- package/dist/types/components/IntendedAudienceSignifier/IntendedAudienceSignifier.d.ts +0 -2
- package/dist/types/components/IntendedAudienceSignifier/sandbox.d.ts +0 -5
- package/dist/types/components/IntendedAudienceSignifier/styles.d.ts +0 -8
- package/dist/types/components/IntendedAudienceSignifier/types.d.ts +0 -8
- package/dist/types/components/Layout/Layout.d.ts +0 -11
- package/dist/types/components/Layout/sandbox.d.ts +0 -5
- package/dist/types/components/Layout/styles.d.ts +0 -19
- package/dist/types/components/Layout/types.d.ts +0 -30
- package/dist/types/components/Link/Link.d.ts +0 -2
- package/dist/types/components/Link/sandbox.d.ts +0 -5
- package/dist/types/components/Link/styles.d.ts +0 -7
- package/dist/types/components/Link/types.d.ts +0 -11
- package/dist/types/components/LinkButton/LinkButton.d.ts +0 -2
- package/dist/types/components/LinkButton/sandbox.d.ts +0 -5
- package/dist/types/components/LinkButton/styles.d.ts +0 -398
- package/dist/types/components/LinkButton/types.d.ts +0 -18
- package/dist/types/components/Menu/Menu.d.ts +0 -7
- package/dist/types/components/Menu/sandbox.d.ts +0 -5
- package/dist/types/components/Menu/styles.d.ts +0 -28
- package/dist/types/components/Menu/types.d.ts +0 -63
- package/dist/types/components/RadioGroup/RadioGroup.d.ts +0 -3
- package/dist/types/components/RadioGroup/sandbox.d.ts +0 -5
- package/dist/types/components/RadioGroup/styles.d.ts +0 -9
- package/dist/types/components/RadioGroup/types.d.ts +0 -10
- package/dist/types/components/Select/Select.d.ts +0 -3
- package/dist/types/components/Select/sandbox.d.ts +0 -5
- package/dist/types/components/Select/styles.d.ts +0 -10
- package/dist/types/components/Select/types.d.ts +0 -9
- package/dist/types/components/TagPicker/example-tags.d.ts +0 -2
- package/dist/types/components/TagPicker/styles.d.ts +0 -16
- package/dist/types/components/TagPicker/types.d.ts +0 -64
- package/dist/types/components/TextArea/TextArea.d.ts +0 -2
- package/dist/types/components/TextArea/sandbox.d.ts +0 -5
- package/dist/types/components/TextArea/styles.d.ts +0 -7
- package/dist/types/components/TextArea/types.d.ts +0 -7
- package/dist/types/components/TextInput/TextInput.d.ts +0 -2
- package/dist/types/components/TextInput/sandbox.d.ts +0 -5
- package/dist/types/components/TextInput/styles.d.ts +0 -7
- package/dist/types/components/TextInput/types.d.ts +0 -7
- package/dist/types/components/TopBar/TopBar.d.ts +0 -11
- package/dist/types/components/TopBar/TopBarItem/TopBarItem.d.ts +0 -2
- package/dist/types/components/TopBar/TopBarItem/sandbox.d.ts +0 -5
- package/dist/types/components/TopBar/TopBarItem/styles.d.ts +0 -8
- package/dist/types/components/TopBar/TopBarItem/types.d.ts +0 -19
- package/dist/types/components/TopBar/TopBarNavigation/TopBarNavigation.d.ts +0 -2
- package/dist/types/components/TopBar/TopBarNavigation/sandbox.d.ts +0 -5
- package/dist/types/components/TopBar/TopBarNavigation/styles.d.ts +0 -12
- package/dist/types/components/TopBar/TopBarNavigation/types.d.ts +0 -49
- package/dist/types/components/TopBar/TopBarToolName/TopBarToolName.d.ts +0 -2
- package/dist/types/components/TopBar/TopBarToolName/sandbox.d.ts +0 -5
- package/dist/types/components/TopBar/TopBarToolName/styles.d.ts +0 -16
- package/dist/types/components/TopBar/TopBarToolName/types.d.ts +0 -40
- package/dist/types/components/TopBar/sandbox.d.ts +0 -5
- package/dist/types/components/TopBar/styles.d.ts +0 -15
- package/dist/types/components/TopBar/types.d.ts +0 -12
- package/dist/types/components/Typography/Typography.d.ts +0 -6
- package/dist/types/components/Typography/sandbox.d.ts +0 -5
- package/dist/types/components/Typography/styles.d.ts +0 -8
- package/dist/types/components/Typography/types.d.ts +0 -14
- package/dist/types/components/UserMenu/PreferenceRadioGroup.d.ts +0 -15
- package/dist/types/components/UserMenu/TitleText.d.ts +0 -6
- package/dist/types/components/UserMenu/UserMenu.d.ts +0 -17
- package/dist/types/components/UserMenu/default-options.d.ts +0 -5
- package/dist/types/components/UserMenu/model.d.ts +0 -9
- package/dist/types/components/UserMenu/styles.d.ts +0 -9
- package/dist/types/components/UserMenu/theme.d.ts +0 -3
- package/dist/types/components/UserMenu/types.d.ts +0 -5
- package/dist/types/fonts/material-symbols-types.d.ts +0 -3853
- package/dist/types/index.d.ts +0 -86
- package/dist/types/styleD/build/typescript/base/colors.d.ts +0 -144
- package/dist/types/styleD/build/typescript/base/radius.d.ts +0 -12
- package/dist/types/styleD/build/typescript/base/sizing.d.ts +0 -26
- package/dist/types/styleD/build/typescript/base/spacing.d.ts +0 -40
- package/dist/types/styleD/build/typescript/base/typography.d.ts +0 -81
- package/dist/types/styleD/build/typescript/component/alertBanner.d.ts +0 -48
- package/dist/types/styleD/build/typescript/component/autocomplete.d.ts +0 -32
- package/dist/types/styleD/build/typescript/component/avatar.d.ts +0 -171
- package/dist/types/styleD/build/typescript/component/button.d.ts +0 -398
- package/dist/types/styleD/build/typescript/component/byline.d.ts +0 -42
- package/dist/types/styleD/build/typescript/component/checkbox.d.ts +0 -100
- package/dist/types/styleD/build/typescript/component/datePicker.d.ts +0 -185
- package/dist/types/styleD/build/typescript/component/favicon.d.ts +0 -20
- package/dist/types/styleD/build/typescript/component/form.d.ts +0 -51
- package/dist/types/styleD/build/typescript/component/grid.d.ts +0 -29
- package/dist/types/styleD/build/typescript/component/icon.d.ts +0 -19
- package/dist/types/styleD/build/typescript/component/inlineMessage.d.ts +0 -29
- package/dist/types/styleD/build/typescript/component/intendedAudienceSignifier.d.ts +0 -32
- package/dist/types/styleD/build/typescript/component/layout.d.ts +0 -50
- package/dist/types/styleD/build/typescript/component/link.d.ts +0 -24
- package/dist/types/styleD/build/typescript/component/menu.d.ts +0 -145
- package/dist/types/styleD/build/typescript/component/radioGroup.d.ts +0 -85
- package/dist/types/styleD/build/typescript/component/select.d.ts +0 -68
- package/dist/types/styleD/build/typescript/component/tagTable.d.ts +0 -53
- package/dist/types/styleD/build/typescript/component/templateComponent.d.ts +0 -10
- package/dist/types/styleD/build/typescript/component/textArea.d.ts +0 -48
- package/dist/types/styleD/build/typescript/component/textInput.d.ts +0 -49
- package/dist/types/styleD/build/typescript/component/topBar.d.ts +0 -195
- package/dist/types/styleD/build/typescript/component/typography.d.ts +0 -7
- package/dist/types/styleD/build/typescript/component/userMenu.d.ts +0 -37
- package/dist/types/styleD/build/typescript/semantic/breakpoints.d.ts +0 -9
- package/dist/types/styleD/build/typescript/semantic/colors.d.ts +0 -83
- package/dist/types/styleD/build/typescript/semantic/grid.d.ts +0 -21
- package/dist/types/styleD/build/typescript/semantic/shadow.d.ts +0 -7
- package/dist/types/styleD/build/typescript/semantic/sizing.d.ts +0 -31
- package/dist/types/styleD/build/typescript/semantic/typography.d.ts +0 -381
- package/dist/types/styleD/stories/base/Radius.d.ts +0 -1
- package/dist/types/styleD/stories/base/Sizing.d.ts +0 -1
- package/dist/types/styleD/stories/base/Spacing.d.ts +0 -1
- package/dist/types/styleD/stories/base/Typography.d.ts +0 -1
- package/dist/types/styleD/stories/base/storybookColorPalette.d.ts +0 -19
- package/dist/types/styleD/stories/semantic/Breakpoints.d.ts +0 -15
- package/dist/types/styleD/stories/semantic/Shadow.d.ts +0 -1
- package/dist/types/styleD/stories/semantic/Sizing.d.ts +0 -1
- package/dist/types/styleD/stories/semantic/TypographyPresets.d.ts +0 -1
- package/dist/types/styleD/utils/semantic/mq.test.d.ts +0 -1
- package/dist/types/styleD/utils/semantic/typography.d.ts +0 -9
- package/dist/types/styleD/utils/semantic/typography.test.d.ts +0 -1
- package/dist/types/templates/component/TemplateComponent.d.ts +0 -2
- package/dist/types/templates/component/sandbox.d.ts +0 -5
- package/dist/types/templates/component/styles.d.ts +0 -7
- package/dist/types/templates/component/types.d.ts +0 -5
- package/dist/types/util/mergeDeep.d.ts +0 -1
- package/dist/types/util/reset.d.ts +0 -1
- package/dist/types/util/storybook/sandbox/Sandbox.d.ts +0 -14
- package/dist/types/util/storybook/styles.d.ts +0 -1
- package/dist/types/util/types.d.ts +0 -34
- package/dist/types/util/useResize.d.ts +0 -1
- package/dist/types/utils.d.ts +0 -8
- package/dist/util/reset.css.cjs +0 -5
- package/dist/util/reset.css.js +0 -3
- /package/dist/fonts/{material-symbols-types.ts → materialSymbolsTypes.ts} +0 -0
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import type { LinkProps as RACLinkProps } from 'react-aria-components';
|
|
2
|
-
import type { DefaultPropsWithChildren } from '../../util/types';
|
|
3
|
-
import type { TypographyVariant } from '../Typography/types';
|
|
4
|
-
import type { LinkTheme } from './styles';
|
|
5
|
-
export interface LinkProps extends Omit<RACLinkProps, 'children'>, DefaultPropsWithChildren<LinkTheme, RACLinkProps['className']> {
|
|
6
|
-
/**
|
|
7
|
-
* to change the typography of the link, you can pass a variant from semanticTypography.
|
|
8
|
-
* By default, it is set to "body-sm".
|
|
9
|
-
*/
|
|
10
|
-
typography?: TypographyVariant;
|
|
11
|
-
}
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
export declare const componentName = "LinkButton";
|
|
2
|
-
export declare const componentTsx = "import { LinkButton } from '@guardian/stand/LinkButton';\n\nexport const Component = () => (\n\t<>\n\t\t<div className=\"container\">\n\t\t\t<LinkButton href=\"#\">\n \t\tLinkButton\n\t\t\t</LinkButton>\n\t\t\t<LinkButton isDisabled variant=\"secondary\">\n\t\t\t\tDisabled LinkButton\n\t\t\t</LinkButton>\n\t\t</div>\n\t\t<div className=\"container\">\n\t\t\t<LinkButton\n\t\t\t\thref=\"#\"\n\t\t\t\ticon=\"raven\"\n\t\t\t>\n\t\t\t\tLinkButton with Icon\n\t\t\t</LinkButton>\n\t\t\t<LinkButton\n\t\t\t\tisDisabled\n\t\t\t\thref=\"#\"\n\t\t\t\tvariant=\"tertiary\"\n\t\t\t\ticon=\"owl\"\n\t\t\t>\n\t\t\t\tDisabled LinkButton with Icon\n\t\t\t</LinkButton>\n\t\t</div>\n\t</>\n);\n\n";
|
|
3
|
-
export declare const componentCss = "@import '@guardian/stand/component/button.css';\n\n /* shared button styles for all variants */\n .stand-button {\n \tdisplay: var(--component-button-shared-display);\n \t-webkit-appearance: var(--component-button-shared-webkit-appearance);\n \ttext-align: var(--component-button-shared-text-align);\n \tbox-shadow: var(--component-button-shared-box-shadow);\n \ttext-decoration: var(--component-button-shared-text-decoration);\n \tcursor: var(--component-button-shared-cursor);\n \tjustify-content: var(--component-button-shared-justify-content);\n \talign-items: var(--component-button-shared-align-items);\n }\n .stand-button:focus-visible {\n \toutline: var(--component-button-shared-focus-visible-outline);\n \toutline-offset: var(--component-button-shared-focus-visible-outline-offset);\n }\n .stand-button:disabled {\n \tcursor: var(--component-button-shared-disabled-cursor);\n }\n\n /* example setup of button/link button style using md size and emphasised primary variant */\n .stand-button-primary {\n \tcolor: var(--component-button-primary-shared-color);\n \tbackground: var(\n \t\t--component-button-primary-shared-background-color\n \t);\n \theight: var(--component-button-primary-md-height);\n \tpadding: var(--component-button-primary-md-padding-top)\n \tvar(--component-button-primary-md-padding-right)\n \tvar(--component-button-primary-md-padding-bottom)\n \tvar(--component-button-primary-md-padding-left);\n \tfont: var(--component-button-primary-md-typography-font);\n \tletter-spacing: var(\n \t\t--component-button-primary-md-typography-letter-spacing\n \t);\n \tfont-variation-settings: \"wdth\"\n \tvar(--component-button-primary-md-typography-font-width);\n \tborder: var(--component-button-primary-shared-border);\n \tborder-radius: var(\n \t\t--component-button-primary-shared-border-radius\n \t);\n }\n .stand-button-primary:hover {\n \tbackground: var(\n \t\t--component-button-primary-shared-hover-background-color\n \t);\n \tborder: var(--component-button-primary-shared-hover-border);\n }\n .stand-button-primary:active {\n \tbackground: var(\n \t\t--component-button-primary-shared-active-background-color\n \t);\n \tborder: var(--component-button-primary-shared-active-border);\n }\n .stand-button-primary:disabled, .stand-button-primary[data-disabled] {\n \tcolor: var(--component-button-primary-shared-disabled-color);\n \tbackground: var(\n \t\t--component-button-primary-shared-disabled-background-color\n \t);\n \tborder: var(--component-button-primary-shared-disabled-border);\n \t}\n \t.stand-button-primary > .material-symbols {\n \tfont-size: var(--component-button-primary-md-icon-size);\n \t}\n \t.stand-button-primary:has(> .material-symbols) {\n \tpadding-left: var(\n \t\t--component-button-primary-md-padding-with-icon-icon-left-left\n \t);\n \tgap: var(--component-button-primary-md-icon-gap);\n }\n\n /* example setup of button/link button style using md size and neutral secondary variant */\n .stand-button-tertiary {\n \tcolor: var(--component-button-tertiary-shared-color);\n \tbackground: var(--component-button-tertiary-shared-background-color);\n \theight: var(--component-button-tertiary-md-height);\n \tpadding: var(--component-button-tertiary-md-padding-top)\n \tvar(--component-button-tertiary-md-padding-right)\n \tvar(--component-button-tertiary-md-padding-bottom)\n \tvar(--component-button-tertiary-md-padding-left);\n \tfont: var(--component-button-tertiary-md-typography-font);\n \tletter-spacing: var(\n \t\t--component-button-tertiary-md-typography-letter-spacing\n \t);\n \tfont-variation-settings: \"wdth\"\n \tvar(--component-button-tertiary-md-typography-font-width);\n \tborder: var(--component-button-tertiary-shared-border);\n \tborder-radius: var(--component-button-tertiary-shared-border-radius);\n }\n .stand-button-tertiary:hover {\n \tbackground: var(\n \t\t--component-button-tertiary-shared-hover-background-color\n \t);\n \tborder: var(--component-button-tertiary-shared-hover-border);\n }\n .stand-button-tertiary:active {\n \tbackground: var(\n \t\t--component-button-tertiary-shared-active-background-color\n \t);\n \tborder: var(--component-button-tertiary-shared-active-border);\n }\n .stand-button-tertiary:disabled, .stand-button-tertiary[data-disabled] {\n \tcolor: var(--component-button-tertiary-shared-disabled-color);\n \tbackground: var(\n \t\t--component-button-tertiary-shared-disabled-background-color\n \t);\n \tborder: var(--component-button-tertiary-shared-disabled-border);\n }\n .stand-button-tertiary > .material-symbols {\n \tfont-size: var(--component-button-tertiary-md-icon-size);\n }\n .stand-button-tertiary:has(> .material-symbols) {\n \tpadding-left: var(\n \t\t--component-button-tertiary-md-padding-with-icon-icon-left-left\n \t);\n \tgap: var(--component-button-tertiary-md-icon-gap);\n }\n\n";
|
|
4
|
-
export declare const componentHtml = "<div class=\"container flow-column\">\n <div class=\"container\">\n \t<a href=\"#\" class=\"stand-button stand-button-primary\">LinkButton</a>\n \t<a class=\"stand-button stand-button-tertiary\" data-disabled>Disabled LinkButton</a>\n </div>\n\n <div class=\"container\">\n \t<a href=\"#\" class=\"stand-button stand-button-primary\"><span class=\"material-symbols\">raven</span>LinkButton with Icon</a>\n \t<a class=\"stand-button stand-button-tertiary\" data-disabled><span class=\"material-symbols\">owl</span>Disabled LinkButton with Icon</a>\n </div>\n\n</div>\n";
|
|
5
|
-
export declare const componentJs = "\t// for ts/js\n\t\timport { componentButton } from \"@guardian/stand\";\n\n \t// example of creating a stylesheet in js\n \tconst sheet = new CSSStyleSheet();\n\n \t// apply the rules to the sheet\n \tsheet.replaceSync(`\n \t/* shared button styles for all variants */\n \t.js-stand-button {\n \t\tdisplay: ${componentButton.shared.display};\n \t\t-webkit-appearance: ${componentButton.shared.webkitAppearance};\n \t\ttext-align: ${componentButton.shared.textAlign};\n \t\tbox-shadow: ${componentButton.shared.boxShadow};\n \t\ttext-decoration: ${componentButton.shared.textDecoration};\n \t\tcursor: ${componentButton.shared.cursor};\n \t\tjustify-content: ${componentButton.shared.justifyContent};\n \t\talign-items: ${componentButton.shared.alignItems};\n \t}\n \t.js-stand-button:focus-visible {\n \t\toutline: ${componentButton.shared.focusVisible.outline};\n \t\toutline-offset: ${componentButton.shared.focusVisible.outlineOffset};\n \t}\n \t.js-stand-button:disabled {\n \t\tcursor: ${componentButton.shared.disabled.cursor};\n \t}\n\n \t/* example setup of button/link button style using md size and emphasised primary variant */\n \t.js-stand-button-primary {\n \t\tcolor: ${componentButton.primary.shared.color};\n \t\tbackground: ${componentButton.primary.shared.backgroundColor};\n \t\theight: ${componentButton.primary.md.height};\n \t\tpadding: ${componentButton.primary.md.padding.top}\n \t\t${componentButton.primary.md.padding.right}\n \t\t${componentButton.primary.md.padding.bottom}\n \t\t${componentButton.primary.md.padding.left};\n \t\tfont: ${componentButton.primary.md.typography.font};\n \t\tletter-spacing: ${componentButton.primary.md.typography.letterSpacing};\n \t\tfont-variation-settings: 'wdth'\n \t\t${componentButton.primary.md.typography.fontWidth};\n \t\tborder: ${componentButton.primary.shared.border};\n \t\tborder-radius: ${componentButton.primary.shared.borderRadius};\n \t}\n \t.js-stand-button-primary:hover {\n \t\tbackground: ${componentButton.primary.shared.hover.backgroundColor};\n \t\tborder: ${componentButton.primary.shared.hover.border}\n \t}\n \t.js-stand-button-primary:active {\n \t\tbackground: ${componentButton.primary.shared.active.backgroundColor};\n \t\tborder: ${componentButton.primary.shared.active.border};\n \t}\n \t.js-stand-button-primary:disabled, .js-stand-button-primary[data-disabled] {\n \t\tcolor: ${componentButton.primary.shared.disabled.color};\n \t\tbackground: ${componentButton.primary.shared.disabled.backgroundColor};\n \t\tborder: ${componentButton.primary.shared.disabled.border};\n \t}\n \t.js-stand-button-primary > .material-symbols {\n \t\tfont-size: ${componentButton.primary.md.icon.size}\n \t}\n \t.js-stand-button-primary:has(> .material-symbols) {\n \t\tpadding-left: ${componentButton.primary.md.padding.withIcon.iconLeft.left};\n \t\tgap: ${componentButton.primary.md.icon.gap};\n \t}\n\n \t/* example setup of button/link button style using md size and neutral secondary variant */\n \t.js-stand-button-tertiary {\n \t\tcolor: ${componentButton.tertiary.shared.color};\n \t\tbackground: ${componentButton.tertiary.shared.backgroundColor};\n \t\theight: ${componentButton.tertiary.md.height};\n \t\tpadding: ${componentButton.tertiary.md.padding.top}\n \t\t${componentButton.tertiary.md.padding.right}\n \t\t${componentButton.tertiary.md.padding.bottom}\n \t\t${componentButton.tertiary.md.padding.left};\n \t\tfont: ${componentButton.tertiary.md.typography.font};\n \t\tletter-spacing: ${componentButton.tertiary.md.typography.letterSpacing};\n \t\tfont-variation-settings: 'wdth'\n \t\t${componentButton.tertiary.md.typography.fontWidth};\n \t\tborder: ${componentButton.tertiary.shared.border};\n \t\tborder-radius: ${componentButton.tertiary.shared.borderRadius};\n \t}\n \t.js-stand-button-tertiary:hover {\n \t\tbackground: ${componentButton.tertiary.shared.hover.backgroundColor};\n \t\tborder: ${componentButton.tertiary.shared.hover.border};\n \t}\n \t.js-stand-button-tertiary:active {\n \t\tbackground: ${componentButton.tertiary.shared.active.backgroundColor};\n \t\tborder: ${componentButton.tertiary.shared.active.border};\n \t}\n \t.js-stand-button-tertiary:disabled, .js-stand-button-tertiary[data-disabled] {\n \t\tcolor: ${componentButton.tertiary.shared.disabled.color};\n \t\tbackground: ${componentButton.tertiary.shared.disabled.backgroundColor};\n \t\tborder: ${componentButton.tertiary.shared.disabled.border};\n \t}\n \t.js-stand-button-tertiary > .material-symbols {\n \t\tfont-size: ${componentButton.tertiary.md.icon.size}\n \t}\n \t.js-stand-button-tertiary:has(> .material-symbols) {\n \t\tpadding-left: ${componentButton.tertiary.md.padding.withIcon.iconLeft.left};\n \t\tgap: ${componentButton.tertiary.md.icon.gap};\n \t}\n\n `);\n\n // update the document with the sheet\n document.adoptedStyleSheets.push(sheet);\n\n // modify the dom with the button components using the generated stylesheet\n document.getElementById(\"app\").innerHTML = `<div class=\"container flow-column\">\n \t<div class=\"container\">\n \t\t<a href=\"#\" class=\"js-stand-button js-stand-button-primary\">LinkButton</a>\n \t\t<a class=\"js-stand-button js-stand-button-tertiary\" data-disabled>Disabled LinkButton</a>\n \t</div>\n \t<div class=\"container\">\n \t\t<a href=\"#\" class=\"js-stand-button js-stand-button-primary\"><span class=\"material-symbols\">raven</span>LinkButton with Icon</a>\n \t\t<a class=\"js-stand-button js-stand-button-tertiary\" data-disabled><span class=\"material-symbols\">owl</span>Disabled LinkButton with Icon</a>\n \t</div>\n </div>`;\n\n";
|
|
@@ -1,398 +0,0 @@
|
|
|
1
|
-
import type { ButtonTheme, PartialButtonTheme } from '../Button/styles';
|
|
2
|
-
export type LinkButtonTheme = ButtonTheme;
|
|
3
|
-
export type PartialLinkButtonTheme = PartialButtonTheme;
|
|
4
|
-
export declare const defaultLinkButtonTheme: ButtonTheme;
|
|
5
|
-
export declare const linkButtonStyles: (theme: {
|
|
6
|
-
shared: {
|
|
7
|
-
display: string;
|
|
8
|
-
webkitAppearance: string;
|
|
9
|
-
textAlign: string;
|
|
10
|
-
boxShadow: string;
|
|
11
|
-
cursor: string;
|
|
12
|
-
justifyContent: string;
|
|
13
|
-
alignItems: string;
|
|
14
|
-
textDecoration: string;
|
|
15
|
-
disabled: {
|
|
16
|
-
cursor: string;
|
|
17
|
-
};
|
|
18
|
-
focusVisible: {
|
|
19
|
-
outline: string;
|
|
20
|
-
outlineOffset: string;
|
|
21
|
-
};
|
|
22
|
-
};
|
|
23
|
-
primary: {
|
|
24
|
-
shared: {
|
|
25
|
-
color: string;
|
|
26
|
-
backgroundColor: string;
|
|
27
|
-
borderRadius: string;
|
|
28
|
-
border: string;
|
|
29
|
-
hover: {
|
|
30
|
-
backgroundColor: string;
|
|
31
|
-
border: string;
|
|
32
|
-
};
|
|
33
|
-
active: {
|
|
34
|
-
backgroundColor: string;
|
|
35
|
-
border: string;
|
|
36
|
-
};
|
|
37
|
-
disabled: {
|
|
38
|
-
color: string;
|
|
39
|
-
backgroundColor: string;
|
|
40
|
-
border: string;
|
|
41
|
-
};
|
|
42
|
-
};
|
|
43
|
-
xs: {
|
|
44
|
-
height: string;
|
|
45
|
-
padding: {
|
|
46
|
-
top: string;
|
|
47
|
-
right: string;
|
|
48
|
-
bottom: string;
|
|
49
|
-
left: string;
|
|
50
|
-
withIcon: {
|
|
51
|
-
iconLeft: {
|
|
52
|
-
left: string;
|
|
53
|
-
};
|
|
54
|
-
};
|
|
55
|
-
};
|
|
56
|
-
typography: {
|
|
57
|
-
font: string;
|
|
58
|
-
letterSpacing: string;
|
|
59
|
-
fontWidth: number;
|
|
60
|
-
};
|
|
61
|
-
icon: {
|
|
62
|
-
size: string;
|
|
63
|
-
gap: string;
|
|
64
|
-
};
|
|
65
|
-
iconButton: {
|
|
66
|
-
width: string;
|
|
67
|
-
};
|
|
68
|
-
};
|
|
69
|
-
sm: {
|
|
70
|
-
height: string;
|
|
71
|
-
padding: {
|
|
72
|
-
top: string;
|
|
73
|
-
right: string;
|
|
74
|
-
bottom: string;
|
|
75
|
-
left: string;
|
|
76
|
-
withIcon: {
|
|
77
|
-
iconLeft: {
|
|
78
|
-
left: string;
|
|
79
|
-
};
|
|
80
|
-
};
|
|
81
|
-
};
|
|
82
|
-
typography: {
|
|
83
|
-
font: string;
|
|
84
|
-
letterSpacing: string;
|
|
85
|
-
fontWidth: number;
|
|
86
|
-
};
|
|
87
|
-
icon: {
|
|
88
|
-
size: string;
|
|
89
|
-
gap: string;
|
|
90
|
-
};
|
|
91
|
-
iconButton: {
|
|
92
|
-
width: string;
|
|
93
|
-
};
|
|
94
|
-
};
|
|
95
|
-
md: {
|
|
96
|
-
height: string;
|
|
97
|
-
padding: {
|
|
98
|
-
top: string;
|
|
99
|
-
right: string;
|
|
100
|
-
bottom: string;
|
|
101
|
-
left: string;
|
|
102
|
-
withIcon: {
|
|
103
|
-
iconLeft: {
|
|
104
|
-
left: string;
|
|
105
|
-
};
|
|
106
|
-
};
|
|
107
|
-
};
|
|
108
|
-
typography: {
|
|
109
|
-
font: string;
|
|
110
|
-
letterSpacing: string;
|
|
111
|
-
fontWidth: number;
|
|
112
|
-
};
|
|
113
|
-
icon: {
|
|
114
|
-
size: string;
|
|
115
|
-
gap: string;
|
|
116
|
-
};
|
|
117
|
-
iconButton: {
|
|
118
|
-
width: string;
|
|
119
|
-
};
|
|
120
|
-
};
|
|
121
|
-
lg: {
|
|
122
|
-
height: string;
|
|
123
|
-
padding: {
|
|
124
|
-
top: string;
|
|
125
|
-
right: string;
|
|
126
|
-
bottom: string;
|
|
127
|
-
left: string;
|
|
128
|
-
withIcon: {
|
|
129
|
-
iconLeft: {
|
|
130
|
-
left: string;
|
|
131
|
-
};
|
|
132
|
-
};
|
|
133
|
-
};
|
|
134
|
-
typography: {
|
|
135
|
-
font: string;
|
|
136
|
-
letterSpacing: string;
|
|
137
|
-
fontWidth: number;
|
|
138
|
-
};
|
|
139
|
-
icon: {
|
|
140
|
-
size: string;
|
|
141
|
-
gap: string;
|
|
142
|
-
};
|
|
143
|
-
iconButton: {
|
|
144
|
-
width: string;
|
|
145
|
-
};
|
|
146
|
-
};
|
|
147
|
-
};
|
|
148
|
-
secondary: {
|
|
149
|
-
shared: {
|
|
150
|
-
color: string;
|
|
151
|
-
backgroundColor: string;
|
|
152
|
-
borderRadius: string;
|
|
153
|
-
border: string;
|
|
154
|
-
hover: {
|
|
155
|
-
backgroundColor: string;
|
|
156
|
-
border: string;
|
|
157
|
-
};
|
|
158
|
-
active: {
|
|
159
|
-
backgroundColor: string;
|
|
160
|
-
border: string;
|
|
161
|
-
};
|
|
162
|
-
disabled: {
|
|
163
|
-
color: string;
|
|
164
|
-
backgroundColor: string;
|
|
165
|
-
border: string;
|
|
166
|
-
};
|
|
167
|
-
};
|
|
168
|
-
xs: {
|
|
169
|
-
height: string;
|
|
170
|
-
padding: {
|
|
171
|
-
top: string;
|
|
172
|
-
right: string;
|
|
173
|
-
bottom: string;
|
|
174
|
-
left: string;
|
|
175
|
-
withIcon: {
|
|
176
|
-
iconLeft: {
|
|
177
|
-
left: string;
|
|
178
|
-
};
|
|
179
|
-
};
|
|
180
|
-
};
|
|
181
|
-
typography: {
|
|
182
|
-
font: string;
|
|
183
|
-
letterSpacing: string;
|
|
184
|
-
fontWidth: number;
|
|
185
|
-
};
|
|
186
|
-
icon: {
|
|
187
|
-
size: string;
|
|
188
|
-
gap: string;
|
|
189
|
-
};
|
|
190
|
-
iconButton: {
|
|
191
|
-
width: string;
|
|
192
|
-
};
|
|
193
|
-
};
|
|
194
|
-
sm: {
|
|
195
|
-
height: string;
|
|
196
|
-
padding: {
|
|
197
|
-
top: string;
|
|
198
|
-
right: string;
|
|
199
|
-
bottom: string;
|
|
200
|
-
left: string;
|
|
201
|
-
withIcon: {
|
|
202
|
-
iconLeft: {
|
|
203
|
-
left: string;
|
|
204
|
-
};
|
|
205
|
-
};
|
|
206
|
-
};
|
|
207
|
-
typography: {
|
|
208
|
-
font: string;
|
|
209
|
-
letterSpacing: string;
|
|
210
|
-
fontWidth: number;
|
|
211
|
-
};
|
|
212
|
-
icon: {
|
|
213
|
-
size: string;
|
|
214
|
-
gap: string;
|
|
215
|
-
};
|
|
216
|
-
iconButton: {
|
|
217
|
-
width: string;
|
|
218
|
-
};
|
|
219
|
-
};
|
|
220
|
-
md: {
|
|
221
|
-
height: string;
|
|
222
|
-
padding: {
|
|
223
|
-
top: string;
|
|
224
|
-
right: string;
|
|
225
|
-
bottom: string;
|
|
226
|
-
left: string;
|
|
227
|
-
withIcon: {
|
|
228
|
-
iconLeft: {
|
|
229
|
-
left: string;
|
|
230
|
-
};
|
|
231
|
-
};
|
|
232
|
-
};
|
|
233
|
-
typography: {
|
|
234
|
-
font: string;
|
|
235
|
-
letterSpacing: string;
|
|
236
|
-
fontWidth: number;
|
|
237
|
-
};
|
|
238
|
-
icon: {
|
|
239
|
-
size: string;
|
|
240
|
-
gap: string;
|
|
241
|
-
};
|
|
242
|
-
iconButton: {
|
|
243
|
-
width: string;
|
|
244
|
-
};
|
|
245
|
-
};
|
|
246
|
-
lg: {
|
|
247
|
-
height: string;
|
|
248
|
-
padding: {
|
|
249
|
-
top: string;
|
|
250
|
-
right: string;
|
|
251
|
-
bottom: string;
|
|
252
|
-
left: string;
|
|
253
|
-
withIcon: {
|
|
254
|
-
iconLeft: {
|
|
255
|
-
left: string;
|
|
256
|
-
};
|
|
257
|
-
};
|
|
258
|
-
};
|
|
259
|
-
typography: {
|
|
260
|
-
font: string;
|
|
261
|
-
letterSpacing: string;
|
|
262
|
-
fontWidth: number;
|
|
263
|
-
};
|
|
264
|
-
icon: {
|
|
265
|
-
size: string;
|
|
266
|
-
gap: string;
|
|
267
|
-
};
|
|
268
|
-
iconButton: {
|
|
269
|
-
width: string;
|
|
270
|
-
};
|
|
271
|
-
};
|
|
272
|
-
};
|
|
273
|
-
tertiary: {
|
|
274
|
-
shared: {
|
|
275
|
-
color: string;
|
|
276
|
-
backgroundColor: string;
|
|
277
|
-
borderRadius: string;
|
|
278
|
-
border: string;
|
|
279
|
-
hover: {
|
|
280
|
-
backgroundColor: string;
|
|
281
|
-
border: string;
|
|
282
|
-
};
|
|
283
|
-
active: {
|
|
284
|
-
backgroundColor: string;
|
|
285
|
-
border: string;
|
|
286
|
-
};
|
|
287
|
-
disabled: {
|
|
288
|
-
color: string;
|
|
289
|
-
backgroundColor: string;
|
|
290
|
-
border: string;
|
|
291
|
-
};
|
|
292
|
-
};
|
|
293
|
-
xs: {
|
|
294
|
-
height: string;
|
|
295
|
-
padding: {
|
|
296
|
-
top: string;
|
|
297
|
-
right: string;
|
|
298
|
-
bottom: string;
|
|
299
|
-
left: string;
|
|
300
|
-
withIcon: {
|
|
301
|
-
iconLeft: {
|
|
302
|
-
left: string;
|
|
303
|
-
};
|
|
304
|
-
};
|
|
305
|
-
};
|
|
306
|
-
typography: {
|
|
307
|
-
font: string;
|
|
308
|
-
letterSpacing: string;
|
|
309
|
-
fontWidth: number;
|
|
310
|
-
};
|
|
311
|
-
icon: {
|
|
312
|
-
size: string;
|
|
313
|
-
gap: string;
|
|
314
|
-
};
|
|
315
|
-
iconButton: {
|
|
316
|
-
width: string;
|
|
317
|
-
};
|
|
318
|
-
};
|
|
319
|
-
sm: {
|
|
320
|
-
height: string;
|
|
321
|
-
padding: {
|
|
322
|
-
top: string;
|
|
323
|
-
right: string;
|
|
324
|
-
bottom: string;
|
|
325
|
-
left: string;
|
|
326
|
-
withIcon: {
|
|
327
|
-
iconLeft: {
|
|
328
|
-
left: string;
|
|
329
|
-
};
|
|
330
|
-
};
|
|
331
|
-
};
|
|
332
|
-
typography: {
|
|
333
|
-
font: string;
|
|
334
|
-
letterSpacing: string;
|
|
335
|
-
fontWidth: number;
|
|
336
|
-
};
|
|
337
|
-
icon: {
|
|
338
|
-
size: string;
|
|
339
|
-
gap: string;
|
|
340
|
-
};
|
|
341
|
-
iconButton: {
|
|
342
|
-
width: string;
|
|
343
|
-
};
|
|
344
|
-
};
|
|
345
|
-
md: {
|
|
346
|
-
height: string;
|
|
347
|
-
padding: {
|
|
348
|
-
top: string;
|
|
349
|
-
right: string;
|
|
350
|
-
bottom: string;
|
|
351
|
-
left: string;
|
|
352
|
-
withIcon: {
|
|
353
|
-
iconLeft: {
|
|
354
|
-
left: string;
|
|
355
|
-
};
|
|
356
|
-
};
|
|
357
|
-
};
|
|
358
|
-
typography: {
|
|
359
|
-
font: string;
|
|
360
|
-
letterSpacing: string;
|
|
361
|
-
fontWidth: number;
|
|
362
|
-
};
|
|
363
|
-
icon: {
|
|
364
|
-
size: string;
|
|
365
|
-
gap: string;
|
|
366
|
-
};
|
|
367
|
-
iconButton: {
|
|
368
|
-
width: string;
|
|
369
|
-
};
|
|
370
|
-
};
|
|
371
|
-
lg: {
|
|
372
|
-
height: string;
|
|
373
|
-
padding: {
|
|
374
|
-
top: string;
|
|
375
|
-
right: string;
|
|
376
|
-
bottom: string;
|
|
377
|
-
left: string;
|
|
378
|
-
withIcon: {
|
|
379
|
-
iconLeft: {
|
|
380
|
-
left: string;
|
|
381
|
-
};
|
|
382
|
-
};
|
|
383
|
-
};
|
|
384
|
-
typography: {
|
|
385
|
-
font: string;
|
|
386
|
-
letterSpacing: string;
|
|
387
|
-
fontWidth: number;
|
|
388
|
-
};
|
|
389
|
-
icon: {
|
|
390
|
-
size: string;
|
|
391
|
-
gap: string;
|
|
392
|
-
};
|
|
393
|
-
iconButton: {
|
|
394
|
-
width: string;
|
|
395
|
-
};
|
|
396
|
-
};
|
|
397
|
-
};
|
|
398
|
-
}, { size, variant }: Required<Pick<import("../Button/types").ButtonProps, "size" | "variant">>, hasIcon?: boolean, isIconButton?: boolean) => import("@emotion/react").SerializedStyles;
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import type { LinkProps as RACLinkProps } from 'react-aria-components';
|
|
2
|
-
import type { DefaultProps } from '../../util/types';
|
|
3
|
-
import type { IconProps } from '../Icon/types';
|
|
4
|
-
import type { LinkButtonTheme } from './styles';
|
|
5
|
-
export interface LinkButtonProps extends DefaultProps<LinkButtonTheme, RACLinkProps['className']>, RACLinkProps {
|
|
6
|
-
/**
|
|
7
|
-
* Size variant of the link button
|
|
8
|
-
*/
|
|
9
|
-
size?: keyof Omit<LinkButtonTheme['primary'], 'shared'>;
|
|
10
|
-
/**
|
|
11
|
-
* Variant of the button
|
|
12
|
-
*/
|
|
13
|
-
variant?: keyof Omit<LinkButtonTheme, 'shared'>;
|
|
14
|
-
/**
|
|
15
|
-
* Icon to be rendered within the button. Passed to the Icon component, so can be either a string (for material symbols) or an SVG element.
|
|
16
|
-
*/
|
|
17
|
-
icon?: IconProps['symbol'] | Exclude<IconProps['children'], string>;
|
|
18
|
-
}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import type { DefaultPropsWithChildren } from '../../util/types';
|
|
2
|
-
import type { MenuItemProps, MenuProps, MenuSectionProps, MenuSeparatorProps } from './types';
|
|
3
|
-
export declare function MenuSeparator({ theme, cssOverrides, ...props }: MenuSeparatorProps): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
4
|
-
export declare function MenuToggle({ children }: DefaultPropsWithChildren<unknown>): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
5
|
-
export declare function MenuSection({ name, size, theme, cssOverrides, children, ...props }: MenuSectionProps): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
6
|
-
export declare function MenuItem({ label, description, aside, icon, size, theme, cssOverrides, ...props }: MenuItemProps): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
7
|
-
export declare function Menu({ theme, size, popoverProps, menuTriggerProps, children, cssOverrides, ...props }: MenuProps): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
export declare const componentName = "Menu";
|
|
2
|
-
export declare const componentTsx = "import {\n\tMenu,\n\tMenuToggle,\n\tMenuSection,\n\tMenuItem,\n\tMenuSeparator,\n} from '@guardian/stand/Menu';\nimport { IconButton } from '@guardian/stand/IconButton';\n\nexport const Component = () => (\n\t<Menu>\n\t\t<MenuToggle>\n\t\t\t<IconButton symbol=\"settings\" ariaLabel=\"Open menu\" />\n\t\t</MenuToggle>\n\n\t\t<MenuSection name=\"File actions\">\n\t\t\t<MenuItem\n\t\t\t\ticon=\"open_in_new\"\n\t\t\t\tlabel=\"Open\"\n\t\t\t\tdescription=\"Open in a new tab\"\n\t\t\t\tonAction={() => alert('open')}\n\t\t\t/>\n\t\t\t<MenuItem\n\t\t\t\ticon=\"edit\"\n\t\t\t\tlabel=\"Rename\"\n\t\t\t\tdescription=\"Rename the file\"\n\t\t\t\tonAction={() => alert('rename')}\n\t\t\t/>\n\t\t\t<MenuItem label=\"Delete\" onAction={() => alert('delete')} />\n\t\t</MenuSection>\n\n\t\t<MenuSeparator />\n\n\t\t<MenuSection>\n\t\t\t<MenuItem id=\"files\" label=\"Show files\" />\n\t\t\t<MenuItem id=\"folders\" label=\"Show folders\" />\n\t\t</MenuSection>\n\t</Menu>\n);\n";
|
|
3
|
-
export declare const componentCss = "@import '@guardian/stand/component/menu.css';\n@import \"@guardian/stand/fonts/MaterialSymbolsOutlined.css\";\n\n/* Popover container */\n.stand-popover {\n\toverflow: var(--component-menu-popover-shared-overflow);\n\tmax-width: var(--component-menu-popover-md-max-width);\n\twidth: var(--component-menu-popover-md-width);\n\tbox-shadow: var(--component-menu-popover-shared-shadow);\n}\n\n/* Menu list */\n.stand-menu {\n\tdisplay: var(--component-menu-menu-shared-display);\n\tflex-direction: var(--component-menu-menu-shared-flex-direction);\n\tbackground: var(--component-menu-menu-shared-background-color);\n\tborder: var(--component-menu-menu-shared-border);\n}\n\n/* Menu section header */\n.stand-menu-section-header {\n\tdisplay: var(--component-menu-menu-section-header-shared-display);\n\talign-items: var(--component-menu-menu-section-header-shared-align-items);\n\tpadding: var(--component-menu-menu-section-header-shared-padding-top)\n\t\tvar(--component-menu-menu-section-header-shared-padding-right)\n\t\tvar(--component-menu-menu-section-header-shared-padding-bottom)\n\t\tvar(--component-menu-menu-section-header-shared-padding-left);\n\theight: var(--component-menu-menu-section-header-md-height);\n\tbackground: var(--component-menu-menu-section-header-shared-background-color);\n\tfont: var(--component-menu-menu-section-header-md-typography-font);\n\tletter-spacing: var(--component-menu-menu-section-header-md-typography-letter-spacing);\n\tfont-variation-settings: \"wdth\" var(--component-menu-menu-section-header-md-typography-font-width);\n}\n\n/* Menu item */\n.stand-menu-item {\n\tdisplay: var(--component-menu-menu-item-shared-display);\n\tgrid-template-columns: var(--component-menu-menu-item-shared-grid-template-columns);\n\tgrid-template-areas: var(--component-menu-menu-item-shared-grid-template-areas);\n\tgap: var(--component-menu-menu-item-shared-gap);\n\talign-items: var(--component-menu-menu-item-shared-align-items);\n\tpadding: var(--component-menu-menu-item-shared-padding-top)\n\t\tvar(--component-menu-menu-item-shared-padding-right)\n\t\tvar(--component-menu-menu-item-shared-padding-bottom)\n\t\tvar(--component-menu-menu-item-shared-padding-left);\n\tborder-bottom: var(--component-menu-menu-item-shared-border-bottom);\n\tcursor: pointer;\n}\n.stand-menu-item-with-description {\n\tgrid-template-areas: var(--component-menu-menu-item-shared-grid-template-areas-with-description);\n}\n.stand-menu-item:last-child {\n\tborder-bottom: var(--component-menu-menu-item-shared-last-child-border-bottom);\n}\n.stand-menu-item:hover {\n\tbackground: var(--component-menu-menu-item-shared-hover-background-color);\n}\n.stand-menu-item:focus-visible {\n\toutline: var(--component-menu-menu-item-shared-focus-visible-outline);\n\toutline-offset: var(--component-menu-menu-item-shared-focus-visible-outline-offset);\n\tbackground: var(--component-menu-menu-item-shared-hover-background-color);\n}\n\n.stand-menu-item-icon {\n\tgrid-area: var(--component-menu-menu-item-shared-icon-grid-area);\n\talign-self: var(--component-menu-menu-item-shared-icon-align-self);\n\tcolor: var(--component-menu-menu-item-shared-icon-color);\n\tfont-size: var(--component-menu-menu-item-md-icon-size);\n\tline-height: var(--component-menu-menu-item-md-icon-line-height);\n}\n.stand-menu-item-label {\n\tgrid-area: var(--component-menu-menu-item-shared-label-grid-area);\n\tcolor: var(--component-menu-menu-item-shared-label-color);\n\tfont: var(--component-menu-menu-item-shared-label-typography-font);\n\tletter-spacing: var(--component-menu-menu-item-shared-label-typography-letter-spacing);\n\tfont-variation-settings: \"wdth\" var(--component-menu-menu-item-shared-label-typography-font-width);\n}\n.stand-menu-item-description {\n\tgrid-area: var(--component-menu-menu-item-shared-description-grid-area);\n\tcolor: var(--component-menu-menu-item-shared-description-color);\n\tfont: var(--component-menu-menu-item-shared-description-typography-font);\n\tletter-spacing: var(--component-menu-menu-item-shared-description-typography-letter-spacing);\n\tfont-variation-settings: \"wdth\" var(--component-menu-menu-item-shared-description-typography-font-width);\n}\n.stand-menu-item-aside {\n\tgrid-area: var(--component-menu-menu-item-shared-aside-grid-area);\n\tjustify-self: var(--component-menu-menu-item-shared-aside-justify-self);\n\tcolor: var(--component-menu-menu-item-shared-aside-color);\n\tfont: var(--component-menu-menu-item-shared-aside-typography-font);\n\tletter-spacing: var(--component-menu-menu-item-shared-aside-typography-letter-spacing);\n\tfont-variation-settings: \"wdth\" var(--component-menu-menu-item-shared-aside-typography-font-width);\n}\n\n/* Separator */\n.stand-menu-separator {\n\tbackground-color: var(--component-menu-menu-separator-shared-background-color);\n\theight: var(--component-menu-menu-separator-shared-height);\n\twidth: var(--component-menu-menu-separator-shared-width);\n}\n";
|
|
4
|
-
export declare const componentHtml = "<div class=\"stand-popover\">\n\t<div class=\"stand-menu\">\n\t\t<div>\n\t\t\t<div class=\"stand-menu-section-header\">File actions</div>\n\t\t\t<div class=\"stand-menu-item stand-menu-item-with-description\" tabindex=\"0\">\n\t\t\t\t<span class=\"stand-menu-item-icon material-symbols\">open_in_new</span>\n\t\t\t\t<span class=\"stand-menu-item-label\">Open</span>\n\t\t\t\t<span class=\"stand-menu-item-description\">Open in a new tab</span>\n\t\t\t\t<span class=\"stand-menu-item-aside\">\u2318O</span>\n\t\t\t</div>\n\t\t\t<div class=\"stand-menu-item stand-menu-item-with-description\" tabindex=\"0\">\n\t\t\t\t<span class=\"stand-menu-item-label\">Rename</span>\n\t\t\t\t<span class=\"stand-menu-item-description\">Rename the file</span>\n\t\t\t</div>\n\t\t\t<div class=\"stand-menu-item\" tabindex=\"0\">\n\t\t\t\t<span class=\"stand-menu-item-label\">Delete</span>\n\t\t\t</div>\n\t\t</div>\n\t\t<div class=\"stand-menu-separator\"></div>\n\t\t<div>\n\t\t\t<div class=\"stand-menu-item\" tabindex=\"0\">\n\t\t\t\t<span class=\"stand-menu-item-label\">Show files</span>\n\t\t\t</div>\n\t\t\t<div class=\"stand-menu-item\" tabindex=\"0\">\n\t\t\t\t<span class=\"stand-menu-item-label\">Show folders</span>\n\t\t\t</div>\n\t\t</div>\n\t</div>\n</div>\n";
|
|
5
|
-
export declare const componentJs = "import { componentMenu } from \"@guardian/stand\";\n\nconst { menu, menuItem, menuSection, menuSeparator, popover } = componentMenu;\n\n// example of creating a stylesheet in js\nconst sheet = new CSSStyleSheet();\n\n// apply the rules to the sheet\nsheet.replaceSync(`\n\t/* Popover container */\n\t.js-stand-popover {\n\t\toverflow: ${popover.shared.overflow};\n\t\tmax-width: ${popover.md.maxWidth};\n\t\twidth: ${popover.md.width};\n\t\tbox-shadow: ${popover.shared.shadow};\n\t}\n\n\t/* Menu list */\n\t.js-stand-menu {\n\t\tdisplay: ${menu.shared.display};\n\t\tflex-direction: ${menu.shared.flexDirection};\n\t\tbackground: ${menu.shared.backgroundColor};\n\t\tborder: ${menu.shared.border};\n\t}\n\n\t/* Menu section header */\n\t.js-stand-menu-section-header {\n\t\tdisplay: ${menuSection.header.shared.display};\n\t\talign-items: ${menuSection.header.shared.alignItems};\n\t\theight: ${menuSection.header.md.height};\n\t\tbackground: ${menuSection.header.shared.backgroundColor};\n\t\tpadding: ${menuSection.header.shared.padding.top} ${menuSection.header.shared.padding.right} ${menuSection.header.shared.padding.bottom} ${menuSection.header.shared.padding.left};\n\t\tfont: ${menuSection.header.md.typography.font};\n\t\tletter-spacing: ${menuSection.header.md.typography.letterSpacing};\n\t\tfont-variation-settings: 'wdth' ${menuSection.header.md.typography.fontWidth};\n\t}\n\n\t/* Menu item */\n\t.js-stand-menu-item {\n\t\tdisplay: ${menuItem.shared.display};\n\t\tgrid-template-columns: ${menuItem.shared.gridTemplateColumns};\n\t\tgrid-template-areas: ${menuItem.shared.gridTemplateAreas};\n\t\tgap: ${menuItem.shared.gap};\n\t\talign-items: ${menuItem.shared.alignItems};\n\t\tpadding: ${menuItem.shared.padding.top} ${menuItem.shared.padding.right} ${menuItem.shared.padding.bottom} ${menuItem.shared.padding.left};\n\t\tborder-bottom: ${menuItem.shared.borderBottom};\n\t\tcursor: pointer;\n\t}\n\t.js-stand-menu-item-with-description {\n\t\tgrid-template-areas: ${menuItem.shared.gridTemplateAreasWithDescription};\n\t}\n\t.js-stand-menu-item:last-child {\n\t\tborder-bottom: ${menuItem.shared.lastChild.borderBottom};\n\t}\n\t.js-stand-menu-item:hover {\n\t\tbackground: ${menuItem.shared.hover.backgroundColor};\n\t}\n\t.js-stand-menu-item:focus-visible {\n\t\toutline: ${menuItem.shared.focusVisible.outline};\n\t\toutline-offset: ${menuItem.shared.focusVisible.outlineOffset};\n\t\tbackground: ${menuItem.shared.hover.backgroundColor};\n\t}\n\n\t.js-stand-menu-item-icon {\n\t\tgrid-area: ${menuItem.shared.icon.gridArea};\n\t\talign-self: ${menuItem.shared.icon.alignSelf};\n\t\tcolor: ${menuItem.shared.icon.color};\n\t\tfont-size: ${menuItem.md.icon.size};\n\t\tline-height: ${menuItem.md.icon.lineHeight};\n\t}\n\t.js-stand-menu-item-label {\n\t\tgrid-area: ${menuItem.shared.label.gridArea};\n\t\tcolor: ${menuItem.shared.label.color};\n\t\tfont: ${menuItem.shared.label.typography.font};\n\t\tletter-spacing: ${menuItem.shared.label.typography.letterSpacing};\n\t\tfont-variation-settings: 'wdth' ${menuItem.shared.label.typography.fontWidth};\n\t}\n\t.js-stand-menu-item-description {\n\t\tgrid-area: ${menuItem.shared.description.gridArea};\n\t\tcolor: ${menuItem.shared.description.color};\n\t\tfont: ${menuItem.shared.description.typography.font};\n\t\tletter-spacing: ${menuItem.shared.description.typography.letterSpacing};\n\t\tfont-variation-settings: 'wdth' ${menuItem.shared.description.typography.fontWidth};\n\t}\n\t.js-stand-menu-item-aside {\n\t\tgrid-area: ${menuItem.shared.aside.gridArea};\n\t\tjustify-self: ${menuItem.shared.aside.justifySelf};\n\t\tcolor: ${menuItem.shared.aside.color};\n\t\tfont: ${menuItem.shared.aside.typography.font};\n\t\tletter-spacing: ${menuItem.shared.aside.typography.letterSpacing};\n\t\tfont-variation-settings: 'wdth' ${menuItem.shared.aside.typography.fontWidth};\n\t}\n\n\t/* Separator */\n\t.js-stand-menu-separator {\n\t\tbackground-color: ${menuSeparator.shared.backgroundColor};\n\t\theight: ${menuSeparator.shared.height};\n\t\twidth: ${menuSeparator.shared.width};\n\t}\n`);\n\n// update the document with the sheet\ndocument.adoptedStyleSheets.push(sheet);\n\n// modify the dom with the menu components using the generated stylesheet\ndocument.getElementById(\"app\").innerHTML = `\n\t<div class=\"js-stand-popover\">\n\t\t<div class=\"js-stand-menu\">\n\t\t\t<div>\n\t\t\t\t<div class=\"js-stand-menu-section-header\">File actions</div>\n\t\t\t\t<div class=\"js-stand-menu-item js-stand-menu-item-with-description\" tabindex=\"0\">\n\t\t\t\t\t<span class=\"js-stand-menu-item-icon material-symbols\">open_in_new</span>\n\t\t\t\t\t<span class=\"js-stand-menu-item-label\">Open</span>\n\t\t\t\t\t<span class=\"js-stand-menu-item-description\">Open in a new tab</span>\n\t\t\t\t\t<span class=\"js-stand-menu-item-aside\">\u2318O</span>\n\t\t\t\t</div>\n\t\t\t\t<div class=\"js-stand-menu-item js-stand-menu-item-with-description\" tabindex=\"0\">\n\t\t\t\t\t<span class=\"js-stand-menu-item-label\">Rename</span>\n\t\t\t\t\t<span class=\"js-stand-menu-item-description\">Rename the file</span>\n\t\t\t\t</div>\n\t\t\t\t<div class=\"js-stand-menu-item\" tabindex=\"0\">\n\t\t\t\t\t<span class=\"js-stand-menu-item-label\">Delete</span>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t\t<div class=\"js-stand-menu-separator\"></div>\n\t\t\t<div>\n\t\t\t\t<div class=\"js-stand-menu-item\" tabindex=\"0\">\n\t\t\t\t\t<span class=\"js-stand-menu-item-label\">Show files</span>\n\t\t\t\t</div>\n\t\t\t\t<div class=\"js-stand-menu-item\" tabindex=\"0\">\n\t\t\t\t\t<span class=\"js-stand-menu-item-label\">Show folders</span>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t</div>\n\t</div>\n`;\n";
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import type { SerializedStyles } from '@emotion/react';
|
|
2
|
-
import type { ComponentMenu } from '../../styleD/build/typescript/component/menu';
|
|
3
|
-
import type { DeepPartial, Prettify } from '../../util/types';
|
|
4
|
-
import type { MenuItemProps, MenuPopoverProps, MenuSectionProps } from './types';
|
|
5
|
-
export type MenuTheme = Prettify<ComponentMenu['menu']>;
|
|
6
|
-
export type PartialMenuTheme = Prettify<DeepPartial<MenuTheme>>;
|
|
7
|
-
export declare const defaultMenuTheme: MenuTheme;
|
|
8
|
-
export declare const menuStyles: (theme: MenuTheme) => SerializedStyles;
|
|
9
|
-
export type MenuSectionTheme = Prettify<ComponentMenu['menuSection']>;
|
|
10
|
-
export type PartialMenuSectionTheme = Prettify<DeepPartial<MenuSectionTheme>>;
|
|
11
|
-
export declare const defaultMenuSectionTheme: MenuSectionTheme;
|
|
12
|
-
export declare const menuSectionHeaderStyles: (theme: MenuSectionTheme, { size }: Required<Pick<MenuSectionProps, 'size'>>) => SerializedStyles;
|
|
13
|
-
export type MenuItemTheme = Prettify<ComponentMenu['menuItem']>;
|
|
14
|
-
export type PartialMenuItemTheme = Prettify<DeepPartial<MenuItemTheme>>;
|
|
15
|
-
export declare const defaultMenuItemTheme: MenuItemTheme;
|
|
16
|
-
export declare const menuItemStyles: (theme: MenuItemTheme, { description }: Pick<MenuItemProps, 'description'>) => SerializedStyles;
|
|
17
|
-
export declare const menuItemIconStyles: (theme: MenuItemTheme, { size }: Required<Pick<MenuItemProps, 'size'>>) => SerializedStyles;
|
|
18
|
-
export declare const menuItemLabelStyles: (theme: MenuItemTheme) => SerializedStyles;
|
|
19
|
-
export declare const menuItemDescriptionStyles: (theme: MenuItemTheme) => SerializedStyles;
|
|
20
|
-
export declare const menuItemAsideStyles: (theme: MenuItemTheme) => SerializedStyles;
|
|
21
|
-
export type MenuSeparatorTheme = Prettify<ComponentMenu['menuSeparator']>;
|
|
22
|
-
export type PartialMenuSeparatorTheme = Prettify<DeepPartial<MenuSeparatorTheme>>;
|
|
23
|
-
export declare const defaultMenuSeparatorTheme: MenuSeparatorTheme;
|
|
24
|
-
export declare const menuSeparatorStyles: (theme: MenuSeparatorTheme) => SerializedStyles;
|
|
25
|
-
export type MenuPopoverTheme = Prettify<ComponentMenu['menuPopover']>;
|
|
26
|
-
export type PartialMenuPopoverTheme = Prettify<DeepPartial<MenuPopoverTheme>>;
|
|
27
|
-
export declare const defaultMenuPopoverTheme: MenuPopoverTheme;
|
|
28
|
-
export declare const menuPopoverStyles: (theme: MenuPopoverTheme, { size }: Required<Pick<MenuPopoverProps, 'size'>>) => SerializedStyles;
|
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import type { MenuItemProps as RACMenuItemProps, MenuProps as RACMenuProps, MenuSectionProps as RACMenuSectionProps, MenuTriggerProps as RACMenuTriggerProps, PopoverProps as RACPopoverProps, SeparatorProps as RACSeparatorProps } from 'react-aria-components';
|
|
3
|
-
import type { DefaultProps, DefaultPropsWithChildren } from '../../util/types';
|
|
4
|
-
import type { IconProps } from '../Icon/types';
|
|
5
|
-
import type { MenuItemTheme, MenuPopoverTheme, MenuSectionTheme, MenuSeparatorTheme, MenuTheme } from './styles';
|
|
6
|
-
export interface MenuProps extends DefaultPropsWithChildren<MenuTheme, RACMenuProps<object>['className']>, Omit<RACMenuProps<object>, 'children'> {
|
|
7
|
-
/**
|
|
8
|
-
* Size variant of the Menu
|
|
9
|
-
*/
|
|
10
|
-
size?: MenuPopoverProps['size'];
|
|
11
|
-
/**
|
|
12
|
-
* Props to pass to the underlying React Aria Popover component
|
|
13
|
-
*/
|
|
14
|
-
popoverProps?: Omit<MenuPopoverProps, 'children' | 'size'>;
|
|
15
|
-
/**
|
|
16
|
-
* Props to pass to the underlying React Aria MenuTrigger component
|
|
17
|
-
*/
|
|
18
|
-
menuTriggerProps?: Omit<MenuTriggerProps, 'children'>;
|
|
19
|
-
}
|
|
20
|
-
export interface MenuSectionProps extends DefaultPropsWithChildren<MenuSectionTheme, RACMenuSectionProps<object>['className']>, Omit<RACMenuSectionProps<object>, 'children'> {
|
|
21
|
-
/**
|
|
22
|
-
* The (optional) name of the section to be displayed in a header
|
|
23
|
-
*/
|
|
24
|
-
name?: string;
|
|
25
|
-
/**
|
|
26
|
-
* Size variant of the MenuSection, this doesn't need to be passed if the MenuSection is a child of Menu, as it will inherit the size of the Menu.
|
|
27
|
-
*/
|
|
28
|
-
size?: MenuPopoverProps['size'];
|
|
29
|
-
/**
|
|
30
|
-
* Disable the selectionMode option for the time being, as we currently don't have a checkbox or radio button component to use for the selectable menu items that this would require. This can be added in the future when we have these components available.
|
|
31
|
-
*/
|
|
32
|
-
selectionMode?: 'none';
|
|
33
|
-
}
|
|
34
|
-
export interface MenuItemProps extends DefaultProps<MenuItemTheme, RACMenuItemProps['className']>, Omit<RACMenuItemProps, 'children'> {
|
|
35
|
-
/**
|
|
36
|
-
* The main label of the menu item, this can be a string or any React node if more complex layout is needed.
|
|
37
|
-
*/
|
|
38
|
-
label: React.ReactNode;
|
|
39
|
-
/**
|
|
40
|
-
* Optional description text for the menu item, this can be a string or any React node if more complex layout is needed. The description will be rendered below the label in a smaller font size.
|
|
41
|
-
*/
|
|
42
|
-
description?: React.ReactNode;
|
|
43
|
-
/**
|
|
44
|
-
* Optional content to be rendered on the right side of the menu item, this can be used for things like keyboard shortcuts or badges. This can be a string or any React node if more complex layout is needed.
|
|
45
|
-
*/
|
|
46
|
-
aside?: React.ReactNode;
|
|
47
|
-
/**
|
|
48
|
-
* Icon to be rendered within the left side of the menu item. Passed to the Icon component, so can be either a string (for material symbols) or an SVG element.
|
|
49
|
-
*/
|
|
50
|
-
icon?: IconProps['symbol'] | Exclude<IconProps['children'], string>;
|
|
51
|
-
/**
|
|
52
|
-
* Size variant of the MenuItem, this doesn't need to be passed if the MenuItem is a child of Menu, as it will inherit the size of the Menu.
|
|
53
|
-
*/
|
|
54
|
-
size?: MenuPopoverProps['size'];
|
|
55
|
-
}
|
|
56
|
-
export type MenuSeparatorProps = DefaultProps<MenuSeparatorTheme, RACSeparatorProps['className']>;
|
|
57
|
-
export interface MenuPopoverProps extends DefaultProps<MenuPopoverTheme, RACPopoverProps['className']>, RACPopoverProps {
|
|
58
|
-
/**
|
|
59
|
-
* Size variant of the Popover, this doesn't need to be passed if the Popover is a child of Menu, as it will inherit the size of the Menu.
|
|
60
|
-
*/
|
|
61
|
-
size?: keyof Omit<MenuPopoverTheme, 'shared'>;
|
|
62
|
-
}
|
|
63
|
-
export type MenuTriggerProps = RACMenuTriggerProps;
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import type { RadioGroupProps, RadioProps } from './types';
|
|
2
|
-
export declare function RadioGroup({ size, isInvalid, theme, children, ...props }: RadioGroupProps): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
3
|
-
export declare function Radio({ theme, size, children, isInvalid, ...props }: RadioProps): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
export declare const componentName = "RadioGroup";
|
|
2
|
-
export declare const componentTsx = "import { Radio, RadioGroup } from '@guardian/stand/RadioGroup';\n\nexport const Component = () => (\n\t<RadioGroup\n\t\tlabel=\"Option\"\n\t\tdescription=\"This is a description for the radio button input\"\n\t>\n\t\t<Radio value=\"one\">Option 1</Radio>\n\t\t<Radio value=\"two\">Option 2</Radio>\n\t</RadioGroup>\n);\n";
|
|
3
|
-
export declare const componentCss = "\n/* import the radiogroup styles */\n@import '@guardian/stand/component/radioGroup.css';\n@import '@guardian/stand/component/form.css';\n\n/* form input container styles */\n\n.stand-form-input-container {\n\tdisplay: var(--component-form-input-shared-container-display);\n\tflex-direction: var(--component-form-input-shared-container-flex-direction);\n\tgap: var(--component-form-input-shared-container-gap);\n\twidth: var(--component-form-input-shared-container-width);\n}\n\n.stand-form-input-container > label {\n\tcolor: var(--component-form-input-shared-label-color);\n\tfont: var(--component-form-input-md-label-typography-font);\n\tletter-spacing: var(--component-form-input-md-label-typography-letter-spacing);\n\tfont-variation-settings: \"wdth\" var(--component-form-input-md-label-typography-font-width);\n}\n\n.stand-form-input-container > span.description {\n\tcolor: var(--component-form-input-shared-description-color);\n\tfont: var(--component-form-input-shared-description-typography-font);\n\tletter-spacing: var(--component-form-input-shared-description-typography-letter-spacing);\n\tfont-variation-settings: \"wdth\" var(--component-form-input-shared-description-typography-font-width);\n}\n\n/* radiogroup styles */\n\n.stand-radio-group {\n\tdisplay: var(--component-radio-group-shared-display);\n\tflex-direction: var(--component-radio-group-shared-flex-direction);\n\tgap: var(--component-radio-group-md-gap);\n\tmargin-top: var(--component-radio-group-shared-margin-top);\n\tmargin-bottom: var(--component-radio-group-shared-margin-bottom);\n}\n\n.stand-radio {\n\tdisplay: var(--component-radio-group-shared-radio-display);\n\talign-items: var(--component-radio-group-shared-radio-align-items);\n\tgap: var(--component-radio-group-shared-radio-gap);\n\tfont: var(--component-radio-group-md-typography-font);\n\tletter-spacing: var(--component-radio-group-md-typography-letter-spacing);\n\tfont-variation-settings: \"wdth\" var(--component-radio-group-md-typography-font-width);\n\tcolor: var(--component-radio-group-shared-radio-color);\n}\n\n.stand-radio input {\n\tposition: var(--component-radio-group-shared-indicator-position);\n\twidth: var(--component-radio-group-md-indicator-width);\n\theight: var(--component-radio-group-md-indicator-height);\n\tborder-radius: var(--component-radio-group-shared-indicator-border-radius);\n\tborder: var(--component-radio-group-shared-indicator-border);\n}\n\n.stand-radio > input::after {\n\tcontent: '';\n\tposition: var(--component-radio-group-shared-indicator-after-position);\n\tborder-radius: var(--component-radio-group-shared-indicator-after-border-radius);\n\tinset: var(--component-radio-group-shared-indicator-after-inset);\n\tscale: var(--component-radio-group-shared-indicator-after-scale);\n}\n";
|
|
4
|
-
export declare const componentHtml = "<div class=\"container\">\n<div class=\"stand-form-input-container\">\n\t<label>Options</label>\n\t<span class=\"description\">This is a description for the radio group.</span>\n\t<div class=\"stand-radio-group\">\n\t\t<div class=\"stand-radio\">\n\t\t\t<input type=\"radio\" value=\"one\" name=\"option\" />\n\t\t\t<label>Option 1</label>\n\t\t</div>\n\t\t<div class=\"stand-radio\">\n\t\t\t<input type=\"radio\" value=\"two\" name=\"option\" />\n\t\t\t<label>Option 2</label>\n\t\t</div>\n\t</div>\n</div>\n</div>\n";
|
|
5
|
-
export declare const componentJs = "\nimport { componentRadioGroup, componentForm } from \"@guardian/stand\";\n\n// example of creating a stylesheet in js\nconst sheet = new CSSStyleSheet();\n\n// apply the rules to the sheet\nsheet.replaceSync(`\n/* form input container styles */\n\n.stand-form-input-container {\n\tdisplay: ${componentForm.input.shared.container.display};\n\tflex-direction: ${componentForm.input.shared.container.flexDirection};\n\tgap: ${componentForm.input.shared.container.gap};\n\twidth: ${componentForm.input.shared.container.width};\n}\n\n.stand-form-input-container > label {\n\tcolor: ${componentForm.input.shared.label.color};\n\tfont: ${componentForm.input.shared.label.font};\n\tletter-spacing: ${componentForm.input.shared.label.letterSpacing};\n\tfont-variation-settings: \"wdth\" ${componentForm.input.shared.label.fontWidth};\n}\n\n.stand-form-input-container > span.description {\n\tcolor: ${componentForm.input.shared.description.color};\n\tfont: ${componentForm.input.shared.description.font};\n\tletter-spacing: ${componentForm.input.shared.description.letterSpacing};\n\tfont-variation-settings: \"wdth\" ${componentForm.input.shared.description.fontWidth};\n}\n\n.stand-radio-group {\n\tdisplay: ${componentRadioGroup.shared.display};\n\tflex-direction: ${componentRadioGroup.shared.flexDirection};\n\tgap: ${componentRadioGroup.md.gap};\n\tmargin-top: ${componentRadioGroup.shared.marginTop};\n\tmargin-bottom: ${componentRadioGroup.shared.marginBottom};\n}\n\n.stand-radio {\n\tdisplay: ${componentRadioGroup.shared.radio.display};\n\talign-items: ${componentRadioGroup.shared.radio.alignItems};\n\tgap: ${componentRadioGroup.shared.radio.gap};\n\tfont: ${componentRadioGroup.md.typography.font};\n\tletter-spacing: ${componentRadioGroup.md.typography.letterSpacing};\n\tfont-variation-settings: \"wdth\" ${componentRadioGroup.md.typography.fontWidth};\n\tcolor: ${componentRadioGroup.shared.radio.color};\n}\n\n.stand-radio input {\n\tposition: ${componentRadioGroup.shared.indicator.position};\n\twidth: ${componentRadioGroup.md.indicator.width};\n\theight: ${componentRadioGroup.md.indicator.height};\n\tborder-radius: ${componentRadioGroup.shared.indicator.borderRadius};\n\tborder: ${componentRadioGroup.shared.indicator.border};\n}\n\n.stand-radio > input::after {\n\tcontent: '';\n\tposition: ${componentRadioGroup.shared.indicator.after.position};\n\tborder-radius: ${componentRadioGroup.shared.indicator.after.borderRadius};\n\tinset: ${componentRadioGroup.shared.indicator.after.inset};\n\tscale: ${componentRadioGroup.shared.indicator.after.scale};\n}\n`);\n\n// update the document with the sheet\ndocument.adoptedStyleSheets.push(sheet);\n\n// modify the dom with the button components using the generated stylesheet\ndocument.getElementById(\"app\").innerHTML = `\n<div class=\"container\">\n<div class=\"stand-form-input-container\">\n\t<label>Options</label>\n\t<span class=\"description\">This is a description for the radio group.</span>\n\t<div class=\"stand-radio-group\">\n\t\t<div class=\"stand-radio\">\n\t\t\t<input type=\"radio\" value=\"one\" name=\"option\" />\n\t\t\t<label>Option 1</label>\n\t\t</div>\n\t\t<div class=\"stand-radio\">\n\t\t\t<input type=\"radio\" value=\"two\" name=\"option\" />\n\t\t\t<label>Option 2</label>\n\t\t</div>\n\t</div>\n</div>\n</div>\n`;\n";
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import type { SerializedStyles } from '@emotion/react';
|
|
2
|
-
import type { ComponentRadioGroup } from '../../styleD/build/typescript/component/radioGroup';
|
|
3
|
-
import type { Prettify } from '../../util/types';
|
|
4
|
-
import type { RadioGroupProps } from './types';
|
|
5
|
-
export type RadioGroupTheme = Prettify<ComponentRadioGroup>;
|
|
6
|
-
export declare const defaultRadioGroupTheme: RadioGroupTheme;
|
|
7
|
-
export declare const radioGroupStyles: (theme: RadioGroupTheme, { size }: Required<Pick<RadioGroupProps, 'size'>>) => SerializedStyles;
|
|
8
|
-
export declare const radioStyles: (theme: RadioGroupTheme, { size, isInvalid }: Required<Pick<RadioGroupProps, 'size' | 'isInvalid'>>) => SerializedStyles;
|
|
9
|
-
export declare const radioIndicatorStyles: (theme: RadioGroupTheme, { size, isInvalid }: Required<Pick<RadioGroupProps, 'size' | 'isInvalid'>>) => SerializedStyles;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import type { RadioGroupProps as RACRadioGroupProps, RadioProps as RACRadioProps } from 'react-aria-components';
|
|
2
|
-
import type { DefaultProps } from '../../util/types';
|
|
3
|
-
import type { FormInputContainerDefaultProps } from '../Form/types';
|
|
4
|
-
import type { RadioGroupTheme } from './styles';
|
|
5
|
-
export type RadioGroupProps = FormInputContainerDefaultProps<RACRadioGroupProps, RadioGroupTheme>;
|
|
6
|
-
export interface RadioProps extends DefaultProps<RadioGroupTheme, RACRadioProps['className']>, RACRadioProps {
|
|
7
|
-
size?: keyof Omit<RadioGroupTheme, 'shared'>;
|
|
8
|
-
/** Whether the input value is invalid. */
|
|
9
|
-
isInvalid?: boolean;
|
|
10
|
-
}
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import type { OptionProps, SelectProps } from './types';
|
|
2
|
-
export declare function Option({ children, theme }: OptionProps): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
3
|
-
export declare function Select({ isInvalid, theme, children, ...props }: SelectProps): import("@emotion/react/jsx-runtime").JSX.Element;
|