@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,38 +1,16 @@
|
|
|
1
1
|
import { c } from 'react-compiler-runtime';
|
|
2
2
|
import { ChevronLeftIcon, ChevronRightIcon } from '@primer/octicons-react';
|
|
3
3
|
import { useCallback, useMemo, useState } from 'react';
|
|
4
|
-
import styled from 'styled-components';
|
|
5
|
-
import { get } from '../constants.js';
|
|
6
4
|
import { Button } from '../internal/components/ButtonReset.js';
|
|
7
5
|
import { LiveRegion, LiveRegionOutlet, Message } from '../internal/components/LiveRegion.js';
|
|
8
6
|
import { warning } from '../utils/warning.js';
|
|
9
7
|
import { viewportRanges } from '../hooks/useResponsiveValue.js';
|
|
10
8
|
import { buildPaginationModel } from '../Pagination/model.js';
|
|
9
|
+
import classes from './Pagination.module.css.js';
|
|
10
|
+
import { clsx } from 'clsx';
|
|
11
11
|
import { jsxs, jsx, Fragment } from 'react/jsx-runtime';
|
|
12
12
|
import { VisuallyHidden } from '../VisuallyHidden/VisuallyHidden.js';
|
|
13
13
|
|
|
14
|
-
const StyledPagination = styled.nav.withConfig({
|
|
15
|
-
displayName: "Pagination__StyledPagination",
|
|
16
|
-
componentId: "sc-1auq45q-0"
|
|
17
|
-
})(["display:flex;align-items:center;justify-content:space-between;column-gap:1rem;width:100%;grid-area:footer;padding:0.5rem 1rem;border:1px solid ", ";border-top-width:0;border-end-start-radius:6px;border-end-end-radius:6px;.TablePaginationRange{color:", ";font-size:0.75rem;margin:0;}.TablePaginationSteps{display:flex;align-items:center;flex-wrap:wrap;list-style:none;color:", ";font-size:0.875rem;margin:0;padding:0;}.TablePaginationStep:first-of-type{margin-right:1rem;}.TablePaginationStep:last-of-type{margin-left:1rem;}.TablePaginationAction{display:flex;align-items:center;color:", ";font-size:0.875rem;line-height:calc(20 / 14);user-select:none;padding:0.5rem;border-radius:6px;}.TablePaginationAction[data-has-page]{color:", ";}.TablePaginationPage{min-width:2rem;min-height:2rem;display:flex;align-items:center;justify-content:center;font-size:0.875rem;line-height:calc(20 / 14);user-select:none;border-radius:6px;padding:0.5rem calc((2rem - 1.25rem) / 2);}.TablePaginationAction[data-has-page]:hover,.TablePaginationAction[data-has-page]:focus,.TablePaginationPage:hover,.TablePaginationPage:focus{background-color:", ";}.TablePaginationPage[data-active='true']{background-color:", ";color:", ";}.TablePaginationPage[data-active='true']:focus-visible{outline:2px solid var(--bgColor-accent-emphasis);outline-offset:-2px;box-shadow:inset 0 0 0 3px var(--fgColor-onEmphasis);}.TablePaginationTruncationStep{display:flex;align-items:center;justify-content:center;min-width:2rem;min-height:2rem;user-select:none;}", ""], get('colors.border.default'), get('colors.fg.muted'), get('colors.fg.default'), get('colors.fg.muted'), get('colors.accent.fg'), get('colors.actionListItem.default.hoverBg'), get('colors.accent.emphasis'), get('colors.fg.onEmphasis'),
|
|
18
|
-
// Hides pages based on the viewport range passed to `showPages`
|
|
19
|
-
Object.keys(viewportRanges).map(viewportRangeKey => {
|
|
20
|
-
return `
|
|
21
|
-
@media (${viewportRanges[viewportRangeKey]}) {
|
|
22
|
-
.TablePaginationSteps[data-hidden-viewport-ranges*='${viewportRangeKey}'] > *:not(:first-child):not(:last-child) {
|
|
23
|
-
display: none;
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
.TablePaginationSteps[data-hidden-viewport-ranges*='${viewportRangeKey}'] > *:first-child {
|
|
27
|
-
margin-inline-end: 0;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
.TablePaginationSteps[data-hidden-viewport-ranges*='${viewportRangeKey}'] > *:last-child {
|
|
31
|
-
margin-inline-start: 0;
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
`;
|
|
35
|
-
}).join(''));
|
|
36
14
|
const defaultShowPages = {
|
|
37
15
|
narrow: false
|
|
38
16
|
};
|
|
@@ -75,20 +53,20 @@ function Pagination({
|
|
|
75
53
|
return buildPaginationModel(pageCount, pageIndex + 1, !!showPages, 1, 2);
|
|
76
54
|
}, [pageCount, pageIndex, showPages]);
|
|
77
55
|
return /*#__PURE__*/jsxs(LiveRegion, {
|
|
78
|
-
children: [/*#__PURE__*/jsx(LiveRegionOutlet, {}), /*#__PURE__*/jsxs(
|
|
56
|
+
children: [/*#__PURE__*/jsx(LiveRegionOutlet, {}), /*#__PURE__*/jsxs("nav", {
|
|
79
57
|
"aria-label": label,
|
|
80
|
-
className:
|
|
58
|
+
className: clsx('TablePagination', classes.TablePagination),
|
|
81
59
|
id: id,
|
|
82
60
|
children: [/*#__PURE__*/jsx(Range, {
|
|
83
61
|
pageStart: pageStart,
|
|
84
62
|
pageEnd: pageEnd,
|
|
85
63
|
totalCount: totalCount
|
|
86
64
|
}), /*#__PURE__*/jsxs("ol", {
|
|
87
|
-
className:
|
|
65
|
+
className: clsx('TablePaginationSteps', classes.TablePaginationSteps),
|
|
88
66
|
"data-hidden-viewport-ranges": getViewportRangesToHidePages().join(' '),
|
|
89
67
|
children: [/*#__PURE__*/jsx(Step, {
|
|
90
68
|
children: /*#__PURE__*/jsxs(Button, {
|
|
91
|
-
className:
|
|
69
|
+
className: clsx('TablePaginationAction', classes.TablePaginationAction),
|
|
92
70
|
type: "button",
|
|
93
71
|
"data-has-page": hasPreviousPage ? true : undefined,
|
|
94
72
|
"aria-disabled": !hasPreviousPage ? true : undefined,
|
|
@@ -99,7 +77,6 @@ function Pagination({
|
|
|
99
77
|
selectPreviousPage();
|
|
100
78
|
},
|
|
101
79
|
children: [hasPreviousPage ? /*#__PURE__*/jsx(ChevronLeftIcon, {}) : null, /*#__PURE__*/jsx("span", {
|
|
102
|
-
className: "TablePaginationActionLabel",
|
|
103
80
|
children: "Previous"
|
|
104
81
|
}), /*#__PURE__*/jsx(VisuallyHidden, {
|
|
105
82
|
children: "\xA0page"
|
|
@@ -123,7 +100,7 @@ function Pagination({
|
|
|
123
100
|
}
|
|
124
101
|
}), /*#__PURE__*/jsx(Step, {
|
|
125
102
|
children: /*#__PURE__*/jsxs(Button, {
|
|
126
|
-
className:
|
|
103
|
+
className: clsx('TablePaginationAction', classes.TablePaginationAction),
|
|
127
104
|
type: "button",
|
|
128
105
|
"data-has-page": hasNextPage ? true : undefined,
|
|
129
106
|
"aria-disabled": !hasNextPage ? true : undefined,
|
|
@@ -134,7 +111,6 @@ function Pagination({
|
|
|
134
111
|
selectNextPage();
|
|
135
112
|
},
|
|
136
113
|
children: [/*#__PURE__*/jsx("span", {
|
|
137
|
-
className: "TablePaginationActionLabel",
|
|
138
114
|
children: "Next"
|
|
139
115
|
}), /*#__PURE__*/jsx(VisuallyHidden, {
|
|
140
116
|
children: "\xA0page"
|
|
@@ -147,7 +123,7 @@ function Pagination({
|
|
|
147
123
|
}
|
|
148
124
|
Pagination.displayName = "Pagination";
|
|
149
125
|
function Range(t0) {
|
|
150
|
-
const $ = c(
|
|
126
|
+
const $ = c(12);
|
|
151
127
|
const {
|
|
152
128
|
pageStart,
|
|
153
129
|
pageEnd,
|
|
@@ -167,46 +143,53 @@ function Range(t0) {
|
|
|
167
143
|
t2 = $[1];
|
|
168
144
|
}
|
|
169
145
|
let t3;
|
|
170
|
-
let t4;
|
|
171
146
|
if ($[2] === Symbol.for("react.memo_cache_sentinel")) {
|
|
172
|
-
t3 =
|
|
147
|
+
t3 = clsx("TablePaginationRange", classes.TablePaginationRange);
|
|
148
|
+
$[2] = t3;
|
|
149
|
+
} else {
|
|
150
|
+
t3 = $[2];
|
|
151
|
+
}
|
|
152
|
+
let t4;
|
|
153
|
+
let t5;
|
|
154
|
+
if ($[3] === Symbol.for("react.memo_cache_sentinel")) {
|
|
155
|
+
t4 = /*#__PURE__*/jsx(VisuallyHidden, {
|
|
173
156
|
children: "\xA0through\xA0"
|
|
174
157
|
});
|
|
175
|
-
|
|
158
|
+
t5 = /*#__PURE__*/jsx("span", {
|
|
176
159
|
"aria-hidden": "true",
|
|
177
160
|
children: "\u2012"
|
|
178
161
|
});
|
|
179
|
-
$[2] = t3;
|
|
180
162
|
$[3] = t4;
|
|
163
|
+
$[4] = t5;
|
|
181
164
|
} else {
|
|
182
|
-
t3 = $[2];
|
|
183
165
|
t4 = $[3];
|
|
166
|
+
t5 = $[4];
|
|
184
167
|
}
|
|
185
|
-
let
|
|
186
|
-
if ($[
|
|
187
|
-
|
|
188
|
-
className:
|
|
189
|
-
children: [start,
|
|
168
|
+
let t6;
|
|
169
|
+
if ($[5] !== end || $[6] !== start || $[7] !== totalCount) {
|
|
170
|
+
t6 = /*#__PURE__*/jsxs("p", {
|
|
171
|
+
className: t3,
|
|
172
|
+
children: [start, t4, t5, end, " of ", totalCount]
|
|
190
173
|
});
|
|
191
|
-
$[
|
|
192
|
-
$[
|
|
193
|
-
$[
|
|
194
|
-
$[
|
|
174
|
+
$[5] = end;
|
|
175
|
+
$[6] = start;
|
|
176
|
+
$[7] = totalCount;
|
|
177
|
+
$[8] = t6;
|
|
195
178
|
} else {
|
|
196
|
-
|
|
179
|
+
t6 = $[8];
|
|
197
180
|
}
|
|
198
|
-
let
|
|
199
|
-
if ($[
|
|
200
|
-
|
|
201
|
-
children: [t2,
|
|
181
|
+
let t7;
|
|
182
|
+
if ($[9] !== t2 || $[10] !== t6) {
|
|
183
|
+
t7 = /*#__PURE__*/jsxs(Fragment, {
|
|
184
|
+
children: [t2, t6]
|
|
202
185
|
});
|
|
203
|
-
$[
|
|
204
|
-
$[9] = t5;
|
|
186
|
+
$[9] = t2;
|
|
205
187
|
$[10] = t6;
|
|
188
|
+
$[11] = t7;
|
|
206
189
|
} else {
|
|
207
|
-
|
|
190
|
+
t7 = $[11];
|
|
208
191
|
}
|
|
209
|
-
return
|
|
192
|
+
return t7;
|
|
210
193
|
}
|
|
211
194
|
function TruncationStep() {
|
|
212
195
|
const $ = c(1);
|
|
@@ -214,7 +197,7 @@ function TruncationStep() {
|
|
|
214
197
|
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
215
198
|
t0 = /*#__PURE__*/jsx("li", {
|
|
216
199
|
"aria-hidden": "true",
|
|
217
|
-
className: "TablePaginationTruncationStep",
|
|
200
|
+
className: clsx("TablePaginationTruncationStep", classes.TablePaginationTruncationStep),
|
|
218
201
|
children: "\u2026"
|
|
219
202
|
});
|
|
220
203
|
$[0] = t0;
|
|
@@ -224,60 +207,74 @@ function TruncationStep() {
|
|
|
224
207
|
return t0;
|
|
225
208
|
}
|
|
226
209
|
function Step(t0) {
|
|
227
|
-
const $ = c(
|
|
210
|
+
const $ = c(3);
|
|
228
211
|
const {
|
|
229
212
|
children
|
|
230
213
|
} = t0;
|
|
231
214
|
let t1;
|
|
232
|
-
if ($[0]
|
|
233
|
-
t1 =
|
|
234
|
-
|
|
215
|
+
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
216
|
+
t1 = clsx("TablePaginationStep", classes.TablePaginationStep);
|
|
217
|
+
$[0] = t1;
|
|
218
|
+
} else {
|
|
219
|
+
t1 = $[0];
|
|
220
|
+
}
|
|
221
|
+
let t2;
|
|
222
|
+
if ($[1] !== children) {
|
|
223
|
+
t2 = /*#__PURE__*/jsx("li", {
|
|
224
|
+
className: t1,
|
|
235
225
|
children: children
|
|
236
226
|
});
|
|
237
|
-
$[
|
|
238
|
-
$[
|
|
227
|
+
$[1] = children;
|
|
228
|
+
$[2] = t2;
|
|
239
229
|
} else {
|
|
240
|
-
|
|
230
|
+
t2 = $[2];
|
|
241
231
|
}
|
|
242
|
-
return
|
|
232
|
+
return t2;
|
|
243
233
|
}
|
|
244
234
|
function Page(t0) {
|
|
245
|
-
const $ = c(
|
|
235
|
+
const $ = c(7);
|
|
246
236
|
const {
|
|
247
237
|
active,
|
|
248
238
|
children,
|
|
249
239
|
onClick
|
|
250
240
|
} = t0;
|
|
251
|
-
|
|
252
|
-
const t2 = active ? true : undefined;
|
|
253
|
-
let t3;
|
|
241
|
+
let t1;
|
|
254
242
|
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
255
|
-
|
|
243
|
+
t1 = clsx("TablePaginationPage", classes.TablePaginationPage);
|
|
244
|
+
$[0] = t1;
|
|
245
|
+
} else {
|
|
246
|
+
t1 = $[0];
|
|
247
|
+
}
|
|
248
|
+
const t2 = active ? true : undefined;
|
|
249
|
+
const t3 = active ? true : undefined;
|
|
250
|
+
let t4;
|
|
251
|
+
if ($[1] === Symbol.for("react.memo_cache_sentinel")) {
|
|
252
|
+
t4 = /*#__PURE__*/jsx(VisuallyHidden, {
|
|
256
253
|
children: "Page\xA0"
|
|
257
254
|
});
|
|
258
|
-
$[
|
|
255
|
+
$[1] = t4;
|
|
259
256
|
} else {
|
|
260
|
-
|
|
257
|
+
t4 = $[1];
|
|
261
258
|
}
|
|
262
|
-
let
|
|
263
|
-
if ($[
|
|
264
|
-
|
|
265
|
-
className:
|
|
259
|
+
let t5;
|
|
260
|
+
if ($[2] !== children || $[3] !== onClick || $[4] !== t2 || $[5] !== t3) {
|
|
261
|
+
t5 = /*#__PURE__*/jsxs(Button, {
|
|
262
|
+
className: t1,
|
|
266
263
|
type: "button",
|
|
267
|
-
"data-active":
|
|
268
|
-
"aria-current":
|
|
264
|
+
"data-active": t2,
|
|
265
|
+
"aria-current": t3,
|
|
269
266
|
onClick: onClick,
|
|
270
|
-
children: [
|
|
267
|
+
children: [t4, children]
|
|
271
268
|
});
|
|
272
|
-
$[
|
|
273
|
-
$[
|
|
274
|
-
$[3] = t1;
|
|
269
|
+
$[2] = children;
|
|
270
|
+
$[3] = onClick;
|
|
275
271
|
$[4] = t2;
|
|
276
|
-
$[5] =
|
|
272
|
+
$[5] = t3;
|
|
273
|
+
$[6] = t5;
|
|
277
274
|
} else {
|
|
278
|
-
|
|
275
|
+
t5 = $[6];
|
|
279
276
|
}
|
|
280
|
-
return
|
|
277
|
+
return t5;
|
|
281
278
|
}
|
|
282
279
|
function usePagination(config) {
|
|
283
280
|
const $ = c(24);
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import './Pagination-b6f8418c.css';
|
|
2
|
+
|
|
3
|
+
var classes = {"TablePagination":"prc-DataTable-TablePagination-ZbY9p","TablePaginationSteps":"prc-DataTable-TablePaginationSteps-Qqz6y","TablePaginationRange":"prc-DataTable-TablePaginationRange-Kp7GT","TablePaginationStep":"prc-DataTable-TablePaginationStep-0FsgZ","TablePaginationAction":"prc-DataTable-TablePaginationAction-kKQK4","TablePaginationPage":"prc-DataTable-TablePaginationPage-MQm-t","TablePaginationTruncationStep":"prc-DataTable-TablePaginationTruncationStep-HEMTY"};
|
|
4
|
+
|
|
5
|
+
export { classes as default };
|
|
@@ -81,7 +81,7 @@ declare function TableCell({ align, className, children, scope, ...rest }: Table
|
|
|
81
81
|
type TableCellPlaceholderProps = React.PropsWithChildren;
|
|
82
82
|
declare function TableCellPlaceholder({ children }: TableCellPlaceholderProps): React.JSX.Element;
|
|
83
83
|
export type TableContainerProps = React.PropsWithChildren<SxProp & React.HTMLAttributes<HTMLDivElement>>;
|
|
84
|
-
declare function TableContainer({ children, className,
|
|
84
|
+
declare function TableContainer({ children, className, ...rest }: TableContainerProps): React.JSX.Element;
|
|
85
85
|
export type TableTitleProps = React.PropsWithChildren<{
|
|
86
86
|
/**
|
|
87
87
|
* Provide an alternate element or component to use as the container for
|
|
@@ -5,13 +5,12 @@ import React from 'react';
|
|
|
5
5
|
import VisuallyHidden from '../_VisuallyHidden.js';
|
|
6
6
|
import { SortDirection } from './sorting.js';
|
|
7
7
|
import { useTableLayout } from './useTable.js';
|
|
8
|
-
import { SkeletonText } from '../experimental/Skeleton/SkeletonText.js';
|
|
9
8
|
import { Button } from '../internal/components/ButtonReset.js';
|
|
10
9
|
import classes from './Table.module.css.js';
|
|
11
|
-
import { defaultSxProp } from '../utils/defaultSxProp.js';
|
|
12
10
|
import { BoxWithFallback } from '../internal/components/BoxWithFallback.js';
|
|
13
11
|
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
14
12
|
import { ScrollableRegion } from '../ScrollableRegion/ScrollableRegion.js';
|
|
13
|
+
import { SkeletonText } from '../SkeletonText/SkeletonText.js';
|
|
15
14
|
import Text from '../Text/Text.js';
|
|
16
15
|
|
|
17
16
|
const Table = /*#__PURE__*/React.forwardRef(function Table(t0, ref) {
|
|
@@ -456,55 +455,48 @@ function TableCellPlaceholder(t0) {
|
|
|
456
455
|
// ----------------------------------------------------------------------------
|
|
457
456
|
|
|
458
457
|
function TableContainer(t0) {
|
|
459
|
-
const $ = c(
|
|
458
|
+
const $ = c(10);
|
|
460
459
|
let children;
|
|
461
460
|
let className;
|
|
462
461
|
let rest;
|
|
463
|
-
let t1;
|
|
464
462
|
if ($[0] !== t0) {
|
|
465
463
|
({
|
|
466
464
|
children,
|
|
467
465
|
className,
|
|
468
|
-
sx: t1,
|
|
469
466
|
...rest
|
|
470
467
|
} = t0);
|
|
471
468
|
$[0] = t0;
|
|
472
469
|
$[1] = children;
|
|
473
470
|
$[2] = className;
|
|
474
471
|
$[3] = rest;
|
|
475
|
-
$[4] = t1;
|
|
476
472
|
} else {
|
|
477
473
|
children = $[1];
|
|
478
474
|
className = $[2];
|
|
479
475
|
rest = $[3];
|
|
480
|
-
t1 = $[4];
|
|
481
476
|
}
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
$[5] =
|
|
487
|
-
$[6] = t2;
|
|
477
|
+
let t1;
|
|
478
|
+
if ($[4] !== className) {
|
|
479
|
+
t1 = clsx(className, classes.TableContainer);
|
|
480
|
+
$[4] = className;
|
|
481
|
+
$[5] = t1;
|
|
488
482
|
} else {
|
|
489
|
-
|
|
483
|
+
t1 = $[5];
|
|
490
484
|
}
|
|
491
|
-
let
|
|
492
|
-
if ($[
|
|
493
|
-
|
|
485
|
+
let t2;
|
|
486
|
+
if ($[6] !== children || $[7] !== rest || $[8] !== t1) {
|
|
487
|
+
t2 = /*#__PURE__*/jsx(BoxWithFallback, {
|
|
494
488
|
...rest,
|
|
495
|
-
className:
|
|
496
|
-
sx: sxProp,
|
|
489
|
+
className: t1,
|
|
497
490
|
children: children
|
|
498
491
|
});
|
|
499
|
-
$[
|
|
500
|
-
$[
|
|
501
|
-
$[
|
|
502
|
-
$[
|
|
503
|
-
$[11] = t3;
|
|
492
|
+
$[6] = children;
|
|
493
|
+
$[7] = rest;
|
|
494
|
+
$[8] = t1;
|
|
495
|
+
$[9] = t2;
|
|
504
496
|
} else {
|
|
505
|
-
|
|
497
|
+
t2 = $[9];
|
|
506
498
|
}
|
|
507
|
-
return
|
|
499
|
+
return t2;
|
|
508
500
|
}
|
|
509
501
|
const TableTitle = /*#__PURE__*/React.forwardRef(function TableTitle(t0, ref) {
|
|
510
502
|
const $ = c(6);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { InputType } from '
|
|
1
|
+
import type { InputType } from 'storybook/internal/csf';
|
|
2
2
|
export type ColWidthArgTypes = Record<string, string>;
|
|
3
3
|
export declare const getColumnWidthArgTypes: (colCount: number) => InputType;
|
|
4
4
|
//# sourceMappingURL=storyHelpers.d.ts.map
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { c } from 'react-compiler-runtime';
|
|
2
2
|
import { useState } from 'react';
|
|
3
|
-
import { strategies, SortDirection,
|
|
3
|
+
import { strategies, SortDirection, DEFAULT_SORT_DIRECTION, transition } from './sorting.js';
|
|
4
4
|
|
|
5
5
|
function useTable(t0) {
|
|
6
|
-
const $ = c(
|
|
6
|
+
const $ = c(20);
|
|
7
7
|
const {
|
|
8
8
|
columns,
|
|
9
9
|
data,
|
|
@@ -41,12 +41,13 @@ function useTable(t0) {
|
|
|
41
41
|
}
|
|
42
42
|
}
|
|
43
43
|
}
|
|
44
|
-
let
|
|
45
|
-
let
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
44
|
+
let t2;
|
|
45
|
+
let t3;
|
|
46
|
+
let t4;
|
|
47
|
+
if ($[4] !== columns || $[5] !== data || $[6] !== getRowId || $[7] !== prevData || $[8] !== rowOrder || $[9] !== sortByColumn) {
|
|
48
|
+
let t5;
|
|
49
|
+
if ($[13] !== sortByColumn) {
|
|
50
|
+
t5 = column_1 => {
|
|
50
51
|
var _column_1$id;
|
|
51
52
|
const id_0 = (_column_1$id = column_1.id) !== null && _column_1$id !== void 0 ? _column_1$id : column_1.field;
|
|
52
53
|
if (id_0 === undefined) {
|
|
@@ -67,12 +68,12 @@ function useTable(t0) {
|
|
|
67
68
|
}
|
|
68
69
|
};
|
|
69
70
|
};
|
|
70
|
-
$[
|
|
71
|
-
$[
|
|
71
|
+
$[13] = sortByColumn;
|
|
72
|
+
$[14] = t5;
|
|
72
73
|
} else {
|
|
73
|
-
|
|
74
|
+
t5 = $[14];
|
|
74
75
|
}
|
|
75
|
-
headers = columns.map(
|
|
76
|
+
const headers = columns.map(t5);
|
|
76
77
|
if (data !== prevData) {
|
|
77
78
|
setPrevData(data);
|
|
78
79
|
setRowOrder(data);
|
|
@@ -80,7 +81,7 @@ function useTable(t0) {
|
|
|
80
81
|
sortRows(sortByColumn);
|
|
81
82
|
}
|
|
82
83
|
}
|
|
83
|
-
sortBy = function sortBy(header) {
|
|
84
|
+
const sortBy = function sortBy(header) {
|
|
84
85
|
const sortState = {
|
|
85
86
|
id: header.id,
|
|
86
87
|
direction: sortByColumn && sortByColumn.id === header.id ? transition(sortByColumn.direction) : DEFAULT_SORT_DIRECTION
|
|
@@ -124,86 +125,66 @@ function useTable(t0) {
|
|
|
124
125
|
return 0;
|
|
125
126
|
}));
|
|
126
127
|
}
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
getValue() {
|
|
146
|
-
return row;
|
|
147
|
-
},
|
|
148
|
-
getCells() {
|
|
149
|
-
return headers.map(header_2 => {
|
|
150
|
-
var _header_2$column$rowH;
|
|
151
|
-
return {
|
|
152
|
-
id: `${rowId}:${header_2.id}`,
|
|
153
|
-
column: header_2.column,
|
|
154
|
-
rowHeader: (_header_2$column$rowH = header_2.column.rowHeader) !== null && _header_2$column$rowH !== void 0 ? _header_2$column$rowH : false,
|
|
155
|
-
getValue() {
|
|
156
|
-
if (header_2.column.field !== undefined) {
|
|
157
|
-
return get(row, header_2.column.field);
|
|
158
|
-
}
|
|
159
|
-
throw new Error(`Unable to get value for column header ${header_2.id}`);
|
|
128
|
+
t2 = headers;
|
|
129
|
+
t3 = rowOrder.map(row => {
|
|
130
|
+
const rowId = getRowId(row);
|
|
131
|
+
return {
|
|
132
|
+
id: `${rowId}`,
|
|
133
|
+
getValue() {
|
|
134
|
+
return row;
|
|
135
|
+
},
|
|
136
|
+
getCells() {
|
|
137
|
+
return headers.map(header_2 => {
|
|
138
|
+
var _header_2$column$rowH;
|
|
139
|
+
return {
|
|
140
|
+
id: `${rowId}:${header_2.id}`,
|
|
141
|
+
column: header_2.column,
|
|
142
|
+
rowHeader: (_header_2$column$rowH = header_2.column.rowHeader) !== null && _header_2$column$rowH !== void 0 ? _header_2$column$rowH : false,
|
|
143
|
+
getValue() {
|
|
144
|
+
if (header_2.column.field !== undefined) {
|
|
145
|
+
return get(row, header_2.column.field);
|
|
160
146
|
}
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
147
|
+
throw new Error(`Unable to get value for column header ${header_2.id}`);
|
|
148
|
+
}
|
|
149
|
+
};
|
|
150
|
+
});
|
|
151
|
+
}
|
|
165
152
|
};
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
$[18] = t3;
|
|
169
|
-
} else {
|
|
170
|
-
t3 = $[18];
|
|
171
|
-
}
|
|
172
|
-
t2 = rowOrder.map(t3);
|
|
173
|
-
$[12] = getRowId;
|
|
174
|
-
$[13] = headers;
|
|
175
|
-
$[14] = rowOrder;
|
|
176
|
-
$[15] = t2;
|
|
177
|
-
} else {
|
|
178
|
-
t2 = $[15];
|
|
179
|
-
}
|
|
180
|
-
let t3;
|
|
181
|
-
if ($[19] !== sortBy) {
|
|
182
|
-
t3 = {
|
|
153
|
+
});
|
|
154
|
+
t4 = {
|
|
183
155
|
sortBy
|
|
184
156
|
};
|
|
185
|
-
$[
|
|
186
|
-
$[
|
|
157
|
+
$[4] = columns;
|
|
158
|
+
$[5] = data;
|
|
159
|
+
$[6] = getRowId;
|
|
160
|
+
$[7] = prevData;
|
|
161
|
+
$[8] = rowOrder;
|
|
162
|
+
$[9] = sortByColumn;
|
|
163
|
+
$[10] = t2;
|
|
164
|
+
$[11] = t3;
|
|
165
|
+
$[12] = t4;
|
|
187
166
|
} else {
|
|
188
|
-
|
|
167
|
+
t2 = $[10];
|
|
168
|
+
t3 = $[11];
|
|
169
|
+
t4 = $[12];
|
|
189
170
|
}
|
|
190
|
-
let
|
|
191
|
-
if ($[
|
|
192
|
-
|
|
193
|
-
headers,
|
|
194
|
-
rows:
|
|
195
|
-
actions:
|
|
171
|
+
let t5;
|
|
172
|
+
if ($[15] !== gridTemplateColumns || $[16] !== t2 || $[17] !== t3 || $[18] !== t4) {
|
|
173
|
+
t5 = {
|
|
174
|
+
headers: t2,
|
|
175
|
+
rows: t3,
|
|
176
|
+
actions: t4,
|
|
196
177
|
gridTemplateColumns
|
|
197
178
|
};
|
|
198
|
-
$[
|
|
199
|
-
$[
|
|
200
|
-
$[
|
|
201
|
-
$[
|
|
202
|
-
$[
|
|
179
|
+
$[15] = gridTemplateColumns;
|
|
180
|
+
$[16] = t2;
|
|
181
|
+
$[17] = t3;
|
|
182
|
+
$[18] = t4;
|
|
183
|
+
$[19] = t5;
|
|
203
184
|
} else {
|
|
204
|
-
|
|
185
|
+
t5 = $[19];
|
|
205
186
|
}
|
|
206
|
-
return
|
|
187
|
+
return t5;
|
|
207
188
|
}
|
|
208
189
|
function getInitialSortState(columns, initialSortColumn, initialSortDirection) {
|
|
209
190
|
if (initialSortColumn !== undefined) {
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import React, { type ComponentPropsWithoutRef } from 'react';
|
|
2
|
-
import type { SxProp } from '../sx';
|
|
3
2
|
export type SummaryProps<As extends React.ElementType> = {
|
|
4
3
|
/**
|
|
5
4
|
* HTML element to render summary as.
|
|
@@ -12,9 +11,9 @@ declare namespace Summary {
|
|
|
12
11
|
var displayName: string;
|
|
13
12
|
}
|
|
14
13
|
export { Summary };
|
|
15
|
-
declare const Details: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.DetailsHTMLAttributes<HTMLDetailsElement>, HTMLDetailsElement>, "ref"> &
|
|
14
|
+
declare const Details: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.DetailsHTMLAttributes<HTMLDetailsElement>, HTMLDetailsElement>, "ref"> & React.RefAttributes<HTMLDetailsElement>> & {
|
|
16
15
|
Summary: typeof Summary;
|
|
17
16
|
};
|
|
18
|
-
export type DetailsProps = ComponentPropsWithoutRef<'details'
|
|
17
|
+
export type DetailsProps = ComponentPropsWithoutRef<'details'>;
|
|
19
18
|
export default Details;
|
|
20
19
|
//# sourceMappingURL=Details.d.ts.map
|