@tamagui/radio-headless 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 (55) hide show
  1. package/dist/cjs/BubbleInput.cjs +45 -40
  2. package/dist/cjs/BubbleInput.native.js +73 -69
  3. package/dist/cjs/BubbleInput.native.js.map +1 -1
  4. package/dist/cjs/index.cjs +7 -5
  5. package/dist/cjs/index.native.js +7 -5
  6. package/dist/cjs/index.native.js.map +1 -1
  7. package/dist/cjs/useRadioGroup.cjs +149 -138
  8. package/dist/cjs/useRadioGroup.native.js +163 -149
  9. package/dist/cjs/useRadioGroup.native.js.map +1 -1
  10. package/dist/cjs/utils.cjs +12 -10
  11. package/dist/cjs/utils.native.js +12 -10
  12. package/dist/cjs/utils.native.js.map +1 -1
  13. package/dist/esm/BubbleInput.mjs +18 -15
  14. package/dist/esm/BubbleInput.mjs.map +1 -1
  15. package/dist/esm/BubbleInput.native.js +18 -16
  16. package/dist/esm/BubbleInput.native.js.map +1 -1
  17. package/dist/esm/index.js +2 -2
  18. package/dist/esm/index.js.map +1 -6
  19. package/dist/esm/useRadioGroup.mjs +128 -118
  20. package/dist/esm/useRadioGroup.mjs.map +1 -1
  21. package/dist/esm/useRadioGroup.native.js +141 -129
  22. package/dist/esm/useRadioGroup.native.js.map +1 -1
  23. package/dist/jsx/BubbleInput.mjs +18 -15
  24. package/dist/jsx/BubbleInput.mjs.map +1 -1
  25. package/dist/jsx/BubbleInput.native.js +73 -69
  26. package/dist/jsx/BubbleInput.native.js.map +1 -1
  27. package/dist/jsx/index.js +2 -2
  28. package/dist/jsx/index.js.map +1 -6
  29. package/dist/jsx/index.native.js +7 -5
  30. package/dist/jsx/useRadioGroup.mjs +128 -118
  31. package/dist/jsx/useRadioGroup.mjs.map +1 -1
  32. package/dist/jsx/useRadioGroup.native.js +163 -149
  33. package/dist/jsx/useRadioGroup.native.js.map +1 -1
  34. package/dist/jsx/utils.native.js +12 -10
  35. package/package.json +15 -18
  36. package/dist/cjs/BubbleInput.js +0 -65
  37. package/dist/cjs/BubbleInput.js.map +0 -6
  38. package/dist/cjs/index.js +0 -16
  39. package/dist/cjs/index.js.map +0 -6
  40. package/dist/cjs/useRadioGroup.js +0 -160
  41. package/dist/cjs/useRadioGroup.js.map +0 -6
  42. package/dist/cjs/utils.js +0 -23
  43. package/dist/cjs/utils.js.map +0 -6
  44. package/dist/esm/BubbleInput.js +0 -43
  45. package/dist/esm/BubbleInput.js.map +0 -6
  46. package/dist/esm/useRadioGroup.js +0 -153
  47. package/dist/esm/useRadioGroup.js.map +0 -6
  48. package/dist/esm/utils.js +0 -7
  49. package/dist/esm/utils.js.map +0 -6
  50. package/dist/jsx/BubbleInput.js +0 -43
  51. package/dist/jsx/BubbleInput.js.map +0 -6
  52. package/dist/jsx/useRadioGroup.js +0 -153
  53. package/dist/jsx/useRadioGroup.js.map +0 -6
  54. package/dist/jsx/utils.js +0 -7
  55. package/dist/jsx/utils.js.map +0 -6
@@ -2,63 +2,68 @@ var __create = Object.create;
2
2
  var __defProp = Object.defineProperty;
3
3
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
4
  var __getOwnPropNames = Object.getOwnPropertyNames;
5
- var __getProtoOf = Object.getPrototypeOf,
6
- __hasOwnProp = Object.prototype.hasOwnProperty;
5
+ var __getProtoOf = Object.getPrototypeOf;
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 __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
21
- // If the importer is in node compatibility mode or this is not an ESM
22
- // file that has been converted to a CommonJS file using a Babel-
23
- // compatible transform (i.e. "__esModule" has not been set), then set
24
- // "default" to the CommonJS "module.exports" for node compatibility.
25
- isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
26
- value: mod,
27
- enumerable: !0
28
- }) : target, mod)),
29
- __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
30
- value: !0
31
- }), mod);
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
30
+ }) : target, mod));
31
+ var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
32
+ value: true
33
+ }), mod);
32
34
  var BubbleInput_exports = {};
33
35
  __export(BubbleInput_exports, {
34
36
  BubbleInput: () => BubbleInput
35
37
  });
36
38
  module.exports = __toCommonJS(BubbleInput_exports);
37
- var import_react = __toESM(require("react"), 1),
38
- import_use_previous = require("@tamagui/use-previous"),
39
- import_jsx_runtime = require("react/jsx-runtime");
39
+ var import_react = __toESM(require("react"), 1);
40
+ var import_use_previous = require("@tamagui/use-previous");
41
+ var import_jsx_runtime = require("react/jsx-runtime");
40
42
  const BubbleInput = props => {
41
43
  const {
42
- checked,
43
- bubbles = !0,
44
- control,
45
- isHidden,
46
- accentColor,
47
- ...inputProps
48
- } = props,
49
- ref = import_react.default.useRef(null),
50
- prevChecked = (0, import_use_previous.usePrevious)(checked);
51
- return import_react.default.useEffect(() => {
52
- const input = ref.current,
53
- inputProto = window.HTMLInputElement.prototype,
54
- setChecked = Object.getOwnPropertyDescriptor(inputProto, "checked").set;
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;
55
58
  if (prevChecked !== checked && setChecked) {
56
59
  const event = new Event("click", {
57
60
  bubbles
58
61
  });
59
- setChecked.call(input, checked), input.dispatchEvent(event);
62
+ setChecked.call(input, checked);
63
+ input.dispatchEvent(event);
60
64
  }
61
- }, [prevChecked, checked, bubbles]), /* @__PURE__ */(0, import_jsx_runtime.jsx)("input", {
65
+ }, [prevChecked, checked, bubbles]);
66
+ return /* @__PURE__ */(0, import_jsx_runtime.jsx)("input", {
62
67
  type: "radio",
63
68
  defaultChecked: checked,
64
69
  ...inputProps,
@@ -4,83 +4,87 @@ var __create = Object.create;
4
4
  var __defProp = Object.defineProperty;
5
5
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
6
6
  var __getOwnPropNames = Object.getOwnPropertyNames;
7
- var __getProtoOf = Object.getPrototypeOf,
8
- __hasOwnProp = Object.prototype.hasOwnProperty;
7
+ var __getProtoOf = Object.getPrototypeOf;
8
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
9
9
  var __export = (target, all) => {
10
- for (var name in all) __defProp(target, name, {
11
- get: all[name],
12
- enumerable: !0
13
- });
14
- },
15
- __copyProps = (to, from, except, desc) => {
16
- if (from && typeof from == "object" || typeof from == "function") for (let key of __getOwnPropNames(from)) !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, {
10
+ for (var name in all) __defProp(target, name, {
11
+ get: all[name],
12
+ enumerable: true
13
+ });
14
+ };
15
+ 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, {
17
18
  get: () => from[key],
18
19
  enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
19
20
  });
20
- return to;
21
- };
21
+ }
22
+ return to;
23
+ };
22
24
  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: !0
30
- }) : target, mod)),
31
- __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
32
- value: !0
33
- }), mod);
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
32
+ }) : target, mod));
33
+ var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
34
+ value: true
35
+ }), mod);
34
36
  var BubbleInput_exports = {};
35
37
  __export(BubbleInput_exports, {
36
38
  BubbleInput: () => BubbleInput
37
39
  });
38
40
  module.exports = __toCommonJS(BubbleInput_exports);
39
- var import_jsx_runtime = require("react/jsx-runtime"),
40
- import_react = __toESM(require("react"), 1),
41
- import_use_previous = require("@tamagui/use-previous"),
42
- BubbleInput = function (props) {
43
- var {
44
- checked,
45
- bubbles = !0,
46
- control,
47
- isHidden,
48
- accentColor,
49
- ...inputProps
50
- } = props,
51
- ref = import_react.default.useRef(null),
52
- prevChecked = (0, import_use_previous.usePrevious)(checked);
53
- return import_react.default.useEffect(function () {
54
- var input = ref.current,
55
- inputProto = window.HTMLInputElement.prototype,
56
- descriptor = Object.getOwnPropertyDescriptor(inputProto, "checked"),
57
- setChecked = descriptor.set;
58
- if (prevChecked !== checked && setChecked) {
59
- var event = new Event("click", {
60
- bubbles
61
- });
62
- setChecked.call(input, checked), input.dispatchEvent(event);
63
- }
64
- }, [prevChecked, checked, bubbles]), /* @__PURE__ */(0, import_jsx_runtime.jsx)("input", {
65
- type: "radio",
66
- defaultChecked: checked,
67
- ...inputProps,
68
- tabIndex: -1,
69
- ref,
70
- "aria-hidden": isHidden,
71
- style: {
72
- ...(isHidden ? {
73
- // ...controlSize,
74
- position: "absolute",
75
- pointerEvents: "none",
76
- opacity: 0,
77
- margin: 0
78
- } : {
79
- appearance: "auto",
80
- accentColor
81
- }),
82
- ...props.style
83
- }
84
- });
85
- };
41
+ var import_jsx_runtime = require("react/jsx-runtime");
42
+ var import_react = __toESM(require("react"), 1);
43
+ 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
+ });
89
+ };
86
90
  //# 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":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBAAA;EAAAA,YAAA,GAAAC,GAAA,IAAAC,WAAA,CAAAC,SAAA;IAAAC,KAAA;EAAA,IAAAH,GAAA;AAAA,IAAAI,mBAAA;AAAAC,QAAA,CAAAD,mBAAA;EAAAE,WAAA,EAAAA,CAAA,KAAAA;AAAA;AAAAC,MAAA,CAAAC,OAAA,GAAAT,YAAkB,CAAAK,mBAClB;AAUO,IAAAK,kBAAqB,GAAAC,OAA4B;EAAAC,YAAA,GAAAC,OAAA,CAAAF,OAAA;EAAAG,mBAAA,GAAAH,OAAA;EAAAJ,WAAA,YAAAA,CAAAQ,KAAA;IACtD;QAAMC,OAAE;QAAAC,OAAS,KAAU;QAAAC,OAAM;QAAAC,QAAS;QAAAC,WAAU;QAAA,GAAaC;MAAG,IAAWN,KAAI;MAAAO,GAC7E,GAAAV,YAAM,CAAAW,OAAA,CAAAC,MAAM,KAAyB;MAAIC,WACzC,OAAAX,mBAAc,CAAAY,WAAA,EAAAV,OAAY;IAGhC,OAAAJ,YAAA,CAAAW,OAAA,CAAMI,SAAA,CAAU,YAAM;MACpB,IAAAC,KAAM,GAAAN,GAAQ,CAAAO,OAAI;QAAAC,UACZ,GAAAC,MAAa,CAAAC,gBAAO,CAAAC,SAAiB;QAAAC,UAKrC,GAAAC,MAJa,CAAAC,wBAAO,CAAAN,UAAA;QAAAO,UAAA,GAAAH,UAAA,CAAAI,GAAA;MAAA,IACxBb,WAAA,KAAAT,OAAA,IAAAqB,UAAA;QACA,IAAAE,KAAA,OAAAC,KAAA;UAE4BvB;QAC9B,EAAI;QACFoB,UAAM,CAAAI,IAAQ,CAAAb,KAAI,EAAAZ,OAAM,GAASY,KAAE,CAAAc,aAAS,CAAAH,KAAA;MAC5C;IACyB,GAC3B,CACFd,WAAI,EAGDT,OAAA,EAAAC,OAAA,IACC,eAAK,IAAAP,kBAAA,CAAAiC,GAAA;MAAAC,IACL;MAAgBC,cACZ,EAAA7B,OAAA;MAAA,GACJK,UAAU;MAAAyB,QACV;MAAAxB,GACA;MAAa,aACN,EAAAH,QAAA;MAAA4B,KACL,EAAI;QACA,IAAA5B,QAAA;UAAA;UAEY6B,QACV,YAAe;UAAAC,aACN;UAAAC,OACT,GAAQ;UACVC,MACA;QAAA,IACE;UAAYC,UACZ;UACFhC;QAAA;QAGN,GAAAL,KAAA,CAAAgC;MAAA;IACF;EAEJ","ignoreList":[]}
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":[]}
@@ -3,15 +3,17 @@ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
3
  var __getOwnPropNames = Object.getOwnPropertyNames;
4
4
  var __hasOwnProp = Object.prototype.hasOwnProperty;
5
5
  var __copyProps = (to, from, except, desc) => {
6
- if (from && typeof from == "object" || typeof from == "function") for (let key of __getOwnPropNames(from)) !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, {
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, {
7
8
  get: () => from[key],
8
9
  enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
9
10
  });
10
- return to;
11
- },
12
- __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
11
+ }
12
+ return to;
13
+ };
14
+ var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
13
15
  var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
14
- value: !0
16
+ value: true
15
17
  }), mod);
16
18
  var index_exports = {};
17
19
  module.exports = __toCommonJS(index_exports);
@@ -5,15 +5,17 @@ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
5
  var __getOwnPropNames = Object.getOwnPropertyNames;
6
6
  var __hasOwnProp = Object.prototype.hasOwnProperty;
7
7
  var __copyProps = (to, from, except, desc) => {
8
- if (from && typeof from == "object" || typeof from == "function") for (let key of __getOwnPropNames(from)) !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, {
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, {
9
10
  get: () => from[key],
10
11
  enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
11
12
  });
12
- return to;
13
- },
14
- __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
13
+ }
14
+ return to;
15
+ };
16
+ var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
15
17
  var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
16
- value: !0
18
+ value: true
17
19
  }), mod);
18
20
  var index_exports = {};
19
21
  module.exports = __toCommonJS(index_exports);
@@ -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,"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":[]}