banhaten-ui 1.0.1 → 1.0.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.
package/dist/index.js CHANGED
@@ -1,9 +1,4216 @@
1
1
  'use strict';
2
2
 
3
- // index.js
4
- var hello = function () {
5
- console.log('Hello from my-package!');
3
+ var React = require('react');
4
+
5
+ function _interopNamespaceDefault(e) {
6
+ var n = Object.create(null);
7
+ if (e) {
8
+ Object.keys(e).forEach(function (k) {
9
+ if (k !== 'default') {
10
+ var d = Object.getOwnPropertyDescriptor(e, k);
11
+ Object.defineProperty(n, k, d.get ? d : {
12
+ enumerable: true,
13
+ get: function () { return e[k]; }
14
+ });
15
+ }
16
+ });
17
+ }
18
+ n.default = e;
19
+ return Object.freeze(n);
20
+ }
21
+
22
+ var React__namespace = /*#__PURE__*/_interopNamespaceDefault(React);
23
+
24
+ /******************************************************************************
25
+ Copyright (c) Microsoft Corporation.
26
+
27
+ Permission to use, copy, modify, and/or distribute this software for any
28
+ purpose with or without fee is hereby granted.
29
+
30
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
31
+ REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
32
+ AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
33
+ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
34
+ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
35
+ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
36
+ PERFORMANCE OF THIS SOFTWARE.
37
+ ***************************************************************************** */
38
+ /* global Reflect, Promise, SuppressedError, Symbol, Iterator */
39
+
40
+
41
+ var __assign = function() {
42
+ __assign = Object.assign || function __assign(t) {
43
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
44
+ s = arguments[i];
45
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
46
+ }
47
+ return t;
48
+ };
49
+ return __assign.apply(this, arguments);
50
+ };
51
+
52
+ function __rest(s, e) {
53
+ var t = {};
54
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
55
+ t[p] = s[p];
56
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
57
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
58
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
59
+ t[p[i]] = s[p[i]];
60
+ }
61
+ return t;
62
+ }
63
+
64
+ typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) {
65
+ var e = new Error(message);
66
+ return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
67
+ };
68
+
69
+ var jsxRuntime = {exports: {}};
70
+
71
+ var reactJsxRuntime_production_min = {};
72
+
73
+ /**
74
+ * @license React
75
+ * react-jsx-runtime.production.min.js
76
+ *
77
+ * Copyright (c) Facebook, Inc. and its affiliates.
78
+ *
79
+ * This source code is licensed under the MIT license found in the
80
+ * LICENSE file in the root directory of this source tree.
81
+ */
82
+
83
+ var hasRequiredReactJsxRuntime_production_min;
84
+
85
+ function requireReactJsxRuntime_production_min () {
86
+ if (hasRequiredReactJsxRuntime_production_min) return reactJsxRuntime_production_min;
87
+ hasRequiredReactJsxRuntime_production_min = 1;
88
+ var f=React,k=Symbol.for("react.element"),l=Symbol.for("react.fragment"),m=Object.prototype.hasOwnProperty,n=f.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,p={key:!0,ref:!0,__self:!0,__source:!0};
89
+ function q(c,a,g){var b,d={},e=null,h=null;void 0!==g&&(e=""+g);void 0!==a.key&&(e=""+a.key);void 0!==a.ref&&(h=a.ref);for(b in a)m.call(a,b)&&!p.hasOwnProperty(b)&&(d[b]=a[b]);if(c&&c.defaultProps)for(b in a=c.defaultProps,a)void 0===d[b]&&(d[b]=a[b]);return {$$typeof:k,type:c,key:e,ref:h,props:d,_owner:n.current}}reactJsxRuntime_production_min.Fragment=l;reactJsxRuntime_production_min.jsx=q;reactJsxRuntime_production_min.jsxs=q;
90
+ return reactJsxRuntime_production_min;
91
+ }
92
+
93
+ var reactJsxRuntime_development = {};
94
+
95
+ /**
96
+ * @license React
97
+ * react-jsx-runtime.development.js
98
+ *
99
+ * Copyright (c) Facebook, Inc. and its affiliates.
100
+ *
101
+ * This source code is licensed under the MIT license found in the
102
+ * LICENSE file in the root directory of this source tree.
103
+ */
104
+
105
+ var hasRequiredReactJsxRuntime_development;
106
+
107
+ function requireReactJsxRuntime_development () {
108
+ if (hasRequiredReactJsxRuntime_development) return reactJsxRuntime_development;
109
+ hasRequiredReactJsxRuntime_development = 1;
110
+
111
+ if (process.env.NODE_ENV !== "production") {
112
+ (function() {
113
+
114
+ var React$1 = React;
115
+
116
+ // ATTENTION
117
+ // When adding new symbols to this file,
118
+ // Please consider also adding to 'react-devtools-shared/src/backend/ReactSymbols'
119
+ // The Symbol used to tag the ReactElement-like types.
120
+ var REACT_ELEMENT_TYPE = Symbol.for('react.element');
121
+ var REACT_PORTAL_TYPE = Symbol.for('react.portal');
122
+ var REACT_FRAGMENT_TYPE = Symbol.for('react.fragment');
123
+ var REACT_STRICT_MODE_TYPE = Symbol.for('react.strict_mode');
124
+ var REACT_PROFILER_TYPE = Symbol.for('react.profiler');
125
+ var REACT_PROVIDER_TYPE = Symbol.for('react.provider');
126
+ var REACT_CONTEXT_TYPE = Symbol.for('react.context');
127
+ var REACT_FORWARD_REF_TYPE = Symbol.for('react.forward_ref');
128
+ var REACT_SUSPENSE_TYPE = Symbol.for('react.suspense');
129
+ var REACT_SUSPENSE_LIST_TYPE = Symbol.for('react.suspense_list');
130
+ var REACT_MEMO_TYPE = Symbol.for('react.memo');
131
+ var REACT_LAZY_TYPE = Symbol.for('react.lazy');
132
+ var REACT_OFFSCREEN_TYPE = Symbol.for('react.offscreen');
133
+ var MAYBE_ITERATOR_SYMBOL = Symbol.iterator;
134
+ var FAUX_ITERATOR_SYMBOL = '@@iterator';
135
+ function getIteratorFn(maybeIterable) {
136
+ if (maybeIterable === null || typeof maybeIterable !== 'object') {
137
+ return null;
138
+ }
139
+
140
+ var maybeIterator = MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL];
141
+
142
+ if (typeof maybeIterator === 'function') {
143
+ return maybeIterator;
144
+ }
145
+
146
+ return null;
147
+ }
148
+
149
+ var ReactSharedInternals = React$1.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
150
+
151
+ function error(format) {
152
+ {
153
+ {
154
+ for (var _len2 = arguments.length, args = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
155
+ args[_key2 - 1] = arguments[_key2];
156
+ }
157
+
158
+ printWarning('error', format, args);
159
+ }
160
+ }
161
+ }
162
+
163
+ function printWarning(level, format, args) {
164
+ // When changing this logic, you might want to also
165
+ // update consoleWithStackDev.www.js as well.
166
+ {
167
+ var ReactDebugCurrentFrame = ReactSharedInternals.ReactDebugCurrentFrame;
168
+ var stack = ReactDebugCurrentFrame.getStackAddendum();
169
+
170
+ if (stack !== '') {
171
+ format += '%s';
172
+ args = args.concat([stack]);
173
+ } // eslint-disable-next-line react-internal/safe-string-coercion
174
+
175
+
176
+ var argsWithFormat = args.map(function (item) {
177
+ return String(item);
178
+ }); // Careful: RN currently depends on this prefix
179
+
180
+ argsWithFormat.unshift('Warning: ' + format); // We intentionally don't use spread (or .apply) directly because it
181
+ // breaks IE9: https://github.com/facebook/react/issues/13610
182
+ // eslint-disable-next-line react-internal/no-production-logging
183
+
184
+ Function.prototype.apply.call(console[level], console, argsWithFormat);
185
+ }
186
+ }
187
+
188
+ // -----------------------------------------------------------------------------
189
+
190
+ var enableScopeAPI = false; // Experimental Create Event Handle API.
191
+ var enableCacheElement = false;
192
+ var enableTransitionTracing = false; // No known bugs, but needs performance testing
193
+
194
+ var enableLegacyHidden = false; // Enables unstable_avoidThisFallback feature in Fiber
195
+ // stuff. Intended to enable React core members to more easily debug scheduling
196
+ // issues in DEV builds.
197
+
198
+ var enableDebugTracing = false; // Track which Fiber(s) schedule render work.
199
+
200
+ var REACT_MODULE_REFERENCE;
201
+
202
+ {
203
+ REACT_MODULE_REFERENCE = Symbol.for('react.module.reference');
204
+ }
205
+
206
+ function isValidElementType(type) {
207
+ if (typeof type === 'string' || typeof type === 'function') {
208
+ return true;
209
+ } // Note: typeof might be other than 'symbol' or 'number' (e.g. if it's a polyfill).
210
+
211
+
212
+ if (type === REACT_FRAGMENT_TYPE || type === REACT_PROFILER_TYPE || enableDebugTracing || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || enableLegacyHidden || type === REACT_OFFSCREEN_TYPE || enableScopeAPI || enableCacheElement || enableTransitionTracing ) {
213
+ return true;
214
+ }
215
+
216
+ if (typeof type === 'object' && type !== null) {
217
+ if (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || // This needs to include all possible module reference object
218
+ // types supported by any Flight configuration anywhere since
219
+ // we don't know which Flight build this will end up being used
220
+ // with.
221
+ type.$$typeof === REACT_MODULE_REFERENCE || type.getModuleId !== undefined) {
222
+ return true;
223
+ }
224
+ }
225
+
226
+ return false;
227
+ }
228
+
229
+ function getWrappedName(outerType, innerType, wrapperName) {
230
+ var displayName = outerType.displayName;
231
+
232
+ if (displayName) {
233
+ return displayName;
234
+ }
235
+
236
+ var functionName = innerType.displayName || innerType.name || '';
237
+ return functionName !== '' ? wrapperName + "(" + functionName + ")" : wrapperName;
238
+ } // Keep in sync with react-reconciler/getComponentNameFromFiber
239
+
240
+
241
+ function getContextName(type) {
242
+ return type.displayName || 'Context';
243
+ } // Note that the reconciler package should generally prefer to use getComponentNameFromFiber() instead.
244
+
245
+
246
+ function getComponentNameFromType(type) {
247
+ if (type == null) {
248
+ // Host root, text node or just invalid type.
249
+ return null;
250
+ }
251
+
252
+ {
253
+ if (typeof type.tag === 'number') {
254
+ error('Received an unexpected object in getComponentNameFromType(). ' + 'This is likely a bug in React. Please file an issue.');
255
+ }
256
+ }
257
+
258
+ if (typeof type === 'function') {
259
+ return type.displayName || type.name || null;
260
+ }
261
+
262
+ if (typeof type === 'string') {
263
+ return type;
264
+ }
265
+
266
+ switch (type) {
267
+ case REACT_FRAGMENT_TYPE:
268
+ return 'Fragment';
269
+
270
+ case REACT_PORTAL_TYPE:
271
+ return 'Portal';
272
+
273
+ case REACT_PROFILER_TYPE:
274
+ return 'Profiler';
275
+
276
+ case REACT_STRICT_MODE_TYPE:
277
+ return 'StrictMode';
278
+
279
+ case REACT_SUSPENSE_TYPE:
280
+ return 'Suspense';
281
+
282
+ case REACT_SUSPENSE_LIST_TYPE:
283
+ return 'SuspenseList';
284
+
285
+ }
286
+
287
+ if (typeof type === 'object') {
288
+ switch (type.$$typeof) {
289
+ case REACT_CONTEXT_TYPE:
290
+ var context = type;
291
+ return getContextName(context) + '.Consumer';
292
+
293
+ case REACT_PROVIDER_TYPE:
294
+ var provider = type;
295
+ return getContextName(provider._context) + '.Provider';
296
+
297
+ case REACT_FORWARD_REF_TYPE:
298
+ return getWrappedName(type, type.render, 'ForwardRef');
299
+
300
+ case REACT_MEMO_TYPE:
301
+ var outerName = type.displayName || null;
302
+
303
+ if (outerName !== null) {
304
+ return outerName;
305
+ }
306
+
307
+ return getComponentNameFromType(type.type) || 'Memo';
308
+
309
+ case REACT_LAZY_TYPE:
310
+ {
311
+ var lazyComponent = type;
312
+ var payload = lazyComponent._payload;
313
+ var init = lazyComponent._init;
314
+
315
+ try {
316
+ return getComponentNameFromType(init(payload));
317
+ } catch (x) {
318
+ return null;
319
+ }
320
+ }
321
+
322
+ // eslint-disable-next-line no-fallthrough
323
+ }
324
+ }
325
+
326
+ return null;
327
+ }
328
+
329
+ var assign = Object.assign;
330
+
331
+ // Helpers to patch console.logs to avoid logging during side-effect free
332
+ // replaying on render function. This currently only patches the object
333
+ // lazily which won't cover if the log function was extracted eagerly.
334
+ // We could also eagerly patch the method.
335
+ var disabledDepth = 0;
336
+ var prevLog;
337
+ var prevInfo;
338
+ var prevWarn;
339
+ var prevError;
340
+ var prevGroup;
341
+ var prevGroupCollapsed;
342
+ var prevGroupEnd;
343
+
344
+ function disabledLog() {}
345
+
346
+ disabledLog.__reactDisabledLog = true;
347
+ function disableLogs() {
348
+ {
349
+ if (disabledDepth === 0) {
350
+ /* eslint-disable react-internal/no-production-logging */
351
+ prevLog = console.log;
352
+ prevInfo = console.info;
353
+ prevWarn = console.warn;
354
+ prevError = console.error;
355
+ prevGroup = console.group;
356
+ prevGroupCollapsed = console.groupCollapsed;
357
+ prevGroupEnd = console.groupEnd; // https://github.com/facebook/react/issues/19099
358
+
359
+ var props = {
360
+ configurable: true,
361
+ enumerable: true,
362
+ value: disabledLog,
363
+ writable: true
364
+ }; // $FlowFixMe Flow thinks console is immutable.
365
+
366
+ Object.defineProperties(console, {
367
+ info: props,
368
+ log: props,
369
+ warn: props,
370
+ error: props,
371
+ group: props,
372
+ groupCollapsed: props,
373
+ groupEnd: props
374
+ });
375
+ /* eslint-enable react-internal/no-production-logging */
376
+ }
377
+
378
+ disabledDepth++;
379
+ }
380
+ }
381
+ function reenableLogs() {
382
+ {
383
+ disabledDepth--;
384
+
385
+ if (disabledDepth === 0) {
386
+ /* eslint-disable react-internal/no-production-logging */
387
+ var props = {
388
+ configurable: true,
389
+ enumerable: true,
390
+ writable: true
391
+ }; // $FlowFixMe Flow thinks console is immutable.
392
+
393
+ Object.defineProperties(console, {
394
+ log: assign({}, props, {
395
+ value: prevLog
396
+ }),
397
+ info: assign({}, props, {
398
+ value: prevInfo
399
+ }),
400
+ warn: assign({}, props, {
401
+ value: prevWarn
402
+ }),
403
+ error: assign({}, props, {
404
+ value: prevError
405
+ }),
406
+ group: assign({}, props, {
407
+ value: prevGroup
408
+ }),
409
+ groupCollapsed: assign({}, props, {
410
+ value: prevGroupCollapsed
411
+ }),
412
+ groupEnd: assign({}, props, {
413
+ value: prevGroupEnd
414
+ })
415
+ });
416
+ /* eslint-enable react-internal/no-production-logging */
417
+ }
418
+
419
+ if (disabledDepth < 0) {
420
+ error('disabledDepth fell below zero. ' + 'This is a bug in React. Please file an issue.');
421
+ }
422
+ }
423
+ }
424
+
425
+ var ReactCurrentDispatcher = ReactSharedInternals.ReactCurrentDispatcher;
426
+ var prefix;
427
+ function describeBuiltInComponentFrame(name, source, ownerFn) {
428
+ {
429
+ if (prefix === undefined) {
430
+ // Extract the VM specific prefix used by each line.
431
+ try {
432
+ throw Error();
433
+ } catch (x) {
434
+ var match = x.stack.trim().match(/\n( *(at )?)/);
435
+ prefix = match && match[1] || '';
436
+ }
437
+ } // We use the prefix to ensure our stacks line up with native stack frames.
438
+
439
+
440
+ return '\n' + prefix + name;
441
+ }
442
+ }
443
+ var reentry = false;
444
+ var componentFrameCache;
445
+
446
+ {
447
+ var PossiblyWeakMap = typeof WeakMap === 'function' ? WeakMap : Map;
448
+ componentFrameCache = new PossiblyWeakMap();
449
+ }
450
+
451
+ function describeNativeComponentFrame(fn, construct) {
452
+ // If something asked for a stack inside a fake render, it should get ignored.
453
+ if ( !fn || reentry) {
454
+ return '';
455
+ }
456
+
457
+ {
458
+ var frame = componentFrameCache.get(fn);
459
+
460
+ if (frame !== undefined) {
461
+ return frame;
462
+ }
463
+ }
464
+
465
+ var control;
466
+ reentry = true;
467
+ var previousPrepareStackTrace = Error.prepareStackTrace; // $FlowFixMe It does accept undefined.
468
+
469
+ Error.prepareStackTrace = undefined;
470
+ var previousDispatcher;
471
+
472
+ {
473
+ previousDispatcher = ReactCurrentDispatcher.current; // Set the dispatcher in DEV because this might be call in the render function
474
+ // for warnings.
475
+
476
+ ReactCurrentDispatcher.current = null;
477
+ disableLogs();
478
+ }
479
+
480
+ try {
481
+ // This should throw.
482
+ if (construct) {
483
+ // Something should be setting the props in the constructor.
484
+ var Fake = function () {
485
+ throw Error();
486
+ }; // $FlowFixMe
487
+
488
+
489
+ Object.defineProperty(Fake.prototype, 'props', {
490
+ set: function () {
491
+ // We use a throwing setter instead of frozen or non-writable props
492
+ // because that won't throw in a non-strict mode function.
493
+ throw Error();
494
+ }
495
+ });
496
+
497
+ if (typeof Reflect === 'object' && Reflect.construct) {
498
+ // We construct a different control for this case to include any extra
499
+ // frames added by the construct call.
500
+ try {
501
+ Reflect.construct(Fake, []);
502
+ } catch (x) {
503
+ control = x;
504
+ }
505
+
506
+ Reflect.construct(fn, [], Fake);
507
+ } else {
508
+ try {
509
+ Fake.call();
510
+ } catch (x) {
511
+ control = x;
512
+ }
513
+
514
+ fn.call(Fake.prototype);
515
+ }
516
+ } else {
517
+ try {
518
+ throw Error();
519
+ } catch (x) {
520
+ control = x;
521
+ }
522
+
523
+ fn();
524
+ }
525
+ } catch (sample) {
526
+ // This is inlined manually because closure doesn't do it for us.
527
+ if (sample && control && typeof sample.stack === 'string') {
528
+ // This extracts the first frame from the sample that isn't also in the control.
529
+ // Skipping one frame that we assume is the frame that calls the two.
530
+ var sampleLines = sample.stack.split('\n');
531
+ var controlLines = control.stack.split('\n');
532
+ var s = sampleLines.length - 1;
533
+ var c = controlLines.length - 1;
534
+
535
+ while (s >= 1 && c >= 0 && sampleLines[s] !== controlLines[c]) {
536
+ // We expect at least one stack frame to be shared.
537
+ // Typically this will be the root most one. However, stack frames may be
538
+ // cut off due to maximum stack limits. In this case, one maybe cut off
539
+ // earlier than the other. We assume that the sample is longer or the same
540
+ // and there for cut off earlier. So we should find the root most frame in
541
+ // the sample somewhere in the control.
542
+ c--;
543
+ }
544
+
545
+ for (; s >= 1 && c >= 0; s--, c--) {
546
+ // Next we find the first one that isn't the same which should be the
547
+ // frame that called our sample function and the control.
548
+ if (sampleLines[s] !== controlLines[c]) {
549
+ // In V8, the first line is describing the message but other VMs don't.
550
+ // If we're about to return the first line, and the control is also on the same
551
+ // line, that's a pretty good indicator that our sample threw at same line as
552
+ // the control. I.e. before we entered the sample frame. So we ignore this result.
553
+ // This can happen if you passed a class to function component, or non-function.
554
+ if (s !== 1 || c !== 1) {
555
+ do {
556
+ s--;
557
+ c--; // We may still have similar intermediate frames from the construct call.
558
+ // The next one that isn't the same should be our match though.
559
+
560
+ if (c < 0 || sampleLines[s] !== controlLines[c]) {
561
+ // V8 adds a "new" prefix for native classes. Let's remove it to make it prettier.
562
+ var _frame = '\n' + sampleLines[s].replace(' at new ', ' at '); // If our component frame is labeled "<anonymous>"
563
+ // but we have a user-provided "displayName"
564
+ // splice it in to make the stack more readable.
565
+
566
+
567
+ if (fn.displayName && _frame.includes('<anonymous>')) {
568
+ _frame = _frame.replace('<anonymous>', fn.displayName);
569
+ }
570
+
571
+ {
572
+ if (typeof fn === 'function') {
573
+ componentFrameCache.set(fn, _frame);
574
+ }
575
+ } // Return the line we found.
576
+
577
+
578
+ return _frame;
579
+ }
580
+ } while (s >= 1 && c >= 0);
581
+ }
582
+
583
+ break;
584
+ }
585
+ }
586
+ }
587
+ } finally {
588
+ reentry = false;
589
+
590
+ {
591
+ ReactCurrentDispatcher.current = previousDispatcher;
592
+ reenableLogs();
593
+ }
594
+
595
+ Error.prepareStackTrace = previousPrepareStackTrace;
596
+ } // Fallback to just using the name if we couldn't make it throw.
597
+
598
+
599
+ var name = fn ? fn.displayName || fn.name : '';
600
+ var syntheticFrame = name ? describeBuiltInComponentFrame(name) : '';
601
+
602
+ {
603
+ if (typeof fn === 'function') {
604
+ componentFrameCache.set(fn, syntheticFrame);
605
+ }
606
+ }
607
+
608
+ return syntheticFrame;
609
+ }
610
+ function describeFunctionComponentFrame(fn, source, ownerFn) {
611
+ {
612
+ return describeNativeComponentFrame(fn, false);
613
+ }
614
+ }
615
+
616
+ function shouldConstruct(Component) {
617
+ var prototype = Component.prototype;
618
+ return !!(prototype && prototype.isReactComponent);
619
+ }
620
+
621
+ function describeUnknownElementTypeFrameInDEV(type, source, ownerFn) {
622
+
623
+ if (type == null) {
624
+ return '';
625
+ }
626
+
627
+ if (typeof type === 'function') {
628
+ {
629
+ return describeNativeComponentFrame(type, shouldConstruct(type));
630
+ }
631
+ }
632
+
633
+ if (typeof type === 'string') {
634
+ return describeBuiltInComponentFrame(type);
635
+ }
636
+
637
+ switch (type) {
638
+ case REACT_SUSPENSE_TYPE:
639
+ return describeBuiltInComponentFrame('Suspense');
640
+
641
+ case REACT_SUSPENSE_LIST_TYPE:
642
+ return describeBuiltInComponentFrame('SuspenseList');
643
+ }
644
+
645
+ if (typeof type === 'object') {
646
+ switch (type.$$typeof) {
647
+ case REACT_FORWARD_REF_TYPE:
648
+ return describeFunctionComponentFrame(type.render);
649
+
650
+ case REACT_MEMO_TYPE:
651
+ // Memo may contain any component type so we recursively resolve it.
652
+ return describeUnknownElementTypeFrameInDEV(type.type, source, ownerFn);
653
+
654
+ case REACT_LAZY_TYPE:
655
+ {
656
+ var lazyComponent = type;
657
+ var payload = lazyComponent._payload;
658
+ var init = lazyComponent._init;
659
+
660
+ try {
661
+ // Lazy may contain any component type so we recursively resolve it.
662
+ return describeUnknownElementTypeFrameInDEV(init(payload), source, ownerFn);
663
+ } catch (x) {}
664
+ }
665
+ }
666
+ }
667
+
668
+ return '';
669
+ }
670
+
671
+ var hasOwnProperty = Object.prototype.hasOwnProperty;
672
+
673
+ var loggedTypeFailures = {};
674
+ var ReactDebugCurrentFrame = ReactSharedInternals.ReactDebugCurrentFrame;
675
+
676
+ function setCurrentlyValidatingElement(element) {
677
+ {
678
+ if (element) {
679
+ var owner = element._owner;
680
+ var stack = describeUnknownElementTypeFrameInDEV(element.type, element._source, owner ? owner.type : null);
681
+ ReactDebugCurrentFrame.setExtraStackFrame(stack);
682
+ } else {
683
+ ReactDebugCurrentFrame.setExtraStackFrame(null);
684
+ }
685
+ }
686
+ }
687
+
688
+ function checkPropTypes(typeSpecs, values, location, componentName, element) {
689
+ {
690
+ // $FlowFixMe This is okay but Flow doesn't know it.
691
+ var has = Function.call.bind(hasOwnProperty);
692
+
693
+ for (var typeSpecName in typeSpecs) {
694
+ if (has(typeSpecs, typeSpecName)) {
695
+ var error$1 = void 0; // Prop type validation may throw. In case they do, we don't want to
696
+ // fail the render phase where it didn't fail before. So we log it.
697
+ // After these have been cleaned up, we'll let them throw.
698
+
699
+ try {
700
+ // This is intentionally an invariant that gets caught. It's the same
701
+ // behavior as without this statement except with a better message.
702
+ if (typeof typeSpecs[typeSpecName] !== 'function') {
703
+ // eslint-disable-next-line react-internal/prod-error-codes
704
+ var err = Error((componentName || 'React class') + ': ' + location + ' type `' + typeSpecName + '` is invalid; ' + 'it must be a function, usually from the `prop-types` package, but received `' + typeof typeSpecs[typeSpecName] + '`.' + 'This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.');
705
+ err.name = 'Invariant Violation';
706
+ throw err;
707
+ }
708
+
709
+ error$1 = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED');
710
+ } catch (ex) {
711
+ error$1 = ex;
712
+ }
713
+
714
+ if (error$1 && !(error$1 instanceof Error)) {
715
+ setCurrentlyValidatingElement(element);
716
+
717
+ error('%s: type specification of %s' + ' `%s` is invalid; the type checker ' + 'function must return `null` or an `Error` but returned a %s. ' + 'You may have forgotten to pass an argument to the type checker ' + 'creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and ' + 'shape all require an argument).', componentName || 'React class', location, typeSpecName, typeof error$1);
718
+
719
+ setCurrentlyValidatingElement(null);
720
+ }
721
+
722
+ if (error$1 instanceof Error && !(error$1.message in loggedTypeFailures)) {
723
+ // Only monitor this failure once because there tends to be a lot of the
724
+ // same error.
725
+ loggedTypeFailures[error$1.message] = true;
726
+ setCurrentlyValidatingElement(element);
727
+
728
+ error('Failed %s type: %s', location, error$1.message);
729
+
730
+ setCurrentlyValidatingElement(null);
731
+ }
732
+ }
733
+ }
734
+ }
735
+ }
736
+
737
+ var isArrayImpl = Array.isArray; // eslint-disable-next-line no-redeclare
738
+
739
+ function isArray(a) {
740
+ return isArrayImpl(a);
741
+ }
742
+
743
+ /*
744
+ * The `'' + value` pattern (used in in perf-sensitive code) throws for Symbol
745
+ * and Temporal.* types. See https://github.com/facebook/react/pull/22064.
746
+ *
747
+ * The functions in this module will throw an easier-to-understand,
748
+ * easier-to-debug exception with a clear errors message message explaining the
749
+ * problem. (Instead of a confusing exception thrown inside the implementation
750
+ * of the `value` object).
751
+ */
752
+ // $FlowFixMe only called in DEV, so void return is not possible.
753
+ function typeName(value) {
754
+ {
755
+ // toStringTag is needed for namespaced types like Temporal.Instant
756
+ var hasToStringTag = typeof Symbol === 'function' && Symbol.toStringTag;
757
+ var type = hasToStringTag && value[Symbol.toStringTag] || value.constructor.name || 'Object';
758
+ return type;
759
+ }
760
+ } // $FlowFixMe only called in DEV, so void return is not possible.
761
+
762
+
763
+ function willCoercionThrow(value) {
764
+ {
765
+ try {
766
+ testStringCoercion(value);
767
+ return false;
768
+ } catch (e) {
769
+ return true;
770
+ }
771
+ }
772
+ }
773
+
774
+ function testStringCoercion(value) {
775
+ // If you ended up here by following an exception call stack, here's what's
776
+ // happened: you supplied an object or symbol value to React (as a prop, key,
777
+ // DOM attribute, CSS property, string ref, etc.) and when React tried to
778
+ // coerce it to a string using `'' + value`, an exception was thrown.
779
+ //
780
+ // The most common types that will cause this exception are `Symbol` instances
781
+ // and Temporal objects like `Temporal.Instant`. But any object that has a
782
+ // `valueOf` or `[Symbol.toPrimitive]` method that throws will also cause this
783
+ // exception. (Library authors do this to prevent users from using built-in
784
+ // numeric operators like `+` or comparison operators like `>=` because custom
785
+ // methods are needed to perform accurate arithmetic or comparison.)
786
+ //
787
+ // To fix the problem, coerce this object or symbol value to a string before
788
+ // passing it to React. The most reliable way is usually `String(value)`.
789
+ //
790
+ // To find which value is throwing, check the browser or debugger console.
791
+ // Before this exception was thrown, there should be `console.error` output
792
+ // that shows the type (Symbol, Temporal.PlainDate, etc.) that caused the
793
+ // problem and how that type was used: key, atrribute, input value prop, etc.
794
+ // In most cases, this console output also shows the component and its
795
+ // ancestor components where the exception happened.
796
+ //
797
+ // eslint-disable-next-line react-internal/safe-string-coercion
798
+ return '' + value;
799
+ }
800
+ function checkKeyStringCoercion(value) {
801
+ {
802
+ if (willCoercionThrow(value)) {
803
+ error('The provided key is an unsupported type %s.' + ' This value must be coerced to a string before before using it here.', typeName(value));
804
+
805
+ return testStringCoercion(value); // throw (to help callers find troubleshooting comments)
806
+ }
807
+ }
808
+ }
809
+
810
+ var ReactCurrentOwner = ReactSharedInternals.ReactCurrentOwner;
811
+ var RESERVED_PROPS = {
812
+ key: true,
813
+ ref: true,
814
+ __self: true,
815
+ __source: true
816
+ };
817
+ var specialPropKeyWarningShown;
818
+ var specialPropRefWarningShown;
819
+ var didWarnAboutStringRefs;
820
+
821
+ {
822
+ didWarnAboutStringRefs = {};
823
+ }
824
+
825
+ function hasValidRef(config) {
826
+ {
827
+ if (hasOwnProperty.call(config, 'ref')) {
828
+ var getter = Object.getOwnPropertyDescriptor(config, 'ref').get;
829
+
830
+ if (getter && getter.isReactWarning) {
831
+ return false;
832
+ }
833
+ }
834
+ }
835
+
836
+ return config.ref !== undefined;
837
+ }
838
+
839
+ function hasValidKey(config) {
840
+ {
841
+ if (hasOwnProperty.call(config, 'key')) {
842
+ var getter = Object.getOwnPropertyDescriptor(config, 'key').get;
843
+
844
+ if (getter && getter.isReactWarning) {
845
+ return false;
846
+ }
847
+ }
848
+ }
849
+
850
+ return config.key !== undefined;
851
+ }
852
+
853
+ function warnIfStringRefCannotBeAutoConverted(config, self) {
854
+ {
855
+ if (typeof config.ref === 'string' && ReactCurrentOwner.current && self && ReactCurrentOwner.current.stateNode !== self) {
856
+ var componentName = getComponentNameFromType(ReactCurrentOwner.current.type);
857
+
858
+ if (!didWarnAboutStringRefs[componentName]) {
859
+ error('Component "%s" contains the string ref "%s". ' + 'Support for string refs will be removed in a future major release. ' + 'This case cannot be automatically converted to an arrow function. ' + 'We ask you to manually fix this case by using useRef() or createRef() instead. ' + 'Learn more about using refs safely here: ' + 'https://reactjs.org/link/strict-mode-string-ref', getComponentNameFromType(ReactCurrentOwner.current.type), config.ref);
860
+
861
+ didWarnAboutStringRefs[componentName] = true;
862
+ }
863
+ }
864
+ }
865
+ }
866
+
867
+ function defineKeyPropWarningGetter(props, displayName) {
868
+ {
869
+ var warnAboutAccessingKey = function () {
870
+ if (!specialPropKeyWarningShown) {
871
+ specialPropKeyWarningShown = true;
872
+
873
+ error('%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://reactjs.org/link/special-props)', displayName);
874
+ }
875
+ };
876
+
877
+ warnAboutAccessingKey.isReactWarning = true;
878
+ Object.defineProperty(props, 'key', {
879
+ get: warnAboutAccessingKey,
880
+ configurable: true
881
+ });
882
+ }
883
+ }
884
+
885
+ function defineRefPropWarningGetter(props, displayName) {
886
+ {
887
+ var warnAboutAccessingRef = function () {
888
+ if (!specialPropRefWarningShown) {
889
+ specialPropRefWarningShown = true;
890
+
891
+ error('%s: `ref` 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://reactjs.org/link/special-props)', displayName);
892
+ }
893
+ };
894
+
895
+ warnAboutAccessingRef.isReactWarning = true;
896
+ Object.defineProperty(props, 'ref', {
897
+ get: warnAboutAccessingRef,
898
+ configurable: true
899
+ });
900
+ }
901
+ }
902
+ /**
903
+ * Factory method to create a new React element. This no longer adheres to
904
+ * the class pattern, so do not use new to call it. Also, instanceof check
905
+ * will not work. Instead test $$typeof field against Symbol.for('react.element') to check
906
+ * if something is a React Element.
907
+ *
908
+ * @param {*} type
909
+ * @param {*} props
910
+ * @param {*} key
911
+ * @param {string|object} ref
912
+ * @param {*} owner
913
+ * @param {*} self A *temporary* helper to detect places where `this` is
914
+ * different from the `owner` when React.createElement is called, so that we
915
+ * can warn. We want to get rid of owner and replace string `ref`s with arrow
916
+ * functions, and as long as `this` and owner are the same, there will be no
917
+ * change in behavior.
918
+ * @param {*} source An annotation object (added by a transpiler or otherwise)
919
+ * indicating filename, line number, and/or other information.
920
+ * @internal
921
+ */
922
+
923
+
924
+ var ReactElement = function (type, key, ref, self, source, owner, props) {
925
+ var element = {
926
+ // This tag allows us to uniquely identify this as a React Element
927
+ $$typeof: REACT_ELEMENT_TYPE,
928
+ // Built-in properties that belong on the element
929
+ type: type,
930
+ key: key,
931
+ ref: ref,
932
+ props: props,
933
+ // Record the component responsible for creating this element.
934
+ _owner: owner
935
+ };
936
+
937
+ {
938
+ // The validation flag is currently mutative. We put it on
939
+ // an external backing store so that we can freeze the whole object.
940
+ // This can be replaced with a WeakMap once they are implemented in
941
+ // commonly used development environments.
942
+ element._store = {}; // To make comparing ReactElements easier for testing purposes, we make
943
+ // the validation flag non-enumerable (where possible, which should
944
+ // include every environment we run tests in), so the test framework
945
+ // ignores it.
946
+
947
+ Object.defineProperty(element._store, 'validated', {
948
+ configurable: false,
949
+ enumerable: false,
950
+ writable: true,
951
+ value: false
952
+ }); // self and source are DEV only properties.
953
+
954
+ Object.defineProperty(element, '_self', {
955
+ configurable: false,
956
+ enumerable: false,
957
+ writable: false,
958
+ value: self
959
+ }); // Two elements created in two different places should be considered
960
+ // equal for testing purposes and therefore we hide it from enumeration.
961
+
962
+ Object.defineProperty(element, '_source', {
963
+ configurable: false,
964
+ enumerable: false,
965
+ writable: false,
966
+ value: source
967
+ });
968
+
969
+ if (Object.freeze) {
970
+ Object.freeze(element.props);
971
+ Object.freeze(element);
972
+ }
973
+ }
974
+
975
+ return element;
976
+ };
977
+ /**
978
+ * https://github.com/reactjs/rfcs/pull/107
979
+ * @param {*} type
980
+ * @param {object} props
981
+ * @param {string} key
982
+ */
983
+
984
+ function jsxDEV(type, config, maybeKey, source, self) {
985
+ {
986
+ var propName; // Reserved names are extracted
987
+
988
+ var props = {};
989
+ var key = null;
990
+ var ref = null; // Currently, key can be spread in as a prop. This causes a potential
991
+ // issue if key is also explicitly declared (ie. <div {...props} key="Hi" />
992
+ // or <div key="Hi" {...props} /> ). We want to deprecate key spread,
993
+ // but as an intermediary step, we will use jsxDEV for everything except
994
+ // <div {...props} key="Hi" />, because we aren't currently able to tell if
995
+ // key is explicitly declared to be undefined or not.
996
+
997
+ if (maybeKey !== undefined) {
998
+ {
999
+ checkKeyStringCoercion(maybeKey);
1000
+ }
1001
+
1002
+ key = '' + maybeKey;
1003
+ }
1004
+
1005
+ if (hasValidKey(config)) {
1006
+ {
1007
+ checkKeyStringCoercion(config.key);
1008
+ }
1009
+
1010
+ key = '' + config.key;
1011
+ }
1012
+
1013
+ if (hasValidRef(config)) {
1014
+ ref = config.ref;
1015
+ warnIfStringRefCannotBeAutoConverted(config, self);
1016
+ } // Remaining properties are added to a new props object
1017
+
1018
+
1019
+ for (propName in config) {
1020
+ if (hasOwnProperty.call(config, propName) && !RESERVED_PROPS.hasOwnProperty(propName)) {
1021
+ props[propName] = config[propName];
1022
+ }
1023
+ } // Resolve default props
1024
+
1025
+
1026
+ if (type && type.defaultProps) {
1027
+ var defaultProps = type.defaultProps;
1028
+
1029
+ for (propName in defaultProps) {
1030
+ if (props[propName] === undefined) {
1031
+ props[propName] = defaultProps[propName];
1032
+ }
1033
+ }
1034
+ }
1035
+
1036
+ if (key || ref) {
1037
+ var displayName = typeof type === 'function' ? type.displayName || type.name || 'Unknown' : type;
1038
+
1039
+ if (key) {
1040
+ defineKeyPropWarningGetter(props, displayName);
1041
+ }
1042
+
1043
+ if (ref) {
1044
+ defineRefPropWarningGetter(props, displayName);
1045
+ }
1046
+ }
1047
+
1048
+ return ReactElement(type, key, ref, self, source, ReactCurrentOwner.current, props);
1049
+ }
1050
+ }
1051
+
1052
+ var ReactCurrentOwner$1 = ReactSharedInternals.ReactCurrentOwner;
1053
+ var ReactDebugCurrentFrame$1 = ReactSharedInternals.ReactDebugCurrentFrame;
1054
+
1055
+ function setCurrentlyValidatingElement$1(element) {
1056
+ {
1057
+ if (element) {
1058
+ var owner = element._owner;
1059
+ var stack = describeUnknownElementTypeFrameInDEV(element.type, element._source, owner ? owner.type : null);
1060
+ ReactDebugCurrentFrame$1.setExtraStackFrame(stack);
1061
+ } else {
1062
+ ReactDebugCurrentFrame$1.setExtraStackFrame(null);
1063
+ }
1064
+ }
1065
+ }
1066
+
1067
+ var propTypesMisspellWarningShown;
1068
+
1069
+ {
1070
+ propTypesMisspellWarningShown = false;
1071
+ }
1072
+ /**
1073
+ * Verifies the object is a ReactElement.
1074
+ * See https://reactjs.org/docs/react-api.html#isvalidelement
1075
+ * @param {?object} object
1076
+ * @return {boolean} True if `object` is a ReactElement.
1077
+ * @final
1078
+ */
1079
+
1080
+
1081
+ function isValidElement(object) {
1082
+ {
1083
+ return typeof object === 'object' && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;
1084
+ }
1085
+ }
1086
+
1087
+ function getDeclarationErrorAddendum() {
1088
+ {
1089
+ if (ReactCurrentOwner$1.current) {
1090
+ var name = getComponentNameFromType(ReactCurrentOwner$1.current.type);
1091
+
1092
+ if (name) {
1093
+ return '\n\nCheck the render method of `' + name + '`.';
1094
+ }
1095
+ }
1096
+
1097
+ return '';
1098
+ }
1099
+ }
1100
+
1101
+ function getSourceInfoErrorAddendum(source) {
1102
+ {
1103
+
1104
+ return '';
1105
+ }
1106
+ }
1107
+ /**
1108
+ * Warn if there's no key explicitly set on dynamic arrays of children or
1109
+ * object keys are not valid. This allows us to keep track of children between
1110
+ * updates.
1111
+ */
1112
+
1113
+
1114
+ var ownerHasKeyUseWarning = {};
1115
+
1116
+ function getCurrentComponentErrorInfo(parentType) {
1117
+ {
1118
+ var info = getDeclarationErrorAddendum();
1119
+
1120
+ if (!info) {
1121
+ var parentName = typeof parentType === 'string' ? parentType : parentType.displayName || parentType.name;
1122
+
1123
+ if (parentName) {
1124
+ info = "\n\nCheck the top-level render call using <" + parentName + ">.";
1125
+ }
1126
+ }
1127
+
1128
+ return info;
1129
+ }
1130
+ }
1131
+ /**
1132
+ * Warn if the element doesn't have an explicit key assigned to it.
1133
+ * This element is in an array. The array could grow and shrink or be
1134
+ * reordered. All children that haven't already been validated are required to
1135
+ * have a "key" property assigned to it. Error statuses are cached so a warning
1136
+ * will only be shown once.
1137
+ *
1138
+ * @internal
1139
+ * @param {ReactElement} element Element that requires a key.
1140
+ * @param {*} parentType element's parent's type.
1141
+ */
1142
+
1143
+
1144
+ function validateExplicitKey(element, parentType) {
1145
+ {
1146
+ if (!element._store || element._store.validated || element.key != null) {
1147
+ return;
1148
+ }
1149
+
1150
+ element._store.validated = true;
1151
+ var currentComponentErrorInfo = getCurrentComponentErrorInfo(parentType);
1152
+
1153
+ if (ownerHasKeyUseWarning[currentComponentErrorInfo]) {
1154
+ return;
1155
+ }
1156
+
1157
+ ownerHasKeyUseWarning[currentComponentErrorInfo] = true; // Usually the current owner is the offender, but if it accepts children as a
1158
+ // property, it may be the creator of the child that's responsible for
1159
+ // assigning it a key.
1160
+
1161
+ var childOwner = '';
1162
+
1163
+ if (element && element._owner && element._owner !== ReactCurrentOwner$1.current) {
1164
+ // Give the component that originally created this child.
1165
+ childOwner = " It was passed a child from " + getComponentNameFromType(element._owner.type) + ".";
1166
+ }
1167
+
1168
+ setCurrentlyValidatingElement$1(element);
1169
+
1170
+ error('Each child in a list should have a unique "key" prop.' + '%s%s See https://reactjs.org/link/warning-keys for more information.', currentComponentErrorInfo, childOwner);
1171
+
1172
+ setCurrentlyValidatingElement$1(null);
1173
+ }
1174
+ }
1175
+ /**
1176
+ * Ensure that every element either is passed in a static location, in an
1177
+ * array with an explicit keys property defined, or in an object literal
1178
+ * with valid key property.
1179
+ *
1180
+ * @internal
1181
+ * @param {ReactNode} node Statically passed child of any type.
1182
+ * @param {*} parentType node's parent's type.
1183
+ */
1184
+
1185
+
1186
+ function validateChildKeys(node, parentType) {
1187
+ {
1188
+ if (typeof node !== 'object') {
1189
+ return;
1190
+ }
1191
+
1192
+ if (isArray(node)) {
1193
+ for (var i = 0; i < node.length; i++) {
1194
+ var child = node[i];
1195
+
1196
+ if (isValidElement(child)) {
1197
+ validateExplicitKey(child, parentType);
1198
+ }
1199
+ }
1200
+ } else if (isValidElement(node)) {
1201
+ // This element was passed in a valid location.
1202
+ if (node._store) {
1203
+ node._store.validated = true;
1204
+ }
1205
+ } else if (node) {
1206
+ var iteratorFn = getIteratorFn(node);
1207
+
1208
+ if (typeof iteratorFn === 'function') {
1209
+ // Entry iterators used to provide implicit keys,
1210
+ // but now we print a separate warning for them later.
1211
+ if (iteratorFn !== node.entries) {
1212
+ var iterator = iteratorFn.call(node);
1213
+ var step;
1214
+
1215
+ while (!(step = iterator.next()).done) {
1216
+ if (isValidElement(step.value)) {
1217
+ validateExplicitKey(step.value, parentType);
1218
+ }
1219
+ }
1220
+ }
1221
+ }
1222
+ }
1223
+ }
1224
+ }
1225
+ /**
1226
+ * Given an element, validate that its props follow the propTypes definition,
1227
+ * provided by the type.
1228
+ *
1229
+ * @param {ReactElement} element
1230
+ */
1231
+
1232
+
1233
+ function validatePropTypes(element) {
1234
+ {
1235
+ var type = element.type;
1236
+
1237
+ if (type === null || type === undefined || typeof type === 'string') {
1238
+ return;
1239
+ }
1240
+
1241
+ var propTypes;
1242
+
1243
+ if (typeof type === 'function') {
1244
+ propTypes = type.propTypes;
1245
+ } else if (typeof type === 'object' && (type.$$typeof === REACT_FORWARD_REF_TYPE || // Note: Memo only checks outer props here.
1246
+ // Inner props are checked in the reconciler.
1247
+ type.$$typeof === REACT_MEMO_TYPE)) {
1248
+ propTypes = type.propTypes;
1249
+ } else {
1250
+ return;
1251
+ }
1252
+
1253
+ if (propTypes) {
1254
+ // Intentionally inside to avoid triggering lazy initializers:
1255
+ var name = getComponentNameFromType(type);
1256
+ checkPropTypes(propTypes, element.props, 'prop', name, element);
1257
+ } else if (type.PropTypes !== undefined && !propTypesMisspellWarningShown) {
1258
+ propTypesMisspellWarningShown = true; // Intentionally inside to avoid triggering lazy initializers:
1259
+
1260
+ var _name = getComponentNameFromType(type);
1261
+
1262
+ error('Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?', _name || 'Unknown');
1263
+ }
1264
+
1265
+ if (typeof type.getDefaultProps === 'function' && !type.getDefaultProps.isReactClassApproved) {
1266
+ error('getDefaultProps is only used on classic React.createClass ' + 'definitions. Use a static property named `defaultProps` instead.');
1267
+ }
1268
+ }
1269
+ }
1270
+ /**
1271
+ * Given a fragment, validate that it can only be provided with fragment props
1272
+ * @param {ReactElement} fragment
1273
+ */
1274
+
1275
+
1276
+ function validateFragmentProps(fragment) {
1277
+ {
1278
+ var keys = Object.keys(fragment.props);
1279
+
1280
+ for (var i = 0; i < keys.length; i++) {
1281
+ var key = keys[i];
1282
+
1283
+ if (key !== 'children' && key !== 'key') {
1284
+ setCurrentlyValidatingElement$1(fragment);
1285
+
1286
+ error('Invalid prop `%s` supplied to `React.Fragment`. ' + 'React.Fragment can only have `key` and `children` props.', key);
1287
+
1288
+ setCurrentlyValidatingElement$1(null);
1289
+ break;
1290
+ }
1291
+ }
1292
+
1293
+ if (fragment.ref !== null) {
1294
+ setCurrentlyValidatingElement$1(fragment);
1295
+
1296
+ error('Invalid attribute `ref` supplied to `React.Fragment`.');
1297
+
1298
+ setCurrentlyValidatingElement$1(null);
1299
+ }
1300
+ }
1301
+ }
1302
+
1303
+ var didWarnAboutKeySpread = {};
1304
+ function jsxWithValidation(type, props, key, isStaticChildren, source, self) {
1305
+ {
1306
+ var validType = isValidElementType(type); // We warn in this case but don't throw. We expect the element creation to
1307
+ // succeed and there will likely be errors in render.
1308
+
1309
+ if (!validType) {
1310
+ var info = '';
1311
+
1312
+ if (type === undefined || typeof type === 'object' && type !== null && Object.keys(type).length === 0) {
1313
+ info += ' You likely forgot to export your component from the file ' + "it's defined in, or you might have mixed up default and named imports.";
1314
+ }
1315
+
1316
+ var sourceInfo = getSourceInfoErrorAddendum();
1317
+
1318
+ if (sourceInfo) {
1319
+ info += sourceInfo;
1320
+ } else {
1321
+ info += getDeclarationErrorAddendum();
1322
+ }
1323
+
1324
+ var typeString;
1325
+
1326
+ if (type === null) {
1327
+ typeString = 'null';
1328
+ } else if (isArray(type)) {
1329
+ typeString = 'array';
1330
+ } else if (type !== undefined && type.$$typeof === REACT_ELEMENT_TYPE) {
1331
+ typeString = "<" + (getComponentNameFromType(type.type) || 'Unknown') + " />";
1332
+ info = ' Did you accidentally export a JSX literal instead of a component?';
1333
+ } else {
1334
+ typeString = typeof type;
1335
+ }
1336
+
1337
+ error('React.jsx: type is invalid -- expected a string (for ' + 'built-in components) or a class/function (for composite ' + 'components) but got: %s.%s', typeString, info);
1338
+ }
1339
+
1340
+ var element = jsxDEV(type, props, key, source, self); // The result can be nullish if a mock or a custom function is used.
1341
+ // TODO: Drop this when these are no longer allowed as the type argument.
1342
+
1343
+ if (element == null) {
1344
+ return element;
1345
+ } // Skip key warning if the type isn't valid since our key validation logic
1346
+ // doesn't expect a non-string/function type and can throw confusing errors.
1347
+ // We don't want exception behavior to differ between dev and prod.
1348
+ // (Rendering will throw with a helpful message and as soon as the type is
1349
+ // fixed, the key warnings will appear.)
1350
+
1351
+
1352
+ if (validType) {
1353
+ var children = props.children;
1354
+
1355
+ if (children !== undefined) {
1356
+ if (isStaticChildren) {
1357
+ if (isArray(children)) {
1358
+ for (var i = 0; i < children.length; i++) {
1359
+ validateChildKeys(children[i], type);
1360
+ }
1361
+
1362
+ if (Object.freeze) {
1363
+ Object.freeze(children);
1364
+ }
1365
+ } else {
1366
+ error('React.jsx: Static children should always be an array. ' + 'You are likely explicitly calling React.jsxs or React.jsxDEV. ' + 'Use the Babel transform instead.');
1367
+ }
1368
+ } else {
1369
+ validateChildKeys(children, type);
1370
+ }
1371
+ }
1372
+ }
1373
+
1374
+ {
1375
+ if (hasOwnProperty.call(props, 'key')) {
1376
+ var componentName = getComponentNameFromType(type);
1377
+ var keys = Object.keys(props).filter(function (k) {
1378
+ return k !== 'key';
1379
+ });
1380
+ var beforeExample = keys.length > 0 ? '{key: someKey, ' + keys.join(': ..., ') + ': ...}' : '{key: someKey}';
1381
+
1382
+ if (!didWarnAboutKeySpread[componentName + beforeExample]) {
1383
+ var afterExample = keys.length > 0 ? '{' + keys.join(': ..., ') + ': ...}' : '{}';
1384
+
1385
+ error('A props object containing a "key" prop is being spread into JSX:\n' + ' let props = %s;\n' + ' <%s {...props} />\n' + 'React keys must be passed directly to JSX without using spread:\n' + ' let props = %s;\n' + ' <%s key={someKey} {...props} />', beforeExample, componentName, afterExample, componentName);
1386
+
1387
+ didWarnAboutKeySpread[componentName + beforeExample] = true;
1388
+ }
1389
+ }
1390
+ }
1391
+
1392
+ if (type === REACT_FRAGMENT_TYPE) {
1393
+ validateFragmentProps(element);
1394
+ } else {
1395
+ validatePropTypes(element);
1396
+ }
1397
+
1398
+ return element;
1399
+ }
1400
+ } // These two functions exist to still get child warnings in dev
1401
+ // even with the prod transform. This means that jsxDEV is purely
1402
+ // opt-in behavior for better messages but that we won't stop
1403
+ // giving you warnings if you use production apis.
1404
+
1405
+ function jsxWithValidationStatic(type, props, key) {
1406
+ {
1407
+ return jsxWithValidation(type, props, key, true);
1408
+ }
1409
+ }
1410
+ function jsxWithValidationDynamic(type, props, key) {
1411
+ {
1412
+ return jsxWithValidation(type, props, key, false);
1413
+ }
1414
+ }
1415
+
1416
+ var jsx = jsxWithValidationDynamic ; // we may want to special case jsxs internally to take advantage of static children.
1417
+ // for now we can ship identical prod functions
1418
+
1419
+ var jsxs = jsxWithValidationStatic ;
1420
+
1421
+ reactJsxRuntime_development.Fragment = REACT_FRAGMENT_TYPE;
1422
+ reactJsxRuntime_development.jsx = jsx;
1423
+ reactJsxRuntime_development.jsxs = jsxs;
1424
+ })();
1425
+ }
1426
+ return reactJsxRuntime_development;
1427
+ }
1428
+
1429
+ var hasRequiredJsxRuntime;
1430
+
1431
+ function requireJsxRuntime () {
1432
+ if (hasRequiredJsxRuntime) return jsxRuntime.exports;
1433
+ hasRequiredJsxRuntime = 1;
1434
+
1435
+ if (process.env.NODE_ENV === 'production') {
1436
+ jsxRuntime.exports = requireReactJsxRuntime_production_min();
1437
+ } else {
1438
+ jsxRuntime.exports = requireReactJsxRuntime_development();
1439
+ }
1440
+ return jsxRuntime.exports;
1441
+ }
1442
+
1443
+ var jsxRuntimeExports = requireJsxRuntime();
1444
+
1445
+ // packages/react/compose-refs/src/composeRefs.tsx
1446
+ function setRef(ref, value) {
1447
+ if (typeof ref === "function") {
1448
+ ref(value);
1449
+ } else if (ref !== null && ref !== void 0) {
1450
+ ref.current = value;
1451
+ }
1452
+ }
1453
+ function composeRefs(...refs) {
1454
+ return (node) => refs.forEach((ref) => setRef(ref, node));
1455
+ }
1456
+
1457
+ // packages/react/slot/src/Slot.tsx
1458
+ var Slot = React__namespace.forwardRef((props, forwardedRef) => {
1459
+ const { children, ...slotProps } = props;
1460
+ const childrenArray = React__namespace.Children.toArray(children);
1461
+ const slottable = childrenArray.find(isSlottable);
1462
+ if (slottable) {
1463
+ const newElement = slottable.props.children;
1464
+ const newChildren = childrenArray.map((child) => {
1465
+ if (child === slottable) {
1466
+ if (React__namespace.Children.count(newElement) > 1) return React__namespace.Children.only(null);
1467
+ return React__namespace.isValidElement(newElement) ? newElement.props.children : null;
1468
+ } else {
1469
+ return child;
1470
+ }
1471
+ });
1472
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(SlotClone, { ...slotProps, ref: forwardedRef, children: React__namespace.isValidElement(newElement) ? React__namespace.cloneElement(newElement, void 0, newChildren) : null });
1473
+ }
1474
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(SlotClone, { ...slotProps, ref: forwardedRef, children });
1475
+ });
1476
+ Slot.displayName = "Slot";
1477
+ var SlotClone = React__namespace.forwardRef((props, forwardedRef) => {
1478
+ const { children, ...slotProps } = props;
1479
+ if (React__namespace.isValidElement(children)) {
1480
+ const childrenRef = getElementRef(children);
1481
+ return React__namespace.cloneElement(children, {
1482
+ ...mergeProps(slotProps, children.props),
1483
+ // @ts-ignore
1484
+ ref: forwardedRef ? composeRefs(forwardedRef, childrenRef) : childrenRef
1485
+ });
1486
+ }
1487
+ return React__namespace.Children.count(children) > 1 ? React__namespace.Children.only(null) : null;
1488
+ });
1489
+ SlotClone.displayName = "SlotClone";
1490
+ var Slottable = ({ children }) => {
1491
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment, { children });
6
1492
  };
1493
+ function isSlottable(child) {
1494
+ return React__namespace.isValidElement(child) && child.type === Slottable;
1495
+ }
1496
+ function mergeProps(slotProps, childProps) {
1497
+ const overrideProps = { ...childProps };
1498
+ for (const propName in childProps) {
1499
+ const slotPropValue = slotProps[propName];
1500
+ const childPropValue = childProps[propName];
1501
+ const isHandler = /^on[A-Z]/.test(propName);
1502
+ if (isHandler) {
1503
+ if (slotPropValue && childPropValue) {
1504
+ overrideProps[propName] = (...args) => {
1505
+ childPropValue(...args);
1506
+ slotPropValue(...args);
1507
+ };
1508
+ } else if (slotPropValue) {
1509
+ overrideProps[propName] = slotPropValue;
1510
+ }
1511
+ } else if (propName === "style") {
1512
+ overrideProps[propName] = { ...slotPropValue, ...childPropValue };
1513
+ } else if (propName === "className") {
1514
+ overrideProps[propName] = [slotPropValue, childPropValue].filter(Boolean).join(" ");
1515
+ }
1516
+ }
1517
+ return { ...slotProps, ...overrideProps };
1518
+ }
1519
+ function getElementRef(element) {
1520
+ let getter = Object.getOwnPropertyDescriptor(element.props, "ref")?.get;
1521
+ let mayWarn = getter && "isReactWarning" in getter && getter.isReactWarning;
1522
+ if (mayWarn) {
1523
+ return element.ref;
1524
+ }
1525
+ getter = Object.getOwnPropertyDescriptor(element, "ref")?.get;
1526
+ mayWarn = getter && "isReactWarning" in getter && getter.isReactWarning;
1527
+ if (mayWarn) {
1528
+ return element.props.ref;
1529
+ }
1530
+ return element.props.ref || element.ref;
1531
+ }
1532
+
1533
+ function r$1(e){var t,f,n="";if("string"==typeof e||"number"==typeof e)n+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(f=r$1(e[t]))&&(n&&(n+=" "),n+=f);else for(t in e)e[t]&&(n&&(n+=" "),n+=t);return n}function clsx$1(){for(var e,t,f=0,n="";f<arguments.length;)(e=arguments[f++])&&(t=r$1(e))&&(n&&(n+=" "),n+=t);return n}
1534
+
1535
+ const falsyToString = (value)=>typeof value === "boolean" ? "".concat(value) : value === 0 ? "0" : value;
1536
+ const cx = clsx$1;
1537
+ const cva = (base, config)=>{
1538
+ return (props)=>{
1539
+ var ref;
1540
+ if ((config === null || config === void 0 ? void 0 : config.variants) == null) return cx(base, props === null || props === void 0 ? void 0 : props.class, props === null || props === void 0 ? void 0 : props.className);
1541
+ const { variants , defaultVariants } = config;
1542
+ const getVariantClassNames = Object.keys(variants).map((variant)=>{
1543
+ const variantProp = props === null || props === void 0 ? void 0 : props[variant];
1544
+ const defaultVariantProp = defaultVariants === null || defaultVariants === void 0 ? void 0 : defaultVariants[variant];
1545
+ if (variantProp === null) return null;
1546
+ const variantKey = falsyToString(variantProp) || falsyToString(defaultVariantProp);
1547
+ return variants[variant][variantKey];
1548
+ });
1549
+ const propsWithoutUndefined = props && Object.entries(props).reduce((acc, param)=>{
1550
+ let [key, value] = param;
1551
+ if (value === undefined) {
1552
+ return acc;
1553
+ }
1554
+ acc[key] = value;
1555
+ return acc;
1556
+ }, {});
1557
+ const getCompoundVariantClassNames = config === null || config === void 0 ? void 0 : (ref = config.compoundVariants) === null || ref === void 0 ? void 0 : ref.reduce((acc, param1)=>{
1558
+ let { class: cvClass , className: cvClassName , ...compoundVariantOptions } = param1;
1559
+ return Object.entries(compoundVariantOptions).every((param)=>{
1560
+ let [key, value] = param;
1561
+ return Array.isArray(value) ? value.includes({
1562
+ ...defaultVariants,
1563
+ ...propsWithoutUndefined
1564
+ }[key]) : ({
1565
+ ...defaultVariants,
1566
+ ...propsWithoutUndefined
1567
+ })[key] === value;
1568
+ }) ? [
1569
+ ...acc,
1570
+ cvClass,
1571
+ cvClassName
1572
+ ] : acc;
1573
+ }, []);
1574
+ return cx(base, getVariantClassNames, getCompoundVariantClassNames, props === null || props === void 0 ? void 0 : props.class, props === null || props === void 0 ? void 0 : props.className);
1575
+ };
1576
+ };
1577
+
1578
+ /**
1579
+ * @license lucide-react v0.453.0 - ISC
1580
+ *
1581
+ * This source code is licensed under the ISC license.
1582
+ * See the LICENSE file in the root directory of this source tree.
1583
+ */
1584
+
1585
+ const toKebabCase = (string) => string.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase();
1586
+ const mergeClasses = (...classes) => classes.filter((className, index, array) => {
1587
+ return Boolean(className) && array.indexOf(className) === index;
1588
+ }).join(" ");
1589
+
1590
+ /**
1591
+ * @license lucide-react v0.453.0 - ISC
1592
+ *
1593
+ * This source code is licensed under the ISC license.
1594
+ * See the LICENSE file in the root directory of this source tree.
1595
+ */
1596
+
1597
+ var defaultAttributes = {
1598
+ xmlns: "http://www.w3.org/2000/svg",
1599
+ width: 24,
1600
+ height: 24,
1601
+ viewBox: "0 0 24 24",
1602
+ fill: "none",
1603
+ stroke: "currentColor",
1604
+ strokeWidth: 2,
1605
+ strokeLinecap: "round",
1606
+ strokeLinejoin: "round"
1607
+ };
1608
+
1609
+ /**
1610
+ * @license lucide-react v0.453.0 - ISC
1611
+ *
1612
+ * This source code is licensed under the ISC license.
1613
+ * See the LICENSE file in the root directory of this source tree.
1614
+ */
1615
+
1616
+
1617
+ const Icon = React.forwardRef(
1618
+ ({
1619
+ color = "currentColor",
1620
+ size = 24,
1621
+ strokeWidth = 2,
1622
+ absoluteStrokeWidth,
1623
+ className = "",
1624
+ children,
1625
+ iconNode,
1626
+ ...rest
1627
+ }, ref) => {
1628
+ return React.createElement(
1629
+ "svg",
1630
+ {
1631
+ ref,
1632
+ ...defaultAttributes,
1633
+ width: size,
1634
+ height: size,
1635
+ stroke: color,
1636
+ strokeWidth: absoluteStrokeWidth ? Number(strokeWidth) * 24 / Number(size) : strokeWidth,
1637
+ className: mergeClasses("lucide", className),
1638
+ ...rest
1639
+ },
1640
+ [
1641
+ ...iconNode.map(([tag, attrs]) => React.createElement(tag, attrs)),
1642
+ ...Array.isArray(children) ? children : [children]
1643
+ ]
1644
+ );
1645
+ }
1646
+ );
1647
+
1648
+ /**
1649
+ * @license lucide-react v0.453.0 - ISC
1650
+ *
1651
+ * This source code is licensed under the ISC license.
1652
+ * See the LICENSE file in the root directory of this source tree.
1653
+ */
1654
+
1655
+
1656
+ const createLucideIcon = (iconName, iconNode) => {
1657
+ const Component = React.forwardRef(
1658
+ ({ className, ...props }, ref) => React.createElement(Icon, {
1659
+ ref,
1660
+ iconNode,
1661
+ className: mergeClasses(`lucide-${toKebabCase(iconName)}`, className),
1662
+ ...props
1663
+ })
1664
+ );
1665
+ Component.displayName = `${iconName}`;
1666
+ return Component;
1667
+ };
1668
+
1669
+ /**
1670
+ * @license lucide-react v0.453.0 - ISC
1671
+ *
1672
+ * This source code is licensed under the ISC license.
1673
+ * See the LICENSE file in the root directory of this source tree.
1674
+ */
1675
+
1676
+
1677
+ const LoaderCircle = createLucideIcon("LoaderCircle", [
1678
+ ["path", { d: "M21 12a9 9 0 1 1-6.219-8.56", key: "13zald" }]
1679
+ ]);
1680
+
1681
+ function r(e){var t,f,n="";if("string"==typeof e||"number"==typeof e)n+=e;else if("object"==typeof e)if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(f=r(e[t]))&&(n&&(n+=" "),n+=f);}else for(f in e)e[f]&&(n&&(n+=" "),n+=f);return n}function clsx(){for(var e,t,f=0,n="",o=arguments.length;f<o;f++)(e=arguments[f])&&(t=r(e))&&(n&&(n+=" "),n+=t);return n}
1682
+
1683
+ const CLASS_PART_SEPARATOR = '-';
1684
+ const createClassGroupUtils = config => {
1685
+ const classMap = createClassMap(config);
1686
+ const {
1687
+ conflictingClassGroups,
1688
+ conflictingClassGroupModifiers
1689
+ } = config;
1690
+ const getClassGroupId = className => {
1691
+ const classParts = className.split(CLASS_PART_SEPARATOR);
1692
+ // Classes like `-inset-1` produce an empty string as first classPart. We assume that classes for negative values are used correctly and remove it from classParts.
1693
+ if (classParts[0] === '' && classParts.length !== 1) {
1694
+ classParts.shift();
1695
+ }
1696
+ return getGroupRecursive(classParts, classMap) || getGroupIdForArbitraryProperty(className);
1697
+ };
1698
+ const getConflictingClassGroupIds = (classGroupId, hasPostfixModifier) => {
1699
+ const conflicts = conflictingClassGroups[classGroupId] || [];
1700
+ if (hasPostfixModifier && conflictingClassGroupModifiers[classGroupId]) {
1701
+ return [...conflicts, ...conflictingClassGroupModifiers[classGroupId]];
1702
+ }
1703
+ return conflicts;
1704
+ };
1705
+ return {
1706
+ getClassGroupId,
1707
+ getConflictingClassGroupIds
1708
+ };
1709
+ };
1710
+ const getGroupRecursive = (classParts, classPartObject) => {
1711
+ if (classParts.length === 0) {
1712
+ return classPartObject.classGroupId;
1713
+ }
1714
+ const currentClassPart = classParts[0];
1715
+ const nextClassPartObject = classPartObject.nextPart.get(currentClassPart);
1716
+ const classGroupFromNextClassPart = nextClassPartObject ? getGroupRecursive(classParts.slice(1), nextClassPartObject) : undefined;
1717
+ if (classGroupFromNextClassPart) {
1718
+ return classGroupFromNextClassPart;
1719
+ }
1720
+ if (classPartObject.validators.length === 0) {
1721
+ return undefined;
1722
+ }
1723
+ const classRest = classParts.join(CLASS_PART_SEPARATOR);
1724
+ return classPartObject.validators.find(({
1725
+ validator
1726
+ }) => validator(classRest))?.classGroupId;
1727
+ };
1728
+ const arbitraryPropertyRegex = /^\[(.+)\]$/;
1729
+ const getGroupIdForArbitraryProperty = className => {
1730
+ if (arbitraryPropertyRegex.test(className)) {
1731
+ const arbitraryPropertyClassName = arbitraryPropertyRegex.exec(className)[1];
1732
+ const property = arbitraryPropertyClassName?.substring(0, arbitraryPropertyClassName.indexOf(':'));
1733
+ if (property) {
1734
+ // I use two dots here because one dot is used as prefix for class groups in plugins
1735
+ return 'arbitrary..' + property;
1736
+ }
1737
+ }
1738
+ };
1739
+ /**
1740
+ * Exported for testing only
1741
+ */
1742
+ const createClassMap = config => {
1743
+ const {
1744
+ theme,
1745
+ prefix
1746
+ } = config;
1747
+ const classMap = {
1748
+ nextPart: new Map(),
1749
+ validators: []
1750
+ };
1751
+ const prefixedClassGroupEntries = getPrefixedClassGroupEntries(Object.entries(config.classGroups), prefix);
1752
+ prefixedClassGroupEntries.forEach(([classGroupId, classGroup]) => {
1753
+ processClassesRecursively(classGroup, classMap, classGroupId, theme);
1754
+ });
1755
+ return classMap;
1756
+ };
1757
+ const processClassesRecursively = (classGroup, classPartObject, classGroupId, theme) => {
1758
+ classGroup.forEach(classDefinition => {
1759
+ if (typeof classDefinition === 'string') {
1760
+ const classPartObjectToEdit = classDefinition === '' ? classPartObject : getPart(classPartObject, classDefinition);
1761
+ classPartObjectToEdit.classGroupId = classGroupId;
1762
+ return;
1763
+ }
1764
+ if (typeof classDefinition === 'function') {
1765
+ if (isThemeGetter(classDefinition)) {
1766
+ processClassesRecursively(classDefinition(theme), classPartObject, classGroupId, theme);
1767
+ return;
1768
+ }
1769
+ classPartObject.validators.push({
1770
+ validator: classDefinition,
1771
+ classGroupId
1772
+ });
1773
+ return;
1774
+ }
1775
+ Object.entries(classDefinition).forEach(([key, classGroup]) => {
1776
+ processClassesRecursively(classGroup, getPart(classPartObject, key), classGroupId, theme);
1777
+ });
1778
+ });
1779
+ };
1780
+ const getPart = (classPartObject, path) => {
1781
+ let currentClassPartObject = classPartObject;
1782
+ path.split(CLASS_PART_SEPARATOR).forEach(pathPart => {
1783
+ if (!currentClassPartObject.nextPart.has(pathPart)) {
1784
+ currentClassPartObject.nextPart.set(pathPart, {
1785
+ nextPart: new Map(),
1786
+ validators: []
1787
+ });
1788
+ }
1789
+ currentClassPartObject = currentClassPartObject.nextPart.get(pathPart);
1790
+ });
1791
+ return currentClassPartObject;
1792
+ };
1793
+ const isThemeGetter = func => func.isThemeGetter;
1794
+ const getPrefixedClassGroupEntries = (classGroupEntries, prefix) => {
1795
+ if (!prefix) {
1796
+ return classGroupEntries;
1797
+ }
1798
+ return classGroupEntries.map(([classGroupId, classGroup]) => {
1799
+ const prefixedClassGroup = classGroup.map(classDefinition => {
1800
+ if (typeof classDefinition === 'string') {
1801
+ return prefix + classDefinition;
1802
+ }
1803
+ if (typeof classDefinition === 'object') {
1804
+ return Object.fromEntries(Object.entries(classDefinition).map(([key, value]) => [prefix + key, value]));
1805
+ }
1806
+ return classDefinition;
1807
+ });
1808
+ return [classGroupId, prefixedClassGroup];
1809
+ });
1810
+ };
1811
+
1812
+ // LRU cache inspired from hashlru (https://github.com/dominictarr/hashlru/blob/v1.0.4/index.js) but object replaced with Map to improve performance
1813
+ const createLruCache = maxCacheSize => {
1814
+ if (maxCacheSize < 1) {
1815
+ return {
1816
+ get: () => undefined,
1817
+ set: () => {}
1818
+ };
1819
+ }
1820
+ let cacheSize = 0;
1821
+ let cache = new Map();
1822
+ let previousCache = new Map();
1823
+ const update = (key, value) => {
1824
+ cache.set(key, value);
1825
+ cacheSize++;
1826
+ if (cacheSize > maxCacheSize) {
1827
+ cacheSize = 0;
1828
+ previousCache = cache;
1829
+ cache = new Map();
1830
+ }
1831
+ };
1832
+ return {
1833
+ get(key) {
1834
+ let value = cache.get(key);
1835
+ if (value !== undefined) {
1836
+ return value;
1837
+ }
1838
+ if ((value = previousCache.get(key)) !== undefined) {
1839
+ update(key, value);
1840
+ return value;
1841
+ }
1842
+ },
1843
+ set(key, value) {
1844
+ if (cache.has(key)) {
1845
+ cache.set(key, value);
1846
+ } else {
1847
+ update(key, value);
1848
+ }
1849
+ }
1850
+ };
1851
+ };
1852
+ const IMPORTANT_MODIFIER = '!';
1853
+ const createParseClassName = config => {
1854
+ const {
1855
+ separator,
1856
+ experimentalParseClassName
1857
+ } = config;
1858
+ const isSeparatorSingleCharacter = separator.length === 1;
1859
+ const firstSeparatorCharacter = separator[0];
1860
+ const separatorLength = separator.length;
1861
+ // parseClassName inspired by https://github.com/tailwindlabs/tailwindcss/blob/v3.2.2/src/util/splitAtTopLevelOnly.js
1862
+ const parseClassName = className => {
1863
+ const modifiers = [];
1864
+ let bracketDepth = 0;
1865
+ let modifierStart = 0;
1866
+ let postfixModifierPosition;
1867
+ for (let index = 0; index < className.length; index++) {
1868
+ let currentCharacter = className[index];
1869
+ if (bracketDepth === 0) {
1870
+ if (currentCharacter === firstSeparatorCharacter && (isSeparatorSingleCharacter || className.slice(index, index + separatorLength) === separator)) {
1871
+ modifiers.push(className.slice(modifierStart, index));
1872
+ modifierStart = index + separatorLength;
1873
+ continue;
1874
+ }
1875
+ if (currentCharacter === '/') {
1876
+ postfixModifierPosition = index;
1877
+ continue;
1878
+ }
1879
+ }
1880
+ if (currentCharacter === '[') {
1881
+ bracketDepth++;
1882
+ } else if (currentCharacter === ']') {
1883
+ bracketDepth--;
1884
+ }
1885
+ }
1886
+ const baseClassNameWithImportantModifier = modifiers.length === 0 ? className : className.substring(modifierStart);
1887
+ const hasImportantModifier = baseClassNameWithImportantModifier.startsWith(IMPORTANT_MODIFIER);
1888
+ const baseClassName = hasImportantModifier ? baseClassNameWithImportantModifier.substring(1) : baseClassNameWithImportantModifier;
1889
+ const maybePostfixModifierPosition = postfixModifierPosition && postfixModifierPosition > modifierStart ? postfixModifierPosition - modifierStart : undefined;
1890
+ return {
1891
+ modifiers,
1892
+ hasImportantModifier,
1893
+ baseClassName,
1894
+ maybePostfixModifierPosition
1895
+ };
1896
+ };
1897
+ if (experimentalParseClassName) {
1898
+ return className => experimentalParseClassName({
1899
+ className,
1900
+ parseClassName
1901
+ });
1902
+ }
1903
+ return parseClassName;
1904
+ };
1905
+ /**
1906
+ * Sorts modifiers according to following schema:
1907
+ * - Predefined modifiers are sorted alphabetically
1908
+ * - When an arbitrary variant appears, it must be preserved which modifiers are before and after it
1909
+ */
1910
+ const sortModifiers = modifiers => {
1911
+ if (modifiers.length <= 1) {
1912
+ return modifiers;
1913
+ }
1914
+ const sortedModifiers = [];
1915
+ let unsortedModifiers = [];
1916
+ modifiers.forEach(modifier => {
1917
+ const isArbitraryVariant = modifier[0] === '[';
1918
+ if (isArbitraryVariant) {
1919
+ sortedModifiers.push(...unsortedModifiers.sort(), modifier);
1920
+ unsortedModifiers = [];
1921
+ } else {
1922
+ unsortedModifiers.push(modifier);
1923
+ }
1924
+ });
1925
+ sortedModifiers.push(...unsortedModifiers.sort());
1926
+ return sortedModifiers;
1927
+ };
1928
+ const createConfigUtils = config => ({
1929
+ cache: createLruCache(config.cacheSize),
1930
+ parseClassName: createParseClassName(config),
1931
+ ...createClassGroupUtils(config)
1932
+ });
1933
+ const SPLIT_CLASSES_REGEX = /\s+/;
1934
+ const mergeClassList = (classList, configUtils) => {
1935
+ const {
1936
+ parseClassName,
1937
+ getClassGroupId,
1938
+ getConflictingClassGroupIds
1939
+ } = configUtils;
1940
+ /**
1941
+ * Set of classGroupIds in following format:
1942
+ * `{importantModifier}{variantModifiers}{classGroupId}`
1943
+ * @example 'float'
1944
+ * @example 'hover:focus:bg-color'
1945
+ * @example 'md:!pr'
1946
+ */
1947
+ const classGroupsInConflict = [];
1948
+ const classNames = classList.trim().split(SPLIT_CLASSES_REGEX);
1949
+ let result = '';
1950
+ for (let index = classNames.length - 1; index >= 0; index -= 1) {
1951
+ const originalClassName = classNames[index];
1952
+ const {
1953
+ modifiers,
1954
+ hasImportantModifier,
1955
+ baseClassName,
1956
+ maybePostfixModifierPosition
1957
+ } = parseClassName(originalClassName);
1958
+ let hasPostfixModifier = Boolean(maybePostfixModifierPosition);
1959
+ let classGroupId = getClassGroupId(hasPostfixModifier ? baseClassName.substring(0, maybePostfixModifierPosition) : baseClassName);
1960
+ if (!classGroupId) {
1961
+ if (!hasPostfixModifier) {
1962
+ // Not a Tailwind class
1963
+ result = originalClassName + (result.length > 0 ? ' ' + result : result);
1964
+ continue;
1965
+ }
1966
+ classGroupId = getClassGroupId(baseClassName);
1967
+ if (!classGroupId) {
1968
+ // Not a Tailwind class
1969
+ result = originalClassName + (result.length > 0 ? ' ' + result : result);
1970
+ continue;
1971
+ }
1972
+ hasPostfixModifier = false;
1973
+ }
1974
+ const variantModifier = sortModifiers(modifiers).join(':');
1975
+ const modifierId = hasImportantModifier ? variantModifier + IMPORTANT_MODIFIER : variantModifier;
1976
+ const classId = modifierId + classGroupId;
1977
+ if (classGroupsInConflict.includes(classId)) {
1978
+ // Tailwind class omitted due to conflict
1979
+ continue;
1980
+ }
1981
+ classGroupsInConflict.push(classId);
1982
+ const conflictGroups = getConflictingClassGroupIds(classGroupId, hasPostfixModifier);
1983
+ for (let i = 0; i < conflictGroups.length; ++i) {
1984
+ const group = conflictGroups[i];
1985
+ classGroupsInConflict.push(modifierId + group);
1986
+ }
1987
+ // Tailwind class not in conflict
1988
+ result = originalClassName + (result.length > 0 ? ' ' + result : result);
1989
+ }
1990
+ return result;
1991
+ };
1992
+
1993
+ /**
1994
+ * The code in this file is copied from https://github.com/lukeed/clsx and modified to suit the needs of tailwind-merge better.
1995
+ *
1996
+ * Specifically:
1997
+ * - Runtime code from https://github.com/lukeed/clsx/blob/v1.2.1/src/index.js
1998
+ * - TypeScript types from https://github.com/lukeed/clsx/blob/v1.2.1/clsx.d.ts
1999
+ *
2000
+ * Original code has MIT license: Copyright (c) Luke Edwards <luke.edwards05@gmail.com> (lukeed.com)
2001
+ */
2002
+ function twJoin() {
2003
+ let index = 0;
2004
+ let argument;
2005
+ let resolvedValue;
2006
+ let string = '';
2007
+ while (index < arguments.length) {
2008
+ if (argument = arguments[index++]) {
2009
+ if (resolvedValue = toValue(argument)) {
2010
+ string && (string += ' ');
2011
+ string += resolvedValue;
2012
+ }
2013
+ }
2014
+ }
2015
+ return string;
2016
+ }
2017
+ const toValue = mix => {
2018
+ if (typeof mix === 'string') {
2019
+ return mix;
2020
+ }
2021
+ let resolvedValue;
2022
+ let string = '';
2023
+ for (let k = 0; k < mix.length; k++) {
2024
+ if (mix[k]) {
2025
+ if (resolvedValue = toValue(mix[k])) {
2026
+ string && (string += ' ');
2027
+ string += resolvedValue;
2028
+ }
2029
+ }
2030
+ }
2031
+ return string;
2032
+ };
2033
+ function createTailwindMerge(createConfigFirst, ...createConfigRest) {
2034
+ let configUtils;
2035
+ let cacheGet;
2036
+ let cacheSet;
2037
+ let functionToCall = initTailwindMerge;
2038
+ function initTailwindMerge(classList) {
2039
+ const config = createConfigRest.reduce((previousConfig, createConfigCurrent) => createConfigCurrent(previousConfig), createConfigFirst());
2040
+ configUtils = createConfigUtils(config);
2041
+ cacheGet = configUtils.cache.get;
2042
+ cacheSet = configUtils.cache.set;
2043
+ functionToCall = tailwindMerge;
2044
+ return tailwindMerge(classList);
2045
+ }
2046
+ function tailwindMerge(classList) {
2047
+ const cachedResult = cacheGet(classList);
2048
+ if (cachedResult) {
2049
+ return cachedResult;
2050
+ }
2051
+ const result = mergeClassList(classList, configUtils);
2052
+ cacheSet(classList, result);
2053
+ return result;
2054
+ }
2055
+ return function callTailwindMerge() {
2056
+ return functionToCall(twJoin.apply(null, arguments));
2057
+ };
2058
+ }
2059
+ const fromTheme = key => {
2060
+ const themeGetter = theme => theme[key] || [];
2061
+ themeGetter.isThemeGetter = true;
2062
+ return themeGetter;
2063
+ };
2064
+ const arbitraryValueRegex = /^\[(?:([a-z-]+):)?(.+)\]$/i;
2065
+ const fractionRegex = /^\d+\/\d+$/;
2066
+ const stringLengths = /*#__PURE__*/new Set(['px', 'full', 'screen']);
2067
+ const tshirtUnitRegex = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/;
2068
+ const lengthUnitRegex = /\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/;
2069
+ const colorFunctionRegex = /^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/;
2070
+ // Shadow always begins with x and y offset separated by underscore optionally prepended by inset
2071
+ const shadowRegex = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/;
2072
+ const imageRegex = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/;
2073
+ const isLength = value => isNumber(value) || stringLengths.has(value) || fractionRegex.test(value);
2074
+ const isArbitraryLength = value => getIsArbitraryValue(value, 'length', isLengthOnly);
2075
+ const isNumber = value => Boolean(value) && !Number.isNaN(Number(value));
2076
+ const isArbitraryNumber = value => getIsArbitraryValue(value, 'number', isNumber);
2077
+ const isInteger = value => Boolean(value) && Number.isInteger(Number(value));
2078
+ const isPercent = value => value.endsWith('%') && isNumber(value.slice(0, -1));
2079
+ const isArbitraryValue = value => arbitraryValueRegex.test(value);
2080
+ const isTshirtSize = value => tshirtUnitRegex.test(value);
2081
+ const sizeLabels = /*#__PURE__*/new Set(['length', 'size', 'percentage']);
2082
+ const isArbitrarySize = value => getIsArbitraryValue(value, sizeLabels, isNever);
2083
+ const isArbitraryPosition = value => getIsArbitraryValue(value, 'position', isNever);
2084
+ const imageLabels = /*#__PURE__*/new Set(['image', 'url']);
2085
+ const isArbitraryImage = value => getIsArbitraryValue(value, imageLabels, isImage);
2086
+ const isArbitraryShadow = value => getIsArbitraryValue(value, '', isShadow);
2087
+ const isAny = () => true;
2088
+ const getIsArbitraryValue = (value, label, testValue) => {
2089
+ const result = arbitraryValueRegex.exec(value);
2090
+ if (result) {
2091
+ if (result[1]) {
2092
+ return typeof label === 'string' ? result[1] === label : label.has(result[1]);
2093
+ }
2094
+ return testValue(result[2]);
2095
+ }
2096
+ return false;
2097
+ };
2098
+ const isLengthOnly = value =>
2099
+ // `colorFunctionRegex` check is necessary because color functions can have percentages in them which which would be incorrectly classified as lengths.
2100
+ // For example, `hsl(0 0% 0%)` would be classified as a length without this check.
2101
+ // I could also use lookbehind assertion in `lengthUnitRegex` but that isn't supported widely enough.
2102
+ lengthUnitRegex.test(value) && !colorFunctionRegex.test(value);
2103
+ const isNever = () => false;
2104
+ const isShadow = value => shadowRegex.test(value);
2105
+ const isImage = value => imageRegex.test(value);
2106
+ const getDefaultConfig = () => {
2107
+ const colors = fromTheme('colors');
2108
+ const spacing = fromTheme('spacing');
2109
+ const blur = fromTheme('blur');
2110
+ const brightness = fromTheme('brightness');
2111
+ const borderColor = fromTheme('borderColor');
2112
+ const borderRadius = fromTheme('borderRadius');
2113
+ const borderSpacing = fromTheme('borderSpacing');
2114
+ const borderWidth = fromTheme('borderWidth');
2115
+ const contrast = fromTheme('contrast');
2116
+ const grayscale = fromTheme('grayscale');
2117
+ const hueRotate = fromTheme('hueRotate');
2118
+ const invert = fromTheme('invert');
2119
+ const gap = fromTheme('gap');
2120
+ const gradientColorStops = fromTheme('gradientColorStops');
2121
+ const gradientColorStopPositions = fromTheme('gradientColorStopPositions');
2122
+ const inset = fromTheme('inset');
2123
+ const margin = fromTheme('margin');
2124
+ const opacity = fromTheme('opacity');
2125
+ const padding = fromTheme('padding');
2126
+ const saturate = fromTheme('saturate');
2127
+ const scale = fromTheme('scale');
2128
+ const sepia = fromTheme('sepia');
2129
+ const skew = fromTheme('skew');
2130
+ const space = fromTheme('space');
2131
+ const translate = fromTheme('translate');
2132
+ const getOverscroll = () => ['auto', 'contain', 'none'];
2133
+ const getOverflow = () => ['auto', 'hidden', 'clip', 'visible', 'scroll'];
2134
+ const getSpacingWithAutoAndArbitrary = () => ['auto', isArbitraryValue, spacing];
2135
+ const getSpacingWithArbitrary = () => [isArbitraryValue, spacing];
2136
+ const getLengthWithEmptyAndArbitrary = () => ['', isLength, isArbitraryLength];
2137
+ const getNumberWithAutoAndArbitrary = () => ['auto', isNumber, isArbitraryValue];
2138
+ const getPositions = () => ['bottom', 'center', 'left', 'left-bottom', 'left-top', 'right', 'right-bottom', 'right-top', 'top'];
2139
+ const getLineStyles = () => ['solid', 'dashed', 'dotted', 'double', 'none'];
2140
+ const getBlendModes = () => ['normal', 'multiply', 'screen', 'overlay', 'darken', 'lighten', 'color-dodge', 'color-burn', 'hard-light', 'soft-light', 'difference', 'exclusion', 'hue', 'saturation', 'color', 'luminosity'];
2141
+ const getAlign = () => ['start', 'end', 'center', 'between', 'around', 'evenly', 'stretch'];
2142
+ const getZeroAndEmpty = () => ['', '0', isArbitraryValue];
2143
+ const getBreaks = () => ['auto', 'avoid', 'all', 'avoid-page', 'page', 'left', 'right', 'column'];
2144
+ const getNumberAndArbitrary = () => [isNumber, isArbitraryValue];
2145
+ return {
2146
+ cacheSize: 500,
2147
+ separator: ':',
2148
+ theme: {
2149
+ colors: [isAny],
2150
+ spacing: [isLength, isArbitraryLength],
2151
+ blur: ['none', '', isTshirtSize, isArbitraryValue],
2152
+ brightness: getNumberAndArbitrary(),
2153
+ borderColor: [colors],
2154
+ borderRadius: ['none', '', 'full', isTshirtSize, isArbitraryValue],
2155
+ borderSpacing: getSpacingWithArbitrary(),
2156
+ borderWidth: getLengthWithEmptyAndArbitrary(),
2157
+ contrast: getNumberAndArbitrary(),
2158
+ grayscale: getZeroAndEmpty(),
2159
+ hueRotate: getNumberAndArbitrary(),
2160
+ invert: getZeroAndEmpty(),
2161
+ gap: getSpacingWithArbitrary(),
2162
+ gradientColorStops: [colors],
2163
+ gradientColorStopPositions: [isPercent, isArbitraryLength],
2164
+ inset: getSpacingWithAutoAndArbitrary(),
2165
+ margin: getSpacingWithAutoAndArbitrary(),
2166
+ opacity: getNumberAndArbitrary(),
2167
+ padding: getSpacingWithArbitrary(),
2168
+ saturate: getNumberAndArbitrary(),
2169
+ scale: getNumberAndArbitrary(),
2170
+ sepia: getZeroAndEmpty(),
2171
+ skew: getNumberAndArbitrary(),
2172
+ space: getSpacingWithArbitrary(),
2173
+ translate: getSpacingWithArbitrary()
2174
+ },
2175
+ classGroups: {
2176
+ // Layout
2177
+ /**
2178
+ * Aspect Ratio
2179
+ * @see https://tailwindcss.com/docs/aspect-ratio
2180
+ */
2181
+ aspect: [{
2182
+ aspect: ['auto', 'square', 'video', isArbitraryValue]
2183
+ }],
2184
+ /**
2185
+ * Container
2186
+ * @see https://tailwindcss.com/docs/container
2187
+ */
2188
+ container: ['container'],
2189
+ /**
2190
+ * Columns
2191
+ * @see https://tailwindcss.com/docs/columns
2192
+ */
2193
+ columns: [{
2194
+ columns: [isTshirtSize]
2195
+ }],
2196
+ /**
2197
+ * Break After
2198
+ * @see https://tailwindcss.com/docs/break-after
2199
+ */
2200
+ 'break-after': [{
2201
+ 'break-after': getBreaks()
2202
+ }],
2203
+ /**
2204
+ * Break Before
2205
+ * @see https://tailwindcss.com/docs/break-before
2206
+ */
2207
+ 'break-before': [{
2208
+ 'break-before': getBreaks()
2209
+ }],
2210
+ /**
2211
+ * Break Inside
2212
+ * @see https://tailwindcss.com/docs/break-inside
2213
+ */
2214
+ 'break-inside': [{
2215
+ 'break-inside': ['auto', 'avoid', 'avoid-page', 'avoid-column']
2216
+ }],
2217
+ /**
2218
+ * Box Decoration Break
2219
+ * @see https://tailwindcss.com/docs/box-decoration-break
2220
+ */
2221
+ 'box-decoration': [{
2222
+ 'box-decoration': ['slice', 'clone']
2223
+ }],
2224
+ /**
2225
+ * Box Sizing
2226
+ * @see https://tailwindcss.com/docs/box-sizing
2227
+ */
2228
+ box: [{
2229
+ box: ['border', 'content']
2230
+ }],
2231
+ /**
2232
+ * Display
2233
+ * @see https://tailwindcss.com/docs/display
2234
+ */
2235
+ display: ['block', 'inline-block', 'inline', 'flex', 'inline-flex', 'table', 'inline-table', 'table-caption', 'table-cell', 'table-column', 'table-column-group', 'table-footer-group', 'table-header-group', 'table-row-group', 'table-row', 'flow-root', 'grid', 'inline-grid', 'contents', 'list-item', 'hidden'],
2236
+ /**
2237
+ * Floats
2238
+ * @see https://tailwindcss.com/docs/float
2239
+ */
2240
+ float: [{
2241
+ float: ['right', 'left', 'none', 'start', 'end']
2242
+ }],
2243
+ /**
2244
+ * Clear
2245
+ * @see https://tailwindcss.com/docs/clear
2246
+ */
2247
+ clear: [{
2248
+ clear: ['left', 'right', 'both', 'none', 'start', 'end']
2249
+ }],
2250
+ /**
2251
+ * Isolation
2252
+ * @see https://tailwindcss.com/docs/isolation
2253
+ */
2254
+ isolation: ['isolate', 'isolation-auto'],
2255
+ /**
2256
+ * Object Fit
2257
+ * @see https://tailwindcss.com/docs/object-fit
2258
+ */
2259
+ 'object-fit': [{
2260
+ object: ['contain', 'cover', 'fill', 'none', 'scale-down']
2261
+ }],
2262
+ /**
2263
+ * Object Position
2264
+ * @see https://tailwindcss.com/docs/object-position
2265
+ */
2266
+ 'object-position': [{
2267
+ object: [...getPositions(), isArbitraryValue]
2268
+ }],
2269
+ /**
2270
+ * Overflow
2271
+ * @see https://tailwindcss.com/docs/overflow
2272
+ */
2273
+ overflow: [{
2274
+ overflow: getOverflow()
2275
+ }],
2276
+ /**
2277
+ * Overflow X
2278
+ * @see https://tailwindcss.com/docs/overflow
2279
+ */
2280
+ 'overflow-x': [{
2281
+ 'overflow-x': getOverflow()
2282
+ }],
2283
+ /**
2284
+ * Overflow Y
2285
+ * @see https://tailwindcss.com/docs/overflow
2286
+ */
2287
+ 'overflow-y': [{
2288
+ 'overflow-y': getOverflow()
2289
+ }],
2290
+ /**
2291
+ * Overscroll Behavior
2292
+ * @see https://tailwindcss.com/docs/overscroll-behavior
2293
+ */
2294
+ overscroll: [{
2295
+ overscroll: getOverscroll()
2296
+ }],
2297
+ /**
2298
+ * Overscroll Behavior X
2299
+ * @see https://tailwindcss.com/docs/overscroll-behavior
2300
+ */
2301
+ 'overscroll-x': [{
2302
+ 'overscroll-x': getOverscroll()
2303
+ }],
2304
+ /**
2305
+ * Overscroll Behavior Y
2306
+ * @see https://tailwindcss.com/docs/overscroll-behavior
2307
+ */
2308
+ 'overscroll-y': [{
2309
+ 'overscroll-y': getOverscroll()
2310
+ }],
2311
+ /**
2312
+ * Position
2313
+ * @see https://tailwindcss.com/docs/position
2314
+ */
2315
+ position: ['static', 'fixed', 'absolute', 'relative', 'sticky'],
2316
+ /**
2317
+ * Top / Right / Bottom / Left
2318
+ * @see https://tailwindcss.com/docs/top-right-bottom-left
2319
+ */
2320
+ inset: [{
2321
+ inset: [inset]
2322
+ }],
2323
+ /**
2324
+ * Right / Left
2325
+ * @see https://tailwindcss.com/docs/top-right-bottom-left
2326
+ */
2327
+ 'inset-x': [{
2328
+ 'inset-x': [inset]
2329
+ }],
2330
+ /**
2331
+ * Top / Bottom
2332
+ * @see https://tailwindcss.com/docs/top-right-bottom-left
2333
+ */
2334
+ 'inset-y': [{
2335
+ 'inset-y': [inset]
2336
+ }],
2337
+ /**
2338
+ * Start
2339
+ * @see https://tailwindcss.com/docs/top-right-bottom-left
2340
+ */
2341
+ start: [{
2342
+ start: [inset]
2343
+ }],
2344
+ /**
2345
+ * End
2346
+ * @see https://tailwindcss.com/docs/top-right-bottom-left
2347
+ */
2348
+ end: [{
2349
+ end: [inset]
2350
+ }],
2351
+ /**
2352
+ * Top
2353
+ * @see https://tailwindcss.com/docs/top-right-bottom-left
2354
+ */
2355
+ top: [{
2356
+ top: [inset]
2357
+ }],
2358
+ /**
2359
+ * Right
2360
+ * @see https://tailwindcss.com/docs/top-right-bottom-left
2361
+ */
2362
+ right: [{
2363
+ right: [inset]
2364
+ }],
2365
+ /**
2366
+ * Bottom
2367
+ * @see https://tailwindcss.com/docs/top-right-bottom-left
2368
+ */
2369
+ bottom: [{
2370
+ bottom: [inset]
2371
+ }],
2372
+ /**
2373
+ * Left
2374
+ * @see https://tailwindcss.com/docs/top-right-bottom-left
2375
+ */
2376
+ left: [{
2377
+ left: [inset]
2378
+ }],
2379
+ /**
2380
+ * Visibility
2381
+ * @see https://tailwindcss.com/docs/visibility
2382
+ */
2383
+ visibility: ['visible', 'invisible', 'collapse'],
2384
+ /**
2385
+ * Z-Index
2386
+ * @see https://tailwindcss.com/docs/z-index
2387
+ */
2388
+ z: [{
2389
+ z: ['auto', isInteger, isArbitraryValue]
2390
+ }],
2391
+ // Flexbox and Grid
2392
+ /**
2393
+ * Flex Basis
2394
+ * @see https://tailwindcss.com/docs/flex-basis
2395
+ */
2396
+ basis: [{
2397
+ basis: getSpacingWithAutoAndArbitrary()
2398
+ }],
2399
+ /**
2400
+ * Flex Direction
2401
+ * @see https://tailwindcss.com/docs/flex-direction
2402
+ */
2403
+ 'flex-direction': [{
2404
+ flex: ['row', 'row-reverse', 'col', 'col-reverse']
2405
+ }],
2406
+ /**
2407
+ * Flex Wrap
2408
+ * @see https://tailwindcss.com/docs/flex-wrap
2409
+ */
2410
+ 'flex-wrap': [{
2411
+ flex: ['wrap', 'wrap-reverse', 'nowrap']
2412
+ }],
2413
+ /**
2414
+ * Flex
2415
+ * @see https://tailwindcss.com/docs/flex
2416
+ */
2417
+ flex: [{
2418
+ flex: ['1', 'auto', 'initial', 'none', isArbitraryValue]
2419
+ }],
2420
+ /**
2421
+ * Flex Grow
2422
+ * @see https://tailwindcss.com/docs/flex-grow
2423
+ */
2424
+ grow: [{
2425
+ grow: getZeroAndEmpty()
2426
+ }],
2427
+ /**
2428
+ * Flex Shrink
2429
+ * @see https://tailwindcss.com/docs/flex-shrink
2430
+ */
2431
+ shrink: [{
2432
+ shrink: getZeroAndEmpty()
2433
+ }],
2434
+ /**
2435
+ * Order
2436
+ * @see https://tailwindcss.com/docs/order
2437
+ */
2438
+ order: [{
2439
+ order: ['first', 'last', 'none', isInteger, isArbitraryValue]
2440
+ }],
2441
+ /**
2442
+ * Grid Template Columns
2443
+ * @see https://tailwindcss.com/docs/grid-template-columns
2444
+ */
2445
+ 'grid-cols': [{
2446
+ 'grid-cols': [isAny]
2447
+ }],
2448
+ /**
2449
+ * Grid Column Start / End
2450
+ * @see https://tailwindcss.com/docs/grid-column
2451
+ */
2452
+ 'col-start-end': [{
2453
+ col: ['auto', {
2454
+ span: ['full', isInteger, isArbitraryValue]
2455
+ }, isArbitraryValue]
2456
+ }],
2457
+ /**
2458
+ * Grid Column Start
2459
+ * @see https://tailwindcss.com/docs/grid-column
2460
+ */
2461
+ 'col-start': [{
2462
+ 'col-start': getNumberWithAutoAndArbitrary()
2463
+ }],
2464
+ /**
2465
+ * Grid Column End
2466
+ * @see https://tailwindcss.com/docs/grid-column
2467
+ */
2468
+ 'col-end': [{
2469
+ 'col-end': getNumberWithAutoAndArbitrary()
2470
+ }],
2471
+ /**
2472
+ * Grid Template Rows
2473
+ * @see https://tailwindcss.com/docs/grid-template-rows
2474
+ */
2475
+ 'grid-rows': [{
2476
+ 'grid-rows': [isAny]
2477
+ }],
2478
+ /**
2479
+ * Grid Row Start / End
2480
+ * @see https://tailwindcss.com/docs/grid-row
2481
+ */
2482
+ 'row-start-end': [{
2483
+ row: ['auto', {
2484
+ span: [isInteger, isArbitraryValue]
2485
+ }, isArbitraryValue]
2486
+ }],
2487
+ /**
2488
+ * Grid Row Start
2489
+ * @see https://tailwindcss.com/docs/grid-row
2490
+ */
2491
+ 'row-start': [{
2492
+ 'row-start': getNumberWithAutoAndArbitrary()
2493
+ }],
2494
+ /**
2495
+ * Grid Row End
2496
+ * @see https://tailwindcss.com/docs/grid-row
2497
+ */
2498
+ 'row-end': [{
2499
+ 'row-end': getNumberWithAutoAndArbitrary()
2500
+ }],
2501
+ /**
2502
+ * Grid Auto Flow
2503
+ * @see https://tailwindcss.com/docs/grid-auto-flow
2504
+ */
2505
+ 'grid-flow': [{
2506
+ 'grid-flow': ['row', 'col', 'dense', 'row-dense', 'col-dense']
2507
+ }],
2508
+ /**
2509
+ * Grid Auto Columns
2510
+ * @see https://tailwindcss.com/docs/grid-auto-columns
2511
+ */
2512
+ 'auto-cols': [{
2513
+ 'auto-cols': ['auto', 'min', 'max', 'fr', isArbitraryValue]
2514
+ }],
2515
+ /**
2516
+ * Grid Auto Rows
2517
+ * @see https://tailwindcss.com/docs/grid-auto-rows
2518
+ */
2519
+ 'auto-rows': [{
2520
+ 'auto-rows': ['auto', 'min', 'max', 'fr', isArbitraryValue]
2521
+ }],
2522
+ /**
2523
+ * Gap
2524
+ * @see https://tailwindcss.com/docs/gap
2525
+ */
2526
+ gap: [{
2527
+ gap: [gap]
2528
+ }],
2529
+ /**
2530
+ * Gap X
2531
+ * @see https://tailwindcss.com/docs/gap
2532
+ */
2533
+ 'gap-x': [{
2534
+ 'gap-x': [gap]
2535
+ }],
2536
+ /**
2537
+ * Gap Y
2538
+ * @see https://tailwindcss.com/docs/gap
2539
+ */
2540
+ 'gap-y': [{
2541
+ 'gap-y': [gap]
2542
+ }],
2543
+ /**
2544
+ * Justify Content
2545
+ * @see https://tailwindcss.com/docs/justify-content
2546
+ */
2547
+ 'justify-content': [{
2548
+ justify: ['normal', ...getAlign()]
2549
+ }],
2550
+ /**
2551
+ * Justify Items
2552
+ * @see https://tailwindcss.com/docs/justify-items
2553
+ */
2554
+ 'justify-items': [{
2555
+ 'justify-items': ['start', 'end', 'center', 'stretch']
2556
+ }],
2557
+ /**
2558
+ * Justify Self
2559
+ * @see https://tailwindcss.com/docs/justify-self
2560
+ */
2561
+ 'justify-self': [{
2562
+ 'justify-self': ['auto', 'start', 'end', 'center', 'stretch']
2563
+ }],
2564
+ /**
2565
+ * Align Content
2566
+ * @see https://tailwindcss.com/docs/align-content
2567
+ */
2568
+ 'align-content': [{
2569
+ content: ['normal', ...getAlign(), 'baseline']
2570
+ }],
2571
+ /**
2572
+ * Align Items
2573
+ * @see https://tailwindcss.com/docs/align-items
2574
+ */
2575
+ 'align-items': [{
2576
+ items: ['start', 'end', 'center', 'baseline', 'stretch']
2577
+ }],
2578
+ /**
2579
+ * Align Self
2580
+ * @see https://tailwindcss.com/docs/align-self
2581
+ */
2582
+ 'align-self': [{
2583
+ self: ['auto', 'start', 'end', 'center', 'stretch', 'baseline']
2584
+ }],
2585
+ /**
2586
+ * Place Content
2587
+ * @see https://tailwindcss.com/docs/place-content
2588
+ */
2589
+ 'place-content': [{
2590
+ 'place-content': [...getAlign(), 'baseline']
2591
+ }],
2592
+ /**
2593
+ * Place Items
2594
+ * @see https://tailwindcss.com/docs/place-items
2595
+ */
2596
+ 'place-items': [{
2597
+ 'place-items': ['start', 'end', 'center', 'baseline', 'stretch']
2598
+ }],
2599
+ /**
2600
+ * Place Self
2601
+ * @see https://tailwindcss.com/docs/place-self
2602
+ */
2603
+ 'place-self': [{
2604
+ 'place-self': ['auto', 'start', 'end', 'center', 'stretch']
2605
+ }],
2606
+ // Spacing
2607
+ /**
2608
+ * Padding
2609
+ * @see https://tailwindcss.com/docs/padding
2610
+ */
2611
+ p: [{
2612
+ p: [padding]
2613
+ }],
2614
+ /**
2615
+ * Padding X
2616
+ * @see https://tailwindcss.com/docs/padding
2617
+ */
2618
+ px: [{
2619
+ px: [padding]
2620
+ }],
2621
+ /**
2622
+ * Padding Y
2623
+ * @see https://tailwindcss.com/docs/padding
2624
+ */
2625
+ py: [{
2626
+ py: [padding]
2627
+ }],
2628
+ /**
2629
+ * Padding Start
2630
+ * @see https://tailwindcss.com/docs/padding
2631
+ */
2632
+ ps: [{
2633
+ ps: [padding]
2634
+ }],
2635
+ /**
2636
+ * Padding End
2637
+ * @see https://tailwindcss.com/docs/padding
2638
+ */
2639
+ pe: [{
2640
+ pe: [padding]
2641
+ }],
2642
+ /**
2643
+ * Padding Top
2644
+ * @see https://tailwindcss.com/docs/padding
2645
+ */
2646
+ pt: [{
2647
+ pt: [padding]
2648
+ }],
2649
+ /**
2650
+ * Padding Right
2651
+ * @see https://tailwindcss.com/docs/padding
2652
+ */
2653
+ pr: [{
2654
+ pr: [padding]
2655
+ }],
2656
+ /**
2657
+ * Padding Bottom
2658
+ * @see https://tailwindcss.com/docs/padding
2659
+ */
2660
+ pb: [{
2661
+ pb: [padding]
2662
+ }],
2663
+ /**
2664
+ * Padding Left
2665
+ * @see https://tailwindcss.com/docs/padding
2666
+ */
2667
+ pl: [{
2668
+ pl: [padding]
2669
+ }],
2670
+ /**
2671
+ * Margin
2672
+ * @see https://tailwindcss.com/docs/margin
2673
+ */
2674
+ m: [{
2675
+ m: [margin]
2676
+ }],
2677
+ /**
2678
+ * Margin X
2679
+ * @see https://tailwindcss.com/docs/margin
2680
+ */
2681
+ mx: [{
2682
+ mx: [margin]
2683
+ }],
2684
+ /**
2685
+ * Margin Y
2686
+ * @see https://tailwindcss.com/docs/margin
2687
+ */
2688
+ my: [{
2689
+ my: [margin]
2690
+ }],
2691
+ /**
2692
+ * Margin Start
2693
+ * @see https://tailwindcss.com/docs/margin
2694
+ */
2695
+ ms: [{
2696
+ ms: [margin]
2697
+ }],
2698
+ /**
2699
+ * Margin End
2700
+ * @see https://tailwindcss.com/docs/margin
2701
+ */
2702
+ me: [{
2703
+ me: [margin]
2704
+ }],
2705
+ /**
2706
+ * Margin Top
2707
+ * @see https://tailwindcss.com/docs/margin
2708
+ */
2709
+ mt: [{
2710
+ mt: [margin]
2711
+ }],
2712
+ /**
2713
+ * Margin Right
2714
+ * @see https://tailwindcss.com/docs/margin
2715
+ */
2716
+ mr: [{
2717
+ mr: [margin]
2718
+ }],
2719
+ /**
2720
+ * Margin Bottom
2721
+ * @see https://tailwindcss.com/docs/margin
2722
+ */
2723
+ mb: [{
2724
+ mb: [margin]
2725
+ }],
2726
+ /**
2727
+ * Margin Left
2728
+ * @see https://tailwindcss.com/docs/margin
2729
+ */
2730
+ ml: [{
2731
+ ml: [margin]
2732
+ }],
2733
+ /**
2734
+ * Space Between X
2735
+ * @see https://tailwindcss.com/docs/space
2736
+ */
2737
+ 'space-x': [{
2738
+ 'space-x': [space]
2739
+ }],
2740
+ /**
2741
+ * Space Between X Reverse
2742
+ * @see https://tailwindcss.com/docs/space
2743
+ */
2744
+ 'space-x-reverse': ['space-x-reverse'],
2745
+ /**
2746
+ * Space Between Y
2747
+ * @see https://tailwindcss.com/docs/space
2748
+ */
2749
+ 'space-y': [{
2750
+ 'space-y': [space]
2751
+ }],
2752
+ /**
2753
+ * Space Between Y Reverse
2754
+ * @see https://tailwindcss.com/docs/space
2755
+ */
2756
+ 'space-y-reverse': ['space-y-reverse'],
2757
+ // Sizing
2758
+ /**
2759
+ * Width
2760
+ * @see https://tailwindcss.com/docs/width
2761
+ */
2762
+ w: [{
2763
+ w: ['auto', 'min', 'max', 'fit', 'svw', 'lvw', 'dvw', isArbitraryValue, spacing]
2764
+ }],
2765
+ /**
2766
+ * Min-Width
2767
+ * @see https://tailwindcss.com/docs/min-width
2768
+ */
2769
+ 'min-w': [{
2770
+ 'min-w': [isArbitraryValue, spacing, 'min', 'max', 'fit']
2771
+ }],
2772
+ /**
2773
+ * Max-Width
2774
+ * @see https://tailwindcss.com/docs/max-width
2775
+ */
2776
+ 'max-w': [{
2777
+ 'max-w': [isArbitraryValue, spacing, 'none', 'full', 'min', 'max', 'fit', 'prose', {
2778
+ screen: [isTshirtSize]
2779
+ }, isTshirtSize]
2780
+ }],
2781
+ /**
2782
+ * Height
2783
+ * @see https://tailwindcss.com/docs/height
2784
+ */
2785
+ h: [{
2786
+ h: [isArbitraryValue, spacing, 'auto', 'min', 'max', 'fit', 'svh', 'lvh', 'dvh']
2787
+ }],
2788
+ /**
2789
+ * Min-Height
2790
+ * @see https://tailwindcss.com/docs/min-height
2791
+ */
2792
+ 'min-h': [{
2793
+ 'min-h': [isArbitraryValue, spacing, 'min', 'max', 'fit', 'svh', 'lvh', 'dvh']
2794
+ }],
2795
+ /**
2796
+ * Max-Height
2797
+ * @see https://tailwindcss.com/docs/max-height
2798
+ */
2799
+ 'max-h': [{
2800
+ 'max-h': [isArbitraryValue, spacing, 'min', 'max', 'fit', 'svh', 'lvh', 'dvh']
2801
+ }],
2802
+ /**
2803
+ * Size
2804
+ * @see https://tailwindcss.com/docs/size
2805
+ */
2806
+ size: [{
2807
+ size: [isArbitraryValue, spacing, 'auto', 'min', 'max', 'fit']
2808
+ }],
2809
+ // Typography
2810
+ /**
2811
+ * Font Size
2812
+ * @see https://tailwindcss.com/docs/font-size
2813
+ */
2814
+ 'font-size': [{
2815
+ text: ['base', isTshirtSize, isArbitraryLength]
2816
+ }],
2817
+ /**
2818
+ * Font Smoothing
2819
+ * @see https://tailwindcss.com/docs/font-smoothing
2820
+ */
2821
+ 'font-smoothing': ['antialiased', 'subpixel-antialiased'],
2822
+ /**
2823
+ * Font Style
2824
+ * @see https://tailwindcss.com/docs/font-style
2825
+ */
2826
+ 'font-style': ['italic', 'not-italic'],
2827
+ /**
2828
+ * Font Weight
2829
+ * @see https://tailwindcss.com/docs/font-weight
2830
+ */
2831
+ 'font-weight': [{
2832
+ font: ['thin', 'extralight', 'light', 'normal', 'medium', 'semibold', 'bold', 'extrabold', 'black', isArbitraryNumber]
2833
+ }],
2834
+ /**
2835
+ * Font Family
2836
+ * @see https://tailwindcss.com/docs/font-family
2837
+ */
2838
+ 'font-family': [{
2839
+ font: [isAny]
2840
+ }],
2841
+ /**
2842
+ * Font Variant Numeric
2843
+ * @see https://tailwindcss.com/docs/font-variant-numeric
2844
+ */
2845
+ 'fvn-normal': ['normal-nums'],
2846
+ /**
2847
+ * Font Variant Numeric
2848
+ * @see https://tailwindcss.com/docs/font-variant-numeric
2849
+ */
2850
+ 'fvn-ordinal': ['ordinal'],
2851
+ /**
2852
+ * Font Variant Numeric
2853
+ * @see https://tailwindcss.com/docs/font-variant-numeric
2854
+ */
2855
+ 'fvn-slashed-zero': ['slashed-zero'],
2856
+ /**
2857
+ * Font Variant Numeric
2858
+ * @see https://tailwindcss.com/docs/font-variant-numeric
2859
+ */
2860
+ 'fvn-figure': ['lining-nums', 'oldstyle-nums'],
2861
+ /**
2862
+ * Font Variant Numeric
2863
+ * @see https://tailwindcss.com/docs/font-variant-numeric
2864
+ */
2865
+ 'fvn-spacing': ['proportional-nums', 'tabular-nums'],
2866
+ /**
2867
+ * Font Variant Numeric
2868
+ * @see https://tailwindcss.com/docs/font-variant-numeric
2869
+ */
2870
+ 'fvn-fraction': ['diagonal-fractions', 'stacked-fractons'],
2871
+ /**
2872
+ * Letter Spacing
2873
+ * @see https://tailwindcss.com/docs/letter-spacing
2874
+ */
2875
+ tracking: [{
2876
+ tracking: ['tighter', 'tight', 'normal', 'wide', 'wider', 'widest', isArbitraryValue]
2877
+ }],
2878
+ /**
2879
+ * Line Clamp
2880
+ * @see https://tailwindcss.com/docs/line-clamp
2881
+ */
2882
+ 'line-clamp': [{
2883
+ 'line-clamp': ['none', isNumber, isArbitraryNumber]
2884
+ }],
2885
+ /**
2886
+ * Line Height
2887
+ * @see https://tailwindcss.com/docs/line-height
2888
+ */
2889
+ leading: [{
2890
+ leading: ['none', 'tight', 'snug', 'normal', 'relaxed', 'loose', isLength, isArbitraryValue]
2891
+ }],
2892
+ /**
2893
+ * List Style Image
2894
+ * @see https://tailwindcss.com/docs/list-style-image
2895
+ */
2896
+ 'list-image': [{
2897
+ 'list-image': ['none', isArbitraryValue]
2898
+ }],
2899
+ /**
2900
+ * List Style Type
2901
+ * @see https://tailwindcss.com/docs/list-style-type
2902
+ */
2903
+ 'list-style-type': [{
2904
+ list: ['none', 'disc', 'decimal', isArbitraryValue]
2905
+ }],
2906
+ /**
2907
+ * List Style Position
2908
+ * @see https://tailwindcss.com/docs/list-style-position
2909
+ */
2910
+ 'list-style-position': [{
2911
+ list: ['inside', 'outside']
2912
+ }],
2913
+ /**
2914
+ * Placeholder Color
2915
+ * @deprecated since Tailwind CSS v3.0.0
2916
+ * @see https://tailwindcss.com/docs/placeholder-color
2917
+ */
2918
+ 'placeholder-color': [{
2919
+ placeholder: [colors]
2920
+ }],
2921
+ /**
2922
+ * Placeholder Opacity
2923
+ * @see https://tailwindcss.com/docs/placeholder-opacity
2924
+ */
2925
+ 'placeholder-opacity': [{
2926
+ 'placeholder-opacity': [opacity]
2927
+ }],
2928
+ /**
2929
+ * Text Alignment
2930
+ * @see https://tailwindcss.com/docs/text-align
2931
+ */
2932
+ 'text-alignment': [{
2933
+ text: ['left', 'center', 'right', 'justify', 'start', 'end']
2934
+ }],
2935
+ /**
2936
+ * Text Color
2937
+ * @see https://tailwindcss.com/docs/text-color
2938
+ */
2939
+ 'text-color': [{
2940
+ text: [colors]
2941
+ }],
2942
+ /**
2943
+ * Text Opacity
2944
+ * @see https://tailwindcss.com/docs/text-opacity
2945
+ */
2946
+ 'text-opacity': [{
2947
+ 'text-opacity': [opacity]
2948
+ }],
2949
+ /**
2950
+ * Text Decoration
2951
+ * @see https://tailwindcss.com/docs/text-decoration
2952
+ */
2953
+ 'text-decoration': ['underline', 'overline', 'line-through', 'no-underline'],
2954
+ /**
2955
+ * Text Decoration Style
2956
+ * @see https://tailwindcss.com/docs/text-decoration-style
2957
+ */
2958
+ 'text-decoration-style': [{
2959
+ decoration: [...getLineStyles(), 'wavy']
2960
+ }],
2961
+ /**
2962
+ * Text Decoration Thickness
2963
+ * @see https://tailwindcss.com/docs/text-decoration-thickness
2964
+ */
2965
+ 'text-decoration-thickness': [{
2966
+ decoration: ['auto', 'from-font', isLength, isArbitraryLength]
2967
+ }],
2968
+ /**
2969
+ * Text Underline Offset
2970
+ * @see https://tailwindcss.com/docs/text-underline-offset
2971
+ */
2972
+ 'underline-offset': [{
2973
+ 'underline-offset': ['auto', isLength, isArbitraryValue]
2974
+ }],
2975
+ /**
2976
+ * Text Decoration Color
2977
+ * @see https://tailwindcss.com/docs/text-decoration-color
2978
+ */
2979
+ 'text-decoration-color': [{
2980
+ decoration: [colors]
2981
+ }],
2982
+ /**
2983
+ * Text Transform
2984
+ * @see https://tailwindcss.com/docs/text-transform
2985
+ */
2986
+ 'text-transform': ['uppercase', 'lowercase', 'capitalize', 'normal-case'],
2987
+ /**
2988
+ * Text Overflow
2989
+ * @see https://tailwindcss.com/docs/text-overflow
2990
+ */
2991
+ 'text-overflow': ['truncate', 'text-ellipsis', 'text-clip'],
2992
+ /**
2993
+ * Text Wrap
2994
+ * @see https://tailwindcss.com/docs/text-wrap
2995
+ */
2996
+ 'text-wrap': [{
2997
+ text: ['wrap', 'nowrap', 'balance', 'pretty']
2998
+ }],
2999
+ /**
3000
+ * Text Indent
3001
+ * @see https://tailwindcss.com/docs/text-indent
3002
+ */
3003
+ indent: [{
3004
+ indent: getSpacingWithArbitrary()
3005
+ }],
3006
+ /**
3007
+ * Vertical Alignment
3008
+ * @see https://tailwindcss.com/docs/vertical-align
3009
+ */
3010
+ 'vertical-align': [{
3011
+ align: ['baseline', 'top', 'middle', 'bottom', 'text-top', 'text-bottom', 'sub', 'super', isArbitraryValue]
3012
+ }],
3013
+ /**
3014
+ * Whitespace
3015
+ * @see https://tailwindcss.com/docs/whitespace
3016
+ */
3017
+ whitespace: [{
3018
+ whitespace: ['normal', 'nowrap', 'pre', 'pre-line', 'pre-wrap', 'break-spaces']
3019
+ }],
3020
+ /**
3021
+ * Word Break
3022
+ * @see https://tailwindcss.com/docs/word-break
3023
+ */
3024
+ break: [{
3025
+ break: ['normal', 'words', 'all', 'keep']
3026
+ }],
3027
+ /**
3028
+ * Hyphens
3029
+ * @see https://tailwindcss.com/docs/hyphens
3030
+ */
3031
+ hyphens: [{
3032
+ hyphens: ['none', 'manual', 'auto']
3033
+ }],
3034
+ /**
3035
+ * Content
3036
+ * @see https://tailwindcss.com/docs/content
3037
+ */
3038
+ content: [{
3039
+ content: ['none', isArbitraryValue]
3040
+ }],
3041
+ // Backgrounds
3042
+ /**
3043
+ * Background Attachment
3044
+ * @see https://tailwindcss.com/docs/background-attachment
3045
+ */
3046
+ 'bg-attachment': [{
3047
+ bg: ['fixed', 'local', 'scroll']
3048
+ }],
3049
+ /**
3050
+ * Background Clip
3051
+ * @see https://tailwindcss.com/docs/background-clip
3052
+ */
3053
+ 'bg-clip': [{
3054
+ 'bg-clip': ['border', 'padding', 'content', 'text']
3055
+ }],
3056
+ /**
3057
+ * Background Opacity
3058
+ * @deprecated since Tailwind CSS v3.0.0
3059
+ * @see https://tailwindcss.com/docs/background-opacity
3060
+ */
3061
+ 'bg-opacity': [{
3062
+ 'bg-opacity': [opacity]
3063
+ }],
3064
+ /**
3065
+ * Background Origin
3066
+ * @see https://tailwindcss.com/docs/background-origin
3067
+ */
3068
+ 'bg-origin': [{
3069
+ 'bg-origin': ['border', 'padding', 'content']
3070
+ }],
3071
+ /**
3072
+ * Background Position
3073
+ * @see https://tailwindcss.com/docs/background-position
3074
+ */
3075
+ 'bg-position': [{
3076
+ bg: [...getPositions(), isArbitraryPosition]
3077
+ }],
3078
+ /**
3079
+ * Background Repeat
3080
+ * @see https://tailwindcss.com/docs/background-repeat
3081
+ */
3082
+ 'bg-repeat': [{
3083
+ bg: ['no-repeat', {
3084
+ repeat: ['', 'x', 'y', 'round', 'space']
3085
+ }]
3086
+ }],
3087
+ /**
3088
+ * Background Size
3089
+ * @see https://tailwindcss.com/docs/background-size
3090
+ */
3091
+ 'bg-size': [{
3092
+ bg: ['auto', 'cover', 'contain', isArbitrarySize]
3093
+ }],
3094
+ /**
3095
+ * Background Image
3096
+ * @see https://tailwindcss.com/docs/background-image
3097
+ */
3098
+ 'bg-image': [{
3099
+ bg: ['none', {
3100
+ 'gradient-to': ['t', 'tr', 'r', 'br', 'b', 'bl', 'l', 'tl']
3101
+ }, isArbitraryImage]
3102
+ }],
3103
+ /**
3104
+ * Background Color
3105
+ * @see https://tailwindcss.com/docs/background-color
3106
+ */
3107
+ 'bg-color': [{
3108
+ bg: [colors]
3109
+ }],
3110
+ /**
3111
+ * Gradient Color Stops From Position
3112
+ * @see https://tailwindcss.com/docs/gradient-color-stops
3113
+ */
3114
+ 'gradient-from-pos': [{
3115
+ from: [gradientColorStopPositions]
3116
+ }],
3117
+ /**
3118
+ * Gradient Color Stops Via Position
3119
+ * @see https://tailwindcss.com/docs/gradient-color-stops
3120
+ */
3121
+ 'gradient-via-pos': [{
3122
+ via: [gradientColorStopPositions]
3123
+ }],
3124
+ /**
3125
+ * Gradient Color Stops To Position
3126
+ * @see https://tailwindcss.com/docs/gradient-color-stops
3127
+ */
3128
+ 'gradient-to-pos': [{
3129
+ to: [gradientColorStopPositions]
3130
+ }],
3131
+ /**
3132
+ * Gradient Color Stops From
3133
+ * @see https://tailwindcss.com/docs/gradient-color-stops
3134
+ */
3135
+ 'gradient-from': [{
3136
+ from: [gradientColorStops]
3137
+ }],
3138
+ /**
3139
+ * Gradient Color Stops Via
3140
+ * @see https://tailwindcss.com/docs/gradient-color-stops
3141
+ */
3142
+ 'gradient-via': [{
3143
+ via: [gradientColorStops]
3144
+ }],
3145
+ /**
3146
+ * Gradient Color Stops To
3147
+ * @see https://tailwindcss.com/docs/gradient-color-stops
3148
+ */
3149
+ 'gradient-to': [{
3150
+ to: [gradientColorStops]
3151
+ }],
3152
+ // Borders
3153
+ /**
3154
+ * Border Radius
3155
+ * @see https://tailwindcss.com/docs/border-radius
3156
+ */
3157
+ rounded: [{
3158
+ rounded: [borderRadius]
3159
+ }],
3160
+ /**
3161
+ * Border Radius Start
3162
+ * @see https://tailwindcss.com/docs/border-radius
3163
+ */
3164
+ 'rounded-s': [{
3165
+ 'rounded-s': [borderRadius]
3166
+ }],
3167
+ /**
3168
+ * Border Radius End
3169
+ * @see https://tailwindcss.com/docs/border-radius
3170
+ */
3171
+ 'rounded-e': [{
3172
+ 'rounded-e': [borderRadius]
3173
+ }],
3174
+ /**
3175
+ * Border Radius Top
3176
+ * @see https://tailwindcss.com/docs/border-radius
3177
+ */
3178
+ 'rounded-t': [{
3179
+ 'rounded-t': [borderRadius]
3180
+ }],
3181
+ /**
3182
+ * Border Radius Right
3183
+ * @see https://tailwindcss.com/docs/border-radius
3184
+ */
3185
+ 'rounded-r': [{
3186
+ 'rounded-r': [borderRadius]
3187
+ }],
3188
+ /**
3189
+ * Border Radius Bottom
3190
+ * @see https://tailwindcss.com/docs/border-radius
3191
+ */
3192
+ 'rounded-b': [{
3193
+ 'rounded-b': [borderRadius]
3194
+ }],
3195
+ /**
3196
+ * Border Radius Left
3197
+ * @see https://tailwindcss.com/docs/border-radius
3198
+ */
3199
+ 'rounded-l': [{
3200
+ 'rounded-l': [borderRadius]
3201
+ }],
3202
+ /**
3203
+ * Border Radius Start Start
3204
+ * @see https://tailwindcss.com/docs/border-radius
3205
+ */
3206
+ 'rounded-ss': [{
3207
+ 'rounded-ss': [borderRadius]
3208
+ }],
3209
+ /**
3210
+ * Border Radius Start End
3211
+ * @see https://tailwindcss.com/docs/border-radius
3212
+ */
3213
+ 'rounded-se': [{
3214
+ 'rounded-se': [borderRadius]
3215
+ }],
3216
+ /**
3217
+ * Border Radius End End
3218
+ * @see https://tailwindcss.com/docs/border-radius
3219
+ */
3220
+ 'rounded-ee': [{
3221
+ 'rounded-ee': [borderRadius]
3222
+ }],
3223
+ /**
3224
+ * Border Radius End Start
3225
+ * @see https://tailwindcss.com/docs/border-radius
3226
+ */
3227
+ 'rounded-es': [{
3228
+ 'rounded-es': [borderRadius]
3229
+ }],
3230
+ /**
3231
+ * Border Radius Top Left
3232
+ * @see https://tailwindcss.com/docs/border-radius
3233
+ */
3234
+ 'rounded-tl': [{
3235
+ 'rounded-tl': [borderRadius]
3236
+ }],
3237
+ /**
3238
+ * Border Radius Top Right
3239
+ * @see https://tailwindcss.com/docs/border-radius
3240
+ */
3241
+ 'rounded-tr': [{
3242
+ 'rounded-tr': [borderRadius]
3243
+ }],
3244
+ /**
3245
+ * Border Radius Bottom Right
3246
+ * @see https://tailwindcss.com/docs/border-radius
3247
+ */
3248
+ 'rounded-br': [{
3249
+ 'rounded-br': [borderRadius]
3250
+ }],
3251
+ /**
3252
+ * Border Radius Bottom Left
3253
+ * @see https://tailwindcss.com/docs/border-radius
3254
+ */
3255
+ 'rounded-bl': [{
3256
+ 'rounded-bl': [borderRadius]
3257
+ }],
3258
+ /**
3259
+ * Border Width
3260
+ * @see https://tailwindcss.com/docs/border-width
3261
+ */
3262
+ 'border-w': [{
3263
+ border: [borderWidth]
3264
+ }],
3265
+ /**
3266
+ * Border Width X
3267
+ * @see https://tailwindcss.com/docs/border-width
3268
+ */
3269
+ 'border-w-x': [{
3270
+ 'border-x': [borderWidth]
3271
+ }],
3272
+ /**
3273
+ * Border Width Y
3274
+ * @see https://tailwindcss.com/docs/border-width
3275
+ */
3276
+ 'border-w-y': [{
3277
+ 'border-y': [borderWidth]
3278
+ }],
3279
+ /**
3280
+ * Border Width Start
3281
+ * @see https://tailwindcss.com/docs/border-width
3282
+ */
3283
+ 'border-w-s': [{
3284
+ 'border-s': [borderWidth]
3285
+ }],
3286
+ /**
3287
+ * Border Width End
3288
+ * @see https://tailwindcss.com/docs/border-width
3289
+ */
3290
+ 'border-w-e': [{
3291
+ 'border-e': [borderWidth]
3292
+ }],
3293
+ /**
3294
+ * Border Width Top
3295
+ * @see https://tailwindcss.com/docs/border-width
3296
+ */
3297
+ 'border-w-t': [{
3298
+ 'border-t': [borderWidth]
3299
+ }],
3300
+ /**
3301
+ * Border Width Right
3302
+ * @see https://tailwindcss.com/docs/border-width
3303
+ */
3304
+ 'border-w-r': [{
3305
+ 'border-r': [borderWidth]
3306
+ }],
3307
+ /**
3308
+ * Border Width Bottom
3309
+ * @see https://tailwindcss.com/docs/border-width
3310
+ */
3311
+ 'border-w-b': [{
3312
+ 'border-b': [borderWidth]
3313
+ }],
3314
+ /**
3315
+ * Border Width Left
3316
+ * @see https://tailwindcss.com/docs/border-width
3317
+ */
3318
+ 'border-w-l': [{
3319
+ 'border-l': [borderWidth]
3320
+ }],
3321
+ /**
3322
+ * Border Opacity
3323
+ * @see https://tailwindcss.com/docs/border-opacity
3324
+ */
3325
+ 'border-opacity': [{
3326
+ 'border-opacity': [opacity]
3327
+ }],
3328
+ /**
3329
+ * Border Style
3330
+ * @see https://tailwindcss.com/docs/border-style
3331
+ */
3332
+ 'border-style': [{
3333
+ border: [...getLineStyles(), 'hidden']
3334
+ }],
3335
+ /**
3336
+ * Divide Width X
3337
+ * @see https://tailwindcss.com/docs/divide-width
3338
+ */
3339
+ 'divide-x': [{
3340
+ 'divide-x': [borderWidth]
3341
+ }],
3342
+ /**
3343
+ * Divide Width X Reverse
3344
+ * @see https://tailwindcss.com/docs/divide-width
3345
+ */
3346
+ 'divide-x-reverse': ['divide-x-reverse'],
3347
+ /**
3348
+ * Divide Width Y
3349
+ * @see https://tailwindcss.com/docs/divide-width
3350
+ */
3351
+ 'divide-y': [{
3352
+ 'divide-y': [borderWidth]
3353
+ }],
3354
+ /**
3355
+ * Divide Width Y Reverse
3356
+ * @see https://tailwindcss.com/docs/divide-width
3357
+ */
3358
+ 'divide-y-reverse': ['divide-y-reverse'],
3359
+ /**
3360
+ * Divide Opacity
3361
+ * @see https://tailwindcss.com/docs/divide-opacity
3362
+ */
3363
+ 'divide-opacity': [{
3364
+ 'divide-opacity': [opacity]
3365
+ }],
3366
+ /**
3367
+ * Divide Style
3368
+ * @see https://tailwindcss.com/docs/divide-style
3369
+ */
3370
+ 'divide-style': [{
3371
+ divide: getLineStyles()
3372
+ }],
3373
+ /**
3374
+ * Border Color
3375
+ * @see https://tailwindcss.com/docs/border-color
3376
+ */
3377
+ 'border-color': [{
3378
+ border: [borderColor]
3379
+ }],
3380
+ /**
3381
+ * Border Color X
3382
+ * @see https://tailwindcss.com/docs/border-color
3383
+ */
3384
+ 'border-color-x': [{
3385
+ 'border-x': [borderColor]
3386
+ }],
3387
+ /**
3388
+ * Border Color Y
3389
+ * @see https://tailwindcss.com/docs/border-color
3390
+ */
3391
+ 'border-color-y': [{
3392
+ 'border-y': [borderColor]
3393
+ }],
3394
+ /**
3395
+ * Border Color S
3396
+ * @see https://tailwindcss.com/docs/border-color
3397
+ */
3398
+ 'border-color-s': [{
3399
+ 'border-s': [borderColor]
3400
+ }],
3401
+ /**
3402
+ * Border Color E
3403
+ * @see https://tailwindcss.com/docs/border-color
3404
+ */
3405
+ 'border-color-e': [{
3406
+ 'border-e': [borderColor]
3407
+ }],
3408
+ /**
3409
+ * Border Color Top
3410
+ * @see https://tailwindcss.com/docs/border-color
3411
+ */
3412
+ 'border-color-t': [{
3413
+ 'border-t': [borderColor]
3414
+ }],
3415
+ /**
3416
+ * Border Color Right
3417
+ * @see https://tailwindcss.com/docs/border-color
3418
+ */
3419
+ 'border-color-r': [{
3420
+ 'border-r': [borderColor]
3421
+ }],
3422
+ /**
3423
+ * Border Color Bottom
3424
+ * @see https://tailwindcss.com/docs/border-color
3425
+ */
3426
+ 'border-color-b': [{
3427
+ 'border-b': [borderColor]
3428
+ }],
3429
+ /**
3430
+ * Border Color Left
3431
+ * @see https://tailwindcss.com/docs/border-color
3432
+ */
3433
+ 'border-color-l': [{
3434
+ 'border-l': [borderColor]
3435
+ }],
3436
+ /**
3437
+ * Divide Color
3438
+ * @see https://tailwindcss.com/docs/divide-color
3439
+ */
3440
+ 'divide-color': [{
3441
+ divide: [borderColor]
3442
+ }],
3443
+ /**
3444
+ * Outline Style
3445
+ * @see https://tailwindcss.com/docs/outline-style
3446
+ */
3447
+ 'outline-style': [{
3448
+ outline: ['', ...getLineStyles()]
3449
+ }],
3450
+ /**
3451
+ * Outline Offset
3452
+ * @see https://tailwindcss.com/docs/outline-offset
3453
+ */
3454
+ 'outline-offset': [{
3455
+ 'outline-offset': [isLength, isArbitraryValue]
3456
+ }],
3457
+ /**
3458
+ * Outline Width
3459
+ * @see https://tailwindcss.com/docs/outline-width
3460
+ */
3461
+ 'outline-w': [{
3462
+ outline: [isLength, isArbitraryLength]
3463
+ }],
3464
+ /**
3465
+ * Outline Color
3466
+ * @see https://tailwindcss.com/docs/outline-color
3467
+ */
3468
+ 'outline-color': [{
3469
+ outline: [colors]
3470
+ }],
3471
+ /**
3472
+ * Ring Width
3473
+ * @see https://tailwindcss.com/docs/ring-width
3474
+ */
3475
+ 'ring-w': [{
3476
+ ring: getLengthWithEmptyAndArbitrary()
3477
+ }],
3478
+ /**
3479
+ * Ring Width Inset
3480
+ * @see https://tailwindcss.com/docs/ring-width
3481
+ */
3482
+ 'ring-w-inset': ['ring-inset'],
3483
+ /**
3484
+ * Ring Color
3485
+ * @see https://tailwindcss.com/docs/ring-color
3486
+ */
3487
+ 'ring-color': [{
3488
+ ring: [colors]
3489
+ }],
3490
+ /**
3491
+ * Ring Opacity
3492
+ * @see https://tailwindcss.com/docs/ring-opacity
3493
+ */
3494
+ 'ring-opacity': [{
3495
+ 'ring-opacity': [opacity]
3496
+ }],
3497
+ /**
3498
+ * Ring Offset Width
3499
+ * @see https://tailwindcss.com/docs/ring-offset-width
3500
+ */
3501
+ 'ring-offset-w': [{
3502
+ 'ring-offset': [isLength, isArbitraryLength]
3503
+ }],
3504
+ /**
3505
+ * Ring Offset Color
3506
+ * @see https://tailwindcss.com/docs/ring-offset-color
3507
+ */
3508
+ 'ring-offset-color': [{
3509
+ 'ring-offset': [colors]
3510
+ }],
3511
+ // Effects
3512
+ /**
3513
+ * Box Shadow
3514
+ * @see https://tailwindcss.com/docs/box-shadow
3515
+ */
3516
+ shadow: [{
3517
+ shadow: ['', 'inner', 'none', isTshirtSize, isArbitraryShadow]
3518
+ }],
3519
+ /**
3520
+ * Box Shadow Color
3521
+ * @see https://tailwindcss.com/docs/box-shadow-color
3522
+ */
3523
+ 'shadow-color': [{
3524
+ shadow: [isAny]
3525
+ }],
3526
+ /**
3527
+ * Opacity
3528
+ * @see https://tailwindcss.com/docs/opacity
3529
+ */
3530
+ opacity: [{
3531
+ opacity: [opacity]
3532
+ }],
3533
+ /**
3534
+ * Mix Blend Mode
3535
+ * @see https://tailwindcss.com/docs/mix-blend-mode
3536
+ */
3537
+ 'mix-blend': [{
3538
+ 'mix-blend': [...getBlendModes(), 'plus-lighter', 'plus-darker']
3539
+ }],
3540
+ /**
3541
+ * Background Blend Mode
3542
+ * @see https://tailwindcss.com/docs/background-blend-mode
3543
+ */
3544
+ 'bg-blend': [{
3545
+ 'bg-blend': getBlendModes()
3546
+ }],
3547
+ // Filters
3548
+ /**
3549
+ * Filter
3550
+ * @deprecated since Tailwind CSS v3.0.0
3551
+ * @see https://tailwindcss.com/docs/filter
3552
+ */
3553
+ filter: [{
3554
+ filter: ['', 'none']
3555
+ }],
3556
+ /**
3557
+ * Blur
3558
+ * @see https://tailwindcss.com/docs/blur
3559
+ */
3560
+ blur: [{
3561
+ blur: [blur]
3562
+ }],
3563
+ /**
3564
+ * Brightness
3565
+ * @see https://tailwindcss.com/docs/brightness
3566
+ */
3567
+ brightness: [{
3568
+ brightness: [brightness]
3569
+ }],
3570
+ /**
3571
+ * Contrast
3572
+ * @see https://tailwindcss.com/docs/contrast
3573
+ */
3574
+ contrast: [{
3575
+ contrast: [contrast]
3576
+ }],
3577
+ /**
3578
+ * Drop Shadow
3579
+ * @see https://tailwindcss.com/docs/drop-shadow
3580
+ */
3581
+ 'drop-shadow': [{
3582
+ 'drop-shadow': ['', 'none', isTshirtSize, isArbitraryValue]
3583
+ }],
3584
+ /**
3585
+ * Grayscale
3586
+ * @see https://tailwindcss.com/docs/grayscale
3587
+ */
3588
+ grayscale: [{
3589
+ grayscale: [grayscale]
3590
+ }],
3591
+ /**
3592
+ * Hue Rotate
3593
+ * @see https://tailwindcss.com/docs/hue-rotate
3594
+ */
3595
+ 'hue-rotate': [{
3596
+ 'hue-rotate': [hueRotate]
3597
+ }],
3598
+ /**
3599
+ * Invert
3600
+ * @see https://tailwindcss.com/docs/invert
3601
+ */
3602
+ invert: [{
3603
+ invert: [invert]
3604
+ }],
3605
+ /**
3606
+ * Saturate
3607
+ * @see https://tailwindcss.com/docs/saturate
3608
+ */
3609
+ saturate: [{
3610
+ saturate: [saturate]
3611
+ }],
3612
+ /**
3613
+ * Sepia
3614
+ * @see https://tailwindcss.com/docs/sepia
3615
+ */
3616
+ sepia: [{
3617
+ sepia: [sepia]
3618
+ }],
3619
+ /**
3620
+ * Backdrop Filter
3621
+ * @deprecated since Tailwind CSS v3.0.0
3622
+ * @see https://tailwindcss.com/docs/backdrop-filter
3623
+ */
3624
+ 'backdrop-filter': [{
3625
+ 'backdrop-filter': ['', 'none']
3626
+ }],
3627
+ /**
3628
+ * Backdrop Blur
3629
+ * @see https://tailwindcss.com/docs/backdrop-blur
3630
+ */
3631
+ 'backdrop-blur': [{
3632
+ 'backdrop-blur': [blur]
3633
+ }],
3634
+ /**
3635
+ * Backdrop Brightness
3636
+ * @see https://tailwindcss.com/docs/backdrop-brightness
3637
+ */
3638
+ 'backdrop-brightness': [{
3639
+ 'backdrop-brightness': [brightness]
3640
+ }],
3641
+ /**
3642
+ * Backdrop Contrast
3643
+ * @see https://tailwindcss.com/docs/backdrop-contrast
3644
+ */
3645
+ 'backdrop-contrast': [{
3646
+ 'backdrop-contrast': [contrast]
3647
+ }],
3648
+ /**
3649
+ * Backdrop Grayscale
3650
+ * @see https://tailwindcss.com/docs/backdrop-grayscale
3651
+ */
3652
+ 'backdrop-grayscale': [{
3653
+ 'backdrop-grayscale': [grayscale]
3654
+ }],
3655
+ /**
3656
+ * Backdrop Hue Rotate
3657
+ * @see https://tailwindcss.com/docs/backdrop-hue-rotate
3658
+ */
3659
+ 'backdrop-hue-rotate': [{
3660
+ 'backdrop-hue-rotate': [hueRotate]
3661
+ }],
3662
+ /**
3663
+ * Backdrop Invert
3664
+ * @see https://tailwindcss.com/docs/backdrop-invert
3665
+ */
3666
+ 'backdrop-invert': [{
3667
+ 'backdrop-invert': [invert]
3668
+ }],
3669
+ /**
3670
+ * Backdrop Opacity
3671
+ * @see https://tailwindcss.com/docs/backdrop-opacity
3672
+ */
3673
+ 'backdrop-opacity': [{
3674
+ 'backdrop-opacity': [opacity]
3675
+ }],
3676
+ /**
3677
+ * Backdrop Saturate
3678
+ * @see https://tailwindcss.com/docs/backdrop-saturate
3679
+ */
3680
+ 'backdrop-saturate': [{
3681
+ 'backdrop-saturate': [saturate]
3682
+ }],
3683
+ /**
3684
+ * Backdrop Sepia
3685
+ * @see https://tailwindcss.com/docs/backdrop-sepia
3686
+ */
3687
+ 'backdrop-sepia': [{
3688
+ 'backdrop-sepia': [sepia]
3689
+ }],
3690
+ // Tables
3691
+ /**
3692
+ * Border Collapse
3693
+ * @see https://tailwindcss.com/docs/border-collapse
3694
+ */
3695
+ 'border-collapse': [{
3696
+ border: ['collapse', 'separate']
3697
+ }],
3698
+ /**
3699
+ * Border Spacing
3700
+ * @see https://tailwindcss.com/docs/border-spacing
3701
+ */
3702
+ 'border-spacing': [{
3703
+ 'border-spacing': [borderSpacing]
3704
+ }],
3705
+ /**
3706
+ * Border Spacing X
3707
+ * @see https://tailwindcss.com/docs/border-spacing
3708
+ */
3709
+ 'border-spacing-x': [{
3710
+ 'border-spacing-x': [borderSpacing]
3711
+ }],
3712
+ /**
3713
+ * Border Spacing Y
3714
+ * @see https://tailwindcss.com/docs/border-spacing
3715
+ */
3716
+ 'border-spacing-y': [{
3717
+ 'border-spacing-y': [borderSpacing]
3718
+ }],
3719
+ /**
3720
+ * Table Layout
3721
+ * @see https://tailwindcss.com/docs/table-layout
3722
+ */
3723
+ 'table-layout': [{
3724
+ table: ['auto', 'fixed']
3725
+ }],
3726
+ /**
3727
+ * Caption Side
3728
+ * @see https://tailwindcss.com/docs/caption-side
3729
+ */
3730
+ caption: [{
3731
+ caption: ['top', 'bottom']
3732
+ }],
3733
+ // Transitions and Animation
3734
+ /**
3735
+ * Tranisition Property
3736
+ * @see https://tailwindcss.com/docs/transition-property
3737
+ */
3738
+ transition: [{
3739
+ transition: ['none', 'all', '', 'colors', 'opacity', 'shadow', 'transform', isArbitraryValue]
3740
+ }],
3741
+ /**
3742
+ * Transition Duration
3743
+ * @see https://tailwindcss.com/docs/transition-duration
3744
+ */
3745
+ duration: [{
3746
+ duration: getNumberAndArbitrary()
3747
+ }],
3748
+ /**
3749
+ * Transition Timing Function
3750
+ * @see https://tailwindcss.com/docs/transition-timing-function
3751
+ */
3752
+ ease: [{
3753
+ ease: ['linear', 'in', 'out', 'in-out', isArbitraryValue]
3754
+ }],
3755
+ /**
3756
+ * Transition Delay
3757
+ * @see https://tailwindcss.com/docs/transition-delay
3758
+ */
3759
+ delay: [{
3760
+ delay: getNumberAndArbitrary()
3761
+ }],
3762
+ /**
3763
+ * Animation
3764
+ * @see https://tailwindcss.com/docs/animation
3765
+ */
3766
+ animate: [{
3767
+ animate: ['none', 'spin', 'ping', 'pulse', 'bounce', isArbitraryValue]
3768
+ }],
3769
+ // Transforms
3770
+ /**
3771
+ * Transform
3772
+ * @see https://tailwindcss.com/docs/transform
3773
+ */
3774
+ transform: [{
3775
+ transform: ['', 'gpu', 'none']
3776
+ }],
3777
+ /**
3778
+ * Scale
3779
+ * @see https://tailwindcss.com/docs/scale
3780
+ */
3781
+ scale: [{
3782
+ scale: [scale]
3783
+ }],
3784
+ /**
3785
+ * Scale X
3786
+ * @see https://tailwindcss.com/docs/scale
3787
+ */
3788
+ 'scale-x': [{
3789
+ 'scale-x': [scale]
3790
+ }],
3791
+ /**
3792
+ * Scale Y
3793
+ * @see https://tailwindcss.com/docs/scale
3794
+ */
3795
+ 'scale-y': [{
3796
+ 'scale-y': [scale]
3797
+ }],
3798
+ /**
3799
+ * Rotate
3800
+ * @see https://tailwindcss.com/docs/rotate
3801
+ */
3802
+ rotate: [{
3803
+ rotate: [isInteger, isArbitraryValue]
3804
+ }],
3805
+ /**
3806
+ * Translate X
3807
+ * @see https://tailwindcss.com/docs/translate
3808
+ */
3809
+ 'translate-x': [{
3810
+ 'translate-x': [translate]
3811
+ }],
3812
+ /**
3813
+ * Translate Y
3814
+ * @see https://tailwindcss.com/docs/translate
3815
+ */
3816
+ 'translate-y': [{
3817
+ 'translate-y': [translate]
3818
+ }],
3819
+ /**
3820
+ * Skew X
3821
+ * @see https://tailwindcss.com/docs/skew
3822
+ */
3823
+ 'skew-x': [{
3824
+ 'skew-x': [skew]
3825
+ }],
3826
+ /**
3827
+ * Skew Y
3828
+ * @see https://tailwindcss.com/docs/skew
3829
+ */
3830
+ 'skew-y': [{
3831
+ 'skew-y': [skew]
3832
+ }],
3833
+ /**
3834
+ * Transform Origin
3835
+ * @see https://tailwindcss.com/docs/transform-origin
3836
+ */
3837
+ 'transform-origin': [{
3838
+ origin: ['center', 'top', 'top-right', 'right', 'bottom-right', 'bottom', 'bottom-left', 'left', 'top-left', isArbitraryValue]
3839
+ }],
3840
+ // Interactivity
3841
+ /**
3842
+ * Accent Color
3843
+ * @see https://tailwindcss.com/docs/accent-color
3844
+ */
3845
+ accent: [{
3846
+ accent: ['auto', colors]
3847
+ }],
3848
+ /**
3849
+ * Appearance
3850
+ * @see https://tailwindcss.com/docs/appearance
3851
+ */
3852
+ appearance: [{
3853
+ appearance: ['none', 'auto']
3854
+ }],
3855
+ /**
3856
+ * Cursor
3857
+ * @see https://tailwindcss.com/docs/cursor
3858
+ */
3859
+ cursor: [{
3860
+ cursor: ['auto', 'default', 'pointer', 'wait', 'text', 'move', 'help', 'not-allowed', 'none', 'context-menu', 'progress', 'cell', 'crosshair', 'vertical-text', 'alias', 'copy', 'no-drop', 'grab', 'grabbing', 'all-scroll', 'col-resize', 'row-resize', 'n-resize', 'e-resize', 's-resize', 'w-resize', 'ne-resize', 'nw-resize', 'se-resize', 'sw-resize', 'ew-resize', 'ns-resize', 'nesw-resize', 'nwse-resize', 'zoom-in', 'zoom-out', isArbitraryValue]
3861
+ }],
3862
+ /**
3863
+ * Caret Color
3864
+ * @see https://tailwindcss.com/docs/just-in-time-mode#caret-color-utilities
3865
+ */
3866
+ 'caret-color': [{
3867
+ caret: [colors]
3868
+ }],
3869
+ /**
3870
+ * Pointer Events
3871
+ * @see https://tailwindcss.com/docs/pointer-events
3872
+ */
3873
+ 'pointer-events': [{
3874
+ 'pointer-events': ['none', 'auto']
3875
+ }],
3876
+ /**
3877
+ * Resize
3878
+ * @see https://tailwindcss.com/docs/resize
3879
+ */
3880
+ resize: [{
3881
+ resize: ['none', 'y', 'x', '']
3882
+ }],
3883
+ /**
3884
+ * Scroll Behavior
3885
+ * @see https://tailwindcss.com/docs/scroll-behavior
3886
+ */
3887
+ 'scroll-behavior': [{
3888
+ scroll: ['auto', 'smooth']
3889
+ }],
3890
+ /**
3891
+ * Scroll Margin
3892
+ * @see https://tailwindcss.com/docs/scroll-margin
3893
+ */
3894
+ 'scroll-m': [{
3895
+ 'scroll-m': getSpacingWithArbitrary()
3896
+ }],
3897
+ /**
3898
+ * Scroll Margin X
3899
+ * @see https://tailwindcss.com/docs/scroll-margin
3900
+ */
3901
+ 'scroll-mx': [{
3902
+ 'scroll-mx': getSpacingWithArbitrary()
3903
+ }],
3904
+ /**
3905
+ * Scroll Margin Y
3906
+ * @see https://tailwindcss.com/docs/scroll-margin
3907
+ */
3908
+ 'scroll-my': [{
3909
+ 'scroll-my': getSpacingWithArbitrary()
3910
+ }],
3911
+ /**
3912
+ * Scroll Margin Start
3913
+ * @see https://tailwindcss.com/docs/scroll-margin
3914
+ */
3915
+ 'scroll-ms': [{
3916
+ 'scroll-ms': getSpacingWithArbitrary()
3917
+ }],
3918
+ /**
3919
+ * Scroll Margin End
3920
+ * @see https://tailwindcss.com/docs/scroll-margin
3921
+ */
3922
+ 'scroll-me': [{
3923
+ 'scroll-me': getSpacingWithArbitrary()
3924
+ }],
3925
+ /**
3926
+ * Scroll Margin Top
3927
+ * @see https://tailwindcss.com/docs/scroll-margin
3928
+ */
3929
+ 'scroll-mt': [{
3930
+ 'scroll-mt': getSpacingWithArbitrary()
3931
+ }],
3932
+ /**
3933
+ * Scroll Margin Right
3934
+ * @see https://tailwindcss.com/docs/scroll-margin
3935
+ */
3936
+ 'scroll-mr': [{
3937
+ 'scroll-mr': getSpacingWithArbitrary()
3938
+ }],
3939
+ /**
3940
+ * Scroll Margin Bottom
3941
+ * @see https://tailwindcss.com/docs/scroll-margin
3942
+ */
3943
+ 'scroll-mb': [{
3944
+ 'scroll-mb': getSpacingWithArbitrary()
3945
+ }],
3946
+ /**
3947
+ * Scroll Margin Left
3948
+ * @see https://tailwindcss.com/docs/scroll-margin
3949
+ */
3950
+ 'scroll-ml': [{
3951
+ 'scroll-ml': getSpacingWithArbitrary()
3952
+ }],
3953
+ /**
3954
+ * Scroll Padding
3955
+ * @see https://tailwindcss.com/docs/scroll-padding
3956
+ */
3957
+ 'scroll-p': [{
3958
+ 'scroll-p': getSpacingWithArbitrary()
3959
+ }],
3960
+ /**
3961
+ * Scroll Padding X
3962
+ * @see https://tailwindcss.com/docs/scroll-padding
3963
+ */
3964
+ 'scroll-px': [{
3965
+ 'scroll-px': getSpacingWithArbitrary()
3966
+ }],
3967
+ /**
3968
+ * Scroll Padding Y
3969
+ * @see https://tailwindcss.com/docs/scroll-padding
3970
+ */
3971
+ 'scroll-py': [{
3972
+ 'scroll-py': getSpacingWithArbitrary()
3973
+ }],
3974
+ /**
3975
+ * Scroll Padding Start
3976
+ * @see https://tailwindcss.com/docs/scroll-padding
3977
+ */
3978
+ 'scroll-ps': [{
3979
+ 'scroll-ps': getSpacingWithArbitrary()
3980
+ }],
3981
+ /**
3982
+ * Scroll Padding End
3983
+ * @see https://tailwindcss.com/docs/scroll-padding
3984
+ */
3985
+ 'scroll-pe': [{
3986
+ 'scroll-pe': getSpacingWithArbitrary()
3987
+ }],
3988
+ /**
3989
+ * Scroll Padding Top
3990
+ * @see https://tailwindcss.com/docs/scroll-padding
3991
+ */
3992
+ 'scroll-pt': [{
3993
+ 'scroll-pt': getSpacingWithArbitrary()
3994
+ }],
3995
+ /**
3996
+ * Scroll Padding Right
3997
+ * @see https://tailwindcss.com/docs/scroll-padding
3998
+ */
3999
+ 'scroll-pr': [{
4000
+ 'scroll-pr': getSpacingWithArbitrary()
4001
+ }],
4002
+ /**
4003
+ * Scroll Padding Bottom
4004
+ * @see https://tailwindcss.com/docs/scroll-padding
4005
+ */
4006
+ 'scroll-pb': [{
4007
+ 'scroll-pb': getSpacingWithArbitrary()
4008
+ }],
4009
+ /**
4010
+ * Scroll Padding Left
4011
+ * @see https://tailwindcss.com/docs/scroll-padding
4012
+ */
4013
+ 'scroll-pl': [{
4014
+ 'scroll-pl': getSpacingWithArbitrary()
4015
+ }],
4016
+ /**
4017
+ * Scroll Snap Align
4018
+ * @see https://tailwindcss.com/docs/scroll-snap-align
4019
+ */
4020
+ 'snap-align': [{
4021
+ snap: ['start', 'end', 'center', 'align-none']
4022
+ }],
4023
+ /**
4024
+ * Scroll Snap Stop
4025
+ * @see https://tailwindcss.com/docs/scroll-snap-stop
4026
+ */
4027
+ 'snap-stop': [{
4028
+ snap: ['normal', 'always']
4029
+ }],
4030
+ /**
4031
+ * Scroll Snap Type
4032
+ * @see https://tailwindcss.com/docs/scroll-snap-type
4033
+ */
4034
+ 'snap-type': [{
4035
+ snap: ['none', 'x', 'y', 'both']
4036
+ }],
4037
+ /**
4038
+ * Scroll Snap Type Strictness
4039
+ * @see https://tailwindcss.com/docs/scroll-snap-type
4040
+ */
4041
+ 'snap-strictness': [{
4042
+ snap: ['mandatory', 'proximity']
4043
+ }],
4044
+ /**
4045
+ * Touch Action
4046
+ * @see https://tailwindcss.com/docs/touch-action
4047
+ */
4048
+ touch: [{
4049
+ touch: ['auto', 'none', 'manipulation']
4050
+ }],
4051
+ /**
4052
+ * Touch Action X
4053
+ * @see https://tailwindcss.com/docs/touch-action
4054
+ */
4055
+ 'touch-x': [{
4056
+ 'touch-pan': ['x', 'left', 'right']
4057
+ }],
4058
+ /**
4059
+ * Touch Action Y
4060
+ * @see https://tailwindcss.com/docs/touch-action
4061
+ */
4062
+ 'touch-y': [{
4063
+ 'touch-pan': ['y', 'up', 'down']
4064
+ }],
4065
+ /**
4066
+ * Touch Action Pinch Zoom
4067
+ * @see https://tailwindcss.com/docs/touch-action
4068
+ */
4069
+ 'touch-pz': ['touch-pinch-zoom'],
4070
+ /**
4071
+ * User Select
4072
+ * @see https://tailwindcss.com/docs/user-select
4073
+ */
4074
+ select: [{
4075
+ select: ['none', 'text', 'all', 'auto']
4076
+ }],
4077
+ /**
4078
+ * Will Change
4079
+ * @see https://tailwindcss.com/docs/will-change
4080
+ */
4081
+ 'will-change': [{
4082
+ 'will-change': ['auto', 'scroll', 'contents', 'transform', isArbitraryValue]
4083
+ }],
4084
+ // SVG
4085
+ /**
4086
+ * Fill
4087
+ * @see https://tailwindcss.com/docs/fill
4088
+ */
4089
+ fill: [{
4090
+ fill: [colors, 'none']
4091
+ }],
4092
+ /**
4093
+ * Stroke Width
4094
+ * @see https://tailwindcss.com/docs/stroke-width
4095
+ */
4096
+ 'stroke-w': [{
4097
+ stroke: [isLength, isArbitraryLength, isArbitraryNumber]
4098
+ }],
4099
+ /**
4100
+ * Stroke
4101
+ * @see https://tailwindcss.com/docs/stroke
4102
+ */
4103
+ stroke: [{
4104
+ stroke: [colors, 'none']
4105
+ }],
4106
+ // Accessibility
4107
+ /**
4108
+ * Screen Readers
4109
+ * @see https://tailwindcss.com/docs/screen-readers
4110
+ */
4111
+ sr: ['sr-only', 'not-sr-only'],
4112
+ /**
4113
+ * Forced Color Adjust
4114
+ * @see https://tailwindcss.com/docs/forced-color-adjust
4115
+ */
4116
+ 'forced-color-adjust': [{
4117
+ 'forced-color-adjust': ['auto', 'none']
4118
+ }]
4119
+ },
4120
+ conflictingClassGroups: {
4121
+ overflow: ['overflow-x', 'overflow-y'],
4122
+ overscroll: ['overscroll-x', 'overscroll-y'],
4123
+ inset: ['inset-x', 'inset-y', 'start', 'end', 'top', 'right', 'bottom', 'left'],
4124
+ 'inset-x': ['right', 'left'],
4125
+ 'inset-y': ['top', 'bottom'],
4126
+ flex: ['basis', 'grow', 'shrink'],
4127
+ gap: ['gap-x', 'gap-y'],
4128
+ p: ['px', 'py', 'ps', 'pe', 'pt', 'pr', 'pb', 'pl'],
4129
+ px: ['pr', 'pl'],
4130
+ py: ['pt', 'pb'],
4131
+ m: ['mx', 'my', 'ms', 'me', 'mt', 'mr', 'mb', 'ml'],
4132
+ mx: ['mr', 'ml'],
4133
+ my: ['mt', 'mb'],
4134
+ size: ['w', 'h'],
4135
+ 'font-size': ['leading'],
4136
+ 'fvn-normal': ['fvn-ordinal', 'fvn-slashed-zero', 'fvn-figure', 'fvn-spacing', 'fvn-fraction'],
4137
+ 'fvn-ordinal': ['fvn-normal'],
4138
+ 'fvn-slashed-zero': ['fvn-normal'],
4139
+ 'fvn-figure': ['fvn-normal'],
4140
+ 'fvn-spacing': ['fvn-normal'],
4141
+ 'fvn-fraction': ['fvn-normal'],
4142
+ 'line-clamp': ['display', 'overflow'],
4143
+ rounded: ['rounded-s', 'rounded-e', 'rounded-t', 'rounded-r', 'rounded-b', 'rounded-l', 'rounded-ss', 'rounded-se', 'rounded-ee', 'rounded-es', 'rounded-tl', 'rounded-tr', 'rounded-br', 'rounded-bl'],
4144
+ 'rounded-s': ['rounded-ss', 'rounded-es'],
4145
+ 'rounded-e': ['rounded-se', 'rounded-ee'],
4146
+ 'rounded-t': ['rounded-tl', 'rounded-tr'],
4147
+ 'rounded-r': ['rounded-tr', 'rounded-br'],
4148
+ 'rounded-b': ['rounded-br', 'rounded-bl'],
4149
+ 'rounded-l': ['rounded-tl', 'rounded-bl'],
4150
+ 'border-spacing': ['border-spacing-x', 'border-spacing-y'],
4151
+ 'border-w': ['border-w-s', 'border-w-e', 'border-w-t', 'border-w-r', 'border-w-b', 'border-w-l'],
4152
+ 'border-w-x': ['border-w-r', 'border-w-l'],
4153
+ 'border-w-y': ['border-w-t', 'border-w-b'],
4154
+ 'border-color': ['border-color-s', 'border-color-e', 'border-color-t', 'border-color-r', 'border-color-b', 'border-color-l'],
4155
+ 'border-color-x': ['border-color-r', 'border-color-l'],
4156
+ 'border-color-y': ['border-color-t', 'border-color-b'],
4157
+ 'scroll-m': ['scroll-mx', 'scroll-my', 'scroll-ms', 'scroll-me', 'scroll-mt', 'scroll-mr', 'scroll-mb', 'scroll-ml'],
4158
+ 'scroll-mx': ['scroll-mr', 'scroll-ml'],
4159
+ 'scroll-my': ['scroll-mt', 'scroll-mb'],
4160
+ 'scroll-p': ['scroll-px', 'scroll-py', 'scroll-ps', 'scroll-pe', 'scroll-pt', 'scroll-pr', 'scroll-pb', 'scroll-pl'],
4161
+ 'scroll-px': ['scroll-pr', 'scroll-pl'],
4162
+ 'scroll-py': ['scroll-pt', 'scroll-pb'],
4163
+ touch: ['touch-x', 'touch-y', 'touch-pz'],
4164
+ 'touch-x': ['touch'],
4165
+ 'touch-y': ['touch'],
4166
+ 'touch-pz': ['touch']
4167
+ },
4168
+ conflictingClassGroupModifiers: {
4169
+ 'font-size': ['leading']
4170
+ }
4171
+ };
4172
+ };
4173
+ const twMerge = /*#__PURE__*/createTailwindMerge(getDefaultConfig);
4174
+
4175
+ function cn() {
4176
+ var inputs = [];
4177
+ for (var _i = 0; _i < arguments.length; _i++) {
4178
+ inputs[_i] = arguments[_i];
4179
+ }
4180
+ return twMerge(clsx(inputs));
4181
+ }
4182
+
4183
+ var buttonVariants = cva("inline-flex items-center justify-center whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50", {
4184
+ variants: {
4185
+ variant: {
4186
+ default: "bg-primary text-primary-foreground hover:bg-primary/90",
4187
+ destructive: "bg-destructive text-destructive-foreground hover:bg-destructive/90",
4188
+ outline: "border border-input bg-background hover:bg-accent hover:text-accent-foreground",
4189
+ secondary: "bg-secondary text-secondary-foreground hover:bg-secondary/80",
4190
+ ghost: "hover:bg-accent hover:text-accent-foreground",
4191
+ link: "text-primary underline-offset-4 hover:underline",
4192
+ },
4193
+ size: {
4194
+ default: "h-10 px-4 py-2",
4195
+ sm: "h-9 rounded-md px-3",
4196
+ lg: "h-11 rounded-md px-8",
4197
+ icon: "h-10 w-10",
4198
+ },
4199
+ fullWidth: {
4200
+ true: "w-full",
4201
+ },
4202
+ },
4203
+ defaultVariants: {
4204
+ variant: "default",
4205
+ size: "default",
4206
+ },
4207
+ });
4208
+ var Button = React__namespace.forwardRef(function (_a, ref) {
4209
+ var className = _a.className, variant = _a.variant, size = _a.size, fullWidth = _a.fullWidth, _b = _a.asChild, asChild = _b === void 0 ? false : _b, _c = _a.loading, loading = _c === void 0 ? false : _c, icon = _a.icon, children = _a.children, props = __rest(_a, ["className", "variant", "size", "fullWidth", "asChild", "loading", "icon", "children"]);
4210
+ var Comp = asChild ? Slot : "button";
4211
+ return (jsxRuntimeExports.jsxs(Comp, __assign({ className: cn(buttonVariants({ variant: variant, size: size, fullWidth: fullWidth, className: className })), ref: ref, disabled: props.disabled || loading }, props, { children: [loading ? (jsxRuntimeExports.jsx(LoaderCircle, { className: "mr-2 h-4 w-4 animate-spin" })) : icon ? (jsxRuntimeExports.jsx("span", { className: "mr-2", children: icon })) : null, children] })));
4212
+ });
4213
+ Button.displayName = "Button";
7
4214
 
8
- exports.hello = hello;
4215
+ exports.Button = Button;
9
4216
  //# sourceMappingURL=index.js.map