@primer/react 38.0.0-rc.6 → 38.0.0-rc.7
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.
Potentially problematic release.
This version of @primer/react might be problematic. Click here for more details.
- package/CHANGELOG.md +47 -0
- package/dist/ActionBar/ActionBar.d.ts +15 -1
- package/dist/ActionBar/ActionBar.d.ts.map +1 -1
- package/dist/ActionBar/ActionBar.js +381 -217
- package/dist/ActionBar/index.d.ts +1 -1
- package/dist/ActionList/Description.d.ts +4 -3
- package/dist/ActionList/Description.d.ts.map +1 -1
- package/dist/ActionList/Description.js +5 -5
- package/dist/ActionList/Divider.d.ts +5 -4
- package/dist/ActionList/Divider.d.ts.map +1 -1
- package/dist/ActionList/Divider.js +6 -7
- package/dist/ActionList/Group.d.ts +4 -5
- package/dist/ActionList/Group.d.ts.map +1 -1
- package/dist/ActionList/Group.js +9 -16
- package/dist/ActionList/Heading.d.ts +3 -2
- package/dist/ActionList/Heading.d.ts.map +1 -1
- package/dist/ActionList/Heading.js +1 -0
- package/dist/ActionList/Item.d.ts +5 -2
- package/dist/ActionList/Item.d.ts.map +1 -1
- package/dist/ActionList/Item.js +4 -8
- package/dist/ActionList/LinkItem.d.ts +1 -1
- package/dist/ActionList/LinkItem.d.ts.map +1 -1
- package/dist/ActionList/LinkItem.js +1 -2
- package/dist/ActionList/List.d.ts +1 -1
- package/dist/ActionList/List.d.ts.map +1 -1
- package/dist/ActionList/List.js +1 -3
- package/dist/ActionList/TrailingAction.d.ts +1 -0
- package/dist/ActionList/TrailingAction.d.ts.map +1 -1
- package/dist/ActionList/TrailingAction.js +3 -0
- package/dist/ActionList/Visuals.d.ts +4 -4
- package/dist/ActionList/Visuals.d.ts.map +1 -1
- package/dist/ActionList/Visuals.js +3 -3
- package/dist/ActionList/index.d.ts +12 -9
- package/dist/ActionList/index.d.ts.map +1 -1
- package/dist/ActionList/shared.d.ts +2 -3
- package/dist/ActionList/shared.d.ts.map +1 -1
- package/dist/ActionMenu/ActionMenu.d.ts +6 -5
- package/dist/ActionMenu/ActionMenu.d.ts.map +1 -1
- package/dist/ActionMenu/ActionMenu.js +11 -6
- package/dist/Autocomplete/Autocomplete.d.ts +6 -4
- package/dist/Autocomplete/Autocomplete.d.ts.map +1 -1
- package/dist/Autocomplete/Autocomplete.js +1 -0
- package/dist/Autocomplete/AutocompleteInput.js +1 -0
- package/dist/Autocomplete/AutocompleteMenu.d.ts +1 -0
- package/dist/Autocomplete/AutocompleteMenu.d.ts.map +1 -1
- package/dist/Autocomplete/AutocompleteMenu.js +1 -0
- package/dist/Autocomplete/AutocompleteOverlay.d.ts +1 -0
- package/dist/Autocomplete/AutocompleteOverlay.d.ts.map +1 -1
- package/dist/Autocomplete/AutocompleteOverlay.js +1 -0
- package/dist/AvatarStack/AvatarStack.d.ts.map +1 -1
- package/dist/AvatarStack/AvatarStack.js +1 -3
- package/dist/BranchName/BranchName.d.ts +9 -10
- package/dist/BranchName/BranchName.d.ts.map +1 -1
- package/dist/BranchName/BranchName.js +1 -8
- package/dist/Button/Button.d.ts +1 -5
- package/dist/Button/Button.d.ts.map +1 -1
- package/dist/Button/Button.js +2 -85
- package/dist/Button/ButtonBase.d.ts.map +1 -1
- package/dist/Button/ButtonBase.js +8 -93
- package/dist/Button/IconButton.d.ts.map +1 -1
- package/dist/Button/IconButton.js +0 -16
- package/dist/Button/LinkButton.d.ts +1 -1
- package/dist/Button/LinkButton.d.ts.map +1 -1
- package/dist/Button/types.d.ts +1 -3
- package/dist/Button/types.d.ts.map +1 -1
- package/dist/Checkbox/Checkbox.d.ts +3 -1
- package/dist/Checkbox/Checkbox.d.ts.map +1 -1
- package/dist/Checkbox/Checkbox.js +1 -0
- package/dist/CheckboxGroup/CheckboxGroup.d.ts +8 -7
- package/dist/CheckboxGroup/CheckboxGroup.d.ts.map +1 -1
- package/dist/CheckboxGroup/CheckboxGroup.js +4 -2
- package/dist/ConfirmationDialog/ConfirmationDialog-87ccf595.css +2 -0
- package/dist/ConfirmationDialog/ConfirmationDialog-87ccf595.css.map +1 -0
- package/dist/ConfirmationDialog/ConfirmationDialog.d.ts.map +1 -1
- package/dist/ConfirmationDialog/ConfirmationDialog.js +4 -1
- package/dist/ConfirmationDialog/ConfirmationDialog.module.css.js +1 -1
- package/dist/DataTable/Table.d.ts +3 -3
- package/dist/DataTable/Table.d.ts.map +1 -1
- package/dist/DataTable/Table.js +24 -19
- package/dist/FeatureFlags/DefaultFeatureFlags.d.ts.map +1 -1
- package/dist/FeatureFlags/DefaultFeatureFlags.js +2 -1
- package/dist/FilteredActionList/FilteredActionList-f6c2dc7a.css +2 -0
- package/dist/FilteredActionList/FilteredActionList-f6c2dc7a.css.map +1 -0
- package/dist/FilteredActionList/FilteredActionList.d.ts.map +1 -1
- package/dist/FilteredActionList/FilteredActionList.js +2 -7
- package/dist/FilteredActionList/FilteredActionList.module.css.js +2 -2
- package/dist/FilteredActionList/types.d.ts +5 -2
- package/dist/FilteredActionList/types.d.ts.map +1 -1
- package/dist/FormControl/FormControl.d.ts +8 -36
- package/dist/FormControl/FormControl.d.ts.map +1 -1
- package/dist/FormControl/FormControl.js +64 -66
- package/dist/FormControl/FormControlCaption.d.ts +6 -4
- package/dist/FormControl/FormControlCaption.d.ts.map +1 -1
- package/dist/FormControl/FormControlCaption.js +9 -13
- package/dist/FormControl/FormControlLabel.d.ts +3 -3
- package/dist/FormControl/FormControlLabel.d.ts.map +1 -1
- package/dist/FormControl/FormControlLabel.js +25 -31
- package/dist/FormControl/FormControlLeadingVisual-e217df71.css +2 -0
- package/dist/FormControl/FormControlLeadingVisual-e217df71.css.map +1 -0
- package/dist/FormControl/FormControlLeadingVisual.d.ts +2 -2
- package/dist/FormControl/FormControlLeadingVisual.d.ts.map +1 -1
- package/dist/FormControl/FormControlLeadingVisual.js +10 -17
- package/dist/FormControl/FormControlLeadingVisual.module.css.js +5 -0
- package/dist/FormControl/_FormControlContext.js +1 -1
- package/dist/FormControl/_FormControlValidation.d.ts +3 -3
- package/dist/FormControl/_FormControlValidation.d.ts.map +1 -1
- package/dist/FormControl/_FormControlValidation.js +7 -9
- package/dist/FormControl/index.d.ts +4 -0
- package/dist/FormControl/index.d.ts.map +1 -1
- package/dist/LabelGroup/LabelGroup-7d19205a.css +2 -0
- package/dist/LabelGroup/LabelGroup-7d19205a.css.map +1 -0
- package/dist/LabelGroup/LabelGroup.d.ts.map +1 -1
- package/dist/LabelGroup/LabelGroup.js +14 -27
- package/dist/LabelGroup/LabelGroup.module.css.js +2 -2
- package/dist/NavList/NavList.d.ts +3 -3
- package/dist/NavList/NavList.d.ts.map +1 -1
- package/dist/NavList/NavList.js +2 -1
- package/dist/Octicon/Octicon.d.ts +7 -6
- package/dist/Octicon/Octicon.d.ts.map +1 -1
- package/dist/Octicon/Octicon.js +4 -23
- package/dist/Overlay/Overlay.d.ts.map +1 -1
- package/dist/Overlay/Overlay.js +63 -85
- package/dist/PageHeader/PageHeader.d.ts +3 -3
- package/dist/PageHeader/PageHeader.d.ts.map +1 -1
- package/dist/PageHeader/PageHeader.js +5 -2
- package/dist/PageLayout/{PageLayout-8a294e74.css → PageLayout-a276fa3b.css} +2 -2
- package/dist/PageLayout/PageLayout-a276fa3b.css.map +1 -0
- package/dist/PageLayout/PageLayout.d.ts +14 -58
- package/dist/PageLayout/PageLayout.d.ts.map +1 -1
- package/dist/PageLayout/PageLayout.js +216 -245
- package/dist/PageLayout/PageLayout.module.css.js +2 -2
- package/dist/Radio/Radio.d.ts +3 -1
- package/dist/Radio/Radio.d.ts.map +1 -1
- package/dist/Radio/Radio.js +1 -0
- package/dist/RadioGroup/RadioGroup.d.ts +6 -5
- package/dist/RadioGroup/RadioGroup.d.ts.map +1 -1
- package/dist/RadioGroup/RadioGroup.js +1 -0
- package/dist/SegmentedControl/SegmentedControl.d.ts +3 -2
- package/dist/SegmentedControl/SegmentedControl.d.ts.map +1 -1
- package/dist/SegmentedControl/SegmentedControl.js +11 -14
- package/dist/SegmentedControl/SegmentedControlButton.d.ts +2 -1
- package/dist/SegmentedControl/SegmentedControlButton.d.ts.map +1 -1
- package/dist/SegmentedControl/SegmentedControlButton.js +1 -0
- package/dist/SegmentedControl/SegmentedControlIconButton.d.ts +2 -1
- package/dist/SegmentedControl/SegmentedControlIconButton.d.ts.map +1 -1
- package/dist/SegmentedControl/SegmentedControlIconButton.js +1 -0
- package/dist/Select/Select.d.ts +1 -0
- package/dist/Select/Select.d.ts.map +1 -1
- package/dist/Select/Select.js +1 -0
- package/dist/SelectPanel/SelectPanel.d.ts +2 -1
- package/dist/SelectPanel/SelectPanel.d.ts.map +1 -1
- package/dist/SelectPanel/SelectPanel.js +1 -0
- package/dist/Skeleton/SkeletonBox.d.ts.map +1 -1
- package/dist/Skeleton/SkeletonBox.js +26 -20
- package/dist/SkeletonAvatar/SkeletonAvatar.d.ts.map +1 -1
- package/dist/SkeletonAvatar/SkeletonAvatar.js +53 -62
- package/dist/StateLabel/{StateLabel-aaa1d148.css → StateLabel-b586b0bc.css} +2 -2
- package/dist/StateLabel/StateLabel-b586b0bc.css.map +1 -0
- package/dist/StateLabel/StateLabel.d.ts.map +1 -1
- package/dist/StateLabel/StateLabel.js +28 -39
- package/dist/StateLabel/StateLabel.module.css.js +1 -1
- package/dist/SubNav/SubNav.d.ts +4 -1
- package/dist/SubNav/SubNav.d.ts.map +1 -1
- package/dist/SubNav/SubNav.js +3 -1
- package/dist/Text/Text.d.ts +16 -8
- package/dist/Text/Text.d.ts.map +1 -1
- package/dist/Text/Text.js +34 -31
- package/dist/TextInput/TextInput.d.ts +3 -2
- package/dist/TextInput/TextInput.d.ts.map +1 -1
- package/dist/TextInput/TextInput.js +2 -3
- package/dist/TextInput/index.d.ts +1 -0
- package/dist/TextInput/index.d.ts.map +1 -1
- package/dist/TextInputWithTokens/TextInputWithTokens.d.ts +3 -1
- package/dist/TextInputWithTokens/TextInputWithTokens.d.ts.map +1 -1
- package/dist/TextInputWithTokens/TextInputWithTokens.js +205 -211
- package/dist/Textarea/Textarea.d.ts +5 -4
- package/dist/Textarea/Textarea.d.ts.map +1 -1
- package/dist/Textarea/Textarea.js +40 -45
- package/dist/Tooltip/Tooltip-fffa9948.css +2 -0
- package/dist/Tooltip/Tooltip-fffa9948.css.map +1 -0
- package/dist/Tooltip/Tooltip.d.ts +6 -8
- package/dist/Tooltip/Tooltip.d.ts.map +1 -1
- package/dist/Tooltip/Tooltip.js +44 -118
- package/dist/Tooltip/Tooltip.module.css.js +5 -0
- package/dist/TooltipV2/Tooltip.d.ts +3 -16
- package/dist/TooltipV2/Tooltip.d.ts.map +1 -1
- package/dist/TooltipV2/Tooltip.js +1 -0
- package/dist/TreeView/TreeView.d.ts +4 -1
- package/dist/TreeView/TreeView.d.ts.map +1 -1
- package/dist/TreeView/TreeView.js +42 -9
- package/dist/Truncate/Truncate.d.ts +2 -2
- package/dist/Truncate/Truncate.d.ts.map +1 -1
- package/dist/UnderlineNav/UnderlineNav-4344d9b0.css +2 -0
- package/dist/UnderlineNav/UnderlineNav-4344d9b0.css.map +1 -0
- package/dist/UnderlineNav/UnderlineNav.d.ts +0 -1
- package/dist/UnderlineNav/UnderlineNav.d.ts.map +1 -1
- package/dist/UnderlineNav/UnderlineNav.js +45 -17
- package/dist/UnderlineNav/UnderlineNav.module.css.js +2 -2
- package/dist/UnderlineNav/UnderlineNavContext.d.ts +0 -2
- package/dist/UnderlineNav/UnderlineNavContext.d.ts.map +1 -1
- package/dist/UnderlineNav/UnderlineNavContext.js +0 -1
- package/dist/UnderlineNav/styles.d.ts +1 -23
- package/dist/UnderlineNav/styles.d.ts.map +1 -1
- package/dist/UnderlineNav/styles.js +4 -59
- package/dist/constants.js +3 -3
- package/dist/deprecated/ActionList/Divider-7c6b656a.css +2 -0
- package/dist/deprecated/ActionList/Divider-7c6b656a.css.map +1 -0
- package/dist/deprecated/ActionList/Divider.d.ts +1 -2
- package/dist/deprecated/ActionList/Divider.d.ts.map +1 -1
- package/dist/deprecated/ActionList/Divider.js +6 -12
- package/dist/deprecated/ActionList/Divider.module.css.js +5 -0
- package/dist/deprecated/ActionList/Group.d.ts +1 -2
- package/dist/deprecated/ActionList/Group.d.ts.map +1 -1
- package/dist/deprecated/ActionList/Group.js +1 -8
- package/dist/deprecated/ActionList/Header-493b1d76.css +2 -0
- package/dist/deprecated/ActionList/Header-493b1d76.css.map +1 -0
- package/dist/deprecated/ActionList/Header.d.ts +2 -6
- package/dist/deprecated/ActionList/Header.d.ts.map +1 -1
- package/dist/deprecated/ActionList/Header.js +46 -37
- package/dist/deprecated/ActionList/Header.module.css.js +5 -0
- package/dist/deprecated/ActionList/Item-cf87f98a.css +3 -0
- package/dist/deprecated/ActionList/Item-cf87f98a.css.map +1 -0
- package/dist/deprecated/ActionList/Item.d.ts +1 -5
- package/dist/deprecated/ActionList/Item.d.ts.map +1 -1
- package/dist/deprecated/ActionList/Item.js +182 -271
- package/dist/deprecated/ActionList/Item.module.css.js +5 -0
- package/dist/deprecated/ActionList/List-1ec9d6d9.css +2 -0
- package/dist/deprecated/ActionList/List-1ec9d6d9.css.map +1 -0
- package/dist/deprecated/ActionList/List.d.ts +1 -0
- package/dist/deprecated/ActionList/List.d.ts.map +1 -1
- package/dist/deprecated/ActionList/List.js +92 -82
- package/dist/deprecated/ActionList/List.module.css.js +5 -0
- package/dist/deprecated/UnderlineNav/UnderlineNav-0c1e0dff.css +2 -0
- package/dist/deprecated/UnderlineNav/UnderlineNav-0c1e0dff.css.map +1 -0
- package/dist/deprecated/UnderlineNav/UnderlineNav.d.ts +6 -8
- package/dist/deprecated/UnderlineNav/UnderlineNav.d.ts.map +1 -1
- package/dist/deprecated/UnderlineNav/UnderlineNav.js +90 -49
- package/dist/deprecated/UnderlineNav/UnderlineNav.module.css.js +5 -0
- package/dist/experimental/SelectPanel2/SelectPanel.d.ts +11 -7
- package/dist/experimental/SelectPanel2/SelectPanel.d.ts.map +1 -1
- package/dist/experimental/SelectPanel2/SelectPanel.js +6 -1
- package/dist/experimental/UnderlinePanels/UnderlinePanels.d.ts +6 -6
- package/dist/experimental/UnderlinePanels/UnderlinePanels.d.ts.map +1 -1
- package/dist/experimental/UnderlinePanels/UnderlinePanels.js +8 -4
- package/dist/hooks/useSlots.d.ts.map +1 -1
- package/dist/hooks/useSlots.js +3 -2
- package/dist/hooks/useSyncedState.js +1 -1
- package/dist/index.d.ts +5 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +3 -1
- package/dist/internal/components/CheckboxOrRadioGroup/CheckboxOrRadioGroup.d.ts +6 -7
- package/dist/internal/components/CheckboxOrRadioGroup/CheckboxOrRadioGroup.d.ts.map +1 -1
- package/dist/internal/components/CheckboxOrRadioGroup/CheckboxOrRadioGroup.js +7 -9
- package/dist/internal/components/CheckboxOrRadioGroup/CheckboxOrRadioGroupCaption.d.ts +4 -4
- package/dist/internal/components/CheckboxOrRadioGroup/CheckboxOrRadioGroupCaption.d.ts.map +1 -1
- package/dist/internal/components/CheckboxOrRadioGroup/CheckboxOrRadioGroupCaption.js +1 -0
- package/dist/internal/components/CheckboxOrRadioGroup/CheckboxOrRadioGroupLabel.d.ts +2 -1
- package/dist/internal/components/CheckboxOrRadioGroup/CheckboxOrRadioGroupLabel.d.ts.map +1 -1
- package/dist/internal/components/CheckboxOrRadioGroup/CheckboxOrRadioGroupLabel.js +1 -0
- package/dist/internal/components/CheckboxOrRadioGroup/CheckboxOrRadioGroupValidation.d.ts +3 -3
- package/dist/internal/components/CheckboxOrRadioGroup/CheckboxOrRadioGroupValidation.d.ts.map +1 -1
- package/dist/internal/components/CheckboxOrRadioGroup/CheckboxOrRadioGroupValidation.js +2 -3
- package/dist/internal/components/InputLabel.d.ts +2 -3
- package/dist/internal/components/InputLabel.d.ts.map +1 -1
- package/dist/internal/components/InputLabel.js +29 -36
- package/dist/internal/components/InputValidation.d.ts +1 -2
- package/dist/internal/components/InputValidation.d.ts.map +1 -1
- package/dist/internal/components/TextInputInnerAction.d.ts +16 -2
- package/dist/internal/components/TextInputInnerAction.d.ts.map +1 -1
- package/dist/internal/components/TextInputInnerAction.js +46 -60
- package/dist/internal/components/TextInputWrapper.d.ts +10 -32
- package/dist/internal/components/TextInputWrapper.d.ts.map +1 -1
- package/dist/internal/components/TextInputWrapper.js +87 -58
- package/dist/internal/components/UnstyledTextInput.d.ts +1 -2
- package/dist/internal/components/UnstyledTextInput.d.ts.map +1 -1
- package/dist/internal/components/UnstyledTextInput.js +1 -3
- package/dist/internal/components/ValidationAnimationContainer-04125429.css +2 -0
- package/dist/internal/components/ValidationAnimationContainer-04125429.css.map +1 -0
- package/dist/internal/components/ValidationAnimationContainer.d.ts.map +1 -1
- package/dist/internal/components/ValidationAnimationContainer.js +4 -9
- package/dist/internal/components/ValidationAnimationContainer.module.css.js +5 -0
- package/dist/utils/form-story-helpers.d.ts.map +1 -1
- package/dist/utils/is-slot.d.ts +6 -0
- package/dist/utils/is-slot.d.ts.map +1 -0
- package/dist/utils/is-slot.js +15 -0
- package/dist/utils/polymorphic.d.ts +2 -1
- package/dist/utils/polymorphic.d.ts.map +1 -1
- package/dist/utils/types/Slots.d.ts +7 -0
- package/dist/utils/types/Slots.d.ts.map +1 -0
- package/dist/utils/types/index.d.ts +1 -0
- package/dist/utils/types/index.d.ts.map +1 -1
- package/generated/components.json +21 -119
- package/package.json +2 -1
- package/dist/Button/styles.d.ts +0 -431
- package/dist/Button/styles.d.ts.map +0 -1
- package/dist/Button/styles.js +0 -5
- package/dist/ConfirmationDialog/ConfirmationDialog-de0401ff.css +0 -2
- package/dist/ConfirmationDialog/ConfirmationDialog-de0401ff.css.map +0 -1
- package/dist/FilteredActionList/FilteredActionList-e1eb1b75.css +0 -2
- package/dist/FilteredActionList/FilteredActionList-e1eb1b75.css.map +0 -1
- package/dist/LabelGroup/LabelGroup-eda75c0f.css +0 -2
- package/dist/LabelGroup/LabelGroup-eda75c0f.css.map +0 -1
- package/dist/PageLayout/PageLayout-8a294e74.css.map +0 -1
- package/dist/StateLabel/StateLabel-aaa1d148.css.map +0 -1
- package/dist/UnderlineNav/UnderlineNav-78db938f.css +0 -2
- package/dist/UnderlineNav/UnderlineNav-78db938f.css.map +0 -1
- package/dist/internal/components/BoxWithFallback.d.ts +0 -6
- package/dist/internal/components/BoxWithFallback.d.ts.map +0 -1
- package/dist/internal/components/BoxWithFallback.js +0 -70
- package/dist/internal/utils/getGlobalFocusStyles.d.ts +0 -4
- package/dist/internal/utils/getGlobalFocusStyles.d.ts.map +0 -1
- package/dist/internal/utils/getGlobalFocusStyles.js +0 -7
- package/dist/internal/utils/sharedCheckboxAndRadioStyles.d.ts +0 -2
- package/dist/internal/utils/sharedCheckboxAndRadioStyles.d.ts.map +0 -1
- package/dist/utils/defaultSxProp.d.ts +0 -3
- package/dist/utils/defaultSxProp.d.ts.map +0 -1
- package/dist/utils/defaultSxProp.js +0 -3
- package/dist/utils/includeSystemProps.d.ts +0 -7
- package/dist/utils/includeSystemProps.d.ts.map +0 -1
- package/dist/utils/includeSystemProps.js +0 -14
|
@@ -24,7 +24,7 @@ const overflowCountClassMap = {
|
|
|
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(135);
|
|
28
28
|
let IconComponent;
|
|
29
29
|
let LeadingVisual;
|
|
30
30
|
let TokenComponent;
|
|
@@ -43,7 +43,6 @@ function TextInputWithTokensInnerComponent(t0, forwardedRef) {
|
|
|
43
43
|
let preventTokenWrapping;
|
|
44
44
|
let size;
|
|
45
45
|
let style;
|
|
46
|
-
let sxProp;
|
|
47
46
|
let t1;
|
|
48
47
|
let tokens;
|
|
49
48
|
let validationStatus;
|
|
@@ -61,21 +60,20 @@ function TextInputWithTokensInnerComponent(t0, forwardedRef) {
|
|
|
61
60
|
className: t8,
|
|
62
61
|
block: t9,
|
|
63
62
|
disabled: t10,
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
style: t25,
|
|
63
|
+
tokens: t11,
|
|
64
|
+
onTokenRemove: t12,
|
|
65
|
+
tokenComponent: t13,
|
|
66
|
+
preventTokenWrapping: t14,
|
|
67
|
+
size: t15,
|
|
68
|
+
hideTokenRemoveButtons: t16,
|
|
69
|
+
maxHeight: t17,
|
|
70
|
+
width: t18,
|
|
71
|
+
minWidth: t19,
|
|
72
|
+
maxWidth: t20,
|
|
73
|
+
validationStatus: t21,
|
|
74
|
+
variant: t22,
|
|
75
|
+
visibleTokenCount: t23,
|
|
76
|
+
style: t24,
|
|
79
77
|
...rest
|
|
80
78
|
} = t0;
|
|
81
79
|
IconComponent = t2;
|
|
@@ -86,22 +84,21 @@ function TextInputWithTokensInnerComponent(t0, forwardedRef) {
|
|
|
86
84
|
className = t8;
|
|
87
85
|
block = t9;
|
|
88
86
|
disabled = t10;
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
style = t25;
|
|
87
|
+
tokens = t11;
|
|
88
|
+
onTokenRemove = t12;
|
|
89
|
+
maxHeight = t17;
|
|
90
|
+
widthProp = t18;
|
|
91
|
+
minWidthProp = t19;
|
|
92
|
+
maxWidthProp = t20;
|
|
93
|
+
validationStatus = t21;
|
|
94
|
+
variantProp = t22;
|
|
95
|
+
visibleTokenCount = t23;
|
|
96
|
+
style = t24;
|
|
100
97
|
loaderPosition = t6 === undefined ? "auto" : t6;
|
|
101
|
-
TokenComponent =
|
|
102
|
-
preventTokenWrapping =
|
|
103
|
-
size =
|
|
104
|
-
hideTokenRemoveButtons =
|
|
98
|
+
TokenComponent = t13 === undefined ? Token : t13;
|
|
99
|
+
preventTokenWrapping = t14 === undefined ? false : t14;
|
|
100
|
+
size = t15 === undefined ? "xlarge" : t15;
|
|
101
|
+
hideTokenRemoveButtons = t16 === undefined ? false : t16;
|
|
105
102
|
t1 = omit(rest);
|
|
106
103
|
$[0] = t0;
|
|
107
104
|
$[1] = IconComponent;
|
|
@@ -122,13 +119,12 @@ function TextInputWithTokensInnerComponent(t0, forwardedRef) {
|
|
|
122
119
|
$[16] = preventTokenWrapping;
|
|
123
120
|
$[17] = size;
|
|
124
121
|
$[18] = style;
|
|
125
|
-
$[19] =
|
|
126
|
-
$[20] =
|
|
127
|
-
$[21] =
|
|
128
|
-
$[22] =
|
|
129
|
-
$[23] =
|
|
130
|
-
$[24] =
|
|
131
|
-
$[25] = widthProp;
|
|
122
|
+
$[19] = t1;
|
|
123
|
+
$[20] = tokens;
|
|
124
|
+
$[21] = validationStatus;
|
|
125
|
+
$[22] = variantProp;
|
|
126
|
+
$[23] = visibleTokenCount;
|
|
127
|
+
$[24] = widthProp;
|
|
132
128
|
} else {
|
|
133
129
|
IconComponent = $[1];
|
|
134
130
|
LeadingVisual = $[2];
|
|
@@ -148,47 +144,46 @@ function TextInputWithTokensInnerComponent(t0, forwardedRef) {
|
|
|
148
144
|
preventTokenWrapping = $[16];
|
|
149
145
|
size = $[17];
|
|
150
146
|
style = $[18];
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
widthProp = $[25];
|
|
147
|
+
t1 = $[19];
|
|
148
|
+
tokens = $[20];
|
|
149
|
+
validationStatus = $[21];
|
|
150
|
+
variantProp = $[22];
|
|
151
|
+
visibleTokenCount = $[23];
|
|
152
|
+
widthProp = $[24];
|
|
158
153
|
}
|
|
159
154
|
let inputPropsRest;
|
|
160
155
|
let onBlur;
|
|
161
156
|
let onFocus;
|
|
162
157
|
let onKeyDown;
|
|
163
|
-
if ($[
|
|
158
|
+
if ($[25] !== t1) {
|
|
164
159
|
({
|
|
165
160
|
onBlur,
|
|
166
161
|
onFocus,
|
|
167
162
|
onKeyDown,
|
|
168
163
|
...inputPropsRest
|
|
169
164
|
} = t1);
|
|
170
|
-
$[
|
|
171
|
-
$[
|
|
172
|
-
$[
|
|
173
|
-
$[
|
|
174
|
-
$[
|
|
165
|
+
$[25] = t1;
|
|
166
|
+
$[26] = inputPropsRest;
|
|
167
|
+
$[27] = onBlur;
|
|
168
|
+
$[28] = onFocus;
|
|
169
|
+
$[29] = onKeyDown;
|
|
175
170
|
} else {
|
|
176
|
-
inputPropsRest = $[
|
|
177
|
-
onBlur = $[
|
|
178
|
-
onFocus = $[
|
|
179
|
-
onKeyDown = $[
|
|
171
|
+
inputPropsRest = $[26];
|
|
172
|
+
onBlur = $[27];
|
|
173
|
+
onFocus = $[28];
|
|
174
|
+
onKeyDown = $[29];
|
|
180
175
|
}
|
|
181
176
|
const ref = useRef(null);
|
|
182
177
|
useRefObjectAsForwardedRef(forwardedRef, ref);
|
|
183
178
|
const [selectedTokenIndex, setSelectedTokenIndex] = useState();
|
|
184
179
|
const [tokensAreTruncated, setTokensAreTruncated] = useState(Boolean(visibleTokenCount));
|
|
185
180
|
let t2;
|
|
186
|
-
if ($[
|
|
181
|
+
if ($[30] !== selectedTokenIndex) {
|
|
187
182
|
t2 = [selectedTokenIndex];
|
|
188
|
-
$[
|
|
189
|
-
$[
|
|
183
|
+
$[30] = selectedTokenIndex;
|
|
184
|
+
$[31] = t2;
|
|
190
185
|
} else {
|
|
191
|
-
t2 = $[
|
|
186
|
+
t2 = $[31];
|
|
192
187
|
}
|
|
193
188
|
const {
|
|
194
189
|
containerRef: t3
|
|
@@ -216,7 +211,7 @@ function TextInputWithTokensInnerComponent(t0, forwardedRef) {
|
|
|
216
211
|
}, t2);
|
|
217
212
|
const containerRef = t3;
|
|
218
213
|
let t4;
|
|
219
|
-
if ($[
|
|
214
|
+
if ($[32] !== containerRef || $[33] !== onTokenRemove || $[34] !== selectedTokenIndex) {
|
|
220
215
|
t4 = tokenId => {
|
|
221
216
|
onTokenRemove(tokenId);
|
|
222
217
|
setTimeout(() => {
|
|
@@ -231,29 +226,29 @@ function TextInputWithTokensInnerComponent(t0, forwardedRef) {
|
|
|
231
226
|
}
|
|
232
227
|
}, 0);
|
|
233
228
|
};
|
|
234
|
-
$[
|
|
235
|
-
$[
|
|
236
|
-
$[
|
|
237
|
-
$[
|
|
229
|
+
$[32] = containerRef;
|
|
230
|
+
$[33] = onTokenRemove;
|
|
231
|
+
$[34] = selectedTokenIndex;
|
|
232
|
+
$[35] = t4;
|
|
238
233
|
} else {
|
|
239
|
-
t4 = $[
|
|
234
|
+
t4 = $[35];
|
|
240
235
|
}
|
|
241
236
|
const handleTokenRemove = t4;
|
|
242
237
|
let t5;
|
|
243
|
-
if ($[
|
|
238
|
+
if ($[36] !== disabled) {
|
|
244
239
|
t5 = tokenIndex => () => {
|
|
245
240
|
if (!disabled) {
|
|
246
241
|
setSelectedTokenIndex(tokenIndex);
|
|
247
242
|
}
|
|
248
243
|
};
|
|
249
|
-
$[
|
|
250
|
-
$[
|
|
244
|
+
$[36] = disabled;
|
|
245
|
+
$[37] = t5;
|
|
251
246
|
} else {
|
|
252
|
-
t5 = $[
|
|
247
|
+
t5 = $[37];
|
|
253
248
|
}
|
|
254
249
|
const handleTokenFocus = t5;
|
|
255
250
|
let t6;
|
|
256
|
-
if ($[
|
|
251
|
+
if ($[38] !== containerRef || $[39] !== visibleTokenCount) {
|
|
257
252
|
t6 = () => {
|
|
258
253
|
setSelectedTokenIndex(undefined);
|
|
259
254
|
setTimeout(() => {
|
|
@@ -263,42 +258,42 @@ function TextInputWithTokensInnerComponent(t0, forwardedRef) {
|
|
|
263
258
|
}
|
|
264
259
|
}, 0);
|
|
265
260
|
};
|
|
266
|
-
$[
|
|
267
|
-
$[
|
|
268
|
-
$[
|
|
261
|
+
$[38] = containerRef;
|
|
262
|
+
$[39] = visibleTokenCount;
|
|
263
|
+
$[40] = t6;
|
|
269
264
|
} else {
|
|
270
|
-
t6 = $[
|
|
265
|
+
t6 = $[40];
|
|
271
266
|
}
|
|
272
267
|
const handleTokenBlur = t6;
|
|
273
268
|
let t7;
|
|
274
|
-
if ($[
|
|
269
|
+
if ($[41] === Symbol.for("react.memo_cache_sentinel")) {
|
|
275
270
|
t7 = event => {
|
|
276
271
|
if (event.key === "Escape") {
|
|
277
272
|
var _ref$current2;
|
|
278
273
|
(_ref$current2 = ref.current) === null || _ref$current2 === void 0 ? void 0 : _ref$current2.focus();
|
|
279
274
|
}
|
|
280
275
|
};
|
|
281
|
-
$[
|
|
276
|
+
$[41] = t7;
|
|
282
277
|
} else {
|
|
283
|
-
t7 = $[
|
|
278
|
+
t7 = $[41];
|
|
284
279
|
}
|
|
285
280
|
const handleTokenKeyUp = t7;
|
|
286
281
|
let t8;
|
|
287
|
-
if ($[
|
|
282
|
+
if ($[42] !== onFocus || $[43] !== visibleTokenCount) {
|
|
288
283
|
t8 = event_0 => {
|
|
289
284
|
onFocus && onFocus(event_0);
|
|
290
285
|
setSelectedTokenIndex(undefined);
|
|
291
286
|
visibleTokenCount && setTokensAreTruncated(false);
|
|
292
287
|
};
|
|
293
|
-
$[
|
|
294
|
-
$[
|
|
295
|
-
$[
|
|
288
|
+
$[42] = onFocus;
|
|
289
|
+
$[43] = visibleTokenCount;
|
|
290
|
+
$[44] = t8;
|
|
296
291
|
} else {
|
|
297
|
-
t8 = $[
|
|
292
|
+
t8 = $[44];
|
|
298
293
|
}
|
|
299
294
|
const handleInputFocus = t8;
|
|
300
295
|
let t9;
|
|
301
|
-
if ($[
|
|
296
|
+
if ($[45] !== containerRef || $[46] !== onBlur || $[47] !== visibleTokenCount) {
|
|
302
297
|
t9 = event_1 => {
|
|
303
298
|
onBlur && onBlur(event_1);
|
|
304
299
|
setTimeout(() => {
|
|
@@ -308,16 +303,16 @@ function TextInputWithTokensInnerComponent(t0, forwardedRef) {
|
|
|
308
303
|
}
|
|
309
304
|
}, 0);
|
|
310
305
|
};
|
|
311
|
-
$[
|
|
312
|
-
$[
|
|
313
|
-
$[
|
|
314
|
-
$[
|
|
306
|
+
$[45] = containerRef;
|
|
307
|
+
$[46] = onBlur;
|
|
308
|
+
$[47] = visibleTokenCount;
|
|
309
|
+
$[48] = t9;
|
|
315
310
|
} else {
|
|
316
|
-
t9 = $[
|
|
311
|
+
t9 = $[48];
|
|
317
312
|
}
|
|
318
313
|
const handleInputBlur = t9;
|
|
319
314
|
let t10;
|
|
320
|
-
if ($[
|
|
315
|
+
if ($[49] !== handleTokenRemove || $[50] !== onKeyDown || $[51] !== tokens) {
|
|
321
316
|
t10 = e => {
|
|
322
317
|
var _ref$current3;
|
|
323
318
|
if (onKeyDown) {
|
|
@@ -338,48 +333,48 @@ function TextInputWithTokensInnerComponent(t0, forwardedRef) {
|
|
|
338
333
|
}, 0);
|
|
339
334
|
}
|
|
340
335
|
};
|
|
341
|
-
$[
|
|
342
|
-
$[
|
|
343
|
-
$[
|
|
344
|
-
$[
|
|
336
|
+
$[49] = handleTokenRemove;
|
|
337
|
+
$[50] = onKeyDown;
|
|
338
|
+
$[51] = tokens;
|
|
339
|
+
$[52] = t10;
|
|
345
340
|
} else {
|
|
346
|
-
t10 = $[
|
|
341
|
+
t10 = $[52];
|
|
347
342
|
}
|
|
348
343
|
const handleInputKeyDown = t10;
|
|
349
344
|
let t11;
|
|
350
|
-
if ($[
|
|
345
|
+
if ($[53] === Symbol.for("react.memo_cache_sentinel")) {
|
|
351
346
|
t11 = () => {
|
|
352
347
|
var _ref$current5;
|
|
353
348
|
(_ref$current5 = ref.current) === null || _ref$current5 === void 0 ? void 0 : _ref$current5.focus();
|
|
354
349
|
};
|
|
355
|
-
$[
|
|
350
|
+
$[53] = t11;
|
|
356
351
|
} else {
|
|
357
|
-
t11 = $[
|
|
352
|
+
t11 = $[53];
|
|
358
353
|
}
|
|
359
354
|
const focusInput = t11;
|
|
360
355
|
const preventTokenClickPropagation = _temp3;
|
|
361
356
|
let t12;
|
|
362
|
-
if ($[
|
|
357
|
+
if ($[54] !== tokens || $[55] !== tokensAreTruncated || $[56] !== visibleTokenCount) {
|
|
363
358
|
t12 = tokensAreTruncated ? tokens.slice(0, visibleTokenCount) : tokens;
|
|
364
|
-
$[
|
|
365
|
-
$[
|
|
366
|
-
$[
|
|
367
|
-
$[
|
|
359
|
+
$[54] = tokens;
|
|
360
|
+
$[55] = tokensAreTruncated;
|
|
361
|
+
$[56] = visibleTokenCount;
|
|
362
|
+
$[57] = t12;
|
|
368
363
|
} else {
|
|
369
|
-
t12 = $[
|
|
364
|
+
t12 = $[57];
|
|
370
365
|
}
|
|
371
366
|
const visibleTokens = t12;
|
|
372
367
|
let t13;
|
|
373
|
-
if ($[
|
|
368
|
+
if ($[58] === Symbol.for("react.memo_cache_sentinel")) {
|
|
374
369
|
t13 = {
|
|
375
370
|
small: "small",
|
|
376
371
|
medium: "small",
|
|
377
372
|
large: "medium",
|
|
378
373
|
xlarge: "medium"
|
|
379
374
|
};
|
|
380
|
-
$[
|
|
375
|
+
$[58] = t13;
|
|
381
376
|
} else {
|
|
382
|
-
t13 = $[
|
|
377
|
+
t13 = $[58];
|
|
383
378
|
}
|
|
384
379
|
const inputSizeMap = t13;
|
|
385
380
|
const showLeadingLoadingIndicator = loading && (loaderPosition === "leading" || Boolean(LeadingVisual && loaderPosition !== "trailing"));
|
|
@@ -389,64 +384,64 @@ function TextInputWithTokensInnerComponent(t0, forwardedRef) {
|
|
|
389
384
|
const t16 = inputSizeMap[size];
|
|
390
385
|
const t17 = Boolean(preventTokenWrapping || maxHeight) || undefined;
|
|
391
386
|
let t18;
|
|
392
|
-
if ($[
|
|
387
|
+
if ($[59] !== className) {
|
|
393
388
|
t18 = clsx(className, styles.TextInputWrapper);
|
|
394
|
-
$[
|
|
395
|
-
$[
|
|
389
|
+
$[59] = className;
|
|
390
|
+
$[60] = t18;
|
|
396
391
|
} else {
|
|
397
|
-
t18 = $[
|
|
392
|
+
t18 = $[60];
|
|
398
393
|
}
|
|
399
394
|
let t19;
|
|
400
|
-
if ($[
|
|
395
|
+
if ($[61] !== maxHeight || $[62] !== style) {
|
|
401
396
|
t19 = maxHeight ? {
|
|
402
397
|
maxHeight,
|
|
403
398
|
...style
|
|
404
399
|
} : style;
|
|
405
|
-
$[
|
|
406
|
-
$[
|
|
407
|
-
$[
|
|
400
|
+
$[61] = maxHeight;
|
|
401
|
+
$[62] = style;
|
|
402
|
+
$[63] = t19;
|
|
408
403
|
} else {
|
|
409
|
-
t19 = $[
|
|
404
|
+
t19 = $[63];
|
|
410
405
|
}
|
|
411
406
|
let t20;
|
|
412
|
-
if ($[
|
|
407
|
+
if ($[64] !== IconComponent || $[65] !== LeadingVisual) {
|
|
413
408
|
t20 = IconComponent && !LeadingVisual && /*#__PURE__*/jsx(IconComponent, {
|
|
414
409
|
className: "TextInput-icon"
|
|
415
410
|
});
|
|
416
|
-
$[
|
|
417
|
-
$[
|
|
418
|
-
$[
|
|
411
|
+
$[64] = IconComponent;
|
|
412
|
+
$[65] = LeadingVisual;
|
|
413
|
+
$[66] = t20;
|
|
419
414
|
} else {
|
|
420
|
-
t20 = $[
|
|
415
|
+
t20 = $[66];
|
|
421
416
|
}
|
|
422
417
|
const t21 = typeof loading === "boolean";
|
|
423
418
|
let t22;
|
|
424
|
-
if ($[
|
|
419
|
+
if ($[67] !== LeadingVisual) {
|
|
425
420
|
t22 = typeof LeadingVisual !== "string" && isValidElementType(LeadingVisual) ? /*#__PURE__*/jsx(LeadingVisual, {}) : LeadingVisual;
|
|
426
|
-
$[
|
|
427
|
-
$[
|
|
421
|
+
$[67] = LeadingVisual;
|
|
422
|
+
$[68] = t22;
|
|
428
423
|
} else {
|
|
429
|
-
t22 = $[
|
|
424
|
+
t22 = $[68];
|
|
430
425
|
}
|
|
431
426
|
let t23;
|
|
432
|
-
if ($[
|
|
427
|
+
if ($[69] !== showLeadingLoadingIndicator || $[70] !== t21 || $[71] !== t22) {
|
|
433
428
|
t23 = /*#__PURE__*/jsx(TextInputInnerVisualSlot, {
|
|
434
429
|
hasLoadingIndicator: t21,
|
|
435
430
|
visualPosition: "leading",
|
|
436
431
|
showLoadingIndicator: showLeadingLoadingIndicator,
|
|
437
432
|
children: t22
|
|
438
433
|
});
|
|
439
|
-
$[
|
|
440
|
-
$[
|
|
441
|
-
$[
|
|
442
|
-
$[
|
|
434
|
+
$[69] = showLeadingLoadingIndicator;
|
|
435
|
+
$[70] = t21;
|
|
436
|
+
$[71] = t22;
|
|
437
|
+
$[72] = t23;
|
|
443
438
|
} else {
|
|
444
|
-
t23 = $[
|
|
439
|
+
t23 = $[72];
|
|
445
440
|
}
|
|
446
441
|
const t24 = containerRef;
|
|
447
442
|
const t25 = validationStatus === "error" ? "true" : "false";
|
|
448
443
|
let t26;
|
|
449
|
-
if ($[
|
|
444
|
+
if ($[73] !== disabled || $[74] !== handleInputBlur || $[75] !== handleInputFocus || $[76] !== handleInputKeyDown || $[77] !== inputPropsRest || $[78] !== t25) {
|
|
450
445
|
t26 = /*#__PURE__*/jsx("div", {
|
|
451
446
|
className: styles.InputWrapper,
|
|
452
447
|
children: /*#__PURE__*/jsx(UnstyledTextInput, {
|
|
@@ -461,20 +456,20 @@ function TextInputWithTokensInnerComponent(t0, forwardedRef) {
|
|
|
461
456
|
...inputPropsRest
|
|
462
457
|
})
|
|
463
458
|
});
|
|
464
|
-
$[
|
|
465
|
-
$[
|
|
466
|
-
$[
|
|
467
|
-
$[
|
|
468
|
-
$[
|
|
469
|
-
$[
|
|
470
|
-
$[
|
|
459
|
+
$[73] = disabled;
|
|
460
|
+
$[74] = handleInputBlur;
|
|
461
|
+
$[75] = handleInputFocus;
|
|
462
|
+
$[76] = handleInputKeyDown;
|
|
463
|
+
$[77] = inputPropsRest;
|
|
464
|
+
$[78] = t25;
|
|
465
|
+
$[79] = t26;
|
|
471
466
|
} else {
|
|
472
|
-
t26 = $[
|
|
467
|
+
t26 = $[79];
|
|
473
468
|
}
|
|
474
469
|
let t27;
|
|
475
|
-
if ($[
|
|
470
|
+
if ($[80] !== TokenComponent || $[81] !== disabled || $[82] !== handleTokenBlur || $[83] !== handleTokenFocus || $[84] !== handleTokenRemove || $[85] !== hideTokenRemoveButtons || $[86] !== selectedTokenIndex || $[87] !== size || $[88] !== visibleTokens) {
|
|
476
471
|
let t28;
|
|
477
|
-
if ($[
|
|
472
|
+
if ($[90] !== TokenComponent || $[91] !== disabled || $[92] !== handleTokenBlur || $[93] !== handleTokenFocus || $[94] !== handleTokenRemove || $[95] !== hideTokenRemoveButtons || $[96] !== selectedTokenIndex || $[97] !== size) {
|
|
478
473
|
t28 = (t29, i) => {
|
|
479
474
|
const {
|
|
480
475
|
id,
|
|
@@ -496,89 +491,89 @@ function TextInputWithTokensInnerComponent(t0, forwardedRef) {
|
|
|
496
491
|
...tokenRest
|
|
497
492
|
}, id);
|
|
498
493
|
};
|
|
499
|
-
$[
|
|
500
|
-
$[
|
|
501
|
-
$[
|
|
502
|
-
$[
|
|
503
|
-
$[
|
|
504
|
-
$[
|
|
505
|
-
$[
|
|
506
|
-
$[
|
|
507
|
-
$[
|
|
494
|
+
$[90] = TokenComponent;
|
|
495
|
+
$[91] = disabled;
|
|
496
|
+
$[92] = handleTokenBlur;
|
|
497
|
+
$[93] = handleTokenFocus;
|
|
498
|
+
$[94] = handleTokenRemove;
|
|
499
|
+
$[95] = hideTokenRemoveButtons;
|
|
500
|
+
$[96] = selectedTokenIndex;
|
|
501
|
+
$[97] = size;
|
|
502
|
+
$[98] = t28;
|
|
508
503
|
} else {
|
|
509
|
-
t28 = $[
|
|
504
|
+
t28 = $[98];
|
|
510
505
|
}
|
|
511
506
|
t27 = visibleTokens.map(t28);
|
|
512
|
-
$[
|
|
513
|
-
$[
|
|
514
|
-
$[
|
|
515
|
-
$[
|
|
516
|
-
$[
|
|
517
|
-
$[
|
|
518
|
-
$[
|
|
519
|
-
$[
|
|
520
|
-
$[
|
|
521
|
-
$[
|
|
507
|
+
$[80] = TokenComponent;
|
|
508
|
+
$[81] = disabled;
|
|
509
|
+
$[82] = handleTokenBlur;
|
|
510
|
+
$[83] = handleTokenFocus;
|
|
511
|
+
$[84] = handleTokenRemove;
|
|
512
|
+
$[85] = hideTokenRemoveButtons;
|
|
513
|
+
$[86] = selectedTokenIndex;
|
|
514
|
+
$[87] = size;
|
|
515
|
+
$[88] = visibleTokens;
|
|
516
|
+
$[89] = t27;
|
|
522
517
|
} else {
|
|
523
|
-
t27 = $[
|
|
518
|
+
t27 = $[89];
|
|
524
519
|
}
|
|
525
520
|
let t28;
|
|
526
|
-
if ($[
|
|
521
|
+
if ($[99] !== size || $[100] !== tokens || $[101] !== tokensAreTruncated || $[102] !== visibleTokens.length) {
|
|
527
522
|
t28 = tokensAreTruncated && tokens.length - visibleTokens.length ? /*#__PURE__*/jsxs(Text, {
|
|
528
523
|
className: overflowCountClassMap[size],
|
|
529
524
|
children: ["+", tokens.length - visibleTokens.length]
|
|
530
525
|
}) : null;
|
|
531
|
-
$[
|
|
532
|
-
$[
|
|
533
|
-
$[
|
|
534
|
-
$[
|
|
535
|
-
$[
|
|
526
|
+
$[99] = size;
|
|
527
|
+
$[100] = tokens;
|
|
528
|
+
$[101] = tokensAreTruncated;
|
|
529
|
+
$[102] = visibleTokens.length;
|
|
530
|
+
$[103] = t28;
|
|
536
531
|
} else {
|
|
537
|
-
t28 = $[
|
|
532
|
+
t28 = $[103];
|
|
538
533
|
}
|
|
539
534
|
let t29;
|
|
540
|
-
if ($[
|
|
535
|
+
if ($[104] !== preventTokenWrapping || $[105] !== t24 || $[106] !== t26 || $[107] !== t27 || $[108] !== t28) {
|
|
541
536
|
t29 = /*#__PURE__*/jsxs("div", {
|
|
542
537
|
ref: t24,
|
|
543
538
|
className: styles.Container,
|
|
544
539
|
"data-prevent-token-wrapping": preventTokenWrapping,
|
|
545
540
|
children: [t26, t27, t28]
|
|
546
541
|
});
|
|
547
|
-
$[
|
|
548
|
-
$[
|
|
549
|
-
$[
|
|
550
|
-
$[
|
|
551
|
-
$[
|
|
552
|
-
$[
|
|
542
|
+
$[104] = preventTokenWrapping;
|
|
543
|
+
$[105] = t24;
|
|
544
|
+
$[106] = t26;
|
|
545
|
+
$[107] = t27;
|
|
546
|
+
$[108] = t28;
|
|
547
|
+
$[109] = t29;
|
|
553
548
|
} else {
|
|
554
|
-
t29 = $[
|
|
549
|
+
t29 = $[109];
|
|
555
550
|
}
|
|
556
551
|
const t30 = typeof loading === "boolean";
|
|
557
552
|
let t31;
|
|
558
|
-
if ($[
|
|
553
|
+
if ($[110] !== TrailingVisual) {
|
|
559
554
|
t31 = typeof TrailingVisual !== "string" && isValidElementType(TrailingVisual) ? /*#__PURE__*/jsx(TrailingVisual, {}) : TrailingVisual;
|
|
560
|
-
$[
|
|
561
|
-
$[
|
|
555
|
+
$[110] = TrailingVisual;
|
|
556
|
+
$[111] = t31;
|
|
562
557
|
} else {
|
|
563
|
-
t31 = $[
|
|
558
|
+
t31 = $[111];
|
|
564
559
|
}
|
|
565
560
|
let t32;
|
|
566
|
-
if ($[
|
|
561
|
+
if ($[112] !== showTrailingLoadingIndicator || $[113] !== t30 || $[114] !== t31) {
|
|
567
562
|
t32 = /*#__PURE__*/jsx(TextInputInnerVisualSlot, {
|
|
568
563
|
hasLoadingIndicator: t30,
|
|
569
564
|
visualPosition: "trailing",
|
|
570
565
|
showLoadingIndicator: showTrailingLoadingIndicator,
|
|
571
566
|
children: t31
|
|
572
567
|
});
|
|
573
|
-
$[
|
|
574
|
-
$[
|
|
575
|
-
$[
|
|
576
|
-
$[
|
|
568
|
+
$[112] = showTrailingLoadingIndicator;
|
|
569
|
+
$[113] = t30;
|
|
570
|
+
$[114] = t31;
|
|
571
|
+
$[115] = t32;
|
|
577
572
|
} else {
|
|
578
|
-
t32 = $[
|
|
573
|
+
t32 = $[115];
|
|
579
574
|
}
|
|
580
575
|
let t33;
|
|
581
|
-
if ($[
|
|
576
|
+
if ($[116] !== block || $[117] !== contrast || $[118] !== disabled || $[119] !== maxWidthProp || $[120] !== minWidthProp || $[121] !== t14 || $[122] !== t15 || $[123] !== t16 || $[124] !== t17 || $[125] !== t18 || $[126] !== t19 || $[127] !== t20 || $[128] !== t23 || $[129] !== t29 || $[130] !== t32 || $[131] !== validationStatus || $[132] !== variantProp || $[133] !== widthProp) {
|
|
582
577
|
t33 = /*#__PURE__*/jsxs(TextInputWrapper, {
|
|
583
578
|
block: block,
|
|
584
579
|
contrast: contrast,
|
|
@@ -595,31 +590,29 @@ function TextInputWithTokensInnerComponent(t0, forwardedRef) {
|
|
|
595
590
|
"data-token-wrapping": t17,
|
|
596
591
|
className: t18,
|
|
597
592
|
style: t19,
|
|
598
|
-
sx: sxProp,
|
|
599
593
|
children: [t20, t23, t29, t32]
|
|
600
594
|
});
|
|
601
|
-
$[
|
|
602
|
-
$[
|
|
603
|
-
$[
|
|
604
|
-
$[
|
|
605
|
-
$[
|
|
606
|
-
$[
|
|
607
|
-
$[
|
|
608
|
-
$[
|
|
609
|
-
$[
|
|
610
|
-
$[
|
|
611
|
-
$[
|
|
612
|
-
$[
|
|
613
|
-
$[
|
|
614
|
-
$[
|
|
615
|
-
$[
|
|
616
|
-
$[
|
|
617
|
-
$[
|
|
618
|
-
$[
|
|
619
|
-
$[
|
|
620
|
-
$[136] = t33;
|
|
595
|
+
$[116] = block;
|
|
596
|
+
$[117] = contrast;
|
|
597
|
+
$[118] = disabled;
|
|
598
|
+
$[119] = maxWidthProp;
|
|
599
|
+
$[120] = minWidthProp;
|
|
600
|
+
$[121] = t14;
|
|
601
|
+
$[122] = t15;
|
|
602
|
+
$[123] = t16;
|
|
603
|
+
$[124] = t17;
|
|
604
|
+
$[125] = t18;
|
|
605
|
+
$[126] = t19;
|
|
606
|
+
$[127] = t20;
|
|
607
|
+
$[128] = t23;
|
|
608
|
+
$[129] = t29;
|
|
609
|
+
$[130] = t32;
|
|
610
|
+
$[131] = validationStatus;
|
|
611
|
+
$[132] = variantProp;
|
|
612
|
+
$[133] = widthProp;
|
|
613
|
+
$[134] = t33;
|
|
621
614
|
} else {
|
|
622
|
-
t33 = $[
|
|
615
|
+
t33 = $[134];
|
|
623
616
|
}
|
|
624
617
|
return t33;
|
|
625
618
|
}
|
|
@@ -634,5 +627,6 @@ function _temp(element) {
|
|
|
634
627
|
}
|
|
635
628
|
const TextInputWithTokens = /*#__PURE__*/React.forwardRef(TextInputWithTokensInnerComponent);
|
|
636
629
|
TextInputWithTokens.displayName = 'TextInputWithTokens';
|
|
630
|
+
TextInputWithTokens.__SLOT__ = Symbol('TextInputWithTokens');
|
|
637
631
|
|
|
638
632
|
export { TextInputWithTokens as default };
|