@primer/components 0.0.0-2021113144816 → 0.0.0-2021113174023
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/CHANGELOG.md +892 -0
- package/dist/browser.esm.js +2272 -2
- package/dist/browser.esm.js.map +1 -1
- package/dist/browser.umd.js +2272 -2
- package/dist/browser.umd.js.map +1 -1
- package/lib/ActionList/Divider.jsx +29 -0
- package/lib/ActionList/Group.jsx +23 -0
- package/lib/ActionList/Header.js +1 -1
- package/lib/ActionList/Header.jsx +66 -0
- package/lib/ActionList/Item.js +65 -40
- package/lib/ActionList/Item.jsx +311 -0
- package/lib/ActionList/List.js +1 -1
- package/lib/ActionList/List.jsx +138 -0
- package/lib/ActionList/index.js +12 -23
- package/lib/ActionList2/Description.jsx +29 -0
- package/lib/ActionList2/Divider.d.ts +2 -3
- package/lib/ActionList2/Divider.js +5 -10
- package/lib/ActionList2/Divider.jsx +22 -0
- package/lib/ActionList2/Group.d.ts +2 -28
- package/lib/ActionList2/Group.js +6 -55
- package/lib/ActionList2/Group.jsx +25 -0
- package/lib/ActionList2/Header.d.ts +26 -0
- package/lib/ActionList2/Header.js +55 -0
- package/lib/ActionList2/Header.jsx +36 -0
- package/lib/ActionList2/Item.js +7 -25
- package/lib/ActionList2/Item.jsx +174 -0
- package/lib/ActionList2/LinkItem.jsx +28 -0
- package/lib/ActionList2/List.d.ts +1 -1
- package/lib/ActionList2/List.js +2 -11
- package/lib/ActionList2/List.jsx +41 -0
- package/lib/ActionList2/Selection.js +1 -14
- package/lib/ActionList2/Selection.jsx +50 -0
- package/lib/ActionList2/Visuals.jsx +48 -0
- package/lib/ActionList2/index.d.ts +2 -1
- package/lib/ActionList2/index.js +23 -41
- package/lib/ActionMenu.jsx +73 -0
- package/lib/AnchoredOverlay/AnchoredOverlay.jsx +100 -0
- package/lib/AnchoredOverlay/index.js +4 -12
- package/lib/Autocomplete/Autocomplete.d.ts +4 -6
- package/lib/Autocomplete/Autocomplete.jsx +100 -0
- package/lib/Autocomplete/AutocompleteContext.jsx +5 -0
- package/lib/Autocomplete/AutocompleteInput.d.ts +4 -6
- package/lib/Autocomplete/AutocompleteInput.jsx +113 -0
- package/lib/Autocomplete/AutocompleteMenu.jsx +190 -0
- package/lib/Autocomplete/AutocompleteOverlay.jsx +55 -0
- package/lib/Autocomplete/index.js +7 -14
- package/lib/Avatar.d.ts +2 -1
- package/lib/Avatar.js +1 -1
- package/lib/Avatar.jsx +34 -0
- package/lib/AvatarPair.jsx +29 -0
- package/lib/AvatarStack.jsx +151 -0
- package/lib/BaseStyles.js +20 -2
- package/lib/BaseStyles.jsx +65 -0
- package/lib/BorderBox.js +1 -1
- package/lib/BorderBox.jsx +18 -0
- package/lib/Box.js +1 -1
- package/lib/Box.jsx +10 -0
- package/lib/BranchName.d.ts +2 -1
- package/lib/BranchName.js +1 -1
- package/lib/BranchName.jsx +20 -0
- package/lib/Breadcrumbs.d.ts +7 -8
- package/lib/Breadcrumbs.js +15 -10
- package/lib/Breadcrumbs.jsx +74 -0
- package/lib/Button/Button.d.ts +5 -5
- package/lib/Button/Button.js +7 -3
- package/lib/Button/Button.jsx +60 -0
- package/lib/Button/ButtonBase.d.ts +8 -5
- package/lib/Button/ButtonBase.js +5 -1
- package/lib/Button/ButtonBase.jsx +36 -0
- package/lib/Button/ButtonClose.d.ts +47 -5
- package/lib/Button/ButtonClose.js +1 -1
- package/lib/Button/ButtonClose.jsx +55 -0
- package/lib/Button/ButtonDanger.d.ts +5 -5
- package/lib/Button/ButtonDanger.js +6 -2
- package/lib/Button/ButtonDanger.jsx +63 -0
- package/lib/Button/ButtonGroup.js +1 -1
- package/lib/Button/ButtonGroup.jsx +55 -0
- package/lib/Button/ButtonInvisible.d.ts +5 -5
- package/lib/Button/ButtonInvisible.js +6 -2
- package/lib/Button/ButtonInvisible.jsx +52 -0
- package/lib/Button/ButtonOutline.d.ts +5 -5
- package/lib/Button/ButtonOutline.js +6 -2
- package/lib/Button/ButtonOutline.jsx +63 -0
- package/lib/Button/ButtonPrimary.d.ts +5 -5
- package/lib/Button/ButtonPrimary.js +6 -2
- package/lib/Button/ButtonPrimary.jsx +62 -0
- package/lib/Button/ButtonStyles.jsx +37 -0
- package/lib/Button/ButtonTableList.d.ts +2 -1
- package/lib/Button/ButtonTableList.js +1 -1
- package/lib/Button/ButtonTableList.jsx +49 -0
- package/lib/Button/index.js +21 -70
- package/lib/Caret.jsx +93 -0
- package/lib/CircleBadge.d.ts +5 -4
- package/lib/CircleBadge.js +1 -1
- package/lib/CircleBadge.jsx +43 -0
- package/lib/CircleOcticon.d.ts +36 -37
- package/lib/CircleOcticon.jsx +21 -0
- package/lib/CounterLabel.d.ts +2 -1
- package/lib/CounterLabel.js +1 -1
- package/lib/CounterLabel.jsx +44 -0
- package/lib/Details.d.ts +2 -1
- package/lib/Details.js +4 -2
- package/lib/Details.jsx +21 -0
- package/lib/Dialog/ConfirmationDialog.jsx +146 -0
- package/lib/Dialog/Dialog.d.ts +9 -5
- package/lib/Dialog/Dialog.js +11 -17
- package/lib/Dialog/Dialog.jsx +273 -0
- package/lib/Dialog.d.ts +40 -40
- package/lib/Dialog.js +1 -1
- package/lib/Dialog.jsx +131 -0
- package/lib/Dropdown.d.ts +171 -22
- package/lib/Dropdown.js +3 -3
- package/lib/Dropdown.jsx +134 -0
- package/lib/DropdownMenu/DropdownButton.d.ts +49 -9
- package/lib/DropdownMenu/DropdownButton.js +1 -3
- package/lib/DropdownMenu/DropdownButton.jsx +14 -0
- package/lib/DropdownMenu/DropdownMenu.jsx +70 -0
- package/lib/DropdownMenu/index.js +6 -20
- package/lib/DropdownStyles.js +18 -26
- package/lib/EmojiPicker/EmojiPicker.d.ts +17 -0
- package/lib/EmojiPicker/EmojiPicker.js +202 -0
- package/lib/EmojiPicker/EmojiPicker.jsx +132 -0
- package/lib/EmojiPicker/EmojiPickerAnchor.d.ts +0 -0
- package/lib/EmojiPicker/EmojiPickerAnchor.js +1 -0
- package/lib/EmojiPicker/EmojiPickerAnchor.jsx +1 -0
- package/lib/EmojiPicker/EmojiPickerPanel.d.ts +3 -0
- package/lib/EmojiPicker/EmojiPickerPanel.js +18 -0
- package/lib/EmojiPicker/EmojiPickerPanel.jsx +10 -0
- package/lib/EmojiPicker/data.d.ts +9 -0
- package/lib/EmojiPicker/data.js +7254 -0
- package/lib/EmojiPicker/index.d.ts +2 -0
- package/lib/EmojiPicker/index.js +8 -0
- package/lib/FilterList.d.ts +303 -265
- package/lib/FilterList.js +6 -2
- package/lib/FilterList.jsx +63 -0
- package/lib/FilteredActionList/FilteredActionList.js +1 -1
- package/lib/FilteredActionList/FilteredActionList.jsx +100 -0
- package/lib/FilteredActionList/index.js +4 -12
- package/lib/FilteredSearch.d.ts +2 -1
- package/lib/FilteredSearch.js +1 -1
- package/lib/FilteredSearch.jsx +29 -0
- package/lib/Flash.d.ts +2 -1
- package/lib/Flash.js +1 -1
- package/lib/Flash.jsx +70 -0
- package/lib/Flex.js +1 -1
- package/lib/Flex.jsx +15 -0
- package/lib/FormGroup.d.ts +5 -4
- package/lib/FormGroup.js +2 -2
- package/lib/FormGroup.jsx +25 -0
- package/lib/Grid.jsx +15 -0
- package/lib/Header.d.ts +7 -6
- package/lib/Header.js +4 -4
- package/lib/Header.jsx +90 -0
- package/lib/Heading.d.ts +2 -1
- package/lib/Heading.js +6 -1
- package/lib/Heading.jsx +21 -0
- package/lib/Label.d.ts +2 -1
- package/lib/Label.js +3 -2
- package/lib/Label.jsx +84 -0
- package/lib/LabelGroup.d.ts +2 -1
- package/lib/LabelGroup.js +2 -2
- package/lib/LabelGroup.jsx +19 -0
- package/lib/Link.d.ts +2 -1
- package/lib/Link.js +1 -1
- package/lib/Link.jsx +38 -0
- package/lib/NewButton/button-counter.jsx +14 -0
- package/lib/NewButton/button.js +42 -34
- package/lib/NewButton/button.jsx +278 -0
- package/lib/NewButton/index.js +5 -12
- package/lib/NewButton/types.js +2 -1
- package/lib/Overlay.d.ts +11 -14
- package/lib/Overlay.js +5 -4
- package/lib/Overlay.jsx +156 -0
- package/lib/Pagehead.d.ts +2 -1
- package/lib/Pagehead.js +1 -1
- package/lib/Pagehead.jsx +18 -0
- package/lib/Pagination/Pagination.js +3 -3
- package/lib/Pagination/Pagination.jsx +163 -0
- package/lib/Pagination/index.js +6 -12
- package/lib/Pagination/model.jsx +174 -0
- package/lib/PointerBox.jsx +25 -0
- package/lib/Popover.d.ts +5 -4
- package/lib/Popover.js +5 -4
- package/lib/Popover.jsx +210 -0
- package/lib/Portal/Portal.jsx +79 -0
- package/lib/Portal/index.js +5 -16
- package/lib/Position.d.ts +4 -4
- package/lib/Position.js +1 -1
- package/lib/Position.jsx +46 -0
- package/lib/ProgressBar.d.ts +11 -16
- package/lib/ProgressBar.js +10 -6
- package/lib/ProgressBar.jsx +39 -0
- package/lib/SelectMenu/SelectMenu.d.ts +195 -34
- package/lib/SelectMenu/SelectMenu.js +4 -2
- package/lib/SelectMenu/SelectMenu.jsx +114 -0
- package/lib/SelectMenu/SelectMenuContext.jsx +5 -0
- package/lib/SelectMenu/SelectMenuDivider.d.ts +2 -1
- package/lib/SelectMenu/SelectMenuDivider.js +1 -1
- package/lib/SelectMenu/SelectMenuDivider.jsx +43 -0
- package/lib/SelectMenu/SelectMenuFilter.js +2 -2
- package/lib/SelectMenu/SelectMenuFilter.jsx +59 -0
- package/lib/SelectMenu/SelectMenuFooter.d.ts +2 -1
- package/lib/SelectMenu/SelectMenuFooter.js +2 -2
- package/lib/SelectMenu/SelectMenuFooter.jsx +46 -0
- package/lib/SelectMenu/SelectMenuHeader.d.ts +2 -1
- package/lib/SelectMenu/SelectMenuHeader.js +1 -1
- package/lib/SelectMenu/SelectMenuHeader.jsx +44 -0
- package/lib/SelectMenu/SelectMenuItem.d.ts +3 -2
- package/lib/SelectMenu/SelectMenuItem.js +2 -2
- package/lib/SelectMenu/SelectMenuItem.jsx +143 -0
- package/lib/SelectMenu/SelectMenuList.d.ts +2 -1
- package/lib/SelectMenu/SelectMenuList.js +1 -1
- package/lib/SelectMenu/SelectMenuList.jsx +60 -0
- package/lib/SelectMenu/SelectMenuLoadingAnimation.d.ts +2 -2
- package/lib/SelectMenu/SelectMenuLoadingAnimation.js +1 -3
- package/lib/SelectMenu/SelectMenuLoadingAnimation.jsx +21 -0
- package/lib/SelectMenu/SelectMenuModal.d.ts +3 -2
- package/lib/SelectMenu/SelectMenuModal.js +1 -1
- package/lib/SelectMenu/SelectMenuModal.jsx +119 -0
- package/lib/SelectMenu/SelectMenuTab.d.ts +2 -1
- package/lib/SelectMenu/SelectMenuTab.js +2 -2
- package/lib/SelectMenu/SelectMenuTab.jsx +93 -0
- package/lib/SelectMenu/SelectMenuTabPanel.d.ts +2 -1
- package/lib/SelectMenu/SelectMenuTabPanel.js +2 -2
- package/lib/SelectMenu/SelectMenuTabPanel.jsx +43 -0
- package/lib/SelectMenu/SelectMenuTabs.d.ts +2 -1
- package/lib/SelectMenu/SelectMenuTabs.js +2 -2
- package/lib/SelectMenu/SelectMenuTabs.jsx +58 -0
- package/lib/SelectMenu/hooks/useKeyboardNav.js +80 -96
- package/lib/SelectMenu/index.js +7 -14
- package/lib/SelectPanel/SelectPanel.jsx +105 -0
- package/lib/SelectPanel/index.js +4 -12
- package/lib/SideNav.d.ts +8 -11
- package/lib/SideNav.js +15 -8
- package/lib/SideNav.jsx +177 -0
- package/lib/Spinner.d.ts +2 -1
- package/lib/Spinner.js +3 -1
- package/lib/Spinner.jsx +35 -0
- package/lib/StateLabel.d.ts +2 -1
- package/lib/StateLabel.js +6 -7
- package/lib/StateLabel.jsx +94 -0
- package/lib/StyledOcticon.d.ts +2 -1
- package/lib/StyledOcticon.js +4 -2
- package/lib/StyledOcticon.jsx +20 -0
- package/lib/SubNav.d.ts +11 -5
- package/lib/SubNav.js +13 -8
- package/lib/SubNav.jsx +104 -0
- package/lib/TabNav.d.ts +4 -3
- package/lib/TabNav.js +2 -2
- package/lib/TabNav.jsx +60 -0
- package/lib/Text.jsx +14 -0
- package/lib/TextInput.jsx +23 -0
- package/lib/TextInputWithTokens.d.ts +4 -6
- package/lib/TextInputWithTokens.jsx +218 -0
- package/lib/ThemeProvider.d.ts +0 -1
- package/lib/ThemeProvider.js +4 -17
- package/lib/ThemeProvider.jsx +130 -0
- package/lib/Timeline.d.ts +393 -19
- package/lib/Timeline.js +17 -20
- package/lib/Timeline.jsx +124 -0
- package/lib/Token/AvatarToken.d.ts +1 -1
- package/lib/Token/AvatarToken.js +1 -1
- package/lib/Token/AvatarToken.jsx +54 -0
- package/lib/Token/IssueLabelToken.d.ts +1 -1
- package/lib/Token/IssueLabelToken.jsx +125 -0
- package/lib/Token/Token.d.ts +1 -1
- package/lib/Token/Token.jsx +103 -0
- package/lib/Token/TokenBase.js +1 -1
- package/lib/Token/TokenBase.jsx +88 -0
- package/lib/Token/_RemoveTokenButton.jsx +108 -0
- package/lib/Token/_TokenTextContainer.jsx +49 -0
- package/lib/Token/index.js +11 -30
- package/lib/Tooltip.d.ts +2 -1
- package/lib/Tooltip.js +2 -2
- package/lib/Tooltip.jsx +246 -0
- package/lib/Truncate.d.ts +2 -1
- package/lib/Truncate.js +3 -1
- package/lib/Truncate.jsx +27 -0
- package/lib/UnderlineNav.d.ts +3 -2
- package/lib/UnderlineNav.js +4 -4
- package/lib/UnderlineNav.jsx +90 -0
- package/lib/_TextInputWrapper.jsx +120 -0
- package/lib/_UnstyledTextInput.jsx +22 -0
- package/lib/behaviors/anchoredPosition.js +205 -234
- package/lib/behaviors/focusTrap.js +121 -157
- package/lib/behaviors/focusZone.js +434 -509
- package/lib/behaviors/scrollIntoViewingArea.js +18 -35
- package/lib/constants.js +39 -43
- package/lib/drafts.d.ts +0 -1
- package/lib/drafts.js +20 -43
- package/lib/hooks/index.js +16 -60
- package/lib/hooks/useAnchoredPosition.js +32 -40
- package/lib/hooks/useCombinedRefs.js +32 -36
- package/lib/hooks/useDetails.jsx +39 -0
- package/lib/hooks/useDialog.js +72 -96
- package/lib/hooks/useFocusTrap.js +43 -60
- package/lib/hooks/useFocusZone.js +54 -50
- package/lib/hooks/useOnEscapePress.js +25 -36
- package/lib/hooks/useOnOutsideClick.jsx +61 -0
- package/lib/hooks/useOpenAndCloseFocus.js +22 -34
- package/lib/hooks/useOverlay.jsx +15 -0
- package/lib/hooks/useProvidedRefOrCreate.js +10 -14
- package/lib/hooks/useProvidedStateOrCreate.js +13 -16
- package/lib/hooks/useRenderForcingRef.js +13 -17
- package/lib/hooks/useResizeObserver.js +15 -18
- package/lib/hooks/useSafeTimeout.js +22 -30
- package/lib/hooks/useScrollFlash.js +16 -23
- package/lib/index.d.ts +2 -2
- package/lib/index.js +165 -652
- package/lib/polyfills/eventListenerSignal.js +37 -45
- package/lib/sx.js +10 -22
- package/lib/theme-preval.js +64 -3169
- package/lib/theme.js +3 -12
- package/lib/utils/create-slots.jsx +65 -0
- package/lib/utils/deprecate.jsx +59 -0
- package/lib/utils/isNumeric.jsx +7 -0
- package/lib/utils/iterateFocusableElements.js +63 -85
- package/lib/utils/ssr.jsx +6 -0
- package/lib/utils/test-deprecations.jsx +20 -0
- package/lib/utils/test-helpers.jsx +8 -0
- package/lib/utils/test-matchers.jsx +100 -0
- package/lib/utils/testing.d.ts +61 -8
- package/lib/utils/testing.js +0 -29
- package/lib/utils/testing.jsx +206 -0
- package/lib/utils/theme.js +33 -47
- package/lib/utils/types/AriaRole.js +2 -1
- package/lib/utils/types/ComponentProps.js +2 -1
- package/lib/utils/types/Flatten.js +2 -1
- package/lib/utils/types/KeyPaths.js +2 -1
- package/lib/utils/types/MandateProps.js +16 -1
- package/lib/utils/types/Merge.js +2 -1
- package/lib/utils/types/index.js +16 -69
- package/lib/utils/uniqueId.js +5 -8
- package/lib/utils/use-force-update.js +8 -14
- package/lib/utils/useIsomorphicLayoutEffect.js +8 -11
- package/lib/utils/userAgent.js +8 -12
- package/lib-esm/ActionList/Header.js +1 -1
- package/lib-esm/ActionList/Item.js +66 -41
- package/lib-esm/ActionList/List.js +1 -1
- package/lib-esm/ActionList2/Divider.d.ts +2 -3
- package/lib-esm/ActionList2/Divider.js +5 -8
- package/lib-esm/ActionList2/Group.d.ts +2 -28
- package/lib-esm/ActionList2/Group.js +5 -52
- package/lib-esm/ActionList2/Header.d.ts +26 -0
- package/lib-esm/ActionList2/Header.js +44 -0
- package/lib-esm/ActionList2/Item.js +7 -23
- package/lib-esm/ActionList2/List.d.ts +1 -1
- package/lib-esm/ActionList2/List.js +2 -9
- package/lib-esm/ActionList2/Selection.js +1 -12
- package/lib-esm/ActionList2/index.d.ts +2 -1
- package/lib-esm/Autocomplete/Autocomplete.d.ts +4 -6
- package/lib-esm/Autocomplete/AutocompleteInput.d.ts +4 -6
- package/lib-esm/Avatar.d.ts +2 -1
- package/lib-esm/Avatar.js +2 -2
- package/lib-esm/BaseStyles.js +20 -2
- package/lib-esm/BorderBox.js +1 -1
- package/lib-esm/Box.js +1 -1
- package/lib-esm/BranchName.d.ts +2 -1
- package/lib-esm/BranchName.js +2 -2
- package/lib-esm/Breadcrumbs.d.ts +7 -8
- package/lib-esm/Breadcrumbs.js +16 -11
- package/lib-esm/Button/Button.d.ts +5 -5
- package/lib-esm/Button/Button.js +3 -3
- package/lib-esm/Button/ButtonBase.d.ts +8 -5
- package/lib-esm/Button/ButtonBase.js +3 -1
- package/lib-esm/Button/ButtonClose.d.ts +47 -5
- package/lib-esm/Button/ButtonClose.js +2 -2
- package/lib-esm/Button/ButtonDanger.d.ts +5 -5
- package/lib-esm/Button/ButtonDanger.js +2 -2
- package/lib-esm/Button/ButtonGroup.js +1 -1
- package/lib-esm/Button/ButtonInvisible.d.ts +5 -5
- package/lib-esm/Button/ButtonInvisible.js +2 -2
- package/lib-esm/Button/ButtonOutline.d.ts +5 -5
- package/lib-esm/Button/ButtonOutline.js +2 -2
- package/lib-esm/Button/ButtonPrimary.d.ts +5 -5
- package/lib-esm/Button/ButtonPrimary.js +2 -2
- package/lib-esm/Button/ButtonTableList.d.ts +2 -1
- package/lib-esm/Button/ButtonTableList.js +2 -2
- package/lib-esm/CircleBadge.d.ts +5 -4
- package/lib-esm/CircleBadge.js +2 -2
- package/lib-esm/CircleOcticon.d.ts +36 -37
- package/lib-esm/CounterLabel.d.ts +2 -1
- package/lib-esm/CounterLabel.js +2 -2
- package/lib-esm/Details.d.ts +2 -1
- package/lib-esm/Details.js +3 -2
- package/lib-esm/Dialog/Dialog.d.ts +9 -5
- package/lib-esm/Dialog/Dialog.js +12 -12
- package/lib-esm/Dialog.d.ts +40 -40
- package/lib-esm/Dialog.js +2 -2
- package/lib-esm/Dropdown.d.ts +171 -22
- package/lib-esm/Dropdown.js +4 -4
- package/lib-esm/DropdownMenu/DropdownButton.d.ts +49 -9
- package/lib-esm/DropdownMenu/DropdownButton.js +1 -3
- package/lib-esm/EmojiPicker/EmojiPicker.d.ts +17 -0
- package/lib-esm/EmojiPicker/EmojiPicker.js +181 -0
- package/lib-esm/EmojiPicker/EmojiPickerAnchor.d.ts +0 -0
- package/lib-esm/EmojiPicker/EmojiPickerAnchor.js +0 -0
- package/lib-esm/EmojiPicker/EmojiPickerPanel.d.ts +3 -0
- package/lib-esm/EmojiPicker/EmojiPickerPanel.js +8 -0
- package/lib-esm/EmojiPicker/data.d.ts +9 -0
- package/lib-esm/EmojiPicker/data.js +5434 -0
- package/lib-esm/EmojiPicker/index.d.ts +2 -0
- package/lib-esm/EmojiPicker/index.js +1 -0
- package/lib-esm/FilterList.d.ts +303 -265
- package/lib-esm/FilterList.js +7 -3
- package/lib-esm/FilteredActionList/FilteredActionList.js +1 -1
- package/lib-esm/FilteredSearch.d.ts +2 -1
- package/lib-esm/FilteredSearch.js +2 -2
- package/lib-esm/Flash.d.ts +2 -1
- package/lib-esm/Flash.js +2 -2
- package/lib-esm/Flex.js +1 -1
- package/lib-esm/FormGroup.d.ts +5 -4
- package/lib-esm/FormGroup.js +3 -3
- package/lib-esm/Header.d.ts +7 -6
- package/lib-esm/Header.js +5 -5
- package/lib-esm/Heading.d.ts +2 -1
- package/lib-esm/Heading.js +6 -2
- package/lib-esm/Label.d.ts +2 -1
- package/lib-esm/Label.js +4 -3
- package/lib-esm/LabelGroup.d.ts +2 -1
- package/lib-esm/LabelGroup.js +3 -3
- package/lib-esm/Link.d.ts +2 -1
- package/lib-esm/Link.js +2 -2
- package/lib-esm/NewButton/button.js +42 -31
- package/lib-esm/Overlay.d.ts +11 -14
- package/lib-esm/Overlay.js +4 -3
- package/lib-esm/Pagehead.d.ts +2 -1
- package/lib-esm/Pagehead.js +2 -2
- package/lib-esm/Pagination/Pagination.js +4 -4
- package/lib-esm/Popover.d.ts +5 -4
- package/lib-esm/Popover.js +5 -4
- package/lib-esm/Position.d.ts +4 -4
- package/lib-esm/Position.js +1 -1
- package/lib-esm/ProgressBar.d.ts +11 -16
- package/lib-esm/ProgressBar.js +11 -7
- package/lib-esm/SelectMenu/SelectMenu.d.ts +195 -34
- package/lib-esm/SelectMenu/SelectMenu.js +3 -2
- package/lib-esm/SelectMenu/SelectMenuDivider.d.ts +2 -1
- package/lib-esm/SelectMenu/SelectMenuDivider.js +2 -2
- package/lib-esm/SelectMenu/SelectMenuFilter.js +3 -3
- package/lib-esm/SelectMenu/SelectMenuFooter.d.ts +2 -1
- package/lib-esm/SelectMenu/SelectMenuFooter.js +3 -3
- package/lib-esm/SelectMenu/SelectMenuHeader.d.ts +2 -1
- package/lib-esm/SelectMenu/SelectMenuHeader.js +2 -2
- package/lib-esm/SelectMenu/SelectMenuItem.d.ts +3 -2
- package/lib-esm/SelectMenu/SelectMenuItem.js +3 -3
- package/lib-esm/SelectMenu/SelectMenuList.d.ts +2 -1
- package/lib-esm/SelectMenu/SelectMenuList.js +2 -2
- package/lib-esm/SelectMenu/SelectMenuLoadingAnimation.d.ts +2 -2
- package/lib-esm/SelectMenu/SelectMenuLoadingAnimation.js +2 -3
- package/lib-esm/SelectMenu/SelectMenuModal.d.ts +3 -2
- package/lib-esm/SelectMenu/SelectMenuModal.js +2 -2
- package/lib-esm/SelectMenu/SelectMenuTab.d.ts +2 -1
- package/lib-esm/SelectMenu/SelectMenuTab.js +3 -3
- package/lib-esm/SelectMenu/SelectMenuTabPanel.d.ts +2 -1
- package/lib-esm/SelectMenu/SelectMenuTabPanel.js +3 -3
- package/lib-esm/SelectMenu/SelectMenuTabs.d.ts +2 -1
- package/lib-esm/SelectMenu/SelectMenuTabs.js +3 -3
- package/lib-esm/SideNav.d.ts +8 -11
- package/lib-esm/SideNav.js +16 -8
- package/lib-esm/Spinner.d.ts +2 -1
- package/lib-esm/Spinner.js +2 -1
- package/lib-esm/StateLabel.d.ts +2 -1
- package/lib-esm/StateLabel.js +7 -8
- package/lib-esm/StyledOcticon.d.ts +2 -1
- package/lib-esm/StyledOcticon.js +3 -2
- package/lib-esm/SubNav.d.ts +11 -5
- package/lib-esm/SubNav.js +14 -9
- package/lib-esm/TabNav.d.ts +4 -3
- package/lib-esm/TabNav.js +3 -3
- package/lib-esm/TextInputWithTokens.d.ts +4 -6
- package/lib-esm/ThemeProvider.d.ts +0 -1
- package/lib-esm/ThemeProvider.js +4 -17
- package/lib-esm/Timeline.d.ts +393 -19
- package/lib-esm/Timeline.js +17 -16
- package/lib-esm/Token/AvatarToken.d.ts +1 -1
- package/lib-esm/Token/AvatarToken.js +1 -1
- package/lib-esm/Token/IssueLabelToken.d.ts +1 -1
- package/lib-esm/Token/Token.d.ts +1 -1
- package/lib-esm/Token/TokenBase.js +1 -1
- package/lib-esm/Tooltip.d.ts +2 -1
- package/lib-esm/Tooltip.js +3 -3
- package/lib-esm/Truncate.d.ts +2 -1
- package/lib-esm/Truncate.js +2 -1
- package/lib-esm/UnderlineNav.d.ts +3 -2
- package/lib-esm/UnderlineNav.js +5 -5
- package/lib-esm/drafts.d.ts +0 -1
- package/lib-esm/drafts.js +1 -2
- package/lib-esm/index.d.ts +2 -2
- package/lib-esm/index.js +1 -1
- package/lib-esm/theme-preval.js +366 -512
- package/lib-esm/utils/testing.d.ts +61 -8
- package/lib-esm/utils/testing.js +0 -24
- package/package.json +13 -20
- package/lib/ActionList2/MenuContext.d.ts +0 -10
- package/lib/ActionList2/MenuContext.js +0 -15
- package/lib/ActionMenu2.d.ts +0 -313
- package/lib/ActionMenu2.js +0 -91
- package/lib/Checkbox.d.ts +0 -29
- package/lib/Checkbox.js +0 -64
- package/lib-esm/ActionList2/MenuContext.d.ts +0 -10
- package/lib-esm/ActionList2/MenuContext.js +0 -3
- package/lib-esm/ActionMenu2.d.ts +0 -313
- package/lib-esm/ActionMenu2.js +0 -67
- package/lib-esm/Checkbox.d.ts +0 -29
- package/lib-esm/Checkbox.js +0 -44
package/lib-esm/FilterList.js
CHANGED
@@ -1,11 +1,11 @@
|
|
1
1
|
import React from 'react';
|
2
2
|
import styled from 'styled-components';
|
3
|
-
import { get } from './constants';
|
3
|
+
import { COMMON, get } from './constants';
|
4
4
|
import sx from './sx';
|
5
5
|
const FilterListBase = styled.ul.withConfig({
|
6
6
|
displayName: "FilterList__FilterListBase",
|
7
7
|
componentId: "sc-1l4pxmz-0"
|
8
|
-
})(["list-style-type:none;
|
8
|
+
})(["list-style-type:none;", ";", ";"], COMMON, sx);
|
9
9
|
|
10
10
|
const FilterList = ({
|
11
11
|
children,
|
@@ -21,7 +21,7 @@ FilterList.displayName = "FilterList";
|
|
21
21
|
const FilterListItemBase = styled.a.withConfig({
|
22
22
|
displayName: "FilterList__FilterListItemBase",
|
23
23
|
componentId: "sc-1l4pxmz-1"
|
24
|
-
})(["position:relative;display:block;padding:", ";margin:", ";overflow:hidden;font-size:", ";color:", ";background-color:", "!important;text-decoration:none;text-overflow:ellipsis;white-space:nowrap;cursor:pointer;border-radius:", ";&:hover{text-decoration:none;background-color:", ";}&:active{color:", ";background-color:", ";}.count{float:right;font-weight:", ";}", ";"], props => props.small ? `${get('space.1')(props)} 10px` : `${get('space.2')(props)} 11px`, props => props.small ? '0 0 2px' : '0 0 5px 0', get('fontSizes.1'), props => props.selected ? get('colors.fg.onEmphasis') : get('colors.fg.muted'), props => props.selected ? get('colors.accent.emphasis') : '', get('radii.1'), get('colors.canvas.subtle'), get('colors.fg.onEmphasis'), get('colors.accent.emphasis'), get('fontWeights.bold'), sx);
|
24
|
+
})(["position:relative;display:block;padding:", ";margin:", ";overflow:hidden;font-size:", ";color:", ";background-color:", "!important;text-decoration:none;text-overflow:ellipsis;white-space:nowrap;cursor:pointer;border-radius:", ";&:hover{text-decoration:none;background-color:", ";}&:active{color:", ";background-color:", ";}.count{float:right;font-weight:", ";}", ";", ";"], props => props.small ? `${get('space.1')(props)} 10px` : `${get('space.2')(props)} 11px`, props => props.small ? '0 0 2px' : '0 0 5px 0', get('fontSizes.1'), props => props.selected ? get('colors.fg.onEmphasis') : get('colors.fg.muted'), props => props.selected ? get('colors.accent.emphasis') : '', get('radii.1'), get('colors.canvas.subtle'), get('colors.fg.onEmphasis'), get('colors.accent.emphasis'), get('fontWeights.bold'), COMMON, sx);
|
25
25
|
|
26
26
|
function FilterListItem({
|
27
27
|
children,
|
@@ -35,6 +35,10 @@ function FilterListItem({
|
|
35
35
|
}
|
36
36
|
|
37
37
|
FilterListItem.displayName = "FilterListItem";
|
38
|
+
FilterList.defaultProps = {
|
39
|
+
m: 0,
|
40
|
+
p: 0
|
41
|
+
};
|
38
42
|
FilterListItem.displayName = 'FilterList.Item';
|
39
43
|
export default Object.assign(FilterList, {
|
40
44
|
Item: FilterListItem
|
@@ -15,7 +15,7 @@ import useScrollFlash from '../hooks/useScrollFlash';
|
|
15
15
|
import { scrollIntoViewingArea } from '../behaviors/scrollIntoViewingArea';
|
16
16
|
const StyledHeader = styled.div.withConfig({
|
17
17
|
displayName: "FilteredActionList__StyledHeader",
|
18
|
-
componentId: "
|
18
|
+
componentId: "yg3jkv-0"
|
19
19
|
})(["box-shadow:0 1px 0 ", ";z-index:1;"], get('colors.border.default'));
|
20
20
|
export function FilteredActionList({
|
21
21
|
loading = false,
|
@@ -1,5 +1,6 @@
|
|
1
|
+
import { SystemCommonProps } from './constants';
|
1
2
|
import { SxProp } from './sx';
|
2
3
|
import { ComponentProps } from './utils/types';
|
3
|
-
declare const FilteredSearch: import("styled-components").StyledComponent<"div", any, SxProp, never>;
|
4
|
+
declare const FilteredSearch: import("styled-components").StyledComponent<"div", any, SystemCommonProps & SxProp, never>;
|
4
5
|
export declare type FilteredSearchProps = ComponentProps<typeof FilteredSearch>;
|
5
6
|
export default FilteredSearch;
|
@@ -1,8 +1,8 @@
|
|
1
1
|
import styled from 'styled-components';
|
2
|
-
import { get } from './constants';
|
2
|
+
import { COMMON, get } from './constants';
|
3
3
|
import sx from './sx';
|
4
4
|
const FilteredSearch = styled.div.withConfig({
|
5
5
|
displayName: "FilteredSearch",
|
6
6
|
componentId: "sc-15qfedq-0"
|
7
|
-
})(["display:flex;align-items:stretch;summary{border-radius:0;border-top-left-radius:", ";border-bottom-left-radius:", ";border-right:0;}.TextInput-wrapper{border-radius:0;border-top-right-radius:", ";border-bottom-right-radius:", ";z-index:1;}", ""], get('radii.2'), get('radii.2'), get('radii.2'), get('radii.2'), sx);
|
7
|
+
})(["", ";display:flex;align-items:stretch;summary{border-radius:0;border-top-left-radius:", ";border-bottom-left-radius:", ";border-right:0;}.TextInput-wrapper{border-radius:0;border-top-right-radius:", ";border-bottom-right-radius:", ";z-index:1;}", ""], COMMON, get('radii.2'), get('radii.2'), get('radii.2'), get('radii.2'), sx);
|
8
8
|
export default FilteredSearch;
|
package/lib-esm/Flash.d.ts
CHANGED
@@ -1,8 +1,9 @@
|
|
1
|
+
import { SystemCommonProps } from './constants';
|
1
2
|
import { SxProp } from './sx';
|
2
3
|
import { ComponentProps } from './utils/types';
|
3
4
|
declare const Flash: import("styled-components").StyledComponent<"div", any, {
|
4
5
|
variant?: "success" | "danger" | "default" | "warning" | undefined;
|
5
6
|
full?: boolean | undefined;
|
6
|
-
} & SxProp, never>;
|
7
|
+
} & SystemCommonProps & SxProp, never>;
|
7
8
|
export declare type FlashProps = ComponentProps<typeof Flash>;
|
8
9
|
export default Flash;
|
package/lib-esm/Flash.js
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
import styled from 'styled-components';
|
2
2
|
import { variant } from 'styled-system';
|
3
|
-
import { get } from './constants';
|
3
|
+
import { COMMON, get } from './constants';
|
4
4
|
import sx from './sx';
|
5
5
|
const variants = variant({
|
6
6
|
variants: {
|
@@ -41,7 +41,7 @@ const variants = variant({
|
|
41
41
|
const Flash = styled.div.withConfig({
|
42
42
|
displayName: "Flash",
|
43
43
|
componentId: "sc-4y90bn-0"
|
44
|
-
})(["position:relative;color:", ";padding:", ";border-style:solid;border-width:", ";border-radius:", ";margin-top:", ";p:last-child{margin-bottom:0;}svg{margin-right:", ";}", ";", ";"], get('colors.fg.default'), get('space.3'), props => props.full ? '1px 0px' : '1px', props => props.full ? '0' : get('radii.2'), props => props.full ? '-1px' : '0', get('space.2'), variants, sx);
|
44
|
+
})(["position:relative;color:", ";padding:", ";border-style:solid;border-width:", ";border-radius:", ";margin-top:", ";p:last-child{margin-bottom:0;}svg{margin-right:", ";}", ";", ";", ";"], get('colors.fg.default'), get('space.3'), props => props.full ? '1px 0px' : '1px', props => props.full ? '0' : get('radii.2'), props => props.full ? '-1px' : '0', get('space.2'), COMMON, variants, sx);
|
45
45
|
Flash.defaultProps = {
|
46
46
|
variant: 'default'
|
47
47
|
};
|
package/lib-esm/Flex.js
CHANGED
package/lib-esm/FormGroup.d.ts
CHANGED
@@ -1,11 +1,12 @@
|
|
1
1
|
/// <reference types="hoist-non-react-statics" />
|
2
|
+
import { SystemCommonProps, SystemTypographyProps } from './constants';
|
2
3
|
import { SxProp } from './sx';
|
3
4
|
import { ComponentProps } from './utils/types';
|
4
|
-
declare const FormGroup: import("styled-components").StyledComponent<"div", any, SxProp, never>;
|
5
|
-
declare const FormGroupLabel: import("styled-components").StyledComponent<"label", any, SxProp, never>;
|
5
|
+
declare const FormGroup: import("styled-components").StyledComponent<"div", any, SystemCommonProps & SxProp, never>;
|
6
|
+
declare const FormGroupLabel: import("styled-components").StyledComponent<"label", any, SystemTypographyProps & SystemCommonProps & SxProp, never>;
|
6
7
|
export declare type FormGroupProps = ComponentProps<typeof FormGroup>;
|
7
8
|
export declare type FormGroupLabelProps = ComponentProps<typeof FormGroupLabel>;
|
8
|
-
declare const _default: string & import("styled-components").StyledComponentBase<"div", any, SxProp, never> & import("hoist-non-react-statics").NonReactStatics<never, {}> & {
|
9
|
-
Label: import("styled-components").StyledComponent<"label", any, SxProp, never>;
|
9
|
+
declare const _default: string & import("styled-components").StyledComponentBase<"div", any, SystemCommonProps & SxProp, never> & import("hoist-non-react-statics").NonReactStatics<never, {}> & {
|
10
|
+
Label: import("styled-components").StyledComponent<"label", any, SystemTypographyProps & SystemCommonProps & SxProp, never>;
|
10
11
|
};
|
11
12
|
export default _default;
|
package/lib-esm/FormGroup.js
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
import styled from 'styled-components';
|
2
|
-
import { get } from './constants';
|
2
|
+
import { COMMON, get, TYPOGRAPHY } from './constants';
|
3
3
|
import sx from './sx';
|
4
4
|
const FormGroup = styled.div.withConfig({
|
5
5
|
displayName: "FormGroup",
|
6
6
|
componentId: "sc-14z6yax-0"
|
7
|
-
})(["margin:", " 0;font-weight:", ";", ";"], get('space.3'), get('fontWeights.normal'), sx);
|
7
|
+
})(["margin:", " 0;font-weight:", ";", ";", ";"], get('space.3'), get('fontWeights.normal'), COMMON, sx);
|
8
8
|
const FormGroupLabel = styled.label.withConfig({
|
9
9
|
displayName: "FormGroup__FormGroupLabel",
|
10
10
|
componentId: "sc-14z6yax-1"
|
11
|
-
})(["display:block;margin:0 0 ", ";font-size:", ";font-weight:", ";", ";"], get('space.2'), get('fontSizes.1'), get('fontWeights.bold'), sx);
|
11
|
+
})(["display:block;margin:0 0 ", ";font-size:", ";font-weight:", ";", ";", ";", ";"], get('space.2'), get('fontSizes.1'), get('fontWeights.bold'), TYPOGRAPHY, COMMON, sx);
|
12
12
|
FormGroupLabel.displayName = 'FormGroup.Label';
|
13
13
|
export default Object.assign(FormGroup, {
|
14
14
|
Label: FormGroupLabel
|
package/lib-esm/Header.d.ts
CHANGED
@@ -1,23 +1,24 @@
|
|
1
1
|
/// <reference types="hoist-non-react-statics" />
|
2
2
|
import * as History from 'history';
|
3
|
+
import { SystemBorderProps, SystemCommonProps, SystemTypographyProps } from './constants';
|
3
4
|
import { SxProp } from './sx';
|
4
5
|
import { ComponentProps } from './utils/types';
|
5
|
-
declare const Header: import("styled-components").StyledComponent<"div", any, SxProp, never>;
|
6
|
+
declare const Header: import("styled-components").StyledComponent<"div", any, SystemBorderProps & SystemCommonProps & SxProp, never>;
|
6
7
|
declare const HeaderItem: import("styled-components").StyledComponent<"div", any, {
|
7
8
|
full?: boolean | undefined;
|
8
|
-
} & SxProp, never>;
|
9
|
+
} & SystemCommonProps & SxProp, never>;
|
9
10
|
declare const HeaderLink: import("styled-components").StyledComponent<"a", any, {
|
10
11
|
to?: History.LocationDescriptor<unknown> | undefined;
|
11
|
-
} & SxProp, never>;
|
12
|
+
} & SystemCommonProps & SxProp & SystemTypographyProps & SystemBorderProps, never>;
|
12
13
|
export declare type HeaderProps = ComponentProps<typeof Header>;
|
13
14
|
export declare type HeaderLinkProps = ComponentProps<typeof HeaderLink>;
|
14
15
|
export declare type HeaderItemProps = ComponentProps<typeof HeaderItem>;
|
15
|
-
declare const _default: string & import("styled-components").StyledComponentBase<"div", any, SxProp, never> & import("hoist-non-react-statics").NonReactStatics<never, {}> & {
|
16
|
+
declare const _default: string & import("styled-components").StyledComponentBase<"div", any, SystemBorderProps & SystemCommonProps & SxProp, never> & import("hoist-non-react-statics").NonReactStatics<never, {}> & {
|
16
17
|
Link: import("styled-components").StyledComponent<"a", any, {
|
17
18
|
to?: History.LocationDescriptor<unknown> | undefined;
|
18
|
-
} & SxProp, never>;
|
19
|
+
} & SystemCommonProps & SxProp & SystemTypographyProps & SystemBorderProps, never>;
|
19
20
|
Item: import("styled-components").StyledComponent<"div", any, {
|
20
21
|
full?: boolean | undefined;
|
21
|
-
} & SxProp, never>;
|
22
|
+
} & SystemCommonProps & SxProp, never>;
|
22
23
|
};
|
23
24
|
export default _default;
|
package/lib-esm/Header.js
CHANGED
@@ -1,17 +1,17 @@
|
|
1
1
|
// eslint-disable-next-line import/no-namespace
|
2
2
|
import styled, { css } from 'styled-components';
|
3
|
-
import { get } from './constants';
|
3
|
+
import { BORDER, COMMON, get, TYPOGRAPHY } from './constants';
|
4
4
|
import sx from './sx';
|
5
5
|
const Header = styled.div.withConfig({
|
6
6
|
displayName: "Header",
|
7
7
|
componentId: "sc-217i47-0"
|
8
|
-
})(["z-index:32;display:flex;padding:", ";font-size:", ";line-height:", ";color:", ";background-color:", ";align-items:center;flex-wrap:nowrap;", ";"], get('space.3'), get('fontSizes.1'), get('lineHeights.default'), get('colors.header.text'), get('colors.header.bg'), sx);
|
8
|
+
})(["z-index:32;display:flex;padding:", ";font-size:", ";line-height:", ";color:", ";background-color:", ";align-items:center;flex-wrap:nowrap;", " ", " ", ";"], get('space.3'), get('fontSizes.1'), get('lineHeights.default'), get('colors.header.text'), get('colors.header.bg'), COMMON, BORDER, sx);
|
9
9
|
const HeaderItem = styled.div.withConfig({
|
10
10
|
displayName: "Header__HeaderItem",
|
11
11
|
componentId: "sc-217i47-1"
|
12
|
-
})(["display:flex;margin-right:", ";align-self:stretch;align-items:center;flex-wrap:nowrap;", ";", ";"], get('space.3'), ({
|
12
|
+
})(["display:flex;margin-right:", ";align-self:stretch;align-items:center;flex-wrap:nowrap;", ";", ";", ";", ";"], get('space.3'), ({
|
13
13
|
full
|
14
|
-
}) => full && css(["flex:auto;"]), sx);
|
14
|
+
}) => full && css(["flex:auto;"]), COMMON, BORDER, sx);
|
15
15
|
HeaderItem.displayName = 'Header.Item';
|
16
16
|
const HeaderLink = styled.a.attrs(({
|
17
17
|
to
|
@@ -30,7 +30,7 @@ const HeaderLink = styled.a.attrs(({
|
|
30
30
|
}).withConfig({
|
31
31
|
displayName: "Header__HeaderLink",
|
32
32
|
componentId: "sc-217i47-2"
|
33
|
-
})(["font-weight:", ";color:", ";white-space:nowrap;cursor:pointer;text-decoration:none;display:flex;align-items:center;&:hover,&:focus{color:", ";}", ";"], get('fontWeights.bold'), get('colors.header.logo'), get('colors.header.text'), sx);
|
33
|
+
})(["font-weight:", ";color:", ";white-space:nowrap;cursor:pointer;text-decoration:none;display:flex;align-items:center;&:hover,&:focus{color:", ";}", ";", ";", ";", ";"], get('fontWeights.bold'), get('colors.header.logo'), get('colors.header.text'), COMMON, BORDER, TYPOGRAPHY, sx);
|
34
34
|
HeaderLink.displayName = 'Header.Link';
|
35
35
|
export default Object.assign(Header, {
|
36
36
|
Link: HeaderLink,
|
package/lib-esm/Heading.d.ts
CHANGED
@@ -1,5 +1,6 @@
|
|
1
|
+
import { SystemCommonProps, SystemTypographyProps } from './constants';
|
1
2
|
import { SxProp } from './sx';
|
2
3
|
import { ComponentProps } from './utils/types';
|
3
|
-
declare const Heading: import("styled-components").StyledComponent<"h2", any, SxProp, never>;
|
4
|
+
declare const Heading: import("styled-components").StyledComponent<"h2", any, SystemTypographyProps & SystemCommonProps & SxProp, never>;
|
4
5
|
export declare type HeadingProps = ComponentProps<typeof Heading>;
|
5
6
|
export default Heading;
|
package/lib-esm/Heading.js
CHANGED
@@ -1,8 +1,12 @@
|
|
1
1
|
import styled from 'styled-components';
|
2
|
-
import { get } from './constants';
|
2
|
+
import { COMMON, get, TYPOGRAPHY } from './constants';
|
3
3
|
import sx from './sx';
|
4
|
+
import theme from './theme';
|
4
5
|
const Heading = styled.h2.withConfig({
|
5
6
|
displayName: "Heading",
|
6
7
|
componentId: "sc-1cjoo9h-0"
|
7
|
-
})(["font-weight:", ";font-size:", ";margin:0;", ";"], get('fontWeights.bold'), get('fontSizes.5'), sx);
|
8
|
+
})(["font-weight:", ";font-size:", ";margin:0;", ";", ";", ";"], get('fontWeights.bold'), get('fontSizes.5'), TYPOGRAPHY, COMMON, sx);
|
9
|
+
Heading.defaultProps = {
|
10
|
+
theme
|
11
|
+
};
|
8
12
|
export default Heading;
|
package/lib-esm/Label.d.ts
CHANGED
@@ -1,10 +1,11 @@
|
|
1
1
|
import { BorderColorProps } from 'styled-system';
|
2
|
+
import { SystemCommonProps } from './constants';
|
2
3
|
import { SxProp } from './sx';
|
3
4
|
import { ComponentProps } from './utils/types';
|
4
5
|
declare const Label: import("styled-components").StyledComponent<"span", any, {
|
5
6
|
variant?: "small" | "medium" | "large" | "xl" | undefined;
|
6
7
|
dropshadow?: boolean | undefined;
|
7
8
|
outline?: boolean | undefined;
|
8
|
-
} & BorderColorProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>, string | number | symbol> & SxProp, never>;
|
9
|
+
} & BorderColorProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>, string | number | symbol> & SystemCommonProps & SxProp, never>;
|
9
10
|
export declare type LabelProps = ComponentProps<typeof Label>;
|
10
11
|
export default Label;
|
package/lib-esm/Label.js
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
import styled, { css } from 'styled-components';
|
2
2
|
import { borderColor, variant } from 'styled-system';
|
3
|
-
import { get } from './constants';
|
3
|
+
import { COMMON, get } from './constants';
|
4
4
|
import sx from './sx';
|
5
|
-
const outlineStyles = css(["margin-top:-1px;margin-bottom:-1px;color:", ";border:", " solid ", ";box-shadow:none;", ";background-color:transparent;"], get('colors.fg.muted'), get('borderWidths.1'), get('colors.border.default'), borderColor);
|
5
|
+
const outlineStyles = css(["margin-top:-1px;margin-bottom:-1px;color:", ";border:", " solid ", ";box-shadow:none;", ";", ";background-color:transparent;"], get('colors.fg.muted'), get('borderWidths.1'), get('colors.border.default'), borderColor, COMMON);
|
6
6
|
const sizeVariant = variant({
|
7
7
|
variants: {
|
8
8
|
small: {
|
@@ -31,8 +31,9 @@ const sizeVariant = variant({
|
|
31
31
|
const Label = styled.span.withConfig({
|
32
32
|
displayName: "Label",
|
33
33
|
componentId: "sc-1t3ykp0-0"
|
34
|
-
})(["display:inline-block;font-weight:", ";color:", ";border-radius:", "
|
34
|
+
})(["display:inline-block;font-weight:", ";color:", ";border-radius:", ";&:hover{text-decoration:none;}", " ", " ", " ", " ", ""], get('fontWeights.semibold'), get('colors.fg.onEmphasis'), get('radii.3'), sizeVariant, COMMON, props => props.dropshadow ? 'box-shadow: inset 0 -1px 0 rgba(27, 31, 35, 0.12)' : '', props => props.outline ? outlineStyles : '', sx);
|
35
35
|
Label.defaultProps = {
|
36
|
+
bg: 'neutral.emphasis',
|
36
37
|
variant: 'medium'
|
37
38
|
};
|
38
39
|
export default Label;
|
package/lib-esm/LabelGroup.d.ts
CHANGED
@@ -1,5 +1,6 @@
|
|
1
|
+
import { SystemCommonProps } from './constants';
|
1
2
|
import { SxProp } from './sx';
|
2
3
|
import { ComponentProps } from './utils/types';
|
3
|
-
declare const LabelGroup: import("styled-components").StyledComponent<"span", any, SxProp, never>;
|
4
|
+
declare const LabelGroup: import("styled-components").StyledComponent<"span", any, SystemCommonProps & SxProp, never>;
|
4
5
|
export declare type LabelGroupProps = ComponentProps<typeof LabelGroup>;
|
5
6
|
export default LabelGroup;
|
package/lib-esm/LabelGroup.js
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
import styled from 'styled-components';
|
2
|
-
import { get } from './constants';
|
2
|
+
import { COMMON, get } from './constants';
|
3
3
|
import sx from './sx';
|
4
4
|
const LabelGroup = styled.span.withConfig({
|
5
5
|
displayName: "LabelGroup",
|
6
|
-
componentId: "
|
7
|
-
})(["& *{margin-right:", ";}& *:last-child{margin-right:0;}", ";"], get('space.1'), sx);
|
6
|
+
componentId: "k6k3qa-0"
|
7
|
+
})(["", " & *{margin-right:", ";}& *:last-child{margin-right:0;}", ";"], COMMON, get('space.1'), sx);
|
8
8
|
export default LabelGroup;
|
package/lib-esm/Link.d.ts
CHANGED
@@ -1,9 +1,10 @@
|
|
1
|
+
import { SystemCommonProps, SystemTypographyProps } from './constants';
|
1
2
|
import { SxProp } from './sx';
|
2
3
|
import { ComponentProps } from './utils/types';
|
3
4
|
declare const Link: import("styled-components").StyledComponent<"a", any, {
|
4
5
|
hoverColor?: string | undefined;
|
5
6
|
muted?: boolean | undefined;
|
6
7
|
underline?: boolean | undefined;
|
7
|
-
} & SxProp, never>;
|
8
|
+
} & SystemCommonProps & SxProp & SystemTypographyProps, never>;
|
8
9
|
export declare type LinkProps = ComponentProps<typeof Link>;
|
9
10
|
export default Link;
|
package/lib-esm/Link.js
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
import styled from 'styled-components';
|
2
2
|
import { system } from 'styled-system';
|
3
|
-
import { get } from './constants';
|
3
|
+
import { COMMON, get, TYPOGRAPHY } from './constants';
|
4
4
|
import sx from './sx';
|
5
5
|
const hoverColor = system({
|
6
6
|
hoverColor: {
|
@@ -11,5 +11,5 @@ const hoverColor = system({
|
|
11
11
|
const Link = styled.a.withConfig({
|
12
12
|
displayName: "Link",
|
13
13
|
componentId: "sc-1brdqhf-0"
|
14
|
-
})(["color:", ";text-decoration:", ";&:hover{text-decoration:", ";", ";}&:is(button){display:inline-block;padding:0;font-size:inherit;white-space:nowrap;cursor:pointer;user-select:none;background-color:transparent;border:0;appearance:none;}", ";"], props => props.muted ? get('colors.fg.muted')(props) : get('colors.accent.fg')(props), props => props.underline ? 'underline' : 'none', props => props.muted ? 'none' : 'underline', props => props.hoverColor ? hoverColor : props.muted ? `color: ${get('colors.accent.fg')(props)}` : '', sx);
|
14
|
+
})(["color:", ";text-decoration:", ";&:hover{text-decoration:", ";", ";}&:is(button){display:inline-block;padding:0;font-size:inherit;white-space:nowrap;cursor:pointer;user-select:none;background-color:transparent;border:0;appearance:none;}", ";", ";", ";"], props => props.muted ? get('colors.fg.muted')(props) : get('colors.accent.fg')(props), props => props.underline ? 'underline' : 'none', props => props.muted ? 'none' : 'underline', props => props.hoverColor ? hoverColor : props.muted ? `color: ${get('colors.accent.fg')(props)}` : '', TYPOGRAPHY, COMMON, sx);
|
15
15
|
export default Link;
|
@@ -5,7 +5,6 @@ import Box from '../Box';
|
|
5
5
|
import styled from 'styled-components';
|
6
6
|
import sx, { merge } from '../sx';
|
7
7
|
import { useTheme } from '../ThemeProvider';
|
8
|
-
const TEXT_ROW_HEIGHT = '20px'; // custom value off the scale
|
9
8
|
|
10
9
|
const getVariantStyles = (variant = 'default', theme) => {
|
11
10
|
const style = {
|
@@ -130,7 +129,7 @@ const getVariantStyles = (variant = 'default', theme) => {
|
|
130
129
|
borderColor: 'btn.outline.focusBorder',
|
131
130
|
boxShadow: `${theme === null || theme === void 0 ? void 0 : theme.shadows.btn.outline.focusShadow}`
|
132
131
|
},
|
133
|
-
'&:active
|
132
|
+
'&:active': {
|
134
133
|
color: 'btn.outline.selectedText',
|
135
134
|
backgroundColor: 'btn.outline.selectedBg',
|
136
135
|
boxShadow: `${theme === null || theme === void 0 ? void 0 : theme.shadows.btn.outline.selectedShadow}`,
|
@@ -200,7 +199,6 @@ const ButtonBase = styled.button.withConfig({
|
|
200
199
|
})(sx);
|
201
200
|
const Button = /*#__PURE__*/forwardRef(({
|
202
201
|
children,
|
203
|
-
sx: sxProp = {},
|
204
202
|
...props
|
205
203
|
}, forwardedRef) => {
|
206
204
|
const {
|
@@ -208,9 +206,12 @@ const Button = /*#__PURE__*/forwardRef(({
|
|
208
206
|
leadingIcon: LeadingIcon,
|
209
207
|
trailingIcon: TrailingIcon,
|
210
208
|
variant = 'default',
|
211
|
-
size = 'medium'
|
209
|
+
size = 'medium',
|
210
|
+
sx: sxProp = {}
|
212
211
|
} = props;
|
213
212
|
const iconOnly = !!Icon;
|
213
|
+
const TEXT_ROW_HEIGHT = '20px'; // custom value off the scale
|
214
|
+
|
214
215
|
const {
|
215
216
|
theme
|
216
217
|
} = useTheme();
|
@@ -251,36 +252,46 @@ const Button = /*#__PURE__*/forwardRef(({
|
|
251
252
|
gridArea: 'trailingIcon'
|
252
253
|
}
|
253
254
|
};
|
255
|
+
const variableStyles = { ...getSizeStyles(size, variant, iconOnly),
|
256
|
+
...getVariantStyles(variant, theme)
|
257
|
+
};
|
258
|
+
const componentStyles = { ...styles,
|
259
|
+
...variableStyles
|
260
|
+
};
|
254
261
|
const iconWrapStyles = {
|
255
262
|
display: 'inline-block'
|
256
263
|
};
|
257
|
-
|
258
|
-
|
259
|
-
|
260
|
-
|
261
|
-
|
262
|
-
|
263
|
-
|
264
|
-
|
265
|
-
|
266
|
-
|
267
|
-
|
268
|
-
|
269
|
-
|
270
|
-
|
271
|
-
|
272
|
-
|
273
|
-
|
274
|
-
|
275
|
-
|
276
|
-
|
277
|
-
|
278
|
-
|
279
|
-
|
280
|
-
|
281
|
-
|
282
|
-
|
283
|
-
|
264
|
+
return (
|
265
|
+
/*#__PURE__*/
|
266
|
+
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
267
|
+
// @ts-ignore Why wont it accept the sx prop?
|
268
|
+
React.createElement(ButtonBase, _extends({
|
269
|
+
sx: merge(componentStyles, sxProp),
|
270
|
+
ref: forwardedRef
|
271
|
+
}, props), LeadingIcon && /*#__PURE__*/React.createElement(Box, {
|
272
|
+
as: "span",
|
273
|
+
"data-component": "leadingIcon",
|
274
|
+
sx: iconWrapStyles,
|
275
|
+
"aria-hidden": !iconOnly
|
276
|
+
}, /*#__PURE__*/React.createElement(LeadingIcon, null)), /*#__PURE__*/React.createElement("span", {
|
277
|
+
"data-component": "text",
|
278
|
+
hidden: Icon ? true : undefined
|
279
|
+
}, children), Icon && /*#__PURE__*/React.createElement(Box, {
|
280
|
+
"data-component": "icon-only",
|
281
|
+
as: "span",
|
282
|
+
sx: {
|
283
|
+
display: 'inline-block'
|
284
|
+
},
|
285
|
+
"aria-hidden": !iconOnly
|
286
|
+
}, /*#__PURE__*/React.createElement(Icon, null)), TrailingIcon && /*#__PURE__*/React.createElement(Box, {
|
287
|
+
as: "span",
|
288
|
+
"data-component": "trailingIcon",
|
289
|
+
sx: { ...iconWrapStyles,
|
290
|
+
ml: 2
|
291
|
+
},
|
292
|
+
"aria-hidden": !iconOnly
|
293
|
+
}, /*#__PURE__*/React.createElement(TrailingIcon, null)))
|
294
|
+
);
|
284
295
|
});
|
285
296
|
Button.displayName = 'Button';
|
286
297
|
Object.assign(Button, {});
|
package/lib-esm/Overlay.d.ts
CHANGED
@@ -1,16 +1,16 @@
|
|
1
|
-
import React
|
2
|
-
import {
|
1
|
+
import React from 'react';
|
2
|
+
import { SystemPositionProps, SystemCommonProps } from './constants';
|
3
|
+
import { ComponentProps } from './utils/types';
|
3
4
|
import { TouchOrMouseEvent } from './hooks';
|
4
5
|
import { SxProp } from './sx';
|
5
6
|
import { AnchorSide } from './behaviors/anchoredPosition';
|
6
|
-
import { ForwardRefComponent as PolymorphicForwardRefComponent } from '@radix-ui/react-polymorphic';
|
7
7
|
declare type StyledOverlayProps = {
|
8
8
|
width?: keyof typeof widthMap;
|
9
9
|
height?: keyof typeof heightMap;
|
10
10
|
maxHeight?: keyof Omit<typeof heightMap, 'auto' | 'initial'>;
|
11
11
|
visibility?: 'visible' | 'hidden';
|
12
12
|
anchorSide?: AnchorSide;
|
13
|
-
}
|
13
|
+
};
|
14
14
|
declare const heightMap: {
|
15
15
|
xsmall: string;
|
16
16
|
small: string;
|
@@ -28,22 +28,20 @@ declare const widthMap: {
|
|
28
28
|
xxlarge: string;
|
29
29
|
auto: string;
|
30
30
|
};
|
31
|
-
declare
|
31
|
+
declare const StyledOverlay: import("styled-components").StyledComponent<"div", any, StyledOverlayProps & SystemCommonProps & SxProp, never>;
|
32
|
+
export declare type OverlayProps = {
|
32
33
|
ignoreClickRefs?: React.RefObject<HTMLElement>[];
|
33
34
|
initialFocusRef?: React.RefObject<HTMLElement>;
|
34
35
|
returnFocusRef: React.RefObject<HTMLElement>;
|
35
36
|
onClickOutside: (e: TouchOrMouseEvent) => void;
|
36
37
|
onEscape: (e: KeyboardEvent) => void;
|
37
38
|
visibility?: 'visible' | 'hidden';
|
38
|
-
|
39
|
-
top
|
40
|
-
left
|
39
|
+
[additionalKey: string]: unknown;
|
40
|
+
top: number;
|
41
|
+
left: number;
|
41
42
|
portalContainerName?: string;
|
42
43
|
preventFocusOnOpen?: boolean;
|
43
|
-
|
44
|
-
children?: React.ReactNode;
|
45
|
-
};
|
46
|
-
declare type OwnOverlayProps = Merge<StyledOverlayProps, BaseOverlayProps>;
|
44
|
+
} & Omit<ComponentProps<typeof StyledOverlay>, 'visibility' | keyof SystemPositionProps>;
|
47
45
|
/**
|
48
46
|
* An `Overlay` is a flexible floating surface, used to display transient content such as menus,
|
49
47
|
* selection options, dialogs, and more. Overlays use shadows to express elevation. The `Overlay`
|
@@ -61,6 +59,5 @@ declare type OwnOverlayProps = Merge<StyledOverlayProps, BaseOverlayProps>;
|
|
61
59
|
* @param left Optional. Horizontal position of the overlay, relative to its closest positioned ancestor (often its `Portal`).
|
62
60
|
* @param portalContainerName Optional. The name of the portal container to render the Overlay into.
|
63
61
|
*/
|
64
|
-
declare const Overlay:
|
65
|
-
export declare type OverlayProps = ComponentPropsWithRef<typeof Overlay>;
|
62
|
+
declare const Overlay: React.ForwardRefExoticComponent<Pick<OverlayProps, string | number> & React.RefAttributes<HTMLDivElement>>;
|
66
63
|
export default Overlay;
|
package/lib-esm/Overlay.js
CHANGED
@@ -2,8 +2,8 @@ function _extends() { _extends = Object.assign || function (target) { for (var i
|
|
2
2
|
|
3
3
|
import styled from 'styled-components';
|
4
4
|
import React, { useEffect, useRef } from 'react';
|
5
|
+
import { get, COMMON } from './constants';
|
5
6
|
import useLayoutEffect from './utils/useIsomorphicLayoutEffect';
|
6
|
-
import { get } from './constants';
|
7
7
|
import { useOverlay } from './hooks';
|
8
8
|
import Portal from './Portal';
|
9
9
|
import sx from './sx';
|
@@ -60,8 +60,8 @@ function getSlideAnimationStartingVector(anchorSide) {
|
|
60
60
|
|
61
61
|
const StyledOverlay = styled.div.withConfig({
|
62
62
|
displayName: "Overlay__StyledOverlay",
|
63
|
-
componentId: "
|
64
|
-
})(["background-color:", ";box-shadow:", ";position:absolute;min-width:192px;max-width:640px;height:", ";max-height:", ";width:", ";border-radius:12px;overflow:hidden;animation:overlay-appear ", "ms ", ";@keyframes overlay-appear{0%{opacity:0;}100%{opacity:1;}}visibility:var(--styled-overlay-visibility);:focus{outline:none;}", ";"], get('colors.canvas.overlay'), get('shadows.overlay.shadow'), props => heightMap[props.height || 'auto'], props => props.maxHeight && heightMap[props.maxHeight], props => widthMap[props.width || 'auto'], animationDuration, get('animation.easeOutCubic'), sx);
|
63
|
+
componentId: "jhwkzw-0"
|
64
|
+
})(["background-color:", ";box-shadow:", ";position:absolute;min-width:192px;max-width:640px;height:", ";max-height:", ";width:", ";border-radius:12px;overflow:hidden;animation:overlay-appear ", "ms ", ";@keyframes overlay-appear{0%{opacity:0;}100%{opacity:1;}}visibility:var(--styled-overlay-visibility);:focus{outline:none;}", ";", ";"], get('colors.canvas.overlay'), get('shadows.overlay.shadow'), props => heightMap[props.height || 'auto'], props => props.maxHeight && heightMap[props.maxHeight], props => widthMap[props.width || 'auto'], animationDuration, get('animation.easeOutCubic'), COMMON, sx);
|
65
65
|
|
66
66
|
/**
|
67
67
|
* An `Overlay` is a flexible floating surface, used to display transient content such as menus,
|
@@ -149,6 +149,7 @@ const Overlay = /*#__PURE__*/React.forwardRef(({
|
|
149
149
|
style: {
|
150
150
|
top: `${top || 0}px`,
|
151
151
|
left: `${left || 0}px`,
|
152
|
+
...rest.style,
|
152
153
|
'--styled-overlay-visibility': visibility
|
153
154
|
}
|
154
155
|
})));
|
package/lib-esm/Pagehead.d.ts
CHANGED
@@ -1,5 +1,6 @@
|
|
1
|
+
import { SystemCommonProps } from './constants';
|
1
2
|
import { SxProp } from './sx';
|
2
3
|
import { ComponentProps } from './utils/types';
|
3
|
-
declare const Pagehead: import("styled-components").StyledComponent<"div", any, SxProp, never>;
|
4
|
+
declare const Pagehead: import("styled-components").StyledComponent<"div", any, SystemCommonProps & SxProp, never>;
|
4
5
|
export declare type PageheadProps = ComponentProps<typeof Pagehead>;
|
5
6
|
export default Pagehead;
|
package/lib-esm/Pagehead.js
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
import styled from 'styled-components';
|
2
|
-
import { get } from './constants';
|
2
|
+
import { COMMON, get } from './constants';
|
3
3
|
import sx from './sx';
|
4
4
|
const Pagehead = styled.div.withConfig({
|
5
5
|
displayName: "Pagehead",
|
6
6
|
componentId: "sc-1ntn78e-0"
|
7
|
-
})(["position:relative;padding-top:", ";padding-bottom:", ";margin-bottom:", ";border-bottom:1px solid ", ";", ";"], get('space.4'), get('space.4'), get('space.4'), get('colors.border.default'), sx);
|
7
|
+
})(["position:relative;padding-top:", ";padding-bottom:", ";margin-bottom:", ";border-bottom:1px solid ", ";", ";", ";"], get('space.4'), get('space.4'), get('space.4'), get('colors.border.default'), COMMON, sx);
|
8
8
|
export default Pagehead;
|
@@ -3,13 +3,13 @@ function _extends() { _extends = Object.assign || function (target) { for (var i
|
|
3
3
|
import React from 'react';
|
4
4
|
import styled from 'styled-components';
|
5
5
|
import Box from '../Box';
|
6
|
-
import { get } from '../constants';
|
6
|
+
import { COMMON, get } from '../constants';
|
7
7
|
import sx from '../sx';
|
8
8
|
import { buildComponentData, buildPaginationModel } from './model';
|
9
9
|
const Page = styled.a.withConfig({
|
10
10
|
displayName: "Pagination__Page",
|
11
|
-
componentId: "
|
12
|
-
})(["display:inline-block;min-width:32px;padding:5px 10px;font-style:normal;line-height:20px;color:", ";text-align:center;white-space:nowrap;vertical-align:middle;cursor:pointer;user-select:none;text-decoration:none;margin-right:", ";&:last-child{margin-right:0;}border:", " solid transparent;border-radius:", ";transition:border-color 0.2s cubic-bezier(0.3,0,0.5,1);&:hover,&:focus{text-decoration:none;border-color:", ";outline:0;transition-duration:0.1s;}&:active{border-color:", ";}&[rel='prev'],&[rel='next']{color:", ";}&[aria-current],&[aria-current]:hover{color:", ";background-color:", ";border-color:transparent;}&[aria-disabled],&[aria-disabled]:hover{color:", ";cursor:default;border-color:transparent;}@supports (clip-path:polygon(50% 0,100% 50%,50% 100%)){&[rel='prev']::before,&[rel='next']::after{display:inline-block;width:16px;height:16px;vertical-align:text-bottom;content:'';background-color:currentColor;}&[rel='prev']::before{margin-right:", ";clip-path:polygon( 9.8px 12.8px,8.7px 12.8px,4.5px 8.5px,4.5px 7.5px,8.7px 3.2px,9.8px 4.3px,6.1px 8px,9.8px 11.7px,9.8px 12.8px );}&[rel='next']::after{margin-left:", ";clip-path:polygon( 6.2px 3.2px,7.3px 3.2px,11.5px 7.5px,11.5px 8.5px,7.3px 12.8px,6.2px 11.7px,9.9px 8px,6.2px 4.3px,6.2px 3.2px );}}"], get('colors.fg.default'), get('space.1'), get('borderWidths.1'), get('radii.2'), get('colors.border.default'), get('colors.border.muted'), get('colors.accent.fg'), get('colors.fg.onEmphasis'), get('colors.accent.emphasis'), get('colors.primer.fg.disabled'), get('space.1'), get('space.1'));
|
11
|
+
componentId: "b80nss-0"
|
12
|
+
})(["display:inline-block;min-width:32px;padding:5px 10px;font-style:normal;line-height:20px;color:", ";text-align:center;white-space:nowrap;vertical-align:middle;cursor:pointer;user-select:none;text-decoration:none;margin-right:", ";&:last-child{margin-right:0;}border:", " solid transparent;border-radius:", ";transition:border-color 0.2s cubic-bezier(0.3,0,0.5,1);&:hover,&:focus{text-decoration:none;border-color:", ";outline:0;transition-duration:0.1s;}&:active{border-color:", ";}&[rel='prev'],&[rel='next']{color:", ";}&[aria-current],&[aria-current]:hover{color:", ";background-color:", ";border-color:transparent;}&[aria-disabled],&[aria-disabled]:hover{color:", ";cursor:default;border-color:transparent;}@supports (clip-path:polygon(50% 0,100% 50%,50% 100%)){&[rel='prev']::before,&[rel='next']::after{display:inline-block;width:16px;height:16px;vertical-align:text-bottom;content:'';background-color:currentColor;}&[rel='prev']::before{margin-right:", ";clip-path:polygon( 9.8px 12.8px,8.7px 12.8px,4.5px 8.5px,4.5px 7.5px,8.7px 3.2px,9.8px 4.3px,6.1px 8px,9.8px 11.7px,9.8px 12.8px );}&[rel='next']::after{margin-left:", ";clip-path:polygon( 6.2px 3.2px,7.3px 3.2px,11.5px 7.5px,11.5px 8.5px,7.3px 12.8px,6.2px 11.7px,9.9px 8px,6.2px 4.3px,6.2px 3.2px );}}", ";"], get('colors.fg.default'), get('space.1'), get('borderWidths.1'), get('radii.2'), get('colors.border.default'), get('colors.border.muted'), get('colors.accent.fg'), get('colors.fg.onEmphasis'), get('colors.accent.emphasis'), get('colors.primer.fg.disabled'), get('space.1'), get('space.1'), COMMON);
|
13
13
|
|
14
14
|
function usePaginationPages({
|
15
15
|
theme,
|
@@ -43,7 +43,7 @@ function usePaginationPages({
|
|
43
43
|
|
44
44
|
const PaginationContainer = styled.nav.withConfig({
|
45
45
|
displayName: "Pagination__PaginationContainer",
|
46
|
-
componentId: "
|
46
|
+
componentId: "b80nss-1"
|
47
47
|
})(["margin-top:20px;margin-bottom:15px;text-align:center;", ";"], sx);
|
48
48
|
|
49
49
|
function Pagination({
|