@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,5 +0,0 @@
|
|
|
1
|
-
export declare const componentName = "Select";
|
|
2
|
-
export declare const componentTsx = "import { Option, Select } from '@guardian/stand/Select';\n\nexport const Component = () => (\n\t<Select label=\"Select\">\n\t\t<Option>Option 1</Option>\n\t\t<Option>Option 2</Option>\n\t</Select>\n);\n";
|
|
3
|
-
export declare const componentCss = "\n/* import the select styles */\n@import '@guardian/stand/component/select.css';\n@import '@guardian/stand/component/form.css';\n\n.stand-select-container {\n\tdisplay: var(--component-form-input-shared-container-display);\n\tflex-direction: var(--component-form-input-shared-container-flex-direction);\n\tgap: var(--component-form-input-shared-container-gap);\n\twidth: var(--component-form-input-shared-container-width);\n}\n\n.stand-select-container > label {\n\tcolor: var(--component-form-input-shared-label-color);\n\tfont: var(--component-form-input-md-label-typography-font);\n\tletter-spacing: var(--component-form-input-md-label-typography-letter-spacing);\n\tfont-variation-settings: \"wdth\" var(--component-form-input-md-label-typography-font-width);\n}\n\n.stand-select-container > span.description {\n\tcolor: var(--component-form-input-shared-description-color);\n\tfont: var(--component-form-input-shared-description-typography-font);\n\tletter-spacing: var(--component-form-input-shared-description-typography-letter-spacing);\n\tfont-variation-settings: \"wdth\" var(--component-form-input-shared-description-typography-font-width);\n}\n\n.stand-select {\n\t\tdisplay: var(--component-select-shared-button-display);\n\t\tjustify-content: var(--component-select-shared-button-justify-content);\n\t\talign-items: var(--component-select-shared-button-align-items);\n\t\tbackground-color: var(--component-select-shared-button-background-color);\n\t\tborder: var(--component-select-shared-button-border);\n\t\tborder-radius: var(--component-select-shared-button-border-radius);\n\t\theight: var(--component-select-shared-button-height);\n\t\tpadding-left: var(--component-select-shared-button-padding-left);\n\t\tpadding-right: var(--component-select-shared-button-padding-right);\n\t\tmargin-top: var(--component-select-shared-button-margin-top);\n\t\tcolor: var(--component-select-shared-button-color);\n\n\t\tfont: var(--component-select-shared-button-body-md-typography-font);\n\t\tletter-spacing: var(--component-select-shared-button-body-md-typography-letter-spacing);\n\t\tfont-variation-settings: \"wdth\" var(--component-select-shared-button-body-md-typography-font-width);\n\n\n\t\t&:hover {\n\t\t\tbackground: var(--component-select-shared-hover-background-color);\n\t\t}\n\n\t\t&:active {\n\t\t\tbackground: var(--component-select-shared-active-background-color);\n\t\t}\n\n\t\t&:focus-visible {\n\t\t\toutline: var(--component-select-button-focused-outline);\n\t\t\toutline-offset: var(--component-select-button-focused-outline-offset);\n\t\t}\n\n\t\t&:disabled {\n\t\t\tcursor: var(--component-select-button-disabled-cursor);\n\t\t\tbackground-color: var(--component-select-button-disabled-background-color);\n\t\t\tcolor: var(--component-select-button-disabled-color);\n\t\t\tborder: var(--component-select-button-disabled-border);\n\t\t}\n}\n";
|
|
4
|
-
export declare const componentHtml = "<div class=\"container\">\n\t<div class=\"stand-select-container\">\n\t\t<label>Select</label>\n\t\t<select class=\"stand-select\">\n\t\t\t<option>Option 1</option>\n\t\t\t<option>Option 2</option>\n\t\t</select>\n\t</div>\n</div>\n";
|
|
5
|
-
export declare const componentJs = "\nimport { componentForm, componentSelect } 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\n.js-stand-select-container {\n\tdisplay: ${componentForm.input.shared.container.display};\n\tflex-direction: ${componentForm.input.shared.container.flexDirection};\n\tgap: ${componentForm.input.shared.container.gap};\n\twidth: ${componentForm.input.shared.container.width};\n}\n\n.js-stand-select-container > label {\n\tcolor: ${componentForm.input.shared.label.color};\n\tfont: ${componentForm.input.md.label.typography.font};\n\tletter-spacing: ${componentForm.input.md.label.typography.letterSpacing};\n\tfont-variation-settings: \"wdth\" ${componentForm.input.md.label.typography.fontWidth};\n}\n\n.js-stand-select-container > span.description {\n\tcolor: ${componentForm.input.shared.description.color};\n\tfont: ${componentForm.input.shared.description.font};\n\tletter-spacing: ${componentForm.input.shared.description.letterSpacing};\n\tfont-variation-settings: \"wdth\" ${componentForm.input.shared.description.fontWidth};\n}\n\n.js-stand-select {\n\tdisplay: ${componentSelect.shared.button.display};\n\tjustify-content: ${componentSelect.shared.button.justifyContent};\n\talign-items: ${componentSelect.shared.button.alignItems};\n\tbackground-color: ${componentSelect.shared.button.backgroundColor};\n\tborder: ${componentSelect.shared.button.border};\n\tborder-radius: ${componentSelect.shared.button.borderRadius};\n\theight: ${componentSelect.shared.button.height};\n\tpadding-left: ${componentSelect.shared.button.paddingLeft};\n\tpadding-right: ${componentSelect.shared.button.paddingRight};\n\tmargin-top: ${componentSelect.shared.button.marginTop};\n\tcolor: ${componentSelect.shared.button.color};\n\n\tfont: ${componentSelect.shared.button.typography.font};\n\tletter-spacing: ${componentSelect.shared.button.typography.letterSpacing};\n\tfont-variation-settings: \"wdth\" ${componentSelect.shared.button.typography.fontWidth};\n\n\t&:hover {\n\t\tbackground: ${componentSelect.shared.hover.backgroundColor};\n\t}\n\n\t&:active {\n\t\tbackground: ${componentSelect.shared.pressed.backgroundColor};\n\t}\n\n\t&:focus-visible {\n\t\toutline: ${componentSelect.shared.button.focused.outline};\n\t\toutline-offset: ${componentSelect.shared.button.focused.outlineOffset};\n\t}\n\n\t&:disabled {\n\t\tcursor: ${componentSelect.shared.button.disabled.cursor};\n\t\tbackground-color: ${componentSelect.shared.button.disabled.backgroundColor};\n\t\tcolor: ${componentSelect.shared.button.disabled.color};\n\t\tborder: ${componentSelect.shared.button.disabled.border};\n\t}\n}\n`);\n\n// update the document with the sheet\ndocument.adoptedStyleSheets.push(sheet);\n\ndocument.getElementById(\"app\").innerHTML = `\n\t<div class=\"js-stand-select-container\">\n\t\t<label>Select</label>\n\t\t<select class=\"js-stand-select\">\n\t\t\t<option>Option 1</option>\n\t\t\t<option>Option 2</option>\n\t\t</select>\n\t</div>\n`;\n";
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import type { SerializedStyles } from '@emotion/react';
|
|
2
|
-
import type { ComponentSelect } from '../../styleD/build/typescript/component/select';
|
|
3
|
-
import type { DeepPartial, Prettify } from '../../util/types';
|
|
4
|
-
export type SelectTheme = Prettify<ComponentSelect>;
|
|
5
|
-
export type PartialSelectTheme = Prettify<DeepPartial<SelectTheme>>;
|
|
6
|
-
export declare const defaultSelectTheme: SelectTheme;
|
|
7
|
-
export declare const popoverStyles: (theme: SelectTheme) => SerializedStyles;
|
|
8
|
-
export declare const listBoxItemStyles: (theme: SelectTheme) => SerializedStyles;
|
|
9
|
-
export declare const listBoxStyles: (theme: SelectTheme) => SerializedStyles;
|
|
10
|
-
export declare const buttonStyles: (theme: SelectTheme, isInvalid?: boolean) => SerializedStyles;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import type { ListBoxItemProps as RACListBoxItemProps, ListBoxProps as RACListBoxProps, SelectProps as RACSelectProps } from 'react-aria-components';
|
|
2
|
-
import type { DefaultPropsWithChildren } from '../../util/types';
|
|
3
|
-
import type { FormInputContainerDefaultProps } from '../Form/types';
|
|
4
|
-
import type { SelectTheme } from './styles';
|
|
5
|
-
export interface OptionProps extends DefaultPropsWithChildren<SelectTheme, RACListBoxItemProps['className']>, Omit<RACListBoxItemProps, 'children'> {
|
|
6
|
-
}
|
|
7
|
-
export interface ListBoxProps extends DefaultPropsWithChildren<SelectTheme, RACListBoxProps<object>['className']>, Omit<RACListBoxProps<object>, 'children'> {
|
|
8
|
-
}
|
|
9
|
-
export type SelectProps = FormInputContainerDefaultProps<RACSelectProps<object, 'single' | 'multiple'>, SelectTheme>;
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import type { SerializedStyles } from '@emotion/react';
|
|
2
|
-
import { type ComponentAutocomplete } from '../../styleD/build/typescript/component/autocomplete';
|
|
3
|
-
import { type ComponentTagTable } from '../../styleD/build/typescript/component/tagTable';
|
|
4
|
-
import type { DeepPartial } from '../../util/types';
|
|
5
|
-
export declare const autocompleteInputStyles: (partialTheme?: DeepPartial<ComponentAutocomplete>) => SerializedStyles;
|
|
6
|
-
export declare const listboxStyles: (partialTheme?: DeepPartial<ComponentAutocomplete>) => SerializedStyles;
|
|
7
|
-
export declare const listboxItemStyles: (partialTheme?: DeepPartial<ComponentAutocomplete>) => SerializedStyles;
|
|
8
|
-
export declare const listboxInfoStyles: (partialTheme?: DeepPartial<ComponentAutocomplete>) => SerializedStyles;
|
|
9
|
-
export declare const tagTableHeadingStyles: (partialTheme?: DeepPartial<ComponentTagTable>) => SerializedStyles;
|
|
10
|
-
export declare const tagTableCellStyles: (partialTheme?: DeepPartial<ComponentTagTable>) => SerializedStyles;
|
|
11
|
-
export declare const tagTableRowStyles: (canDrag: boolean, partialTheme?: DeepPartial<ComponentTagTable>) => SerializedStyles;
|
|
12
|
-
export declare const tagTableStyles: (canRemoveTag: boolean, partialTheme?: DeepPartial<ComponentTagTable>) => SerializedStyles;
|
|
13
|
-
export declare const tagTableRemoveButtonStyles: SerializedStyles;
|
|
14
|
-
export declare const tagTableAddButtonStyles: (partialTheme?: DeepPartial<ComponentTagTable>) => SerializedStyles;
|
|
15
|
-
export declare const tagTableDragButtonStyles: SerializedStyles;
|
|
16
|
-
export declare const tagTableTypeBadgeStyles: (partialTheme?: DeepPartial<ComponentTagTable>) => SerializedStyles;
|
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
export type Tag = {
|
|
2
|
-
id: number;
|
|
3
|
-
name: string;
|
|
4
|
-
};
|
|
5
|
-
export type TagRow = Tag & {
|
|
6
|
-
type: string;
|
|
7
|
-
sectionName: string;
|
|
8
|
-
};
|
|
9
|
-
export type TagManagerObject = {
|
|
10
|
-
id: number;
|
|
11
|
-
type: string;
|
|
12
|
-
internalName: string;
|
|
13
|
-
externalName: string;
|
|
14
|
-
slug: string;
|
|
15
|
-
section: {
|
|
16
|
-
id: number;
|
|
17
|
-
name: string;
|
|
18
|
-
pathPrefix: string;
|
|
19
|
-
sectionTagId: number;
|
|
20
|
-
slug: string;
|
|
21
|
-
};
|
|
22
|
-
parents: Array<{
|
|
23
|
-
uri: string;
|
|
24
|
-
data?: unknown;
|
|
25
|
-
links?: Array<{
|
|
26
|
-
rel: string;
|
|
27
|
-
href: string;
|
|
28
|
-
description?: string;
|
|
29
|
-
}>;
|
|
30
|
-
}>;
|
|
31
|
-
externalReferences: Array<{
|
|
32
|
-
type: string;
|
|
33
|
-
token?: string | undefined;
|
|
34
|
-
}>;
|
|
35
|
-
path: string;
|
|
36
|
-
contributorInformation: {
|
|
37
|
-
lastName?: string | undefined;
|
|
38
|
-
firstName?: string | undefined;
|
|
39
|
-
twitterHandle?: string | undefined;
|
|
40
|
-
rcsId?: string | undefined;
|
|
41
|
-
contactEmail?: string | undefined;
|
|
42
|
-
bylineImage?: {
|
|
43
|
-
imageId: string;
|
|
44
|
-
assets: Array<{
|
|
45
|
-
imageUrl: string;
|
|
46
|
-
width: number;
|
|
47
|
-
height: number;
|
|
48
|
-
mimeType: string;
|
|
49
|
-
}>;
|
|
50
|
-
} | undefined;
|
|
51
|
-
largeBylineImage?: {
|
|
52
|
-
imageId: string;
|
|
53
|
-
assets: Array<{
|
|
54
|
-
imageUrl: string;
|
|
55
|
-
width: number;
|
|
56
|
-
height: number;
|
|
57
|
-
mimeType: string;
|
|
58
|
-
}>;
|
|
59
|
-
} | undefined;
|
|
60
|
-
} | null;
|
|
61
|
-
adBlockingLevel?: 'NONE' | 'SUGGEST' | 'FORCE' | undefined;
|
|
62
|
-
contributionBlockingLevel?: 'NONE' | 'SUGGEST' | 'FORCE' | undefined;
|
|
63
|
-
};
|
|
64
|
-
export type TagManagerObjectData = TagRow & TagManagerObject;
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
export declare const componentName = "TextArea";
|
|
2
|
-
export declare const componentTsx = "import { TextArea } from '@guardian/stand/TextArea';\n\nexport const Component = () => (\n\t<TextArea\n\t\t\tlabel=\"Description\"\n\t\t\tdescription=\"This is a description for the text area.\"\n\t\t/>\n);\n";
|
|
3
|
-
export declare const componentCss = "\n/* import the textarea, form and inline message styles */\n@import '@guardian/stand/component/inlineMessage.css';\n@import '@guardian/stand/component/form.css';\n@import '@guardian/stand/component/textArea.css';\n\n/* inline message styles - error */\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-text-area {\n\tdisplay: var(--component-textArea-shared-display);\n}\n\n/* form input container styles */\n\n.stand-form-input-container {\n\tdisplay: var(--component-form-input-shared-container-display);\n\tflex-direction: var(--component-form-input-shared-container-flex-direction);\n\tgap: var(--component-form-input-shared-container-gap);\n\twidth: var(--component-form-input-shared-container-width);\n}\n\n.stand-form-input-container > label {\n\tcolor: var(--component-form-input-shared-label-color);\n\tfont: var(--component-form-input-md-label-typography-font);\n\tletter-spacing: var(--component-form-input-md-label-typography-letter-spacing);\n\tfont-variation-settings: \"wdth\" var(--component-form-input-md-label-typography-font-width);\n}\n\n.stand-form-input-container[data-disabled] > label {\n\tcolor: var(--component-form-input-shared-label-disabled-color);\n}\n\n.stand-form-input-container > span.description {\n\tcolor: var(--component-form-input-shared-description-color);\n\tfont: var(--component-form-input-shared-description-typography-font);\n\tletter-spacing: var(--component-form-input-shared-description-typography-letter-spacing);\n\tfont-variation-settings: \"wdth\" var(--component-form-input-shared-description-typography-font-width);\n}\n\n.stand-form-input-container[data-disabled] > span.description {\n\tcolor: var(--component-form-input-shared-description-disabled-color);\n}\n\n/* text area styles */\n\n.stand-text-area {\n\tbackground-color: var(--component-text-area-shared-background-color);\n\tborder-radius: var(--component-text-area-shared-border-radius);\n\tborder: var(--component-text-area-shared-border);\n\tcolor: var(--component-text-area-shared-color);\n\tcursor: var(--component-text-area-shared-cursor);\n\tmargin-top: var(--component-text-area-shared-margin-top);\n\tpadding-top: var(--component-text-area-shared-padding-top);\n\tpadding-right: var(--component-text-area-shared-padding-right);\n\tpadding-bottom: var(--component-text-area-shared-padding-bottom);\n\tpadding-left: var(--component-text-area-shared-padding-left);\n}\n\n.stand-text-area[disabled] {\n\tbackground-color: var(--component-text-area-shared-disabled-background-color);\n\tborder: var(--component-text-area-shared-disabled-border);\n\tcolor: var(--component-text-area-shared-disabled-color);\n\tcursor: var(--component-text-area-shared-disabled-cursor);\n}\n\n.stand-text-area[data-invalid] {\n\tborder: var(--component-text-area-shared-error-border);\n}\n\n.stand-text-area.md {\n\theight: var(--component-text-area-shared-height);\n\tfont: var(--component-text-area-md-typography-font);\n\tletter-spacing: var(--component-text-area-md-typography-letter-spacing);\n\tfont-variation-settings: \"wdth\" var(--component-text-area-md-typography-font-width);\n}\n\n.stand-text-area.sm {\n\theight: var(--component-text-area-shared-height);\n\tfont: var(--component-text-area-sm-typography-font);\n\tletter-spacing: var(--component-text-area-sm-typography-letter-spacing);\n\tfont-variation-settings: \"wdth\" var(--component-text-area-sm-typography-font-width);\n}\n";
|
|
4
|
-
export declare const componentHtml = "<div class=\"container\">\n\t<div class=\"stand-form-input-container md\">\n\t\t<label for=\"name\">Name</label>\n\t\t<span class=\"description\">This is a description for the text area.</span>\n\t\t<textarea id=\"name\" class=\"stand-text-area md\" type=\"text\"></textarea>\n\t</div>\n\t<div class=\"stand-form-input-container sm\">\n\t\t<label for=\"story\">Tell us a story</label>\n\t\t<textarea\n\t\t\tid=\"story\"\n\t\t\tclass=\"stand-text-area sm\"\n\t\t\ttype=\"text\"\n\t\t\tdata-invalid\n\t\t>It was a dark and stormy night...</textarea>\n\t\t<span class=\"stand-inline-message stand-inline-message-error\"><span class=\"material-symbols\">warning</span> Story is below character count</span>\n\t</div>\n\t<div class=\"stand-form-input-container md\" data-disabled>\n\t\t<label for=\"notes\">Notes</label>\n\t\t<textarea\n\t\t\tid=\"notes\"\n\t\t\tclass=\"stand-text-area md\"\n\t\t\ttype=\"text\"\n\t\t\tdisabled\n\t\t></textarea>\n\t</div>\n</div>\n";
|
|
5
|
-
export declare const componentJs = "\nimport { componentTextArea, componentForm, 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/* inline message styles - error */\n.js-stand-inline-message {\n display: ${componentInlineMessage.shared.display};\n align-items: ${componentInlineMessage.shared.alignItems};\n gap: ${componentInlineMessage.shared.gap};\n font: ${componentInlineMessage.shared.typography.font};\n letter-spacing: ${componentInlineMessage.shared.typography.letterSpacing};\n font-variation-settings: \"wdth\" ${componentInlineMessage.shared.typography.fontWidth};\n}\n\n.js-stand-inline-message > .material-symbols {\n font-size: ${componentInlineMessage.shared.icon.size};\n}\n\n.js-stand-inline-message > svg {\n width: ${componentInlineMessage.shared.icon.size};\n height: ${componentInlineMessage.shared.icon.size};\n}\n\n.js-stand-inline-message-error {\n color: ${componentInlineMessage.error.color};\n fill: ${componentInlineMessage.error.color};\n}\n\n/* form input container styles */\n\n.js-stand-form-input-container {\n\tdisplay: ${componentForm.input.shared.container.display};\n\tflex-direction: ${componentForm.input.shared.container.flexDirection};\n\tgap: ${componentForm.input.shared.container.gap};\n\twidth: ${componentForm.input.shared.container.width};\n}\n\n.js-stand-form-input-container > label {\n\tcolor: ${componentForm.input.shared.label.color};\n\tfont: ${componentForm.input.md.label.typography.font};\n\tletter-spacing: ${componentForm.input.md.label.typography.letterSpacing};\n\tfont-variation-settings: \"wdth\" ${componentForm.input.md.label.typography.fontWidth};\n}\n\n.js-stand-form-input-container[data-disabled] > label {\n\tcolor: ${componentForm.input.shared.label.disabled.color};\n}\n\n.js-stand-form-input-container > span.description {\n\tcolor: ${componentForm.input.shared.description.color};\n\tfont: ${componentForm.input.shared.description.typography.font};\n\tletter-spacing: ${componentForm.input.shared.description.typography.letterSpacing};\n\tfont-variation-settings: \"wdth\" ${componentForm.input.shared.description.typography.fontWidth};\n}\n\n.js-stand-form-input-container[data-disabled] > span.description {\n\tcolor: ${componentForm.input.shared.description.disabled.color};\n}\n\n/* text area styles */\n\n.js-stand-text-area {\n\tbackground-color: ${componentTextArea.shared.backgroundColor};\n\tborder-radius: ${componentTextArea.shared.borderRadius};\n\tborder: ${componentTextArea.shared.border};\n\tcolor: ${componentTextArea.shared.color};\n\tcursor: ${componentTextArea.shared.cursor};\n\tmargin-top: ${componentTextArea.shared.marginTop};\n\tpadding-top: ${componentTextArea.shared.padding.top};\n\tpadding-right: ${componentTextArea.shared.padding.right};\n\tpadding-bottom: ${componentTextArea.shared.padding.bottom};\n\tpadding-left: ${componentTextArea.shared.padding.left};\n}\n\n.js-stand-text-area[disabled] {\n\tbackground-color: ${componentTextArea.shared.disabled.backgroundColor};\n\tborder: ${componentTextArea.shared.disabled.border};\n\tcolor: ${componentTextArea.shared.disabled.color};\n\tcursor: ${componentTextArea.shared.disabled.cursor};\n}\n\n.js-stand-text-area[data-invalid] {\n\tborder: ${componentTextArea.shared.errorBorder};\n}\n\n.js-stand-text-area.md {\n\theight: ${componentTextArea.shared.height};\n\tfont: ${componentTextArea.md.typography.font};\n\tletter-spacing: ${componentTextArea.md.typography.letterSpacing};\n\tfont-variation-settings: \"wdth\" ${componentTextArea.md.typography.fontWidth};\n}\n\n.js-stand-text-area.sm {\n\theight: ${componentTextArea.shared.height};\n\tfont: ${componentTextArea.sm.typography.font};\n\tletter-spacing: ${componentTextArea.sm.typography.letterSpacing};\n\tfont-variation-settings: \"wdth\" ${componentTextArea.sm.typography.fontWidth};\n}\n`);\n\n// update the document with the sheet\ndocument.adoptedStyleSheets.push(sheet);\n\n// modify the dom with the button components using the generated stylesheet\ndocument.getElementById(\"app\").innerHTML = `\n<div class=\"container flow-column\">\n\t<div class=\"js-stand-form-input-container md\">\n\t\t<label for=\"name\">Name</label>\n\t\t<span class=\"description\">This is a description for the text input.</span>\n\t\t<textarea id=\"name\" class=\"js-stand-text-area md\"></textarea>\n\t</div>\n\t<div class=\"js-stand-form-input-container sm\">\n\t\t<label for=\"story\">Story</label>\n\t\t<textarea\n\t\t\tid=\"story\"\n\t\t\tclass=\"js-stand-text-area sm\"\n\t\t>It was a dark and stormy night...</textarea>\n\t\t<span class=\"js-stand-inline-message js-stand-inline-message-error\"><span class=\"material-symbols\">warning</span> Username is already taken</span>\n\t</div>\n\t<div class=\"js-stand-form-input-container md\" data-disabled>\n\t\t<label for=\"notes\">Notes</label>\n\t\t<textarea\n\t\t\tid=\"notes\"\n\t\t\tclass=\"js-stand-text-area md\"\n\t\t\ttype=\"text\"\n\t\t\tdisabled\n\t\t </textarea>\n\t</div>\n</div>\n`;\n";
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import type { SerializedStyles } from '@emotion/react';
|
|
2
|
-
import type { ComponentTextArea } from '../../styleD/build/typescript/component/textArea';
|
|
3
|
-
import type { Prettify } from '../../util/types';
|
|
4
|
-
import type { TextAreaProps } from './types';
|
|
5
|
-
export type TextAreaTheme = Prettify<ComponentTextArea>;
|
|
6
|
-
export declare const defaultTextAreaTheme: TextAreaTheme;
|
|
7
|
-
export declare const textAreaStyles: (theme: TextAreaTheme, { size, isInvalid }: Required<Pick<TextAreaProps, 'size' | 'isInvalid'>>) => SerializedStyles;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import type { TextFieldProps as RACTextAreaProps } from 'react-aria-components';
|
|
2
|
-
import type { FormInputContainerDefaultProps } from '../Form/types';
|
|
3
|
-
import type { TextAreaTheme } from './styles';
|
|
4
|
-
export interface TextAreaProps extends FormInputContainerDefaultProps<RACTextAreaProps, TextAreaTheme> {
|
|
5
|
-
/** Temporary text that occupies the text area when it is empty */
|
|
6
|
-
placeholder?: string;
|
|
7
|
-
}
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
export declare const componentName = "TextInput";
|
|
2
|
-
export declare const componentTsx = "import { TextInput } from '@guardian/stand/TextInput';\n\nexport const Component = () => (\n\t<>\n\t\t<TextInput\n\t\t\tlabel=\"Name\"\n\t\t\tdescription=\"This is a description for the text input.\"\n\t\t/>\n\n\t\t<TextInput\n\t\t\tsize=\"sm\"\n\t\t\tlabel=\"Username\"\n\t\t\tisInvalid\n\t\t\tdefaultValue=\"guardian_user\"\n\t\t\terror=\"Username is already taken\"\n\t\t/>\n\n\t\t<TextInput\n\t\t\tlabel=\"Password\"\n\t\t\tdescription=\"Showing a different type\"\n\t\t\ttype=\"password\"\n\t\t/>\n\n\t\t<TextInput label=\"Notes\" isDisabled defaultValue=\"Read only content\" />\n\t</>\n);\n";
|
|
3
|
-
export declare const componentCss = "\n/* import the text input, form, inline message styles */\n@import '@guardian/stand/component/inlineMessage.css';\n@import '@guardian/stand/component/form.css';\n@import '@guardian/stand/component/textInput.css';\n\n/* inline message styles - error */\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/* form input container styles */\n\n.stand-form-input-container {\n\tdisplay: var(--component-form-input-shared-container-display);\n\tflex-direction: var(--component-form-input-shared-container-flex-direction);\n\tgap: var(--component-form-input-shared-container-gap);\n\twidth: var(--component-form-input-shared-container-width);\n}\n\n.stand-form-input-container > label {\n\tcolor: var(--component-form-input-shared-label-color);\n\tfont: var(--component-form-input-md-label-typography-font);\n\tletter-spacing: var(--component-form-input-md-label-typography-letter-spacing);\n\tfont-variation-settings: \"wdth\" var(--component-form-input-md-label-typography-font-width);\n}\n\n.stand-form-input-container[data-disabled] > label {\n\tcolor: var(--component-form-input-shared-label-disabled-color);\n}\n\n.stand-form-input-container > span.description {\n\tcolor: var(--component-form-input-shared-description-color);\n\tfont: var(--component-form-input-shared-description-typography-font);\n\tletter-spacing: var(--component-form-input-shared-description-typography-letter-spacing);\n\tfont-variation-settings: \"wdth\" var(--component-form-input-shared-description-typography-font-width);\n}\n\n.stand-form-input-container[data-disabled] > span.description {\n\tcolor: var(--component-form-input-shared-description-disabled-color);\n}\n\n/* text input styles */\n\n.stand-text-input {\n\tbackground-color: var(--component-text-input-shared-background-color);\n\tborder-radius: var(--component-text-input-shared-border-radius);\n\tborder: var(--component-text-input-shared-border);\n\tcolor: var(--component-text-input-shared-color);\n\tcursor: var(--component-text-input-shared-cursor);\n\tmargin-top: var(--component-text-input-shared-margin-top);\n\tpadding-top: var(--component-text-input-shared-padding-top);\n\tpadding-right: var(--component-text-input-shared-padding-right);\n\tpadding-bottom: var(--component-text-input-shared-padding-bottom);\n\tpadding-left: var(--component-text-input-shared-padding-left);\n}\n\n.stand-text-input[disabled] {\n\tbackground-color: var(--component-text-input-shared-disabled-background-color);\n\tborder: var(--component-text-input-shared-disabled-border);\n\tcolor: var(--component-text-input-shared-disabled-color);\n\tcursor: var(--component-text-input-shared-disabled-cursor);\n}\n\n.stand-text-input[data-invalid] {\n\tborder: var(--component-text-input-shared-error-border);\n}\n\n.stand-text-input.md {\n\theight: var(--component-text-input-md-height);\n\tfont: var(--component-text-input-md-typography-font);\n\tletter-spacing: var(--component-text-input-md-typography-letter-spacing);\n\tfont-variation-settings: \"wdth\" var(--component-text-input-md-typography-font-width);\n}\n\n.stand-text-input.sm {\n\theight: var(--component-text-input-sm-height);\n\tfont: var(--component-text-input-sm-typography-font);\n\tletter-spacing: var(--component-text-input-sm-typography-letter-spacing);\n\tfont-variation-settings: \"wdth\" var(--component-text-input-sm-typography-font-width);\n}\n";
|
|
4
|
-
export declare const componentHtml = "<div class=\"container flow-column\">\n\t<div class=\"stand-form-input-container md\">\n\t\t<label for=\"name\">Name</label>\n\t\t<span class=\"description\">This is a description for the text input.</span>\n\t\t<input id=\"name\" class=\"stand-text-input md\" type=\"text\" />\n\t</div>\n\t<div class=\"stand-form-input-container sm\">\n\t\t<label for=\"username\">Username</label>\n\t\t<input\n\t\t\tid=\"username\"\n\t\t\tclass=\"stand-text-input sm\"\n\t\t\ttype=\"text\"\n\t\t\tvalue=\"guardian_user\"\n\t\t\tdata-invalid\n\t\t/>\n\t\t<span class=\"stand-inline-message stand-inline-message-error\"><span class=\"material-symbols\">warning</span> Username is already taken</span>\n\t</div>\n\t<div class=\"stand-form-input-container md\">\n\t\t<label for=\"password\">Password</label>\n\t\t<span class=\"description\">Showing a different type</span>\n\t\t<input id=\"password\" class=\"stand-text-input md\" type=\"password\" />\n\t</div>\n\t<div class=\"stand-form-input-container md\" data-disabled>\n\t\t<label for=\"notes\">Notes</label>\n\t\t<input\n\t\t\tid=\"notes\"\n\t\t\tclass=\"stand-text-input md\"\n\t\t\ttype=\"text\"\n\t\t\tvalue=\"Read only content\"\n\t\t\tdisabled\n\t\t/>\n\t</div>\n</div>\n";
|
|
5
|
-
export declare const componentJs = "\nimport { componentTextInput, componentForm, 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/* inline message styles - error */\n.js-stand-inline-message {\n display: ${componentInlineMessage.shared.display};\n align-items: ${componentInlineMessage.shared.alignItems};\n gap: ${componentInlineMessage.shared.gap};\n font: ${componentInlineMessage.shared.typography.font};\n letter-spacing: ${componentInlineMessage.shared.typography.letterSpacing};\n font-variation-settings: \"wdth\" ${componentInlineMessage.shared.typography.fontWidth};\n}\n\n.js-stand-inline-message > .material-symbols {\n font-size: ${componentInlineMessage.shared.icon.size};\n}\n\n.js-stand-inline-message > svg {\n width: ${componentInlineMessage.shared.icon.size};\n height: ${componentInlineMessage.shared.icon.size};\n}\n\n.js-stand-inline-message-error {\n color: ${componentInlineMessage.error.color};\n fill: ${componentInlineMessage.error.color};\n}\n\n/* form input container styles */\n\n.js-stand-form-input-container {\n\tdisplay: ${componentForm.input.shared.container.display};\n\tflex-direction: ${componentForm.input.shared.container.flexDirection};\n\tgap: ${componentForm.input.shared.container.gap};\n\twidth: ${componentForm.input.shared.container.width};\n}\n\n.js-stand-form-input-container > label {\n\tcolor: ${componentForm.input.shared.label.color};\n\tfont: ${componentForm.input.md.label.typography.font};\n\tletter-spacing: ${componentForm.input.md.label.typography.letterSpacing};\n\tfont-variation-settings: \"wdth\" ${componentForm.input.md.label.typography.fontWidth};\n}\n\n.js-stand-form-input-container[data-disabled] > label {\n\tcolor: ${componentForm.input.shared.label.disabled.color};\n}\n\n.js-stand-form-input-container > span.description {\n\tcolor: ${componentForm.input.shared.description.color};\n\tfont: ${componentForm.input.shared.description.typography.font};\n\tletter-spacing: ${componentForm.input.shared.description.typography.letterSpacing};\n\tfont-variation-settings: \"wdth\" ${componentForm.input.shared.description.typography.fontWidth};\n}\n\n.js-stand-form-input-container[data-disabled] > span.description {\n\tcolor: ${componentForm.input.shared.description.disabled.color};\n}\n\n/* text input styles */\n\n.js-stand-text-input {\n\tbackground-color: ${componentTextInput.shared.backgroundColor};\n\tborder-radius: ${componentTextInput.shared.borderRadius};\n\tborder: ${componentTextInput.shared.border};\n\tcolor: ${componentTextInput.shared.color};\n\tcursor: ${componentTextInput.shared.cursor};\n\tmargin-top: ${componentTextInput.shared.marginTop};\n\tpadding-top: ${componentTextInput.shared.padding.top};\n\tpadding-right: ${componentTextInput.shared.padding.right};\n\tpadding-bottom: ${componentTextInput.shared.padding.bottom};\n\tpadding-left: ${componentTextInput.shared.padding.left};\n}\n\n.js-stand-text-input[disabled] {\n\tbackground-color: ${componentTextInput.shared.disabled.backgroundColor};\n\tborder: ${componentTextInput.shared.disabled.border};\n\tcolor: ${componentTextInput.shared.disabled.color};\n\tcursor: ${componentTextInput.shared.disabled.cursor};\n}\n\n.js-stand-text-input[data-invalid] {\n\tborder: ${componentTextInput.shared.errorBorder};\n}\n\n.js-stand-text-input.md {\n\theight: ${componentTextInput.md.height};\n\tfont: ${componentTextInput.md.typography.font};\n\tletter-spacing: ${componentTextInput.md.typography.letterSpacing};\n\tfont-variation-settings: \"wdth\" ${componentTextInput.md.typography.fontWidth};\n}\n\n.js-stand-text-input.sm {\n\theight: ${componentTextInput.sm.height};\n\tfont: ${componentTextInput.sm.typography.font};\n\tletter-spacing: ${componentTextInput.sm.typography.letterSpacing};\n\tfont-variation-settings: \"wdth\" ${componentTextInput.sm.typography.fontWidth};\n}\n`);\n\n// update the document with the sheet\ndocument.adoptedStyleSheets.push(sheet);\n\n// modify the dom with the button components using the generated stylesheet\ndocument.getElementById(\"app\").innerHTML = `\n<div class=\"container flow-column\">\n\t<div class=\"js-stand-form-input-container md\">\n\t\t<label for=\"name\">Name</label>\n\t\t<span class=\"description\">This is a description for the text input.</span>\n\t\t<input id=\"name\" class=\"js-stand-text-input md\" type=\"text\" />\n\t</div>\n\t<div class=\"js-stand-form-input-container sm\">\n\t\t<label for=\"username\">Username</label>\n\t\t<input\n\t\t\tid=\"username\"\n\t\t\tclass=\"js-stand-text-input sm\"\n\t\t\ttype=\"text\"\n\t\t/>\n\t\t<span class=\"js-stand-inline-message js-stand-inline-message-error\"><span class=\"material-symbols\">warning</span> Username is already taken</span>\n\t</div>\n\t<div class=\"js-stand-form-input-container md\">\n\t\t<label for=\"password\">Password</label>\n\t\t<span class=\"description\">Showing a different type</span>\n\t\t<input id=\"password\" class=\"js-stand-text-input md\" type=\"password\" />\n\t</div>\n\t<div class=\"js-stand-form-input-container md\" data-disabled>\n\t\t<label for=\"notes\">Notes</label>\n\t\t<input\n\t\t\tid=\"notes\"\n\t\t\tclass=\"js-stand-text-input md\"\n\t\t\ttype=\"text\"\n\t\t\tvalue=\"Read only content\"\n\t\t\tdisabled\n\t\t />\n\t</div>\n</div>\n`;\n";
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import type { SerializedStyles } from '@emotion/react';
|
|
2
|
-
import type { ComponentTextInput } from '../../styleD/build/typescript/component/textInput';
|
|
3
|
-
import type { Prettify } from '../../util/types';
|
|
4
|
-
import type { TextInputProps } from './types';
|
|
5
|
-
export type TextInputTheme = Prettify<ComponentTextInput>;
|
|
6
|
-
export declare const defaultTextInputTheme: TextInputTheme;
|
|
7
|
-
export declare const textInputStyles: (theme: TextInputTheme, { size, isInvalid }: Required<Pick<TextInputProps, 'size' | 'isInvalid'>>) => SerializedStyles;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import type { TextFieldProps as RACTextInputProps } from 'react-aria-components';
|
|
2
|
-
import type { FormInputContainerDefaultProps } from '../Form/types';
|
|
3
|
-
import type { TextInputTheme } from './styles';
|
|
4
|
-
export interface TextInputProps extends FormInputContainerDefaultProps<RACTextInputProps, TextInputTheme> {
|
|
5
|
-
/** Temporary text that occupies the text input when it is empty */
|
|
6
|
-
placeholder?: string;
|
|
7
|
-
}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import type { TopBarTheme } from './styles';
|
|
2
|
-
import type { TopBarProps } from './types';
|
|
3
|
-
export declare function TopBarContainerRight({ children, theme, }: {
|
|
4
|
-
children: TopBarProps['children'];
|
|
5
|
-
theme?: TopBarTheme;
|
|
6
|
-
}): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
7
|
-
export declare function TopBarContainerLeft({ children, theme, }: {
|
|
8
|
-
children: TopBarProps['children'];
|
|
9
|
-
theme?: TopBarTheme;
|
|
10
|
-
}): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
11
|
-
export declare function TopBar({ children, collapseBelow, theme, cssOverrides, className, ...props }: TopBarProps): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
export declare const componentName = "TopBarItem";
|
|
2
|
-
export declare const componentTsx = "import { TopBarItem } from '@guardian/stand/TopBar';\n\nexport const Component = () => (\n\t<TopBarItem>Hello</TopBarItem>\n);\n";
|
|
3
|
-
export declare const componentCss = "\n/* import the topbaritem styles */\n@import '@guardian/stand/component/topBar.css';\n\n.stand-top-bar-item {\n\tdisplay: var(--component-top-bar-item-display);\n\talign-items: var(--component-top-bar-item-align-items);\n\theight: var(--component-top-bar-item-height);\n\tpadding: var(--component-top-bar-item-sm-padding-top) var(--component-top-bar-item-sm-padding-right) var(--component-top-bar-item-sm-padding-bottom) var(--component-top-bar-item-sm-padding-left);\n\tborder-right: var(--component-top-bar-item-border);\n}\n";
|
|
4
|
-
export declare const componentHtml = "<div class=\"container\">\n\t<div class=\"stand-top-bar-item\">Hello</div>\n</div>\n";
|
|
5
|
-
export declare const componentJs = "\nimport { componentTopBar } from \"@guardian/stand\";\n\nconst style = `\n\tdisplay: ${componentTopBar.Item.display};\n\talign-items: ${componentTopBar.Item.alignItems};\n\theight: ${componentTopBar.Item.height};\n\tpadding: ${componentTopBar.Item.sm.padding.top} ${componentTopBar.Item.sm.padding.right} ${componentTopBar.Item.sm.padding.bottom} ${componentTopBar.Item.sm.padding.left};\n\tborder-right: ${componentTopBar.Item.border};\n`;\n\ndocument.getElementById(\"app\").innerHTML = `\n\t<div class=\"container\">\n\t\t<div style=\"${style}\">Hello</div>\n\t</div>\n`;\n";
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import type { SerializedStyles } from '@emotion/react';
|
|
2
|
-
import type { ComponentTopBar } from '../../../styleD/build/typescript/component/topBar';
|
|
3
|
-
import type { DeepPartial, Prettify } from '../../../util/types';
|
|
4
|
-
import type { TopBarItemProps } from './types';
|
|
5
|
-
export type TopBarItemTheme = Prettify<ComponentTopBar['item']>;
|
|
6
|
-
export type PartialTopBarItemTheme = Prettify<DeepPartial<TopBarItemTheme>>;
|
|
7
|
-
export declare const defaultTopBarItemTheme: TopBarItemTheme;
|
|
8
|
-
export declare const topBarItemStyles: (theme: TopBarItemTheme, alignment: 'left' | 'right', { size }: Required<Pick<TopBarItemProps, 'size'>>, _menuOpen?: boolean) => SerializedStyles;
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import type { DefaultProps } from '../../../util/types';
|
|
3
|
-
import type { TopBarItemTheme } from './styles';
|
|
4
|
-
export interface TopBarItemProps extends DefaultProps<TopBarItemTheme>, React.HTMLAttributes<HTMLDivElement> {
|
|
5
|
-
children?: React.ReactNode;
|
|
6
|
-
/**
|
|
7
|
-
* Determines the alignment of the item within the top bar
|
|
8
|
-
*/
|
|
9
|
-
alignment?: 'left' | 'right';
|
|
10
|
-
/**
|
|
11
|
-
* Determines how much width the item takes up in the top bar, defaults to `'md'`
|
|
12
|
-
*/
|
|
13
|
-
size?: 'sm' | 'md' | 'lg';
|
|
14
|
-
/**
|
|
15
|
-
* This is an internal prop used to determine if the item is within an open menu, which affects the styling of the item.
|
|
16
|
-
* It is not intended to be set by consumers of the component.
|
|
17
|
-
*/
|
|
18
|
-
_menuOpen?: boolean;
|
|
19
|
-
}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import type { TopBarNavigationProps } from './types';
|
|
2
|
-
export declare function TopBarNavigation({ text, size, isSelected, icon, menuChildren, href, onPress, isDisabled, alignment, theme, cssOverrides, className, _menuOpen, ...props }: TopBarNavigationProps): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
export declare const componentName = "TopBarNavigation";
|
|
2
|
-
export declare const componentTsx = "import { TopBarNavigation } from '@guardian/stand/TopBar';\n\nexport const Component = () => (\n\t<TopBarNavigation text=\"Recipe\" icon=\"yakitori\" />\n);\n";
|
|
3
|
-
export declare const componentCss = "\n/* import the topbarnavigation styles */\n@import '@guardian/stand/component/topBar.css';\n\n.stand-top-bar-navigation {\n\tdisplay: var(--component-top-bar-navigation-shared-display);\n\talign-items: var(--component-top-bar-navigation-shared-align-items);\n\tcolor: var(--component-top-bar-navigation-unselected-color);\n\theight: var(--component-top-bar-navigation-shared-height);\n\tpadding-top: var(--component-top-bar-navigation-shared-padding-top);\n\tpadding-right: var(--component-top-bar-navigation-shared-padding-right);\n\tpadding-bottom: var(--component-top-bar-navigation-shared-padding-bottom);\n\tpadding-left: var(--component-top-bar-navigation-shared-padding-left);\n\ttext-decoration: var(--component-top-bar-navigation-shared-text-decoration);\n\n\tborder-top: var(--component-top-bar-navigation-shared-border-top);\n\tborder-bottom: var(--component-top-bar-navigation-unselected-border-bottom);\n\n\t&[data-hovered],\n\t&:hover {\n\t\tborder-bottom: var(--component-top-bar-navigation-selected-border-bottom);\n\t\tcursor: var(--component-top-bar-navigation-shared-cursor);\n\t}\n\n\t&[data-focus-visible],\n\t&:focus-visible {\n\t\toutline: var(--component-top-bar-navigation-shared-focus-visible-outline);\n\t\tborder-bottom: var(--component-top-bar-navigation-selected-border-bottom);\n\t\toutline-offset: var(--component-top-bar-navigation-shared-focus-visible-outline-offset);\n\t}\n\n\t&[data-disabled] {\n\t\tcursor: var(--component-top-bar-navigation-shared-disabled-cursor);\n\t\tcolor: var(--component-top-bar-navigation-shared-disabled-color);\n\t}\n\n\tfont: var(--component-top-bar-navigation-md-typography-font);\n\tletter-spacing: var(--component-top-bar-navigation-md-typography-letter-spacing);\n\tfont-variation-settings: 'wdth'\n\t\tvar(--component-top-bar-navigation-md-typography-font-width);\n}\n\n.stand-navigation-text {\n\tmargin-left: var(--component-top-bar-navigation-text-margin-left);\n}\n\n.stand-expand-more {\n\tmargin-top: var(--component-top-bar-navigation-expand-more-padding-top);\n\tmargin-left: var(--component-top-bar-navigation-expand-more-padding-left);\n}\n";
|
|
4
|
-
export declare const componentHtml = "<div class=\"container\">\n\t<span class=\"stand-top-bar-navigation\">\n\t\t<span class=\"material-symbols \" >file_upload</span>\n\t\t<span class=\"stand-navigation-text\">Navigation</span>\n\t\t<div class=\"stand-expand-more\">\n\t\t\t<span class=\"material-symbols\" >keyboard_arrow_down</span>\n\t\t</div>\n\t</span>\n</div>\n";
|
|
5
|
-
export declare const componentJs = "\nimport { componentTopBar } from \"@guardian/stand\";\n\nconst style = `\n\tdisplay: ${componentTopBar.Navigation.shared.display};\n\talign-items: ${componentTopBar.Navigation.shared.alignItems};\n\tcolor: ${componentTopBar.Navigation.unselected.color};\n\theight: ${componentTopBar.Navigation.shared.height};\n\tpadding-top: ${componentTopBar.Navigation.shared.padding.top};\n\tpadding-right: ${componentTopBar.Navigation.shared.padding.right};\n\tpadding-bottom: ${componentTopBar.Navigation.shared.padding.bottom};\n\tpadding-left: ${componentTopBar.Navigation.shared.padding.left};\n\ttext-decoration: ${componentTopBar.Navigation.shared.textDecoration};\n\n\tfont: ${componentTopBar.Navigation.md.typography.font};\n\tletter-spacing: ${componentTopBar.Navigation.md.typography.letterSpacing};\n\tfont-variation-settings: 'wdth'\n\t\t${componentTopBar.Navigation.md.typography.fontWidth};\n\n\t&:hover {\n\t\tborder-bottom: ${componentTopBar.Navigation.selected.borderBottom};\n\t\tcursor: ${componentTopBar.Navigation.shared.cursor};\n\t}\n\n\t&:focus-visible {\n\t\toutline: ${componentTopBar.Navigation.shared.focusVisible.outline};\n\t\tborder-bottom: ${componentTopBar.Navigation.selected.borderBottom};\n\t\toutline-offset: ${componentTopBar.Navigation.shared.focusVisible.outlineOffset};\n\t}\n\n\t&[data-disabled] {\n\t\tcursor: ${componentTopBar.Navigation.shared.disabled.cursor};\n\t\tcolor: ${componentTopBar.Navigation.shared.disabled.color};\n\t}\n`;\n\nconst textStyle = `margin-left: ${componentTopBar.Navigation.text.margin.left};\n`;\n\nconst expandMoreStyle = `\n\tmargin-top: ${componentTopBar.Navigation.menuIndicator.margin.top};\n\tmargin-left: ${componentTopBar.Navigation.menuIndicator.margin.left};\n`;\n\ndocument.getElementById(\"app\").innerHTML = `\n\t<span style=\"${style}\">\n\t\t<span class=\"material-symbols\">file_upload</span>\n\t\t<span style=\"${textStyle}\">Navigation</span>\n\t\t<div style=\"${expandMoreStyle}\">\n\t\t\t<span class=\"material-symbols\">keyboard_arrow_down</span>\n\t\t</div>\n\t</span>\n`;\n";
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import type { SerializedStyles } from '@emotion/react';
|
|
2
|
-
import type { ComponentTopBar } from '../../../styleD/build/typescript/component/topBar';
|
|
3
|
-
import type { DeepPartial, Prettify } from '../../../util/types';
|
|
4
|
-
import type { TopBarNavigationProps } from './types';
|
|
5
|
-
export type TopBarNavigationTheme = Prettify<ComponentTopBar['navigation']>;
|
|
6
|
-
export type PartialTopBarNavigationTheme = Prettify<DeepPartial<TopBarNavigationTheme>>;
|
|
7
|
-
export declare const defaultTopBarNavigationTheme: TopBarNavigationTheme;
|
|
8
|
-
export declare const topBarNavigationStyles: (theme: TopBarNavigationTheme, selected: boolean, _menuOpen?: boolean) => SerializedStyles;
|
|
9
|
-
export declare const topBarNavigationDividerStyles: (theme: TopBarNavigationTheme, { alignment }: Required<Pick<TopBarNavigationProps, 'alignment'>>, _menuOpen?: boolean) => SerializedStyles;
|
|
10
|
-
export declare const topBarNavigationTextStyles: (theme: TopBarNavigationTheme) => SerializedStyles;
|
|
11
|
-
export declare const topBarNavigationTypographyStyles: (theme: TopBarNavigationTheme, size: 'md' | 'sm') => SerializedStyles;
|
|
12
|
-
export declare const topBarMenuIndicatorStyles: (theme: TopBarNavigationTheme) => SerializedStyles;
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
import type { ReactNode } from 'react';
|
|
2
|
-
import type { PressEvent } from 'react-aria-components';
|
|
3
|
-
import type { DefaultProps } from '../../../util/types';
|
|
4
|
-
import type { IconProps } from '../../Icon/types';
|
|
5
|
-
import type { TopBarNavigationTheme } from './styles';
|
|
6
|
-
export interface TopBarNavigationProps extends DefaultProps<TopBarNavigationTheme> {
|
|
7
|
-
/**
|
|
8
|
-
* Text to display in navigation
|
|
9
|
-
*/
|
|
10
|
-
text: string;
|
|
11
|
-
/**
|
|
12
|
-
* Size of the text and icons
|
|
13
|
-
*/
|
|
14
|
-
size?: 'md' | 'sm';
|
|
15
|
-
/**
|
|
16
|
-
* Whether the component is the currently selected navigation
|
|
17
|
-
*/
|
|
18
|
-
isSelected?: boolean;
|
|
19
|
-
/**
|
|
20
|
-
* Icon to display in navigation
|
|
21
|
-
*/
|
|
22
|
-
icon?: IconProps['symbol'] | Exclude<IconProps['children'], string>;
|
|
23
|
-
/**
|
|
24
|
-
* Menu sections and items to render in the dropdown menu - only children of type MenuSection and MenuItem will be rendered.
|
|
25
|
-
* `href` and `onPress` will be ignored if this prop is supplied.
|
|
26
|
-
*/
|
|
27
|
-
menuChildren?: ReactNode;
|
|
28
|
-
/**
|
|
29
|
-
* Link to navigate to
|
|
30
|
-
*/
|
|
31
|
-
href?: string;
|
|
32
|
-
/**
|
|
33
|
-
* Handler for navigation on press
|
|
34
|
-
*/
|
|
35
|
-
onPress?: (e: PressEvent) => void;
|
|
36
|
-
/**
|
|
37
|
-
* Whether the navigation is disabled
|
|
38
|
-
*/
|
|
39
|
-
isDisabled?: boolean;
|
|
40
|
-
/**
|
|
41
|
-
* Determines the alignment of the item within the top bar
|
|
42
|
-
*/
|
|
43
|
-
alignment?: 'left' | 'right';
|
|
44
|
-
/**
|
|
45
|
-
* This is an internal prop used to determine if the item is within an open menu, which affects the styling of the item.
|
|
46
|
-
* It is not intended to be set by consumers of the component.
|
|
47
|
-
*/
|
|
48
|
-
_menuOpen?: boolean;
|
|
49
|
-
}
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
export declare const componentName = "TopBarToolName";
|
|
2
|
-
export declare const componentTsx = "import { TopBarToolName } from '@guardian/stand/TopBar';\n\nexport const Component = () => {\n\treturn (\n\t\t<>\n\t\t\t<TopBarToolName\n\t\t\t\tname=\"Songwriter\"\n\t\t\t\tfavicon={{ type: 'letter', letter: 'S' }}\n\t\t\t\tsubsection=\"Article\"\n\t\t\t\tsubsectionIcon=\"menu\"\n\t\t\t/>\n\t\t</>\n\t);\n};\n";
|
|
3
|
-
export declare const componentCss = "@import \"@guardian/stand/component/topBar.css\";\n\t/* import the favicon styles */\n\t@import '@guardian/stand/component/favicon.css';\n\n /* example setup of tool name */\n .stand-topbar-toolname {\n\t\tdisplay: var(--component-top-bar-tool-name-display);\n\t\talign-items: var(--component-top-bar-tool-name-align-items);\n\t\tgap: var(--component-top-bar-tool-name-gap);\n\t\tfont: var(--component-top-bar-tool-name-typography-font);\n\t\tletter-spacing: var(--component-top-bar-tool-name-typography-letter-spacing);\n\t\tfont-variation-settings: \"wdth\" var(--component-top-bar-tool-name-typography-font-width);\n }\n\n\t.stand-topbar-toolname-divider {\n\t\tborder-right: var(--component-top-bar-tool-name-divider-border);\n\t\theight: var(--component-top-bar-tool-name-divider-height);\n\t}\n\n\t.stand-topbar-toolname-subsection {\n\t\tdisplay: var(--component-top-bar-tool-name-display);\n\t\talign-items: var(--component-top-bar-tool-name-align-items);\n\t\tgap: var(--component-top-bar-tool-name-subsection-gap);\n\t\tfont: var(--component-top-bar-tool-name-subsection-typography-font);\n\t\tletter-spacing: var(--component-top-bar-tool-name-subsection-typography-letter-spacing);\n\t\tfont-variation-settings: \"wdth\" var(--component-top-bar-tool-name-subsection-typography-font-width)\n\t}\n\n\t.stand-favicon {\n\t\tbackground-color: var(--component-favicon-color-background);\n\t\tdisplay: var(--component-favicon-display);\n\t\talign-items: var(--component-favicon-align-items);\n\t\tjustify-content: var(--component-favicon-justify-content);\n\t\twidth: var(--component-favicon-size);\n\t\theight: var(--component-favicon-size);\n\t\tuser-select: var(--component-favicon-user-select);\n\t\tcolor: var(--component-favicon-color-text);\n\t\tfont: var(--component-favicon-typography-font);\n\t\tletter-spacing: var(--component-favicon-typography-letter-spacing);\n\t\tfont-variation-settings: \"wdth\" var(--component-favicon-typography-font-width);\n\t}\n\n";
|
|
4
|
-
export declare const componentHtml = "<div class=\"container\">\n\t<div class=\"stand-topbar-toolname\">\n\t\t<div class=\"stand-favicon\">S</div>\n\t\t<div>Songwriter</div>\n\t\t<div class=\"stand-topbar-toolname-divider\"> </div>\n\t\t <div class=\"stand-topbar-toolname-subsection\">\n\t\t\t <div><svg xmlns=\"http://www.w3.org/2000/svg\" height=\"24px\" viewBox=\"0 -960 960 960\" width=\"24px\" fill=\"#1f1f1f\"><path d=\"M240-200h120v-240h240v240h120v-360L480-740 240-560v360Zm-80 80v-480l320-240 320 240v480H520v-240h-80v240H160Zm320-350Z\"></path></svg></div>\n\t\t\t <div>Article</div>\n\t\t</div>\n\t</div>\n</div>";
|
|
5
|
-
export declare const componentJs = "\n\t// for ts/js\n\timport { componentFavicon, componentTopBar, baseColors } from '@guardian/stand';\n\n\tconst style = `\n\t\tdisplay: ${componentTopBar.ToolName.display};\n\t\talign-items: ${componentTopBar.ToolName.alignItems};\n\t\tgap: ${componentTopBar.ToolName.gap};\n\t\tfont: ${componentTopBar.ToolName.typography.font};\n\t\tletter-spacing: ${componentTopBar.ToolName.typography.letterSpacing};\n\t\tfont-variation-settings: \"wdth\" ${componentTopBar.ToolName.typography.fontWidth};\n\t`;\n\n\tconst dividerStyle = `\n\t\tborder-right: ${componentTopBar.ToolName.divider.border};\n\t\theight: ${componentTopBar.ToolName.divider.height};\n\t`;\n\n\tconst subsectionStyle = `\n\t\tdisplay: ${componentTopBar.ToolName.display};\n\t\talign-items: ${componentTopBar.ToolName.alignItems};\n\t\tgap: ${componentTopBar.ToolName.subsection.gap};\n\t\tfont: ${componentTopBar.ToolName.subsection.typography.font};\n\t\tletter-spacing: ${componentTopBar.ToolName.subsection.typography.letterSpacing};\n\t\tfont-variation-settings: \"wdth\" ${componentTopBar.ToolName.subsection.typography.fontWidth};\n\t`;\n\n\tconst faviconStyle = `\n\t\tbackground-color: ${componentFavicon.color.background};\n\t\tdisplay: ${componentFavicon.display};\n\t\talign-items: ${componentFavicon.alignItems};\n\t\tjustify-content: ${componentFavicon.justifyContent};\n\t\twidth: ${componentFavicon.size};\n\t\theight: ${componentFavicon.size};\n\t\tuser-select: ${componentFavicon.userSelect};\n\t\tcolor: ${componentFavicon.color.text};\n\t\tfont: ${componentFavicon.typography.font};\n\t\tletter-spacing: ${componentFavicon.typography.letterSpacing};\n\t\tfont-variation-settings: \"wdth\" ${componentFavicon.typography.fontWidth};\n\t`;\n\n\t// e.g. adding to DOM using vanilla JS styles\n\tdocument.getElementById(\"app\").innerHTML = `\n\n\t<div class=\"container\">\n\t\t<div style=\"${style}\">\n\t\t\t<div style=\"${faviconStyle}>S</div>\n\t\t\t<div>Songwriter</div>\n\t\t\t<div style=\"${dividerStyle}\"> </div>\n\t\t\t<div style=\"${subsectionStyle}\">\n\t\t\t\t<div><svg xmlns=\"http://www.w3.org/2000/svg\" height=\"24px\" viewBox=\"0 -960 960 960\" width=\"24px\" fill=\"#1f1f1f\"><path d=\"M240-200h120v-240h240v240h120v-360L480-740 240-560v360Zm-80 80v-480l320-240 320 240v480H520v-240h-80v240H160Zm320-350Z\"></path></svg></div>\n\t\t\t\t<div>Article</div>\n\t\t\t</div>\n\t\t</div>\n\t</div>\n`;\n";
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import type { SerializedStyles } from '@emotion/react';
|
|
2
|
-
import { type ComponentTopBar } from '../../../styleD/build/typescript/component/topBar';
|
|
3
|
-
import type { DeepPartial, Prettify } from '../../../util/types';
|
|
4
|
-
import type { TopBarToolNameProps } from './types';
|
|
5
|
-
export type TopBarToolNameTheme = Prettify<ComponentTopBar['toolName']>;
|
|
6
|
-
export type PartialTopBarToolNameTheme = Prettify<DeepPartial<TopBarToolNameTheme>>;
|
|
7
|
-
export declare const defaultToolNameTheme: TopBarToolNameTheme;
|
|
8
|
-
export declare const toolNameHoverLinkStyles: (theme: TopBarToolNameTheme, { collapseBelow }: Required<Pick<TopBarToolNameProps, 'collapseBelow'>>) => SerializedStyles;
|
|
9
|
-
export declare const toolNameHoverLinkTextExpandedStyles: ({ collapseBelow, }: Required<Pick<TopBarToolNameProps, 'collapseBelow'>>) => SerializedStyles;
|
|
10
|
-
export declare const toolNameHoverLinkTextCollapsedStyles: ({ collapseBelow, }: Required<Pick<TopBarToolNameProps, 'collapseBelow'>>) => SerializedStyles;
|
|
11
|
-
export declare const toolNameLinkStyles: (theme: TopBarToolNameTheme) => SerializedStyles;
|
|
12
|
-
export declare const toolNameStyles: (theme: TopBarToolNameTheme) => SerializedStyles;
|
|
13
|
-
export declare const toolNameTypography: (theme: TopBarToolNameTheme, { collapseBelow }: Required<Pick<TopBarToolNameProps, 'collapseBelow'>>) => SerializedStyles;
|
|
14
|
-
export declare const dividerStyles: (theme: TopBarToolNameTheme, { collapseBelow }: Required<Pick<TopBarToolNameProps, 'collapseBelow'>>) => SerializedStyles;
|
|
15
|
-
export declare const subsectionStyles: (theme: TopBarToolNameTheme, { collapseBelow }: Required<Pick<TopBarToolNameProps, 'collapseBelow'>>) => SerializedStyles;
|
|
16
|
-
export declare const subsectionTypography: (theme: TopBarToolNameTheme) => SerializedStyles;
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
import type { LinkProps as RACLinkProps } from 'react-aria-components';
|
|
2
|
-
import type { Breakpoint } from '../../../styleD/utils/semantic/mq';
|
|
3
|
-
import type { DefaultProps } from '../../../util/types';
|
|
4
|
-
import type { FaviconProps } from '../../Favicon/types';
|
|
5
|
-
import type { IconProps } from '../../Icon/types';
|
|
6
|
-
import type { TopBarToolNameTheme } from './styles';
|
|
7
|
-
export interface TopBarToolNameProps extends DefaultProps<TopBarToolNameTheme, RACLinkProps['className']>, Omit<RACLinkProps, 'children'> {
|
|
8
|
-
/**
|
|
9
|
-
* Name of the tool to display
|
|
10
|
-
*/
|
|
11
|
-
name: string;
|
|
12
|
-
/**
|
|
13
|
-
* Icon to display
|
|
14
|
-
*/
|
|
15
|
-
favicon: FaviconProps;
|
|
16
|
-
/**
|
|
17
|
-
* The breakpoint at which the tool name section collapses to only show the favicon. Can be set to any valid breakpoint (e.g. 'sm', 'md', 'lg', etc.).
|
|
18
|
-
*/
|
|
19
|
-
collapseBelow?: Breakpoint;
|
|
20
|
-
/**
|
|
21
|
-
* The subsection or type of content that is represented on the page (optional)
|
|
22
|
-
* */
|
|
23
|
-
subsection?: string;
|
|
24
|
-
/**
|
|
25
|
-
* Icon that represents the content type (optional)
|
|
26
|
-
* */
|
|
27
|
-
subsectionIcon?: IconProps['symbol'] | Exclude<IconProps['children'], string>;
|
|
28
|
-
/**
|
|
29
|
-
* Text to display on hover, labels the link
|
|
30
|
-
* e.g. 'Back to dashboard'
|
|
31
|
-
* If not provided, `collapsedHoverText` will be used for both expanded and collapsed states
|
|
32
|
-
*/
|
|
33
|
-
hoverText?: string;
|
|
34
|
-
/**
|
|
35
|
-
* Shorter text to display on hover when collapsed, labels the link
|
|
36
|
-
* e.g. 'Back' or 'Home'
|
|
37
|
-
* If not provided, `hoverText` will be used for both expanded and collapsed states
|
|
38
|
-
*/
|
|
39
|
-
collapsedHoverText?: string;
|
|
40
|
-
}
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
export declare const componentName = "TopBar";
|
|
2
|
-
export declare const componentTsx = "import { TopBar, TopBarToolName } from '@guardian/stand/TopBar';\n\nexport const Component = () => (\n\t<TopBar><TopBarToolName name=\"Composer\" favicon={{ letter: \"C\" }} /></TopBar>\n);\n";
|
|
3
|
-
export declare const componentCss = "\n/* import the styles */\n@import '@guardian/stand/component/topBar.css';\n@import '@guardian/stand/component/favicon.css';\n\n.stand-top-bar {\n\tdisplay: var(--component-top-bar-display);\n\tjustify-content: var(--component-top-bar-justify-content);\n\theight: var(--component-top-bar-height);\n\tborder: var(--component-top-bar-border);\n}\n\n.stand-top-bar-lhs {\n\tdisplay: var(--component-top-bar-display);\n}\n\n.stand-top-bar-tool-name {\n\tdisplay: var(--component-top-bar-tool-name-display);\n\talign-items: var(--component-top-bar-tool-name-align-items);\n\tgap: var(--component-top-bar-tool-name-gap);\n\tfont: var(--component-top-bar-tool-name-typography-font);\n\tletter-spacing: var(--component-top-bar-tool-name-typography-letter-spacing);\n\tfont-variation-settings: \"wdth\" var(--component-top-bar-tool-name-typography-font-width);\n}\n\n.stand-favicon {\n\t\tbackground-color: var(--component-favicon-color-background);\n\t\tdisplay: var(--component-favicon-display);\n\t\talign-items: var(--component-favicon-align-items);\n\t\tjustify-content: var(--component-favicon-justify-content);\n\t\twidth: var(--component-favicon-size);\n\t\theight: var(--component-favicon-size);\n\t\tuser-select: var(--component-favicon-user-select);\n\t\tcolor: var(--component-favicon-color-text);\n\t\tfont: var(--component-favicon-typography-font);\n\t\tletter-spacing: var(--component-favicon-typography-letter-spacing);\n\t\tfont-variation-settings: \"wdth\" var(--component-favicon-typography-font-width);\n}\n\n.stand-top-bar-item {\n\tdisplay: var(--component-top-bar-item-display);\n\talign-items: var(--component-top-bar-item-align-items);\n\theight: var(--component-top-bar-item-height);\n\tpadding: var(--component-top-bar-item-sm-padding-top) var(--component-top-bar-item-sm-padding-right) var(--component-top-bar-item-sm-padding-bottom) var(--component-top-bar-item-sm-padding-left);\n\tborder-right: var(--component-top-bar-item-border);\n}\n\n";
|
|
4
|
-
export declare const componentHtml = "\n\t<div class=\"stand-top-bar\">\n\t\t<div class=\"stand-top-bar-lhs\">\n\t\t\t<div class=\"stand-top-bar-tool-name stand-top-bar-item\">\n\t\t\t\t<div class=\"stand-favicon\">C</div>\n\t\t\t\t<div>Composer</div>\n\t\t\t</div>\n\t\t\t<div class=\"stand-top-bar-item\">Item 1</div>\n\t\t</div>\n\t</div>\n";
|
|
5
|
-
export declare const componentJs = "\nimport { componentTopBar, componentFavicon } from \"@guardian/stand\";\n\nconst style = `\n\tdisplay: ${componentTopBar.display};\n\tjustify-content: ${componentTopBar.justifyContent};\n\theight: ${componentTopBar.height};\n\tborder: ${componentTopBar.border};\n`;\n\nconst lhsStyle = `\n\tdisplay: ${componentTopBar.display};\n`;\n\nconst toolNameStyle = `display: ${componentTopBar.ToolName.display};\n\talign-items: ${componentTopBar.ToolName.alignItems};\n\tgap: ${componentTopBar.ToolName.gap};\n\tfont: ${componentTopBar.ToolName.typography.font};\n\tletter-spacing: ${componentTopBar.ToolName.typography.letterSpacing};\n\tfont-variation-settings: \"wdth\" ${componentTopBar.ToolName.typography.fontWidth};\n`;\n\nconst faviconStyle = `\n\tbackground-color: ${componentFavicon.color.background};\n\tdisplay: ${componentFavicon.display};\n\talign-items: ${componentFavicon.alignItems};\n\tjustify-content: ${componentFavicon.justifyContent};\n\twidth: ${componentFavicon.size};\n\theight: ${componentFavicon.size};\n\tuser-select: ${componentFavicon.userSelect};\n\tcolor: ${componentFavicon.color.text};\n\tfont: ${componentFavicon.typography.font};\n\tletter-spacing: ${componentFavicon.typography.letterSpacing};\n\tfont-variation-settings: \"wdth\" ${componentFavicon.typography.fontWidth};\n`;\n\nconst topBarItemStyle = `display: ${componentTopBar.Item.display};\n\talign-items: ${componentTopBar.Item.alignItems};\n\theight: ${componentTopBar.Item.height};\n\tpadding: ${componentTopBar.Item.sm.padding.top} ${componentTopBar.Item.sm.padding.right} ${componentTopBar.Item.sm.padding.bottom} ${componentTopBar.Item.sm.padding.left};\n\tborder-right: ${componentTopBar.Item.border};\n`;\n\ndocument.getElementById(\"app\").innerHTML = `\n\t<div style=\"${style}\">\n\t\t<div style=\"${lhsStyle}\">\n\t\t\t<div style=\"${topBarItemStyle}\">\n\t\t\t\t<div style=\"${toolNameStyle}\">\n\t\t\t\t\t<div style=\"${faviconStyle}\">C</div>\n\t\t\t\t\t<div>Composer</div>\n\t\t\t\t</div>\n\t\t\t</div>\n\n\t\t\t<div style=\"${topBarItemStyle}\">Item 1</div>\n\t\t</div>\n\t</div>\n`;\n";
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import type { SerializedStyles } from '@emotion/react';
|
|
2
|
-
import type { ComponentTopBar } from '../../styleD/build/typescript/component/topBar';
|
|
3
|
-
import { type Breakpoint } from '../../styleD/utils/semantic/mq';
|
|
4
|
-
import type { DeepPartial, Prettify } from '../../util/types';
|
|
5
|
-
export type TopBarTheme = Prettify<ComponentTopBar>;
|
|
6
|
-
export type PartialTopBarTheme = Prettify<DeepPartial<TopBarTheme>>;
|
|
7
|
-
export declare const defaultTopBarTheme: TopBarTheme;
|
|
8
|
-
export declare const topBarStyles: (theme: TopBarTheme) => SerializedStyles;
|
|
9
|
-
export declare const topBarContainerStyles: (theme: TopBarTheme, { collapseBelow, showUntil, }?: {
|
|
10
|
-
collapseBelow?: "sm" | "md" | "lg" | undefined;
|
|
11
|
-
showUntil?: "sm" | "md" | "lg" | undefined;
|
|
12
|
-
}) => SerializedStyles;
|
|
13
|
-
export declare const topBarSpacerStyles: (theme: TopBarTheme) => SerializedStyles;
|
|
14
|
-
export declare const topBarCollapsedNavMenuButtonStyles: (theme: TopBarTheme, menuOpen?: boolean) => SerializedStyles;
|
|
15
|
-
export declare const topBarCollapsedNavMenuPopoverStyles: (theme: TopBarTheme) => SerializedStyles;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import type { Breakpoint } from '../../styleD/utils/semantic/mq';
|
|
2
|
-
import type { DefaultPropsWithChildren } from '../../util/types';
|
|
3
|
-
import type { TopBarTheme } from './styles';
|
|
4
|
-
export type TopBarProps = DefaultPropsWithChildren<TopBarTheme> & {
|
|
5
|
-
/**
|
|
6
|
-
* Will collapse the designated section of the top bar below the specified breakpoint. For example, if `toolName` is set to `lg`, the section will collapse at the `md` breakpoint and below (i.e. on smaller screens).
|
|
7
|
-
*/
|
|
8
|
-
collapseBelow?: {
|
|
9
|
-
toolName?: Breakpoint;
|
|
10
|
-
containerLeft?: Breakpoint;
|
|
11
|
-
};
|
|
12
|
-
};
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import type { TypographyProps } from './types';
|
|
3
|
-
export declare const Typography: ({ element, variant, children, cssOverrides, theme, ...props }: TypographyProps) => import("react").DetailedReactHTMLElement<{
|
|
4
|
-
className?: string | undefined;
|
|
5
|
-
css: (import("@emotion/react").SerializedStyles | import("@emotion/react").SerializedStyles[] | undefined)[];
|
|
6
|
-
}, HTMLElement>;
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
export declare const componentName = "Typography";
|
|
2
|
-
export declare const componentTsx = "import { Typography } from '@guardian/stand/Typography';\n\nexport const Component = () => (\n\t<>\n\t\t{/* Paragraph element with default body-md preset and text children */}\n\t\t<Typography element=\"h2\" variant=\"heading-compact-xl\">Wow! A heading!</Typography>\n\n\t\t{/* Paragraph element with default body-md preset and text children */}\n\t\t<Typography>Body text here</Typography>\n\n\t\t{/* Div with an italic text wrapped inside */}\n\t\t<Typography element=\"div\" variant=\"body-md\">Some text, with <Typography element=\"i\" variant=\"body-italic-md\">even more text</Typography></Typography>\n\t</>\n);\n\n";
|
|
3
|
-
export declare const componentCss = "@import '@guardian/stand/component/typography.css';\n\t@import '@guardian/stand/semantic/typography.css';\n\n /* shared typography styles for all variants */\n .stand-typography {\n \tcolor: var(--component-typography-color);\n }\n\n /* example setup of heading-compact-xl */\n .stand-typography-heading-compact-xl {\n\t\tfont: var(--semantic-typography-heading-compact-xl-font);\n\t\tletter-spacing: var(--semantic-typography-heading-compact-xl-letter-spacing);\n\t\tfont-variation-settings: \"wdth\" var(--semantic-typography-heading-compact-xl-font-width);\n\t}\n\n /* example setup of standard body text */\n .stand-typography-body-md {\n\t\tfont: var(--semantic-typography-body-md-font);\n\t\tletter-spacing: var(--semantic-typography-body-md-letter-spacing);\n\t\tfont-variation-settings: \"wdth\" var(--semantic-typography-body-md-font-width);\n\t}\n\n\t/* example setup of italic body text */\n\t.stand-typography-body-italic-md {\n\t\tfont: var(--semantic-typography-body-italic-md-font);\n\t\tletter-spacing: var(--semantic-typography-body-italic-md-letter-spacing);\n\t\tfont-variation-settings: \"wdth\" var(--semantic-typography-body-italic-md-font-width);\n\t}\n";
|
|
4
|
-
export declare const componentHtml = "<div class=\"container flow-column\">\n <h2 class=\"stand-typography stand-typography-heading-compact-xl\">Wow! A heading!</h2>\n\n\t<p class=\"stand-typography stand-typography-body-md\">Body text here</p>\n\n\t<div class=\"stand-typography stand-typography-body-md\">Some text, with <i class=\"stand-typography stand-typography-body-italic-md\">even more text</i></div>\n</div>\n";
|
|
5
|
-
export declare const componentJs = "\t// for ts/js\n\t\timport { componentTypography, semanticTypography } from \"@guardian/stand\";\n\n \t// example of creating a stylesheet in js\n \tconst sheet = new CSSStyleSheet();\n\n \t// apply the rules to the sheet\n \tsheet.replaceSync(`\n\t\t\t.js-stand-typography {\n\t\t\t\tcolor: ${componentTypography.color};\n\t\t\t}\n\t\t\t.js-stand-typography-heading-compact-xl {\n\t\t\t\tfont: ${semanticTypography.headingCompactXl.font};\n\t\t\t\tletter-spacing: ${semanticTypography.headingCompactXl.letterSpacing};\n\t\t\t\tfont-variation-settings: \"wdth\" ${semanticTypography.headingCompactXl.fontWidth};\n\t\t\t}\n\t\t\t.js-stand-typography-body-md {\n\t\t\t\tfont: ${semanticTypography.bodyMd.font};\n\t\t\t\tletter-spacing: ${semanticTypography.bodyMd.letterSpacing};\n\t\t\t\tfont-variation-settings: \"wdth\" ${semanticTypography.bodyMd.fontWidth};\n\t\t\t}\n\t\t\t.js-stand-typography-body-italic-md {\n\t\t\t\tfont: ${semanticTypography.bodyItalicMd.font};\n\t\t\t\tletter-spacing: ${semanticTypography.bodyItalicMd.letterSpacing};\n\t\t\t\tfont-variation-settings: \"wdth\" ${semanticTypography.bodyItalicMd.fontWidth};\n\t\t\t}\n \t`);\n\n // update the document with the sheet\n document.adoptedStyleSheets.push(sheet);\n\n // modify the dom with the typography components using the generated stylesheet\n document.getElementById(\"app\").innerHTML = `<div class=\"container flow-column\">\n\t\t<h2 class=\"js-stand-typography js-stand-typography-heading-compact-xl\">Wow! A heading!</h2>\n\t\t<p class=\"js-stand-typography js-stand-typography-body-md\">Body text here</p>\n\t\t<div class=\"js-stand-typography js-stand-typography-body-md\">Some text, with <i class=\"js-stand-typography js-stand-typography-body-italic-md\">even more text</i></div>\n </div>`;\n\n";
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import type { SerializedStyles } from '@emotion/react';
|
|
2
|
-
import { type ComponentTypography } from '../../styleD/build/typescript/component/typography';
|
|
3
|
-
import type { DeepPartial, Prettify } from '../../util/types';
|
|
4
|
-
import type { TypographyProps } from './types';
|
|
5
|
-
export type TypographyTheme = Prettify<ComponentTypography>;
|
|
6
|
-
export type PartialTypographyTheme = Prettify<DeepPartial<TypographyTheme>>;
|
|
7
|
-
export declare const defaultTypographyTheme: TypographyTheme;
|
|
8
|
-
export declare const typographyStyles: (theme: TypographyTheme, { variant }: Required<Pick<TypographyProps, 'variant'>>) => SerializedStyles;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import type { SemanticTypography } from '../../styleD/build/typescript/semantic/typography';
|
|
2
|
-
import type { DefaultPropsWithChildren } from '../../util/types';
|
|
3
|
-
import type { TypographyTheme } from './styles';
|
|
4
|
-
export type TypographyVariant = keyof SemanticTypography;
|
|
5
|
-
export interface TypographyProps extends DefaultPropsWithChildren<TypographyTheme> {
|
|
6
|
-
/**
|
|
7
|
-
* HTML element to render with font applied to
|
|
8
|
-
*/
|
|
9
|
-
element?: 'div' | 'span' | 'p' | 'b' | 'i' | 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6';
|
|
10
|
-
/**
|
|
11
|
-
* Font variant to apply as a CSS style to the element
|
|
12
|
-
*/
|
|
13
|
-
variant?: TypographyVariant;
|
|
14
|
-
}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import type { ComponentUserMenu } from '../../styleD/build/typescript/component/userMenu';
|
|
2
|
-
import type { DeepPartial } from '../../util/types';
|
|
3
|
-
import type { Option } from './model';
|
|
4
|
-
interface PreferenceRadioGroupProps {
|
|
5
|
-
theme?: DeepPartial<ComponentUserMenu>;
|
|
6
|
-
options: Option[];
|
|
7
|
-
name: string;
|
|
8
|
-
currentValue?: string;
|
|
9
|
-
changeValue: {
|
|
10
|
-
(value: string): void;
|
|
11
|
-
};
|
|
12
|
-
format?: 'stack' | 'rows';
|
|
13
|
-
}
|
|
14
|
-
export declare function PreferenceRadioGroup({ name, options, currentValue, changeValue, theme, format, }: PreferenceRadioGroupProps): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
15
|
-
export {};
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import type { ReactNode } from 'react';
|
|
2
|
-
export declare const TitleText: ({ headingLevel, children, className, }: {
|
|
3
|
-
headingLevel?: 1 | 2 | 3 | 4 | 5 | 6 | undefined;
|
|
4
|
-
children: ReactNode;
|
|
5
|
-
className?: string | undefined;
|
|
6
|
-
}) => import("@emotion/react/jsx-runtime").JSX.Element;
|