@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,4 +1,3 @@
|
|
|
1
|
-
import { c } from 'react-compiler-runtime';
|
|
2
1
|
import React from 'react';
|
|
3
2
|
import { iterateFocusableElements } from '@primer/behaviors/utils';
|
|
4
3
|
import { useProvidedRefOrCreate } from './useProvidedRefOrCreate.js';
|
|
@@ -10,104 +9,65 @@ import { useProvidedRefOrCreate } from './useProvidedRefOrCreate.js';
|
|
|
10
9
|
*/
|
|
11
10
|
|
|
12
11
|
const useMnemonics = (open, providedRef) => {
|
|
13
|
-
const $ = c(9);
|
|
14
12
|
const containerRef = useProvidedRefOrCreate(providedRef);
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
const
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
t1 = [open, containerRef];
|
|
27
|
-
$[0] = containerRef;
|
|
28
|
-
$[1] = open;
|
|
29
|
-
$[2] = t0;
|
|
30
|
-
$[3] = t1;
|
|
31
|
-
} else {
|
|
32
|
-
t0 = $[2];
|
|
33
|
-
t1 = $[3];
|
|
34
|
-
}
|
|
35
|
-
React.useEffect(t0, t1);
|
|
36
|
-
let t2;
|
|
37
|
-
if ($[4] !== containerRef || $[5] !== open) {
|
|
38
|
-
t2 = [open, containerRef];
|
|
39
|
-
$[4] = containerRef;
|
|
40
|
-
$[5] = open;
|
|
41
|
-
$[6] = t2;
|
|
42
|
-
} else {
|
|
43
|
-
t2 = $[6];
|
|
44
|
-
}
|
|
13
|
+
React.useEffect(function addAriaKeyshortcuts() {
|
|
14
|
+
if (!open || !containerRef.current) return;
|
|
15
|
+
const container = containerRef.current;
|
|
16
|
+
const focusableItems = [...iterateFocusableElements(container)];
|
|
17
|
+
focusableItems.map(item => {
|
|
18
|
+
// if item already has aria-keyshortcuts defined by user, skip
|
|
19
|
+
if (item.getAttribute('aria-keyshortcuts')) return;
|
|
20
|
+
const firstLetter = item.textContent.toLowerCase()[0];
|
|
21
|
+
if (firstLetter) item.setAttribute('aria-keyshortcuts', firstLetter);
|
|
22
|
+
});
|
|
23
|
+
}, [open, containerRef]);
|
|
45
24
|
React.useEffect(function handleKeyDown() {
|
|
46
|
-
if (!open || !containerRef.current)
|
|
47
|
-
return;
|
|
48
|
-
}
|
|
25
|
+
if (!open || !containerRef.current) return;
|
|
49
26
|
const container_0 = containerRef.current;
|
|
50
27
|
const handler = event => {
|
|
51
28
|
var _elementToFocus;
|
|
29
|
+
// skip if a TextInput has focus
|
|
52
30
|
const activeElement = document.activeElement;
|
|
53
|
-
if (activeElement.tagName ===
|
|
54
|
-
|
|
55
|
-
|
|
31
|
+
if (activeElement.tagName === 'INPUT' || activeElement.tagName === 'TEXTAREA') return;
|
|
32
|
+
|
|
33
|
+
// skip if used with modifier to preserve shortcuts like ⌘ + F
|
|
56
34
|
const hasModifier = event.ctrlKey || event.altKey || event.metaKey;
|
|
57
|
-
if (hasModifier)
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
if (!isAlphabetKey(event))
|
|
61
|
-
|
|
62
|
-
|
|
35
|
+
if (hasModifier) return;
|
|
36
|
+
|
|
37
|
+
// skip if it's not a alphabet key
|
|
38
|
+
if (!isAlphabetKey(event)) return;
|
|
39
|
+
|
|
40
|
+
// if this is a typeahead event, don't propagate outside of menu
|
|
63
41
|
event.stopPropagation();
|
|
64
42
|
const query = event.key.toLowerCase();
|
|
65
43
|
let elementToFocus;
|
|
66
44
|
const focusableItems_0 = [...iterateFocusableElements(container_0)];
|
|
67
45
|
const itemsMatchingKey = focusableItems_0.filter(item_0 => {
|
|
68
46
|
var _item_0$getAttribute;
|
|
69
|
-
const keyshortcuts = (_item_0$getAttribute = item_0.getAttribute(
|
|
47
|
+
const keyshortcuts = (_item_0$getAttribute = item_0.getAttribute('aria-keyshortcuts')) === null || _item_0$getAttribute === void 0 ? void 0 : _item_0$getAttribute.split(' ').map(shortcut => shortcut.toLowerCase());
|
|
70
48
|
return keyshortcuts && keyshortcuts.includes(query);
|
|
71
49
|
});
|
|
72
50
|
const currentActiveIndex = itemsMatchingKey.indexOf(activeElement);
|
|
51
|
+
|
|
52
|
+
// If the last element is already selected, cycle through the list
|
|
73
53
|
if (currentActiveIndex === itemsMatchingKey.length - 1) {
|
|
74
54
|
elementToFocus = itemsMatchingKey[0];
|
|
75
55
|
} else {
|
|
76
|
-
elementToFocus = itemsMatchingKey.find((item_1, index) =>
|
|
56
|
+
elementToFocus = itemsMatchingKey.find((item_1, index) => {
|
|
57
|
+
return index > currentActiveIndex;
|
|
58
|
+
});
|
|
77
59
|
}
|
|
78
60
|
(_elementToFocus = elementToFocus) === null || _elementToFocus === void 0 ? void 0 : _elementToFocus.focus();
|
|
79
61
|
};
|
|
80
|
-
container_0.addEventListener(
|
|
81
|
-
return () => container_0.removeEventListener(
|
|
82
|
-
},
|
|
83
|
-
const isAlphabetKey =
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
$[7] = containerRef;
|
|
90
|
-
$[8] = t3;
|
|
91
|
-
} else {
|
|
92
|
-
t3 = $[8];
|
|
93
|
-
}
|
|
94
|
-
return t3;
|
|
62
|
+
container_0.addEventListener('keydown', handler);
|
|
63
|
+
return () => container_0.removeEventListener('keydown', handler);
|
|
64
|
+
}, [open, containerRef]);
|
|
65
|
+
const isAlphabetKey = event_0 => {
|
|
66
|
+
return event_0.key.length === 1 && /[a-z\d]/i.test(event_0.key);
|
|
67
|
+
};
|
|
68
|
+
return {
|
|
69
|
+
containerRef
|
|
70
|
+
};
|
|
95
71
|
};
|
|
96
|
-
function _temp(item) {
|
|
97
|
-
var _item$textContent;
|
|
98
|
-
if (item.getAttribute("aria-keyshortcuts")) {
|
|
99
|
-
return;
|
|
100
|
-
}
|
|
101
|
-
const firstLetter = (_item$textContent = item.textContent) === null || _item$textContent === void 0 ? void 0 : _item$textContent.toLowerCase()[0];
|
|
102
|
-
if (firstLetter) {
|
|
103
|
-
item.setAttribute("aria-keyshortcuts", firstLetter);
|
|
104
|
-
}
|
|
105
|
-
}
|
|
106
|
-
function _temp2(shortcut) {
|
|
107
|
-
return shortcut.toLowerCase();
|
|
108
|
-
}
|
|
109
|
-
function _temp3(event_0) {
|
|
110
|
-
return event_0.key.length === 1 && /[a-z\d]/i.test(event_0.key);
|
|
111
|
-
}
|
|
112
72
|
|
|
113
73
|
export { useMnemonics };
|
|
@@ -3,7 +3,7 @@ import { useEffect } from 'react';
|
|
|
3
3
|
import { iterateFocusableElements } from '@primer/behaviors/utils';
|
|
4
4
|
|
|
5
5
|
function useOpenAndCloseFocus(t0) {
|
|
6
|
-
const $ = c(
|
|
6
|
+
const $ = c(6);
|
|
7
7
|
const {
|
|
8
8
|
initialFocusRef,
|
|
9
9
|
returnFocusRef,
|
|
@@ -11,7 +11,8 @@ function useOpenAndCloseFocus(t0) {
|
|
|
11
11
|
preventFocusOnOpen
|
|
12
12
|
} = t0;
|
|
13
13
|
let t1;
|
|
14
|
-
|
|
14
|
+
let t2;
|
|
15
|
+
if ($[0] !== containerRef || $[1] !== initialFocusRef || $[2] !== preventFocusOnOpen || $[3] !== returnFocusRef) {
|
|
15
16
|
t1 = () => {
|
|
16
17
|
if (!preventFocusOnOpen) {
|
|
17
18
|
if (initialFocusRef && initialFocusRef.current) {
|
|
@@ -28,24 +29,16 @@ function useOpenAndCloseFocus(t0) {
|
|
|
28
29
|
returnFocusRefCurrent === null || returnFocusRefCurrent === void 0 ? void 0 : returnFocusRefCurrent.focus();
|
|
29
30
|
};
|
|
30
31
|
};
|
|
32
|
+
t2 = [initialFocusRef, returnFocusRef, containerRef, preventFocusOnOpen];
|
|
31
33
|
$[0] = containerRef;
|
|
32
34
|
$[1] = initialFocusRef;
|
|
33
35
|
$[2] = preventFocusOnOpen;
|
|
34
|
-
$[3] = returnFocusRef
|
|
36
|
+
$[3] = returnFocusRef;
|
|
35
37
|
$[4] = t1;
|
|
38
|
+
$[5] = t2;
|
|
36
39
|
} else {
|
|
37
40
|
t1 = $[4];
|
|
38
|
-
|
|
39
|
-
let t2;
|
|
40
|
-
if ($[5] !== containerRef || $[6] !== initialFocusRef || $[7] !== preventFocusOnOpen || $[8] !== returnFocusRef) {
|
|
41
|
-
t2 = [initialFocusRef, returnFocusRef, containerRef, preventFocusOnOpen];
|
|
42
|
-
$[5] = containerRef;
|
|
43
|
-
$[6] = initialFocusRef;
|
|
44
|
-
$[7] = preventFocusOnOpen;
|
|
45
|
-
$[8] = returnFocusRef;
|
|
46
|
-
$[9] = t2;
|
|
47
|
-
} else {
|
|
48
|
-
t2 = $[9];
|
|
41
|
+
t2 = $[5];
|
|
49
42
|
}
|
|
50
43
|
useEffect(t1, t2);
|
|
51
44
|
}
|
|
@@ -2,10 +2,11 @@ import { c } from 'react-compiler-runtime';
|
|
|
2
2
|
import { useState, useEffect } from 'react';
|
|
3
3
|
|
|
4
4
|
function useOverflow(ref) {
|
|
5
|
-
const $ = c(
|
|
5
|
+
const $ = c(3);
|
|
6
6
|
const [hasOverflow, setHasOverflow] = useState(false);
|
|
7
7
|
let t0;
|
|
8
|
-
|
|
8
|
+
let t1;
|
|
9
|
+
if ($[0] !== ref) {
|
|
9
10
|
t0 = () => {
|
|
10
11
|
if (ref.current === null) {
|
|
11
12
|
return;
|
|
@@ -23,18 +24,13 @@ function useOverflow(ref) {
|
|
|
23
24
|
observer.disconnect();
|
|
24
25
|
};
|
|
25
26
|
};
|
|
26
|
-
|
|
27
|
+
t1 = [ref];
|
|
28
|
+
$[0] = ref;
|
|
27
29
|
$[1] = t0;
|
|
30
|
+
$[2] = t1;
|
|
28
31
|
} else {
|
|
29
32
|
t0 = $[1];
|
|
30
|
-
|
|
31
|
-
let t1;
|
|
32
|
-
if ($[2] !== ref) {
|
|
33
|
-
t1 = [ref];
|
|
34
|
-
$[2] = ref;
|
|
35
|
-
$[3] = t1;
|
|
36
|
-
} else {
|
|
37
|
-
t1 = $[3];
|
|
33
|
+
t1 = $[2];
|
|
38
34
|
}
|
|
39
35
|
useEffect(t0, t1);
|
|
40
36
|
return hasOverflow;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { c } from 'react-compiler-runtime';
|
|
1
2
|
import { useEffect } from 'react';
|
|
2
3
|
|
|
3
4
|
/**
|
|
@@ -5,20 +6,30 @@ import { useEffect } from 'react';
|
|
|
5
6
|
* @param scrollContainerRef The ref of the scrollable content
|
|
6
7
|
*/
|
|
7
8
|
function useScrollFlash(scrollContainerRef) {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
9
|
+
const $ = c(3);
|
|
10
|
+
let t0;
|
|
11
|
+
let t1;
|
|
12
|
+
if ($[0] !== scrollContainerRef) {
|
|
13
|
+
t0 = () => {
|
|
14
|
+
const scrollContainer = scrollContainerRef.current;
|
|
15
|
+
if (!scrollContainer) {
|
|
16
|
+
return;
|
|
17
|
+
}
|
|
18
|
+
const currentScroll = scrollContainer.scrollTop;
|
|
19
|
+
const maxScroll = scrollContainer.scrollHeight;
|
|
20
|
+
const altScroll = currentScroll < Math.min(1, maxScroll) ? currentScroll + 1 : currentScroll - 1;
|
|
21
|
+
scrollContainer.scrollTop = altScroll;
|
|
22
|
+
scrollContainer.scrollTop = currentScroll;
|
|
23
|
+
};
|
|
24
|
+
t1 = [scrollContainerRef];
|
|
25
|
+
$[0] = scrollContainerRef;
|
|
26
|
+
$[1] = t0;
|
|
27
|
+
$[2] = t1;
|
|
28
|
+
} else {
|
|
29
|
+
t0 = $[1];
|
|
30
|
+
t1 = $[2];
|
|
31
|
+
}
|
|
32
|
+
useEffect(t0, t1);
|
|
22
33
|
}
|
|
23
34
|
|
|
24
35
|
export { useScrollFlash as default };
|
package/lib-esm/index.d.ts
CHANGED
|
@@ -41,22 +41,18 @@ export { default as Autocomplete } from './Autocomplete';
|
|
|
41
41
|
export type { AutocompleteMenuProps, AutocompleteInputProps, AutocompleteOverlayProps } from './Autocomplete';
|
|
42
42
|
export { default as Avatar } from './Avatar';
|
|
43
43
|
export type { AvatarProps } from './Avatar';
|
|
44
|
-
export { default as AvatarPair } from './AvatarPair';
|
|
45
|
-
export type { AvatarPairProps } from './AvatarPair';
|
|
46
44
|
export { default as AvatarStack } from './AvatarStack';
|
|
47
45
|
export type { AvatarStackProps } from './AvatarStack';
|
|
46
|
+
export { Banner } from './Banner';
|
|
47
|
+
export type { BannerProps } from './Banner';
|
|
48
48
|
export { default as BranchName } from './BranchName';
|
|
49
49
|
export type { BranchNameProps } from './BranchName';
|
|
50
50
|
export { default as Breadcrumbs, Breadcrumb } from './Breadcrumbs';
|
|
51
51
|
export type { BreadcrumbsProps, BreadcrumbsItemProps, BreadcrumbProps, BreadcrumbItemProps } from './Breadcrumbs';
|
|
52
52
|
export { default as ButtonGroup } from './ButtonGroup';
|
|
53
53
|
export type { ButtonGroupProps } from './ButtonGroup';
|
|
54
|
-
export { default as Caret } from './Caret';
|
|
55
54
|
export type { CircleBadgeProps, CircleBadgeIconProps } from './CircleBadge';
|
|
56
|
-
export { default as CircleOcticon } from './CircleOcticon';
|
|
57
|
-
export type { CircleOcticonProps } from './CircleOcticon';
|
|
58
55
|
export { default as CheckboxGroup } from './CheckboxGroup';
|
|
59
|
-
export type { CaretProps } from './Caret';
|
|
60
56
|
export { default as CircleBadge } from './CircleBadge';
|
|
61
57
|
export { default as CounterLabel } from './CounterLabel';
|
|
62
58
|
export type { CounterLabelProps } from './CounterLabel';
|
|
@@ -93,7 +89,7 @@ export type { PopoverProps, PopoverContentProps } from './Popover';
|
|
|
93
89
|
export { default as Portal, registerPortalRoot } from './Portal';
|
|
94
90
|
export type { PortalProps } from './Portal';
|
|
95
91
|
export { ProgressBar } from './ProgressBar';
|
|
96
|
-
export type { ProgressBarProps } from './ProgressBar';
|
|
92
|
+
export type { ProgressBarProps, ProgressBarItemProps } from './ProgressBar';
|
|
97
93
|
export { default as RadioGroup } from './RadioGroup';
|
|
98
94
|
export type { RelativeTimeProps } from './RelativeTime';
|
|
99
95
|
export { default as RelativeTime } from './RelativeTime';
|
|
@@ -101,7 +97,7 @@ export { SegmentedControl } from './SegmentedControl';
|
|
|
101
97
|
export { default as Select } from './Select';
|
|
102
98
|
export type { SelectProps } from './Select';
|
|
103
99
|
export { SelectPanel } from './SelectPanel';
|
|
104
|
-
export type { SelectPanelProps } from './SelectPanel';
|
|
100
|
+
export type { SelectPanelProps, ItemProps as SelectPanelItemProps, GroupedListProps as SelectPanelGroupedListProps, ItemInput as SelectPanelItemInput, } from './SelectPanel';
|
|
105
101
|
export { default as SideNav } from './SideNav';
|
|
106
102
|
export type { SideNavProps, SideNavLinkProps } from './SideNav';
|
|
107
103
|
export { default as Spinner } from './Spinner';
|
|
@@ -111,6 +107,7 @@ export type { StateLabelProps } from './StateLabel';
|
|
|
111
107
|
export { default as SubNav } from './SubNav';
|
|
112
108
|
export type { SubNavProps, SubNavLinkProps, SubNavLinksProps } from './SubNav';
|
|
113
109
|
export { default as ToggleSwitch } from './ToggleSwitch';
|
|
110
|
+
export type { ToggleSwitchProps } from './ToggleSwitch';
|
|
114
111
|
export { default as TextInput } from './TextInput';
|
|
115
112
|
export type { TextInputProps } from './TextInput';
|
|
116
113
|
export { default as TextInputWithTokens } from './TextInputWithTokens';
|
|
@@ -119,7 +116,7 @@ export { default as Text } from './Text';
|
|
|
119
116
|
export type { TextProps } from './Text';
|
|
120
117
|
export { default as Timeline } from './Timeline';
|
|
121
118
|
export type { TimelineProps, TimelineBadgeProps, TimelineBodyProps, TimelineBreakProps, TimelineItemsProps, } from './Timeline';
|
|
122
|
-
export { default as Token, IssueLabelToken
|
|
119
|
+
export { default as Token, IssueLabelToken } from './Token';
|
|
123
120
|
export type { TokenProps, IssueLabelTokenProps } from './Token';
|
|
124
121
|
export { Tooltip } from './TooltipV2';
|
|
125
122
|
export type { TooltipProps } from './TooltipV2';
|
package/lib-esm/index.js
CHANGED
|
@@ -19,7 +19,7 @@ export { default as useIsomorphicLayoutEffect } from './utils/useIsomorphicLayou
|
|
|
19
19
|
export { useProvidedRefOrCreate } from './hooks/useProvidedRefOrCreate.js';
|
|
20
20
|
export { createComponent } from './utils/create-component.js';
|
|
21
21
|
export { ActionList } from './ActionList/index.js';
|
|
22
|
-
export {
|
|
22
|
+
export { Banner } from './Banner/index.js';
|
|
23
23
|
export { Dialog } from './Dialog/Dialog.js';
|
|
24
24
|
export { default as Label } from './Label/Label.js';
|
|
25
25
|
export { default as Pagination } from './Pagination/Pagination.js';
|
|
@@ -33,10 +33,8 @@ export { default as sx } from './sx.js';
|
|
|
33
33
|
export { default as Box } from './Box/Box.js';
|
|
34
34
|
export { default as Radio } from './Radio/Radio.js';
|
|
35
35
|
export { default as Avatar } from './Avatar/Avatar.js';
|
|
36
|
-
export { default as AvatarPair } from './AvatarPair/AvatarPair.js';
|
|
37
36
|
export { default as AvatarStack } from './AvatarStack/AvatarStack.js';
|
|
38
37
|
export { default as ButtonGroup } from './ButtonGroup/ButtonGroup.js';
|
|
39
|
-
export { default as CircleOcticon } from './CircleOcticon/CircleOcticon.js';
|
|
40
38
|
export { default as CounterLabel } from './CounterLabel/CounterLabel.js';
|
|
41
39
|
export { default as Details } from './Details/Details.js';
|
|
42
40
|
export { default as Flash } from './Flash/Flash.js';
|
|
@@ -53,7 +51,6 @@ export { default as TextInputWithTokens } from './TextInputWithTokens/TextInputW
|
|
|
53
51
|
export { default as Text } from './Text/Text.js';
|
|
54
52
|
export { default as Token } from './Token/Token.js';
|
|
55
53
|
export { default as IssueLabelToken } from './Token/IssueLabelToken.js';
|
|
56
|
-
export { default as AvatarToken } from './Token/AvatarToken.js';
|
|
57
54
|
export { default as Truncate } from './Truncate/Truncate.js';
|
|
58
55
|
export { default as Checkbox } from './Checkbox/Checkbox.js';
|
|
59
56
|
export { default as Textarea } from './Textarea/Textarea.js';
|
|
@@ -6,60 +6,65 @@ import { jsx } from 'react/jsx-runtime';
|
|
|
6
6
|
import Box from '../../Box/Box.js';
|
|
7
7
|
|
|
8
8
|
const BoxWithFallback = /*#__PURE__*/React.forwardRef(function BoxWithFallback(t0, ref) {
|
|
9
|
-
const $ = c(
|
|
9
|
+
const $ = c(14);
|
|
10
|
+
let BaseComponent;
|
|
10
11
|
let rest;
|
|
12
|
+
let sx;
|
|
11
13
|
let t1;
|
|
12
|
-
let t2;
|
|
13
14
|
if ($[0] !== t0) {
|
|
14
|
-
|
|
15
|
-
as:
|
|
16
|
-
sx:
|
|
17
|
-
...
|
|
18
|
-
} = t0
|
|
15
|
+
const {
|
|
16
|
+
as: t2,
|
|
17
|
+
sx: t3,
|
|
18
|
+
...t4
|
|
19
|
+
} = t0;
|
|
20
|
+
rest = t4;
|
|
21
|
+
BaseComponent = t2 === undefined ? "div" : t2;
|
|
22
|
+
sx = t3 === undefined ? defaultSxProp : t3;
|
|
23
|
+
t1 = sx !== defaultSxProp || includesSystemProps(rest);
|
|
19
24
|
$[0] = t0;
|
|
20
|
-
$[1] =
|
|
21
|
-
$[2] =
|
|
22
|
-
$[3] =
|
|
25
|
+
$[1] = BaseComponent;
|
|
26
|
+
$[2] = rest;
|
|
27
|
+
$[3] = sx;
|
|
28
|
+
$[4] = t1;
|
|
23
29
|
} else {
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
30
|
+
BaseComponent = $[1];
|
|
31
|
+
rest = $[2];
|
|
32
|
+
sx = $[3];
|
|
33
|
+
t1 = $[4];
|
|
27
34
|
}
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
if ($[4] !== BaseComponent || $[5] !== ref || $[6] !== rest || $[7] !== sx) {
|
|
33
|
-
t3 = /*#__PURE__*/jsx(Box, {
|
|
35
|
+
if (t1) {
|
|
36
|
+
let t2;
|
|
37
|
+
if ($[5] !== BaseComponent || $[6] !== ref || $[7] !== rest || $[8] !== sx) {
|
|
38
|
+
t2 = /*#__PURE__*/jsx(Box, {
|
|
34
39
|
...rest,
|
|
35
40
|
ref: ref,
|
|
36
41
|
as: BaseComponent,
|
|
37
42
|
sx: sx
|
|
38
43
|
});
|
|
39
|
-
$[
|
|
40
|
-
$[
|
|
41
|
-
$[
|
|
42
|
-
$[
|
|
43
|
-
$[
|
|
44
|
+
$[5] = BaseComponent;
|
|
45
|
+
$[6] = ref;
|
|
46
|
+
$[7] = rest;
|
|
47
|
+
$[8] = sx;
|
|
48
|
+
$[9] = t2;
|
|
44
49
|
} else {
|
|
45
|
-
|
|
50
|
+
t2 = $[9];
|
|
46
51
|
}
|
|
47
|
-
return
|
|
52
|
+
return t2;
|
|
48
53
|
}
|
|
49
|
-
let
|
|
50
|
-
if ($[
|
|
51
|
-
|
|
54
|
+
let t2;
|
|
55
|
+
if ($[10] !== BaseComponent || $[11] !== ref || $[12] !== rest) {
|
|
56
|
+
t2 = /*#__PURE__*/jsx(BaseComponent, {
|
|
52
57
|
...rest,
|
|
53
58
|
ref: ref
|
|
54
59
|
});
|
|
55
|
-
$[
|
|
56
|
-
$[
|
|
57
|
-
$[
|
|
58
|
-
$[
|
|
60
|
+
$[10] = BaseComponent;
|
|
61
|
+
$[11] = ref;
|
|
62
|
+
$[12] = rest;
|
|
63
|
+
$[13] = t2;
|
|
59
64
|
} else {
|
|
60
|
-
|
|
65
|
+
t2 = $[13];
|
|
61
66
|
}
|
|
62
|
-
return
|
|
67
|
+
return t2;
|
|
63
68
|
});
|
|
64
69
|
|
|
65
70
|
export { BoxWithFallback };
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
.prc-components-ButtonReset-9kafa{align-items:center;appearance:none;background:none;border:0;color:inherit;cursor:pointer;display:inline-flex;font:inherit;margin:0;padding:0;text-align:start}.prc-components-ButtonReset-9kafa::-moz-focus-inner{border:0}
|
|
2
|
+
/*# sourceMappingURL=ButtonReset-904f2483.css.map */
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/internal/components/ButtonReset.module.css"],"names":[],"mappings":"AAAA,kCAWE,kBAAmB,CANnB,eAAgB,CAChB,eAAgB,CAFhB,QAAS,CAMT,aAAc,CAHd,cAAe,CALf,mBAAoB,CAOpB,YAAa,CARb,QAAS,CAET,SAAU,CAKV,gBAQF,CAHE,oDACE,QACF","file":"ButtonReset-904f2483.css","sourcesContent":[".ButtonReset {\n margin: 0;\n display: inline-flex;\n padding: 0;\n border: 0;\n appearance: none;\n background: none;\n cursor: pointer;\n text-align: start;\n font: inherit;\n color: inherit;\n align-items: center;\n\n &::-moz-focus-inner {\n border: 0;\n }\n}\n"]}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import type { SxProp } from '../../sx';
|
|
2
1
|
/**
|
|
3
2
|
* Provides an unstyled button that can be styled as-needed for components
|
|
4
3
|
*/
|
|
5
|
-
export declare const Button:
|
|
4
|
+
export declare const Button: ({ children, className, ...rest }: React.ComponentPropsWithoutRef<"button">) => import("react").JSX.Element;
|
|
6
5
|
//# sourceMappingURL=ButtonReset.d.ts.map
|
|
@@ -1,12 +1,52 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
1
|
+
import { c } from 'react-compiler-runtime';
|
|
2
|
+
import classes from './ButtonReset.module.css.js';
|
|
3
|
+
import { clsx } from 'clsx';
|
|
4
|
+
import { jsx } from 'react/jsx-runtime';
|
|
3
5
|
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
6
|
+
const Button = t0 => {
|
|
7
|
+
const $ = c(10);
|
|
8
|
+
let children;
|
|
9
|
+
let className;
|
|
10
|
+
let rest;
|
|
11
|
+
if ($[0] !== t0) {
|
|
12
|
+
({
|
|
13
|
+
children,
|
|
14
|
+
className,
|
|
15
|
+
...rest
|
|
16
|
+
} = t0);
|
|
17
|
+
$[0] = t0;
|
|
18
|
+
$[1] = children;
|
|
19
|
+
$[2] = className;
|
|
20
|
+
$[3] = rest;
|
|
21
|
+
} else {
|
|
22
|
+
children = $[1];
|
|
23
|
+
className = $[2];
|
|
24
|
+
rest = $[3];
|
|
25
|
+
}
|
|
26
|
+
let t1;
|
|
27
|
+
if ($[4] !== className) {
|
|
28
|
+
t1 = clsx(className, classes.ButtonReset);
|
|
29
|
+
$[4] = className;
|
|
30
|
+
$[5] = t1;
|
|
31
|
+
} else {
|
|
32
|
+
t1 = $[5];
|
|
33
|
+
}
|
|
34
|
+
let t2;
|
|
35
|
+
if ($[6] !== children || $[7] !== rest || $[8] !== t1) {
|
|
36
|
+
t2 = /*#__PURE__*/jsx("button", {
|
|
37
|
+
className: t1,
|
|
38
|
+
type: "button",
|
|
39
|
+
...rest,
|
|
40
|
+
children: children
|
|
41
|
+
});
|
|
42
|
+
$[6] = children;
|
|
43
|
+
$[7] = rest;
|
|
44
|
+
$[8] = t1;
|
|
45
|
+
$[9] = t2;
|
|
46
|
+
} else {
|
|
47
|
+
t2 = $[9];
|
|
48
|
+
}
|
|
49
|
+
return t2;
|
|
50
|
+
};
|
|
11
51
|
|
|
12
52
|
export { Button };
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
.prc-components-Caret-PNu-B{pointer-events:none;position:absolute}.prc-components-CaretTriangle-Iu0GY{fill:var(--caret-bg,var(--bgColor-default,var(--color-canvas-default)))}.prc-components-CaretBorder-o3vP2{fill:none;stroke:var(--caret-border-color,var(--borderColor-default,var(--color-border-default)));stroke-width:var(--caret-border-width,var(--borderWidth-thin,.0625rem))}
|
|
2
|
+
/*# sourceMappingURL=Caret-e686f04c.css.map */
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/internal/components/Caret.module.css"],"names":[],"mappings":"AAAA,4BACE,mBAAoB,CACpB,iBACF,CAEA,oCAEE,uEACF,CAEA,kCACE,SAAU,CAEV,uFAA6D,CAC7D,uEACF","file":"Caret-e686f04c.css","sourcesContent":[".Caret {\n pointer-events: none;\n position: absolute;\n}\n\n.CaretTriangle {\n /* stylelint-disable-next-line primer/colors */\n fill: var(--caret-bg, var(--bgColor-default));\n}\n\n.CaretBorder {\n fill: none;\n /* stylelint-disable-next-line primer/colors */\n stroke: var(--caret-border-color, var(--borderColor-default));\n stroke-width: var(--caret-border-width, var(--borderWidth-thin));\n}\n"]}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import type { Theme } from './ThemeProvider';
|
|
1
|
+
import type React from 'react';
|
|
3
2
|
type Location = 'top' | 'top-left' | 'top-right' | 'right' | 'right-top' | 'right-bottom' | 'bottom' | 'bottom-left' | 'bottom-right' | 'left' | 'left-top' | 'left-bottom';
|
|
4
3
|
export type CaretProps = {
|
|
5
4
|
bg?: string;
|
|
@@ -7,7 +6,6 @@ export type CaretProps = {
|
|
|
7
6
|
borderWidth?: string | number;
|
|
8
7
|
size?: number;
|
|
9
8
|
location?: Location;
|
|
10
|
-
theme?: Theme;
|
|
11
9
|
};
|
|
12
10
|
declare function Caret(props: CaretProps): React.JSX.Element;
|
|
13
11
|
declare namespace Caret {
|