@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,37 +1,25 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
...props
|
|
13
|
-
}) {
|
|
14
|
-
const mergedTheme = mergeDeep.mergeDeep(styles.defaultGridTheme, theme);
|
|
15
|
-
return /* @__PURE__ */ jsxRuntime.jsx(Component, { css: [styles.gridStyles(mergedTheme), cssOverrides], ...props, children });
|
|
1
|
+
require("../../_virtual/_rolldown/runtime.cjs");
|
|
2
|
+
const require_mergeDeep = require("../../util/mergeDeep.cjs");
|
|
3
|
+
const require_styles = require("./styles.cjs");
|
|
4
|
+
let _emotion_react_jsx_runtime = require("@emotion/react/jsx-runtime");
|
|
5
|
+
//#region src/components/Grid/Grid.tsx
|
|
6
|
+
function Grid({ children, theme = {}, cssOverrides, as: Component = "div", ...props }) {
|
|
7
|
+
return /* @__PURE__ */ (0, _emotion_react_jsx_runtime.jsx)(Component, {
|
|
8
|
+
css: [require_styles.gridStyles(require_mergeDeep.mergeDeep(require_styles.defaultGridTheme, theme)), cssOverrides],
|
|
9
|
+
...props,
|
|
10
|
+
children
|
|
11
|
+
});
|
|
16
12
|
}
|
|
17
|
-
function Item({
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
27
|
-
"div",
|
|
28
|
-
{
|
|
29
|
-
css: [styles.itemStyles(mergedTheme, { size, offset }), cssOverrides],
|
|
30
|
-
...props,
|
|
31
|
-
children
|
|
32
|
-
}
|
|
33
|
-
);
|
|
13
|
+
function Item({ children, theme = {}, cssOverrides, size, offset, ...props }) {
|
|
14
|
+
return /* @__PURE__ */ (0, _emotion_react_jsx_runtime.jsx)("div", {
|
|
15
|
+
css: [require_styles.itemStyles(require_mergeDeep.mergeDeep(require_styles.defaultGridTheme, theme), {
|
|
16
|
+
size,
|
|
17
|
+
offset
|
|
18
|
+
}), cssOverrides],
|
|
19
|
+
...props,
|
|
20
|
+
children
|
|
21
|
+
});
|
|
34
22
|
}
|
|
35
|
-
|
|
23
|
+
//#endregion
|
|
36
24
|
exports.Grid = Grid;
|
|
37
25
|
exports.Item = Item;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { GridProps, ItemProps } from "./types.cjs";
|
|
2
|
+
|
|
3
|
+
//#region src/components/Grid/Grid.d.ts
|
|
4
|
+
declare function Grid({
|
|
5
|
+
children,
|
|
6
|
+
theme,
|
|
7
|
+
cssOverrides,
|
|
8
|
+
as: Component,
|
|
9
|
+
...props
|
|
10
|
+
}: GridProps): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
11
|
+
declare function Item({
|
|
12
|
+
children,
|
|
13
|
+
theme,
|
|
14
|
+
cssOverrides,
|
|
15
|
+
size,
|
|
16
|
+
offset,
|
|
17
|
+
...props
|
|
18
|
+
}: ItemProps): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
19
|
+
//#endregion
|
|
20
|
+
export { Grid, Item };
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { GridProps, ItemProps } from "./types.js";
|
|
2
|
+
|
|
3
|
+
//#region src/components/Grid/Grid.d.ts
|
|
4
|
+
declare function Grid({
|
|
5
|
+
children,
|
|
6
|
+
theme,
|
|
7
|
+
cssOverrides,
|
|
8
|
+
as: Component,
|
|
9
|
+
...props
|
|
10
|
+
}: GridProps): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
11
|
+
declare function Item({
|
|
12
|
+
children,
|
|
13
|
+
theme,
|
|
14
|
+
cssOverrides,
|
|
15
|
+
size,
|
|
16
|
+
offset,
|
|
17
|
+
...props
|
|
18
|
+
}: ItemProps): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
19
|
+
//#endregion
|
|
20
|
+
export { Grid, Item };
|
|
@@ -1,14 +1,23 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
|
|
1
|
+
import { mergeDeep } from "../../util/mergeDeep.js";
|
|
2
|
+
import { defaultGridTheme, gridStyles, itemStyles } from "./styles.js";
|
|
3
|
+
import { jsx } from "@emotion/react/jsx-runtime";
|
|
4
|
+
//#region src/components/Grid/Grid.tsx
|
|
5
5
|
function Grid({ children, theme = {}, cssOverrides, as: Component = "div", ...props }) {
|
|
6
|
-
|
|
7
|
-
|
|
6
|
+
return /* @__PURE__ */ jsx(Component, {
|
|
7
|
+
css: [gridStyles(mergeDeep(defaultGridTheme, theme)), cssOverrides],
|
|
8
|
+
...props,
|
|
9
|
+
children
|
|
10
|
+
});
|
|
8
11
|
}
|
|
9
12
|
function Item({ children, theme = {}, cssOverrides, size, offset, ...props }) {
|
|
10
|
-
|
|
11
|
-
|
|
13
|
+
return /* @__PURE__ */ jsx("div", {
|
|
14
|
+
css: [itemStyles(mergeDeep(defaultGridTheme, theme), {
|
|
15
|
+
size,
|
|
16
|
+
offset
|
|
17
|
+
}), cssOverrides],
|
|
18
|
+
...props,
|
|
19
|
+
children
|
|
20
|
+
});
|
|
12
21
|
}
|
|
13
|
-
|
|
22
|
+
//#endregion
|
|
14
23
|
export { Grid, Item };
|
|
@@ -1,82 +1,92 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
const defaultGridTheme = grid.componentGrid;
|
|
1
|
+
require("../../_virtual/_rolldown/runtime.cjs");
|
|
2
|
+
const require_mq = require("../../styleD/utils/semantic/mq.cjs");
|
|
3
|
+
const require_grid = require("../../styleD/build/typescript/component/grid.cjs");
|
|
4
|
+
let _emotion_react = require("@emotion/react");
|
|
5
|
+
//#region src/components/Grid/styles.ts
|
|
6
|
+
const defaultGridTheme = require_grid.componentGrid;
|
|
8
7
|
const isResponsiveGridSize = (size) => typeof size === "object";
|
|
9
8
|
const isResponsiveOffset = (offset) => typeof offset === "object";
|
|
10
9
|
const clampToColumns = (value, columns) => Math.max(0, Math.min(value, columns));
|
|
10
|
+
/**
|
|
11
|
+
* Computes the left margin needed to offset an item by a given number of grid columns.
|
|
12
|
+
*
|
|
13
|
+
* The calculation uses the themed column count and gap so offsets stay proportional
|
|
14
|
+
* in fluid layouts:
|
|
15
|
+
* - First term: width of `offset` columns from the total non-gap width
|
|
16
|
+
* - Second term: horizontal gaps crossed when moving by `offset` columns
|
|
17
|
+
*
|
|
18
|
+
* Formula:
|
|
19
|
+
* `((100% - (columns - 1) * gap) * offset / columns) + offset * gap`
|
|
20
|
+
*/
|
|
11
21
|
const numericOffsetMargin = (offset, columns, gap) => `calc(((100% - (${columns} - 1) * ${gap}) * ${offset} / ${columns}) + ${offset} * ${gap})`;
|
|
22
|
+
/**
|
|
23
|
+
* Computes the width for an item that spans a fixed number of grid columns.
|
|
24
|
+
*
|
|
25
|
+
* The calculation uses the themed column count and gap so item widths match the
|
|
26
|
+
* container's gap model:
|
|
27
|
+
* - First term: width of `size` columns from the total non-gap width
|
|
28
|
+
* - Second term: internal gaps within the spanned columns (`size - 1`)
|
|
29
|
+
*
|
|
30
|
+
* Formula:
|
|
31
|
+
* `((100% - (columns - 1) * gap) * size / columns) + (size - 1) * gap`
|
|
32
|
+
*/
|
|
12
33
|
const numericSizeWidth = (size, columns, gap) => `calc(((100% - (${columns} - 1) * ${gap}) * ${size} / ${columns}) + (${size} - 1) * ${gap})`;
|
|
34
|
+
/**
|
|
35
|
+
* Returns non-responsive item size styles for a single `size` value.
|
|
36
|
+
*
|
|
37
|
+
* Supported values:
|
|
38
|
+
* - `'grow'`: item participates in flex growth and shares remaining space
|
|
39
|
+
* - `'auto'`: item sizes to content width without growing
|
|
40
|
+
* - `number`: item spans a fixed number of columns using `numericSizeWidth`
|
|
41
|
+
*/
|
|
13
42
|
const fixedSizeStyles = (size, theme, breakpoint) => {
|
|
14
|
-
|
|
15
|
-
return react.css`
|
|
43
|
+
if (size === "grow") return _emotion_react.css`
|
|
16
44
|
flex-basis: 0;
|
|
17
45
|
flex-grow: 1;
|
|
18
46
|
max-width: 100%;
|
|
19
47
|
`;
|
|
20
|
-
|
|
21
|
-
if (size === "auto") {
|
|
22
|
-
return react.css`
|
|
48
|
+
if (size === "auto") return _emotion_react.css`
|
|
23
49
|
flex-basis: auto;
|
|
24
50
|
flex-grow: 0;
|
|
25
51
|
flex-shrink: 0;
|
|
26
52
|
width: auto;
|
|
27
53
|
max-width: none;
|
|
28
54
|
`;
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
clampToColumns(size, theme[breakpoint].columns),
|
|
32
|
-
theme[breakpoint].columns,
|
|
33
|
-
theme[breakpoint].gap
|
|
34
|
-
);
|
|
35
|
-
return react.css`
|
|
55
|
+
const width = numericSizeWidth(clampToColumns(size, theme[breakpoint].columns), theme[breakpoint].columns, theme[breakpoint].gap);
|
|
56
|
+
return _emotion_react.css`
|
|
36
57
|
flex-grow: 0;
|
|
37
58
|
flex-basis: ${width};
|
|
38
59
|
width: ${width};
|
|
39
60
|
max-width: ${width};
|
|
40
61
|
`;
|
|
41
62
|
};
|
|
63
|
+
/**
|
|
64
|
+
* Returns non-responsive item offset styles for a single `offset` value.
|
|
65
|
+
*
|
|
66
|
+
* Supported values:
|
|
67
|
+
* - `'auto'`: pushes the item to the far edge with `margin-left: auto`
|
|
68
|
+
* - `number`: shifts the item right by a computed column offset margin
|
|
69
|
+
*/
|
|
42
70
|
const fixedOffsetStyles = (offset, theme, breakpoint) => {
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
}
|
|
46
|
-
if (offset === "auto") {
|
|
47
|
-
return react.css`
|
|
71
|
+
if (typeof offset === "undefined") return _emotion_react.css``;
|
|
72
|
+
if (offset === "auto") return _emotion_react.css`
|
|
48
73
|
margin-left: auto;
|
|
49
74
|
`;
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
margin-left: ${numericOffsetMargin(
|
|
53
|
-
clampToColumns(offset, theme[breakpoint].columns),
|
|
54
|
-
theme[breakpoint].columns,
|
|
55
|
-
theme[breakpoint].gap
|
|
56
|
-
)};
|
|
75
|
+
return _emotion_react.css`
|
|
76
|
+
margin-left: ${numericOffsetMargin(clampToColumns(offset, theme[breakpoint].columns), theme[breakpoint].columns, theme[breakpoint].gap)};
|
|
57
77
|
`;
|
|
58
78
|
};
|
|
59
79
|
const offsetStyles = (offset, theme, breakpoint) => {
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
}
|
|
63
|
-
return fixedOffsetStyles(offset[breakpoint], theme, breakpoint);
|
|
80
|
+
if (!isResponsiveOffset(offset)) return fixedOffsetStyles(offset, theme, breakpoint);
|
|
81
|
+
return fixedOffsetStyles(offset[breakpoint], theme, breakpoint);
|
|
64
82
|
};
|
|
65
83
|
const sizeStyles = (size, theme, breakpoint) => {
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
if (!isResponsiveGridSize(size)) {
|
|
70
|
-
return fixedSizeStyles(size, theme, breakpoint);
|
|
71
|
-
}
|
|
72
|
-
return fixedSizeStyles(
|
|
73
|
-
size[breakpoint] ?? theme[breakpoint].columns,
|
|
74
|
-
theme,
|
|
75
|
-
breakpoint
|
|
76
|
-
);
|
|
84
|
+
if (typeof size === "undefined") size = theme[breakpoint].columns;
|
|
85
|
+
if (!isResponsiveGridSize(size)) return fixedSizeStyles(size, theme, breakpoint);
|
|
86
|
+
return fixedSizeStyles(size[breakpoint] ?? theme[breakpoint].columns, theme, breakpoint);
|
|
77
87
|
};
|
|
78
88
|
const gridStyles = (theme) => {
|
|
79
|
-
|
|
89
|
+
return _emotion_react.css`
|
|
80
90
|
display: ${theme.shared.display};
|
|
81
91
|
width: ${theme.shared.width};
|
|
82
92
|
flex-direction: ${theme.shared.direction};
|
|
@@ -84,43 +94,43 @@ const gridStyles = (theme) => {
|
|
|
84
94
|
justify-content: ${theme.shared.justifyContent};
|
|
85
95
|
align-items: ${theme.shared.alignItems};
|
|
86
96
|
|
|
87
|
-
${
|
|
97
|
+
${require_mq.from.sm} {
|
|
88
98
|
gap: ${theme.sm.gap};
|
|
89
99
|
padding: 0 ${theme.sm.padding};
|
|
90
100
|
}
|
|
91
101
|
|
|
92
|
-
${
|
|
102
|
+
${require_mq.from.md} {
|
|
93
103
|
gap: ${theme.md.gap};
|
|
94
104
|
padding: 0 ${theme.md.padding};
|
|
95
105
|
}
|
|
96
106
|
|
|
97
|
-
${
|
|
107
|
+
${require_mq.from.lg} {
|
|
98
108
|
gap: ${theme.lg.gap};
|
|
99
109
|
padding: 0 ${theme.lg.padding};
|
|
100
110
|
}
|
|
101
111
|
`;
|
|
102
112
|
};
|
|
103
113
|
const itemStyles = (theme, { size, offset }) => {
|
|
104
|
-
|
|
114
|
+
return _emotion_react.css`
|
|
105
115
|
min-width: 0;
|
|
106
116
|
|
|
107
|
-
${
|
|
117
|
+
${require_mq.from.sm} {
|
|
108
118
|
${sizeStyles(size, theme, "sm")}
|
|
109
119
|
${offsetStyles(offset, theme, "sm")}
|
|
110
120
|
}
|
|
111
121
|
|
|
112
|
-
${
|
|
122
|
+
${require_mq.from.md} {
|
|
113
123
|
${sizeStyles(size, theme, "md")}
|
|
114
124
|
${offsetStyles(offset, theme, "md")}
|
|
115
125
|
}
|
|
116
126
|
|
|
117
|
-
${
|
|
127
|
+
${require_mq.from.lg} {
|
|
118
128
|
${sizeStyles(size, theme, "lg")}
|
|
119
129
|
${offsetStyles(offset, theme, "lg")}
|
|
120
130
|
}
|
|
121
131
|
`;
|
|
122
132
|
};
|
|
123
|
-
|
|
133
|
+
//#endregion
|
|
124
134
|
exports.defaultGridTheme = defaultGridTheme;
|
|
125
135
|
exports.gridStyles = gridStyles;
|
|
126
136
|
exports.itemStyles = itemStyles;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { DeepPartial, Prettify } from "../../util/types.cjs";
|
|
2
|
+
import { ComponentGrid } from "../../styleD/build/typescript/component/grid.cjs";
|
|
3
|
+
import { SerializedStyles } from "@emotion/react";
|
|
4
|
+
|
|
5
|
+
//#region src/components/Grid/styles.d.ts
|
|
6
|
+
type GridTheme = Prettify<ComponentGrid>;
|
|
7
|
+
type PartialGridTheme = Prettify<DeepPartial<GridTheme>>;
|
|
8
|
+
//#endregion
|
|
9
|
+
export { GridTheme, PartialGridTheme };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { DeepPartial, Prettify } from "../../util/types.js";
|
|
2
|
+
import { ComponentGrid } from "../../styleD/build/typescript/component/grid.js";
|
|
3
|
+
import { SerializedStyles } from "@emotion/react";
|
|
4
|
+
|
|
5
|
+
//#region src/components/Grid/styles.d.ts
|
|
6
|
+
type GridTheme = Prettify<ComponentGrid>;
|
|
7
|
+
type PartialGridTheme = Prettify<DeepPartial<GridTheme>>;
|
|
8
|
+
//#endregion
|
|
9
|
+
export { GridTheme, PartialGridTheme };
|
|
@@ -1,68 +1,91 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { componentGrid } from
|
|
3
|
-
import {
|
|
4
|
-
|
|
1
|
+
import { from } from "../../styleD/utils/semantic/mq.js";
|
|
2
|
+
import { componentGrid } from "../../styleD/build/typescript/component/grid.js";
|
|
3
|
+
import { css } from "@emotion/react";
|
|
4
|
+
//#region src/components/Grid/styles.ts
|
|
5
5
|
const defaultGridTheme = componentGrid;
|
|
6
6
|
const isResponsiveGridSize = (size) => typeof size === "object";
|
|
7
7
|
const isResponsiveOffset = (offset) => typeof offset === "object";
|
|
8
8
|
const clampToColumns = (value, columns) => Math.max(0, Math.min(value, columns));
|
|
9
|
+
/**
|
|
10
|
+
* Computes the left margin needed to offset an item by a given number of grid columns.
|
|
11
|
+
*
|
|
12
|
+
* The calculation uses the themed column count and gap so offsets stay proportional
|
|
13
|
+
* in fluid layouts:
|
|
14
|
+
* - First term: width of `offset` columns from the total non-gap width
|
|
15
|
+
* - Second term: horizontal gaps crossed when moving by `offset` columns
|
|
16
|
+
*
|
|
17
|
+
* Formula:
|
|
18
|
+
* `((100% - (columns - 1) * gap) * offset / columns) + offset * gap`
|
|
19
|
+
*/
|
|
9
20
|
const numericOffsetMargin = (offset, columns, gap) => `calc(((100% - (${columns} - 1) * ${gap}) * ${offset} / ${columns}) + ${offset} * ${gap})`;
|
|
21
|
+
/**
|
|
22
|
+
* Computes the width for an item that spans a fixed number of grid columns.
|
|
23
|
+
*
|
|
24
|
+
* The calculation uses the themed column count and gap so item widths match the
|
|
25
|
+
* container's gap model:
|
|
26
|
+
* - First term: width of `size` columns from the total non-gap width
|
|
27
|
+
* - Second term: internal gaps within the spanned columns (`size - 1`)
|
|
28
|
+
*
|
|
29
|
+
* Formula:
|
|
30
|
+
* `((100% - (columns - 1) * gap) * size / columns) + (size - 1) * gap`
|
|
31
|
+
*/
|
|
10
32
|
const numericSizeWidth = (size, columns, gap) => `calc(((100% - (${columns} - 1) * ${gap}) * ${size} / ${columns}) + (${size} - 1) * ${gap})`;
|
|
33
|
+
/**
|
|
34
|
+
* Returns non-responsive item size styles for a single `size` value.
|
|
35
|
+
*
|
|
36
|
+
* Supported values:
|
|
37
|
+
* - `'grow'`: item participates in flex growth and shares remaining space
|
|
38
|
+
* - `'auto'`: item sizes to content width without growing
|
|
39
|
+
* - `number`: item spans a fixed number of columns using `numericSizeWidth`
|
|
40
|
+
*/
|
|
11
41
|
const fixedSizeStyles = (size, theme, breakpoint) => {
|
|
12
|
-
|
|
13
|
-
return css`
|
|
42
|
+
if (size === "grow") return css`
|
|
14
43
|
flex-basis: 0;
|
|
15
44
|
flex-grow: 1;
|
|
16
45
|
max-width: 100%;
|
|
17
46
|
`;
|
|
18
|
-
|
|
19
|
-
if (size === "auto") {
|
|
20
|
-
return css`
|
|
47
|
+
if (size === "auto") return css`
|
|
21
48
|
flex-basis: auto;
|
|
22
49
|
flex-grow: 0;
|
|
23
50
|
flex-shrink: 0;
|
|
24
51
|
width: auto;
|
|
25
52
|
max-width: none;
|
|
26
53
|
`;
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
return css`
|
|
54
|
+
const width = numericSizeWidth(clampToColumns(size, theme[breakpoint].columns), theme[breakpoint].columns, theme[breakpoint].gap);
|
|
55
|
+
return css`
|
|
30
56
|
flex-grow: 0;
|
|
31
57
|
flex-basis: ${width};
|
|
32
58
|
width: ${width};
|
|
33
59
|
max-width: ${width};
|
|
34
60
|
`;
|
|
35
61
|
};
|
|
62
|
+
/**
|
|
63
|
+
* Returns non-responsive item offset styles for a single `offset` value.
|
|
64
|
+
*
|
|
65
|
+
* Supported values:
|
|
66
|
+
* - `'auto'`: pushes the item to the far edge with `margin-left: auto`
|
|
67
|
+
* - `number`: shifts the item right by a computed column offset margin
|
|
68
|
+
*/
|
|
36
69
|
const fixedOffsetStyles = (offset, theme, breakpoint) => {
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
}
|
|
40
|
-
if (offset === "auto") {
|
|
41
|
-
return css`
|
|
70
|
+
if (typeof offset === "undefined") return css``;
|
|
71
|
+
if (offset === "auto") return css`
|
|
42
72
|
margin-left: auto;
|
|
43
73
|
`;
|
|
44
|
-
|
|
45
|
-
return css`
|
|
74
|
+
return css`
|
|
46
75
|
margin-left: ${numericOffsetMargin(clampToColumns(offset, theme[breakpoint].columns), theme[breakpoint].columns, theme[breakpoint].gap)};
|
|
47
76
|
`;
|
|
48
77
|
};
|
|
49
78
|
const offsetStyles = (offset, theme, breakpoint) => {
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
}
|
|
53
|
-
return fixedOffsetStyles(offset[breakpoint], theme, breakpoint);
|
|
79
|
+
if (!isResponsiveOffset(offset)) return fixedOffsetStyles(offset, theme, breakpoint);
|
|
80
|
+
return fixedOffsetStyles(offset[breakpoint], theme, breakpoint);
|
|
54
81
|
};
|
|
55
82
|
const sizeStyles = (size, theme, breakpoint) => {
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
if (!isResponsiveGridSize(size)) {
|
|
60
|
-
return fixedSizeStyles(size, theme, breakpoint);
|
|
61
|
-
}
|
|
62
|
-
return fixedSizeStyles(size[breakpoint] ?? theme[breakpoint].columns, theme, breakpoint);
|
|
83
|
+
if (typeof size === "undefined") size = theme[breakpoint].columns;
|
|
84
|
+
if (!isResponsiveGridSize(size)) return fixedSizeStyles(size, theme, breakpoint);
|
|
85
|
+
return fixedSizeStyles(size[breakpoint] ?? theme[breakpoint].columns, theme, breakpoint);
|
|
63
86
|
};
|
|
64
87
|
const gridStyles = (theme) => {
|
|
65
|
-
|
|
88
|
+
return css`
|
|
66
89
|
display: ${theme.shared.display};
|
|
67
90
|
width: ${theme.shared.width};
|
|
68
91
|
flex-direction: ${theme.shared.direction};
|
|
@@ -87,7 +110,7 @@ const gridStyles = (theme) => {
|
|
|
87
110
|
`;
|
|
88
111
|
};
|
|
89
112
|
const itemStyles = (theme, { size, offset }) => {
|
|
90
|
-
|
|
113
|
+
return css`
|
|
91
114
|
min-width: 0;
|
|
92
115
|
|
|
93
116
|
${from.sm} {
|
|
@@ -106,5 +129,5 @@ const itemStyles = (theme, { size, offset }) => {
|
|
|
106
129
|
}
|
|
107
130
|
`;
|
|
108
131
|
};
|
|
109
|
-
|
|
132
|
+
//#endregion
|
|
110
133
|
export { defaultGridTheme, gridStyles, itemStyles };
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { DefaultPropsWithChildren } from "../../util/types.cjs";
|
|
2
|
+
import { Breakpoint } from "../../styleD/utils/semantic/mq.cjs";
|
|
3
|
+
import { GridTheme } from "./styles.cjs";
|
|
4
|
+
import { ElementType, HTMLAttributes } from "react";
|
|
5
|
+
|
|
6
|
+
//#region src/components/Grid/types.d.ts
|
|
7
|
+
type ResponsiveGridValue<T> = Partial<Record<Breakpoint, T>>;
|
|
8
|
+
type GridSizeValue = number | 'auto' | 'grow';
|
|
9
|
+
type GridOffsetValue = number | 'auto';
|
|
10
|
+
interface GridProps extends DefaultPropsWithChildren<GridTheme>, Omit<HTMLAttributes<HTMLElement>, 'children'> {
|
|
11
|
+
/**
|
|
12
|
+
* Element used to render the Grid container.
|
|
13
|
+
*/
|
|
14
|
+
as?: ElementType;
|
|
15
|
+
}
|
|
16
|
+
interface ItemProps extends DefaultPropsWithChildren<GridTheme>, Omit<HTMLAttributes<HTMLDivElement>, 'children'> {
|
|
17
|
+
/**
|
|
18
|
+
* Number of columns the item should span, or responsive values keyed by breakpoint.
|
|
19
|
+
*/
|
|
20
|
+
size?: GridSizeValue | ResponsiveGridValue<GridSizeValue>;
|
|
21
|
+
/**
|
|
22
|
+
* Columns to offset the item from the left. Numbers push the item that many columns
|
|
23
|
+
* to the right. 'auto' pushes it to the far right of the row.
|
|
24
|
+
* Responsive values keyed by breakpoint are also accepted.
|
|
25
|
+
*/
|
|
26
|
+
offset?: GridOffsetValue | ResponsiveGridValue<GridOffsetValue>;
|
|
27
|
+
}
|
|
28
|
+
//#endregion
|
|
29
|
+
export { GridProps, ItemProps };
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { DefaultPropsWithChildren } from "../../util/types.js";
|
|
2
|
+
import { Breakpoint } from "../../styleD/utils/semantic/mq.js";
|
|
3
|
+
import { GridTheme } from "./styles.js";
|
|
4
|
+
import { ElementType, HTMLAttributes } from "react";
|
|
5
|
+
|
|
6
|
+
//#region src/components/Grid/types.d.ts
|
|
7
|
+
type ResponsiveGridValue<T> = Partial<Record<Breakpoint, T>>;
|
|
8
|
+
type GridSizeValue = number | 'auto' | 'grow';
|
|
9
|
+
type GridOffsetValue = number | 'auto';
|
|
10
|
+
interface GridProps extends DefaultPropsWithChildren<GridTheme>, Omit<HTMLAttributes<HTMLElement>, 'children'> {
|
|
11
|
+
/**
|
|
12
|
+
* Element used to render the Grid container.
|
|
13
|
+
*/
|
|
14
|
+
as?: ElementType;
|
|
15
|
+
}
|
|
16
|
+
interface ItemProps extends DefaultPropsWithChildren<GridTheme>, Omit<HTMLAttributes<HTMLDivElement>, 'children'> {
|
|
17
|
+
/**
|
|
18
|
+
* Number of columns the item should span, or responsive values keyed by breakpoint.
|
|
19
|
+
*/
|
|
20
|
+
size?: GridSizeValue | ResponsiveGridValue<GridSizeValue>;
|
|
21
|
+
/**
|
|
22
|
+
* Columns to offset the item from the left. Numbers push the item that many columns
|
|
23
|
+
* to the right. 'auto' pushes it to the far right of the row.
|
|
24
|
+
* Responsive values keyed by breakpoint are also accepted.
|
|
25
|
+
*/
|
|
26
|
+
offset?: GridOffsetValue | ResponsiveGridValue<GridOffsetValue>;
|
|
27
|
+
}
|
|
28
|
+
//#endregion
|
|
29
|
+
export { GridProps, ItemProps };
|
|
@@ -1,43 +1,36 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
{
|
|
35
|
-
className,
|
|
36
|
-
css: [styles.iconStyles(mergedTheme, { size, fill, mode: "svg" }), cssOverrides],
|
|
37
|
-
...alt ? { role: "img", "aria-label": alt } : { "aria-hidden": true },
|
|
38
|
-
children
|
|
39
|
-
}
|
|
40
|
-
);
|
|
1
|
+
require("../../_virtual/_rolldown/runtime.cjs");
|
|
2
|
+
const require_mergeDeep = require("../../util/mergeDeep.cjs");
|
|
3
|
+
const require_Styles = require("./Styles.cjs");
|
|
4
|
+
let _emotion_react_jsx_runtime = require("@emotion/react/jsx-runtime");
|
|
5
|
+
//#region src/components/Icon/Icon.tsx
|
|
6
|
+
function Icon({ children, size = "md", fill, alt, symbol, theme = {}, cssOverrides, className }) {
|
|
7
|
+
const mergedTheme = require_mergeDeep.mergeDeep(require_Styles.defaultIconTheme, theme);
|
|
8
|
+
if (symbol || typeof children === "string") return /* @__PURE__ */ (0, _emotion_react_jsx_runtime.jsx)("span", {
|
|
9
|
+
className: `material-symbols ${className ?? ""}`,
|
|
10
|
+
css: [require_Styles.IconStyles(mergedTheme, {
|
|
11
|
+
size,
|
|
12
|
+
fill,
|
|
13
|
+
mode: "text"
|
|
14
|
+
}), cssOverrides],
|
|
15
|
+
...alt ? {
|
|
16
|
+
role: "img",
|
|
17
|
+
"aria-label": alt
|
|
18
|
+
} : { "aria-hidden": true },
|
|
19
|
+
children: symbol ?? children
|
|
20
|
+
});
|
|
21
|
+
return /* @__PURE__ */ (0, _emotion_react_jsx_runtime.jsx)("span", {
|
|
22
|
+
className,
|
|
23
|
+
css: [require_Styles.IconStyles(mergedTheme, {
|
|
24
|
+
size,
|
|
25
|
+
fill,
|
|
26
|
+
mode: "svg"
|
|
27
|
+
}), cssOverrides],
|
|
28
|
+
...alt ? {
|
|
29
|
+
role: "img",
|
|
30
|
+
"aria-label": alt
|
|
31
|
+
} : { "aria-hidden": true },
|
|
32
|
+
children
|
|
33
|
+
});
|
|
41
34
|
}
|
|
42
|
-
|
|
35
|
+
//#endregion
|
|
43
36
|
exports.Icon = Icon;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { IconProps } from "./types.cjs";
|
|
2
|
+
|
|
3
|
+
//#region src/components/Icon/Icon.d.ts
|
|
4
|
+
declare function Icon({
|
|
5
|
+
children,
|
|
6
|
+
size,
|
|
7
|
+
fill,
|
|
8
|
+
alt,
|
|
9
|
+
symbol,
|
|
10
|
+
theme,
|
|
11
|
+
cssOverrides,
|
|
12
|
+
className
|
|
13
|
+
}: IconProps): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
14
|
+
//#endregion
|
|
15
|
+
export { Icon };
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { IconProps } from "./types.js";
|
|
2
|
+
|
|
3
|
+
//#region src/components/Icon/Icon.d.ts
|
|
4
|
+
declare function Icon({
|
|
5
|
+
children,
|
|
6
|
+
size,
|
|
7
|
+
fill,
|
|
8
|
+
alt,
|
|
9
|
+
symbol,
|
|
10
|
+
theme,
|
|
11
|
+
cssOverrides,
|
|
12
|
+
className
|
|
13
|
+
}: IconProps): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
14
|
+
//#endregion
|
|
15
|
+
export { Icon };
|