@guardian/stand 0.0.40 → 0.0.42
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/AlertBanner.cjs +5 -9
- package/dist/AlertBanner.d.cts +5 -0
- package/dist/AlertBanner.d.ts +5 -0
- package/dist/AlertBanner.js +3 -2
- package/dist/Avatar.cjs +5 -9
- package/dist/Avatar.d.cts +5 -0
- package/dist/Avatar.d.ts +5 -0
- package/dist/Avatar.js +3 -2
- package/dist/AvatarButton.cjs +3 -7
- package/dist/AvatarButton.d.cts +4 -0
- package/dist/AvatarButton.d.ts +4 -0
- package/dist/AvatarButton.js +2 -1
- package/dist/AvatarLink.cjs +3 -7
- package/dist/AvatarLink.d.cts +4 -0
- package/dist/AvatarLink.d.ts +4 -0
- package/dist/AvatarLink.js +2 -1
- package/dist/Button.cjs +5 -9
- package/dist/Button.d.cts +5 -0
- package/dist/Button.d.ts +5 -0
- package/dist/Button.js +3 -2
- package/dist/Byline.cjs +5 -9
- package/dist/Byline.d.cts +5 -0
- package/dist/Byline.d.ts +5 -0
- package/dist/Byline.js +3 -2
- package/dist/Checkbox.cjs +7 -11
- package/dist/Checkbox.d.cts +6 -0
- package/dist/Checkbox.d.ts +6 -0
- package/dist/Checkbox.js +4 -3
- package/dist/DatePicker.cjs +5 -9
- package/dist/DatePicker.d.cts +5 -0
- package/dist/DatePicker.d.ts +5 -0
- package/dist/DatePicker.js +3 -2
- package/dist/Favicon.cjs +5 -9
- package/dist/Favicon.d.cts +5 -0
- package/dist/Favicon.d.ts +5 -0
- package/dist/Favicon.js +3 -2
- package/dist/Form.cjs +3 -7
- package/dist/Form.d.cts +2 -0
- package/dist/Form.d.ts +2 -0
- package/dist/Form.js +2 -1
- package/dist/Grid.cjs +6 -10
- package/dist/Grid.d.cts +5 -0
- package/dist/Grid.d.ts +5 -0
- package/dist/Grid.js +3 -2
- package/dist/Icon.cjs +5 -9
- package/dist/Icon.d.cts +5 -0
- package/dist/Icon.d.ts +5 -0
- package/dist/Icon.js +3 -2
- package/dist/IconButton.cjs +3 -7
- package/dist/IconButton.d.cts +4 -0
- package/dist/IconButton.d.ts +4 -0
- package/dist/IconButton.js +2 -1
- package/dist/IconLinkButton.cjs +3 -7
- package/dist/IconLinkButton.d.cts +4 -0
- package/dist/IconLinkButton.d.ts +4 -0
- package/dist/IconLinkButton.js +2 -1
- package/dist/InlineMessage.cjs +5 -9
- package/dist/InlineMessage.d.cts +5 -0
- package/dist/InlineMessage.d.ts +5 -0
- package/dist/InlineMessage.js +3 -2
- package/dist/IntendedAudienceSignifier.cjs +5 -9
- package/dist/IntendedAudienceSignifier.d.cts +5 -0
- package/dist/IntendedAudienceSignifier.d.ts +5 -0
- package/dist/IntendedAudienceSignifier.js +3 -2
- package/dist/Layout.cjs +5 -9
- package/dist/Layout.d.cts +5 -0
- package/dist/Layout.d.ts +5 -0
- package/dist/Layout.js +3 -2
- package/dist/Link.cjs +5 -9
- package/dist/Link.d.cts +5 -0
- package/dist/Link.d.ts +5 -0
- package/dist/Link.js +3 -2
- package/dist/LinkButton.cjs +3 -7
- package/dist/LinkButton.d.cts +4 -0
- package/dist/LinkButton.d.ts +4 -0
- package/dist/LinkButton.js +2 -1
- package/dist/Menu.cjs +9 -13
- package/dist/Menu.d.cts +5 -0
- package/dist/Menu.d.ts +5 -0
- package/dist/Menu.js +3 -2
- package/dist/RadioGroup.cjs +6 -10
- package/dist/RadioGroup.d.cts +5 -0
- package/dist/RadioGroup.d.ts +5 -0
- package/dist/RadioGroup.js +3 -2
- package/dist/Select.cjs +6 -10
- package/dist/Select.d.cts +5 -0
- package/dist/Select.d.ts +5 -0
- package/dist/Select.js +3 -2
- package/dist/TagPicker.cjs +11 -15
- package/dist/TagPicker.d.cts +6 -0
- package/dist/TagPicker.d.ts +6 -0
- package/dist/TagPicker.js +6 -5
- package/dist/TextArea.cjs +5 -9
- package/dist/TextArea.d.cts +5 -0
- package/dist/TextArea.d.ts +5 -0
- package/dist/TextArea.js +3 -2
- package/dist/TextInput.cjs +5 -9
- package/dist/TextInput.d.cts +5 -0
- package/dist/TextInput.d.ts +5 -0
- package/dist/TextInput.js +3 -2
- package/dist/TopBar.cjs +13 -17
- package/dist/TopBar.d.cts +14 -0
- package/dist/TopBar.d.ts +14 -0
- package/dist/TopBar.js +6 -5
- package/dist/Typography.cjs +5 -9
- package/dist/Typography.d.cts +5 -0
- package/dist/Typography.d.ts +5 -0
- package/dist/Typography.js +3 -2
- package/dist/UserMenu.cjs +5 -9
- package/dist/UserMenu.d.cts +3 -0
- package/dist/UserMenu.d.ts +3 -0
- package/dist/UserMenu.js +3 -2
- package/dist/_virtual/_rolldown/runtime.cjs +23 -0
- package/dist/components/AlertBanner/AlertBanner.cjs +39 -62
- package/dist/components/AlertBanner/AlertBanner.d.cts +16 -0
- package/dist/components/AlertBanner/AlertBanner.d.ts +16 -0
- package/dist/components/AlertBanner/AlertBanner.js +37 -26
- package/dist/components/AlertBanner/styles.cjs +10 -11
- package/dist/components/AlertBanner/styles.d.cts +8 -0
- package/dist/components/AlertBanner/styles.d.ts +8 -0
- package/dist/components/AlertBanner/styles.js +7 -7
- package/dist/components/AlertBanner/types.d.cts +31 -0
- package/dist/components/AlertBanner/types.d.ts +31 -0
- package/dist/components/Avatar/Avatar.cjs +34 -53
- package/dist/components/Avatar/Avatar.d.cts +15 -0
- package/dist/components/Avatar/Avatar.d.ts +15 -0
- package/dist/components/Avatar/Avatar.js +32 -22
- package/dist/components/Avatar/styles.cjs +10 -11
- package/dist/components/Avatar/styles.d.cts +9 -0
- package/dist/components/Avatar/styles.d.ts +9 -0
- package/dist/components/Avatar/styles.js +6 -6
- package/dist/components/Avatar/types.cjs +12 -13
- package/dist/components/Avatar/types.d.cts +47 -0
- package/dist/components/Avatar/types.d.ts +47 -0
- package/dist/components/Avatar/types.js +12 -11
- package/dist/components/AvatarButton/AvatarButton.cjs +16 -11
- package/dist/components/AvatarButton/AvatarButton.d.cts +6 -0
- package/dist/components/AvatarButton/AvatarButton.d.ts +6 -0
- package/dist/components/AvatarButton/AvatarButton.js +15 -9
- package/dist/components/AvatarButton/styles.cjs +7 -8
- package/dist/components/AvatarButton/styles.d.cts +7 -0
- package/dist/components/AvatarButton/styles.d.ts +7 -0
- package/dist/components/AvatarButton/styles.js +5 -5
- package/dist/components/AvatarButton/types.d.cts +7 -0
- package/dist/components/AvatarButton/types.d.ts +7 -0
- package/dist/components/AvatarLink/AvatarLink.cjs +16 -11
- package/dist/components/AvatarLink/AvatarLink.d.cts +6 -0
- package/dist/components/AvatarLink/AvatarLink.d.ts +6 -0
- package/dist/components/AvatarLink/AvatarLink.js +15 -9
- package/dist/components/AvatarLink/styles.cjs +7 -8
- package/dist/components/AvatarLink/styles.d.cts +7 -0
- package/dist/components/AvatarLink/styles.d.ts +7 -0
- package/dist/components/AvatarLink/styles.js +5 -5
- package/dist/components/AvatarLink/types.d.cts +7 -0
- package/dist/components/AvatarLink/types.d.ts +7 -0
- package/dist/components/Button/Button.cjs +22 -33
- package/dist/components/Button/Button.d.cts +13 -0
- package/dist/components/Button/Button.d.ts +13 -0
- package/dist/components/Button/Button.js +22 -15
- package/dist/components/Button/styles.cjs +11 -12
- package/dist/components/Button/styles.d.cts +9 -0
- package/dist/components/Button/styles.d.ts +9 -0
- package/dist/components/Button/styles.js +6 -6
- package/dist/components/Button/types.d.cts +22 -0
- package/dist/components/Button/types.d.ts +22 -0
- package/dist/components/Byline/Byline.cjs +333 -366
- package/dist/components/Byline/Byline.d.cts +87 -0
- package/dist/{types/components → components}/Byline/Byline.d.ts +30 -26
- package/dist/components/Byline/Byline.js +331 -270
- package/dist/components/Byline/Preview.cjs +32 -42
- package/dist/components/Byline/Preview.js +31 -23
- package/dist/components/Byline/lib.cjs +152 -216
- package/dist/components/Byline/lib.d.cts +23 -0
- package/dist/components/Byline/lib.d.ts +24 -0
- package/dist/components/Byline/lib.js +153 -163
- package/dist/components/Byline/placeholder.cjs +15 -24
- package/dist/components/Byline/placeholder.js +14 -22
- package/dist/components/Byline/plugins.cjs +89 -120
- package/dist/components/Byline/plugins.js +87 -110
- package/dist/components/Byline/schema.cjs +45 -65
- package/dist/components/Byline/schema.js +45 -58
- package/dist/components/Byline/styles.cjs +19 -20
- package/dist/components/Byline/styles.js +13 -13
- package/dist/components/Byline/theme.d.cts +7 -0
- package/dist/components/Byline/theme.d.ts +7 -0
- package/dist/components/Checkbox/Checkbox.cjs +33 -52
- package/dist/components/Checkbox/Checkbox.d.cts +13 -0
- package/dist/components/Checkbox/Checkbox.d.ts +13 -0
- package/dist/components/Checkbox/Checkbox.js +33 -16
- package/dist/components/Checkbox/CheckboxGroup.cjs +30 -33
- package/dist/components/Checkbox/CheckboxGroup.d.cts +10 -0
- package/dist/components/Checkbox/CheckboxGroup.d.ts +10 -0
- package/dist/components/Checkbox/CheckboxGroup.js +29 -25
- package/dist/components/Checkbox/styles.cjs +13 -17
- package/dist/components/Checkbox/styles.d.cts +9 -0
- package/dist/components/Checkbox/styles.d.ts +9 -0
- package/dist/components/Checkbox/styles.js +8 -8
- package/dist/components/Checkbox/types.d.cts +15 -0
- package/dist/components/Checkbox/types.d.ts +15 -0
- package/dist/components/DatePicker/DatePicker.cjs +156 -149
- package/dist/components/DatePicker/DatePicker.d.cts +12 -0
- package/dist/components/DatePicker/DatePicker.d.ts +12 -0
- package/dist/components/DatePicker/DatePicker.js +160 -114
- package/dist/components/DatePicker/styles.cjs +15 -20
- package/dist/components/DatePicker/styles.d.cts +8 -0
- package/dist/components/DatePicker/styles.d.ts +8 -0
- package/dist/components/DatePicker/styles.js +11 -11
- package/dist/components/DatePicker/types.d.cts +23 -0
- package/dist/components/DatePicker/types.d.ts +23 -0
- package/dist/components/Favicon/Favicon.cjs +40 -44
- package/dist/components/Favicon/Favicon.d.cts +6 -0
- package/dist/components/Favicon/Favicon.d.ts +6 -0
- package/dist/components/Favicon/Favicon.js +39 -27
- package/dist/components/Favicon/styles.cjs +11 -12
- package/dist/components/Favicon/styles.d.cts +9 -0
- package/dist/components/Favicon/styles.d.ts +9 -0
- package/dist/components/Favicon/styles.js +7 -7
- package/dist/components/Favicon/types.d.cts +41 -0
- package/dist/components/Favicon/types.d.ts +41 -0
- package/dist/components/Form/Form.cjs +35 -45
- package/dist/components/Form/Form.js +33 -14
- package/dist/components/Form/styles.cjs +16 -24
- package/dist/components/Form/styles.d.cts +8 -0
- package/dist/components/Form/styles.d.ts +8 -0
- package/dist/components/Form/styles.js +8 -8
- package/dist/components/Form/types.cjs +13 -10
- package/dist/components/Form/types.d.cts +38 -0
- package/dist/components/Form/types.d.ts +38 -0
- package/dist/components/Form/types.js +12 -8
- package/dist/components/Grid/Grid.cjs +21 -33
- package/dist/components/Grid/Grid.d.cts +20 -0
- package/dist/components/Grid/Grid.d.ts +20 -0
- package/dist/components/Grid/Grid.js +18 -9
- package/dist/components/Grid/styles.cjs +65 -55
- package/dist/components/Grid/styles.d.cts +9 -0
- package/dist/components/Grid/styles.d.ts +9 -0
- package/dist/components/Grid/styles.js +56 -33
- package/dist/components/Grid/types.d.cts +29 -0
- package/dist/components/Grid/types.d.ts +29 -0
- package/dist/components/Icon/Icon.cjs +34 -41
- package/dist/components/Icon/Icon.d.cts +15 -0
- package/dist/components/Icon/Icon.d.ts +15 -0
- package/dist/components/Icon/Icon.js +32 -13
- package/dist/components/Icon/Styles.cjs +22 -0
- package/dist/components/Icon/Styles.d.cts +7 -0
- package/dist/components/Icon/Styles.d.ts +7 -0
- package/dist/components/Icon/{styles.js → Styles.js} +6 -6
- package/dist/components/Icon/types.d.cts +31 -0
- package/dist/components/Icon/types.d.ts +31 -0
- package/dist/components/IconButton/IconButton.cjs +30 -43
- package/dist/components/IconButton/IconButton.d.cts +14 -0
- package/dist/components/IconButton/IconButton.d.ts +14 -0
- package/dist/components/IconButton/IconButton.js +28 -23
- package/dist/components/IconButton/styles.cjs +5 -7
- package/dist/components/IconButton/styles.d.cts +6 -0
- package/dist/components/IconButton/styles.d.ts +6 -0
- package/dist/components/IconButton/styles.js +3 -3
- package/dist/components/IconButton/types.d.cts +31 -0
- package/dist/components/IconButton/types.d.ts +31 -0
- package/dist/components/IconLinkButton/IconLinkButton.cjs +30 -40
- package/dist/components/IconLinkButton/IconLinkButton.d.cts +14 -0
- package/dist/components/IconLinkButton/IconLinkButton.d.ts +14 -0
- package/dist/components/IconLinkButton/IconLinkButton.js +28 -20
- package/dist/components/IconLinkButton/styles.cjs +5 -7
- package/dist/components/IconLinkButton/styles.d.cts +6 -0
- package/dist/components/IconLinkButton/styles.d.ts +6 -0
- package/dist/components/IconLinkButton/styles.js +3 -3
- package/dist/components/IconLinkButton/types.d.cts +31 -0
- package/dist/components/IconLinkButton/types.d.ts +31 -0
- package/dist/components/InlineMessage/InlineMessage.cjs +34 -62
- package/dist/components/InlineMessage/InlineMessage.d.cts +15 -0
- package/dist/components/InlineMessage/InlineMessage.d.ts +15 -0
- package/dist/components/InlineMessage/InlineMessage.js +32 -24
- package/dist/components/InlineMessage/styles.cjs +8 -9
- package/dist/components/InlineMessage/styles.d.cts +9 -0
- package/dist/components/InlineMessage/styles.d.ts +9 -0
- package/dist/components/InlineMessage/styles.js +6 -6
- package/dist/components/InlineMessage/types.d.cts +25 -0
- package/dist/components/InlineMessage/types.d.ts +25 -0
- package/dist/components/IntendedAudienceSignifier/FlagIcons.cjs +113 -112
- package/dist/components/IntendedAudienceSignifier/FlagIcons.js +112 -8
- package/dist/components/IntendedAudienceSignifier/IntendedAudienceSignifier.cjs +55 -92
- package/dist/components/IntendedAudienceSignifier/IntendedAudienceSignifier.d.cts +13 -0
- package/dist/components/IntendedAudienceSignifier/IntendedAudienceSignifier.d.ts +13 -0
- package/dist/components/IntendedAudienceSignifier/IntendedAudienceSignifier.js +54 -61
- package/dist/components/IntendedAudienceSignifier/styles.cjs +9 -10
- package/dist/components/IntendedAudienceSignifier/styles.d.cts +8 -0
- package/dist/components/IntendedAudienceSignifier/styles.d.ts +8 -0
- package/dist/components/IntendedAudienceSignifier/styles.js +4 -4
- package/dist/components/IntendedAudienceSignifier/types.d.cts +11 -0
- package/dist/components/IntendedAudienceSignifier/types.d.ts +11 -0
- package/dist/components/Layout/Layout.cjs +85 -71
- package/dist/components/Layout/Layout.d.cts +14 -0
- package/dist/components/Layout/Layout.d.ts +14 -0
- package/dist/components/Layout/Layout.js +79 -21
- package/dist/components/Layout/styles.cjs +26 -29
- package/dist/components/Layout/styles.d.cts +13 -0
- package/dist/components/Layout/styles.d.ts +13 -0
- package/dist/components/Layout/styles.js +16 -18
- package/dist/components/Layout/types.d.cts +34 -0
- package/dist/components/Layout/types.d.ts +34 -0
- package/dist/components/Link/Link.cjs +21 -35
- package/dist/components/Link/Link.d.cts +13 -0
- package/dist/components/Link/Link.d.ts +13 -0
- package/dist/components/Link/Link.js +21 -16
- package/dist/components/Link/styles.cjs +7 -8
- package/dist/components/Link/styles.d.cts +9 -0
- package/dist/components/Link/styles.d.ts +9 -0
- package/dist/components/Link/styles.js +5 -5
- package/dist/components/Link/types.d.cts +15 -0
- package/dist/components/Link/types.d.ts +15 -0
- package/dist/components/LinkButton/LinkButton.cjs +22 -33
- package/dist/components/LinkButton/LinkButton.d.cts +13 -0
- package/dist/components/LinkButton/LinkButton.d.ts +13 -0
- package/dist/components/LinkButton/LinkButton.js +20 -13
- package/dist/components/LinkButton/Styles.cjs +7 -0
- package/dist/components/LinkButton/Styles.d.cts +6 -0
- package/dist/components/LinkButton/Styles.d.ts +6 -0
- package/dist/components/LinkButton/{styles.js → Styles.js} +3 -3
- package/dist/components/LinkButton/types.d.cts +22 -0
- package/dist/components/LinkButton/types.d.ts +22 -0
- package/dist/components/Menu/Menu.cjs +119 -186
- package/dist/components/Menu/Menu.d.cts +41 -0
- package/dist/components/Menu/Menu.d.ts +41 -0
- package/dist/components/Menu/Menu.js +117 -61
- package/dist/components/Menu/styles.cjs +24 -25
- package/dist/components/Menu/styles.d.cts +17 -0
- package/dist/components/Menu/styles.d.ts +17 -0
- package/dist/components/Menu/styles.js +5 -5
- package/dist/components/Menu/types.d.cts +67 -0
- package/dist/components/Menu/types.d.ts +67 -0
- package/dist/components/RadioGroup/RadioGroup.cjs +44 -61
- package/dist/components/RadioGroup/RadioGroup.d.cts +19 -0
- package/dist/components/RadioGroup/RadioGroup.d.ts +19 -0
- package/dist/components/RadioGroup/RadioGroup.js +43 -29
- package/dist/components/RadioGroup/styles.cjs +11 -12
- package/dist/components/RadioGroup/styles.d.cts +8 -0
- package/dist/components/RadioGroup/styles.d.ts +8 -0
- package/dist/components/RadioGroup/styles.js +8 -8
- package/dist/components/RadioGroup/types.d.cts +14 -0
- package/dist/components/RadioGroup/types.d.ts +14 -0
- package/dist/components/Select/Select.cjs +43 -51
- package/dist/components/Select/Select.d.cts +15 -0
- package/dist/components/Select/Select.d.ts +15 -0
- package/dist/components/Select/Select.js +43 -35
- package/dist/components/Select/styles.cjs +13 -14
- package/dist/components/Select/styles.d.cts +9 -0
- package/dist/components/Select/styles.d.ts +9 -0
- package/dist/components/Select/styles.js +9 -9
- package/dist/components/Select/types.d.cts +10 -0
- package/dist/components/Select/types.d.ts +10 -0
- package/dist/components/TagPicker/Autocomplete.cjs +146 -102
- package/dist/components/TagPicker/Autocomplete.d.cts +134 -0
- package/dist/{types/components → components}/TagPicker/Autocomplete.d.ts +49 -32
- package/dist/components/TagPicker/Autocomplete.js +145 -21
- package/dist/components/TagPicker/TagAutocomplete.cjs +116 -37
- package/dist/components/TagPicker/TagAutocomplete.d.cts +144 -0
- package/dist/{types/components → components}/TagPicker/TagAutocomplete.d.ts +46 -30
- package/dist/components/TagPicker/TagAutocomplete.js +114 -5
- package/dist/components/TagPicker/TagTable.cjs +212 -188
- package/dist/components/TagPicker/TagTable.d.cts +143 -0
- package/dist/{types/components → components}/TagPicker/TagTable.d.ts +54 -37
- package/dist/components/TagPicker/TagTable.js +210 -75
- package/dist/components/TagPicker/styles.cjs +29 -30
- package/dist/components/TagPicker/styles.js +26 -26
- package/dist/components/TagPicker/types.d.cts +11 -0
- package/dist/components/TagPicker/types.d.ts +11 -0
- package/dist/components/TextArea/TextArea.cjs +23 -33
- package/dist/components/TextArea/TextArea.d.cts +12 -0
- package/dist/components/TextArea/TextArea.d.ts +12 -0
- package/dist/components/TextArea/TextArea.js +23 -11
- package/dist/components/TextArea/styles.cjs +10 -11
- package/dist/components/TextArea/styles.d.cts +8 -0
- package/dist/components/TextArea/styles.d.ts +8 -0
- package/dist/components/TextArea/styles.js +6 -6
- package/dist/components/TextArea/types.d.cts +11 -0
- package/dist/components/TextArea/types.d.ts +11 -0
- package/dist/components/TextInput/TextInput.cjs +23 -33
- package/dist/components/TextInput/TextInput.d.cts +12 -0
- package/dist/components/TextInput/TextInput.d.ts +12 -0
- package/dist/components/TextInput/TextInput.js +21 -9
- package/dist/components/TextInput/styles.cjs +10 -11
- package/dist/components/TextInput/styles.d.cts +8 -0
- package/dist/components/TextInput/styles.d.ts +8 -0
- package/dist/components/TextInput/styles.js +6 -6
- package/dist/components/TextInput/types.d.cts +11 -0
- package/dist/components/TextInput/types.d.ts +11 -0
- package/dist/components/TopBar/TopBar.cjs +150 -223
- package/dist/components/TopBar/TopBar.d.cts +28 -0
- package/dist/components/TopBar/TopBar.d.ts +28 -0
- package/dist/components/TopBar/TopBar.js +143 -101
- package/dist/components/TopBar/TopBarItem/TopBarItem.cjs +13 -30
- package/dist/components/TopBar/TopBarItem/TopBarItem.d.cts +15 -0
- package/dist/components/TopBar/TopBarItem/TopBarItem.d.ts +15 -0
- package/dist/components/TopBar/TopBarItem/TopBarItem.js +11 -10
- package/dist/components/TopBar/TopBarItem/styles.cjs +9 -10
- package/dist/components/TopBar/TopBarItem/styles.d.cts +9 -0
- package/dist/components/TopBar/TopBarItem/styles.d.ts +9 -0
- package/dist/components/TopBar/TopBarItem/styles.js +5 -5
- package/dist/components/TopBar/TopBarItem/types.d.cts +23 -0
- package/dist/components/TopBar/TopBarItem/types.d.ts +23 -0
- package/dist/components/TopBar/TopBarNavigation/TopBarNavigation.cjs +68 -83
- package/dist/components/TopBar/TopBarNavigation/TopBarNavigation.d.cts +21 -0
- package/dist/components/TopBar/TopBarNavigation/TopBarNavigation.d.ts +21 -0
- package/dist/components/TopBar/TopBarNavigation/TopBarNavigation.js +66 -21
- package/dist/components/TopBar/TopBarNavigation/styles.cjs +19 -20
- package/dist/components/TopBar/TopBarNavigation/styles.d.cts +9 -0
- package/dist/components/TopBar/TopBarNavigation/styles.d.ts +9 -0
- package/dist/components/TopBar/TopBarNavigation/styles.js +8 -8
- package/dist/components/TopBar/TopBarNavigation/types.d.cts +53 -0
- package/dist/components/TopBar/TopBarNavigation/types.d.ts +53 -0
- package/dist/components/TopBar/TopBarToolName/TopBarToolName.cjs +65 -89
- package/dist/components/TopBar/TopBarToolName/TopBarToolName.d.cts +10 -0
- package/dist/components/TopBar/TopBarToolName/TopBarToolName.d.ts +10 -0
- package/dist/components/TopBar/TopBarToolName/TopBarToolName.js +62 -24
- package/dist/components/TopBar/TopBarToolName/styles.cjs +28 -33
- package/dist/components/TopBar/TopBarToolName/styles.d.cts +9 -0
- package/dist/components/TopBar/TopBarToolName/styles.d.ts +9 -0
- package/dist/components/TopBar/TopBarToolName/styles.js +15 -15
- package/dist/components/TopBar/TopBarToolName/types.d.cts +44 -0
- package/dist/components/TopBar/TopBarToolName/types.d.ts +44 -0
- package/dist/components/TopBar/styles.cjs +18 -22
- package/dist/components/TopBar/styles.d.cts +9 -0
- package/dist/components/TopBar/styles.d.ts +9 -0
- package/dist/components/TopBar/styles.js +10 -10
- package/dist/components/TopBar/types.d.cts +16 -0
- package/dist/components/TopBar/types.d.ts +16 -0
- package/dist/components/Typography/Typography.cjs +11 -24
- package/dist/components/Typography/Typography.d.cts +17 -0
- package/dist/components/Typography/Typography.d.ts +17 -0
- package/dist/components/Typography/Typography.js +9 -10
- package/dist/components/Typography/styles.cjs +10 -11
- package/dist/components/Typography/styles.d.cts +9 -0
- package/dist/components/Typography/styles.d.ts +9 -0
- package/dist/components/Typography/styles.js +6 -6
- package/dist/components/Typography/types.d.cts +18 -0
- package/dist/components/Typography/types.d.ts +18 -0
- package/dist/components/UserMenu/PreferenceRadioGroup.cjs +34 -51
- package/dist/components/UserMenu/PreferenceRadioGroup.js +32 -16
- package/dist/components/UserMenu/TitleText.cjs +35 -26
- package/dist/components/UserMenu/TitleText.js +33 -19
- package/dist/components/UserMenu/UserMenu.cjs +51 -58
- package/dist/components/UserMenu/UserMenu.d.cts +30 -0
- package/dist/components/UserMenu/UserMenu.d.ts +30 -0
- package/dist/components/UserMenu/UserMenu.js +49 -8
- package/dist/components/UserMenu/defaultOptions.cjs +101 -0
- package/dist/components/UserMenu/defaultOptions.js +99 -0
- package/dist/components/UserMenu/model.d.cts +13 -0
- package/dist/components/UserMenu/model.d.ts +13 -0
- package/dist/components/UserMenu/styles.cjs +18 -19
- package/dist/components/UserMenu/styles.js +17 -17
- package/dist/components/UserMenu/types.d.cts +8 -0
- package/dist/components/UserMenu/types.d.ts +8 -0
- package/dist/fonts/materialSymbolsTypes.d.cts +5 -0
- package/dist/fonts/materialSymbolsTypes.d.ts +5 -0
- package/dist/index.cjs +71 -75
- package/dist/index.d.cts +36 -0
- package/dist/index.d.ts +36 -0
- package/dist/index.js +36 -35
- package/dist/styleD/build/typescript/base/colors.cjs +143 -141
- package/dist/styleD/build/typescript/base/colors.d.cts +147 -0
- package/dist/styleD/build/typescript/base/colors.d.ts +147 -0
- package/dist/styleD/build/typescript/base/colors.js +143 -139
- package/dist/styleD/build/typescript/base/radius.cjs +11 -9
- package/dist/styleD/build/typescript/base/radius.d.cts +15 -0
- package/dist/styleD/build/typescript/base/radius.d.ts +15 -0
- package/dist/styleD/build/typescript/base/radius.js +11 -7
- package/dist/styleD/build/typescript/base/sizing.cjs +25 -23
- package/dist/styleD/build/typescript/base/sizing.d.cts +29 -0
- package/dist/styleD/build/typescript/base/sizing.d.ts +29 -0
- package/dist/styleD/build/typescript/base/sizing.js +25 -21
- package/dist/styleD/build/typescript/base/spacing.cjs +39 -37
- package/dist/styleD/build/typescript/base/spacing.d.cts +43 -0
- package/dist/styleD/build/typescript/base/spacing.d.ts +43 -0
- package/dist/styleD/build/typescript/base/spacing.js +39 -35
- package/dist/styleD/build/typescript/base/typography.cjs +78 -78
- package/dist/styleD/build/typescript/base/typography.d.cts +84 -0
- package/dist/styleD/build/typescript/base/typography.d.ts +84 -0
- package/dist/styleD/build/typescript/base/typography.js +78 -76
- package/dist/styleD/build/typescript/component/alertBanner.cjs +37 -45
- package/dist/styleD/build/typescript/component/alertBanner.d.cts +51 -0
- package/dist/styleD/build/typescript/component/alertBanner.d.ts +51 -0
- package/dist/styleD/build/typescript/component/alertBanner.js +37 -43
- package/dist/styleD/build/typescript/component/autocomplete.cjs +31 -29
- package/dist/styleD/build/typescript/component/autocomplete.d.cts +35 -0
- package/dist/styleD/build/typescript/component/autocomplete.d.ts +35 -0
- package/dist/styleD/build/typescript/component/autocomplete.js +31 -27
- package/dist/styleD/build/typescript/component/avatar.cjs +124 -168
- package/dist/styleD/build/typescript/component/avatar.d.cts +174 -0
- package/dist/styleD/build/typescript/component/avatar.d.ts +174 -0
- package/dist/styleD/build/typescript/component/avatar.js +124 -166
- package/dist/styleD/build/typescript/component/button.cjs +323 -395
- package/dist/styleD/build/typescript/component/button.d.cts +401 -0
- package/dist/styleD/build/typescript/component/button.d.ts +401 -0
- package/dist/styleD/build/typescript/component/button.js +323 -393
- package/dist/styleD/build/typescript/component/byline.cjs +41 -39
- package/dist/styleD/build/typescript/component/byline.d.cts +45 -0
- package/dist/styleD/build/typescript/component/byline.d.ts +45 -0
- package/dist/styleD/build/typescript/component/byline.js +41 -37
- package/dist/styleD/build/typescript/component/checkbox.cjs +87 -97
- package/dist/styleD/build/typescript/component/checkbox.d.cts +103 -0
- package/dist/styleD/build/typescript/component/checkbox.d.ts +103 -0
- package/dist/styleD/build/typescript/component/checkbox.js +87 -95
- package/dist/styleD/build/typescript/component/datePicker.cjs +146 -182
- package/dist/styleD/build/typescript/component/datePicker.d.cts +188 -0
- package/dist/styleD/build/typescript/component/datePicker.d.ts +188 -0
- package/dist/styleD/build/typescript/component/datePicker.js +146 -180
- package/dist/styleD/build/typescript/component/favicon.cjs +19 -17
- package/dist/styleD/build/typescript/component/favicon.d.cts +23 -0
- package/dist/styleD/build/typescript/component/favicon.d.ts +23 -0
- package/dist/styleD/build/typescript/component/favicon.js +19 -15
- package/dist/styleD/build/typescript/component/form.cjs +38 -50
- package/dist/styleD/build/typescript/component/form.d.cts +54 -0
- package/dist/styleD/build/typescript/component/form.d.ts +54 -0
- package/dist/styleD/build/typescript/component/form.js +38 -48
- package/dist/styleD/build/typescript/component/grid.cjs +28 -26
- package/dist/styleD/build/typescript/component/grid.d.cts +32 -0
- package/dist/styleD/build/typescript/component/grid.d.ts +32 -0
- package/dist/styleD/build/typescript/component/grid.js +28 -24
- package/dist/styleD/build/typescript/component/icon.cjs +12 -16
- package/dist/styleD/build/typescript/component/icon.d.cts +22 -0
- package/dist/styleD/build/typescript/component/icon.d.ts +22 -0
- package/dist/styleD/build/typescript/component/icon.js +12 -14
- package/dist/styleD/build/typescript/component/inlineMessage.cjs +22 -26
- package/dist/styleD/build/typescript/component/inlineMessage.d.cts +32 -0
- package/dist/styleD/build/typescript/component/inlineMessage.d.ts +32 -0
- package/dist/styleD/build/typescript/component/inlineMessage.js +22 -24
- package/dist/styleD/build/typescript/component/intendedAudienceSignifier.cjs +31 -29
- package/dist/styleD/build/typescript/component/intendedAudienceSignifier.d.cts +35 -0
- package/dist/styleD/build/typescript/component/intendedAudienceSignifier.d.ts +35 -0
- package/dist/styleD/build/typescript/component/intendedAudienceSignifier.js +31 -27
- package/dist/styleD/build/typescript/component/layout.cjs +43 -47
- package/dist/styleD/build/typescript/component/layout.d.cts +53 -0
- package/dist/styleD/build/typescript/component/layout.d.ts +53 -0
- package/dist/styleD/build/typescript/component/layout.js +43 -45
- package/dist/styleD/build/typescript/component/link.cjs +15 -23
- package/dist/styleD/build/typescript/component/link.d.cts +27 -0
- package/dist/styleD/build/typescript/component/link.d.ts +27 -0
- package/dist/styleD/build/typescript/component/link.js +15 -21
- package/dist/styleD/build/typescript/component/menu.cjs +130 -142
- package/dist/styleD/build/typescript/component/menu.d.cts +148 -0
- package/dist/styleD/build/typescript/component/menu.d.ts +148 -0
- package/dist/styleD/build/typescript/component/menu.js +130 -140
- package/dist/styleD/build/typescript/component/radioGroup.cjs +74 -82
- package/dist/styleD/build/typescript/component/radioGroup.d.cts +88 -0
- package/dist/styleD/build/typescript/component/radioGroup.d.ts +88 -0
- package/dist/styleD/build/typescript/component/radioGroup.js +74 -80
- package/dist/styleD/build/typescript/component/select.cjs +63 -67
- package/dist/styleD/build/typescript/component/select.d.cts +71 -0
- package/dist/styleD/build/typescript/component/select.d.ts +71 -0
- package/dist/styleD/build/typescript/component/select.js +63 -65
- package/dist/styleD/build/typescript/component/tagTable.cjs +52 -50
- package/dist/styleD/build/typescript/component/tagTable.d.cts +56 -0
- package/dist/styleD/build/typescript/component/tagTable.d.ts +56 -0
- package/dist/styleD/build/typescript/component/tagTable.js +52 -48
- package/dist/styleD/build/typescript/component/textArea.cjs +39 -45
- package/dist/styleD/build/typescript/component/textArea.d.cts +51 -0
- package/dist/styleD/build/typescript/component/textArea.d.ts +51 -0
- package/dist/styleD/build/typescript/component/textArea.js +39 -43
- package/dist/styleD/build/typescript/component/textInput.cjs +44 -46
- package/dist/styleD/build/typescript/component/textInput.d.cts +52 -0
- package/dist/styleD/build/typescript/component/textInput.d.ts +52 -0
- package/dist/styleD/build/typescript/component/textInput.js +44 -44
- package/dist/styleD/build/typescript/component/topBar.cjs +166 -192
- package/dist/styleD/build/typescript/component/topBar.d.cts +198 -0
- package/dist/styleD/build/typescript/component/topBar.d.ts +198 -0
- package/dist/styleD/build/typescript/component/topBar.js +166 -190
- package/dist/styleD/build/typescript/component/typography.cjs +6 -6
- package/dist/styleD/build/typescript/component/typography.d.cts +10 -0
- package/dist/styleD/build/typescript/component/typography.d.ts +10 -0
- package/dist/styleD/build/typescript/component/typography.js +6 -4
- package/dist/styleD/build/typescript/component/userMenu.cjs +36 -34
- package/dist/styleD/build/typescript/component/userMenu.d.cts +40 -0
- package/dist/styleD/build/typescript/component/userMenu.d.ts +40 -0
- package/dist/styleD/build/typescript/component/userMenu.js +36 -32
- package/dist/styleD/build/typescript/semantic/breakpoints.cjs +8 -6
- package/dist/styleD/build/typescript/semantic/breakpoints.d.cts +12 -0
- package/dist/styleD/build/typescript/semantic/breakpoints.d.ts +12 -0
- package/dist/styleD/build/typescript/semantic/breakpoints.js +8 -4
- package/dist/styleD/build/typescript/semantic/colors.cjs +82 -80
- package/dist/styleD/build/typescript/semantic/colors.d.cts +86 -0
- package/dist/styleD/build/typescript/semantic/colors.d.ts +86 -0
- package/dist/styleD/build/typescript/semantic/colors.js +82 -78
- package/dist/styleD/build/typescript/semantic/grid.cjs +20 -18
- package/dist/styleD/build/typescript/semantic/grid.d.cts +24 -0
- package/dist/styleD/build/typescript/semantic/grid.d.ts +24 -0
- package/dist/styleD/build/typescript/semantic/grid.js +20 -16
- package/dist/styleD/build/typescript/semantic/shadow.cjs +6 -6
- package/dist/styleD/build/typescript/semantic/shadow.d.cts +10 -0
- package/dist/styleD/build/typescript/semantic/shadow.d.ts +10 -0
- package/dist/styleD/build/typescript/semantic/shadow.js +6 -4
- package/dist/styleD/build/typescript/semantic/sizing.cjs +28 -28
- package/dist/styleD/build/typescript/semantic/sizing.d.cts +34 -0
- package/dist/styleD/build/typescript/semantic/sizing.d.ts +34 -0
- package/dist/styleD/build/typescript/semantic/sizing.js +28 -26
- package/dist/styleD/build/typescript/semantic/typography.cjs +380 -378
- package/dist/styleD/build/typescript/semantic/typography.d.cts +384 -0
- package/dist/styleD/build/typescript/semantic/typography.d.ts +384 -0
- package/dist/styleD/build/typescript/semantic/typography.js +380 -376
- package/dist/styleD/utils/semantic/mq.cjs +48 -31
- package/dist/styleD/utils/semantic/mq.d.cts +56 -0
- package/dist/{types/styleD → styleD}/utils/semantic/mq.d.ts +18 -14
- package/dist/styleD/utils/semantic/mq.js +48 -21
- package/dist/styleD/utils/semantic/typography.cjs +10 -11
- package/dist/styleD/utils/semantic/typography.d.cts +12 -0
- package/dist/styleD/utils/semantic/typography.d.ts +12 -0
- package/dist/styleD/utils/semantic/typography.js +9 -9
- package/dist/util/mergeDeep.cjs +11 -15
- package/dist/util/mergeDeep.js +11 -13
- package/dist/util/reset.cjs +4 -10
- package/dist/util/reset.d.cts +4 -0
- package/dist/util/reset.d.ts +4 -0
- package/dist/util/reset.js +4 -8
- package/dist/util/reset2.cjs +8 -0
- package/dist/util/reset2.js +8 -0
- package/dist/util/types.d.cts +34 -0
- package/dist/util/types.d.ts +34 -0
- package/dist/util/useResize.cjs +24 -31
- package/dist/util/useResize.js +22 -28
- package/dist/utils.cjs +10 -14
- package/dist/utils.d.cts +4 -0
- package/dist/utils.d.ts +4 -0
- package/dist/utils.js +4 -3
- package/package.json +278 -131
- package/dist/components/Icon/styles.cjs +0 -27
- package/dist/components/LinkButton/styles.cjs +0 -9
- package/dist/components/UserMenu/default-options.cjs +0 -109
- package/dist/components/UserMenu/default-options.js +0 -105
- package/dist/types/AlertBanner.d.ts +0 -19
- package/dist/types/Avatar.d.ts +0 -19
- package/dist/types/AvatarButton.d.ts +0 -18
- package/dist/types/AvatarLink.d.ts +0 -18
- package/dist/types/Button.d.ts +0 -20
- package/dist/types/Byline.d.ts +0 -25
- package/dist/types/Checkbox.d.ts +0 -21
- package/dist/types/DatePicker.d.ts +0 -21
- package/dist/types/Favicon.d.ts +0 -19
- package/dist/types/Form.d.ts +0 -8
- package/dist/types/Grid.d.ts +0 -20
- package/dist/types/Icon.d.ts +0 -27
- package/dist/types/IconButton.d.ts +0 -20
- package/dist/types/IconLinkButton.d.ts +0 -20
- package/dist/types/InlineMessage.d.ts +0 -19
- package/dist/types/IntendedAudienceSignifier.d.ts +0 -19
- package/dist/types/Layout.d.ts +0 -20
- package/dist/types/Link.d.ts +0 -19
- package/dist/types/LinkButton.d.ts +0 -20
- package/dist/types/Menu.d.ts +0 -20
- package/dist/types/RadioGroup.d.ts +0 -20
- package/dist/types/Select.d.ts +0 -20
- package/dist/types/TagPicker.d.ts +0 -22
- package/dist/types/TextArea.d.ts +0 -20
- package/dist/types/TextInput.d.ts +0 -20
- package/dist/types/TopBar.d.ts +0 -29
- package/dist/types/Typography.d.ts +0 -19
- package/dist/types/UserMenu.d.ts +0 -18
- package/dist/types/components/AlertBanner/AlertBanner.d.ts +0 -2
- package/dist/types/components/AlertBanner/sandbox.d.ts +0 -5
- package/dist/types/components/AlertBanner/styles.d.ts +0 -9
- package/dist/types/components/AlertBanner/types.d.ts +0 -27
- package/dist/types/components/Avatar/Avatar.d.ts +0 -2
- package/dist/types/components/Avatar/sandbox.d.ts +0 -5
- package/dist/types/components/Avatar/styles.d.ts +0 -9
- package/dist/types/components/Avatar/types.d.ts +0 -45
- package/dist/types/components/AvatarButton/AvatarButton.d.ts +0 -2
- package/dist/types/components/AvatarButton/sandbox.d.ts +0 -5
- package/dist/types/components/AvatarButton/styles.d.ts +0 -6
- package/dist/types/components/AvatarButton/types.d.ts +0 -3
- package/dist/types/components/AvatarLink/AvatarLink.d.ts +0 -2
- package/dist/types/components/AvatarLink/sandbox.d.ts +0 -5
- package/dist/types/components/AvatarLink/styles.d.ts +0 -6
- package/dist/types/components/AvatarLink/types.d.ts +0 -3
- package/dist/types/components/Button/Button.d.ts +0 -2
- package/dist/types/components/Button/sandbox.d.ts +0 -5
- package/dist/types/components/Button/styles.d.ts +0 -8
- package/dist/types/components/Button/types.d.ts +0 -18
- package/dist/types/components/Byline/Preview.d.ts +0 -4
- package/dist/types/components/Byline/contributors-fixture.d.ts +0 -1
- package/dist/types/components/Byline/lib.d.ts +0 -48
- package/dist/types/components/Byline/lib.test.d.ts +0 -1
- package/dist/types/components/Byline/placeholder.d.ts +0 -2
- package/dist/types/components/Byline/plugins.d.ts +0 -4
- package/dist/types/components/Byline/schema.d.ts +0 -2
- package/dist/types/components/Byline/styles.d.ts +0 -13
- package/dist/types/components/Byline/theme.d.ts +0 -3
- package/dist/types/components/Checkbox/Checkbox.d.ts +0 -2
- package/dist/types/components/Checkbox/CheckboxGroup.d.ts +0 -2
- package/dist/types/components/Checkbox/CheckboxGroupSandbox.d.ts +0 -5
- package/dist/types/components/Checkbox/CheckboxSandbox.d.ts +0 -5
- package/dist/types/components/Checkbox/styles.d.ts +0 -10
- package/dist/types/components/Checkbox/types.d.ts +0 -11
- package/dist/types/components/DatePicker/DatePicker.d.ts +0 -2
- package/dist/types/components/DatePicker/sandbox.d.ts +0 -2
- package/dist/types/components/DatePicker/styles.d.ts +0 -11
- package/dist/types/components/DatePicker/types.d.ts +0 -21
- package/dist/types/components/Favicon/Favicon.d.ts +0 -2
- package/dist/types/components/Favicon/sandbox.d.ts +0 -5
- package/dist/types/components/Favicon/styles.d.ts +0 -9
- package/dist/types/components/Favicon/types.d.ts +0 -38
- package/dist/types/components/Form/Form.d.ts +0 -5
- package/dist/types/components/Form/styles.d.ts +0 -13
- package/dist/types/components/Form/types.d.ts +0 -40
- package/dist/types/components/Grid/Grid.d.ts +0 -3
- package/dist/types/components/Grid/sandbox.d.ts +0 -5
- package/dist/types/components/Grid/styles.d.ts +0 -11
- package/dist/types/components/Grid/styles.test.d.ts +0 -1
- package/dist/types/components/Grid/types.d.ts +0 -25
- package/dist/types/components/Icon/Icon.d.ts +0 -2
- package/dist/types/components/Icon/sandbox.d.ts +0 -5
- package/dist/types/components/Icon/styles.d.ts +0 -9
- package/dist/types/components/Icon/types.d.ts +0 -28
- package/dist/types/components/IconButton/IconButton.d.ts +0 -2
- package/dist/types/components/IconButton/sandbox.d.ts +0 -5
- package/dist/types/components/IconButton/styles.d.ts +0 -398
- package/dist/types/components/IconButton/types.d.ts +0 -26
- package/dist/types/components/IconLinkButton/IconLinkButton.d.ts +0 -2
- package/dist/types/components/IconLinkButton/sandbox.d.ts +0 -5
- package/dist/types/components/IconLinkButton/styles.d.ts +0 -398
- package/dist/types/components/IconLinkButton/types.d.ts +0 -26
- package/dist/types/components/InlineMessage/InlineMessage.d.ts +0 -2
- package/dist/types/components/InlineMessage/sandbox.d.ts +0 -5
- package/dist/types/components/InlineMessage/styles.d.ts +0 -9
- package/dist/types/components/InlineMessage/types.d.ts +0 -21
- package/dist/types/components/IntendedAudienceSignifier/FlagIcons.d.ts +0 -5
- package/dist/types/components/IntendedAudienceSignifier/IntendedAudienceSignifier.d.ts +0 -2
- package/dist/types/components/IntendedAudienceSignifier/sandbox.d.ts +0 -5
- package/dist/types/components/IntendedAudienceSignifier/styles.d.ts +0 -8
- package/dist/types/components/IntendedAudienceSignifier/types.d.ts +0 -8
- package/dist/types/components/Layout/Layout.d.ts +0 -11
- package/dist/types/components/Layout/sandbox.d.ts +0 -5
- package/dist/types/components/Layout/styles.d.ts +0 -19
- package/dist/types/components/Layout/types.d.ts +0 -30
- package/dist/types/components/Link/Link.d.ts +0 -2
- package/dist/types/components/Link/sandbox.d.ts +0 -5
- package/dist/types/components/Link/styles.d.ts +0 -7
- package/dist/types/components/Link/types.d.ts +0 -11
- package/dist/types/components/LinkButton/LinkButton.d.ts +0 -2
- package/dist/types/components/LinkButton/sandbox.d.ts +0 -5
- package/dist/types/components/LinkButton/styles.d.ts +0 -398
- package/dist/types/components/LinkButton/types.d.ts +0 -18
- package/dist/types/components/Menu/Menu.d.ts +0 -7
- package/dist/types/components/Menu/sandbox.d.ts +0 -5
- package/dist/types/components/Menu/styles.d.ts +0 -28
- package/dist/types/components/Menu/types.d.ts +0 -63
- package/dist/types/components/RadioGroup/RadioGroup.d.ts +0 -3
- package/dist/types/components/RadioGroup/sandbox.d.ts +0 -5
- package/dist/types/components/RadioGroup/styles.d.ts +0 -9
- package/dist/types/components/RadioGroup/types.d.ts +0 -10
- package/dist/types/components/Select/Select.d.ts +0 -3
- package/dist/types/components/Select/sandbox.d.ts +0 -5
- package/dist/types/components/Select/styles.d.ts +0 -10
- package/dist/types/components/Select/types.d.ts +0 -9
- package/dist/types/components/TagPicker/example-tags.d.ts +0 -2
- package/dist/types/components/TagPicker/styles.d.ts +0 -16
- package/dist/types/components/TagPicker/types.d.ts +0 -64
- package/dist/types/components/TextArea/TextArea.d.ts +0 -2
- package/dist/types/components/TextArea/sandbox.d.ts +0 -5
- package/dist/types/components/TextArea/styles.d.ts +0 -7
- package/dist/types/components/TextArea/types.d.ts +0 -7
- package/dist/types/components/TextInput/TextInput.d.ts +0 -2
- package/dist/types/components/TextInput/sandbox.d.ts +0 -5
- package/dist/types/components/TextInput/styles.d.ts +0 -7
- package/dist/types/components/TextInput/types.d.ts +0 -7
- package/dist/types/components/TopBar/TopBar.d.ts +0 -11
- package/dist/types/components/TopBar/TopBarItem/TopBarItem.d.ts +0 -2
- package/dist/types/components/TopBar/TopBarItem/sandbox.d.ts +0 -5
- package/dist/types/components/TopBar/TopBarItem/styles.d.ts +0 -8
- package/dist/types/components/TopBar/TopBarItem/types.d.ts +0 -19
- package/dist/types/components/TopBar/TopBarNavigation/TopBarNavigation.d.ts +0 -2
- package/dist/types/components/TopBar/TopBarNavigation/sandbox.d.ts +0 -5
- package/dist/types/components/TopBar/TopBarNavigation/styles.d.ts +0 -12
- package/dist/types/components/TopBar/TopBarNavigation/types.d.ts +0 -49
- package/dist/types/components/TopBar/TopBarToolName/TopBarToolName.d.ts +0 -2
- package/dist/types/components/TopBar/TopBarToolName/sandbox.d.ts +0 -5
- package/dist/types/components/TopBar/TopBarToolName/styles.d.ts +0 -16
- package/dist/types/components/TopBar/TopBarToolName/types.d.ts +0 -40
- package/dist/types/components/TopBar/sandbox.d.ts +0 -5
- package/dist/types/components/TopBar/styles.d.ts +0 -15
- package/dist/types/components/TopBar/types.d.ts +0 -12
- package/dist/types/components/Typography/Typography.d.ts +0 -6
- package/dist/types/components/Typography/sandbox.d.ts +0 -5
- package/dist/types/components/Typography/styles.d.ts +0 -8
- package/dist/types/components/Typography/types.d.ts +0 -14
- package/dist/types/components/UserMenu/PreferenceRadioGroup.d.ts +0 -15
- package/dist/types/components/UserMenu/TitleText.d.ts +0 -6
- package/dist/types/components/UserMenu/UserMenu.d.ts +0 -17
- package/dist/types/components/UserMenu/default-options.d.ts +0 -5
- package/dist/types/components/UserMenu/model.d.ts +0 -9
- package/dist/types/components/UserMenu/styles.d.ts +0 -9
- package/dist/types/components/UserMenu/theme.d.ts +0 -3
- package/dist/types/components/UserMenu/types.d.ts +0 -5
- package/dist/types/fonts/material-symbols-types.d.ts +0 -3853
- package/dist/types/index.d.ts +0 -86
- package/dist/types/styleD/build/typescript/base/colors.d.ts +0 -144
- package/dist/types/styleD/build/typescript/base/radius.d.ts +0 -12
- package/dist/types/styleD/build/typescript/base/sizing.d.ts +0 -26
- package/dist/types/styleD/build/typescript/base/spacing.d.ts +0 -40
- package/dist/types/styleD/build/typescript/base/typography.d.ts +0 -81
- package/dist/types/styleD/build/typescript/component/alertBanner.d.ts +0 -48
- package/dist/types/styleD/build/typescript/component/autocomplete.d.ts +0 -32
- package/dist/types/styleD/build/typescript/component/avatar.d.ts +0 -171
- package/dist/types/styleD/build/typescript/component/button.d.ts +0 -398
- package/dist/types/styleD/build/typescript/component/byline.d.ts +0 -42
- package/dist/types/styleD/build/typescript/component/checkbox.d.ts +0 -100
- package/dist/types/styleD/build/typescript/component/datePicker.d.ts +0 -185
- package/dist/types/styleD/build/typescript/component/favicon.d.ts +0 -20
- package/dist/types/styleD/build/typescript/component/form.d.ts +0 -51
- package/dist/types/styleD/build/typescript/component/grid.d.ts +0 -29
- package/dist/types/styleD/build/typescript/component/icon.d.ts +0 -19
- package/dist/types/styleD/build/typescript/component/inlineMessage.d.ts +0 -29
- package/dist/types/styleD/build/typescript/component/intendedAudienceSignifier.d.ts +0 -32
- package/dist/types/styleD/build/typescript/component/layout.d.ts +0 -50
- package/dist/types/styleD/build/typescript/component/link.d.ts +0 -24
- package/dist/types/styleD/build/typescript/component/menu.d.ts +0 -145
- package/dist/types/styleD/build/typescript/component/radioGroup.d.ts +0 -85
- package/dist/types/styleD/build/typescript/component/select.d.ts +0 -68
- package/dist/types/styleD/build/typescript/component/tagTable.d.ts +0 -53
- package/dist/types/styleD/build/typescript/component/templateComponent.d.ts +0 -10
- package/dist/types/styleD/build/typescript/component/textArea.d.ts +0 -48
- package/dist/types/styleD/build/typescript/component/textInput.d.ts +0 -49
- package/dist/types/styleD/build/typescript/component/topBar.d.ts +0 -195
- package/dist/types/styleD/build/typescript/component/typography.d.ts +0 -7
- package/dist/types/styleD/build/typescript/component/userMenu.d.ts +0 -37
- package/dist/types/styleD/build/typescript/semantic/breakpoints.d.ts +0 -9
- package/dist/types/styleD/build/typescript/semantic/colors.d.ts +0 -83
- package/dist/types/styleD/build/typescript/semantic/grid.d.ts +0 -21
- package/dist/types/styleD/build/typescript/semantic/shadow.d.ts +0 -7
- package/dist/types/styleD/build/typescript/semantic/sizing.d.ts +0 -31
- package/dist/types/styleD/build/typescript/semantic/typography.d.ts +0 -381
- package/dist/types/styleD/stories/base/Radius.d.ts +0 -1
- package/dist/types/styleD/stories/base/Sizing.d.ts +0 -1
- package/dist/types/styleD/stories/base/Spacing.d.ts +0 -1
- package/dist/types/styleD/stories/base/Typography.d.ts +0 -1
- package/dist/types/styleD/stories/base/storybookColorPalette.d.ts +0 -19
- package/dist/types/styleD/stories/semantic/Breakpoints.d.ts +0 -15
- package/dist/types/styleD/stories/semantic/Shadow.d.ts +0 -1
- package/dist/types/styleD/stories/semantic/Sizing.d.ts +0 -1
- package/dist/types/styleD/stories/semantic/TypographyPresets.d.ts +0 -1
- package/dist/types/styleD/utils/semantic/mq.test.d.ts +0 -1
- package/dist/types/styleD/utils/semantic/typography.d.ts +0 -9
- package/dist/types/styleD/utils/semantic/typography.test.d.ts +0 -1
- package/dist/types/templates/component/TemplateComponent.d.ts +0 -2
- package/dist/types/templates/component/sandbox.d.ts +0 -5
- package/dist/types/templates/component/styles.d.ts +0 -7
- package/dist/types/templates/component/types.d.ts +0 -5
- package/dist/types/util/mergeDeep.d.ts +0 -1
- package/dist/types/util/reset.d.ts +0 -1
- package/dist/types/util/storybook/sandbox/Sandbox.d.ts +0 -14
- package/dist/types/util/storybook/styles.d.ts +0 -1
- package/dist/types/util/types.d.ts +0 -34
- package/dist/types/util/useResize.d.ts +0 -1
- package/dist/types/utils.d.ts +0 -8
- package/dist/util/reset.css.cjs +0 -5
- package/dist/util/reset.css.js +0 -3
- /package/dist/fonts/{material-symbols-types.ts → materialSymbolsTypes.ts} +0 -0
|
@@ -1,91 +1,226 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
|
|
1
|
+
import { tagTableAddButtonStyles, tagTableCellStyles, tagTableDragButtonStyles, tagTableHeadingStyles, tagTableRemoveButtonStyles, tagTableRowStyles, tagTableStyles, tagTableTypeBadgeStyles } from "./styles.js";
|
|
2
|
+
import { useEffect, useRef, useState } from "react";
|
|
3
|
+
import { css } from "@emotion/react";
|
|
4
|
+
import { jsx as jsx$1, jsxs } from "@emotion/react/jsx-runtime";
|
|
5
|
+
import { Button, Cell, Column, Row, Table, TableBody, TableHeader, useDragAndDrop } from "react-aria-components";
|
|
6
|
+
//#region src/components/TagPicker/TagTable.tsx
|
|
7
7
|
const rowToTag = (row) => "tag" in row ? row.tag : row;
|
|
8
8
|
const TypeBadge = (type, theme) => {
|
|
9
|
-
|
|
9
|
+
return /* @__PURE__ */ jsx$1("span", {
|
|
10
|
+
css: tagTableTypeBadgeStyles(theme),
|
|
11
|
+
children: type
|
|
12
|
+
});
|
|
10
13
|
};
|
|
11
14
|
const defaultCanRemove = () => true;
|
|
15
|
+
/**
|
|
16
|
+
* ## TagTable
|
|
17
|
+
*
|
|
18
|
+
* *Status: Testing*
|
|
19
|
+
*
|
|
20
|
+
* Part of the overall TagPicker component, the TagTable provides an accessible
|
|
21
|
+
* table for displaying tags, with options to add, remove, and reorder tags via drag and drop,
|
|
22
|
+
* based on the [React Aria Table](https://react-spectrum.adobe.com/react-aria/Table) component.
|
|
23
|
+
*
|
|
24
|
+
* **Peer dependencies:**
|
|
25
|
+
* - `react-aria-components`
|
|
26
|
+
*
|
|
27
|
+
* See the `peerDependencies` section of the `package.json` for compatible versions to install.
|
|
28
|
+
*
|
|
29
|
+
* ## Usage
|
|
30
|
+
*
|
|
31
|
+
* *Example with TagAutocomplete and TagTable combined:*
|
|
32
|
+
*
|
|
33
|
+
* ```tsx
|
|
34
|
+
* import { TagAutocomplete, TagTable } from '@guardian/stand';
|
|
35
|
+
*
|
|
36
|
+
* const Component = () => {
|
|
37
|
+
* const [selectedTags, setSelectedTags] = useState<
|
|
38
|
+
* TagManagerObjectData[] // TagManagerObjectData is an internal type representing a Tag
|
|
39
|
+
* >([]);
|
|
40
|
+
|
|
41
|
+
* const [options, setOptions] = useState<TagManagerObjectData[]>([]);
|
|
42
|
+
* const [value, setValue] = useState('');
|
|
43
|
+
* const onChange = (inputText: string) => {
|
|
44
|
+
* setValue(inputText);
|
|
45
|
+
* if (inputText === '') {
|
|
46
|
+
* setOptions([]);
|
|
47
|
+
* return;
|
|
48
|
+
* }
|
|
49
|
+
*
|
|
50
|
+
* if (inputText === '*') {
|
|
51
|
+
* setOptions(exampleTags); // exampleTags is an array of Tags
|
|
52
|
+
* return;
|
|
53
|
+
* }
|
|
54
|
+
*
|
|
55
|
+
* // Simple filtering against exampleTags
|
|
56
|
+
* const filteredItems = exampleTags.filter((t) =>
|
|
57
|
+
* t.internalName.toLowerCase().includes(inputText.toLowerCase()),
|
|
58
|
+
* );
|
|
59
|
+
* return setOptions(filteredItems);
|
|
60
|
+
* };
|
|
61
|
+
|
|
62
|
+
* return (
|
|
63
|
+
* <>
|
|
64
|
+
* <div
|
|
65
|
+
* css={css`
|
|
66
|
+
* display: flex;
|
|
67
|
+
* `}
|
|
68
|
+
* >
|
|
69
|
+
* <TagAutocomplete
|
|
70
|
+
* onChange={onChange}
|
|
71
|
+
* options={options}
|
|
72
|
+
* label="Tags"
|
|
73
|
+
* addTag={(tag) =>
|
|
74
|
+
* setSelectedTags((tags) => {
|
|
75
|
+
* return [...tags, tag];
|
|
76
|
+
* })
|
|
77
|
+
* }
|
|
78
|
+
* loading={false}
|
|
79
|
+
* placeholder={''}
|
|
80
|
+
* disabled={false}
|
|
81
|
+
* value={value}
|
|
82
|
+
* />
|
|
83
|
+
* <select>
|
|
84
|
+
* option>All tags</option>
|
|
85
|
+
* </select>
|
|
86
|
+
* </div>
|
|
87
|
+
* <TagTable rows={selectedTags} filterRows={() => true} />
|
|
88
|
+
* </>
|
|
89
|
+
* );
|
|
90
|
+
* };
|
|
91
|
+
* ```
|
|
92
|
+
*
|
|
93
|
+
* #### Props
|
|
94
|
+
*
|
|
95
|
+
* See {@link TagTableProps} for a full list of props and descriptions.
|
|
96
|
+
*
|
|
97
|
+
* #### Example
|
|
98
|
+
*
|
|
99
|
+
* This is currently still in testing phase, so a production implementation is not yet available.
|
|
100
|
+
*/
|
|
12
101
|
function TagTable({ rows, filterRows, heading, showTagType, showTagSectionName, removeAction: removeTag, addAction: addTag, onReorder, canRemove = defaultCanRemove, "data-testid": dataTestId, removeIcon, gripIcon, theme, cssOverrides }) {
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
102
|
+
const canDrag = !!onReorder;
|
|
103
|
+
const [localRows, setLocalRows] = useState(() => [...rows]);
|
|
104
|
+
const localRowsRef = useRef(localRows);
|
|
105
|
+
localRowsRef.current = localRows;
|
|
106
|
+
useEffect(() => {
|
|
107
|
+
setLocalRows([...rows]);
|
|
108
|
+
}, [rows]);
|
|
109
|
+
const filtered = localRows.filter(filterRows);
|
|
110
|
+
const { dragAndDropHooks } = useDragAndDrop({
|
|
111
|
+
getItems: (_keys, items) => {
|
|
112
|
+
return items.map((item) => ({ "text/plain": rowToTag(item).id.toString() }));
|
|
113
|
+
},
|
|
114
|
+
onReorder(e) {
|
|
115
|
+
const draggedElementKey = [...e.keys].at(0);
|
|
116
|
+
if (draggedElementKey === e.target.key) return;
|
|
117
|
+
const localList = [...localRows];
|
|
118
|
+
const draggedElementIndex = localList.findIndex((i) => rowToTag(i).id === draggedElementKey);
|
|
119
|
+
const draggedElement = localList.at(draggedElementIndex);
|
|
120
|
+
if (!draggedElement) return;
|
|
121
|
+
localList.splice(draggedElementIndex, 1);
|
|
122
|
+
const targetElementIndex = localList.findIndex((i) => rowToTag(i).id === e.target.key);
|
|
123
|
+
if (e.target.dropPosition === "before") localList.splice(targetElementIndex, 0, draggedElement);
|
|
124
|
+
else if (e.target.dropPosition === "after") localList.splice(targetElementIndex + 1, 0, draggedElement);
|
|
125
|
+
setLocalRows(localList);
|
|
126
|
+
onReorder?.(localList);
|
|
127
|
+
}
|
|
128
|
+
});
|
|
129
|
+
if (filtered.length === 0) return null;
|
|
130
|
+
return /* @__PURE__ */ jsxs("div", {
|
|
131
|
+
css: cssOverrides,
|
|
132
|
+
children: [heading && /* @__PURE__ */ jsx$1("div", {
|
|
133
|
+
css: tagTableHeadingStyles(theme),
|
|
134
|
+
children: heading
|
|
135
|
+
}), /* @__PURE__ */ jsxs(Table, {
|
|
136
|
+
css: tagTableStyles(!!removeTag, theme),
|
|
137
|
+
"aria-label": "Tag Table",
|
|
138
|
+
"data-testid": dataTestId,
|
|
139
|
+
dragAndDropHooks: onReorder && dragAndDropHooks,
|
|
140
|
+
children: [/* @__PURE__ */ jsxs(TableHeader, {
|
|
141
|
+
hidden: true,
|
|
142
|
+
children: [
|
|
143
|
+
onReorder && /* @__PURE__ */ jsx$1(Column, {}),
|
|
144
|
+
showTagType && /* @__PURE__ */ jsx$1(Column, { children: "Type" }),
|
|
145
|
+
/* @__PURE__ */ jsx$1(Column, {
|
|
146
|
+
isRowHeader: true,
|
|
147
|
+
children: "Name"
|
|
148
|
+
}),
|
|
149
|
+
showTagSectionName && /* @__PURE__ */ jsx$1(Column, { children: "Section" }),
|
|
150
|
+
removeTag && /* @__PURE__ */ jsx$1(Column, {}),
|
|
151
|
+
addTag && /* @__PURE__ */ jsx$1(Column, {})
|
|
152
|
+
]
|
|
153
|
+
}), /* @__PURE__ */ jsx$1(TableBody, {
|
|
154
|
+
items: filtered,
|
|
155
|
+
dependencies: [localRows],
|
|
156
|
+
children: (item) => /* @__PURE__ */ jsxs(Row, {
|
|
157
|
+
id: rowToTag(item).id,
|
|
158
|
+
css: tagTableRowStyles(canDrag, theme),
|
|
159
|
+
textValue: rowToTag(item).name,
|
|
160
|
+
children: [
|
|
161
|
+
onReorder && /* @__PURE__ */ jsx$1(Cell, {
|
|
162
|
+
css: [css`
|
|
54
163
|
width: 1%;
|
|
55
|
-
`
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
164
|
+
`],
|
|
165
|
+
children: /* @__PURE__ */ jsx$1(Button, {
|
|
166
|
+
slot: "drag",
|
|
167
|
+
css: tagTableDragButtonStyles,
|
|
168
|
+
children: gripIcon
|
|
169
|
+
})
|
|
170
|
+
}),
|
|
171
|
+
showTagType && /* @__PURE__ */ jsx$1(Cell, {
|
|
172
|
+
css: [tagTableCellStyles(theme), css`
|
|
59
173
|
position: relative;
|
|
60
174
|
width: 15%;
|
|
61
|
-
`
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
175
|
+
`],
|
|
176
|
+
children: TypeBadge(rowToTag(item).type)
|
|
177
|
+
}),
|
|
178
|
+
/* @__PURE__ */ jsx$1(Cell, {
|
|
179
|
+
css: [tagTableCellStyles(theme), css`
|
|
65
180
|
width: 50%;
|
|
66
|
-
`
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
181
|
+
`],
|
|
182
|
+
"data-testid": `tags-table-item-${filtered.indexOf(item)}-name`,
|
|
183
|
+
children: rowToTag(item).name
|
|
184
|
+
}),
|
|
185
|
+
showTagSectionName && /* @__PURE__ */ jsx$1(Cell, {
|
|
186
|
+
css: [tagTableCellStyles(theme), css`
|
|
70
187
|
width: 20%;
|
|
71
|
-
`
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
188
|
+
`],
|
|
189
|
+
children: rowToTag(item).sectionName
|
|
190
|
+
}),
|
|
191
|
+
removeTag && /* @__PURE__ */ jsx$1(Cell, {
|
|
192
|
+
css: [tagTableCellStyles(theme), css`
|
|
75
193
|
text-align: center;
|
|
76
194
|
width: 10%;
|
|
77
|
-
`
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
195
|
+
`],
|
|
196
|
+
children: canRemove(item) && /* @__PURE__ */ jsx$1(Button, {
|
|
197
|
+
css: tagTableRemoveButtonStyles,
|
|
198
|
+
onPress: () => {
|
|
199
|
+
removeTag(item);
|
|
200
|
+
},
|
|
201
|
+
"aria-label": `Remove ${rowToTag(item).name}`,
|
|
202
|
+
children: removeIcon ?? "Remove"
|
|
203
|
+
})
|
|
204
|
+
}),
|
|
205
|
+
addTag && /* @__PURE__ */ jsx$1(Cell, {
|
|
206
|
+
css: [tagTableCellStyles(theme), css`
|
|
83
207
|
text-align: center;
|
|
84
208
|
width: 10%;
|
|
85
|
-
`
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
209
|
+
`],
|
|
210
|
+
children: /* @__PURE__ */ jsx$1(Button, {
|
|
211
|
+
css: tagTableAddButtonStyles(theme),
|
|
212
|
+
onPress: () => {
|
|
213
|
+
addTag(item);
|
|
214
|
+
},
|
|
215
|
+
"aria-label": `Add ${rowToTag(item).name}`,
|
|
216
|
+
children: "Add"
|
|
217
|
+
})
|
|
218
|
+
})
|
|
219
|
+
]
|
|
220
|
+
}, rowToTag(item).id)
|
|
221
|
+
})]
|
|
222
|
+
})]
|
|
223
|
+
});
|
|
89
224
|
}
|
|
90
|
-
|
|
225
|
+
//#endregion
|
|
91
226
|
export { TagTable };
|
|
@@ -1,13 +1,12 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
1
|
+
require("../../_virtual/_rolldown/runtime.cjs");
|
|
2
|
+
const require_mergeDeep = require("../../util/mergeDeep.cjs");
|
|
3
|
+
const require_autocomplete = require("../../styleD/build/typescript/component/autocomplete.cjs");
|
|
4
|
+
const require_tagTable = require("../../styleD/build/typescript/component/tagTable.cjs");
|
|
5
|
+
let _emotion_react = require("@emotion/react");
|
|
6
|
+
//#region src/components/TagPicker/styles.ts
|
|
8
7
|
const autocompleteInputStyles = (partialTheme = {}) => {
|
|
9
|
-
|
|
10
|
-
|
|
8
|
+
const theme = require_mergeDeep.mergeDeep(require_autocomplete.componentAutocomplete, partialTheme);
|
|
9
|
+
return _emotion_react.css`
|
|
11
10
|
width: 100%;
|
|
12
11
|
box-sizing: border-box;
|
|
13
12
|
padding: ${theme.input.padding};
|
|
@@ -23,8 +22,8 @@ const autocompleteInputStyles = (partialTheme = {}) => {
|
|
|
23
22
|
`;
|
|
24
23
|
};
|
|
25
24
|
const listboxStyles = (partialTheme = {}) => {
|
|
26
|
-
|
|
27
|
-
|
|
25
|
+
const theme = require_mergeDeep.mergeDeep(require_autocomplete.componentAutocomplete, partialTheme);
|
|
26
|
+
return _emotion_react.css`
|
|
28
27
|
padding: ${theme.listbox.paddingY} ${theme.listbox.paddingX};
|
|
29
28
|
max-height: 320px;
|
|
30
29
|
overflow-y: auto;
|
|
@@ -35,8 +34,8 @@ const listboxStyles = (partialTheme = {}) => {
|
|
|
35
34
|
`;
|
|
36
35
|
};
|
|
37
36
|
const listboxItemStyles = (partialTheme = {}) => {
|
|
38
|
-
|
|
39
|
-
|
|
37
|
+
const theme = require_mergeDeep.mergeDeep(require_autocomplete.componentAutocomplete, partialTheme);
|
|
38
|
+
return _emotion_react.css`
|
|
40
39
|
padding: ${theme.listbox.item.paddingY} ${theme.listbox.item.paddingX};
|
|
41
40
|
cursor: pointer;
|
|
42
41
|
color: ${theme.listbox.item.color};
|
|
@@ -51,14 +50,14 @@ const listboxItemStyles = (partialTheme = {}) => {
|
|
|
51
50
|
`;
|
|
52
51
|
};
|
|
53
52
|
const listboxInfoStyles = (partialTheme = {}) => {
|
|
54
|
-
|
|
55
|
-
|
|
53
|
+
const theme = require_mergeDeep.mergeDeep(require_autocomplete.componentAutocomplete, partialTheme);
|
|
54
|
+
return _emotion_react.css`
|
|
56
55
|
padding: ${theme.listbox.item.paddingY} ${theme.listbox.item.paddingX};
|
|
57
56
|
`;
|
|
58
57
|
};
|
|
59
58
|
const tagTableHeadingStyles = (partialTheme = {}) => {
|
|
60
|
-
|
|
61
|
-
|
|
59
|
+
const theme = require_mergeDeep.mergeDeep(require_tagTable.componentTagTable, partialTheme);
|
|
60
|
+
return _emotion_react.css`
|
|
62
61
|
background-color: ${theme.heading.backgroundColor};
|
|
63
62
|
font-weight: ${theme.heading.fontWeight};
|
|
64
63
|
padding: ${theme.heading.paddingTop} ${theme.heading.paddingRight}
|
|
@@ -66,8 +65,8 @@ const tagTableHeadingStyles = (partialTheme = {}) => {
|
|
|
66
65
|
`;
|
|
67
66
|
};
|
|
68
67
|
const tagTableCellStyles = (partialTheme = {}) => {
|
|
69
|
-
|
|
70
|
-
|
|
68
|
+
const theme = require_mergeDeep.mergeDeep(require_tagTable.componentTagTable, partialTheme);
|
|
69
|
+
return _emotion_react.css`
|
|
71
70
|
padding: ${theme.cell.paddingY} ${theme.cell.paddingX};
|
|
72
71
|
|
|
73
72
|
:first-of-type {
|
|
@@ -82,8 +81,8 @@ const tagTableCellStyles = (partialTheme = {}) => {
|
|
|
82
81
|
`;
|
|
83
82
|
};
|
|
84
83
|
const tagTableRowStyles = (canDrag, partialTheme = {}) => {
|
|
85
|
-
|
|
86
|
-
|
|
84
|
+
const theme = require_mergeDeep.mergeDeep(require_tagTable.componentTagTable, partialTheme);
|
|
85
|
+
return _emotion_react.css`
|
|
87
86
|
background-color: ${theme.row.backgroundColor};
|
|
88
87
|
height: ${theme.row.height};
|
|
89
88
|
&:not(:last-child) {
|
|
@@ -109,8 +108,8 @@ const tagTableRowStyles = (canDrag, partialTheme = {}) => {
|
|
|
109
108
|
`;
|
|
110
109
|
};
|
|
111
110
|
const tagTableStyles = (canRemoveTag, partialTheme = {}) => {
|
|
112
|
-
|
|
113
|
-
|
|
111
|
+
const theme = require_mergeDeep.mergeDeep(require_tagTable.componentTagTable, partialTheme);
|
|
112
|
+
return _emotion_react.css`
|
|
114
113
|
width: 100%;
|
|
115
114
|
border-collapse: collapse;
|
|
116
115
|
|
|
@@ -123,7 +122,7 @@ const tagTableStyles = (canRemoveTag, partialTheme = {}) => {
|
|
|
123
122
|
}
|
|
124
123
|
`;
|
|
125
124
|
};
|
|
126
|
-
const tagTableRemoveButtonStyles =
|
|
125
|
+
const tagTableRemoveButtonStyles = _emotion_react.css`
|
|
127
126
|
background: none;
|
|
128
127
|
border: none;
|
|
129
128
|
padding: 0;
|
|
@@ -132,8 +131,8 @@ const tagTableRemoveButtonStyles = react.css`
|
|
|
132
131
|
}
|
|
133
132
|
`;
|
|
134
133
|
const tagTableAddButtonStyles = (partialTheme = {}) => {
|
|
135
|
-
|
|
136
|
-
|
|
134
|
+
const theme = require_mergeDeep.mergeDeep(require_tagTable.componentTagTable, partialTheme);
|
|
135
|
+
return _emotion_react.css`
|
|
137
136
|
:hover {
|
|
138
137
|
cursor: pointer;
|
|
139
138
|
background-color: ${theme.addButton.backgroundHoverColor};
|
|
@@ -160,7 +159,7 @@ const tagTableAddButtonStyles = (partialTheme = {}) => {
|
|
|
160
159
|
display: inline-flex;
|
|
161
160
|
`;
|
|
162
161
|
};
|
|
163
|
-
const tagTableDragButtonStyles =
|
|
162
|
+
const tagTableDragButtonStyles = _emotion_react.css`
|
|
164
163
|
background: none;
|
|
165
164
|
border: none;
|
|
166
165
|
padding: 0;
|
|
@@ -175,8 +174,8 @@ const tagTableDragButtonStyles = react.css`
|
|
|
175
174
|
}
|
|
176
175
|
`;
|
|
177
176
|
const tagTableTypeBadgeStyles = (partialTheme = {}) => {
|
|
178
|
-
|
|
179
|
-
|
|
177
|
+
const theme = require_mergeDeep.mergeDeep(require_tagTable.componentTagTable, partialTheme);
|
|
178
|
+
return _emotion_react.css`
|
|
180
179
|
white-space: nowrap;
|
|
181
180
|
text-transform: uppercase;
|
|
182
181
|
color: ${theme.typeBadge.color};
|
|
@@ -186,7 +185,7 @@ const tagTableTypeBadgeStyles = (partialTheme = {}) => {
|
|
|
186
185
|
font-weight: ${theme.typeBadge.fontWeight};
|
|
187
186
|
`;
|
|
188
187
|
};
|
|
189
|
-
|
|
188
|
+
//#endregion
|
|
190
189
|
exports.autocompleteInputStyles = autocompleteInputStyles;
|
|
191
190
|
exports.listboxInfoStyles = listboxInfoStyles;
|
|
192
191
|
exports.listboxItemStyles = listboxItemStyles;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { componentAutocomplete } from
|
|
3
|
-
import { componentTagTable } from
|
|
4
|
-
import {
|
|
5
|
-
|
|
1
|
+
import { mergeDeep } from "../../util/mergeDeep.js";
|
|
2
|
+
import { componentAutocomplete } from "../../styleD/build/typescript/component/autocomplete.js";
|
|
3
|
+
import { componentTagTable } from "../../styleD/build/typescript/component/tagTable.js";
|
|
4
|
+
import { css } from "@emotion/react";
|
|
5
|
+
//#region src/components/TagPicker/styles.ts
|
|
6
6
|
const autocompleteInputStyles = (partialTheme = {}) => {
|
|
7
|
-
|
|
8
|
-
|
|
7
|
+
const theme = mergeDeep(componentAutocomplete, partialTheme);
|
|
8
|
+
return css`
|
|
9
9
|
width: 100%;
|
|
10
10
|
box-sizing: border-box;
|
|
11
11
|
padding: ${theme.input.padding};
|
|
@@ -21,8 +21,8 @@ const autocompleteInputStyles = (partialTheme = {}) => {
|
|
|
21
21
|
`;
|
|
22
22
|
};
|
|
23
23
|
const listboxStyles = (partialTheme = {}) => {
|
|
24
|
-
|
|
25
|
-
|
|
24
|
+
const theme = mergeDeep(componentAutocomplete, partialTheme);
|
|
25
|
+
return css`
|
|
26
26
|
padding: ${theme.listbox.paddingY} ${theme.listbox.paddingX};
|
|
27
27
|
max-height: 320px;
|
|
28
28
|
overflow-y: auto;
|
|
@@ -33,8 +33,8 @@ const listboxStyles = (partialTheme = {}) => {
|
|
|
33
33
|
`;
|
|
34
34
|
};
|
|
35
35
|
const listboxItemStyles = (partialTheme = {}) => {
|
|
36
|
-
|
|
37
|
-
|
|
36
|
+
const theme = mergeDeep(componentAutocomplete, partialTheme);
|
|
37
|
+
return css`
|
|
38
38
|
padding: ${theme.listbox.item.paddingY} ${theme.listbox.item.paddingX};
|
|
39
39
|
cursor: pointer;
|
|
40
40
|
color: ${theme.listbox.item.color};
|
|
@@ -49,14 +49,14 @@ const listboxItemStyles = (partialTheme = {}) => {
|
|
|
49
49
|
`;
|
|
50
50
|
};
|
|
51
51
|
const listboxInfoStyles = (partialTheme = {}) => {
|
|
52
|
-
|
|
53
|
-
|
|
52
|
+
const theme = mergeDeep(componentAutocomplete, partialTheme);
|
|
53
|
+
return css`
|
|
54
54
|
padding: ${theme.listbox.item.paddingY} ${theme.listbox.item.paddingX};
|
|
55
55
|
`;
|
|
56
56
|
};
|
|
57
57
|
const tagTableHeadingStyles = (partialTheme = {}) => {
|
|
58
|
-
|
|
59
|
-
|
|
58
|
+
const theme = mergeDeep(componentTagTable, partialTheme);
|
|
59
|
+
return css`
|
|
60
60
|
background-color: ${theme.heading.backgroundColor};
|
|
61
61
|
font-weight: ${theme.heading.fontWeight};
|
|
62
62
|
padding: ${theme.heading.paddingTop} ${theme.heading.paddingRight}
|
|
@@ -64,8 +64,8 @@ const tagTableHeadingStyles = (partialTheme = {}) => {
|
|
|
64
64
|
`;
|
|
65
65
|
};
|
|
66
66
|
const tagTableCellStyles = (partialTheme = {}) => {
|
|
67
|
-
|
|
68
|
-
|
|
67
|
+
const theme = mergeDeep(componentTagTable, partialTheme);
|
|
68
|
+
return css`
|
|
69
69
|
padding: ${theme.cell.paddingY} ${theme.cell.paddingX};
|
|
70
70
|
|
|
71
71
|
:first-of-type {
|
|
@@ -80,8 +80,8 @@ const tagTableCellStyles = (partialTheme = {}) => {
|
|
|
80
80
|
`;
|
|
81
81
|
};
|
|
82
82
|
const tagTableRowStyles = (canDrag, partialTheme = {}) => {
|
|
83
|
-
|
|
84
|
-
|
|
83
|
+
const theme = mergeDeep(componentTagTable, partialTheme);
|
|
84
|
+
return css`
|
|
85
85
|
background-color: ${theme.row.backgroundColor};
|
|
86
86
|
height: ${theme.row.height};
|
|
87
87
|
&:not(:last-child) {
|
|
@@ -107,8 +107,8 @@ const tagTableRowStyles = (canDrag, partialTheme = {}) => {
|
|
|
107
107
|
`;
|
|
108
108
|
};
|
|
109
109
|
const tagTableStyles = (canRemoveTag, partialTheme = {}) => {
|
|
110
|
-
|
|
111
|
-
|
|
110
|
+
const theme = mergeDeep(componentTagTable, partialTheme);
|
|
111
|
+
return css`
|
|
112
112
|
width: 100%;
|
|
113
113
|
border-collapse: collapse;
|
|
114
114
|
|
|
@@ -130,8 +130,8 @@ const tagTableRemoveButtonStyles = css`
|
|
|
130
130
|
}
|
|
131
131
|
`;
|
|
132
132
|
const tagTableAddButtonStyles = (partialTheme = {}) => {
|
|
133
|
-
|
|
134
|
-
|
|
133
|
+
const theme = mergeDeep(componentTagTable, partialTheme);
|
|
134
|
+
return css`
|
|
135
135
|
:hover {
|
|
136
136
|
cursor: pointer;
|
|
137
137
|
background-color: ${theme.addButton.backgroundHoverColor};
|
|
@@ -173,8 +173,8 @@ const tagTableDragButtonStyles = css`
|
|
|
173
173
|
}
|
|
174
174
|
`;
|
|
175
175
|
const tagTableTypeBadgeStyles = (partialTheme = {}) => {
|
|
176
|
-
|
|
177
|
-
|
|
176
|
+
const theme = mergeDeep(componentTagTable, partialTheme);
|
|
177
|
+
return css`
|
|
178
178
|
white-space: nowrap;
|
|
179
179
|
text-transform: uppercase;
|
|
180
180
|
color: ${theme.typeBadge.color};
|
|
@@ -184,5 +184,5 @@ const tagTableTypeBadgeStyles = (partialTheme = {}) => {
|
|
|
184
184
|
font-weight: ${theme.typeBadge.fontWeight};
|
|
185
185
|
`;
|
|
186
186
|
};
|
|
187
|
-
|
|
187
|
+
//#endregion
|
|
188
188
|
export { autocompleteInputStyles, listboxInfoStyles, listboxItemStyles, listboxStyles, tagTableAddButtonStyles, tagTableCellStyles, tagTableDragButtonStyles, tagTableHeadingStyles, tagTableRemoveButtonStyles, tagTableRowStyles, tagTableStyles, tagTableTypeBadgeStyles };
|
|
@@ -1,35 +1,25 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
...props,
|
|
24
|
-
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
25
|
-
reactAriaComponents.TextArea,
|
|
26
|
-
{
|
|
27
|
-
placeholder,
|
|
28
|
-
css: styles.textAreaStyles(mergedTheme, { size, isInvalid })
|
|
29
|
-
}
|
|
30
|
-
)
|
|
31
|
-
}
|
|
32
|
-
);
|
|
1
|
+
require("../../_virtual/_rolldown/runtime.cjs");
|
|
2
|
+
const require_mergeDeep = require("../../util/mergeDeep.cjs");
|
|
3
|
+
const require_Form = require("../Form/Form.cjs");
|
|
4
|
+
const require_styles = require("./styles.cjs");
|
|
5
|
+
let _emotion_react_jsx_runtime = require("@emotion/react/jsx-runtime");
|
|
6
|
+
let react_aria_components = require("react-aria-components");
|
|
7
|
+
//#region src/components/TextArea/TextArea.tsx
|
|
8
|
+
function TextArea({ size = "md", isInvalid = false, theme = {}, placeholder, ...props }) {
|
|
9
|
+
const mergedTheme = require_mergeDeep.mergeDeep(require_styles.defaultTextAreaTheme, theme);
|
|
10
|
+
return /* @__PURE__ */ (0, _emotion_react_jsx_runtime.jsx)(require_Form.FormInputContainer, {
|
|
11
|
+
as: react_aria_components.TextField,
|
|
12
|
+
size,
|
|
13
|
+
isInvalid,
|
|
14
|
+
...props,
|
|
15
|
+
children: /* @__PURE__ */ (0, _emotion_react_jsx_runtime.jsx)(react_aria_components.TextArea, {
|
|
16
|
+
placeholder,
|
|
17
|
+
css: require_styles.textAreaStyles(mergedTheme, {
|
|
18
|
+
size,
|
|
19
|
+
isInvalid
|
|
20
|
+
})
|
|
21
|
+
})
|
|
22
|
+
});
|
|
33
23
|
}
|
|
34
|
-
|
|
24
|
+
//#endregion
|
|
35
25
|
exports.TextArea = TextArea;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { TextAreaProps } from "./types.cjs";
|
|
2
|
+
|
|
3
|
+
//#region src/components/TextArea/TextArea.d.ts
|
|
4
|
+
declare function TextArea({
|
|
5
|
+
size,
|
|
6
|
+
isInvalid,
|
|
7
|
+
theme,
|
|
8
|
+
placeholder,
|
|
9
|
+
...props
|
|
10
|
+
}: TextAreaProps): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
11
|
+
//#endregion
|
|
12
|
+
export { TextArea };
|