@tamagui/checkbox 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 (62) hide show
  1. package/dist/cjs/Checkbox.cjs +93 -88
  2. package/dist/cjs/Checkbox.native.js +93 -91
  3. package/dist/cjs/Checkbox.native.js.map +1 -1
  4. package/dist/cjs/CheckboxStyledContext.cjs +14 -12
  5. package/dist/cjs/CheckboxStyledContext.native.js +20 -18
  6. package/dist/cjs/CheckboxStyledContext.native.js.map +1 -1
  7. package/dist/cjs/createCheckbox.cjs +163 -153
  8. package/dist/cjs/createCheckbox.native.js +180 -176
  9. package/dist/cjs/createCheckbox.native.js.map +1 -1
  10. package/dist/cjs/index.cjs +15 -13
  11. package/dist/cjs/index.native.js +15 -13
  12. package/dist/cjs/index.native.js.map +1 -1
  13. package/dist/esm/Checkbox.mjs +77 -74
  14. package/dist/esm/Checkbox.mjs.map +1 -1
  15. package/dist/esm/Checkbox.native.js +77 -77
  16. package/dist/esm/Checkbox.native.js.map +1 -1
  17. package/dist/esm/CheckboxStyledContext.mjs +2 -2
  18. package/dist/esm/CheckboxStyledContext.native.js +2 -2
  19. package/dist/esm/createCheckbox.mjs +119 -114
  20. package/dist/esm/createCheckbox.mjs.map +1 -1
  21. package/dist/esm/createCheckbox.native.js +134 -136
  22. package/dist/esm/createCheckbox.native.js.map +1 -1
  23. package/dist/esm/index.js +6 -8
  24. package/dist/esm/index.js.map +1 -6
  25. package/dist/jsx/Checkbox.mjs +77 -74
  26. package/dist/jsx/Checkbox.mjs.map +1 -1
  27. package/dist/jsx/Checkbox.native.js +93 -91
  28. package/dist/jsx/Checkbox.native.js.map +1 -1
  29. package/dist/jsx/CheckboxStyledContext.mjs +2 -2
  30. package/dist/jsx/CheckboxStyledContext.native.js +20 -18
  31. package/dist/jsx/CheckboxStyledContext.native.js.map +1 -1
  32. package/dist/jsx/createCheckbox.mjs +119 -114
  33. package/dist/jsx/createCheckbox.mjs.map +1 -1
  34. package/dist/jsx/createCheckbox.native.js +180 -176
  35. package/dist/jsx/createCheckbox.native.js.map +1 -1
  36. package/dist/jsx/index.js +6 -8
  37. package/dist/jsx/index.js.map +1 -6
  38. package/dist/jsx/index.native.js +15 -13
  39. package/dist/jsx/index.native.js.map +1 -1
  40. package/package.json +19 -22
  41. package/types/createCheckbox.d.ts +3 -3
  42. package/types/index.d.ts +3 -3
  43. package/dist/cjs/Checkbox.js +0 -108
  44. package/dist/cjs/Checkbox.js.map +0 -6
  45. package/dist/cjs/CheckboxStyledContext.js +0 -28
  46. package/dist/cjs/CheckboxStyledContext.js.map +0 -6
  47. package/dist/cjs/createCheckbox.js +0 -165
  48. package/dist/cjs/createCheckbox.js.map +0 -6
  49. package/dist/cjs/index.js +0 -28
  50. package/dist/cjs/index.js.map +0 -6
  51. package/dist/esm/Checkbox.js +0 -95
  52. package/dist/esm/Checkbox.js.map +0 -6
  53. package/dist/esm/CheckboxStyledContext.js +0 -12
  54. package/dist/esm/CheckboxStyledContext.js.map +0 -6
  55. package/dist/esm/createCheckbox.js +0 -158
  56. package/dist/esm/createCheckbox.js.map +0 -6
  57. package/dist/jsx/Checkbox.js +0 -95
  58. package/dist/jsx/Checkbox.js.map +0 -6
  59. package/dist/jsx/CheckboxStyledContext.js +0 -12
  60. package/dist/jsx/CheckboxStyledContext.js.map +0 -6
  61. package/dist/jsx/createCheckbox.js +0 -158
  62. package/dist/jsx/createCheckbox.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 Checkbox_exports = {};
22
24
  __export(Checkbox_exports, {
@@ -24,88 +26,91 @@ __export(Checkbox_exports, {
24
26
  CheckboxIndicatorFrame: () => CheckboxIndicatorFrame
25
27
  });
26
28
  module.exports = __toCommonJS(Checkbox_exports);
27
- var import_core = require("@tamagui/core"),
28
- import_get_token = require("@tamagui/get-token"),
29
- import_stacks = require("@tamagui/stacks"),
30
- import_CheckboxStyledContext = require("./CheckboxStyledContext.cjs");
31
- const INDICATOR_NAME = "CheckboxIndicator",
32
- CheckboxIndicatorFrame = (0, import_core.styled)(import_stacks.YStack, {
33
- // use Checkbox for easier themes
34
- name: INDICATOR_NAME,
35
- context: import_CheckboxStyledContext.CheckboxStyledContext,
36
- variants: {
37
- unstyled: {
38
- false: {}
29
+ var import_core = require("@tamagui/core");
30
+ var import_get_token = require("@tamagui/get-token");
31
+ var import_stacks = require("@tamagui/stacks");
32
+ var import_CheckboxStyledContext = require("./CheckboxStyledContext.cjs");
33
+ const INDICATOR_NAME = "CheckboxIndicator";
34
+ const CheckboxIndicatorFrame = (0, import_core.styled)(import_stacks.YStack, {
35
+ // use Checkbox for easier themes
36
+ name: INDICATOR_NAME,
37
+ context: import_CheckboxStyledContext.CheckboxStyledContext,
38
+ variants: {
39
+ unstyled: {
40
+ false: {}
41
+ }
42
+ },
43
+ defaultVariants: {
44
+ unstyled: process.env.TAMAGUI_HEADLESS === "1"
45
+ }
46
+ }, {
47
+ accept: {
48
+ activeStyle: "style"
49
+ }
50
+ });
51
+ const CHECKBOX_NAME = "Checkbox";
52
+ const CheckboxFrame = (0, import_core.styled)(import_stacks.YStack, {
53
+ name: CHECKBOX_NAME,
54
+ render: "button",
55
+ context: import_CheckboxStyledContext.CheckboxStyledContext,
56
+ variants: {
57
+ unstyled: {
58
+ false: {
59
+ size: "$true",
60
+ backgroundColor: "$background",
61
+ alignItems: "center",
62
+ justifyContent: "center",
63
+ borderWidth: 1,
64
+ borderColor: "$borderColor",
65
+ hoverStyle: {
66
+ borderColor: "$borderColorHover"
67
+ },
68
+ pressStyle: {
69
+ backgroundColor: "$backgroundPress",
70
+ borderColor: "$borderColorPress"
71
+ },
72
+ focusStyle: {
73
+ borderColor: "$borderColorFocus"
74
+ },
75
+ focusVisibleStyle: {
76
+ outlineStyle: "solid",
77
+ outlineWidth: 2,
78
+ outlineColor: "$outlineColor"
79
+ }
39
80
  }
40
81
  },
41
- defaultVariants: {
42
- unstyled: process.env.TAMAGUI_HEADLESS === "1"
43
- }
44
- }, {
45
- accept: {
46
- activeStyle: "style"
47
- }
48
- }),
49
- CHECKBOX_NAME = "Checkbox",
50
- CheckboxFrame = (0, import_core.styled)(import_stacks.YStack, {
51
- name: CHECKBOX_NAME,
52
- render: "button",
53
- context: import_CheckboxStyledContext.CheckboxStyledContext,
54
- variants: {
55
- unstyled: {
56
- false: {
57
- size: "$true",
58
- backgroundColor: "$background",
59
- alignItems: "center",
60
- justifyContent: "center",
61
- borderWidth: 1,
82
+ disabled: {
83
+ true: {
84
+ pointerEvents: "none",
85
+ userSelect: "none",
86
+ cursor: "not-allowed",
87
+ hoverStyle: {
62
88
  borderColor: "$borderColor",
63
- hoverStyle: {
64
- borderColor: "$borderColorHover"
65
- },
66
- pressStyle: {
67
- backgroundColor: "$backgroundPress",
68
- borderColor: "$borderColorPress"
69
- },
70
- focusStyle: {
71
- borderColor: "$borderColorFocus"
72
- },
73
- focusVisibleStyle: {
74
- outlineStyle: "solid",
75
- outlineWidth: 2,
76
- outlineColor: "$outlineColor"
77
- }
78
- }
79
- },
80
- disabled: {
81
- true: {
82
- pointerEvents: "none",
83
- userSelect: "none",
84
- cursor: "not-allowed",
85
- hoverStyle: {
86
- borderColor: "$borderColor",
87
- backgroundColor: "$background"
88
- },
89
- pressStyle: {
90
- borderColor: "$borderColor",
91
- backgroundColor: "$background"
92
- },
93
- focusStyle: {
94
- outlineWidth: 0
95
- }
89
+ backgroundColor: "$background"
90
+ },
91
+ pressStyle: {
92
+ borderColor: "$borderColor",
93
+ backgroundColor: "$background"
94
+ },
95
+ focusStyle: {
96
+ outlineWidth: 0
96
97
  }
97
- },
98
- size: {
99
- "...size": val => ({
100
- borderRadius: (0, import_core.getVariableValue)((0, import_get_token.getSize)(val)) / 8
101
- })
102
98
  }
103
99
  },
104
- defaultVariants: {
105
- unstyled: process.env.TAMAGUI_HEADLESS === "1"
106
- }
107
- }, {
108
- accept: {
109
- activeStyle: "style"
100
+ size: {
101
+ "...size": val => {
102
+ const radiusToken = (0, import_core.getVariableValue)((0, import_get_token.getSize)(val)) / 8;
103
+ return {
104
+ borderRadius: radiusToken
105
+ };
106
+ }
110
107
  }
111
- });
108
+ },
109
+ defaultVariants: {
110
+ unstyled: process.env.TAMAGUI_HEADLESS === "1"
111
+ }
112
+ }, {
113
+ accept: {
114
+ activeStyle: "style"
115
+ }
116
+ });
@@ -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 Checkbox_exports = {};
24
26
  __export(Checkbox_exports, {
@@ -26,92 +28,92 @@ __export(Checkbox_exports, {
26
28
  CheckboxIndicatorFrame: () => CheckboxIndicatorFrame
27
29
  });
28
30
  module.exports = __toCommonJS(Checkbox_exports);
29
- var import_core = require("@tamagui/core"),
30
- import_get_token = require("@tamagui/get-token"),
31
- import_stacks = require("@tamagui/stacks"),
32
- import_CheckboxStyledContext = require("./CheckboxStyledContext.native.js"),
33
- INDICATOR_NAME = "CheckboxIndicator",
34
- CheckboxIndicatorFrame = (0, import_core.styled)(import_stacks.YStack, {
35
- // use Checkbox for easier themes
36
- name: INDICATOR_NAME,
37
- context: import_CheckboxStyledContext.CheckboxStyledContext,
38
- variants: {
39
- unstyled: {
40
- false: {}
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 import_CheckboxStyledContext = require("./CheckboxStyledContext.native.js");
35
+ var INDICATOR_NAME = "CheckboxIndicator";
36
+ var CheckboxIndicatorFrame = (0, import_core.styled)(import_stacks.YStack, {
37
+ // use Checkbox for easier themes
38
+ name: INDICATOR_NAME,
39
+ context: import_CheckboxStyledContext.CheckboxStyledContext,
40
+ variants: {
41
+ unstyled: {
42
+ false: {}
43
+ }
44
+ },
45
+ defaultVariants: {
46
+ unstyled: process.env.TAMAGUI_HEADLESS === "1"
47
+ }
48
+ }, {
49
+ accept: {
50
+ activeStyle: "style"
51
+ }
52
+ });
53
+ var CHECKBOX_NAME = "Checkbox";
54
+ var CheckboxFrame = (0, import_core.styled)(import_stacks.YStack, {
55
+ name: CHECKBOX_NAME,
56
+ render: "button",
57
+ context: import_CheckboxStyledContext.CheckboxStyledContext,
58
+ variants: {
59
+ unstyled: {
60
+ false: {
61
+ size: "$true",
62
+ backgroundColor: "$background",
63
+ alignItems: "center",
64
+ justifyContent: "center",
65
+ borderWidth: 1,
66
+ borderColor: "$borderColor",
67
+ hoverStyle: {
68
+ borderColor: "$borderColorHover"
69
+ },
70
+ pressStyle: {
71
+ backgroundColor: "$backgroundPress",
72
+ borderColor: "$borderColorPress"
73
+ },
74
+ focusStyle: {
75
+ borderColor: "$borderColorFocus"
76
+ },
77
+ focusVisibleStyle: {
78
+ outlineStyle: "solid",
79
+ outlineWidth: 2,
80
+ outlineColor: "$outlineColor"
81
+ }
41
82
  }
42
83
  },
43
- defaultVariants: {
44
- unstyled: process.env.TAMAGUI_HEADLESS === "1"
45
- }
46
- }, {
47
- accept: {
48
- activeStyle: "style"
49
- }
50
- }),
51
- CHECKBOX_NAME = "Checkbox",
52
- CheckboxFrame = (0, import_core.styled)(import_stacks.YStack, {
53
- name: CHECKBOX_NAME,
54
- render: "button",
55
- context: import_CheckboxStyledContext.CheckboxStyledContext,
56
- variants: {
57
- unstyled: {
58
- false: {
59
- size: "$true",
60
- backgroundColor: "$background",
61
- alignItems: "center",
62
- justifyContent: "center",
63
- borderWidth: 1,
84
+ disabled: {
85
+ true: {
86
+ pointerEvents: "none",
87
+ userSelect: "none",
88
+ cursor: "not-allowed",
89
+ hoverStyle: {
64
90
  borderColor: "$borderColor",
65
- hoverStyle: {
66
- borderColor: "$borderColorHover"
67
- },
68
- pressStyle: {
69
- backgroundColor: "$backgroundPress",
70
- borderColor: "$borderColorPress"
71
- },
72
- focusStyle: {
73
- borderColor: "$borderColorFocus"
74
- },
75
- focusVisibleStyle: {
76
- outlineStyle: "solid",
77
- outlineWidth: 2,
78
- outlineColor: "$outlineColor"
79
- }
80
- }
81
- },
82
- disabled: {
83
- true: {
84
- pointerEvents: "none",
85
- userSelect: "none",
86
- cursor: "not-allowed",
87
- hoverStyle: {
88
- borderColor: "$borderColor",
89
- backgroundColor: "$background"
90
- },
91
- pressStyle: {
92
- borderColor: "$borderColor",
93
- backgroundColor: "$background"
94
- },
95
- focusStyle: {
96
- outlineWidth: 0
97
- }
98
- }
99
- },
100
- size: {
101
- "...size": function (val) {
102
- var radiusToken = (0, import_core.getVariableValue)((0, import_get_token.getSize)(val)) / 8;
103
- return {
104
- borderRadius: radiusToken
105
- };
91
+ backgroundColor: "$background"
92
+ },
93
+ pressStyle: {
94
+ borderColor: "$borderColor",
95
+ backgroundColor: "$background"
96
+ },
97
+ focusStyle: {
98
+ outlineWidth: 0
106
99
  }
107
100
  }
108
101
  },
109
- defaultVariants: {
110
- unstyled: process.env.TAMAGUI_HEADLESS === "1"
111
- }
112
- }, {
113
- accept: {
114
- activeStyle: "style"
102
+ size: {
103
+ "...size": function (val) {
104
+ var radiusToken = (0, import_core.getVariableValue)((0, import_get_token.getSize)(val)) / 8;
105
+ return {
106
+ borderRadius: radiusToken
107
+ };
108
+ }
115
109
  }
116
- });
110
+ },
111
+ defaultVariants: {
112
+ unstyled: process.env.TAMAGUI_HEADLESS === "1"
113
+ }
114
+ }, {
115
+ accept: {
116
+ activeStyle: "style"
117
+ }
118
+ });
117
119
  //# sourceMappingURL=Checkbox.native.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["__toCommonJS","mod","__copyProps","__defProp","value","Checkbox_exports","__export","CheckboxFrame","CheckboxIndicatorFrame","module","exports","import_core","require","import_get_token","import_stacks","import_CheckboxStyledContext","INDICATOR_NAME","styled","YStack","name","context","CheckboxStyledContext","variants","unstyled","false","defaultVariants","process","env","TAMAGUI_HEADLESS","accept","activeStyle","CHECKBOX_NAME","render","size","backgroundColor","alignItems","justifyContent","borderWidth","borderColor","hoverStyle","pressStyle","focusStyle","focusVisibleStyle","outlineStyle","outlineWidth","outlineColor","disabled","true","pointerEvents","userSelect","cursor","...size","val","radiusToken","getVariableValue","getSize","borderRadius"],"sources":["../../src/Checkbox.tsx"],"sourcesContent":[null],"mappings":";;;;;;;;;;;;;;;;;;;AAAA,IAAAA,YAAA,GAAAC,GAAA,IAAAC,WAAA,CAAAC,SAAA;EAAAC,KAAA;AAAA,IAAAH,GAAA;AAAA,IAAAI,gBAAA;AAAAC,QAAA,CAAAD,gBAAA;EAAAE,aAAA,EAAAA,CAAA,KAAAA,aAAA;EAAAC,sBAAA,EAAAA,CAAA,KAAAA;AAAA;AAGAC,MAAA,CAAAC,OAAA,GAAAV,YAAyC,CAAAK,gBACzC;AAQA,IAAAM,WAAM,GAAAC,OAAiB;EAEVC,gBAAA,GAAAD,OAAA,qBAAyB;EAAAE,aAAA,GAAAF,OAAA;EAAAG,4BAAA,GAAAH,OAAA;EAAAI,cAAA;EAAAR,sBAAA,OAAAG,WAAA,CAAAM,MAAA,EAAAH,aAAA,CAAAI,MAAA;IACpC;IACAC,IAAA,EAAAH,cAAA;IAAAI,OAAA,EAAAL,4BAAA,CAAAM,qBAAA;IAAAC,QAEQ;MACNC,QAAA,EAAS;QACTC,KAAA,GAAU;MAAA;IACE;IACAC,eACV;MACFF,QAAA,EAAAG,OAAA,CAAAC,GAAA,CAAAC,gBAAA;IAAA;EACiB;IAC4BC,MAC7C;MACFC,WAAA;IACA;EAAA;EACEC,aAAQ;EAAAxB,aAAA,OAAAI,WAAA,CAAAM,MAAA,EAAAH,aAAA,CAAAI,MAAA;IAAAC,IACN,EAAAY,aAAa;IAAAC,MACf;IACFZ,OAAA,EAAAL,4BAAA,CAAAM,qBAAA;IACFC,QAMM;MAGJC,QAAA;QACAC,KAAA;UACES,IAAM;UACNC,eAAQ;UAERC,UAAS;UACTC,cAAU;UACRC,WAAU;UACRC,WAAO;UAAAC,UACC;YACND,WAAA;UAAiB;UACLE,UACZ;YACAN,eAAa;YACbI,WAAA,EAAa;UAAA;UAEDG,UACV;YACFH,WAAA;UAAA;UAEYI,iBACV;YAAiBC,YACjB,SAAa;YACfC,YAAA;YAEAC,YAAY;UAAA;QACG;MACf;MAEmBC,QACjB;QAAcC,IAAA,EACd;UAAcC,aACd,QAAc;UAAAC,UAChB;UACFC,MAAA;UACFX,UAAA;YAEAD,WAAU;YACRJ,eAAM;UAAA;UACWM,UACf;YACAF,WAAQ;YAERJ,eAAY;UAAA;UACGO,UACb;YACFG,YAAA;UAAA;QAEY;MACG;MACIX,IAAA,EACnB;QAAA,SAEA,WAAAkB,CAAYC,GAAA;UAAA,IACVC,WAAA,GAAc,IAAA1C,WAAA,CAAA2C,gBAAA,MAAAzC,gBAAA,CAAA0C,OAAA,EAAAH,GAAA;UAAA,OAChB;YACFI,YAAA,EAAAH;UACF;QAEA;MAAM;IAGK;IAD8C5B,eAGrD;MAAAF,QAEJ,EAAAG,OAAA,CAAAC,GAAA,CAAAC,gBAAA;IAAA;EACF;IAEiBC,MACf;MACFC,WAAA;IACF;EAAA,EACA","ignoreList":[]}
1
+ {"version":3,"names":["__toCommonJS","mod","__copyProps","__defProp","value","Checkbox_exports","__export","CheckboxFrame","CheckboxIndicatorFrame","module","exports","import_core","require","import_get_token","import_stacks","import_CheckboxStyledContext","INDICATOR_NAME","styled","YStack","name","context","CheckboxStyledContext","variants","unstyled","false","defaultVariants","process","env","TAMAGUI_HEADLESS","accept","activeStyle","CHECKBOX_NAME","render","size","backgroundColor","alignItems","justifyContent","borderWidth","borderColor","hoverStyle","pressStyle","focusStyle","focusVisibleStyle","outlineStyle","outlineWidth","outlineColor","disabled","true","pointerEvents","userSelect","cursor","...size","val","radiusToken","getVariableValue","getSize","borderRadius"],"sources":["../../src/Checkbox.tsx"],"sourcesContent":[null],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA,IAAAA,YAAA,GAAAC,GAAA,IAAAC,WAAA,CAAAC,SAAA;EAAAC,KAAA;AAAA,IAAAH,GAAA;AAAA,IAAAI,gBAAA;AAAAC,QAAA,CAAAD,gBAAA;EAAAE,aAAA,EAAAA,CAAA,KAAAA,aAAA;EAAAC,sBAAA,EAAAA,CAAA,KAAAA;AAAA;AAGAC,MAAA,CAAAC,OAAA,GAAAV,YAAyC,CAAAK,gBAAA;AACzC,IAAAM,WAAA,GAAAC,OAAwB;AACxB,IAAAC,gBAAuB,GAAAD,OAAA;AAEvB,IAAAE,aAAA,GAAAF,OAAA,kBAAsC;AAKtC,IAAAG,4BAAuB,GAAAH,OAAA;AAEhB,IAAAI,cAAM,sBAAyB;AAAA,IACpCR,sBAAA,OAAAG,WAAA,CAAAM,MAAA,EAAAH,aAAA,CAAAI,MAAA;EACA;EAAAC,IAAA,EAAAH,cAAA;EAAAI,OAEE,EAAML,4BAAA,CAAAM,qBAAA;EAAAC,QACN;IACAC,QAAA,EAAU;MACRC,KAAA;IAAU;EACA;EACVC,eACF;IACAF,QAAA,EAAAG,OAAiB,CAAAC,GAAA,CAAAC,gBAAA;EAAA;AAC4B;EAE/CC,MAAA;IACAC,WAAA;EAAA;AACU;AACO,IACfC,aAAA;AAAA,IACFxB,aAAA,OAAAI,WAAA,CAAAM,MAAA,EAAAH,aAAA,CAAAI,MAAA;EACFC,IAAA,EAAAY,aAAA;EAMAC,MAAM;EAECZ,OAAM,EAAAL,4BAAgB,CAAAM,qBAAA;EAC3BC,QAAA;IACAC,QAAA;MACEC,KAAM;QACNS,IAAQ;QAERC,eAAS;QACTC,UAAU;QACRC,cAAU;QACRC,WAAO;QAAAC,WACC;QAAAC,UACN;UACAD,WAAA,EAAY;QAAA;QACIE,UAChB;UACAN,eAAa;UAEbI,WAAA,EAAY;QAAA;QACGG,UACf;UAEAH,WAAA,EAAY;QAAA;QACOI,iBACJ;UACfC,YAAA;UAEAC,YAAY;UAAAC,YACV;QAAa;MACf;IAEmB;IACHC,QACd;MAAcC,IAAA,EACd;QAAcC,aAChB;QACFC,UAAA;QACFC,MAAA;QAEAX,UAAU;UACRD,WAAM;UACJJ,eAAe;QAAA;QACHM,UACJ;UAERF,WAAA,EAAY;UAAAJ,eACG;QAAA;QACIO,UACnB;UAEAG,YAAY;QAAA;MACG;IACI;IACnBX,IAAA,EAEA;MAAY,SACV,WAAAkB,CAAcC,GAAA;QAAA,IAChBC,WAAA,OAAA1C,WAAA,CAAA2C,gBAAA,MAAAzC,gBAAA,CAAA0C,OAAA,EAAAH,GAAA;QACF;UACFI,YAAA,EAAAH;QAEA;MAAM;IAEF;EACA;EAAO5B,eACL;IAAcF,QAChB,EAAAG,OAAA,CAAAC,GAAA,CAAAC,gBAAA;EAAA;AACF;EACFC,MACF;IAEAC,WAAA;EAAiB;AAC4B","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 CheckboxStyledContext_exports = {};
22
24
  __export(CheckboxStyledContext_exports, {
@@ -28,6 +30,6 @@ const CheckboxStyledContext = (0, import_core.createStyledContext)({
28
30
  size: "$true",
29
31
  scaleIcon: 1,
30
32
  unstyled: process.env.TAMAGUI_HEADLESS === "1",
31
- active: !1,
32
- disabled: !1
33
+ active: false,
34
+ disabled: false
33
35
  });
@@ -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 CheckboxStyledContext_exports = {};
24
26
  __export(CheckboxStyledContext_exports, {
25
27
  CheckboxStyledContext: () => CheckboxStyledContext
26
28
  });
27
29
  module.exports = __toCommonJS(CheckboxStyledContext_exports);
28
- var import_core = require("@tamagui/core"),
29
- CheckboxStyledContext = (0, import_core.createStyledContext)({
30
- size: "$true",
31
- scaleIcon: 1,
32
- unstyled: process.env.TAMAGUI_HEADLESS === "1",
33
- active: !1,
34
- disabled: !1
35
- });
30
+ var import_core = require("@tamagui/core");
31
+ var CheckboxStyledContext = (0, import_core.createStyledContext)({
32
+ size: "$true",
33
+ scaleIcon: 1,
34
+ unstyled: process.env.TAMAGUI_HEADLESS === "1",
35
+ active: false,
36
+ disabled: false
37
+ });
36
38
  //# sourceMappingURL=CheckboxStyledContext.native.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["__toCommonJS","mod","__copyProps","__defProp","value","CheckboxStyledContext_exports","__export","CheckboxStyledContext","module","exports","import_core","require","createStyledContext","size","scaleIcon","unstyled","process","env","TAMAGUI_HEADLESS","active","disabled"],"sources":["../../src/CheckboxStyledContext.tsx"],"sourcesContent":[null],"mappings":";;;;;;;;;;;;;;;;;;;AAAA,IAAAA,YAAA,GAAAC,GAAA,IAAAC,WAAA,CAAAC,SAAA;EAAAC,KAAA;AAAA,IAAAH,GAAA;AAAA,IAAAI,6BAAA;AAAAC,QAAA,CAAAD,6BAAA;EAAAE,qBAAA,EAAAA,CAAA,KAAAA;AAAA;AACAC,MAAA,CAAAC,OAAA,GAAAT,YAAoC,CAAAK,6BAAA;AAE7B,IAAAK,WAAM,GAAAC,OAAA,gBAAwB;EAAAJ,qBAAA,GAMlC,IAAAG,WAAA,CAAAE,mBAAA;IACDC,IAAA,EAAM;IACNC,SAAA,EAAW;IACXC,QAAA,EAAUC,OAAA,CAAQC,GAAA,CAAIC,gBAAA,KAAqB;IAC3CC,MAAA,EAAQ;IACRC,QAAA,EAAU;EACZ,CAAC","ignoreList":[]}
1
+ {"version":3,"names":["__toCommonJS","mod","__copyProps","__defProp","value","CheckboxStyledContext_exports","__export","CheckboxStyledContext","module","exports","import_core","require","createStyledContext","size","scaleIcon","unstyled","process","env","TAMAGUI_HEADLESS","active","disabled"],"sources":["../../src/CheckboxStyledContext.tsx"],"sourcesContent":[null],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA,IAAAA,YAAA,GAAAC,GAAA,IAAAC,WAAA,CAAAC,SAAA;EAAAC,KAAA;AAAA,IAAAH,GAAA;AAAA,IAAAI,6BAAA;AAAAC,QAAA,CAAAD,6BAAA;EAAAE,qBAAA,EAAAA,CAAA,KAAAA;AAAA;AACAC,MAAA,CAAAC,OAAA,GAAAT,YAAoC,CAAAK,6BAAA;AAE7B,IAAAK,WAAM,GAAAC,OAAA,gBAAwB;AAMlC,IACDJ,qBAAM,OAAAG,WAAA,CAAAE,mBAAA;EACNC,IAAA,SAAW;EACXC,SAAA,EAAU;EACVC,QAAQ,EAAAC,OAAA,CAAAC,GAAA,CAAAC,gBAAA;EACRC,MAAA,OAAU;EACXC,QAAA","ignoreList":[]}