@xhsreds/reds-rn-next 0.0.1-beta-3

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 (59) hide show
  1. package/cjs/_chunks/DOz-p6oh.js +467 -0
  2. package/cjs/_chunks/DOz-p6oh.js.map +1 -0
  3. package/cjs/_chunks/Dx-JjEWA.js +115 -0
  4. package/cjs/_chunks/Dx-JjEWA.js.map +1 -0
  5. package/cjs/components/Button/common/index.js +12 -0
  6. package/cjs/components/Button/common/index.js.map +1 -0
  7. package/cjs/components/Button/interface/index.js +3 -0
  8. package/cjs/components/Button/interface/index.js.map +1 -0
  9. package/cjs/components/Button/rn/index.js +25 -0
  10. package/cjs/components/Button/rn/index.js.map +1 -0
  11. package/cjs/components/Popover/common/index.js +12 -0
  12. package/cjs/components/Popover/common/index.js.map +1 -0
  13. package/cjs/components/Popover/interface/index.js +3 -0
  14. package/cjs/components/Popover/interface/index.js.map +1 -0
  15. package/cjs/components/Popover/rn/component.js +59 -0
  16. package/cjs/components/Popover/rn/component.js.map +1 -0
  17. package/cjs/components/Popover/rn/hook.js +1414 -0
  18. package/cjs/components/Popover/rn/hook.js.map +1 -0
  19. package/cjs/components/Popover/rn/index.js +114 -0
  20. package/cjs/components/Popover/rn/index.js.map +1 -0
  21. package/cjs/index.rn.js +17 -0
  22. package/cjs/index.rn.js.map +1 -0
  23. package/cjs/utils/hook.js +7 -0
  24. package/cjs/utils/hook.js.map +1 -0
  25. package/esm/_chunks/BdytNqoo.js +458 -0
  26. package/esm/_chunks/BdytNqoo.js.map +1 -0
  27. package/esm/_chunks/C8kshcql.js +111 -0
  28. package/esm/_chunks/C8kshcql.js.map +1 -0
  29. package/esm/components/Button/common/index.js +10 -0
  30. package/esm/components/Button/common/index.js.map +1 -0
  31. package/esm/components/Button/interface/index.js +2 -0
  32. package/esm/components/Button/interface/index.js.map +1 -0
  33. package/esm/components/Button/rn/index.js +21 -0
  34. package/esm/components/Button/rn/index.js.map +1 -0
  35. package/esm/components/Popover/common/index.js +10 -0
  36. package/esm/components/Popover/common/index.js.map +1 -0
  37. package/esm/components/Popover/interface/index.js +2 -0
  38. package/esm/components/Popover/interface/index.js.map +1 -0
  39. package/esm/components/Popover/rn/component.js +56 -0
  40. package/esm/components/Popover/rn/component.js.map +1 -0
  41. package/esm/components/Popover/rn/hook.js +1394 -0
  42. package/esm/components/Popover/rn/hook.js.map +1 -0
  43. package/esm/components/Popover/rn/index.js +110 -0
  44. package/esm/components/Popover/rn/index.js.map +1 -0
  45. package/esm/index.rn.js +10 -0
  46. package/esm/index.rn.js.map +1 -0
  47. package/esm/utils/hook.js +5 -0
  48. package/esm/utils/hook.js.map +1 -0
  49. package/package.json +34 -0
  50. package/types/index.rn.d.ts +3 -0
  51. package/types/src/components/Button/common/index.d.ts +1 -0
  52. package/types/src/components/Button/interface/index.d.ts +31 -0
  53. package/types/src/components/Button/rn/index.d.ts +4 -0
  54. package/types/src/components/Popover/common/index.d.ts +1 -0
  55. package/types/src/components/Popover/interface/index.d.ts +12 -0
  56. package/types/src/components/Popover/rn/component.d.ts +13 -0
  57. package/types/src/components/Popover/rn/hook.d.ts +51 -0
  58. package/types/src/components/Popover/rn/index.d.ts +4 -0
  59. package/types/src/utils/hook.d.ts +1 -0
@@ -0,0 +1,467 @@
1
+ 'use strict';
2
+
3
+ function _arrayLikeToArray(r, a) {
4
+ (null == a || a > r.length) && (a = r.length);
5
+ for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];
6
+ return n;
7
+ }
8
+ function _arrayWithHoles(r) {
9
+ if (Array.isArray(r)) return r;
10
+ }
11
+ function _arrayWithoutHoles(r) {
12
+ if (Array.isArray(r)) return _arrayLikeToArray(r);
13
+ }
14
+ function asyncGeneratorStep(n, t, e, r, o, a, c) {
15
+ try {
16
+ var i = n[a](c),
17
+ u = i.value;
18
+ } catch (n) {
19
+ return void e(n);
20
+ }
21
+ i.done ? t(u) : Promise.resolve(u).then(r, o);
22
+ }
23
+ function _asyncToGenerator(n) {
24
+ return function () {
25
+ var t = this,
26
+ e = arguments;
27
+ return new Promise(function (r, o) {
28
+ var a = n.apply(t, e);
29
+ function _next(n) {
30
+ asyncGeneratorStep(a, r, o, _next, _throw, "next", n);
31
+ }
32
+ function _throw(n) {
33
+ asyncGeneratorStep(a, r, o, _next, _throw, "throw", n);
34
+ }
35
+ _next(void 0);
36
+ });
37
+ };
38
+ }
39
+ function _defineProperty(e, r, t) {
40
+ return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
41
+ value: t,
42
+ enumerable: !0,
43
+ configurable: !0,
44
+ writable: !0
45
+ }) : e[r] = t, e;
46
+ }
47
+ function _iterableToArray(r) {
48
+ if ("undefined" != typeof Symbol && null != r[Symbol.iterator] || null != r["@@iterator"]) return Array.from(r);
49
+ }
50
+ function _iterableToArrayLimit(r, l) {
51
+ var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
52
+ if (null != t) {
53
+ var e,
54
+ n,
55
+ i,
56
+ u,
57
+ a = [],
58
+ f = !0,
59
+ o = !1;
60
+ try {
61
+ if (i = (t = t.call(r)).next, 0 === l) ; else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0);
62
+ } catch (r) {
63
+ o = !0, n = r;
64
+ } finally {
65
+ try {
66
+ if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return;
67
+ } finally {
68
+ if (o) throw n;
69
+ }
70
+ }
71
+ return a;
72
+ }
73
+ }
74
+ function _nonIterableRest() {
75
+ throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
76
+ }
77
+ function _nonIterableSpread() {
78
+ throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
79
+ }
80
+ function ownKeys(e, r) {
81
+ var t = Object.keys(e);
82
+ if (Object.getOwnPropertySymbols) {
83
+ var o = Object.getOwnPropertySymbols(e);
84
+ r && (o = o.filter(function (r) {
85
+ return Object.getOwnPropertyDescriptor(e, r).enumerable;
86
+ })), t.push.apply(t, o);
87
+ }
88
+ return t;
89
+ }
90
+ function _objectSpread2(e) {
91
+ for (var r = 1; r < arguments.length; r++) {
92
+ var t = null != arguments[r] ? arguments[r] : {};
93
+ r % 2 ? ownKeys(Object(t), !0).forEach(function (r) {
94
+ _defineProperty(e, r, t[r]);
95
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) {
96
+ Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r));
97
+ });
98
+ }
99
+ return e;
100
+ }
101
+ function _objectWithoutProperties(e, t) {
102
+ if (null == e) return {};
103
+ var o,
104
+ r,
105
+ i = _objectWithoutPropertiesLoose(e, t);
106
+ if (Object.getOwnPropertySymbols) {
107
+ var n = Object.getOwnPropertySymbols(e);
108
+ for (r = 0; r < n.length; r++) o = n[r], t.indexOf(o) >= 0 || {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]);
109
+ }
110
+ return i;
111
+ }
112
+ function _objectWithoutPropertiesLoose(r, e) {
113
+ if (null == r) return {};
114
+ var t = {};
115
+ for (var n in r) if ({}.hasOwnProperty.call(r, n)) {
116
+ if (e.indexOf(n) >= 0) continue;
117
+ t[n] = r[n];
118
+ }
119
+ return t;
120
+ }
121
+ function _regeneratorRuntime() {
122
+ _regeneratorRuntime = function () {
123
+ return e;
124
+ };
125
+ var t,
126
+ e = {},
127
+ r = Object.prototype,
128
+ n = r.hasOwnProperty,
129
+ o = Object.defineProperty || function (t, e, r) {
130
+ t[e] = r.value;
131
+ },
132
+ i = "function" == typeof Symbol ? Symbol : {},
133
+ a = i.iterator || "@@iterator",
134
+ c = i.asyncIterator || "@@asyncIterator",
135
+ u = i.toStringTag || "@@toStringTag";
136
+ function define(t, e, r) {
137
+ return Object.defineProperty(t, e, {
138
+ value: r,
139
+ enumerable: !0,
140
+ configurable: !0,
141
+ writable: !0
142
+ }), t[e];
143
+ }
144
+ try {
145
+ define({}, "");
146
+ } catch (t) {
147
+ define = function (t, e, r) {
148
+ return t[e] = r;
149
+ };
150
+ }
151
+ function wrap(t, e, r, n) {
152
+ var i = e && e.prototype instanceof Generator ? e : Generator,
153
+ a = Object.create(i.prototype),
154
+ c = new Context(n || []);
155
+ return o(a, "_invoke", {
156
+ value: makeInvokeMethod(t, r, c)
157
+ }), a;
158
+ }
159
+ function tryCatch(t, e, r) {
160
+ try {
161
+ return {
162
+ type: "normal",
163
+ arg: t.call(e, r)
164
+ };
165
+ } catch (t) {
166
+ return {
167
+ type: "throw",
168
+ arg: t
169
+ };
170
+ }
171
+ }
172
+ e.wrap = wrap;
173
+ var h = "suspendedStart",
174
+ l = "suspendedYield",
175
+ f = "executing",
176
+ s = "completed",
177
+ y = {};
178
+ function Generator() {}
179
+ function GeneratorFunction() {}
180
+ function GeneratorFunctionPrototype() {}
181
+ var p = {};
182
+ define(p, a, function () {
183
+ return this;
184
+ });
185
+ var d = Object.getPrototypeOf,
186
+ v = d && d(d(values([])));
187
+ v && v !== r && n.call(v, a) && (p = v);
188
+ var g = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(p);
189
+ function defineIteratorMethods(t) {
190
+ ["next", "throw", "return"].forEach(function (e) {
191
+ define(t, e, function (t) {
192
+ return this._invoke(e, t);
193
+ });
194
+ });
195
+ }
196
+ function AsyncIterator(t, e) {
197
+ function invoke(r, o, i, a) {
198
+ var c = tryCatch(t[r], t, o);
199
+ if ("throw" !== c.type) {
200
+ var u = c.arg,
201
+ h = u.value;
202
+ return h && "object" == typeof h && n.call(h, "__await") ? e.resolve(h.__await).then(function (t) {
203
+ invoke("next", t, i, a);
204
+ }, function (t) {
205
+ invoke("throw", t, i, a);
206
+ }) : e.resolve(h).then(function (t) {
207
+ u.value = t, i(u);
208
+ }, function (t) {
209
+ return invoke("throw", t, i, a);
210
+ });
211
+ }
212
+ a(c.arg);
213
+ }
214
+ var r;
215
+ o(this, "_invoke", {
216
+ value: function (t, n) {
217
+ function callInvokeWithMethodAndArg() {
218
+ return new e(function (e, r) {
219
+ invoke(t, n, e, r);
220
+ });
221
+ }
222
+ return r = r ? r.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg();
223
+ }
224
+ });
225
+ }
226
+ function makeInvokeMethod(e, r, n) {
227
+ var o = h;
228
+ return function (i, a) {
229
+ if (o === f) throw Error("Generator is already running");
230
+ if (o === s) {
231
+ if ("throw" === i) throw a;
232
+ return {
233
+ value: t,
234
+ done: !0
235
+ };
236
+ }
237
+ for (n.method = i, n.arg = a;;) {
238
+ var c = n.delegate;
239
+ if (c) {
240
+ var u = maybeInvokeDelegate(c, n);
241
+ if (u) {
242
+ if (u === y) continue;
243
+ return u;
244
+ }
245
+ }
246
+ if ("next" === n.method) n.sent = n._sent = n.arg;else if ("throw" === n.method) {
247
+ if (o === h) throw o = s, n.arg;
248
+ n.dispatchException(n.arg);
249
+ } else "return" === n.method && n.abrupt("return", n.arg);
250
+ o = f;
251
+ var p = tryCatch(e, r, n);
252
+ if ("normal" === p.type) {
253
+ if (o = n.done ? s : l, p.arg === y) continue;
254
+ return {
255
+ value: p.arg,
256
+ done: n.done
257
+ };
258
+ }
259
+ "throw" === p.type && (o = s, n.method = "throw", n.arg = p.arg);
260
+ }
261
+ };
262
+ }
263
+ function maybeInvokeDelegate(e, r) {
264
+ var n = r.method,
265
+ o = e.iterator[n];
266
+ if (o === t) return r.delegate = null, "throw" === n && e.iterator.return && (r.method = "return", r.arg = t, maybeInvokeDelegate(e, r), "throw" === r.method) || "return" !== n && (r.method = "throw", r.arg = new TypeError("The iterator does not provide a '" + n + "' method")), y;
267
+ var i = tryCatch(o, e.iterator, r.arg);
268
+ if ("throw" === i.type) return r.method = "throw", r.arg = i.arg, r.delegate = null, y;
269
+ var a = i.arg;
270
+ return a ? a.done ? (r[e.resultName] = a.value, r.next = e.nextLoc, "return" !== r.method && (r.method = "next", r.arg = t), r.delegate = null, y) : a : (r.method = "throw", r.arg = new TypeError("iterator result is not an object"), r.delegate = null, y);
271
+ }
272
+ function pushTryEntry(t) {
273
+ var e = {
274
+ tryLoc: t[0]
275
+ };
276
+ 1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e);
277
+ }
278
+ function resetTryEntry(t) {
279
+ var e = t.completion || {};
280
+ e.type = "normal", delete e.arg, t.completion = e;
281
+ }
282
+ function Context(t) {
283
+ this.tryEntries = [{
284
+ tryLoc: "root"
285
+ }], t.forEach(pushTryEntry, this), this.reset(!0);
286
+ }
287
+ function values(e) {
288
+ if (e || "" === e) {
289
+ var r = e[a];
290
+ if (r) return r.call(e);
291
+ if ("function" == typeof e.next) return e;
292
+ if (!isNaN(e.length)) {
293
+ var o = -1,
294
+ i = function next() {
295
+ for (; ++o < e.length;) if (n.call(e, o)) return next.value = e[o], next.done = !1, next;
296
+ return next.value = t, next.done = !0, next;
297
+ };
298
+ return i.next = i;
299
+ }
300
+ }
301
+ throw new TypeError(typeof e + " is not iterable");
302
+ }
303
+ return GeneratorFunction.prototype = GeneratorFunctionPrototype, o(g, "constructor", {
304
+ value: GeneratorFunctionPrototype,
305
+ configurable: !0
306
+ }), o(GeneratorFunctionPrototype, "constructor", {
307
+ value: GeneratorFunction,
308
+ configurable: !0
309
+ }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, u, "GeneratorFunction"), e.isGeneratorFunction = function (t) {
310
+ var e = "function" == typeof t && t.constructor;
311
+ return !!e && (e === GeneratorFunction || "GeneratorFunction" === (e.displayName || e.name));
312
+ }, e.mark = function (t) {
313
+ return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, define(t, u, "GeneratorFunction")), t.prototype = Object.create(g), t;
314
+ }, e.awrap = function (t) {
315
+ return {
316
+ __await: t
317
+ };
318
+ }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, c, function () {
319
+ return this;
320
+ }), e.AsyncIterator = AsyncIterator, e.async = function (t, r, n, o, i) {
321
+ void 0 === i && (i = Promise);
322
+ var a = new AsyncIterator(wrap(t, r, n, o), i);
323
+ return e.isGeneratorFunction(r) ? a : a.next().then(function (t) {
324
+ return t.done ? t.value : a.next();
325
+ });
326
+ }, defineIteratorMethods(g), define(g, u, "Generator"), define(g, a, function () {
327
+ return this;
328
+ }), define(g, "toString", function () {
329
+ return "[object Generator]";
330
+ }), e.keys = function (t) {
331
+ var e = Object(t),
332
+ r = [];
333
+ for (var n in e) r.push(n);
334
+ return r.reverse(), function next() {
335
+ for (; r.length;) {
336
+ var t = r.pop();
337
+ if (t in e) return next.value = t, next.done = !1, next;
338
+ }
339
+ return next.done = !0, next;
340
+ };
341
+ }, e.values = values, Context.prototype = {
342
+ constructor: Context,
343
+ reset: function (e) {
344
+ if (this.prev = 0, this.next = 0, this.sent = this._sent = t, this.done = !1, this.delegate = null, this.method = "next", this.arg = t, this.tryEntries.forEach(resetTryEntry), !e) for (var r in this) "t" === r.charAt(0) && n.call(this, r) && !isNaN(+r.slice(1)) && (this[r] = t);
345
+ },
346
+ stop: function () {
347
+ this.done = !0;
348
+ var t = this.tryEntries[0].completion;
349
+ if ("throw" === t.type) throw t.arg;
350
+ return this.rval;
351
+ },
352
+ dispatchException: function (e) {
353
+ if (this.done) throw e;
354
+ var r = this;
355
+ function handle(n, o) {
356
+ return a.type = "throw", a.arg = e, r.next = n, o && (r.method = "next", r.arg = t), !!o;
357
+ }
358
+ for (var o = this.tryEntries.length - 1; o >= 0; --o) {
359
+ var i = this.tryEntries[o],
360
+ a = i.completion;
361
+ if ("root" === i.tryLoc) return handle("end");
362
+ if (i.tryLoc <= this.prev) {
363
+ var c = n.call(i, "catchLoc"),
364
+ u = n.call(i, "finallyLoc");
365
+ if (c && u) {
366
+ if (this.prev < i.catchLoc) return handle(i.catchLoc, !0);
367
+ if (this.prev < i.finallyLoc) return handle(i.finallyLoc);
368
+ } else if (c) {
369
+ if (this.prev < i.catchLoc) return handle(i.catchLoc, !0);
370
+ } else {
371
+ if (!u) throw Error("try statement without catch or finally");
372
+ if (this.prev < i.finallyLoc) return handle(i.finallyLoc);
373
+ }
374
+ }
375
+ }
376
+ },
377
+ abrupt: function (t, e) {
378
+ for (var r = this.tryEntries.length - 1; r >= 0; --r) {
379
+ var o = this.tryEntries[r];
380
+ if (o.tryLoc <= this.prev && n.call(o, "finallyLoc") && this.prev < o.finallyLoc) {
381
+ var i = o;
382
+ break;
383
+ }
384
+ }
385
+ i && ("break" === t || "continue" === t) && i.tryLoc <= e && e <= i.finallyLoc && (i = null);
386
+ var a = i ? i.completion : {};
387
+ return a.type = t, a.arg = e, i ? (this.method = "next", this.next = i.finallyLoc, y) : this.complete(a);
388
+ },
389
+ complete: function (t, e) {
390
+ if ("throw" === t.type) throw t.arg;
391
+ return "break" === t.type || "continue" === t.type ? this.next = t.arg : "return" === t.type ? (this.rval = this.arg = t.arg, this.method = "return", this.next = "end") : "normal" === t.type && e && (this.next = e), y;
392
+ },
393
+ finish: function (t) {
394
+ for (var e = this.tryEntries.length - 1; e >= 0; --e) {
395
+ var r = this.tryEntries[e];
396
+ if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), resetTryEntry(r), y;
397
+ }
398
+ },
399
+ catch: function (t) {
400
+ for (var e = this.tryEntries.length - 1; e >= 0; --e) {
401
+ var r = this.tryEntries[e];
402
+ if (r.tryLoc === t) {
403
+ var n = r.completion;
404
+ if ("throw" === n.type) {
405
+ var o = n.arg;
406
+ resetTryEntry(r);
407
+ }
408
+ return o;
409
+ }
410
+ }
411
+ throw Error("illegal catch attempt");
412
+ },
413
+ delegateYield: function (e, r, n) {
414
+ return this.delegate = {
415
+ iterator: values(e),
416
+ resultName: r,
417
+ nextLoc: n
418
+ }, "next" === this.method && (this.arg = t), y;
419
+ }
420
+ }, e;
421
+ }
422
+ function _slicedToArray(r, e) {
423
+ return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest();
424
+ }
425
+ function _toConsumableArray(r) {
426
+ return _arrayWithoutHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray(r) || _nonIterableSpread();
427
+ }
428
+ function _toPrimitive(t, r) {
429
+ if ("object" != typeof t || !t) return t;
430
+ var e = t[Symbol.toPrimitive];
431
+ if (void 0 !== e) {
432
+ var i = e.call(t, r || "default");
433
+ if ("object" != typeof i) return i;
434
+ throw new TypeError("@@toPrimitive must return a primitive value.");
435
+ }
436
+ return ("string" === r ? String : Number)(t);
437
+ }
438
+ function _toPropertyKey(t) {
439
+ var i = _toPrimitive(t, "string");
440
+ return "symbol" == typeof i ? i : i + "";
441
+ }
442
+ function _typeof(o) {
443
+ "@babel/helpers - typeof";
444
+
445
+ return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {
446
+ return typeof o;
447
+ } : function (o) {
448
+ return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
449
+ }, _typeof(o);
450
+ }
451
+ function _unsupportedIterableToArray(r, a) {
452
+ if (r) {
453
+ if ("string" == typeof r) return _arrayLikeToArray(r, a);
454
+ var t = {}.toString.call(r).slice(8, -1);
455
+ return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0;
456
+ }
457
+ }
458
+
459
+ exports._asyncToGenerator = _asyncToGenerator;
460
+ exports._defineProperty = _defineProperty;
461
+ exports._objectSpread2 = _objectSpread2;
462
+ exports._objectWithoutProperties = _objectWithoutProperties;
463
+ exports._regeneratorRuntime = _regeneratorRuntime;
464
+ exports._slicedToArray = _slicedToArray;
465
+ exports._toConsumableArray = _toConsumableArray;
466
+ exports._typeof = _typeof;
467
+ //# sourceMappingURL=DOz-p6oh.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DOz-p6oh.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -0,0 +1,115 @@
1
+ 'use strict';
2
+
3
+ function _arrayLikeToArray(r, a) {
4
+ (null == a || a > r.length) && (a = r.length);
5
+ for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];
6
+ return n;
7
+ }
8
+ function _arrayWithHoles(r) {
9
+ if (Array.isArray(r)) return r;
10
+ }
11
+ function _defineProperty(e, r, t) {
12
+ return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
13
+ value: t,
14
+ enumerable: !0,
15
+ configurable: !0,
16
+ writable: !0
17
+ }) : e[r] = t, e;
18
+ }
19
+ function _iterableToArrayLimit(r, l) {
20
+ var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
21
+ if (null != t) {
22
+ var e,
23
+ n,
24
+ i,
25
+ u,
26
+ a = [],
27
+ f = !0,
28
+ o = !1;
29
+ try {
30
+ if (i = (t = t.call(r)).next, 0 === l) ; else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0);
31
+ } catch (r) {
32
+ o = !0, n = r;
33
+ } finally {
34
+ try {
35
+ if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return;
36
+ } finally {
37
+ if (o) throw n;
38
+ }
39
+ }
40
+ return a;
41
+ }
42
+ }
43
+ function _nonIterableRest() {
44
+ throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
45
+ }
46
+ function ownKeys(e, r) {
47
+ var t = Object.keys(e);
48
+ if (Object.getOwnPropertySymbols) {
49
+ var o = Object.getOwnPropertySymbols(e);
50
+ r && (o = o.filter(function (r) {
51
+ return Object.getOwnPropertyDescriptor(e, r).enumerable;
52
+ })), t.push.apply(t, o);
53
+ }
54
+ return t;
55
+ }
56
+ function _objectSpread2(e) {
57
+ for (var r = 1; r < arguments.length; r++) {
58
+ var t = null != arguments[r] ? arguments[r] : {};
59
+ r % 2 ? ownKeys(Object(t), !0).forEach(function (r) {
60
+ _defineProperty(e, r, t[r]);
61
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) {
62
+ Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r));
63
+ });
64
+ }
65
+ return e;
66
+ }
67
+ function _objectWithoutProperties(e, t) {
68
+ if (null == e) return {};
69
+ var o,
70
+ r,
71
+ i = _objectWithoutPropertiesLoose(e, t);
72
+ if (Object.getOwnPropertySymbols) {
73
+ var n = Object.getOwnPropertySymbols(e);
74
+ for (r = 0; r < n.length; r++) o = n[r], t.indexOf(o) >= 0 || {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]);
75
+ }
76
+ return i;
77
+ }
78
+ function _objectWithoutPropertiesLoose(r, e) {
79
+ if (null == r) return {};
80
+ var t = {};
81
+ for (var n in r) if ({}.hasOwnProperty.call(r, n)) {
82
+ if (e.indexOf(n) >= 0) continue;
83
+ t[n] = r[n];
84
+ }
85
+ return t;
86
+ }
87
+ function _slicedToArray(r, e) {
88
+ return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest();
89
+ }
90
+ function _toPrimitive(t, r) {
91
+ if ("object" != typeof t || !t) return t;
92
+ var e = t[Symbol.toPrimitive];
93
+ if (void 0 !== e) {
94
+ var i = e.call(t, r || "default");
95
+ if ("object" != typeof i) return i;
96
+ throw new TypeError("@@toPrimitive must return a primitive value.");
97
+ }
98
+ return ("string" === r ? String : Number)(t);
99
+ }
100
+ function _toPropertyKey(t) {
101
+ var i = _toPrimitive(t, "string");
102
+ return "symbol" == typeof i ? i : i + "";
103
+ }
104
+ function _unsupportedIterableToArray(r, a) {
105
+ if (r) {
106
+ if ("string" == typeof r) return _arrayLikeToArray(r, a);
107
+ var t = {}.toString.call(r).slice(8, -1);
108
+ return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0;
109
+ }
110
+ }
111
+
112
+ exports._objectSpread2 = _objectSpread2;
113
+ exports._objectWithoutProperties = _objectWithoutProperties;
114
+ exports._slicedToArray = _slicedToArray;
115
+ //# sourceMappingURL=Dx-JjEWA.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Dx-JjEWA.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -0,0 +1,12 @@
1
+ 'use strict';
2
+
3
+ var dayjs = require('dayjs');
4
+
5
+ var getTime = function getTime() {
6
+ var time = dayjs().format("YYYY-MM-DD HH:mm:ss");
7
+ console.log(time);
8
+ return time;
9
+ };
10
+
11
+ exports.getTime = getTime;
12
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sources":["../../../../../../src/components/Button/common/index.ts"],"sourcesContent":["import dayjs from \"dayjs\";\n\nexport const getTime = () => {\n const time = dayjs().format('YYYY-MM-DD HH:mm:ss');\n console.log(time)\n return time\n}"],"names":["getTime","time","dayjs","format","console","log"],"mappings":";;;;IAEaA,UAAU,SAAVA,UAAgB;EAC3B,IAAMC,IAAO,GAAAC,KAAA,EAAQ,CAAAC,MAAA,CAAO,qBAAqB,CAAA,CAAA;AACjDC,EAAAA,OAAA,CAAQC,IAAIJ,IAAI,CAAA,CAAA;AACT,EAAA,OAAAA,IAAA,CAAA;AACT;;;;"}
@@ -0,0 +1,3 @@
1
+ 'use strict';
2
+
3
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;"}
@@ -0,0 +1,25 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ var _rollupPluginBabelHelpers = require('../../../_chunks/DOz-p6oh.js');
6
+ var React = require('react');
7
+ var reactNative = require('react-native');
8
+ var components_Button_common_index = require('../common/index.js');
9
+ require('dayjs');
10
+
11
+ var index = (function (props) {
12
+ var _useState = React.useState(""),
13
+ _useState2 = _rollupPluginBabelHelpers._slicedToArray(_useState, 2),
14
+ time = _useState2[0],
15
+ setTime = _useState2[1];
16
+ return /* @__PURE__ */React.createElement(reactNative.View, null, /* @__PURE__ */React.createElement(reactNative.Button, {
17
+ title: props.name || "",
18
+ onPress: function onPress() {
19
+ setTime(components_Button_common_index.getTime());
20
+ }
21
+ }), /* @__PURE__ */React.createElement(reactNative.Text, null, time));
22
+ });
23
+
24
+ exports.default = index;
25
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sources":["../../../../../../src/components/Button/rn/index.tsx"],"sourcesContent":["import React, { useState } from \"react\";\nimport { Button, Text, View } from \"react-native\";\nimport { getTime } from \"../common/index\";\n\nimport { RedsButton } from \"../interface/index\";\n\nexport default (props: RedsButton) => {\n const [time, setTime] = useState(\"\");\n return (\n <View>\n <Button\n title={props.name || \"\"}\n onPress={() => {\n setTime(getTime());\n }}\n ></Button>\n <Text>{time}</Text>\n </View>\n );\n};\n"],"names":["props","_useState","useState","_useState2","_slicedToArray","time","setTime","View","React","createElement","Button","title","name","onPress","getTime","Text"],"mappings":";;;;;;;;;;AAMA,YAAe,CAAA,UAACA,KAAsB,EAAA;AACpC,EAAA,IAAAC,SAAA,GAAwBC,eAAS,EAAE,CAAA;IAAAC,UAAA,GAAAC,wCAAA,CAAAH,SAAA,EAAA,CAAA,CAAA;AAA5BI,IAAAA,IAAA,GAAAF,UAAA,CAAA,CAAA,CAAA;AAAMG,IAAAA,OAAO,GAAAH,UAAA,CAAA,CAAA,CAAA,CAAA;AACpB,EAAA,0CACGI,gBACC,EAAA,IAAA,iBAAAC,KAAA,CAAAC,aAAA,CAACC,kBAAA,EAAA;AACCC,IAAAA,KAAA,EAAOX,MAAMY,IAAQ,IAAA,EAAA;IACrBC,SAAS,SAAAA,OAAAA,GAAM;AACbP,MAAAA,OAAA,CAAQQ,wCAAS,CAAA,CAAA;AACnB,KAAA;AAAA,GACD,CACD,iBAAAN,KAAA,CAAAC,aAAA,CAACM,gBAAM,EAAA,IAAA,EAAAV,IAAK,CACd,CAAA,CAAA;AAEJ,CAAA;;;;"}
@@ -0,0 +1,12 @@
1
+ 'use strict';
2
+
3
+ var dayjs = require('dayjs');
4
+
5
+ var getTime = function getTime() {
6
+ var time = dayjs().format("YYYY-MM-DD HH:mm:ss");
7
+ console.log(time);
8
+ return time;
9
+ };
10
+
11
+ exports.getTime = getTime;
12
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sources":["../../../../../../src/components/Popover/common/index.ts"],"sourcesContent":["import dayjs from \"dayjs\";\n\nexport const getTime = () => {\n const time = dayjs().format('YYYY-MM-DD HH:mm:ss');\n console.log(time)\n return time\n}"],"names":["getTime","time","dayjs","format","console","log"],"mappings":";;;;IAEaA,UAAU,SAAVA,UAAgB;EAC3B,IAAMC,IAAO,GAAAC,KAAA,EAAQ,CAAAC,MAAA,CAAO,qBAAqB,CAAA,CAAA;AACjDC,EAAAA,OAAA,CAAQC,IAAIJ,IAAI,CAAA,CAAA;AACT,EAAA,OAAAA,IAAA,CAAA;AACT;;;;"}
@@ -0,0 +1,3 @@
1
+ 'use strict';
2
+
3
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;"}