@primer/components 0.0.0-2021983515 → 0.0.0-2022530194733
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 +889 -1279
- package/dist/browser.esm.js.map +1 -1
- package/dist/browser.umd.js +839 -1234
- 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 +36 -126
- 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 +59 -22
- 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 +3 -8
- package/lib/hooks/useOverlay.js +19 -9
- package/lib/hooks/useSafeTimeout.js +0 -1
- package/lib/index.js +12 -112
- 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/{types/AriaRole.js → types.js} +0 -0
- 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 +38 -119
- 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 +49 -22
- 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 +3 -8
- package/lib-esm/hooks/useOverlay.js +18 -9
- package/lib-esm/hooks/useSafeTimeout.js +0 -1
- package/lib-esm/index.js +10 -22
- 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/{test-helpers.d.ts → types.js} +0 -0
- 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 -88
- 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 -62
- package/lib/AnchoredOverlay/AnchoredOverlay.js +0 -124
- package/lib/AnchoredOverlay/index.d.ts +0 -2
- package/lib/AnchoredOverlay/index.js +0 -13
- package/lib/Autocomplete/Autocomplete.d.ts +0 -40
- package/lib/Autocomplete/Autocomplete.js +0 -68
- package/lib/Autocomplete/AutocompleteContext.d.ts +0 -17
- package/lib/Autocomplete/AutocompleteContext.js +0 -11
- package/lib/Autocomplete/AutocompleteInput.d.ts +0 -9
- package/lib/Autocomplete/AutocompleteInput.js +0 -150
- package/lib/Autocomplete/AutocompleteMenu.d.ts +0 -71
- package/lib/Autocomplete/AutocompleteMenu.js +0 -223
- package/lib/Autocomplete/AutocompleteOverlay.d.ts +0 -17
- package/lib/Autocomplete/AutocompleteOverlay.js +0 -69
- package/lib/Autocomplete/index.d.ts +0 -2
- package/lib/Autocomplete/index.js +0 -15
- 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/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 -137
- 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 -63
- 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 -14
- package/lib/TextInputWithTokens.d.ts +0 -323
- package/lib/TextInputWithTokens.js +0 -244
- package/lib/ThemeProvider.d.ts +0 -26
- package/lib/Timeline.d.ts +0 -407
- package/lib/Token/IssueLabelToken.d.ts +0 -14
- package/lib/Token/IssueLabelToken.js +0 -144
- package/lib/Token/ProfileToken.d.ts +0 -7
- package/lib/Token/ProfileToken.js +0 -53
- package/lib/Token/Token.d.ts +0 -15
- package/lib/Token/Token.js +0 -94
- package/lib/Token/TokenBase.d.ts +0 -17
- package/lib/Token/TokenBase.js +0 -108
- package/lib/Token/_RemoveTokenButton.d.ts +0 -12
- package/lib/Token/_RemoveTokenButton.js +0 -77
- package/lib/Token/_TokenTextContainer.d.ts +0 -3
- package/lib/Token/_TokenTextContainer.js +0 -28
- package/lib/Token/index.d.ts +0 -3
- package/lib/Token/index.js +0 -31
- package/lib/Tooltip.d.ts +0 -18
- package/lib/Truncate.d.ts +0 -11
- package/lib/UnderlineNav.d.ts +0 -25
- package/lib/_TextInputWrapper.d.ts +0 -10
- package/lib/_TextInputWrapper.js +0 -51
- package/lib/_UnstyledTextInput.d.ts +0 -2
- package/lib/_UnstyledTextInput.js +0 -20
- 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 -8
- package/lib/hooks/useOverlay.d.ts +0 -15
- 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 -114
- 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/scrollIntoViewingArea.d.ts +0 -1
- package/lib/utils/scrollIntoViewingArea.js +0 -39
- 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/AriaRole.d.ts +0 -4
- package/lib/utils/types/ComponentProps.d.ts +0 -9
- package/lib/utils/types/ComponentProps.js +0 -1
- package/lib/utils/types/Flatten.d.ts +0 -4
- package/lib/utils/types/Flatten.js +0 -1
- package/lib/utils/types/Merge.d.ts +0 -19
- package/lib/utils/types/Merge.js +0 -1
- package/lib/utils/types/index.d.ts +0 -4
- package/lib/utils/types/index.js +0 -57
- 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 -88
- 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 -62
- package/lib-esm/AnchoredOverlay/AnchoredOverlay.js +0 -104
- package/lib-esm/AnchoredOverlay/index.d.ts +0 -2
- package/lib-esm/AnchoredOverlay/index.js +0 -1
- package/lib-esm/Autocomplete/Autocomplete.d.ts +0 -40
- package/lib-esm/Autocomplete/Autocomplete.js +0 -47
- package/lib-esm/Autocomplete/AutocompleteContext.d.ts +0 -17
- package/lib-esm/Autocomplete/AutocompleteContext.js +0 -2
- package/lib-esm/Autocomplete/AutocompleteInput.d.ts +0 -9
- package/lib-esm/Autocomplete/AutocompleteInput.js +0 -131
- package/lib-esm/Autocomplete/AutocompleteMenu.d.ts +0 -71
- package/lib-esm/Autocomplete/AutocompleteMenu.js +0 -204
- package/lib-esm/Autocomplete/AutocompleteOverlay.d.ts +0 -17
- package/lib-esm/Autocomplete/AutocompleteOverlay.js +0 -51
- package/lib-esm/Autocomplete/index.d.ts +0 -2
- package/lib-esm/Autocomplete/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/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 -109
- 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 -63
- 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 -14
- package/lib-esm/TextInputWithTokens.d.ts +0 -323
- package/lib-esm/TextInputWithTokens.js +0 -219
- package/lib-esm/ThemeProvider.d.ts +0 -26
- package/lib-esm/Timeline.d.ts +0 -407
- package/lib-esm/Token/IssueLabelToken.d.ts +0 -14
- package/lib-esm/Token/IssueLabelToken.js +0 -124
- package/lib-esm/Token/ProfileToken.d.ts +0 -7
- package/lib-esm/Token/ProfileToken.js +0 -33
- package/lib-esm/Token/Token.d.ts +0 -15
- package/lib-esm/Token/Token.js +0 -73
- package/lib-esm/Token/TokenBase.d.ts +0 -17
- package/lib-esm/Token/TokenBase.js +0 -87
- package/lib-esm/Token/_RemoveTokenButton.d.ts +0 -12
- package/lib-esm/Token/_RemoveTokenButton.js +0 -60
- package/lib-esm/Token/_TokenTextContainer.d.ts +0 -3
- package/lib-esm/Token/_TokenTextContainer.js +0 -15
- package/lib-esm/Token/index.d.ts +0 -3
- package/lib-esm/Token/index.js +0 -3
- 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/_TextInputWrapper.d.ts +0 -10
- package/lib-esm/_TextInputWrapper.js +0 -31
- package/lib-esm/_UnstyledTextInput.d.ts +0 -2
- package/lib-esm/_UnstyledTextInput.js +0 -7
- 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 -8
- package/lib-esm/hooks/useOverlay.d.ts +0 -15
- 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 -114
- 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/scrollIntoViewingArea.d.ts +0 -1
- package/lib-esm/utils/scrollIntoViewingArea.js +0 -30
- 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.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/AriaRole.d.ts +0 -4
- package/lib-esm/utils/types/AriaRole.js +0 -1
- package/lib-esm/utils/types/ComponentProps.d.ts +0 -9
- package/lib-esm/utils/types/ComponentProps.js +0 -1
- package/lib-esm/utils/types/Flatten.d.ts +0 -4
- package/lib-esm/utils/types/Flatten.js +0 -1
- package/lib-esm/utils/types/Merge.d.ts +0 -19
- package/lib-esm/utils/types/Merge.js +0 -1
- package/lib-esm/utils/types/index.d.ts +0 -4
- package/lib-esm/utils/types/index.js +0 -4
- package/lib-esm/utils/uniqueId.d.ts +0 -1
- package/lib-esm/utils/userAgent.d.ts +0 -1
@@ -1,1028 +0,0 @@
|
|
1
|
-
import React from 'react';
|
2
|
-
import renderer from 'react-test-renderer';
|
3
|
-
import enzyme from 'enzyme';
|
4
|
-
declare type ComputedStyles = Record<string, string | Record<string, string>>;
|
5
|
-
export declare const COMPONENT_DISPLAY_NAME_REGEX: RegExp;
|
6
|
-
export declare function mount(component: React.ReactElement): enzyme.ReactWrapper<any, Readonly<{}>, React.Component<{}, {}, any>>;
|
7
|
-
declare global {
|
8
|
-
namespace jest {
|
9
|
-
interface Matchers<R> {
|
10
|
-
toImplementSxBehavior: () => boolean;
|
11
|
-
toSetExports: (exports: Record<string, string>) => boolean;
|
12
|
-
}
|
13
|
-
}
|
14
|
-
}
|
15
|
-
/**
|
16
|
-
* Render the component (a React.createElement() or JSX expression)
|
17
|
-
* into its intermediate object representation with 'type',
|
18
|
-
* 'props', and 'children' keys
|
19
|
-
*
|
20
|
-
* The returned object can be matched with expect().toEqual(), e.g.
|
21
|
-
*
|
22
|
-
* ```js
|
23
|
-
* expect(render(<Foo />)).toEqual(render(<div foo='bar' />))
|
24
|
-
* ```
|
25
|
-
*/
|
26
|
-
export declare function render(component: React.ReactElement, theme?: {
|
27
|
-
animation: {
|
28
|
-
easeOutCubic: string;
|
29
|
-
};
|
30
|
-
borderWidths: (string | number)[];
|
31
|
-
breakpoints: string[];
|
32
|
-
fonts: {
|
33
|
-
normal: any;
|
34
|
-
mono: any;
|
35
|
-
};
|
36
|
-
fontSizes: string[];
|
37
|
-
fontWeights: {
|
38
|
-
light: number;
|
39
|
-
normal: number;
|
40
|
-
semibold: number;
|
41
|
-
bold: number;
|
42
|
-
};
|
43
|
-
lineHeights: {
|
44
|
-
condensedUltra: number;
|
45
|
-
condensed: number;
|
46
|
-
default: number;
|
47
|
-
};
|
48
|
-
radii: string[];
|
49
|
-
sizes: {
|
50
|
-
small: string;
|
51
|
-
medium: string;
|
52
|
-
large: string;
|
53
|
-
xlarge: string;
|
54
|
-
};
|
55
|
-
space: string[];
|
56
|
-
colorSchemes: Record<"light" | "light_protanopia" | "dark" | "dark_dimmed" | "dark_high_contrast" | "dark_protanopia", Record<"colors" | "shadows", Partial<{
|
57
|
-
auto: {
|
58
|
-
black: string;
|
59
|
-
white: string;
|
60
|
-
gray: string[];
|
61
|
-
blue: string[];
|
62
|
-
green: string[];
|
63
|
-
yellow: string[];
|
64
|
-
orange: string[];
|
65
|
-
red: string[];
|
66
|
-
purple: string[];
|
67
|
-
pink: string[];
|
68
|
-
};
|
69
|
-
text: {
|
70
|
-
primary: string;
|
71
|
-
secondary: string;
|
72
|
-
tertiary: string;
|
73
|
-
placeholder: string;
|
74
|
-
disabled: string;
|
75
|
-
inverse: string;
|
76
|
-
link: string;
|
77
|
-
danger: string;
|
78
|
-
success: string;
|
79
|
-
warning: string;
|
80
|
-
white: string;
|
81
|
-
};
|
82
|
-
icon: {
|
83
|
-
primary: string;
|
84
|
-
secondary: string;
|
85
|
-
tertiary: string;
|
86
|
-
info: string;
|
87
|
-
danger: string;
|
88
|
-
success: string;
|
89
|
-
warning: string;
|
90
|
-
};
|
91
|
-
border: {
|
92
|
-
primary: string;
|
93
|
-
secondary: string;
|
94
|
-
tertiary: string;
|
95
|
-
overlay: string;
|
96
|
-
inverse: string;
|
97
|
-
info: string;
|
98
|
-
danger: string;
|
99
|
-
success: string;
|
100
|
-
warning: string;
|
101
|
-
default: string;
|
102
|
-
muted: string;
|
103
|
-
subtle: string;
|
104
|
-
};
|
105
|
-
bg: {
|
106
|
-
canvas: string;
|
107
|
-
canvasMobile: string;
|
108
|
-
canvasInverse: string;
|
109
|
-
canvasInset: string;
|
110
|
-
primary: string;
|
111
|
-
secondary: string;
|
112
|
-
tertiary: string;
|
113
|
-
overlay: string;
|
114
|
-
backdrop: string;
|
115
|
-
info: string;
|
116
|
-
infoInverse: string;
|
117
|
-
danger: string;
|
118
|
-
dangerInverse: string;
|
119
|
-
success: string;
|
120
|
-
successInverse: string;
|
121
|
-
warning: string;
|
122
|
-
warningInverse: string;
|
123
|
-
};
|
124
|
-
shadow: {
|
125
|
-
highlight: string;
|
126
|
-
inset: string;
|
127
|
-
small: string;
|
128
|
-
medium: string;
|
129
|
-
large: string;
|
130
|
-
extraLarge: string;
|
131
|
-
};
|
132
|
-
state: {
|
133
|
-
hover: {
|
134
|
-
primaryBg: string;
|
135
|
-
primaryBorder: string;
|
136
|
-
primaryText: string;
|
137
|
-
primaryIcon: string;
|
138
|
-
secondaryBg: string;
|
139
|
-
secondaryBorder: string;
|
140
|
-
};
|
141
|
-
selected: {
|
142
|
-
primaryBg: string;
|
143
|
-
primaryBorder: string;
|
144
|
-
primaryText: string;
|
145
|
-
primaryIcon: string;
|
146
|
-
};
|
147
|
-
focus: {
|
148
|
-
border: string;
|
149
|
-
shadow: string;
|
150
|
-
};
|
151
|
-
};
|
152
|
-
fade: {
|
153
|
-
fg10: string;
|
154
|
-
fg15: string;
|
155
|
-
fg30: string;
|
156
|
-
fg50: string;
|
157
|
-
fg70: string;
|
158
|
-
fg85: string;
|
159
|
-
black10: string;
|
160
|
-
black15: string;
|
161
|
-
black30: string;
|
162
|
-
black50: string;
|
163
|
-
black70: string;
|
164
|
-
black85: string;
|
165
|
-
white10: string;
|
166
|
-
white15: string;
|
167
|
-
white30: string;
|
168
|
-
white50: string;
|
169
|
-
white70: string;
|
170
|
-
white85: string;
|
171
|
-
};
|
172
|
-
alert: {
|
173
|
-
info: {
|
174
|
-
text: string;
|
175
|
-
icon: string;
|
176
|
-
bg: string;
|
177
|
-
border: string;
|
178
|
-
};
|
179
|
-
warn: {
|
180
|
-
text: string;
|
181
|
-
icon: string;
|
182
|
-
bg: string;
|
183
|
-
border: string;
|
184
|
-
};
|
185
|
-
error: {
|
186
|
-
text: string;
|
187
|
-
icon: string;
|
188
|
-
bg: string;
|
189
|
-
border: string;
|
190
|
-
};
|
191
|
-
success: {
|
192
|
-
text: string;
|
193
|
-
icon: string;
|
194
|
-
bg: string;
|
195
|
-
border: string;
|
196
|
-
};
|
197
|
-
};
|
198
|
-
autocomplete: {
|
199
|
-
shadow: string;
|
200
|
-
rowBorder: string;
|
201
|
-
};
|
202
|
-
blankslate: {
|
203
|
-
icon: string;
|
204
|
-
};
|
205
|
-
counter: {
|
206
|
-
text: string;
|
207
|
-
bg: string;
|
208
|
-
primary: {
|
209
|
-
text: string;
|
210
|
-
bg: string;
|
211
|
-
};
|
212
|
-
secondary: {
|
213
|
-
text: string;
|
214
|
-
bg: string;
|
215
|
-
};
|
216
|
-
};
|
217
|
-
box: {
|
218
|
-
blueBorder: string;
|
219
|
-
rowYellowBg: string;
|
220
|
-
rowBlueBg: string;
|
221
|
-
headerBlueBg: string;
|
222
|
-
headerBlueBorder: string;
|
223
|
-
borderInfo: string;
|
224
|
-
bgInfo: string;
|
225
|
-
borderWarning: string;
|
226
|
-
bgWarning: string;
|
227
|
-
};
|
228
|
-
branchName: {
|
229
|
-
text: string;
|
230
|
-
icon: string;
|
231
|
-
bg: string;
|
232
|
-
link: {
|
233
|
-
text: string;
|
234
|
-
icon: string;
|
235
|
-
bg: string;
|
236
|
-
};
|
237
|
-
};
|
238
|
-
markdown: {
|
239
|
-
codeBg: string;
|
240
|
-
frameBorder: string;
|
241
|
-
blockquoteBorder: string;
|
242
|
-
tableBorder: string;
|
243
|
-
tableTrBorder: string;
|
244
|
-
};
|
245
|
-
filterItem: {
|
246
|
-
barBg: string;
|
247
|
-
};
|
248
|
-
hiddenTextExpander: {
|
249
|
-
bg: string;
|
250
|
-
bgHover: string;
|
251
|
-
};
|
252
|
-
dragAndDrop: {
|
253
|
-
border: string;
|
254
|
-
};
|
255
|
-
uploadEnabled: {
|
256
|
-
border: string;
|
257
|
-
borderFocused: string;
|
258
|
-
};
|
259
|
-
previewableCommentForm: {
|
260
|
-
border: string;
|
261
|
-
};
|
262
|
-
verifiedBadge: {
|
263
|
-
text: string;
|
264
|
-
bg: string;
|
265
|
-
border: string;
|
266
|
-
};
|
267
|
-
socialCount: {
|
268
|
-
bg: string;
|
269
|
-
};
|
270
|
-
tooltip: {
|
271
|
-
text: string;
|
272
|
-
bg: string;
|
273
|
-
};
|
274
|
-
filesExplorerIcon: string;
|
275
|
-
hlAuthorBg: string;
|
276
|
-
hlAuthorBorder: string;
|
277
|
-
logoSubdued: string;
|
278
|
-
discussionBorder: string;
|
279
|
-
discussionBgSuccess: string;
|
280
|
-
actionsWorkflowTableStickyBg: string;
|
281
|
-
repoLanguageColorBorder: string;
|
282
|
-
codeSelectionBg: string;
|
283
|
-
highlight: {
|
284
|
-
text: string;
|
285
|
-
bg: string;
|
286
|
-
};
|
287
|
-
blob: {
|
288
|
-
lineHighlightBg: string;
|
289
|
-
lineHighlightBorder: string;
|
290
|
-
};
|
291
|
-
topicTag: {
|
292
|
-
text: string;
|
293
|
-
bg: string;
|
294
|
-
hoverBg: string;
|
295
|
-
activeBg: string;
|
296
|
-
border: string;
|
297
|
-
};
|
298
|
-
footerInvertocat: {
|
299
|
-
octicon: string;
|
300
|
-
octiconHover: string;
|
301
|
-
};
|
302
|
-
dropdown: {
|
303
|
-
shadow: string;
|
304
|
-
};
|
305
|
-
label: {
|
306
|
-
border: string;
|
307
|
-
primary: {
|
308
|
-
text: string;
|
309
|
-
border: string;
|
310
|
-
};
|
311
|
-
secondary: {
|
312
|
-
text: string;
|
313
|
-
border: string;
|
314
|
-
};
|
315
|
-
info: {
|
316
|
-
text: string;
|
317
|
-
border: string;
|
318
|
-
};
|
319
|
-
success: {
|
320
|
-
text: string;
|
321
|
-
border: string;
|
322
|
-
};
|
323
|
-
warning: {
|
324
|
-
text: string;
|
325
|
-
border: string;
|
326
|
-
};
|
327
|
-
danger: {
|
328
|
-
text: string;
|
329
|
-
border: string;
|
330
|
-
};
|
331
|
-
orange: {
|
332
|
-
text: string;
|
333
|
-
border: string;
|
334
|
-
};
|
335
|
-
};
|
336
|
-
input: {
|
337
|
-
bg: string;
|
338
|
-
contrastBg: string;
|
339
|
-
border: string;
|
340
|
-
shadow: string;
|
341
|
-
disabledBorder: string;
|
342
|
-
warningBorder: string;
|
343
|
-
errorBorder: string;
|
344
|
-
tooltip: {
|
345
|
-
success: {
|
346
|
-
text: string;
|
347
|
-
bg: string;
|
348
|
-
border: string;
|
349
|
-
};
|
350
|
-
warning: {
|
351
|
-
text: string;
|
352
|
-
bg: string;
|
353
|
-
border: string;
|
354
|
-
};
|
355
|
-
error: {
|
356
|
-
text: string;
|
357
|
-
bg: string;
|
358
|
-
border: string;
|
359
|
-
};
|
360
|
-
};
|
361
|
-
disabledBg: string;
|
362
|
-
};
|
363
|
-
toast: {
|
364
|
-
text: string;
|
365
|
-
bg: string;
|
366
|
-
border: string;
|
367
|
-
shadow: string;
|
368
|
-
icon: string;
|
369
|
-
iconBg: string;
|
370
|
-
iconBorder: string;
|
371
|
-
success: {
|
372
|
-
text: string;
|
373
|
-
border: string;
|
374
|
-
icon: string;
|
375
|
-
iconBg: string;
|
376
|
-
iconBorder: string;
|
377
|
-
};
|
378
|
-
warning: {
|
379
|
-
text: string;
|
380
|
-
border: string;
|
381
|
-
icon: string;
|
382
|
-
iconBg: string;
|
383
|
-
iconBorder: string;
|
384
|
-
};
|
385
|
-
danger: {
|
386
|
-
text: string;
|
387
|
-
border: string;
|
388
|
-
icon: string;
|
389
|
-
iconBg: string;
|
390
|
-
iconBorder: string;
|
391
|
-
};
|
392
|
-
loading: {
|
393
|
-
text: string;
|
394
|
-
border: string;
|
395
|
-
icon: string;
|
396
|
-
iconBg: string;
|
397
|
-
iconBorder: string;
|
398
|
-
};
|
399
|
-
};
|
400
|
-
timeline: {
|
401
|
-
text: string;
|
402
|
-
badgeSuccessBorder: string;
|
403
|
-
targetBadgeBorder: string;
|
404
|
-
targetBadgeShadow: string;
|
405
|
-
badgeBg: string;
|
406
|
-
};
|
407
|
-
diffstat: {
|
408
|
-
neutralBg: string;
|
409
|
-
neutralBorder: string;
|
410
|
-
deletionBorder: string;
|
411
|
-
additionBorder: string;
|
412
|
-
deletionBg: string;
|
413
|
-
additionBg: string;
|
414
|
-
};
|
415
|
-
diff: {
|
416
|
-
addition: {
|
417
|
-
text: string;
|
418
|
-
bg: string;
|
419
|
-
border: string;
|
420
|
-
};
|
421
|
-
deletion: {
|
422
|
-
text: string;
|
423
|
-
bg: string;
|
424
|
-
border: string;
|
425
|
-
};
|
426
|
-
change: {
|
427
|
-
text: string;
|
428
|
-
bg: string;
|
429
|
-
border: string;
|
430
|
-
};
|
431
|
-
};
|
432
|
-
mergeBox: {
|
433
|
-
successIconBg: string;
|
434
|
-
successIconText: string;
|
435
|
-
successIconBorder: string;
|
436
|
-
successIndicatorBg: string;
|
437
|
-
successIndicatorBorder: string;
|
438
|
-
mergedIconBg: string;
|
439
|
-
mergedIconText: string;
|
440
|
-
mergedIconBorder: string;
|
441
|
-
mergedBoxBorder: string;
|
442
|
-
neutralIconBg: string;
|
443
|
-
neutralIconText: string;
|
444
|
-
neutralIconBorder: string;
|
445
|
-
neutralIndicatorBg: string;
|
446
|
-
neutralIndicatorBorder: string;
|
447
|
-
warningIconBg: string;
|
448
|
-
warningIconText: string;
|
449
|
-
warningIconBorder: string;
|
450
|
-
warningBoxBorder: string;
|
451
|
-
warningMergeHighlight: string;
|
452
|
-
errorIconBg: string;
|
453
|
-
errorIconText: string;
|
454
|
-
errorIconBorder: string;
|
455
|
-
errorIndicatorBg: string;
|
456
|
-
errorIndicatorBorder: string;
|
457
|
-
};
|
458
|
-
underlinenav: {
|
459
|
-
border: string;
|
460
|
-
borderHover: string;
|
461
|
-
borderActive: string;
|
462
|
-
text: string;
|
463
|
-
textHover: string;
|
464
|
-
textActive: string;
|
465
|
-
icon: string;
|
466
|
-
iconHover: string;
|
467
|
-
iconActive: string;
|
468
|
-
counterText: string;
|
469
|
-
counterBg: string;
|
470
|
-
};
|
471
|
-
selectMenu: {
|
472
|
-
borderSecondary: string;
|
473
|
-
shadow: string;
|
474
|
-
backdropBg: string;
|
475
|
-
backdropBorder: string;
|
476
|
-
tapHighlight: string;
|
477
|
-
tapFocusBg: string;
|
478
|
-
};
|
479
|
-
sidenav: {
|
480
|
-
borderActive: string;
|
481
|
-
selectedBg: string;
|
482
|
-
};
|
483
|
-
menu: {
|
484
|
-
headingText: string;
|
485
|
-
borderActive: string;
|
486
|
-
bgActive: string;
|
487
|
-
};
|
488
|
-
project: {
|
489
|
-
cardBg: string;
|
490
|
-
headerBg: string;
|
491
|
-
sidebarBg: string;
|
492
|
-
gradientIn: string;
|
493
|
-
gradientOut: string;
|
494
|
-
};
|
495
|
-
prState: {
|
496
|
-
draft: {
|
497
|
-
text: string;
|
498
|
-
bg: string;
|
499
|
-
border: string;
|
500
|
-
};
|
501
|
-
open: {
|
502
|
-
text: string;
|
503
|
-
bg: string;
|
504
|
-
border: string;
|
505
|
-
};
|
506
|
-
merged: {
|
507
|
-
text: string;
|
508
|
-
bg: string;
|
509
|
-
border: string;
|
510
|
-
};
|
511
|
-
closed: {
|
512
|
-
text: string;
|
513
|
-
bg: string;
|
514
|
-
border: string;
|
515
|
-
};
|
516
|
-
};
|
517
|
-
diffBlob: {
|
518
|
-
numText: string;
|
519
|
-
numHoverText: string;
|
520
|
-
addition: {
|
521
|
-
numHoverText: string;
|
522
|
-
numText: string;
|
523
|
-
fg: string;
|
524
|
-
numBg: string;
|
525
|
-
lineBg: string;
|
526
|
-
wordBg: string;
|
527
|
-
};
|
528
|
-
deletion: {
|
529
|
-
numHoverText: string;
|
530
|
-
numText: string;
|
531
|
-
fg: string;
|
532
|
-
numBg: string;
|
533
|
-
lineBg: string;
|
534
|
-
wordBg: string;
|
535
|
-
};
|
536
|
-
hunk: {
|
537
|
-
text: string;
|
538
|
-
numBg: string;
|
539
|
-
lineBg: string;
|
540
|
-
};
|
541
|
-
emptyBlockBg: string;
|
542
|
-
selectedLineHighlightBg: string;
|
543
|
-
selectedLineHighlightBorder: string;
|
544
|
-
expander: {
|
545
|
-
hoverIcon: string;
|
546
|
-
hoverBg: string;
|
547
|
-
icon: string;
|
548
|
-
};
|
549
|
-
commentButton: {
|
550
|
-
icon: string;
|
551
|
-
bg: string;
|
552
|
-
gradientBg: string;
|
553
|
-
};
|
554
|
-
selectedLineHighlightMixBlendMode: string;
|
555
|
-
};
|
556
|
-
globalNav: {
|
557
|
-
logo: string;
|
558
|
-
bg: string;
|
559
|
-
text: string;
|
560
|
-
icon: string;
|
561
|
-
inputBg: string;
|
562
|
-
inputBorder: string;
|
563
|
-
inputIcon: string;
|
564
|
-
inputPlaceholder: string;
|
565
|
-
};
|
566
|
-
introShelf: {
|
567
|
-
gradientLeft: string;
|
568
|
-
gradientRight: string;
|
569
|
-
gradientIn: string;
|
570
|
-
gradientOut: string;
|
571
|
-
};
|
572
|
-
canvasDefaultTransparent: string;
|
573
|
-
marketingIcon: {
|
574
|
-
primary: string;
|
575
|
-
secondary: string;
|
576
|
-
};
|
577
|
-
searchKeyword: {
|
578
|
-
hl: string;
|
579
|
-
};
|
580
|
-
prettylights: {
|
581
|
-
syntax: {
|
582
|
-
comment: string;
|
583
|
-
constant: string;
|
584
|
-
entity: string;
|
585
|
-
storageModifierImport: string;
|
586
|
-
entityTag: string;
|
587
|
-
keyword: string;
|
588
|
-
string: string;
|
589
|
-
variable: string;
|
590
|
-
brackethighlighterUnmatched: string;
|
591
|
-
invalidIllegalText: string;
|
592
|
-
invalidIllegalBg: string;
|
593
|
-
carriageReturnText: string;
|
594
|
-
carriageReturnBg: string;
|
595
|
-
stringRegexp: string;
|
596
|
-
markupList: string;
|
597
|
-
markupHeading: string;
|
598
|
-
markupItalic: string;
|
599
|
-
markupBold: string;
|
600
|
-
markupDeletedText: string;
|
601
|
-
markupDeletedBg: string;
|
602
|
-
markupInsertedText: string;
|
603
|
-
markupInsertedBg: string;
|
604
|
-
markupChangedText: string;
|
605
|
-
markupChangedBg: string;
|
606
|
-
markupIgnoredText: string;
|
607
|
-
markupIgnoredBg: string;
|
608
|
-
metaDiffRange: string;
|
609
|
-
brackethighlighterAngle: string;
|
610
|
-
sublimelinterGutterMark: string;
|
611
|
-
constantOtherReferenceLink: string;
|
612
|
-
};
|
613
|
-
};
|
614
|
-
codemirror: {
|
615
|
-
text: string;
|
616
|
-
bg: string;
|
617
|
-
guttersBg: string;
|
618
|
-
guttermarkerText: string;
|
619
|
-
guttermarkerSubtleText: string;
|
620
|
-
linenumberText: string;
|
621
|
-
cursor: string;
|
622
|
-
selectionBg: string;
|
623
|
-
activelineBg: string;
|
624
|
-
matchingbracketText: string;
|
625
|
-
linesBg: string;
|
626
|
-
syntax: {
|
627
|
-
comment: string;
|
628
|
-
constant: string;
|
629
|
-
entity: string;
|
630
|
-
keyword: string;
|
631
|
-
storage: string;
|
632
|
-
string: string;
|
633
|
-
support: string;
|
634
|
-
variable: string;
|
635
|
-
};
|
636
|
-
};
|
637
|
-
checks: {
|
638
|
-
bg: string;
|
639
|
-
runBorderWidth: string;
|
640
|
-
containerBorderWidth: string;
|
641
|
-
textPrimary: string;
|
642
|
-
textSecondary: string;
|
643
|
-
textLink: string;
|
644
|
-
btnIcon: string;
|
645
|
-
btnHoverIcon: string;
|
646
|
-
btnHoverBg: string;
|
647
|
-
inputText: string;
|
648
|
-
inputPlaceholderText: string;
|
649
|
-
inputFocusText: string;
|
650
|
-
inputBg: string;
|
651
|
-
inputShadow: string;
|
652
|
-
donutError: string;
|
653
|
-
donutPending: string;
|
654
|
-
donutSuccess: string;
|
655
|
-
donutNeutral: string;
|
656
|
-
dropdownText: string;
|
657
|
-
dropdownBg: string;
|
658
|
-
dropdownBorder: string;
|
659
|
-
dropdownShadow: string;
|
660
|
-
dropdownHoverText: string;
|
661
|
-
dropdownHoverBg: string;
|
662
|
-
dropdownBtnHoverText: string;
|
663
|
-
dropdownBtnHoverBg: string;
|
664
|
-
scrollbarThumbBg: string;
|
665
|
-
headerLabelText: string;
|
666
|
-
headerLabelOpenText: string;
|
667
|
-
headerBorder: string;
|
668
|
-
headerIcon: string;
|
669
|
-
lineText: string;
|
670
|
-
lineNumText: string;
|
671
|
-
lineTimestampText: string;
|
672
|
-
lineHoverBg: string;
|
673
|
-
lineSelectedBg: string;
|
674
|
-
lineSelectedNumText: string;
|
675
|
-
lineDtFmText: string;
|
676
|
-
lineDtFmBg: string;
|
677
|
-
gateBg: string;
|
678
|
-
gateText: string;
|
679
|
-
gateWaitingText: string;
|
680
|
-
stepHeaderOpenBg: string;
|
681
|
-
stepErrorText: string;
|
682
|
-
stepWarningText: string;
|
683
|
-
loglineText: string;
|
684
|
-
loglineNumText: string;
|
685
|
-
loglineDebugText: string;
|
686
|
-
loglineErrorText: string;
|
687
|
-
loglineErrorNumText: string;
|
688
|
-
loglineErrorBg: string;
|
689
|
-
loglineWarningText: string;
|
690
|
-
loglineWarningNumText: string;
|
691
|
-
loglineWarningBg: string;
|
692
|
-
loglineCommandText: string;
|
693
|
-
loglineSectionText: string;
|
694
|
-
ansi: {
|
695
|
-
black: string;
|
696
|
-
blackBright: string;
|
697
|
-
white: string;
|
698
|
-
whiteBright: string;
|
699
|
-
gray: string;
|
700
|
-
red: string;
|
701
|
-
redBright: string;
|
702
|
-
green: string;
|
703
|
-
greenBright: string;
|
704
|
-
yellow: string;
|
705
|
-
yellowBright: string;
|
706
|
-
blue: string;
|
707
|
-
blueBright: string;
|
708
|
-
magenta: string;
|
709
|
-
magentaBright: string;
|
710
|
-
cyan: string;
|
711
|
-
cyanBright: string;
|
712
|
-
};
|
713
|
-
};
|
714
|
-
mktg: {
|
715
|
-
success: string;
|
716
|
-
info: string;
|
717
|
-
bgShadeGradient: {
|
718
|
-
top: string;
|
719
|
-
bottom: string;
|
720
|
-
};
|
721
|
-
btn: {
|
722
|
-
bg: {
|
723
|
-
top: string;
|
724
|
-
bottom: string;
|
725
|
-
};
|
726
|
-
bgOverlay: {
|
727
|
-
top: string;
|
728
|
-
bottom: string;
|
729
|
-
};
|
730
|
-
text: string;
|
731
|
-
primary: {
|
732
|
-
bg: {
|
733
|
-
top: string;
|
734
|
-
bottom: string;
|
735
|
-
};
|
736
|
-
bgOverlay: {
|
737
|
-
top: string;
|
738
|
-
bottom: string;
|
739
|
-
};
|
740
|
-
text: string;
|
741
|
-
};
|
742
|
-
enterprise: {
|
743
|
-
bg: {
|
744
|
-
top: string;
|
745
|
-
bottom: string;
|
746
|
-
};
|
747
|
-
bgOverlay: {
|
748
|
-
top: string;
|
749
|
-
bottom: string;
|
750
|
-
};
|
751
|
-
text: string;
|
752
|
-
};
|
753
|
-
outline: {
|
754
|
-
text: string;
|
755
|
-
border: string;
|
756
|
-
hover: {
|
757
|
-
text: string;
|
758
|
-
border: string;
|
759
|
-
};
|
760
|
-
focus: {
|
761
|
-
border: string;
|
762
|
-
borderInset: string;
|
763
|
-
};
|
764
|
-
};
|
765
|
-
dark: {
|
766
|
-
text: string;
|
767
|
-
border: string;
|
768
|
-
hover: {
|
769
|
-
text: string;
|
770
|
-
border: string;
|
771
|
-
};
|
772
|
-
focus: {
|
773
|
-
border: string;
|
774
|
-
borderInset: string;
|
775
|
-
};
|
776
|
-
};
|
777
|
-
};
|
778
|
-
};
|
779
|
-
avatar: {
|
780
|
-
bg: string;
|
781
|
-
border: string;
|
782
|
-
stackFade: string;
|
783
|
-
stackFadeMore: string;
|
784
|
-
childShadow: string;
|
785
|
-
};
|
786
|
-
overlay: {
|
787
|
-
shadow: string;
|
788
|
-
};
|
789
|
-
header: {
|
790
|
-
text: string;
|
791
|
-
bg: string;
|
792
|
-
logo: string;
|
793
|
-
};
|
794
|
-
headerSearch: {
|
795
|
-
bg: string;
|
796
|
-
border: string;
|
797
|
-
};
|
798
|
-
ansi: {
|
799
|
-
black: string;
|
800
|
-
blackBright: string;
|
801
|
-
white: string;
|
802
|
-
whiteBright: string;
|
803
|
-
gray: string;
|
804
|
-
red: string;
|
805
|
-
redBright: string;
|
806
|
-
green: string;
|
807
|
-
greenBright: string;
|
808
|
-
yellow: string;
|
809
|
-
yellowBright: string;
|
810
|
-
blue: string;
|
811
|
-
blueBright: string;
|
812
|
-
magenta: string;
|
813
|
-
magentaBright: string;
|
814
|
-
cyan: string;
|
815
|
-
cyanBright: string;
|
816
|
-
};
|
817
|
-
btn: {
|
818
|
-
text: string;
|
819
|
-
bg: string;
|
820
|
-
border: string;
|
821
|
-
shadow: string;
|
822
|
-
insetShadow: string;
|
823
|
-
hoverBg: string;
|
824
|
-
hoverBorder: string;
|
825
|
-
activeBg: string;
|
826
|
-
activeBorder: string;
|
827
|
-
selectedBg: string;
|
828
|
-
focusBg: string;
|
829
|
-
focusBorder: string;
|
830
|
-
focusShadow: string;
|
831
|
-
shadowActive: string;
|
832
|
-
shadowInputFocus: string;
|
833
|
-
counterBg: string;
|
834
|
-
primary: {
|
835
|
-
text: string;
|
836
|
-
bg: string;
|
837
|
-
border: string;
|
838
|
-
shadow: string;
|
839
|
-
insetShadow: string;
|
840
|
-
hoverBg: string;
|
841
|
-
hoverBorder: string;
|
842
|
-
selectedBg: string;
|
843
|
-
selectedShadow: string;
|
844
|
-
disabledText: string;
|
845
|
-
disabledBg: string;
|
846
|
-
disabledBorder: string;
|
847
|
-
focusBg: string;
|
848
|
-
focusBorder: string;
|
849
|
-
focusShadow: string;
|
850
|
-
icon: string;
|
851
|
-
counterBg: string;
|
852
|
-
};
|
853
|
-
outline: {
|
854
|
-
text: string;
|
855
|
-
hoverText: string;
|
856
|
-
hoverBg: string;
|
857
|
-
hoverBorder: string;
|
858
|
-
hoverShadow: string;
|
859
|
-
hoverInsetShadow: string;
|
860
|
-
hoverCounterBg: string;
|
861
|
-
selectedText: string;
|
862
|
-
selectedBg: string;
|
863
|
-
selectedBorder: string;
|
864
|
-
selectedShadow: string;
|
865
|
-
disabledText: string;
|
866
|
-
disabledBg: string;
|
867
|
-
disabledCounterBg: string;
|
868
|
-
focusBorder: string;
|
869
|
-
focusShadow: string;
|
870
|
-
counterBg: string;
|
871
|
-
};
|
872
|
-
danger: {
|
873
|
-
text: string;
|
874
|
-
hoverText: string;
|
875
|
-
hoverBg: string;
|
876
|
-
hoverBorder: string;
|
877
|
-
hoverShadow: string;
|
878
|
-
hoverInsetShadow: string;
|
879
|
-
hoverCounterBg: string;
|
880
|
-
selectedText: string;
|
881
|
-
selectedBg: string;
|
882
|
-
selectedBorder: string;
|
883
|
-
selectedShadow: string;
|
884
|
-
disabledText: string;
|
885
|
-
disabledBg: string;
|
886
|
-
disabledCounterBg: string;
|
887
|
-
focusBorder: string;
|
888
|
-
focusShadow: string;
|
889
|
-
counterBg: string;
|
890
|
-
icon: string;
|
891
|
-
hoverIcon: string;
|
892
|
-
};
|
893
|
-
};
|
894
|
-
fg: {
|
895
|
-
default: string;
|
896
|
-
muted: string;
|
897
|
-
subtle: string;
|
898
|
-
onEmphasis: string;
|
899
|
-
};
|
900
|
-
canvas: {
|
901
|
-
default: string;
|
902
|
-
overlay: string;
|
903
|
-
inset: string;
|
904
|
-
subtle: string;
|
905
|
-
};
|
906
|
-
neutral: {
|
907
|
-
emphasisPlus: string;
|
908
|
-
emphasis: string;
|
909
|
-
muted: string;
|
910
|
-
subtle: string;
|
911
|
-
};
|
912
|
-
accent: {
|
913
|
-
fg: string;
|
914
|
-
emphasis: string;
|
915
|
-
muted: string;
|
916
|
-
subtle: string;
|
917
|
-
};
|
918
|
-
success: {
|
919
|
-
fg: string;
|
920
|
-
emphasis: string;
|
921
|
-
muted: string;
|
922
|
-
subtle: string;
|
923
|
-
};
|
924
|
-
attention: {
|
925
|
-
fg: string;
|
926
|
-
emphasis: string;
|
927
|
-
muted: string;
|
928
|
-
subtle: string;
|
929
|
-
};
|
930
|
-
severe: {
|
931
|
-
fg: string;
|
932
|
-
emphasis: string;
|
933
|
-
muted: string;
|
934
|
-
subtle: string;
|
935
|
-
};
|
936
|
-
danger: {
|
937
|
-
fg: string;
|
938
|
-
emphasis: string;
|
939
|
-
muted: string;
|
940
|
-
subtle: string;
|
941
|
-
};
|
942
|
-
done: {
|
943
|
-
fg: string;
|
944
|
-
emphasis: string;
|
945
|
-
muted: string;
|
946
|
-
subtle: string;
|
947
|
-
};
|
948
|
-
sponsors: {
|
949
|
-
fg: string;
|
950
|
-
emphasis: string;
|
951
|
-
muted: string;
|
952
|
-
subtle: string;
|
953
|
-
};
|
954
|
-
primer: {
|
955
|
-
canvas: {
|
956
|
-
backdrop: string;
|
957
|
-
sticky: string;
|
958
|
-
};
|
959
|
-
border: {
|
960
|
-
active: string;
|
961
|
-
contrast: string;
|
962
|
-
};
|
963
|
-
shadow: {
|
964
|
-
highlight: string;
|
965
|
-
inset: string;
|
966
|
-
focus: string;
|
967
|
-
};
|
968
|
-
};
|
969
|
-
scale: {
|
970
|
-
black: string;
|
971
|
-
white: string;
|
972
|
-
gray: string[];
|
973
|
-
blue: string[];
|
974
|
-
green: string[];
|
975
|
-
yellow: string[];
|
976
|
-
orange: string[];
|
977
|
-
red: string[];
|
978
|
-
purple: string[];
|
979
|
-
pink: string[];
|
980
|
-
coral: string[];
|
981
|
-
};
|
982
|
-
}>>>;
|
983
|
-
}): renderer.ReactTestRendererJSON;
|
984
|
-
/**
|
985
|
-
* Render the component (a React.createElement() or JSX expression)
|
986
|
-
* using react-test-renderer and return the root node
|
987
|
-
* ```
|
988
|
-
*/
|
989
|
-
export declare function renderRoot(component: React.ReactElement): renderer.ReactTestInstance;
|
990
|
-
/**
|
991
|
-
* Get the HTML class names rendered by the component instance
|
992
|
-
* as an array.
|
993
|
-
*
|
994
|
-
* ```js
|
995
|
-
* expect(renderClasses(<div className='a b' />))
|
996
|
-
* .toEqual(['a', 'b'])
|
997
|
-
* ```
|
998
|
-
*/
|
999
|
-
export declare function renderClasses(component: React.ReactElement): string;
|
1000
|
-
/**
|
1001
|
-
* Returns true if a node renders with a single class.
|
1002
|
-
*/
|
1003
|
-
export declare function rendersClass(node: React.ReactElement, klass: string): boolean;
|
1004
|
-
export declare function px(value: number | string): string;
|
1005
|
-
export declare function percent(value: number | string): string;
|
1006
|
-
export declare function renderStyles(node: React.ReactElement): ComputedStyles;
|
1007
|
-
export declare function getComputedStyles(className: string): ComputedStyles;
|
1008
|
-
/**
|
1009
|
-
* This provides a layer of compatibility between the render() function from
|
1010
|
-
* react-test-renderer and Enzyme's mount()
|
1011
|
-
*/
|
1012
|
-
export declare function getProps(node: React.ReactElement): any;
|
1013
|
-
export declare function getClassName(node: React.ReactElement): any;
|
1014
|
-
export declare function getClasses(node: React.ReactElement): any;
|
1015
|
-
export declare function loadCSS(path: string): Promise<HTMLStyleElement>;
|
1016
|
-
export declare function unloadCSS(path: string): true | undefined;
|
1017
|
-
interface Options {
|
1018
|
-
skipAs?: boolean;
|
1019
|
-
skipSx?: boolean;
|
1020
|
-
}
|
1021
|
-
interface BehavesAsComponent {
|
1022
|
-
Component: React.ComponentType<any>;
|
1023
|
-
toRender?: () => React.ReactElement;
|
1024
|
-
options?: Options;
|
1025
|
-
}
|
1026
|
-
export declare function behavesAsComponent({ Component, toRender, options }: BehavesAsComponent): void;
|
1027
|
-
export declare function checkExports(path: string, exports: Record<any, any>): void;
|
1028
|
-
export {};
|