@primer/react 38.0.0-rc.5 → 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.
- package/CHANGELOG.md +53 -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/KeybindingHint/components/Chord-d4edcc89.css +2 -0
- package/dist/KeybindingHint/components/Chord-d4edcc89.css.map +1 -0
- package/dist/KeybindingHint/components/Chord.module.css.js +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/KeybindingHint/components/Chord-81099645.css +0 -2
- package/dist/KeybindingHint/components/Chord-81099645.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
|
@@ -42,14 +42,13 @@ const ConditionalTooltip = t0 => {
|
|
|
42
42
|
return t2;
|
|
43
43
|
};
|
|
44
44
|
const TextInputAction = /*#__PURE__*/forwardRef((t0, forwardedRef) => {
|
|
45
|
-
const $ = c(
|
|
45
|
+
const $ = c(28);
|
|
46
46
|
let ariaLabel;
|
|
47
47
|
let ariaLabelledBy;
|
|
48
48
|
let children;
|
|
49
49
|
let className;
|
|
50
50
|
let icon;
|
|
51
51
|
let rest;
|
|
52
|
-
let sxProp;
|
|
53
52
|
let t1;
|
|
54
53
|
let tooltipDirection;
|
|
55
54
|
if ($[0] !== t0) {
|
|
@@ -59,7 +58,6 @@ const TextInputAction = /*#__PURE__*/forwardRef((t0, forwardedRef) => {
|
|
|
59
58
|
tooltipDirection,
|
|
60
59
|
children,
|
|
61
60
|
icon,
|
|
62
|
-
sx: sxProp,
|
|
63
61
|
className,
|
|
64
62
|
variant: t1,
|
|
65
63
|
...rest
|
|
@@ -71,9 +69,8 @@ const TextInputAction = /*#__PURE__*/forwardRef((t0, forwardedRef) => {
|
|
|
71
69
|
$[4] = className;
|
|
72
70
|
$[5] = icon;
|
|
73
71
|
$[6] = rest;
|
|
74
|
-
$[7] =
|
|
75
|
-
$[8] =
|
|
76
|
-
$[9] = tooltipDirection;
|
|
72
|
+
$[7] = t1;
|
|
73
|
+
$[8] = tooltipDirection;
|
|
77
74
|
} else {
|
|
78
75
|
ariaLabel = $[1];
|
|
79
76
|
ariaLabelledBy = $[2];
|
|
@@ -81,73 +78,62 @@ const TextInputAction = /*#__PURE__*/forwardRef((t0, forwardedRef) => {
|
|
|
81
78
|
className = $[4];
|
|
82
79
|
icon = $[5];
|
|
83
80
|
rest = $[6];
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
tooltipDirection = $[9];
|
|
81
|
+
t1 = $[7];
|
|
82
|
+
tooltipDirection = $[8];
|
|
87
83
|
}
|
|
88
84
|
const variant = t1 === undefined ? "invisible" : t1;
|
|
89
85
|
const t2 = variant === "invisible" && styles.Invisible;
|
|
90
86
|
let t3;
|
|
91
|
-
if ($[
|
|
87
|
+
if ($[9] !== className || $[10] !== t2) {
|
|
92
88
|
t3 = clsx(t2, className);
|
|
93
|
-
$[
|
|
94
|
-
$[
|
|
95
|
-
$[
|
|
89
|
+
$[9] = className;
|
|
90
|
+
$[10] = t2;
|
|
91
|
+
$[11] = t3;
|
|
96
92
|
} else {
|
|
97
|
-
t3 = $[
|
|
93
|
+
t3 = $[11];
|
|
98
94
|
}
|
|
99
95
|
let t4;
|
|
100
|
-
if ($[
|
|
101
|
-
t4 =
|
|
102
|
-
|
|
103
|
-
$[14] = t4;
|
|
104
|
-
} else {
|
|
105
|
-
t4 = $[14];
|
|
106
|
-
}
|
|
107
|
-
let t5;
|
|
108
|
-
if ($[15] !== t3 || $[16] !== t4) {
|
|
109
|
-
t5 = {
|
|
110
|
-
className: t3,
|
|
111
|
-
sx: t4
|
|
96
|
+
if ($[12] !== t3) {
|
|
97
|
+
t4 = {
|
|
98
|
+
className: t3
|
|
112
99
|
};
|
|
113
|
-
$[
|
|
114
|
-
$[
|
|
115
|
-
$[17] = t5;
|
|
100
|
+
$[12] = t3;
|
|
101
|
+
$[13] = t4;
|
|
116
102
|
} else {
|
|
117
|
-
|
|
103
|
+
t4 = $[13];
|
|
118
104
|
}
|
|
119
|
-
const styleProps =
|
|
105
|
+
const styleProps = t4;
|
|
120
106
|
if (icon && !ariaLabel || !children && !ariaLabel) {
|
|
121
107
|
console.warn("Use the `aria-label` prop to provide an accessible label for assistive technology");
|
|
122
108
|
}
|
|
123
|
-
let
|
|
124
|
-
if ($[
|
|
125
|
-
|
|
109
|
+
let t5;
|
|
110
|
+
if ($[14] !== ariaLabel || $[15] !== ariaLabelledBy) {
|
|
111
|
+
t5 = ariaLabel ? {
|
|
126
112
|
"aria-label": ariaLabel
|
|
127
113
|
} : ariaLabelledBy ? {
|
|
128
114
|
"aria-labelledby": ariaLabelledBy
|
|
129
115
|
} : {
|
|
130
116
|
"aria-label": ""
|
|
131
117
|
};
|
|
132
|
-
$[
|
|
133
|
-
$[
|
|
134
|
-
$[
|
|
118
|
+
$[14] = ariaLabel;
|
|
119
|
+
$[15] = ariaLabelledBy;
|
|
120
|
+
$[16] = t5;
|
|
135
121
|
} else {
|
|
136
|
-
|
|
122
|
+
t5 = $[16];
|
|
137
123
|
}
|
|
138
|
-
const accessibleLabel =
|
|
139
|
-
let
|
|
140
|
-
if ($[
|
|
141
|
-
|
|
142
|
-
$[
|
|
124
|
+
const accessibleLabel = t5;
|
|
125
|
+
let t6;
|
|
126
|
+
if ($[17] === Symbol.for("react.memo_cache_sentinel")) {
|
|
127
|
+
t6 = clsx("TextInput-action", styles.TextInputAction);
|
|
128
|
+
$[17] = t6;
|
|
143
129
|
} else {
|
|
144
|
-
|
|
130
|
+
t6 = $[17];
|
|
145
131
|
}
|
|
146
|
-
let
|
|
147
|
-
if ($[
|
|
132
|
+
let t7;
|
|
133
|
+
if ($[18] !== accessibleLabel || $[19] !== ariaLabel || $[20] !== children || $[21] !== forwardedRef || $[22] !== icon || $[23] !== rest || $[24] !== styleProps || $[25] !== tooltipDirection || $[26] !== variant) {
|
|
148
134
|
var _tooltipDirection;
|
|
149
|
-
|
|
150
|
-
className:
|
|
135
|
+
t7 = /*#__PURE__*/jsx("span", {
|
|
136
|
+
className: t6,
|
|
151
137
|
children: icon && !children && ariaLabel ? /*#__PURE__*/jsx(IconButton, {
|
|
152
138
|
...accessibleLabel,
|
|
153
139
|
tooltipDirection: (_tooltipDirection = tooltipDirection) !== null && _tooltipDirection !== void 0 ? _tooltipDirection : "s",
|
|
@@ -170,20 +156,20 @@ const TextInputAction = /*#__PURE__*/forwardRef((t0, forwardedRef) => {
|
|
|
170
156
|
})
|
|
171
157
|
})
|
|
172
158
|
});
|
|
173
|
-
$[
|
|
174
|
-
$[
|
|
175
|
-
$[
|
|
176
|
-
$[
|
|
177
|
-
$[
|
|
178
|
-
$[
|
|
179
|
-
$[
|
|
180
|
-
$[
|
|
181
|
-
$[
|
|
182
|
-
$[
|
|
159
|
+
$[18] = accessibleLabel;
|
|
160
|
+
$[19] = ariaLabel;
|
|
161
|
+
$[20] = children;
|
|
162
|
+
$[21] = forwardedRef;
|
|
163
|
+
$[22] = icon;
|
|
164
|
+
$[23] = rest;
|
|
165
|
+
$[24] = styleProps;
|
|
166
|
+
$[25] = tooltipDirection;
|
|
167
|
+
$[26] = variant;
|
|
168
|
+
$[27] = t7;
|
|
183
169
|
} else {
|
|
184
|
-
|
|
170
|
+
t7 = $[27];
|
|
185
171
|
}
|
|
186
|
-
return
|
|
172
|
+
return t7;
|
|
187
173
|
});
|
|
188
174
|
|
|
189
175
|
export { TextInputAction as default };
|
|
@@ -1,12 +1,7 @@
|
|
|
1
1
|
import React, { type ComponentProps } from 'react';
|
|
2
|
-
import { type ResponsiveValue } from 'styled-system';
|
|
3
|
-
import type { SxProp } from '../../sx';
|
|
4
2
|
import type { FormValidationStatus } from '../../utils/types/FormValidationStatus';
|
|
5
3
|
export type TextInputSizes = 'small' | 'medium' | 'large';
|
|
6
|
-
|
|
7
|
-
hasLeadingVisual?: boolean;
|
|
8
|
-
hasTrailingVisual?: boolean;
|
|
9
|
-
} & {
|
|
4
|
+
type StyledTextInputBaseWrapperProps = {
|
|
10
5
|
block?: boolean;
|
|
11
6
|
contrast?: boolean;
|
|
12
7
|
disabled?: boolean;
|
|
@@ -22,37 +17,20 @@ export declare const TextInputBaseWrapper: React.ForwardRefExoticComponent<{
|
|
|
22
17
|
onClick?: React.MouseEventHandler;
|
|
23
18
|
children?: React.ReactNode;
|
|
24
19
|
/** @deprecated Update `width` using CSS modules or style. */
|
|
25
|
-
width?: string | number
|
|
20
|
+
width?: string | number;
|
|
26
21
|
/** @deprecated Update `min-width` using CSS modules or style. */
|
|
27
|
-
minWidth?: string | number
|
|
22
|
+
minWidth?: string | number;
|
|
28
23
|
/** @deprecated Update `max-width` using CSS modules or style. */
|
|
29
|
-
maxWidth?: string | number
|
|
30
|
-
}
|
|
24
|
+
maxWidth?: string | number;
|
|
25
|
+
};
|
|
26
|
+
export declare const TextInputBaseWrapper: React.ForwardRefExoticComponent<{
|
|
27
|
+
hasLeadingVisual?: boolean;
|
|
28
|
+
hasTrailingVisual?: boolean;
|
|
29
|
+
} & StyledTextInputBaseWrapperProps & React.RefAttributes<HTMLElement>>;
|
|
31
30
|
export declare const TextInputWrapper: React.ForwardRefExoticComponent<Omit<{
|
|
32
31
|
hasLeadingVisual?: boolean;
|
|
33
32
|
hasTrailingVisual?: boolean;
|
|
34
|
-
} &
|
|
35
|
-
block?: boolean;
|
|
36
|
-
contrast?: boolean;
|
|
37
|
-
disabled?: boolean;
|
|
38
|
-
hasTrailingAction?: boolean;
|
|
39
|
-
isInputFocused?: boolean;
|
|
40
|
-
monospace?: boolean;
|
|
41
|
-
validationStatus?: FormValidationStatus;
|
|
42
|
-
/** @deprecated Use `size` prop instead */
|
|
43
|
-
variant?: TextInputSizes;
|
|
44
|
-
size?: TextInputSizes;
|
|
45
|
-
className?: string;
|
|
46
|
-
style?: React.CSSProperties;
|
|
47
|
-
onClick?: React.MouseEventHandler;
|
|
48
|
-
children?: React.ReactNode;
|
|
49
|
-
/** @deprecated Update `width` using CSS modules or style. */
|
|
50
|
-
width?: string | number | ResponsiveValue<string | number>;
|
|
51
|
-
/** @deprecated Update `min-width` using CSS modules or style. */
|
|
52
|
-
minWidth?: string | number | ResponsiveValue<string | number>;
|
|
53
|
-
/** @deprecated Update `max-width` using CSS modules or style. */
|
|
54
|
-
maxWidth?: string | number | ResponsiveValue<string | number>;
|
|
55
|
-
} & SxProp & React.RefAttributes<HTMLElement>, "ref"> & React.RefAttributes<HTMLElement>>;
|
|
33
|
+
} & StyledTextInputBaseWrapperProps & React.RefAttributes<HTMLElement>, "ref"> & React.RefAttributes<HTMLElement>>;
|
|
56
34
|
export type StyledBaseWrapperProps = ComponentProps<typeof TextInputBaseWrapper>;
|
|
57
35
|
export type StyledWrapperProps = ComponentProps<typeof TextInputWrapper>;
|
|
58
36
|
export default TextInputWrapper;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TextInputWrapper.d.ts","sourceRoot":"","sources":["../../../src/internal/components/TextInputWrapper.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAC,KAAK,cAAc,EAAC,MAAM,OAAO,CAAA;AAChD,OAAO,
|
|
1
|
+
{"version":3,"file":"TextInputWrapper.d.ts","sourceRoot":"","sources":["../../../src/internal/components/TextInputWrapper.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAC,KAAK,cAAc,EAAC,MAAM,OAAO,CAAA;AAChD,OAAO,KAAK,EAAC,oBAAoB,EAAC,MAAM,wCAAwC,CAAA;AAKhF,MAAM,MAAM,cAAc,GAAG,OAA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putWrapper.module.css.js';
|
|
5
|
-
import { BoxWithFallback } from './BoxWithFallback.js';
|
|
6
5
|
import { jsx } from 'react/jsx-runtime';
|
|
7
6
|
|
|
8
7
|
const TextInputBaseWrapper = /*#__PURE__*/React.forwardRef(function TextInputBaseWrapper(t0, forwardRef) {
|
|
9
|
-
const $ = c(
|
|
8
|
+
const $ = c(43);
|
|
10
9
|
let block;
|
|
11
10
|
let className;
|
|
12
11
|
let contrast;
|
|
@@ -74,74 +73,104 @@ const TextInputBaseWrapper = /*#__PURE__*/React.forwardRef(function TextInputBas
|
|
|
74
73
|
width = $[15];
|
|
75
74
|
}
|
|
76
75
|
let t1;
|
|
77
|
-
if ($[16] !==
|
|
78
|
-
t1 =
|
|
79
|
-
|
|
76
|
+
if ($[16] !== width) {
|
|
77
|
+
t1 = width ? {
|
|
78
|
+
width
|
|
79
|
+
} : {};
|
|
80
|
+
$[16] = width;
|
|
80
81
|
$[17] = t1;
|
|
81
82
|
} else {
|
|
82
83
|
t1 = $[17];
|
|
83
84
|
}
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
maxWidth
|
|
98
|
-
|
|
85
|
+
let t2;
|
|
86
|
+
if ($[18] !== minWidth) {
|
|
87
|
+
t2 = minWidth ? {
|
|
88
|
+
minWidth
|
|
89
|
+
} : {};
|
|
90
|
+
$[18] = minWidth;
|
|
91
|
+
$[19] = t2;
|
|
92
|
+
} else {
|
|
93
|
+
t2 = $[19];
|
|
94
|
+
}
|
|
95
|
+
let t3;
|
|
96
|
+
if ($[20] !== maxWidth) {
|
|
97
|
+
t3 = maxWidth ? {
|
|
98
|
+
maxWidth
|
|
99
|
+
} : {};
|
|
100
|
+
$[20] = maxWidth;
|
|
101
|
+
$[21] = t3;
|
|
102
|
+
} else {
|
|
103
|
+
t3 = $[21];
|
|
104
|
+
}
|
|
105
|
+
let t4;
|
|
106
|
+
if ($[22] !== style || $[23] !== t1 || $[24] !== t2 || $[25] !== t3) {
|
|
107
|
+
t4 = {
|
|
108
|
+
...t1,
|
|
109
|
+
...t2,
|
|
110
|
+
...t3,
|
|
99
111
|
...style
|
|
100
|
-
}
|
|
101
|
-
$[
|
|
102
|
-
$[
|
|
103
|
-
$[
|
|
104
|
-
$[
|
|
105
|
-
$[
|
|
112
|
+
};
|
|
113
|
+
$[22] = style;
|
|
114
|
+
$[23] = t1;
|
|
115
|
+
$[24] = t2;
|
|
116
|
+
$[25] = t3;
|
|
117
|
+
$[26] = t4;
|
|
106
118
|
} else {
|
|
107
|
-
|
|
119
|
+
t4 = $[26];
|
|
108
120
|
}
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
121
|
+
const memoizedStyle = t4;
|
|
122
|
+
let t5;
|
|
123
|
+
if ($[27] !== className) {
|
|
124
|
+
t5 = clsx(className, styles.TextInputBaseWrapper);
|
|
125
|
+
$[27] = className;
|
|
126
|
+
$[28] = t5;
|
|
127
|
+
} else {
|
|
128
|
+
t5 = $[28];
|
|
129
|
+
}
|
|
130
|
+
const t6 = block || undefined;
|
|
131
|
+
const t7 = contrast || undefined;
|
|
132
|
+
const t8 = disabled || undefined;
|
|
133
|
+
const t9 = isInputFocused || undefined;
|
|
134
|
+
const t10 = monospace || undefined;
|
|
135
|
+
const t11 = size || undefined;
|
|
136
|
+
const t12 = hasTrailingAction || undefined;
|
|
137
|
+
const t13 = validationStatus || undefined;
|
|
138
|
+
const t14 = variant || undefined;
|
|
139
|
+
let t15;
|
|
140
|
+
if ($[29] !== forwardRef || $[30] !== memoizedStyle || $[31] !== restProps || $[32] !== t10 || $[33] !== t11 || $[34] !== t12 || $[35] !== t13 || $[36] !== t14 || $[37] !== t5 || $[38] !== t6 || $[39] !== t7 || $[40] !== t8 || $[41] !== t9) {
|
|
141
|
+
t15 = /*#__PURE__*/jsx("span", {
|
|
113
142
|
ref: forwardRef,
|
|
114
|
-
className:
|
|
115
|
-
"data-block":
|
|
116
|
-
"data-contrast":
|
|
117
|
-
"data-disabled":
|
|
118
|
-
"data-focused":
|
|
119
|
-
"data-monospace":
|
|
120
|
-
"data-size":
|
|
121
|
-
"data-trailing-action":
|
|
122
|
-
"data-validation":
|
|
123
|
-
"data-variant":
|
|
124
|
-
style:
|
|
143
|
+
className: t5,
|
|
144
|
+
"data-block": t6,
|
|
145
|
+
"data-contrast": t7,
|
|
146
|
+
"data-disabled": t8,
|
|
147
|
+
"data-focused": t9,
|
|
148
|
+
"data-monospace": t10,
|
|
149
|
+
"data-size": t11,
|
|
150
|
+
"data-trailing-action": t12,
|
|
151
|
+
"data-validation": t13,
|
|
152
|
+
"data-variant": t14,
|
|
153
|
+
style: memoizedStyle,
|
|
125
154
|
...restProps
|
|
126
155
|
});
|
|
127
|
-
$[
|
|
128
|
-
$[
|
|
129
|
-
$[
|
|
130
|
-
$[
|
|
131
|
-
$[
|
|
132
|
-
$[
|
|
133
|
-
$[
|
|
134
|
-
$[
|
|
135
|
-
$[
|
|
136
|
-
$[
|
|
137
|
-
$[
|
|
138
|
-
$[
|
|
139
|
-
$[
|
|
140
|
-
$[
|
|
156
|
+
$[29] = forwardRef;
|
|
157
|
+
$[30] = memoizedStyle;
|
|
158
|
+
$[31] = restProps;
|
|
159
|
+
$[32] = t10;
|
|
160
|
+
$[33] = t11;
|
|
161
|
+
$[34] = t12;
|
|
162
|
+
$[35] = t13;
|
|
163
|
+
$[36] = t14;
|
|
164
|
+
$[37] = t5;
|
|
165
|
+
$[38] = t6;
|
|
166
|
+
$[39] = t7;
|
|
167
|
+
$[40] = t8;
|
|
168
|
+
$[41] = t9;
|
|
169
|
+
$[42] = t15;
|
|
141
170
|
} else {
|
|
142
|
-
|
|
171
|
+
t15 = $[42];
|
|
143
172
|
}
|
|
144
|
-
return
|
|
173
|
+
return t15;
|
|
145
174
|
});
|
|
146
175
|
TextInputBaseWrapper.displayName = 'TextInputBaseWrapper';
|
|
147
176
|
const TextInputWrapper = /*#__PURE__*/React.forwardRef(function TextInputWrapper(t0, forwardRef) {
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { type SxProp } from '../../sx';
|
|
2
1
|
import React from 'react';
|
|
3
|
-
declare const UnstyledTextInput: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "ref"> &
|
|
2
|
+
declare const UnstyledTextInput: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "ref"> & React.RefAttributes<HTMLInputElement>>;
|
|
4
3
|
export default UnstyledTextInput;
|
|
5
4
|
//# sourceMappingURL=UnstyledTextInput.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"UnstyledTextInput.d.ts","sourceRoot":"","sources":["../../../src/internal/components/UnstyledTextInput.tsx"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"UnstyledTextInput.d.ts","sourceRoot":"","sources":["../../../src/internal/components/UnstyledTextInput.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAOzB,QAAA,MAAM,iBAAiB,8KAKrB,CAAA;AAGF,eAAe,iBAAiB,CAAA"}
|
|
@@ -2,7 +2,6 @@ import { c } from 'react-compiler-runtime';
|
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import styles from './UnstyledTextInput.module.css.js';
|
|
4
4
|
import { clsx } from 'clsx';
|
|
5
|
-
import { BoxWithFallback } from './BoxWithFallback.js';
|
|
6
5
|
import { jsx } from 'react/jsx-runtime';
|
|
7
6
|
|
|
8
7
|
const UnstyledTextInput = /*#__PURE__*/React.forwardRef(function UnstyledTextInput(t0, forwardRef) {
|
|
@@ -31,8 +30,7 @@ const UnstyledTextInput = /*#__PURE__*/React.forwardRef(function UnstyledTextInp
|
|
|
31
30
|
}
|
|
32
31
|
let t2;
|
|
33
32
|
if ($[5] !== forwardRef || $[6] !== rest || $[7] !== t1) {
|
|
34
|
-
t2 = /*#__PURE__*/jsx(
|
|
35
|
-
as: "input",
|
|
33
|
+
t2 = /*#__PURE__*/jsx("input", {
|
|
36
34
|
ref: forwardRef,
|
|
37
35
|
...rest,
|
|
38
36
|
className: t1
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
.prc-components-Animation-zcKZT:where([data-show]){animation:prc-components-fadeIn-5-i0W .17s cubic-bezier(.44,.74,.36,1)}@media (prefers-reduced-motion){.prc-components-Animation-zcKZT:where([data-show]){animation:none}}@keyframes prc-components-fadeIn-5-i0W{0%{opacity:0;transform:translateY(-100%)}to{opacity:1;transform:translateY(0)}}
|
|
2
|
+
/*# sourceMappingURL=ValidationAnimationContainer-04125429.css.map */
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/internal/components/ValidationAnimationContainer.module.css"],"names":[],"mappings":"AAAA,mDACE,sEAKF,CAHE,gCAHF,mDAII,cAEJ,CADE,CAGF,uCACE,GACE,SAAU,CACV,2BACF,CAEA,GACE,SAAU,CACV,uBACF,CACF","file":"ValidationAnimationContainer-04125429.css","sourcesContent":[".Animation:where([data-show]) {\n animation: 170ms fadeIn cubic-bezier(0.44, 0.74, 0.36, 1);\n\n @media (prefers-reduced-motion) {\n animation: none;\n }\n}\n\n@keyframes fadeIn {\n from {\n opacity: 0;\n transform: translateY(-100%);\n }\n\n to {\n opacity: 1;\n transform: translateY(0);\n }\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ValidationAnimationContainer.d.ts","sourceRoot":"","sources":["../../../src/internal/components/ValidationAnimationContainer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,SAAS,EAAC,MAAM,OAAO,CAAA;AACpC,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAI9B,UAAU,KAAM,SAAQ,SAAS,CAAC,cAAc,CAAC;IAC/C,IAAI,CAAC,EAAE,OAAO,CAAA;CACf;
|
|
1
|
+
{"version":3,"file":"ValidationAnimationContainer.d.ts","sourceRoot":"","sources":["../../../src/internal/components/ValidationAnimationContainer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,SAAS,EAAC,MAAM,OAAO,CAAA;AACpC,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAI9B,UAAU,KAAM,SAAQ,SAAS,CAAC,cAAc,CAAC;IAC/C,IAAI,CAAC,EAAE,OAAO,CAAA;CACf;AACD,QAAA,MAAM,4BAA4B,EAAE,KAAK,CAAC,EAAE,CAAC,KAAK,CAAC,iBAAiB,CAAC,KAAK,CAAC,CAkB1E,CAAA;AAED,eAAe,4BAA4B,CAAA"}
|
|
@@ -1,14 +1,8 @@
|
|
|
1
1
|
import { c } from 'react-compiler-runtime';
|
|
2
2
|
import { useState, useEffect } from 'react';
|
|
3
|
-
import
|
|
3
|
+
import classes from './ValidationAnimationContainer.module.css.js';
|
|
4
4
|
import { jsx } from 'react/jsx-runtime';
|
|
5
5
|
|
|
6
|
-
const fadeIn = keyframes(["0%{opacity:0;transform:translateY(-100%);}100%{opacity:1;transform:translateY(0);}"]);
|
|
7
|
-
// using easeOutQuint easing fn https://easings.net/#easeOutQuint
|
|
8
|
-
const AnimatedElement = styled.div.withConfig({
|
|
9
|
-
displayName: "ValidationAnimationContainer__AnimatedElement",
|
|
10
|
-
componentId: "sc-8z5a3g-0"
|
|
11
|
-
})(["animation:", ";@media (prefers-reduced-motion){animation:none;}"], props => props.show && css(["170ms ", " cubic-bezier(0.44,0.74,0.36,1);"], fadeIn));
|
|
12
6
|
const ValidationAnimationContainer = t0 => {
|
|
13
7
|
const $ = c(10);
|
|
14
8
|
const {
|
|
@@ -53,9 +47,10 @@ const ValidationAnimationContainer = t0 => {
|
|
|
53
47
|
height: show ? "auto" : 0,
|
|
54
48
|
overflow: "hidden"
|
|
55
49
|
},
|
|
56
|
-
children: /*#__PURE__*/jsx(
|
|
57
|
-
show: show,
|
|
50
|
+
children: /*#__PURE__*/jsx("div", {
|
|
51
|
+
"data-show": show ? "" : undefined,
|
|
58
52
|
onAnimationEnd: onAnimationEnd,
|
|
53
|
+
className: classes.Animation,
|
|
59
54
|
children: children
|
|
60
55
|
})
|
|
61
56
|
}) : null;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"form-story-helpers.d.ts","sourceRoot":"","sources":["../../src/utils/form-story-helpers.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAC9B,OAAO,KAAK,EAAC,aAAa,EAAE,WAAW,EAAC,MAAM,UAAU,CAAA;AACxD,OAAO,KAAK,EAAC,cAAc,EAAC,MAAM,SAAS,CAAA;AAC3C,OAAO,KAAK,EAAC,QAAQ,EAAC,MAAM,kBAAkB,CAAA;AAC9C,OAAO,KAAK,EAAC,SAAS,EAAC,MAAM,wBAAwB,CAAA;AAErD,KAAK,+BAA+B,GAAG,cAAc,CAAC,OAAO,aAAa,CAAC,CAAA;AAC3E,KAAK,6BAA6B,GAAG,cAAc,CAAC,OAAO,aAAa,CAAC,KAAK,CAAC,GAAG;IAChF,aAAa,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;CAChC,CAAA;AACD,KAAK,+BAA+B,GAAG,cAAc,CAAC,OAAO,aAAa,CAAC,OAAO,CAAC,GAAG;IACpF,eAAe,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;CAClC,CAAA;AACD,KAAK,yCAAyC,GAAG,cAAc,CAAC,OAAO,aAAa,CAAC,UAAU,CAAC,GAAG;IACjG,kBAAkB,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;CACrC,CAAA;AACD,MAAM,MAAM,wBAAwB,GAAG,+BAA+B,GACpE,6BAA6B,GAC7B,+BAA+B,GAC/B,yCAAyC,CAAA;AAE3C,KAAK,qBAAqB,GAAG,IAAI,CAAC,cAAc,CAAC,OAAO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AAO,MAAM,oBAAoB,GAAI,WAAW,MAAM,4BAc5C,CAAA;AAEV,eAAO,MAAM,4BAA4B,UAAsE,CAAA;AAE/G,eAAO,MAAM,2BAA2B,EAAE,QAyCzC,CAAA;AAED,eAAO,MAAM,eAAe;;;;;;;;CAQ3B,CAAA;AAED,eAAO,MAAM,mBAAmB,EAAE,QA4DjC,CAAA;AAID,eAAO,MAAM,oCAAoC,6CAO3C,CAAA;AAEN,eAAO,MAAM,kCAAkC,GAAI,sGAQhD,eAAe;;;;;;;;;;;;;;;;CAKhB,CAAA"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { WithSlotMarker } from './types';
|
|
2
|
+
/**
|
|
3
|
+
* Determines whether a given element is a valid slot for the supplied slot component
|
|
4
|
+
*/
|
|
5
|
+
export declare function isSlot(element: unknown, slot: WithSlotMarker<unknown>): boolean;
|
|
6
|
+
//# sourceMappingURL=is-slot.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"is-slot.d.ts","sourceRoot":"","sources":["../../src/utils/is-slot.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAa,cAAc,EAAC,MAAM,SAAS,CAAA;AAEvD;;GAEG;AACH,wBAAgB,MAAM,CAAC,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,cAAc,CAAC,OAAO,CAAC,GAAG,OAAO,CAU/E"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Determines whether a given element is a valid slot for the supplied slot component
|
|
3
|
+
*/
|
|
4
|
+
function isSlot(element, slot) {
|
|
5
|
+
var _reactElement$__SLOT_, _reactElement$type;
|
|
6
|
+
const elementType = typeof element;
|
|
7
|
+
if (elementType !== 'object' && elementType !== 'function' && element != null) {
|
|
8
|
+
return false;
|
|
9
|
+
}
|
|
10
|
+
const reactElement = element;
|
|
11
|
+
const elementSlot = (_reactElement$__SLOT_ = reactElement.__SLOT__) !== null && _reactElement$__SLOT_ !== void 0 ? _reactElement$__SLOT_ : (_reactElement$type = reactElement.type) === null || _reactElement$type === void 0 ? void 0 : _reactElement$type.__SLOT__;
|
|
12
|
+
return slot.__SLOT__ ? elementSlot === slot.__SLOT__ : false;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export { isSlot };
|
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
* @see https://github.com/radix-ui/primitives/blob/17ffcb7aaa42cbd36b3c210ba86d7d73d218e5be/packages/react/polymorphic/src/polymorphic.ts
|
|
6
6
|
*/
|
|
7
7
|
import * as React from 'react';
|
|
8
|
+
import type { SlotMarker } from './types/Slots';
|
|
8
9
|
type Merge<P1 = {}, P2 = {}> = Omit<P1, keyof P2> & P2;
|
|
9
10
|
/**
|
|
10
11
|
* Infers the OwnProps if E is a ForwardRefExoticComponentWithAs
|
|
@@ -17,7 +18,7 @@ type IntrinsicElement<E> = E extends ForwardRefComponent<infer I, any> ? I : nev
|
|
|
17
18
|
type ForwardRefExoticComponent<E, OwnProps> = React.ForwardRefExoticComponent<Merge<E extends React.ElementType ? React.ComponentPropsWithRef<E> : never, OwnProps & {
|
|
18
19
|
as?: E;
|
|
19
20
|
}>>;
|
|
20
|
-
interface ForwardRefComponent<IntrinsicElementString, OwnProps = {}> extends ForwardRefExoticComponent<IntrinsicElementString, OwnProps
|
|
21
|
+
interface ForwardRefComponent<IntrinsicElementString, OwnProps = {}> extends ForwardRefExoticComponent<IntrinsicElementString, OwnProps>, SlotMarker {
|
|
21
22
|
/**
|
|
22
23
|
* When `as` prop is passed, use this overload.
|
|
23
24
|
* Merges original own props (without DOM props) and the inferred props
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"polymorphic.d.ts","sourceRoot":"","sources":["../../src/utils/polymorphic.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;
|
|
1
|
+
{"version":3,"file":"polymorphic.d.ts","sourceRoot":"","sources":["../../src/utils/pol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C7B,EAAE,SAAS,MAAM,GAAG,CAAC,iBAAiB,GACpC,KAAK,CAAC,GAAG,CAAC,iBAAiB,CAAC,EAAE,CAAC,EAAE,QAAQ,GAAG;QAAC,EAAE,EAAE,EAAE,CAAA;KAAC,CAAC,GACrD,KAAK,GACZ,KAAK,CAAC,YAAY,GAAG,IAAI,CAAA;CAC7B;AAED,YAAY,EAAC,mBAAmB,EAAE,QAAQ,EAAE,gBAAgB,EAAE,KAAK,EAAC,CAAA"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export interface SlotMarker {
|
|
2
|
+
/** Marker to denote the custom child slot for a component */
|
|
3
|
+
__SLOT__?: symbol;
|
|
4
|
+
}
|
|
5
|
+
export type WithSlotMarker<T> = T & SlotMarker;
|
|
6
|
+
export type FCWithSlotMarker<P> = WithSlotMarker<React.FC<P>>;
|
|
7
|
+
//# sourceMappingURL=Slots.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Slots.d.ts","sourceRoot":"","sources":["../../../src/utils/types/Slots.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,UAAU;IACzB,6DAA6D;IAC7D,QAAQ,CAAC,EAAE,MAAM,CAAA;CAClB;AAED,MAAM,MAAM,cAAc,CAAC,CAAC,IAAI,CAAC,GAAG,UAAU,CAAA;AAE9C,MAAM,MAAM,gBAAgB,CAAC,CAAC,IAAI,cAAc,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/utils/types/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAA;AAC1B,cAAc,kBAAkB,CAAA;AAChC,cAAc,WAAW,CAAA;AACzB,cAAc,SAAS,CAAA;AACvB,cAAc,gBAAgB,CAAA"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/utils/types/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAA;AAC1B,cAAc,kBAAkB,CAAA;AAChC,cAAc,WAAW,CAAA;AACzB,cAAc,SAAS,CAAA;AACvB,cAAc,gBAAgB,CAAA;AAC9B,cAAc,SAAS,CAAA"}
|