@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
|
@@ -24,81 +24,106 @@ const overflowCountFontSizeMap = {
|
|
|
24
24
|
|
|
25
25
|
// using forwardRef is important so that other components (ex. Autocomplete) can use the ref
|
|
26
26
|
function TextInputWithTokensInnerComponent(t0, forwardedRef) {
|
|
27
|
-
const $ = c(
|
|
27
|
+
const $ = c(137);
|
|
28
28
|
let IconComponent;
|
|
29
29
|
let LeadingVisual;
|
|
30
|
+
let TokenComponent;
|
|
30
31
|
let TrailingVisual;
|
|
31
32
|
let block;
|
|
32
33
|
let className;
|
|
33
34
|
let contrast;
|
|
34
35
|
let disabled;
|
|
36
|
+
let hideTokenRemoveButtons;
|
|
37
|
+
let loaderPosition;
|
|
35
38
|
let loading;
|
|
36
39
|
let maxHeight;
|
|
37
40
|
let maxWidthProp;
|
|
38
41
|
let minWidthProp;
|
|
39
42
|
let onTokenRemove;
|
|
40
|
-
let
|
|
43
|
+
let preventTokenWrapping;
|
|
44
|
+
let size;
|
|
41
45
|
let style;
|
|
42
46
|
let sxProp;
|
|
43
47
|
let t1;
|
|
44
|
-
let t2;
|
|
45
|
-
let t3;
|
|
46
|
-
let t4;
|
|
47
|
-
let t5;
|
|
48
48
|
let tokens;
|
|
49
49
|
let validationStatus;
|
|
50
50
|
let variantProp;
|
|
51
51
|
let visibleTokenCount;
|
|
52
52
|
let widthProp;
|
|
53
53
|
if ($[0] !== t0) {
|
|
54
|
-
|
|
55
|
-
icon:
|
|
56
|
-
leadingVisual:
|
|
57
|
-
trailingVisual:
|
|
58
|
-
loading,
|
|
59
|
-
loaderPosition:
|
|
60
|
-
contrast,
|
|
61
|
-
className,
|
|
62
|
-
block,
|
|
63
|
-
disabled,
|
|
64
|
-
sx:
|
|
65
|
-
tokens,
|
|
66
|
-
onTokenRemove,
|
|
67
|
-
tokenComponent:
|
|
68
|
-
preventTokenWrapping:
|
|
69
|
-
size:
|
|
70
|
-
hideTokenRemoveButtons:
|
|
71
|
-
maxHeight,
|
|
72
|
-
width:
|
|
73
|
-
minWidth:
|
|
74
|
-
maxWidth:
|
|
75
|
-
validationStatus,
|
|
76
|
-
variant:
|
|
77
|
-
visibleTokenCount,
|
|
78
|
-
style,
|
|
54
|
+
const {
|
|
55
|
+
icon: t2,
|
|
56
|
+
leadingVisual: t3,
|
|
57
|
+
trailingVisual: t4,
|
|
58
|
+
loading: t5,
|
|
59
|
+
loaderPosition: t6,
|
|
60
|
+
contrast: t7,
|
|
61
|
+
className: t8,
|
|
62
|
+
block: t9,
|
|
63
|
+
disabled: t10,
|
|
64
|
+
sx: t11,
|
|
65
|
+
tokens: t12,
|
|
66
|
+
onTokenRemove: t13,
|
|
67
|
+
tokenComponent: t14,
|
|
68
|
+
preventTokenWrapping: t15,
|
|
69
|
+
size: t16,
|
|
70
|
+
hideTokenRemoveButtons: t17,
|
|
71
|
+
maxHeight: t18,
|
|
72
|
+
width: t19,
|
|
73
|
+
minWidth: t20,
|
|
74
|
+
maxWidth: t21,
|
|
75
|
+
validationStatus: t22,
|
|
76
|
+
variant: t23,
|
|
77
|
+
visibleTokenCount: t24,
|
|
78
|
+
style: t25,
|
|
79
79
|
...rest
|
|
80
|
-
} = t0
|
|
80
|
+
} = t0;
|
|
81
|
+
IconComponent = t2;
|
|
82
|
+
LeadingVisual = t3;
|
|
83
|
+
TrailingVisual = t4;
|
|
84
|
+
loading = t5;
|
|
85
|
+
contrast = t7;
|
|
86
|
+
className = t8;
|
|
87
|
+
block = t9;
|
|
88
|
+
disabled = t10;
|
|
89
|
+
sxProp = t11;
|
|
90
|
+
tokens = t12;
|
|
91
|
+
onTokenRemove = t13;
|
|
92
|
+
maxHeight = t18;
|
|
93
|
+
widthProp = t19;
|
|
94
|
+
minWidthProp = t20;
|
|
95
|
+
maxWidthProp = t21;
|
|
96
|
+
validationStatus = t22;
|
|
97
|
+
variantProp = t23;
|
|
98
|
+
visibleTokenCount = t24;
|
|
99
|
+
style = t25;
|
|
100
|
+
loaderPosition = t6 === undefined ? "auto" : t6;
|
|
101
|
+
TokenComponent = t14 === undefined ? Token : t14;
|
|
102
|
+
preventTokenWrapping = t15 === undefined ? false : t15;
|
|
103
|
+
size = t16 === undefined ? "xlarge" : t16;
|
|
104
|
+
hideTokenRemoveButtons = t17 === undefined ? false : t17;
|
|
105
|
+
t1 = omit(rest);
|
|
81
106
|
$[0] = t0;
|
|
82
107
|
$[1] = IconComponent;
|
|
83
108
|
$[2] = LeadingVisual;
|
|
84
|
-
$[3] =
|
|
85
|
-
$[4] =
|
|
86
|
-
$[5] =
|
|
87
|
-
$[6] =
|
|
88
|
-
$[7] =
|
|
89
|
-
$[8] =
|
|
90
|
-
$[9] =
|
|
91
|
-
$[10] =
|
|
92
|
-
$[11] =
|
|
93
|
-
$[12] =
|
|
94
|
-
$[13] =
|
|
95
|
-
$[14] =
|
|
96
|
-
$[15] =
|
|
97
|
-
$[16] =
|
|
98
|
-
$[17] =
|
|
99
|
-
$[18] =
|
|
100
|
-
$[19] =
|
|
101
|
-
$[20] =
|
|
109
|
+
$[3] = TokenComponent;
|
|
110
|
+
$[4] = TrailingVisual;
|
|
111
|
+
$[5] = block;
|
|
112
|
+
$[6] = className;
|
|
113
|
+
$[7] = contrast;
|
|
114
|
+
$[8] = disabled;
|
|
115
|
+
$[9] = hideTokenRemoveButtons;
|
|
116
|
+
$[10] = loaderPosition;
|
|
117
|
+
$[11] = loading;
|
|
118
|
+
$[12] = maxHeight;
|
|
119
|
+
$[13] = maxWidthProp;
|
|
120
|
+
$[14] = minWidthProp;
|
|
121
|
+
$[15] = onTokenRemove;
|
|
122
|
+
$[16] = preventTokenWrapping;
|
|
123
|
+
$[17] = size;
|
|
124
|
+
$[18] = style;
|
|
125
|
+
$[19] = sxProp;
|
|
126
|
+
$[20] = t1;
|
|
102
127
|
$[21] = tokens;
|
|
103
128
|
$[22] = validationStatus;
|
|
104
129
|
$[23] = variantProp;
|
|
@@ -107,79 +132,66 @@ function TextInputWithTokensInnerComponent(t0, forwardedRef) {
|
|
|
107
132
|
} else {
|
|
108
133
|
IconComponent = $[1];
|
|
109
134
|
LeadingVisual = $[2];
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
135
|
+
TokenComponent = $[3];
|
|
136
|
+
TrailingVisual = $[4];
|
|
137
|
+
block = $[5];
|
|
138
|
+
className = $[6];
|
|
139
|
+
contrast = $[7];
|
|
140
|
+
disabled = $[8];
|
|
141
|
+
hideTokenRemoveButtons = $[9];
|
|
142
|
+
loaderPosition = $[10];
|
|
143
|
+
loading = $[11];
|
|
144
|
+
maxHeight = $[12];
|
|
145
|
+
maxWidthProp = $[13];
|
|
146
|
+
minWidthProp = $[14];
|
|
147
|
+
onTokenRemove = $[15];
|
|
148
|
+
preventTokenWrapping = $[16];
|
|
149
|
+
size = $[17];
|
|
150
|
+
style = $[18];
|
|
151
|
+
sxProp = $[19];
|
|
152
|
+
t1 = $[20];
|
|
128
153
|
tokens = $[21];
|
|
129
154
|
validationStatus = $[22];
|
|
130
155
|
variantProp = $[23];
|
|
131
156
|
visibleTokenCount = $[24];
|
|
132
157
|
widthProp = $[25];
|
|
133
158
|
}
|
|
134
|
-
const loaderPosition = t1 === undefined ? "auto" : t1;
|
|
135
|
-
const TokenComponent = t2 === undefined ? Token : t2;
|
|
136
|
-
const preventTokenWrapping = t3 === undefined ? false : t3;
|
|
137
|
-
const size = t4 === undefined ? "xlarge" : t4;
|
|
138
|
-
const hideTokenRemoveButtons = t5 === undefined ? false : t5;
|
|
139
|
-
let t6;
|
|
140
|
-
if ($[26] !== rest) {
|
|
141
|
-
t6 = omit(rest);
|
|
142
|
-
$[26] = rest;
|
|
143
|
-
$[27] = t6;
|
|
144
|
-
} else {
|
|
145
|
-
t6 = $[27];
|
|
146
|
-
}
|
|
147
159
|
let inputPropsRest;
|
|
148
160
|
let onBlur;
|
|
149
161
|
let onFocus;
|
|
150
162
|
let onKeyDown;
|
|
151
|
-
if ($[
|
|
163
|
+
if ($[26] !== t1) {
|
|
152
164
|
({
|
|
153
165
|
onBlur,
|
|
154
166
|
onFocus,
|
|
155
167
|
onKeyDown,
|
|
156
168
|
...inputPropsRest
|
|
157
|
-
} =
|
|
158
|
-
$[
|
|
159
|
-
$[
|
|
160
|
-
$[
|
|
161
|
-
$[
|
|
162
|
-
$[
|
|
169
|
+
} = t1);
|
|
170
|
+
$[26] = t1;
|
|
171
|
+
$[27] = inputPropsRest;
|
|
172
|
+
$[28] = onBlur;
|
|
173
|
+
$[29] = onFocus;
|
|
174
|
+
$[30] = onKeyDown;
|
|
163
175
|
} else {
|
|
164
|
-
inputPropsRest = $[
|
|
165
|
-
onBlur = $[
|
|
166
|
-
onFocus = $[
|
|
167
|
-
onKeyDown = $[
|
|
176
|
+
inputPropsRest = $[27];
|
|
177
|
+
onBlur = $[28];
|
|
178
|
+
onFocus = $[29];
|
|
179
|
+
onKeyDown = $[30];
|
|
168
180
|
}
|
|
169
181
|
const ref = useRef(null);
|
|
170
182
|
useRefObjectAsForwardedRef(forwardedRef, ref);
|
|
171
183
|
const [selectedTokenIndex, setSelectedTokenIndex] = useState();
|
|
172
184
|
const [tokensAreTruncated, setTokensAreTruncated] = useState(Boolean(visibleTokenCount));
|
|
173
|
-
let
|
|
174
|
-
if ($[
|
|
175
|
-
|
|
176
|
-
$[
|
|
177
|
-
$[
|
|
185
|
+
let t2;
|
|
186
|
+
if ($[31] !== selectedTokenIndex) {
|
|
187
|
+
t2 = [selectedTokenIndex];
|
|
188
|
+
$[31] = selectedTokenIndex;
|
|
189
|
+
$[32] = t2;
|
|
178
190
|
} else {
|
|
179
|
-
|
|
191
|
+
t2 = $[32];
|
|
180
192
|
}
|
|
181
193
|
const {
|
|
182
|
-
containerRef:
|
|
194
|
+
containerRef: t3
|
|
183
195
|
} = useFocusZone({
|
|
184
196
|
focusOutBehavior: "wrap",
|
|
185
197
|
bindKeys: FocusKeys.ArrowHorizontal | FocusKeys.HomeAndEnd,
|
|
@@ -201,11 +213,11 @@ function TextInputWithTokensInnerComponent(t0, forwardedRef) {
|
|
|
201
213
|
}
|
|
202
214
|
return (_containerRef$current = containerRef.current) === null || _containerRef$current === void 0 ? void 0 : _containerRef$current.children[nextIndex];
|
|
203
215
|
}
|
|
204
|
-
},
|
|
205
|
-
const containerRef =
|
|
206
|
-
let
|
|
207
|
-
if ($[
|
|
208
|
-
|
|
216
|
+
}, t2);
|
|
217
|
+
const containerRef = t3;
|
|
218
|
+
let t4;
|
|
219
|
+
if ($[33] !== containerRef || $[34] !== onTokenRemove || $[35] !== selectedTokenIndex) {
|
|
220
|
+
t4 = tokenId => {
|
|
209
221
|
onTokenRemove(tokenId);
|
|
210
222
|
setTimeout(() => {
|
|
211
223
|
var _containerRef$current2, _containerRef$current3;
|
|
@@ -219,30 +231,30 @@ function TextInputWithTokensInnerComponent(t0, forwardedRef) {
|
|
|
219
231
|
}
|
|
220
232
|
}, 0);
|
|
221
233
|
};
|
|
222
|
-
$[
|
|
223
|
-
$[
|
|
224
|
-
$[
|
|
225
|
-
$[
|
|
234
|
+
$[33] = containerRef;
|
|
235
|
+
$[34] = onTokenRemove;
|
|
236
|
+
$[35] = selectedTokenIndex;
|
|
237
|
+
$[36] = t4;
|
|
226
238
|
} else {
|
|
227
|
-
|
|
239
|
+
t4 = $[36];
|
|
228
240
|
}
|
|
229
|
-
const handleTokenRemove =
|
|
230
|
-
let
|
|
231
|
-
if ($[
|
|
232
|
-
|
|
241
|
+
const handleTokenRemove = t4;
|
|
242
|
+
let t5;
|
|
243
|
+
if ($[37] !== disabled) {
|
|
244
|
+
t5 = tokenIndex => () => {
|
|
233
245
|
if (!disabled) {
|
|
234
246
|
setSelectedTokenIndex(tokenIndex);
|
|
235
247
|
}
|
|
236
248
|
};
|
|
237
|
-
$[
|
|
238
|
-
$[
|
|
249
|
+
$[37] = disabled;
|
|
250
|
+
$[38] = t5;
|
|
239
251
|
} else {
|
|
240
|
-
|
|
252
|
+
t5 = $[38];
|
|
241
253
|
}
|
|
242
|
-
const handleTokenFocus =
|
|
243
|
-
let
|
|
244
|
-
if ($[
|
|
245
|
-
|
|
254
|
+
const handleTokenFocus = t5;
|
|
255
|
+
let t6;
|
|
256
|
+
if ($[39] !== containerRef || $[40] !== visibleTokenCount) {
|
|
257
|
+
t6 = () => {
|
|
246
258
|
setSelectedTokenIndex(undefined);
|
|
247
259
|
setTimeout(() => {
|
|
248
260
|
var _containerRef$current4;
|
|
@@ -251,43 +263,43 @@ function TextInputWithTokensInnerComponent(t0, forwardedRef) {
|
|
|
251
263
|
}
|
|
252
264
|
}, 0);
|
|
253
265
|
};
|
|
254
|
-
$[
|
|
255
|
-
$[
|
|
256
|
-
$[
|
|
266
|
+
$[39] = containerRef;
|
|
267
|
+
$[40] = visibleTokenCount;
|
|
268
|
+
$[41] = t6;
|
|
257
269
|
} else {
|
|
258
|
-
|
|
270
|
+
t6 = $[41];
|
|
259
271
|
}
|
|
260
|
-
const handleTokenBlur =
|
|
261
|
-
let
|
|
262
|
-
if ($[
|
|
263
|
-
|
|
272
|
+
const handleTokenBlur = t6;
|
|
273
|
+
let t7;
|
|
274
|
+
if ($[42] === Symbol.for("react.memo_cache_sentinel")) {
|
|
275
|
+
t7 = event => {
|
|
264
276
|
if (event.key === "Escape") {
|
|
265
277
|
var _ref$current2;
|
|
266
278
|
(_ref$current2 = ref.current) === null || _ref$current2 === void 0 ? void 0 : _ref$current2.focus();
|
|
267
279
|
}
|
|
268
280
|
};
|
|
269
|
-
$[
|
|
281
|
+
$[42] = t7;
|
|
270
282
|
} else {
|
|
271
|
-
|
|
283
|
+
t7 = $[42];
|
|
272
284
|
}
|
|
273
|
-
const handleTokenKeyUp =
|
|
274
|
-
let
|
|
275
|
-
if ($[
|
|
276
|
-
|
|
285
|
+
const handleTokenKeyUp = t7;
|
|
286
|
+
let t8;
|
|
287
|
+
if ($[43] !== onFocus || $[44] !== visibleTokenCount) {
|
|
288
|
+
t8 = event_0 => {
|
|
277
289
|
onFocus && onFocus(event_0);
|
|
278
290
|
setSelectedTokenIndex(undefined);
|
|
279
291
|
visibleTokenCount && setTokensAreTruncated(false);
|
|
280
292
|
};
|
|
281
|
-
$[
|
|
282
|
-
$[
|
|
283
|
-
$[
|
|
293
|
+
$[43] = onFocus;
|
|
294
|
+
$[44] = visibleTokenCount;
|
|
295
|
+
$[45] = t8;
|
|
284
296
|
} else {
|
|
285
|
-
|
|
297
|
+
t8 = $[45];
|
|
286
298
|
}
|
|
287
|
-
const handleInputFocus =
|
|
288
|
-
let
|
|
289
|
-
if ($[
|
|
290
|
-
|
|
299
|
+
const handleInputFocus = t8;
|
|
300
|
+
let t9;
|
|
301
|
+
if ($[46] !== containerRef || $[47] !== onBlur || $[48] !== visibleTokenCount) {
|
|
302
|
+
t9 = event_1 => {
|
|
291
303
|
onBlur && onBlur(event_1);
|
|
292
304
|
setTimeout(() => {
|
|
293
305
|
var _containerRef$current5;
|
|
@@ -296,17 +308,17 @@ function TextInputWithTokensInnerComponent(t0, forwardedRef) {
|
|
|
296
308
|
}
|
|
297
309
|
}, 0);
|
|
298
310
|
};
|
|
299
|
-
$[
|
|
300
|
-
$[
|
|
301
|
-
$[
|
|
302
|
-
$[
|
|
311
|
+
$[46] = containerRef;
|
|
312
|
+
$[47] = onBlur;
|
|
313
|
+
$[48] = visibleTokenCount;
|
|
314
|
+
$[49] = t9;
|
|
303
315
|
} else {
|
|
304
|
-
|
|
316
|
+
t9 = $[49];
|
|
305
317
|
}
|
|
306
|
-
const handleInputBlur =
|
|
307
|
-
let
|
|
308
|
-
if ($[
|
|
309
|
-
|
|
318
|
+
const handleInputBlur = t9;
|
|
319
|
+
let t10;
|
|
320
|
+
if ($[50] !== handleTokenRemove || $[51] !== onKeyDown || $[52] !== tokens) {
|
|
321
|
+
t10 = e => {
|
|
310
322
|
var _ref$current3;
|
|
311
323
|
if (onKeyDown) {
|
|
312
324
|
onKeyDown(e);
|
|
@@ -326,116 +338,116 @@ function TextInputWithTokensInnerComponent(t0, forwardedRef) {
|
|
|
326
338
|
}, 0);
|
|
327
339
|
}
|
|
328
340
|
};
|
|
329
|
-
$[
|
|
330
|
-
$[
|
|
331
|
-
$[
|
|
332
|
-
$[
|
|
341
|
+
$[50] = handleTokenRemove;
|
|
342
|
+
$[51] = onKeyDown;
|
|
343
|
+
$[52] = tokens;
|
|
344
|
+
$[53] = t10;
|
|
333
345
|
} else {
|
|
334
|
-
|
|
346
|
+
t10 = $[53];
|
|
335
347
|
}
|
|
336
|
-
const handleInputKeyDown =
|
|
337
|
-
let
|
|
338
|
-
if ($[
|
|
339
|
-
|
|
348
|
+
const handleInputKeyDown = t10;
|
|
349
|
+
let t11;
|
|
350
|
+
if ($[54] === Symbol.for("react.memo_cache_sentinel")) {
|
|
351
|
+
t11 = () => {
|
|
340
352
|
var _ref$current5;
|
|
341
353
|
(_ref$current5 = ref.current) === null || _ref$current5 === void 0 ? void 0 : _ref$current5.focus();
|
|
342
354
|
};
|
|
343
|
-
$[
|
|
355
|
+
$[54] = t11;
|
|
344
356
|
} else {
|
|
345
|
-
|
|
357
|
+
t11 = $[54];
|
|
346
358
|
}
|
|
347
|
-
const focusInput =
|
|
359
|
+
const focusInput = t11;
|
|
348
360
|
const preventTokenClickPropagation = _temp3;
|
|
349
|
-
let
|
|
350
|
-
if ($[
|
|
351
|
-
|
|
352
|
-
$[
|
|
353
|
-
$[
|
|
354
|
-
$[
|
|
355
|
-
$[
|
|
361
|
+
let t12;
|
|
362
|
+
if ($[55] !== tokens || $[56] !== tokensAreTruncated || $[57] !== visibleTokenCount) {
|
|
363
|
+
t12 = tokensAreTruncated ? tokens.slice(0, visibleTokenCount) : tokens;
|
|
364
|
+
$[55] = tokens;
|
|
365
|
+
$[56] = tokensAreTruncated;
|
|
366
|
+
$[57] = visibleTokenCount;
|
|
367
|
+
$[58] = t12;
|
|
356
368
|
} else {
|
|
357
|
-
|
|
369
|
+
t12 = $[58];
|
|
358
370
|
}
|
|
359
|
-
const visibleTokens =
|
|
360
|
-
let
|
|
361
|
-
if ($[
|
|
362
|
-
|
|
371
|
+
const visibleTokens = t12;
|
|
372
|
+
let t13;
|
|
373
|
+
if ($[59] === Symbol.for("react.memo_cache_sentinel")) {
|
|
374
|
+
t13 = {
|
|
363
375
|
small: "small",
|
|
364
376
|
medium: "small",
|
|
365
377
|
large: "medium",
|
|
366
378
|
xlarge: "medium"
|
|
367
379
|
};
|
|
368
|
-
$[
|
|
380
|
+
$[59] = t13;
|
|
369
381
|
} else {
|
|
370
|
-
|
|
382
|
+
t13 = $[59];
|
|
371
383
|
}
|
|
372
|
-
const inputSizeMap =
|
|
384
|
+
const inputSizeMap = t13;
|
|
373
385
|
const showLeadingLoadingIndicator = loading && (loaderPosition === "leading" || Boolean(LeadingVisual && loaderPosition !== "trailing"));
|
|
374
386
|
const showTrailingLoadingIndicator = loading && (loaderPosition === "trailing" || loaderPosition === "auto" && !LeadingVisual);
|
|
375
|
-
const
|
|
376
|
-
const
|
|
377
|
-
const
|
|
378
|
-
const
|
|
379
|
-
let
|
|
380
|
-
if ($[
|
|
381
|
-
|
|
382
|
-
$[
|
|
383
|
-
$[
|
|
387
|
+
const t14 = Boolean(LeadingVisual || showLeadingLoadingIndicator);
|
|
388
|
+
const t15 = Boolean(TrailingVisual || showTrailingLoadingIndicator);
|
|
389
|
+
const t16 = inputSizeMap[size];
|
|
390
|
+
const t17 = Boolean(preventTokenWrapping || maxHeight) || undefined;
|
|
391
|
+
let t18;
|
|
392
|
+
if ($[60] !== className) {
|
|
393
|
+
t18 = clsx(className, styles.TextInputWrapper);
|
|
394
|
+
$[60] = className;
|
|
395
|
+
$[61] = t18;
|
|
384
396
|
} else {
|
|
385
|
-
|
|
397
|
+
t18 = $[61];
|
|
386
398
|
}
|
|
387
|
-
let
|
|
388
|
-
if ($[
|
|
389
|
-
|
|
399
|
+
let t19;
|
|
400
|
+
if ($[62] !== maxHeight || $[63] !== style) {
|
|
401
|
+
t19 = maxHeight ? {
|
|
390
402
|
maxHeight,
|
|
391
403
|
...style
|
|
392
404
|
} : style;
|
|
393
|
-
$[
|
|
394
|
-
$[
|
|
395
|
-
$[
|
|
405
|
+
$[62] = maxHeight;
|
|
406
|
+
$[63] = style;
|
|
407
|
+
$[64] = t19;
|
|
396
408
|
} else {
|
|
397
|
-
|
|
409
|
+
t19 = $[64];
|
|
398
410
|
}
|
|
399
|
-
let
|
|
400
|
-
if ($[
|
|
401
|
-
|
|
411
|
+
let t20;
|
|
412
|
+
if ($[65] !== IconComponent || $[66] !== LeadingVisual) {
|
|
413
|
+
t20 = IconComponent && !LeadingVisual && /*#__PURE__*/jsx(IconComponent, {
|
|
402
414
|
className: "TextInput-icon"
|
|
403
415
|
});
|
|
404
|
-
$[
|
|
405
|
-
$[
|
|
406
|
-
$[
|
|
416
|
+
$[65] = IconComponent;
|
|
417
|
+
$[66] = LeadingVisual;
|
|
418
|
+
$[67] = t20;
|
|
407
419
|
} else {
|
|
408
|
-
|
|
420
|
+
t20 = $[67];
|
|
409
421
|
}
|
|
410
|
-
const
|
|
411
|
-
let
|
|
412
|
-
if ($[
|
|
413
|
-
|
|
414
|
-
$[
|
|
415
|
-
$[
|
|
422
|
+
const t21 = typeof loading === "boolean";
|
|
423
|
+
let t22;
|
|
424
|
+
if ($[68] !== LeadingVisual) {
|
|
425
|
+
t22 = typeof LeadingVisual !== "string" && isValidElementType(LeadingVisual) ? /*#__PURE__*/jsx(LeadingVisual, {}) : LeadingVisual;
|
|
426
|
+
$[68] = LeadingVisual;
|
|
427
|
+
$[69] = t22;
|
|
416
428
|
} else {
|
|
417
|
-
|
|
429
|
+
t22 = $[69];
|
|
418
430
|
}
|
|
419
|
-
let
|
|
420
|
-
if ($[
|
|
421
|
-
|
|
422
|
-
hasLoadingIndicator:
|
|
431
|
+
let t23;
|
|
432
|
+
if ($[70] !== showLeadingLoadingIndicator || $[71] !== t21 || $[72] !== t22) {
|
|
433
|
+
t23 = /*#__PURE__*/jsx(TextInputInnerVisualSlot, {
|
|
434
|
+
hasLoadingIndicator: t21,
|
|
423
435
|
visualPosition: "leading",
|
|
424
436
|
showLoadingIndicator: showLeadingLoadingIndicator,
|
|
425
|
-
children:
|
|
437
|
+
children: t22
|
|
426
438
|
});
|
|
427
|
-
$[
|
|
428
|
-
$[
|
|
429
|
-
$[
|
|
430
|
-
$[
|
|
439
|
+
$[70] = showLeadingLoadingIndicator;
|
|
440
|
+
$[71] = t21;
|
|
441
|
+
$[72] = t22;
|
|
442
|
+
$[73] = t23;
|
|
431
443
|
} else {
|
|
432
|
-
|
|
444
|
+
t23 = $[73];
|
|
433
445
|
}
|
|
434
|
-
const
|
|
435
|
-
const
|
|
436
|
-
let
|
|
437
|
-
if ($[
|
|
438
|
-
|
|
446
|
+
const t24 = containerRef;
|
|
447
|
+
const t25 = validationStatus === "error" ? "true" : "false";
|
|
448
|
+
let t26;
|
|
449
|
+
if ($[74] !== disabled || $[75] !== handleInputBlur || $[76] !== handleInputFocus || $[77] !== handleInputKeyDown || $[78] !== inputPropsRest || $[79] !== t25) {
|
|
450
|
+
t26 = /*#__PURE__*/jsx("div", {
|
|
439
451
|
className: styles.InputWrapper,
|
|
440
452
|
children: /*#__PURE__*/jsx(UnstyledTextInput, {
|
|
441
453
|
ref: ref,
|
|
@@ -445,29 +457,29 @@ function TextInputWithTokensInnerComponent(t0, forwardedRef) {
|
|
|
445
457
|
onKeyDown: handleInputKeyDown,
|
|
446
458
|
type: "text",
|
|
447
459
|
className: styles.UnstyledTextInput,
|
|
448
|
-
"aria-invalid":
|
|
460
|
+
"aria-invalid": t25,
|
|
449
461
|
...inputPropsRest
|
|
450
462
|
})
|
|
451
463
|
});
|
|
452
|
-
$[
|
|
453
|
-
$[
|
|
454
|
-
$[
|
|
455
|
-
$[
|
|
456
|
-
$[
|
|
457
|
-
$[
|
|
458
|
-
$[
|
|
464
|
+
$[74] = disabled;
|
|
465
|
+
$[75] = handleInputBlur;
|
|
466
|
+
$[76] = handleInputFocus;
|
|
467
|
+
$[77] = handleInputKeyDown;
|
|
468
|
+
$[78] = inputPropsRest;
|
|
469
|
+
$[79] = t25;
|
|
470
|
+
$[80] = t26;
|
|
459
471
|
} else {
|
|
460
|
-
|
|
472
|
+
t26 = $[80];
|
|
461
473
|
}
|
|
462
|
-
let
|
|
463
|
-
if ($[
|
|
464
|
-
let
|
|
465
|
-
if ($[
|
|
466
|
-
|
|
474
|
+
let t27;
|
|
475
|
+
if ($[81] !== TokenComponent || $[82] !== disabled || $[83] !== handleTokenBlur || $[84] !== handleTokenFocus || $[85] !== handleTokenRemove || $[86] !== hideTokenRemoveButtons || $[87] !== selectedTokenIndex || $[88] !== size || $[89] !== visibleTokens) {
|
|
476
|
+
let t28;
|
|
477
|
+
if ($[91] !== TokenComponent || $[92] !== disabled || $[93] !== handleTokenBlur || $[94] !== handleTokenFocus || $[95] !== handleTokenRemove || $[96] !== hideTokenRemoveButtons || $[97] !== selectedTokenIndex || $[98] !== size) {
|
|
478
|
+
t28 = (t29, i) => {
|
|
467
479
|
const {
|
|
468
480
|
id,
|
|
469
481
|
...tokenRest
|
|
470
|
-
} =
|
|
482
|
+
} = t29;
|
|
471
483
|
return /*#__PURE__*/jsx(TokenComponent, {
|
|
472
484
|
disabled: disabled,
|
|
473
485
|
onFocus: handleTokenFocus(i),
|
|
@@ -484,133 +496,133 @@ function TextInputWithTokensInnerComponent(t0, forwardedRef) {
|
|
|
484
496
|
...tokenRest
|
|
485
497
|
}, id);
|
|
486
498
|
};
|
|
487
|
-
$[
|
|
488
|
-
$[
|
|
489
|
-
$[
|
|
490
|
-
$[
|
|
491
|
-
$[
|
|
492
|
-
$[
|
|
493
|
-
$[
|
|
494
|
-
$[
|
|
495
|
-
$[
|
|
499
|
+
$[91] = TokenComponent;
|
|
500
|
+
$[92] = disabled;
|
|
501
|
+
$[93] = handleTokenBlur;
|
|
502
|
+
$[94] = handleTokenFocus;
|
|
503
|
+
$[95] = handleTokenRemove;
|
|
504
|
+
$[96] = hideTokenRemoveButtons;
|
|
505
|
+
$[97] = selectedTokenIndex;
|
|
506
|
+
$[98] = size;
|
|
507
|
+
$[99] = t28;
|
|
496
508
|
} else {
|
|
497
|
-
|
|
509
|
+
t28 = $[99];
|
|
498
510
|
}
|
|
499
|
-
|
|
500
|
-
$[
|
|
501
|
-
$[
|
|
502
|
-
$[
|
|
503
|
-
$[
|
|
504
|
-
$[
|
|
505
|
-
$[
|
|
506
|
-
$[
|
|
507
|
-
$[
|
|
508
|
-
$[
|
|
509
|
-
$[
|
|
511
|
+
t27 = visibleTokens.map(t28);
|
|
512
|
+
$[81] = TokenComponent;
|
|
513
|
+
$[82] = disabled;
|
|
514
|
+
$[83] = handleTokenBlur;
|
|
515
|
+
$[84] = handleTokenFocus;
|
|
516
|
+
$[85] = handleTokenRemove;
|
|
517
|
+
$[86] = hideTokenRemoveButtons;
|
|
518
|
+
$[87] = selectedTokenIndex;
|
|
519
|
+
$[88] = size;
|
|
520
|
+
$[89] = visibleTokens;
|
|
521
|
+
$[90] = t27;
|
|
510
522
|
} else {
|
|
511
|
-
|
|
523
|
+
t27 = $[90];
|
|
512
524
|
}
|
|
513
|
-
let
|
|
514
|
-
if ($[
|
|
515
|
-
|
|
525
|
+
let t28;
|
|
526
|
+
if ($[100] !== size || $[101] !== tokens || $[102] !== tokensAreTruncated || $[103] !== visibleTokens.length) {
|
|
527
|
+
t28 = tokensAreTruncated && tokens.length - visibleTokens.length ? /*#__PURE__*/jsxs(Text, {
|
|
516
528
|
color: "fg.muted",
|
|
517
529
|
fontSize: overflowCountFontSizeMap[size],
|
|
518
530
|
children: ["+", tokens.length - visibleTokens.length]
|
|
519
531
|
}) : null;
|
|
520
|
-
$[
|
|
521
|
-
$[
|
|
522
|
-
$[
|
|
523
|
-
$[
|
|
524
|
-
$[
|
|
532
|
+
$[100] = size;
|
|
533
|
+
$[101] = tokens;
|
|
534
|
+
$[102] = tokensAreTruncated;
|
|
535
|
+
$[103] = visibleTokens.length;
|
|
536
|
+
$[104] = t28;
|
|
525
537
|
} else {
|
|
526
|
-
|
|
538
|
+
t28 = $[104];
|
|
527
539
|
}
|
|
528
|
-
let
|
|
529
|
-
if ($[
|
|
530
|
-
|
|
531
|
-
ref:
|
|
540
|
+
let t29;
|
|
541
|
+
if ($[105] !== preventTokenWrapping || $[106] !== t24 || $[107] !== t26 || $[108] !== t27 || $[109] !== t28) {
|
|
542
|
+
t29 = /*#__PURE__*/jsxs("div", {
|
|
543
|
+
ref: t24,
|
|
532
544
|
className: styles.Container,
|
|
533
545
|
"data-prevent-token-wrapping": preventTokenWrapping,
|
|
534
|
-
children: [
|
|
546
|
+
children: [t26, t27, t28]
|
|
535
547
|
});
|
|
536
|
-
$[
|
|
537
|
-
$[
|
|
538
|
-
$[
|
|
539
|
-
$[
|
|
540
|
-
$[
|
|
541
|
-
$[
|
|
548
|
+
$[105] = preventTokenWrapping;
|
|
549
|
+
$[106] = t24;
|
|
550
|
+
$[107] = t26;
|
|
551
|
+
$[108] = t27;
|
|
552
|
+
$[109] = t28;
|
|
553
|
+
$[110] = t29;
|
|
542
554
|
} else {
|
|
543
|
-
|
|
555
|
+
t29 = $[110];
|
|
544
556
|
}
|
|
545
|
-
const
|
|
546
|
-
let
|
|
547
|
-
if ($[
|
|
548
|
-
|
|
549
|
-
$[
|
|
550
|
-
$[
|
|
557
|
+
const t30 = typeof loading === "boolean";
|
|
558
|
+
let t31;
|
|
559
|
+
if ($[111] !== TrailingVisual) {
|
|
560
|
+
t31 = typeof TrailingVisual !== "string" && isValidElementType(TrailingVisual) ? /*#__PURE__*/jsx(TrailingVisual, {}) : TrailingVisual;
|
|
561
|
+
$[111] = TrailingVisual;
|
|
562
|
+
$[112] = t31;
|
|
551
563
|
} else {
|
|
552
|
-
|
|
564
|
+
t31 = $[112];
|
|
553
565
|
}
|
|
554
|
-
let
|
|
555
|
-
if ($[
|
|
556
|
-
|
|
557
|
-
hasLoadingIndicator:
|
|
566
|
+
let t32;
|
|
567
|
+
if ($[113] !== showTrailingLoadingIndicator || $[114] !== t30 || $[115] !== t31) {
|
|
568
|
+
t32 = /*#__PURE__*/jsx(TextInputInnerVisualSlot, {
|
|
569
|
+
hasLoadingIndicator: t30,
|
|
558
570
|
visualPosition: "trailing",
|
|
559
571
|
showLoadingIndicator: showTrailingLoadingIndicator,
|
|
560
|
-
children:
|
|
572
|
+
children: t31
|
|
561
573
|
});
|
|
562
|
-
$[
|
|
563
|
-
$[
|
|
564
|
-
$[
|
|
565
|
-
$[
|
|
574
|
+
$[113] = showTrailingLoadingIndicator;
|
|
575
|
+
$[114] = t30;
|
|
576
|
+
$[115] = t31;
|
|
577
|
+
$[116] = t32;
|
|
566
578
|
} else {
|
|
567
|
-
|
|
579
|
+
t32 = $[116];
|
|
568
580
|
}
|
|
569
|
-
let
|
|
570
|
-
if ($[
|
|
571
|
-
|
|
581
|
+
let t33;
|
|
582
|
+
if ($[117] !== block || $[118] !== contrast || $[119] !== disabled || $[120] !== maxWidthProp || $[121] !== minWidthProp || $[122] !== sxProp || $[123] !== t14 || $[124] !== t15 || $[125] !== t16 || $[126] !== t17 || $[127] !== t18 || $[128] !== t19 || $[129] !== t20 || $[130] !== t23 || $[131] !== t29 || $[132] !== t32 || $[133] !== validationStatus || $[134] !== variantProp || $[135] !== widthProp) {
|
|
583
|
+
t33 = /*#__PURE__*/jsxs(TextInputWrapper, {
|
|
572
584
|
block: block,
|
|
573
585
|
contrast: contrast,
|
|
574
586
|
disabled: disabled,
|
|
575
|
-
hasLeadingVisual:
|
|
576
|
-
hasTrailingVisual:
|
|
587
|
+
hasLeadingVisual: t14,
|
|
588
|
+
hasTrailingVisual: t15,
|
|
577
589
|
width: widthProp,
|
|
578
590
|
minWidth: minWidthProp,
|
|
579
591
|
maxWidth: maxWidthProp,
|
|
580
|
-
size:
|
|
592
|
+
size: t16,
|
|
581
593
|
validationStatus: validationStatus,
|
|
582
594
|
variant: variantProp,
|
|
583
595
|
onClick: focusInput,
|
|
584
|
-
"data-token-wrapping":
|
|
585
|
-
className:
|
|
586
|
-
style:
|
|
596
|
+
"data-token-wrapping": t17,
|
|
597
|
+
className: t18,
|
|
598
|
+
style: t19,
|
|
587
599
|
sx: sxProp,
|
|
588
|
-
children: [
|
|
600
|
+
children: [t20, t23, t29, t32]
|
|
589
601
|
});
|
|
590
|
-
$[
|
|
591
|
-
$[
|
|
592
|
-
$[
|
|
593
|
-
$[
|
|
594
|
-
$[
|
|
595
|
-
$[
|
|
596
|
-
$[
|
|
597
|
-
$[
|
|
598
|
-
$[
|
|
599
|
-
$[
|
|
600
|
-
$[
|
|
601
|
-
$[
|
|
602
|
-
$[
|
|
603
|
-
$[
|
|
604
|
-
$[
|
|
605
|
-
$[
|
|
606
|
-
$[
|
|
607
|
-
$[
|
|
608
|
-
$[
|
|
609
|
-
$[
|
|
602
|
+
$[117] = block;
|
|
603
|
+
$[118] = contrast;
|
|
604
|
+
$[119] = disabled;
|
|
605
|
+
$[120] = maxWidthProp;
|
|
606
|
+
$[121] = minWidthProp;
|
|
607
|
+
$[122] = sxProp;
|
|
608
|
+
$[123] = t14;
|
|
609
|
+
$[124] = t15;
|
|
610
|
+
$[125] = t16;
|
|
611
|
+
$[126] = t17;
|
|
612
|
+
$[127] = t18;
|
|
613
|
+
$[128] = t19;
|
|
614
|
+
$[129] = t20;
|
|
615
|
+
$[130] = t23;
|
|
616
|
+
$[131] = t29;
|
|
617
|
+
$[132] = t32;
|
|
618
|
+
$[133] = validationStatus;
|
|
619
|
+
$[134] = variantProp;
|
|
620
|
+
$[135] = widthProp;
|
|
621
|
+
$[136] = t33;
|
|
610
622
|
} else {
|
|
611
|
-
|
|
623
|
+
t33 = $[136];
|
|
612
624
|
}
|
|
613
|
-
return
|
|
625
|
+
return t33;
|
|
614
626
|
}
|
|
615
627
|
function _temp3(event_2) {
|
|
616
628
|
event_2.stopPropagation();
|