@react-spectrum/switch 3.5.4 → 3.5.6
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/Switch.main.js +8 -8
- package/dist/Switch.mjs +9 -9
- package/dist/Switch.module.js +8 -8
- package/dist/toggle_vars_css.mjs +1 -1
- package/package.json +10 -10
package/dist/Switch.main.js
CHANGED
|
@@ -51,22 +51,22 @@ function $e216104aee091306$var$Switch(props, ref) {
|
|
|
51
51
|
...styleProps,
|
|
52
52
|
...hoverProps,
|
|
53
53
|
ref: domRef,
|
|
54
|
-
className: (0, $3aWe4$reactspectrumutils.classNames)((0, ($parcel$interopDefault($faeb9d1b92049ba7$exports))),
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
54
|
+
className: (0, $3aWe4$reactspectrumutils.classNames)((0, ($parcel$interopDefault($faeb9d1b92049ba7$exports))), 'spectrum-ToggleSwitch', {
|
|
55
|
+
'spectrum-ToggleSwitch--quiet': !isEmphasized,
|
|
56
|
+
'is-disabled': isDisabled,
|
|
57
|
+
'is-hovered': isHovered
|
|
58
58
|
}, styleProps.className)
|
|
59
59
|
}, /*#__PURE__*/ (0, ($parcel$interopDefault($3aWe4$react))).createElement((0, $3aWe4$reactariafocus.FocusRing), {
|
|
60
|
-
focusRingClass: (0, $3aWe4$reactspectrumutils.classNames)((0, ($parcel$interopDefault($faeb9d1b92049ba7$exports))),
|
|
60
|
+
focusRingClass: (0, $3aWe4$reactspectrumutils.classNames)((0, ($parcel$interopDefault($faeb9d1b92049ba7$exports))), 'focus-ring'),
|
|
61
61
|
autoFocus: autoFocus
|
|
62
62
|
}, /*#__PURE__*/ (0, ($parcel$interopDefault($3aWe4$react))).createElement("input", {
|
|
63
63
|
...inputProps,
|
|
64
64
|
ref: inputRef,
|
|
65
|
-
className: (0, $3aWe4$reactspectrumutils.classNames)((0, ($parcel$interopDefault($faeb9d1b92049ba7$exports))),
|
|
65
|
+
className: (0, $3aWe4$reactspectrumutils.classNames)((0, ($parcel$interopDefault($faeb9d1b92049ba7$exports))), 'spectrum-ToggleSwitch-input')
|
|
66
66
|
})), /*#__PURE__*/ (0, ($parcel$interopDefault($3aWe4$react))).createElement("span", {
|
|
67
|
-
className: (0, $3aWe4$reactspectrumutils.classNames)((0, ($parcel$interopDefault($faeb9d1b92049ba7$exports))),
|
|
67
|
+
className: (0, $3aWe4$reactspectrumutils.classNames)((0, ($parcel$interopDefault($faeb9d1b92049ba7$exports))), 'spectrum-ToggleSwitch-switch')
|
|
68
68
|
}), children && /*#__PURE__*/ (0, ($parcel$interopDefault($3aWe4$react))).createElement("span", {
|
|
69
|
-
className: (0, $3aWe4$reactspectrumutils.classNames)((0, ($parcel$interopDefault($faeb9d1b92049ba7$exports))),
|
|
69
|
+
className: (0, $3aWe4$reactspectrumutils.classNames)((0, ($parcel$interopDefault($faeb9d1b92049ba7$exports))), 'spectrum-ToggleSwitch-label')
|
|
70
70
|
}, children));
|
|
71
71
|
}
|
|
72
72
|
/**
|
package/dist/Switch.mjs
CHANGED
|
@@ -45,22 +45,22 @@ function $8341c396cee1c5fc$var$Switch(props, ref) {
|
|
|
45
45
|
...styleProps,
|
|
46
46
|
...hoverProps,
|
|
47
47
|
ref: domRef,
|
|
48
|
-
className: (0, $cEq2J$classNames)((0, ($parcel$interopDefault($cEq2J$toggle_vars_cssmodulejs))),
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
48
|
+
className: (0, $cEq2J$classNames)((0, ($parcel$interopDefault($cEq2J$toggle_vars_cssmodulejs))), 'spectrum-ToggleSwitch', {
|
|
49
|
+
'spectrum-ToggleSwitch--quiet': !isEmphasized,
|
|
50
|
+
'is-disabled': isDisabled,
|
|
51
|
+
'is-hovered': isHovered
|
|
52
52
|
}, styleProps.className)
|
|
53
53
|
}, /*#__PURE__*/ (0, $cEq2J$react).createElement((0, $cEq2J$FocusRing), {
|
|
54
|
-
focusRingClass: (0, $cEq2J$classNames)((0, ($parcel$interopDefault($cEq2J$toggle_vars_cssmodulejs))),
|
|
54
|
+
focusRingClass: (0, $cEq2J$classNames)((0, ($parcel$interopDefault($cEq2J$toggle_vars_cssmodulejs))), 'focus-ring'),
|
|
55
55
|
autoFocus: autoFocus
|
|
56
56
|
}, /*#__PURE__*/ (0, $cEq2J$react).createElement("input", {
|
|
57
57
|
...inputProps,
|
|
58
58
|
ref: inputRef,
|
|
59
|
-
className: (0, $cEq2J$classNames)((0, ($parcel$interopDefault($cEq2J$toggle_vars_cssmodulejs))),
|
|
59
|
+
className: (0, $cEq2J$classNames)((0, ($parcel$interopDefault($cEq2J$toggle_vars_cssmodulejs))), 'spectrum-ToggleSwitch-input')
|
|
60
60
|
})), /*#__PURE__*/ (0, $cEq2J$react).createElement("span", {
|
|
61
|
-
className: (0, $cEq2J$classNames)((0, ($parcel$interopDefault($cEq2J$toggle_vars_cssmodulejs))),
|
|
61
|
+
className: (0, $cEq2J$classNames)((0, ($parcel$interopDefault($cEq2J$toggle_vars_cssmodulejs))), 'spectrum-ToggleSwitch-switch')
|
|
62
62
|
}), children && /*#__PURE__*/ (0, $cEq2J$react).createElement("span", {
|
|
63
|
-
className: (0, $cEq2J$classNames)((0, ($parcel$interopDefault($cEq2J$toggle_vars_cssmodulejs))),
|
|
63
|
+
className: (0, $cEq2J$classNames)((0, ($parcel$interopDefault($cEq2J$toggle_vars_cssmodulejs))), 'spectrum-ToggleSwitch-label')
|
|
64
64
|
}, children));
|
|
65
65
|
}
|
|
66
66
|
/**
|
|
@@ -70,4 +70,4 @@ function $8341c396cee1c5fc$var$Switch(props, ref) {
|
|
|
70
70
|
|
|
71
71
|
|
|
72
72
|
export {$8341c396cee1c5fc$export$b5d5cf8927ab7262 as Switch};
|
|
73
|
-
//# sourceMappingURL=Switch.
|
|
73
|
+
//# sourceMappingURL=Switch.module.js.map
|
package/dist/Switch.module.js
CHANGED
|
@@ -45,22 +45,22 @@ function $8341c396cee1c5fc$var$Switch(props, ref) {
|
|
|
45
45
|
...styleProps,
|
|
46
46
|
...hoverProps,
|
|
47
47
|
ref: domRef,
|
|
48
|
-
className: (0, $cEq2J$classNames)((0, ($parcel$interopDefault($cEq2J$toggle_vars_cssmodulejs))),
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
48
|
+
className: (0, $cEq2J$classNames)((0, ($parcel$interopDefault($cEq2J$toggle_vars_cssmodulejs))), 'spectrum-ToggleSwitch', {
|
|
49
|
+
'spectrum-ToggleSwitch--quiet': !isEmphasized,
|
|
50
|
+
'is-disabled': isDisabled,
|
|
51
|
+
'is-hovered': isHovered
|
|
52
52
|
}, styleProps.className)
|
|
53
53
|
}, /*#__PURE__*/ (0, $cEq2J$react).createElement((0, $cEq2J$FocusRing), {
|
|
54
|
-
focusRingClass: (0, $cEq2J$classNames)((0, ($parcel$interopDefault($cEq2J$toggle_vars_cssmodulejs))),
|
|
54
|
+
focusRingClass: (0, $cEq2J$classNames)((0, ($parcel$interopDefault($cEq2J$toggle_vars_cssmodulejs))), 'focus-ring'),
|
|
55
55
|
autoFocus: autoFocus
|
|
56
56
|
}, /*#__PURE__*/ (0, $cEq2J$react).createElement("input", {
|
|
57
57
|
...inputProps,
|
|
58
58
|
ref: inputRef,
|
|
59
|
-
className: (0, $cEq2J$classNames)((0, ($parcel$interopDefault($cEq2J$toggle_vars_cssmodulejs))),
|
|
59
|
+
className: (0, $cEq2J$classNames)((0, ($parcel$interopDefault($cEq2J$toggle_vars_cssmodulejs))), 'spectrum-ToggleSwitch-input')
|
|
60
60
|
})), /*#__PURE__*/ (0, $cEq2J$react).createElement("span", {
|
|
61
|
-
className: (0, $cEq2J$classNames)((0, ($parcel$interopDefault($cEq2J$toggle_vars_cssmodulejs))),
|
|
61
|
+
className: (0, $cEq2J$classNames)((0, ($parcel$interopDefault($cEq2J$toggle_vars_cssmodulejs))), 'spectrum-ToggleSwitch-switch')
|
|
62
62
|
}), children && /*#__PURE__*/ (0, $cEq2J$react).createElement("span", {
|
|
63
|
-
className: (0, $cEq2J$classNames)((0, ($parcel$interopDefault($cEq2J$toggle_vars_cssmodulejs))),
|
|
63
|
+
className: (0, $cEq2J$classNames)((0, ($parcel$interopDefault($cEq2J$toggle_vars_cssmodulejs))), 'spectrum-ToggleSwitch-label')
|
|
64
64
|
}, children));
|
|
65
65
|
}
|
|
66
66
|
/**
|
package/dist/toggle_vars_css.mjs
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@react-spectrum/switch",
|
|
3
|
-
"version": "3.5.
|
|
3
|
+
"version": "3.5.6",
|
|
4
4
|
"description": "Spectrum UI components in React",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"main": "dist/main.js",
|
|
@@ -36,13 +36,13 @@
|
|
|
36
36
|
"url": "https://github.com/adobe/react-spectrum"
|
|
37
37
|
},
|
|
38
38
|
"dependencies": {
|
|
39
|
-
"@react-aria/focus": "^3.
|
|
40
|
-
"@react-aria/interactions": "^3.
|
|
41
|
-
"@react-aria/switch": "^3.6.
|
|
42
|
-
"@react-spectrum/utils": "^3.11.
|
|
43
|
-
"@react-stately/toggle": "^3.7.
|
|
44
|
-
"@react-types/shared": "^3.
|
|
45
|
-
"@react-types/switch": "^3.5.
|
|
39
|
+
"@react-aria/focus": "^3.18.0",
|
|
40
|
+
"@react-aria/interactions": "^3.22.0",
|
|
41
|
+
"@react-aria/switch": "^3.6.5",
|
|
42
|
+
"@react-spectrum/utils": "^3.11.8",
|
|
43
|
+
"@react-stately/toggle": "^3.7.5",
|
|
44
|
+
"@react-types/shared": "^3.24.0",
|
|
45
|
+
"@react-types/switch": "^3.5.4",
|
|
46
46
|
"@swc/helpers": "^0.5.0"
|
|
47
47
|
},
|
|
48
48
|
"devDependencies": {
|
|
@@ -50,10 +50,10 @@
|
|
|
50
50
|
},
|
|
51
51
|
"peerDependencies": {
|
|
52
52
|
"@react-spectrum/provider": "^3.0.0",
|
|
53
|
-
"react": "^16.8.0 || ^17.0.0-rc.1 || ^18.0.0"
|
|
53
|
+
"react": "^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 || ^19.0.0"
|
|
54
54
|
},
|
|
55
55
|
"publishConfig": {
|
|
56
56
|
"access": "public"
|
|
57
57
|
},
|
|
58
|
-
"gitHead": "
|
|
58
|
+
"gitHead": "86d80e3216bc32e75108831cf3a5a720bc849206"
|
|
59
59
|
}
|