@primer/components 0.0.0-20219922627 → 0.0.0-2022530201059
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 +105 -492
- package/README.md +16 -16
- package/codemods/lib/modifyProps.js +7 -9
- package/codemods/lib/prettify.js +1 -1
- package/codemods/lib/replaceImportSource.js +5 -5
- package/dist/browser.esm.js +801 -1115
- package/dist/browser.esm.js.map +1 -1
- package/dist/browser.umd.js +815 -1134
- package/dist/browser.umd.js.map +1 -1
- package/index.d.ts +940 -0
- package/lib/AvatarPair.js +5 -6
- package/lib/AvatarStack.js +10 -10
- package/lib/BaseStyles.js +19 -18
- package/lib/BorderBox.js +5 -4
- package/lib/Box.js +2 -2
- package/lib/BranchName.js +1 -1
- package/lib/{Breadcrumbs.js → Breadcrumb.js} +23 -33
- package/lib/Button/Button.js +3 -3
- package/lib/Button/ButtonClose.js +4 -4
- package/lib/Button/ButtonDanger.js +2 -2
- package/lib/Button/ButtonInvisible.js +3 -3
- package/lib/Button/ButtonOutline.js +2 -2
- package/lib/Button/ButtonPrimary.js +2 -2
- package/lib/Button/ButtonTableList.js +1 -1
- package/lib/CircleBadge.js +1 -1
- package/lib/CircleOcticon.js +7 -9
- package/lib/CounterLabel.js +2 -2
- package/lib/Dialog.js +14 -13
- package/lib/Dropdown.js +2 -2
- package/lib/DropdownStyles.js +6 -6
- package/lib/FilterList.js +1 -1
- package/lib/Flash.js +1 -1
- package/lib/Flex.js +0 -3
- package/lib/Grid.js +3 -4
- package/lib/Header.js +2 -3
- package/lib/Label.js +4 -4
- package/lib/Link.js +12 -1
- package/lib/Overlay.js +35 -120
- package/lib/Pagehead.js +1 -1
- package/lib/Pagination/Pagination.js +2 -3
- package/lib/Popover.js +3 -3
- package/lib/Portal/Portal.js +12 -20
- package/lib/Position.js +27 -46
- package/lib/ProgressBar.js +1 -1
- package/lib/SelectMenu/SelectMenu.js +4 -4
- package/lib/SelectMenu/SelectMenuContext.js +1 -1
- package/lib/SelectMenu/SelectMenuDivider.js +3 -3
- package/lib/SelectMenu/SelectMenuFilter.js +6 -6
- package/lib/SelectMenu/SelectMenuFooter.js +3 -3
- package/lib/SelectMenu/SelectMenuHeader.js +2 -2
- package/lib/SelectMenu/SelectMenuItem.js +4 -4
- package/lib/SelectMenu/SelectMenuList.js +3 -3
- package/lib/SelectMenu/SelectMenuLoadingAnimation.js +15 -4
- package/lib/SelectMenu/SelectMenuModal.js +7 -7
- package/lib/SelectMenu/SelectMenuTab.js +3 -3
- package/lib/SelectMenu/SelectMenuTabPanel.js +3 -3
- package/lib/SelectMenu/SelectMenuTabs.js +2 -2
- package/lib/SelectMenu/hooks/useKeyboardNav.js +0 -2
- package/lib/SideNav.js +12 -20
- package/lib/StateLabel.js +4 -4
- package/lib/SubNav.js +3 -5
- package/lib/TabNav.js +3 -3
- package/lib/TextInput.js +19 -24
- package/lib/ThemeProvider.js +15 -32
- package/lib/Timeline.js +29 -24
- package/lib/Tooltip.js +1 -2
- package/lib/UnderlineNav.js +2 -2
- package/lib/behaviors/anchoredPosition.js +9 -17
- package/lib/behaviors/focusTrap.js +14 -32
- package/lib/behaviors/focusZone.js +148 -218
- package/lib/constants.js +2 -3
- package/lib/hooks/index.js +1 -9
- package/lib/hooks/useAnchoredPosition.js +4 -11
- package/lib/hooks/useDialog.js +1 -1
- package/lib/hooks/useFocusTrap.js +8 -26
- package/lib/hooks/useFocusZone.js +7 -7
- package/lib/hooks/useMouseIntent.js +58 -0
- package/lib/hooks/useOnEscapePress.js +10 -53
- package/lib/hooks/useOnOutsideClick.js +35 -62
- package/lib/hooks/useOpenAndCloseFocus.js +1 -1
- package/lib/hooks/useOverlay.js +17 -5
- package/lib/hooks/useSafeTimeout.js +0 -1
- package/lib/index.js +12 -76
- package/lib/polyfills/eventListenerSignal.js +1 -6
- package/lib/stories/Button.stories.js +114 -0
- package/lib/stories/Overlay.stories.js +102 -0
- package/lib/stories/Portal.stories.js +108 -0
- package/lib/stories/ThemeProvider.stories.js +95 -0
- package/lib/stories/useAnchoredPosition.stories.js +349 -0
- package/lib/stories/useFocusTrap.stories.js +278 -0
- package/lib/stories/useFocusZone.stories.js +490 -0
- package/lib/theme-preval.js +2057 -5148
- package/lib/utils/deprecate.js +2 -3
- package/lib/utils/isNumeric.js +0 -1
- package/lib/utils/iterateFocusableElements.js +1 -1
- package/lib/utils/test-deprecations.js +0 -1
- package/lib/utils/test-matchers.js +12 -3
- package/lib/utils/testing.js +4 -4
- package/lib/utils/theme.js +1 -1
- package/lib/utils/uniqueId.js +0 -1
- package/lib-esm/AvatarPair.js +5 -6
- package/lib-esm/AvatarStack.js +11 -11
- package/lib-esm/BaseStyles.js +16 -16
- package/lib-esm/BorderBox.js +3 -5
- package/lib-esm/Box.js +2 -2
- package/lib-esm/BranchName.js +1 -1
- package/lib-esm/{Breadcrumbs.js → Breadcrumb.js} +22 -32
- package/lib-esm/Button/Button.js +1 -1
- package/lib-esm/Button/ButtonClose.js +2 -2
- package/lib-esm/Button/ButtonInvisible.js +1 -1
- package/lib-esm/Button/ButtonTableList.js +1 -1
- package/lib-esm/CircleBadge.js +1 -1
- package/lib-esm/CircleOcticon.js +6 -9
- package/lib-esm/CounterLabel.js +2 -2
- package/lib-esm/Dialog.js +12 -10
- package/lib-esm/Dropdown.js +2 -2
- package/lib-esm/DropdownStyles.js +6 -6
- package/lib-esm/FilterList.js +1 -1
- package/lib-esm/Flash.js +1 -1
- package/lib-esm/Flex.js +0 -4
- package/lib-esm/Grid.js +2 -5
- package/lib-esm/Header.js +0 -1
- package/lib-esm/Label.js +2 -2
- package/lib-esm/Link.js +12 -1
- package/lib-esm/Overlay.js +37 -115
- package/lib-esm/Pagehead.js +1 -1
- package/lib-esm/Pagination/Pagination.js +2 -3
- package/lib-esm/Popover.js +3 -3
- package/lib-esm/Portal/Portal.js +12 -19
- package/lib-esm/Portal/index.js +1 -1
- package/lib-esm/Position.js +20 -45
- package/lib-esm/ProgressBar.js +1 -1
- package/lib-esm/SelectMenu/SelectMenu.js +3 -3
- package/lib-esm/SelectMenu/SelectMenuContext.js +1 -1
- package/lib-esm/SelectMenu/SelectMenuDivider.js +1 -1
- package/lib-esm/SelectMenu/SelectMenuFilter.js +4 -4
- package/lib-esm/SelectMenu/SelectMenuFooter.js +1 -1
- package/lib-esm/SelectMenu/SelectMenuHeader.js +2 -2
- package/lib-esm/SelectMenu/SelectMenuItem.js +2 -2
- package/lib-esm/SelectMenu/SelectMenuList.js +1 -1
- package/lib-esm/SelectMenu/SelectMenuLoadingAnimation.js +10 -5
- package/lib-esm/SelectMenu/SelectMenuModal.js +5 -5
- package/lib-esm/SelectMenu/SelectMenuTab.js +1 -1
- package/lib-esm/SelectMenu/SelectMenuTabPanel.js +1 -1
- package/lib-esm/SelectMenu/hooks/useKeyboardNav.js +0 -2
- package/lib-esm/SideNav.js +7 -16
- package/lib-esm/StateLabel.js +4 -4
- package/lib-esm/SubNav.js +4 -7
- package/lib-esm/TabNav.js +4 -5
- package/lib-esm/TextInput.js +17 -23
- package/lib-esm/ThemeProvider.js +16 -31
- package/lib-esm/Timeline.js +24 -19
- package/lib-esm/Tooltip.js +1 -2
- package/lib-esm/UnderlineNav.js +3 -4
- package/lib-esm/behaviors/anchoredPosition.js +9 -17
- package/lib-esm/behaviors/focusTrap.js +14 -32
- package/lib-esm/behaviors/focusZone.js +148 -213
- package/lib-esm/constants.js +1 -2
- package/lib-esm/hooks/index.js +1 -2
- package/lib-esm/hooks/useAnchoredPosition.js +5 -10
- package/lib-esm/hooks/useDialog.js +1 -1
- package/lib-esm/hooks/useFocusTrap.js +8 -25
- package/lib-esm/hooks/useFocusZone.js +5 -5
- package/lib-esm/hooks/useMouseIntent.js +50 -0
- package/lib-esm/hooks/useOnEscapePress.js +10 -53
- package/lib-esm/hooks/useOnOutsideClick.js +37 -62
- package/lib-esm/hooks/useOpenAndCloseFocus.js +1 -1
- package/lib-esm/hooks/useOverlay.js +16 -5
- package/lib-esm/hooks/useSafeTimeout.js +0 -1
- package/lib-esm/index.js +10 -19
- package/lib-esm/polyfills/eventListenerSignal.js +1 -6
- package/lib-esm/stories/Button.stories.js +79 -0
- package/lib-esm/stories/Overlay.stories.js +80 -0
- package/lib-esm/stories/Portal.stories.js +72 -0
- package/lib-esm/stories/ThemeProvider.stories.js +76 -0
- package/lib-esm/stories/useAnchoredPosition.stories.js +311 -0
- package/lib-esm/stories/useFocusTrap.stories.js +234 -0
- package/lib-esm/stories/useFocusZone.stories.js +445 -0
- package/lib-esm/theme-preval.js +2057 -5148
- package/lib-esm/utils/deprecate.js +2 -3
- package/lib-esm/utils/isNumeric.js +0 -1
- package/lib-esm/utils/iterateFocusableElements.js +1 -1
- package/lib-esm/utils/test-deprecations.js +1 -1
- package/lib-esm/utils/test-matchers.js +11 -3
- package/lib-esm/utils/testing.js +6 -6
- package/lib-esm/utils/theme.js +1 -1
- package/lib-esm/utils/types.js +0 -1
- package/lib-esm/utils/uniqueId.js +0 -1
- package/package.json +95 -103
- package/codemods/__tests__/deprecateUtilityComponents.js +0 -200
- package/codemods/__tests__/removeSystemProps.js +0 -225
- package/codemods/deprecateUtilityComponents.js +0 -111
- package/codemods/removeSystemProps.js +0 -312
- package/lib/ActionList/Divider.d.ts +0 -9
- package/lib/ActionList/Divider.js +0 -40
- package/lib/ActionList/Group.d.ts +0 -28
- package/lib/ActionList/Group.js +0 -35
- package/lib/ActionList/Header.d.ts +0 -29
- package/lib/ActionList/Header.js +0 -51
- package/lib/ActionList/Item.d.ts +0 -92
- package/lib/ActionList/Item.js +0 -288
- package/lib/ActionList/List.d.ts +0 -87
- package/lib/ActionList/List.js +0 -199
- package/lib/ActionList/index.d.ts +0 -17
- package/lib/ActionList/index.js +0 -29
- package/lib/ActionMenu.d.ts +0 -40
- package/lib/ActionMenu.js +0 -103
- package/lib/AnchoredOverlay/AnchoredOverlay.d.ts +0 -61
- package/lib/AnchoredOverlay/AnchoredOverlay.js +0 -116
- package/lib/AnchoredOverlay/index.d.ts +0 -2
- package/lib/AnchoredOverlay/index.js +0 -13
- package/lib/Avatar.d.ts +0 -15
- package/lib/AvatarPair.d.ts +0 -8
- package/lib/AvatarStack.d.ts +0 -8
- package/lib/BaseStyles.d.ts +0 -14
- package/lib/BorderBox.d.ts +0 -7
- package/lib/Box.d.ts +0 -6
- package/lib/BranchName.d.ts +0 -6
- package/lib/Breadcrumbs.d.ts +0 -40
- package/lib/Button/Button.d.ts +0 -284
- package/lib/Button/ButtonBase.d.ts +0 -12
- package/lib/Button/ButtonClose.d.ts +0 -321
- package/lib/Button/ButtonDanger.d.ts +0 -284
- package/lib/Button/ButtonGroup.d.ts +0 -4
- package/lib/Button/ButtonInvisible.d.ts +0 -284
- package/lib/Button/ButtonOutline.d.ts +0 -284
- package/lib/Button/ButtonPrimary.d.ts +0 -284
- package/lib/Button/ButtonStyles.d.ts +0 -2
- package/lib/Button/ButtonTableList.d.ts +0 -6
- package/lib/Button/index.d.ts +0 -16
- package/lib/Caret.d.ts +0 -21
- package/lib/CircleBadge.d.ts +0 -25
- package/lib/CircleOcticon.d.ts +0 -391
- package/lib/CounterLabel.d.ts +0 -8
- package/lib/DatePicker/DatePicker.d.ts +0 -35
- package/lib/DatePicker/DatePicker.js +0 -37
- package/lib/DatePicker/DatePickerPanel.d.ts +0 -0
- package/lib/DatePicker/DatePickerPanel.js +0 -1
- package/lib/DatePicker/Day.d.ts +0 -12
- package/lib/DatePicker/Day.js +0 -44
- package/lib/DatePicker/Month.d.ts +0 -10
- package/lib/DatePicker/Month.js +0 -28
- package/lib/DatePicker/index.d.ts +0 -2
- package/lib/DatePicker/index.js +0 -13
- package/lib/Details.d.ts +0 -6
- package/lib/Dialog/ConfirmationDialog.d.ts +0 -44
- package/lib/Dialog/ConfirmationDialog.js +0 -191
- package/lib/Dialog/Dialog.d.ts +0 -167
- package/lib/Dialog/Dialog.js +0 -304
- package/lib/Dialog.d.ts +0 -406
- package/lib/Dropdown.d.ts +0 -1262
- package/lib/DropdownMenu/DropdownButton.d.ts +0 -323
- package/lib/DropdownMenu/DropdownButton.js +0 -31
- package/lib/DropdownMenu/DropdownMenu.d.ts +0 -43
- package/lib/DropdownMenu/DropdownMenu.js +0 -94
- package/lib/DropdownMenu/index.d.ts +0 -4
- package/lib/DropdownMenu/index.js +0 -21
- package/lib/DropdownStyles.d.ts +0 -3
- package/lib/FilterList.d.ts +0 -321
- package/lib/FilteredActionList/FilteredActionList.d.ts +0 -16
- package/lib/FilteredActionList/FilteredActionList.js +0 -163
- package/lib/FilteredActionList/index.d.ts +0 -2
- package/lib/FilteredActionList/index.js +0 -13
- package/lib/FilteredSearch.d.ts +0 -6
- package/lib/Flash.d.ts +0 -9
- package/lib/Flex.d.ts +0 -7
- package/lib/FormGroup.d.ts +0 -12
- package/lib/Grid.d.ts +0 -7
- package/lib/Header.d.ts +0 -24
- package/lib/Heading.d.ts +0 -6
- package/lib/Label.d.ts +0 -11
- package/lib/LabelGroup.d.ts +0 -6
- package/lib/Link.d.ts +0 -10
- package/lib/Overlay.d.ts +0 -62
- package/lib/Pagehead.d.ts +0 -6
- package/lib/Pagination/Pagination.d.ts +0 -24
- package/lib/Pagination/index.d.ts +0 -3
- package/lib/Pagination/model.d.ts +0 -26
- package/lib/PointerBox.d.ts +0 -11
- package/lib/Popover.d.ts +0 -21
- package/lib/Portal/Portal.d.ts +0 -25
- package/lib/Portal/index.d.ts +0 -4
- package/lib/Position.d.ts +0 -34
- package/lib/ProgressBar.d.ts +0 -21
- package/lib/SelectMenu/SelectMenu.d.ts +0 -1832
- package/lib/SelectMenu/SelectMenuContext.d.ts +0 -8
- package/lib/SelectMenu/SelectMenuDivider.d.ts +0 -6
- package/lib/SelectMenu/SelectMenuFilter.d.ts +0 -9
- package/lib/SelectMenu/SelectMenuFooter.d.ts +0 -6
- package/lib/SelectMenu/SelectMenuHeader.d.ts +0 -11
- package/lib/SelectMenu/SelectMenuItem.d.ts +0 -15
- package/lib/SelectMenu/SelectMenuList.d.ts +0 -6
- package/lib/SelectMenu/SelectMenuLoadingAnimation.d.ts +0 -7
- package/lib/SelectMenu/SelectMenuModal.d.ts +0 -15
- package/lib/SelectMenu/SelectMenuTab.d.ts +0 -14
- package/lib/SelectMenu/SelectMenuTabPanel.d.ts +0 -13
- package/lib/SelectMenu/SelectMenuTabs.d.ts +0 -11
- package/lib/SelectMenu/hooks/useKeyboardNav.d.ts +0 -2
- package/lib/SelectMenu/index.d.ts +0 -2
- package/lib/SelectPanel/SelectPanel.d.ts +0 -25
- package/lib/SelectPanel/SelectPanel.js +0 -147
- package/lib/SelectPanel/index.d.ts +0 -2
- package/lib/SelectPanel/index.js +0 -13
- package/lib/SideNav.d.ts +0 -31
- package/lib/Spinner.d.ts +0 -17
- package/lib/Spinner.js +0 -60
- package/lib/StateLabel.d.ts +0 -16
- package/lib/StyledOcticon.d.ts +0 -12
- package/lib/SubNav.d.ts +0 -32
- package/lib/TabNav.d.ts +0 -20
- package/lib/Text.d.ts +0 -6
- package/lib/TextInput.d.ts +0 -22
- package/lib/ThemeProvider.d.ts +0 -26
- package/lib/Timeline.d.ts +0 -407
- package/lib/Tooltip.d.ts +0 -18
- package/lib/Truncate.d.ts +0 -11
- package/lib/UnderlineNav.d.ts +0 -25
- package/lib/behaviors/anchoredPosition.d.ts +0 -89
- package/lib/behaviors/focusTrap.d.ts +0 -12
- package/lib/behaviors/focusZone.d.ts +0 -137
- package/lib/constants.d.ts +0 -20
- package/lib/hooks/index.d.ts +0 -11
- package/lib/hooks/useAnchoredPosition.d.ts +0 -20
- package/lib/hooks/useCombinedRefs.d.ts +0 -10
- package/lib/hooks/useCombinedRefs.js +0 -49
- package/lib/hooks/useDetails.d.ts +0 -17
- package/lib/hooks/useDialog.d.ts +0 -16
- package/lib/hooks/useFocusTrap.d.ts +0 -32
- package/lib/hooks/useFocusZone.d.ts +0 -23
- package/lib/hooks/useOnEscapePress.d.ts +0 -23
- package/lib/hooks/useOnOutsideClick.d.ts +0 -8
- package/lib/hooks/useOpenAndCloseFocus.d.ts +0 -7
- package/lib/hooks/useOverlay.d.ts +0 -14
- package/lib/hooks/useProvidedRefOrCreate.d.ts +0 -10
- package/lib/hooks/useProvidedStateOrCreate.d.ts +0 -10
- package/lib/hooks/useProvidedStateOrCreate.js +0 -27
- package/lib/hooks/useRenderForcingRef.d.ts +0 -8
- package/lib/hooks/useRenderForcingRef.js +0 -25
- package/lib/hooks/useResizeObserver.d.ts +0 -1
- package/lib/hooks/useResizeObserver.js +0 -20
- package/lib/hooks/useSafeTimeout.d.ts +0 -12
- package/lib/hooks/useScrollFlash.d.ts +0 -6
- package/lib/hooks/useScrollFlash.js +0 -29
- package/lib/index.d.ts +0 -111
- package/lib/polyfills/eventListenerSignal.d.ts +0 -6
- package/lib/sx.d.ts +0 -6
- package/lib/theme-preval.d.ts +0 -49
- package/lib/theme.d.ts +0 -2
- package/lib/utils/deprecate.d.ts +0 -18
- package/lib/utils/isNumeric.d.ts +0 -1
- package/lib/utils/iterateFocusableElements.d.ts +0 -42
- package/lib/utils/ssr.d.ts +0 -1
- package/lib/utils/ssr.js +0 -19
- package/lib/utils/test-deprecations.d.ts +0 -1
- package/lib/utils/test-helpers.d.ts +0 -0
- package/lib/utils/test-helpers.js +0 -9
- package/lib/utils/test-matchers.d.ts +0 -1
- package/lib/utils/testing.d.ts +0 -1028
- package/lib/utils/theme.d.ts +0 -9
- package/lib/utils/types.d.ts +0 -14
- package/lib/utils/uniqueId.d.ts +0 -1
- package/lib/utils/userAgent.d.ts +0 -1
- package/lib-esm/ActionList/Divider.d.ts +0 -9
- package/lib-esm/ActionList/Divider.js +0 -23
- package/lib-esm/ActionList/Group.d.ts +0 -28
- package/lib-esm/ActionList/Group.js +0 -24
- package/lib-esm/ActionList/Header.d.ts +0 -29
- package/lib-esm/ActionList/Header.js +0 -33
- package/lib-esm/ActionList/Item.d.ts +0 -92
- package/lib-esm/ActionList/Item.js +0 -253
- package/lib-esm/ActionList/List.d.ts +0 -87
- package/lib-esm/ActionList/List.js +0 -181
- package/lib-esm/ActionList/index.d.ts +0 -17
- package/lib-esm/ActionList/index.js +0 -18
- package/lib-esm/ActionMenu.d.ts +0 -40
- package/lib-esm/ActionMenu.js +0 -82
- package/lib-esm/AnchoredOverlay/AnchoredOverlay.d.ts +0 -61
- package/lib-esm/AnchoredOverlay/AnchoredOverlay.js +0 -96
- package/lib-esm/AnchoredOverlay/index.d.ts +0 -2
- package/lib-esm/AnchoredOverlay/index.js +0 -1
- package/lib-esm/Avatar.d.ts +0 -15
- package/lib-esm/AvatarPair.d.ts +0 -8
- package/lib-esm/AvatarStack.d.ts +0 -8
- package/lib-esm/BaseStyles.d.ts +0 -14
- package/lib-esm/BorderBox.d.ts +0 -7
- package/lib-esm/Box.d.ts +0 -6
- package/lib-esm/BranchName.d.ts +0 -6
- package/lib-esm/Breadcrumbs.d.ts +0 -40
- package/lib-esm/Button/Button.d.ts +0 -284
- package/lib-esm/Button/ButtonBase.d.ts +0 -12
- package/lib-esm/Button/ButtonClose.d.ts +0 -321
- package/lib-esm/Button/ButtonDanger.d.ts +0 -284
- package/lib-esm/Button/ButtonGroup.d.ts +0 -4
- package/lib-esm/Button/ButtonInvisible.d.ts +0 -284
- package/lib-esm/Button/ButtonOutline.d.ts +0 -284
- package/lib-esm/Button/ButtonPrimary.d.ts +0 -284
- package/lib-esm/Button/ButtonStyles.d.ts +0 -2
- package/lib-esm/Button/ButtonTableList.d.ts +0 -6
- package/lib-esm/Button/index.d.ts +0 -16
- package/lib-esm/Caret.d.ts +0 -21
- package/lib-esm/CircleBadge.d.ts +0 -25
- package/lib-esm/CircleOcticon.d.ts +0 -391
- package/lib-esm/CounterLabel.d.ts +0 -8
- package/lib-esm/DatePicker/DatePicker.d.ts +0 -35
- package/lib-esm/DatePicker/DatePicker.js +0 -24
- package/lib-esm/DatePicker/DatePickerPanel.d.ts +0 -0
- package/lib-esm/DatePicker/DatePickerPanel.js +0 -0
- package/lib-esm/DatePicker/Day.d.ts +0 -12
- package/lib-esm/DatePicker/Day.js +0 -26
- package/lib-esm/DatePicker/Month.d.ts +0 -10
- package/lib-esm/DatePicker/Month.js +0 -13
- package/lib-esm/DatePicker/index.d.ts +0 -2
- package/lib-esm/DatePicker/index.js +0 -1
- package/lib-esm/Details.d.ts +0 -6
- package/lib-esm/Dialog/ConfirmationDialog.d.ts +0 -44
- package/lib-esm/Dialog/ConfirmationDialog.js +0 -169
- package/lib-esm/Dialog/Dialog.d.ts +0 -167
- package/lib-esm/Dialog/Dialog.js +0 -274
- package/lib-esm/Dialog.d.ts +0 -406
- package/lib-esm/Dropdown.d.ts +0 -1262
- package/lib-esm/DropdownMenu/DropdownButton.d.ts +0 -323
- package/lib-esm/DropdownMenu/DropdownButton.js +0 -16
- package/lib-esm/DropdownMenu/DropdownMenu.d.ts +0 -43
- package/lib-esm/DropdownMenu/DropdownMenu.js +0 -77
- package/lib-esm/DropdownMenu/index.d.ts +0 -4
- package/lib-esm/DropdownMenu/index.js +0 -2
- package/lib-esm/DropdownStyles.d.ts +0 -3
- package/lib-esm/FilterList.d.ts +0 -321
- package/lib-esm/FilteredActionList/FilteredActionList.d.ts +0 -16
- package/lib-esm/FilteredActionList/FilteredActionList.js +0 -137
- package/lib-esm/FilteredActionList/index.d.ts +0 -2
- package/lib-esm/FilteredActionList/index.js +0 -1
- package/lib-esm/FilteredSearch.d.ts +0 -6
- package/lib-esm/Flash.d.ts +0 -9
- package/lib-esm/Flex.d.ts +0 -7
- package/lib-esm/FormGroup.d.ts +0 -12
- package/lib-esm/Grid.d.ts +0 -7
- package/lib-esm/Header.d.ts +0 -24
- package/lib-esm/Heading.d.ts +0 -6
- package/lib-esm/Label.d.ts +0 -11
- package/lib-esm/LabelGroup.d.ts +0 -6
- package/lib-esm/Link.d.ts +0 -10
- package/lib-esm/Overlay.d.ts +0 -62
- package/lib-esm/Pagehead.d.ts +0 -6
- package/lib-esm/Pagination/Pagination.d.ts +0 -24
- package/lib-esm/Pagination/index.d.ts +0 -3
- package/lib-esm/Pagination/model.d.ts +0 -26
- package/lib-esm/PointerBox.d.ts +0 -11
- package/lib-esm/Popover.d.ts +0 -21
- package/lib-esm/Portal/Portal.d.ts +0 -25
- package/lib-esm/Portal/index.d.ts +0 -4
- package/lib-esm/Position.d.ts +0 -34
- package/lib-esm/ProgressBar.d.ts +0 -21
- package/lib-esm/SelectMenu/SelectMenu.d.ts +0 -1832
- package/lib-esm/SelectMenu/SelectMenuContext.d.ts +0 -8
- package/lib-esm/SelectMenu/SelectMenuDivider.d.ts +0 -6
- package/lib-esm/SelectMenu/SelectMenuFilter.d.ts +0 -9
- package/lib-esm/SelectMenu/SelectMenuFooter.d.ts +0 -6
- package/lib-esm/SelectMenu/SelectMenuHeader.d.ts +0 -11
- package/lib-esm/SelectMenu/SelectMenuItem.d.ts +0 -15
- package/lib-esm/SelectMenu/SelectMenuList.d.ts +0 -6
- package/lib-esm/SelectMenu/SelectMenuLoadingAnimation.d.ts +0 -7
- package/lib-esm/SelectMenu/SelectMenuModal.d.ts +0 -15
- package/lib-esm/SelectMenu/SelectMenuTab.d.ts +0 -14
- package/lib-esm/SelectMenu/SelectMenuTabPanel.d.ts +0 -13
- package/lib-esm/SelectMenu/SelectMenuTabs.d.ts +0 -11
- package/lib-esm/SelectMenu/hooks/useKeyboardNav.d.ts +0 -2
- package/lib-esm/SelectMenu/index.d.ts +0 -2
- package/lib-esm/SelectPanel/SelectPanel.d.ts +0 -25
- package/lib-esm/SelectPanel/SelectPanel.js +0 -127
- package/lib-esm/SelectPanel/index.d.ts +0 -2
- package/lib-esm/SelectPanel/index.js +0 -1
- package/lib-esm/SideNav.d.ts +0 -31
- package/lib-esm/Spinner.d.ts +0 -17
- package/lib-esm/Spinner.js +0 -46
- package/lib-esm/StateLabel.d.ts +0 -16
- package/lib-esm/StyledOcticon.d.ts +0 -12
- package/lib-esm/SubNav.d.ts +0 -32
- package/lib-esm/TabNav.d.ts +0 -20
- package/lib-esm/Text.d.ts +0 -6
- package/lib-esm/TextInput.d.ts +0 -22
- package/lib-esm/ThemeProvider.d.ts +0 -26
- package/lib-esm/Timeline.d.ts +0 -407
- package/lib-esm/Tooltip.d.ts +0 -18
- package/lib-esm/Truncate.d.ts +0 -11
- package/lib-esm/UnderlineNav.d.ts +0 -25
- package/lib-esm/behaviors/anchoredPosition.d.ts +0 -89
- package/lib-esm/behaviors/focusTrap.d.ts +0 -12
- package/lib-esm/behaviors/focusZone.d.ts +0 -137
- package/lib-esm/constants.d.ts +0 -20
- package/lib-esm/hooks/index.d.ts +0 -11
- package/lib-esm/hooks/useAnchoredPosition.d.ts +0 -20
- package/lib-esm/hooks/useCombinedRefs.d.ts +0 -10
- package/lib-esm/hooks/useCombinedRefs.js +0 -36
- package/lib-esm/hooks/useDetails.d.ts +0 -17
- package/lib-esm/hooks/useDialog.d.ts +0 -16
- package/lib-esm/hooks/useFocusTrap.d.ts +0 -32
- package/lib-esm/hooks/useFocusZone.d.ts +0 -23
- package/lib-esm/hooks/useOnEscapePress.d.ts +0 -23
- package/lib-esm/hooks/useOnOutsideClick.d.ts +0 -8
- package/lib-esm/hooks/useOpenAndCloseFocus.d.ts +0 -7
- package/lib-esm/hooks/useOverlay.d.ts +0 -14
- package/lib-esm/hooks/useProvidedRefOrCreate.d.ts +0 -10
- package/lib-esm/hooks/useProvidedStateOrCreate.d.ts +0 -10
- package/lib-esm/hooks/useProvidedStateOrCreate.js +0 -20
- package/lib-esm/hooks/useRenderForcingRef.d.ts +0 -8
- package/lib-esm/hooks/useRenderForcingRef.js +0 -18
- package/lib-esm/hooks/useResizeObserver.d.ts +0 -1
- package/lib-esm/hooks/useResizeObserver.js +0 -10
- package/lib-esm/hooks/useSafeTimeout.d.ts +0 -12
- package/lib-esm/hooks/useScrollFlash.d.ts +0 -6
- package/lib-esm/hooks/useScrollFlash.js +0 -22
- package/lib-esm/index.d.ts +0 -111
- package/lib-esm/polyfills/eventListenerSignal.d.ts +0 -6
- package/lib-esm/sx.d.ts +0 -6
- package/lib-esm/theme-preval.d.ts +0 -49
- package/lib-esm/theme.d.ts +0 -2
- package/lib-esm/utils/deprecate.d.ts +0 -18
- package/lib-esm/utils/isNumeric.d.ts +0 -1
- package/lib-esm/utils/iterateFocusableElements.d.ts +0 -42
- package/lib-esm/utils/ssr.d.ts +0 -1
- package/lib-esm/utils/ssr.js +0 -1
- package/lib-esm/utils/test-deprecations.d.ts +0 -1
- package/lib-esm/utils/test-helpers.d.ts +0 -0
- package/lib-esm/utils/test-helpers.js +0 -7
- package/lib-esm/utils/test-matchers.d.ts +0 -1
- package/lib-esm/utils/testing.d.ts +0 -1028
- package/lib-esm/utils/theme.d.ts +0 -9
- package/lib-esm/utils/types.d.ts +0 -14
- package/lib-esm/utils/uniqueId.d.ts +0 -1
- package/lib-esm/utils/userAgent.d.ts +0 -1
@@ -1,8 +0,0 @@
|
|
1
|
-
/// <reference types="react" />
|
2
|
-
export declare const MenuContext: import("react").Context<{
|
3
|
-
selectedTab?: string | undefined;
|
4
|
-
setSelectedTab?: import("react").Dispatch<import("react").SetStateAction<string>> | undefined;
|
5
|
-
setOpen?: import("react").Dispatch<import("react").SetStateAction<boolean>> | undefined;
|
6
|
-
open?: boolean | undefined;
|
7
|
-
initialTab?: string | undefined;
|
8
|
-
}>;
|
@@ -1,6 +0,0 @@
|
|
1
|
-
import { SystemCommonProps } from '../constants';
|
2
|
-
import { SxProp } from '../sx';
|
3
|
-
import { ComponentProps } from '../utils/types';
|
4
|
-
declare const SelectMenuDivider: import("styled-components").StyledComponent<"div", any, SystemCommonProps & SxProp, never>;
|
5
|
-
export declare type SelectMenuDividerProps = ComponentProps<typeof SelectMenuDivider>;
|
6
|
-
export default SelectMenuDivider;
|
@@ -1,9 +0,0 @@
|
|
1
|
-
import React from 'react';
|
2
|
-
import { TextInputProps } from '../TextInput';
|
3
|
-
import { ComponentProps } from '../utils/types';
|
4
|
-
declare type SelectMenuFilterInternalProps = {
|
5
|
-
value?: string;
|
6
|
-
} & TextInputProps;
|
7
|
-
declare const SelectMenuFilter: React.ForwardRefExoticComponent<Pick<SelectMenuFilterInternalProps, string | number | symbol> & React.RefAttributes<HTMLInputElement>>;
|
8
|
-
export declare type SelectMenuFilterProps = ComponentProps<typeof SelectMenuFilter>;
|
9
|
-
export default SelectMenuFilter;
|
@@ -1,6 +0,0 @@
|
|
1
|
-
import { SystemCommonProps } from '../constants';
|
2
|
-
import { SxProp } from '../sx';
|
3
|
-
import { ComponentProps } from '../utils/types';
|
4
|
-
declare const SelectMenuFooter: import("styled-components").StyledComponent<"footer", any, SystemCommonProps & SxProp, never>;
|
5
|
-
export declare type SelectMenuFooterProps = ComponentProps<typeof SelectMenuFooter>;
|
6
|
-
export default SelectMenuFooter;
|
@@ -1,11 +0,0 @@
|
|
1
|
-
/// <reference types="react" />
|
2
|
-
import { SystemCommonProps, SystemTypographyProps } from '../constants';
|
3
|
-
import { SxProp } from '../sx';
|
4
|
-
import { ComponentProps } from '../utils/types';
|
5
|
-
declare const StyledHeader: import("styled-components").StyledComponent<"header", any, SystemTypographyProps & SystemCommonProps & SxProp, never>;
|
6
|
-
export declare type SelectMenuHeaderProps = ComponentProps<typeof StyledHeader>;
|
7
|
-
declare const SelectMenuHeader: {
|
8
|
-
({ children, theme, ...rest }: SelectMenuHeaderProps): JSX.Element;
|
9
|
-
displayName: string;
|
10
|
-
};
|
11
|
-
export default SelectMenuHeader;
|
@@ -1,15 +0,0 @@
|
|
1
|
-
import React from 'react';
|
2
|
-
import { SystemCommonProps } from '../constants';
|
3
|
-
import { SxProp } from '../sx';
|
4
|
-
import { ComponentProps } from '../utils/types';
|
5
|
-
export declare const listItemStyles: import("styled-components").FlattenInterpolation<import("styled-components").ThemeProps<any>>;
|
6
|
-
declare const StyledItem: import("styled-components").StyledComponent<"a", any, {
|
7
|
-
role: "menuitemcheckbox";
|
8
|
-
} & SystemCommonProps & SxProp, "role">;
|
9
|
-
declare type SelectMenuItemInteralProps = {
|
10
|
-
as?: React.ElementType;
|
11
|
-
selected?: boolean;
|
12
|
-
} & ComponentProps<typeof StyledItem>;
|
13
|
-
declare const SelectMenuItem: React.ForwardRefExoticComponent<Pick<SelectMenuItemInteralProps, "translate" | "hidden" | "children" | "theme" | "slot" | "style" | "title" | "type" | "key" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "id" | "lang" | "placeholder" | "spellCheck" | "tabIndex" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | keyof SystemCommonProps | "sx" | "media" | "target" | "href" | "download" | "hrefLang" | "ping" | "rel" | "referrerPolicy" | "as" | "selected"> & React.RefAttributes<HTMLAnchorElement>>;
|
14
|
-
export declare type SelectMenuItemProps = ComponentProps<typeof SelectMenuItem>;
|
15
|
-
export default SelectMenuItem;
|
@@ -1,6 +0,0 @@
|
|
1
|
-
import { SystemCommonProps } from '../constants';
|
2
|
-
import { SxProp } from '../sx';
|
3
|
-
import { ComponentProps } from '../utils/types';
|
4
|
-
declare const SelectMenuList: import("styled-components").StyledComponent<"div", any, SystemCommonProps & SxProp, never>;
|
5
|
-
export declare type SelectMenuListProps = ComponentProps<typeof SelectMenuList>;
|
6
|
-
export default SelectMenuList;
|
@@ -1,7 +0,0 @@
|
|
1
|
-
/// <reference types="react" />
|
2
|
-
import { SystemCommonProps } from '../constants';
|
3
|
-
import { ComponentProps } from '../utils/types';
|
4
|
-
declare const Animation: import("styled-components").StyledComponent<"div", any, SystemCommonProps, never>;
|
5
|
-
export declare type SelectMenuLoadingAnimationProps = ComponentProps<typeof Animation>;
|
6
|
-
declare const SelectMenuLoadingAnimation: (props: SelectMenuLoadingAnimationProps) => JSX.Element;
|
7
|
-
export default SelectMenuLoadingAnimation;
|
@@ -1,15 +0,0 @@
|
|
1
|
-
import React from 'react';
|
2
|
-
import { WidthProps } from 'styled-system';
|
3
|
-
import { SystemCommonProps } from '../constants';
|
4
|
-
import { SxProp } from '../sx';
|
5
|
-
import { ComponentProps } from '../utils/types';
|
6
|
-
declare type StyledModalProps = {
|
7
|
-
filter?: boolean;
|
8
|
-
} & WidthProps;
|
9
|
-
declare const ModalWrapper: import("styled-components").StyledComponent<"div", any, {
|
10
|
-
align?: "left" | "right" | undefined;
|
11
|
-
} & SystemCommonProps & SxProp, never>;
|
12
|
-
declare type SelectMenuModalInternalProps = Pick<StyledModalProps, 'width'> & ComponentProps<typeof ModalWrapper>;
|
13
|
-
declare const SelectMenuModal: React.ForwardRefExoticComponent<Pick<SelectMenuModalInternalProps, "backgroundColor" | "color" | "display" | "marginBottom" | "marginLeft" | "marginRight" | "marginTop" | "opacity" | "paddingBottom" | "paddingLeft" | "paddingRight" | "paddingTop" | "translate" | "width" | "margin" | "padding" | "hidden" | "children" | "theme" | "p" | "slot" | "style" | "title" | "key" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "id" | "lang" | "placeholder" | "spellCheck" | "tabIndex" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "bg" | "m" | "mt" | "mr" | "mb" | "ml" | "mx" | "marginX" | "my" | "marginY" | "pt" | "pr" | "pb" | "pl" | "px" | "paddingX" | "py" | "paddingY" | "sx" | "align"> & React.RefAttributes<HTMLDivElement>>;
|
14
|
-
export declare type SelectMenuModalProps = ComponentProps<typeof SelectMenuModal>;
|
15
|
-
export default SelectMenuModal;
|
@@ -1,14 +0,0 @@
|
|
1
|
-
/// <reference types="react" />
|
2
|
-
import { SystemCommonProps } from '../constants';
|
3
|
-
import { SxProp } from '../sx';
|
4
|
-
import { ComponentProps } from '../utils/types';
|
5
|
-
declare const StyledTab: import("styled-components").StyledComponent<"button", any, SystemCommonProps & SxProp, never>;
|
6
|
-
export declare type SelectMenuTabProps = {
|
7
|
-
tabName?: string;
|
8
|
-
index?: number;
|
9
|
-
} & ComponentProps<typeof StyledTab>;
|
10
|
-
declare const SelectMenuTab: {
|
11
|
-
({ tabName, index, className, onClick, ...rest }: SelectMenuTabProps): JSX.Element;
|
12
|
-
displayName: string;
|
13
|
-
};
|
14
|
-
export default SelectMenuTab;
|
@@ -1,13 +0,0 @@
|
|
1
|
-
/// <reference types="react" />
|
2
|
-
import { SystemCommonProps } from '../constants';
|
3
|
-
import { SxProp } from '../sx';
|
4
|
-
import { ComponentProps } from '../utils/types';
|
5
|
-
declare const TabPanelBase: import("styled-components").StyledComponent<"div", any, SystemCommonProps & SxProp, never>;
|
6
|
-
export declare type SelectMenuTabPanelProps = {
|
7
|
-
tabName?: string;
|
8
|
-
} & ComponentProps<typeof TabPanelBase>;
|
9
|
-
declare const TabPanel: {
|
10
|
-
({ tabName, className, children, ...rest }: SelectMenuTabPanelProps): JSX.Element;
|
11
|
-
displayName: string;
|
12
|
-
};
|
13
|
-
export default TabPanel;
|
@@ -1,11 +0,0 @@
|
|
1
|
-
/// <reference types="react" />
|
2
|
-
import { SystemCommonProps } from '../constants';
|
3
|
-
import { SxProp } from '../sx';
|
4
|
-
import { ComponentProps } from '../utils/types';
|
5
|
-
declare const SelectMenuTabsBase: import("styled-components").StyledComponent<"div", any, SystemCommonProps & SxProp, never>;
|
6
|
-
export declare type SelectMenuTabsProps = ComponentProps<typeof SelectMenuTabsBase>;
|
7
|
-
declare const SelectMenuTabs: {
|
8
|
-
({ children, ...rest }: SelectMenuTabsProps): JSX.Element;
|
9
|
-
displayName: string;
|
10
|
-
};
|
11
|
-
export default SelectMenuTabs;
|
@@ -1,2 +0,0 @@
|
|
1
|
-
export { default } from './SelectMenu';
|
2
|
-
export type { SelectMenuProps, SelectMenuDividerProps, SelectMenuFilterProps, SelectMenuFooterProps, SelectMenuItemProps, SelectMenuListProps, SelectMenuModalProps, SelectMenuTabsProps, SelectMenuHeaderProps, SelectMenuTabProps, SelectMenuTabPanelProps, SelectMenuLoadingAnimationProps } from './SelectMenu';
|
@@ -1,25 +0,0 @@
|
|
1
|
-
/// <reference types="react" />
|
2
|
-
import { FilteredActionListProps } from '../FilteredActionList';
|
3
|
-
import { OverlayProps } from '../Overlay';
|
4
|
-
import { ItemInput } from '../ActionList/List';
|
5
|
-
import { AnchoredOverlayProps } from '../AnchoredOverlay';
|
6
|
-
import { AnchoredOverlayWrapperAnchorProps } from '../AnchoredOverlay/AnchoredOverlay';
|
7
|
-
interface SelectPanelSingleSelection {
|
8
|
-
selected: ItemInput | undefined;
|
9
|
-
onSelectedChange: (selected: ItemInput | undefined) => void;
|
10
|
-
}
|
11
|
-
interface SelectPanelMultiSelection {
|
12
|
-
selected: ItemInput[];
|
13
|
-
onSelectedChange: (selected: ItemInput[]) => void;
|
14
|
-
}
|
15
|
-
interface SelectPanelBaseProps {
|
16
|
-
onOpenChange: (open: boolean, gesture: 'anchor-click' | 'anchor-key-press' | 'click-outside' | 'escape' | 'selection') => void;
|
17
|
-
placeholder?: string;
|
18
|
-
overlayProps?: Partial<OverlayProps>;
|
19
|
-
}
|
20
|
-
export declare type SelectPanelProps = SelectPanelBaseProps & Omit<FilteredActionListProps, 'selectionVariant'> & Pick<AnchoredOverlayProps, 'open'> & AnchoredOverlayWrapperAnchorProps & (SelectPanelSingleSelection | SelectPanelMultiSelection);
|
21
|
-
export declare function SelectPanel({ open, onOpenChange, renderAnchor, anchorRef: externalAnchorRef, placeholder, selected, onSelectedChange, filterValue: externalFilterValue, onFilterChange: externalOnFilterChange, items, textInputProps, overlayProps, sx, ...listProps }: SelectPanelProps): JSX.Element;
|
22
|
-
export declare namespace SelectPanel {
|
23
|
-
var displayName: string;
|
24
|
-
}
|
25
|
-
export {};
|
@@ -1,147 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
4
|
-
value: true
|
5
|
-
});
|
6
|
-
exports.SelectPanel = SelectPanel;
|
7
|
-
|
8
|
-
var _react = _interopRequireWildcard(require("react"));
|
9
|
-
|
10
|
-
var _FilteredActionList = require("../FilteredActionList");
|
11
|
-
|
12
|
-
var _DropdownMenu = require("../DropdownMenu");
|
13
|
-
|
14
|
-
var _AnchoredOverlay = require("../AnchoredOverlay");
|
15
|
-
|
16
|
-
var _useProvidedStateOrCreate = require("../hooks/useProvidedStateOrCreate");
|
17
|
-
|
18
|
-
var _hooks = require("../hooks");
|
19
|
-
|
20
|
-
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
21
|
-
|
22
|
-
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
23
|
-
|
24
|
-
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
25
|
-
|
26
|
-
function isMultiSelectVariant(selected) {
|
27
|
-
return Array.isArray(selected);
|
28
|
-
}
|
29
|
-
|
30
|
-
const focusZoneSettings = {
|
31
|
-
// Let FilteredActionList handle focus zone
|
32
|
-
disabled: true
|
33
|
-
};
|
34
|
-
|
35
|
-
function SelectPanel({
|
36
|
-
open,
|
37
|
-
onOpenChange,
|
38
|
-
renderAnchor = props => /*#__PURE__*/_react.default.createElement(_DropdownMenu.DropdownButton, props),
|
39
|
-
anchorRef: externalAnchorRef,
|
40
|
-
placeholder,
|
41
|
-
selected,
|
42
|
-
onSelectedChange,
|
43
|
-
filterValue: externalFilterValue,
|
44
|
-
onFilterChange: externalOnFilterChange,
|
45
|
-
items,
|
46
|
-
textInputProps,
|
47
|
-
overlayProps,
|
48
|
-
sx,
|
49
|
-
...listProps
|
50
|
-
}) {
|
51
|
-
const [filterValue, setInternalFilterValue] = (0, _useProvidedStateOrCreate.useProvidedStateOrCreate)(externalFilterValue, undefined, '');
|
52
|
-
const onFilterChange = (0, _react.useCallback)((value, e) => {
|
53
|
-
externalOnFilterChange(value, e);
|
54
|
-
setInternalFilterValue(value);
|
55
|
-
}, [externalOnFilterChange, setInternalFilterValue]);
|
56
|
-
const anchorRef = (0, _hooks.useProvidedRefOrCreate)(externalAnchorRef);
|
57
|
-
const onOpen = (0, _react.useCallback)(gesture => onOpenChange(true, gesture), [onOpenChange]);
|
58
|
-
const onClose = (0, _react.useCallback)(gesture => {
|
59
|
-
onOpenChange(false, gesture);
|
60
|
-
}, [onOpenChange]);
|
61
|
-
const renderMenuAnchor = (0, _react.useMemo)(() => {
|
62
|
-
if (renderAnchor === null) {
|
63
|
-
return null;
|
64
|
-
}
|
65
|
-
|
66
|
-
const selectedItems = Array.isArray(selected) ? selected : [...(selected ? [selected] : [])];
|
67
|
-
return props => {
|
68
|
-
return renderAnchor({ ...props,
|
69
|
-
children: selectedItems.length ? selectedItems.map(item => item.text).join(', ') : placeholder
|
70
|
-
});
|
71
|
-
};
|
72
|
-
}, [placeholder, renderAnchor, selected]);
|
73
|
-
const itemsToRender = (0, _react.useMemo)(() => {
|
74
|
-
return items.map(item => {
|
75
|
-
const isItemSelected = isMultiSelectVariant(selected) ? selected.includes(item) : selected === item;
|
76
|
-
return { ...item,
|
77
|
-
role: 'option',
|
78
|
-
selected: 'selected' in item && item.selected === undefined ? undefined : isItemSelected,
|
79
|
-
onAction: (itemFromAction, event) => {
|
80
|
-
var _item$onAction;
|
81
|
-
|
82
|
-
(_item$onAction = item.onAction) === null || _item$onAction === void 0 ? void 0 : _item$onAction.call(item, itemFromAction, event);
|
83
|
-
|
84
|
-
if (event.defaultPrevented) {
|
85
|
-
return;
|
86
|
-
}
|
87
|
-
|
88
|
-
if (isMultiSelectVariant(selected)) {
|
89
|
-
const otherSelectedItems = selected.filter(selectedItem => selectedItem !== item);
|
90
|
-
const newSelectedItems = selected.includes(item) ? otherSelectedItems : [...otherSelectedItems, item];
|
91
|
-
const multiSelectOnChange = onSelectedChange;
|
92
|
-
multiSelectOnChange(newSelectedItems);
|
93
|
-
return;
|
94
|
-
} // single select
|
95
|
-
|
96
|
-
|
97
|
-
const singleSelectOnChange = onSelectedChange;
|
98
|
-
singleSelectOnChange(item === selected ? undefined : item);
|
99
|
-
onClose('selection');
|
100
|
-
}
|
101
|
-
};
|
102
|
-
});
|
103
|
-
}, [onClose, onSelectedChange, items, selected]);
|
104
|
-
|
105
|
-
const inputRef = _react.default.useRef(null);
|
106
|
-
|
107
|
-
const focusTrapSettings = {
|
108
|
-
initialFocusRef: inputRef
|
109
|
-
};
|
110
|
-
const extendedTextInputProps = (0, _react.useMemo)(() => {
|
111
|
-
return {
|
112
|
-
sx: {
|
113
|
-
m: 2
|
114
|
-
},
|
115
|
-
contrast: true,
|
116
|
-
...textInputProps
|
117
|
-
};
|
118
|
-
}, [textInputProps]);
|
119
|
-
return /*#__PURE__*/_react.default.createElement(_AnchoredOverlay.AnchoredOverlay, {
|
120
|
-
renderAnchor: renderMenuAnchor,
|
121
|
-
anchorRef: anchorRef,
|
122
|
-
open: open,
|
123
|
-
onOpen: onOpen,
|
124
|
-
onClose: onClose,
|
125
|
-
overlayProps: overlayProps,
|
126
|
-
focusTrapSettings: focusTrapSettings,
|
127
|
-
focusZoneSettings: focusZoneSettings
|
128
|
-
}, /*#__PURE__*/_react.default.createElement(_FilteredActionList.FilteredActionList, _extends({
|
129
|
-
filterValue: filterValue,
|
130
|
-
onFilterChange: onFilterChange
|
131
|
-
}, listProps, {
|
132
|
-
role: "listbox",
|
133
|
-
items: itemsToRender,
|
134
|
-
selectionVariant: isMultiSelectVariant(selected) ? 'multiple' : 'single',
|
135
|
-
textInputProps: extendedTextInputProps,
|
136
|
-
inputRef: inputRef // inheriting height and maxHeight ensures that the FilteredActionList is never taller
|
137
|
-
// than the Overlay (which would break scrolling the items)
|
138
|
-
,
|
139
|
-
sx: { ...sx,
|
140
|
-
height: 'inherit',
|
141
|
-
maxHeight: 'inherit'
|
142
|
-
}
|
143
|
-
})));
|
144
|
-
}
|
145
|
-
|
146
|
-
SelectPanel.displayName = "SelectPanel";
|
147
|
-
SelectPanel.displayName = 'SelectPanel';
|
package/lib/SelectPanel/index.js
DELETED
@@ -1,13 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
4
|
-
value: true
|
5
|
-
});
|
6
|
-
Object.defineProperty(exports, "SelectPanel", {
|
7
|
-
enumerable: true,
|
8
|
-
get: function () {
|
9
|
-
return _SelectPanel.SelectPanel;
|
10
|
-
}
|
11
|
-
});
|
12
|
-
|
13
|
-
var _SelectPanel = require("./SelectPanel");
|
package/lib/SideNav.d.ts
DELETED
@@ -1,31 +0,0 @@
|
|
1
|
-
/// <reference types="hoist-non-react-statics" />
|
2
|
-
/// <reference types="react" />
|
3
|
-
import * as History from 'history';
|
4
|
-
import Box from './Box';
|
5
|
-
import { ComponentProps } from './utils/types';
|
6
|
-
declare type SideNavBaseProps = {
|
7
|
-
variant?: 'lightweight' | 'normal';
|
8
|
-
bordered?: boolean;
|
9
|
-
} & ComponentProps<typeof Box>;
|
10
|
-
declare function SideNavBase({ variant, className, bordered, children, ...props }: SideNavBaseProps): JSX.Element;
|
11
|
-
declare const SideNav: import("styled-components").StyledComponent<typeof SideNavBase, any, {}, never>;
|
12
|
-
declare type StyledSideNavLinkProps = {
|
13
|
-
to?: History.LocationDescriptor;
|
14
|
-
selected?: boolean;
|
15
|
-
variant?: 'full' | 'normal';
|
16
|
-
};
|
17
|
-
declare const SideNavLink: import("styled-components").StyledComponent<"a", any, {
|
18
|
-
hoverColor?: string | undefined;
|
19
|
-
muted?: boolean | undefined;
|
20
|
-
underline?: boolean | undefined;
|
21
|
-
} & import("./constants").SystemCommonProps & import("./sx").SxProp & import("./constants").SystemTypographyProps & StyledSideNavLinkProps, never>;
|
22
|
-
export declare type SideNavProps = ComponentProps<typeof SideNav>;
|
23
|
-
export declare type SideNavLinkProps = ComponentProps<typeof SideNavLink>;
|
24
|
-
declare const _default: string & import("styled-components").StyledComponentBase<typeof SideNavBase, any, {}, never> & import("hoist-non-react-statics").NonReactStatics<typeof SideNavBase, {}> & {
|
25
|
-
Link: import("styled-components").StyledComponent<"a", any, {
|
26
|
-
hoverColor?: string | undefined;
|
27
|
-
muted?: boolean | undefined;
|
28
|
-
underline?: boolean | undefined;
|
29
|
-
} & import("./constants").SystemCommonProps & import("./sx").SxProp & import("./constants").SystemTypographyProps & StyledSideNavLinkProps, never>;
|
30
|
-
};
|
31
|
-
export default _default;
|
package/lib/Spinner.d.ts
DELETED
@@ -1,17 +0,0 @@
|
|
1
|
-
/// <reference types="react" />
|
2
|
-
import { SystemCommonProps } from './constants';
|
3
|
-
import { SxProp } from './sx';
|
4
|
-
import { ComponentProps } from './utils/types';
|
5
|
-
declare const sizeMap: {
|
6
|
-
small: string;
|
7
|
-
medium: string;
|
8
|
-
large: string;
|
9
|
-
};
|
10
|
-
export interface SpinnerInternalProps {
|
11
|
-
/** Sets the width and height of the spinner. */
|
12
|
-
size?: keyof typeof sizeMap;
|
13
|
-
}
|
14
|
-
declare function Spinner({ size: sizeKey, ...props }: SpinnerInternalProps): JSX.Element;
|
15
|
-
declare const StyledSpinner: import("styled-components").StyledComponent<typeof Spinner, any, SystemCommonProps & SxProp, never>;
|
16
|
-
export declare type SpinnerProps = ComponentProps<typeof StyledSpinner>;
|
17
|
-
export default StyledSpinner;
|
package/lib/Spinner.js
DELETED
@@ -1,60 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
4
|
-
value: true
|
5
|
-
});
|
6
|
-
exports.default = void 0;
|
7
|
-
|
8
|
-
var _react = _interopRequireDefault(require("react"));
|
9
|
-
|
10
|
-
var _styledComponents = _interopRequireDefault(require("styled-components"));
|
11
|
-
|
12
|
-
var _constants = require("./constants");
|
13
|
-
|
14
|
-
var _sx = _interopRequireDefault(require("./sx"));
|
15
|
-
|
16
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
17
|
-
|
18
|
-
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
19
|
-
|
20
|
-
const sizeMap = {
|
21
|
-
small: '16px',
|
22
|
-
medium: '32px',
|
23
|
-
large: '64px'
|
24
|
-
};
|
25
|
-
|
26
|
-
function Spinner({
|
27
|
-
size: sizeKey = 'medium',
|
28
|
-
...props
|
29
|
-
}) {
|
30
|
-
const size = sizeMap[sizeKey];
|
31
|
-
return /*#__PURE__*/_react.default.createElement("svg", _extends({
|
32
|
-
height: size,
|
33
|
-
width: size,
|
34
|
-
viewBox: "0 0 16 16",
|
35
|
-
fill: "none"
|
36
|
-
}, props), /*#__PURE__*/_react.default.createElement("circle", {
|
37
|
-
cx: "8",
|
38
|
-
cy: "8",
|
39
|
-
r: "7",
|
40
|
-
stroke: "currentColor",
|
41
|
-
strokeOpacity: "0.25",
|
42
|
-
strokeWidth: "2",
|
43
|
-
vectorEffect: "non-scaling-stroke"
|
44
|
-
}), /*#__PURE__*/_react.default.createElement("path", {
|
45
|
-
d: "M15 8a7.002 7.002 0 00-7-7",
|
46
|
-
stroke: "currentColor",
|
47
|
-
strokeWidth: "2",
|
48
|
-
strokeLinecap: "round",
|
49
|
-
vectorEffect: "non-scaling-stroke"
|
50
|
-
}));
|
51
|
-
}
|
52
|
-
|
53
|
-
Spinner.displayName = "Spinner";
|
54
|
-
const StyledSpinner = (0, _styledComponents.default)(Spinner).withConfig({
|
55
|
-
displayName: "Spinner__StyledSpinner",
|
56
|
-
componentId: "sc-14tspit-0"
|
57
|
-
})(["@keyframes rotate-keyframes{100%{transform:rotate(360deg);}}animation:rotate-keyframes 1s linear infinite;", " ", ""], _constants.COMMON, _sx.default);
|
58
|
-
StyledSpinner.displayName = 'Spinner';
|
59
|
-
var _default = StyledSpinner;
|
60
|
-
exports.default = _default;
|
package/lib/StateLabel.d.ts
DELETED
@@ -1,16 +0,0 @@
|
|
1
|
-
/// <reference types="react" />
|
2
|
-
import { SystemCommonProps } from './constants';
|
3
|
-
import { SxProp } from './sx';
|
4
|
-
import { ComponentProps } from './utils/types';
|
5
|
-
declare const StateLabelBase: import("styled-components").StyledComponent<"span", any, {
|
6
|
-
variant?: "small" | "normal" | undefined;
|
7
|
-
status?: "issueClosed" | "pullClosed" | "pullMerged" | "issueOpened" | "pullOpened" | "draft" | undefined;
|
8
|
-
} & SystemCommonProps & SxProp, never>;
|
9
|
-
export declare type StateLabelProps = ComponentProps<typeof StateLabelBase>;
|
10
|
-
declare function StateLabel({ children, status, variant: variantProp, ...rest }: StateLabelProps): JSX.Element;
|
11
|
-
declare namespace StateLabel {
|
12
|
-
var defaultProps: {
|
13
|
-
variant: string;
|
14
|
-
};
|
15
|
-
}
|
16
|
-
export default StateLabel;
|
package/lib/StyledOcticon.d.ts
DELETED
@@ -1,12 +0,0 @@
|
|
1
|
-
import { IconProps } from '@primer/octicons-react';
|
2
|
-
import React from 'react';
|
3
|
-
import { SystemCommonProps } from './constants';
|
4
|
-
import { SxProp } from './sx';
|
5
|
-
import { ComponentProps } from './utils/types';
|
6
|
-
declare type OcticonProps = {
|
7
|
-
icon: React.ElementType;
|
8
|
-
} & IconProps;
|
9
|
-
declare function Octicon({ icon: IconComponent, ...rest }: OcticonProps): JSX.Element;
|
10
|
-
declare const StyledOcticon: import("styled-components").StyledComponent<typeof Octicon, any, SystemCommonProps & SxProp, never>;
|
11
|
-
export declare type StyledOcticonProps = ComponentProps<typeof StyledOcticon>;
|
12
|
-
export default StyledOcticon;
|
package/lib/SubNav.d.ts
DELETED
@@ -1,32 +0,0 @@
|
|
1
|
-
import * as History from 'history';
|
2
|
-
import React from 'react';
|
3
|
-
import { SystemBorderProps, SystemCommonProps, SystemFlexProps } from './constants';
|
4
|
-
import { BoxProps } from './Box';
|
5
|
-
import { SxProp } from './sx';
|
6
|
-
import { ComponentProps } from './utils/types';
|
7
|
-
declare const SubNavBase: import("styled-components").StyledComponent<"nav", any, SystemFlexProps & SystemCommonProps & SxProp, never>;
|
8
|
-
export declare type SubNavProps = {
|
9
|
-
actions?: React.ReactNode;
|
10
|
-
align?: 'right';
|
11
|
-
full?: boolean;
|
12
|
-
label?: string;
|
13
|
-
} & ComponentProps<typeof SubNavBase>;
|
14
|
-
declare function SubNav({ actions, className, children, label, ...rest }: SubNavProps): JSX.Element;
|
15
|
-
export declare type SubNavLinksProps = BoxProps;
|
16
|
-
declare function SubNavLinks(props: SubNavLinksProps): JSX.Element;
|
17
|
-
declare namespace SubNavLinks {
|
18
|
-
var displayName: string;
|
19
|
-
}
|
20
|
-
declare const SubNavLink: import("styled-components").StyledComponent<"a", any, {
|
21
|
-
to?: History.LocationDescriptor<unknown> | undefined;
|
22
|
-
selected?: boolean | undefined;
|
23
|
-
} & SystemCommonProps & SxProp & SystemBorderProps, never>;
|
24
|
-
export declare type SubNavLinkProps = ComponentProps<typeof SubNavLink>;
|
25
|
-
declare const _default: typeof SubNav & {
|
26
|
-
Link: import("styled-components").StyledComponent<"a", any, {
|
27
|
-
to?: History.LocationDescriptor<unknown> | undefined;
|
28
|
-
selected?: boolean | undefined;
|
29
|
-
} & SystemCommonProps & SxProp & SystemBorderProps, never>;
|
30
|
-
Links: typeof SubNavLinks;
|
31
|
-
};
|
32
|
-
export default _default;
|
package/lib/TabNav.d.ts
DELETED
@@ -1,20 +0,0 @@
|
|
1
|
-
/// <reference types="react" />
|
2
|
-
import * as History from 'history';
|
3
|
-
import { SystemCommonProps, SystemTypographyProps } from './constants';
|
4
|
-
import { SxProp } from './sx';
|
5
|
-
import { ComponentProps } from './utils/types';
|
6
|
-
declare const TabNavBase: import("styled-components").StyledComponent<"div", any, SystemCommonProps & SxProp, never>;
|
7
|
-
export declare type TabNavProps = ComponentProps<typeof TabNavBase>;
|
8
|
-
declare function TabNav({ children, 'aria-label': ariaLabel, ...rest }: TabNavProps): JSX.Element;
|
9
|
-
declare const TabNavLink: import("styled-components").StyledComponent<"a", any, {
|
10
|
-
to?: History.LocationDescriptor<unknown> | undefined;
|
11
|
-
selected?: boolean | undefined;
|
12
|
-
} & SystemCommonProps & SxProp & SystemTypographyProps, never>;
|
13
|
-
export declare type TabNavLinkProps = ComponentProps<typeof TabNavLink>;
|
14
|
-
declare const _default: typeof TabNav & {
|
15
|
-
Link: import("styled-components").StyledComponent<"a", any, {
|
16
|
-
to?: History.LocationDescriptor<unknown> | undefined;
|
17
|
-
selected?: boolean | undefined;
|
18
|
-
} & SystemCommonProps & SxProp & SystemTypographyProps, never>;
|
19
|
-
};
|
20
|
-
export default _default;
|
package/lib/Text.d.ts
DELETED
@@ -1,6 +0,0 @@
|
|
1
|
-
import { SystemCommonProps, SystemTypographyProps } from './constants';
|
2
|
-
import { SxProp } from './sx';
|
3
|
-
import { ComponentProps } from './utils/types';
|
4
|
-
declare const Text: import("styled-components").StyledComponent<"span", any, SystemTypographyProps & SystemCommonProps & SxProp, never>;
|
5
|
-
export declare type TextProps = ComponentProps<typeof Text>;
|
6
|
-
export default Text;
|
package/lib/TextInput.d.ts
DELETED
@@ -1,22 +0,0 @@
|
|
1
|
-
import React from 'react';
|
2
|
-
import { MaxWidthProps, MinWidthProps, WidthProps } from 'styled-system';
|
3
|
-
import { SxProp } from './sx';
|
4
|
-
import { ComponentProps } from './utils/types';
|
5
|
-
declare const Input: import("styled-components").StyledComponent<"input", any, {}, never>;
|
6
|
-
declare const Wrapper: import("styled-components").StyledComponent<"span", any, {
|
7
|
-
disabled?: boolean | undefined;
|
8
|
-
hasIcon?: boolean | undefined;
|
9
|
-
block?: boolean | undefined;
|
10
|
-
contrast?: boolean | undefined;
|
11
|
-
variant?: "large" | "small" | undefined;
|
12
|
-
} & WidthProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>, import("csstype").Property.Width<import("styled-system").TLengthStyledSystem>> & MinWidthProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>, import("csstype").Property.MinWidth<import("styled-system").TLengthStyledSystem>> & MaxWidthProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>, import("csstype").Property.MaxWidth<import("styled-system").TLengthStyledSystem>> & SxProp, never>;
|
13
|
-
declare type NonPassthroughProps = {
|
14
|
-
className?: string;
|
15
|
-
icon?: React.ComponentType<{
|
16
|
-
className?: string;
|
17
|
-
}>;
|
18
|
-
} & Pick<ComponentProps<typeof Wrapper>, 'block' | 'contrast' | 'disabled' | 'sx' | 'theme' | 'width' | 'maxWidth' | 'minWidth' | 'variant'>;
|
19
|
-
declare type TextInputInternalProps = NonPassthroughProps & Omit<React.ComponentPropsWithoutRef<typeof Input>, keyof NonPassthroughProps>;
|
20
|
-
declare const TextInput: React.ForwardRefExoticComponent<Pick<TextInputInternalProps, string | number | symbol> & React.RefAttributes<HTMLInputElement>>;
|
21
|
-
export declare type TextInputProps = ComponentProps<typeof TextInput>;
|
22
|
-
export default TextInput;
|
package/lib/ThemeProvider.d.ts
DELETED
@@ -1,26 +0,0 @@
|
|
1
|
-
import React from 'react';
|
2
|
-
export declare type Theme = {
|
3
|
-
[key: string]: any;
|
4
|
-
};
|
5
|
-
declare type ColorMode = 'day' | 'night';
|
6
|
-
declare type ColorModeWithAuto = ColorMode | 'auto';
|
7
|
-
export declare type ThemeProviderProps = {
|
8
|
-
theme?: Theme;
|
9
|
-
colorMode?: ColorModeWithAuto;
|
10
|
-
dayScheme?: string;
|
11
|
-
nightScheme?: string;
|
12
|
-
};
|
13
|
-
export declare const ThemeProvider: React.FC<ThemeProviderProps>;
|
14
|
-
export declare function useTheme(): {
|
15
|
-
theme?: Theme | undefined;
|
16
|
-
colorScheme?: string | undefined;
|
17
|
-
colorMode?: ColorModeWithAuto | undefined;
|
18
|
-
resolvedColorMode?: ColorMode | undefined;
|
19
|
-
dayScheme?: string | undefined;
|
20
|
-
nightScheme?: string | undefined;
|
21
|
-
setColorMode: React.Dispatch<React.SetStateAction<ColorModeWithAuto>>;
|
22
|
-
setDayScheme: React.Dispatch<React.SetStateAction<string>>;
|
23
|
-
setNightScheme: React.Dispatch<React.SetStateAction<string>>;
|
24
|
-
};
|
25
|
-
export declare function useColorSchemeVar(values: Partial<Record<string, string>>, fallback: string): string;
|
26
|
-
export default ThemeProvider;
|