@react-spectrum/button 3.16.3 → 3.16.4
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/ActionButton.main.js +17 -17
- package/dist/ActionButton.mjs +18 -18
- package/dist/ActionButton.module.js +17 -17
- package/dist/Button.main.js +31 -31
- package/dist/Button.mjs +32 -32
- package/dist/Button.module.js +31 -31
- package/dist/ClearButton.main.js +7 -7
- package/dist/ClearButton.mjs +8 -8
- package/dist/ClearButton.module.js +7 -7
- package/dist/FieldButton.main.js +10 -10
- package/dist/FieldButton.mjs +11 -11
- package/dist/FieldButton.module.js +10 -10
- package/dist/LogicButton.main.js +6 -6
- package/dist/LogicButton.mjs +7 -7
- package/dist/LogicButton.module.js +6 -6
- package/dist/ToggleButton.main.js +15 -15
- package/dist/ToggleButton.mjs +16 -16
- package/dist/ToggleButton.module.js +15 -15
- package/dist/ar-AE.mjs +1 -1
- package/dist/bg-BG.mjs +1 -1
- package/dist/button_vars_css.mjs +1 -1
- package/dist/cs-CZ.mjs +1 -1
- package/dist/da-DK.mjs +1 -1
- package/dist/de-DE.mjs +1 -1
- package/dist/el-GR.mjs +1 -1
- package/dist/en-US.mjs +1 -1
- package/dist/es-ES.mjs +1 -1
- package/dist/et-EE.mjs +1 -1
- package/dist/fi-FI.mjs +1 -1
- package/dist/fr-FR.mjs +1 -1
- package/dist/he-IL.mjs +1 -1
- package/dist/hr-HR.mjs +1 -1
- package/dist/hu-HU.mjs +1 -1
- package/dist/intlStrings.mjs +1 -1
- package/dist/it-IT.mjs +1 -1
- package/dist/ja-JP.mjs +1 -1
- package/dist/ko-KR.mjs +1 -1
- package/dist/lt-LT.mjs +1 -1
- package/dist/lv-LV.mjs +1 -1
- package/dist/nb-NO.mjs +1 -1
- package/dist/nl-NL.mjs +1 -1
- package/dist/pl-PL.mjs +1 -1
- package/dist/pt-BR.mjs +1 -1
- package/dist/pt-PT.mjs +1 -1
- package/dist/ro-RO.mjs +1 -1
- package/dist/ru-RU.mjs +1 -1
- package/dist/sk-SK.mjs +1 -1
- package/dist/sl-SI.mjs +1 -1
- package/dist/sr-SP.mjs +1 -1
- package/dist/sv-SE.mjs +1 -1
- package/dist/tr-TR.mjs +1 -1
- package/dist/uk-UA.mjs +1 -1
- package/dist/zh-CN.mjs +1 -1
- package/dist/zh-TW.mjs +1 -1
- package/package.json +14 -14
package/dist/ClearButton.mjs
CHANGED
@@ -32,8 +32,8 @@ function $parcel$interopDefault(a) {
|
|
32
32
|
|
33
33
|
function $dd24e555a16de2ae$var$ClearButton(props, ref) {
|
34
34
|
let { children: children = /*#__PURE__*/ (0, $d0kJV$react).createElement((0, $d0kJV$spectrumiconsuiCrossSmall), {
|
35
|
-
UNSAFE_className: (0, ($parcel$interopDefault($d0kJV$button_vars_cssmodulejs)))[
|
36
|
-
}), focusClassName: focusClassName, variant: variant, autoFocus: autoFocus, isDisabled: isDisabled, preventFocus: preventFocus, elementType: elementType = preventFocus ?
|
35
|
+
UNSAFE_className: (0, ($parcel$interopDefault($d0kJV$button_vars_cssmodulejs)))['spectrum-Icon']
|
36
|
+
}), focusClassName: focusClassName, variant: variant, autoFocus: autoFocus, isDisabled: isDisabled, preventFocus: preventFocus, elementType: elementType = preventFocus ? 'div' : 'button', ...otherProps } = props;
|
37
37
|
let domRef = (0, $d0kJV$useFocusableRef)(ref);
|
38
38
|
let { buttonProps: buttonProps, isPressed: isPressed } = (0, $d0kJV$useButton)({
|
39
39
|
...props,
|
@@ -49,17 +49,17 @@ function $dd24e555a16de2ae$var$ClearButton(props, ref) {
|
|
49
49
|
if (preventFocus) delete buttonProps.tabIndex;
|
50
50
|
let ElementType = elementType;
|
51
51
|
return /*#__PURE__*/ (0, $d0kJV$react).createElement((0, $d0kJV$FocusRing), {
|
52
|
-
focusRingClass: (0, $d0kJV$classNames)((0, ($parcel$interopDefault($d0kJV$button_vars_cssmodulejs))),
|
52
|
+
focusRingClass: (0, $d0kJV$classNames)((0, ($parcel$interopDefault($d0kJV$button_vars_cssmodulejs))), 'focus-ring', focusClassName),
|
53
53
|
autoFocus: autoFocus
|
54
54
|
}, /*#__PURE__*/ (0, $d0kJV$react).createElement(ElementType, {
|
55
55
|
...styleProps,
|
56
56
|
...(0, $d0kJV$mergeProps)(buttonProps, hoverProps),
|
57
57
|
ref: domRef,
|
58
|
-
className: (0, $d0kJV$classNames)((0, ($parcel$interopDefault($d0kJV$button_vars_cssmodulejs))),
|
58
|
+
className: (0, $d0kJV$classNames)((0, ($parcel$interopDefault($d0kJV$button_vars_cssmodulejs))), 'spectrum-ClearButton', {
|
59
59
|
[`spectrum-ClearButton--${variant}`]: variant,
|
60
|
-
|
61
|
-
|
62
|
-
|
60
|
+
'is-disabled': isDisabled,
|
61
|
+
'is-active': isPressed,
|
62
|
+
'is-hovered': isHovered
|
63
63
|
}, styleProps.className)
|
64
64
|
}, children));
|
65
65
|
}
|
@@ -67,4 +67,4 @@ let $dd24e555a16de2ae$export$13ec83e50bf04290 = /*#__PURE__*/ (0, $d0kJV$react).
|
|
67
67
|
|
68
68
|
|
69
69
|
export {$dd24e555a16de2ae$export$13ec83e50bf04290 as ClearButton};
|
70
|
-
//# sourceMappingURL=ClearButton.
|
70
|
+
//# sourceMappingURL=ClearButton.module.js.map
|
@@ -32,8 +32,8 @@ function $parcel$interopDefault(a) {
|
|
32
32
|
|
33
33
|
function $dd24e555a16de2ae$var$ClearButton(props, ref) {
|
34
34
|
let { children: children = /*#__PURE__*/ (0, $d0kJV$react).createElement((0, $d0kJV$spectrumiconsuiCrossSmall), {
|
35
|
-
UNSAFE_className: (0, ($parcel$interopDefault($d0kJV$button_vars_cssmodulejs)))[
|
36
|
-
}), focusClassName: focusClassName, variant: variant, autoFocus: autoFocus, isDisabled: isDisabled, preventFocus: preventFocus, elementType: elementType = preventFocus ?
|
35
|
+
UNSAFE_className: (0, ($parcel$interopDefault($d0kJV$button_vars_cssmodulejs)))['spectrum-Icon']
|
36
|
+
}), focusClassName: focusClassName, variant: variant, autoFocus: autoFocus, isDisabled: isDisabled, preventFocus: preventFocus, elementType: elementType = preventFocus ? 'div' : 'button', ...otherProps } = props;
|
37
37
|
let domRef = (0, $d0kJV$useFocusableRef)(ref);
|
38
38
|
let { buttonProps: buttonProps, isPressed: isPressed } = (0, $d0kJV$useButton)({
|
39
39
|
...props,
|
@@ -49,17 +49,17 @@ function $dd24e555a16de2ae$var$ClearButton(props, ref) {
|
|
49
49
|
if (preventFocus) delete buttonProps.tabIndex;
|
50
50
|
let ElementType = elementType;
|
51
51
|
return /*#__PURE__*/ (0, $d0kJV$react).createElement((0, $d0kJV$FocusRing), {
|
52
|
-
focusRingClass: (0, $d0kJV$classNames)((0, ($parcel$interopDefault($d0kJV$button_vars_cssmodulejs))),
|
52
|
+
focusRingClass: (0, $d0kJV$classNames)((0, ($parcel$interopDefault($d0kJV$button_vars_cssmodulejs))), 'focus-ring', focusClassName),
|
53
53
|
autoFocus: autoFocus
|
54
54
|
}, /*#__PURE__*/ (0, $d0kJV$react).createElement(ElementType, {
|
55
55
|
...styleProps,
|
56
56
|
...(0, $d0kJV$mergeProps)(buttonProps, hoverProps),
|
57
57
|
ref: domRef,
|
58
|
-
className: (0, $d0kJV$classNames)((0, ($parcel$interopDefault($d0kJV$button_vars_cssmodulejs))),
|
58
|
+
className: (0, $d0kJV$classNames)((0, ($parcel$interopDefault($d0kJV$button_vars_cssmodulejs))), 'spectrum-ClearButton', {
|
59
59
|
[`spectrum-ClearButton--${variant}`]: variant,
|
60
|
-
|
61
|
-
|
62
|
-
|
60
|
+
'is-disabled': isDisabled,
|
61
|
+
'is-active': isPressed,
|
62
|
+
'is-hovered': isHovered
|
63
63
|
}, styleProps.className)
|
64
64
|
}, children));
|
65
65
|
}
|
package/dist/FieldButton.main.js
CHANGED
@@ -36,7 +36,7 @@ $parcel$export(module.exports, "FieldButton", () => $5931ec1ea1ec1b0d$export$47d
|
|
36
36
|
|
37
37
|
// @private
|
38
38
|
function $5931ec1ea1ec1b0d$var$FieldButton(props, ref) {
|
39
|
-
props = (0, $7mUYa$reactspectrumutils.useSlotProps)(props,
|
39
|
+
props = (0, $7mUYa$reactspectrumutils.useSlotProps)(props, 'button');
|
40
40
|
let { isQuiet: isQuiet, isDisabled: isDisabled, validationState: validationState, isInvalid: isInvalid, children: children, autoFocus: autoFocus, isActive: isActive, focusRingClass: focusRingClass, ...otherProps } = props;
|
41
41
|
let domRef = (0, $7mUYa$reactspectrumutils.useFocusableRef)(ref);
|
42
42
|
let { buttonProps: buttonProps, isPressed: isPressed } = (0, $7mUYa$reactariabutton.useButton)(props, domRef);
|
@@ -45,23 +45,23 @@ function $5931ec1ea1ec1b0d$var$FieldButton(props, ref) {
|
|
45
45
|
});
|
46
46
|
let { styleProps: styleProps } = (0, $7mUYa$reactspectrumutils.useStyleProps)(otherProps);
|
47
47
|
return /*#__PURE__*/ (0, ($parcel$interopDefault($7mUYa$react))).createElement((0, $7mUYa$reactariafocus.FocusRing), {
|
48
|
-
focusRingClass: (0, $7mUYa$reactspectrumutils.classNames)((0, ($parcel$interopDefault($afc5a4514aca2340$exports))),
|
48
|
+
focusRingClass: (0, $7mUYa$reactspectrumutils.classNames)((0, ($parcel$interopDefault($afc5a4514aca2340$exports))), 'focus-ring', focusRingClass),
|
49
49
|
autoFocus: autoFocus
|
50
50
|
}, /*#__PURE__*/ (0, ($parcel$interopDefault($7mUYa$react))).createElement("button", {
|
51
51
|
...(0, $7mUYa$reactariautils.mergeProps)(buttonProps, hoverProps),
|
52
52
|
ref: domRef,
|
53
|
-
className: (0, $7mUYa$reactspectrumutils.classNames)((0, ($parcel$interopDefault($afc5a4514aca2340$exports))),
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
53
|
+
className: (0, $7mUYa$reactspectrumutils.classNames)((0, ($parcel$interopDefault($afc5a4514aca2340$exports))), 'spectrum-FieldButton', {
|
54
|
+
'spectrum-FieldButton--quiet': isQuiet,
|
55
|
+
'is-active': isActive || isPressed,
|
56
|
+
'is-disabled': isDisabled,
|
57
|
+
'spectrum-FieldButton--invalid': isInvalid || validationState === 'invalid',
|
58
|
+
'is-hovered': isHovered
|
59
59
|
}, styleProps.className)
|
60
60
|
}, /*#__PURE__*/ (0, ($parcel$interopDefault($7mUYa$react))).createElement((0, $7mUYa$reactspectrumutils.SlotProvider), {
|
61
61
|
slots: {
|
62
62
|
icon: {
|
63
|
-
size:
|
64
|
-
UNSAFE_className: (0, $7mUYa$reactspectrumutils.classNames)((0, ($parcel$interopDefault($afc5a4514aca2340$exports))),
|
63
|
+
size: 'S',
|
64
|
+
UNSAFE_className: (0, $7mUYa$reactspectrumutils.classNames)((0, ($parcel$interopDefault($afc5a4514aca2340$exports))), 'spectrum-Icon')
|
65
65
|
}
|
66
66
|
}
|
67
67
|
}, children)));
|
package/dist/FieldButton.mjs
CHANGED
@@ -30,7 +30,7 @@ function $parcel$interopDefault(a) {
|
|
30
30
|
|
31
31
|
// @private
|
32
32
|
function $b43bd559b476d0c4$var$FieldButton(props, ref) {
|
33
|
-
props = (0, $b8ZoF$useSlotProps)(props,
|
33
|
+
props = (0, $b8ZoF$useSlotProps)(props, 'button');
|
34
34
|
let { isQuiet: isQuiet, isDisabled: isDisabled, validationState: validationState, isInvalid: isInvalid, children: children, autoFocus: autoFocus, isActive: isActive, focusRingClass: focusRingClass, ...otherProps } = props;
|
35
35
|
let domRef = (0, $b8ZoF$useFocusableRef)(ref);
|
36
36
|
let { buttonProps: buttonProps, isPressed: isPressed } = (0, $b8ZoF$useButton)(props, domRef);
|
@@ -39,23 +39,23 @@ function $b43bd559b476d0c4$var$FieldButton(props, ref) {
|
|
39
39
|
});
|
40
40
|
let { styleProps: styleProps } = (0, $b8ZoF$useStyleProps)(otherProps);
|
41
41
|
return /*#__PURE__*/ (0, $b8ZoF$react).createElement((0, $b8ZoF$FocusRing), {
|
42
|
-
focusRingClass: (0, $b8ZoF$classNames)((0, ($parcel$interopDefault($b8ZoF$button_vars_cssmodulejs))),
|
42
|
+
focusRingClass: (0, $b8ZoF$classNames)((0, ($parcel$interopDefault($b8ZoF$button_vars_cssmodulejs))), 'focus-ring', focusRingClass),
|
43
43
|
autoFocus: autoFocus
|
44
44
|
}, /*#__PURE__*/ (0, $b8ZoF$react).createElement("button", {
|
45
45
|
...(0, $b8ZoF$mergeProps)(buttonProps, hoverProps),
|
46
46
|
ref: domRef,
|
47
|
-
className: (0, $b8ZoF$classNames)((0, ($parcel$interopDefault($b8ZoF$button_vars_cssmodulejs))),
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
47
|
+
className: (0, $b8ZoF$classNames)((0, ($parcel$interopDefault($b8ZoF$button_vars_cssmodulejs))), 'spectrum-FieldButton', {
|
48
|
+
'spectrum-FieldButton--quiet': isQuiet,
|
49
|
+
'is-active': isActive || isPressed,
|
50
|
+
'is-disabled': isDisabled,
|
51
|
+
'spectrum-FieldButton--invalid': isInvalid || validationState === 'invalid',
|
52
|
+
'is-hovered': isHovered
|
53
53
|
}, styleProps.className)
|
54
54
|
}, /*#__PURE__*/ (0, $b8ZoF$react).createElement((0, $b8ZoF$SlotProvider), {
|
55
55
|
slots: {
|
56
56
|
icon: {
|
57
|
-
size:
|
58
|
-
UNSAFE_className: (0, $b8ZoF$classNames)((0, ($parcel$interopDefault($b8ZoF$button_vars_cssmodulejs))),
|
57
|
+
size: 'S',
|
58
|
+
UNSAFE_className: (0, $b8ZoF$classNames)((0, ($parcel$interopDefault($b8ZoF$button_vars_cssmodulejs))), 'spectrum-Icon')
|
59
59
|
}
|
60
60
|
}
|
61
61
|
}, children)));
|
@@ -64,4 +64,4 @@ let $b43bd559b476d0c4$export$47dc48f595b075da = /*#__PURE__*/ (0, $b8ZoF$react).
|
|
64
64
|
|
65
65
|
|
66
66
|
export {$b43bd559b476d0c4$export$47dc48f595b075da as FieldButton};
|
67
|
-
//# sourceMappingURL=FieldButton.
|
67
|
+
//# sourceMappingURL=FieldButton.module.js.map
|
@@ -30,7 +30,7 @@ function $parcel$interopDefault(a) {
|
|
30
30
|
|
31
31
|
// @private
|
32
32
|
function $b43bd559b476d0c4$var$FieldButton(props, ref) {
|
33
|
-
props = (0, $b8ZoF$useSlotProps)(props,
|
33
|
+
props = (0, $b8ZoF$useSlotProps)(props, 'button');
|
34
34
|
let { isQuiet: isQuiet, isDisabled: isDisabled, validationState: validationState, isInvalid: isInvalid, children: children, autoFocus: autoFocus, isActive: isActive, focusRingClass: focusRingClass, ...otherProps } = props;
|
35
35
|
let domRef = (0, $b8ZoF$useFocusableRef)(ref);
|
36
36
|
let { buttonProps: buttonProps, isPressed: isPressed } = (0, $b8ZoF$useButton)(props, domRef);
|
@@ -39,23 +39,23 @@ function $b43bd559b476d0c4$var$FieldButton(props, ref) {
|
|
39
39
|
});
|
40
40
|
let { styleProps: styleProps } = (0, $b8ZoF$useStyleProps)(otherProps);
|
41
41
|
return /*#__PURE__*/ (0, $b8ZoF$react).createElement((0, $b8ZoF$FocusRing), {
|
42
|
-
focusRingClass: (0, $b8ZoF$classNames)((0, ($parcel$interopDefault($b8ZoF$button_vars_cssmodulejs))),
|
42
|
+
focusRingClass: (0, $b8ZoF$classNames)((0, ($parcel$interopDefault($b8ZoF$button_vars_cssmodulejs))), 'focus-ring', focusRingClass),
|
43
43
|
autoFocus: autoFocus
|
44
44
|
}, /*#__PURE__*/ (0, $b8ZoF$react).createElement("button", {
|
45
45
|
...(0, $b8ZoF$mergeProps)(buttonProps, hoverProps),
|
46
46
|
ref: domRef,
|
47
|
-
className: (0, $b8ZoF$classNames)((0, ($parcel$interopDefault($b8ZoF$button_vars_cssmodulejs))),
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
47
|
+
className: (0, $b8ZoF$classNames)((0, ($parcel$interopDefault($b8ZoF$button_vars_cssmodulejs))), 'spectrum-FieldButton', {
|
48
|
+
'spectrum-FieldButton--quiet': isQuiet,
|
49
|
+
'is-active': isActive || isPressed,
|
50
|
+
'is-disabled': isDisabled,
|
51
|
+
'spectrum-FieldButton--invalid': isInvalid || validationState === 'invalid',
|
52
|
+
'is-hovered': isHovered
|
53
53
|
}, styleProps.className)
|
54
54
|
}, /*#__PURE__*/ (0, $b8ZoF$react).createElement((0, $b8ZoF$SlotProvider), {
|
55
55
|
slots: {
|
56
56
|
icon: {
|
57
|
-
size:
|
58
|
-
UNSAFE_className: (0, $b8ZoF$classNames)((0, ($parcel$interopDefault($b8ZoF$button_vars_cssmodulejs))),
|
57
|
+
size: 'S',
|
58
|
+
UNSAFE_className: (0, $b8ZoF$classNames)((0, ($parcel$interopDefault($b8ZoF$button_vars_cssmodulejs))), 'spectrum-Icon')
|
59
59
|
}
|
60
60
|
}
|
61
61
|
}, children)));
|
package/dist/LogicButton.main.js
CHANGED
@@ -46,20 +46,20 @@ function $3bd294eda342b0c4$var$LogicButton(props, ref) {
|
|
46
46
|
});
|
47
47
|
let { styleProps: styleProps } = (0, $adWKT$reactspectrumutils.useStyleProps)(otherProps);
|
48
48
|
return /*#__PURE__*/ (0, ($parcel$interopDefault($adWKT$react))).createElement((0, $adWKT$reactariafocus.FocusRing), {
|
49
|
-
focusRingClass: (0, $adWKT$reactspectrumutils.classNames)((0, ($parcel$interopDefault($afc5a4514aca2340$exports))),
|
49
|
+
focusRingClass: (0, $adWKT$reactspectrumutils.classNames)((0, ($parcel$interopDefault($afc5a4514aca2340$exports))), 'focus-ring'),
|
50
50
|
autoFocus: autoFocus
|
51
51
|
}, /*#__PURE__*/ (0, ($parcel$interopDefault($adWKT$react))).createElement("button", {
|
52
52
|
...styleProps,
|
53
53
|
...(0, $adWKT$reactariautils.mergeProps)(buttonProps, hoverProps),
|
54
54
|
ref: domRef,
|
55
|
-
className: (0, $adWKT$reactspectrumutils.classNames)((0, ($parcel$interopDefault($afc5a4514aca2340$exports))),
|
55
|
+
className: (0, $adWKT$reactspectrumutils.classNames)((0, ($parcel$interopDefault($afc5a4514aca2340$exports))), 'spectrum-LogicButton', {
|
56
56
|
[`spectrum-LogicButton--${variant}`]: variant,
|
57
|
-
|
58
|
-
|
59
|
-
|
57
|
+
'is-disabled': isDisabled,
|
58
|
+
'is-active': isPressed,
|
59
|
+
'is-hovered': isHovered
|
60
60
|
}, styleProps.className)
|
61
61
|
}, /*#__PURE__*/ (0, ($parcel$interopDefault($adWKT$react))).createElement("span", {
|
62
|
-
className: (0, $adWKT$reactspectrumutils.classNames)((0, ($parcel$interopDefault($afc5a4514aca2340$exports))),
|
62
|
+
className: (0, $adWKT$reactspectrumutils.classNames)((0, ($parcel$interopDefault($afc5a4514aca2340$exports))), 'spectrum-Button-label')
|
63
63
|
}, children)));
|
64
64
|
}
|
65
65
|
/**
|
package/dist/LogicButton.mjs
CHANGED
@@ -40,20 +40,20 @@ function $45108e3c482ee88b$var$LogicButton(props, ref) {
|
|
40
40
|
});
|
41
41
|
let { styleProps: styleProps } = (0, $g8O0d$useStyleProps)(otherProps);
|
42
42
|
return /*#__PURE__*/ (0, $g8O0d$react).createElement((0, $g8O0d$FocusRing), {
|
43
|
-
focusRingClass: (0, $g8O0d$classNames)((0, ($parcel$interopDefault($g8O0d$button_vars_cssmodulejs))),
|
43
|
+
focusRingClass: (0, $g8O0d$classNames)((0, ($parcel$interopDefault($g8O0d$button_vars_cssmodulejs))), 'focus-ring'),
|
44
44
|
autoFocus: autoFocus
|
45
45
|
}, /*#__PURE__*/ (0, $g8O0d$react).createElement("button", {
|
46
46
|
...styleProps,
|
47
47
|
...(0, $g8O0d$mergeProps)(buttonProps, hoverProps),
|
48
48
|
ref: domRef,
|
49
|
-
className: (0, $g8O0d$classNames)((0, ($parcel$interopDefault($g8O0d$button_vars_cssmodulejs))),
|
49
|
+
className: (0, $g8O0d$classNames)((0, ($parcel$interopDefault($g8O0d$button_vars_cssmodulejs))), 'spectrum-LogicButton', {
|
50
50
|
[`spectrum-LogicButton--${variant}`]: variant,
|
51
|
-
|
52
|
-
|
53
|
-
|
51
|
+
'is-disabled': isDisabled,
|
52
|
+
'is-active': isPressed,
|
53
|
+
'is-hovered': isHovered
|
54
54
|
}, styleProps.className)
|
55
55
|
}, /*#__PURE__*/ (0, $g8O0d$react).createElement("span", {
|
56
|
-
className: (0, $g8O0d$classNames)((0, ($parcel$interopDefault($g8O0d$button_vars_cssmodulejs))),
|
56
|
+
className: (0, $g8O0d$classNames)((0, ($parcel$interopDefault($g8O0d$button_vars_cssmodulejs))), 'spectrum-Button-label')
|
57
57
|
}, children)));
|
58
58
|
}
|
59
59
|
/**
|
@@ -62,4 +62,4 @@ function $45108e3c482ee88b$var$LogicButton(props, ref) {
|
|
62
62
|
|
63
63
|
|
64
64
|
export {$45108e3c482ee88b$export$9b0b80fed00ba8b1 as LogicButton};
|
65
|
-
//# sourceMappingURL=LogicButton.
|
65
|
+
//# sourceMappingURL=LogicButton.module.js.map
|
@@ -40,20 +40,20 @@ function $45108e3c482ee88b$var$LogicButton(props, ref) {
|
|
40
40
|
});
|
41
41
|
let { styleProps: styleProps } = (0, $g8O0d$useStyleProps)(otherProps);
|
42
42
|
return /*#__PURE__*/ (0, $g8O0d$react).createElement((0, $g8O0d$FocusRing), {
|
43
|
-
focusRingClass: (0, $g8O0d$classNames)((0, ($parcel$interopDefault($g8O0d$button_vars_cssmodulejs))),
|
43
|
+
focusRingClass: (0, $g8O0d$classNames)((0, ($parcel$interopDefault($g8O0d$button_vars_cssmodulejs))), 'focus-ring'),
|
44
44
|
autoFocus: autoFocus
|
45
45
|
}, /*#__PURE__*/ (0, $g8O0d$react).createElement("button", {
|
46
46
|
...styleProps,
|
47
47
|
...(0, $g8O0d$mergeProps)(buttonProps, hoverProps),
|
48
48
|
ref: domRef,
|
49
|
-
className: (0, $g8O0d$classNames)((0, ($parcel$interopDefault($g8O0d$button_vars_cssmodulejs))),
|
49
|
+
className: (0, $g8O0d$classNames)((0, ($parcel$interopDefault($g8O0d$button_vars_cssmodulejs))), 'spectrum-LogicButton', {
|
50
50
|
[`spectrum-LogicButton--${variant}`]: variant,
|
51
|
-
|
52
|
-
|
53
|
-
|
51
|
+
'is-disabled': isDisabled,
|
52
|
+
'is-active': isPressed,
|
53
|
+
'is-hovered': isHovered
|
54
54
|
}, styleProps.className)
|
55
55
|
}, /*#__PURE__*/ (0, $g8O0d$react).createElement("span", {
|
56
|
-
className: (0, $g8O0d$classNames)((0, ($parcel$interopDefault($g8O0d$button_vars_cssmodulejs))),
|
56
|
+
className: (0, $g8O0d$classNames)((0, ($parcel$interopDefault($g8O0d$button_vars_cssmodulejs))), 'spectrum-Button-label')
|
57
57
|
}, children)));
|
58
58
|
}
|
59
59
|
/**
|
@@ -52,34 +52,34 @@ function $b5c927da7d8f1be6$var$ToggleButton(props, ref) {
|
|
52
52
|
let { styleProps: styleProps } = (0, $58xyJ$reactspectrumutils.useStyleProps)(otherProps);
|
53
53
|
let isTextOnly = (0, ($parcel$interopDefault($58xyJ$react))).Children.toArray(props.children).every((c)=>!/*#__PURE__*/ (0, ($parcel$interopDefault($58xyJ$react))).isValidElement(c));
|
54
54
|
return /*#__PURE__*/ (0, ($parcel$interopDefault($58xyJ$react))).createElement((0, $58xyJ$reactariafocus.FocusRing), {
|
55
|
-
focusRingClass: (0, $58xyJ$reactspectrumutils.classNames)((0, ($parcel$interopDefault($afc5a4514aca2340$exports))),
|
55
|
+
focusRingClass: (0, $58xyJ$reactspectrumutils.classNames)((0, ($parcel$interopDefault($afc5a4514aca2340$exports))), 'focus-ring'),
|
56
56
|
autoFocus: autoFocus
|
57
57
|
}, /*#__PURE__*/ (0, ($parcel$interopDefault($58xyJ$react))).createElement("button", {
|
58
58
|
...styleProps,
|
59
59
|
...(0, $58xyJ$reactariautils.mergeProps)(buttonProps, hoverProps),
|
60
60
|
ref: domRef,
|
61
|
-
className: (0, $58xyJ$reactspectrumutils.classNames)((0, ($parcel$interopDefault($afc5a4514aca2340$exports))),
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
61
|
+
className: (0, $58xyJ$reactspectrumutils.classNames)((0, ($parcel$interopDefault($afc5a4514aca2340$exports))), 'spectrum-ActionButton', {
|
62
|
+
'spectrum-ActionButton--quiet': isQuiet,
|
63
|
+
'spectrum-ActionButton--emphasized': isEmphasized,
|
64
|
+
'spectrum-ActionButton--staticColor': !!staticColor,
|
65
|
+
'spectrum-ActionButton--staticWhite': staticColor === 'white',
|
66
|
+
'spectrum-ActionButton--staticBlack': staticColor === 'black',
|
67
|
+
'is-active': isPressed,
|
68
|
+
'is-disabled': isDisabled,
|
69
|
+
'is-hovered': isHovered,
|
70
|
+
'is-selected': state.isSelected
|
71
71
|
}, styleProps.className)
|
72
72
|
}, /*#__PURE__*/ (0, ($parcel$interopDefault($58xyJ$react))).createElement((0, $58xyJ$reactspectrumutils.SlotProvider), {
|
73
73
|
slots: {
|
74
74
|
icon: {
|
75
|
-
size:
|
76
|
-
UNSAFE_className: (0, $58xyJ$reactspectrumutils.classNames)((0, ($parcel$interopDefault($afc5a4514aca2340$exports))),
|
75
|
+
size: 'S',
|
76
|
+
UNSAFE_className: (0, $58xyJ$reactspectrumutils.classNames)((0, ($parcel$interopDefault($afc5a4514aca2340$exports))), 'spectrum-Icon')
|
77
77
|
},
|
78
78
|
text: {
|
79
|
-
UNSAFE_className: (0, $58xyJ$reactspectrumutils.classNames)((0, ($parcel$interopDefault($afc5a4514aca2340$exports))),
|
79
|
+
UNSAFE_className: (0, $58xyJ$reactspectrumutils.classNames)((0, ($parcel$interopDefault($afc5a4514aca2340$exports))), 'spectrum-ActionButton-label')
|
80
80
|
}
|
81
81
|
}
|
82
|
-
}, typeof children ===
|
82
|
+
}, typeof children === 'string' || isTextOnly ? /*#__PURE__*/ (0, ($parcel$interopDefault($58xyJ$react))).createElement((0, $58xyJ$reactspectrumtext.Text), null, children) : children)));
|
83
83
|
}
|
84
84
|
/**
|
85
85
|
* ToggleButtons allow users to toggle a selection on or off, for example
|
package/dist/ToggleButton.mjs
CHANGED
@@ -46,34 +46,34 @@ function $3979c7c23b0bd270$var$ToggleButton(props, ref) {
|
|
46
46
|
let { styleProps: styleProps } = (0, $3XyjH$useStyleProps)(otherProps);
|
47
47
|
let isTextOnly = (0, $3XyjH$react).Children.toArray(props.children).every((c)=>!/*#__PURE__*/ (0, $3XyjH$react).isValidElement(c));
|
48
48
|
return /*#__PURE__*/ (0, $3XyjH$react).createElement((0, $3XyjH$FocusRing), {
|
49
|
-
focusRingClass: (0, $3XyjH$classNames)((0, ($parcel$interopDefault($3XyjH$button_vars_cssmodulejs))),
|
49
|
+
focusRingClass: (0, $3XyjH$classNames)((0, ($parcel$interopDefault($3XyjH$button_vars_cssmodulejs))), 'focus-ring'),
|
50
50
|
autoFocus: autoFocus
|
51
51
|
}, /*#__PURE__*/ (0, $3XyjH$react).createElement("button", {
|
52
52
|
...styleProps,
|
53
53
|
...(0, $3XyjH$mergeProps)(buttonProps, hoverProps),
|
54
54
|
ref: domRef,
|
55
|
-
className: (0, $3XyjH$classNames)((0, ($parcel$interopDefault($3XyjH$button_vars_cssmodulejs))),
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
55
|
+
className: (0, $3XyjH$classNames)((0, ($parcel$interopDefault($3XyjH$button_vars_cssmodulejs))), 'spectrum-ActionButton', {
|
56
|
+
'spectrum-ActionButton--quiet': isQuiet,
|
57
|
+
'spectrum-ActionButton--emphasized': isEmphasized,
|
58
|
+
'spectrum-ActionButton--staticColor': !!staticColor,
|
59
|
+
'spectrum-ActionButton--staticWhite': staticColor === 'white',
|
60
|
+
'spectrum-ActionButton--staticBlack': staticColor === 'black',
|
61
|
+
'is-active': isPressed,
|
62
|
+
'is-disabled': isDisabled,
|
63
|
+
'is-hovered': isHovered,
|
64
|
+
'is-selected': state.isSelected
|
65
65
|
}, styleProps.className)
|
66
66
|
}, /*#__PURE__*/ (0, $3XyjH$react).createElement((0, $3XyjH$SlotProvider), {
|
67
67
|
slots: {
|
68
68
|
icon: {
|
69
|
-
size:
|
70
|
-
UNSAFE_className: (0, $3XyjH$classNames)((0, ($parcel$interopDefault($3XyjH$button_vars_cssmodulejs))),
|
69
|
+
size: 'S',
|
70
|
+
UNSAFE_className: (0, $3XyjH$classNames)((0, ($parcel$interopDefault($3XyjH$button_vars_cssmodulejs))), 'spectrum-Icon')
|
71
71
|
},
|
72
72
|
text: {
|
73
|
-
UNSAFE_className: (0, $3XyjH$classNames)((0, ($parcel$interopDefault($3XyjH$button_vars_cssmodulejs))),
|
73
|
+
UNSAFE_className: (0, $3XyjH$classNames)((0, ($parcel$interopDefault($3XyjH$button_vars_cssmodulejs))), 'spectrum-ActionButton-label')
|
74
74
|
}
|
75
75
|
}
|
76
|
-
}, typeof children ===
|
76
|
+
}, typeof children === 'string' || isTextOnly ? /*#__PURE__*/ (0, $3XyjH$react).createElement((0, $3XyjH$Text), null, children) : children)));
|
77
77
|
}
|
78
78
|
/**
|
79
79
|
* ToggleButtons allow users to toggle a selection on or off, for example
|
@@ -82,4 +82,4 @@ function $3979c7c23b0bd270$var$ToggleButton(props, ref) {
|
|
82
82
|
|
83
83
|
|
84
84
|
export {$3979c7c23b0bd270$export$d2b052e7b4be1756 as ToggleButton};
|
85
|
-
//# sourceMappingURL=ToggleButton.
|
85
|
+
//# sourceMappingURL=ToggleButton.module.js.map
|
@@ -46,34 +46,34 @@ function $3979c7c23b0bd270$var$ToggleButton(props, ref) {
|
|
46
46
|
let { styleProps: styleProps } = (0, $3XyjH$useStyleProps)(otherProps);
|
47
47
|
let isTextOnly = (0, $3XyjH$react).Children.toArray(props.children).every((c)=>!/*#__PURE__*/ (0, $3XyjH$react).isValidElement(c));
|
48
48
|
return /*#__PURE__*/ (0, $3XyjH$react).createElement((0, $3XyjH$FocusRing), {
|
49
|
-
focusRingClass: (0, $3XyjH$classNames)((0, ($parcel$interopDefault($3XyjH$button_vars_cssmodulejs))),
|
49
|
+
focusRingClass: (0, $3XyjH$classNames)((0, ($parcel$interopDefault($3XyjH$button_vars_cssmodulejs))), 'focus-ring'),
|
50
50
|
autoFocus: autoFocus
|
51
51
|
}, /*#__PURE__*/ (0, $3XyjH$react).createElement("button", {
|
52
52
|
...styleProps,
|
53
53
|
...(0, $3XyjH$mergeProps)(buttonProps, hoverProps),
|
54
54
|
ref: domRef,
|
55
|
-
className: (0, $3XyjH$classNames)((0, ($parcel$interopDefault($3XyjH$button_vars_cssmodulejs))),
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
55
|
+
className: (0, $3XyjH$classNames)((0, ($parcel$interopDefault($3XyjH$button_vars_cssmodulejs))), 'spectrum-ActionButton', {
|
56
|
+
'spectrum-ActionButton--quiet': isQuiet,
|
57
|
+
'spectrum-ActionButton--emphasized': isEmphasized,
|
58
|
+
'spectrum-ActionButton--staticColor': !!staticColor,
|
59
|
+
'spectrum-ActionButton--staticWhite': staticColor === 'white',
|
60
|
+
'spectrum-ActionButton--staticBlack': staticColor === 'black',
|
61
|
+
'is-active': isPressed,
|
62
|
+
'is-disabled': isDisabled,
|
63
|
+
'is-hovered': isHovered,
|
64
|
+
'is-selected': state.isSelected
|
65
65
|
}, styleProps.className)
|
66
66
|
}, /*#__PURE__*/ (0, $3XyjH$react).createElement((0, $3XyjH$SlotProvider), {
|
67
67
|
slots: {
|
68
68
|
icon: {
|
69
|
-
size:
|
70
|
-
UNSAFE_className: (0, $3XyjH$classNames)((0, ($parcel$interopDefault($3XyjH$button_vars_cssmodulejs))),
|
69
|
+
size: 'S',
|
70
|
+
UNSAFE_className: (0, $3XyjH$classNames)((0, ($parcel$interopDefault($3XyjH$button_vars_cssmodulejs))), 'spectrum-Icon')
|
71
71
|
},
|
72
72
|
text: {
|
73
|
-
UNSAFE_className: (0, $3XyjH$classNames)((0, ($parcel$interopDefault($3XyjH$button_vars_cssmodulejs))),
|
73
|
+
UNSAFE_className: (0, $3XyjH$classNames)((0, ($parcel$interopDefault($3XyjH$button_vars_cssmodulejs))), 'spectrum-ActionButton-label')
|
74
74
|
}
|
75
75
|
}
|
76
|
-
}, typeof children ===
|
76
|
+
}, typeof children === 'string' || isTextOnly ? /*#__PURE__*/ (0, $3XyjH$react).createElement((0, $3XyjH$Text), null, children) : children)));
|
77
77
|
}
|
78
78
|
/**
|
79
79
|
* ToggleButtons allow users to toggle a selection on or off, for example
|
package/dist/ar-AE.mjs
CHANGED
package/dist/bg-BG.mjs
CHANGED
package/dist/button_vars_css.mjs
CHANGED
package/dist/cs-CZ.mjs
CHANGED
package/dist/da-DK.mjs
CHANGED
package/dist/de-DE.mjs
CHANGED
package/dist/el-GR.mjs
CHANGED
package/dist/en-US.mjs
CHANGED
package/dist/es-ES.mjs
CHANGED
package/dist/et-EE.mjs
CHANGED
package/dist/fi-FI.mjs
CHANGED
package/dist/fr-FR.mjs
CHANGED
package/dist/he-IL.mjs
CHANGED
package/dist/hr-HR.mjs
CHANGED
package/dist/hu-HU.mjs
CHANGED
package/dist/intlStrings.mjs
CHANGED
package/dist/it-IT.mjs
CHANGED
package/dist/ja-JP.mjs
CHANGED
package/dist/ko-KR.mjs
CHANGED
package/dist/lt-LT.mjs
CHANGED