@guardian/stand 0.0.40 → 0.0.41
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 +65 -83
- package/dist/components/IntendedAudienceSignifier/IntendedAudienceSignifier.d.cts +13 -0
- package/dist/components/IntendedAudienceSignifier/IntendedAudienceSignifier.d.ts +13 -0
- package/dist/components/IntendedAudienceSignifier/IntendedAudienceSignifier.js +63 -51
- 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 +12 -0
- package/dist/components/IntendedAudienceSignifier/types.d.ts +12 -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,398 +0,0 @@
|
|
|
1
|
-
import type { ButtonTheme, PartialButtonTheme } from '../Button/styles';
|
|
2
|
-
export type IconLinkButtonTheme = ButtonTheme;
|
|
3
|
-
export type PartialIconLinkButtonTheme = PartialButtonTheme;
|
|
4
|
-
export declare const defaultIconLinkButtonTheme: ButtonTheme;
|
|
5
|
-
export declare const iconLinkButtonStyles: (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,26 +0,0 @@
|
|
|
1
|
-
import type { LinkProps as RACLinkProps } from 'react-aria-components';
|
|
2
|
-
import type { DefaultPropsWithChildren } from '../../util/types';
|
|
3
|
-
import type { IconProps, MaterialSymbol } from '../Icon/types';
|
|
4
|
-
import type { IconLinkButtonTheme } from './styles';
|
|
5
|
-
export interface IconLinkButtonProps extends DefaultPropsWithChildren<IconLinkButtonTheme, RACLinkProps['className'], IconProps['children']>, Omit<RACLinkProps, 'children'> {
|
|
6
|
-
/**
|
|
7
|
-
* Size variant of the avatar
|
|
8
|
-
*/
|
|
9
|
-
size?: keyof Omit<IconLinkButtonTheme['primary'], 'shared'>;
|
|
10
|
-
/**
|
|
11
|
-
* Variant of the button
|
|
12
|
-
*/
|
|
13
|
-
variant?: keyof Omit<IconLinkButtonTheme, 'shared'>;
|
|
14
|
-
/**
|
|
15
|
-
* Alternative to using the `children` prop for rendering Material Symbol icons,
|
|
16
|
-
* you can use the `symbol` prop to specify the icon by its symbol name.
|
|
17
|
-
* This is a convenience for font icons, allowing you to simply provide the symbol name in a type-safe way without needing to pass it as a child string.
|
|
18
|
-
* For example, instead of `<Icon>home</Icon>`, you can use `<Icon symbol="home" />`.
|
|
19
|
-
* This prop is mutually exclusive with `children` when rendering font icons, and takes precedence over `children` if both are provided.
|
|
20
|
-
*/
|
|
21
|
-
symbol?: MaterialSymbol;
|
|
22
|
-
/**
|
|
23
|
-
* Accessible label for the icon button. Required for accessibility.
|
|
24
|
-
*/
|
|
25
|
-
ariaLabel: string;
|
|
26
|
-
}
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
export declare const componentName = "InlineMessage";
|
|
2
|
-
export declare const componentTsx = "import { InlineMessage } from '@guardian/stand/InlineMessage';\n\nexport const Component = () => (\n <>\n\t<InlineMessage level=\"error\">Something went wrong</InlineMessage>\n\t<InlineMessage level=\"success\">Changes saved successfully</InlineMessage>\n\t<InlineMessage level=\"information\">\n\t\tYour session will expire soon\n\t</InlineMessage>\n\t<InlineMessage level=\"error\" hideIcon>\n\t\tThis message has no icon\n\t</InlineMessage>\n\t<InlineMessage\n\tlevel=\"success\"\n\ticon={\n\t\t<svg viewBox=\"-3 -3 30 30\" xmlns=\"http://www.w3.org/2000/svg\">\n\t\t<path\n\t\t\tfillRule=\"evenodd\"\n\t\t\tclipRule=\"evenodd\"\n\t\t\td=\"M12.36 2.5h-.905l-7.6 7.69-.905.905v.453h.905v9.056l.904.896h5.872v-6.333h2.715V21.5h5.89l.904-.932v-9.02h.905v-.453l-1.357-1.357-.001.005zm5.97 8.447-6.412-6.34-6.254 6.326v8.758h3.158V13.81l.452-.453h5.438l.443.453v5.88h3.176z\"\n\t\t/>\n\t\t</svg>\n\t}\n\t>\n\tThis message uses a custom svg icon\n\t</InlineMessage>\n </>\n);\n";
|
|
3
|
-
export declare const componentCss = "\n/* import the inlinemessage styles */\n@import '@guardian/stand/component/inlineMessage.css';\n\n.stand-inline-message {\n display: var(--component-inline-message-shared-display);\n align-items: var(--component-inline-message-shared-align-items);\n gap: var(--component-inline-message-shared-gap);\n font: var(--component-inline-message-shared-typography-font);\n letter-spacing: var(\n --component-inline-message-shared-typography-letter-spacing\n );\n font-variation-settings: \"wdth\"\n var(--component-inline-message-shared-typography-font-width);\n}\n\n.stand-inline-message > .material-symbols {\n font-size: var(--component-inline-message-shared-icon-size);\n}\n\n.stand-inline-message > svg {\n width: var(--component-inline-message-shared-icon-size);\n height: var(--component-inline-message-shared-icon-size);\n}\n\n.stand-inline-message-error {\n color: var(--component-inline-message-error-color);\n fill: var(--component-inline-message-error-color);\n}\n\n.stand-inline-message-success {\n color: var(--component-inline-message-success-color);\n fill: var(--component-inline-message-success-color);\n}\n\n.stand-inline-message-information {\n color: var(--component-inline-message-information-color);\n fill: var(--component-inline-message-information-color);\n}\n";
|
|
4
|
-
export declare const componentHtml = "<div class=\"container flow-column\">\n\t<span class=\"stand-inline-message stand-inline-message-error\">\n\t\t<span class=\"material-symbols\">warning</span> Something went wrong\n\t</span>\n\t<span class=\"stand-inline-message stand-inline-message-success\">\n\t\t<span class=\"material-symbols\">check_circle</span> Changes saved successfully\n\t</span>\n\t<span class=\"stand-inline-message stand-inline-message-information\">\n\t\t<span class=\"material-symbols\">info</span> Your session will expire soon\n\t</span>\n\t<span class=\"stand-inline-message stand-inline-message-error\">\n\t\tThis message has no icon\n\t</span>\n\t<span class=\"stand-inline-message stand-inline-message-success\">\n\t\t<svg viewBox=\"-3 -3 30 30\" xmlns=\"http://www.w3.org/2000/svg\">\n\t\t<path\n\t\t\tfillRule=\"evenodd\"\n\t\t\tclipRule=\"evenodd\"\n\t\t\td=\"M12.36 2.5h-.905l-7.6 7.69-.905.905v.453h.905v9.056l.904.896h5.872v-6.333h2.715V21.5h5.89l.904-.932v-9.02h.905v-.453l-1.357-1.357-.001.005zm5.97 8.447-6.412-6.34-6.254 6.326v8.758h3.158V13.81l.452-.453h5.438l.443.453v5.88h3.176z\"\n\t\t/>\n\t\t</svg>\n\t\tThis message uses a custom svg icon\n\t</span>\n</div>\n";
|
|
5
|
-
export declare const componentJs = "\nimport { componentInlineMessage } 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\t.js-stand-inline-message {\n\t\tdisplay: ${componentInlineMessage.shared.display};\n\t\talign-items: ${componentInlineMessage.shared.alignItems};\n\t\tgap: ${componentInlineMessage.shared.gap};\n\t\tfont: ${componentInlineMessage.shared.typography.font};\n\t\tletter-spacing: ${componentInlineMessage.shared.typography.letterSpacing};\n\t\tfont-variation-settings: \"wdth\" ${componentInlineMessage.shared.typography.fontWidth};\n\t}\n\n\t.js-stand-inline-message > .material-symbols {\n\t\tfont-size: ${componentInlineMessage.shared.icon.size};\n\t}\n\n\t.js-stand-inline-message > svg {\n\t\twidth: ${componentInlineMessage.shared.icon.size};\n\t\theight: ${componentInlineMessage.shared.icon.size};\n\t}\n\n\t.js-stand-inline-message-error {\n\t\tcolor: ${componentInlineMessage.error.color};\n\t\tfill: ${componentInlineMessage.error.color};\n\t}\n\n\t.js-stand-inline-message-success {\n\t\tcolor: ${componentInlineMessage.success.color};\n\t\tfill: ${componentInlineMessage.success.color};\n\t}\n\n\t.js-stand-inline-message-information {\n\t\tcolor: ${componentInlineMessage.information.color};\n\t\tfill: ${componentInlineMessage.information.color};\n\t}\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 flow-column\">\n\t<span class=\"js-stand-inline-message js-stand-inline-message-error\">\n\t\t<span class=\"material-symbols\">warning</span> Something went wrong\n\t</span>\n\t<span class=\"js-stand-inline-message js-stand-inline-message-success\">\n\t\t<span class=\"material-symbols\">check_circle</span> Changes saved successfully\n\t</span>\n\t<span class=\"js-stand-inline-message js-stand-inline-message-information\">\n\t\t<span class=\"material-symbols\">info</span> Your session will expire soon\n\t</span>\n\t<span class=\"js-stand-inline-message js-stand-inline-message-error\">\n\t\tThis message has no icon\n\t</span>\n\t<span class=\"js-stand-inline-message js-stand-inline-message-success\">\n\t\t<svg viewBox=\"-3 -3 30 30\" xmlns=\"http://www.w3.org/2000/svg\">\n\t\t<path\n\t\t\tfillRule=\"evenodd\"\n\t\t\tclipRule=\"evenodd\"\n\t\t\td=\"M12.36 2.5h-.905l-7.6 7.69-.905.905v.453h.905v9.056l.904.896h5.872v-6.333h2.715V21.5h5.89l.904-.932v-9.02h.905v-.453l-1.357-1.357-.001.005zm5.97 8.447-6.412-6.34-6.254 6.326v8.758h3.158V13.81l.452-.453h5.438l.443.453v5.88h3.176z\"\n\t\t/>\n\t\t</svg>\n\t\tThis message uses a custom svg icon\n\t</span>\n</div>\n`;\n";
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import type { SerializedStyles } from '@emotion/react';
|
|
2
|
-
import type { ComponentInlineMessage } from '../../styleD/build/typescript/component/inlineMessage';
|
|
3
|
-
import type { DeepPartial, Prettify } from '../../util/types';
|
|
4
|
-
import type { InlineMessageProps } from './types';
|
|
5
|
-
export type InlineMessageTheme = Prettify<ComponentInlineMessage>;
|
|
6
|
-
export type PartialInlineMessageTheme = DeepPartial<InlineMessageTheme>;
|
|
7
|
-
export declare const defaultInlineMessageTheme: InlineMessageTheme;
|
|
8
|
-
export declare const inlineMessageStyles: (theme: InlineMessageTheme, { level }: Required<Pick<InlineMessageProps, 'level'>>) => SerializedStyles;
|
|
9
|
-
export declare const inlineMessageIconStyles: (theme: InlineMessageTheme) => SerializedStyles;
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import type { DefaultPropsWithChildren } from '../../util/types';
|
|
2
|
-
import type { IconProps } from '../Icon/types';
|
|
3
|
-
import type { InlineMessageTheme } from './styles';
|
|
4
|
-
export interface InlineMessageProps extends DefaultPropsWithChildren<InlineMessageTheme> {
|
|
5
|
-
/**
|
|
6
|
-
* The severity level of the message, which determines its styling.
|
|
7
|
-
* This is a required prop.
|
|
8
|
-
* Levels: 'error', 'success', 'information'
|
|
9
|
-
*/
|
|
10
|
-
level: keyof Omit<InlineMessageTheme, 'shared'>;
|
|
11
|
-
/**
|
|
12
|
-
* Optional prop to hide the default icon associated with the message level.
|
|
13
|
-
*/
|
|
14
|
-
hideIcon?: boolean;
|
|
15
|
-
/**
|
|
16
|
-
* Override the default icon for the message by providing a custom icon, for example when not using material symbols.
|
|
17
|
-
* This can be either a string (for material symbols) or an SVG element.
|
|
18
|
-
* Passed to the Icon component, so can be either a string (for material symbols) or an SVG element.
|
|
19
|
-
*/
|
|
20
|
-
icon?: IconProps['symbol'] | Exclude<IconProps['children'], string>;
|
|
21
|
-
}
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
export declare const ukFlag: import("@emotion/react/jsx-runtime").JSX.Element;
|
|
2
|
-
export declare const usFlag: import("@emotion/react/jsx-runtime").JSX.Element;
|
|
3
|
-
export declare const auFlag: import("@emotion/react/jsx-runtime").JSX.Element;
|
|
4
|
-
export declare const globeIcon: import("@emotion/react/jsx-runtime").JSX.Element;
|
|
5
|
-
export declare const DoubleChevronRightSvg: import("@emotion/react/jsx-runtime").JSX.Element;
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
export declare const componentName = "IntendedAudienceSignifier";
|
|
2
|
-
export declare const componentTsx = "import { IntendedAudienceSignifier } from '@guardian/stand/IntendedAudienceSignifier';\n\nexport const Component = () => (\n\t<>\n\t\t<IntendedAudienceSignifier source=\"UK\" intendedAudience='Global' />\n\t\t<IntendedAudienceSignifier source=\"US\" intendedAudience='Global' />\n\t\t<IntendedAudienceSignifier source=\"AUS\" intendedAudience='Global' />\n\t\t<IntendedAudienceSignifier source=\"UK\" intendedAudience='Domestic for Domestic' />\n\t\t<IntendedAudienceSignifier source=\"US\" intendedAudience='Domestic for Domestic' />\n\t\t<IntendedAudienceSignifier source=\"AUS\" intendedAudience='Domestic for Domestic' />\n\t\t<IntendedAudienceSignifier source=\"UK\" intendedAudience='Domestic For Global' />\n\t\t<IntendedAudienceSignifier source=\"US\" intendedAudience='Domestic For Global' />\n\t\t<IntendedAudienceSignifier source=\"AUS\" intendedAudience='Domestic For Global' />\n\t\t<IntendedAudienceSignifier source=\"UK\" intendedAudience='Domestic For Global' theme={{ color: '#c70000' }} />\n\t\t<IntendedAudienceSignifier source=\"AUS\" intendedAudience='Global' cssOverrides={{ border-color: '#0000FF',align-items: 'flex-end' }}/>\n\t\t<IntendedAudienceSignifier source=\"UK\" intendedAudience=\"Don't know\" />\n\t\t<IntendedAudienceSignifier source=\"US\" intendedAudience=\"Don't know\" />\n\t\t<IntendedAudienceSignifier source=\"AUS\" intendedAudience=\"Don't know\" />\n\t\t<IntendedAudienceSignifier source=\"UK\" intendedAudience='US' />\n\t\t<IntendedAudienceSignifier source=\"US\" intendedAudience='UK' />\n\t</>\n);\n";
|
|
3
|
-
export declare const componentCss = "\n/* import the intended audience signifier styles */\n@import '@guardian/stand/component/intendedAudienceSignifier.css';\n\n.stand-intended-audience-signifier {\n\tcolor: var(--component-intended-audience-signifier-color);\n\tfont-weight: var(--component-intended-audience-signifier-typography-font-weight);\n\tfont-size: var(--component-intended-audience-signifier-typography-font-size);\n\tline-height: var(--component-intended-audience-signifier-typography-line-height);\n\tborder-width: var(--component-intended-audience-signifier-border-width);\n\tborder-style: var(--component-intended-audience-signifier-border-style);\n\tborder-color: var(--component-intended-audience-signifier-border-color);\n\tdisplay: var(--component-intended-audience-signifier-display);\n\tflex-direction: var(--component-intended-audience-signifier-flex-direction);\n\tjustify-content: var(--component-intended-audience-signifier-justify-content);\n\talign-items: var(--component-intended-audience-signifier-align-items);\n\tborder-radius: var(--component-intended-audience-signifier-border-width);\n\tpadding: var(--component-intended-audience-signifier-padding-y) var(--component-intended-audience-signifier-padding-x);\n\tbox-sizing: var(--component-intended-audience-signifier-box-sizing);\n\twidth: var(--component-intended-audience-signifier-width);\n\tgap: var(--component-intended-audience-signifier-gap);\n}\n\n.stand-intended-audience-signifier svg {\n\twidth: var(--component-intended-audience-signifier-svg-width):\n\theight: var(--component-intended-audience-signifier-svg-height);\n}\n\n.stand-intended-audience-signifier-flag {\n\theight: 12px;\n}\n\n.stand-intended-audience-signifier-chevron {\n\twidth: 13px;\n\theight: 13px;\n\tfill: #545454;\n}\n";
|
|
4
|
-
export declare const componentHtml = "<div class=\"container flow-column\">\n\t<div class=\"stand-intended-audience-signifier\">\n\t\t<svg class=\"stand-intended-audience-signifier-flag\" viewBox=\"0 0 640 480\" xmlns=\"http://www.w3.org/2000/svg\" aria-hidden=\"true\">\n\t\t\t<path fill=\"#012169\" d=\"M0 0h640v480H0z\" />\n\t\t</svg>\n\t\t<svg class=\"stand-intended-audience-signifier-chevron\" viewBox=\"0 0 9 7\" xmlns=\"http://www.w3.org/2000/svg\" aria-hidden=\"true\">\n\t\t\t<path d=\"M5.75 0H3.5L6 3.5L3.5 7H5.75L8.25 3.5L5.75 0Z\" />\n\t\t\t<path d=\"M2.25 0H0L2.5 3.5L0 7H2.25L4.75 3.5L2.25 0Z\" />\n\t\t</svg>\n\t\t<svg class=\"stand-intended-audience-signifier-flag\" viewBox=\"0 0 640 480\" xmlns=\"http://www.w3.org/2000/svg\" aria-hidden=\"true\">\n\t\t\t<path fill=\"#bd3d44\" d=\"M0 0h640v480H0\" />\n\t\t</svg>\n\t</div>\n\n\t<div class=\"stand-intended-audience-signifier\" style=\"--component-intended-audience-signifier-color: #c70000;\">\n\t\t<span>AU</span>\n\t\t<svg class=\"stand-intended-audience-signifier-chevron\" viewBox=\"0 0 9 7\" xmlns=\"http://www.w3.org/2000/svg\" aria-hidden=\"true\">\n\t\t\t<path d=\"M5.75 0H3.5L6 3.5L3.5 7H5.75L8.25 3.5L5.75 0Z\" />\n\t\t\t<path d=\"M2.25 0H0L2.5 3.5L0 7H2.25L4.75 3.5L2.25 0Z\" />\n\t\t</svg>\n\t\t<span>GLOBAL</span>\n\t</div>\n</div>\n";
|
|
5
|
-
export declare const componentJs = "\nimport { componentIntendedAudienceSignifier } from \"@guardian/stand\";\n\nconst sheet = new CSSStyleSheet();\n\nsheet.replaceSync(`\n\t.js-stand-intended-audience-signifier {\n\t\tcolor: ${componentIntendedAudienceSignifier.color};\n\t\tfont-weight: ${componentIntendedAudienceSignifier.typography.fontWeight};\n\t\tfont-size: ${componentIntendedAudienceSignifier.typography.fontSize};\n\t\tline-height: ${componentIntendedAudienceSignifier.typography.lineHeight};\n\t\tborder-width: ${componentIntendedAudienceSignifier.borderWidth};\n\t\tborder-style: ${componentIntendedAudienceSignifier.borderStyle};\n\t\tborder-color: ${componentIntendedAudienceSignifier.borderColor};\n\t\tdisplay: ${componentIntendedAudienceSignifier.display};\n\t\tflex-direction: ${componentIntendedAudienceSignifier.flexDirection};\n\t\tjustify-content: ${componentIntendedAudienceSignifier.justifyContent};\n\t\talign-items: ${componentIntendedAudienceSignifier.alignItems};\n\t\tborder-radius: ${componentIntendedAudienceSignifier.borderRadius};\n\t\tpadding: ${componentIntendedAudienceSignifier.paddingY} ${componentIntendedAudienceSignifier.paddingX};\n\t\tbox-sizing: ${componentIntendedAudienceSignifier.boxSizing};\n\t\twidth: ${componentIntendedAudienceSignifier.width};\n\t\tgap: ${componentIntendedAudienceSignifier.gap};\n\t}\n\n\t.js-stand-intended-audience-signifier-chevron {\n\t\twidth: 13px;\n\t\theight: 13px;\n\t\tfill: #545454;\n\t}\n\n\t.stand-intended-audience-signifier svg {\n\t\twidth: ${componentIntendedAudienceSignifier.svg.width}:\n\t\theight: ${componentIntendedAudienceSignifier.svg.height};\n\t}\n`);\n\ndocument.adoptedStyleSheets.push(sheet);\n\ndocument.getElementById(\"app\").innerHTML = `\n\t<div class=\"container flow-column\">\n\t\t<div class=\"js-stand-intended-audience-signifier\">\n\t\t\t\t<svg\n\t\t\t\theight=\"12px\"\n\t\t\t\txmlns=\"http://www.w3.org/2000/svg\"\n\t\t\t\tid=\"flag-icons-gb\"\n\t\t\t\tviewBox=\"0 0 640 480\"\n\t\t\t>\n\t\t\t\t<path fill=\"#012169\" d=\"M0 0h640v480H0z\" />\n\t\t\t\t<path\n\t\t\t\t\tfill=\"#FFF\"\n\t\t\t\t\td=\"m75 0 244 181L562 0h78v62L400 241l240 178v61h-80L320 301 81 480H0v-60l239-178L0 64V0z\"\n\t\t\t\t/>\n\t\t\t\t<path\n\t\t\t\t\tfill=\"#C8102E\"\n\t\t\t\t\td=\"m424 281 216 159v40L369 281zm-184 20 6 35L54 480H0zM640 0v3L391 191l2-44L590 0zM0 0l239 176h-60L0 42z\"\n\t\t\t\t/>\n\t\t\t\t<path fill=\"#FFF\" d=\"M241 0v480h160V0zM0 160v160h640V160z\" />\n\t\t\t\t<path fill=\"#C8102E\" d=\"M0 193v96h640v-96zM273 0v480h96V0z\" />\n\t\t\t</svg>\n\t\t\t<svg class=\"js-stand-intended-audience-signifier-chevron\" viewBox=\"0 0 9 7\" xmlns=\"http://www.w3.org/2000/svg\" aria-hidden=\"true\">\n\t\t\t\t<path d=\"M5.75 0H3.5L6 3.5L3.5 7H5.75L8.25 3.5L5.75 0Z\" />\n\t\t\t\t<path d=\"M2.25 0H0L2.5 3.5L0 7H2.25L4.75 3.5L2.25 0Z\" />\n\t\t\t</svg>\n\t\t\t\t\t<svg\n\t\t\t\theight=\"12px\"\n\t\t\t\txmlns=\"http://www.w3.org/2000/svg\"\n\t\t\t\tid=\"flag-icons-gb\"\n\t\t\t\tviewBox=\"0 0 640 480\"\n\t\t\t>\n\t\t\t\t<path fill=\"#012169\" d=\"M0 0h640v480H0z\" />\n\t\t\t\t<path\n\t\t\t\t\tfill=\"#FFF\"\n\t\t\t\t\td=\"m75 0 244 181L562 0h78v62L400 241l240 178v61h-80L320 301 81 480H0v-60l239-178L0 64V0z\"\n\t\t\t\t/>\n\t\t\t\t<path\n\t\t\t\t\tfill=\"#C8102E\"\n\t\t\t\t\td=\"m424 281 216 159v40L369 281zm-184 20 6 35L54 480H0zM640 0v3L391 191l2-44L590 0zM0 0l239 176h-60L0 42z\"\n\t\t\t\t/>\n\t\t\t\t<path fill=\"#FFF\" d=\"M241 0v480h160V0zM0 160v160h640V160z\" />\n\t\t\t\t<path fill=\"#C8102E\" d=\"M0 193v96h640v-96zM273 0v480h96V0z\" />\n\t\t\t</svg>\n\t\t</div>\n\n\t\t<div class=\"js-stand-intended-audience-signifier\" style=\"color: #c70000; border-color: #c70000;\">\n\t\t\t<svg\n\t\t\t\theight=\"12px\"\n\t\t\t\txmlns=\"http://www.w3.org/2000/svg\"\n\t\t\t\tid=\"flag-icons-au\"\n\t\t\t\tviewBox=\"0 0 640 480\"\n\t\t\t>\n\t\t\t\t<path fill=\"#00008B\" d=\"M0 0h640v480H0z\" />\n\t\t\t\t<path\n\t\t\t\t\tfill=\"#fff\"\n\t\t\t\t\td=\"m37.5 0 122 90.5L281 0h39v31l-120 89.5 120 89V240h-40l-120-89.5L40.5 240H0v-30l119.5-89L0 32V0z\"\n\t\t\t\t/>\n\t\t\t\t<path\n\t\t\t\t\tfill=\"red\"\n\t\t\t\t\td=\"M212 140.5 320 220v20l-135.5-99.5zm-92 10 3 17.5-96 72H0zM320 0v1.5l-124.5 94 1-22L295 0zM0 0l119.5 88h-30L0 21z\"\n\t\t\t\t/>\n\t\t\t\t<path fill=\"#fff\" d=\"M120.5 0v240h80V0zM0 80v80h320V80z\" />\n\t\t\t\t<path fill=\"red\" d=\"M0 96.5v48h320v-48zM136.5 0v240h48V0z\" />\n\t\t\t\t<path\n\t\t\t\t\tfill=\"#fff\"\n\t\t\t\t\td=\"m527 396.7-20.5 2.6 2.2 20.5-14.8-14.4-14.7 14.5 2-20.5-20.5-2.4 17.3-11.2-10.9-17.5 19.6 6.5 6.9-19.5 7.1 19.4 19.5-6.7-10.7 17.6zm-3.7-117.2 2.7-13-9.8-9 13.2-1.5 5.5-12.1 5.5 12.1 13.2 1.5-9.8 9 2.7 13-11.6-6.6zm-104.1-60-20.3 2.2 1.8 20.3-14.4-14.5-14.8 14.1 2.4-20.3-20.2-2.7 17.3-10.8-10.5-17.5 19.3 6.8L387 178l6.7 19.3 19.4-6.3-10.9 17.3 17.1 11.2ZM623 186.7l-20.9 2.7 2.3 20.9-15.1-14.7-15 14.8 2.1-21-20.9-2.4 17.7-11.5-11.1-17.9 20 6.7 7-19.8 7.2 19.8 19.9-6.9-11 18zm-96.1-83.5-20.7 2.3 1.9 20.8-14.7-14.8-15.1 14.4 2.4-20.7-20.7-2.8 17.7-11L467 73.5l19.7 6.9 7.3-19.5 6.8 19.7 19.8-6.5-11.1 17.6zM234 385.7l-45.8 5.4 4.6 45.9-32.8-32.4-33 32.2 4.9-45.9-45.8-5.8 38.9-24.8-24-39.4 43.6 15 15.8-43.4 15.5 43.5 43.7-14.7-24.3 39.2 38.8 25.1Z\"\n\t\t\t\t/>\n\t\t\t</svg>\n\t\t\t<svg class=\"js-stand-intended-audience-signifier-chevron\" viewBox=\"0 0 9 7\" xmlns=\"http://www.w3.org/2000/svg\" aria-hidden=\"true\">\n\t\t\t\t<path d=\"M5.75 0H3.5L6 3.5L3.5 7H5.75L8.25 3.5L5.75 0Z\" />\n\t\t\t\t<path d=\"M2.25 0H0L2.5 3.5L0 7H2.25L4.75 3.5L2.25 0Z\" />\n\t\t\t</svg>\n\t\t\t<svg\n\t\t\t\theight=\"12px\"\n\t\t\t\txmlns=\"http://www.w3.org/2000/svg\"\n\t\t\t\tid=\"flag-icons-au\"\n\t\t\t\tviewBox=\"0 0 640 480\"\n\t\t\t>\n\t\t\t\t<path fill=\"#00008B\" d=\"M0 0h640v480H0z\" />\n\t\t\t\t<path\n\t\t\t\t\tfill=\"#fff\"\n\t\t\t\t\td=\"m37.5 0 122 90.5L281 0h39v31l-120 89.5 120 89V240h-40l-120-89.5L40.5 240H0v-30l119.5-89L0 32V0z\"\n\t\t\t\t/>\n\t\t\t\t<path\n\t\t\t\t\tfill=\"red\"\n\t\t\t\t\td=\"M212 140.5 320 220v20l-135.5-99.5zm-92 10 3 17.5-96 72H0zM320 0v1.5l-124.5 94 1-22L295 0zM0 0l119.5 88h-30L0 21z\"\n\t\t\t\t/>\n\t\t\t\t<path fill=\"#fff\" d=\"M120.5 0v240h80V0zM0 80v80h320V80z\" />\n\t\t\t\t<path fill=\"red\" d=\"M0 96.5v48h320v-48zM136.5 0v240h48V0z\" />\n\t\t\t\t<path\n\t\t\t\t\tfill=\"#fff\"\n\t\t\t\t\td=\"m527 396.7-20.5 2.6 2.2 20.5-14.8-14.4-14.7 14.5 2-20.5-20.5-2.4 17.3-11.2-10.9-17.5 19.6 6.5 6.9-19.5 7.1 19.4 19.5-6.7-10.7 17.6zm-3.7-117.2 2.7-13-9.8-9 13.2-1.5 5.5-12.1 5.5 12.1 13.2 1.5-9.8 9 2.7 13-11.6-6.6zm-104.1-60-20.3 2.2 1.8 20.3-14.4-14.5-14.8 14.1 2.4-20.3-20.2-2.7 17.3-10.8-10.5-17.5 19.3 6.8L387 178l6.7 19.3 19.4-6.3-10.9 17.3 17.1 11.2ZM623 186.7l-20.9 2.7 2.3 20.9-15.1-14.7-15 14.8 2.1-21-20.9-2.4 17.7-11.5-11.1-17.9 20 6.7 7-19.8 7.2 19.8 19.9-6.9-11 18zm-96.1-83.5-20.7 2.3 1.9 20.8-14.7-14.8-15.1 14.4 2.4-20.7-20.7-2.8 17.7-11L467 73.5l19.7 6.9 7.3-19.5 6.8 19.7 19.8-6.5-11.1 17.6zM234 385.7l-45.8 5.4 4.6 45.9-32.8-32.4-33 32.2 4.9-45.9-45.8-5.8 38.9-24.8-24-39.4 43.6 15 15.8-43.4 15.5 43.5 43.7-14.7-24.3 39.2 38.8 25.1Z\"\n\t\t\t\t/>\n\t\t\t</svg>\n\t\t</div>\n\t</div>\n`;\n";
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import type { SerializedStyles } from '@emotion/react';
|
|
2
|
-
import type { ComponentIntendedAudienceSignifier } from '../../styleD/build/typescript/component/intendedAudienceSignifier';
|
|
3
|
-
import type { Prettify } from '../../util/types';
|
|
4
|
-
export type IntendedAudienceSignifierTheme = Prettify<ComponentIntendedAudienceSignifier>;
|
|
5
|
-
export declare const defaultIntendedAudienceSignifierTheme: IntendedAudienceSignifierTheme;
|
|
6
|
-
export declare const intendedAudienceSignifierStyles: (theme: IntendedAudienceSignifierTheme) => SerializedStyles;
|
|
7
|
-
export declare const intendedAudienceSignifierIconStyles: (theme: IntendedAudienceSignifierTheme) => SerializedStyles;
|
|
8
|
-
export declare const intendedAudienceSignifierChevronIconStyles: (theme: IntendedAudienceSignifierTheme) => SerializedStyles;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import type { DefaultProps } from '../../util/types';
|
|
2
|
-
import type { IntendedAudienceSignifierTheme } from './styles';
|
|
3
|
-
export type Source = 'UK' | 'US' | 'AUS';
|
|
4
|
-
export type IntendedAudience = 'Global' | 'Domestic for Domestic' | 'Domestic For Global' | "Don't know" | 'UK' | 'US' | 'AUS';
|
|
5
|
-
export interface IntendedAudienceSignifierProps extends DefaultProps<IntendedAudienceSignifierTheme> {
|
|
6
|
-
source: Source;
|
|
7
|
-
intendedAudience: IntendedAudience;
|
|
8
|
-
}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import type React from 'react';
|
|
2
|
-
import type { LayoutProps, LayoutSlotProps, MainProps, SidebarProps } from './types';
|
|
3
|
-
interface LayoutCompound {
|
|
4
|
-
(props: LayoutProps): React.ReactElement;
|
|
5
|
-
AlertBanner: (props: LayoutSlotProps) => React.ReactElement;
|
|
6
|
-
TopBar: (props: LayoutSlotProps) => React.ReactElement;
|
|
7
|
-
Sidebar: (props: SidebarProps) => React.ReactElement;
|
|
8
|
-
Main: (props: MainProps) => React.ReactElement;
|
|
9
|
-
}
|
|
10
|
-
export declare const Layout: LayoutCompound;
|
|
11
|
-
export {};
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
export declare const componentName = "Layout";
|
|
2
|
-
export declare const componentTsx = "import { Grid, Item } from '@guardian/stand/Grid';\nimport { AlertBanner } from '@guardian/stand/AlertBanner';\nimport { Layout } from '@guardian/stand/Layout';\nimport { TopBar, TopBarToolName } from '@guardian/stand/TopBar';\n\nexport const Component = () => (\n\t<Layout aria-label=\"Page layout\">\n\t\t<Layout.AlertBanner as=\"div\" role=\"status\" aria-live=\"polite\">\n\t\t\t<AlertBanner level=\"information\">Layout banner message</AlertBanner>\n\t\t</Layout.AlertBanner>\n\t\t<Layout.TopBar>\n\t\t\t<TopBar>\n\t\t\t\t<TopBarToolName name=\"Layout Demo\" favicon={{ letter: 'L' }} />\n\t\t\t</TopBar>\n\t\t</Layout.TopBar>\n\t\t<Layout.Sidebar as=\"nav\" aria-label=\"Secondary navigation\" layoutSmBreakpoint=\"above-grid\">\n\t\t\t<div style={{ padding: '8px' }}>Sidebar content</div>\n\t\t</Layout.Sidebar>\n\t\t<Layout.Main fluid={false}>\n\t\t\t<Grid>\n\t\t\t\t<Item size={{ sm: 12, md: 8 }}>Main content</Item>\n\t\t\t\t<Item size={{ sm: 12, md: 4 }}>Secondary content</Item>\n\t\t\t</Grid>\n\t\t</Layout.Main>\n\t</Layout>\n);\n";
|
|
3
|
-
export declare const componentCss = "\n/* import the layout styles */\n@import '@guardian/stand/component/layout.css';\n@import '@guardian/stand/semantic/breakpoints.css';\n\n/*\n * Use the TopBar and Grid/Item custom CSS examples from their respective\n * component docs to style the content placed inside these layout regions.\n */\n\n.stand-layout {\n\tdisplay: var(--component-layout-layout-shared-display);\n\tmin-height: var(--component-layout-layout-shared-min-height);\n\twidth: var(--component-layout-layout-shared-width);\n\tgrid-template-areas: var(--component-layout-layout-sm-grid-template-areas);\n\tgrid-template-columns: var(--component-layout-layout-sm-grid-template-columns);\n\tgrid-template-rows: var(--component-layout-layout-sm-grid-template-rows);\n}\n\n.stand-layout-alert-banner {\n\tgrid-area: alertbanner;\n}\n\n.stand-layout-top-bar {\n\tgrid-area: topbar;\n}\n\n.stand-layout-sidebar {\n\tgrid-area: sidebar;\n\tbackground: #f2f2f2;\n\tpadding: 8px;\n}\n\n.stand-layout-main {\n\tgrid-area: main;\n\tpadding: 8px;\n}\n\n@media (min-width: var(--semantic-breakpoints-md)) {\n\t.stand-layout {\n\t\tgrid-template-areas: var(--component-layout-layout-md-grid-template-areas);\n\t\tgrid-template-columns: var(--component-layout-layout-md-grid-template-columns);\n\t\tgrid-template-rows: var(--component-layout-layout-md-grid-template-rows);\n\t}\n\n\t.stand-layout-sidebar {\n\t\tdisplay: var(--component-layout-sidebar-md-display);\n\t\twidth: var(--component-layout-sidebar-md-width);\n\t}\n}\n";
|
|
4
|
-
export declare const componentHtml = "<div class=\"container\">\n\t<div class=\"stand-layout\">\n\t\t<div class=\"stand-layout-alert-banner\">Alert banner area</div>\n\t\t<div class=\"stand-layout-top-bar\">Top bar area</div>\n\t\t<div class=\"stand-layout-sidebar\">Sidebar area</div>\n\t\t<div class=\"stand-layout-main\">Main content area</div>\n\t</div>\n</div>\n";
|
|
5
|
-
export declare const componentJs = "\nimport { componentLayout, semanticBreakpoints } from \"@guardian/stand\";\n\n// Use the TopBar and Grid/Item custom JS examples from their respective\n// component docs to style the content placed inside these layout regions.\n\n\tconst sheet = new CSSStyleSheet();\n\n\tsheet.replaceSync(`\n\t .js-stand-layout {\n\t display: ${componentLayout.layout.shared.display};\n\t min-height: ${componentLayout.layout.shared.minHeight};\n\t width: ${componentLayout.layout.shared.width};\n\t grid-template-areas: ${componentLayout.layout.sm.gridTemplateAreas};\n\t grid-template-columns: ${componentLayout.layout.sm.gridTemplateColumns};\n\t grid-template-rows: ${componentLayout.layout.sm.gridTemplateRows};\n\t }\n\t .js-stand-layout-alert-banner {\n\t grid-area: alertbanner;\n\t }\n\t .js-stand-layout-top-bar {\n\t grid-area: topbar;\n\t }\n\t .js-stand-layout-sidebar {\n\t grid-area: sidebar;\n\t display: ${componentLayout.sidebar.sm.aboveGrid.display};\n\t background: #f2f2f2;\n\t padding: 8px;\n\t }\n\t .js-stand-layout-main {\n\t grid-area: main;\n\t padding: 8px;\n\t }\n\t @media (min-width: ${semanticBreakpoints.md}) {\n\t .js-stand-layout {\n\t grid-template-areas: ${componentLayout.layout.md.gridTemplateAreas};\n\t grid-template-columns: ${componentLayout.layout.md.gridTemplateColumns};\n\t grid-template-rows: ${componentLayout.layout.md.gridTemplateRows};\n\t }\n\t .js-stand-layout-sidebar {\n\t display: ${componentLayout.sidebar.md.display};\n\t width: ${componentLayout.sidebar.md.width};\n\t }\n\t }\n\t`);\n\n\tdocument.adoptedStyleSheets.push(sheet);\n\n\tdocument.getElementById(\"app\").innerHTML = `\n\t <div class=\"js-stand-layout\">\n\t <div class=\"js-stand-layout-alert-banner\">Alert banner area</div>\n\t <div class=\"js-stand-layout-top-bar\">Top bar area</div>\n\t <div class=\"js-stand-layout-sidebar\">Sidebar area</div>\n\t <div class=\"js-stand-layout-main\">Main content area</div>\n\t </div>\n\t`;\n";
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import type { SerializedStyles } from '@emotion/react';
|
|
2
|
-
import type { ComponentLayout } from '../../styleD/build/typescript/component/layout';
|
|
3
|
-
import type { DeepPartial, Prettify } from '../../util/types';
|
|
4
|
-
import type { MainProps, SidebarProps } from './types';
|
|
5
|
-
export type LayoutTheme = Prettify<ComponentLayout['layout']>;
|
|
6
|
-
export type PartialLayoutTheme = Prettify<DeepPartial<LayoutTheme>>;
|
|
7
|
-
export declare const defaultLayoutTheme: LayoutTheme;
|
|
8
|
-
export type SidebarTheme = Prettify<ComponentLayout['sidebar']>;
|
|
9
|
-
export type PartialSidebarTheme = Prettify<DeepPartial<SidebarTheme>>;
|
|
10
|
-
export declare const defaultSidebarTheme: SidebarTheme;
|
|
11
|
-
export type MainTheme = Prettify<ComponentLayout['main']>;
|
|
12
|
-
export type PartialMainTheme = Prettify<DeepPartial<MainTheme>>;
|
|
13
|
-
export declare const defaultMainTheme: MainTheme;
|
|
14
|
-
export declare const alertBannerLayoutStyles: () => SerializedStyles;
|
|
15
|
-
export declare const topBarLayoutStyles: () => SerializedStyles;
|
|
16
|
-
export declare const sidebarLayoutStyles: () => SerializedStyles;
|
|
17
|
-
export declare const mainLayoutStyles: (theme: MainTheme, { fluid }: Required<Pick<MainProps, 'fluid'>>) => SerializedStyles;
|
|
18
|
-
export declare const layoutStyles: (theme: LayoutTheme) => SerializedStyles;
|
|
19
|
-
export declare const sidebarStyles: (theme: SidebarTheme, { layoutSmBreakpoint }: Required<Pick<SidebarProps, 'layoutSmBreakpoint'>>) => SerializedStyles;
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import type { SerializedStyles } from '@emotion/react';
|
|
2
|
-
import type React from 'react';
|
|
3
|
-
import type { DefaultPropsWithChildren } from '../../util/types';
|
|
4
|
-
import type { LayoutTheme, MainTheme, SidebarTheme } from './styles';
|
|
5
|
-
export type LayoutProps = DefaultPropsWithChildren<LayoutTheme>;
|
|
6
|
-
export interface MainProps extends DefaultPropsWithChildren<MainTheme>, React.HTMLAttributes<HTMLElement> {
|
|
7
|
-
/**
|
|
8
|
-
* When `true`, the layout will take up the full width of its container, enabled by default.
|
|
9
|
-
* When `false`, the layout will have a max-width of 1584px and be centered within its container.
|
|
10
|
-
* This can be used to prevent the layout from becoming too stretched on very wide screens.
|
|
11
|
-
*/
|
|
12
|
-
fluid?: boolean;
|
|
13
|
-
as?: React.ElementType;
|
|
14
|
-
}
|
|
15
|
-
export interface SidebarProps extends DefaultPropsWithChildren<SidebarTheme>, React.HTMLAttributes<HTMLElement> {
|
|
16
|
-
/**
|
|
17
|
-
* Defines the layout behavior of the sidebar at the sm breakpoint.
|
|
18
|
-
*
|
|
19
|
-
* - 'above-grid' will place the sidebar above the grid content, effectively making it a horizontal bar at the top of the page, consumers may want to adjust the sidebar content styling for this breakpoint to make it look good in a horizontal layout.
|
|
20
|
-
* - 'hidden' will hide the sidebar entirely at the sm breakpoint, the consumer can choose how to make the sidebar content accessible through other means (e.g. a collapsible menu in the TopBar).
|
|
21
|
-
*
|
|
22
|
-
*/
|
|
23
|
-
layoutSmBreakpoint?: 'above-grid' | 'hidden';
|
|
24
|
-
as?: React.ElementType;
|
|
25
|
-
}
|
|
26
|
-
export interface LayoutSlotProps extends React.HTMLAttributes<HTMLElement> {
|
|
27
|
-
children?: React.ReactNode;
|
|
28
|
-
cssOverrides?: SerializedStyles | SerializedStyles[];
|
|
29
|
-
as?: React.ElementType;
|
|
30
|
-
}
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
export declare const componentName = "Link";
|
|
2
|
-
export declare const componentTsx = "import { Link } from '@guardian/stand/Link';\n\nexport const Component = () => (\n\t<Link href=\"#\">Hello</Link>\n);\n";
|
|
3
|
-
export declare const componentCss = "\n/* import the link styles */\n@import '@guardian/stand/component/link.css';\n\n.stand-typography-body-sm {\n\tfont: var(--semantic-typography-body-sm-font);\n\tletter-spacing: var(--semantic-typography-body-sm-letter-spacing);\n\tfont-variation-settings: \"wdth\" var(--semantic-typography-body-sm-font-width);\n}\n.stand-link {\n\ttext-decoration: underline;\n\ttext-decoration-style: solid;\n\ttext-underline-offset: 8%;\n\ttext-decoration-thickness: 5%;\n\tcolor: var(--component-link-shared-enabled-color);\n}\n\n.stand-link[data-hovered] {\n\tcolor: var(--component-link-shared-hover-color);\n\tcursor: var(--component-link-shared-hover-cursor);\n}\n\n.stand-link[data-pressed] {\n\tcolor: var(--component-link-shared-pressed-color);\n}\n\n.stand-link[data-disabled] {\n\tcolor: var(--component-link-shared-disabled-color);\n}\n\n.stand-link[data-focus-visible] {\n\toutline: var(--component-link-shared-focus-outline);\n}\n";
|
|
4
|
-
export declare const componentHtml = "<div class=\"container\">\n\t<a class=\"stand-link stand-typography-body-sm\" href=\"#\">Default link</a></br>\n\t<a class=\"stand-link stand-typography-body-sm\" href=\"#\" data-hovered>Hovered link</a></br>\n\t<a class=\"stand-link stand-typography-body-sm\" href=\"#\" data-pressed>Pressed link</a></br>\n\t<a class=\"stand-link stand-typography-body-sm\" href=\"#\" data-disabled>Disabled link</a></br>\n\t<a class=\"stand-link stand-typography-body-sm\" href=\"#\" data-focus-visible>Focused link</a>\n</div>\n";
|
|
5
|
-
export declare const componentJs = "\nimport { componentLink, semanticTypography } from \"@guardian/stand\";\n\nconst semanticTypographyBodySm = `\n\t\tfont: ${semanticTypography.bodySm.font};\n\t\tletter-spacing: ${semanticTypography.bodySm.letterSpacing};\n\t\tfont-variation-settings: \"wdth\" ${semanticTypography.bodySm.fontWidth};\n`;\n\nconst baseStyle = `\n\ttext-decoration: underline;\n\ttext-decoration-style: solid;\n\ttext-underline-offset: 8%;\n\ttext-decoration-thickness: 5%;\n\tcolor: ${componentLink.shared.enabled.color};\n`;\n\nconst hoverStyle = `\n\tcolor: ${componentLink.shared.hover.color};\n\tcursor: ${componentLink.shared.hover.cursor};\n`;\n\nconst pressedStyle = `\n\tcolor: ${componentLink.shared.pressed.color};\n`;\n\nconst disabledStyle = `\n\tcolor: ${componentLink.shared.disabled.color};\n`;\n\nconst focusVisibleStyle = `\n\toutline: ${componentLink.shared.focus.outline};\n`;\n\ndocument.getElementById(\"app\").innerHTML = `\n\t<style>\n\t\t.stand-typography-body-sm { ${semanticTypographyBodySm} }\n\t\t.stand-link { ${baseStyle} }\n\t\t.stand-link[data-hovered] { ${hoverStyle} }\n\t\t.stand-link[data-pressed] { ${pressedStyle} }\n\t\t.stand-link[data-disabled] { ${disabledStyle} }\n\t\t.stand-link[data-focus-visible] { ${focusVisibleStyle} }\n\t</style>\n\t<div class=\"container\">\n\t\t<a class=\"stand-link stand-typography-body-sm\" href=\"#\">Default link</a></br>\n\t\t<a class=\"stand-link stand-typography-body-sm\" href=\"#\" data-hovered>Hovered link</a></br>\n\t\t<a class=\"stand-link stand-typography-body-sm\" href=\"#\" data-pressed>Pressed link</a></br>\n\t\t<a class=\"stand-link stand-typography-body-sm\" href=\"#\" data-disabled>Disabled link</a></br>\n\t\t<a class=\"stand-link stand-typography-body-sm\" href=\"#\" data-focus-visible>Focused link</a>\n\t</div>\n`;\n";
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import type { SerializedStyles } from '@emotion/react';
|
|
2
|
-
import type { ComponentLink } from '../../styleD/build/typescript/component/link';
|
|
3
|
-
import type { DeepPartial, Prettify } from '../../util/types';
|
|
4
|
-
export type LinkTheme = Prettify<ComponentLink>;
|
|
5
|
-
export type PartialLinkTheme = DeepPartial<LinkTheme>;
|
|
6
|
-
export declare const defaultLinkTheme: LinkTheme;
|
|
7
|
-
export declare const linkStyles: (theme: LinkTheme) => SerializedStyles;
|