@guardian/stand 0.0.72 → 0.0.74
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/AlertBanner.d.cts +2 -2
- package/dist/AlertBanner.d.ts +2 -2
- package/dist/Grid.d.cts +2 -2
- package/dist/Grid.d.ts +2 -2
- package/dist/HtmlPreviewLoader.d.cts +3 -1
- package/dist/HtmlPreviewLoader.d.ts +3 -1
- package/dist/Pagination.cjs +5 -0
- package/dist/Pagination.d.cts +5 -0
- package/dist/Pagination.d.ts +5 -0
- package/dist/Pagination.js +3 -0
- package/dist/Tile.cjs +5 -0
- package/dist/Tile.d.cts +5 -0
- package/dist/Tile.d.ts +5 -0
- package/dist/Tile.js +3 -0
- package/dist/Typography.d.cts +2 -2
- package/dist/Typography.d.ts +2 -2
- package/dist/UserMenu.d.cts +2 -1
- package/dist/UserMenu.d.ts +2 -1
- package/dist/components/AlertBanner/AlertBanner.d.cts +2 -3
- package/dist/components/AlertBanner/AlertBanner.d.ts +2 -3
- package/dist/components/AlertBanner/styles.d.cts +4 -4
- package/dist/components/AlertBanner/styles.d.ts +4 -4
- package/dist/components/AlertBanner/types.d.cts +2 -3
- package/dist/components/AlertBanner/types.d.ts +2 -3
- package/dist/components/Avatar/Avatar.d.cts +2 -3
- package/dist/components/Avatar/Avatar.d.ts +2 -3
- package/dist/components/Avatar/styles.d.cts +3 -4
- package/dist/components/Avatar/styles.d.ts +3 -4
- package/dist/components/Avatar/types.d.cts +3 -4
- package/dist/components/Avatar/types.d.ts +3 -4
- package/dist/components/AvatarButton/AvatarButton.d.cts +2 -3
- package/dist/components/AvatarButton/AvatarButton.d.ts +2 -3
- package/dist/components/AvatarButton/styles.d.cts +2 -3
- package/dist/components/AvatarButton/styles.d.ts +2 -3
- package/dist/components/AvatarButton/types.d.cts +2 -3
- package/dist/components/AvatarButton/types.d.ts +2 -3
- package/dist/components/AvatarLink/AvatarLink.d.cts +2 -3
- package/dist/components/AvatarLink/AvatarLink.d.ts +2 -3
- package/dist/components/AvatarLink/styles.d.cts +2 -3
- package/dist/components/AvatarLink/styles.d.ts +2 -3
- package/dist/components/AvatarLink/types.d.cts +2 -3
- package/dist/components/AvatarLink/types.d.ts +2 -3
- package/dist/components/Badge/Badge.d.cts +2 -3
- package/dist/components/Badge/Badge.d.ts +2 -3
- package/dist/components/Badge/styles.d.cts +3 -4
- package/dist/components/Badge/styles.d.ts +3 -4
- package/dist/components/Badge/types.d.cts +4 -5
- package/dist/components/Badge/types.d.ts +4 -5
- package/dist/components/Button/Button.d.cts +2 -3
- package/dist/components/Button/Button.d.ts +2 -3
- package/dist/components/Button/styles.d.cts +3 -4
- package/dist/components/Button/styles.d.ts +3 -4
- package/dist/components/ButtonGroup/ButtonGroup.d.cts +2 -3
- package/dist/components/ButtonGroup/ButtonGroup.d.ts +2 -3
- package/dist/components/ButtonGroup/styles.d.cts +3 -4
- package/dist/components/ButtonGroup/styles.d.ts +3 -4
- package/dist/components/ButtonGroup/types.d.cts +2 -3
- package/dist/components/ButtonGroup/types.d.ts +2 -3
- package/dist/components/Byline/Byline.d.cts +2 -3
- package/dist/components/Byline/Byline.d.ts +2 -3
- package/dist/components/Byline/lib.cjs +0 -1
- package/dist/components/Byline/lib.d.cts +3 -5
- package/dist/components/Byline/lib.d.ts +3 -5
- package/dist/components/Byline/lib.js +1 -1
- package/dist/components/Byline/theme.d.cts +2 -3
- package/dist/components/Byline/theme.d.ts +2 -3
- package/dist/components/Checkbox/Checkbox.d.cts +2 -3
- package/dist/components/Checkbox/Checkbox.d.ts +2 -3
- package/dist/components/Checkbox/CheckboxGroup.d.cts +2 -3
- package/dist/components/Checkbox/CheckboxGroup.d.ts +2 -3
- package/dist/components/Checkbox/styles.d.cts +3 -4
- package/dist/components/Checkbox/styles.d.ts +3 -4
- package/dist/components/DatePicker/DatePicker.d.cts +2 -3
- package/dist/components/DatePicker/DatePicker.d.ts +2 -3
- package/dist/components/DatePicker/styles.d.cts +2 -3
- package/dist/components/DatePicker/styles.d.ts +2 -3
- package/dist/components/Favicon/Favicon.d.cts +2 -3
- package/dist/components/Favicon/Favicon.d.ts +2 -3
- package/dist/components/Favicon/styles.d.cts +3 -4
- package/dist/components/Favicon/styles.d.ts +3 -4
- package/dist/components/Favicon/types.d.cts +2 -3
- package/dist/components/Favicon/types.d.ts +2 -3
- package/dist/components/Form/styles.d.cts +2 -3
- package/dist/components/Form/styles.d.ts +2 -3
- package/dist/components/Form/types.d.cts +2 -3
- package/dist/components/Form/types.d.ts +2 -3
- package/dist/components/Grid/Grid.d.cts +3 -4
- package/dist/components/Grid/Grid.d.ts +3 -4
- package/dist/components/Grid/styles.d.cts +3 -4
- package/dist/components/Grid/styles.d.ts +3 -4
- package/dist/components/Grid/types.d.cts +6 -7
- package/dist/components/Grid/types.d.ts +6 -7
- package/dist/components/HtmlPreviewLoader/HtmlPreview.d.cts +2 -3
- package/dist/components/HtmlPreviewLoader/HtmlPreview.d.ts +2 -3
- package/dist/components/HtmlPreviewLoader/HtmlPreviewLoader.d.cts +2 -3
- package/dist/components/HtmlPreviewLoader/HtmlPreviewLoader.d.ts +2 -3
- package/dist/components/HtmlPreviewLoader/styles.d.cts +4 -4
- package/dist/components/HtmlPreviewLoader/styles.d.ts +4 -4
- package/dist/components/HtmlPreviewLoader/types.d.cts +3 -4
- package/dist/components/HtmlPreviewLoader/types.d.ts +3 -4
- package/dist/components/Icon/Icon.d.cts +2 -3
- package/dist/components/Icon/Icon.d.ts +2 -3
- package/dist/components/Icon/Styles.d.cts +3 -4
- package/dist/components/Icon/Styles.d.ts +3 -4
- package/dist/components/Icon/types.d.cts +2 -2
- package/dist/components/Icon/types.d.ts +2 -2
- package/dist/components/IconButton/IconButton.d.cts +2 -3
- package/dist/components/IconButton/IconButton.d.ts +2 -3
- package/dist/components/IconButton/styles.d.cts +3 -4
- package/dist/components/IconButton/styles.d.ts +3 -4
- package/dist/components/IconButton/types.d.cts +2 -3
- package/dist/components/IconButton/types.d.ts +2 -3
- package/dist/components/IconLinkButton/IconLinkButton.d.cts +2 -3
- package/dist/components/IconLinkButton/IconLinkButton.d.ts +2 -3
- package/dist/components/IconLinkButton/styles.d.cts +3 -4
- package/dist/components/IconLinkButton/styles.d.ts +3 -4
- package/dist/components/IconLinkButton/types.d.cts +2 -3
- package/dist/components/IconLinkButton/types.d.ts +2 -3
- package/dist/components/InlineMessage/InlineMessage.d.cts +2 -3
- package/dist/components/InlineMessage/InlineMessage.d.ts +2 -3
- package/dist/components/InlineMessage/styles.d.cts +3 -4
- package/dist/components/InlineMessage/styles.d.ts +3 -4
- package/dist/components/InlineMessage/types.d.cts +2 -3
- package/dist/components/InlineMessage/types.d.ts +2 -3
- package/dist/components/IntendedAudienceSignifier/IntendedAudienceSignifier.d.cts +2 -3
- package/dist/components/IntendedAudienceSignifier/IntendedAudienceSignifier.d.ts +2 -3
- package/dist/components/IntendedAudienceSignifier/styles.d.cts +2 -3
- package/dist/components/IntendedAudienceSignifier/styles.d.ts +2 -3
- package/dist/components/IntendedAudienceSignifier/types.d.cts +3 -4
- package/dist/components/IntendedAudienceSignifier/types.d.ts +3 -4
- package/dist/components/IntendedAudienceSignifier/utils.d.cts +3 -4
- package/dist/components/IntendedAudienceSignifier/utils.d.ts +3 -4
- package/dist/components/Layout/Layout.d.cts +2 -3
- package/dist/components/Layout/Layout.d.ts +2 -3
- package/dist/components/Layout/styles.d.cts +7 -8
- package/dist/components/Layout/styles.d.ts +7 -8
- package/dist/components/Layout/types.d.cts +5 -6
- package/dist/components/Layout/types.d.ts +5 -6
- package/dist/components/Link/Link.d.cts +2 -3
- package/dist/components/Link/Link.d.ts +2 -3
- package/dist/components/Link/styles.d.cts +3 -4
- package/dist/components/Link/styles.d.ts +3 -4
- package/dist/components/LinkButton/LinkButton.d.cts +2 -3
- package/dist/components/LinkButton/LinkButton.d.ts +2 -3
- package/dist/components/LinkButton/Styles.d.cts +3 -4
- package/dist/components/LinkButton/Styles.d.ts +3 -4
- package/dist/components/LinkButton/types.d.cts +2 -3
- package/dist/components/LinkButton/types.d.ts +2 -3
- package/dist/components/Menu/Menu.d.cts +6 -7
- package/dist/components/Menu/Menu.d.ts +6 -7
- package/dist/components/Menu/styles.d.cts +11 -12
- package/dist/components/Menu/styles.d.ts +11 -12
- package/dist/components/Menu/types.d.cts +3 -3
- package/dist/components/Menu/types.d.ts +3 -3
- package/dist/components/Modal/Modal.d.cts +4 -5
- package/dist/components/Modal/Modal.d.ts +4 -5
- package/dist/components/Modal/styles.d.cts +4 -5
- package/dist/components/Modal/styles.d.ts +4 -5
- package/dist/components/Modal/types.d.cts +6 -6
- package/dist/components/Modal/types.d.ts +6 -6
- package/dist/components/Pagination/Pagination.cjs +97 -0
- package/dist/components/Pagination/Pagination.d.cts +4 -0
- package/dist/components/Pagination/Pagination.d.ts +4 -0
- package/dist/components/Pagination/Pagination.js +97 -0
- package/dist/components/Pagination/lib.cjs +30 -0
- package/dist/components/Pagination/lib.js +28 -0
- package/dist/components/Pagination/styles.cjs +112 -0
- package/dist/components/Pagination/styles.d.cts +7 -0
- package/dist/components/Pagination/styles.d.ts +7 -0
- package/dist/components/Pagination/styles.js +105 -0
- package/dist/components/Pagination/types.d.cts +58 -0
- package/dist/components/Pagination/types.d.ts +58 -0
- package/dist/components/RadioGroup/RadioGroup.d.cts +3 -4
- package/dist/components/RadioGroup/RadioGroup.d.ts +3 -4
- package/dist/components/RadioGroup/styles.d.cts +2 -3
- package/dist/components/RadioGroup/styles.d.ts +2 -3
- package/dist/components/Select/Select.d.cts +3 -4
- package/dist/components/Select/Select.d.ts +3 -4
- package/dist/components/Select/styles.d.cts +3 -4
- package/dist/components/Select/styles.d.ts +3 -4
- package/dist/components/Select/types.d.cts +2 -2
- package/dist/components/Select/types.d.ts +2 -2
- package/dist/components/SidebarStepperNavigation/SidebarStepperNavigation.d.cts +2 -3
- package/dist/components/SidebarStepperNavigation/SidebarStepperNavigation.d.ts +2 -3
- package/dist/components/SidebarStepperNavigation/styles.d.cts +3 -4
- package/dist/components/SidebarStepperNavigation/styles.d.ts +3 -4
- package/dist/components/SidebarStepperNavigation/types.d.cts +6 -7
- package/dist/components/SidebarStepperNavigation/types.d.ts +6 -7
- package/dist/components/Table/Table.d.cts +7 -8
- package/dist/components/Table/Table.d.ts +7 -8
- package/dist/components/Table/styles.d.cts +3 -4
- package/dist/components/Table/styles.d.ts +3 -4
- package/dist/components/Table/types.d.cts +5 -5
- package/dist/components/Table/types.d.ts +5 -5
- package/dist/components/Tabs/styles.d.cts +11 -12
- package/dist/components/Tabs/styles.d.ts +11 -12
- package/dist/components/TagPicker/Autocomplete.d.cts +4 -5
- package/dist/components/TagPicker/Autocomplete.d.ts +4 -5
- package/dist/components/TagPicker/TagPicker.d.cts +3 -4
- package/dist/components/TagPicker/TagPicker.d.ts +3 -4
- package/dist/components/TagPicker/types.d.cts +4 -5
- package/dist/components/TagPicker/types.d.ts +4 -5
- package/dist/components/TagTable/TagTable.d.cts +3 -4
- package/dist/components/TagTable/TagTable.d.ts +3 -4
- package/dist/components/TextArea/TextArea.d.cts +2 -3
- package/dist/components/TextArea/TextArea.d.ts +2 -3
- package/dist/components/TextArea/styles.d.cts +2 -3
- package/dist/components/TextArea/styles.d.ts +2 -3
- package/dist/components/TextArea/types.d.cts +2 -3
- package/dist/components/TextArea/types.d.ts +2 -3
- package/dist/components/TextInput/TextInput.d.cts +2 -3
- package/dist/components/TextInput/TextInput.d.ts +2 -3
- package/dist/components/TextInput/styles.d.cts +3 -4
- package/dist/components/TextInput/styles.d.ts +3 -4
- package/dist/components/TextInput/types.d.cts +2 -3
- package/dist/components/TextInput/types.d.ts +2 -3
- package/dist/components/TextListInput/TextListInput.d.cts +2 -3
- package/dist/components/TextListInput/TextListInput.d.ts +2 -3
- package/dist/components/TextListInput/styles.d.cts +3 -4
- package/dist/components/TextListInput/styles.d.ts +3 -4
- package/dist/components/TextListInput/types.d.cts +2 -3
- package/dist/components/TextListInput/types.d.ts +2 -3
- package/dist/components/Tile/Tile.cjs +102 -0
- package/dist/components/Tile/Tile.d.cts +4 -0
- package/dist/components/Tile/Tile.d.ts +4 -0
- package/dist/components/Tile/Tile.js +102 -0
- package/dist/components/Tile/styles.cjs +175 -0
- package/dist/components/Tile/styles.d.cts +7 -0
- package/dist/components/Tile/styles.d.ts +7 -0
- package/dist/components/Tile/styles.js +166 -0
- package/dist/components/Tile/types.d.cts +63 -0
- package/dist/components/Tile/types.d.ts +63 -0
- package/dist/components/ToggleSwitch/ToggleSwitch.d.cts +2 -3
- package/dist/components/ToggleSwitch/ToggleSwitch.d.ts +2 -3
- package/dist/components/ToggleSwitch/styles.d.cts +3 -4
- package/dist/components/ToggleSwitch/styles.d.ts +3 -4
- package/dist/components/ToggleSwitch/types.d.cts +2 -3
- package/dist/components/ToggleSwitch/types.d.ts +2 -3
- package/dist/components/Tooltip/Tooltip.d.cts +2 -3
- package/dist/components/Tooltip/Tooltip.d.ts +2 -3
- package/dist/components/Tooltip/styles.d.cts +3 -4
- package/dist/components/Tooltip/styles.d.ts +3 -4
- package/dist/components/Tooltip/types.d.cts +2 -3
- package/dist/components/Tooltip/types.d.ts +2 -3
- package/dist/components/TopBar/TopBar.d.cts +4 -5
- package/dist/components/TopBar/TopBar.d.ts +4 -5
- package/dist/components/TopBar/TopBarItem/TopBarItem.d.cts +2 -3
- package/dist/components/TopBar/TopBarItem/TopBarItem.d.ts +2 -3
- package/dist/components/TopBar/TopBarItem/styles.d.cts +3 -4
- package/dist/components/TopBar/TopBarItem/styles.d.ts +3 -4
- package/dist/components/TopBar/TopBarItem/types.d.cts +2 -3
- package/dist/components/TopBar/TopBarItem/types.d.ts +2 -3
- package/dist/components/TopBar/TopBarNavigation/TopBarNavigation.d.cts +2 -3
- package/dist/components/TopBar/TopBarNavigation/TopBarNavigation.d.ts +2 -3
- package/dist/components/TopBar/TopBarNavigation/styles.d.cts +3 -4
- package/dist/components/TopBar/TopBarNavigation/styles.d.ts +3 -4
- package/dist/components/TopBar/TopBarNavigation/types.d.cts +2 -3
- package/dist/components/TopBar/TopBarNavigation/types.d.ts +2 -3
- package/dist/components/TopBar/TopBarToolName/TopBarToolName.d.cts +2 -3
- package/dist/components/TopBar/TopBarToolName/TopBarToolName.d.ts +2 -3
- package/dist/components/TopBar/TopBarToolName/styles.d.cts +3 -4
- package/dist/components/TopBar/TopBarToolName/styles.d.ts +3 -4
- package/dist/components/TopBar/TopBarToolName/types.d.cts +2 -3
- package/dist/components/TopBar/TopBarToolName/types.d.ts +2 -3
- package/dist/components/TopBar/styles.d.cts +3 -4
- package/dist/components/TopBar/styles.d.ts +3 -4
- package/dist/components/TopBar/types.d.cts +2 -3
- package/dist/components/TopBar/types.d.ts +2 -3
- package/dist/components/Typography/Typography.d.cts +2 -3
- package/dist/components/Typography/Typography.d.ts +2 -3
- package/dist/components/Typography/styles.d.cts +3 -4
- package/dist/components/Typography/styles.d.ts +3 -4
- package/dist/components/Typography/types.d.cts +4 -5
- package/dist/components/Typography/types.d.ts +4 -5
- package/dist/components/UserFeedbackSummary/UserFeedbackSummary.d.cts +2 -3
- package/dist/components/UserFeedbackSummary/UserFeedbackSummary.d.ts +2 -3
- package/dist/components/UserFeedbackSummary/styles.d.cts +3 -4
- package/dist/components/UserFeedbackSummary/styles.d.ts +3 -4
- package/dist/components/UserFeedbackSummary/types.d.cts +2 -3
- package/dist/components/UserFeedbackSummary/types.d.ts +2 -3
- package/dist/components/UserMenu/UserMenu.d.cts +5 -7
- package/dist/components/UserMenu/UserMenu.d.ts +5 -7
- package/dist/components/UserMenu/model.d.cts +2 -3
- package/dist/components/UserMenu/model.d.ts +2 -3
- package/dist/components/UserMenu/theme.d.cts +5 -0
- package/dist/components/UserMenu/theme.d.ts +5 -0
- package/dist/components/UserMenu/types.d.cts +2 -3
- package/dist/components/UserMenu/types.d.ts +2 -3
- package/dist/fonts/materialSymbolsTypes.d.cts +2 -3
- package/dist/fonts/materialSymbolsTypes.d.ts +2 -3
- package/dist/index.cjs +4 -0
- package/dist/index.d.cts +3 -1
- package/dist/index.d.ts +3 -1
- package/dist/index.js +3 -1
- package/dist/styleD/build/css/component/pagination.css +51 -0
- package/dist/styleD/build/css/component/tile.css +63 -0
- package/dist/styleD/build/typescript/base/colors.d.cts +3 -4
- package/dist/styleD/build/typescript/base/colors.d.ts +3 -4
- package/dist/styleD/build/typescript/base/radius.d.cts +3 -4
- package/dist/styleD/build/typescript/base/radius.d.ts +3 -4
- package/dist/styleD/build/typescript/base/sizing.d.cts +3 -4
- package/dist/styleD/build/typescript/base/sizing.d.ts +3 -4
- package/dist/styleD/build/typescript/base/spacing.d.cts +3 -4
- package/dist/styleD/build/typescript/base/spacing.d.ts +3 -4
- package/dist/styleD/build/typescript/base/typography.d.cts +3 -4
- package/dist/styleD/build/typescript/base/typography.d.ts +3 -4
- package/dist/styleD/build/typescript/component/alertBanner.d.cts +3 -4
- package/dist/styleD/build/typescript/component/alertBanner.d.ts +3 -4
- package/dist/styleD/build/typescript/component/autocomplete.d.cts +3 -4
- package/dist/styleD/build/typescript/component/autocomplete.d.ts +3 -4
- package/dist/styleD/build/typescript/component/avatar.d.cts +3 -4
- package/dist/styleD/build/typescript/component/avatar.d.ts +3 -4
- package/dist/styleD/build/typescript/component/badge.d.cts +3 -4
- package/dist/styleD/build/typescript/component/badge.d.ts +3 -4
- package/dist/styleD/build/typescript/component/button.d.cts +3 -4
- package/dist/styleD/build/typescript/component/button.d.ts +3 -4
- package/dist/styleD/build/typescript/component/buttonGroup.d.cts +3 -4
- package/dist/styleD/build/typescript/component/buttonGroup.d.ts +3 -4
- package/dist/styleD/build/typescript/component/byline.d.cts +3 -4
- package/dist/styleD/build/typescript/component/byline.d.ts +3 -4
- package/dist/styleD/build/typescript/component/checkbox.d.cts +3 -4
- package/dist/styleD/build/typescript/component/checkbox.d.ts +3 -4
- package/dist/styleD/build/typescript/component/datePicker.d.cts +3 -4
- package/dist/styleD/build/typescript/component/datePicker.d.ts +3 -4
- package/dist/styleD/build/typescript/component/favicon.d.cts +3 -4
- package/dist/styleD/build/typescript/component/favicon.d.ts +3 -4
- package/dist/styleD/build/typescript/component/form.d.cts +3 -4
- package/dist/styleD/build/typescript/component/form.d.ts +3 -4
- package/dist/styleD/build/typescript/component/grid.d.cts +3 -4
- package/dist/styleD/build/typescript/component/grid.d.ts +3 -4
- package/dist/styleD/build/typescript/component/htmlPreviewLoader.d.cts +3 -4
- package/dist/styleD/build/typescript/component/htmlPreviewLoader.d.ts +3 -4
- package/dist/styleD/build/typescript/component/icon.d.cts +3 -4
- package/dist/styleD/build/typescript/component/icon.d.ts +3 -4
- package/dist/styleD/build/typescript/component/inlineMessage.d.cts +3 -4
- package/dist/styleD/build/typescript/component/inlineMessage.d.ts +3 -4
- package/dist/styleD/build/typescript/component/intendedAudienceSignifier.d.cts +3 -4
- package/dist/styleD/build/typescript/component/intendedAudienceSignifier.d.ts +3 -4
- package/dist/styleD/build/typescript/component/layout.d.cts +3 -4
- package/dist/styleD/build/typescript/component/layout.d.ts +3 -4
- package/dist/styleD/build/typescript/component/link.d.cts +3 -4
- package/dist/styleD/build/typescript/component/link.d.ts +3 -4
- package/dist/styleD/build/typescript/component/menu.d.cts +3 -4
- package/dist/styleD/build/typescript/component/menu.d.ts +3 -4
- package/dist/styleD/build/typescript/component/modal.d.cts +3 -4
- package/dist/styleD/build/typescript/component/modal.d.ts +3 -4
- package/dist/styleD/build/typescript/component/pagination.cjs +72 -0
- package/dist/styleD/build/typescript/component/pagination.d.cts +74 -0
- package/dist/styleD/build/typescript/component/pagination.d.ts +74 -0
- package/dist/styleD/build/typescript/component/pagination.js +72 -0
- package/dist/styleD/build/typescript/component/radioGroup.d.cts +3 -4
- package/dist/styleD/build/typescript/component/radioGroup.d.ts +3 -4
- package/dist/styleD/build/typescript/component/select.d.cts +3 -4
- package/dist/styleD/build/typescript/component/select.d.ts +3 -4
- package/dist/styleD/build/typescript/component/sidebarStepperNavigation.d.cts +3 -4
- package/dist/styleD/build/typescript/component/sidebarStepperNavigation.d.ts +3 -4
- package/dist/styleD/build/typescript/component/table.d.cts +3 -4
- package/dist/styleD/build/typescript/component/table.d.ts +3 -4
- package/dist/styleD/build/typescript/component/tabs.d.cts +3 -4
- package/dist/styleD/build/typescript/component/tabs.d.ts +3 -4
- package/dist/styleD/build/typescript/component/tagPicker.d.cts +3 -4
- package/dist/styleD/build/typescript/component/tagPicker.d.ts +3 -4
- package/dist/styleD/build/typescript/component/tagTable.d.cts +3 -4
- package/dist/styleD/build/typescript/component/tagTable.d.ts +3 -4
- package/dist/styleD/build/typescript/component/textArea.d.cts +3 -4
- package/dist/styleD/build/typescript/component/textArea.d.ts +3 -4
- package/dist/styleD/build/typescript/component/textInput.d.cts +3 -4
- package/dist/styleD/build/typescript/component/textInput.d.ts +3 -4
- package/dist/styleD/build/typescript/component/textListInput.d.cts +3 -4
- package/dist/styleD/build/typescript/component/textListInput.d.ts +3 -4
- package/dist/styleD/build/typescript/component/tile.cjs +89 -0
- package/dist/styleD/build/typescript/component/tile.d.cts +111 -0
- package/dist/styleD/build/typescript/component/tile.d.ts +111 -0
- package/dist/styleD/build/typescript/component/tile.js +89 -0
- package/dist/styleD/build/typescript/component/toggleSwitch.d.cts +3 -4
- package/dist/styleD/build/typescript/component/toggleSwitch.d.ts +3 -4
- package/dist/styleD/build/typescript/component/tooltip.d.cts +3 -4
- package/dist/styleD/build/typescript/component/tooltip.d.ts +3 -4
- package/dist/styleD/build/typescript/component/topBar.d.cts +3 -4
- package/dist/styleD/build/typescript/component/topBar.d.ts +3 -4
- package/dist/styleD/build/typescript/component/typography.d.cts +3 -4
- package/dist/styleD/build/typescript/component/typography.d.ts +3 -4
- package/dist/styleD/build/typescript/component/userFeedbackSummary.d.cts +3 -4
- package/dist/styleD/build/typescript/component/userFeedbackSummary.d.ts +3 -4
- package/dist/styleD/build/typescript/component/userMenu.d.cts +3 -4
- package/dist/styleD/build/typescript/component/userMenu.d.ts +3 -4
- package/dist/styleD/build/typescript/semantic/breakpoints.d.cts +3 -4
- package/dist/styleD/build/typescript/semantic/breakpoints.d.ts +3 -4
- package/dist/styleD/build/typescript/semantic/colors.d.cts +3 -4
- package/dist/styleD/build/typescript/semantic/colors.d.ts +3 -4
- package/dist/styleD/build/typescript/semantic/grid.d.cts +3 -4
- package/dist/styleD/build/typescript/semantic/grid.d.ts +3 -4
- package/dist/styleD/build/typescript/semantic/radius.d.cts +3 -4
- package/dist/styleD/build/typescript/semantic/radius.d.ts +3 -4
- package/dist/styleD/build/typescript/semantic/shadow.d.cts +3 -4
- package/dist/styleD/build/typescript/semantic/shadow.d.ts +3 -4
- package/dist/styleD/build/typescript/semantic/sizing.d.cts +3 -4
- package/dist/styleD/build/typescript/semantic/sizing.d.ts +3 -4
- package/dist/styleD/build/typescript/semantic/spacing.d.cts +3 -4
- package/dist/styleD/build/typescript/semantic/spacing.d.ts +3 -4
- package/dist/styleD/build/typescript/semantic/typography.d.cts +3 -4
- package/dist/styleD/build/typescript/semantic/typography.d.ts +3 -4
- package/dist/styleD/utils/semantic/mq.d.cts +5 -6
- package/dist/styleD/utils/semantic/mq.d.ts +5 -6
- package/dist/styleD/utils/semantic/typography.d.cts +3 -4
- package/dist/styleD/utils/semantic/typography.d.ts +3 -4
- package/dist/util/reset.d.cts +2 -3
- package/dist/util/reset.d.ts +2 -3
- package/dist/util/types.d.cts +5 -6
- package/dist/util/types.d.ts +5 -6
- package/package.json +49 -20
- package/dist/styleD/build/css/component/previewFrame.css +0 -10
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import { DefaultPropsWithChildren } from "../../util/types.cjs";
|
|
2
2
|
import { MenuItemProps, MenuProps, MenuSectionProps, MenuSeparatorProps } from "./types.cjs";
|
|
3
3
|
//#region src/components/Menu/Menu.d.ts
|
|
4
|
-
declare function MenuSeparator({ theme, cssOverrides, ...props }: MenuSeparatorProps): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
5
|
-
declare function MenuToggle({ children }: DefaultPropsWithChildren<unknown>): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
6
|
-
declare function MenuSection({ name, size, theme, cssOverrides, children, ...props }: MenuSectionProps): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
7
|
-
declare function MenuItem({ label, description, aside, icon, size, theme, cssOverrides, ...props }: MenuItemProps): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
8
|
-
declare function Menu({ theme, size, popoverProps, menuTriggerProps, children, cssOverrides, ...props }: MenuProps): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
9
|
-
//#endregion
|
|
10
|
-
export { Menu, MenuItem, MenuSection, MenuSeparator, MenuToggle };
|
|
4
|
+
export declare function MenuSeparator({ theme, cssOverrides, ...props }: MenuSeparatorProps): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
5
|
+
export declare function MenuToggle({ children }: DefaultPropsWithChildren<unknown>): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
6
|
+
export declare function MenuSection({ name, size, theme, cssOverrides, children, ...props }: MenuSectionProps): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
7
|
+
export declare function MenuItem({ label, description, aside, icon, size, theme, cssOverrides, ...props }: MenuItemProps): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
8
|
+
export declare function Menu({ theme, size, popoverProps, menuTriggerProps, children, cssOverrides, ...props }: MenuProps): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
9
|
+
//#endregion
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import { DefaultPropsWithChildren } from "../../util/types.js";
|
|
2
2
|
import { MenuItemProps, MenuProps, MenuSectionProps, MenuSeparatorProps } from "./types.js";
|
|
3
3
|
//#region src/components/Menu/Menu.d.ts
|
|
4
|
-
declare function MenuSeparator({ theme, cssOverrides, ...props }: MenuSeparatorProps): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
5
|
-
declare function MenuToggle({ children }: DefaultPropsWithChildren<unknown>): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
6
|
-
declare function MenuSection({ name, size, theme, cssOverrides, children, ...props }: MenuSectionProps): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
7
|
-
declare function MenuItem({ label, description, aside, icon, size, theme, cssOverrides, ...props }: MenuItemProps): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
8
|
-
declare function Menu({ theme, size, popoverProps, menuTriggerProps, children, cssOverrides, ...props }: MenuProps): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
9
|
-
//#endregion
|
|
10
|
-
export { Menu, MenuItem, MenuSection, MenuSeparator, MenuToggle };
|
|
4
|
+
export declare function MenuSeparator({ theme, cssOverrides, ...props }: MenuSeparatorProps): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
5
|
+
export declare function MenuToggle({ children }: DefaultPropsWithChildren<unknown>): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
6
|
+
export declare function MenuSection({ name, size, theme, cssOverrides, children, ...props }: MenuSectionProps): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
7
|
+
export declare function MenuItem({ label, description, aside, icon, size, theme, cssOverrides, ...props }: MenuItemProps): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
8
|
+
export declare function Menu({ theme, size, popoverProps, menuTriggerProps, children, cssOverrides, ...props }: MenuProps): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
9
|
+
//#endregion
|
|
@@ -3,15 +3,14 @@ import { ComponentMenu } from "../../styleD/build/typescript/component/menu.cjs"
|
|
|
3
3
|
import "./types.cjs";
|
|
4
4
|
import { SerializedStyles } from "@emotion/react";
|
|
5
5
|
//#region src/components/Menu/styles.d.ts
|
|
6
|
-
type MenuTheme = Prettify<ComponentMenu['menu']>;
|
|
7
|
-
type PartialMenuTheme = Prettify<DeepPartial<MenuTheme>>;
|
|
8
|
-
type MenuSectionTheme = Prettify<ComponentMenu['menuSection']>;
|
|
9
|
-
type PartialMenuSectionTheme = Prettify<DeepPartial<MenuSectionTheme>>;
|
|
10
|
-
type MenuItemTheme = Prettify<ComponentMenu['menuItem']>;
|
|
11
|
-
type PartialMenuItemTheme = Prettify<DeepPartial<MenuItemTheme>>;
|
|
12
|
-
type MenuSeparatorTheme = Prettify<ComponentMenu['menuSeparator']>;
|
|
13
|
-
type PartialMenuSeparatorTheme = Prettify<DeepPartial<MenuSeparatorTheme>>;
|
|
14
|
-
type MenuPopoverTheme = Prettify<ComponentMenu['menuPopover']>;
|
|
15
|
-
type PartialMenuPopoverTheme = Prettify<DeepPartial<MenuPopoverTheme>>;
|
|
16
|
-
//#endregion
|
|
17
|
-
export { MenuItemTheme, MenuPopoverTheme, MenuSectionTheme, MenuSeparatorTheme, MenuTheme, PartialMenuItemTheme, PartialMenuPopoverTheme, PartialMenuSectionTheme, PartialMenuSeparatorTheme, PartialMenuTheme };
|
|
6
|
+
export type MenuTheme = Prettify<ComponentMenu['menu']>;
|
|
7
|
+
export type PartialMenuTheme = Prettify<DeepPartial<MenuTheme>>;
|
|
8
|
+
export type MenuSectionTheme = Prettify<ComponentMenu['menuSection']>;
|
|
9
|
+
export type PartialMenuSectionTheme = Prettify<DeepPartial<MenuSectionTheme>>;
|
|
10
|
+
export type MenuItemTheme = Prettify<ComponentMenu['menuItem']>;
|
|
11
|
+
export type PartialMenuItemTheme = Prettify<DeepPartial<MenuItemTheme>>;
|
|
12
|
+
export type MenuSeparatorTheme = Prettify<ComponentMenu['menuSeparator']>;
|
|
13
|
+
export type PartialMenuSeparatorTheme = Prettify<DeepPartial<MenuSeparatorTheme>>;
|
|
14
|
+
export type MenuPopoverTheme = Prettify<ComponentMenu['menuPopover']>;
|
|
15
|
+
export type PartialMenuPopoverTheme = Prettify<DeepPartial<MenuPopoverTheme>>;
|
|
16
|
+
//#endregion
|
|
@@ -3,15 +3,14 @@ import { ComponentMenu } from "../../styleD/build/typescript/component/menu.js";
|
|
|
3
3
|
import "./types.js";
|
|
4
4
|
import { SerializedStyles } from "@emotion/react";
|
|
5
5
|
//#region src/components/Menu/styles.d.ts
|
|
6
|
-
type MenuTheme = Prettify<ComponentMenu['menu']>;
|
|
7
|
-
type PartialMenuTheme = Prettify<DeepPartial<MenuTheme>>;
|
|
8
|
-
type MenuSectionTheme = Prettify<ComponentMenu['menuSection']>;
|
|
9
|
-
type PartialMenuSectionTheme = Prettify<DeepPartial<MenuSectionTheme>>;
|
|
10
|
-
type MenuItemTheme = Prettify<ComponentMenu['menuItem']>;
|
|
11
|
-
type PartialMenuItemTheme = Prettify<DeepPartial<MenuItemTheme>>;
|
|
12
|
-
type MenuSeparatorTheme = Prettify<ComponentMenu['menuSeparator']>;
|
|
13
|
-
type PartialMenuSeparatorTheme = Prettify<DeepPartial<MenuSeparatorTheme>>;
|
|
14
|
-
type MenuPopoverTheme = Prettify<ComponentMenu['menuPopover']>;
|
|
15
|
-
type PartialMenuPopoverTheme = Prettify<DeepPartial<MenuPopoverTheme>>;
|
|
16
|
-
//#endregion
|
|
17
|
-
export { MenuItemTheme, MenuPopoverTheme, MenuSectionTheme, MenuSeparatorTheme, MenuTheme, PartialMenuItemTheme, PartialMenuPopoverTheme, PartialMenuSectionTheme, PartialMenuSeparatorTheme, PartialMenuTheme };
|
|
6
|
+
export type MenuTheme = Prettify<ComponentMenu['menu']>;
|
|
7
|
+
export type PartialMenuTheme = Prettify<DeepPartial<MenuTheme>>;
|
|
8
|
+
export type MenuSectionTheme = Prettify<ComponentMenu['menuSection']>;
|
|
9
|
+
export type PartialMenuSectionTheme = Prettify<DeepPartial<MenuSectionTheme>>;
|
|
10
|
+
export type MenuItemTheme = Prettify<ComponentMenu['menuItem']>;
|
|
11
|
+
export type PartialMenuItemTheme = Prettify<DeepPartial<MenuItemTheme>>;
|
|
12
|
+
export type MenuSeparatorTheme = Prettify<ComponentMenu['menuSeparator']>;
|
|
13
|
+
export type PartialMenuSeparatorTheme = Prettify<DeepPartial<MenuSeparatorTheme>>;
|
|
14
|
+
export type MenuPopoverTheme = Prettify<ComponentMenu['menuPopover']>;
|
|
15
|
+
export type PartialMenuPopoverTheme = Prettify<DeepPartial<MenuPopoverTheme>>;
|
|
16
|
+
//#endregion
|
|
@@ -53,8 +53,8 @@ interface MenuItemProps$1 extends DefaultProps<MenuItemTheme, MenuItemProps['cla
|
|
|
53
53
|
*/
|
|
54
54
|
size?: MenuPopoverProps['size'];
|
|
55
55
|
}
|
|
56
|
-
type MenuSeparatorProps = DefaultProps<MenuSeparatorTheme, SeparatorProps['className']>;
|
|
57
|
-
interface MenuPopoverProps extends DefaultProps<MenuPopoverTheme, PopoverProps['className']>, PopoverProps {
|
|
56
|
+
export type MenuSeparatorProps = DefaultProps<MenuSeparatorTheme, SeparatorProps['className']>;
|
|
57
|
+
export interface MenuPopoverProps extends DefaultProps<MenuPopoverTheme, PopoverProps['className']>, PopoverProps {
|
|
58
58
|
/**
|
|
59
59
|
* Size variant of the Popover, this doesn't need to be passed if the Popover is a child of Menu, as it will inherit the size of the Menu.
|
|
60
60
|
*/
|
|
@@ -62,4 +62,4 @@ interface MenuPopoverProps extends DefaultProps<MenuPopoverTheme, PopoverProps['
|
|
|
62
62
|
}
|
|
63
63
|
type MenuTriggerProps$1 = MenuTriggerProps;
|
|
64
64
|
//#endregion
|
|
65
|
-
export { MenuItemProps$1 as MenuItemProps,
|
|
65
|
+
export { MenuItemProps$1 as MenuItemProps, MenuProps$1 as MenuProps, MenuSectionProps$1 as MenuSectionProps, MenuTriggerProps$1 as MenuTriggerProps };
|
|
@@ -53,8 +53,8 @@ interface MenuItemProps$1 extends DefaultProps<MenuItemTheme, MenuItemProps['cla
|
|
|
53
53
|
*/
|
|
54
54
|
size?: MenuPopoverProps['size'];
|
|
55
55
|
}
|
|
56
|
-
type MenuSeparatorProps = DefaultProps<MenuSeparatorTheme, SeparatorProps['className']>;
|
|
57
|
-
interface MenuPopoverProps extends DefaultProps<MenuPopoverTheme, PopoverProps['className']>, PopoverProps {
|
|
56
|
+
export type MenuSeparatorProps = DefaultProps<MenuSeparatorTheme, SeparatorProps['className']>;
|
|
57
|
+
export interface MenuPopoverProps extends DefaultProps<MenuPopoverTheme, PopoverProps['className']>, PopoverProps {
|
|
58
58
|
/**
|
|
59
59
|
* Size variant of the Popover, this doesn't need to be passed if the Popover is a child of Menu, as it will inherit the size of the Menu.
|
|
60
60
|
*/
|
|
@@ -62,4 +62,4 @@ interface MenuPopoverProps extends DefaultProps<MenuPopoverTheme, PopoverProps['
|
|
|
62
62
|
}
|
|
63
63
|
type MenuTriggerProps$1 = MenuTriggerProps;
|
|
64
64
|
//#endregion
|
|
65
|
-
export { MenuItemProps$1 as MenuItemProps,
|
|
65
|
+
export { MenuItemProps$1 as MenuItemProps, MenuProps$1 as MenuProps, MenuSectionProps$1 as MenuSectionProps, MenuTriggerProps$1 as MenuTriggerProps };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { DialogButtonsProps, DialogContentProps, DialogDismissProps, DialogHeaderProps, DialogProps, DialogTriggerProps, ModalProps } from "./types.cjs";
|
|
2
2
|
import React from "react";
|
|
3
3
|
//#region src/components/Modal/Modal.d.ts
|
|
4
|
-
declare const Modal: ({ theme, children, cssOverrides, ...props }: ModalProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
5
|
-
declare const DialogTrigger: (props: DialogTriggerProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
4
|
+
export declare const Modal: ({ theme, children, cssOverrides, ...props }: ModalProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
5
|
+
export declare const DialogTrigger: (props: DialogTriggerProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
6
6
|
interface DialogCompound {
|
|
7
7
|
(props: DialogProps): React.ReactElement;
|
|
8
8
|
Header: (props: DialogHeaderProps) => React.ReactElement;
|
|
@@ -10,6 +10,5 @@ interface DialogCompound {
|
|
|
10
10
|
Content: (props: DialogContentProps) => React.ReactElement;
|
|
11
11
|
Dismiss: (props: DialogDismissProps) => React.ReactElement;
|
|
12
12
|
}
|
|
13
|
-
declare const Dialog: DialogCompound;
|
|
14
|
-
//#endregion
|
|
15
|
-
export { Dialog, DialogTrigger, Modal };
|
|
13
|
+
export declare const Dialog: DialogCompound;
|
|
14
|
+
//#endregion
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { DialogButtonsProps, DialogContentProps, DialogDismissProps, DialogHeaderProps, DialogProps, DialogTriggerProps, ModalProps } from "./types.js";
|
|
2
2
|
import React from "react";
|
|
3
3
|
//#region src/components/Modal/Modal.d.ts
|
|
4
|
-
declare const Modal: ({ theme, children, cssOverrides, ...props }: ModalProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
5
|
-
declare const DialogTrigger: (props: DialogTriggerProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
4
|
+
export declare const Modal: ({ theme, children, cssOverrides, ...props }: ModalProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
5
|
+
export declare const DialogTrigger: (props: DialogTriggerProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
6
6
|
interface DialogCompound {
|
|
7
7
|
(props: DialogProps): React.ReactElement;
|
|
8
8
|
Header: (props: DialogHeaderProps) => React.ReactElement;
|
|
@@ -10,6 +10,5 @@ interface DialogCompound {
|
|
|
10
10
|
Content: (props: DialogContentProps) => React.ReactElement;
|
|
11
11
|
Dismiss: (props: DialogDismissProps) => React.ReactElement;
|
|
12
12
|
}
|
|
13
|
-
declare const Dialog: DialogCompound;
|
|
14
|
-
//#endregion
|
|
15
|
-
export { Dialog, DialogTrigger, Modal };
|
|
13
|
+
export declare const Dialog: DialogCompound;
|
|
14
|
+
//#endregion
|
|
@@ -2,8 +2,7 @@ import { DeepPartial, Prettify } from "../../util/types.cjs";
|
|
|
2
2
|
import { ComponentModal } from "../../styleD/build/typescript/component/modal.cjs";
|
|
3
3
|
import { SerializedStyles } from "@emotion/react";
|
|
4
4
|
//#region src/components/Modal/styles.d.ts
|
|
5
|
-
type ModalTheme = Prettify<Pick<ComponentModal, 'modal' | 'overlay'>>;
|
|
6
|
-
type PartialModalTheme = Prettify<DeepPartial<ModalTheme>>;
|
|
7
|
-
type DialogTheme = Prettify<ComponentModal['dialog']>;
|
|
8
|
-
//#endregion
|
|
9
|
-
export { DialogTheme, ModalTheme, PartialModalTheme };
|
|
5
|
+
export type ModalTheme = Prettify<Pick<ComponentModal, 'modal' | 'overlay'>>;
|
|
6
|
+
export type PartialModalTheme = Prettify<DeepPartial<ModalTheme>>;
|
|
7
|
+
export type DialogTheme = Prettify<ComponentModal['dialog']>;
|
|
8
|
+
//#endregion
|
|
@@ -2,8 +2,7 @@ import { DeepPartial, Prettify } from "../../util/types.js";
|
|
|
2
2
|
import { ComponentModal } from "../../styleD/build/typescript/component/modal.js";
|
|
3
3
|
import { SerializedStyles } from "@emotion/react";
|
|
4
4
|
//#region src/components/Modal/styles.d.ts
|
|
5
|
-
type ModalTheme = Prettify<Pick<ComponentModal, 'modal' | 'overlay'>>;
|
|
6
|
-
type PartialModalTheme = Prettify<DeepPartial<ModalTheme>>;
|
|
7
|
-
type DialogTheme = Prettify<ComponentModal['dialog']>;
|
|
8
|
-
//#endregion
|
|
9
|
-
export { DialogTheme, ModalTheme, PartialModalTheme };
|
|
5
|
+
export type ModalTheme = Prettify<Pick<ComponentModal, 'modal' | 'overlay'>>;
|
|
6
|
+
export type PartialModalTheme = Prettify<DeepPartial<ModalTheme>>;
|
|
7
|
+
export type DialogTheme = Prettify<ComponentModal['dialog']>;
|
|
8
|
+
//#endregion
|
|
@@ -4,16 +4,16 @@ import { TypographyProps } from "../Typography/types.cjs";
|
|
|
4
4
|
import { DialogTheme, ModalTheme } from "./styles.cjs";
|
|
5
5
|
import { DialogProps, DialogTriggerProps, ModalOverlayProps } from "react-aria-components";
|
|
6
6
|
//#region src/components/Modal/types.d.ts
|
|
7
|
-
type ModalProps = DefaultProps<ModalTheme, ModalOverlayProps['className']> & ModalOverlayProps;
|
|
7
|
+
export type ModalProps = DefaultProps<ModalTheme, ModalOverlayProps['className']> & ModalOverlayProps;
|
|
8
8
|
type DialogProps$1 = DefaultProps<DialogTheme['container'], DialogProps['className']> & DialogProps;
|
|
9
|
-
type DialogHeaderProps = Omit<TypographyProps, 'theme'> & {
|
|
9
|
+
export type DialogHeaderProps = Omit<TypographyProps, 'theme'> & {
|
|
10
10
|
theme?: DeepPartial<DialogTheme['title']>;
|
|
11
11
|
};
|
|
12
|
-
type DialogButtonsProps = DefaultPropsWithChildren<DialogTheme['ctas']>;
|
|
13
|
-
type DialogContentProps = DefaultPropsWithChildren<DialogTheme['children']>;
|
|
14
|
-
type DialogDismissProps = Omit<IconButtonProps, 'theme'> & {
|
|
12
|
+
export type DialogButtonsProps = DefaultPropsWithChildren<DialogTheme['ctas']>;
|
|
13
|
+
export type DialogContentProps = DefaultPropsWithChildren<DialogTheme['children']>;
|
|
14
|
+
export type DialogDismissProps = Omit<IconButtonProps, 'theme'> & {
|
|
15
15
|
theme?: DeepPartial<DialogTheme['dismiss']>;
|
|
16
16
|
};
|
|
17
17
|
type DialogTriggerProps$1 = DialogTriggerProps;
|
|
18
18
|
//#endregion
|
|
19
|
-
export {
|
|
19
|
+
export { DialogProps$1 as DialogProps, DialogTriggerProps$1 as DialogTriggerProps };
|
|
@@ -4,16 +4,16 @@ import { TypographyProps } from "../Typography/types.js";
|
|
|
4
4
|
import { DialogTheme, ModalTheme } from "./styles.js";
|
|
5
5
|
import { DialogProps, DialogTriggerProps, ModalOverlayProps } from "react-aria-components";
|
|
6
6
|
//#region src/components/Modal/types.d.ts
|
|
7
|
-
type ModalProps = DefaultProps<ModalTheme, ModalOverlayProps['className']> & ModalOverlayProps;
|
|
7
|
+
export type ModalProps = DefaultProps<ModalTheme, ModalOverlayProps['className']> & ModalOverlayProps;
|
|
8
8
|
type DialogProps$1 = DefaultProps<DialogTheme['container'], DialogProps['className']> & DialogProps;
|
|
9
|
-
type DialogHeaderProps = Omit<TypographyProps, 'theme'> & {
|
|
9
|
+
export type DialogHeaderProps = Omit<TypographyProps, 'theme'> & {
|
|
10
10
|
theme?: DeepPartial<DialogTheme['title']>;
|
|
11
11
|
};
|
|
12
|
-
type DialogButtonsProps = DefaultPropsWithChildren<DialogTheme['ctas']>;
|
|
13
|
-
type DialogContentProps = DefaultPropsWithChildren<DialogTheme['children']>;
|
|
14
|
-
type DialogDismissProps = Omit<IconButtonProps, 'theme'> & {
|
|
12
|
+
export type DialogButtonsProps = DefaultPropsWithChildren<DialogTheme['ctas']>;
|
|
13
|
+
export type DialogContentProps = DefaultPropsWithChildren<DialogTheme['children']>;
|
|
14
|
+
export type DialogDismissProps = Omit<IconButtonProps, 'theme'> & {
|
|
15
15
|
theme?: DeepPartial<DialogTheme['dismiss']>;
|
|
16
16
|
};
|
|
17
17
|
type DialogTriggerProps$1 = DialogTriggerProps;
|
|
18
18
|
//#endregion
|
|
19
|
-
export {
|
|
19
|
+
export { DialogProps$1 as DialogProps, DialogTriggerProps$1 as DialogTriggerProps };
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
const require_mergeDeep = require("../../util/mergeDeep.cjs");
|
|
2
|
+
const require_IconButton = require("../IconButton/IconButton.cjs");
|
|
3
|
+
const require_lib = require("./lib.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/Pagination/Pagination.tsx
|
|
8
|
+
const defaultLabels = {
|
|
9
|
+
nav: "Pagination",
|
|
10
|
+
previous: "Go to previous page",
|
|
11
|
+
next: "Go to next page",
|
|
12
|
+
page: (page) => `Go to page ${page}`,
|
|
13
|
+
status: (currentPage, totalPages) => `Page ${currentPage} of ${totalPages}`
|
|
14
|
+
};
|
|
15
|
+
const clamp = (value, min, max) => Math.min(Math.max(value, min), max);
|
|
16
|
+
const Pagination = ({ currentPage, totalItems, pageSize, onPageChange, siblingCount = 1, boundaryCount = 1, showSummary = true, renderSummary, collapseBelow = "md", labels, theme, cssOverrides, className }) => {
|
|
17
|
+
const mergedTheme = require_mergeDeep.mergeDeep(require_styles.defaultPaginationTheme, theme ?? {});
|
|
18
|
+
const mergedLabels = {
|
|
19
|
+
...defaultLabels,
|
|
20
|
+
...labels
|
|
21
|
+
};
|
|
22
|
+
const safePageSize = Math.max(1, pageSize);
|
|
23
|
+
const totalPages = require_lib.getTotalPages(totalItems, safePageSize);
|
|
24
|
+
const page = clamp(currentPage, 1, totalPages);
|
|
25
|
+
const items = require_lib.getPageRange({
|
|
26
|
+
currentPage: page,
|
|
27
|
+
totalPages,
|
|
28
|
+
siblingCount,
|
|
29
|
+
boundaryCount
|
|
30
|
+
});
|
|
31
|
+
const goTo = (next) => onPageChange(clamp(next, 1, totalPages));
|
|
32
|
+
const startItem = totalItems === 0 ? 0 : (page - 1) * safePageSize + 1;
|
|
33
|
+
const endItem = Math.min(page * safePageSize, totalItems);
|
|
34
|
+
const summary = renderSummary ? renderSummary({
|
|
35
|
+
currentPage: page,
|
|
36
|
+
totalPages,
|
|
37
|
+
totalItems,
|
|
38
|
+
pageSize: safePageSize,
|
|
39
|
+
startItem,
|
|
40
|
+
endItem
|
|
41
|
+
}) : `Results: ${startItem}\u2013${endItem} of ${totalItems}`;
|
|
42
|
+
return /* @__PURE__ */ (0, _emotion_react_jsx_runtime.jsxs)("nav", {
|
|
43
|
+
"aria-label": mergedLabels.nav,
|
|
44
|
+
className,
|
|
45
|
+
css: [require_styles.paginationStyles(mergedTheme), cssOverrides],
|
|
46
|
+
children: [
|
|
47
|
+
/* @__PURE__ */ (0, _emotion_react_jsx_runtime.jsx)(require_IconButton.IconButton, {
|
|
48
|
+
variant: "secondary",
|
|
49
|
+
size: "xs",
|
|
50
|
+
symbol: "chevron_left",
|
|
51
|
+
ariaLabel: mergedLabels.previous,
|
|
52
|
+
isDisabled: page <= 1,
|
|
53
|
+
onPress: () => goTo(page - 1),
|
|
54
|
+
cssOverrides: require_styles.arrowStyles(mergedTheme)
|
|
55
|
+
}),
|
|
56
|
+
/* @__PURE__ */ (0, _emotion_react_jsx_runtime.jsx)("ul", {
|
|
57
|
+
css: require_styles.listStyles(mergedTheme, collapseBelow),
|
|
58
|
+
children: items.map((item, index) => {
|
|
59
|
+
if (item === "ellipsis") return /* @__PURE__ */ (0, _emotion_react_jsx_runtime.jsx)("li", {
|
|
60
|
+
"aria-hidden": "true",
|
|
61
|
+
children: /* @__PURE__ */ (0, _emotion_react_jsx_runtime.jsx)("span", {
|
|
62
|
+
css: require_styles.ellipsisStyles(mergedTheme),
|
|
63
|
+
children: "…"
|
|
64
|
+
})
|
|
65
|
+
}, `ellipsis-${index}`);
|
|
66
|
+
const isCurrent = item === page;
|
|
67
|
+
return /* @__PURE__ */ (0, _emotion_react_jsx_runtime.jsx)("li", { children: /* @__PURE__ */ (0, _emotion_react_jsx_runtime.jsx)(react_aria_components.Button, {
|
|
68
|
+
"aria-label": mergedLabels.page(item),
|
|
69
|
+
"aria-current": isCurrent ? "page" : void 0,
|
|
70
|
+
onPress: () => !isCurrent && goTo(item),
|
|
71
|
+
css: require_styles.itemStyles(mergedTheme, isCurrent),
|
|
72
|
+
children: item
|
|
73
|
+
}) }, item);
|
|
74
|
+
})
|
|
75
|
+
}),
|
|
76
|
+
/* @__PURE__ */ (0, _emotion_react_jsx_runtime.jsx)("span", {
|
|
77
|
+
css: require_styles.compactStatusStyles(mergedTheme, collapseBelow),
|
|
78
|
+
children: mergedLabels.status(page, totalPages)
|
|
79
|
+
}),
|
|
80
|
+
/* @__PURE__ */ (0, _emotion_react_jsx_runtime.jsx)(require_IconButton.IconButton, {
|
|
81
|
+
variant: "secondary",
|
|
82
|
+
size: "xs",
|
|
83
|
+
symbol: "chevron_right",
|
|
84
|
+
ariaLabel: mergedLabels.next,
|
|
85
|
+
isDisabled: page >= totalPages,
|
|
86
|
+
onPress: () => goTo(page + 1),
|
|
87
|
+
cssOverrides: require_styles.arrowStyles(mergedTheme)
|
|
88
|
+
}),
|
|
89
|
+
showSummary && /* @__PURE__ */ (0, _emotion_react_jsx_runtime.jsx)("span", {
|
|
90
|
+
css: require_styles.summaryStyles(mergedTheme, collapseBelow),
|
|
91
|
+
children: summary
|
|
92
|
+
})
|
|
93
|
+
]
|
|
94
|
+
});
|
|
95
|
+
};
|
|
96
|
+
//#endregion
|
|
97
|
+
exports.Pagination = Pagination;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { PaginationProps } from "./types.cjs";
|
|
2
|
+
//#region src/components/Pagination/Pagination.d.ts
|
|
3
|
+
export declare const Pagination: ({ currentPage, totalItems, pageSize, onPageChange, siblingCount, boundaryCount, showSummary, renderSummary, collapseBelow, labels, theme, cssOverrides, className }: PaginationProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
4
|
+
//#endregion
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { PaginationProps } from "./types.js";
|
|
2
|
+
//#region src/components/Pagination/Pagination.d.ts
|
|
3
|
+
export declare const Pagination: ({ currentPage, totalItems, pageSize, onPageChange, siblingCount, boundaryCount, showSummary, renderSummary, collapseBelow, labels, theme, cssOverrides, className }: PaginationProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
4
|
+
//#endregion
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
import { mergeDeep } from "../../util/mergeDeep.js";
|
|
2
|
+
import { IconButton } from "../IconButton/IconButton.js";
|
|
3
|
+
import { getPageRange, getTotalPages } from "./lib.js";
|
|
4
|
+
import { arrowStyles, compactStatusStyles, defaultPaginationTheme, ellipsisStyles, itemStyles, listStyles, paginationStyles, summaryStyles } from "./styles.js";
|
|
5
|
+
import { jsx, jsxs } from "@emotion/react/jsx-runtime";
|
|
6
|
+
import { Button } from "react-aria-components";
|
|
7
|
+
//#region src/components/Pagination/Pagination.tsx
|
|
8
|
+
const defaultLabels = {
|
|
9
|
+
nav: "Pagination",
|
|
10
|
+
previous: "Go to previous page",
|
|
11
|
+
next: "Go to next page",
|
|
12
|
+
page: (page) => `Go to page ${page}`,
|
|
13
|
+
status: (currentPage, totalPages) => `Page ${currentPage} of ${totalPages}`
|
|
14
|
+
};
|
|
15
|
+
const clamp = (value, min, max) => Math.min(Math.max(value, min), max);
|
|
16
|
+
const Pagination = ({ currentPage, totalItems, pageSize, onPageChange, siblingCount = 1, boundaryCount = 1, showSummary = true, renderSummary, collapseBelow = "md", labels, theme, cssOverrides, className }) => {
|
|
17
|
+
const mergedTheme = mergeDeep(defaultPaginationTheme, theme ?? {});
|
|
18
|
+
const mergedLabels = {
|
|
19
|
+
...defaultLabels,
|
|
20
|
+
...labels
|
|
21
|
+
};
|
|
22
|
+
const safePageSize = Math.max(1, pageSize);
|
|
23
|
+
const totalPages = getTotalPages(totalItems, safePageSize);
|
|
24
|
+
const page = clamp(currentPage, 1, totalPages);
|
|
25
|
+
const items = getPageRange({
|
|
26
|
+
currentPage: page,
|
|
27
|
+
totalPages,
|
|
28
|
+
siblingCount,
|
|
29
|
+
boundaryCount
|
|
30
|
+
});
|
|
31
|
+
const goTo = (next) => onPageChange(clamp(next, 1, totalPages));
|
|
32
|
+
const startItem = totalItems === 0 ? 0 : (page - 1) * safePageSize + 1;
|
|
33
|
+
const endItem = Math.min(page * safePageSize, totalItems);
|
|
34
|
+
const summary = renderSummary ? renderSummary({
|
|
35
|
+
currentPage: page,
|
|
36
|
+
totalPages,
|
|
37
|
+
totalItems,
|
|
38
|
+
pageSize: safePageSize,
|
|
39
|
+
startItem,
|
|
40
|
+
endItem
|
|
41
|
+
}) : `Results: ${startItem}\u2013${endItem} of ${totalItems}`;
|
|
42
|
+
return /* @__PURE__ */ jsxs("nav", {
|
|
43
|
+
"aria-label": mergedLabels.nav,
|
|
44
|
+
className,
|
|
45
|
+
css: [paginationStyles(mergedTheme), cssOverrides],
|
|
46
|
+
children: [
|
|
47
|
+
/* @__PURE__ */ jsx(IconButton, {
|
|
48
|
+
variant: "secondary",
|
|
49
|
+
size: "xs",
|
|
50
|
+
symbol: "chevron_left",
|
|
51
|
+
ariaLabel: mergedLabels.previous,
|
|
52
|
+
isDisabled: page <= 1,
|
|
53
|
+
onPress: () => goTo(page - 1),
|
|
54
|
+
cssOverrides: arrowStyles(mergedTheme)
|
|
55
|
+
}),
|
|
56
|
+
/* @__PURE__ */ jsx("ul", {
|
|
57
|
+
css: listStyles(mergedTheme, collapseBelow),
|
|
58
|
+
children: items.map((item, index) => {
|
|
59
|
+
if (item === "ellipsis") return /* @__PURE__ */ jsx("li", {
|
|
60
|
+
"aria-hidden": "true",
|
|
61
|
+
children: /* @__PURE__ */ jsx("span", {
|
|
62
|
+
css: ellipsisStyles(mergedTheme),
|
|
63
|
+
children: "…"
|
|
64
|
+
})
|
|
65
|
+
}, `ellipsis-${index}`);
|
|
66
|
+
const isCurrent = item === page;
|
|
67
|
+
return /* @__PURE__ */ jsx("li", { children: /* @__PURE__ */ jsx(Button, {
|
|
68
|
+
"aria-label": mergedLabels.page(item),
|
|
69
|
+
"aria-current": isCurrent ? "page" : void 0,
|
|
70
|
+
onPress: () => !isCurrent && goTo(item),
|
|
71
|
+
css: itemStyles(mergedTheme, isCurrent),
|
|
72
|
+
children: item
|
|
73
|
+
}) }, item);
|
|
74
|
+
})
|
|
75
|
+
}),
|
|
76
|
+
/* @__PURE__ */ jsx("span", {
|
|
77
|
+
css: compactStatusStyles(mergedTheme, collapseBelow),
|
|
78
|
+
children: mergedLabels.status(page, totalPages)
|
|
79
|
+
}),
|
|
80
|
+
/* @__PURE__ */ jsx(IconButton, {
|
|
81
|
+
variant: "secondary",
|
|
82
|
+
size: "xs",
|
|
83
|
+
symbol: "chevron_right",
|
|
84
|
+
ariaLabel: mergedLabels.next,
|
|
85
|
+
isDisabled: page >= totalPages,
|
|
86
|
+
onPress: () => goTo(page + 1),
|
|
87
|
+
cssOverrides: arrowStyles(mergedTheme)
|
|
88
|
+
}),
|
|
89
|
+
showSummary && /* @__PURE__ */ jsx("span", {
|
|
90
|
+
css: summaryStyles(mergedTheme, collapseBelow),
|
|
91
|
+
children: summary
|
|
92
|
+
})
|
|
93
|
+
]
|
|
94
|
+
});
|
|
95
|
+
};
|
|
96
|
+
//#endregion
|
|
97
|
+
export { Pagination };
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
//#region src/components/Pagination/lib.ts
|
|
2
|
+
const ELLIPSIS = "ellipsis";
|
|
3
|
+
const range = (start, end) => Array.from({ length: Math.max(0, end - start + 1) }, (_, i) => start + i);
|
|
4
|
+
/** Derive the total number of pages from a total item count and page size. */
|
|
5
|
+
const getTotalPages = (totalItems, pageSize) => Math.max(1, Math.ceil(Math.max(0, totalItems) / Math.max(1, pageSize)));
|
|
6
|
+
/**
|
|
7
|
+
* Build the list of page numbers and ellipsis markers to render, keeping the
|
|
8
|
+
* first/last boundary pages and a window of siblings around the current page.
|
|
9
|
+
*/
|
|
10
|
+
const getPageRange = ({ currentPage, totalPages, siblingCount = 1, boundaryCount = 1 }) => {
|
|
11
|
+
if (totalPages <= 1) return range(1, totalPages);
|
|
12
|
+
if (siblingCount * 2 + 3 + boundaryCount * 2 >= totalPages) return range(1, totalPages);
|
|
13
|
+
const startPages = range(1, boundaryCount);
|
|
14
|
+
const endPages = range(totalPages - boundaryCount + 1, totalPages);
|
|
15
|
+
const siblingsStart = Math.max(Math.min(currentPage - siblingCount, totalPages - boundaryCount - siblingCount * 2 - 1), boundaryCount + 2);
|
|
16
|
+
const siblingsEnd = Math.min(Math.max(currentPage + siblingCount, boundaryCount + siblingCount * 2 + 2), endPages.length > 0 ? endPages[0] - 2 : totalPages - 1);
|
|
17
|
+
const startEllipsis = siblingsStart > boundaryCount + 2 ? [ELLIPSIS] : boundaryCount + 1 < totalPages - boundaryCount ? [boundaryCount + 1] : [];
|
|
18
|
+
const endEllipsis = siblingsEnd < totalPages - boundaryCount - 1 ? [ELLIPSIS] : totalPages - boundaryCount > boundaryCount ? [totalPages - boundaryCount] : [];
|
|
19
|
+
return [
|
|
20
|
+
...startPages,
|
|
21
|
+
...startEllipsis,
|
|
22
|
+
...range(siblingsStart, siblingsEnd),
|
|
23
|
+
...endEllipsis,
|
|
24
|
+
...endPages
|
|
25
|
+
];
|
|
26
|
+
};
|
|
27
|
+
//#endregion
|
|
28
|
+
exports.ELLIPSIS = ELLIPSIS;
|
|
29
|
+
exports.getPageRange = getPageRange;
|
|
30
|
+
exports.getTotalPages = getTotalPages;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
//#region src/components/Pagination/lib.ts
|
|
2
|
+
const ELLIPSIS = "ellipsis";
|
|
3
|
+
const range = (start, end) => Array.from({ length: Math.max(0, end - start + 1) }, (_, i) => start + i);
|
|
4
|
+
/** Derive the total number of pages from a total item count and page size. */
|
|
5
|
+
const getTotalPages = (totalItems, pageSize) => Math.max(1, Math.ceil(Math.max(0, totalItems) / Math.max(1, pageSize)));
|
|
6
|
+
/**
|
|
7
|
+
* Build the list of page numbers and ellipsis markers to render, keeping the
|
|
8
|
+
* first/last boundary pages and a window of siblings around the current page.
|
|
9
|
+
*/
|
|
10
|
+
const getPageRange = ({ currentPage, totalPages, siblingCount = 1, boundaryCount = 1 }) => {
|
|
11
|
+
if (totalPages <= 1) return range(1, totalPages);
|
|
12
|
+
if (siblingCount * 2 + 3 + boundaryCount * 2 >= totalPages) return range(1, totalPages);
|
|
13
|
+
const startPages = range(1, boundaryCount);
|
|
14
|
+
const endPages = range(totalPages - boundaryCount + 1, totalPages);
|
|
15
|
+
const siblingsStart = Math.max(Math.min(currentPage - siblingCount, totalPages - boundaryCount - siblingCount * 2 - 1), boundaryCount + 2);
|
|
16
|
+
const siblingsEnd = Math.min(Math.max(currentPage + siblingCount, boundaryCount + siblingCount * 2 + 2), endPages.length > 0 ? endPages[0] - 2 : totalPages - 1);
|
|
17
|
+
const startEllipsis = siblingsStart > boundaryCount + 2 ? [ELLIPSIS] : boundaryCount + 1 < totalPages - boundaryCount ? [boundaryCount + 1] : [];
|
|
18
|
+
const endEllipsis = siblingsEnd < totalPages - boundaryCount - 1 ? [ELLIPSIS] : totalPages - boundaryCount > boundaryCount ? [totalPages - boundaryCount] : [];
|
|
19
|
+
return [
|
|
20
|
+
...startPages,
|
|
21
|
+
...startEllipsis,
|
|
22
|
+
...range(siblingsStart, siblingsEnd),
|
|
23
|
+
...endEllipsis,
|
|
24
|
+
...endPages
|
|
25
|
+
];
|
|
26
|
+
};
|
|
27
|
+
//#endregion
|
|
28
|
+
export { ELLIPSIS, getPageRange, getTotalPages };
|
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
const require_typography = require("../../styleD/utils/semantic/typography.cjs");
|
|
2
|
+
const require_mq = require("../../styleD/utils/semantic/mq.cjs");
|
|
3
|
+
const require_pagination = require("../../styleD/build/typescript/component/pagination.cjs");
|
|
4
|
+
let _emotion_react = require("@emotion/react");
|
|
5
|
+
//#region src/components/Pagination/styles.ts
|
|
6
|
+
const defaultPaginationTheme = require_pagination.componentPagination;
|
|
7
|
+
const paginationStyles = (theme) => _emotion_react.css`
|
|
8
|
+
display: ${theme.shared.display};
|
|
9
|
+
align-items: ${theme.shared.alignItems};
|
|
10
|
+
gap: ${theme.shared.gap};
|
|
11
|
+
`;
|
|
12
|
+
const listStyles = (theme, collapseBelow) => _emotion_react.css`
|
|
13
|
+
display: ${theme.shared.display};
|
|
14
|
+
align-items: ${theme.shared.alignItems};
|
|
15
|
+
gap: ${theme.shared.gap};
|
|
16
|
+
margin: 0;
|
|
17
|
+
padding: 0;
|
|
18
|
+
list-style: none;
|
|
19
|
+
|
|
20
|
+
${require_mq.until[collapseBelow]} {
|
|
21
|
+
display: none;
|
|
22
|
+
}
|
|
23
|
+
`;
|
|
24
|
+
const itemStyles = (theme, isCurrent) => {
|
|
25
|
+
const item = theme.item;
|
|
26
|
+
const typography = isCurrent ? item.current.typography : item.typography;
|
|
27
|
+
return _emotion_react.css`
|
|
28
|
+
display: inline-flex;
|
|
29
|
+
align-items: center;
|
|
30
|
+
justify-content: center;
|
|
31
|
+
box-sizing: border-box;
|
|
32
|
+
min-width: ${item.minWidth};
|
|
33
|
+
height: ${item.height};
|
|
34
|
+
padding: ${item.paddingY} ${item.paddingX};
|
|
35
|
+
border-radius: ${item.borderRadius};
|
|
36
|
+
border: ${item.borderWidth} ${item.borderStyle}
|
|
37
|
+
${isCurrent ? item.current.borderColor : item.borderColor};
|
|
38
|
+
background-color: ${isCurrent ? item.current.backgroundColor : item.backgroundColor};
|
|
39
|
+
color: ${isCurrent ? item.current.color : item.color};
|
|
40
|
+
cursor: ${isCurrent ? "default" : item.cursor};
|
|
41
|
+
${require_typography.convertTypographyToEmotionStringStyle(typography)}
|
|
42
|
+
|
|
43
|
+
&[data-hovered]:not([aria-current='page']) {
|
|
44
|
+
background-color: ${item.hover.backgroundColor};
|
|
45
|
+
border-color: ${item.hover.borderColor};
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
&[data-pressed]:not([aria-current='page']) {
|
|
49
|
+
background-color: ${item.active.backgroundColor};
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
&[data-focus-visible] {
|
|
53
|
+
outline: ${item.focusVisible.outlineWidth} solid
|
|
54
|
+
${item.focusVisible.outlineColor};
|
|
55
|
+
outline-offset: ${item.focusVisible.outlineOffset};
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
&[data-disabled] {
|
|
59
|
+
color: ${item.disabled.color};
|
|
60
|
+
background-color: ${item.disabled.backgroundColor};
|
|
61
|
+
border-color: ${item.disabled.borderColor};
|
|
62
|
+
cursor: ${item.disabled.cursor};
|
|
63
|
+
}
|
|
64
|
+
`;
|
|
65
|
+
};
|
|
66
|
+
const ellipsisStyles = (theme) => _emotion_react.css`
|
|
67
|
+
box-sizing: border-box;
|
|
68
|
+
display: inline-flex;
|
|
69
|
+
align-items: center;
|
|
70
|
+
justify-content: center;
|
|
71
|
+
width: ${theme.ellipsis.minWidth};
|
|
72
|
+
min-width: ${theme.ellipsis.minWidth};
|
|
73
|
+
height: ${theme.item.height};
|
|
74
|
+
color: ${theme.ellipsis.color};
|
|
75
|
+
`;
|
|
76
|
+
const arrowStyles = (theme) => _emotion_react.css`
|
|
77
|
+
box-sizing: border-box;
|
|
78
|
+
width: ${theme.item.height};
|
|
79
|
+
min-width: ${theme.item.height};
|
|
80
|
+
height: ${theme.item.height};
|
|
81
|
+
`;
|
|
82
|
+
const summaryStyles = (theme, collapseBelow) => _emotion_react.css`
|
|
83
|
+
margin-left: ${theme.summary.marginLeft};
|
|
84
|
+
color: ${theme.summary.color};
|
|
85
|
+
white-space: nowrap;
|
|
86
|
+
${require_typography.convertTypographyToEmotionStringStyle(theme.summary.typography)}
|
|
87
|
+
|
|
88
|
+
${require_mq.until[collapseBelow]} {
|
|
89
|
+
display: none;
|
|
90
|
+
}
|
|
91
|
+
`;
|
|
92
|
+
const compactStatusStyles = (theme, collapseBelow) => _emotion_react.css`
|
|
93
|
+
display: none;
|
|
94
|
+
flex: 1;
|
|
95
|
+
text-align: center;
|
|
96
|
+
white-space: nowrap;
|
|
97
|
+
color: ${theme.summary.color};
|
|
98
|
+
${require_typography.convertTypographyToEmotionStringStyle(theme.summary.typography)}
|
|
99
|
+
|
|
100
|
+
${require_mq.until[collapseBelow]} {
|
|
101
|
+
display: block;
|
|
102
|
+
}
|
|
103
|
+
`;
|
|
104
|
+
//#endregion
|
|
105
|
+
exports.arrowStyles = arrowStyles;
|
|
106
|
+
exports.compactStatusStyles = compactStatusStyles;
|
|
107
|
+
exports.defaultPaginationTheme = defaultPaginationTheme;
|
|
108
|
+
exports.ellipsisStyles = ellipsisStyles;
|
|
109
|
+
exports.itemStyles = itemStyles;
|
|
110
|
+
exports.listStyles = listStyles;
|
|
111
|
+
exports.paginationStyles = paginationStyles;
|
|
112
|
+
exports.summaryStyles = summaryStyles;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { DeepPartial, Prettify } from "../../util/types.cjs";
|
|
2
|
+
import { ComponentPagination } from "../../styleD/build/typescript/component/pagination.cjs";
|
|
3
|
+
import { SerializedStyles } from "@emotion/react";
|
|
4
|
+
//#region src/components/Pagination/styles.d.ts
|
|
5
|
+
export type PaginationTheme = Prettify<ComponentPagination>;
|
|
6
|
+
export type PartialPaginationTheme = Prettify<DeepPartial<PaginationTheme>>;
|
|
7
|
+
//#endregion
|