@react-spectrum/switch 3.1.5 → 3.1.8

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.
Files changed (3) hide show
  1. package/dist/main.js +54 -54
  2. package/dist/module.js +54 -54
  3. package/package.json +11 -11
package/dist/main.js CHANGED
@@ -1,11 +1,11 @@
1
1
  require("./main.css");
2
- var $iaZbI$reactspectrumutils = require("@react-spectrum/utils");
3
- var $iaZbI$reactariafocus = require("@react-aria/focus");
4
- var $iaZbI$react = require("react");
5
- var $iaZbI$reactariainteractions = require("@react-aria/interactions");
6
- var $iaZbI$reactspectrumprovider = require("@react-spectrum/provider");
7
- var $iaZbI$reactariaswitch = require("@react-aria/switch");
8
- var $iaZbI$reactstatelytoggle = require("@react-stately/toggle");
2
+ var $3fKzX$reactspectrumutils = require("@react-spectrum/utils");
3
+ var $3fKzX$reactariafocus = require("@react-aria/focus");
4
+ var $3fKzX$react = require("react");
5
+ var $3fKzX$reactariainteractions = require("@react-aria/interactions");
6
+ var $3fKzX$reactspectrumprovider = require("@react-spectrum/provider");
7
+ var $3fKzX$reactariaswitch = require("@react-aria/switch");
8
+ var $3fKzX$reactstatelytoggle = require("@react-stately/toggle");
9
9
 
10
10
  function $parcel$exportWildcard(dest, source) {
11
11
  Object.keys(source).forEach(function(key) {
@@ -29,84 +29,84 @@ function $parcel$interopDefault(a) {
29
29
  function $parcel$export(e, n, v, s) {
30
30
  Object.defineProperty(e, n, {get: v, set: s, enumerable: true, configurable: true});
31
31
  }
32
- var $f878173124962684$exports = {};
32
+ var $e216104aee091306$exports = {};
33
33
 
34
- $parcel$export($f878173124962684$exports, "Switch", () => $f878173124962684$export$b5d5cf8927ab7262);
34
+ $parcel$export($e216104aee091306$exports, "Switch", () => $e216104aee091306$export$b5d5cf8927ab7262);
35
35
 
36
36
 
37
37
 
38
- var $e3310a3d26e16aaf$exports = {};
38
+ var $faeb9d1b92049ba7$exports = {};
39
39
 
40
- $parcel$export($e3310a3d26e16aaf$exports, "spectrum-ToggleSwitch", () => $e3310a3d26e16aaf$export$89a9162656c0c38c, (v) => $e3310a3d26e16aaf$export$89a9162656c0c38c = v);
41
- $parcel$export($e3310a3d26e16aaf$exports, "spectrum-ToggleSwitch-input", () => $e3310a3d26e16aaf$export$38df7ea4ffef819a, (v) => $e3310a3d26e16aaf$export$38df7ea4ffef819a = v);
42
- $parcel$export($e3310a3d26e16aaf$exports, "spectrum-ToggleSwitch-switch", () => $e3310a3d26e16aaf$export$b82d06d1b520a22f, (v) => $e3310a3d26e16aaf$export$b82d06d1b520a22f = v);
43
- $parcel$export($e3310a3d26e16aaf$exports, "focus-ring", () => $e3310a3d26e16aaf$export$f39a09f249340e2a, (v) => $e3310a3d26e16aaf$export$f39a09f249340e2a = v);
44
- $parcel$export($e3310a3d26e16aaf$exports, "spectrum-ToggleSwitch-label", () => $e3310a3d26e16aaf$export$8f1a69021a3897b2, (v) => $e3310a3d26e16aaf$export$8f1a69021a3897b2 = v);
45
- $parcel$export($e3310a3d26e16aaf$exports, "is-hovered", () => $e3310a3d26e16aaf$export$b8813cd5d7824ce7, (v) => $e3310a3d26e16aaf$export$b8813cd5d7824ce7 = v);
46
- $parcel$export($e3310a3d26e16aaf$exports, "spectrum-ToggleSwitch--quiet", () => $e3310a3d26e16aaf$export$ce1b1dcfc10f3df4, (v) => $e3310a3d26e16aaf$export$ce1b1dcfc10f3df4 = v);
47
- $parcel$export($e3310a3d26e16aaf$exports, "spectrum-ToggleSwitch--ab", () => $e3310a3d26e16aaf$export$dc5a33fddabf5882, (v) => $e3310a3d26e16aaf$export$dc5a33fddabf5882 = v);
48
- var $e3310a3d26e16aaf$export$89a9162656c0c38c;
49
- var $e3310a3d26e16aaf$export$38df7ea4ffef819a;
50
- var $e3310a3d26e16aaf$export$b82d06d1b520a22f;
51
- var $e3310a3d26e16aaf$export$f39a09f249340e2a;
52
- var $e3310a3d26e16aaf$export$8f1a69021a3897b2;
53
- var $e3310a3d26e16aaf$export$b8813cd5d7824ce7;
54
- var $e3310a3d26e16aaf$export$ce1b1dcfc10f3df4;
55
- var $e3310a3d26e16aaf$export$dc5a33fddabf5882;
56
- $e3310a3d26e16aaf$export$89a9162656c0c38c = "spectrum-ToggleSwitch_3526dd";
57
- $e3310a3d26e16aaf$export$38df7ea4ffef819a = "spectrum-ToggleSwitch-input_3526dd";
58
- $e3310a3d26e16aaf$export$b82d06d1b520a22f = "spectrum-ToggleSwitch-switch_3526dd";
59
- $e3310a3d26e16aaf$export$f39a09f249340e2a = "focus-ring_3526dd";
60
- $e3310a3d26e16aaf$export$8f1a69021a3897b2 = "spectrum-ToggleSwitch-label_3526dd";
61
- $e3310a3d26e16aaf$export$b8813cd5d7824ce7 = "is-hovered_3526dd";
62
- $e3310a3d26e16aaf$export$ce1b1dcfc10f3df4 = "spectrum-ToggleSwitch--quiet_3526dd";
63
- $e3310a3d26e16aaf$export$dc5a33fddabf5882 = "spectrum-ToggleSwitch--ab_3526dd";
40
+ $parcel$export($faeb9d1b92049ba7$exports, "spectrum-ToggleSwitch", () => $faeb9d1b92049ba7$export$89a9162656c0c38c, (v) => $faeb9d1b92049ba7$export$89a9162656c0c38c = v);
41
+ $parcel$export($faeb9d1b92049ba7$exports, "spectrum-ToggleSwitch-input", () => $faeb9d1b92049ba7$export$38df7ea4ffef819a, (v) => $faeb9d1b92049ba7$export$38df7ea4ffef819a = v);
42
+ $parcel$export($faeb9d1b92049ba7$exports, "spectrum-ToggleSwitch-switch", () => $faeb9d1b92049ba7$export$b82d06d1b520a22f, (v) => $faeb9d1b92049ba7$export$b82d06d1b520a22f = v);
43
+ $parcel$export($faeb9d1b92049ba7$exports, "focus-ring", () => $faeb9d1b92049ba7$export$f39a09f249340e2a, (v) => $faeb9d1b92049ba7$export$f39a09f249340e2a = v);
44
+ $parcel$export($faeb9d1b92049ba7$exports, "spectrum-ToggleSwitch-label", () => $faeb9d1b92049ba7$export$8f1a69021a3897b2, (v) => $faeb9d1b92049ba7$export$8f1a69021a3897b2 = v);
45
+ $parcel$export($faeb9d1b92049ba7$exports, "is-hovered", () => $faeb9d1b92049ba7$export$b8813cd5d7824ce7, (v) => $faeb9d1b92049ba7$export$b8813cd5d7824ce7 = v);
46
+ $parcel$export($faeb9d1b92049ba7$exports, "spectrum-ToggleSwitch--quiet", () => $faeb9d1b92049ba7$export$ce1b1dcfc10f3df4, (v) => $faeb9d1b92049ba7$export$ce1b1dcfc10f3df4 = v);
47
+ $parcel$export($faeb9d1b92049ba7$exports, "spectrum-ToggleSwitch--ab", () => $faeb9d1b92049ba7$export$dc5a33fddabf5882, (v) => $faeb9d1b92049ba7$export$dc5a33fddabf5882 = v);
48
+ var $faeb9d1b92049ba7$export$89a9162656c0c38c;
49
+ var $faeb9d1b92049ba7$export$38df7ea4ffef819a;
50
+ var $faeb9d1b92049ba7$export$b82d06d1b520a22f;
51
+ var $faeb9d1b92049ba7$export$f39a09f249340e2a;
52
+ var $faeb9d1b92049ba7$export$8f1a69021a3897b2;
53
+ var $faeb9d1b92049ba7$export$b8813cd5d7824ce7;
54
+ var $faeb9d1b92049ba7$export$ce1b1dcfc10f3df4;
55
+ var $faeb9d1b92049ba7$export$dc5a33fddabf5882;
56
+ $faeb9d1b92049ba7$export$89a9162656c0c38c = "spectrum-ToggleSwitch_3526dd";
57
+ $faeb9d1b92049ba7$export$38df7ea4ffef819a = "spectrum-ToggleSwitch-input_3526dd";
58
+ $faeb9d1b92049ba7$export$b82d06d1b520a22f = "spectrum-ToggleSwitch-switch_3526dd";
59
+ $faeb9d1b92049ba7$export$f39a09f249340e2a = "focus-ring_3526dd";
60
+ $faeb9d1b92049ba7$export$8f1a69021a3897b2 = "spectrum-ToggleSwitch-label_3526dd";
61
+ $faeb9d1b92049ba7$export$b8813cd5d7824ce7 = "is-hovered_3526dd";
62
+ $faeb9d1b92049ba7$export$ce1b1dcfc10f3df4 = "spectrum-ToggleSwitch--quiet_3526dd";
63
+ $faeb9d1b92049ba7$export$dc5a33fddabf5882 = "spectrum-ToggleSwitch--ab_3526dd";
64
64
 
65
65
 
66
66
 
67
67
 
68
68
 
69
69
 
70
- function $f878173124962684$var$Switch(props, ref) {
71
- props = $iaZbI$reactspectrumprovider.useProviderProps(props);
70
+ function $e216104aee091306$var$Switch(props, ref) {
71
+ props = $3fKzX$reactspectrumprovider.useProviderProps(props);
72
72
  let { isEmphasized: isEmphasized = false , isDisabled: isDisabled = false , autoFocus: autoFocus , children: children , ...otherProps } = props;
73
- let { styleProps: styleProps } = $iaZbI$reactspectrumutils.useStyleProps(otherProps);
74
- let { hoverProps: hoverProps , isHovered: isHovered } = $iaZbI$reactariainteractions.useHover({
73
+ let { styleProps: styleProps } = $3fKzX$reactspectrumutils.useStyleProps(otherProps);
74
+ let { hoverProps: hoverProps , isHovered: isHovered } = $3fKzX$reactariainteractions.useHover({
75
75
  isDisabled: isDisabled
76
76
  });
77
- let inputRef = $iaZbI$react.useRef(null);
78
- let domRef = $iaZbI$reactspectrumutils.useFocusableRef(ref, inputRef);
79
- let state = $iaZbI$reactstatelytoggle.useToggleState(props);
80
- let { inputProps: inputProps } = $iaZbI$reactariaswitch.useSwitch(props, state, inputRef);
81
- return(/*#__PURE__*/ ($parcel$interopDefault($iaZbI$react)).createElement("label", {
77
+ let inputRef = $3fKzX$react.useRef(null);
78
+ let domRef = $3fKzX$reactspectrumutils.useFocusableRef(ref, inputRef);
79
+ let state = $3fKzX$reactstatelytoggle.useToggleState(props);
80
+ let { inputProps: inputProps } = $3fKzX$reactariaswitch.useSwitch(props, state, inputRef);
81
+ return(/*#__PURE__*/ ($parcel$interopDefault($3fKzX$react)).createElement("label", {
82
82
  ...styleProps,
83
83
  ...hoverProps,
84
84
  ref: domRef,
85
- className: $iaZbI$reactspectrumutils.classNames((/*@__PURE__*/$parcel$interopDefault($e3310a3d26e16aaf$exports)), 'spectrum-ToggleSwitch', {
85
+ className: $3fKzX$reactspectrumutils.classNames((/*@__PURE__*/$parcel$interopDefault($faeb9d1b92049ba7$exports)), 'spectrum-ToggleSwitch', {
86
86
  'spectrum-ToggleSwitch--quiet': !isEmphasized,
87
87
  'is-disabled': isDisabled,
88
88
  'is-hovered': isHovered
89
89
  }, styleProps.className)
90
- }, /*#__PURE__*/ ($parcel$interopDefault($iaZbI$react)).createElement($iaZbI$reactariafocus.FocusRing, {
91
- focusRingClass: $iaZbI$reactspectrumutils.classNames((/*@__PURE__*/$parcel$interopDefault($e3310a3d26e16aaf$exports)), 'focus-ring'),
90
+ }, /*#__PURE__*/ ($parcel$interopDefault($3fKzX$react)).createElement($3fKzX$reactariafocus.FocusRing, {
91
+ focusRingClass: $3fKzX$reactspectrumutils.classNames((/*@__PURE__*/$parcel$interopDefault($faeb9d1b92049ba7$exports)), 'focus-ring'),
92
92
  autoFocus: autoFocus
93
- }, /*#__PURE__*/ ($parcel$interopDefault($iaZbI$react)).createElement("input", {
93
+ }, /*#__PURE__*/ ($parcel$interopDefault($3fKzX$react)).createElement("input", {
94
94
  ...inputProps,
95
95
  ref: inputRef,
96
- className: $iaZbI$reactspectrumutils.classNames((/*@__PURE__*/$parcel$interopDefault($e3310a3d26e16aaf$exports)), 'spectrum-ToggleSwitch-input')
97
- })), /*#__PURE__*/ ($parcel$interopDefault($iaZbI$react)).createElement("span", {
98
- className: $iaZbI$reactspectrumutils.classNames((/*@__PURE__*/$parcel$interopDefault($e3310a3d26e16aaf$exports)), 'spectrum-ToggleSwitch-switch')
99
- }), children && /*#__PURE__*/ ($parcel$interopDefault($iaZbI$react)).createElement("span", {
100
- className: $iaZbI$reactspectrumutils.classNames((/*@__PURE__*/$parcel$interopDefault($e3310a3d26e16aaf$exports)), 'spectrum-ToggleSwitch-label')
96
+ className: $3fKzX$reactspectrumutils.classNames((/*@__PURE__*/$parcel$interopDefault($faeb9d1b92049ba7$exports)), 'spectrum-ToggleSwitch-input')
97
+ })), /*#__PURE__*/ ($parcel$interopDefault($3fKzX$react)).createElement("span", {
98
+ className: $3fKzX$reactspectrumutils.classNames((/*@__PURE__*/$parcel$interopDefault($faeb9d1b92049ba7$exports)), 'spectrum-ToggleSwitch-switch')
99
+ }), children && /*#__PURE__*/ ($parcel$interopDefault($3fKzX$react)).createElement("span", {
100
+ className: $3fKzX$reactspectrumutils.classNames((/*@__PURE__*/$parcel$interopDefault($faeb9d1b92049ba7$exports)), 'spectrum-ToggleSwitch-label')
101
101
  }, children)));
102
102
  }
103
103
  /**
104
104
  * Switches allow users to turn an individual option on or off.
105
105
  * They are usually used to activate or deactivate a specific setting.
106
- */ const $f878173124962684$export$b5d5cf8927ab7262 = /*#__PURE__*/ $iaZbI$react.forwardRef($f878173124962684$var$Switch);
106
+ */ const $e216104aee091306$export$b5d5cf8927ab7262 = /*#__PURE__*/ $3fKzX$react.forwardRef($e216104aee091306$var$Switch);
107
107
 
108
108
 
109
- $parcel$exportWildcard(module.exports, $f878173124962684$exports);
109
+ $parcel$exportWildcard(module.exports, $e216104aee091306$exports);
110
110
 
111
111
 
112
112
  //# sourceMappingURL=main.js.map
package/dist/module.js CHANGED
@@ -1,11 +1,11 @@
1
1
  import "./main.css";
2
- import {useStyleProps as $eGwyD$useStyleProps, useFocusableRef as $eGwyD$useFocusableRef, classNames as $eGwyD$classNames} from "@react-spectrum/utils";
3
- import {FocusRing as $eGwyD$FocusRing} from "@react-aria/focus";
4
- import $eGwyD$react, {useRef as $eGwyD$useRef, forwardRef as $eGwyD$forwardRef} from "react";
5
- import {useHover as $eGwyD$useHover} from "@react-aria/interactions";
6
- import {useProviderProps as $eGwyD$useProviderProps} from "@react-spectrum/provider";
7
- import {useSwitch as $eGwyD$useSwitch} from "@react-aria/switch";
8
- import {useToggleState as $eGwyD$useToggleState} from "@react-stately/toggle";
2
+ import {useStyleProps as $8Tpjb$useStyleProps, useFocusableRef as $8Tpjb$useFocusableRef, classNames as $8Tpjb$classNames} from "@react-spectrum/utils";
3
+ import {FocusRing as $8Tpjb$FocusRing} from "@react-aria/focus";
4
+ import $8Tpjb$react, {useRef as $8Tpjb$useRef, forwardRef as $8Tpjb$forwardRef} from "react";
5
+ import {useHover as $8Tpjb$useHover} from "@react-aria/interactions";
6
+ import {useProviderProps as $8Tpjb$useProviderProps} from "@react-spectrum/provider";
7
+ import {useSwitch as $8Tpjb$useSwitch} from "@react-aria/switch";
8
+ import {useToggleState as $8Tpjb$useToggleState} from "@react-stately/toggle";
9
9
 
10
10
  function $parcel$interopDefault(a) {
11
11
  return a && a.__esModule ? a.default : a;
@@ -13,84 +13,84 @@ function $parcel$interopDefault(a) {
13
13
  function $parcel$export(e, n, v, s) {
14
14
  Object.defineProperty(e, n, {get: v, set: s, enumerable: true, configurable: true});
15
15
  }
16
- var $ceb92c6cc404b1a5$exports = {};
16
+ var $8341c396cee1c5fc$exports = {};
17
17
 
18
- $parcel$export($ceb92c6cc404b1a5$exports, "Switch", () => $ceb92c6cc404b1a5$export$b5d5cf8927ab7262);
18
+ $parcel$export($8341c396cee1c5fc$exports, "Switch", () => $8341c396cee1c5fc$export$b5d5cf8927ab7262);
19
19
 
20
20
 
21
21
 
22
- var $f57785370c8eb19b$exports = {};
22
+ var $dfcff93ab25bb9b3$exports = {};
23
23
 
24
- $parcel$export($f57785370c8eb19b$exports, "spectrum-ToggleSwitch", () => $f57785370c8eb19b$export$89a9162656c0c38c, (v) => $f57785370c8eb19b$export$89a9162656c0c38c = v);
25
- $parcel$export($f57785370c8eb19b$exports, "spectrum-ToggleSwitch-input", () => $f57785370c8eb19b$export$38df7ea4ffef819a, (v) => $f57785370c8eb19b$export$38df7ea4ffef819a = v);
26
- $parcel$export($f57785370c8eb19b$exports, "spectrum-ToggleSwitch-switch", () => $f57785370c8eb19b$export$b82d06d1b520a22f, (v) => $f57785370c8eb19b$export$b82d06d1b520a22f = v);
27
- $parcel$export($f57785370c8eb19b$exports, "focus-ring", () => $f57785370c8eb19b$export$f39a09f249340e2a, (v) => $f57785370c8eb19b$export$f39a09f249340e2a = v);
28
- $parcel$export($f57785370c8eb19b$exports, "spectrum-ToggleSwitch-label", () => $f57785370c8eb19b$export$8f1a69021a3897b2, (v) => $f57785370c8eb19b$export$8f1a69021a3897b2 = v);
29
- $parcel$export($f57785370c8eb19b$exports, "is-hovered", () => $f57785370c8eb19b$export$b8813cd5d7824ce7, (v) => $f57785370c8eb19b$export$b8813cd5d7824ce7 = v);
30
- $parcel$export($f57785370c8eb19b$exports, "spectrum-ToggleSwitch--quiet", () => $f57785370c8eb19b$export$ce1b1dcfc10f3df4, (v) => $f57785370c8eb19b$export$ce1b1dcfc10f3df4 = v);
31
- $parcel$export($f57785370c8eb19b$exports, "spectrum-ToggleSwitch--ab", () => $f57785370c8eb19b$export$dc5a33fddabf5882, (v) => $f57785370c8eb19b$export$dc5a33fddabf5882 = v);
32
- var $f57785370c8eb19b$export$89a9162656c0c38c;
33
- var $f57785370c8eb19b$export$38df7ea4ffef819a;
34
- var $f57785370c8eb19b$export$b82d06d1b520a22f;
35
- var $f57785370c8eb19b$export$f39a09f249340e2a;
36
- var $f57785370c8eb19b$export$8f1a69021a3897b2;
37
- var $f57785370c8eb19b$export$b8813cd5d7824ce7;
38
- var $f57785370c8eb19b$export$ce1b1dcfc10f3df4;
39
- var $f57785370c8eb19b$export$dc5a33fddabf5882;
40
- $f57785370c8eb19b$export$89a9162656c0c38c = "spectrum-ToggleSwitch_3526dd";
41
- $f57785370c8eb19b$export$38df7ea4ffef819a = "spectrum-ToggleSwitch-input_3526dd";
42
- $f57785370c8eb19b$export$b82d06d1b520a22f = "spectrum-ToggleSwitch-switch_3526dd";
43
- $f57785370c8eb19b$export$f39a09f249340e2a = "focus-ring_3526dd";
44
- $f57785370c8eb19b$export$8f1a69021a3897b2 = "spectrum-ToggleSwitch-label_3526dd";
45
- $f57785370c8eb19b$export$b8813cd5d7824ce7 = "is-hovered_3526dd";
46
- $f57785370c8eb19b$export$ce1b1dcfc10f3df4 = "spectrum-ToggleSwitch--quiet_3526dd";
47
- $f57785370c8eb19b$export$dc5a33fddabf5882 = "spectrum-ToggleSwitch--ab_3526dd";
24
+ $parcel$export($dfcff93ab25bb9b3$exports, "spectrum-ToggleSwitch", () => $dfcff93ab25bb9b3$export$89a9162656c0c38c, (v) => $dfcff93ab25bb9b3$export$89a9162656c0c38c = v);
25
+ $parcel$export($dfcff93ab25bb9b3$exports, "spectrum-ToggleSwitch-input", () => $dfcff93ab25bb9b3$export$38df7ea4ffef819a, (v) => $dfcff93ab25bb9b3$export$38df7ea4ffef819a = v);
26
+ $parcel$export($dfcff93ab25bb9b3$exports, "spectrum-ToggleSwitch-switch", () => $dfcff93ab25bb9b3$export$b82d06d1b520a22f, (v) => $dfcff93ab25bb9b3$export$b82d06d1b520a22f = v);
27
+ $parcel$export($dfcff93ab25bb9b3$exports, "focus-ring", () => $dfcff93ab25bb9b3$export$f39a09f249340e2a, (v) => $dfcff93ab25bb9b3$export$f39a09f249340e2a = v);
28
+ $parcel$export($dfcff93ab25bb9b3$exports, "spectrum-ToggleSwitch-label", () => $dfcff93ab25bb9b3$export$8f1a69021a3897b2, (v) => $dfcff93ab25bb9b3$export$8f1a69021a3897b2 = v);
29
+ $parcel$export($dfcff93ab25bb9b3$exports, "is-hovered", () => $dfcff93ab25bb9b3$export$b8813cd5d7824ce7, (v) => $dfcff93ab25bb9b3$export$b8813cd5d7824ce7 = v);
30
+ $parcel$export($dfcff93ab25bb9b3$exports, "spectrum-ToggleSwitch--quiet", () => $dfcff93ab25bb9b3$export$ce1b1dcfc10f3df4, (v) => $dfcff93ab25bb9b3$export$ce1b1dcfc10f3df4 = v);
31
+ $parcel$export($dfcff93ab25bb9b3$exports, "spectrum-ToggleSwitch--ab", () => $dfcff93ab25bb9b3$export$dc5a33fddabf5882, (v) => $dfcff93ab25bb9b3$export$dc5a33fddabf5882 = v);
32
+ var $dfcff93ab25bb9b3$export$89a9162656c0c38c;
33
+ var $dfcff93ab25bb9b3$export$38df7ea4ffef819a;
34
+ var $dfcff93ab25bb9b3$export$b82d06d1b520a22f;
35
+ var $dfcff93ab25bb9b3$export$f39a09f249340e2a;
36
+ var $dfcff93ab25bb9b3$export$8f1a69021a3897b2;
37
+ var $dfcff93ab25bb9b3$export$b8813cd5d7824ce7;
38
+ var $dfcff93ab25bb9b3$export$ce1b1dcfc10f3df4;
39
+ var $dfcff93ab25bb9b3$export$dc5a33fddabf5882;
40
+ $dfcff93ab25bb9b3$export$89a9162656c0c38c = "spectrum-ToggleSwitch_3526dd";
41
+ $dfcff93ab25bb9b3$export$38df7ea4ffef819a = "spectrum-ToggleSwitch-input_3526dd";
42
+ $dfcff93ab25bb9b3$export$b82d06d1b520a22f = "spectrum-ToggleSwitch-switch_3526dd";
43
+ $dfcff93ab25bb9b3$export$f39a09f249340e2a = "focus-ring_3526dd";
44
+ $dfcff93ab25bb9b3$export$8f1a69021a3897b2 = "spectrum-ToggleSwitch-label_3526dd";
45
+ $dfcff93ab25bb9b3$export$b8813cd5d7824ce7 = "is-hovered_3526dd";
46
+ $dfcff93ab25bb9b3$export$ce1b1dcfc10f3df4 = "spectrum-ToggleSwitch--quiet_3526dd";
47
+ $dfcff93ab25bb9b3$export$dc5a33fddabf5882 = "spectrum-ToggleSwitch--ab_3526dd";
48
48
 
49
49
 
50
50
 
51
51
 
52
52
 
53
53
 
54
- function $ceb92c6cc404b1a5$var$Switch(props, ref) {
55
- props = $eGwyD$useProviderProps(props);
54
+ function $8341c396cee1c5fc$var$Switch(props, ref) {
55
+ props = $8Tpjb$useProviderProps(props);
56
56
  let { isEmphasized: isEmphasized = false , isDisabled: isDisabled = false , autoFocus: autoFocus , children: children , ...otherProps } = props;
57
- let { styleProps: styleProps } = $eGwyD$useStyleProps(otherProps);
58
- let { hoverProps: hoverProps , isHovered: isHovered } = $eGwyD$useHover({
57
+ let { styleProps: styleProps } = $8Tpjb$useStyleProps(otherProps);
58
+ let { hoverProps: hoverProps , isHovered: isHovered } = $8Tpjb$useHover({
59
59
  isDisabled: isDisabled
60
60
  });
61
- let inputRef = $eGwyD$useRef(null);
62
- let domRef = $eGwyD$useFocusableRef(ref, inputRef);
63
- let state = $eGwyD$useToggleState(props);
64
- let { inputProps: inputProps } = $eGwyD$useSwitch(props, state, inputRef);
65
- return(/*#__PURE__*/ $eGwyD$react.createElement("label", {
61
+ let inputRef = $8Tpjb$useRef(null);
62
+ let domRef = $8Tpjb$useFocusableRef(ref, inputRef);
63
+ let state = $8Tpjb$useToggleState(props);
64
+ let { inputProps: inputProps } = $8Tpjb$useSwitch(props, state, inputRef);
65
+ return(/*#__PURE__*/ $8Tpjb$react.createElement("label", {
66
66
  ...styleProps,
67
67
  ...hoverProps,
68
68
  ref: domRef,
69
- className: $eGwyD$classNames((/*@__PURE__*/$parcel$interopDefault($f57785370c8eb19b$exports)), 'spectrum-ToggleSwitch', {
69
+ className: $8Tpjb$classNames((/*@__PURE__*/$parcel$interopDefault($dfcff93ab25bb9b3$exports)), 'spectrum-ToggleSwitch', {
70
70
  'spectrum-ToggleSwitch--quiet': !isEmphasized,
71
71
  'is-disabled': isDisabled,
72
72
  'is-hovered': isHovered
73
73
  }, styleProps.className)
74
- }, /*#__PURE__*/ $eGwyD$react.createElement($eGwyD$FocusRing, {
75
- focusRingClass: $eGwyD$classNames((/*@__PURE__*/$parcel$interopDefault($f57785370c8eb19b$exports)), 'focus-ring'),
74
+ }, /*#__PURE__*/ $8Tpjb$react.createElement($8Tpjb$FocusRing, {
75
+ focusRingClass: $8Tpjb$classNames((/*@__PURE__*/$parcel$interopDefault($dfcff93ab25bb9b3$exports)), 'focus-ring'),
76
76
  autoFocus: autoFocus
77
- }, /*#__PURE__*/ $eGwyD$react.createElement("input", {
77
+ }, /*#__PURE__*/ $8Tpjb$react.createElement("input", {
78
78
  ...inputProps,
79
79
  ref: inputRef,
80
- className: $eGwyD$classNames((/*@__PURE__*/$parcel$interopDefault($f57785370c8eb19b$exports)), 'spectrum-ToggleSwitch-input')
81
- })), /*#__PURE__*/ $eGwyD$react.createElement("span", {
82
- className: $eGwyD$classNames((/*@__PURE__*/$parcel$interopDefault($f57785370c8eb19b$exports)), 'spectrum-ToggleSwitch-switch')
83
- }), children && /*#__PURE__*/ $eGwyD$react.createElement("span", {
84
- className: $eGwyD$classNames((/*@__PURE__*/$parcel$interopDefault($f57785370c8eb19b$exports)), 'spectrum-ToggleSwitch-label')
80
+ className: $8Tpjb$classNames((/*@__PURE__*/$parcel$interopDefault($dfcff93ab25bb9b3$exports)), 'spectrum-ToggleSwitch-input')
81
+ })), /*#__PURE__*/ $8Tpjb$react.createElement("span", {
82
+ className: $8Tpjb$classNames((/*@__PURE__*/$parcel$interopDefault($dfcff93ab25bb9b3$exports)), 'spectrum-ToggleSwitch-switch')
83
+ }), children && /*#__PURE__*/ $8Tpjb$react.createElement("span", {
84
+ className: $8Tpjb$classNames((/*@__PURE__*/$parcel$interopDefault($dfcff93ab25bb9b3$exports)), 'spectrum-ToggleSwitch-label')
85
85
  }, children)));
86
86
  }
87
87
  /**
88
88
  * Switches allow users to turn an individual option on or off.
89
89
  * They are usually used to activate or deactivate a specific setting.
90
- */ const $ceb92c6cc404b1a5$export$b5d5cf8927ab7262 = /*#__PURE__*/ $eGwyD$forwardRef($ceb92c6cc404b1a5$var$Switch);
90
+ */ const $8341c396cee1c5fc$export$b5d5cf8927ab7262 = /*#__PURE__*/ $8Tpjb$forwardRef($8341c396cee1c5fc$var$Switch);
91
91
 
92
92
 
93
93
 
94
94
 
95
- export {$ceb92c6cc404b1a5$export$b5d5cf8927ab7262 as Switch};
95
+ export {$8341c396cee1c5fc$export$b5d5cf8927ab7262 as Switch};
96
96
  //# sourceMappingURL=module.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@react-spectrum/switch",
3
- "version": "3.1.5",
3
+ "version": "3.1.8",
4
4
  "description": "Spectrum UI components in React",
5
5
  "license": "Apache-2.0",
6
6
  "main": "dist/main.js",
@@ -32,15 +32,15 @@
32
32
  },
33
33
  "dependencies": {
34
34
  "@babel/runtime": "^7.6.2",
35
- "@react-aria/focus": "^3.5.2",
36
- "@react-aria/interactions": "^3.8.1",
37
- "@react-aria/switch": "^3.1.5",
38
- "@react-aria/utils": "^3.11.2",
39
- "@react-spectrum/utils": "^3.6.5",
40
- "@react-stately/toggle": "^3.2.5",
41
- "@react-types/shared": "^3.11.1",
42
- "@react-types/switch": "^3.1.4",
43
- "@spectrum-icons/ui": "^3.2.3"
35
+ "@react-aria/focus": "^3.5.5",
36
+ "@react-aria/interactions": "^3.8.4",
37
+ "@react-aria/switch": "^3.1.8",
38
+ "@react-aria/utils": "^3.12.0",
39
+ "@react-spectrum/utils": "^3.6.8",
40
+ "@react-stately/toggle": "^3.2.7",
41
+ "@react-types/shared": "^3.12.0",
42
+ "@react-types/switch": "^3.1.6",
43
+ "@spectrum-icons/ui": "^3.2.6"
44
44
  },
45
45
  "devDependencies": {
46
46
  "@adobe/spectrum-css-temp": "3.0.0-alpha.1"
@@ -52,5 +52,5 @@
52
52
  "publishConfig": {
53
53
  "access": "public"
54
54
  },
55
- "gitHead": "404d41859b7d6f56201d7fc01bd9f22ae3512937"
55
+ "gitHead": "6a503b715e0dbbf92038cd7f08b1bcdde4c78e82"
56
56
  }