@gaddario98/react-native-core 1.0.32 → 2.0.0

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 (60) hide show
  1. package/LICENSE.txt +20 -20
  2. package/README.md +15 -15
  3. package/dist/auth/index.d.ts +1 -1
  4. package/dist/auth/index.js +1 -1
  5. package/dist/auth/index.mjs +1 -1
  6. package/dist/config/index.d.ts +11 -16
  7. package/dist/config/index.js +122 -25
  8. package/dist/config/index.js.map +1 -1
  9. package/dist/config/index.mjs +122 -25
  10. package/dist/config/index.mjs.map +1 -1
  11. package/dist/expo/index.d.ts +17 -1
  12. package/dist/expo/index.js +445 -1
  13. package/dist/expo/index.js.map +1 -1
  14. package/dist/expo/index.mjs +445 -1
  15. package/dist/expo/index.mjs.map +1 -1
  16. package/dist/form/index.d.ts +1 -1
  17. package/dist/form/index.js +1 -1
  18. package/dist/form/index.mjs +1 -1
  19. package/dist/index.d.ts +160 -26
  20. package/dist/index.js +1 -26
  21. package/dist/index.js.map +1 -1
  22. package/dist/index.mjs +1 -26
  23. package/dist/index.mjs.map +1 -1
  24. package/dist/layouts/index.d.ts +30 -1
  25. package/dist/layouts/index.js +43 -1
  26. package/dist/layouts/index.js.map +1 -1
  27. package/dist/layouts/index.mjs +43 -1
  28. package/dist/layouts/index.mjs.map +1 -1
  29. package/dist/localization/index.d.ts +1 -1
  30. package/dist/localization/index.js +1 -1
  31. package/dist/localization/index.mjs +1 -1
  32. package/dist/pages/index.d.ts +11 -1
  33. package/dist/pages/index.js +231 -1
  34. package/dist/pages/index.js.map +1 -1
  35. package/dist/pages/index.mjs +231 -1
  36. package/dist/pages/index.mjs.map +1 -1
  37. package/dist/providers/index.d.ts +18 -1
  38. package/dist/providers/index.js +24 -1
  39. package/dist/providers/index.js.map +1 -1
  40. package/dist/providers/index.mjs +24 -1
  41. package/dist/providers/index.mjs.map +1 -1
  42. package/dist/queries/index.d.ts +1 -1
  43. package/dist/queries/index.js +1 -1
  44. package/dist/queries/index.mjs +1 -1
  45. package/dist/state/index.d.ts +10 -1
  46. package/dist/state/index.js +241 -1
  47. package/dist/state/index.js.map +1 -1
  48. package/dist/state/index.mjs +241 -1
  49. package/dist/state/index.mjs.map +1 -1
  50. package/dist/tabs/index.d.ts +89 -1
  51. package/dist/tabs/index.js +485 -1
  52. package/dist/tabs/index.js.map +1 -1
  53. package/dist/tabs/index.mjs +485 -1
  54. package/dist/tabs/index.mjs.map +1 -1
  55. package/dist/utiles/index.d.ts +5 -1
  56. package/dist/utiles/index.js +3 -1
  57. package/dist/utiles/index.js.map +1 -1
  58. package/dist/utiles/index.mjs +3 -1
  59. package/dist/utiles/index.mjs.map +1 -1
  60. package/package.json +181 -153
@@ -1 +1,241 @@
1
- 'use strict';var reactNativeState=require('@gaddario98/react-native-state');Object.keys(reactNativeState).forEach(function(k){if(k!=='default'&&!Object.prototype.hasOwnProperty.call(exports,k))Object.defineProperty(exports,k,{enumerable:true,get:function(){return reactNativeState[k]}})});//# sourceMappingURL=index.js.map
1
+ 'use strict';var AsyncStorage=require('@react-native-async-storage/async-storage'),reactNative=require('react-native'),state=require('@gaddario98/react-core/state');function asyncGeneratorStep(n, t, e, r, o, a, c) {
2
+ try {
3
+ var i = n[a](c),
4
+ u = i.value;
5
+ } catch (n) {
6
+ return void e(n);
7
+ }
8
+ i.done ? t(u) : Promise.resolve(u).then(r, o);
9
+ }
10
+ function _asyncToGenerator(n) {
11
+ return function () {
12
+ var t = this,
13
+ e = arguments;
14
+ return new Promise(function (r, o) {
15
+ var a = n.apply(t, e);
16
+ function _next(n) {
17
+ asyncGeneratorStep(a, r, o, _next, _throw, "next", n);
18
+ }
19
+ function _throw(n) {
20
+ asyncGeneratorStep(a, r, o, _next, _throw, "throw", n);
21
+ }
22
+ _next(void 0);
23
+ });
24
+ };
25
+ }
26
+ function _regenerator() {
27
+ /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */
28
+ var e,
29
+ t,
30
+ r = "function" == typeof Symbol ? Symbol : {},
31
+ n = r.iterator || "@@iterator",
32
+ o = r.toStringTag || "@@toStringTag";
33
+ function i(r, n, o, i) {
34
+ var c = n && n.prototype instanceof Generator ? n : Generator,
35
+ u = Object.create(c.prototype);
36
+ return _regeneratorDefine(u, "_invoke", function (r, n, o) {
37
+ var i,
38
+ c,
39
+ u,
40
+ f = 0,
41
+ p = o || [],
42
+ y = false,
43
+ G = {
44
+ p: 0,
45
+ n: 0,
46
+ v: e,
47
+ a: d,
48
+ f: d.bind(e, 4),
49
+ d: function (t, r) {
50
+ return i = t, c = 0, u = e, G.n = r, a;
51
+ }
52
+ };
53
+ function d(r, n) {
54
+ for (c = r, u = n, t = 0; !y && f && !o && t < p.length; t++) {
55
+ var o,
56
+ i = p[t],
57
+ d = G.p,
58
+ l = i[2];
59
+ r > 3 ? (o = l === n) && (u = i[(c = i[4]) ? 5 : (c = 3, 3)], i[4] = i[5] = e) : i[0] <= d && ((o = r < 2 && d < i[1]) ? (c = 0, G.v = n, G.n = i[1]) : d < l && (o = r < 3 || i[0] > n || n > l) && (i[4] = r, i[5] = n, G.n = l, c = 0));
60
+ }
61
+ if (o || r > 1) return a;
62
+ throw y = true, n;
63
+ }
64
+ return function (o, p, l) {
65
+ if (f > 1) throw TypeError("Generator is already running");
66
+ for (y && 1 === p && d(p, l), c = p, u = l; (t = c < 2 ? e : u) || !y;) {
67
+ i || (c ? c < 3 ? (c > 1 && (G.n = -1), d(c, u)) : G.n = u : G.v = u);
68
+ try {
69
+ if (f = 2, i) {
70
+ if (c || (o = "next"), t = i[o]) {
71
+ if (!(t = t.call(i, u))) throw TypeError("iterator result is not an object");
72
+ if (!t.done) return t;
73
+ u = t.value, c < 2 && (c = 0);
74
+ } else 1 === c && (t = i.return) && t.call(i), c < 2 && (u = TypeError("The iterator does not provide a '" + o + "' method"), c = 1);
75
+ i = e;
76
+ } else if ((t = (y = G.n < 0) ? u : r.call(n, G)) !== a) break;
77
+ } catch (t) {
78
+ i = e, c = 1, u = t;
79
+ } finally {
80
+ f = 1;
81
+ }
82
+ }
83
+ return {
84
+ value: t,
85
+ done: y
86
+ };
87
+ };
88
+ }(r, o, i), true), u;
89
+ }
90
+ var a = {};
91
+ function Generator() {}
92
+ function GeneratorFunction() {}
93
+ function GeneratorFunctionPrototype() {}
94
+ t = Object.getPrototypeOf;
95
+ var c = [][n] ? t(t([][n]())) : (_regeneratorDefine(t = {}, n, function () {
96
+ return this;
97
+ }), t),
98
+ u = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(c);
99
+ function f(e) {
100
+ return Object.setPrototypeOf ? Object.setPrototypeOf(e, GeneratorFunctionPrototype) : (e.__proto__ = GeneratorFunctionPrototype, _regeneratorDefine(e, o, "GeneratorFunction")), e.prototype = Object.create(u), e;
101
+ }
102
+ return GeneratorFunction.prototype = GeneratorFunctionPrototype, _regeneratorDefine(u, "constructor", GeneratorFunctionPrototype), _regeneratorDefine(GeneratorFunctionPrototype, "constructor", GeneratorFunction), GeneratorFunction.displayName = "GeneratorFunction", _regeneratorDefine(GeneratorFunctionPrototype, o, "GeneratorFunction"), _regeneratorDefine(u), _regeneratorDefine(u, o, "Generator"), _regeneratorDefine(u, n, function () {
103
+ return this;
104
+ }), _regeneratorDefine(u, "toString", function () {
105
+ return "[object Generator]";
106
+ }), (_regenerator = function () {
107
+ return {
108
+ w: i,
109
+ m: f
110
+ };
111
+ })();
112
+ }
113
+ function _regeneratorDefine(e, r, n, t) {
114
+ var i = Object.defineProperty;
115
+ _regeneratorDefine = function (e, r, n, t) {
116
+ function o(r, n) {
117
+ _regeneratorDefine(e, r, function (e) {
118
+ return this._invoke(r, n, e);
119
+ });
120
+ }
121
+ r ? i ? i(e, r, {
122
+ value: n,
123
+ enumerable: !t,
124
+ configurable: !t,
125
+ writable: !t
126
+ }) : e[r] = n : (o("next", 0), o("throw", 1), o("return", 2));
127
+ }, _regeneratorDefine(e, r, n, t);
128
+ }var storage = {
129
+ getItem: function () {
130
+ var _getItem = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee(key) {
131
+ var _t;
132
+ return _regenerator().w(function (_context) {
133
+ while (1) switch (_context.p = _context.n) {
134
+ case 0:
135
+ _context.p = 0;
136
+ if (!(reactNative.Platform.OS === "web")) {
137
+ _context.n = 1;
138
+ break;
139
+ }
140
+ return _context.a(2, state.storage.getItem(key));
141
+ case 1:
142
+ _context.n = 2;
143
+ return AsyncStorage.getItem(key);
144
+ case 2:
145
+ return _context.a(2, _context.v);
146
+ case 3:
147
+ _context.n = 5;
148
+ break;
149
+ case 4:
150
+ _context.p = 4;
151
+ _t = _context.v;
152
+ console.error("Error getting item:", _t);
153
+ return _context.a(2, null);
154
+ case 5:
155
+ return _context.a(2);
156
+ }
157
+ }, _callee, null, [[0, 4]]);
158
+ }));
159
+ function getItem(_x) {
160
+ return _getItem.apply(this, arguments);
161
+ }
162
+ return getItem;
163
+ }(),
164
+ setItem: function () {
165
+ var _setItem = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee2(key, value) {
166
+ var _t2;
167
+ return _regenerator().w(function (_context2) {
168
+ while (1) switch (_context2.p = _context2.n) {
169
+ case 0:
170
+ _context2.p = 0;
171
+ if (value) {
172
+ _context2.n = 1;
173
+ break;
174
+ }
175
+ return _context2.a(2);
176
+ case 1:
177
+ if (!(reactNative.Platform.OS === "web")) {
178
+ _context2.n = 2;
179
+ break;
180
+ }
181
+ state.storage.setItem(key, value);
182
+ _context2.n = 3;
183
+ break;
184
+ case 2:
185
+ _context2.n = 3;
186
+ return AsyncStorage.setItem(key, value);
187
+ case 3:
188
+ _context2.n = 5;
189
+ break;
190
+ case 4:
191
+ _context2.p = 4;
192
+ _t2 = _context2.v;
193
+ console.error("Error setting item:", _t2);
194
+ case 5:
195
+ return _context2.a(2);
196
+ }
197
+ }, _callee2, null, [[0, 4]]);
198
+ }));
199
+ function setItem(_x2, _x3) {
200
+ return _setItem.apply(this, arguments);
201
+ }
202
+ return setItem;
203
+ }(),
204
+ removeItem: function () {
205
+ var _removeItem = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee3(key) {
206
+ var _t3;
207
+ return _regenerator().w(function (_context3) {
208
+ while (1) switch (_context3.p = _context3.n) {
209
+ case 0:
210
+ _context3.p = 0;
211
+ if (!(reactNative.Platform.OS === "web")) {
212
+ _context3.n = 1;
213
+ break;
214
+ }
215
+ state.storage.removeItem(key);
216
+ _context3.n = 2;
217
+ break;
218
+ case 1:
219
+ _context3.n = 2;
220
+ return AsyncStorage.removeItem(key);
221
+ case 2:
222
+ _context3.n = 4;
223
+ break;
224
+ case 3:
225
+ _context3.p = 3;
226
+ _t3 = _context3.v;
227
+ console.error("Error removing item:", _t3);
228
+ case 4:
229
+ return _context3.a(2);
230
+ }
231
+ }, _callee3, null, [[0, 3]]);
232
+ }));
233
+ function removeItem(_x4) {
234
+ return _removeItem.apply(this, arguments);
235
+ }
236
+ return removeItem;
237
+ }()
238
+ };
239
+ var setReactNativeStorage = function setReactNativeStorage() {
240
+ return state.setCustomStorage(storage);
241
+ };Object.defineProperty(exports,"atomStateGenerator",{enumerable:true,get:function(){return state.atomStateGenerator}});exports.setReactNativeStorage=setReactNativeStorage;exports.storage=storage;//# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
1
+ {"version":3,"file":"index.js","sources":["../../state/index.ts"],"sourcesContent":["import AsyncStorage from \"@react-native-async-storage/async-storage\";\nimport { Platform } from \"react-native\";\nimport {\n AtomGeneratorOptions,\n atomStateGenerator,\n setCustomStorage,\n storage as webStorage,\n SyncStorage,\n AtomState,\n PrimitiveAtom,\n} from \"@gaddario98/react-core/state\";\n\nconst storage = {\n getItem: async (key: string): Promise<string | null> => {\n try {\n if (Platform.OS === \"web\") {\n return webStorage.getItem(key);\n } else {\n return await AsyncStorage.getItem(key);\n }\n } catch (error) {\n console.error(\"Error getting item:\", error);\n return null;\n }\n },\n\n setItem: async (key: string, value: string): Promise<void> => {\n try {\n if (!value) return;\n if (Platform.OS === \"web\") {\n webStorage.setItem(key, value);\n } else {\n await AsyncStorage.setItem(key, value);\n }\n } catch (error) {\n console.error(\"Error setting item:\", error);\n }\n },\n\n removeItem: async (key: string): Promise<void> => {\n try {\n if (Platform.OS === \"web\") {\n webStorage.removeItem(key);\n } else {\n await AsyncStorage.removeItem(key);\n }\n } catch (error) {\n console.error(\"Error removing item:\", error);\n }\n },\n};\n\nexport const setReactNativeStorage = () => setCustomStorage(storage);\n\nexport {\n type AtomGeneratorOptions,\n atomStateGenerator,\n storage,\n type SyncStorage,\n type AtomState,\n type PrimitiveAtom,\n};\n"],"names":["storage","getItem","_getItem","_asyncToGenerator","_regenerator","m","_callee","key","_t","w","_context","p","n","Platform","OS","a","webStorage","AsyncStorage","v","console","error","_x","apply","arguments","setItem","_setItem","_callee2","value","_t2","_context2","_x2","_x3","removeItem","_removeItem","_callee3","_t3","_context3","_x4","setReactNativeStorage","setCustomStorage"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAYA,IAAMA,OAAO,GAAG;EACdC,OAAO,EAAA,YAAA;IAAA,IAAAC,QAAA,GAAAC,iBAAA,cAAAC,YAAA,GAAAC,CAAA,CAAE,SAAAC,OAAAA,CAAOC,GAAW,EAAA;AAAA,MAAA,IAAAC,EAAA;AAAA,MAAA,OAAAJ,YAAA,EAAA,CAAAK,CAAA,CAAA,UAAAC,QAAA,EAAA;AAAA,QAAA,OAAA,CAAA,EAAA,QAAAA,QAAA,CAAAC,CAAA,GAAAD,QAAA,CAAAE,CAAA;AAAA,UAAA,KAAA,CAAA;AAAAF,YAAAA,QAAA,CAAAC,CAAA,GAAA,CAAA;AAAA,YAAA,IAAA,EAE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AAAA,SAAA,CAAAzB,CAAA,GAAA,CAAA;YAAAwB,GAAA,GAAAC,SAAA,CAAAlB,CAAA;AAGpCC,YAAAA,OAAO,CAACC,KAAK,CAAC,sBAAsB,EAAAe,GAAO,CAAC;AAAC,UAAA,KAAA,CAAA;YAAA,OAAAC,SAAA,CAAArB,CAAA,CAAA,CAAA,CAAA;AAAA;AAAA,MAAA,CAAA,EAAAmB,QAAA,EAAA,IAAA,EAAA,CAAA,CAAA,CAAA,EAAA,CAAA,CAAA,CAAA,CAAA;IAAA,CAEhD,CAAA,CAAA;IAAA,SAVDF,UAAUA,CAAAK,GAAA,EAAA;AAAA,MAAA,OAAAJ,WAAA,CAAAX,KAAA,CAAA,IAAA,EAAAC,SAAA,CAAA;AAAA,IAAA;AAAA,IAAA,OAAVS,UAAU;AAAA,EAAA,CAAA;;AAaL,IAAMM,qBAAqB,GAAG,SAAxBA,qBAAqBA,GAAA;EAAA,OAASC,sBAAgB,CAACvC,OAAO,CAAC;AAAA"}
@@ -1 +1,241 @@
1
- export*from'@gaddario98/react-native-state';//# sourceMappingURL=index.mjs.map
1
+ import AsyncStorage from'@react-native-async-storage/async-storage';import {Platform}from'react-native';import {setCustomStorage,storage as storage$1}from'@gaddario98/react-core/state';export{atomStateGenerator}from'@gaddario98/react-core/state';function asyncGeneratorStep(n, t, e, r, o, a, c) {
2
+ try {
3
+ var i = n[a](c),
4
+ u = i.value;
5
+ } catch (n) {
6
+ return void e(n);
7
+ }
8
+ i.done ? t(u) : Promise.resolve(u).then(r, o);
9
+ }
10
+ function _asyncToGenerator(n) {
11
+ return function () {
12
+ var t = this,
13
+ e = arguments;
14
+ return new Promise(function (r, o) {
15
+ var a = n.apply(t, e);
16
+ function _next(n) {
17
+ asyncGeneratorStep(a, r, o, _next, _throw, "next", n);
18
+ }
19
+ function _throw(n) {
20
+ asyncGeneratorStep(a, r, o, _next, _throw, "throw", n);
21
+ }
22
+ _next(void 0);
23
+ });
24
+ };
25
+ }
26
+ function _regenerator() {
27
+ /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */
28
+ var e,
29
+ t,
30
+ r = "function" == typeof Symbol ? Symbol : {},
31
+ n = r.iterator || "@@iterator",
32
+ o = r.toStringTag || "@@toStringTag";
33
+ function i(r, n, o, i) {
34
+ var c = n && n.prototype instanceof Generator ? n : Generator,
35
+ u = Object.create(c.prototype);
36
+ return _regeneratorDefine(u, "_invoke", function (r, n, o) {
37
+ var i,
38
+ c,
39
+ u,
40
+ f = 0,
41
+ p = o || [],
42
+ y = false,
43
+ G = {
44
+ p: 0,
45
+ n: 0,
46
+ v: e,
47
+ a: d,
48
+ f: d.bind(e, 4),
49
+ d: function (t, r) {
50
+ return i = t, c = 0, u = e, G.n = r, a;
51
+ }
52
+ };
53
+ function d(r, n) {
54
+ for (c = r, u = n, t = 0; !y && f && !o && t < p.length; t++) {
55
+ var o,
56
+ i = p[t],
57
+ d = G.p,
58
+ l = i[2];
59
+ r > 3 ? (o = l === n) && (u = i[(c = i[4]) ? 5 : (c = 3, 3)], i[4] = i[5] = e) : i[0] <= d && ((o = r < 2 && d < i[1]) ? (c = 0, G.v = n, G.n = i[1]) : d < l && (o = r < 3 || i[0] > n || n > l) && (i[4] = r, i[5] = n, G.n = l, c = 0));
60
+ }
61
+ if (o || r > 1) return a;
62
+ throw y = true, n;
63
+ }
64
+ return function (o, p, l) {
65
+ if (f > 1) throw TypeError("Generator is already running");
66
+ for (y && 1 === p && d(p, l), c = p, u = l; (t = c < 2 ? e : u) || !y;) {
67
+ i || (c ? c < 3 ? (c > 1 && (G.n = -1), d(c, u)) : G.n = u : G.v = u);
68
+ try {
69
+ if (f = 2, i) {
70
+ if (c || (o = "next"), t = i[o]) {
71
+ if (!(t = t.call(i, u))) throw TypeError("iterator result is not an object");
72
+ if (!t.done) return t;
73
+ u = t.value, c < 2 && (c = 0);
74
+ } else 1 === c && (t = i.return) && t.call(i), c < 2 && (u = TypeError("The iterator does not provide a '" + o + "' method"), c = 1);
75
+ i = e;
76
+ } else if ((t = (y = G.n < 0) ? u : r.call(n, G)) !== a) break;
77
+ } catch (t) {
78
+ i = e, c = 1, u = t;
79
+ } finally {
80
+ f = 1;
81
+ }
82
+ }
83
+ return {
84
+ value: t,
85
+ done: y
86
+ };
87
+ };
88
+ }(r, o, i), true), u;
89
+ }
90
+ var a = {};
91
+ function Generator() {}
92
+ function GeneratorFunction() {}
93
+ function GeneratorFunctionPrototype() {}
94
+ t = Object.getPrototypeOf;
95
+ var c = [][n] ? t(t([][n]())) : (_regeneratorDefine(t = {}, n, function () {
96
+ return this;
97
+ }), t),
98
+ u = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(c);
99
+ function f(e) {
100
+ return Object.setPrototypeOf ? Object.setPrototypeOf(e, GeneratorFunctionPrototype) : (e.__proto__ = GeneratorFunctionPrototype, _regeneratorDefine(e, o, "GeneratorFunction")), e.prototype = Object.create(u), e;
101
+ }
102
+ return GeneratorFunction.prototype = GeneratorFunctionPrototype, _regeneratorDefine(u, "constructor", GeneratorFunctionPrototype), _regeneratorDefine(GeneratorFunctionPrototype, "constructor", GeneratorFunction), GeneratorFunction.displayName = "GeneratorFunction", _regeneratorDefine(GeneratorFunctionPrototype, o, "GeneratorFunction"), _regeneratorDefine(u), _regeneratorDefine(u, o, "Generator"), _regeneratorDefine(u, n, function () {
103
+ return this;
104
+ }), _regeneratorDefine(u, "toString", function () {
105
+ return "[object Generator]";
106
+ }), (_regenerator = function () {
107
+ return {
108
+ w: i,
109
+ m: f
110
+ };
111
+ })();
112
+ }
113
+ function _regeneratorDefine(e, r, n, t) {
114
+ var i = Object.defineProperty;
115
+ _regeneratorDefine = function (e, r, n, t) {
116
+ function o(r, n) {
117
+ _regeneratorDefine(e, r, function (e) {
118
+ return this._invoke(r, n, e);
119
+ });
120
+ }
121
+ r ? i ? i(e, r, {
122
+ value: n,
123
+ enumerable: !t,
124
+ configurable: !t,
125
+ writable: !t
126
+ }) : e[r] = n : (o("next", 0), o("throw", 1), o("return", 2));
127
+ }, _regeneratorDefine(e, r, n, t);
128
+ }var storage = {
129
+ getItem: function () {
130
+ var _getItem = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee(key) {
131
+ var _t;
132
+ return _regenerator().w(function (_context) {
133
+ while (1) switch (_context.p = _context.n) {
134
+ case 0:
135
+ _context.p = 0;
136
+ if (!(Platform.OS === "web")) {
137
+ _context.n = 1;
138
+ break;
139
+ }
140
+ return _context.a(2, storage$1.getItem(key));
141
+ case 1:
142
+ _context.n = 2;
143
+ return AsyncStorage.getItem(key);
144
+ case 2:
145
+ return _context.a(2, _context.v);
146
+ case 3:
147
+ _context.n = 5;
148
+ break;
149
+ case 4:
150
+ _context.p = 4;
151
+ _t = _context.v;
152
+ console.error("Error getting item:", _t);
153
+ return _context.a(2, null);
154
+ case 5:
155
+ return _context.a(2);
156
+ }
157
+ }, _callee, null, [[0, 4]]);
158
+ }));
159
+ function getItem(_x) {
160
+ return _getItem.apply(this, arguments);
161
+ }
162
+ return getItem;
163
+ }(),
164
+ setItem: function () {
165
+ var _setItem = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee2(key, value) {
166
+ var _t2;
167
+ return _regenerator().w(function (_context2) {
168
+ while (1) switch (_context2.p = _context2.n) {
169
+ case 0:
170
+ _context2.p = 0;
171
+ if (value) {
172
+ _context2.n = 1;
173
+ break;
174
+ }
175
+ return _context2.a(2);
176
+ case 1:
177
+ if (!(Platform.OS === "web")) {
178
+ _context2.n = 2;
179
+ break;
180
+ }
181
+ storage$1.setItem(key, value);
182
+ _context2.n = 3;
183
+ break;
184
+ case 2:
185
+ _context2.n = 3;
186
+ return AsyncStorage.setItem(key, value);
187
+ case 3:
188
+ _context2.n = 5;
189
+ break;
190
+ case 4:
191
+ _context2.p = 4;
192
+ _t2 = _context2.v;
193
+ console.error("Error setting item:", _t2);
194
+ case 5:
195
+ return _context2.a(2);
196
+ }
197
+ }, _callee2, null, [[0, 4]]);
198
+ }));
199
+ function setItem(_x2, _x3) {
200
+ return _setItem.apply(this, arguments);
201
+ }
202
+ return setItem;
203
+ }(),
204
+ removeItem: function () {
205
+ var _removeItem = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee3(key) {
206
+ var _t3;
207
+ return _regenerator().w(function (_context3) {
208
+ while (1) switch (_context3.p = _context3.n) {
209
+ case 0:
210
+ _context3.p = 0;
211
+ if (!(Platform.OS === "web")) {
212
+ _context3.n = 1;
213
+ break;
214
+ }
215
+ storage$1.removeItem(key);
216
+ _context3.n = 2;
217
+ break;
218
+ case 1:
219
+ _context3.n = 2;
220
+ return AsyncStorage.removeItem(key);
221
+ case 2:
222
+ _context3.n = 4;
223
+ break;
224
+ case 3:
225
+ _context3.p = 3;
226
+ _t3 = _context3.v;
227
+ console.error("Error removing item:", _t3);
228
+ case 4:
229
+ return _context3.a(2);
230
+ }
231
+ }, _callee3, null, [[0, 3]]);
232
+ }));
233
+ function removeItem(_x4) {
234
+ return _removeItem.apply(this, arguments);
235
+ }
236
+ return removeItem;
237
+ }()
238
+ };
239
+ var setReactNativeStorage = function setReactNativeStorage() {
240
+ return setCustomStorage(storage);
241
+ };export{setReactNativeStorage,storage};//# sourceMappingURL=index.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":""}
1
+ {"version":3,"file":"index.mjs","sources":["../../state/index.ts"],"sourcesContent":["import AsyncStorage from \"@react-native-async-storage/async-storage\";\nimport { Platform } from \"react-native\";\nimport {\n AtomGeneratorOptions,\n atomStateGenerator,\n setCustomStorage,\n storage as webStorage,\n SyncStorage,\n AtomState,\n PrimitiveAtom,\n} from \"@gaddario98/react-core/state\";\n\nconst storage = {\n getItem: async (key: string): Promise<string | null> => {\n try {\n if (Platform.OS === \"web\") {\n return webStorage.getItem(key);\n } else {\n return await AsyncStorage.getItem(key);\n }\n } catch (error) {\n console.error(\"Error getting item:\", error);\n return null;\n }\n },\n\n setItem: async (key: string, value: string): Promise<void> => {\n try {\n if (!value) return;\n if (Platform.OS === \"web\") {\n webStorage.setItem(key, value);\n } else {\n await AsyncStorage.setItem(key, value);\n }\n } catch (error) {\n console.error(\"Error setting item:\", error);\n }\n },\n\n removeItem: async (key: string): Promise<void> => {\n try {\n if (Platform.OS === \"web\") {\n webStorage.removeItem(key);\n } else {\n await AsyncStorage.removeItem(key);\n }\n } catch (error) {\n console.error(\"Error removing item:\", error);\n }\n },\n};\n\nexport const setReactNativeStorage = () => setCustomStorage(storage);\n\nexport {\n type AtomGeneratorOptions,\n atomStateGenerator,\n storage,\n type SyncStorage,\n type AtomState,\n type PrimitiveAtom,\n};\n"],"names":["storage","getItem","_getItem","_asyncToGenerator","_regenerator","m","_callee","key","_t","w","_context","p","n","Platform","OS","a","webStorage","AsyncStorage","v","console","error","_x","apply","arguments","setItem","_setItem","_callee2","value","_t2","_context2","_x2","_x3","removeItem","_removeItem","_callee3","_t3","_context3","_x4","setReactNativeStorage","setCustomStorage"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAYA,IAAMA,OAAO,GAAG;EACdC,OAAO,EAAA,YAAA;IAAA,IAAAC,QAAA,GAAAC,iBAAA,cAAAC,YAAA,GAAAC,CAAA,CAAE,SAAAC,OAAAA,CAAOC,GAAW,EAAA;AAAA,MAAA,IAAAC,EAAA;AAAA,MAAA,OAAAJ,YAAA,EAAA,CAAAK,CAAA,CAAA,UAAAC,QAAA,EAAA;AAAA,QAAA,OAAA,CAAA,EAAA,QAAAA,QAAA,CAAAC,CAAA,GAAAD,QAAA,CAAAE,CAAA;AAAA,UAAA,KAAA,CAAA;AAAAF,YAAAA,QAAA,CAAAC,CAAA,GAAA,CAAA;AAAA,YAAA,IAAA,EAEnBE,QAAQ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AAAzB,CAAA,GAAA,CAAA;YAAAwB,GAAA,GAAAC,SAAA,CAAAlB,CAAA;AAGpCC,YAAAA,OAAO,CAACC,KAAK,CAAC,sBAAsB,EAAAe,GAAO,CAAC;AAAC,UAAA,KAAA,CAAA;YAAA,OAAAC,SAAA,CAAArB,CAAA,CAAA,CAAA,CAAA;AAAA;AAAA,MAAA,CAAA,EAAAmB,QAAA,EAAA,IAAA,EAAA,CAAA,CAAA,CAAA,EAAA,CAAA,CAAA,CAAA,CAAA;IAAA,CAEhD,CAAA,CAAA;IAAA,SAVDF,UAAUA,CAAAK,GAAA,EAAA;AAAA,MAAA,OAAAJ,WAAA,CAAAX,KAAA,CAAA,IAAA,EAAAC,SAAA,CAAA;AAAA,IAAA;AAAA,IAAA,OAAVS,UAAU;AAAA,EAAA,CAAA;;AAaL,IAAMM,qBAAqB,GAAG,SAAxBA,qBAAqBA,GAAA;EAAA,OAASC,gBAAgB,CAACvC,OAAO,CAAC;AAAA"}
@@ -1 +1,89 @@
1
- export * from '@gaddario98/react-native-tabs';
1
+ import { HrefObject } from 'expo-router';
2
+ import React from 'react';
3
+ import { StyleProp, ViewStyle, TextStyle } from 'react-native';
4
+
5
+ interface TabItemConfig {
6
+ name: string;
7
+ tabBarIcon?: (props: {
8
+ focused: boolean;
9
+ color: string;
10
+ size: number;
11
+ }) => React.ReactNode;
12
+ title?: string;
13
+ initialParams?: Record<string, any>;
14
+ href?: string | HrefObject;
15
+ badge?: number | string;
16
+ badgeColor?: string;
17
+ badgeTextColor?: string;
18
+ accessibilityLabel?: string;
19
+ }
20
+ type TabBarVariant = "auto" | "top" | "bottom";
21
+ type BarShadow = {
22
+ color?: string;
23
+ opacity?: number;
24
+ radius?: number;
25
+ offset?: {
26
+ height: number;
27
+ width: number;
28
+ };
29
+ elevation?: number;
30
+ };
31
+ type BarBorder = {
32
+ width?: number;
33
+ color?: string;
34
+ topOnly?: boolean;
35
+ };
36
+ interface TabLayoutProps {
37
+ tabs: Array<TabItemConfig>;
38
+ ns?: string;
39
+ initialRouteName?: string;
40
+ translateTitles?: boolean;
41
+ onTabChange?: (prev: string | undefined, next: string) => void;
42
+ bar?: {
43
+ height?: number;
44
+ position?: "absolute" | "relative";
45
+ margin?: {
46
+ bottom?: number;
47
+ horizontal?: number;
48
+ };
49
+ padding?: {
50
+ top?: number;
51
+ bottom?: number;
52
+ horizontal?: number;
53
+ };
54
+ rounded?: boolean | number;
55
+ radius?: number | {
56
+ topLeft?: number;
57
+ topRight?: number;
58
+ bottomLeft?: number;
59
+ bottomRight?: number;
60
+ };
61
+ colors?: {
62
+ background?: string;
63
+ activeTint?: string;
64
+ inactiveTint?: string;
65
+ border?: string;
66
+ shadow?: string;
67
+ surface?: string;
68
+ secondary?: string;
69
+ onSecondary?: string;
70
+ };
71
+ shadow?: boolean | BarShadow;
72
+ border?: boolean | BarBorder;
73
+ glass?: boolean | {
74
+ alpha?: number;
75
+ };
76
+ compact?: boolean;
77
+ useSafeAreaInset?: boolean;
78
+ style?: StyleProp<ViewStyle>;
79
+ itemStyle?: StyleProp<ViewStyle>;
80
+ labelStyle?: StyleProp<TextStyle>;
81
+ glowItemStyle?: StyleProp<ViewStyle>;
82
+ };
83
+ }
84
+ declare const _default: React.NamedExoticComponent<TabLayoutProps>;
85
+
86
+ declare const useActiveTab: <T extends string>() => T;
87
+
88
+ export { _default as TabLayout, useActiveTab };
89
+ export type { TabBarVariant, TabItemConfig, TabLayoutProps };