@tamagui/focus-scope 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/FocusScope.cjs +284 -167
  2. package/dist/cjs/FocusScope.native.js +28 -26
  3. package/dist/cjs/FocusScope.native.js.map +1 -1
  4. package/dist/cjs/FocusScopeController.cjs +52 -50
  5. package/dist/cjs/FocusScopeController.native.js +49 -47
  6. package/dist/cjs/FocusScopeController.native.js.map +1 -1
  7. package/dist/cjs/index.cjs +7 -5
  8. package/dist/cjs/index.native.js +7 -5
  9. package/dist/cjs/index.native.js.map +1 -1
  10. package/dist/cjs/types.cjs +7 -5
  11. package/dist/cjs/types.native.js +7 -5
  12. package/dist/cjs/types.native.js.map +1 -1
  13. package/dist/esm/FocusScope.mjs +253 -138
  14. package/dist/esm/FocusScope.mjs.map +1 -1
  15. package/dist/esm/FocusScopeController.mjs +24 -24
  16. package/dist/esm/FocusScopeController.mjs.map +1 -1
  17. package/dist/esm/FocusScopeController.native.js +21 -21
  18. package/dist/esm/FocusScopeController.native.js.map +1 -1
  19. package/dist/esm/index.js +2 -2
  20. package/dist/esm/index.js.map +1 -6
  21. package/dist/jsx/FocusScope.mjs +253 -138
  22. package/dist/jsx/FocusScope.mjs.map +1 -1
  23. package/dist/jsx/FocusScope.native.js +28 -26
  24. package/dist/jsx/FocusScope.native.js.map +1 -1
  25. package/dist/jsx/FocusScopeController.mjs +24 -24
  26. package/dist/jsx/FocusScopeController.mjs.map +1 -1
  27. package/dist/jsx/FocusScopeController.native.js +49 -47
  28. package/dist/jsx/FocusScopeController.native.js.map +1 -1
  29. package/dist/jsx/index.js +2 -2
  30. package/dist/jsx/index.js.map +1 -6
  31. package/dist/jsx/index.native.js +7 -5
  32. package/dist/jsx/types.native.js +7 -5
  33. package/package.json +11 -14
  34. package/src/FocusScope.tsx +33 -6
  35. package/types/FocusScope.d.ts.map +1 -1
  36. package/dist/cjs/FocusScope.js +0 -245
  37. package/dist/cjs/FocusScope.js.map +0 -6
  38. package/dist/cjs/FocusScopeController.js +0 -69
  39. package/dist/cjs/FocusScopeController.js.map +0 -6
  40. package/dist/cjs/index.js +0 -16
  41. package/dist/cjs/index.js.map +0 -6
  42. package/dist/cjs/types.js +0 -14
  43. package/dist/cjs/types.js.map +0 -6
  44. package/dist/esm/FocusScope.js +0 -227
  45. package/dist/esm/FocusScope.js.map +0 -6
  46. package/dist/esm/FocusScopeController.js +0 -48
  47. package/dist/esm/FocusScopeController.js.map +0 -6
  48. package/dist/esm/types.js +0 -1
  49. package/dist/esm/types.js.map +0 -6
  50. package/dist/jsx/FocusScope.js +0 -227
  51. package/dist/jsx/FocusScope.js.map +0 -6
  52. package/dist/jsx/FocusScopeController.js +0 -48
  53. package/dist/jsx/FocusScopeController.js.map +0 -6
  54. package/dist/jsx/types.js +0 -1
  55. package/dist/jsx/types.js.map +0 -6
@@ -2,33 +2,35 @@ 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 FocusScopeController_exports = {};
33
35
  __export(FocusScopeController_exports, {
34
36
  FocusScopeController: () => FocusScopeControllerComponent,
@@ -37,36 +39,36 @@ __export(FocusScopeController_exports, {
37
39
  useFocusScopeControllerContext: () => useFocusScopeControllerContext
38
40
  });
39
41
  module.exports = __toCommonJS(FocusScopeController_exports);
40
- var import_create_context = require("@tamagui/create-context"),
41
- import_use_event = require("@tamagui/use-event"),
42
- React = __toESM(require("react"), 1),
43
- import_jsx_runtime = require("react/jsx-runtime");
44
- const FOCUS_SCOPE_CONTROLLER_NAME = "FocusScopeController",
45
- [createFocusScopeControllerContext, createFocusScopeControllerScope] = (0, import_create_context.createContextScope)(FOCUS_SCOPE_CONTROLLER_NAME),
46
- [FocusScopeControllerProvider, useFocusScopeControllerContext] = createFocusScopeControllerContext(FOCUS_SCOPE_CONTROLLER_NAME);
42
+ var import_create_context = require("@tamagui/create-context");
43
+ var import_use_event = require("@tamagui/use-event");
44
+ var React = __toESM(require("react"), 1);
45
+ var import_jsx_runtime = require("react/jsx-runtime");
46
+ const FOCUS_SCOPE_CONTROLLER_NAME = "FocusScopeController";
47
+ const [createFocusScopeControllerContext, createFocusScopeControllerScope] = (0, import_create_context.createContextScope)(FOCUS_SCOPE_CONTROLLER_NAME);
48
+ const [FocusScopeControllerProvider, useFocusScopeControllerContext] = createFocusScopeControllerContext(FOCUS_SCOPE_CONTROLLER_NAME);
47
49
  function FocusScopeController(props) {
48
50
  const {
49
- __scopeFocusScope,
50
- children,
51
- enabled,
52
- loop,
53
- trapped,
54
- onMountAutoFocus,
55
- onUnmountAutoFocus,
56
- forceUnmount,
57
- focusOnIdle
58
- } = props,
59
- stableOnMountAutoFocus = (0, import_use_event.useEvent)(onMountAutoFocus),
60
- stableOnUnmountAutoFocus = (0, import_use_event.useEvent)(onUnmountAutoFocus),
61
- contextValue = React.useMemo(() => ({
62
- enabled,
63
- loop,
64
- trapped,
65
- onMountAutoFocus: stableOnMountAutoFocus,
66
- onUnmountAutoFocus: stableOnUnmountAutoFocus,
67
- forceUnmount,
68
- focusOnIdle
69
- }), [enabled, loop, trapped, stableOnMountAutoFocus, stableOnUnmountAutoFocus, forceUnmount, focusOnIdle]);
51
+ __scopeFocusScope,
52
+ children,
53
+ enabled,
54
+ loop,
55
+ trapped,
56
+ onMountAutoFocus,
57
+ onUnmountAutoFocus,
58
+ forceUnmount,
59
+ focusOnIdle
60
+ } = props;
61
+ const stableOnMountAutoFocus = (0, import_use_event.useEvent)(onMountAutoFocus);
62
+ const stableOnUnmountAutoFocus = (0, import_use_event.useEvent)(onUnmountAutoFocus);
63
+ const contextValue = React.useMemo(() => ({
64
+ enabled,
65
+ loop,
66
+ trapped,
67
+ onMountAutoFocus: stableOnMountAutoFocus,
68
+ onUnmountAutoFocus: stableOnUnmountAutoFocus,
69
+ forceUnmount,
70
+ focusOnIdle
71
+ }), [enabled, loop, trapped, stableOnMountAutoFocus, stableOnUnmountAutoFocus, forceUnmount, focusOnIdle]);
70
72
  return /* @__PURE__ */(0, import_jsx_runtime.jsx)(FocusScopeControllerProvider, {
71
73
  scope: __scopeFocusScope,
72
74
  ...contextValue,
@@ -4,33 +4,35 @@ 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 FocusScopeController_exports = {};
35
37
  __export(FocusScopeController_exports, {
36
38
  FocusScopeController: () => FocusScopeControllerComponent,
@@ -39,38 +41,38 @@ __export(FocusScopeController_exports, {
39
41
  useFocusScopeControllerContext: () => useFocusScopeControllerContext
40
42
  });
41
43
  module.exports = __toCommonJS(FocusScopeController_exports);
42
- var import_jsx_runtime = require("react/jsx-runtime"),
43
- import_create_context = require("@tamagui/create-context"),
44
- import_use_event = require("@tamagui/use-event"),
45
- React = __toESM(require("react"), 1),
46
- FOCUS_SCOPE_CONTROLLER_NAME = "FocusScopeController",
47
- [createFocusScopeControllerContext, createFocusScopeControllerScope] = (0, import_create_context.createContextScope)(FOCUS_SCOPE_CONTROLLER_NAME),
48
- [FocusScopeControllerProvider, useFocusScopeControllerContext] = createFocusScopeControllerContext(FOCUS_SCOPE_CONTROLLER_NAME);
44
+ var import_jsx_runtime = require("react/jsx-runtime");
45
+ var import_create_context = require("@tamagui/create-context");
46
+ var import_use_event = require("@tamagui/use-event");
47
+ var React = __toESM(require("react"), 1);
48
+ var FOCUS_SCOPE_CONTROLLER_NAME = "FocusScopeController";
49
+ var [createFocusScopeControllerContext, createFocusScopeControllerScope] = (0, import_create_context.createContextScope)(FOCUS_SCOPE_CONTROLLER_NAME);
50
+ var [FocusScopeControllerProvider, useFocusScopeControllerContext] = createFocusScopeControllerContext(FOCUS_SCOPE_CONTROLLER_NAME);
49
51
  function FocusScopeController(props) {
50
52
  var {
51
- __scopeFocusScope,
52
- children,
53
+ __scopeFocusScope,
54
+ children,
55
+ enabled,
56
+ loop,
57
+ trapped,
58
+ onMountAutoFocus,
59
+ onUnmountAutoFocus,
60
+ forceUnmount,
61
+ focusOnIdle
62
+ } = props;
63
+ var stableOnMountAutoFocus = (0, import_use_event.useEvent)(onMountAutoFocus);
64
+ var stableOnUnmountAutoFocus = (0, import_use_event.useEvent)(onUnmountAutoFocus);
65
+ var contextValue = React.useMemo(function () {
66
+ return {
53
67
  enabled,
54
68
  loop,
55
69
  trapped,
56
- onMountAutoFocus,
57
- onUnmountAutoFocus,
70
+ onMountAutoFocus: stableOnMountAutoFocus,
71
+ onUnmountAutoFocus: stableOnUnmountAutoFocus,
58
72
  forceUnmount,
59
73
  focusOnIdle
60
- } = props,
61
- stableOnMountAutoFocus = (0, import_use_event.useEvent)(onMountAutoFocus),
62
- stableOnUnmountAutoFocus = (0, import_use_event.useEvent)(onUnmountAutoFocus),
63
- contextValue = React.useMemo(function () {
64
- return {
65
- enabled,
66
- loop,
67
- trapped,
68
- onMountAutoFocus: stableOnMountAutoFocus,
69
- onUnmountAutoFocus: stableOnUnmountAutoFocus,
70
- forceUnmount,
71
- focusOnIdle
72
- };
73
- }, [enabled, loop, trapped, stableOnMountAutoFocus, stableOnUnmountAutoFocus, forceUnmount, focusOnIdle]);
74
+ };
75
+ }, [enabled, loop, trapped, stableOnMountAutoFocus, stableOnUnmountAutoFocus, forceUnmount, focusOnIdle]);
74
76
  return /* @__PURE__ */(0, import_jsx_runtime.jsx)(FocusScopeControllerProvider, {
75
77
  scope: __scopeFocusScope,
76
78
  ...contextValue,
@@ -1 +1 @@
1
- {"version":3,"names":["__toCommonJS","mod","__copyProps","__defProp","value","FocusScopeController_exports","__export","FocusScopeController","FocusScopeControllerComponent","FocusScopeControllerProvider","createFocusScopeControllerScope","useFocusScopeControllerContext","module","exports","import_jsx_runtime","require","import_create_context","import_use_event","React","__toESM","FOCUS_SCOPE_CONTROLLER_NAME","createFocusScopeControllerContext","createContextScope","props","__scopeFocusScope","children","enabled","loop","trapped","onMountAutoFocus","onUnmountAutoFocus","forceUnmount","focusOnIdle","stableOnMountAutoFocus","useEvent","stableOnUnmountAutoFocus","contextValue","useMemo","jsx","scope"],"sources":["../../src/FocusScopeController.tsx"],"sourcesContent":[null],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBAAA;EAAAA,YAAA,GAAAC,GAAA,IAAAC,WAAA,CAAAC,SAAA;IAAAC,KAAA;EAAA,IAAAH,GAAA;AAAA,IAAAI,4BAAA;AAAAC,QAAA,CAAAD,4BAAA;EAAAE,oBAAA,EAAAA,CAAA,KAAAC,6BAAA;EAAAC,4BAAA,EAAAA,CAAA,KAAAA,4BAAA;EAAAC,+BAAA,EAAAA,CAAA,KAAAA,+BAAA;EAAAC,8BAAA,EAAAA,CAAA,KAAAA;AAAA;AAAAC,MAAA,CAAAC,OAAA,GAAAb,YAAmC,CAAAK,4BAAA;AAMnC,IAAAS,kBAAM,GAAAC,OAAA,oBAA8B;EAAAC,qBAE7B,GAAAD,OAAA,0BAAmC;EAAAE,gBAA+B,GAAAF,OACvE;EAAAG,KAAA,GAAAC,OAAmB,CAAAJ,OAAA;EAAAK,2BAId,yBAA8B;EAAA,CAAAC,iCACnC,EAAAX,+BAAA,QAAAM,qBAAA,CAAAM,kBAAA,EAAAF,2BAAA;EAAA,CAAAX,4BAAA,EAAAE,8BAAA,IAAAU,iCAAA,CAAAD,2BAAA;AAAA,SACEb,qBAAAgB,KAAA;EACF;MAAAC,iBAAA;MAAAC,QAAA;MAAAC,OAAA;MAAAC,IAAA;MAAAC,OAAA;MAAAC,gBAAA;MAAAC,kBAAA;MAAAC,YAAA;MAAAC;IAAA,IAAAT,KAAA;IAAAU,sBAAA,OAAAhB,gBAAA,CAAAiB,QAAA,EAAAL,gBAAA;IAAAM,wBAAA,OAAAlB,gBAAA,CAAAiB,QAAA,EAAAJ,kBAAA;IAAAM,YAAA,GAAAlB,KAAA,CAAAmB,OAAA;MAUF,OAAS;QACPX,OAAM;QACJC,IAAA;QACAC,OAAA;QACAC,gBAAA,EAAAI,sBAAA;QACAH,kBAAA,EAAAK,wBAAA;QACAJ,YAAA;QACAC;MACA;IAAA,GACA,CACAN,OAAA,EACFC,IAAI,EAMFC,OAAO,EAAAK,sBACL,EAAAE,wBACA,EAAAJ,YACA,EAAAC,WACA,CAAkB;EACE,OACpB,mBAAAlB,kBAAA,CAAAwB,GAAA,EAAA7B,4BAAA;IAAA8B,KACA,EAAAf,iBAAA;IACF,GAAAY,YAAA;IACAX;EAAA;AACE;AACA,IAAAjB,6BACA,GAAAD,oBAAA","ignoreList":[]}
1
+ {"version":3,"names":["__toCommonJS","mod","__copyProps","__defProp","value","FocusScopeController_exports","__export","FocusScopeController","FocusScopeControllerComponent","FocusScopeControllerProvider","createFocusScopeControllerScope","useFocusScopeControllerContext","module","exports","import_jsx_runtime","require","import_create_context","import_use_event","React","__toESM","FOCUS_SCOPE_CONTROLLER_NAME","createFocusScopeControllerContext","createContextScope","props","__scopeFocusScope","children","enabled","loop","trapped","onMountAutoFocus","onUnmountAutoFocus","forceUnmount","focusOnIdle","stableOnMountAutoFocus","useEvent","stableOnUnmountAutoFocus","contextValue","useMemo","jsx","scope"],"sources":["../../src/FocusScopeController.tsx"],"sourcesContent":[null],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,IAAAA,YAAA,GAAAC,GAAA,IAAAC,WAAA,CAAAC,SAAA;EAAAC,KAAA;AAAA,IAAAH,GAAA;AAAA,IAAAI,4BAAA;AAAAC,QAAA,CAAAD,4BAAA;EAAAE,oBAAA,EAAAA,CAAA,KAAAC,6BAAA;EAAAC,4BAAA,EAAAA,CAAA,KAAAA,4BAAA;EAAAC,+BAAA,EAAAA,CAAA,KAAAA,+BAAA;EAAAC,8BAAA,EAAAA,CAAA,KAAAA;AAAA;AAAAC,MAAA,CAAAC,OAAA,GAAAb,YAAmC,CAAAK,4BAAA;AACnC,IAAAS,kBAAA,GAAyBC,OAAA;AACzB,IAAAC,qBAAuB,GAAAD,OAAA;AA8DnB,IAAAE,gBAAA,GAAAF,OAAA;AA1DJ,IAAAG,KAAM,GAAAC,OAAA,CAAAJ,OAAA,SAA8B;AAEpC,IAAAK,2BAAO,yBAAmC;AAK1C,KAAAC,iCAAqC,EAAAX,+BACnC,QAAAM,qBAAA,CAAAM,kBAAA,EAAAF,2BAAA;AAAA,IACE,CAAAX,4BAAA,EAAAE,8BAAA,IAAAU,iCAAA,CAAAD,2BAAA;AACF,SAAAb,qBAAAgB,KAAA;EAUF;IAAAC,iBAAS;IAAAC,QAAqB;IAA+CC,OAAA;IAAAC,IAAA;IAAAC,OAAA;IAAAC,gBAAA;IAAAC,kBAAA;IAAAC,YAAA;IAAAC;EAAA,IAAAT,KAAA;EAC3E,IAAAU,sBAAM,OAAAhB,gBAAA,CAAAiB,QAAA,EAAAL,gBAAA;EAAA,IACJM,wBAAA,OAAAlB,gBAAA,CAAAiB,QAAA,EAAAJ,kBAAA;EAAA,IACAM,YAAA,GAAAlB,KAAA,CAAAmB,OAAA;IACA;MACAX,OAAA;MACAC,IAAA;MACAC,OAAA;MACAC,gBAAA,EAAAI,sBAAA;MACAH,kBAAA,EAAAK,wBAAA;MACAJ,YAAA;MACEC;IAEJ;EACA,IAEAN,OAAM,EACJC,IAAA,EAAOC,OACL,EAAAK,sBACA,EAAAE,wBACA,EAAAJ,YACA,EAAkBC,WAClB,CAAoB;EACpB,OACA,mBAAAlB,kBAAA,CAAAwB,GAAA,EAAA7B,4BAAA;IACF8B,KAAA,EAAAf,iBAAA;IACA,GAAAY,YAAA;IAAAX;EACE;AACA;AACA,IAAAjB,6BACA,GAAAD,oBAAA","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,4BAAAH,MAAA,CAAAC,OADd","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,4BAAAH,MAAA,CAAAC,OADd","ignoreList":[]}
@@ -3,14 +3,16 @@ 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, {
7
- get: () => from[key],
8
- enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
9
- });
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
+ }
10
12
  return to;
11
13
  };
12
14
  var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
13
- value: !0
15
+ value: true
14
16
  }), mod);
15
17
  var types_exports = {};
16
18
  module.exports = __toCommonJS(types_exports);
@@ -5,14 +5,16 @@ 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, {
9
- get: () => from[key],
10
- enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
11
- });
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
+ }
12
14
  return to;
13
15
  };
14
16
  var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
15
- value: !0
17
+ value: true
16
18
  }), mod);
17
19
  var types_exports = {};
18
20
  module.exports = __toCommonJS(types_exports);
@@ -1 +1 @@
1
- {"version":3,"names":["__toCommonJS","mod","__copyProps","__defProp","value","types_exports"],"sources":["../../src/types.tsx"],"sourcesContent":[null],"mappings":";;;;;;;;;;;;;AAAA,IAAAA,YAAA,GAAAC,GAAA,IAAAC,WAAA,CAAAC,SAAA;EAAAC,KAAA;AAAA,IAAAH,GAAA;AAAA,IAAAI,aAAA","ignoreList":[]}
1
+ {"version":3,"names":["__toCommonJS","mod","__copyProps","__defProp","value","types_exports"],"sources":["../../src/types.tsx"],"sourcesContent":[null],"mappings":";;;;;;;;;;;;;;;AAAA,IAAAA,YAAA,GAAAC,GAAA,IAAAC,WAAA,CAAAC,SAAA;EAAAC,KAAA;AAAA,IAAAH,GAAA;AAAA,IAAAI,aAAA","ignoreList":[]}