@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
package/lib-esm/Radio/Radio.js
CHANGED
|
@@ -4,15 +4,14 @@ import { RadioGroupContext } from '../RadioGroup/RadioGroup.js';
|
|
|
4
4
|
import { clsx } from 'clsx';
|
|
5
5
|
import sharedClasses from '../Checkbox/shared.module.css.js';
|
|
6
6
|
import classes from './Radio.module.css.js';
|
|
7
|
-
import {
|
|
7
|
+
import { BoxWithFallback } from '../internal/components/BoxWithFallback.js';
|
|
8
8
|
import { jsx } from 'react/jsx-runtime';
|
|
9
|
-
import Box from '../Box/Box.js';
|
|
10
9
|
|
|
11
10
|
/**
|
|
12
11
|
* An accessible, native radio component for selecting one option from a list.
|
|
13
12
|
*/
|
|
14
13
|
const Radio = /*#__PURE__*/React.forwardRef((t0, ref) => {
|
|
15
|
-
const $ = c(
|
|
14
|
+
const $ = c(26);
|
|
16
15
|
let checked;
|
|
17
16
|
let className;
|
|
18
17
|
let disabled;
|
|
@@ -21,7 +20,6 @@ const Radio = /*#__PURE__*/React.forwardRef((t0, ref) => {
|
|
|
21
20
|
let required;
|
|
22
21
|
let rest;
|
|
23
22
|
let t1;
|
|
24
|
-
let t2;
|
|
25
23
|
let value;
|
|
26
24
|
if ($[0] !== t0) {
|
|
27
25
|
({
|
|
@@ -29,11 +27,10 @@ const Radio = /*#__PURE__*/React.forwardRef((t0, ref) => {
|
|
|
29
27
|
disabled,
|
|
30
28
|
name: nameProp,
|
|
31
29
|
onChange,
|
|
32
|
-
sx: t1,
|
|
33
30
|
required,
|
|
34
31
|
value,
|
|
35
32
|
className,
|
|
36
|
-
"aria-hidden":
|
|
33
|
+
"aria-hidden": t1,
|
|
37
34
|
...rest
|
|
38
35
|
} = t0);
|
|
39
36
|
$[0] = t0;
|
|
@@ -45,8 +42,7 @@ const Radio = /*#__PURE__*/React.forwardRef((t0, ref) => {
|
|
|
45
42
|
$[6] = required;
|
|
46
43
|
$[7] = rest;
|
|
47
44
|
$[8] = t1;
|
|
48
|
-
$[9] =
|
|
49
|
-
$[10] = value;
|
|
45
|
+
$[9] = value;
|
|
50
46
|
} else {
|
|
51
47
|
checked = $[1];
|
|
52
48
|
className = $[2];
|
|
@@ -56,114 +52,67 @@ const Radio = /*#__PURE__*/React.forwardRef((t0, ref) => {
|
|
|
56
52
|
required = $[6];
|
|
57
53
|
rest = $[7];
|
|
58
54
|
t1 = $[8];
|
|
59
|
-
|
|
60
|
-
value = $[10];
|
|
55
|
+
value = $[9];
|
|
61
56
|
}
|
|
62
|
-
const
|
|
63
|
-
const ariaHidden = t2 === undefined ? false : t2;
|
|
57
|
+
const ariaHidden = t1 === undefined ? false : t1;
|
|
64
58
|
const radioGroupContext = useContext(RadioGroupContext);
|
|
65
|
-
let
|
|
66
|
-
if ($[
|
|
67
|
-
|
|
59
|
+
let t2;
|
|
60
|
+
if ($[10] !== onChange || $[11] !== radioGroupContext) {
|
|
61
|
+
t2 = e => {
|
|
68
62
|
(radioGroupContext === null || radioGroupContext === void 0 ? void 0 : radioGroupContext.onChange) && radioGroupContext.onChange(e);
|
|
69
63
|
onChange && onChange(e);
|
|
70
64
|
};
|
|
71
|
-
$[
|
|
72
|
-
$[
|
|
73
|
-
$[
|
|
65
|
+
$[10] = onChange;
|
|
66
|
+
$[11] = radioGroupContext;
|
|
67
|
+
$[12] = t2;
|
|
74
68
|
} else {
|
|
75
|
-
|
|
69
|
+
t2 = $[12];
|
|
76
70
|
}
|
|
77
|
-
const handleOnChange =
|
|
71
|
+
const handleOnChange = t2;
|
|
78
72
|
const name = nameProp || (radioGroupContext === null || radioGroupContext === void 0 ? void 0 : radioGroupContext.name);
|
|
79
73
|
if (!name && !ariaHidden) {
|
|
80
74
|
console.warn("A radio input must have a `name` attribute. Pass `name` as a prop directly to each Radio, or nest them in a `RadioGroup` component with a `name` prop");
|
|
81
75
|
}
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
$[15] = t5;
|
|
89
|
-
} else {
|
|
90
|
-
t5 = $[15];
|
|
91
|
-
}
|
|
92
|
-
let t6;
|
|
93
|
-
if ($[16] !== ariaHidden || $[17] !== checked || $[18] !== disabled || $[19] !== handleOnChange || $[20] !== name || $[21] !== ref || $[22] !== required || $[23] !== rest || $[24] !== sxProp || $[25] !== t4 || $[26] !== t5 || $[27] !== value) {
|
|
94
|
-
t6 = /*#__PURE__*/jsx(Box, {
|
|
95
|
-
as: "input",
|
|
96
|
-
sx: sxProp,
|
|
97
|
-
type: "radio",
|
|
98
|
-
value: value,
|
|
99
|
-
name: name,
|
|
100
|
-
ref: ref,
|
|
101
|
-
disabled: disabled,
|
|
102
|
-
checked: checked,
|
|
103
|
-
"aria-checked": t4,
|
|
104
|
-
required: required,
|
|
105
|
-
onChange: handleOnChange,
|
|
106
|
-
className: t5,
|
|
107
|
-
"aria-hidden": ariaHidden,
|
|
108
|
-
...rest
|
|
109
|
-
});
|
|
110
|
-
$[16] = ariaHidden;
|
|
111
|
-
$[17] = checked;
|
|
112
|
-
$[18] = disabled;
|
|
113
|
-
$[19] = handleOnChange;
|
|
114
|
-
$[20] = name;
|
|
115
|
-
$[21] = ref;
|
|
116
|
-
$[22] = required;
|
|
117
|
-
$[23] = rest;
|
|
118
|
-
$[24] = sxProp;
|
|
119
|
-
$[25] = t4;
|
|
120
|
-
$[26] = t5;
|
|
121
|
-
$[27] = value;
|
|
122
|
-
$[28] = t6;
|
|
123
|
-
} else {
|
|
124
|
-
t6 = $[28];
|
|
125
|
-
}
|
|
126
|
-
return t6;
|
|
127
|
-
}
|
|
128
|
-
const t4 = checked ? "true" : "false";
|
|
129
|
-
let t5;
|
|
130
|
-
if ($[29] !== className) {
|
|
131
|
-
t5 = clsx(className, sharedClasses.Input, classes.Radio);
|
|
132
|
-
$[29] = className;
|
|
133
|
-
$[30] = t5;
|
|
76
|
+
const t3 = checked ? "true" : "false";
|
|
77
|
+
let t4;
|
|
78
|
+
if ($[13] !== className) {
|
|
79
|
+
t4 = clsx(className, sharedClasses.Input, classes.Radio);
|
|
80
|
+
$[13] = className;
|
|
81
|
+
$[14] = t4;
|
|
134
82
|
} else {
|
|
135
|
-
|
|
83
|
+
t4 = $[14];
|
|
136
84
|
}
|
|
137
|
-
let
|
|
138
|
-
if ($[
|
|
139
|
-
|
|
85
|
+
let t5;
|
|
86
|
+
if ($[15] !== checked || $[16] !== disabled || $[17] !== handleOnChange || $[18] !== name || $[19] !== ref || $[20] !== required || $[21] !== rest || $[22] !== t3 || $[23] !== t4 || $[24] !== value) {
|
|
87
|
+
t5 = /*#__PURE__*/jsx(BoxWithFallback, {
|
|
88
|
+
as: "input",
|
|
140
89
|
type: "radio",
|
|
141
90
|
value: value,
|
|
142
91
|
name: name,
|
|
143
92
|
ref: ref,
|
|
144
93
|
disabled: disabled,
|
|
145
94
|
checked: checked,
|
|
146
|
-
"aria-checked":
|
|
95
|
+
"aria-checked": t3,
|
|
147
96
|
required: required,
|
|
148
97
|
onChange: handleOnChange,
|
|
149
|
-
className:
|
|
98
|
+
className: t4,
|
|
150
99
|
...rest
|
|
151
100
|
});
|
|
152
|
-
$[
|
|
153
|
-
$[
|
|
154
|
-
$[
|
|
155
|
-
$[
|
|
156
|
-
$[
|
|
157
|
-
$[
|
|
158
|
-
$[
|
|
159
|
-
$[
|
|
160
|
-
$[
|
|
161
|
-
$[
|
|
162
|
-
$[
|
|
101
|
+
$[15] = checked;
|
|
102
|
+
$[16] = disabled;
|
|
103
|
+
$[17] = handleOnChange;
|
|
104
|
+
$[18] = name;
|
|
105
|
+
$[19] = ref;
|
|
106
|
+
$[20] = required;
|
|
107
|
+
$[21] = rest;
|
|
108
|
+
$[22] = t3;
|
|
109
|
+
$[23] = t4;
|
|
110
|
+
$[24] = value;
|
|
111
|
+
$[25] = t5;
|
|
163
112
|
} else {
|
|
164
|
-
|
|
113
|
+
t5 = $[25];
|
|
165
114
|
}
|
|
166
|
-
return
|
|
115
|
+
return t5;
|
|
167
116
|
});
|
|
168
117
|
Radio.displayName = 'Radio';
|
|
169
118
|
|
|
@@ -5,7 +5,6 @@ import { SegmentedControlIconButton } from './SegmentedControlIconButton.js';
|
|
|
5
5
|
import { ActionList } from '../ActionList/index.js';
|
|
6
6
|
import { useTheme } from '../ThemeProvider.js';
|
|
7
7
|
import { useResponsiveValue } from '../hooks/useResponsiveValue.js';
|
|
8
|
-
import { defaultSxProp } from '../utils/defaultSxProp.js';
|
|
9
8
|
import { isElement } from 'react-is';
|
|
10
9
|
import classes from './SegmentedControl.module.css.js';
|
|
11
10
|
import { clsx } from 'clsx';
|
|
@@ -23,8 +22,8 @@ const Root = t0 => {
|
|
|
23
22
|
let onChange;
|
|
24
23
|
let rest;
|
|
25
24
|
let size;
|
|
25
|
+
let sxProp;
|
|
26
26
|
let t1;
|
|
27
|
-
let t2;
|
|
28
27
|
if ($[0] !== t0) {
|
|
29
28
|
({
|
|
30
29
|
"aria-label": ariaLabel,
|
|
@@ -33,8 +32,8 @@ const Root = t0 => {
|
|
|
33
32
|
fullWidth,
|
|
34
33
|
onChange,
|
|
35
34
|
size,
|
|
36
|
-
sx:
|
|
37
|
-
variant:
|
|
35
|
+
sx: sxProp,
|
|
36
|
+
variant: t1,
|
|
38
37
|
className,
|
|
39
38
|
...rest
|
|
40
39
|
} = t0);
|
|
@@ -47,8 +46,8 @@ const Root = t0 => {
|
|
|
47
46
|
$[6] = onChange;
|
|
48
47
|
$[7] = rest;
|
|
49
48
|
$[8] = size;
|
|
50
|
-
$[9] =
|
|
51
|
-
$[10] =
|
|
49
|
+
$[9] = sxProp;
|
|
50
|
+
$[10] = t1;
|
|
52
51
|
} else {
|
|
53
52
|
ariaLabel = $[1];
|
|
54
53
|
ariaLabelledby = $[2];
|
|
@@ -58,41 +57,40 @@ const Root = t0 => {
|
|
|
58
57
|
onChange = $[6];
|
|
59
58
|
rest = $[7];
|
|
60
59
|
size = $[8];
|
|
61
|
-
|
|
62
|
-
|
|
60
|
+
sxProp = $[9];
|
|
61
|
+
t1 = $[10];
|
|
63
62
|
}
|
|
64
|
-
const
|
|
65
|
-
const variant = t2 === undefined ? "default" : t2;
|
|
63
|
+
const variant = t1 === undefined ? "default" : t1;
|
|
66
64
|
const segmentedControlContainerRef = useRef(null);
|
|
67
65
|
const {
|
|
68
66
|
theme
|
|
69
67
|
} = useTheme();
|
|
70
|
-
let
|
|
68
|
+
let t2;
|
|
71
69
|
if ($[11] !== children || $[12] !== onChange) {
|
|
72
|
-
|
|
70
|
+
t2 = onChange === undefined || React.Children.toArray(children).some(_temp);
|
|
73
71
|
$[11] = children;
|
|
74
72
|
$[12] = onChange;
|
|
75
|
-
$[13] =
|
|
73
|
+
$[13] = t2;
|
|
76
74
|
} else {
|
|
77
|
-
|
|
75
|
+
t2 = $[13];
|
|
78
76
|
}
|
|
79
|
-
const isUncontrolled =
|
|
77
|
+
const isUncontrolled = t2;
|
|
80
78
|
const responsiveVariant = useResponsiveValue(variant, "default");
|
|
81
79
|
const isFullWidth = useResponsiveValue(fullWidth, false);
|
|
82
|
-
let
|
|
80
|
+
let t3;
|
|
83
81
|
if ($[14] !== children) {
|
|
84
82
|
const selectedSegments = React.Children.toArray(children).map(_temp2);
|
|
85
83
|
const hasSelectedButton = selectedSegments.some(_temp3);
|
|
86
|
-
|
|
84
|
+
t3 = hasSelectedButton ? selectedSegments.indexOf(true) : 0;
|
|
87
85
|
$[14] = children;
|
|
88
|
-
$[15] =
|
|
86
|
+
$[15] = t3;
|
|
89
87
|
} else {
|
|
90
|
-
|
|
88
|
+
t3 = $[15];
|
|
91
89
|
}
|
|
92
|
-
const selectedIndexExternal =
|
|
90
|
+
const selectedIndexExternal = t3;
|
|
93
91
|
const [selectedIndexInternalState, setSelectedIndexInternalState] = useState(selectedIndexExternal);
|
|
94
92
|
const selectedIndex = isUncontrolled ? selectedIndexInternalState : selectedIndexExternal;
|
|
95
|
-
let
|
|
93
|
+
let t4;
|
|
96
94
|
if ($[16] !== ariaLabel || $[17] !== ariaLabelledby || $[18] !== children || $[19] !== className || $[20] !== isFullWidth || $[21] !== isUncontrolled || $[22] !== onChange || $[23] !== responsiveVariant || $[24] !== rest || $[25] !== selectedIndex || $[26] !== size || $[27] !== sxProp || $[28] !== (theme === null || theme === void 0 ? void 0 : theme.colors)) {
|
|
97
95
|
const selectedChild = /*#__PURE__*/React.isValidElement(React.Children.toArray(children)[selectedIndex]) ? React.Children.toArray(children)[selectedIndex] : undefined;
|
|
98
96
|
const getChildIcon = _temp4;
|
|
@@ -100,7 +98,7 @@ const Root = t0 => {
|
|
|
100
98
|
if (!ariaLabel && !ariaLabelledby) {
|
|
101
99
|
console.warn("Use the `aria-label` or `aria-labelledby` prop to provide an accessible label for assistive technologies");
|
|
102
100
|
}
|
|
103
|
-
|
|
101
|
+
t4 = responsiveVariant === "dropdown" ? /*#__PURE__*/jsx(Fragment, {
|
|
104
102
|
children: /*#__PURE__*/jsxs(ActionMenu, {
|
|
105
103
|
children: [/*#__PURE__*/jsx(ActionMenu.Button, {
|
|
106
104
|
"aria-label": ariaLabel && `${getChildText(selectedChild)}, ${ariaLabel}`,
|
|
@@ -200,11 +198,11 @@ const Root = t0 => {
|
|
|
200
198
|
$[26] = size;
|
|
201
199
|
$[27] = sxProp;
|
|
202
200
|
$[28] = theme === null || theme === void 0 ? void 0 : theme.colors;
|
|
203
|
-
$[29] =
|
|
201
|
+
$[29] = t4;
|
|
204
202
|
} else {
|
|
205
|
-
|
|
203
|
+
t4 = $[29];
|
|
206
204
|
}
|
|
207
|
-
return
|
|
205
|
+
return t4;
|
|
208
206
|
};
|
|
209
207
|
Root.displayName = 'SegmentedControl';
|
|
210
208
|
const SegmentedControl = Object.assign(Root, {
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { c } from 'react-compiler-runtime';
|
|
2
|
-
import { defaultSxProp } from '../utils/defaultSxProp.js';
|
|
3
2
|
import { isElement } from 'react-is';
|
|
4
3
|
import classes from './SegmentedControl.module.css.js';
|
|
5
4
|
import { clsx } from 'clsx';
|
|
@@ -13,139 +12,138 @@ const SegmentedControlButton = t0 => {
|
|
|
13
12
|
let className;
|
|
14
13
|
let rest;
|
|
15
14
|
let selected;
|
|
16
|
-
let
|
|
15
|
+
let sxProp;
|
|
17
16
|
if ($[0] !== t0) {
|
|
18
17
|
const {
|
|
19
|
-
children:
|
|
20
|
-
leadingIcon:
|
|
21
|
-
selected:
|
|
22
|
-
sx:
|
|
23
|
-
className:
|
|
18
|
+
children: t1,
|
|
19
|
+
leadingIcon: t2,
|
|
20
|
+
selected: t3,
|
|
21
|
+
sx: t4,
|
|
22
|
+
className: t5,
|
|
24
23
|
defaultSelected: _defaultSelected,
|
|
25
|
-
...
|
|
24
|
+
...t6
|
|
26
25
|
} = t0;
|
|
27
|
-
children =
|
|
28
|
-
LeadingIcon =
|
|
29
|
-
selected =
|
|
30
|
-
|
|
31
|
-
className =
|
|
32
|
-
rest =
|
|
26
|
+
children = t1;
|
|
27
|
+
LeadingIcon = t2;
|
|
28
|
+
selected = t3;
|
|
29
|
+
sxProp = t4;
|
|
30
|
+
className = t5;
|
|
31
|
+
rest = t6;
|
|
33
32
|
$[0] = t0;
|
|
34
33
|
$[1] = LeadingIcon;
|
|
35
34
|
$[2] = children;
|
|
36
35
|
$[3] = className;
|
|
37
36
|
$[4] = rest;
|
|
38
37
|
$[5] = selected;
|
|
39
|
-
$[6] =
|
|
38
|
+
$[6] = sxProp;
|
|
40
39
|
} else {
|
|
41
40
|
LeadingIcon = $[1];
|
|
42
41
|
children = $[2];
|
|
43
42
|
className = $[3];
|
|
44
43
|
rest = $[4];
|
|
45
44
|
selected = $[5];
|
|
46
|
-
|
|
45
|
+
sxProp = $[6];
|
|
47
46
|
}
|
|
48
|
-
|
|
49
|
-
let t2;
|
|
47
|
+
let t1;
|
|
50
48
|
if ($[7] === Symbol.for("react.memo_cache_sentinel")) {
|
|
51
|
-
|
|
52
|
-
$[7] =
|
|
49
|
+
t1 = clsx(classes.Item);
|
|
50
|
+
$[7] = t1;
|
|
53
51
|
} else {
|
|
54
|
-
|
|
52
|
+
t1 = $[7];
|
|
55
53
|
}
|
|
56
|
-
const
|
|
57
|
-
let
|
|
54
|
+
const t2 = selected ? "" : undefined;
|
|
55
|
+
let t3;
|
|
58
56
|
if ($[8] !== className) {
|
|
59
|
-
|
|
57
|
+
t3 = clsx(classes.Button, className);
|
|
60
58
|
$[8] = className;
|
|
61
|
-
$[9] =
|
|
59
|
+
$[9] = t3;
|
|
62
60
|
} else {
|
|
63
|
-
|
|
61
|
+
t3 = $[9];
|
|
64
62
|
}
|
|
65
|
-
let
|
|
63
|
+
let t4;
|
|
66
64
|
if ($[10] === Symbol.for("react.memo_cache_sentinel")) {
|
|
67
|
-
|
|
68
|
-
$[10] =
|
|
65
|
+
t4 = clsx(classes.Content, "segmentedControl-content");
|
|
66
|
+
$[10] = t4;
|
|
69
67
|
} else {
|
|
70
|
-
|
|
68
|
+
t4 = $[10];
|
|
71
69
|
}
|
|
72
|
-
let
|
|
70
|
+
let t5;
|
|
73
71
|
if ($[11] !== LeadingIcon) {
|
|
74
|
-
|
|
72
|
+
t5 = LeadingIcon && /*#__PURE__*/jsx("div", {
|
|
75
73
|
className: classes.LeadingIcon,
|
|
76
74
|
children: isElement(LeadingIcon) ? LeadingIcon : /*#__PURE__*/jsx(LeadingIcon, {})
|
|
77
75
|
});
|
|
78
76
|
$[11] = LeadingIcon;
|
|
79
|
-
$[12] =
|
|
77
|
+
$[12] = t5;
|
|
80
78
|
} else {
|
|
81
|
-
|
|
79
|
+
t5 = $[12];
|
|
82
80
|
}
|
|
83
|
-
let
|
|
81
|
+
let t6;
|
|
84
82
|
if ($[13] === Symbol.for("react.memo_cache_sentinel")) {
|
|
85
|
-
|
|
86
|
-
$[13] =
|
|
83
|
+
t6 = clsx(classes.Text, "segmentedControl-text");
|
|
84
|
+
$[13] = t6;
|
|
87
85
|
} else {
|
|
88
|
-
|
|
86
|
+
t6 = $[13];
|
|
89
87
|
}
|
|
90
|
-
let
|
|
88
|
+
let t7;
|
|
91
89
|
if ($[14] !== children) {
|
|
92
|
-
|
|
93
|
-
className:
|
|
90
|
+
t7 = /*#__PURE__*/jsx("div", {
|
|
91
|
+
className: t6,
|
|
94
92
|
"data-text": children,
|
|
95
93
|
children: children
|
|
96
94
|
});
|
|
97
95
|
$[14] = children;
|
|
98
|
-
$[15] =
|
|
96
|
+
$[15] = t7;
|
|
99
97
|
} else {
|
|
100
|
-
|
|
98
|
+
t7 = $[15];
|
|
101
99
|
}
|
|
102
|
-
let
|
|
103
|
-
if ($[16] !==
|
|
104
|
-
|
|
105
|
-
className:
|
|
106
|
-
children: [
|
|
100
|
+
let t8;
|
|
101
|
+
if ($[16] !== t5 || $[17] !== t7) {
|
|
102
|
+
t8 = /*#__PURE__*/jsxs("span", {
|
|
103
|
+
className: t4,
|
|
104
|
+
children: [t5, t7]
|
|
107
105
|
});
|
|
108
|
-
$[16] =
|
|
109
|
-
$[17] =
|
|
110
|
-
$[18] =
|
|
106
|
+
$[16] = t5;
|
|
107
|
+
$[17] = t7;
|
|
108
|
+
$[18] = t8;
|
|
111
109
|
} else {
|
|
112
|
-
|
|
110
|
+
t8 = $[18];
|
|
113
111
|
}
|
|
114
|
-
let
|
|
115
|
-
if ($[19] !== rest || $[20] !== selected || $[21] !==
|
|
116
|
-
|
|
112
|
+
let t9;
|
|
113
|
+
if ($[19] !== rest || $[20] !== selected || $[21] !== t3 || $[22] !== t8) {
|
|
114
|
+
t9 = /*#__PURE__*/jsx(BoxWithFallback, {
|
|
117
115
|
as: "button",
|
|
118
116
|
"aria-current": selected,
|
|
119
|
-
className:
|
|
117
|
+
className: t3,
|
|
120
118
|
type: "button",
|
|
121
119
|
...rest,
|
|
122
|
-
children:
|
|
120
|
+
children: t8
|
|
123
121
|
});
|
|
124
122
|
$[19] = rest;
|
|
125
123
|
$[20] = selected;
|
|
126
|
-
$[21] =
|
|
127
|
-
$[22] =
|
|
128
|
-
$[23] =
|
|
124
|
+
$[21] = t3;
|
|
125
|
+
$[22] = t8;
|
|
126
|
+
$[23] = t9;
|
|
129
127
|
} else {
|
|
130
|
-
|
|
128
|
+
t9 = $[23];
|
|
131
129
|
}
|
|
132
|
-
let
|
|
133
|
-
if ($[24] !== sxProp || $[25] !==
|
|
134
|
-
|
|
130
|
+
let t10;
|
|
131
|
+
if ($[24] !== sxProp || $[25] !== t2 || $[26] !== t9) {
|
|
132
|
+
t10 = /*#__PURE__*/jsx(BoxWithFallback, {
|
|
135
133
|
as: "li",
|
|
136
134
|
sx: sxProp,
|
|
137
|
-
className:
|
|
138
|
-
"data-selected":
|
|
139
|
-
children:
|
|
135
|
+
className: t1,
|
|
136
|
+
"data-selected": t2,
|
|
137
|
+
children: t9
|
|
140
138
|
});
|
|
141
139
|
$[24] = sxProp;
|
|
142
|
-
$[25] =
|
|
143
|
-
$[26] =
|
|
144
|
-
$[27] =
|
|
140
|
+
$[25] = t2;
|
|
141
|
+
$[26] = t9;
|
|
142
|
+
$[27] = t10;
|
|
145
143
|
} else {
|
|
146
|
-
|
|
144
|
+
t10 = $[27];
|
|
147
145
|
}
|
|
148
|
-
return
|
|
146
|
+
return t10;
|
|
149
147
|
};
|
|
150
148
|
|
|
151
149
|
export { SegmentedControlButton as default };
|