@tamagui/radio-headless 2.7.7 → 3.0.0-beta.643.1

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/BubbleInput.cjs +57 -71
  2. package/dist/cjs/BubbleInput.native.cjs +75 -0
  3. package/dist/cjs/BubbleInput.native.js +57 -70
  4. package/dist/cjs/BubbleInput.native.js.map +1 -1
  5. package/dist/cjs/index.cjs +10 -11
  6. package/dist/cjs/index.native.cjs +22 -0
  7. package/dist/cjs/index.native.js +10 -10
  8. package/dist/cjs/index.native.js.map +1 -1
  9. package/dist/cjs/useRadioGroup.cjs +143 -176
  10. package/dist/cjs/useRadioGroup.native.cjs +190 -0
  11. package/dist/cjs/useRadioGroup.native.js +162 -190
  12. package/dist/cjs/useRadioGroup.native.js.map +1 -1
  13. package/dist/cjs/utils.cjs +16 -19
  14. package/dist/cjs/utils.native.cjs +29 -0
  15. package/dist/cjs/utils.native.js +16 -18
  16. package/dist/cjs/utils.native.js.map +1 -1
  17. package/dist/esm/BubbleInput.mjs +41 -45
  18. package/dist/esm/BubbleInput.mjs.map +1 -1
  19. package/dist/esm/BubbleInput.native.js +42 -46
  20. package/dist/esm/BubbleInput.native.js.map +1 -1
  21. package/dist/esm/index.js +3 -3
  22. package/dist/esm/index.mjs +3 -3
  23. package/dist/esm/index.native.js +3 -3
  24. package/dist/esm/useRadioGroup.mjs +128 -158
  25. package/dist/esm/useRadioGroup.mjs.map +1 -1
  26. package/dist/esm/useRadioGroup.native.js +147 -173
  27. package/dist/esm/useRadioGroup.native.js.map +1 -1
  28. package/dist/esm/utils.mjs +2 -1
  29. package/dist/esm/utils.mjs.map +1 -1
  30. package/dist/esm/utils.native.js +2 -1
  31. package/dist/esm/utils.native.js.map +1 -1
  32. package/dist/jsx/BubbleInput.mjs +41 -45
  33. package/dist/jsx/BubbleInput.mjs.map +1 -1
  34. package/dist/jsx/BubbleInput.native.cjs +75 -0
  35. package/dist/jsx/BubbleInput.native.js +57 -70
  36. package/dist/jsx/BubbleInput.native.js.map +1 -1
  37. package/dist/jsx/index.js +3 -3
  38. package/dist/jsx/index.mjs +3 -3
  39. package/dist/jsx/index.native.cjs +22 -0
  40. package/dist/jsx/index.native.js +10 -10
  41. package/dist/jsx/index.native.js.map +1 -1
  42. package/dist/jsx/useRadioGroup.mjs +128 -158
  43. package/dist/jsx/useRadioGroup.mjs.map +1 -1
  44. package/dist/jsx/useRadioGroup.native.cjs +190 -0
  45. package/dist/jsx/useRadioGroup.native.js +162 -190
  46. package/dist/jsx/useRadioGroup.native.js.map +1 -1
  47. package/dist/jsx/utils.mjs +2 -1
  48. package/dist/jsx/utils.mjs.map +1 -1
  49. package/dist/jsx/utils.native.cjs +29 -0
  50. package/dist/jsx/utils.native.js +16 -18
  51. package/dist/jsx/utils.native.js.map +1 -1
  52. package/package.json +12 -12
  53. package/src/useRadioGroup.tsx +1 -1
  54. package/types/BubbleInput.d.ts +1 -1
  55. package/types/BubbleInput.d.ts.map +1 -1
  56. package/types/useRadioGroup.d.ts +10 -10
  57. package/types/useRadioGroup.d.ts.map +1 -1
  58. package/dist/esm/index.js.map +0 -1
  59. package/dist/esm/index.mjs.map +0 -1
  60. package/dist/esm/index.native.js.map +0 -1
  61. package/dist/jsx/index.js.map +0 -1
  62. package/dist/jsx/index.mjs.map +0 -1
@@ -1,3 +1,4 @@
1
+
1
2
  var __create = Object.create;
2
3
  var __defProp = Object.defineProperty;
3
4
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
@@ -5,83 +6,68 @@ var __getOwnPropNames = Object.getOwnPropertyNames;
5
6
  var __getProtoOf = Object.getPrototypeOf;
6
7
  var __hasOwnProp = Object.prototype.hasOwnProperty;
7
8
  var __export = (target, all) => {
8
- for (var name in all) __defProp(target, name, {
9
- get: all[name],
10
- enumerable: true
11
- });
9
+ for (var name in all) __defProp(target, name, {
10
+ get: all[name],
11
+ enumerable: true
12
+ });
12
13
  };
13
14
  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, {
16
- get: () => from[key],
17
- enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
18
- });
19
- }
20
- return to;
15
+ if (from && typeof from === "object" || typeof from === "function") {
16
+ for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
17
+ get: () => from[key],
18
+ enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
19
+ });
20
+ }
21
+ return to;
21
22
  };
22
- var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
23
- // If the importer is in node compatibility mode or this is not an ESM
24
- // file that has been converted to a CommonJS file using a Babel-
25
- // compatible transform (i.e. "__esModule" has not been set), then set
26
- // "default" to the CommonJS "module.exports" for node compatibility.
27
- isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
28
- value: mod,
29
- enumerable: true
23
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
24
+ value: mod,
25
+ enumerable: true
30
26
  }) : target, mod));
31
- var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
32
- value: true
33
- }), mod);
27
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
34
28
  var BubbleInput_exports = {};
35
- __export(BubbleInput_exports, {
36
- BubbleInput: () => BubbleInput
37
- });
29
+ __export(BubbleInput_exports, { BubbleInput: () => BubbleInput });
38
30
  module.exports = __toCommonJS(BubbleInput_exports);
39
31
  var import_react = __toESM(require("react"), 1);
40
32
  var import_use_previous = require("@tamagui/use-previous");
41
33
  var import_jsx_runtime = require("react/jsx-runtime");
42
- const BubbleInput = props => {
43
- const {
44
- checked,
45
- bubbles = true,
46
- control,
47
- isHidden,
48
- accentColor,
49
- ...inputProps
50
- } = props;
51
- const ref = import_react.default.useRef(null);
52
- const prevChecked = (0, import_use_previous.usePrevious)(checked);
53
- import_react.default.useEffect(() => {
54
- const input = ref.current;
55
- const inputProto = window.HTMLInputElement.prototype;
56
- const descriptor = Object.getOwnPropertyDescriptor(inputProto, "checked");
57
- const setChecked = descriptor.set;
58
- if (prevChecked !== checked && setChecked) {
59
- const event = new Event("click", {
60
- bubbles
61
- });
62
- setChecked.call(input, checked);
63
- input.dispatchEvent(event);
64
- }
65
- }, [prevChecked, checked, bubbles]);
66
- return /* @__PURE__ */(0, import_jsx_runtime.jsx)("input", {
67
- type: "radio",
68
- defaultChecked: checked,
69
- ...inputProps,
70
- tabIndex: -1,
71
- ref,
72
- "aria-hidden": isHidden,
73
- style: {
74
- ...(isHidden ? {
75
- // ...controlSize,
76
- position: "absolute",
77
- pointerEvents: "none",
78
- opacity: 0,
79
- margin: 0
80
- } : {
81
- appearance: "auto",
82
- accentColor
83
- }),
84
- ...props.style
85
- }
86
- });
87
- };
34
+ const BubbleInput = (props) => {
35
+ const { checked, bubbles = true, control, isHidden, accentColor, ...inputProps } = props;
36
+ const ref = import_react.default.useRef(null);
37
+ const prevChecked = (0, import_use_previous.usePrevious)(checked);
38
+ import_react.default.useEffect(() => {
39
+ const input = ref.current;
40
+ const inputProto = window.HTMLInputElement.prototype;
41
+ const descriptor = Object.getOwnPropertyDescriptor(inputProto, "checked");
42
+ const setChecked = descriptor.set;
43
+ if (prevChecked !== checked && setChecked) {
44
+ const event = new Event("click", { bubbles });
45
+ setChecked.call(input, checked);
46
+ input.dispatchEvent(event);
47
+ }
48
+ }, [
49
+ prevChecked,
50
+ checked,
51
+ bubbles
52
+ ]);
53
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("input", {
54
+ type: "radio",
55
+ defaultChecked: checked,
56
+ ...inputProps,
57
+ tabIndex: -1,
58
+ ref,
59
+ "aria-hidden": isHidden,
60
+ style: {
61
+ ...isHidden ? {
62
+ position: "absolute",
63
+ pointerEvents: "none",
64
+ opacity: 0,
65
+ margin: 0
66
+ } : {
67
+ appearance: "auto",
68
+ accentColor
69
+ },
70
+ ...props.style
71
+ }
72
+ });
73
+ };
@@ -0,0 +1,75 @@
1
+ "use strict";
2
+
3
+
4
+ var __create = Object.create;
5
+ var __defProp = Object.defineProperty;
6
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
7
+ var __getOwnPropNames = Object.getOwnPropertyNames;
8
+ var __getProtoOf = Object.getPrototypeOf;
9
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
10
+ var __export = (target, all) => {
11
+ for (var name in all) __defProp(target, name, {
12
+ get: all[name],
13
+ enumerable: true
14
+ });
15
+ };
16
+ var __copyProps = (to, from, except, desc) => {
17
+ if (from && typeof from === "object" || typeof from === "function") {
18
+ for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
19
+ get: () => from[key],
20
+ enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
21
+ });
22
+ }
23
+ return to;
24
+ };
25
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
26
+ value: mod,
27
+ enumerable: true
28
+ }) : target, mod));
29
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
30
+ var BubbleInput_exports = {};
31
+ __export(BubbleInput_exports, { BubbleInput: () => BubbleInput });
32
+ module.exports = __toCommonJS(BubbleInput_exports);
33
+ var import_jsx_runtime = require("react/jsx-runtime");
34
+ var import_react = __toESM(require("react"), 1);
35
+ var import_use_previous = require("@tamagui/use-previous");
36
+ var BubbleInput = function(props) {
37
+ var { checked, bubbles = true, control, isHidden, accentColor, ...inputProps } = props;
38
+ var ref = import_react.default.useRef(null);
39
+ var prevChecked = (0, import_use_previous.usePrevious)(checked);
40
+ import_react.default.useEffect(function() {
41
+ var input = ref.current;
42
+ var inputProto = window.HTMLInputElement.prototype;
43
+ var descriptor = Object.getOwnPropertyDescriptor(inputProto, "checked");
44
+ var setChecked = descriptor.set;
45
+ if (prevChecked !== checked && setChecked) {
46
+ var event = new Event("click", { bubbles });
47
+ setChecked.call(input, checked);
48
+ input.dispatchEvent(event);
49
+ }
50
+ }, [
51
+ prevChecked,
52
+ checked,
53
+ bubbles
54
+ ]);
55
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("input", {
56
+ type: "radio",
57
+ defaultChecked: checked,
58
+ ...inputProps,
59
+ tabIndex: -1,
60
+ ref,
61
+ "aria-hidden": isHidden,
62
+ style: {
63
+ ...isHidden ? {
64
+ position: "absolute",
65
+ pointerEvents: "none",
66
+ opacity: 0,
67
+ margin: 0
68
+ } : {
69
+ appearance: "auto",
70
+ accentColor
71
+ },
72
+ ...props.style
73
+ }
74
+ });
75
+ };
@@ -1,5 +1,6 @@
1
1
  "use strict";
2
2
 
3
+
3
4
  var __create = Object.create;
4
5
  var __defProp = Object.defineProperty;
5
6
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
@@ -7,84 +8,70 @@ var __getOwnPropNames = Object.getOwnPropertyNames;
7
8
  var __getProtoOf = Object.getPrototypeOf;
8
9
  var __hasOwnProp = Object.prototype.hasOwnProperty;
9
10
  var __export = (target, all) => {
10
- for (var name in all) __defProp(target, name, {
11
- get: all[name],
12
- enumerable: true
13
- });
11
+ for (var name in all) __defProp(target, name, {
12
+ get: all[name],
13
+ enumerable: true
14
+ });
14
15
  };
15
16
  var __copyProps = (to, from, except, desc) => {
16
- if (from && typeof from === "object" || typeof from === "function") {
17
- for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
18
- get: () => from[key],
19
- enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
20
- });
21
- }
22
- return to;
17
+ if (from && typeof from === "object" || typeof from === "function") {
18
+ for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
19
+ get: () => from[key],
20
+ enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
21
+ });
22
+ }
23
+ return to;
23
24
  };
24
- var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
25
- // If the importer is in node compatibility mode or this is not an ESM
26
- // file that has been converted to a CommonJS file using a Babel-
27
- // compatible transform (i.e. "__esModule" has not been set), then set
28
- // "default" to the CommonJS "module.exports" for node compatibility.
29
- isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
30
- value: mod,
31
- enumerable: true
25
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
26
+ value: mod,
27
+ enumerable: true
32
28
  }) : target, mod));
33
- var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
34
- value: true
35
- }), mod);
29
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
36
30
  var BubbleInput_exports = {};
37
- __export(BubbleInput_exports, {
38
- BubbleInput: () => BubbleInput
39
- });
31
+ __export(BubbleInput_exports, { BubbleInput: () => BubbleInput });
40
32
  module.exports = __toCommonJS(BubbleInput_exports);
41
33
  var import_jsx_runtime = require("react/jsx-runtime");
42
34
  var import_react = __toESM(require("react"), 1);
43
35
  var import_use_previous = require("@tamagui/use-previous");
44
- var BubbleInput = function (props) {
45
- var {
46
- checked,
47
- bubbles = true,
48
- control,
49
- isHidden,
50
- accentColor,
51
- ...inputProps
52
- } = props;
53
- var ref = import_react.default.useRef(null);
54
- var prevChecked = (0, import_use_previous.usePrevious)(checked);
55
- import_react.default.useEffect(function () {
56
- var input = ref.current;
57
- var inputProto = window.HTMLInputElement.prototype;
58
- var descriptor = Object.getOwnPropertyDescriptor(inputProto, "checked");
59
- var setChecked = descriptor.set;
60
- if (prevChecked !== checked && setChecked) {
61
- var event = new Event("click", {
62
- bubbles
63
- });
64
- setChecked.call(input, checked);
65
- input.dispatchEvent(event);
66
- }
67
- }, [prevChecked, checked, bubbles]);
68
- return /* @__PURE__ */(0, import_jsx_runtime.jsx)("input", {
69
- type: "radio",
70
- defaultChecked: checked,
71
- ...inputProps,
72
- tabIndex: -1,
73
- ref,
74
- "aria-hidden": isHidden,
75
- style: {
76
- ...(isHidden ? {
77
- // ...controlSize,
78
- position: "absolute",
79
- pointerEvents: "none",
80
- opacity: 0,
81
- margin: 0
82
- } : {
83
- appearance: "auto",
84
- accentColor
85
- }),
86
- ...props.style
87
- }
88
- });
36
+ var BubbleInput = function(props) {
37
+ var { checked, bubbles = true, control, isHidden, accentColor, ...inputProps } = props;
38
+ var ref = import_react.default.useRef(null);
39
+ var prevChecked = (0, import_use_previous.usePrevious)(checked);
40
+ import_react.default.useEffect(function() {
41
+ var input = ref.current;
42
+ var inputProto = window.HTMLInputElement.prototype;
43
+ var descriptor = Object.getOwnPropertyDescriptor(inputProto, "checked");
44
+ var setChecked = descriptor.set;
45
+ if (prevChecked !== checked && setChecked) {
46
+ var event = new Event("click", { bubbles });
47
+ setChecked.call(input, checked);
48
+ input.dispatchEvent(event);
49
+ }
50
+ }, [
51
+ prevChecked,
52
+ checked,
53
+ bubbles
54
+ ]);
55
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("input", {
56
+ type: "radio",
57
+ defaultChecked: checked,
58
+ ...inputProps,
59
+ tabIndex: -1,
60
+ ref,
61
+ "aria-hidden": isHidden,
62
+ style: {
63
+ ...isHidden ? {
64
+ position: "absolute",
65
+ pointerEvents: "none",
66
+ opacity: 0,
67
+ margin: 0
68
+ } : {
69
+ appearance: "auto",
70
+ accentColor
71
+ },
72
+ ...props.style
73
+ }
74
+ });
89
75
  };
76
+
90
77
  //# sourceMappingURL=BubbleInput.native.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["__toCommonJS","mod","__copyProps","__defProp","value","BubbleInput_exports","__export","BubbleInput","module","exports","import_jsx_runtime","require","import_react","__toESM","import_use_previous","props","checked","bubbles","control","isHidden","accentColor","inputProps","ref","default","useRef","prevChecked","usePrevious","useEffect","input","current","inputProto","window","HTMLInputElement","prototype","descriptor","Object","getOwnPropertyDescriptor","setChecked","set","event","Event","call","dispatchEvent","jsx","type","defaultChecked","tabIndex","style","position","pointerEvents","opacity","margin","appearance"],"sources":["../../src/BubbleInput.tsx"],"sourcesContent":[null],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,IAAAA,YAAA,GAAAC,GAAA,IAAAC,WAAA,CAAAC,SAAA;EAAAC,KAAA;AAAA,IAAAH,GAAA;AAAA,IAAAI,mBAAA;AAAAC,QAAA,CAAAD,mBAAA;EAAAE,WAAA,EAAAA,CAAA,KAAAA;AAAA;AAAAC,MAAA,CAAAC,OAAA,GAAAT,YAAkB,CAAAK,mBAAA;AAClB,IAAAK,kBAAA,GAAAC,OAA4B;AAgCxB,IAAAC,YAAA,GAAAC,OAAA,CAAAF,OAAA;AAtBG,IAAAG,mBAAqB,GAAAH,OAA4B;AACtD,IAAAJ,WAAQ,YAAAA,CAASQ,KAAU;EAC3B;IAAMC,OAAM;IAAAC,OAAA;IAAAC,OAAM;IAAyBC,QAAI;IAAAC,WAAA;IAAA,GAAAC;EAAA,IAAAN,KAAA;EAC/C,IAAAO,GAAM,GAAAV,YAAA,CAAAW,OAAc,CAAAC,MAAA;EAGpB,IAAAC,WAAA,OAAMX,mBAAgB,CAAAY,WAAA,EAAAV,OAAA;EACpBJ,YAAM,CAAAW,OAAY,CAAAI,SAAA;IAClB,IAAAC,KAAM,GAAAN,GAAA,CAAAO,OAAa;IACnB,IAAAC,UAAM,GAAAC,MAAa,CAAAC,gBAAO,CAAAC,SAAA;IAAA,IACxBC,UAAA,GAAAC,MAAA,CAAAC,wBAAA,CAAAN,UAAA;IAAA,IACAO,UAAA,GAAAH,UAAA,CAAAI,GAAA;IACF,IAAAb,WAAA,KAAAT,OAAA,IAAAqB,UAAA;MACA,IAAME,KAAA,OAAAC,KAAa,QAAW;QAC1BvB;MACF;MACAoB,UAAA,CAAWI,IAAA,CAAKb,KAAA,EAAOZ,OAAO;MAC9BY,KAAA,CAAMc,aAAA,CAAcH,KAAK;IAC3B;EACF,GAAG,CAEHd,WACE,EAACT,OAAA,EAAAC,OAAA;EACM,OACL,eAAgB,IAAAP,kBAAA,CAAAiC,GAAA;IAAAC,IACf,EAAG;IAAAC,cACM,EAAA7B,OAAA;IAAA,GACVK,UAAA;IAAAyB,QACA;IAAaxB,GACb;IAAO,aACD,EAAAH,QACA;IAAA4B,KAAA;MAAA,IAAA5B,QAEE,GAAU;QAAA;QACK6B,QACf,YAAS;QAAAC,aACD;QACVC,OACA;QAAAC,MACE;MAAY,IACZ;QACFC,UAAA;QAEJhC;MACF;MAAA,GAAAL,KAAA,CAAAgC;IACF;EAEJ","ignoreList":[]}
1
+ {"version":3,"file":"BubbleInput.native.js","names":[],"sources":["cjs/BubbleInput.native.js"],"sourcesContent":["\"use strict\";\nvar __create = Object.create;\nvar __defProp = Object.defineProperty;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __getOwnPropNames = Object.getOwnPropertyNames;\nvar __getProtoOf = Object.getPrototypeOf;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __export = (target, all) => {\n for (var name in all)\n __defProp(target, name, { get: all[name], enumerable: true });\n};\nvar __copyProps = (to, from, except, desc) => {\n if (from && typeof from === \"object\" || typeof from === \"function\") {\n for (let key of __getOwnPropNames(from))\n if (!__hasOwnProp.call(to, key) && key !== except)\n __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });\n }\n return to;\n};\nvar __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(\n // If the importer is in node compatibility mode or this is not an ESM\n // file that has been converted to a CommonJS file using a Babel-\n // compatible transform (i.e. \"__esModule\" has not been set), then set\n // \"default\" to the CommonJS \"module.exports\" for node compatibility.\n isNodeMode || !mod || !mod.__esModule ? __defProp(target, \"default\", { value: mod, enumerable: true }) : target,\n mod\n));\nvar __toCommonJS = (mod) => __copyProps(__defProp({}, \"__esModule\", { value: true }), mod);\nvar BubbleInput_exports = {};\n__export(BubbleInput_exports, {\n BubbleInput: () => BubbleInput\n});\nmodule.exports = __toCommonJS(BubbleInput_exports);\nvar import_jsx_runtime = require(\"react/jsx-runtime\");\nvar import_react = __toESM(require(\"react\"), 1);\nvar import_use_previous = require(\"@tamagui/use-previous\");\nvar BubbleInput = function(props) {\n var { checked, bubbles = true, control, isHidden, accentColor, ...inputProps } = props;\n var ref = import_react.default.useRef(null);\n var prevChecked = (0, import_use_previous.usePrevious)(checked);\n import_react.default.useEffect(function() {\n var input = ref.current;\n var inputProto = window.HTMLInputElement.prototype;\n var descriptor = Object.getOwnPropertyDescriptor(inputProto, \"checked\");\n var setChecked = descriptor.set;\n if (prevChecked !== checked && setChecked) {\n var event = new Event(\"click\", {\n bubbles\n });\n setChecked.call(input, checked);\n input.dispatchEvent(event);\n }\n }, [\n prevChecked,\n checked,\n bubbles\n ]);\n return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(\"input\", {\n type: \"radio\",\n defaultChecked: checked,\n ...inputProps,\n tabIndex: -1,\n ref,\n \"aria-hidden\": isHidden,\n style: {\n ...isHidden ? {\n // ...controlSize,\n position: \"absolute\",\n pointerEvents: \"none\",\n opacity: 0,\n margin: 0\n } : {\n appearance: \"auto\",\n accentColor\n },\n ...props.style\n }\n });\n};\n//# sourceMappingURL=BubbleInput.js.map\n"],"mappings":";;;;AACA,IAAI,WAAW,OAAO;AACtB,IAAI,YAAY,OAAO;AACvB,IAAI,mBAAmB,OAAO;AAC9B,IAAI,oBAAoB,OAAO;AAC/B,IAAI,eAAe,OAAO;AAC1B,IAAI,eAAe,OAAO,UAAU;AACpC,IAAI,YAAY,QAAQ,QAAQ;CAC9B,KAAK,IAAI,QAAQ,KACf,UAAU,QAAQ,MAAM;EAAE,KAAK,IAAI;EAAO,YAAY;CAAK,CAAC;AAChE;AACA,IAAI,eAAe,IAAI,MAAM,QAAQ,SAAS;CAC5C,IAAI,QAAQ,OAAO,SAAS,YAAY,OAAO,SAAS,YAAY;EAClE,KAAK,IAAI,OAAO,kBAAkB,IAAI,GACpC,IAAI,CAAC,aAAa,KAAK,IAAI,GAAG,KAAK,QAAQ,QACzC,UAAU,IAAI,KAAK;GAAE,WAAW,KAAK;GAAM,YAAY,EAAE,OAAO,iBAAiB,MAAM,GAAG,MAAM,KAAK;EAAW,CAAC;CACvH;CACA,OAAO;AACT;AACA,IAAI,WAAW,KAAK,YAAY,YAAY,SAAS,OAAO,OAAO,SAAS,aAAa,GAAG,CAAC,IAAI,CAAC,GAAG,YAKnG,cAAc,CAAC,OAAO,CAAC,IAAI,aAAa,UAAU,QAAQ,WAAW;CAAE,OAAO;CAAK,YAAY;AAAK,CAAC,IAAI,QACzG,GACF;AACA,IAAI,gBAAgB,QAAQ,YAAY,UAAU,CAAC,GAAG,cAAc,EAAE,OAAO,KAAK,CAAC,GAAG,GAAG;AACzF,IAAI,sBAAsB,CAAC;AAC3B,SAAS,qBAAqB,EAC5B,mBAAmB,YACrB,CAAC;AACD,OAAO,UAAU,aAAa,mBAAmB;AACjD,IAAI,qBAAqB,QAAQ,mBAAmB;AACpD,IAAI,eAAe,QAAQ,QAAQ,OAAO,GAAG,CAAC;AAC9C,IAAI,sBAAsB,QAAQ,uBAAuB;AACzD,IAAI,cAAc,SAAS,OAAO;CAChC,IAAI,EAAE,SAAS,UAAU,MAAM,SAAS,UAAU,aAAa,GAAG,eAAe;CACjF,IAAI,MAAM,aAAa,QAAQ,OAAO,IAAI;CAC1C,IAAI,eAAe,GAAG,oBAAoB,aAAa,OAAO;CAC9D,aAAa,QAAQ,UAAU,WAAW;EACxC,IAAI,QAAQ,IAAI;EAChB,IAAI,aAAa,OAAO,iBAAiB;EACzC,IAAI,aAAa,OAAO,yBAAyB,YAAY,SAAS;EACtE,IAAI,aAAa,WAAW;EAC5B,IAAI,gBAAgB,WAAW,YAAY;GACzC,IAAI,QAAQ,IAAI,MAAM,SAAS,EAC7B,QACF,CAAC;GACD,WAAW,KAAK,OAAO,OAAO;GAC9B,MAAM,cAAc,KAAK;EAC3B;CACF,GAAG;EACD;EACA;EACA;CACF,CAAC;CACD,OAAuB,iBAAC,GAAG,mBAAmB,KAAK,SAAS;EAC1D,MAAM;EACN,gBAAgB;EAChB,GAAG;EACH,UAAU,CAAC;EACX;EACA,eAAe;EACf,OAAO;GACL,GAAG,WAAW;IAEZ,UAAU;IACV,eAAe;IACf,SAAS;IACT,QAAQ;GACV,IAAI;IACF,YAAY;IACZ;GACF;GACA,GAAG,MAAM;EACX;CACF,CAAC;AACH"}
@@ -1,21 +1,20 @@
1
+
1
2
  var __defProp = Object.defineProperty;
2
3
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
4
  var __getOwnPropNames = Object.getOwnPropertyNames;
4
5
  var __hasOwnProp = Object.prototype.hasOwnProperty;
5
6
  var __copyProps = (to, from, except, desc) => {
6
- if (from && typeof from === "object" || typeof from === "function") {
7
- for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
8
- get: () => from[key],
9
- enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
10
- });
11
- }
12
- return to;
7
+ if (from && typeof from === "object" || typeof from === "function") {
8
+ for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
9
+ get: () => from[key],
10
+ enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
11
+ });
12
+ }
13
+ return to;
13
14
  };
14
15
  var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
15
- var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
16
- value: true
17
- }), mod);
16
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
18
17
  var index_exports = {};
19
18
  module.exports = __toCommonJS(index_exports);
20
19
  __reExport(index_exports, require("./useRadioGroup.cjs"), module.exports);
21
- __reExport(index_exports, require("./utils.cjs"), module.exports);
20
+ __reExport(index_exports, require("./utils.cjs"), module.exports);
@@ -0,0 +1,22 @@
1
+ "use strict";
2
+
3
+
4
+ var __defProp = Object.defineProperty;
5
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
6
+ var __getOwnPropNames = Object.getOwnPropertyNames;
7
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
8
+ var __copyProps = (to, from, except, desc) => {
9
+ if (from && typeof from === "object" || typeof from === "function") {
10
+ for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
11
+ get: () => from[key],
12
+ enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
13
+ });
14
+ }
15
+ return to;
16
+ };
17
+ var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+ var index_exports = {};
20
+ module.exports = __toCommonJS(index_exports);
21
+ __reExport(index_exports, require("./useRadioGroup.native.js"), module.exports);
22
+ __reExport(index_exports, require("./utils.native.js"), module.exports);
@@ -1,24 +1,24 @@
1
1
  "use strict";
2
2
 
3
+
3
4
  var __defProp = Object.defineProperty;
4
5
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
6
  var __getOwnPropNames = Object.getOwnPropertyNames;
6
7
  var __hasOwnProp = Object.prototype.hasOwnProperty;
7
8
  var __copyProps = (to, from, except, desc) => {
8
- if (from && typeof from === "object" || typeof from === "function") {
9
- for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
10
- get: () => from[key],
11
- enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
12
- });
13
- }
14
- return to;
9
+ if (from && typeof from === "object" || typeof from === "function") {
10
+ for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
11
+ get: () => from[key],
12
+ enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
13
+ });
14
+ }
15
+ return to;
15
16
  };
16
17
  var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
17
- var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
18
- value: true
19
- }), mod);
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
20
19
  var index_exports = {};
21
20
  module.exports = __toCommonJS(index_exports);
22
21
  __reExport(index_exports, require("./useRadioGroup.native.js"), module.exports);
23
22
  __reExport(index_exports, require("./utils.native.js"), module.exports);
23
+
24
24
  //# sourceMappingURL=index.native.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["__toCommonJS","mod","__copyProps","__defProp","value","index_exports","module","exports","__reExport","require"],"sources":["../../src/index.ts"],"sourcesContent":[null],"mappings":";;;;;;;;;;;;;;;;AAAA,IAAAA,YAAA,GAAAC,GAAA,IAAAC,WAAA,CAAAC,SAAA;EAAAC,KAAA;AAAA,IAAAH,GAAA;AAAA,IAAAI,aAAA;AAAAC,MAAA,CAAAC,OAAA,GAAAP,YAAc,CAAAK,aAAA;AACdG,UAAA,CAAAH,aAAA,EAAcI,OAAA,4BADd,GAAAH,MAAA,CAAAC,OAAA","ignoreList":[]}
1
+ {"version":3,"file":"index.native.js","names":[],"sources":["cjs/index.native.js"],"sourcesContent":["\"use strict\";\nvar __defProp = Object.defineProperty;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __getOwnPropNames = Object.getOwnPropertyNames;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __copyProps = (to, from, except, desc) => {\n if (from && typeof from === \"object\" || typeof from === \"function\") {\n for (let key of __getOwnPropNames(from))\n if (!__hasOwnProp.call(to, key) && key !== except)\n __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });\n }\n return to;\n};\nvar __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, \"default\"), secondTarget && __copyProps(secondTarget, mod, \"default\"));\nvar __toCommonJS = (mod) => __copyProps(__defProp({}, \"__esModule\", { value: true }), mod);\nvar index_exports = {};\nmodule.exports = __toCommonJS(index_exports);\n__reExport(index_exports, require(\"./useRadioGroup\"), module.exports);\n__reExport(index_exports, require(\"./utils\"), module.exports);\n//# sourceMappingURL=index.js.map\n"],"mappings":";;;;AACA,IAAI,YAAY,OAAO;AACvB,IAAI,mBAAmB,OAAO;AAC9B,IAAI,oBAAoB,OAAO;AAC/B,IAAI,eAAe,OAAO,UAAU;AACpC,IAAI,eAAe,IAAI,MAAM,QAAQ,SAAS;CAC5C,IAAI,QAAQ,OAAO,SAAS,YAAY,OAAO,SAAS,YAAY;EAClE,KAAK,IAAI,OAAO,kBAAkB,IAAI,GACpC,IAAI,CAAC,aAAa,KAAK,IAAI,GAAG,KAAK,QAAQ,QACzC,UAAU,IAAI,KAAK;GAAE,WAAW,KAAK;GAAM,YAAY,EAAE,OAAO,iBAAiB,MAAM,GAAG,MAAM,KAAK;EAAW,CAAC;CACvH;CACA,OAAO;AACT;AACA,IAAI,cAAc,QAAQ,KAAK,kBAAkB,YAAY,QAAQ,KAAK,SAAS,GAAG,gBAAgB,YAAY,cAAc,KAAK,SAAS;AAC9I,IAAI,gBAAgB,QAAQ,YAAY,UAAU,CAAC,GAAG,cAAc,EAAE,OAAO,KAAK,CAAC,GAAG,GAAG;AACzF,IAAI,gBAAgB,CAAC;AACrB,OAAO,UAAU,aAAa,aAAa;AAC3C,WAAW,eAAe,QAAQ,2BAAiB,GAAG,OAAO,OAAO;AACpE,WAAW,eAAe,QAAQ,mBAAS,GAAG,OAAO,OAAO"}