@guardian/stand 0.0.38 → 0.0.39
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/dist/{alert-banner.cjs → AlertBanner.cjs} +1 -1
- package/dist/{alert-banner.js → AlertBanner.js} +1 -1
- package/dist/{avatar.cjs → Avatar.cjs} +1 -1
- package/dist/{avatar.js → Avatar.js} +1 -1
- package/dist/AvatarButton.cjs +7 -0
- package/dist/AvatarButton.js +1 -0
- package/dist/AvatarLink.cjs +7 -0
- package/dist/AvatarLink.js +1 -0
- package/dist/{button.cjs → Button.cjs} +1 -1
- package/dist/{button.js → Button.js} +1 -1
- package/dist/{byline.cjs → Byline.cjs} +1 -1
- package/dist/{byline.js → Byline.js} +1 -1
- package/dist/{checkbox.cjs → Checkbox.cjs} +2 -2
- package/dist/Checkbox.js +3 -0
- package/dist/{date-picker.cjs → DatePicker.cjs} +1 -1
- package/dist/{date-picker.js → DatePicker.js} +1 -1
- package/dist/{favicon.cjs → Favicon.cjs} +1 -1
- package/dist/{favicon.js → Favicon.js} +1 -1
- package/dist/{grid.cjs → Grid.cjs} +1 -1
- package/dist/{grid.js → Grid.js} +1 -1
- package/dist/{icon.cjs → Icon.cjs} +1 -1
- package/dist/{icon.js → Icon.js} +1 -1
- package/dist/IconButton.cjs +7 -0
- package/dist/IconButton.js +1 -0
- package/dist/IconLinkButton.cjs +7 -0
- package/dist/IconLinkButton.js +1 -0
- package/dist/{inline-message.cjs → InlineMessage.cjs} +1 -1
- package/dist/{inline-message.js → InlineMessage.js} +1 -1
- package/dist/{intended-audience-signifier.cjs → IntendedAudienceSignifier.cjs} +1 -1
- package/dist/{intended-audience-signifier.js → IntendedAudienceSignifier.js} +1 -1
- package/dist/{layout.cjs → Layout.cjs} +1 -1
- package/dist/{layout.js → Layout.js} +1 -1
- package/dist/{link.cjs → Link.cjs} +1 -1
- package/dist/{link.js → Link.js} +1 -1
- package/dist/LinkButton.cjs +7 -0
- package/dist/LinkButton.js +1 -0
- package/dist/{menu.cjs → Menu.cjs} +1 -1
- package/dist/{menu.js → Menu.js} +1 -1
- package/dist/{radio-group.cjs → RadioGroup.cjs} +1 -1
- package/dist/{radio-group.js → RadioGroup.js} +1 -1
- package/dist/{select.cjs → Select.cjs} +1 -1
- package/dist/{select.js → Select.js} +1 -1
- package/dist/{tag-picker.cjs → TagPicker.cjs} +3 -3
- package/dist/TagPicker.js +5 -0
- package/dist/{text-area.cjs → TextArea.cjs} +1 -1
- package/dist/{text-area.js → TextArea.js} +1 -1
- package/dist/{text-input.cjs → TextInput.cjs} +1 -1
- package/dist/{text-input.js → TextInput.js} +1 -1
- package/dist/TopBar.cjs +6 -6
- package/dist/TopBar.js +5 -5
- package/dist/{typography.cjs → Typography.cjs} +1 -1
- package/dist/{typography.js → Typography.js} +1 -1
- package/dist/{user-menu.cjs → UserMenu.cjs} +1 -1
- package/dist/{user-menu.js → UserMenu.js} +1 -1
- package/dist/components/{alert-banner → AlertBanner}/AlertBanner.cjs +2 -2
- package/dist/components/{alert-banner → AlertBanner}/AlertBanner.js +2 -2
- package/dist/components/{alert-banner → AlertBanner}/styles.cjs +5 -5
- package/dist/components/{alert-banner → AlertBanner}/styles.js +5 -5
- package/dist/components/{avatar → Avatar}/styles.cjs +7 -7
- package/dist/components/{avatar → Avatar}/styles.js +7 -7
- package/dist/components/{avatar → Avatar}/types.cjs +2 -2
- package/dist/components/{avatar → Avatar}/types.js +2 -2
- package/dist/components/{avatar-button → AvatarButton}/AvatarButton.cjs +1 -1
- package/dist/components/{avatar-button → AvatarButton}/AvatarButton.js +1 -1
- package/dist/components/{avatar-button → AvatarButton}/styles.cjs +5 -5
- package/dist/components/{avatar-button → AvatarButton}/styles.js +5 -5
- package/dist/components/{avatar-link → AvatarLink}/AvatarLink.cjs +1 -1
- package/dist/components/{avatar-link → AvatarLink}/AvatarLink.js +1 -1
- package/dist/components/{avatar-link → AvatarLink}/styles.cjs +5 -5
- package/dist/components/{avatar-link → AvatarLink}/styles.js +5 -5
- package/dist/components/{button → Button}/Button.cjs +1 -1
- package/dist/components/{button → Button}/Button.js +1 -1
- package/dist/components/{button → Button}/styles.cjs +17 -17
- package/dist/components/{button → Button}/styles.js +17 -17
- package/dist/components/{checkbox → Checkbox}/CheckboxGroup.cjs +1 -1
- package/dist/components/{checkbox → Checkbox}/CheckboxGroup.js +1 -1
- package/dist/components/{checkbox → Checkbox}/styles.cjs +14 -14
- package/dist/components/{checkbox → Checkbox}/styles.js +14 -14
- package/dist/components/{date-picker → DatePicker}/DatePicker.cjs +2 -2
- package/dist/components/{date-picker → DatePicker}/DatePicker.js +2 -2
- package/dist/components/{favicon → Favicon}/Favicon.cjs +1 -1
- package/dist/components/{favicon → Favicon}/Favicon.js +1 -1
- package/dist/components/{favicon → Favicon}/styles.cjs +3 -3
- package/dist/components/{favicon → Favicon}/styles.js +3 -3
- package/dist/components/{form → Form}/Form.cjs +1 -1
- package/dist/components/{form → Form}/Form.js +1 -1
- package/dist/components/{form → Form}/styles.cjs +1 -1
- package/dist/components/{form → Form}/styles.js +1 -1
- package/dist/components/{icon → Icon}/styles.cjs +1 -1
- package/dist/components/{icon → Icon}/styles.js +1 -1
- package/dist/components/{icon-button → IconButton}/IconButton.cjs +1 -1
- package/dist/components/{icon-button → IconButton}/IconButton.js +1 -1
- package/dist/components/{icon-button → IconButton}/styles.cjs +1 -1
- package/dist/components/{icon-button → IconButton}/styles.js +1 -1
- package/dist/components/{icon-link-button → IconLinkButton}/IconLinkButton.cjs +1 -1
- package/dist/components/{icon-link-button → IconLinkButton}/IconLinkButton.js +1 -1
- package/dist/components/{icon-link-button → IconLinkButton}/styles.cjs +1 -1
- package/dist/components/{icon-link-button → IconLinkButton}/styles.js +1 -1
- package/dist/components/{inline-message → InlineMessage}/InlineMessage.cjs +3 -3
- package/dist/components/{inline-message → InlineMessage}/InlineMessage.js +3 -3
- package/dist/components/{inline-message → InlineMessage}/styles.cjs +2 -2
- package/dist/components/{inline-message → InlineMessage}/styles.js +2 -2
- package/dist/components/{intended-audience-signifier → IntendedAudienceSignifier}/IntendedAudienceSignifier.cjs +36 -4
- package/dist/components/IntendedAudienceSignifier/IntendedAudienceSignifier.js +67 -0
- package/dist/components/{layout → Layout}/styles.cjs +3 -3
- package/dist/components/{layout → Layout}/styles.js +3 -3
- package/dist/components/{link → Link}/Link.cjs +2 -2
- package/dist/components/{link → Link}/Link.js +2 -2
- package/dist/components/{link-button → LinkButton}/LinkButton.cjs +1 -1
- package/dist/components/{link-button → LinkButton}/LinkButton.js +1 -1
- package/dist/components/{link-button → LinkButton}/styles.cjs +1 -1
- package/dist/components/{link-button → LinkButton}/styles.js +1 -1
- package/dist/components/{menu → Menu}/Menu.cjs +1 -1
- package/dist/components/{menu → Menu}/Menu.js +1 -1
- package/dist/components/{menu → Menu}/styles.cjs +26 -26
- package/dist/components/{menu → Menu}/styles.js +26 -26
- package/dist/components/{radio-group → RadioGroup}/RadioGroup.cjs +1 -1
- package/dist/components/{radio-group → RadioGroup}/RadioGroup.js +1 -1
- package/dist/components/{select → Select}/Select.cjs +2 -2
- package/dist/components/{select → Select}/Select.js +2 -2
- package/dist/components/{select → Select}/styles.cjs +2 -2
- package/dist/components/{select → Select}/styles.js +2 -2
- package/dist/components/{text-area → TextArea}/TextArea.cjs +1 -1
- package/dist/components/{text-area → TextArea}/TextArea.js +1 -1
- package/dist/components/{text-area → TextArea}/styles.cjs +3 -3
- package/dist/components/{text-area → TextArea}/styles.js +3 -3
- package/dist/components/{text-input → TextInput}/TextInput.cjs +1 -1
- package/dist/components/{text-input → TextInput}/TextInput.js +1 -1
- package/dist/components/{text-input → TextInput}/styles.cjs +3 -3
- package/dist/components/{text-input → TextInput}/styles.js +3 -3
- package/dist/components/{topbar → TopBar}/TopBar.cjs +14 -14
- package/dist/components/{topbar → TopBar}/TopBar.js +14 -14
- package/dist/components/{topbar/topBarItem → TopBar/TopBarItem}/styles.cjs +3 -3
- package/dist/components/{topbar/topBarItem → TopBar/TopBarItem}/styles.js +3 -3
- package/dist/components/{topbar/topBarNavigation → TopBar/TopBarNavigation}/TopBarNavigation.cjs +2 -2
- package/dist/components/{topbar/topBarNavigation → TopBar/TopBarNavigation}/TopBarNavigation.js +2 -2
- package/dist/components/{topbar/topBarNavigation → TopBar/TopBarNavigation}/styles.cjs +19 -19
- package/dist/components/{topbar/topBarNavigation → TopBar/TopBarNavigation}/styles.js +19 -19
- package/dist/components/{topbar/topBarToolName → TopBar/TopBarToolName}/TopBarToolName.cjs +3 -3
- package/dist/components/{topbar/topBarToolName → TopBar/TopBarToolName}/TopBarToolName.js +3 -3
- package/dist/components/{topbar/topBarToolName → TopBar/TopBarToolName}/styles.cjs +7 -7
- package/dist/components/{topbar/topBarToolName → TopBar/TopBarToolName}/styles.js +7 -7
- package/dist/components/{topbar → TopBar}/styles.cjs +12 -12
- package/dist/components/{topbar → TopBar}/styles.js +11 -11
- package/dist/components/{typography → Typography}/Typography.cjs +1 -1
- package/dist/components/{typography → Typography}/Typography.js +1 -1
- package/dist/components/{user-menu → UserMenu}/UserMenu.cjs +1 -1
- package/dist/components/{user-menu → UserMenu}/UserMenu.js +1 -1
- package/dist/components/{user-menu → UserMenu}/default-options.cjs +16 -16
- package/dist/components/{user-menu → UserMenu}/default-options.js +16 -16
- package/dist/index.cjs +2 -2
- package/dist/index.js +1 -1
- package/dist/styleD/build/css/base/radius.css +6 -6
- package/dist/styleD/build/css/base/sizing.css +20 -20
- package/dist/styleD/build/css/component/intendedAudienceSignifier.css +2 -2
- package/dist/styleD/build/css/component/{TopBar.css → topBar.css} +2 -2
- package/dist/styleD/build/css/semantic/colors.css +3 -2
- package/dist/styleD/build/css/semantic/typography.css +6 -6
- package/dist/styleD/build/typescript/base/colors.cjs +2 -2
- package/dist/styleD/build/typescript/base/colors.js +2 -2
- package/dist/styleD/build/typescript/base/radius.cjs +6 -6
- package/dist/styleD/build/typescript/base/radius.js +6 -6
- package/dist/styleD/build/typescript/base/sizing.cjs +20 -20
- package/dist/styleD/build/typescript/base/sizing.js +20 -20
- package/dist/styleD/build/typescript/base/spacing.cjs +34 -34
- package/dist/styleD/build/typescript/base/spacing.js +34 -34
- package/dist/styleD/build/typescript/base/typography.cjs +42 -42
- package/dist/styleD/build/typescript/base/typography.js +42 -42
- package/dist/styleD/build/typescript/component/alertBanner.cjs +8 -8
- package/dist/styleD/build/typescript/component/alertBanner.js +8 -8
- package/dist/styleD/build/typescript/component/avatar.cjs +33 -33
- package/dist/styleD/build/typescript/component/avatar.js +33 -33
- package/dist/styleD/build/typescript/component/button.cjs +18 -18
- package/dist/styleD/build/typescript/component/button.js +18 -18
- package/dist/styleD/build/typescript/component/checkbox.cjs +16 -16
- package/dist/styleD/build/typescript/component/checkbox.js +16 -16
- package/dist/styleD/build/typescript/component/favicon.cjs +3 -3
- package/dist/styleD/build/typescript/component/favicon.js +3 -3
- package/dist/styleD/build/typescript/component/form.cjs +1 -1
- package/dist/styleD/build/typescript/component/form.js +1 -1
- package/dist/styleD/build/typescript/component/icon.cjs +1 -1
- package/dist/styleD/build/typescript/component/icon.js +1 -1
- package/dist/styleD/build/typescript/component/inlineMessage.cjs +2 -2
- package/dist/styleD/build/typescript/component/inlineMessage.js +2 -2
- package/dist/styleD/build/typescript/component/intendedAudienceSignifier.cjs +2 -2
- package/dist/styleD/build/typescript/component/intendedAudienceSignifier.js +2 -2
- package/dist/styleD/build/typescript/component/layout.cjs +3 -3
- package/dist/styleD/build/typescript/component/layout.js +3 -3
- package/dist/styleD/build/typescript/component/menu.cjs +30 -30
- package/dist/styleD/build/typescript/component/menu.js +30 -30
- package/dist/styleD/build/typescript/component/select.cjs +2 -2
- package/dist/styleD/build/typescript/component/select.js +2 -2
- package/dist/styleD/build/typescript/component/textArea.cjs +3 -3
- package/dist/styleD/build/typescript/component/textArea.js +3 -3
- package/dist/styleD/build/typescript/component/textInput.cjs +3 -3
- package/dist/styleD/build/typescript/component/textInput.js +3 -3
- package/dist/styleD/build/typescript/component/{TopBar.cjs → topBar.cjs} +28 -28
- package/dist/styleD/build/typescript/component/{TopBar.js → topBar.js} +28 -28
- package/dist/styleD/build/typescript/semantic/colors.cjs +39 -38
- package/dist/styleD/build/typescript/semantic/colors.js +39 -38
- package/dist/styleD/build/typescript/semantic/grid.cjs +6 -6
- package/dist/styleD/build/typescript/semantic/grid.js +6 -6
- package/dist/styleD/build/typescript/semantic/sizing.cjs +4 -4
- package/dist/styleD/build/typescript/semantic/sizing.js +4 -4
- package/dist/styleD/build/typescript/semantic/typography.cjs +75 -75
- package/dist/styleD/build/typescript/semantic/typography.js +75 -75
- package/dist/types/{alert-banner.d.ts → AlertBanner.d.ts} +3 -3
- package/dist/types/{avatar.d.ts → Avatar.d.ts} +3 -3
- package/dist/types/{avatar-button.d.ts → AvatarButton.d.ts} +3 -3
- package/dist/types/{avatar-link.d.ts → AvatarLink.d.ts} +3 -3
- package/dist/types/{button.d.ts → Button.d.ts} +3 -3
- package/dist/types/{byline.d.ts → Byline.d.ts} +3 -3
- package/dist/types/{checkbox.d.ts → Checkbox.d.ts} +4 -4
- package/dist/types/{date-picker.d.ts → DatePicker.d.ts} +3 -3
- package/dist/types/{favicon.d.ts → Favicon.d.ts} +3 -3
- package/dist/types/{grid.d.ts → Grid.d.ts} +4 -4
- package/dist/types/{icon.d.ts → Icon.d.ts} +3 -3
- package/dist/types/{icon-button.d.ts → IconButton.d.ts} +3 -3
- package/dist/types/{icon-link-button.d.ts → IconLinkButton.d.ts} +3 -3
- package/dist/types/{inline-message.d.ts → InlineMessage.d.ts} +3 -3
- package/dist/types/{intended-audience-signifier.d.ts → IntendedAudienceSignifier.d.ts} +3 -3
- package/dist/types/{layout.d.ts → Layout.d.ts} +3 -3
- package/dist/types/{link.d.ts → Link.d.ts} +3 -3
- package/dist/types/{link-button.d.ts → LinkButton.d.ts} +3 -3
- package/dist/types/{menu.d.ts → Menu.d.ts} +3 -3
- package/dist/types/{radio-group.d.ts → RadioGroup.d.ts} +3 -3
- package/dist/types/{select.d.ts → Select.d.ts} +3 -3
- package/dist/types/{tag-picker.d.ts → TagPicker.d.ts} +3 -3
- package/dist/types/{text-area.d.ts → TextArea.d.ts} +3 -3
- package/dist/types/{text-input.d.ts → TextInput.d.ts} +3 -3
- package/dist/types/TopBar.d.ts +15 -15
- package/dist/types/{typography.d.ts → Typography.d.ts} +3 -3
- package/dist/types/{user-menu.d.ts → UserMenu.d.ts} +1 -1
- package/dist/types/components/{alert-banner → AlertBanner}/sandbox.d.ts +2 -2
- package/dist/types/components/{alert-banner → AlertBanner}/types.d.ts +2 -2
- package/dist/types/components/{avatar → Avatar}/sandbox.d.ts +2 -2
- package/dist/types/components/{avatar-button → AvatarButton}/sandbox.d.ts +1 -1
- package/dist/types/components/{avatar-button → AvatarButton}/styles.d.ts +1 -1
- package/dist/types/components/{avatar-button → AvatarButton}/types.d.ts +1 -1
- package/dist/types/components/{avatar-link → AvatarLink}/sandbox.d.ts +1 -1
- package/dist/types/components/{avatar-link → AvatarLink}/styles.d.ts +1 -1
- package/dist/types/components/{avatar-link → AvatarLink}/types.d.ts +1 -1
- package/dist/types/components/{button → Button}/sandbox.d.ts +2 -2
- package/dist/types/components/{button → Button}/types.d.ts +1 -1
- package/dist/types/components/{checkbox → Checkbox}/CheckboxGroupSandbox.d.ts +2 -2
- package/dist/types/components/{checkbox → Checkbox}/CheckboxSandbox.d.ts +2 -2
- package/dist/types/components/{checkbox → Checkbox}/types.d.ts +1 -1
- package/dist/types/components/DatePicker/sandbox.d.ts +2 -0
- package/dist/types/components/{date-picker → DatePicker}/types.d.ts +1 -1
- package/dist/types/components/{favicon → Favicon}/sandbox.d.ts +2 -2
- package/dist/types/components/{favicon → Favicon}/types.d.ts +1 -1
- package/dist/types/components/{grid → Grid}/sandbox.d.ts +1 -1
- package/dist/types/components/Icon/sandbox.d.ts +5 -0
- package/dist/types/components/{icon-button → IconButton}/sandbox.d.ts +2 -2
- package/dist/types/components/{icon-button → IconButton}/styles.d.ts +20 -20
- package/dist/types/components/{icon-button → IconButton}/types.d.ts +1 -1
- package/dist/types/components/{icon-link-button → IconLinkButton}/sandbox.d.ts +2 -2
- package/dist/types/components/{icon-link-button → IconLinkButton}/styles.d.ts +20 -20
- package/dist/types/components/{icon-link-button → IconLinkButton}/types.d.ts +1 -1
- package/dist/types/components/InlineMessage/sandbox.d.ts +5 -0
- package/dist/types/components/{inline-message → InlineMessage}/types.d.ts +1 -1
- package/dist/types/components/{intended-audience-signifier → IntendedAudienceSignifier}/sandbox.d.ts +1 -1
- package/dist/types/components/{layout → Layout}/sandbox.d.ts +1 -1
- package/dist/types/components/{link → Link}/sandbox.d.ts +2 -2
- package/dist/types/components/{link → Link}/types.d.ts +1 -1
- package/dist/types/components/LinkButton/sandbox.d.ts +5 -0
- package/dist/types/components/{link-button → LinkButton}/styles.d.ts +20 -20
- package/dist/types/components/{link-button → LinkButton}/types.d.ts +1 -1
- package/dist/types/components/{menu → Menu}/sandbox.d.ts +2 -2
- package/dist/types/components/{menu → Menu}/types.d.ts +1 -1
- package/dist/types/components/{radio-group → RadioGroup}/sandbox.d.ts +2 -2
- package/dist/types/components/{radio-group → RadioGroup}/types.d.ts +1 -1
- package/dist/types/components/{select → Select}/sandbox.d.ts +2 -2
- package/dist/types/components/{select → Select}/types.d.ts +1 -1
- package/dist/types/components/{text-area → TextArea}/sandbox.d.ts +2 -2
- package/dist/types/components/{text-area → TextArea}/types.d.ts +1 -1
- package/dist/types/components/{text-input → TextInput}/sandbox.d.ts +2 -2
- package/dist/types/components/{text-input → TextInput}/types.d.ts +1 -1
- package/dist/types/components/{topbar/topBarItem → TopBar/TopBarItem}/sandbox.d.ts +2 -2
- package/dist/types/components/{topbar/topBarItem → TopBar/TopBarItem}/styles.d.ts +2 -2
- package/dist/types/components/{topbar/topBarNavigation → TopBar/TopBarNavigation}/sandbox.d.ts +2 -2
- package/dist/types/components/{topbar/topBarNavigation → TopBar/TopBarNavigation}/styles.d.ts +2 -2
- package/dist/types/components/{topbar/topBarNavigation → TopBar/TopBarNavigation}/types.d.ts +1 -1
- package/dist/types/components/{topbar/topBarToolName → TopBar/TopBarToolName}/sandbox.d.ts +2 -2
- package/dist/types/components/{topbar/topBarToolName → TopBar/TopBarToolName}/styles.d.ts +2 -2
- package/dist/types/components/{topbar/topBarToolName → TopBar/TopBarToolName}/types.d.ts +2 -2
- package/dist/types/components/{topbar → TopBar}/sandbox.d.ts +2 -2
- package/dist/types/components/{topbar → TopBar}/styles.d.ts +1 -1
- package/dist/types/components/{typography → Typography}/sandbox.d.ts +2 -2
- package/dist/types/index.d.ts +2 -2
- package/dist/types/styleD/build/typescript/base/colors.d.ts +2 -2
- package/dist/types/styleD/build/typescript/base/radius.d.ts +6 -6
- package/dist/types/styleD/build/typescript/base/sizing.d.ts +20 -20
- package/dist/types/styleD/build/typescript/base/spacing.d.ts +34 -34
- package/dist/types/styleD/build/typescript/base/typography.d.ts +42 -42
- package/dist/types/styleD/build/typescript/component/alertBanner.d.ts +8 -8
- package/dist/types/styleD/build/typescript/component/avatar.d.ts +33 -33
- package/dist/types/styleD/build/typescript/component/button.d.ts +18 -18
- package/dist/types/styleD/build/typescript/component/checkbox.d.ts +16 -16
- package/dist/types/styleD/build/typescript/component/favicon.d.ts +3 -3
- package/dist/types/styleD/build/typescript/component/form.d.ts +1 -1
- package/dist/types/styleD/build/typescript/component/icon.d.ts +1 -1
- package/dist/types/styleD/build/typescript/component/inlineMessage.d.ts +2 -2
- package/dist/types/styleD/build/typescript/component/layout.d.ts +3 -3
- package/dist/types/styleD/build/typescript/component/menu.d.ts +30 -30
- package/dist/types/styleD/build/typescript/component/select.d.ts +2 -2
- package/dist/types/styleD/build/typescript/component/textArea.d.ts +3 -3
- package/dist/types/styleD/build/typescript/component/textInput.d.ts +3 -3
- package/dist/types/styleD/build/typescript/component/{TopBar.d.ts → topBar.d.ts} +26 -26
- package/dist/types/styleD/build/typescript/semantic/colors.d.ts +39 -38
- package/dist/types/styleD/build/typescript/semantic/grid.d.ts +6 -6
- package/dist/types/styleD/build/typescript/semantic/sizing.d.ts +4 -4
- package/dist/types/styleD/build/typescript/semantic/typography.d.ts +75 -75
- package/dist/types/templates/component/sandbox.d.ts +1 -1
- package/package.json +183 -183
- package/dist/avatarButton.cjs +0 -7
- package/dist/avatarButton.js +0 -1
- package/dist/avatarLink.cjs +0 -7
- package/dist/avatarLink.js +0 -1
- package/dist/checkbox.js +0 -3
- package/dist/components/intended-audience-signifier/IntendedAudienceSignifier.js +0 -37
- package/dist/icon-button.cjs +0 -7
- package/dist/icon-button.js +0 -1
- package/dist/icon-link-button.cjs +0 -7
- package/dist/icon-link-button.js +0 -1
- package/dist/link-button.cjs +0 -7
- package/dist/link-button.js +0 -1
- package/dist/styleD/build/css/component/topBarItem.css +0 -7
- package/dist/tag-picker.js +0 -5
- package/dist/types/components/date-picker/sandbox.d.ts +0 -2
- package/dist/types/components/icon/sandbox.d.ts +0 -5
- package/dist/types/components/inline-message/sandbox.d.ts +0 -5
- package/dist/types/components/link-button/sandbox.d.ts +0 -5
- /package/dist/{form.cjs → Form.cjs} +0 -0
- /package/dist/{form.js → Form.js} +0 -0
- /package/dist/components/{avatar → Avatar}/Avatar.cjs +0 -0
- /package/dist/components/{avatar → Avatar}/Avatar.js +0 -0
- /package/dist/components/{byline → Byline}/Byline.cjs +0 -0
- /package/dist/components/{byline → Byline}/Byline.js +0 -0
- /package/dist/components/{byline → Byline}/Preview.cjs +0 -0
- /package/dist/components/{byline → Byline}/Preview.js +0 -0
- /package/dist/components/{byline → Byline}/lib.cjs +0 -0
- /package/dist/components/{byline → Byline}/lib.js +0 -0
- /package/dist/components/{byline → Byline}/placeholder.cjs +0 -0
- /package/dist/components/{byline → Byline}/placeholder.js +0 -0
- /package/dist/components/{byline → Byline}/plugins.cjs +0 -0
- /package/dist/components/{byline → Byline}/plugins.js +0 -0
- /package/dist/components/{byline → Byline}/schema.cjs +0 -0
- /package/dist/components/{byline → Byline}/schema.js +0 -0
- /package/dist/components/{byline → Byline}/styles.cjs +0 -0
- /package/dist/components/{byline → Byline}/styles.js +0 -0
- /package/dist/components/{checkbox → Checkbox}/Checkbox.cjs +0 -0
- /package/dist/components/{checkbox → Checkbox}/Checkbox.js +0 -0
- /package/dist/components/{date-picker → DatePicker}/styles.cjs +0 -0
- /package/dist/components/{date-picker → DatePicker}/styles.js +0 -0
- /package/dist/components/{form → Form}/types.cjs +0 -0
- /package/dist/components/{form → Form}/types.js +0 -0
- /package/dist/components/{grid → Grid}/Grid.cjs +0 -0
- /package/dist/components/{grid → Grid}/Grid.js +0 -0
- /package/dist/components/{grid → Grid}/styles.cjs +0 -0
- /package/dist/components/{grid → Grid}/styles.js +0 -0
- /package/dist/components/{icon → Icon}/Icon.cjs +0 -0
- /package/dist/components/{icon → Icon}/Icon.js +0 -0
- /package/dist/components/{intended-audience-signifier → IntendedAudienceSignifier}/FlagIcons.cjs +0 -0
- /package/dist/components/{intended-audience-signifier → IntendedAudienceSignifier}/FlagIcons.js +0 -0
- /package/dist/components/{intended-audience-signifier → IntendedAudienceSignifier}/styles.cjs +0 -0
- /package/dist/components/{intended-audience-signifier → IntendedAudienceSignifier}/styles.js +0 -0
- /package/dist/components/{layout → Layout}/Layout.cjs +0 -0
- /package/dist/components/{layout → Layout}/Layout.js +0 -0
- /package/dist/components/{link → Link}/styles.cjs +0 -0
- /package/dist/components/{link → Link}/styles.js +0 -0
- /package/dist/components/{radio-group → RadioGroup}/styles.cjs +0 -0
- /package/dist/components/{radio-group → RadioGroup}/styles.js +0 -0
- /package/dist/components/{tag-picker → TagPicker}/Autocomplete.cjs +0 -0
- /package/dist/components/{tag-picker → TagPicker}/Autocomplete.js +0 -0
- /package/dist/components/{tag-picker → TagPicker}/TagAutocomplete.cjs +0 -0
- /package/dist/components/{tag-picker → TagPicker}/TagAutocomplete.js +0 -0
- /package/dist/components/{tag-picker → TagPicker}/TagTable.cjs +0 -0
- /package/dist/components/{tag-picker → TagPicker}/TagTable.js +0 -0
- /package/dist/components/{tag-picker → TagPicker}/styles.cjs +0 -0
- /package/dist/components/{tag-picker → TagPicker}/styles.js +0 -0
- /package/dist/components/{topbar/topBarItem → TopBar/TopBarItem}/TopBarItem.cjs +0 -0
- /package/dist/components/{topbar/topBarItem → TopBar/TopBarItem}/TopBarItem.js +0 -0
- /package/dist/components/{typography → Typography}/styles.cjs +0 -0
- /package/dist/components/{typography → Typography}/styles.js +0 -0
- /package/dist/components/{user-menu → UserMenu}/PreferenceRadioGroup.cjs +0 -0
- /package/dist/components/{user-menu → UserMenu}/PreferenceRadioGroup.js +0 -0
- /package/dist/components/{TitleText.cjs → UserMenu/TitleText.cjs} +0 -0
- /package/dist/components/{TitleText.js → UserMenu/TitleText.js} +0 -0
- /package/dist/components/{user-menu → UserMenu}/styles.cjs +0 -0
- /package/dist/components/{user-menu → UserMenu}/styles.js +0 -0
- /package/dist/types/{form.d.ts → Form.d.ts} +0 -0
- /package/dist/types/components/{alert-banner → AlertBanner}/AlertBanner.d.ts +0 -0
- /package/dist/types/components/{alert-banner → AlertBanner}/styles.d.ts +0 -0
- /package/dist/types/components/{avatar → Avatar}/Avatar.d.ts +0 -0
- /package/dist/types/components/{avatar → Avatar}/styles.d.ts +0 -0
- /package/dist/types/components/{avatar → Avatar}/types.d.ts +0 -0
- /package/dist/types/components/{avatar-button → AvatarButton}/AvatarButton.d.ts +0 -0
- /package/dist/types/components/{avatar-link → AvatarLink}/AvatarLink.d.ts +0 -0
- /package/dist/types/components/{button → Button}/Button.d.ts +0 -0
- /package/dist/types/components/{button → Button}/styles.d.ts +0 -0
- /package/dist/types/components/{byline → Byline}/Byline.d.ts +0 -0
- /package/dist/types/components/{byline → Byline}/Preview.d.ts +0 -0
- /package/dist/types/components/{byline → Byline}/contributors-fixture.d.ts +0 -0
- /package/dist/types/components/{byline → Byline}/lib.d.ts +0 -0
- /package/dist/types/components/{byline → Byline}/lib.test.d.ts +0 -0
- /package/dist/types/components/{byline → Byline}/placeholder.d.ts +0 -0
- /package/dist/types/components/{byline → Byline}/plugins.d.ts +0 -0
- /package/dist/types/components/{byline → Byline}/schema.d.ts +0 -0
- /package/dist/types/components/{byline → Byline}/styles.d.ts +0 -0
- /package/dist/types/components/{byline → Byline}/theme.d.ts +0 -0
- /package/dist/types/components/{checkbox → Checkbox}/Checkbox.d.ts +0 -0
- /package/dist/types/components/{checkbox → Checkbox}/CheckboxGroup.d.ts +0 -0
- /package/dist/types/components/{checkbox → Checkbox}/styles.d.ts +0 -0
- /package/dist/types/components/{date-picker → DatePicker}/DatePicker.d.ts +0 -0
- /package/dist/types/components/{date-picker → DatePicker}/styles.d.ts +0 -0
- /package/dist/types/components/{favicon → Favicon}/Favicon.d.ts +0 -0
- /package/dist/types/components/{favicon → Favicon}/styles.d.ts +0 -0
- /package/dist/types/components/{form → Form}/Form.d.ts +0 -0
- /package/dist/types/components/{form → Form}/styles.d.ts +0 -0
- /package/dist/types/components/{form → Form}/types.d.ts +0 -0
- /package/dist/types/components/{grid → Grid}/Grid.d.ts +0 -0
- /package/dist/types/components/{grid → Grid}/styles.d.ts +0 -0
- /package/dist/types/components/{grid → Grid}/styles.test.d.ts +0 -0
- /package/dist/types/components/{grid → Grid}/types.d.ts +0 -0
- /package/dist/types/components/{icon → Icon}/Icon.d.ts +0 -0
- /package/dist/types/components/{icon → Icon}/styles.d.ts +0 -0
- /package/dist/types/components/{icon → Icon}/types.d.ts +0 -0
- /package/dist/types/components/{icon-button → IconButton}/IconButton.d.ts +0 -0
- /package/dist/types/components/{icon-link-button → IconLinkButton}/IconLinkButton.d.ts +0 -0
- /package/dist/types/components/{inline-message → InlineMessage}/InlineMessage.d.ts +0 -0
- /package/dist/types/components/{inline-message → InlineMessage}/styles.d.ts +0 -0
- /package/dist/types/components/{intended-audience-signifier → IntendedAudienceSignifier}/FlagIcons.d.ts +0 -0
- /package/dist/types/components/{intended-audience-signifier → IntendedAudienceSignifier}/IntendedAudienceSignifier.d.ts +0 -0
- /package/dist/types/components/{intended-audience-signifier → IntendedAudienceSignifier}/styles.d.ts +0 -0
- /package/dist/types/components/{intended-audience-signifier → IntendedAudienceSignifier}/types.d.ts +0 -0
- /package/dist/types/components/{layout → Layout}/Layout.d.ts +0 -0
- /package/dist/types/components/{layout → Layout}/styles.d.ts +0 -0
- /package/dist/types/components/{layout → Layout}/types.d.ts +0 -0
- /package/dist/types/components/{link → Link}/Link.d.ts +0 -0
- /package/dist/types/components/{link → Link}/styles.d.ts +0 -0
- /package/dist/types/components/{link-button → LinkButton}/LinkButton.d.ts +0 -0
- /package/dist/types/components/{menu → Menu}/Menu.d.ts +0 -0
- /package/dist/types/components/{menu → Menu}/styles.d.ts +0 -0
- /package/dist/types/components/{radio-group → RadioGroup}/RadioGroup.d.ts +0 -0
- /package/dist/types/components/{radio-group → RadioGroup}/styles.d.ts +0 -0
- /package/dist/types/components/{select → Select}/Select.d.ts +0 -0
- /package/dist/types/components/{select → Select}/styles.d.ts +0 -0
- /package/dist/types/components/{tag-picker → TagPicker}/Autocomplete.d.ts +0 -0
- /package/dist/types/components/{tag-picker → TagPicker}/TagAutocomplete.d.ts +0 -0
- /package/dist/types/components/{tag-picker → TagPicker}/TagTable.d.ts +0 -0
- /package/dist/types/components/{tag-picker → TagPicker}/example-tags.d.ts +0 -0
- /package/dist/types/components/{tag-picker → TagPicker}/styles.d.ts +0 -0
- /package/dist/types/components/{tag-picker → TagPicker}/types.d.ts +0 -0
- /package/dist/types/components/{text-area → TextArea}/TextArea.d.ts +0 -0
- /package/dist/types/components/{text-area → TextArea}/styles.d.ts +0 -0
- /package/dist/types/components/{text-input → TextInput}/TextInput.d.ts +0 -0
- /package/dist/types/components/{text-input → TextInput}/styles.d.ts +0 -0
- /package/dist/types/components/{topbar → TopBar}/TopBar.d.ts +0 -0
- /package/dist/types/components/{topbar/topBarItem → TopBar/TopBarItem}/TopBarItem.d.ts +0 -0
- /package/dist/types/components/{topbar/topBarItem → TopBar/TopBarItem}/types.d.ts +0 -0
- /package/dist/types/components/{topbar/topBarNavigation → TopBar/TopBarNavigation}/TopBarNavigation.d.ts +0 -0
- /package/dist/types/components/{topbar/topBarToolName → TopBar/TopBarToolName}/TopBarToolName.d.ts +0 -0
- /package/dist/types/components/{topbar → TopBar}/types.d.ts +0 -0
- /package/dist/types/components/{typography → Typography}/Typography.d.ts +0 -0
- /package/dist/types/components/{typography → Typography}/styles.d.ts +0 -0
- /package/dist/types/components/{typography → Typography}/types.d.ts +0 -0
- /package/dist/types/components/{user-menu → UserMenu}/PreferenceRadioGroup.d.ts +0 -0
- /package/dist/types/components/{TitleText.d.ts → UserMenu/TitleText.d.ts} +0 -0
- /package/dist/types/components/{user-menu → UserMenu}/UserMenu.d.ts +0 -0
- /package/dist/types/components/{user-menu → UserMenu}/default-options.d.ts +0 -0
- /package/dist/types/components/{user-menu → UserMenu}/model.d.ts +0 -0
- /package/dist/types/components/{user-menu → UserMenu}/styles.d.ts +0 -0
- /package/dist/types/components/{user-menu → UserMenu}/theme.d.ts +0 -0
- /package/dist/types/components/{user-menu → UserMenu}/types.d.ts +0 -0
|
@@ -2,8 +2,8 @@ import { jsx, jsxs } from '@emotion/react/jsx-runtime';
|
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import { ListBoxItem, Select as Select$1, Button, SelectValue, Popover, ListBox as ListBox$1 } from 'react-aria-components';
|
|
4
4
|
import { mergeDeep } from '../../util/mergeDeep.js';
|
|
5
|
-
import { FormInputContainer } from '../
|
|
6
|
-
import { Icon } from '../
|
|
5
|
+
import { FormInputContainer } from '../Form/Form.js';
|
|
6
|
+
import { Icon } from '../Icon/Icon.js';
|
|
7
7
|
import { defaultSelectTheme, listBoxItemStyles, buttonStyles, popoverStyles, listBoxStyles } from './styles.js';
|
|
8
8
|
|
|
9
9
|
function Option({ children, theme = {} }) {
|
|
@@ -33,7 +33,7 @@ const listBoxItemStyles = (theme) => {
|
|
|
33
33
|
|
|
34
34
|
&[data-focus-visible] {
|
|
35
35
|
outline: ${theme.shared.option.focused.outline};
|
|
36
|
-
outline-offset: ${theme.shared.option.focused
|
|
36
|
+
outline-offset: ${theme.shared.option.focused.outlineOffset};
|
|
37
37
|
background-color: ${theme.shared.option.focused.backgroundColor};
|
|
38
38
|
}
|
|
39
39
|
|
|
@@ -78,7 +78,7 @@ const buttonStyles = (theme, isInvalid) => {
|
|
|
78
78
|
|
|
79
79
|
&[data-focus-visible] {
|
|
80
80
|
outline: ${theme.shared.button.focused.outline};
|
|
81
|
-
outline-offset: ${theme.shared.button.focused
|
|
81
|
+
outline-offset: ${theme.shared.button.focused.outlineOffset};
|
|
82
82
|
}
|
|
83
83
|
|
|
84
84
|
&[data-disabled] {
|
|
@@ -31,7 +31,7 @@ const listBoxItemStyles = (theme) => {
|
|
|
31
31
|
|
|
32
32
|
&[data-focus-visible] {
|
|
33
33
|
outline: ${theme.shared.option.focused.outline};
|
|
34
|
-
outline-offset: ${theme.shared.option.focused
|
|
34
|
+
outline-offset: ${theme.shared.option.focused.outlineOffset};
|
|
35
35
|
background-color: ${theme.shared.option.focused.backgroundColor};
|
|
36
36
|
}
|
|
37
37
|
|
|
@@ -76,7 +76,7 @@ const buttonStyles = (theme, isInvalid) => {
|
|
|
76
76
|
|
|
77
77
|
&[data-focus-visible] {
|
|
78
78
|
outline: ${theme.shared.button.focused.outline};
|
|
79
|
-
outline-offset: ${theme.shared.button.focused
|
|
79
|
+
outline-offset: ${theme.shared.button.focused.outlineOffset};
|
|
80
80
|
}
|
|
81
81
|
|
|
82
82
|
&[data-disabled] {
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
var jsxRuntime = require('@emotion/react/jsx-runtime');
|
|
4
4
|
var reactAriaComponents = require('react-aria-components');
|
|
5
5
|
var mergeDeep = require('../../util/mergeDeep.cjs');
|
|
6
|
-
var Form = require('../
|
|
6
|
+
var Form = require('../Form/Form.cjs');
|
|
7
7
|
var styles = require('./styles.cjs');
|
|
8
8
|
|
|
9
9
|
function TextArea({
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx } from '@emotion/react/jsx-runtime';
|
|
2
2
|
import { TextField, TextArea as TextArea$1 } from 'react-aria-components';
|
|
3
3
|
import { mergeDeep } from '../../util/mergeDeep.js';
|
|
4
|
-
import { FormInputContainer } from '../
|
|
4
|
+
import { FormInputContainer } from '../Form/Form.js';
|
|
5
5
|
import { defaultTextAreaTheme, textAreaStyles } from './styles.js';
|
|
6
6
|
|
|
7
7
|
function TextArea({ size = "md", isInvalid = false, theme = {}, placeholder, ...props }) {
|
|
@@ -8,13 +8,13 @@ const defaultTextAreaTheme = textArea.componentTextArea;
|
|
|
8
8
|
const textAreaStyles = (theme, { size, isInvalid }) => {
|
|
9
9
|
return react.css`
|
|
10
10
|
${typography.convertTypographyToEmotionStringStyle(theme[size].typography)}
|
|
11
|
-
background-color: ${theme.shared
|
|
12
|
-
border-radius: ${theme.shared
|
|
11
|
+
background-color: ${theme.shared.backgroundColor};
|
|
12
|
+
border-radius: ${theme.shared.borderRadius};
|
|
13
13
|
border: ${theme.shared.border};
|
|
14
14
|
color: ${theme.shared.color};
|
|
15
15
|
cursor: ${theme.shared.cursor};
|
|
16
16
|
height: ${theme.shared.height};
|
|
17
|
-
margin-top: ${theme.shared
|
|
17
|
+
margin-top: ${theme.shared.marginTop};
|
|
18
18
|
padding: ${theme.shared.padding.top} ${theme.shared.padding.right}
|
|
19
19
|
${theme.shared.padding.bottom} ${theme.shared.padding.left};
|
|
20
20
|
|
|
@@ -6,13 +6,13 @@ const defaultTextAreaTheme = componentTextArea;
|
|
|
6
6
|
const textAreaStyles = (theme, { size, isInvalid }) => {
|
|
7
7
|
return css`
|
|
8
8
|
${convertTypographyToEmotionStringStyle(theme[size].typography)}
|
|
9
|
-
background-color: ${theme.shared
|
|
10
|
-
border-radius: ${theme.shared
|
|
9
|
+
background-color: ${theme.shared.backgroundColor};
|
|
10
|
+
border-radius: ${theme.shared.borderRadius};
|
|
11
11
|
border: ${theme.shared.border};
|
|
12
12
|
color: ${theme.shared.color};
|
|
13
13
|
cursor: ${theme.shared.cursor};
|
|
14
14
|
height: ${theme.shared.height};
|
|
15
|
-
margin-top: ${theme.shared
|
|
15
|
+
margin-top: ${theme.shared.marginTop};
|
|
16
16
|
padding: ${theme.shared.padding.top} ${theme.shared.padding.right}
|
|
17
17
|
${theme.shared.padding.bottom} ${theme.shared.padding.left};
|
|
18
18
|
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
var jsxRuntime = require('@emotion/react/jsx-runtime');
|
|
4
4
|
var reactAriaComponents = require('react-aria-components');
|
|
5
5
|
var mergeDeep = require('../../util/mergeDeep.cjs');
|
|
6
|
-
var Form = require('../
|
|
6
|
+
var Form = require('../Form/Form.cjs');
|
|
7
7
|
var styles = require('./styles.cjs');
|
|
8
8
|
|
|
9
9
|
function TextInput({
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx } from '@emotion/react/jsx-runtime';
|
|
2
2
|
import { TextField, Input } from 'react-aria-components';
|
|
3
3
|
import { mergeDeep } from '../../util/mergeDeep.js';
|
|
4
|
-
import { FormInputContainer } from '../
|
|
4
|
+
import { FormInputContainer } from '../Form/Form.js';
|
|
5
5
|
import { defaultTextInputTheme, textInputStyles } from './styles.js';
|
|
6
6
|
|
|
7
7
|
function TextInput({ size = "md", isInvalid = false, theme = {}, placeholder, ...props }) {
|
|
@@ -8,13 +8,13 @@ const defaultTextInputTheme = textInput.componentTextInput;
|
|
|
8
8
|
const textInputStyles = (theme, { size, isInvalid }) => {
|
|
9
9
|
return react.css`
|
|
10
10
|
${typography.convertTypographyToEmotionStringStyle(theme[size].typography)}
|
|
11
|
-
background-color: ${theme.shared
|
|
12
|
-
border-radius: ${theme.shared
|
|
11
|
+
background-color: ${theme.shared.backgroundColor};
|
|
12
|
+
border-radius: ${theme.shared.borderRadius};
|
|
13
13
|
border: ${theme.shared.border};
|
|
14
14
|
color: ${theme.shared.color};
|
|
15
15
|
cursor: ${theme.shared.cursor};
|
|
16
16
|
height: ${theme[size].height};
|
|
17
|
-
margin-top: ${theme.shared
|
|
17
|
+
margin-top: ${theme.shared.marginTop};
|
|
18
18
|
padding: ${theme.shared.padding.top} ${theme.shared.padding.right}
|
|
19
19
|
${theme.shared.padding.bottom} ${theme.shared.padding.left};
|
|
20
20
|
|
|
@@ -6,13 +6,13 @@ const defaultTextInputTheme = componentTextInput;
|
|
|
6
6
|
const textInputStyles = (theme, { size, isInvalid }) => {
|
|
7
7
|
return css`
|
|
8
8
|
${convertTypographyToEmotionStringStyle(theme[size].typography)}
|
|
9
|
-
background-color: ${theme.shared
|
|
10
|
-
border-radius: ${theme.shared
|
|
9
|
+
background-color: ${theme.shared.backgroundColor};
|
|
10
|
+
border-radius: ${theme.shared.borderRadius};
|
|
11
11
|
border: ${theme.shared.border};
|
|
12
12
|
color: ${theme.shared.color};
|
|
13
13
|
cursor: ${theme.shared.cursor};
|
|
14
14
|
height: ${theme[size].height};
|
|
15
|
-
margin-top: ${theme.shared
|
|
15
|
+
margin-top: ${theme.shared.marginTop};
|
|
16
16
|
padding: ${theme.shared.padding.top} ${theme.shared.padding.right}
|
|
17
17
|
${theme.shared.padding.bottom} ${theme.shared.padding.left};
|
|
18
18
|
|
|
@@ -5,14 +5,14 @@ var React = require('react');
|
|
|
5
5
|
var reactAriaComponents = require('react-aria-components');
|
|
6
6
|
var mergeDeep = require('../../util/mergeDeep.cjs');
|
|
7
7
|
var useResize = require('../../util/useResize.cjs');
|
|
8
|
-
var Avatar = require('../
|
|
9
|
-
var Icon = require('../
|
|
8
|
+
var Avatar = require('../Avatar/Avatar.cjs');
|
|
9
|
+
var Icon = require('../Icon/Icon.cjs');
|
|
10
10
|
var styles = require('./styles.cjs');
|
|
11
|
-
var TopBarItem = require('./
|
|
12
|
-
var TopBarNavigation = require('./
|
|
13
|
-
var TopBarToolName = require('./
|
|
14
|
-
var AvatarLink = require('../
|
|
15
|
-
var AvatarButton = require('../
|
|
11
|
+
var TopBarItem = require('./TopBarItem/TopBarItem.cjs');
|
|
12
|
+
var TopBarNavigation = require('./TopBarNavigation/TopBarNavigation.cjs');
|
|
13
|
+
var TopBarToolName = require('./TopBarToolName/TopBarToolName.cjs');
|
|
14
|
+
var AvatarLink = require('../AvatarLink/AvatarLink.cjs');
|
|
15
|
+
var AvatarButton = require('../AvatarButton/AvatarButton.cjs');
|
|
16
16
|
|
|
17
17
|
function TopBarSide({
|
|
18
18
|
children,
|
|
@@ -28,7 +28,7 @@ function TopBarSide({
|
|
|
28
28
|
items.push(
|
|
29
29
|
React.cloneElement(child, {
|
|
30
30
|
key: `${child.key}-${i}`,
|
|
31
|
-
theme: theme?.
|
|
31
|
+
theme: theme?.item,
|
|
32
32
|
alignment
|
|
33
33
|
})
|
|
34
34
|
);
|
|
@@ -37,7 +37,7 @@ function TopBarSide({
|
|
|
37
37
|
items.push(
|
|
38
38
|
React.cloneElement(child, {
|
|
39
39
|
key: `${child.key}-${i}`,
|
|
40
|
-
theme: theme?.
|
|
40
|
+
theme: theme?.navigation,
|
|
41
41
|
alignment
|
|
42
42
|
})
|
|
43
43
|
);
|
|
@@ -82,11 +82,11 @@ function TopBar({
|
|
|
82
82
|
if (child.type === TopBarToolName.TopBarToolName) {
|
|
83
83
|
toolName ?? (toolName = React.cloneElement(
|
|
84
84
|
child,
|
|
85
|
-
{ theme: mergedTheme.
|
|
85
|
+
{ theme: mergedTheme.toolName, collapseBelow: collapseBelow.toolName }
|
|
86
86
|
));
|
|
87
87
|
}
|
|
88
88
|
if (child.type === Avatar.Avatar || child.type === AvatarLink.AvatarLink || child.type === AvatarButton.AvatarButton) {
|
|
89
|
-
avatar ?? (avatar = /* @__PURE__ */ jsxRuntime.jsx(TopBarItem.TopBarItem, { theme: mergedTheme.
|
|
89
|
+
avatar ?? (avatar = /* @__PURE__ */ jsxRuntime.jsx(TopBarItem.TopBarItem, { theme: mergedTheme.item, alignment: "right", children: child }));
|
|
90
90
|
}
|
|
91
91
|
if (child.type === TopBarContainerLeft) {
|
|
92
92
|
leftSide ?? (leftSide = React.cloneElement(
|
|
@@ -114,7 +114,7 @@ function TopBar({
|
|
|
114
114
|
React.cloneElement(
|
|
115
115
|
child,
|
|
116
116
|
{
|
|
117
|
-
theme: mergedTheme.
|
|
117
|
+
theme: mergedTheme.navigation,
|
|
118
118
|
alignment: "left",
|
|
119
119
|
_menuOpen: menuOpen
|
|
120
120
|
}
|
|
@@ -124,7 +124,7 @@ function TopBar({
|
|
|
124
124
|
if (child.type === TopBarItem.TopBarItem) {
|
|
125
125
|
leftSideMenuItems.push(
|
|
126
126
|
React.cloneElement(child, {
|
|
127
|
-
theme: mergedTheme.
|
|
127
|
+
theme: mergedTheme.item,
|
|
128
128
|
alignment: "left",
|
|
129
129
|
_menuOpen: menuOpen
|
|
130
130
|
})
|
|
@@ -170,7 +170,7 @@ function TopBar({
|
|
|
170
170
|
{
|
|
171
171
|
alignment: "left",
|
|
172
172
|
size: "sm",
|
|
173
|
-
theme: mergedTheme.
|
|
173
|
+
theme: mergedTheme.item,
|
|
174
174
|
"aria-label": "Navigation Menu",
|
|
175
175
|
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
176
176
|
Icon.Icon,
|
|
@@ -3,14 +3,14 @@ import React from 'react';
|
|
|
3
3
|
import { DialogTrigger, Button, Popover } from 'react-aria-components';
|
|
4
4
|
import { mergeDeep } from '../../util/mergeDeep.js';
|
|
5
5
|
import { useResize } from '../../util/useResize.js';
|
|
6
|
-
import { Avatar } from '../
|
|
7
|
-
import { Icon } from '../
|
|
6
|
+
import { Avatar } from '../Avatar/Avatar.js';
|
|
7
|
+
import { Icon } from '../Icon/Icon.js';
|
|
8
8
|
import { defaultTopBarTheme, topBarCollapsedNavMenuButtonStyles, topBarCollapsedNavMenuPopoverStyles, topBarContainerStyles, topBarSpacerStyles, topBarStyles } from './styles.js';
|
|
9
|
-
import { TopBarItem } from './
|
|
10
|
-
import { TopBarNavigation } from './
|
|
11
|
-
import { TopBarToolName } from './
|
|
12
|
-
import { AvatarLink } from '../
|
|
13
|
-
import { AvatarButton } from '../
|
|
9
|
+
import { TopBarItem } from './TopBarItem/TopBarItem.js';
|
|
10
|
+
import { TopBarNavigation } from './TopBarNavigation/TopBarNavigation.js';
|
|
11
|
+
import { TopBarToolName } from './TopBarToolName/TopBarToolName.js';
|
|
12
|
+
import { AvatarLink } from '../AvatarLink/AvatarLink.js';
|
|
13
|
+
import { AvatarButton } from '../AvatarButton/AvatarButton.js';
|
|
14
14
|
|
|
15
15
|
function TopBarSide({ children, alignment, theme }) {
|
|
16
16
|
const items = [];
|
|
@@ -21,14 +21,14 @@ function TopBarSide({ children, alignment, theme }) {
|
|
|
21
21
|
if (child.type === TopBarItem) {
|
|
22
22
|
items.push(React.cloneElement(child, {
|
|
23
23
|
key: `${child.key}-${i}`,
|
|
24
|
-
theme: theme?.
|
|
24
|
+
theme: theme?.item,
|
|
25
25
|
alignment
|
|
26
26
|
}));
|
|
27
27
|
}
|
|
28
28
|
if (child.type === TopBarNavigation) {
|
|
29
29
|
items.push(React.cloneElement(child, {
|
|
30
30
|
key: `${child.key}-${i}`,
|
|
31
|
-
theme: theme?.
|
|
31
|
+
theme: theme?.navigation,
|
|
32
32
|
alignment
|
|
33
33
|
}));
|
|
34
34
|
}
|
|
@@ -57,10 +57,10 @@ function TopBar({ children, collapseBelow = {
|
|
|
57
57
|
return;
|
|
58
58
|
}
|
|
59
59
|
if (child.type === TopBarToolName) {
|
|
60
|
-
toolName ?? (toolName = React.cloneElement(child, { theme: mergedTheme.
|
|
60
|
+
toolName ?? (toolName = React.cloneElement(child, { theme: mergedTheme.toolName, collapseBelow: collapseBelow.toolName }));
|
|
61
61
|
}
|
|
62
62
|
if (child.type === Avatar || child.type === AvatarLink || child.type === AvatarButton) {
|
|
63
|
-
avatar ?? (avatar = jsx(TopBarItem, { theme: mergedTheme.
|
|
63
|
+
avatar ?? (avatar = jsx(TopBarItem, { theme: mergedTheme.item, alignment: "right", children: child }));
|
|
64
64
|
}
|
|
65
65
|
if (child.type === TopBarContainerLeft) {
|
|
66
66
|
leftSide ?? (leftSide = React.cloneElement(child, { theme: mergedTheme }));
|
|
@@ -77,14 +77,14 @@ function TopBar({ children, collapseBelow = {
|
|
|
77
77
|
}
|
|
78
78
|
if (child.type === TopBarNavigation) {
|
|
79
79
|
leftSideMenuItems.push(React.cloneElement(child, {
|
|
80
|
-
theme: mergedTheme.
|
|
80
|
+
theme: mergedTheme.navigation,
|
|
81
81
|
alignment: "left",
|
|
82
82
|
_menuOpen: menuOpen
|
|
83
83
|
}));
|
|
84
84
|
}
|
|
85
85
|
if (child.type === TopBarItem) {
|
|
86
86
|
leftSideMenuItems.push(React.cloneElement(child, {
|
|
87
|
-
theme: mergedTheme.
|
|
87
|
+
theme: mergedTheme.item,
|
|
88
88
|
alignment: "left",
|
|
89
89
|
_menuOpen: menuOpen
|
|
90
90
|
}));
|
|
@@ -100,7 +100,7 @@ function TopBar({ children, collapseBelow = {
|
|
|
100
100
|
showUntil: collapseBelow.containerLeft
|
|
101
101
|
}), children: jsxs(DialogTrigger, { isOpen: menuOpen, onOpenChange: (isOpen) => {
|
|
102
102
|
setMenuOpen(isOpen);
|
|
103
|
-
}, children: [jsx(Button, { "aria-label": "Navigation Menu", ref: buttonRef, css: topBarCollapsedNavMenuButtonStyles(mergedTheme, menuOpen), children: jsx(TopBarItem, { alignment: "left", size: "sm", theme: mergedTheme.
|
|
103
|
+
}, children: [jsx(Button, { "aria-label": "Navigation Menu", ref: buttonRef, css: topBarCollapsedNavMenuButtonStyles(mergedTheme, menuOpen), children: jsx(TopBarItem, { alignment: "left", size: "sm", theme: mergedTheme.item, "aria-label": "Navigation Menu", children: jsx(Icon, { fill: mergedTheme.collapsedNavMenu.button.color, size: "lg", children: menuOpen ? "close" : "menu" }) }) }), jsx(Popover, { css: topBarCollapsedNavMenuPopoverStyles(mergedTheme), offset: mergedTheme.collapsedNavMenu.popover.offset, containerPadding: mergedTheme.collapsedNavMenu.popover.containerPadding, shouldFlip: false, children: leftSideMenuItems })] }) }), jsx("div", { css: topBarContainerStyles(mergedTheme), children: toolName }), jsx("div", { css: topBarContainerStyles(mergedTheme, {
|
|
104
104
|
collapseBelow: collapseBelow.containerLeft
|
|
105
105
|
}), children: leftSide }), jsx("div", { css: [
|
|
106
106
|
topBarSpacerStyles(mergedTheme),
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var react = require('@emotion/react');
|
|
4
|
-
var
|
|
4
|
+
var topBar = require('../../../styleD/build/typescript/component/topBar.cjs');
|
|
5
5
|
|
|
6
|
-
const defaultTopBarItemTheme =
|
|
6
|
+
const defaultTopBarItemTheme = topBar.componentTopBar.item;
|
|
7
7
|
const topBarItemStyles = (theme, alignment, { size }, _menuOpen) => {
|
|
8
8
|
return react.css`
|
|
9
9
|
display: ${theme.display};
|
|
10
|
-
align-items: ${theme
|
|
10
|
+
align-items: ${theme.alignItems};
|
|
11
11
|
height: ${theme.height};
|
|
12
12
|
padding: ${theme[size].padding.top} ${theme[size].padding.right}
|
|
13
13
|
${theme[size].padding.bottom} ${theme[size].padding.left};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { css } from '@emotion/react';
|
|
2
|
-
import { componentTopBar } from '../../../styleD/build/typescript/component/
|
|
2
|
+
import { componentTopBar } from '../../../styleD/build/typescript/component/topBar.js';
|
|
3
3
|
|
|
4
|
-
const defaultTopBarItemTheme = componentTopBar.
|
|
4
|
+
const defaultTopBarItemTheme = componentTopBar.item;
|
|
5
5
|
const topBarItemStyles = (theme, alignment, { size }, _menuOpen) => {
|
|
6
6
|
return css`
|
|
7
7
|
display: ${theme.display};
|
|
8
|
-
align-items: ${theme
|
|
8
|
+
align-items: ${theme.alignItems};
|
|
9
9
|
height: ${theme.height};
|
|
10
10
|
padding: ${theme[size].padding.top} ${theme[size].padding.right}
|
|
11
11
|
${theme[size].padding.bottom} ${theme[size].padding.left};
|
package/dist/components/{topbar/topBarNavigation → TopBar/TopBarNavigation}/TopBarNavigation.cjs
RENAMED
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
var jsxRuntime = require('@emotion/react/jsx-runtime');
|
|
4
4
|
var reactAriaComponents = require('react-aria-components');
|
|
5
5
|
var mergeDeep = require('../../../util/mergeDeep.cjs');
|
|
6
|
-
var Icon = require('../../
|
|
7
|
-
var Menu = require('../../
|
|
6
|
+
var Icon = require('../../Icon/Icon.cjs');
|
|
7
|
+
var Menu = require('../../Menu/Menu.cjs');
|
|
8
8
|
var styles = require('./styles.cjs');
|
|
9
9
|
|
|
10
10
|
const menuIndicator = "keyboard_arrow_down";
|
package/dist/components/{topbar/topBarNavigation → TopBar/TopBarNavigation}/TopBarNavigation.js
RENAMED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsx, jsxs } from '@emotion/react/jsx-runtime';
|
|
2
2
|
import { Pressable, Link } from 'react-aria-components';
|
|
3
3
|
import { mergeDeep } from '../../../util/mergeDeep.js';
|
|
4
|
-
import { Icon } from '../../
|
|
5
|
-
import { Menu, MenuToggle } from '../../
|
|
4
|
+
import { Icon } from '../../Icon/Icon.js';
|
|
5
|
+
import { Menu, MenuToggle } from '../../Menu/Menu.js';
|
|
6
6
|
import { defaultTopBarNavigationTheme, topBarNavigationTextStyles, topBarMenuIndicatorStyles, topBarNavigationStyles, topBarNavigationTypographyStyles, topBarNavigationDividerStyles } from './styles.js';
|
|
7
7
|
|
|
8
8
|
const menuIndicator = "keyboard_arrow_down";
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var react = require('@emotion/react');
|
|
4
|
-
var
|
|
4
|
+
var topBar = require('../../../styleD/build/typescript/component/topBar.cjs');
|
|
5
5
|
var typography = require('../../../styleD/utils/semantic/typography.cjs');
|
|
6
6
|
|
|
7
|
-
const defaultTopBarNavigationTheme =
|
|
7
|
+
const defaultTopBarNavigationTheme = topBar.componentTopBar.navigation;
|
|
8
8
|
const topBarNavigationStyles = (theme, selected, _menuOpen) => {
|
|
9
9
|
return react.css`
|
|
10
10
|
display: ${theme.shared.display};
|
|
11
11
|
position: ${theme.shared.position};
|
|
12
|
-
align-items: ${theme.shared
|
|
12
|
+
align-items: ${theme.shared.alignItems};
|
|
13
13
|
height: ${theme.shared.height};
|
|
14
14
|
padding: ${theme.shared.padding.top} ${theme.shared.padding.right}
|
|
15
15
|
${theme.shared.padding.bottom} ${theme.shared.padding.left};
|
|
@@ -22,54 +22,54 @@ const topBarNavigationStyles = (theme, selected, _menuOpen) => {
|
|
|
22
22
|
|
|
23
23
|
&[data-focus-visible],
|
|
24
24
|
&:focus-visible {
|
|
25
|
-
outline: ${theme.shared
|
|
26
|
-
outline-offset: ${theme.shared
|
|
25
|
+
outline: ${theme.shared.focusVisible.outline};
|
|
26
|
+
outline-offset: ${theme.shared.focusVisible.outlineOffset};
|
|
27
27
|
}
|
|
28
28
|
|
|
29
29
|
&[data-disabled] {
|
|
30
|
-
cursor: ${theme.shared
|
|
31
|
-
color: ${theme.shared
|
|
30
|
+
cursor: ${theme.shared.disabled.cursor};
|
|
31
|
+
color: ${theme.shared.disabled.color};
|
|
32
32
|
}
|
|
33
33
|
|
|
34
34
|
${_menuOpen ? react.css`
|
|
35
|
-
border-right: ${theme.shared
|
|
36
|
-
border-left: ${theme.unselected
|
|
35
|
+
border-right: ${theme.shared.borderTop};
|
|
36
|
+
border-left: ${theme.unselected.borderBottom};
|
|
37
37
|
width: 100%;
|
|
38
38
|
|
|
39
39
|
&[data-hovered],
|
|
40
40
|
&:hover {
|
|
41
|
-
border-left: ${theme.selected
|
|
41
|
+
border-left: ${theme.selected.borderBottom};
|
|
42
42
|
}
|
|
43
43
|
|
|
44
44
|
&[data-focus-visible],
|
|
45
45
|
&:focus-visible {
|
|
46
|
-
border-left: ${theme.selected
|
|
46
|
+
border-left: ${theme.selected.borderBottom};
|
|
47
47
|
}
|
|
48
48
|
|
|
49
49
|
${selected && `
|
|
50
|
-
border-left: ${theme.selected
|
|
51
|
-
background-color: ${theme.shared._menuOpen.selected
|
|
50
|
+
border-left: ${theme.selected.borderBottom};
|
|
51
|
+
background-color: ${theme.shared._menuOpen.selected.backgroundColor};
|
|
52
52
|
`}
|
|
53
53
|
` : react.css`
|
|
54
|
-
border-top: ${theme.shared
|
|
55
|
-
border-bottom: ${theme.unselected
|
|
54
|
+
border-top: ${theme.shared.borderTop};
|
|
55
|
+
border-bottom: ${theme.unselected.borderBottom};
|
|
56
56
|
|
|
57
57
|
&[data-hovered],
|
|
58
58
|
&:hover {
|
|
59
|
-
border-bottom: ${theme.selected
|
|
59
|
+
border-bottom: ${theme.selected.borderBottom};
|
|
60
60
|
}
|
|
61
61
|
|
|
62
62
|
&[data-focus-visible],
|
|
63
63
|
&:focus-visible {
|
|
64
|
-
border-bottom: ${theme.selected
|
|
64
|
+
border-bottom: ${theme.selected.borderBottom};
|
|
65
65
|
}
|
|
66
66
|
|
|
67
67
|
${selected && `
|
|
68
|
-
border-bottom: ${theme.selected
|
|
68
|
+
border-bottom: ${theme.selected.borderBottom};
|
|
69
69
|
`}
|
|
70
70
|
`}
|
|
71
71
|
|
|
72
|
-
text-decoration: ${theme.shared
|
|
72
|
+
text-decoration: ${theme.shared.textDecoration};
|
|
73
73
|
`;
|
|
74
74
|
};
|
|
75
75
|
const topBarNavigationDividerStyles = (theme, { alignment }, _menuOpen) => react.css`
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { css } from '@emotion/react';
|
|
2
|
-
import { componentTopBar } from '../../../styleD/build/typescript/component/
|
|
2
|
+
import { componentTopBar } from '../../../styleD/build/typescript/component/topBar.js';
|
|
3
3
|
import { convertTypographyToEmotionStringStyle } from '../../../styleD/utils/semantic/typography.js';
|
|
4
4
|
|
|
5
|
-
const defaultTopBarNavigationTheme = componentTopBar.
|
|
5
|
+
const defaultTopBarNavigationTheme = componentTopBar.navigation;
|
|
6
6
|
const topBarNavigationStyles = (theme, selected, _menuOpen) => {
|
|
7
7
|
return css`
|
|
8
8
|
display: ${theme.shared.display};
|
|
9
9
|
position: ${theme.shared.position};
|
|
10
|
-
align-items: ${theme.shared
|
|
10
|
+
align-items: ${theme.shared.alignItems};
|
|
11
11
|
height: ${theme.shared.height};
|
|
12
12
|
padding: ${theme.shared.padding.top} ${theme.shared.padding.right}
|
|
13
13
|
${theme.shared.padding.bottom} ${theme.shared.padding.left};
|
|
@@ -20,54 +20,54 @@ const topBarNavigationStyles = (theme, selected, _menuOpen) => {
|
|
|
20
20
|
|
|
21
21
|
&[data-focus-visible],
|
|
22
22
|
&:focus-visible {
|
|
23
|
-
outline: ${theme.shared
|
|
24
|
-
outline-offset: ${theme.shared
|
|
23
|
+
outline: ${theme.shared.focusVisible.outline};
|
|
24
|
+
outline-offset: ${theme.shared.focusVisible.outlineOffset};
|
|
25
25
|
}
|
|
26
26
|
|
|
27
27
|
&[data-disabled] {
|
|
28
|
-
cursor: ${theme.shared
|
|
29
|
-
color: ${theme.shared
|
|
28
|
+
cursor: ${theme.shared.disabled.cursor};
|
|
29
|
+
color: ${theme.shared.disabled.color};
|
|
30
30
|
}
|
|
31
31
|
|
|
32
32
|
${_menuOpen ? css`
|
|
33
|
-
border-right: ${theme.shared
|
|
34
|
-
border-left: ${theme.unselected
|
|
33
|
+
border-right: ${theme.shared.borderTop};
|
|
34
|
+
border-left: ${theme.unselected.borderBottom};
|
|
35
35
|
width: 100%;
|
|
36
36
|
|
|
37
37
|
&[data-hovered],
|
|
38
38
|
&:hover {
|
|
39
|
-
border-left: ${theme.selected
|
|
39
|
+
border-left: ${theme.selected.borderBottom};
|
|
40
40
|
}
|
|
41
41
|
|
|
42
42
|
&[data-focus-visible],
|
|
43
43
|
&:focus-visible {
|
|
44
|
-
border-left: ${theme.selected
|
|
44
|
+
border-left: ${theme.selected.borderBottom};
|
|
45
45
|
}
|
|
46
46
|
|
|
47
47
|
${selected && `
|
|
48
|
-
border-left: ${theme.selected
|
|
49
|
-
background-color: ${theme.shared._menuOpen.selected
|
|
48
|
+
border-left: ${theme.selected.borderBottom};
|
|
49
|
+
background-color: ${theme.shared._menuOpen.selected.backgroundColor};
|
|
50
50
|
`}
|
|
51
51
|
` : css`
|
|
52
|
-
border-top: ${theme.shared
|
|
53
|
-
border-bottom: ${theme.unselected
|
|
52
|
+
border-top: ${theme.shared.borderTop};
|
|
53
|
+
border-bottom: ${theme.unselected.borderBottom};
|
|
54
54
|
|
|
55
55
|
&[data-hovered],
|
|
56
56
|
&:hover {
|
|
57
|
-
border-bottom: ${theme.selected
|
|
57
|
+
border-bottom: ${theme.selected.borderBottom};
|
|
58
58
|
}
|
|
59
59
|
|
|
60
60
|
&[data-focus-visible],
|
|
61
61
|
&:focus-visible {
|
|
62
|
-
border-bottom: ${theme.selected
|
|
62
|
+
border-bottom: ${theme.selected.borderBottom};
|
|
63
63
|
}
|
|
64
64
|
|
|
65
65
|
${selected && `
|
|
66
|
-
border-bottom: ${theme.selected
|
|
66
|
+
border-bottom: ${theme.selected.borderBottom};
|
|
67
67
|
`}
|
|
68
68
|
`}
|
|
69
69
|
|
|
70
|
-
text-decoration: ${theme.shared
|
|
70
|
+
text-decoration: ${theme.shared.textDecoration};
|
|
71
71
|
`;
|
|
72
72
|
};
|
|
73
73
|
const topBarNavigationDividerStyles = (theme, { alignment }, _menuOpen) => css`
|
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
var jsxRuntime = require('@emotion/react/jsx-runtime');
|
|
4
4
|
var reactAriaComponents = require('react-aria-components');
|
|
5
5
|
var mergeDeep = require('../../../util/mergeDeep.cjs');
|
|
6
|
-
var Favicon = require('../../
|
|
7
|
-
var Icon = require('../../
|
|
8
|
-
var TopBarItem = require('../
|
|
6
|
+
var Favicon = require('../../Favicon/Favicon.cjs');
|
|
7
|
+
var Icon = require('../../Icon/Icon.cjs');
|
|
8
|
+
var TopBarItem = require('../TopBarItem/TopBarItem.cjs');
|
|
9
9
|
var styles = require('./styles.cjs');
|
|
10
10
|
|
|
11
11
|
function ToolName({
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { jsxs, jsx, Fragment } from '@emotion/react/jsx-runtime';
|
|
2
2
|
import { Link } from 'react-aria-components';
|
|
3
3
|
import { mergeDeep } from '../../../util/mergeDeep.js';
|
|
4
|
-
import { Favicon } from '../../
|
|
5
|
-
import { Icon } from '../../
|
|
6
|
-
import { TopBarItem } from '../
|
|
4
|
+
import { Favicon } from '../../Favicon/Favicon.js';
|
|
5
|
+
import { Icon } from '../../Icon/Icon.js';
|
|
6
|
+
import { TopBarItem } from '../TopBarItem/TopBarItem.js';
|
|
7
7
|
import { defaultToolNameTheme, toolNameHoverLinkTextExpandedStyles, toolNameHoverLinkTextCollapsedStyles, toolNameHoverLinkStyles, toolNameLinkStyles, toolNameTypography, dividerStyles, subsectionTypography, subsectionStyles, toolNameStyles } from './styles.js';
|
|
8
8
|
|
|
9
9
|
function ToolName({ name, favicon, subsection, subsectionIcon, collapseBelow = "lg", theme = {}, cssOverrides }) {
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var react = require('@emotion/react');
|
|
4
|
-
var
|
|
4
|
+
var topBar = require('../../../styleD/build/typescript/component/topBar.cjs');
|
|
5
5
|
var mq = require('../../../styleD/utils/semantic/mq.cjs');
|
|
6
6
|
var typography = require('../../../styleD/utils/semantic/typography.cjs');
|
|
7
7
|
|
|
8
|
-
const defaultToolNameTheme =
|
|
8
|
+
const defaultToolNameTheme = topBar.componentTopBar.toolName;
|
|
9
9
|
const toolNameHoverLinkStyles = (theme, { collapseBelow }) => {
|
|
10
10
|
return react.css`
|
|
11
11
|
${typography.convertTypographyToEmotionStringStyle(theme.hoverLink.typography)}
|
|
12
12
|
background-color: ${theme.hoverLink.backgroundColor};
|
|
13
13
|
color: ${theme.hoverLink.color};
|
|
14
|
-
align-items: ${theme
|
|
14
|
+
align-items: ${theme.alignItems};
|
|
15
15
|
padding-left: ${theme.hoverLink.paddingLeft};
|
|
16
16
|
padding-right: ${theme.hoverLink.paddingRight};
|
|
17
17
|
display: ${theme.display};
|
|
@@ -24,7 +24,7 @@ const toolNameHoverLinkStyles = (theme, { collapseBelow }) => {
|
|
|
24
24
|
${mq.until[collapseBelow]} {
|
|
25
25
|
padding-left: ${theme.hoverLink.collapsed.paddingLeft};
|
|
26
26
|
padding-right: ${theme.hoverLink.collapsed.paddingRight};
|
|
27
|
-
justify-content: ${theme.hoverLink.collapsed
|
|
27
|
+
justify-content: ${theme.hoverLink.collapsed.justifyContent};
|
|
28
28
|
}
|
|
29
29
|
`;
|
|
30
30
|
};
|
|
@@ -65,14 +65,14 @@ const toolNameLinkStyles = (theme) => {
|
|
|
65
65
|
|
|
66
66
|
&[data-focus-visible] {
|
|
67
67
|
outline: ${theme.hoverLink.focused.outline};
|
|
68
|
-
outline-offset: ${theme.hoverLink.focused
|
|
68
|
+
outline-offset: ${theme.hoverLink.focused.outlineOffset};
|
|
69
69
|
}
|
|
70
70
|
`;
|
|
71
71
|
};
|
|
72
72
|
const toolNameStyles = (theme) => {
|
|
73
73
|
return react.css`
|
|
74
74
|
display: ${theme.display};
|
|
75
|
-
align-items: ${theme
|
|
75
|
+
align-items: ${theme.alignItems};
|
|
76
76
|
gap: ${theme.gap};
|
|
77
77
|
color: ${theme.color};
|
|
78
78
|
`;
|
|
@@ -97,7 +97,7 @@ const dividerStyles = (theme, { collapseBelow }) => {
|
|
|
97
97
|
const subsectionStyles = (theme, { collapseBelow }) => {
|
|
98
98
|
return react.css`
|
|
99
99
|
display: ${theme.display};
|
|
100
|
-
align-items: ${theme
|
|
100
|
+
align-items: ${theme.alignItems};
|
|
101
101
|
gap: ${theme.subsection.gap};
|
|
102
102
|
${mq.until[collapseBelow]} {
|
|
103
103
|
display: none;
|