strivui 1.2.3 → 1.2.4
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.
- package/dist/index.js +45 -471
- package/dist/index.js.map +1 -1
- package/dist/indexnp.esm.js +513 -0
- package/dist/indexnp.esm.js.map +1 -0
- package/package.json +3 -2
- package/dist/index.esm.js +0 -939
- package/dist/index.esm.js.map +0 -1
package/dist/index.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var jsxRuntime = require('react/jsx-runtime');
|
|
4
|
+
var react = require('react');
|
|
4
5
|
|
|
5
6
|
function _arrayLikeToArray(r, a) {
|
|
6
7
|
(null == a || a > r.length) && (a = r.length);
|
|
@@ -111,433 +112,6 @@ function _unsupportedIterableToArray(r, a) {
|
|
|
111
112
|
}
|
|
112
113
|
}
|
|
113
114
|
|
|
114
|
-
var jsxRuntime = {exports: {}};
|
|
115
|
-
|
|
116
|
-
var reactJsxRuntime_production = {};
|
|
117
|
-
|
|
118
|
-
/**
|
|
119
|
-
* @license React
|
|
120
|
-
* react-jsx-runtime.production.js
|
|
121
|
-
*
|
|
122
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
123
|
-
*
|
|
124
|
-
* This source code is licensed under the MIT license found in the
|
|
125
|
-
* LICENSE file in the root directory of this source tree.
|
|
126
|
-
*/
|
|
127
|
-
|
|
128
|
-
var hasRequiredReactJsxRuntime_production;
|
|
129
|
-
|
|
130
|
-
function requireReactJsxRuntime_production () {
|
|
131
|
-
if (hasRequiredReactJsxRuntime_production) return reactJsxRuntime_production;
|
|
132
|
-
hasRequiredReactJsxRuntime_production = 1;
|
|
133
|
-
var REACT_ELEMENT_TYPE = Symbol.for("react.transitional.element"),
|
|
134
|
-
REACT_FRAGMENT_TYPE = Symbol.for("react.fragment");
|
|
135
|
-
function jsxProd(type, config, maybeKey) {
|
|
136
|
-
var key = null;
|
|
137
|
-
void 0 !== maybeKey && (key = "" + maybeKey);
|
|
138
|
-
void 0 !== config.key && (key = "" + config.key);
|
|
139
|
-
if ("key" in config) {
|
|
140
|
-
maybeKey = {};
|
|
141
|
-
for (var propName in config)
|
|
142
|
-
"key" !== propName && (maybeKey[propName] = config[propName]);
|
|
143
|
-
} else maybeKey = config;
|
|
144
|
-
config = maybeKey.ref;
|
|
145
|
-
return {
|
|
146
|
-
$$typeof: REACT_ELEMENT_TYPE,
|
|
147
|
-
type: type,
|
|
148
|
-
key: key,
|
|
149
|
-
ref: void 0 !== config ? config : null,
|
|
150
|
-
props: maybeKey
|
|
151
|
-
};
|
|
152
|
-
}
|
|
153
|
-
reactJsxRuntime_production.Fragment = REACT_FRAGMENT_TYPE;
|
|
154
|
-
reactJsxRuntime_production.jsx = jsxProd;
|
|
155
|
-
reactJsxRuntime_production.jsxs = jsxProd;
|
|
156
|
-
return reactJsxRuntime_production;
|
|
157
|
-
}
|
|
158
|
-
|
|
159
|
-
var reactJsxRuntime_development = {};
|
|
160
|
-
|
|
161
|
-
/**
|
|
162
|
-
* @license React
|
|
163
|
-
* react-jsx-runtime.development.js
|
|
164
|
-
*
|
|
165
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
166
|
-
*
|
|
167
|
-
* This source code is licensed under the MIT license found in the
|
|
168
|
-
* LICENSE file in the root directory of this source tree.
|
|
169
|
-
*/
|
|
170
|
-
|
|
171
|
-
var hasRequiredReactJsxRuntime_development;
|
|
172
|
-
|
|
173
|
-
function requireReactJsxRuntime_development () {
|
|
174
|
-
if (hasRequiredReactJsxRuntime_development) return reactJsxRuntime_development;
|
|
175
|
-
hasRequiredReactJsxRuntime_development = 1;
|
|
176
|
-
"production" !== process.env.NODE_ENV &&
|
|
177
|
-
(function () {
|
|
178
|
-
function getComponentNameFromType(type) {
|
|
179
|
-
if (null == type) return null;
|
|
180
|
-
if ("function" === typeof type)
|
|
181
|
-
return type.$$typeof === REACT_CLIENT_REFERENCE
|
|
182
|
-
? null
|
|
183
|
-
: type.displayName || type.name || null;
|
|
184
|
-
if ("string" === typeof type) return type;
|
|
185
|
-
switch (type) {
|
|
186
|
-
case REACT_FRAGMENT_TYPE:
|
|
187
|
-
return "Fragment";
|
|
188
|
-
case REACT_PROFILER_TYPE:
|
|
189
|
-
return "Profiler";
|
|
190
|
-
case REACT_STRICT_MODE_TYPE:
|
|
191
|
-
return "StrictMode";
|
|
192
|
-
case REACT_SUSPENSE_TYPE:
|
|
193
|
-
return "Suspense";
|
|
194
|
-
case REACT_SUSPENSE_LIST_TYPE:
|
|
195
|
-
return "SuspenseList";
|
|
196
|
-
case REACT_ACTIVITY_TYPE:
|
|
197
|
-
return "Activity";
|
|
198
|
-
}
|
|
199
|
-
if ("object" === typeof type)
|
|
200
|
-
switch (
|
|
201
|
-
("number" === typeof type.tag &&
|
|
202
|
-
console.error(
|
|
203
|
-
"Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."
|
|
204
|
-
),
|
|
205
|
-
type.$$typeof)
|
|
206
|
-
) {
|
|
207
|
-
case REACT_PORTAL_TYPE:
|
|
208
|
-
return "Portal";
|
|
209
|
-
case REACT_CONTEXT_TYPE:
|
|
210
|
-
return (type.displayName || "Context") + ".Provider";
|
|
211
|
-
case REACT_CONSUMER_TYPE:
|
|
212
|
-
return (type._context.displayName || "Context") + ".Consumer";
|
|
213
|
-
case REACT_FORWARD_REF_TYPE:
|
|
214
|
-
var innerType = type.render;
|
|
215
|
-
type = type.displayName;
|
|
216
|
-
type ||
|
|
217
|
-
((type = innerType.displayName || innerType.name || ""),
|
|
218
|
-
(type = "" !== type ? "ForwardRef(" + type + ")" : "ForwardRef"));
|
|
219
|
-
return type;
|
|
220
|
-
case REACT_MEMO_TYPE:
|
|
221
|
-
return (
|
|
222
|
-
(innerType = type.displayName || null),
|
|
223
|
-
null !== innerType
|
|
224
|
-
? innerType
|
|
225
|
-
: getComponentNameFromType(type.type) || "Memo"
|
|
226
|
-
);
|
|
227
|
-
case REACT_LAZY_TYPE:
|
|
228
|
-
innerType = type._payload;
|
|
229
|
-
type = type._init;
|
|
230
|
-
try {
|
|
231
|
-
return getComponentNameFromType(type(innerType));
|
|
232
|
-
} catch (x) {}
|
|
233
|
-
}
|
|
234
|
-
return null;
|
|
235
|
-
}
|
|
236
|
-
function testStringCoercion(value) {
|
|
237
|
-
return "" + value;
|
|
238
|
-
}
|
|
239
|
-
function checkKeyStringCoercion(value) {
|
|
240
|
-
try {
|
|
241
|
-
testStringCoercion(value);
|
|
242
|
-
var JSCompiler_inline_result = !1;
|
|
243
|
-
} catch (e) {
|
|
244
|
-
JSCompiler_inline_result = true;
|
|
245
|
-
}
|
|
246
|
-
if (JSCompiler_inline_result) {
|
|
247
|
-
JSCompiler_inline_result = console;
|
|
248
|
-
var JSCompiler_temp_const = JSCompiler_inline_result.error;
|
|
249
|
-
var JSCompiler_inline_result$jscomp$0 =
|
|
250
|
-
("function" === typeof Symbol &&
|
|
251
|
-
Symbol.toStringTag &&
|
|
252
|
-
value[Symbol.toStringTag]) ||
|
|
253
|
-
value.constructor.name ||
|
|
254
|
-
"Object";
|
|
255
|
-
JSCompiler_temp_const.call(
|
|
256
|
-
JSCompiler_inline_result,
|
|
257
|
-
"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
|
|
258
|
-
JSCompiler_inline_result$jscomp$0
|
|
259
|
-
);
|
|
260
|
-
return testStringCoercion(value);
|
|
261
|
-
}
|
|
262
|
-
}
|
|
263
|
-
function getTaskName(type) {
|
|
264
|
-
if (type === REACT_FRAGMENT_TYPE) return "<>";
|
|
265
|
-
if (
|
|
266
|
-
"object" === typeof type &&
|
|
267
|
-
null !== type &&
|
|
268
|
-
type.$$typeof === REACT_LAZY_TYPE
|
|
269
|
-
)
|
|
270
|
-
return "<...>";
|
|
271
|
-
try {
|
|
272
|
-
var name = getComponentNameFromType(type);
|
|
273
|
-
return name ? "<" + name + ">" : "<...>";
|
|
274
|
-
} catch (x) {
|
|
275
|
-
return "<...>";
|
|
276
|
-
}
|
|
277
|
-
}
|
|
278
|
-
function getOwner() {
|
|
279
|
-
var dispatcher = ReactSharedInternals.A;
|
|
280
|
-
return null === dispatcher ? null : dispatcher.getOwner();
|
|
281
|
-
}
|
|
282
|
-
function UnknownOwner() {
|
|
283
|
-
return Error("react-stack-top-frame");
|
|
284
|
-
}
|
|
285
|
-
function hasValidKey(config) {
|
|
286
|
-
if (hasOwnProperty.call(config, "key")) {
|
|
287
|
-
var getter = Object.getOwnPropertyDescriptor(config, "key").get;
|
|
288
|
-
if (getter && getter.isReactWarning) return false;
|
|
289
|
-
}
|
|
290
|
-
return void 0 !== config.key;
|
|
291
|
-
}
|
|
292
|
-
function defineKeyPropWarningGetter(props, displayName) {
|
|
293
|
-
function warnAboutAccessingKey() {
|
|
294
|
-
specialPropKeyWarningShown ||
|
|
295
|
-
((specialPropKeyWarningShown = true),
|
|
296
|
-
console.error(
|
|
297
|
-
"%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",
|
|
298
|
-
displayName
|
|
299
|
-
));
|
|
300
|
-
}
|
|
301
|
-
warnAboutAccessingKey.isReactWarning = true;
|
|
302
|
-
Object.defineProperty(props, "key", {
|
|
303
|
-
get: warnAboutAccessingKey,
|
|
304
|
-
configurable: true
|
|
305
|
-
});
|
|
306
|
-
}
|
|
307
|
-
function elementRefGetterWithDeprecationWarning() {
|
|
308
|
-
var componentName = getComponentNameFromType(this.type);
|
|
309
|
-
didWarnAboutElementRef[componentName] ||
|
|
310
|
-
((didWarnAboutElementRef[componentName] = true),
|
|
311
|
-
console.error(
|
|
312
|
-
"Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release."
|
|
313
|
-
));
|
|
314
|
-
componentName = this.props.ref;
|
|
315
|
-
return void 0 !== componentName ? componentName : null;
|
|
316
|
-
}
|
|
317
|
-
function ReactElement(
|
|
318
|
-
type,
|
|
319
|
-
key,
|
|
320
|
-
self,
|
|
321
|
-
source,
|
|
322
|
-
owner,
|
|
323
|
-
props,
|
|
324
|
-
debugStack,
|
|
325
|
-
debugTask
|
|
326
|
-
) {
|
|
327
|
-
self = props.ref;
|
|
328
|
-
type = {
|
|
329
|
-
$$typeof: REACT_ELEMENT_TYPE,
|
|
330
|
-
type: type,
|
|
331
|
-
key: key,
|
|
332
|
-
props: props,
|
|
333
|
-
_owner: owner
|
|
334
|
-
};
|
|
335
|
-
null !== (void 0 !== self ? self : null)
|
|
336
|
-
? Object.defineProperty(type, "ref", {
|
|
337
|
-
enumerable: false,
|
|
338
|
-
get: elementRefGetterWithDeprecationWarning
|
|
339
|
-
})
|
|
340
|
-
: Object.defineProperty(type, "ref", { enumerable: false, value: null });
|
|
341
|
-
type._store = {};
|
|
342
|
-
Object.defineProperty(type._store, "validated", {
|
|
343
|
-
configurable: false,
|
|
344
|
-
enumerable: false,
|
|
345
|
-
writable: true,
|
|
346
|
-
value: 0
|
|
347
|
-
});
|
|
348
|
-
Object.defineProperty(type, "_debugInfo", {
|
|
349
|
-
configurable: false,
|
|
350
|
-
enumerable: false,
|
|
351
|
-
writable: true,
|
|
352
|
-
value: null
|
|
353
|
-
});
|
|
354
|
-
Object.defineProperty(type, "_debugStack", {
|
|
355
|
-
configurable: false,
|
|
356
|
-
enumerable: false,
|
|
357
|
-
writable: true,
|
|
358
|
-
value: debugStack
|
|
359
|
-
});
|
|
360
|
-
Object.defineProperty(type, "_debugTask", {
|
|
361
|
-
configurable: false,
|
|
362
|
-
enumerable: false,
|
|
363
|
-
writable: true,
|
|
364
|
-
value: debugTask
|
|
365
|
-
});
|
|
366
|
-
Object.freeze && (Object.freeze(type.props), Object.freeze(type));
|
|
367
|
-
return type;
|
|
368
|
-
}
|
|
369
|
-
function jsxDEVImpl(
|
|
370
|
-
type,
|
|
371
|
-
config,
|
|
372
|
-
maybeKey,
|
|
373
|
-
isStaticChildren,
|
|
374
|
-
source,
|
|
375
|
-
self,
|
|
376
|
-
debugStack,
|
|
377
|
-
debugTask
|
|
378
|
-
) {
|
|
379
|
-
var children = config.children;
|
|
380
|
-
if (void 0 !== children)
|
|
381
|
-
if (isStaticChildren)
|
|
382
|
-
if (isArrayImpl(children)) {
|
|
383
|
-
for (
|
|
384
|
-
isStaticChildren = 0;
|
|
385
|
-
isStaticChildren < children.length;
|
|
386
|
-
isStaticChildren++
|
|
387
|
-
)
|
|
388
|
-
validateChildKeys(children[isStaticChildren]);
|
|
389
|
-
Object.freeze && Object.freeze(children);
|
|
390
|
-
} else
|
|
391
|
-
console.error(
|
|
392
|
-
"React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead."
|
|
393
|
-
);
|
|
394
|
-
else validateChildKeys(children);
|
|
395
|
-
if (hasOwnProperty.call(config, "key")) {
|
|
396
|
-
children = getComponentNameFromType(type);
|
|
397
|
-
var keys = Object.keys(config).filter(function (k) {
|
|
398
|
-
return "key" !== k;
|
|
399
|
-
});
|
|
400
|
-
isStaticChildren =
|
|
401
|
-
0 < keys.length
|
|
402
|
-
? "{key: someKey, " + keys.join(": ..., ") + ": ...}"
|
|
403
|
-
: "{key: someKey}";
|
|
404
|
-
didWarnAboutKeySpread[children + isStaticChildren] ||
|
|
405
|
-
((keys =
|
|
406
|
-
0 < keys.length ? "{" + keys.join(": ..., ") + ": ...}" : "{}"),
|
|
407
|
-
console.error(
|
|
408
|
-
'A props object containing a "key" prop is being spread into JSX:\n let props = %s;\n <%s {...props} />\nReact keys must be passed directly to JSX without using spread:\n let props = %s;\n <%s key={someKey} {...props} />',
|
|
409
|
-
isStaticChildren,
|
|
410
|
-
children,
|
|
411
|
-
keys,
|
|
412
|
-
children
|
|
413
|
-
),
|
|
414
|
-
(didWarnAboutKeySpread[children + isStaticChildren] = true));
|
|
415
|
-
}
|
|
416
|
-
children = null;
|
|
417
|
-
void 0 !== maybeKey &&
|
|
418
|
-
(checkKeyStringCoercion(maybeKey), (children = "" + maybeKey));
|
|
419
|
-
hasValidKey(config) &&
|
|
420
|
-
(checkKeyStringCoercion(config.key), (children = "" + config.key));
|
|
421
|
-
if ("key" in config) {
|
|
422
|
-
maybeKey = {};
|
|
423
|
-
for (var propName in config)
|
|
424
|
-
"key" !== propName && (maybeKey[propName] = config[propName]);
|
|
425
|
-
} else maybeKey = config;
|
|
426
|
-
children &&
|
|
427
|
-
defineKeyPropWarningGetter(
|
|
428
|
-
maybeKey,
|
|
429
|
-
"function" === typeof type
|
|
430
|
-
? type.displayName || type.name || "Unknown"
|
|
431
|
-
: type
|
|
432
|
-
);
|
|
433
|
-
return ReactElement(
|
|
434
|
-
type,
|
|
435
|
-
children,
|
|
436
|
-
self,
|
|
437
|
-
source,
|
|
438
|
-
getOwner(),
|
|
439
|
-
maybeKey,
|
|
440
|
-
debugStack,
|
|
441
|
-
debugTask
|
|
442
|
-
);
|
|
443
|
-
}
|
|
444
|
-
function validateChildKeys(node) {
|
|
445
|
-
"object" === typeof node &&
|
|
446
|
-
null !== node &&
|
|
447
|
-
node.$$typeof === REACT_ELEMENT_TYPE &&
|
|
448
|
-
node._store &&
|
|
449
|
-
(node._store.validated = 1);
|
|
450
|
-
}
|
|
451
|
-
var React = require$$0,
|
|
452
|
-
REACT_ELEMENT_TYPE = Symbol.for("react.transitional.element"),
|
|
453
|
-
REACT_PORTAL_TYPE = Symbol.for("react.portal"),
|
|
454
|
-
REACT_FRAGMENT_TYPE = Symbol.for("react.fragment"),
|
|
455
|
-
REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode"),
|
|
456
|
-
REACT_PROFILER_TYPE = Symbol.for("react.profiler");
|
|
457
|
-
var REACT_CONSUMER_TYPE = Symbol.for("react.consumer"),
|
|
458
|
-
REACT_CONTEXT_TYPE = Symbol.for("react.context"),
|
|
459
|
-
REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref"),
|
|
460
|
-
REACT_SUSPENSE_TYPE = Symbol.for("react.suspense"),
|
|
461
|
-
REACT_SUSPENSE_LIST_TYPE = Symbol.for("react.suspense_list"),
|
|
462
|
-
REACT_MEMO_TYPE = Symbol.for("react.memo"),
|
|
463
|
-
REACT_LAZY_TYPE = Symbol.for("react.lazy"),
|
|
464
|
-
REACT_ACTIVITY_TYPE = Symbol.for("react.activity"),
|
|
465
|
-
REACT_CLIENT_REFERENCE = Symbol.for("react.client.reference"),
|
|
466
|
-
ReactSharedInternals =
|
|
467
|
-
React.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,
|
|
468
|
-
hasOwnProperty = Object.prototype.hasOwnProperty,
|
|
469
|
-
isArrayImpl = Array.isArray,
|
|
470
|
-
createTask = console.createTask
|
|
471
|
-
? console.createTask
|
|
472
|
-
: function () {
|
|
473
|
-
return null;
|
|
474
|
-
};
|
|
475
|
-
React = {
|
|
476
|
-
"react-stack-bottom-frame": function (callStackForError) {
|
|
477
|
-
return callStackForError();
|
|
478
|
-
}
|
|
479
|
-
};
|
|
480
|
-
var specialPropKeyWarningShown;
|
|
481
|
-
var didWarnAboutElementRef = {};
|
|
482
|
-
var unknownOwnerDebugStack = React["react-stack-bottom-frame"].bind(
|
|
483
|
-
React,
|
|
484
|
-
UnknownOwner
|
|
485
|
-
)();
|
|
486
|
-
var unknownOwnerDebugTask = createTask(getTaskName(UnknownOwner));
|
|
487
|
-
var didWarnAboutKeySpread = {};
|
|
488
|
-
reactJsxRuntime_development.Fragment = REACT_FRAGMENT_TYPE;
|
|
489
|
-
reactJsxRuntime_development.jsx = function (type, config, maybeKey, source, self) {
|
|
490
|
-
var trackActualOwner =
|
|
491
|
-
1e4 > ReactSharedInternals.recentlyCreatedOwnerStacks++;
|
|
492
|
-
return jsxDEVImpl(
|
|
493
|
-
type,
|
|
494
|
-
config,
|
|
495
|
-
maybeKey,
|
|
496
|
-
false,
|
|
497
|
-
source,
|
|
498
|
-
self,
|
|
499
|
-
trackActualOwner
|
|
500
|
-
? Error("react-stack-top-frame")
|
|
501
|
-
: unknownOwnerDebugStack,
|
|
502
|
-
trackActualOwner ? createTask(getTaskName(type)) : unknownOwnerDebugTask
|
|
503
|
-
);
|
|
504
|
-
};
|
|
505
|
-
reactJsxRuntime_development.jsxs = function (type, config, maybeKey, source, self) {
|
|
506
|
-
var trackActualOwner =
|
|
507
|
-
1e4 > ReactSharedInternals.recentlyCreatedOwnerStacks++;
|
|
508
|
-
return jsxDEVImpl(
|
|
509
|
-
type,
|
|
510
|
-
config,
|
|
511
|
-
maybeKey,
|
|
512
|
-
true,
|
|
513
|
-
source,
|
|
514
|
-
self,
|
|
515
|
-
trackActualOwner
|
|
516
|
-
? Error("react-stack-top-frame")
|
|
517
|
-
: unknownOwnerDebugStack,
|
|
518
|
-
trackActualOwner ? createTask(getTaskName(type)) : unknownOwnerDebugTask
|
|
519
|
-
);
|
|
520
|
-
};
|
|
521
|
-
})();
|
|
522
|
-
return reactJsxRuntime_development;
|
|
523
|
-
}
|
|
524
|
-
|
|
525
|
-
var hasRequiredJsxRuntime;
|
|
526
|
-
|
|
527
|
-
function requireJsxRuntime () {
|
|
528
|
-
if (hasRequiredJsxRuntime) return jsxRuntime.exports;
|
|
529
|
-
hasRequiredJsxRuntime = 1;
|
|
530
|
-
|
|
531
|
-
if (process.env.NODE_ENV === 'production') {
|
|
532
|
-
jsxRuntime.exports = requireReactJsxRuntime_production();
|
|
533
|
-
} else {
|
|
534
|
-
jsxRuntime.exports = requireReactJsxRuntime_development();
|
|
535
|
-
}
|
|
536
|
-
return jsxRuntime.exports;
|
|
537
|
-
}
|
|
538
|
-
|
|
539
|
-
var jsxRuntimeExports = requireJsxRuntime();
|
|
540
|
-
|
|
541
115
|
var _excluded$3 = ["children"],
|
|
542
116
|
_excluded2$3 = ["children"],
|
|
543
117
|
_excluded3$2 = ["children"],
|
|
@@ -547,45 +121,45 @@ var _excluded$3 = ["children"],
|
|
|
547
121
|
var Button = function Button(_ref) {
|
|
548
122
|
var children = _ref.children,
|
|
549
123
|
props = _objectWithoutProperties(_ref, _excluded$3);
|
|
550
|
-
return
|
|
124
|
+
return jsxRuntime.jsx("button", _objectSpread2(_objectSpread2({}, props), {}, {
|
|
551
125
|
children: children
|
|
552
126
|
}));
|
|
553
127
|
};
|
|
554
128
|
var Input = function Input(props) {
|
|
555
|
-
return
|
|
129
|
+
return jsxRuntime.jsx("input", _objectSpread2({}, props));
|
|
556
130
|
};
|
|
557
131
|
var Link = function Link(_ref2) {
|
|
558
132
|
var children = _ref2.children,
|
|
559
133
|
props = _objectWithoutProperties(_ref2, _excluded2$3);
|
|
560
|
-
return
|
|
134
|
+
return jsxRuntime.jsx("a", _objectSpread2(_objectSpread2({}, props), {}, {
|
|
561
135
|
children: children
|
|
562
136
|
}));
|
|
563
137
|
};
|
|
564
138
|
var TextArea = function TextArea(_ref3) {
|
|
565
139
|
var children = _ref3.children,
|
|
566
140
|
props = _objectWithoutProperties(_ref3, _excluded3$2);
|
|
567
|
-
return
|
|
141
|
+
return jsxRuntime.jsx("textarea", _objectSpread2(_objectSpread2({}, props), {}, {
|
|
568
142
|
children: children
|
|
569
143
|
}));
|
|
570
144
|
};
|
|
571
145
|
var Select = function Select(_ref4) {
|
|
572
146
|
var children = _ref4.children,
|
|
573
147
|
props = _objectWithoutProperties(_ref4, _excluded4$2);
|
|
574
|
-
return
|
|
148
|
+
return jsxRuntime.jsx("select", _objectSpread2(_objectSpread2({}, props), {}, {
|
|
575
149
|
children: children
|
|
576
150
|
}));
|
|
577
151
|
};
|
|
578
152
|
var View = function View(_ref5) {
|
|
579
153
|
var children = _ref5.children,
|
|
580
154
|
props = _objectWithoutProperties(_ref5, _excluded5$1);
|
|
581
|
-
return
|
|
155
|
+
return jsxRuntime.jsx("div", _objectSpread2(_objectSpread2({}, props), {}, {
|
|
582
156
|
children: children
|
|
583
157
|
}));
|
|
584
158
|
};
|
|
585
159
|
var Text = function Text(_ref6) {
|
|
586
160
|
var children = _ref6.children,
|
|
587
161
|
props = _objectWithoutProperties(_ref6, _excluded6$1);
|
|
588
|
-
return
|
|
162
|
+
return jsxRuntime.jsx("p", _objectSpread2(_objectSpread2({}, props), {}, {
|
|
589
163
|
children: children
|
|
590
164
|
}));
|
|
591
165
|
};
|
|
@@ -599,7 +173,7 @@ var Pressable = function Pressable(_ref) {
|
|
|
599
173
|
onPress = _ref.onPress,
|
|
600
174
|
style = _ref.style,
|
|
601
175
|
props = _objectWithoutProperties(_ref, _excluded$2);
|
|
602
|
-
return
|
|
176
|
+
return jsxRuntime.jsx("div", _objectSpread2(_objectSpread2({
|
|
603
177
|
role: "button",
|
|
604
178
|
tabIndex: 0,
|
|
605
179
|
style: _objectSpread2({
|
|
@@ -616,7 +190,7 @@ var ScrollView = function ScrollView(_ref2) {
|
|
|
616
190
|
style = _ref2.style,
|
|
617
191
|
onScroll = _ref2.onScroll,
|
|
618
192
|
props = _objectWithoutProperties(_ref2, _excluded2$2);
|
|
619
|
-
return
|
|
193
|
+
return jsxRuntime.jsx("div", _objectSpread2(_objectSpread2({
|
|
620
194
|
style: _objectSpread2({
|
|
621
195
|
overflowX: horizontal ? "auto" : "hidden",
|
|
622
196
|
overflowY: horizontal ? "hidden" : "auto"
|
|
@@ -627,11 +201,11 @@ var ScrollView = function ScrollView(_ref2) {
|
|
|
627
201
|
}));
|
|
628
202
|
};
|
|
629
203
|
var Image = function Image(props) {
|
|
630
|
-
return
|
|
204
|
+
return jsxRuntime.jsx("img", _objectSpread2({}, props));
|
|
631
205
|
};
|
|
632
206
|
// ActivityIndicator
|
|
633
207
|
var ActivityIndicator = function ActivityIndicator() {
|
|
634
|
-
return
|
|
208
|
+
return jsxRuntime.jsx("div", {
|
|
635
209
|
style: {
|
|
636
210
|
width: 24,
|
|
637
211
|
height: 24,
|
|
@@ -646,11 +220,11 @@ var TouchableOpacity = function TouchableOpacity(_ref3) {
|
|
|
646
220
|
var children = _ref3.children,
|
|
647
221
|
onPress = _ref3.onPress,
|
|
648
222
|
props = _objectWithoutProperties(_ref3, _excluded3$1);
|
|
649
|
-
var _useState =
|
|
223
|
+
var _useState = react.useState(false),
|
|
650
224
|
_useState2 = _slicedToArray(_useState, 2),
|
|
651
225
|
active = _useState2[0],
|
|
652
226
|
setActive = _useState2[1];
|
|
653
|
-
return
|
|
227
|
+
return jsxRuntime.jsx("div", _objectSpread2(_objectSpread2({
|
|
654
228
|
role: "button",
|
|
655
229
|
tabIndex: 0,
|
|
656
230
|
style: {
|
|
@@ -676,9 +250,9 @@ function FlatList(_ref4) {
|
|
|
676
250
|
var data = _ref4.data,
|
|
677
251
|
renderItem = _ref4.renderItem,
|
|
678
252
|
keyExtractor = _ref4.keyExtractor;
|
|
679
|
-
return
|
|
253
|
+
return jsxRuntime.jsx("div", {
|
|
680
254
|
children: data.map(function (item, index) {
|
|
681
|
-
return
|
|
255
|
+
return jsxRuntime.jsx("div", {
|
|
682
256
|
children: renderItem(item, index)
|
|
683
257
|
}, keyExtractor ? keyExtractor(item, index) : index);
|
|
684
258
|
})
|
|
@@ -697,7 +271,7 @@ var ImageBackground = function ImageBackground(_ref5) {
|
|
|
697
271
|
stretch: "100% 100%",
|
|
698
272
|
center: "auto"
|
|
699
273
|
};
|
|
700
|
-
return
|
|
274
|
+
return jsxRuntime.jsx("div", _objectSpread2(_objectSpread2({
|
|
701
275
|
style: _objectSpread2({
|
|
702
276
|
backgroundImage: "url(".concat(source, ")"),
|
|
703
277
|
backgroundRepeat: "no-repeat",
|
|
@@ -717,7 +291,7 @@ var Modal = function Modal(_ref6) {
|
|
|
717
291
|
onClose = _ref6.onClose,
|
|
718
292
|
children = _ref6.children;
|
|
719
293
|
if (!open) return null;
|
|
720
|
-
return
|
|
294
|
+
return jsxRuntime.jsx("div", {
|
|
721
295
|
style: {
|
|
722
296
|
position: "fixed",
|
|
723
297
|
inset: 0,
|
|
@@ -728,7 +302,7 @@ var Modal = function Modal(_ref6) {
|
|
|
728
302
|
zIndex: 1000
|
|
729
303
|
},
|
|
730
304
|
onClick: onClose,
|
|
731
|
-
children:
|
|
305
|
+
children: jsxRuntime.jsx("div", {
|
|
732
306
|
onClick: function onClick(e) {
|
|
733
307
|
return e.stopPropagation();
|
|
734
308
|
},
|
|
@@ -747,7 +321,7 @@ var Dialog = function Dialog(_ref7) {
|
|
|
747
321
|
onConfirm = _ref7.onConfirm,
|
|
748
322
|
onCancel = _ref7.onCancel;
|
|
749
323
|
if (!open) return null;
|
|
750
|
-
return
|
|
324
|
+
return jsxRuntime.jsx("div", {
|
|
751
325
|
style: {
|
|
752
326
|
position: "fixed",
|
|
753
327
|
inset: 0,
|
|
@@ -757,7 +331,7 @@ var Dialog = function Dialog(_ref7) {
|
|
|
757
331
|
alignItems: "center",
|
|
758
332
|
zIndex: 1000
|
|
759
333
|
},
|
|
760
|
-
children:
|
|
334
|
+
children: jsxRuntime.jsxs("div", {
|
|
761
335
|
style: {
|
|
762
336
|
background: "#fff",
|
|
763
337
|
padding: 20,
|
|
@@ -767,20 +341,20 @@ var Dialog = function Dialog(_ref7) {
|
|
|
767
341
|
onClick: function onClick(e) {
|
|
768
342
|
return e.stopPropagation();
|
|
769
343
|
},
|
|
770
|
-
children: [
|
|
344
|
+
children: [jsxRuntime.jsx("h3", {
|
|
771
345
|
children: title
|
|
772
|
-
}),
|
|
346
|
+
}), jsxRuntime.jsx("p", {
|
|
773
347
|
children: description
|
|
774
|
-
}),
|
|
348
|
+
}), jsxRuntime.jsxs("div", {
|
|
775
349
|
style: {
|
|
776
350
|
display: "flex",
|
|
777
351
|
justifyContent: "flex-end",
|
|
778
352
|
gap: 10
|
|
779
353
|
},
|
|
780
|
-
children: [
|
|
354
|
+
children: [jsxRuntime.jsx("button", {
|
|
781
355
|
onClick: onCancel,
|
|
782
356
|
children: cancelText
|
|
783
|
-
}),
|
|
357
|
+
}), jsxRuntime.jsx("button", {
|
|
784
358
|
onClick: onConfirm,
|
|
785
359
|
children: confirmText
|
|
786
360
|
})]
|
|
@@ -792,13 +366,13 @@ function SectionList(_ref9) {
|
|
|
792
366
|
var sections = _ref9.sections,
|
|
793
367
|
renderItem = _ref9.renderItem,
|
|
794
368
|
renderSectionHeader = _ref9.renderSectionHeader;
|
|
795
|
-
return
|
|
369
|
+
return jsxRuntime.jsx("div", {
|
|
796
370
|
children: sections.map(function (section, i) {
|
|
797
|
-
return
|
|
798
|
-
children: [renderSectionHeader ? renderSectionHeader(section.title, i) :
|
|
371
|
+
return jsxRuntime.jsxs("div", {
|
|
372
|
+
children: [renderSectionHeader ? renderSectionHeader(section.title, i) : jsxRuntime.jsx("h4", {
|
|
799
373
|
children: section.title
|
|
800
374
|
}), section.data.map(function (item, j) {
|
|
801
|
-
return
|
|
375
|
+
return jsxRuntime.jsx("div", {
|
|
802
376
|
children: renderItem(item, j)
|
|
803
377
|
}, j);
|
|
804
378
|
})]
|
|
@@ -811,7 +385,7 @@ var Overlay = function Overlay(_ref0) {
|
|
|
811
385
|
onClick = _ref0.onClick,
|
|
812
386
|
children = _ref0.children;
|
|
813
387
|
if (!visible) return null;
|
|
814
|
-
return
|
|
388
|
+
return jsxRuntime.jsx("div", {
|
|
815
389
|
onClick: onClick,
|
|
816
390
|
style: {
|
|
817
391
|
position: "fixed",
|
|
@@ -837,77 +411,77 @@ var _excluded$1 = ["children"],
|
|
|
837
411
|
var Table = function Table(_ref) {
|
|
838
412
|
var children = _ref.children,
|
|
839
413
|
props = _objectWithoutProperties(_ref, _excluded$1);
|
|
840
|
-
return
|
|
414
|
+
return jsxRuntime.jsx("table", _objectSpread2(_objectSpread2({}, props), {}, {
|
|
841
415
|
children: children
|
|
842
416
|
}));
|
|
843
417
|
};
|
|
844
418
|
var TableHead = function TableHead(_ref2) {
|
|
845
419
|
var children = _ref2.children,
|
|
846
420
|
props = _objectWithoutProperties(_ref2, _excluded2$1);
|
|
847
|
-
return
|
|
421
|
+
return jsxRuntime.jsx("thead", _objectSpread2(_objectSpread2({}, props), {}, {
|
|
848
422
|
children: children
|
|
849
423
|
}));
|
|
850
424
|
};
|
|
851
425
|
var TableBody = function TableBody(_ref3) {
|
|
852
426
|
var children = _ref3.children,
|
|
853
427
|
props = _objectWithoutProperties(_ref3, _excluded3);
|
|
854
|
-
return
|
|
428
|
+
return jsxRuntime.jsx("tbody", _objectSpread2(_objectSpread2({}, props), {}, {
|
|
855
429
|
children: children
|
|
856
430
|
}));
|
|
857
431
|
};
|
|
858
432
|
var TableRow = function TableRow(_ref4) {
|
|
859
433
|
var children = _ref4.children,
|
|
860
434
|
props = _objectWithoutProperties(_ref4, _excluded4);
|
|
861
|
-
return
|
|
435
|
+
return jsxRuntime.jsx("tr", _objectSpread2(_objectSpread2({}, props), {}, {
|
|
862
436
|
children: children
|
|
863
437
|
}));
|
|
864
438
|
};
|
|
865
439
|
var TableHeaderCell = function TableHeaderCell(_ref5) {
|
|
866
440
|
var children = _ref5.children,
|
|
867
441
|
props = _objectWithoutProperties(_ref5, _excluded5);
|
|
868
|
-
return
|
|
442
|
+
return jsxRuntime.jsx("th", _objectSpread2(_objectSpread2({}, props), {}, {
|
|
869
443
|
children: children
|
|
870
444
|
}));
|
|
871
445
|
};
|
|
872
446
|
var TableDataCell = function TableDataCell(_ref6) {
|
|
873
447
|
var children = _ref6.children,
|
|
874
448
|
props = _objectWithoutProperties(_ref6, _excluded6);
|
|
875
|
-
return
|
|
449
|
+
return jsxRuntime.jsx("td", _objectSpread2(_objectSpread2({}, props), {}, {
|
|
876
450
|
children: children
|
|
877
451
|
}));
|
|
878
452
|
};
|
|
879
453
|
var Header = function Header(_ref7) {
|
|
880
454
|
var children = _ref7.children,
|
|
881
455
|
props = _objectWithoutProperties(_ref7, _excluded7);
|
|
882
|
-
return
|
|
456
|
+
return jsxRuntime.jsx("header", _objectSpread2(_objectSpread2({}, props), {}, {
|
|
883
457
|
children: children
|
|
884
458
|
}));
|
|
885
459
|
};
|
|
886
460
|
var Navigation = function Navigation(_ref8) {
|
|
887
461
|
var children = _ref8.children,
|
|
888
462
|
props = _objectWithoutProperties(_ref8, _excluded8);
|
|
889
|
-
return
|
|
463
|
+
return jsxRuntime.jsx("nav", _objectSpread2(_objectSpread2({}, props), {}, {
|
|
890
464
|
children: children
|
|
891
465
|
}));
|
|
892
466
|
};
|
|
893
467
|
var Section = function Section(_ref9) {
|
|
894
468
|
var children = _ref9.children,
|
|
895
469
|
props = _objectWithoutProperties(_ref9, _excluded9);
|
|
896
|
-
return
|
|
470
|
+
return jsxRuntime.jsx("section", _objectSpread2(_objectSpread2({}, props), {}, {
|
|
897
471
|
children: children
|
|
898
472
|
}));
|
|
899
473
|
};
|
|
900
474
|
var Main = function Main(_ref0) {
|
|
901
475
|
var children = _ref0.children,
|
|
902
476
|
props = _objectWithoutProperties(_ref0, _excluded0);
|
|
903
|
-
return
|
|
477
|
+
return jsxRuntime.jsx("main", _objectSpread2(_objectSpread2({}, props), {}, {
|
|
904
478
|
children: children
|
|
905
479
|
}));
|
|
906
480
|
};
|
|
907
481
|
var Footer = function Footer(_ref1) {
|
|
908
482
|
var children = _ref1.children,
|
|
909
483
|
props = _objectWithoutProperties(_ref1, _excluded1);
|
|
910
|
-
return
|
|
484
|
+
return jsxRuntime.jsx("footer", _objectSpread2(_objectSpread2({}, props), {}, {
|
|
911
485
|
children: children
|
|
912
486
|
}));
|
|
913
487
|
};
|
|
@@ -919,7 +493,7 @@ var Container = function Container(_ref) {
|
|
|
919
493
|
_ref$className = _ref.className,
|
|
920
494
|
className = _ref$className === void 0 ? "" : _ref$className,
|
|
921
495
|
props = _objectWithoutProperties(_ref, _excluded);
|
|
922
|
-
return
|
|
496
|
+
return jsxRuntime.jsx("div", _objectSpread2(_objectSpread2({
|
|
923
497
|
className: "max-w-7xl mx-auto px-4 " + className
|
|
924
498
|
}, props), {}, {
|
|
925
499
|
children: children
|
|
@@ -930,7 +504,7 @@ var Card = function Card(_ref2) {
|
|
|
930
504
|
_ref2$className = _ref2.className,
|
|
931
505
|
className = _ref2$className === void 0 ? "" : _ref2$className,
|
|
932
506
|
props = _objectWithoutProperties(_ref2, _excluded2);
|
|
933
|
-
return
|
|
507
|
+
return jsxRuntime.jsx("div", _objectSpread2(_objectSpread2({
|
|
934
508
|
className: "bg-white rounded-xl shadow-md p-4 " + className
|
|
935
509
|
}, props), {}, {
|
|
936
510
|
children: children
|