@react-spectrum/button 3.0.0-nightly.1349 → 3.0.0-nightly.1356

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/dist/module.js CHANGED
@@ -1,413 +1,440 @@
1
- import { useToggleState } from "@react-stately/toggle";
2
- import _spectrumIconsUiCrossSmall from "@spectrum-icons/ui/CrossSmall";
3
- import { useProviderProps } from "@react-spectrum/provider";
4
- import { useHover } from "@react-aria/interactions";
5
- import { useButton, useToggleButton } from "@react-aria/button";
6
- import { Text } from "@react-spectrum/text";
7
- import _react from "react";
8
- import { mergeProps } from "@react-aria/utils";
9
- import { FocusRing } from "@react-aria/focus";
10
- import { classNames, SlotProvider, useFocusableRef, useSlotProps, useStyleProps } from "@react-spectrum/utils";
11
- import _babelRuntimeHelpersEsmObjectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
12
- import _babelRuntimeHelpersEsmExtends from "@babel/runtime/helpers/esm/extends";
13
1
  import "./main.css";
2
+ import {useSlotProps as $iyca2$useSlotProps, useFocusableRef as $iyca2$useFocusableRef, useStyleProps as $iyca2$useStyleProps, classNames as $iyca2$classNames, SlotProvider as $iyca2$SlotProvider} from "@react-spectrum/utils";
3
+ import {FocusRing as $iyca2$FocusRing} from "@react-aria/focus";
4
+ import {mergeProps as $iyca2$mergeProps} from "@react-aria/utils";
5
+ import $iyca2$react from "react";
6
+ import {Text as $iyca2$Text} from "@react-spectrum/text";
7
+ import {useButton as $iyca2$useButton, useToggleButton as $iyca2$useToggleButton} from "@react-aria/button";
8
+ import {useHover as $iyca2$useHover} from "@react-aria/interactions";
9
+ import {useProviderProps as $iyca2$useProviderProps} from "@react-spectrum/provider";
10
+ import $iyca2$spectrumiconsuiCrossSmall from "@spectrum-icons/ui/CrossSmall";
11
+ import {useToggleState as $iyca2$useToggleState} from "@react-stately/toggle";
14
12
 
15
13
  function $parcel$interopDefault(a) {
16
14
  return a && a.__esModule ? a.default : a;
17
15
  }
16
+ function $parcel$export(e, n, v, s) {
17
+ Object.defineProperty(e, n, {get: v, set: s, enumerable: true, configurable: true});
18
+ }
19
+ var $c2d9c8c68910a999$exports = {};
20
+
21
+ $parcel$export($c2d9c8c68910a999$exports, "Button", () => $c2d9c8c68910a999$export$353f5b6fc5456de1);
22
+
23
+
24
+
25
+
26
+ var $91cc66a793b0c871$exports = {};
27
+
28
+ $parcel$export($91cc66a793b0c871$exports, "spectrum-Button", () => $91cc66a793b0c871$export$1db4cca5b4ade39a, (v) => $91cc66a793b0c871$export$1db4cca5b4ade39a = v);
29
+ $parcel$export($91cc66a793b0c871$exports, "spectrum-ActionButton", () => $91cc66a793b0c871$export$53da69f51b770d3, (v) => $91cc66a793b0c871$export$53da69f51b770d3 = v);
30
+ $parcel$export($91cc66a793b0c871$exports, "spectrum-LogicButton", () => $91cc66a793b0c871$export$36ae67a131730482, (v) => $91cc66a793b0c871$export$36ae67a131730482 = v);
31
+ $parcel$export($91cc66a793b0c871$exports, "spectrum-FieldButton", () => $91cc66a793b0c871$export$a024c99ecf6b5741, (v) => $91cc66a793b0c871$export$a024c99ecf6b5741 = v);
32
+ $parcel$export($91cc66a793b0c871$exports, "spectrum-ClearButton", () => $91cc66a793b0c871$export$b752ce409e5660c, (v) => $91cc66a793b0c871$export$b752ce409e5660c = v);
33
+ $parcel$export($91cc66a793b0c871$exports, "focus-ring", () => $91cc66a793b0c871$export$f39a09f249340e2a, (v) => $91cc66a793b0c871$export$f39a09f249340e2a = v);
34
+ $parcel$export($91cc66a793b0c871$exports, "spectrum-Icon", () => $91cc66a793b0c871$export$d374b04f30360026, (v) => $91cc66a793b0c871$export$d374b04f30360026 = v);
35
+ $parcel$export($91cc66a793b0c871$exports, "spectrum-ActionButton--emphasized", () => $91cc66a793b0c871$export$5aabb61a966e266f, (v) => $91cc66a793b0c871$export$5aabb61a966e266f = v);
36
+ $parcel$export($91cc66a793b0c871$exports, "spectrum-ActionButton--staticColor", () => $91cc66a793b0c871$export$29b7b5d6a5a497c5, (v) => $91cc66a793b0c871$export$29b7b5d6a5a497c5 = v);
37
+ $parcel$export($91cc66a793b0c871$exports, "is-hovered", () => $91cc66a793b0c871$export$b8813cd5d7824ce7, (v) => $91cc66a793b0c871$export$b8813cd5d7824ce7 = v);
38
+ $parcel$export($91cc66a793b0c871$exports, "spectrum-Button-label", () => $91cc66a793b0c871$export$c081ba562e204942, (v) => $91cc66a793b0c871$export$c081ba562e204942 = v);
39
+ $parcel$export($91cc66a793b0c871$exports, "spectrum-ActionButton-label", () => $91cc66a793b0c871$export$ebb4635c66bacdb9, (v) => $91cc66a793b0c871$export$ebb4635c66bacdb9 = v);
40
+ $parcel$export($91cc66a793b0c871$exports, "spectrum-ActionButton-hold", () => $91cc66a793b0c871$export$4a4f01c443eff992, (v) => $91cc66a793b0c871$export$4a4f01c443eff992 = v);
41
+ $parcel$export($91cc66a793b0c871$exports, "spectrum-ActionButton--quiet", () => $91cc66a793b0c871$export$40e1f009544bacf3, (v) => $91cc66a793b0c871$export$40e1f009544bacf3 = v);
42
+ $parcel$export($91cc66a793b0c871$exports, "is-disabled", () => $91cc66a793b0c871$export$d35bc1e505d1ebbf, (v) => $91cc66a793b0c871$export$d35bc1e505d1ebbf = v);
43
+ $parcel$export($91cc66a793b0c871$exports, "is-open", () => $91cc66a793b0c871$export$a9781837241c946d, (v) => $91cc66a793b0c871$export$a9781837241c946d = v);
44
+ $parcel$export($91cc66a793b0c871$exports, "spectrum-FieldButton--quiet", () => $91cc66a793b0c871$export$5ca7b274e4fff9fc, (v) => $91cc66a793b0c871$export$5ca7b274e4fff9fc = v);
45
+ $parcel$export($91cc66a793b0c871$exports, "spectrum-ClearButton--overBackground", () => $91cc66a793b0c871$export$116f2fccf941d34d, (v) => $91cc66a793b0c871$export$116f2fccf941d34d = v);
46
+ $parcel$export($91cc66a793b0c871$exports, "spectrum-ClearButton--small", () => $91cc66a793b0c871$export$49280ffa5236ba8b, (v) => $91cc66a793b0c871$export$49280ffa5236ba8b = v);
47
+ $parcel$export($91cc66a793b0c871$exports, "is-focused", () => $91cc66a793b0c871$export$e7dc768d35940237, (v) => $91cc66a793b0c871$export$e7dc768d35940237 = v);
48
+ $parcel$export($91cc66a793b0c871$exports, "is-active", () => $91cc66a793b0c871$export$20fd0f7cd4e6112f, (v) => $91cc66a793b0c871$export$20fd0f7cd4e6112f = v);
49
+ $parcel$export($91cc66a793b0c871$exports, "spectrum-Button--cta", () => $91cc66a793b0c871$export$b818fdf0052a2cab, (v) => $91cc66a793b0c871$export$b818fdf0052a2cab = v);
50
+ $parcel$export($91cc66a793b0c871$exports, "spectrum-Button--primary", () => $91cc66a793b0c871$export$c1c3511f5e96e926, (v) => $91cc66a793b0c871$export$c1c3511f5e96e926 = v);
51
+ $parcel$export($91cc66a793b0c871$exports, "spectrum-Button--secondary", () => $91cc66a793b0c871$export$4f1b75526afd8ff3, (v) => $91cc66a793b0c871$export$4f1b75526afd8ff3 = v);
52
+ $parcel$export($91cc66a793b0c871$exports, "spectrum-Button--warning", () => $91cc66a793b0c871$export$6f97cef817ff1cac, (v) => $91cc66a793b0c871$export$6f97cef817ff1cac = v);
53
+ $parcel$export($91cc66a793b0c871$exports, "spectrum-Button--overBackground", () => $91cc66a793b0c871$export$5cda1128f9112d2e, (v) => $91cc66a793b0c871$export$5cda1128f9112d2e = v);
54
+ $parcel$export($91cc66a793b0c871$exports, "spectrum-Button--quiet", () => $91cc66a793b0c871$export$25f049c049371040, (v) => $91cc66a793b0c871$export$25f049c049371040 = v);
55
+ $parcel$export($91cc66a793b0c871$exports, "is-selected", () => $91cc66a793b0c871$export$1e0fb04f31d3c22a, (v) => $91cc66a793b0c871$export$1e0fb04f31d3c22a = v);
56
+ $parcel$export($91cc66a793b0c871$exports, "spectrum-ActionButton--staticWhite", () => $91cc66a793b0c871$export$ccc536e1adbdc059, (v) => $91cc66a793b0c871$export$ccc536e1adbdc059 = v);
57
+ $parcel$export($91cc66a793b0c871$exports, "spectrum-ActionButton--staticBlack", () => $91cc66a793b0c871$export$8f7c9db66978d20f, (v) => $91cc66a793b0c871$export$8f7c9db66978d20f = v);
58
+ $parcel$export($91cc66a793b0c871$exports, "spectrum-LogicButton--and", () => $91cc66a793b0c871$export$e52daab43a62c528, (v) => $91cc66a793b0c871$export$e52daab43a62c528 = v);
59
+ $parcel$export($91cc66a793b0c871$exports, "spectrum-LogicButton--or", () => $91cc66a793b0c871$export$da76be6126aaa633, (v) => $91cc66a793b0c871$export$da76be6126aaa633 = v);
60
+ $parcel$export($91cc66a793b0c871$exports, "is-placeholder", () => $91cc66a793b0c871$export$e5b2f5233e4e5194, (v) => $91cc66a793b0c871$export$e5b2f5233e4e5194 = v);
61
+ $parcel$export($91cc66a793b0c871$exports, "spectrum-FieldButton--invalid", () => $91cc66a793b0c871$export$c9f503f672e8a3c1, (v) => $91cc66a793b0c871$export$c9f503f672e8a3c1 = v);
62
+ var $91cc66a793b0c871$export$1db4cca5b4ade39a;
63
+ var $91cc66a793b0c871$export$53da69f51b770d3;
64
+ var $91cc66a793b0c871$export$36ae67a131730482;
65
+ var $91cc66a793b0c871$export$a024c99ecf6b5741;
66
+ var $91cc66a793b0c871$export$b752ce409e5660c;
67
+ var $91cc66a793b0c871$export$f39a09f249340e2a;
68
+ var $91cc66a793b0c871$export$d374b04f30360026;
69
+ var $91cc66a793b0c871$export$5aabb61a966e266f;
70
+ var $91cc66a793b0c871$export$29b7b5d6a5a497c5;
71
+ var $91cc66a793b0c871$export$b8813cd5d7824ce7;
72
+ var $91cc66a793b0c871$export$c081ba562e204942;
73
+ var $91cc66a793b0c871$export$ebb4635c66bacdb9;
74
+ var $91cc66a793b0c871$export$4a4f01c443eff992;
75
+ var $91cc66a793b0c871$export$40e1f009544bacf3;
76
+ var $91cc66a793b0c871$export$d35bc1e505d1ebbf;
77
+ var $91cc66a793b0c871$export$a9781837241c946d;
78
+ var $91cc66a793b0c871$export$5ca7b274e4fff9fc;
79
+ var $91cc66a793b0c871$export$116f2fccf941d34d;
80
+ var $91cc66a793b0c871$export$49280ffa5236ba8b;
81
+ var $91cc66a793b0c871$export$e7dc768d35940237;
82
+ var $91cc66a793b0c871$export$20fd0f7cd4e6112f;
83
+ var $91cc66a793b0c871$export$b818fdf0052a2cab;
84
+ var $91cc66a793b0c871$export$c1c3511f5e96e926;
85
+ var $91cc66a793b0c871$export$4f1b75526afd8ff3;
86
+ var $91cc66a793b0c871$export$6f97cef817ff1cac;
87
+ var $91cc66a793b0c871$export$5cda1128f9112d2e;
88
+ var $91cc66a793b0c871$export$25f049c049371040;
89
+ var $91cc66a793b0c871$export$1e0fb04f31d3c22a;
90
+ var $91cc66a793b0c871$export$ccc536e1adbdc059;
91
+ var $91cc66a793b0c871$export$8f7c9db66978d20f;
92
+ var $91cc66a793b0c871$export$e52daab43a62c528;
93
+ var $91cc66a793b0c871$export$da76be6126aaa633;
94
+ var $91cc66a793b0c871$export$e5b2f5233e4e5194;
95
+ var $91cc66a793b0c871$export$c9f503f672e8a3c1;
96
+ $91cc66a793b0c871$export$1db4cca5b4ade39a = "_spectrum-Button_e2d99e";
97
+ $91cc66a793b0c871$export$53da69f51b770d3 = "_spectrum-ActionButton_e2d99e";
98
+ $91cc66a793b0c871$export$36ae67a131730482 = "_spectrum-LogicButton_e2d99e";
99
+ $91cc66a793b0c871$export$a024c99ecf6b5741 = "_spectrum-FieldButton_e2d99e";
100
+ $91cc66a793b0c871$export$b752ce409e5660c = "_spectrum-ClearButton_e2d99e";
101
+ $91cc66a793b0c871$export$f39a09f249340e2a = "_focus-ring_e2d99e";
102
+ $91cc66a793b0c871$export$d374b04f30360026 = "_spectrum-Icon_e2d99e";
103
+ $91cc66a793b0c871$export$5aabb61a966e266f = "_spectrum-ActionButton--emphasized_e2d99e";
104
+ $91cc66a793b0c871$export$29b7b5d6a5a497c5 = "_spectrum-ActionButton--staticColor_e2d99e";
105
+ $91cc66a793b0c871$export$b8813cd5d7824ce7 = "_is-hovered_e2d99e";
106
+ $91cc66a793b0c871$export$c081ba562e204942 = "_spectrum-Button-label_e2d99e";
107
+ $91cc66a793b0c871$export$ebb4635c66bacdb9 = "_spectrum-ActionButton-label_e2d99e";
108
+ $91cc66a793b0c871$export$4a4f01c443eff992 = "_spectrum-ActionButton-hold_e2d99e";
109
+ $91cc66a793b0c871$export$40e1f009544bacf3 = "_spectrum-ActionButton--quiet_e2d99e";
110
+ $91cc66a793b0c871$export$d35bc1e505d1ebbf = "_is-disabled_e2d99e";
111
+ $91cc66a793b0c871$export$a9781837241c946d = "_is-open_e2d99e";
112
+ $91cc66a793b0c871$export$5ca7b274e4fff9fc = "_spectrum-FieldButton--quiet_e2d99e";
113
+ $91cc66a793b0c871$export$116f2fccf941d34d = "_spectrum-ClearButton--overBackground_e2d99e";
114
+ $91cc66a793b0c871$export$49280ffa5236ba8b = "_spectrum-ClearButton--small_e2d99e";
115
+ $91cc66a793b0c871$export$e7dc768d35940237 = "_is-focused_e2d99e";
116
+ $91cc66a793b0c871$export$20fd0f7cd4e6112f = "_is-active_e2d99e";
117
+ $91cc66a793b0c871$export$b818fdf0052a2cab = "_spectrum-Button--cta_e2d99e";
118
+ $91cc66a793b0c871$export$c1c3511f5e96e926 = "_spectrum-Button--primary_e2d99e";
119
+ $91cc66a793b0c871$export$4f1b75526afd8ff3 = "_spectrum-Button--secondary_e2d99e";
120
+ $91cc66a793b0c871$export$6f97cef817ff1cac = "_spectrum-Button--warning_e2d99e";
121
+ $91cc66a793b0c871$export$5cda1128f9112d2e = "_spectrum-Button--overBackground_e2d99e";
122
+ $91cc66a793b0c871$export$25f049c049371040 = "_spectrum-Button--quiet_e2d99e";
123
+ $91cc66a793b0c871$export$1e0fb04f31d3c22a = "_is-selected_e2d99e";
124
+ $91cc66a793b0c871$export$ccc536e1adbdc059 = "_spectrum-ActionButton--staticWhite_e2d99e";
125
+ $91cc66a793b0c871$export$8f7c9db66978d20f = "_spectrum-ActionButton--staticBlack_e2d99e";
126
+ $91cc66a793b0c871$export$e52daab43a62c528 = "_spectrum-LogicButton--and_e2d99e";
127
+ $91cc66a793b0c871$export$da76be6126aaa633 = "_spectrum-LogicButton--or_e2d99e";
128
+ $91cc66a793b0c871$export$e5b2f5233e4e5194 = "_is-placeholder_e2d99e";
129
+ $91cc66a793b0c871$export$c9f503f672e8a3c1 = "_spectrum-FieldButton--invalid_e2d99e";
130
+
131
+
132
+
133
+
134
+
18
135
 
19
- // ASSET: /home/circleci/react-spectrum/node_modules/@adobe/spectrum-css-temp/components/button/vars.css
20
- var $a0b8eb4b46824fd288195a4db8814b$exports = {};
21
- $a0b8eb4b46824fd288195a4db8814b$exports = {
22
- "spectrum-Button": "_spectrum-Button_ab836",
23
- "spectrum-ActionButton": "_spectrum-ActionButton_ab836",
24
- "spectrum-LogicButton": "_spectrum-LogicButton_ab836",
25
- "spectrum-FieldButton": "_spectrum-FieldButton_ab836",
26
- "spectrum-ClearButton": "_spectrum-ClearButton_ab836",
27
- "focus-ring": "_focus-ring_ab836",
28
- "spectrum-Icon": "_spectrum-Icon_ab836",
29
- "spectrum-ActionButton--emphasized": "_spectrum-ActionButton--emphasized_ab836",
30
- "spectrum-ActionButton--staticColor": "_spectrum-ActionButton--staticColor_ab836",
31
- "is-hovered": "_is-hovered_ab836",
32
- "spectrum-Button-label": "_spectrum-Button-label_ab836",
33
- "spectrum-ActionButton-label": "_spectrum-ActionButton-label_ab836",
34
- "spectrum-ActionButton-hold": "_spectrum-ActionButton-hold_ab836",
35
- "spectrum-ActionButton--quiet": "_spectrum-ActionButton--quiet_ab836",
36
- "is-disabled": "_is-disabled_ab836",
37
- "is-open": "_is-open_ab836",
38
- "spectrum-FieldButton--quiet": "_spectrum-FieldButton--quiet_ab836",
39
- "spectrum-ClearButton--overBackground": "_spectrum-ClearButton--overBackground_ab836",
40
- "spectrum-ClearButton--small": "_spectrum-ClearButton--small_ab836",
41
- "is-focused": "_is-focused_ab836",
42
- "is-active": "_is-active_ab836",
43
- "spectrum-Button--cta": "_spectrum-Button--cta_ab836",
44
- "spectrum-Button--primary": "_spectrum-Button--primary_ab836",
45
- "spectrum-Button--secondary": "_spectrum-Button--secondary_ab836",
46
- "spectrum-Button--warning": "_spectrum-Button--warning_ab836",
47
- "spectrum-Button--overBackground": "_spectrum-Button--overBackground_ab836",
48
- "spectrum-Button--quiet": "_spectrum-Button--quiet_ab836",
49
- "is-selected": "_is-selected_ab836",
50
- "spectrum-ActionButton--staticWhite": "_spectrum-ActionButton--staticWhite_ab836",
51
- "spectrum-ActionButton--staticBlack": "_spectrum-ActionButton--staticBlack_ab836",
52
- "spectrum-LogicButton--and": "_spectrum-LogicButton--and_ab836",
53
- "spectrum-LogicButton--or": "_spectrum-LogicButton--or_ab836",
54
- "is-placeholder": "_is-placeholder_ab836",
55
- "spectrum-FieldButton--invalid": "_spectrum-FieldButton--invalid_ab836"
56
- };
57
136
  // todo: CSS hasn't caught up yet, map
58
- let $e7cce67cb180bb656d80b00f5a768a9$var$VARIANT_MAPPING = {
59
- negative: 'warning'
137
+ let $c2d9c8c68910a999$var$VARIANT_MAPPING = {
138
+ negative: 'warning'
60
139
  };
61
- var $a0b8eb4b46824fd288195a4db8814b$$interop$default = $parcel$interopDefault($a0b8eb4b46824fd288195a4db8814b$exports);
62
-
63
- function $e7cce67cb180bb656d80b00f5a768a9$var$Button(props, ref) {
64
- props = useProviderProps(props);
65
- props = useSlotProps(props, 'button');
66
-
67
- let {
68
- elementType: ElementType = 'button',
69
- children,
70
- variant,
71
- isQuiet,
72
- isDisabled,
73
- autoFocus
74
- } = props,
75
- otherProps = _babelRuntimeHelpersEsmObjectWithoutPropertiesLoose(props, ["elementType", "children", "variant", "isQuiet", "isDisabled", "autoFocus"]);
76
-
77
- let domRef = useFocusableRef(ref);
78
- let {
79
- buttonProps,
80
- isPressed
81
- } = useButton(props, domRef);
82
- let {
83
- hoverProps,
84
- isHovered
85
- } = useHover({
86
- isDisabled
87
- });
88
- let {
89
- styleProps
90
- } = useStyleProps(otherProps);
91
- let buttonVariant = variant;
92
-
93
- if ($e7cce67cb180bb656d80b00f5a768a9$var$VARIANT_MAPPING[variant]) {
94
- buttonVariant = $e7cce67cb180bb656d80b00f5a768a9$var$VARIANT_MAPPING[variant];
95
- }
96
-
97
- return /*#__PURE__*/_react.createElement(FocusRing, {
98
- focusRingClass: classNames($a0b8eb4b46824fd288195a4db8814b$$interop$default, 'focus-ring'),
99
- autoFocus: autoFocus
100
- }, /*#__PURE__*/_react.createElement(ElementType, _babelRuntimeHelpersEsmExtends({}, styleProps, mergeProps(buttonProps, hoverProps), {
101
- ref: domRef,
102
- className: classNames($a0b8eb4b46824fd288195a4db8814b$$interop$default, 'spectrum-Button', "spectrum-Button--" + buttonVariant, {
103
- 'spectrum-Button--quiet': isQuiet,
104
- 'is-disabled': isDisabled,
105
- 'is-active': isPressed,
106
- 'is-hovered': isHovered
107
- }, styleProps.className)
108
- }), /*#__PURE__*/_react.createElement(SlotProvider, {
109
- slots: {
110
- icon: {
111
- size: 'S',
112
- UNSAFE_className: classNames($a0b8eb4b46824fd288195a4db8814b$$interop$default, 'spectrum-Icon')
113
- },
114
- text: {
115
- UNSAFE_className: classNames($a0b8eb4b46824fd288195a4db8814b$$interop$default, 'spectrum-Button-label')
116
- }
117
- }
118
- }, typeof children === 'string' ? /*#__PURE__*/_react.createElement(Text, null, children) : children)));
140
+ function $c2d9c8c68910a999$var$Button(props, ref) {
141
+ props = $iyca2$useProviderProps(props);
142
+ props = $iyca2$useSlotProps(props, 'button');
143
+ let { elementType: ElementType = 'button' , children: children , variant: variant , isQuiet: isQuiet , isDisabled: isDisabled , autoFocus: autoFocus , ...otherProps } = props;
144
+ let domRef = $iyca2$useFocusableRef(ref);
145
+ let { buttonProps: buttonProps , isPressed: isPressed } = $iyca2$useButton(props, domRef);
146
+ let { hoverProps: hoverProps , isHovered: isHovered } = $iyca2$useHover({
147
+ isDisabled: isDisabled
148
+ });
149
+ let { styleProps: styleProps } = $iyca2$useStyleProps(otherProps);
150
+ let buttonVariant = variant;
151
+ if ($c2d9c8c68910a999$var$VARIANT_MAPPING[variant]) buttonVariant = $c2d9c8c68910a999$var$VARIANT_MAPPING[variant];
152
+ return(/*#__PURE__*/ $iyca2$react.createElement($iyca2$FocusRing, {
153
+ focusRingClass: $iyca2$classNames((/*@__PURE__*/$parcel$interopDefault($91cc66a793b0c871$exports)), 'focus-ring'),
154
+ autoFocus: autoFocus
155
+ }, /*#__PURE__*/ $iyca2$react.createElement(ElementType, {
156
+ ...styleProps,
157
+ ...$iyca2$mergeProps(buttonProps, hoverProps),
158
+ ref: domRef,
159
+ className: $iyca2$classNames((/*@__PURE__*/$parcel$interopDefault($91cc66a793b0c871$exports)), 'spectrum-Button', `spectrum-Button--${buttonVariant}`, {
160
+ 'spectrum-Button--quiet': isQuiet,
161
+ 'is-disabled': isDisabled,
162
+ 'is-active': isPressed,
163
+ 'is-hovered': isHovered
164
+ }, styleProps.className)
165
+ }, /*#__PURE__*/ $iyca2$react.createElement($iyca2$SlotProvider, {
166
+ slots: {
167
+ icon: {
168
+ size: 'S',
169
+ UNSAFE_className: $iyca2$classNames((/*@__PURE__*/$parcel$interopDefault($91cc66a793b0c871$exports)), 'spectrum-Icon')
170
+ },
171
+ text: {
172
+ UNSAFE_className: $iyca2$classNames((/*@__PURE__*/$parcel$interopDefault($91cc66a793b0c871$exports)), 'spectrum-Button-label')
173
+ }
174
+ }
175
+ }, typeof children === 'string' ? /*#__PURE__*/ $iyca2$react.createElement($iyca2$Text, null, children) : children))));
119
176
  }
120
177
  /**
121
178
  * Buttons allow users to perform an action or to navigate to another page.
122
179
  * They have multiple styles for various needs, and are ideal for calling attention to
123
180
  * where a user needs to do something in order to move forward in a flow.
124
- */
125
-
126
-
127
- export let Button = /*#__PURE__*/_react.forwardRef($e7cce67cb180bb656d80b00f5a768a9$var$Button);
128
-
129
- function $bc80af2826ac4208742b91a4749726d$var$ActionButton(props, ref) {
130
- props = useProviderProps(props);
131
- props = useSlotProps(props, 'actionButton');
132
-
133
- let {
134
- isQuiet,
135
- isDisabled,
136
- staticColor,
137
- children,
138
- autoFocus
139
- } = props,
140
- otherProps = _babelRuntimeHelpersEsmObjectWithoutPropertiesLoose(props, ["isQuiet", "isDisabled", "staticColor", "children", "autoFocus"]);
141
-
142
- let domRef = useFocusableRef(ref);
143
- let {
144
- buttonProps,
145
- isPressed
146
- } = useButton(props, domRef);
147
- let {
148
- hoverProps,
149
- isHovered
150
- } = useHover({
151
- isDisabled
152
- });
153
- let {
154
- styleProps
155
- } = useStyleProps(otherProps);
156
-
157
- let isTextOnly = _react.Children.toArray(props.children).every(c => ! /*#__PURE__*/_react.isValidElement(c));
158
-
159
- return /*#__PURE__*/_react.createElement(FocusRing, {
160
- focusRingClass: classNames($a0b8eb4b46824fd288195a4db8814b$$interop$default, 'focus-ring'),
161
- autoFocus: autoFocus
162
- }, /*#__PURE__*/_react.createElement("button", _babelRuntimeHelpersEsmExtends({}, styleProps, mergeProps(buttonProps, hoverProps), {
163
- ref: domRef,
164
- className: classNames($a0b8eb4b46824fd288195a4db8814b$$interop$default, 'spectrum-ActionButton', {
165
- 'spectrum-ActionButton--quiet': isQuiet,
166
- 'spectrum-ActionButton--staticColor': !!staticColor,
167
- 'spectrum-ActionButton--staticWhite': staticColor === 'white',
168
- 'spectrum-ActionButton--staticBlack': staticColor === 'black',
169
- 'is-active': isPressed,
170
- 'is-disabled': isDisabled,
171
- 'is-hovered': isHovered
172
- }, styleProps.className)
173
- }), /*#__PURE__*/_react.createElement(SlotProvider, {
174
- slots: {
175
- icon: {
176
- size: 'S',
177
- UNSAFE_className: classNames($a0b8eb4b46824fd288195a4db8814b$$interop$default, 'spectrum-Icon')
178
- },
179
- text: {
180
- UNSAFE_className: classNames($a0b8eb4b46824fd288195a4db8814b$$interop$default, 'spectrum-ActionButton-label')
181
- }
182
- }
183
- }, typeof children === 'string' || isTextOnly ? /*#__PURE__*/_react.createElement(Text, null, children) : children)));
181
+ */ let $c2d9c8c68910a999$export$353f5b6fc5456de1 = /*#__PURE__*/ $iyca2$react.forwardRef($c2d9c8c68910a999$var$Button);
182
+
183
+
184
+ var $2f0bd5451e99b3de$exports = {};
185
+
186
+ $parcel$export($2f0bd5451e99b3de$exports, "ActionButton", () => $2f0bd5451e99b3de$export$cfc7921d29ef7b80);
187
+
188
+
189
+
190
+
191
+
192
+
193
+
194
+
195
+
196
+ function $2f0bd5451e99b3de$var$ActionButton(props, ref) {
197
+ props = $iyca2$useProviderProps(props);
198
+ props = $iyca2$useSlotProps(props, 'actionButton');
199
+ let { isQuiet: isQuiet , isDisabled: isDisabled , staticColor: staticColor , children: children , autoFocus: autoFocus , ...otherProps } = props;
200
+ let domRef = $iyca2$useFocusableRef(ref);
201
+ let { buttonProps: buttonProps , isPressed: isPressed } = $iyca2$useButton(props, domRef);
202
+ let { hoverProps: hoverProps , isHovered: isHovered } = $iyca2$useHover({
203
+ isDisabled: isDisabled
204
+ });
205
+ let { styleProps: styleProps } = $iyca2$useStyleProps(otherProps);
206
+ let isTextOnly = $iyca2$react.Children.toArray(props.children).every((c)=>!/*#__PURE__*/ $iyca2$react.isValidElement(c)
207
+ );
208
+ return(/*#__PURE__*/ $iyca2$react.createElement($iyca2$FocusRing, {
209
+ focusRingClass: $iyca2$classNames((/*@__PURE__*/$parcel$interopDefault($91cc66a793b0c871$exports)), 'focus-ring'),
210
+ autoFocus: autoFocus
211
+ }, /*#__PURE__*/ $iyca2$react.createElement("button", {
212
+ ...styleProps,
213
+ ...$iyca2$mergeProps(buttonProps, hoverProps),
214
+ ref: domRef,
215
+ className: $iyca2$classNames((/*@__PURE__*/$parcel$interopDefault($91cc66a793b0c871$exports)), 'spectrum-ActionButton', {
216
+ 'spectrum-ActionButton--quiet': isQuiet,
217
+ 'spectrum-ActionButton--staticColor': !!staticColor,
218
+ 'spectrum-ActionButton--staticWhite': staticColor === 'white',
219
+ 'spectrum-ActionButton--staticBlack': staticColor === 'black',
220
+ 'is-active': isPressed,
221
+ 'is-disabled': isDisabled,
222
+ 'is-hovered': isHovered
223
+ }, styleProps.className)
224
+ }, /*#__PURE__*/ $iyca2$react.createElement($iyca2$SlotProvider, {
225
+ slots: {
226
+ icon: {
227
+ size: 'S',
228
+ UNSAFE_className: $iyca2$classNames((/*@__PURE__*/$parcel$interopDefault($91cc66a793b0c871$exports)), 'spectrum-Icon')
229
+ },
230
+ text: {
231
+ UNSAFE_className: $iyca2$classNames((/*@__PURE__*/$parcel$interopDefault($91cc66a793b0c871$exports)), 'spectrum-ActionButton-label')
232
+ }
233
+ }
234
+ }, typeof children === 'string' || isTextOnly ? /*#__PURE__*/ $iyca2$react.createElement($iyca2$Text, null, children) : children))));
184
235
  }
185
236
  /**
186
237
  * ActionButtons allow users to perform an action.
187
238
  * They’re used for similar, task-based options within a workflow, and are ideal for interfaces where buttons aren’t meant to draw a lot of attention.
188
- */
239
+ */ let $2f0bd5451e99b3de$export$cfc7921d29ef7b80 = /*#__PURE__*/ $iyca2$react.forwardRef($2f0bd5451e99b3de$var$ActionButton);
240
+
241
+
242
+ var $d3fd0e07ecd17dc7$exports = {};
243
+
244
+ $parcel$export($d3fd0e07ecd17dc7$exports, "FieldButton", () => $d3fd0e07ecd17dc7$export$47dc48f595b075da);
245
+
246
+
247
+
248
+
189
249
 
190
250
 
191
- export let ActionButton = /*#__PURE__*/_react.forwardRef($bc80af2826ac4208742b91a4749726d$var$ActionButton);
192
251
 
193
252
  // @private
194
- function $c625b8542216f3af615209ec995fde6$var$FieldButton(props, ref) {
195
- props = useSlotProps(props, 'button');
196
-
197
- let {
198
- isQuiet,
199
- isDisabled,
200
- validationState,
201
- children,
202
- autoFocus,
203
- isActive,
204
- focusRingClass
205
- } = props,
206
- otherProps = _babelRuntimeHelpersEsmObjectWithoutPropertiesLoose(props, ["isQuiet", "isDisabled", "validationState", "children", "autoFocus", "isActive", "focusRingClass"]);
207
-
208
- let domRef = useFocusableRef(ref);
209
- let {
210
- buttonProps,
211
- isPressed
212
- } = useButton(props, domRef);
213
- let {
214
- hoverProps,
215
- isHovered
216
- } = useHover({
217
- isDisabled
218
- });
219
- let {
220
- styleProps
221
- } = useStyleProps(otherProps);
222
- return /*#__PURE__*/_react.createElement(FocusRing, {
223
- focusRingClass: classNames($a0b8eb4b46824fd288195a4db8814b$$interop$default, 'focus-ring', focusRingClass),
224
- autoFocus: autoFocus
225
- }, /*#__PURE__*/_react.createElement("button", _babelRuntimeHelpersEsmExtends({}, mergeProps(buttonProps, hoverProps), {
226
- ref: domRef,
227
- className: classNames($a0b8eb4b46824fd288195a4db8814b$$interop$default, 'spectrum-FieldButton', {
228
- 'spectrum-FieldButton--quiet': isQuiet,
229
- 'is-active': isActive || isPressed,
230
- 'is-disabled': isDisabled,
231
- 'spectrum-FieldButton--invalid': validationState === 'invalid',
232
- 'is-hovered': isHovered
233
- }, styleProps.className)
234
- }), /*#__PURE__*/_react.createElement(SlotProvider, {
235
- slots: {
236
- icon: {
237
- size: 'S',
238
- UNSAFE_className: classNames($a0b8eb4b46824fd288195a4db8814b$$interop$default, 'spectrum-Icon')
239
- }
240
- }
241
- }, children)));
253
+ function $d3fd0e07ecd17dc7$var$FieldButton(props, ref) {
254
+ props = $iyca2$useSlotProps(props, 'button');
255
+ let { isQuiet: isQuiet , isDisabled: isDisabled , validationState: validationState , children: children , autoFocus: autoFocus , isActive: isActive , focusRingClass: focusRingClass , ...otherProps } = props;
256
+ let domRef = $iyca2$useFocusableRef(ref);
257
+ let { buttonProps: buttonProps , isPressed: isPressed } = $iyca2$useButton(props, domRef);
258
+ let { hoverProps: hoverProps , isHovered: isHovered } = $iyca2$useHover({
259
+ isDisabled: isDisabled
260
+ });
261
+ let { styleProps: styleProps } = $iyca2$useStyleProps(otherProps);
262
+ return(/*#__PURE__*/ $iyca2$react.createElement($iyca2$FocusRing, {
263
+ focusRingClass: $iyca2$classNames((/*@__PURE__*/$parcel$interopDefault($91cc66a793b0c871$exports)), 'focus-ring', focusRingClass),
264
+ autoFocus: autoFocus
265
+ }, /*#__PURE__*/ $iyca2$react.createElement("button", {
266
+ ...$iyca2$mergeProps(buttonProps, hoverProps),
267
+ ref: domRef,
268
+ className: $iyca2$classNames((/*@__PURE__*/$parcel$interopDefault($91cc66a793b0c871$exports)), 'spectrum-FieldButton', {
269
+ 'spectrum-FieldButton--quiet': isQuiet,
270
+ 'is-active': isActive || isPressed,
271
+ 'is-disabled': isDisabled,
272
+ 'spectrum-FieldButton--invalid': validationState === 'invalid',
273
+ 'is-hovered': isHovered
274
+ }, styleProps.className)
275
+ }, /*#__PURE__*/ $iyca2$react.createElement($iyca2$SlotProvider, {
276
+ slots: {
277
+ icon: {
278
+ size: 'S',
279
+ UNSAFE_className: $iyca2$classNames((/*@__PURE__*/$parcel$interopDefault($91cc66a793b0c871$exports)), 'spectrum-Icon')
280
+ }
281
+ }
282
+ }, children))));
242
283
  }
284
+ let $d3fd0e07ecd17dc7$export$47dc48f595b075da = /*#__PURE__*/ $iyca2$react.forwardRef($d3fd0e07ecd17dc7$var$FieldButton);
285
+
286
+
287
+ var $2e84a9b0bb97d71d$exports = {};
288
+
289
+ $parcel$export($2e84a9b0bb97d71d$exports, "LogicButton", () => $2e84a9b0bb97d71d$export$9b0b80fed00ba8b1);
290
+
291
+
243
292
 
244
- export let FieldButton = /*#__PURE__*/_react.forwardRef($c625b8542216f3af615209ec995fde6$var$FieldButton);
245
-
246
- function $f75e54f949cd322517f94110447328bc$var$LogicButton(props, ref) {
247
- props = useProviderProps(props);
248
-
249
- let {
250
- variant,
251
- children,
252
- isDisabled,
253
- autoFocus
254
- } = props,
255
- otherProps = _babelRuntimeHelpersEsmObjectWithoutPropertiesLoose(props, ["variant", "children", "isDisabled", "autoFocus"]);
256
-
257
- let domRef = useFocusableRef(ref);
258
- let {
259
- buttonProps,
260
- isPressed
261
- } = useButton(props, domRef);
262
- let {
263
- hoverProps,
264
- isHovered
265
- } = useHover({
266
- isDisabled
267
- });
268
- let {
269
- styleProps
270
- } = useStyleProps(otherProps);
271
- return /*#__PURE__*/_react.createElement(FocusRing, {
272
- focusRingClass: classNames($a0b8eb4b46824fd288195a4db8814b$$interop$default, 'focus-ring'),
273
- autoFocus: autoFocus
274
- }, /*#__PURE__*/_react.createElement("button", _babelRuntimeHelpersEsmExtends({}, styleProps, mergeProps(buttonProps, hoverProps), {
275
- ref: domRef,
276
- className: classNames($a0b8eb4b46824fd288195a4db8814b$$interop$default, 'spectrum-LogicButton', {
277
- ["spectrum-LogicButton--" + variant]: variant,
278
- 'is-disabled': isDisabled,
279
- 'is-active': isPressed,
280
- 'is-hovered': isHovered
281
- }, styleProps.className)
282
- }), /*#__PURE__*/_react.createElement("span", {
283
- className: classNames($a0b8eb4b46824fd288195a4db8814b$$interop$default, 'spectrum-Button-label')
284
- }, children)));
293
+
294
+
295
+
296
+
297
+
298
+ function $2e84a9b0bb97d71d$var$LogicButton(props, ref) {
299
+ props = $iyca2$useProviderProps(props);
300
+ let { variant: variant , children: children , isDisabled: isDisabled , autoFocus: autoFocus , ...otherProps } = props;
301
+ let domRef = $iyca2$useFocusableRef(ref);
302
+ let { buttonProps: buttonProps , isPressed: isPressed } = $iyca2$useButton(props, domRef);
303
+ let { hoverProps: hoverProps , isHovered: isHovered } = $iyca2$useHover({
304
+ isDisabled: isDisabled
305
+ });
306
+ let { styleProps: styleProps } = $iyca2$useStyleProps(otherProps);
307
+ return(/*#__PURE__*/ $iyca2$react.createElement($iyca2$FocusRing, {
308
+ focusRingClass: $iyca2$classNames((/*@__PURE__*/$parcel$interopDefault($91cc66a793b0c871$exports)), 'focus-ring'),
309
+ autoFocus: autoFocus
310
+ }, /*#__PURE__*/ $iyca2$react.createElement("button", {
311
+ ...styleProps,
312
+ ...$iyca2$mergeProps(buttonProps, hoverProps),
313
+ ref: domRef,
314
+ className: $iyca2$classNames((/*@__PURE__*/$parcel$interopDefault($91cc66a793b0c871$exports)), 'spectrum-LogicButton', {
315
+ [`spectrum-LogicButton--${variant}`]: variant,
316
+ 'is-disabled': isDisabled,
317
+ 'is-active': isPressed,
318
+ 'is-hovered': isHovered
319
+ }, styleProps.className)
320
+ }, /*#__PURE__*/ $iyca2$react.createElement("span", {
321
+ className: $iyca2$classNames((/*@__PURE__*/$parcel$interopDefault($91cc66a793b0c871$exports)), 'spectrum-Button-label')
322
+ }, children))));
285
323
  }
286
324
  /**
287
325
  * A LogicButton displays an operator within a boolean logic sequence.
288
- */
289
-
290
-
291
- export let LogicButton = /*#__PURE__*/_react.forwardRef($f75e54f949cd322517f94110447328bc$var$LogicButton);
292
-
293
- function $d84be0be8cc370fcf4ad9b30ea651284$var$ClearButton(props, ref) {
294
- let {
295
- children = /*#__PURE__*/_react.createElement(_spectrumIconsUiCrossSmall, {
296
- UNSAFE_className: $a0b8eb4b46824fd288195a4db8814b$$interop$default['spectrum-Icon']
297
- }),
298
- focusClassName,
299
- variant,
300
- autoFocus,
301
- isDisabled,
302
- preventFocus,
303
- elementType = preventFocus ? 'div' : 'button'
304
- } = props,
305
- otherProps = _babelRuntimeHelpersEsmObjectWithoutPropertiesLoose(props, ["children", "focusClassName", "variant", "autoFocus", "isDisabled", "preventFocus", "elementType"]);
306
-
307
- let domRef = useFocusableRef(ref);
308
- let {
309
- buttonProps,
310
- isPressed
311
- } = useButton(_babelRuntimeHelpersEsmExtends({}, props, {
312
- elementType
313
- }), domRef);
314
- let {
315
- hoverProps,
316
- isHovered
317
- } = useHover({
318
- isDisabled
319
- });
320
- let {
321
- styleProps
322
- } = useStyleProps(otherProps); // For cases like the clear button in a search field, remove the tabIndex so
323
- // iOS 14 with VoiceOver doesn't focus the button and hide the keyboard when
324
- // moving the cursor over the clear button.
325
-
326
- if (preventFocus) {
327
- delete buttonProps.tabIndex;
328
- }
329
-
330
- let ElementType = elementType;
331
- return /*#__PURE__*/_react.createElement(FocusRing, {
332
- focusRingClass: classNames($a0b8eb4b46824fd288195a4db8814b$$interop$default, 'focus-ring', focusClassName),
333
- autoFocus: autoFocus
334
- }, /*#__PURE__*/_react.createElement(ElementType, _babelRuntimeHelpersEsmExtends({}, styleProps, mergeProps(buttonProps, hoverProps), {
335
- ref: domRef,
336
- className: classNames($a0b8eb4b46824fd288195a4db8814b$$interop$default, 'spectrum-ClearButton', {
337
- ["spectrum-ClearButton--" + variant]: variant,
338
- 'is-disabled': isDisabled,
339
- 'is-active': isPressed,
340
- 'is-hovered': isHovered
341
- }, styleProps.className)
342
- }), children));
343
- }
326
+ */ let $2e84a9b0bb97d71d$export$9b0b80fed00ba8b1 = /*#__PURE__*/ $iyca2$react.forwardRef($2e84a9b0bb97d71d$var$LogicButton);
327
+
328
+
329
+ var $c46fcad664efce4a$exports = {};
330
+
331
+ $parcel$export($c46fcad664efce4a$exports, "ClearButton", () => $c46fcad664efce4a$export$13ec83e50bf04290);
332
+
344
333
 
345
- export let ClearButton = /*#__PURE__*/_react.forwardRef($d84be0be8cc370fcf4ad9b30ea651284$var$ClearButton);
346
-
347
- function $ee41bfa1892cb064198e19baae3426a$var$ToggleButton(props, ref) {
348
- props = useProviderProps(props);
349
-
350
- let {
351
- isQuiet,
352
- isDisabled,
353
- isEmphasized,
354
- staticColor,
355
- children,
356
- autoFocus
357
- } = props,
358
- otherProps = _babelRuntimeHelpersEsmObjectWithoutPropertiesLoose(props, ["isQuiet", "isDisabled", "isEmphasized", "staticColor", "children", "autoFocus"]);
359
-
360
- let domRef = useFocusableRef(ref);
361
- let state = useToggleState(props);
362
- let {
363
- buttonProps,
364
- isPressed
365
- } = useToggleButton(props, state, domRef);
366
- let {
367
- hoverProps,
368
- isHovered
369
- } = useHover({
370
- isDisabled
371
- });
372
- let {
373
- styleProps
374
- } = useStyleProps(otherProps);
375
-
376
- let isTextOnly = _react.Children.toArray(props.children).every(c => ! /*#__PURE__*/_react.isValidElement(c));
377
-
378
- return /*#__PURE__*/_react.createElement(FocusRing, {
379
- focusRingClass: classNames($a0b8eb4b46824fd288195a4db8814b$$interop$default, 'focus-ring'),
380
- autoFocus: autoFocus
381
- }, /*#__PURE__*/_react.createElement("button", _babelRuntimeHelpersEsmExtends({}, styleProps, mergeProps(buttonProps, hoverProps), {
382
- ref: domRef,
383
- className: classNames($a0b8eb4b46824fd288195a4db8814b$$interop$default, 'spectrum-ActionButton', {
384
- 'spectrum-ActionButton--quiet': isQuiet,
385
- 'spectrum-ActionButton--emphasized': isEmphasized,
386
- 'spectrum-ActionButton--staticColor': !!staticColor,
387
- 'spectrum-ActionButton--staticWhite': staticColor === 'white',
388
- 'spectrum-ActionButton--staticBlack': staticColor === 'black',
389
- 'is-active': isPressed,
390
- 'is-disabled': isDisabled,
391
- 'is-hovered': isHovered,
392
- 'is-selected': state.isSelected
393
- }, styleProps.className)
394
- }), /*#__PURE__*/_react.createElement(SlotProvider, {
395
- slots: {
396
- icon: {
397
- size: 'S',
398
- UNSAFE_className: classNames($a0b8eb4b46824fd288195a4db8814b$$interop$default, 'spectrum-Icon')
399
- },
400
- text: {
401
- UNSAFE_className: classNames($a0b8eb4b46824fd288195a4db8814b$$interop$default, 'spectrum-ActionButton-label')
402
- }
403
- }
404
- }, typeof children === 'string' || isTextOnly ? /*#__PURE__*/_react.createElement(Text, null, children) : children)));
334
+
335
+
336
+
337
+
338
+
339
+
340
+ function $c46fcad664efce4a$var$ClearButton(props, ref) {
341
+ let { children: children = /*#__PURE__*/ $iyca2$react.createElement($iyca2$spectrumiconsuiCrossSmall, {
342
+ UNSAFE_className: (/*@__PURE__*/$parcel$interopDefault($91cc66a793b0c871$exports))['spectrum-Icon']
343
+ }) , focusClassName: focusClassName , variant: variant , autoFocus: autoFocus , isDisabled: isDisabled , preventFocus: preventFocus , elementType: elementType = preventFocus ? 'div' : 'button' , ...otherProps } = props;
344
+ let domRef = $iyca2$useFocusableRef(ref);
345
+ let { buttonProps: buttonProps , isPressed: isPressed } = $iyca2$useButton({
346
+ ...props,
347
+ elementType: elementType
348
+ }, domRef);
349
+ let { hoverProps: hoverProps , isHovered: isHovered } = $iyca2$useHover({
350
+ isDisabled: isDisabled
351
+ });
352
+ let { styleProps: styleProps } = $iyca2$useStyleProps(otherProps);
353
+ // For cases like the clear button in a search field, remove the tabIndex so
354
+ // iOS 14 with VoiceOver doesn't focus the button and hide the keyboard when
355
+ // moving the cursor over the clear button.
356
+ if (preventFocus) delete buttonProps.tabIndex;
357
+ let ElementType = elementType;
358
+ return(/*#__PURE__*/ $iyca2$react.createElement($iyca2$FocusRing, {
359
+ focusRingClass: $iyca2$classNames((/*@__PURE__*/$parcel$interopDefault($91cc66a793b0c871$exports)), 'focus-ring', focusClassName),
360
+ autoFocus: autoFocus
361
+ }, /*#__PURE__*/ $iyca2$react.createElement(ElementType, {
362
+ ...styleProps,
363
+ ...$iyca2$mergeProps(buttonProps, hoverProps),
364
+ ref: domRef,
365
+ className: $iyca2$classNames((/*@__PURE__*/$parcel$interopDefault($91cc66a793b0c871$exports)), 'spectrum-ClearButton', {
366
+ [`spectrum-ClearButton--${variant}`]: variant,
367
+ 'is-disabled': isDisabled,
368
+ 'is-active': isPressed,
369
+ 'is-hovered': isHovered
370
+ }, styleProps.className)
371
+ }, children)));
372
+ }
373
+ let $c46fcad664efce4a$export$13ec83e50bf04290 = /*#__PURE__*/ $iyca2$react.forwardRef($c46fcad664efce4a$var$ClearButton);
374
+
375
+
376
+ var $2910d4480879f984$exports = {};
377
+
378
+ $parcel$export($2910d4480879f984$exports, "ToggleButton", () => $2910d4480879f984$export$d2b052e7b4be1756);
379
+
380
+
381
+
382
+
383
+
384
+
385
+
386
+
387
+
388
+
389
+ function $2910d4480879f984$var$ToggleButton(props, ref) {
390
+ props = $iyca2$useProviderProps(props);
391
+ let { isQuiet: isQuiet , isDisabled: isDisabled , isEmphasized: isEmphasized , staticColor: staticColor , children: children , autoFocus: autoFocus , ...otherProps } = props;
392
+ let domRef = $iyca2$useFocusableRef(ref);
393
+ let state = $iyca2$useToggleState(props);
394
+ let { buttonProps: buttonProps , isPressed: isPressed } = $iyca2$useToggleButton(props, state, domRef);
395
+ let { hoverProps: hoverProps , isHovered: isHovered } = $iyca2$useHover({
396
+ isDisabled: isDisabled
397
+ });
398
+ let { styleProps: styleProps } = $iyca2$useStyleProps(otherProps);
399
+ let isTextOnly = $iyca2$react.Children.toArray(props.children).every((c)=>!/*#__PURE__*/ $iyca2$react.isValidElement(c)
400
+ );
401
+ return(/*#__PURE__*/ $iyca2$react.createElement($iyca2$FocusRing, {
402
+ focusRingClass: $iyca2$classNames((/*@__PURE__*/$parcel$interopDefault($91cc66a793b0c871$exports)), 'focus-ring'),
403
+ autoFocus: autoFocus
404
+ }, /*#__PURE__*/ $iyca2$react.createElement("button", {
405
+ ...styleProps,
406
+ ...$iyca2$mergeProps(buttonProps, hoverProps),
407
+ ref: domRef,
408
+ className: $iyca2$classNames((/*@__PURE__*/$parcel$interopDefault($91cc66a793b0c871$exports)), 'spectrum-ActionButton', {
409
+ 'spectrum-ActionButton--quiet': isQuiet,
410
+ 'spectrum-ActionButton--emphasized': isEmphasized,
411
+ 'spectrum-ActionButton--staticColor': !!staticColor,
412
+ 'spectrum-ActionButton--staticWhite': staticColor === 'white',
413
+ 'spectrum-ActionButton--staticBlack': staticColor === 'black',
414
+ 'is-active': isPressed,
415
+ 'is-disabled': isDisabled,
416
+ 'is-hovered': isHovered,
417
+ 'is-selected': state.isSelected
418
+ }, styleProps.className)
419
+ }, /*#__PURE__*/ $iyca2$react.createElement($iyca2$SlotProvider, {
420
+ slots: {
421
+ icon: {
422
+ size: 'S',
423
+ UNSAFE_className: $iyca2$classNames((/*@__PURE__*/$parcel$interopDefault($91cc66a793b0c871$exports)), 'spectrum-Icon')
424
+ },
425
+ text: {
426
+ UNSAFE_className: $iyca2$classNames((/*@__PURE__*/$parcel$interopDefault($91cc66a793b0c871$exports)), 'spectrum-ActionButton-label')
427
+ }
428
+ }
429
+ }, typeof children === 'string' || isTextOnly ? /*#__PURE__*/ $iyca2$react.createElement($iyca2$Text, null, children) : children))));
405
430
  }
406
431
  /**
407
432
  * ToggleButtons allow users to toggle a selection on or off, for example
408
433
  * switching between two states or modes.
409
- */
434
+ */ let $2910d4480879f984$export$d2b052e7b4be1756 = /*#__PURE__*/ $iyca2$react.forwardRef($2910d4480879f984$var$ToggleButton);
435
+
436
+
410
437
 
411
438
 
412
- export let ToggleButton = /*#__PURE__*/_react.forwardRef($ee41bfa1892cb064198e19baae3426a$var$ToggleButton);
439
+ export {$c2d9c8c68910a999$export$353f5b6fc5456de1 as Button, $2f0bd5451e99b3de$export$cfc7921d29ef7b80 as ActionButton, $d3fd0e07ecd17dc7$export$47dc48f595b075da as FieldButton, $2e84a9b0bb97d71d$export$9b0b80fed00ba8b1 as LogicButton, $c46fcad664efce4a$export$13ec83e50bf04290 as ClearButton, $2910d4480879f984$export$d2b052e7b4be1756 as ToggleButton};
413
440
  //# sourceMappingURL=module.js.map