@tamagui/switch 2.0.0-rc.4 → 2.0.0-rc.40

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 (85) hide show
  1. package/dist/cjs/StyledContext.cjs +14 -12
  2. package/dist/cjs/StyledContext.native.js +20 -18
  3. package/dist/cjs/StyledContext.native.js.map +1 -1
  4. package/dist/cjs/Switch.cjs +76 -74
  5. package/dist/cjs/Switch.native.js +81 -80
  6. package/dist/cjs/Switch.native.js.map +1 -1
  7. package/dist/cjs/createSwitch.cjs +156 -144
  8. package/dist/cjs/createSwitch.native.js +161 -153
  9. package/dist/cjs/createSwitch.native.js.map +1 -1
  10. package/dist/cjs/index.cjs +15 -13
  11. package/dist/cjs/index.native.js +20 -18
  12. package/dist/cjs/index.native.js.map +1 -1
  13. package/dist/cjs/types.cjs +7 -5
  14. package/dist/cjs/types.native.js +7 -5
  15. package/dist/cjs/types.native.js.map +1 -1
  16. package/dist/cjs/useSwitchNative.cjs +12 -10
  17. package/dist/cjs/useSwitchNative.native.js +40 -33
  18. package/dist/cjs/useSwitchNative.native.js.map +1 -1
  19. package/dist/esm/StyledContext.mjs +2 -2
  20. package/dist/esm/StyledContext.native.js +2 -2
  21. package/dist/esm/Switch.mjs +61 -61
  22. package/dist/esm/Switch.mjs.map +1 -1
  23. package/dist/esm/Switch.native.js +65 -66
  24. package/dist/esm/Switch.native.js.map +1 -1
  25. package/dist/esm/createSwitch.mjs +124 -114
  26. package/dist/esm/createSwitch.mjs.map +1 -1
  27. package/dist/esm/createSwitch.native.js +129 -123
  28. package/dist/esm/createSwitch.native.js.map +1 -1
  29. package/dist/esm/index.js +8 -11
  30. package/dist/esm/index.js.map +1 -6
  31. package/dist/esm/useSwitchNative.native.js +11 -6
  32. package/dist/esm/useSwitchNative.native.js.map +1 -1
  33. package/dist/jsx/StyledContext.mjs +2 -2
  34. package/dist/jsx/StyledContext.native.js +20 -18
  35. package/dist/jsx/StyledContext.native.js.map +1 -1
  36. package/dist/jsx/Switch.mjs +61 -61
  37. package/dist/jsx/Switch.mjs.map +1 -1
  38. package/dist/jsx/Switch.native.js +81 -80
  39. package/dist/jsx/Switch.native.js.map +1 -1
  40. package/dist/jsx/createSwitch.mjs +124 -114
  41. package/dist/jsx/createSwitch.mjs.map +1 -1
  42. package/dist/jsx/createSwitch.native.js +161 -153
  43. package/dist/jsx/createSwitch.native.js.map +1 -1
  44. package/dist/jsx/index.js +8 -11
  45. package/dist/jsx/index.js.map +1 -6
  46. package/dist/jsx/index.native.js +20 -18
  47. package/dist/jsx/index.native.js.map +1 -1
  48. package/dist/jsx/types.native.js +7 -5
  49. package/dist/jsx/useSwitchNative.native.js +40 -33
  50. package/dist/jsx/useSwitchNative.native.js.map +1 -1
  51. package/package.json +17 -20
  52. package/types/createSwitch.d.ts +4 -4
  53. package/types/index.d.ts +4 -4
  54. package/dist/cjs/StyledContext.js +0 -28
  55. package/dist/cjs/StyledContext.js.map +0 -6
  56. package/dist/cjs/Switch.js +0 -93
  57. package/dist/cjs/Switch.js.map +0 -6
  58. package/dist/cjs/createSwitch.js +0 -146
  59. package/dist/cjs/createSwitch.js.map +0 -6
  60. package/dist/cjs/index.js +0 -31
  61. package/dist/cjs/index.js.map +0 -6
  62. package/dist/cjs/types.js +0 -14
  63. package/dist/cjs/types.js.map +0 -6
  64. package/dist/cjs/useSwitchNative.js +0 -23
  65. package/dist/cjs/useSwitchNative.js.map +0 -6
  66. package/dist/esm/StyledContext.js +0 -12
  67. package/dist/esm/StyledContext.js.map +0 -6
  68. package/dist/esm/Switch.js +0 -79
  69. package/dist/esm/Switch.js.map +0 -6
  70. package/dist/esm/createSwitch.js +0 -135
  71. package/dist/esm/createSwitch.js.map +0 -6
  72. package/dist/esm/types.js +0 -1
  73. package/dist/esm/types.js.map +0 -6
  74. package/dist/esm/useSwitchNative.js +0 -7
  75. package/dist/esm/useSwitchNative.js.map +0 -6
  76. package/dist/jsx/StyledContext.js +0 -12
  77. package/dist/jsx/StyledContext.js.map +0 -6
  78. package/dist/jsx/Switch.js +0 -79
  79. package/dist/jsx/Switch.js.map +0 -6
  80. package/dist/jsx/createSwitch.js +0 -135
  81. package/dist/jsx/createSwitch.js.map +0 -6
  82. package/dist/jsx/types.js +0 -1
  83. package/dist/jsx/types.js.map +0 -6
  84. package/dist/jsx/useSwitchNative.js +0 -7
  85. package/dist/jsx/useSwitchNative.js.map +0 -6
@@ -3,20 +3,22 @@ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
3
  var __getOwnPropNames = Object.getOwnPropertyNames;
4
4
  var __hasOwnProp = Object.prototype.hasOwnProperty;
5
5
  var __export = (target, all) => {
6
- for (var name in all) __defProp(target, name, {
7
- get: all[name],
8
- enumerable: !0
9
- });
10
- },
11
- __copyProps = (to, from, except, desc) => {
12
- if (from && typeof from == "object" || typeof from == "function") for (let key of __getOwnPropNames(from)) !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, {
6
+ for (var name in all) __defProp(target, name, {
7
+ get: all[name],
8
+ enumerable: true
9
+ });
10
+ };
11
+ var __copyProps = (to, from, except, desc) => {
12
+ if (from && typeof from === "object" || typeof from === "function") {
13
+ for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
13
14
  get: () => from[key],
14
15
  enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
15
16
  });
16
- return to;
17
- };
17
+ }
18
+ return to;
19
+ };
18
20
  var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
19
- value: !0
21
+ value: true
20
22
  }), mod);
21
23
  var StyledContext_exports = {};
22
24
  __export(StyledContext_exports, {
@@ -25,8 +27,8 @@ __export(StyledContext_exports, {
25
27
  module.exports = __toCommonJS(StyledContext_exports);
26
28
  var import_core = require("@tamagui/core");
27
29
  const SwitchStyledContext = (0, import_core.createStyledContext)({
28
- active: !1,
29
- disabled: !1,
30
+ active: false,
31
+ disabled: false,
30
32
  frameWidth: void 0,
31
33
  size: void 0,
32
34
  unstyled: process.env.TAMAGUI_HEADLESS === "1"
@@ -5,32 +5,34 @@ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
5
  var __getOwnPropNames = Object.getOwnPropertyNames;
6
6
  var __hasOwnProp = Object.prototype.hasOwnProperty;
7
7
  var __export = (target, all) => {
8
- for (var name in all) __defProp(target, name, {
9
- get: all[name],
10
- enumerable: !0
11
- });
12
- },
13
- __copyProps = (to, from, except, desc) => {
14
- if (from && typeof from == "object" || typeof from == "function") for (let key of __getOwnPropNames(from)) !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, {
8
+ for (var name in all) __defProp(target, name, {
9
+ get: all[name],
10
+ enumerable: true
11
+ });
12
+ };
13
+ var __copyProps = (to, from, except, desc) => {
14
+ if (from && typeof from === "object" || typeof from === "function") {
15
+ for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
15
16
  get: () => from[key],
16
17
  enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
17
18
  });
18
- return to;
19
- };
19
+ }
20
+ return to;
21
+ };
20
22
  var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
21
- value: !0
23
+ value: true
22
24
  }), mod);
23
25
  var StyledContext_exports = {};
24
26
  __export(StyledContext_exports, {
25
27
  SwitchStyledContext: () => SwitchStyledContext
26
28
  });
27
29
  module.exports = __toCommonJS(StyledContext_exports);
28
- var import_core = require("@tamagui/core"),
29
- SwitchStyledContext = (0, import_core.createStyledContext)({
30
- active: !1,
31
- disabled: !1,
32
- frameWidth: void 0,
33
- size: void 0,
34
- unstyled: process.env.TAMAGUI_HEADLESS === "1"
35
- });
30
+ var import_core = require("@tamagui/core");
31
+ var SwitchStyledContext = (0, import_core.createStyledContext)({
32
+ active: false,
33
+ disabled: false,
34
+ frameWidth: void 0,
35
+ size: void 0,
36
+ unstyled: process.env.TAMAGUI_HEADLESS === "1"
37
+ });
36
38
  //# sourceMappingURL=StyledContext.native.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["__toCommonJS","mod","__copyProps","__defProp","value","StyledContext_exports","__export","SwitchStyledContext","module","exports","import_core","require","createStyledContext","active","disabled","frameWidth","size","unstyled","process","env","TAMAGUI_HEADLESS"],"sources":["../../src/StyledContext.tsx"],"sourcesContent":[null],"mappings":";;;;;;;;;;;;;;;;;;;AAAA,IAAAA,YAAA,GAAAC,GAAA,IAAAC,WAAA,CAAAC,SAAA;EAAAC,KAAA;AAAA,IAAAH,GAAA;AAAA,IAAAI,qBAAA;AAAAC,QAAA,CAAAD,qBAAA;EAAAE,mBAAA,EAAAA,CAAA,KAAAA;AAAA;AACAC,MAAA,CAAAC,OAAA,GAAAT,YAAoC,CAAAK,qBAAA;AAE7B,IAAAK,WAAM,GAAAC,OAAA,gBAAsB;EAAAJ,mBAAA,GAMhC,IAAAG,WAAA,CAAAE,mBAAA;IACDC,MAAA,EAAQ;IACRC,QAAA,EAAU;IACVC,UAAA,EAAY;IACZC,IAAA,EAAM;IACNC,QAAA,EAAUC,OAAA,CAAQC,GAAA,CAAIC,gBAAA,KAAqB;EAC7C,CAAC","ignoreList":[]}
1
+ {"version":3,"names":["__toCommonJS","mod","__copyProps","__defProp","value","StyledContext_exports","__export","SwitchStyledContext","module","exports","import_core","require","createStyledContext","active","disabled","frameWidth","size","unstyled","process","env","TAMAGUI_HEADLESS"],"sources":["../../src/StyledContext.tsx"],"sourcesContent":[null],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA,IAAAA,YAAA,GAAAC,GAAA,IAAAC,WAAA,CAAAC,SAAA;EAAAC,KAAA;AAAA,IAAAH,GAAA;AAAA,IAAAI,qBAAA;AAAAC,QAAA,CAAAD,qBAAA;EAAAE,mBAAA,EAAAA,CAAA,KAAAA;AAAA;AACAC,MAAA,CAAAC,OAAA,GAAAT,YAAoC,CAAAK,qBAAA;AAE7B,IAAAK,WAAM,GAAAC,OAAA,gBAAsB;AAMhC,IACDJ,mBAAQ,OAAAG,WAAA,CAAAE,mBAAA;EACRC,MAAA,OAAU;EACVC,QAAA,OAAY;EACZC,UAAM;EACNC,IAAA,OAAU;EACXC,QAAA,EAAAC,OAAA,CAAAC,GAAA,CAAAC,gBAAA","ignoreList":[]}
@@ -3,20 +3,22 @@ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
3
  var __getOwnPropNames = Object.getOwnPropertyNames;
4
4
  var __hasOwnProp = Object.prototype.hasOwnProperty;
5
5
  var __export = (target, all) => {
6
- for (var name in all) __defProp(target, name, {
7
- get: all[name],
8
- enumerable: !0
9
- });
10
- },
11
- __copyProps = (to, from, except, desc) => {
12
- if (from && typeof from == "object" || typeof from == "function") for (let key of __getOwnPropNames(from)) !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, {
6
+ for (var name in all) __defProp(target, name, {
7
+ get: all[name],
8
+ enumerable: true
9
+ });
10
+ };
11
+ var __copyProps = (to, from, except, desc) => {
12
+ if (from && typeof from === "object" || typeof from === "function") {
13
+ for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
13
14
  get: () => from[key],
14
15
  enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
15
16
  });
16
- return to;
17
- };
17
+ }
18
+ return to;
19
+ };
18
20
  var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
19
- value: !0
21
+ value: true
20
22
  }), mod);
21
23
  var Switch_exports = {};
22
24
  __export(Switch_exports, {
@@ -24,75 +26,75 @@ __export(Switch_exports, {
24
26
  SwitchThumb: () => SwitchThumb
25
27
  });
26
28
  module.exports = __toCommonJS(Switch_exports);
27
- var import_core = require("@tamagui/core"),
28
- import_get_token = require("@tamagui/get-token"),
29
- import_stacks = require("@tamagui/stacks");
29
+ var import_core = require("@tamagui/core");
30
+ var import_get_token = require("@tamagui/get-token");
31
+ var import_stacks = require("@tamagui/stacks");
30
32
  const SwitchThumb = (0, import_core.styled)(import_stacks.YStack, {
31
- name: "SwitchThumb",
32
- variants: {
33
- unstyled: {
34
- false: {
35
- size: "$true",
36
- backgroundColor: "$background",
37
- borderRadius: 1e3
38
- }
39
- },
40
- size: {
41
- "...size": val => {
42
- const size = getSwitchHeight(val);
43
- return {
44
- height: size,
45
- width: size
46
- };
47
- }
33
+ name: "SwitchThumb",
34
+ variants: {
35
+ unstyled: {
36
+ false: {
37
+ size: "$true",
38
+ backgroundColor: "$background",
39
+ borderRadius: 1e3
48
40
  }
49
41
  },
50
- defaultVariants: {
51
- unstyled: process.env.TAMAGUI_HEADLESS === "1"
52
- }
53
- }, {
54
- accept: {
55
- activeStyle: "style"
42
+ size: {
43
+ "...size": val => {
44
+ const size = getSwitchHeight(val);
45
+ return {
46
+ height: size,
47
+ width: size
48
+ };
49
+ }
56
50
  }
57
- }),
58
- getSwitchHeight = val => Math.round((0, import_core.getVariableValue)((0, import_get_token.getSize)(val)) * 0.65),
59
- getSwitchWidth = val => getSwitchHeight(val) * 2,
60
- SwitchFrame = (0, import_core.styled)(import_stacks.YStack, {
61
- name: "Switch",
62
- render: "button",
63
- tabIndex: 0,
64
- variants: {
65
- unstyled: {
66
- false: {
67
- borderRadius: 1e3,
68
- backgroundColor: "$background",
69
- focusVisibleStyle: {
70
- outlineColor: "$outlineColor",
71
- outlineStyle: "solid",
72
- outlineWidth: 2
73
- }
74
- }
75
- },
76
- size: {
77
- "...size": (val, {
78
- props
79
- }) => {
80
- if (props.unstyled) return;
81
- const height = getSwitchHeight(val),
82
- width = getSwitchWidth(val);
83
- return {
84
- height,
85
- minHeight: height,
86
- width
87
- };
51
+ },
52
+ defaultVariants: {
53
+ unstyled: process.env.TAMAGUI_HEADLESS === "1"
54
+ }
55
+ }, {
56
+ accept: {
57
+ activeStyle: "style"
58
+ }
59
+ });
60
+ const getSwitchHeight = val => Math.round((0, import_core.getVariableValue)((0, import_get_token.getSize)(val)) * 0.65);
61
+ const getSwitchWidth = val => getSwitchHeight(val) * 2;
62
+ const SwitchFrame = (0, import_core.styled)(import_stacks.YStack, {
63
+ name: "Switch",
64
+ render: "button",
65
+ tabIndex: 0,
66
+ variants: {
67
+ unstyled: {
68
+ false: {
69
+ borderRadius: 1e3,
70
+ backgroundColor: "$background",
71
+ focusVisibleStyle: {
72
+ outlineColor: "$outlineColor",
73
+ outlineStyle: "solid",
74
+ outlineWidth: 2
88
75
  }
89
76
  }
90
77
  },
91
- defaultVariants: {
92
- unstyled: process.env.TAMAGUI_HEADLESS === "1"
93
- }
94
- }, {
95
- accept: {
96
- activeStyle: "style"
78
+ size: {
79
+ "...size": (val, {
80
+ props
81
+ }) => {
82
+ if (props["unstyled"]) return;
83
+ const height = getSwitchHeight(val);
84
+ const width = getSwitchWidth(val);
85
+ return {
86
+ height,
87
+ minHeight: height,
88
+ width
89
+ };
90
+ }
97
91
  }
98
- });
92
+ },
93
+ defaultVariants: {
94
+ unstyled: process.env.TAMAGUI_HEADLESS === "1"
95
+ }
96
+ }, {
97
+ accept: {
98
+ activeStyle: "style"
99
+ }
100
+ });
@@ -5,20 +5,22 @@ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
5
  var __getOwnPropNames = Object.getOwnPropertyNames;
6
6
  var __hasOwnProp = Object.prototype.hasOwnProperty;
7
7
  var __export = (target, all) => {
8
- for (var name in all) __defProp(target, name, {
9
- get: all[name],
10
- enumerable: !0
11
- });
12
- },
13
- __copyProps = (to, from, except, desc) => {
14
- if (from && typeof from == "object" || typeof from == "function") for (let key of __getOwnPropNames(from)) !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, {
8
+ for (var name in all) __defProp(target, name, {
9
+ get: all[name],
10
+ enumerable: true
11
+ });
12
+ };
13
+ var __copyProps = (to, from, except, desc) => {
14
+ if (from && typeof from === "object" || typeof from === "function") {
15
+ for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
15
16
  get: () => from[key],
16
17
  enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
17
18
  });
18
- return to;
19
- };
19
+ }
20
+ return to;
21
+ };
20
22
  var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
21
- value: !0
23
+ value: true
22
24
  }), mod);
23
25
  var Switch_exports = {};
24
26
  __export(Switch_exports, {
@@ -26,82 +28,81 @@ __export(Switch_exports, {
26
28
  SwitchThumb: () => SwitchThumb
27
29
  });
28
30
  module.exports = __toCommonJS(Switch_exports);
29
- var import_core = require("@tamagui/core"),
30
- import_get_token = require("@tamagui/get-token"),
31
- import_stacks = require("@tamagui/stacks"),
32
- SwitchThumb = (0, import_core.styled)(import_stacks.YStack, {
33
- name: "SwitchThumb",
34
- variants: {
35
- unstyled: {
36
- false: {
37
- size: "$true",
38
- backgroundColor: "$background",
39
- borderRadius: 1e3
40
- }
41
- },
42
- size: {
43
- "...size": function (val) {
44
- var size = getSwitchHeight(val);
45
- return {
46
- height: size,
47
- width: size
48
- };
49
- }
31
+ var import_core = require("@tamagui/core");
32
+ var import_get_token = require("@tamagui/get-token");
33
+ var import_stacks = require("@tamagui/stacks");
34
+ var SwitchThumb = (0, import_core.styled)(import_stacks.YStack, {
35
+ name: "SwitchThumb",
36
+ variants: {
37
+ unstyled: {
38
+ false: {
39
+ size: "$true",
40
+ backgroundColor: "$background",
41
+ borderRadius: 1e3
50
42
  }
51
43
  },
52
- defaultVariants: {
53
- unstyled: process.env.TAMAGUI_HEADLESS === "1"
54
- }
55
- }, {
56
- accept: {
57
- activeStyle: "style"
44
+ size: {
45
+ "...size": function (val) {
46
+ var size = getSwitchHeight(val);
47
+ return {
48
+ height: size,
49
+ width: size
50
+ };
51
+ }
58
52
  }
59
- }),
60
- getSwitchHeight = function (val) {
61
- return Math.round((0, import_core.getVariableValue)((0, import_get_token.getSize)(val)) * 0.65);
62
- },
63
- getSwitchWidth = function (val) {
64
- return getSwitchHeight(val) * 2;
65
53
  },
66
- SwitchFrame = (0, import_core.styled)(import_stacks.YStack, {
67
- name: "Switch",
68
- render: "button",
69
- tabIndex: 0,
70
- variants: {
71
- unstyled: {
72
- false: {
73
- borderRadius: 1e3,
74
- backgroundColor: "$background",
75
- focusVisibleStyle: {
76
- outlineColor: "$outlineColor",
77
- outlineStyle: "solid",
78
- outlineWidth: 2
79
- }
80
- }
81
- },
82
- size: {
83
- "...size": function (val, param) {
84
- var {
85
- props
86
- } = param;
87
- if (!props.unstyled) {
88
- var height = getSwitchHeight(val),
89
- width = getSwitchWidth(val);
90
- return {
91
- height,
92
- minHeight: height,
93
- width
94
- };
95
- }
54
+ defaultVariants: {
55
+ unstyled: process.env.TAMAGUI_HEADLESS === "1"
56
+ }
57
+ }, {
58
+ accept: {
59
+ activeStyle: "style"
60
+ }
61
+ });
62
+ var getSwitchHeight = function (val) {
63
+ return Math.round((0, import_core.getVariableValue)((0, import_get_token.getSize)(val)) * 0.65);
64
+ };
65
+ var getSwitchWidth = function (val) {
66
+ return getSwitchHeight(val) * 2;
67
+ };
68
+ var SwitchFrame = (0, import_core.styled)(import_stacks.YStack, {
69
+ name: "Switch",
70
+ render: "button",
71
+ tabIndex: 0,
72
+ variants: {
73
+ unstyled: {
74
+ false: {
75
+ borderRadius: 1e3,
76
+ backgroundColor: "$background",
77
+ focusVisibleStyle: {
78
+ outlineColor: "$outlineColor",
79
+ outlineStyle: "solid",
80
+ outlineWidth: 2
96
81
  }
97
82
  }
98
83
  },
99
- defaultVariants: {
100
- unstyled: process.env.TAMAGUI_HEADLESS === "1"
101
- }
102
- }, {
103
- accept: {
104
- activeStyle: "style"
84
+ size: {
85
+ "...size": function (val, param) {
86
+ var {
87
+ props
88
+ } = param;
89
+ if (props["unstyled"]) return;
90
+ var height = getSwitchHeight(val);
91
+ var width = getSwitchWidth(val);
92
+ return {
93
+ height,
94
+ minHeight: height,
95
+ width
96
+ };
97
+ }
105
98
  }
106
- });
99
+ },
100
+ defaultVariants: {
101
+ unstyled: process.env.TAMAGUI_HEADLESS === "1"
102
+ }
103
+ }, {
104
+ accept: {
105
+ activeStyle: "style"
106
+ }
107
+ });
107
108
  //# sourceMappingURL=Switch.native.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["__toCommonJS","mod","__copyProps","__defProp","value","Switch_exports","__export","SwitchFrame","SwitchThumb","module","exports","import_core","require","import_get_token","import_stacks","styled","YStack","name","variants","unstyled","false","size","backgroundColor","borderRadius","...size","val","getSwitchHeight","height","width","defaultVariants","process","env","TAMAGUI_HEADLESS","accept","activeStyle","Math","round","getVariableValue","getSize","getSwitchWidth","render","tabIndex","focusVisibleStyle","outlineColor","outlineStyle","outlineWidth","param","props","minHeight"],"sources":["../../src/Switch.tsx"],"sourcesContent":[null],"mappings":";;;;;;;;;;;;;;;;;;;AAAA,IAAAA,YAAA,GAAAC,GAAA,IAAAC,WAAA,CAAAC,SAAA;EAAAC,KAAA;AAAA,IAAAH,GAAA;AAAA,IAAAI,cAAA;AAAAC,QAAA,CAAAD,cAAA;EAAAE,WAAA,EAAAA,CAAA,KAAAA,WAAA;EAAAC,WAAA,EAAAA,CAAA,KAAAA;AAAA;AACAC,MAAA,CAAAC,OAAA,GAAAV,YAAyC,CAAAK,cACzC;AAGO,IAAAM,WAAM,GAAAC,OAAc;EAAAC,gBAAA,GAAAD,OAAA;EAAAE,aAAA,GAAAF,OAAA;EAAAJ,WAAA,OAAAG,WAAA,CAAAI,MAAA,EAAAD,aAAA,CAAAE,MAAA;IACzBC,IAAA;IACAC,QAAA;MACEC,QAAM;QAENC,KAAA;UACEC,IAAA,SAAU;UACRC,eAAO;UAAAC,YACC;QAAA;MACW;MACHF,IAChB;QACF,oBAAAG,CAAAC,GAAA;UAEA,IAAMJ,IAAA,GAAAK,eAAA,CAAAD,GAAA;UACJ;YACEE,MAAM,EAAAN,IAAA;YACNO,KAAA,EAAOP;UAAA;QACG;MACD;IACT;IACFQ,eACF;MACFV,QAAA,EAAAW,OAAA,CAAAC,GAAA,CAAAC,gBAAA;IAAA;EAEiB;IAC4BC,MAC7C;MACFC,WAAA;IACA;EAAA;EACER,eAAQ,YAAAA,CAAAD,GAAA;IAAA,OACNU,IAAA,CAAAC,KAAa,KAAAzB,WAAA,CAAA0B,gBAAA,MAAAxB,gBAAA,CAAAyB,OAAA,EAAAb,GAAA;EAAA;EAAAc,cACf,YAAAA,CAAAd,GAAA;IACF,OAAAC,eAAA,CAAAD,GAAA;EACF;EAEMlB,WAAA,OAAkBI,WACtB,CAAAI,MAAK,EAAAD,aAAM,CAAAE,MAAA;IAKXC,IAAA;IACAuB,MAAA;IAAAC,QACQ;IAAAvB,QACN,EAAQ;MACRC,QAAA,EAAU;QAEVC,KAAA;UACEG,YAAU;UACRD,eAAO;UAAAoB,iBACS;YACdC,YAAA,iBAAiB;YAEjBC,YAAA,SAAmB;YAAAC,YACjB;UAAc;QACA;MACA;MAChBxB,IACF;QACF,oBAAAG,CAAAC,GAAA,EAAAqB,KAAA;UAEA,IAAM;YAAAC;UAAA,IAAAD,KAAA;UACJ,KAAAC,KAAA,CAAW5B,QAAQ;YACjB,IAAIQ,MAAM,GAAAD,eAAa,CAAAD,GAAA;cAAAG,KAAA,GAAAW,cAAA,CAAAd,GAAA;YACvB,OAAM;cAENE,MAAO;cACLqB,SAAA,EAAArB,MAAA;cACAC;YAAW;UACX;QACF;MACF;IACF;IACFC,eAEA;MAAiBV,QACf,EAAAW,OAAU,CAAAC,GAAQ,CAAAC,gBAAI;IAAqB;EAC7C,GACF;IACAC,MAAA;MACEC,WAAQ;IAAA;EACO","ignoreList":[]}
1
+ {"version":3,"names":["__toCommonJS","mod","__copyProps","__defProp","value","Switch_exports","__export","SwitchFrame","SwitchThumb","module","exports","import_core","require","import_get_token","import_stacks","styled","YStack","name","variants","unstyled","false","size","backgroundColor","borderRadius","...size","val","getSwitchHeight","height","width","defaultVariants","process","env","TAMAGUI_HEADLESS","accept","activeStyle","Math","round","getVariableValue","getSize","getSwitchWidth","render","tabIndex","focusVisibleStyle","outlineColor","outlineStyle","outlineWidth","param","props","minHeight"],"sources":["../../src/Switch.tsx"],"sourcesContent":[null],"mappings":";;;;;;;;;;;;;;;;;;;;;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