@primer/react 38.0.0-rc.195178541 → 38.0.0-rc.2
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 +193 -2
- package/dist/browser.esm.js +3 -3
- package/dist/browser.esm.js.map +1 -1
- package/dist/browser.umd.js +3 -3
- package/dist/browser.umd.js.map +1 -1
- package/dist/components.css +1311 -350
- package/generated/components.json +560 -766
- package/lib/ActionList/ActionList-167cf6c7.css +2 -0
- package/lib/ActionList/ActionList-167cf6c7.css.map +1 -0
- package/lib/ActionList/ActionList.module.css.js +2 -2
- package/lib/ActionList/ActionListContainerContext.d.ts +1 -1
- package/lib/ActionList/ActionListContainerContext.d.ts.map +1 -1
- package/lib/ActionList/Description.d.ts.map +1 -1
- package/lib/ActionList/Description.js +1 -2
- package/lib/ActionList/Divider.d.ts.map +1 -1
- package/lib/ActionList/Divider.js +1 -2
- package/lib/ActionList/Group.d.ts.map +1 -1
- package/lib/ActionList/Group.js +1 -6
- package/lib/ActionList/Item.d.ts.map +1 -1
- package/lib/ActionList/Item.js +6 -3
- package/lib/ActionList/LinkItem.d.ts +1 -1
- package/lib/ActionList/LinkItem.d.ts.map +1 -1
- package/lib/ActionList/LinkItem.js +3 -2
- package/lib/ActionList/List.d.ts.map +1 -1
- package/lib/ActionList/List.js +3 -5
- package/lib/ActionList/Selection.js +2 -1
- package/lib/ActionList/Visuals.d.ts.map +1 -1
- package/lib/ActionList/Visuals.js +0 -7
- package/lib/ActionList/shared.d.ts +2 -1
- package/lib/ActionList/shared.d.ts.map +1 -1
- package/lib/Autocomplete/AutocompleteMenu.js +7 -7
- package/lib/Avatar/Avatar.d.ts.map +1 -1
- package/lib/Avatar/Avatar.js +39 -41
- package/lib/AvatarStack/AvatarStack-802bdd7c.css +2 -0
- package/lib/AvatarStack/AvatarStack-802bdd7c.css.map +1 -0
- package/lib/AvatarStack/AvatarStack.d.ts +4 -3
- package/lib/AvatarStack/AvatarStack.d.ts.map +1 -1
- package/lib/AvatarStack/AvatarStack.js +10 -6
- package/lib/AvatarStack/AvatarStack.module.css.js +1 -1
- package/lib/Banner/Banner-6396546f.css +2 -0
- package/lib/Banner/Banner-6396546f.css.map +1 -0
- package/lib/Banner/Banner.d.ts.map +1 -1
- package/lib/Banner/Banner.js +3 -1
- package/lib/Banner/Banner.module.css.js +2 -2
- package/lib/{BaseStyles-7880c337.css → BaseStyles-79fd37c4.css} +2 -2
- package/lib/BaseStyles-79fd37c4.css.map +1 -0
- package/lib/BaseStyles.module.css.js +1 -1
- package/lib/Blankslate/{Blankslate-a68ed307.css → Blankslate-2be5efdc.css} +2 -2
- package/lib/Blankslate/Blankslate-2be5efdc.css.map +1 -0
- package/lib/Blankslate/Blankslate.js +38 -40
- package/lib/Blankslate/Blankslate.module.css.js +1 -1
- package/lib/BranchName/BranchName.d.ts +6 -3
- package/lib/BranchName/BranchName.d.ts.map +1 -1
- package/lib/BranchName/BranchName.js +1 -3
- package/lib/Breadcrumbs/Breadcrumbs.d.ts.map +1 -1
- package/lib/Breadcrumbs/Breadcrumbs.js +5 -5
- package/lib/Button/{ButtonBase-ec78dde7.css → ButtonBase-0a7871f4.css} +2 -2
- package/lib/Button/{ButtonBase-ec78dde7.css.map → ButtonBase-0a7871f4.css.map} +1 -1
- package/lib/Button/ButtonBase.js +2 -2
- package/lib/Button/ButtonBase.module.css.js +1 -1
- package/lib/ButtonGroup/ButtonGroup.d.ts.map +1 -1
- package/lib/ButtonGroup/ButtonGroup.js +24 -61
- package/lib/Checkbox/Checkbox.js +187 -56
- package/lib/CircleBadge/CircleBadge.d.ts +4 -0
- package/lib/CircleBadge/CircleBadge.d.ts.map +1 -1
- package/lib/CircleBadge/CircleBadge.js +4 -0
- package/lib/ConfirmationDialog/ConfirmationDialog.d.ts +8 -0
- package/lib/ConfirmationDialog/ConfirmationDialog.d.ts.map +1 -1
- package/lib/ConfirmationDialog/ConfirmationDialog.js +6 -2
- package/lib/CounterLabel/CounterLabel.d.ts.map +1 -1
- package/lib/CounterLabel/CounterLabel.js +43 -87
- package/lib/DataTable/Pagination-b6f8418c.css +2 -0
- package/lib/DataTable/Pagination-b6f8418c.css.map +1 -0
- package/lib/DataTable/Pagination.d.ts.map +1 -1
- package/lib/DataTable/Pagination.js +81 -88
- package/lib/DataTable/Pagination.module.css.js +7 -0
- package/lib/DataTable/Table.d.ts +1 -1
- package/lib/DataTable/Table.d.ts.map +1 -1
- package/lib/DataTable/Table.js +18 -26
- package/lib/DataTable/storyHelpers.d.ts +1 -1
- package/lib/DataTable/storyHelpers.d.ts.map +1 -1
- package/lib/DataTable/useTable.js +63 -82
- package/lib/Details/Details.d.ts +2 -3
- package/lib/Details/Details.d.ts.map +1 -1
- package/lib/Details/Details.js +33 -82
- package/lib/FeatureFlags/DefaultFeatureFlags.d.ts.map +1 -1
- package/lib/FeatureFlags/DefaultFeatureFlags.js +2 -3
- package/lib/FeatureFlags/FeatureFlags.js +10 -12
- package/lib/FilteredActionList/FilteredActionList-96b126d7.css +2 -0
- package/lib/FilteredActionList/FilteredActionList-96b126d7.css.map +1 -0
- package/lib/FilteredActionList/{FilteredActionListWithModernActionList.d.ts → FilteredActionList.d.ts} +9 -4
- package/lib/FilteredActionList/FilteredActionList.d.ts.map +1 -0
- package/lib/FilteredActionList/{FilteredActionListWithModernActionList.js → FilteredActionList.js} +156 -42
- package/lib/FilteredActionList/FilteredActionList.module.css.js +2 -2
- package/lib/FilteredActionList/FilteredActionListLoaders.js +1 -1
- package/lib/FilteredActionList/index.d.ts +3 -2
- package/lib/FilteredActionList/index.d.ts.map +1 -1
- package/lib/FilteredActionList/types.d.ts +159 -0
- package/lib/FilteredActionList/types.d.ts.map +1 -0
- package/lib/FilteredActionList/useAnnouncements.d.ts +5 -2
- package/lib/FilteredActionList/useAnnouncements.d.ts.map +1 -1
- package/lib/FilteredActionList/useAnnouncements.js +112 -65
- package/lib/FormControl/FormControl.d.ts.map +1 -1
- package/lib/FormControl/FormControl.js +3 -12
- package/lib/Header/Header.d.ts.map +1 -1
- package/lib/Header/Header.js +64 -170
- package/lib/InlineMessage/InlineMessage.d.ts +1 -1
- package/lib/InlineMessage/InlineMessage.d.ts.map +1 -1
- package/lib/InlineMessage/InlineMessage.js +31 -69
- package/lib/Label/Label.d.ts.map +1 -1
- package/lib/Label/Label.js +10 -8
- package/lib/LabelGroup/LabelGroup.d.ts +1 -2
- package/lib/LabelGroup/LabelGroup.d.ts.map +1 -1
- package/lib/LabelGroup/LabelGroup.js +13 -16
- package/lib/NavList/NavList.js +219 -53
- package/lib/Overlay/Overlay-40e80d0e.css +2 -0
- package/lib/Overlay/Overlay-40e80d0e.css.map +1 -0
- package/lib/Overlay/Overlay.module.css.js +1 -1
- package/lib/PageHeader/PageHeader.d.ts.map +1 -1
- package/lib/PageHeader/PageHeader.js +21 -30
- package/lib/PageLayout/PageLayout.d.ts.map +1 -1
- package/lib/PageLayout/PageLayout.js +466 -476
- package/lib/Pagehead/Pagehead.d.ts +1 -1
- package/lib/Pagehead/Pagehead.d.ts.map +1 -1
- package/lib/Pagehead/Pagehead.js +2 -11
- package/lib/PointerBox/PointerBox.d.ts +9 -1
- package/lib/PointerBox/PointerBox.d.ts.map +1 -1
- package/lib/PointerBox/PointerBox.js +5 -1
- package/lib/Popover/Popover-b609f443.css +2 -0
- package/lib/Popover/Popover-b609f443.css.map +1 -0
- package/lib/Popover/Popover.d.ts +5 -0
- package/lib/Popover/Popover.d.ts.map +1 -1
- package/lib/Popover/Popover.js +40 -21
- package/lib/Popover/Popover.module.css.js +1 -1
- package/lib/Portal/Portal.d.ts.map +1 -1
- package/lib/Portal/Portal.js +1 -0
- package/lib/ProgressBar/ProgressBar-36f689cb.css +2 -0
- package/lib/ProgressBar/ProgressBar-36f689cb.css.map +1 -0
- package/lib/ProgressBar/ProgressBar.d.ts +3 -4
- package/lib/ProgressBar/ProgressBar.d.ts.map +1 -1
- package/lib/ProgressBar/ProgressBar.js +53 -49
- package/lib/ProgressBar/ProgressBar.module.css.js +1 -1
- package/lib/ProgressBar/index.d.ts +2 -2
- package/lib/ProgressBar/index.d.ts.map +1 -1
- package/lib/Radio/{Radio-b2a92b7d.css → Radio-df9a5c02.css} +2 -2
- package/lib/Radio/{Radio-b2a92b7d.css.map → Radio-df9a5c02.css.map} +1 -1
- package/lib/Radio/Radio.d.ts.map +1 -1
- package/lib/Radio/Radio.js +40 -91
- package/lib/Radio/Radio.module.css.js +1 -1
- package/lib/SegmentedControl/SegmentedControl.d.ts.map +1 -1
- package/lib/SegmentedControl/SegmentedControl.js +23 -25
- package/lib/SegmentedControl/SegmentedControlButton.d.ts.map +1 -1
- package/lib/SegmentedControl/SegmentedControlButton.js +70 -72
- package/lib/SegmentedControl/SegmentedControlIconButton.d.ts.map +1 -1
- package/lib/SegmentedControl/SegmentedControlIconButton.js +110 -112
- package/lib/Select/Select.d.ts +1 -1
- package/lib/Select/Select.d.ts.map +1 -1
- package/lib/Select/Select.js +79 -83
- package/lib/SelectPanel/SelectPanel-e11ce210.css +2 -0
- package/lib/SelectPanel/SelectPanel-e11ce210.css.map +1 -0
- package/lib/SelectPanel/SelectPanel.d.ts +8 -4
- package/lib/SelectPanel/SelectPanel.d.ts.map +1 -1
- package/lib/SelectPanel/SelectPanel.js +66 -29
- package/lib/SelectPanel/SelectPanel.module.css.js +2 -2
- package/lib/SelectPanel/SelectPanelMessage.d.ts +13 -0
- package/lib/SelectPanel/SelectPanelMessage.d.ts.map +1 -1
- package/lib/SelectPanel/SelectPanelMessage.js +10 -4
- package/lib/SelectPanel/index.d.ts +1 -0
- package/lib/SelectPanel/index.d.ts.map +1 -1
- package/lib/SideNav.d.ts +2 -3
- package/lib/SideNav.d.ts.map +1 -1
- package/lib/SideNav.js +4 -11
- package/lib/Skeleton/SkeletonBox.d.ts +2 -2
- package/lib/Skeleton/SkeletonBox.d.ts.map +1 -1
- package/lib/Skeleton/SkeletonBox.js +25 -24
- package/lib/SkeletonAvatar/SkeletonAvatar-e00fff32.css +2 -0
- package/lib/SkeletonAvatar/SkeletonAvatar-e00fff32.css.map +1 -0
- package/lib/SkeletonAvatar/SkeletonAvatar.d.ts +12 -0
- package/lib/SkeletonAvatar/SkeletonAvatar.d.ts.map +1 -0
- package/lib/{experimental/Skeleton → SkeletonAvatar}/SkeletonAvatar.js +5 -5
- package/lib/{experimental/Skeleton → SkeletonAvatar}/SkeletonAvatar.module.css.js +1 -1
- package/lib/SkeletonAvatar/index.d.ts +3 -0
- package/lib/SkeletonAvatar/index.d.ts.map +1 -0
- package/lib/SkeletonText/SkeletonText-5cf908c1.css +2 -0
- package/lib/SkeletonText/SkeletonText-5cf908c1.css.map +1 -0
- package/lib/{experimental/Skeleton → SkeletonText}/SkeletonText.d.ts +5 -4
- package/lib/SkeletonText/SkeletonText.d.ts.map +1 -0
- package/lib/SkeletonText/SkeletonText.js +142 -0
- package/lib/SkeletonText/SkeletonText.module.css.js +7 -0
- package/lib/SkeletonText/index.d.ts +3 -0
- package/lib/SkeletonText/index.d.ts.map +1 -0
- package/lib/Spinner/Spinner.d.ts +1 -1
- package/lib/Spinner/Spinner.d.ts.map +1 -1
- package/lib/Spinner/Spinner.js +13 -51
- package/lib/SplitPageLayout/SplitPageLayout.d.ts +1 -2
- package/lib/SplitPageLayout/SplitPageLayout.d.ts.map +1 -1
- package/{lib-esm/Stack/Stack-83ac2229.css → lib/Stack/Stack-9e7b935d.css} +2 -2
- package/lib/Stack/Stack-9e7b935d.css.map +1 -0
- package/lib/Stack/Stack.d.ts +5 -0
- package/lib/Stack/Stack.d.ts.map +1 -1
- package/lib/Stack/Stack.js +125 -112
- package/lib/Stack/Stack.module.css.js +1 -1
- package/lib/StateLabel/StateLabel-50420ff5.css +2 -0
- package/lib/StateLabel/StateLabel-50420ff5.css.map +1 -0
- package/lib/StateLabel/StateLabel.d.ts +7 -7
- package/lib/StateLabel/StateLabel.d.ts.map +1 -1
- package/lib/StateLabel/StateLabel.js +56 -130
- package/lib/StateLabel/StateLabel.module.css.js +7 -0
- package/lib/SubNav/SubNav.d.ts +8 -16
- package/lib/SubNav/SubNav.d.ts.map +1 -1
- package/lib/SubNav/SubNav.js +74 -215
- package/lib/TabNav/TabNav-83c6145e.css +2 -0
- package/lib/TabNav/TabNav-83c6145e.css.map +1 -0
- package/lib/TabNav/TabNav.module.css.js +1 -1
- package/lib/Text/Text.d.ts.map +1 -1
- package/lib/Text/Text.js +2 -3
- package/lib/TextInput/TextInput.d.ts +1 -1
- package/lib/TextInput/TextInput.d.ts.map +1 -1
- package/lib/TextInputWithTokens/TextInputWithTokens.d.ts +6 -0
- package/lib/TextInputWithTokens/TextInputWithTokens.d.ts.map +1 -1
- package/lib/TextInputWithTokens/TextInputWithTokens.js +343 -331
- package/lib/Textarea/Textarea.d.ts +24 -0
- package/lib/Textarea/Textarea.d.ts.map +1 -1
- package/lib/Textarea/Textarea.js +72 -44
- package/lib/Timeline/Timeline.d.ts +1 -1
- package/lib/Timeline/Timeline.d.ts.map +1 -1
- package/lib/Timeline/Timeline.js +92 -264
- package/lib/ToggleSwitch/ToggleSwitch-4b23d166.css +2 -0
- package/lib/ToggleSwitch/ToggleSwitch-4b23d166.css.map +1 -0
- package/lib/ToggleSwitch/ToggleSwitch.d.ts +14 -5
- package/lib/ToggleSwitch/ToggleSwitch.d.ts.map +1 -1
- package/lib/ToggleSwitch/ToggleSwitch.js +263 -275
- package/lib/ToggleSwitch/ToggleSwitch.module.css.js +7 -0
- package/lib/ToggleSwitch/ToggleSwitchStoryWrapper.d.ts.map +1 -1
- package/lib/Token/IssueLabelToken-0dbbbcdf.css +2 -0
- package/lib/Token/IssueLabelToken-0dbbbcdf.css.map +1 -0
- package/lib/Token/IssueLabelToken.d.ts.map +1 -1
- package/lib/Token/IssueLabelToken.js +7 -65
- package/lib/Token/IssueLabelToken.module.css.js +1 -1
- package/lib/Token/Token.d.ts.map +1 -1
- package/lib/Token/Token.js +120 -128
- package/lib/Token/TokenBase.js +78 -83
- package/lib/Token/_RemoveTokenButton.js +106 -26
- package/lib/Token/index.d.ts +0 -1
- package/lib/Token/index.d.ts.map +1 -1
- package/lib/Tooltip/Tooltip.js +15 -17
- package/lib/TooltipV2/Tooltip-5a80d7b2.css +2 -0
- package/lib/TooltipV2/Tooltip-5a80d7b2.css.map +1 -0
- package/lib/TooltipV2/Tooltip.d.ts.map +1 -1
- package/lib/TooltipV2/Tooltip.js +3 -3
- package/lib/TooltipV2/Tooltip.module.css.js +1 -1
- package/lib/TreeView/TreeView.js +20 -22
- package/lib/TreeView/shared.js +2 -2
- package/lib/VisuallyHidden/VisuallyHidden.d.ts +2 -3
- package/lib/VisuallyHidden/VisuallyHidden.d.ts.map +1 -1
- package/lib/VisuallyHidden/VisuallyHidden.js +17 -51
- package/lib/_VisuallyHidden-5c0a2499.css +2 -0
- package/lib/_VisuallyHidden-5c0a2499.css.map +1 -0
- package/lib/_VisuallyHidden.d.ts +3 -2
- package/lib/_VisuallyHidden.d.ts.map +1 -1
- package/lib/_VisuallyHidden.js +63 -26
- package/lib/_VisuallyHidden.module.css.js +7 -0
- package/lib/deprecated/ActionList/List.d.ts.map +1 -1
- package/lib/deprecated/ActionList/List.js +115 -138
- package/lib/deprecated/ActionMenu.js +19 -21
- package/lib/deprecated/UnderlineNav/UnderlineNav.d.ts +2 -3
- package/lib/deprecated/UnderlineNav/UnderlineNav.d.ts.map +1 -1
- package/lib/deprecated/UnderlineNav/UnderlineNav.js +2 -3
- package/lib/deprecated/index.d.ts +2 -0
- package/lib/deprecated/index.d.ts.map +1 -1
- package/lib/deprecated/index.js +2 -0
- package/lib/experimental/IssueLabel/IssueLabel-6581d1bd.css +2 -0
- package/lib/experimental/IssueLabel/IssueLabel-6581d1bd.css.map +1 -0
- package/lib/experimental/IssueLabel/IssueLabel.d.ts +28 -13
- package/lib/experimental/IssueLabel/IssueLabel.d.ts.map +1 -1
- package/lib/experimental/IssueLabel/IssueLabel.js +129 -135
- package/lib/experimental/IssueLabel/IssueLabel.module.css.js +1 -1
- package/lib/experimental/UnderlinePanels/UnderlinePanels.d.ts.map +1 -1
- package/lib/experimental/UnderlinePanels/UnderlinePanels.js +30 -40
- package/lib/experimental/index.d.ts +6 -1
- package/lib/experimental/index.d.ts.map +1 -1
- package/lib/experimental/index.js +4 -4
- package/lib/hooks/useMenuKeyboardNavigation.js +23 -43
- package/lib/hooks/useMnemonics.js +37 -77
- package/lib/hooks/useOpenAndCloseFocus.js +7 -14
- package/lib/hooks/useOverflow.js +7 -11
- package/lib/hooks/useScrollFlash.js +25 -14
- package/lib/index.d.ts +6 -9
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +10 -16
- package/lib/internal/components/BoxWithFallback.js +40 -35
- package/lib/internal/components/ButtonReset-904f2483.css +2 -0
- package/lib/internal/components/ButtonReset-904f2483.css.map +1 -0
- package/lib/internal/components/ButtonReset.d.ts +1 -2
- package/lib/internal/components/ButtonReset.d.ts.map +1 -1
- package/lib/internal/components/ButtonReset.js +49 -13
- package/lib/internal/components/ButtonReset.module.css.js +7 -0
- package/lib/internal/components/Caret-e686f04c.css +2 -0
- package/lib/internal/components/Caret-e686f04c.css.map +1 -0
- package/{lib-esm → lib/internal/components}/Caret.d.ts +1 -3
- package/lib/internal/components/Caret.d.ts.map +1 -0
- package/lib/{Caret.js → internal/components/Caret.js} +14 -48
- package/lib/internal/components/Caret.module.css.js +7 -0
- package/lib/internal/components/LiveRegion.js +8 -10
- package/lib/internal/components/{TextInputWrapper-ca608f70.css → TextInputWrapper-889df5d3.css} +2 -2
- package/{lib-esm/internal/components/TextInputWrapper-ca608f70.css.map → lib/internal/components/TextInputWrapper-889df5d3.css.map} +1 -1
- package/lib/internal/components/TextInputWrapper.module.css.js +1 -1
- package/lib/internal/components/UnderlineTabbedInterface.d.ts.map +1 -1
- package/lib/internal/components/UnderlineTabbedInterface.js +60 -108
- package/lib/internal/utils/getGlobalFocusStyles.js +1 -1
- package/lib/live-region/Announce.js +2 -2
- package/lib/test-helpers.js +3 -0
- package/lib/utils/form-story-helpers.d.ts +1 -1
- package/lib/utils/form-story-helpers.d.ts.map +1 -1
- package/lib-esm/ActionList/ActionList-167cf6c7.css +2 -0
- package/lib-esm/ActionList/ActionList-167cf6c7.css.map +1 -0
- package/lib-esm/ActionList/ActionList.module.css.js +2 -2
- package/lib-esm/ActionList/ActionListContainerContext.d.ts +1 -1
- package/lib-esm/ActionList/Description.js +1 -2
- package/lib-esm/ActionList/Divider.js +1 -2
- package/lib-esm/ActionList/Group.js +1 -6
- package/lib-esm/ActionList/Item.js +6 -3
- package/lib-esm/ActionList/LinkItem.d.ts +1 -1
- package/lib-esm/ActionList/LinkItem.js +3 -2
- package/lib-esm/ActionList/List.js +3 -5
- package/lib-esm/ActionList/Selection.js +2 -1
- package/lib-esm/ActionList/Visuals.js +0 -7
- package/lib-esm/ActionList/shared.d.ts +2 -1
- package/lib-esm/Autocomplete/AutocompleteMenu.js +1 -1
- package/lib-esm/Avatar/Avatar.js +39 -41
- package/lib-esm/AvatarStack/AvatarStack-802bdd7c.css +2 -0
- package/lib-esm/AvatarStack/AvatarStack-802bdd7c.css.map +1 -0
- package/lib-esm/AvatarStack/AvatarStack.d.ts +4 -3
- package/lib-esm/AvatarStack/AvatarStack.js +10 -6
- package/lib-esm/AvatarStack/AvatarStack.module.css.js +1 -1
- package/lib-esm/Banner/Banner-6396546f.css +2 -0
- package/lib-esm/Banner/Banner-6396546f.css.map +1 -0
- package/lib-esm/Banner/Banner.js +3 -1
- package/lib-esm/Banner/Banner.module.css.js +2 -2
- package/lib-esm/{BaseStyles-7880c337.css → BaseStyles-79fd37c4.css} +2 -2
- package/lib-esm/BaseStyles-79fd37c4.css.map +1 -0
- package/lib-esm/BaseStyles.module.css.js +1 -1
- package/lib-esm/Blankslate/{Blankslate-a68ed307.css → Blankslate-2be5efdc.css} +2 -2
- package/lib-esm/Blankslate/Blankslate-2be5efdc.css.map +1 -0
- package/lib-esm/Blankslate/Blankslate.js +38 -40
- package/lib-esm/Blankslate/Blankslate.module.css.js +1 -1
- package/lib-esm/BranchName/BranchName.d.ts +6 -3
- package/lib-esm/BranchName/BranchName.js +1 -3
- package/lib-esm/Breadcrumbs/Breadcrumbs.js +5 -5
- package/lib-esm/Button/{ButtonBase-ec78dde7.css → ButtonBase-0a7871f4.css} +2 -2
- package/lib-esm/Button/{ButtonBase-ec78dde7.css.map → ButtonBase-0a7871f4.css.map} +1 -1
- package/lib-esm/Button/ButtonBase.js +2 -2
- package/lib-esm/Button/ButtonBase.module.css.js +1 -1
- package/lib-esm/ButtonGroup/ButtonGroup.js +24 -61
- package/lib-esm/Checkbox/Checkbox.js +187 -56
- package/lib-esm/CircleBadge/CircleBadge.d.ts +4 -0
- package/lib-esm/CircleBadge/CircleBadge.js +4 -0
- package/lib-esm/ConfirmationDialog/ConfirmationDialog.d.ts +8 -0
- package/lib-esm/ConfirmationDialog/ConfirmationDialog.js +6 -2
- package/lib-esm/CounterLabel/CounterLabel.js +43 -87
- package/lib-esm/DataTable/Pagination-b6f8418c.css +2 -0
- package/lib-esm/DataTable/Pagination-b6f8418c.css.map +1 -0
- package/lib-esm/DataTable/Pagination.js +81 -84
- package/lib-esm/DataTable/Pagination.module.css.js +5 -0
- package/lib-esm/DataTable/Table.d.ts +1 -1
- package/lib-esm/DataTable/Table.js +18 -26
- package/lib-esm/DataTable/storyHelpers.d.ts +1 -1
- package/lib-esm/DataTable/useTable.js +64 -83
- package/lib-esm/Details/Details.d.ts +2 -3
- package/lib-esm/Details/Details.js +33 -82
- package/lib-esm/FeatureFlags/DefaultFeatureFlags.js +2 -3
- package/lib-esm/FeatureFlags/FeatureFlags.js +10 -12
- package/lib-esm/FilteredActionList/FilteredActionList-96b126d7.css +2 -0
- package/lib-esm/FilteredActionList/FilteredActionList-96b126d7.css.map +1 -0
- package/lib-esm/FilteredActionList/{FilteredActionListWithModernActionList.d.ts → FilteredActionList.d.ts} +9 -4
- package/lib-esm/FilteredActionList/{FilteredActionListWithModernActionList.js → FilteredActionList.js} +156 -42
- package/lib-esm/FilteredActionList/FilteredActionList.module.css.js +2 -2
- package/lib-esm/FilteredActionList/FilteredActionListLoaders.js +1 -1
- package/lib-esm/FilteredActionList/index.d.ts +3 -2
- package/lib-esm/FilteredActionList/types.d.ts +159 -0
- package/lib-esm/FilteredActionList/useAnnouncements.d.ts +5 -2
- package/lib-esm/FilteredActionList/useAnnouncements.js +112 -65
- package/lib-esm/FormControl/FormControl.js +3 -12
- package/lib-esm/Header/Header.js +64 -170
- package/lib-esm/InlineMessage/InlineMessage.d.ts +1 -1
- package/lib-esm/InlineMessage/InlineMessage.js +31 -69
- package/lib-esm/Label/Label.js +10 -8
- package/lib-esm/LabelGroup/LabelGroup.d.ts +1 -2
- package/lib-esm/LabelGroup/LabelGroup.js +13 -16
- package/lib-esm/NavList/NavList.js +219 -53
- package/lib-esm/Overlay/Overlay-40e80d0e.css +2 -0
- package/lib-esm/Overlay/Overlay-40e80d0e.css.map +1 -0
- package/lib-esm/Overlay/Overlay.module.css.js +1 -1
- package/lib-esm/PageHeader/PageHeader.js +21 -30
- package/lib-esm/PageLayout/PageLayout.js +466 -476
- package/lib-esm/Pagehead/Pagehead.d.ts +1 -1
- package/lib-esm/Pagehead/Pagehead.js +2 -11
- package/lib-esm/PointerBox/PointerBox.d.ts +9 -1
- package/lib-esm/PointerBox/PointerBox.js +5 -1
- package/lib-esm/Popover/Popover-b609f443.css +2 -0
- package/lib-esm/Popover/Popover-b609f443.css.map +1 -0
- package/lib-esm/Popover/Popover.d.ts +5 -0
- package/lib-esm/Popover/Popover.js +40 -21
- package/lib-esm/Popover/Popover.module.css.js +1 -1
- package/lib-esm/Portal/Portal.js +1 -0
- package/lib-esm/ProgressBar/ProgressBar-36f689cb.css +2 -0
- package/lib-esm/ProgressBar/ProgressBar-36f689cb.css.map +1 -0
- package/lib-esm/ProgressBar/ProgressBar.d.ts +3 -4
- package/lib-esm/ProgressBar/ProgressBar.js +53 -49
- package/lib-esm/ProgressBar/ProgressBar.module.css.js +1 -1
- package/lib-esm/ProgressBar/index.d.ts +2 -2
- package/lib-esm/Radio/{Radio-b2a92b7d.css → Radio-df9a5c02.css} +2 -2
- package/lib-esm/Radio/{Radio-b2a92b7d.css.map → Radio-df9a5c02.css.map} +1 -1
- package/lib-esm/Radio/Radio.js +40 -91
- package/lib-esm/Radio/Radio.module.css.js +1 -1
- package/lib-esm/SegmentedControl/SegmentedControl.js +23 -25
- package/lib-esm/SegmentedControl/SegmentedControlButton.js +70 -72
- package/lib-esm/SegmentedControl/SegmentedControlIconButton.js +110 -112
- package/lib-esm/Select/Select.d.ts +1 -1
- package/lib-esm/Select/Select.js +79 -83
- package/lib-esm/SelectPanel/SelectPanel-e11ce210.css +2 -0
- package/lib-esm/SelectPanel/SelectPanel-e11ce210.css.map +1 -0
- package/lib-esm/SelectPanel/SelectPanel.d.ts +8 -4
- package/lib-esm/SelectPanel/SelectPanel.js +64 -27
- package/lib-esm/SelectPanel/SelectPanel.module.css.js +2 -2
- package/lib-esm/SelectPanel/SelectPanelMessage.d.ts +13 -0
- package/lib-esm/SelectPanel/SelectPanelMessage.js +10 -4
- package/lib-esm/SelectPanel/index.d.ts +1 -0
- package/lib-esm/SideNav.d.ts +2 -3
- package/lib-esm/SideNav.js +4 -11
- package/lib-esm/Skeleton/SkeletonBox.d.ts +2 -2
- package/lib-esm/Skeleton/SkeletonBox.js +25 -24
- package/lib-esm/SkeletonAvatar/SkeletonAvatar-e00fff32.css +2 -0
- package/lib-esm/SkeletonAvatar/SkeletonAvatar-e00fff32.css.map +1 -0
- package/lib-esm/SkeletonAvatar/SkeletonAvatar.d.ts +12 -0
- package/lib-esm/{experimental/Skeleton → SkeletonAvatar}/SkeletonAvatar.js +5 -5
- package/lib-esm/SkeletonAvatar/SkeletonAvatar.module.css.js +5 -0
- package/lib-esm/SkeletonAvatar/index.d.ts +3 -0
- package/lib-esm/SkeletonText/SkeletonText-5cf908c1.css +2 -0
- package/lib-esm/SkeletonText/SkeletonText-5cf908c1.css.map +1 -0
- package/lib-esm/{experimental/Skeleton → SkeletonText}/SkeletonText.d.ts +5 -4
- package/lib-esm/SkeletonText/SkeletonText.js +140 -0
- package/lib-esm/SkeletonText/SkeletonText.module.css.js +5 -0
- package/lib-esm/SkeletonText/index.d.ts +3 -0
- package/lib-esm/Spinner/Spinner.d.ts +1 -1
- package/lib-esm/Spinner/Spinner.js +13 -47
- package/lib-esm/SplitPageLayout/SplitPageLayout.d.ts +1 -2
- package/{lib/Stack/Stack-83ac2229.css → lib-esm/Stack/Stack-9e7b935d.css} +2 -2
- package/lib-esm/Stack/Stack-9e7b935d.css.map +1 -0
- package/lib-esm/Stack/Stack.d.ts +5 -0
- package/lib-esm/Stack/Stack.js +125 -112
- package/lib-esm/Stack/Stack.module.css.js +1 -1
- package/lib-esm/StateLabel/StateLabel-50420ff5.css +2 -0
- package/lib-esm/StateLabel/StateLabel-50420ff5.css.map +1 -0
- package/lib-esm/StateLabel/StateLabel.d.ts +7 -7
- package/lib-esm/StateLabel/StateLabel.js +57 -127
- package/lib-esm/StateLabel/StateLabel.module.css.js +5 -0
- package/lib-esm/SubNav/SubNav.d.ts +8 -16
- package/lib-esm/SubNav/SubNav.js +74 -215
- package/lib-esm/TabNav/TabNav-83c6145e.css +2 -0
- package/lib-esm/TabNav/TabNav-83c6145e.css.map +1 -0
- package/lib-esm/TabNav/TabNav.module.css.js +1 -1
- package/lib-esm/Text/Text.js +2 -3
- package/lib-esm/TextInput/TextInput.d.ts +1 -1
- package/lib-esm/TextInputWithTokens/TextInputWithTokens.d.ts +6 -0
- package/lib-esm/TextInputWithTokens/TextInputWithTokens.js +343 -331
- package/lib-esm/Textarea/Textarea.d.ts +24 -0
- package/lib-esm/Textarea/Textarea.js +72 -44
- package/lib-esm/Timeline/Timeline.d.ts +1 -1
- package/lib-esm/Timeline/Timeline.js +92 -264
- package/lib-esm/ToggleSwitch/ToggleSwitch-4b23d166.css +2 -0
- package/lib-esm/ToggleSwitch/ToggleSwitch-4b23d166.css.map +1 -0
- package/lib-esm/ToggleSwitch/ToggleSwitch.d.ts +14 -5
- package/lib-esm/ToggleSwitch/ToggleSwitch.js +263 -274
- package/lib-esm/ToggleSwitch/ToggleSwitch.module.css.js +5 -0
- package/lib-esm/Token/IssueLabelToken-0dbbbcdf.css +2 -0
- package/lib-esm/Token/IssueLabelToken-0dbbbcdf.css.map +1 -0
- package/lib-esm/Token/IssueLabelToken.js +7 -65
- package/lib-esm/Token/IssueLabelToken.module.css.js +1 -1
- package/lib-esm/Token/Token.js +120 -128
- package/lib-esm/Token/TokenBase.js +78 -83
- package/lib-esm/Token/_RemoveTokenButton.js +106 -26
- package/lib-esm/Token/index.d.ts +0 -1
- package/lib-esm/Tooltip/Tooltip.js +15 -17
- package/lib-esm/TooltipV2/Tooltip-5a80d7b2.css +2 -0
- package/lib-esm/TooltipV2/Tooltip-5a80d7b2.css.map +1 -0
- package/lib-esm/TooltipV2/Tooltip.js +3 -3
- package/lib-esm/TooltipV2/Tooltip.module.css.js +1 -1
- package/lib-esm/TreeView/TreeView.js +20 -22
- package/lib-esm/TreeView/shared.js +2 -2
- package/lib-esm/VisuallyHidden/VisuallyHidden.d.ts +2 -3
- package/lib-esm/VisuallyHidden/VisuallyHidden.js +17 -51
- package/lib-esm/_VisuallyHidden-5c0a2499.css +2 -0
- package/lib-esm/_VisuallyHidden-5c0a2499.css.map +1 -0
- package/lib-esm/_VisuallyHidden.d.ts +3 -2
- package/lib-esm/_VisuallyHidden.js +63 -22
- package/lib-esm/_VisuallyHidden.module.css.js +5 -0
- package/lib-esm/deprecated/ActionList/List.js +116 -138
- package/lib-esm/deprecated/ActionMenu.js +19 -21
- package/lib-esm/deprecated/UnderlineNav/UnderlineNav.d.ts +2 -3
- package/lib-esm/deprecated/UnderlineNav/UnderlineNav.js +2 -3
- package/lib-esm/deprecated/index.d.ts +2 -0
- package/lib-esm/deprecated/index.js +1 -0
- package/lib-esm/experimental/IssueLabel/IssueLabel-6581d1bd.css +2 -0
- package/lib-esm/experimental/IssueLabel/IssueLabel-6581d1bd.css.map +1 -0
- package/lib-esm/experimental/IssueLabel/IssueLabel.d.ts +28 -13
- package/lib-esm/experimental/IssueLabel/IssueLabel.js +129 -135
- package/lib-esm/experimental/IssueLabel/IssueLabel.module.css.js +1 -1
- package/lib-esm/experimental/UnderlinePanels/UnderlinePanels.js +30 -40
- package/lib-esm/experimental/index.d.ts +6 -1
- package/lib-esm/experimental/index.js +3 -3
- package/lib-esm/hooks/useMenuKeyboardNavigation.js +23 -43
- package/lib-esm/hooks/useMnemonics.js +37 -77
- package/lib-esm/hooks/useOpenAndCloseFocus.js +7 -14
- package/lib-esm/hooks/useOverflow.js +7 -11
- package/lib-esm/hooks/useScrollFlash.js +25 -14
- package/lib-esm/index.d.ts +6 -9
- package/lib-esm/index.js +1 -4
- package/lib-esm/internal/components/BoxWithFallback.js +40 -35
- package/lib-esm/internal/components/ButtonReset-904f2483.css +2 -0
- package/lib-esm/internal/components/ButtonReset-904f2483.css.map +1 -0
- package/lib-esm/internal/components/ButtonReset.d.ts +1 -2
- package/lib-esm/internal/components/ButtonReset.js +49 -9
- package/lib-esm/internal/components/ButtonReset.module.css.js +5 -0
- package/lib-esm/internal/components/Caret-e686f04c.css +2 -0
- package/lib-esm/internal/components/Caret-e686f04c.css.map +1 -0
- package/{lib → lib-esm/internal/components}/Caret.d.ts +1 -3
- package/lib-esm/{Caret.js → internal/components/Caret.js} +14 -44
- package/lib-esm/internal/components/Caret.module.css.js +5 -0
- package/lib-esm/internal/components/LiveRegion.js +8 -10
- package/lib-esm/internal/components/{TextInputWrapper-ca608f70.css → TextInputWrapper-889df5d3.css} +2 -2
- package/{lib/internal/components/TextInputWrapper-ca608f70.css.map → lib-esm/internal/components/TextInputWrapper-889df5d3.css.map} +1 -1
- package/lib-esm/internal/components/TextInputWrapper.module.css.js +1 -1
- package/lib-esm/internal/components/UnderlineTabbedInterface.js +60 -108
- package/lib-esm/internal/utils/getGlobalFocusStyles.js +1 -1
- package/lib-esm/live-region/Announce.js +2 -2
- package/lib-esm/test-helpers.js +3 -0
- package/lib-esm/utils/form-story-helpers.d.ts +1 -1
- package/package.json +31 -34
- package/lib/ActionList/ActionList-49cba224.css +0 -2
- package/lib/ActionList/ActionList-49cba224.css.map +0 -1
- package/lib/AvatarPair/AvatarPair-68990abe.css +0 -2
- package/lib/AvatarPair/AvatarPair-68990abe.css.map +0 -1
- package/lib/AvatarPair/AvatarPair.d.ts +0 -8
- package/lib/AvatarPair/AvatarPair.d.ts.map +0 -1
- package/lib/AvatarPair/AvatarPair.js +0 -92
- package/lib/AvatarPair/AvatarPair.module.css.js +0 -7
- package/lib/AvatarPair/index.d.ts +0 -3
- package/lib/AvatarPair/index.d.ts.map +0 -1
- package/lib/AvatarStack/AvatarStack-f0712fca.css +0 -2
- package/lib/AvatarStack/AvatarStack-f0712fca.css.map +0 -1
- package/lib/Banner/Banner-43e2cd6a.css +0 -2
- package/lib/Banner/Banner-43e2cd6a.css.map +0 -1
- package/lib/BaseStyles-7880c337.css.map +0 -1
- package/lib/Blankslate/Blankslate-a68ed307.css.map +0 -1
- package/lib/Caret.d.ts.map +0 -1
- package/lib/CircleOcticon/CircleOcticon.d.ts +0 -13
- package/lib/CircleOcticon/CircleOcticon.d.ts.map +0 -1
- package/lib/CircleOcticon/CircleOcticon.js +0 -96
- package/lib/CircleOcticon/index.d.ts +0 -3
- package/lib/CircleOcticon/index.d.ts.map +0 -1
- package/lib/FilteredActionList/FilteredActionList-e1dde781.css +0 -2
- package/lib/FilteredActionList/FilteredActionList-e1dde781.css.map +0 -1
- package/lib/FilteredActionList/FilteredActionListEntry.d.ts +0 -7
- package/lib/FilteredActionList/FilteredActionListEntry.d.ts.map +0 -1
- package/lib/FilteredActionList/FilteredActionListEntry.js +0 -40
- package/lib/FilteredActionList/FilteredActionListWithDeprecatedActionList.d.ts +0 -23
- package/lib/FilteredActionList/FilteredActionListWithDeprecatedActionList.d.ts.map +0 -1
- package/lib/FilteredActionList/FilteredActionListWithDeprecatedActionList.js +0 -219
- package/lib/FilteredActionList/FilteredActionListWithModernActionList.d.ts.map +0 -1
- package/lib/Overlay/Overlay-aeb12fc3.css +0 -2
- package/lib/Overlay/Overlay-aeb12fc3.css.map +0 -1
- package/lib/Popover/Popover-e16fd997.css +0 -2
- package/lib/Popover/Popover-e16fd997.css.map +0 -1
- package/lib/ProgressBar/ProgressBar-430cdef7.css +0 -2
- package/lib/ProgressBar/ProgressBar-430cdef7.css.map +0 -1
- package/lib/SelectPanel/SelectPanel-bfde365c.css +0 -2
- package/lib/SelectPanel/SelectPanel-bfde365c.css.map +0 -1
- package/lib/SelectPanel/types.d.ts +0 -4
- package/lib/SelectPanel/types.d.ts.map +0 -1
- package/lib/Stack/Stack-83ac2229.css.map +0 -1
- package/lib/TabNav/TabNav-9753d6ed.css +0 -2
- package/lib/TabNav/TabNav-9753d6ed.css.map +0 -1
- package/lib/Token/AvatarToken-ff45cc85.css +0 -2
- package/lib/Token/AvatarToken-ff45cc85.css.map +0 -1
- package/lib/Token/AvatarToken.d.ts +0 -8
- package/lib/Token/AvatarToken.d.ts.map +0 -1
- package/lib/Token/AvatarToken.js +0 -99
- package/lib/Token/AvatarToken.module.css.js +0 -7
- package/lib/Token/IssueLabelToken-99c9b914.css +0 -2
- package/lib/Token/IssueLabelToken-99c9b914.css.map +0 -1
- package/lib/TooltipV2/Tooltip-59734b6f.css +0 -2
- package/lib/TooltipV2/Tooltip-59734b6f.css.map +0 -1
- package/lib/experimental/IssueLabel/IssueLabel-5507fbf3.css +0 -2
- package/lib/experimental/IssueLabel/IssueLabel-5507fbf3.css.map +0 -1
- package/lib/experimental/Skeleton/SkeletonAvatar-e00fff32.css +0 -2
- package/lib/experimental/Skeleton/SkeletonAvatar-e00fff32.css.map +0 -1
- package/lib/experimental/Skeleton/SkeletonAvatar.d.ts +0 -8
- package/lib/experimental/Skeleton/SkeletonAvatar.d.ts.map +0 -1
- package/lib/experimental/Skeleton/SkeletonText-5cf908c1.css +0 -2
- package/lib/experimental/Skeleton/SkeletonText-5cf908c1.css.map +0 -1
- package/lib/experimental/Skeleton/SkeletonText.d.ts.map +0 -1
- package/lib/experimental/Skeleton/SkeletonText.js +0 -149
- package/lib/experimental/Skeleton/SkeletonText.module.css.js +0 -7
- package/lib/experimental/Skeleton/index.d.ts +0 -4
- package/lib/experimental/Skeleton/index.d.ts.map +0 -1
- package/lib/internal/utils/toggleStyledComponent.d.ts +0 -20
- package/lib/internal/utils/toggleStyledComponent.d.ts.map +0 -1
- package/lib/internal/utils/toggleSxComponent.d.ts +0 -15
- package/lib/internal/utils/toggleSxComponent.d.ts.map +0 -1
- package/lib/internal/utils/toggleSxComponent.js +0 -83
- package/lib/node_modules/@github/mini-throttle/dist/index.js +0 -43
- package/lib-esm/ActionList/ActionList-49cba224.css +0 -2
- package/lib-esm/ActionList/ActionList-49cba224.css.map +0 -1
- package/lib-esm/AvatarPair/AvatarPair-68990abe.css +0 -2
- package/lib-esm/AvatarPair/AvatarPair-68990abe.css.map +0 -1
- package/lib-esm/AvatarPair/AvatarPair.d.ts +0 -8
- package/lib-esm/AvatarPair/AvatarPair.js +0 -86
- package/lib-esm/AvatarPair/AvatarPair.module.css.js +0 -5
- package/lib-esm/AvatarPair/index.d.ts +0 -3
- package/lib-esm/AvatarStack/AvatarStack-f0712fca.css +0 -2
- package/lib-esm/AvatarStack/AvatarStack-f0712fca.css.map +0 -1
- package/lib-esm/Banner/Banner-43e2cd6a.css +0 -2
- package/lib-esm/Banner/Banner-43e2cd6a.css.map +0 -1
- package/lib-esm/BaseStyles-7880c337.css.map +0 -1
- package/lib-esm/Blankslate/Blankslate-a68ed307.css.map +0 -1
- package/lib-esm/CircleOcticon/CircleOcticon.d.ts +0 -13
- package/lib-esm/CircleOcticon/CircleOcticon.js +0 -94
- package/lib-esm/CircleOcticon/index.d.ts +0 -3
- package/lib-esm/FilteredActionList/FilteredActionList-e1dde781.css +0 -2
- package/lib-esm/FilteredActionList/FilteredActionList-e1dde781.css.map +0 -1
- package/lib-esm/FilteredActionList/FilteredActionListEntry.d.ts +0 -7
- package/lib-esm/FilteredActionList/FilteredActionListEntry.js +0 -38
- package/lib-esm/FilteredActionList/FilteredActionListWithDeprecatedActionList.d.ts +0 -23
- package/lib-esm/FilteredActionList/FilteredActionListWithDeprecatedActionList.js +0 -213
- package/lib-esm/Overlay/Overlay-aeb12fc3.css +0 -2
- package/lib-esm/Overlay/Overlay-aeb12fc3.css.map +0 -1
- package/lib-esm/Popover/Popover-e16fd997.css +0 -2
- package/lib-esm/Popover/Popover-e16fd997.css.map +0 -1
- package/lib-esm/ProgressBar/ProgressBar-430cdef7.css +0 -2
- package/lib-esm/ProgressBar/ProgressBar-430cdef7.css.map +0 -1
- package/lib-esm/SelectPanel/SelectPanel-bfde365c.css +0 -2
- package/lib-esm/SelectPanel/SelectPanel-bfde365c.css.map +0 -1
- package/lib-esm/SelectPanel/types.d.ts +0 -4
- package/lib-esm/Stack/Stack-83ac2229.css.map +0 -1
- package/lib-esm/TabNav/TabNav-9753d6ed.css +0 -2
- package/lib-esm/TabNav/TabNav-9753d6ed.css.map +0 -1
- package/lib-esm/Token/AvatarToken-ff45cc85.css +0 -2
- package/lib-esm/Token/AvatarToken-ff45cc85.css.map +0 -1
- package/lib-esm/Token/AvatarToken.d.ts +0 -8
- package/lib-esm/Token/AvatarToken.js +0 -97
- package/lib-esm/Token/AvatarToken.module.css.js +0 -5
- package/lib-esm/Token/IssueLabelToken-99c9b914.css +0 -2
- package/lib-esm/Token/IssueLabelToken-99c9b914.css.map +0 -1
- package/lib-esm/TooltipV2/Tooltip-59734b6f.css +0 -2
- package/lib-esm/TooltipV2/Tooltip-59734b6f.css.map +0 -1
- package/lib-esm/experimental/IssueLabel/IssueLabel-5507fbf3.css +0 -2
- package/lib-esm/experimental/IssueLabel/IssueLabel-5507fbf3.css.map +0 -1
- package/lib-esm/experimental/Skeleton/SkeletonAvatar-e00fff32.css +0 -2
- package/lib-esm/experimental/Skeleton/SkeletonAvatar-e00fff32.css.map +0 -1
- package/lib-esm/experimental/Skeleton/SkeletonAvatar.d.ts +0 -8
- package/lib-esm/experimental/Skeleton/SkeletonAvatar.module.css.js +0 -5
- package/lib-esm/experimental/Skeleton/SkeletonText-5cf908c1.css +0 -2
- package/lib-esm/experimental/Skeleton/SkeletonText-5cf908c1.css.map +0 -1
- package/lib-esm/experimental/Skeleton/SkeletonText.js +0 -143
- package/lib-esm/experimental/Skeleton/SkeletonText.module.css.js +0 -5
- package/lib-esm/experimental/Skeleton/index.d.ts +0 -4
- package/lib-esm/internal/utils/toggleStyledComponent.d.ts +0 -20
- package/lib-esm/internal/utils/toggleSxComponent.d.ts +0 -15
- package/lib-esm/internal/utils/toggleSxComponent.js +0 -77
- package/lib-esm/node_modules/@github/mini-throttle/dist/index.js +0 -40
|
@@ -1,17 +1,32 @@
|
|
|
1
1
|
import type React from 'react';
|
|
2
|
-
|
|
3
|
-
type LabelColorVariant = '
|
|
4
|
-
|
|
2
|
+
type Hex = `#${string}`;
|
|
3
|
+
type LabelColorVariant = 'auburn' | 'blue' | 'brown' | 'coral' | 'cyan' | 'gray' | 'green' | 'indigo' | 'lemon' | 'lime' | 'olive' | 'orange' | 'pine' | 'pink' | 'plum' | 'purple' | 'red' | 'teal' | 'yellow';
|
|
4
|
+
type BaseProps = {
|
|
5
|
+
className?: string;
|
|
5
6
|
fillColor?: Hex;
|
|
6
7
|
variant?: LabelColorVariant;
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
8
|
+
};
|
|
9
|
+
type ButtonProps = React.ComponentPropsWithoutRef<'button'> & BaseProps & {
|
|
10
|
+
as?: never;
|
|
11
|
+
onClick: React.MouseEventHandler<HTMLButtonElement>;
|
|
12
|
+
};
|
|
13
|
+
type LinkProps = React.ComponentPropsWithoutRef<'a'> & BaseProps & {
|
|
14
|
+
as?: never;
|
|
15
|
+
href: string;
|
|
16
|
+
};
|
|
17
|
+
type SpanProps = Omit<React.ComponentPropsWithoutRef<'span'>, 'onClick'> & BaseProps & {
|
|
18
|
+
as?: never;
|
|
19
|
+
onClick?: never;
|
|
20
|
+
href?: never;
|
|
21
|
+
};
|
|
22
|
+
type IssueLabelAsProps<As extends React.ElementType> = {
|
|
23
|
+
as: As;
|
|
24
|
+
} & BaseProps & Omit<React.ComponentPropsWithoutRef<As>, keyof BaseProps>;
|
|
25
|
+
type IssueLabelProps<As extends React.ElementType> = SpanProps | LinkProps | ButtonProps | IssueLabelAsProps<As>;
|
|
26
|
+
declare function IssueLabel(props: SpanProps): React.ReactNode;
|
|
27
|
+
declare function IssueLabel(props: LinkProps): React.ReactNode;
|
|
28
|
+
declare function IssueLabel(props: ButtonProps): React.ReactNode;
|
|
29
|
+
declare function IssueLabel<As extends React.ElementType>(props: IssueLabelAsProps<As>): React.ReactNode;
|
|
30
|
+
export { IssueLabel };
|
|
31
|
+
export type { IssueLabelProps, Hex };
|
|
17
32
|
//# sourceMappingURL=IssueLabel.d.ts.map
|
|
@@ -1,184 +1,178 @@
|
|
|
1
1
|
import { c } from 'react-compiler-runtime';
|
|
2
|
-
import { getColorsFromHex } from './getColorFromHex.js';
|
|
3
|
-
import { useTheme } from '../../ThemeProvider.js';
|
|
4
2
|
import { clsx } from 'clsx';
|
|
3
|
+
import { useTheme } from '../../ThemeProvider.js';
|
|
4
|
+
import { getColorsFromHex } from './getColorFromHex.js';
|
|
5
5
|
import classes from './IssueLabel.module.css.js';
|
|
6
6
|
import { jsx } from 'react/jsx-runtime';
|
|
7
7
|
|
|
8
8
|
function IssueLabel(t0) {
|
|
9
|
-
const $ = c(
|
|
10
|
-
let
|
|
9
|
+
const $ = c(42);
|
|
10
|
+
let children;
|
|
11
11
|
let className;
|
|
12
12
|
let fillColor;
|
|
13
|
-
let
|
|
14
|
-
let
|
|
15
|
-
let onClick;
|
|
16
|
-
let onFocus;
|
|
17
|
-
let rest;
|
|
13
|
+
let props;
|
|
14
|
+
let style;
|
|
18
15
|
let t1;
|
|
19
|
-
let text;
|
|
20
16
|
if ($[0] !== t0) {
|
|
21
17
|
({
|
|
18
|
+
children,
|
|
22
19
|
className,
|
|
23
20
|
fillColor,
|
|
21
|
+
style,
|
|
24
22
|
variant: t1,
|
|
25
|
-
|
|
26
|
-
onClick,
|
|
27
|
-
onFocus,
|
|
28
|
-
text,
|
|
29
|
-
as,
|
|
30
|
-
id,
|
|
31
|
-
...rest
|
|
23
|
+
...props
|
|
32
24
|
} = t0);
|
|
33
25
|
$[0] = t0;
|
|
34
|
-
$[1] =
|
|
26
|
+
$[1] = children;
|
|
35
27
|
$[2] = className;
|
|
36
28
|
$[3] = fillColor;
|
|
37
|
-
$[4] =
|
|
38
|
-
$[5] =
|
|
39
|
-
$[6] =
|
|
40
|
-
$[7] = onFocus;
|
|
41
|
-
$[8] = rest;
|
|
42
|
-
$[9] = t1;
|
|
43
|
-
$[10] = text;
|
|
29
|
+
$[4] = props;
|
|
30
|
+
$[5] = style;
|
|
31
|
+
$[6] = t1;
|
|
44
32
|
} else {
|
|
45
|
-
|
|
33
|
+
children = $[1];
|
|
46
34
|
className = $[2];
|
|
47
35
|
fillColor = $[3];
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
onFocus = $[7];
|
|
52
|
-
rest = $[8];
|
|
53
|
-
t1 = $[9];
|
|
54
|
-
text = $[10];
|
|
36
|
+
props = $[4];
|
|
37
|
+
style = $[5];
|
|
38
|
+
t1 = $[6];
|
|
55
39
|
}
|
|
56
40
|
const variant = t1 === undefined ? "gray" : t1;
|
|
57
|
-
if (href && onClick) {
|
|
58
|
-
throw new Error("`href` and `onClick` cannot both be set. Choose either a link (`<a>`) or a button (`<button>`).");
|
|
59
|
-
}
|
|
60
41
|
const {
|
|
61
42
|
resolvedColorScheme
|
|
62
43
|
} = useTheme();
|
|
63
44
|
const mode = resolvedColorScheme !== null && resolvedColorScheme !== void 0 && resolvedColorScheme.startsWith("dark") ? "dark" : "light";
|
|
64
|
-
let T0;
|
|
65
45
|
let t2;
|
|
66
46
|
let t3;
|
|
67
47
|
let t4;
|
|
68
|
-
|
|
69
|
-
let t6;
|
|
70
|
-
let t7;
|
|
71
|
-
let t8;
|
|
72
|
-
let t9;
|
|
73
|
-
if ($[11] !== as || $[12] !== className || $[13] !== fillColor || $[14] !== href || $[15] !== id || $[16] !== mode || $[17] !== onClick || $[18] !== onFocus || $[19] !== resolvedColorScheme || $[20] !== rest || $[21] !== variant) {
|
|
48
|
+
if ($[7] !== className || $[8] !== fillColor || $[9] !== mode || $[10] !== resolvedColorScheme || $[11] !== style || $[12] !== variant) {
|
|
74
49
|
const bgColors = {
|
|
75
50
|
light: "#ffffff",
|
|
76
51
|
dark: "#0d1117"
|
|
77
52
|
};
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
53
|
+
if ($[16] !== className) {
|
|
54
|
+
t2 = clsx(className, classes.IssueLabel);
|
|
55
|
+
$[16] = className;
|
|
56
|
+
$[17] = t2;
|
|
81
57
|
} else {
|
|
82
|
-
|
|
83
|
-
Component = "a";
|
|
84
|
-
} else {
|
|
85
|
-
if (onClick) {
|
|
86
|
-
Component = "button";
|
|
87
|
-
}
|
|
88
|
-
}
|
|
58
|
+
t2 = $[17];
|
|
89
59
|
}
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
60
|
+
t3 = fillColor ? undefined : variant;
|
|
61
|
+
t4 = fillColor ? {
|
|
62
|
+
...style,
|
|
63
|
+
...getColorsFromHex(fillColor, resolvedColorScheme, bgColors[mode])
|
|
64
|
+
} : style;
|
|
65
|
+
$[7] = className;
|
|
66
|
+
$[8] = fillColor;
|
|
67
|
+
$[9] = mode;
|
|
68
|
+
$[10] = resolvedColorScheme;
|
|
69
|
+
$[11] = style;
|
|
70
|
+
$[12] = variant;
|
|
71
|
+
$[13] = t2;
|
|
72
|
+
$[14] = t3;
|
|
73
|
+
$[15] = t4;
|
|
74
|
+
} else {
|
|
75
|
+
t2 = $[13];
|
|
76
|
+
t3 = $[14];
|
|
77
|
+
t4 = $[15];
|
|
78
|
+
}
|
|
79
|
+
let t5;
|
|
80
|
+
if ($[18] !== t2 || $[19] !== t3 || $[20] !== t4) {
|
|
81
|
+
t5 = {
|
|
82
|
+
className: t2,
|
|
83
|
+
"data-variant": t3,
|
|
84
|
+
style: t4
|
|
85
|
+
};
|
|
86
|
+
$[18] = t2;
|
|
87
|
+
$[19] = t3;
|
|
88
|
+
$[20] = t4;
|
|
89
|
+
$[21] = t5;
|
|
90
|
+
} else {
|
|
91
|
+
t5 = $[21];
|
|
92
|
+
}
|
|
93
|
+
const sharedProps = t5;
|
|
94
|
+
if ("as" in props && props.as) {
|
|
95
|
+
let BaseComponent;
|
|
96
|
+
let rest;
|
|
97
|
+
if ($[22] !== props) {
|
|
98
|
+
({
|
|
99
|
+
as: BaseComponent,
|
|
100
|
+
...rest
|
|
101
|
+
} = props);
|
|
102
|
+
$[22] = props;
|
|
103
|
+
$[23] = BaseComponent;
|
|
104
|
+
$[24] = rest;
|
|
97
105
|
} else {
|
|
98
|
-
|
|
106
|
+
BaseComponent = $[23];
|
|
107
|
+
rest = $[24];
|
|
99
108
|
}
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
$[
|
|
110
|
-
$[
|
|
109
|
+
let t6;
|
|
110
|
+
if ($[25] !== BaseComponent || $[26] !== children || $[27] !== rest || $[28] !== sharedProps) {
|
|
111
|
+
t6 = /*#__PURE__*/jsx(BaseComponent, {
|
|
112
|
+
...rest,
|
|
113
|
+
...sharedProps,
|
|
114
|
+
children: children
|
|
115
|
+
});
|
|
116
|
+
$[25] = BaseComponent;
|
|
117
|
+
$[26] = children;
|
|
118
|
+
$[27] = rest;
|
|
119
|
+
$[28] = sharedProps;
|
|
120
|
+
$[29] = t6;
|
|
111
121
|
} else {
|
|
112
|
-
t6 = $[
|
|
122
|
+
t6 = $[29];
|
|
113
123
|
}
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
124
|
+
return t6;
|
|
125
|
+
}
|
|
126
|
+
if ("href" in props) {
|
|
127
|
+
let t6;
|
|
128
|
+
if ($[30] !== children || $[31] !== props || $[32] !== sharedProps) {
|
|
129
|
+
t6 = /*#__PURE__*/jsx("a", {
|
|
130
|
+
...props,
|
|
131
|
+
...sharedProps,
|
|
132
|
+
children: children
|
|
133
|
+
});
|
|
134
|
+
$[30] = children;
|
|
135
|
+
$[31] = props;
|
|
136
|
+
$[32] = sharedProps;
|
|
137
|
+
$[33] = t6;
|
|
118
138
|
} else {
|
|
119
|
-
|
|
139
|
+
t6 = $[33];
|
|
120
140
|
}
|
|
121
|
-
|
|
122
|
-
t9 = fillColor ? getColorsFromHex(fillColor, resolvedColorScheme, bgColors[mode]) : undefined;
|
|
123
|
-
$[11] = as;
|
|
124
|
-
$[12] = className;
|
|
125
|
-
$[13] = fillColor;
|
|
126
|
-
$[14] = href;
|
|
127
|
-
$[15] = id;
|
|
128
|
-
$[16] = mode;
|
|
129
|
-
$[17] = onClick;
|
|
130
|
-
$[18] = onFocus;
|
|
131
|
-
$[19] = resolvedColorScheme;
|
|
132
|
-
$[20] = rest;
|
|
133
|
-
$[21] = variant;
|
|
134
|
-
$[22] = T0;
|
|
135
|
-
$[23] = t2;
|
|
136
|
-
$[24] = t3;
|
|
137
|
-
$[25] = t4;
|
|
138
|
-
$[26] = t5;
|
|
139
|
-
$[27] = t6;
|
|
140
|
-
$[28] = t7;
|
|
141
|
-
$[29] = t8;
|
|
142
|
-
$[30] = t9;
|
|
143
|
-
} else {
|
|
144
|
-
T0 = $[22];
|
|
145
|
-
t2 = $[23];
|
|
146
|
-
t3 = $[24];
|
|
147
|
-
t4 = $[25];
|
|
148
|
-
t5 = $[26];
|
|
149
|
-
t6 = $[27];
|
|
150
|
-
t7 = $[28];
|
|
151
|
-
t8 = $[29];
|
|
152
|
-
t9 = $[30];
|
|
141
|
+
return t6;
|
|
153
142
|
}
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
143
|
+
if ("onClick" in props) {
|
|
144
|
+
let t6;
|
|
145
|
+
if ($[34] !== children || $[35] !== props || $[36] !== sharedProps) {
|
|
146
|
+
t6 = /*#__PURE__*/jsx("button", {
|
|
147
|
+
type: "button",
|
|
148
|
+
...props,
|
|
149
|
+
...sharedProps,
|
|
150
|
+
children: children
|
|
151
|
+
});
|
|
152
|
+
$[34] = children;
|
|
153
|
+
$[35] = props;
|
|
154
|
+
$[36] = sharedProps;
|
|
155
|
+
$[37] = t6;
|
|
156
|
+
} else {
|
|
157
|
+
t6 = $[37];
|
|
158
|
+
}
|
|
159
|
+
return t6;
|
|
160
|
+
}
|
|
161
|
+
let t6;
|
|
162
|
+
if ($[38] !== children || $[39] !== props || $[40] !== sharedProps) {
|
|
163
|
+
t6 = /*#__PURE__*/jsx("span", {
|
|
164
|
+
...props,
|
|
165
|
+
...sharedProps,
|
|
166
|
+
children: children
|
|
166
167
|
});
|
|
167
|
-
$[
|
|
168
|
-
$[
|
|
169
|
-
$[
|
|
170
|
-
$[
|
|
171
|
-
$[41] = t5;
|
|
172
|
-
$[42] = t6;
|
|
173
|
-
$[43] = t7;
|
|
174
|
-
$[44] = t8;
|
|
175
|
-
$[45] = t9;
|
|
176
|
-
$[46] = text;
|
|
177
|
-
$[47] = t10;
|
|
168
|
+
$[38] = children;
|
|
169
|
+
$[39] = props;
|
|
170
|
+
$[40] = sharedProps;
|
|
171
|
+
$[41] = t6;
|
|
178
172
|
} else {
|
|
179
|
-
|
|
173
|
+
t6 = $[41];
|
|
180
174
|
}
|
|
181
|
-
return
|
|
175
|
+
return t6;
|
|
182
176
|
}
|
|
183
177
|
|
|
184
178
|
export { IssueLabel };
|
|
@@ -4,14 +4,13 @@ import { TabContainerElement } from '@github/tab-container-element';
|
|
|
4
4
|
import { createComponent } from '../../utils/create-component.js';
|
|
5
5
|
import { UnderlineWrapper, UnderlineItemList, UnderlineItem } from '../../internal/components/UnderlineTabbedInterface.js';
|
|
6
6
|
import { invariant } from '../../utils/invariant.js';
|
|
7
|
-
import { defaultSxProp } from '../../utils/defaultSxProp.js';
|
|
8
7
|
import { useResizeObserver } from '../../hooks/useResizeObserver.js';
|
|
9
8
|
import useIsomorphicLayoutEffect from '../../utils/useIsomorphicLayoutEffect.js';
|
|
10
9
|
import classes from './UnderlinePanels.module.css.js';
|
|
11
10
|
import { clsx } from 'clsx';
|
|
11
|
+
import { BoxWithFallback } from '../../internal/components/BoxWithFallback.js';
|
|
12
12
|
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
13
13
|
import { useId } from '../../hooks/useId.js';
|
|
14
|
-
import Box from '../../Box/Box.js';
|
|
15
14
|
|
|
16
15
|
const TabContainerComponent = createComponent(TabContainerElement, 'tab-container');
|
|
17
16
|
const UnderlinePanels = ({
|
|
@@ -19,7 +18,6 @@ const UnderlinePanels = ({
|
|
|
19
18
|
'aria-labelledby': ariaLabelledBy,
|
|
20
19
|
children,
|
|
21
20
|
loadingCounters,
|
|
22
|
-
sx: sxProp = defaultSxProp,
|
|
23
21
|
className,
|
|
24
22
|
...props
|
|
25
23
|
}) => {
|
|
@@ -94,7 +92,6 @@ const UnderlinePanels = ({
|
|
|
94
92
|
ref: wrapperRef,
|
|
95
93
|
slot: "tablist-wrapper",
|
|
96
94
|
"data-icons-visible": iconsVisible,
|
|
97
|
-
sx: sxProp,
|
|
98
95
|
className: clsx(className, classes.StyledUnderlineWrapper),
|
|
99
96
|
...props,
|
|
100
97
|
children: /*#__PURE__*/jsx(UnderlineItemList, {
|
|
@@ -109,15 +106,13 @@ const UnderlinePanels = ({
|
|
|
109
106
|
};
|
|
110
107
|
UnderlinePanels.displayName = "UnderlinePanels";
|
|
111
108
|
const Tab = t0 => {
|
|
112
|
-
const $ = c(
|
|
109
|
+
const $ = c(14);
|
|
113
110
|
let ariaSelected;
|
|
114
111
|
let onSelect;
|
|
115
112
|
let props;
|
|
116
|
-
let t1;
|
|
117
113
|
if ($[0] !== t0) {
|
|
118
114
|
({
|
|
119
115
|
"aria-selected": ariaSelected,
|
|
120
|
-
sx: t1,
|
|
121
116
|
onSelect,
|
|
122
117
|
...props
|
|
123
118
|
} = t0);
|
|
@@ -125,72 +120,67 @@ const Tab = t0 => {
|
|
|
125
120
|
$[1] = ariaSelected;
|
|
126
121
|
$[2] = onSelect;
|
|
127
122
|
$[3] = props;
|
|
128
|
-
$[4] = t1;
|
|
129
123
|
} else {
|
|
130
124
|
ariaSelected = $[1];
|
|
131
125
|
onSelect = $[2];
|
|
132
126
|
props = $[3];
|
|
133
|
-
t1 = $[4];
|
|
134
127
|
}
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
t2 = event => {
|
|
128
|
+
let t1;
|
|
129
|
+
if ($[4] !== onSelect) {
|
|
130
|
+
t1 = event => {
|
|
139
131
|
if (!event.defaultPrevented && typeof onSelect === "function") {
|
|
140
132
|
onSelect(event);
|
|
141
133
|
}
|
|
142
134
|
};
|
|
143
|
-
$[
|
|
144
|
-
$[
|
|
135
|
+
$[4] = onSelect;
|
|
136
|
+
$[5] = t1;
|
|
145
137
|
} else {
|
|
146
|
-
|
|
138
|
+
t1 = $[5];
|
|
147
139
|
}
|
|
148
|
-
const clickHandler =
|
|
149
|
-
let
|
|
150
|
-
if ($[
|
|
151
|
-
|
|
140
|
+
const clickHandler = t1;
|
|
141
|
+
let t2;
|
|
142
|
+
if ($[6] !== onSelect) {
|
|
143
|
+
t2 = event_0 => {
|
|
152
144
|
if ((event_0.key === " " || event_0.key === "Enter") && !event_0.defaultPrevented && typeof onSelect === "function") {
|
|
153
145
|
onSelect(event_0);
|
|
154
146
|
}
|
|
155
147
|
};
|
|
156
|
-
$[
|
|
157
|
-
$[
|
|
148
|
+
$[6] = onSelect;
|
|
149
|
+
$[7] = t2;
|
|
158
150
|
} else {
|
|
159
|
-
|
|
151
|
+
t2 = $[7];
|
|
160
152
|
}
|
|
161
|
-
const keyDownHandler =
|
|
162
|
-
const
|
|
163
|
-
let
|
|
164
|
-
if ($[
|
|
165
|
-
|
|
153
|
+
const keyDownHandler = t2;
|
|
154
|
+
const t3 = ariaSelected ? 0 : -1;
|
|
155
|
+
let t4;
|
|
156
|
+
if ($[8] !== ariaSelected || $[9] !== clickHandler || $[10] !== keyDownHandler || $[11] !== props || $[12] !== t3) {
|
|
157
|
+
t4 = /*#__PURE__*/jsx(UnderlineItem, {
|
|
166
158
|
as: "button",
|
|
167
159
|
role: "tab",
|
|
168
|
-
tabIndex:
|
|
160
|
+
tabIndex: t3,
|
|
169
161
|
"aria-selected": ariaSelected,
|
|
170
|
-
sx: sxProp,
|
|
171
162
|
type: "button",
|
|
172
163
|
onClick: clickHandler,
|
|
173
164
|
onKeyDown: keyDownHandler,
|
|
174
165
|
...props
|
|
175
166
|
});
|
|
176
|
-
$[
|
|
177
|
-
$[
|
|
178
|
-
$[
|
|
179
|
-
$[
|
|
180
|
-
$[
|
|
181
|
-
$[
|
|
182
|
-
$[15] = t5;
|
|
167
|
+
$[8] = ariaSelected;
|
|
168
|
+
$[9] = clickHandler;
|
|
169
|
+
$[10] = keyDownHandler;
|
|
170
|
+
$[11] = props;
|
|
171
|
+
$[12] = t3;
|
|
172
|
+
$[13] = t4;
|
|
183
173
|
} else {
|
|
184
|
-
|
|
174
|
+
t4 = $[13];
|
|
185
175
|
}
|
|
186
|
-
return
|
|
176
|
+
return t4;
|
|
187
177
|
};
|
|
188
178
|
Tab.displayName = 'UnderlinePanels.Tab';
|
|
189
179
|
const Panel = props => {
|
|
190
180
|
const $ = c(2);
|
|
191
181
|
let t0;
|
|
192
182
|
if ($[0] !== props) {
|
|
193
|
-
t0 = /*#__PURE__*/jsx(
|
|
183
|
+
t0 = /*#__PURE__*/jsx(BoxWithFallback, {
|
|
194
184
|
as: "div",
|
|
195
185
|
role: "tabpanel",
|
|
196
186
|
...props
|
|
@@ -33,7 +33,12 @@ export { Announce, AriaStatus, AriaAlert } from '../live-region';
|
|
|
33
33
|
export type { AnnounceProps, AriaStatusProps, AriaAlertProps } from '../live-region';
|
|
34
34
|
export { UnderlinePanels } from './UnderlinePanels';
|
|
35
35
|
export type { UnderlinePanelsProps, UnderlinePanelsTabProps, UnderlinePanelsPanelProps } from './UnderlinePanels';
|
|
36
|
-
export { SkeletonBox
|
|
36
|
+
export { SkeletonBox } from '../Skeleton';
|
|
37
|
+
export type { SkeletonBoxProps } from '../Skeleton';
|
|
38
|
+
export { SkeletonText } from '../SkeletonText';
|
|
39
|
+
export type { SkeletonTextProps } from '../SkeletonText';
|
|
40
|
+
export { SkeletonAvatar } from '../SkeletonAvatar';
|
|
41
|
+
export type { SkeletonAvatarProps } from '../SkeletonAvatar';
|
|
37
42
|
export { FeatureFlags, DefaultFeatureFlags, useFeatureFlag } from '../FeatureFlags';
|
|
38
43
|
export type { FeatureFlagsProps } from '../FeatureFlags';
|
|
39
44
|
export { FilteredActionList } from '../FilteredActionList';
|
|
@@ -17,12 +17,12 @@ export { AriaStatus } from '../live-region/AriaStatus.js';
|
|
|
17
17
|
export { AriaAlert } from '../live-region/AriaAlert.js';
|
|
18
18
|
export { default as UnderlinePanels } from './UnderlinePanels/UnderlinePanels.js';
|
|
19
19
|
export { SkeletonBox } from '../Skeleton/SkeletonBox.js';
|
|
20
|
-
export { SkeletonText } from '
|
|
21
|
-
export { SkeletonAvatar } from '
|
|
20
|
+
export { SkeletonText } from '../SkeletonText/SkeletonText.js';
|
|
21
|
+
export { SkeletonAvatar } from '../SkeletonAvatar/SkeletonAvatar.js';
|
|
22
22
|
export { FeatureFlags } from '../FeatureFlags/FeatureFlags.js';
|
|
23
23
|
export { DefaultFeatureFlags } from '../FeatureFlags/DefaultFeatureFlags.js';
|
|
24
24
|
export { useFeatureFlag } from '../FeatureFlags/useFeatureFlag.js';
|
|
25
|
-
export { FilteredActionList } from '../FilteredActionList/
|
|
25
|
+
export { FilteredActionList } from '../FilteredActionList/FilteredActionList.js';
|
|
26
26
|
export { IssueLabel } from './IssueLabel/IssueLabel.js';
|
|
27
27
|
export { PageHeader } from '../PageHeader/PageHeader.js';
|
|
28
28
|
export { Hidden } from '../Hidden/Hidden.js';
|
|
@@ -25,9 +25,10 @@ const useMenuKeyboardNavigation = (open, onClose, containerRef, anchorRef, t0) =
|
|
|
25
25
|
* and the focus should naturally move to the next item
|
|
26
26
|
*/
|
|
27
27
|
const useCloseMenuOnTab = (open, onClose, containerRef, anchorRef) => {
|
|
28
|
-
const $ = c(
|
|
28
|
+
const $ = c(6);
|
|
29
29
|
let t0;
|
|
30
|
-
|
|
30
|
+
let t1;
|
|
31
|
+
if ($[0] !== anchorRef || $[1] !== containerRef || $[2] !== onClose || $[3] !== open) {
|
|
31
32
|
t0 = () => {
|
|
32
33
|
const container = containerRef === null || containerRef === void 0 ? void 0 : containerRef.current;
|
|
33
34
|
const anchor = anchorRef === null || anchorRef === void 0 ? void 0 : anchorRef.current;
|
|
@@ -43,24 +44,16 @@ const useCloseMenuOnTab = (open, onClose, containerRef, anchorRef) => {
|
|
|
43
44
|
anchor === null || anchor === void 0 ? void 0 : anchor.removeEventListener("keydown", handler);
|
|
44
45
|
};
|
|
45
46
|
};
|
|
46
|
-
|
|
47
|
-
$[
|
|
47
|
+
t1 = [open, onClose, containerRef, anchorRef];
|
|
48
|
+
$[0] = anchorRef;
|
|
49
|
+
$[1] = containerRef;
|
|
48
50
|
$[2] = onClose;
|
|
49
51
|
$[3] = open;
|
|
50
52
|
$[4] = t0;
|
|
53
|
+
$[5] = t1;
|
|
51
54
|
} else {
|
|
52
55
|
t0 = $[4];
|
|
53
|
-
|
|
54
|
-
let t1;
|
|
55
|
-
if ($[5] !== anchorRef || $[6] !== containerRef || $[7] !== onClose || $[8] !== open) {
|
|
56
|
-
t1 = [open, onClose, containerRef, anchorRef];
|
|
57
|
-
$[5] = anchorRef;
|
|
58
|
-
$[6] = containerRef;
|
|
59
|
-
$[7] = onClose;
|
|
60
|
-
$[8] = open;
|
|
61
|
-
$[9] = t1;
|
|
62
|
-
} else {
|
|
63
|
-
t1 = $[9];
|
|
56
|
+
t1 = $[5];
|
|
64
57
|
}
|
|
65
58
|
React.useEffect(t0, t1);
|
|
66
59
|
};
|
|
@@ -69,9 +62,10 @@ const useCloseMenuOnTab = (open, onClose, containerRef, anchorRef) => {
|
|
|
69
62
|
* Close submenu when left arrow key is pressed
|
|
70
63
|
*/
|
|
71
64
|
const useCloseSubmenuOnArrow = (open, isSubmenu, onClose, containerRef) => {
|
|
72
|
-
const $ = c(
|
|
65
|
+
const $ = c(6);
|
|
73
66
|
let t0;
|
|
74
|
-
|
|
67
|
+
let t1;
|
|
68
|
+
if ($[0] !== containerRef || $[1] !== isSubmenu || $[2] !== onClose || $[3] !== open) {
|
|
75
69
|
t0 = () => {
|
|
76
70
|
const container = containerRef === null || containerRef === void 0 ? void 0 : containerRef.current;
|
|
77
71
|
const handler = event => {
|
|
@@ -84,24 +78,16 @@ const useCloseSubmenuOnArrow = (open, isSubmenu, onClose, containerRef) => {
|
|
|
84
78
|
container === null || container === void 0 ? void 0 : container.removeEventListener("keydown", handler);
|
|
85
79
|
};
|
|
86
80
|
};
|
|
87
|
-
|
|
81
|
+
t1 = [open, onClose, containerRef, isSubmenu];
|
|
82
|
+
$[0] = containerRef;
|
|
88
83
|
$[1] = isSubmenu;
|
|
89
84
|
$[2] = onClose;
|
|
90
85
|
$[3] = open;
|
|
91
86
|
$[4] = t0;
|
|
87
|
+
$[5] = t1;
|
|
92
88
|
} else {
|
|
93
89
|
t0 = $[4];
|
|
94
|
-
|
|
95
|
-
let t1;
|
|
96
|
-
if ($[5] !== containerRef || $[6] !== isSubmenu || $[7] !== onClose || $[8] !== open) {
|
|
97
|
-
t1 = [open, onClose, containerRef, isSubmenu];
|
|
98
|
-
$[5] = containerRef;
|
|
99
|
-
$[6] = isSubmenu;
|
|
100
|
-
$[7] = onClose;
|
|
101
|
-
$[8] = open;
|
|
102
|
-
$[9] = t1;
|
|
103
|
-
} else {
|
|
104
|
-
t1 = $[9];
|
|
90
|
+
t1 = $[5];
|
|
105
91
|
}
|
|
106
92
|
React.useEffect(t0, t1);
|
|
107
93
|
};
|
|
@@ -111,9 +97,10 @@ const useCloseSubmenuOnArrow = (open, isSubmenu, onClose, containerRef) => {
|
|
|
111
97
|
* focus should move to a menu item
|
|
112
98
|
*/
|
|
113
99
|
const useMoveFocusToMenuItem = (open, containerRef, anchorRef) => {
|
|
114
|
-
const $ = c(
|
|
100
|
+
const $ = c(5);
|
|
115
101
|
let t0;
|
|
116
|
-
|
|
102
|
+
let t1;
|
|
103
|
+
if ($[0] !== anchorRef || $[1] !== containerRef || $[2] !== open) {
|
|
117
104
|
t0 = () => {
|
|
118
105
|
const container = containerRef === null || containerRef === void 0 ? void 0 : containerRef.current;
|
|
119
106
|
const anchor = anchorRef === null || anchorRef === void 0 ? void 0 : anchorRef.current;
|
|
@@ -136,22 +123,15 @@ const useMoveFocusToMenuItem = (open, containerRef, anchorRef) => {
|
|
|
136
123
|
anchor === null || anchor === void 0 ? void 0 : anchor.addEventListener("keydown", handler);
|
|
137
124
|
return () => anchor === null || anchor === void 0 ? void 0 : anchor.addEventListener("keydown", handler);
|
|
138
125
|
};
|
|
139
|
-
|
|
140
|
-
$[
|
|
126
|
+
t1 = [open, containerRef, anchorRef];
|
|
127
|
+
$[0] = anchorRef;
|
|
128
|
+
$[1] = containerRef;
|
|
141
129
|
$[2] = open;
|
|
142
130
|
$[3] = t0;
|
|
131
|
+
$[4] = t1;
|
|
143
132
|
} else {
|
|
144
133
|
t0 = $[3];
|
|
145
|
-
|
|
146
|
-
let t1;
|
|
147
|
-
if ($[4] !== anchorRef || $[5] !== containerRef || $[6] !== open) {
|
|
148
|
-
t1 = [open, containerRef, anchorRef];
|
|
149
|
-
$[4] = anchorRef;
|
|
150
|
-
$[5] = containerRef;
|
|
151
|
-
$[6] = open;
|
|
152
|
-
$[7] = t1;
|
|
153
|
-
} else {
|
|
154
|
-
t1 = $[7];
|
|
134
|
+
t1 = $[4];
|
|
155
135
|
}
|
|
156
136
|
React.useEffect(t0, t1);
|
|
157
137
|
};
|