banhaten-ui 1.0.1 → 1.0.2

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,4110 @@
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;
6
67
  };
7
68
 
8
- exports.hello = hello;
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 });
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
+ 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}
1579
+
1580
+ const CLASS_PART_SEPARATOR = '-';
1581
+ const createClassGroupUtils = config => {
1582
+ const classMap = createClassMap(config);
1583
+ const {
1584
+ conflictingClassGroups,
1585
+ conflictingClassGroupModifiers
1586
+ } = config;
1587
+ const getClassGroupId = className => {
1588
+ const classParts = className.split(CLASS_PART_SEPARATOR);
1589
+ // 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.
1590
+ if (classParts[0] === '' && classParts.length !== 1) {
1591
+ classParts.shift();
1592
+ }
1593
+ return getGroupRecursive(classParts, classMap) || getGroupIdForArbitraryProperty(className);
1594
+ };
1595
+ const getConflictingClassGroupIds = (classGroupId, hasPostfixModifier) => {
1596
+ const conflicts = conflictingClassGroups[classGroupId] || [];
1597
+ if (hasPostfixModifier && conflictingClassGroupModifiers[classGroupId]) {
1598
+ return [...conflicts, ...conflictingClassGroupModifiers[classGroupId]];
1599
+ }
1600
+ return conflicts;
1601
+ };
1602
+ return {
1603
+ getClassGroupId,
1604
+ getConflictingClassGroupIds
1605
+ };
1606
+ };
1607
+ const getGroupRecursive = (classParts, classPartObject) => {
1608
+ if (classParts.length === 0) {
1609
+ return classPartObject.classGroupId;
1610
+ }
1611
+ const currentClassPart = classParts[0];
1612
+ const nextClassPartObject = classPartObject.nextPart.get(currentClassPart);
1613
+ const classGroupFromNextClassPart = nextClassPartObject ? getGroupRecursive(classParts.slice(1), nextClassPartObject) : undefined;
1614
+ if (classGroupFromNextClassPart) {
1615
+ return classGroupFromNextClassPart;
1616
+ }
1617
+ if (classPartObject.validators.length === 0) {
1618
+ return undefined;
1619
+ }
1620
+ const classRest = classParts.join(CLASS_PART_SEPARATOR);
1621
+ return classPartObject.validators.find(({
1622
+ validator
1623
+ }) => validator(classRest))?.classGroupId;
1624
+ };
1625
+ const arbitraryPropertyRegex = /^\[(.+)\]$/;
1626
+ const getGroupIdForArbitraryProperty = className => {
1627
+ if (arbitraryPropertyRegex.test(className)) {
1628
+ const arbitraryPropertyClassName = arbitraryPropertyRegex.exec(className)[1];
1629
+ const property = arbitraryPropertyClassName?.substring(0, arbitraryPropertyClassName.indexOf(':'));
1630
+ if (property) {
1631
+ // I use two dots here because one dot is used as prefix for class groups in plugins
1632
+ return 'arbitrary..' + property;
1633
+ }
1634
+ }
1635
+ };
1636
+ /**
1637
+ * Exported for testing only
1638
+ */
1639
+ const createClassMap = config => {
1640
+ const {
1641
+ theme,
1642
+ prefix
1643
+ } = config;
1644
+ const classMap = {
1645
+ nextPart: new Map(),
1646
+ validators: []
1647
+ };
1648
+ const prefixedClassGroupEntries = getPrefixedClassGroupEntries(Object.entries(config.classGroups), prefix);
1649
+ prefixedClassGroupEntries.forEach(([classGroupId, classGroup]) => {
1650
+ processClassesRecursively(classGroup, classMap, classGroupId, theme);
1651
+ });
1652
+ return classMap;
1653
+ };
1654
+ const processClassesRecursively = (classGroup, classPartObject, classGroupId, theme) => {
1655
+ classGroup.forEach(classDefinition => {
1656
+ if (typeof classDefinition === 'string') {
1657
+ const classPartObjectToEdit = classDefinition === '' ? classPartObject : getPart(classPartObject, classDefinition);
1658
+ classPartObjectToEdit.classGroupId = classGroupId;
1659
+ return;
1660
+ }
1661
+ if (typeof classDefinition === 'function') {
1662
+ if (isThemeGetter(classDefinition)) {
1663
+ processClassesRecursively(classDefinition(theme), classPartObject, classGroupId, theme);
1664
+ return;
1665
+ }
1666
+ classPartObject.validators.push({
1667
+ validator: classDefinition,
1668
+ classGroupId
1669
+ });
1670
+ return;
1671
+ }
1672
+ Object.entries(classDefinition).forEach(([key, classGroup]) => {
1673
+ processClassesRecursively(classGroup, getPart(classPartObject, key), classGroupId, theme);
1674
+ });
1675
+ });
1676
+ };
1677
+ const getPart = (classPartObject, path) => {
1678
+ let currentClassPartObject = classPartObject;
1679
+ path.split(CLASS_PART_SEPARATOR).forEach(pathPart => {
1680
+ if (!currentClassPartObject.nextPart.has(pathPart)) {
1681
+ currentClassPartObject.nextPart.set(pathPart, {
1682
+ nextPart: new Map(),
1683
+ validators: []
1684
+ });
1685
+ }
1686
+ currentClassPartObject = currentClassPartObject.nextPart.get(pathPart);
1687
+ });
1688
+ return currentClassPartObject;
1689
+ };
1690
+ const isThemeGetter = func => func.isThemeGetter;
1691
+ const getPrefixedClassGroupEntries = (classGroupEntries, prefix) => {
1692
+ if (!prefix) {
1693
+ return classGroupEntries;
1694
+ }
1695
+ return classGroupEntries.map(([classGroupId, classGroup]) => {
1696
+ const prefixedClassGroup = classGroup.map(classDefinition => {
1697
+ if (typeof classDefinition === 'string') {
1698
+ return prefix + classDefinition;
1699
+ }
1700
+ if (typeof classDefinition === 'object') {
1701
+ return Object.fromEntries(Object.entries(classDefinition).map(([key, value]) => [prefix + key, value]));
1702
+ }
1703
+ return classDefinition;
1704
+ });
1705
+ return [classGroupId, prefixedClassGroup];
1706
+ });
1707
+ };
1708
+
1709
+ // LRU cache inspired from hashlru (https://github.com/dominictarr/hashlru/blob/v1.0.4/index.js) but object replaced with Map to improve performance
1710
+ const createLruCache = maxCacheSize => {
1711
+ if (maxCacheSize < 1) {
1712
+ return {
1713
+ get: () => undefined,
1714
+ set: () => {}
1715
+ };
1716
+ }
1717
+ let cacheSize = 0;
1718
+ let cache = new Map();
1719
+ let previousCache = new Map();
1720
+ const update = (key, value) => {
1721
+ cache.set(key, value);
1722
+ cacheSize++;
1723
+ if (cacheSize > maxCacheSize) {
1724
+ cacheSize = 0;
1725
+ previousCache = cache;
1726
+ cache = new Map();
1727
+ }
1728
+ };
1729
+ return {
1730
+ get(key) {
1731
+ let value = cache.get(key);
1732
+ if (value !== undefined) {
1733
+ return value;
1734
+ }
1735
+ if ((value = previousCache.get(key)) !== undefined) {
1736
+ update(key, value);
1737
+ return value;
1738
+ }
1739
+ },
1740
+ set(key, value) {
1741
+ if (cache.has(key)) {
1742
+ cache.set(key, value);
1743
+ } else {
1744
+ update(key, value);
1745
+ }
1746
+ }
1747
+ };
1748
+ };
1749
+ const IMPORTANT_MODIFIER = '!';
1750
+ const createParseClassName = config => {
1751
+ const {
1752
+ separator,
1753
+ experimentalParseClassName
1754
+ } = config;
1755
+ const isSeparatorSingleCharacter = separator.length === 1;
1756
+ const firstSeparatorCharacter = separator[0];
1757
+ const separatorLength = separator.length;
1758
+ // parseClassName inspired by https://github.com/tailwindlabs/tailwindcss/blob/v3.2.2/src/util/splitAtTopLevelOnly.js
1759
+ const parseClassName = className => {
1760
+ const modifiers = [];
1761
+ let bracketDepth = 0;
1762
+ let modifierStart = 0;
1763
+ let postfixModifierPosition;
1764
+ for (let index = 0; index < className.length; index++) {
1765
+ let currentCharacter = className[index];
1766
+ if (bracketDepth === 0) {
1767
+ if (currentCharacter === firstSeparatorCharacter && (isSeparatorSingleCharacter || className.slice(index, index + separatorLength) === separator)) {
1768
+ modifiers.push(className.slice(modifierStart, index));
1769
+ modifierStart = index + separatorLength;
1770
+ continue;
1771
+ }
1772
+ if (currentCharacter === '/') {
1773
+ postfixModifierPosition = index;
1774
+ continue;
1775
+ }
1776
+ }
1777
+ if (currentCharacter === '[') {
1778
+ bracketDepth++;
1779
+ } else if (currentCharacter === ']') {
1780
+ bracketDepth--;
1781
+ }
1782
+ }
1783
+ const baseClassNameWithImportantModifier = modifiers.length === 0 ? className : className.substring(modifierStart);
1784
+ const hasImportantModifier = baseClassNameWithImportantModifier.startsWith(IMPORTANT_MODIFIER);
1785
+ const baseClassName = hasImportantModifier ? baseClassNameWithImportantModifier.substring(1) : baseClassNameWithImportantModifier;
1786
+ const maybePostfixModifierPosition = postfixModifierPosition && postfixModifierPosition > modifierStart ? postfixModifierPosition - modifierStart : undefined;
1787
+ return {
1788
+ modifiers,
1789
+ hasImportantModifier,
1790
+ baseClassName,
1791
+ maybePostfixModifierPosition
1792
+ };
1793
+ };
1794
+ if (experimentalParseClassName) {
1795
+ return className => experimentalParseClassName({
1796
+ className,
1797
+ parseClassName
1798
+ });
1799
+ }
1800
+ return parseClassName;
1801
+ };
1802
+ /**
1803
+ * Sorts modifiers according to following schema:
1804
+ * - Predefined modifiers are sorted alphabetically
1805
+ * - When an arbitrary variant appears, it must be preserved which modifiers are before and after it
1806
+ */
1807
+ const sortModifiers = modifiers => {
1808
+ if (modifiers.length <= 1) {
1809
+ return modifiers;
1810
+ }
1811
+ const sortedModifiers = [];
1812
+ let unsortedModifiers = [];
1813
+ modifiers.forEach(modifier => {
1814
+ const isArbitraryVariant = modifier[0] === '[';
1815
+ if (isArbitraryVariant) {
1816
+ sortedModifiers.push(...unsortedModifiers.sort(), modifier);
1817
+ unsortedModifiers = [];
1818
+ } else {
1819
+ unsortedModifiers.push(modifier);
1820
+ }
1821
+ });
1822
+ sortedModifiers.push(...unsortedModifiers.sort());
1823
+ return sortedModifiers;
1824
+ };
1825
+ const createConfigUtils = config => ({
1826
+ cache: createLruCache(config.cacheSize),
1827
+ parseClassName: createParseClassName(config),
1828
+ ...createClassGroupUtils(config)
1829
+ });
1830
+ const SPLIT_CLASSES_REGEX = /\s+/;
1831
+ const mergeClassList = (classList, configUtils) => {
1832
+ const {
1833
+ parseClassName,
1834
+ getClassGroupId,
1835
+ getConflictingClassGroupIds
1836
+ } = configUtils;
1837
+ /**
1838
+ * Set of classGroupIds in following format:
1839
+ * `{importantModifier}{variantModifiers}{classGroupId}`
1840
+ * @example 'float'
1841
+ * @example 'hover:focus:bg-color'
1842
+ * @example 'md:!pr'
1843
+ */
1844
+ const classGroupsInConflict = [];
1845
+ const classNames = classList.trim().split(SPLIT_CLASSES_REGEX);
1846
+ let result = '';
1847
+ for (let index = classNames.length - 1; index >= 0; index -= 1) {
1848
+ const originalClassName = classNames[index];
1849
+ const {
1850
+ modifiers,
1851
+ hasImportantModifier,
1852
+ baseClassName,
1853
+ maybePostfixModifierPosition
1854
+ } = parseClassName(originalClassName);
1855
+ let hasPostfixModifier = Boolean(maybePostfixModifierPosition);
1856
+ let classGroupId = getClassGroupId(hasPostfixModifier ? baseClassName.substring(0, maybePostfixModifierPosition) : baseClassName);
1857
+ if (!classGroupId) {
1858
+ if (!hasPostfixModifier) {
1859
+ // Not a Tailwind class
1860
+ result = originalClassName + (result.length > 0 ? ' ' + result : result);
1861
+ continue;
1862
+ }
1863
+ classGroupId = getClassGroupId(baseClassName);
1864
+ if (!classGroupId) {
1865
+ // Not a Tailwind class
1866
+ result = originalClassName + (result.length > 0 ? ' ' + result : result);
1867
+ continue;
1868
+ }
1869
+ hasPostfixModifier = false;
1870
+ }
1871
+ const variantModifier = sortModifiers(modifiers).join(':');
1872
+ const modifierId = hasImportantModifier ? variantModifier + IMPORTANT_MODIFIER : variantModifier;
1873
+ const classId = modifierId + classGroupId;
1874
+ if (classGroupsInConflict.includes(classId)) {
1875
+ // Tailwind class omitted due to conflict
1876
+ continue;
1877
+ }
1878
+ classGroupsInConflict.push(classId);
1879
+ const conflictGroups = getConflictingClassGroupIds(classGroupId, hasPostfixModifier);
1880
+ for (let i = 0; i < conflictGroups.length; ++i) {
1881
+ const group = conflictGroups[i];
1882
+ classGroupsInConflict.push(modifierId + group);
1883
+ }
1884
+ // Tailwind class not in conflict
1885
+ result = originalClassName + (result.length > 0 ? ' ' + result : result);
1886
+ }
1887
+ return result;
1888
+ };
1889
+
1890
+ /**
1891
+ * The code in this file is copied from https://github.com/lukeed/clsx and modified to suit the needs of tailwind-merge better.
1892
+ *
1893
+ * Specifically:
1894
+ * - Runtime code from https://github.com/lukeed/clsx/blob/v1.2.1/src/index.js
1895
+ * - TypeScript types from https://github.com/lukeed/clsx/blob/v1.2.1/clsx.d.ts
1896
+ *
1897
+ * Original code has MIT license: Copyright (c) Luke Edwards <luke.edwards05@gmail.com> (lukeed.com)
1898
+ */
1899
+ function twJoin() {
1900
+ let index = 0;
1901
+ let argument;
1902
+ let resolvedValue;
1903
+ let string = '';
1904
+ while (index < arguments.length) {
1905
+ if (argument = arguments[index++]) {
1906
+ if (resolvedValue = toValue(argument)) {
1907
+ string && (string += ' ');
1908
+ string += resolvedValue;
1909
+ }
1910
+ }
1911
+ }
1912
+ return string;
1913
+ }
1914
+ const toValue = mix => {
1915
+ if (typeof mix === 'string') {
1916
+ return mix;
1917
+ }
1918
+ let resolvedValue;
1919
+ let string = '';
1920
+ for (let k = 0; k < mix.length; k++) {
1921
+ if (mix[k]) {
1922
+ if (resolvedValue = toValue(mix[k])) {
1923
+ string && (string += ' ');
1924
+ string += resolvedValue;
1925
+ }
1926
+ }
1927
+ }
1928
+ return string;
1929
+ };
1930
+ function createTailwindMerge(createConfigFirst, ...createConfigRest) {
1931
+ let configUtils;
1932
+ let cacheGet;
1933
+ let cacheSet;
1934
+ let functionToCall = initTailwindMerge;
1935
+ function initTailwindMerge(classList) {
1936
+ const config = createConfigRest.reduce((previousConfig, createConfigCurrent) => createConfigCurrent(previousConfig), createConfigFirst());
1937
+ configUtils = createConfigUtils(config);
1938
+ cacheGet = configUtils.cache.get;
1939
+ cacheSet = configUtils.cache.set;
1940
+ functionToCall = tailwindMerge;
1941
+ return tailwindMerge(classList);
1942
+ }
1943
+ function tailwindMerge(classList) {
1944
+ const cachedResult = cacheGet(classList);
1945
+ if (cachedResult) {
1946
+ return cachedResult;
1947
+ }
1948
+ const result = mergeClassList(classList, configUtils);
1949
+ cacheSet(classList, result);
1950
+ return result;
1951
+ }
1952
+ return function callTailwindMerge() {
1953
+ return functionToCall(twJoin.apply(null, arguments));
1954
+ };
1955
+ }
1956
+ const fromTheme = key => {
1957
+ const themeGetter = theme => theme[key] || [];
1958
+ themeGetter.isThemeGetter = true;
1959
+ return themeGetter;
1960
+ };
1961
+ const arbitraryValueRegex = /^\[(?:([a-z-]+):)?(.+)\]$/i;
1962
+ const fractionRegex = /^\d+\/\d+$/;
1963
+ const stringLengths = /*#__PURE__*/new Set(['px', 'full', 'screen']);
1964
+ const tshirtUnitRegex = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/;
1965
+ 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$/;
1966
+ const colorFunctionRegex = /^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/;
1967
+ // Shadow always begins with x and y offset separated by underscore optionally prepended by inset
1968
+ const shadowRegex = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/;
1969
+ const imageRegex = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/;
1970
+ const isLength = value => isNumber(value) || stringLengths.has(value) || fractionRegex.test(value);
1971
+ const isArbitraryLength = value => getIsArbitraryValue(value, 'length', isLengthOnly);
1972
+ const isNumber = value => Boolean(value) && !Number.isNaN(Number(value));
1973
+ const isArbitraryNumber = value => getIsArbitraryValue(value, 'number', isNumber);
1974
+ const isInteger = value => Boolean(value) && Number.isInteger(Number(value));
1975
+ const isPercent = value => value.endsWith('%') && isNumber(value.slice(0, -1));
1976
+ const isArbitraryValue = value => arbitraryValueRegex.test(value);
1977
+ const isTshirtSize = value => tshirtUnitRegex.test(value);
1978
+ const sizeLabels = /*#__PURE__*/new Set(['length', 'size', 'percentage']);
1979
+ const isArbitrarySize = value => getIsArbitraryValue(value, sizeLabels, isNever);
1980
+ const isArbitraryPosition = value => getIsArbitraryValue(value, 'position', isNever);
1981
+ const imageLabels = /*#__PURE__*/new Set(['image', 'url']);
1982
+ const isArbitraryImage = value => getIsArbitraryValue(value, imageLabels, isImage);
1983
+ const isArbitraryShadow = value => getIsArbitraryValue(value, '', isShadow);
1984
+ const isAny = () => true;
1985
+ const getIsArbitraryValue = (value, label, testValue) => {
1986
+ const result = arbitraryValueRegex.exec(value);
1987
+ if (result) {
1988
+ if (result[1]) {
1989
+ return typeof label === 'string' ? result[1] === label : label.has(result[1]);
1990
+ }
1991
+ return testValue(result[2]);
1992
+ }
1993
+ return false;
1994
+ };
1995
+ const isLengthOnly = value =>
1996
+ // `colorFunctionRegex` check is necessary because color functions can have percentages in them which which would be incorrectly classified as lengths.
1997
+ // For example, `hsl(0 0% 0%)` would be classified as a length without this check.
1998
+ // I could also use lookbehind assertion in `lengthUnitRegex` but that isn't supported widely enough.
1999
+ lengthUnitRegex.test(value) && !colorFunctionRegex.test(value);
2000
+ const isNever = () => false;
2001
+ const isShadow = value => shadowRegex.test(value);
2002
+ const isImage = value => imageRegex.test(value);
2003
+ const getDefaultConfig = () => {
2004
+ const colors = fromTheme('colors');
2005
+ const spacing = fromTheme('spacing');
2006
+ const blur = fromTheme('blur');
2007
+ const brightness = fromTheme('brightness');
2008
+ const borderColor = fromTheme('borderColor');
2009
+ const borderRadius = fromTheme('borderRadius');
2010
+ const borderSpacing = fromTheme('borderSpacing');
2011
+ const borderWidth = fromTheme('borderWidth');
2012
+ const contrast = fromTheme('contrast');
2013
+ const grayscale = fromTheme('grayscale');
2014
+ const hueRotate = fromTheme('hueRotate');
2015
+ const invert = fromTheme('invert');
2016
+ const gap = fromTheme('gap');
2017
+ const gradientColorStops = fromTheme('gradientColorStops');
2018
+ const gradientColorStopPositions = fromTheme('gradientColorStopPositions');
2019
+ const inset = fromTheme('inset');
2020
+ const margin = fromTheme('margin');
2021
+ const opacity = fromTheme('opacity');
2022
+ const padding = fromTheme('padding');
2023
+ const saturate = fromTheme('saturate');
2024
+ const scale = fromTheme('scale');
2025
+ const sepia = fromTheme('sepia');
2026
+ const skew = fromTheme('skew');
2027
+ const space = fromTheme('space');
2028
+ const translate = fromTheme('translate');
2029
+ const getOverscroll = () => ['auto', 'contain', 'none'];
2030
+ const getOverflow = () => ['auto', 'hidden', 'clip', 'visible', 'scroll'];
2031
+ const getSpacingWithAutoAndArbitrary = () => ['auto', isArbitraryValue, spacing];
2032
+ const getSpacingWithArbitrary = () => [isArbitraryValue, spacing];
2033
+ const getLengthWithEmptyAndArbitrary = () => ['', isLength, isArbitraryLength];
2034
+ const getNumberWithAutoAndArbitrary = () => ['auto', isNumber, isArbitraryValue];
2035
+ const getPositions = () => ['bottom', 'center', 'left', 'left-bottom', 'left-top', 'right', 'right-bottom', 'right-top', 'top'];
2036
+ const getLineStyles = () => ['solid', 'dashed', 'dotted', 'double', 'none'];
2037
+ const getBlendModes = () => ['normal', 'multiply', 'screen', 'overlay', 'darken', 'lighten', 'color-dodge', 'color-burn', 'hard-light', 'soft-light', 'difference', 'exclusion', 'hue', 'saturation', 'color', 'luminosity'];
2038
+ const getAlign = () => ['start', 'end', 'center', 'between', 'around', 'evenly', 'stretch'];
2039
+ const getZeroAndEmpty = () => ['', '0', isArbitraryValue];
2040
+ const getBreaks = () => ['auto', 'avoid', 'all', 'avoid-page', 'page', 'left', 'right', 'column'];
2041
+ const getNumberAndArbitrary = () => [isNumber, isArbitraryValue];
2042
+ return {
2043
+ cacheSize: 500,
2044
+ separator: ':',
2045
+ theme: {
2046
+ colors: [isAny],
2047
+ spacing: [isLength, isArbitraryLength],
2048
+ blur: ['none', '', isTshirtSize, isArbitraryValue],
2049
+ brightness: getNumberAndArbitrary(),
2050
+ borderColor: [colors],
2051
+ borderRadius: ['none', '', 'full', isTshirtSize, isArbitraryValue],
2052
+ borderSpacing: getSpacingWithArbitrary(),
2053
+ borderWidth: getLengthWithEmptyAndArbitrary(),
2054
+ contrast: getNumberAndArbitrary(),
2055
+ grayscale: getZeroAndEmpty(),
2056
+ hueRotate: getNumberAndArbitrary(),
2057
+ invert: getZeroAndEmpty(),
2058
+ gap: getSpacingWithArbitrary(),
2059
+ gradientColorStops: [colors],
2060
+ gradientColorStopPositions: [isPercent, isArbitraryLength],
2061
+ inset: getSpacingWithAutoAndArbitrary(),
2062
+ margin: getSpacingWithAutoAndArbitrary(),
2063
+ opacity: getNumberAndArbitrary(),
2064
+ padding: getSpacingWithArbitrary(),
2065
+ saturate: getNumberAndArbitrary(),
2066
+ scale: getNumberAndArbitrary(),
2067
+ sepia: getZeroAndEmpty(),
2068
+ skew: getNumberAndArbitrary(),
2069
+ space: getSpacingWithArbitrary(),
2070
+ translate: getSpacingWithArbitrary()
2071
+ },
2072
+ classGroups: {
2073
+ // Layout
2074
+ /**
2075
+ * Aspect Ratio
2076
+ * @see https://tailwindcss.com/docs/aspect-ratio
2077
+ */
2078
+ aspect: [{
2079
+ aspect: ['auto', 'square', 'video', isArbitraryValue]
2080
+ }],
2081
+ /**
2082
+ * Container
2083
+ * @see https://tailwindcss.com/docs/container
2084
+ */
2085
+ container: ['container'],
2086
+ /**
2087
+ * Columns
2088
+ * @see https://tailwindcss.com/docs/columns
2089
+ */
2090
+ columns: [{
2091
+ columns: [isTshirtSize]
2092
+ }],
2093
+ /**
2094
+ * Break After
2095
+ * @see https://tailwindcss.com/docs/break-after
2096
+ */
2097
+ 'break-after': [{
2098
+ 'break-after': getBreaks()
2099
+ }],
2100
+ /**
2101
+ * Break Before
2102
+ * @see https://tailwindcss.com/docs/break-before
2103
+ */
2104
+ 'break-before': [{
2105
+ 'break-before': getBreaks()
2106
+ }],
2107
+ /**
2108
+ * Break Inside
2109
+ * @see https://tailwindcss.com/docs/break-inside
2110
+ */
2111
+ 'break-inside': [{
2112
+ 'break-inside': ['auto', 'avoid', 'avoid-page', 'avoid-column']
2113
+ }],
2114
+ /**
2115
+ * Box Decoration Break
2116
+ * @see https://tailwindcss.com/docs/box-decoration-break
2117
+ */
2118
+ 'box-decoration': [{
2119
+ 'box-decoration': ['slice', 'clone']
2120
+ }],
2121
+ /**
2122
+ * Box Sizing
2123
+ * @see https://tailwindcss.com/docs/box-sizing
2124
+ */
2125
+ box: [{
2126
+ box: ['border', 'content']
2127
+ }],
2128
+ /**
2129
+ * Display
2130
+ * @see https://tailwindcss.com/docs/display
2131
+ */
2132
+ 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'],
2133
+ /**
2134
+ * Floats
2135
+ * @see https://tailwindcss.com/docs/float
2136
+ */
2137
+ float: [{
2138
+ float: ['right', 'left', 'none', 'start', 'end']
2139
+ }],
2140
+ /**
2141
+ * Clear
2142
+ * @see https://tailwindcss.com/docs/clear
2143
+ */
2144
+ clear: [{
2145
+ clear: ['left', 'right', 'both', 'none', 'start', 'end']
2146
+ }],
2147
+ /**
2148
+ * Isolation
2149
+ * @see https://tailwindcss.com/docs/isolation
2150
+ */
2151
+ isolation: ['isolate', 'isolation-auto'],
2152
+ /**
2153
+ * Object Fit
2154
+ * @see https://tailwindcss.com/docs/object-fit
2155
+ */
2156
+ 'object-fit': [{
2157
+ object: ['contain', 'cover', 'fill', 'none', 'scale-down']
2158
+ }],
2159
+ /**
2160
+ * Object Position
2161
+ * @see https://tailwindcss.com/docs/object-position
2162
+ */
2163
+ 'object-position': [{
2164
+ object: [...getPositions(), isArbitraryValue]
2165
+ }],
2166
+ /**
2167
+ * Overflow
2168
+ * @see https://tailwindcss.com/docs/overflow
2169
+ */
2170
+ overflow: [{
2171
+ overflow: getOverflow()
2172
+ }],
2173
+ /**
2174
+ * Overflow X
2175
+ * @see https://tailwindcss.com/docs/overflow
2176
+ */
2177
+ 'overflow-x': [{
2178
+ 'overflow-x': getOverflow()
2179
+ }],
2180
+ /**
2181
+ * Overflow Y
2182
+ * @see https://tailwindcss.com/docs/overflow
2183
+ */
2184
+ 'overflow-y': [{
2185
+ 'overflow-y': getOverflow()
2186
+ }],
2187
+ /**
2188
+ * Overscroll Behavior
2189
+ * @see https://tailwindcss.com/docs/overscroll-behavior
2190
+ */
2191
+ overscroll: [{
2192
+ overscroll: getOverscroll()
2193
+ }],
2194
+ /**
2195
+ * Overscroll Behavior X
2196
+ * @see https://tailwindcss.com/docs/overscroll-behavior
2197
+ */
2198
+ 'overscroll-x': [{
2199
+ 'overscroll-x': getOverscroll()
2200
+ }],
2201
+ /**
2202
+ * Overscroll Behavior Y
2203
+ * @see https://tailwindcss.com/docs/overscroll-behavior
2204
+ */
2205
+ 'overscroll-y': [{
2206
+ 'overscroll-y': getOverscroll()
2207
+ }],
2208
+ /**
2209
+ * Position
2210
+ * @see https://tailwindcss.com/docs/position
2211
+ */
2212
+ position: ['static', 'fixed', 'absolute', 'relative', 'sticky'],
2213
+ /**
2214
+ * Top / Right / Bottom / Left
2215
+ * @see https://tailwindcss.com/docs/top-right-bottom-left
2216
+ */
2217
+ inset: [{
2218
+ inset: [inset]
2219
+ }],
2220
+ /**
2221
+ * Right / Left
2222
+ * @see https://tailwindcss.com/docs/top-right-bottom-left
2223
+ */
2224
+ 'inset-x': [{
2225
+ 'inset-x': [inset]
2226
+ }],
2227
+ /**
2228
+ * Top / Bottom
2229
+ * @see https://tailwindcss.com/docs/top-right-bottom-left
2230
+ */
2231
+ 'inset-y': [{
2232
+ 'inset-y': [inset]
2233
+ }],
2234
+ /**
2235
+ * Start
2236
+ * @see https://tailwindcss.com/docs/top-right-bottom-left
2237
+ */
2238
+ start: [{
2239
+ start: [inset]
2240
+ }],
2241
+ /**
2242
+ * End
2243
+ * @see https://tailwindcss.com/docs/top-right-bottom-left
2244
+ */
2245
+ end: [{
2246
+ end: [inset]
2247
+ }],
2248
+ /**
2249
+ * Top
2250
+ * @see https://tailwindcss.com/docs/top-right-bottom-left
2251
+ */
2252
+ top: [{
2253
+ top: [inset]
2254
+ }],
2255
+ /**
2256
+ * Right
2257
+ * @see https://tailwindcss.com/docs/top-right-bottom-left
2258
+ */
2259
+ right: [{
2260
+ right: [inset]
2261
+ }],
2262
+ /**
2263
+ * Bottom
2264
+ * @see https://tailwindcss.com/docs/top-right-bottom-left
2265
+ */
2266
+ bottom: [{
2267
+ bottom: [inset]
2268
+ }],
2269
+ /**
2270
+ * Left
2271
+ * @see https://tailwindcss.com/docs/top-right-bottom-left
2272
+ */
2273
+ left: [{
2274
+ left: [inset]
2275
+ }],
2276
+ /**
2277
+ * Visibility
2278
+ * @see https://tailwindcss.com/docs/visibility
2279
+ */
2280
+ visibility: ['visible', 'invisible', 'collapse'],
2281
+ /**
2282
+ * Z-Index
2283
+ * @see https://tailwindcss.com/docs/z-index
2284
+ */
2285
+ z: [{
2286
+ z: ['auto', isInteger, isArbitraryValue]
2287
+ }],
2288
+ // Flexbox and Grid
2289
+ /**
2290
+ * Flex Basis
2291
+ * @see https://tailwindcss.com/docs/flex-basis
2292
+ */
2293
+ basis: [{
2294
+ basis: getSpacingWithAutoAndArbitrary()
2295
+ }],
2296
+ /**
2297
+ * Flex Direction
2298
+ * @see https://tailwindcss.com/docs/flex-direction
2299
+ */
2300
+ 'flex-direction': [{
2301
+ flex: ['row', 'row-reverse', 'col', 'col-reverse']
2302
+ }],
2303
+ /**
2304
+ * Flex Wrap
2305
+ * @see https://tailwindcss.com/docs/flex-wrap
2306
+ */
2307
+ 'flex-wrap': [{
2308
+ flex: ['wrap', 'wrap-reverse', 'nowrap']
2309
+ }],
2310
+ /**
2311
+ * Flex
2312
+ * @see https://tailwindcss.com/docs/flex
2313
+ */
2314
+ flex: [{
2315
+ flex: ['1', 'auto', 'initial', 'none', isArbitraryValue]
2316
+ }],
2317
+ /**
2318
+ * Flex Grow
2319
+ * @see https://tailwindcss.com/docs/flex-grow
2320
+ */
2321
+ grow: [{
2322
+ grow: getZeroAndEmpty()
2323
+ }],
2324
+ /**
2325
+ * Flex Shrink
2326
+ * @see https://tailwindcss.com/docs/flex-shrink
2327
+ */
2328
+ shrink: [{
2329
+ shrink: getZeroAndEmpty()
2330
+ }],
2331
+ /**
2332
+ * Order
2333
+ * @see https://tailwindcss.com/docs/order
2334
+ */
2335
+ order: [{
2336
+ order: ['first', 'last', 'none', isInteger, isArbitraryValue]
2337
+ }],
2338
+ /**
2339
+ * Grid Template Columns
2340
+ * @see https://tailwindcss.com/docs/grid-template-columns
2341
+ */
2342
+ 'grid-cols': [{
2343
+ 'grid-cols': [isAny]
2344
+ }],
2345
+ /**
2346
+ * Grid Column Start / End
2347
+ * @see https://tailwindcss.com/docs/grid-column
2348
+ */
2349
+ 'col-start-end': [{
2350
+ col: ['auto', {
2351
+ span: ['full', isInteger, isArbitraryValue]
2352
+ }, isArbitraryValue]
2353
+ }],
2354
+ /**
2355
+ * Grid Column Start
2356
+ * @see https://tailwindcss.com/docs/grid-column
2357
+ */
2358
+ 'col-start': [{
2359
+ 'col-start': getNumberWithAutoAndArbitrary()
2360
+ }],
2361
+ /**
2362
+ * Grid Column End
2363
+ * @see https://tailwindcss.com/docs/grid-column
2364
+ */
2365
+ 'col-end': [{
2366
+ 'col-end': getNumberWithAutoAndArbitrary()
2367
+ }],
2368
+ /**
2369
+ * Grid Template Rows
2370
+ * @see https://tailwindcss.com/docs/grid-template-rows
2371
+ */
2372
+ 'grid-rows': [{
2373
+ 'grid-rows': [isAny]
2374
+ }],
2375
+ /**
2376
+ * Grid Row Start / End
2377
+ * @see https://tailwindcss.com/docs/grid-row
2378
+ */
2379
+ 'row-start-end': [{
2380
+ row: ['auto', {
2381
+ span: [isInteger, isArbitraryValue]
2382
+ }, isArbitraryValue]
2383
+ }],
2384
+ /**
2385
+ * Grid Row Start
2386
+ * @see https://tailwindcss.com/docs/grid-row
2387
+ */
2388
+ 'row-start': [{
2389
+ 'row-start': getNumberWithAutoAndArbitrary()
2390
+ }],
2391
+ /**
2392
+ * Grid Row End
2393
+ * @see https://tailwindcss.com/docs/grid-row
2394
+ */
2395
+ 'row-end': [{
2396
+ 'row-end': getNumberWithAutoAndArbitrary()
2397
+ }],
2398
+ /**
2399
+ * Grid Auto Flow
2400
+ * @see https://tailwindcss.com/docs/grid-auto-flow
2401
+ */
2402
+ 'grid-flow': [{
2403
+ 'grid-flow': ['row', 'col', 'dense', 'row-dense', 'col-dense']
2404
+ }],
2405
+ /**
2406
+ * Grid Auto Columns
2407
+ * @see https://tailwindcss.com/docs/grid-auto-columns
2408
+ */
2409
+ 'auto-cols': [{
2410
+ 'auto-cols': ['auto', 'min', 'max', 'fr', isArbitraryValue]
2411
+ }],
2412
+ /**
2413
+ * Grid Auto Rows
2414
+ * @see https://tailwindcss.com/docs/grid-auto-rows
2415
+ */
2416
+ 'auto-rows': [{
2417
+ 'auto-rows': ['auto', 'min', 'max', 'fr', isArbitraryValue]
2418
+ }],
2419
+ /**
2420
+ * Gap
2421
+ * @see https://tailwindcss.com/docs/gap
2422
+ */
2423
+ gap: [{
2424
+ gap: [gap]
2425
+ }],
2426
+ /**
2427
+ * Gap X
2428
+ * @see https://tailwindcss.com/docs/gap
2429
+ */
2430
+ 'gap-x': [{
2431
+ 'gap-x': [gap]
2432
+ }],
2433
+ /**
2434
+ * Gap Y
2435
+ * @see https://tailwindcss.com/docs/gap
2436
+ */
2437
+ 'gap-y': [{
2438
+ 'gap-y': [gap]
2439
+ }],
2440
+ /**
2441
+ * Justify Content
2442
+ * @see https://tailwindcss.com/docs/justify-content
2443
+ */
2444
+ 'justify-content': [{
2445
+ justify: ['normal', ...getAlign()]
2446
+ }],
2447
+ /**
2448
+ * Justify Items
2449
+ * @see https://tailwindcss.com/docs/justify-items
2450
+ */
2451
+ 'justify-items': [{
2452
+ 'justify-items': ['start', 'end', 'center', 'stretch']
2453
+ }],
2454
+ /**
2455
+ * Justify Self
2456
+ * @see https://tailwindcss.com/docs/justify-self
2457
+ */
2458
+ 'justify-self': [{
2459
+ 'justify-self': ['auto', 'start', 'end', 'center', 'stretch']
2460
+ }],
2461
+ /**
2462
+ * Align Content
2463
+ * @see https://tailwindcss.com/docs/align-content
2464
+ */
2465
+ 'align-content': [{
2466
+ content: ['normal', ...getAlign(), 'baseline']
2467
+ }],
2468
+ /**
2469
+ * Align Items
2470
+ * @see https://tailwindcss.com/docs/align-items
2471
+ */
2472
+ 'align-items': [{
2473
+ items: ['start', 'end', 'center', 'baseline', 'stretch']
2474
+ }],
2475
+ /**
2476
+ * Align Self
2477
+ * @see https://tailwindcss.com/docs/align-self
2478
+ */
2479
+ 'align-self': [{
2480
+ self: ['auto', 'start', 'end', 'center', 'stretch', 'baseline']
2481
+ }],
2482
+ /**
2483
+ * Place Content
2484
+ * @see https://tailwindcss.com/docs/place-content
2485
+ */
2486
+ 'place-content': [{
2487
+ 'place-content': [...getAlign(), 'baseline']
2488
+ }],
2489
+ /**
2490
+ * Place Items
2491
+ * @see https://tailwindcss.com/docs/place-items
2492
+ */
2493
+ 'place-items': [{
2494
+ 'place-items': ['start', 'end', 'center', 'baseline', 'stretch']
2495
+ }],
2496
+ /**
2497
+ * Place Self
2498
+ * @see https://tailwindcss.com/docs/place-self
2499
+ */
2500
+ 'place-self': [{
2501
+ 'place-self': ['auto', 'start', 'end', 'center', 'stretch']
2502
+ }],
2503
+ // Spacing
2504
+ /**
2505
+ * Padding
2506
+ * @see https://tailwindcss.com/docs/padding
2507
+ */
2508
+ p: [{
2509
+ p: [padding]
2510
+ }],
2511
+ /**
2512
+ * Padding X
2513
+ * @see https://tailwindcss.com/docs/padding
2514
+ */
2515
+ px: [{
2516
+ px: [padding]
2517
+ }],
2518
+ /**
2519
+ * Padding Y
2520
+ * @see https://tailwindcss.com/docs/padding
2521
+ */
2522
+ py: [{
2523
+ py: [padding]
2524
+ }],
2525
+ /**
2526
+ * Padding Start
2527
+ * @see https://tailwindcss.com/docs/padding
2528
+ */
2529
+ ps: [{
2530
+ ps: [padding]
2531
+ }],
2532
+ /**
2533
+ * Padding End
2534
+ * @see https://tailwindcss.com/docs/padding
2535
+ */
2536
+ pe: [{
2537
+ pe: [padding]
2538
+ }],
2539
+ /**
2540
+ * Padding Top
2541
+ * @see https://tailwindcss.com/docs/padding
2542
+ */
2543
+ pt: [{
2544
+ pt: [padding]
2545
+ }],
2546
+ /**
2547
+ * Padding Right
2548
+ * @see https://tailwindcss.com/docs/padding
2549
+ */
2550
+ pr: [{
2551
+ pr: [padding]
2552
+ }],
2553
+ /**
2554
+ * Padding Bottom
2555
+ * @see https://tailwindcss.com/docs/padding
2556
+ */
2557
+ pb: [{
2558
+ pb: [padding]
2559
+ }],
2560
+ /**
2561
+ * Padding Left
2562
+ * @see https://tailwindcss.com/docs/padding
2563
+ */
2564
+ pl: [{
2565
+ pl: [padding]
2566
+ }],
2567
+ /**
2568
+ * Margin
2569
+ * @see https://tailwindcss.com/docs/margin
2570
+ */
2571
+ m: [{
2572
+ m: [margin]
2573
+ }],
2574
+ /**
2575
+ * Margin X
2576
+ * @see https://tailwindcss.com/docs/margin
2577
+ */
2578
+ mx: [{
2579
+ mx: [margin]
2580
+ }],
2581
+ /**
2582
+ * Margin Y
2583
+ * @see https://tailwindcss.com/docs/margin
2584
+ */
2585
+ my: [{
2586
+ my: [margin]
2587
+ }],
2588
+ /**
2589
+ * Margin Start
2590
+ * @see https://tailwindcss.com/docs/margin
2591
+ */
2592
+ ms: [{
2593
+ ms: [margin]
2594
+ }],
2595
+ /**
2596
+ * Margin End
2597
+ * @see https://tailwindcss.com/docs/margin
2598
+ */
2599
+ me: [{
2600
+ me: [margin]
2601
+ }],
2602
+ /**
2603
+ * Margin Top
2604
+ * @see https://tailwindcss.com/docs/margin
2605
+ */
2606
+ mt: [{
2607
+ mt: [margin]
2608
+ }],
2609
+ /**
2610
+ * Margin Right
2611
+ * @see https://tailwindcss.com/docs/margin
2612
+ */
2613
+ mr: [{
2614
+ mr: [margin]
2615
+ }],
2616
+ /**
2617
+ * Margin Bottom
2618
+ * @see https://tailwindcss.com/docs/margin
2619
+ */
2620
+ mb: [{
2621
+ mb: [margin]
2622
+ }],
2623
+ /**
2624
+ * Margin Left
2625
+ * @see https://tailwindcss.com/docs/margin
2626
+ */
2627
+ ml: [{
2628
+ ml: [margin]
2629
+ }],
2630
+ /**
2631
+ * Space Between X
2632
+ * @see https://tailwindcss.com/docs/space
2633
+ */
2634
+ 'space-x': [{
2635
+ 'space-x': [space]
2636
+ }],
2637
+ /**
2638
+ * Space Between X Reverse
2639
+ * @see https://tailwindcss.com/docs/space
2640
+ */
2641
+ 'space-x-reverse': ['space-x-reverse'],
2642
+ /**
2643
+ * Space Between Y
2644
+ * @see https://tailwindcss.com/docs/space
2645
+ */
2646
+ 'space-y': [{
2647
+ 'space-y': [space]
2648
+ }],
2649
+ /**
2650
+ * Space Between Y Reverse
2651
+ * @see https://tailwindcss.com/docs/space
2652
+ */
2653
+ 'space-y-reverse': ['space-y-reverse'],
2654
+ // Sizing
2655
+ /**
2656
+ * Width
2657
+ * @see https://tailwindcss.com/docs/width
2658
+ */
2659
+ w: [{
2660
+ w: ['auto', 'min', 'max', 'fit', 'svw', 'lvw', 'dvw', isArbitraryValue, spacing]
2661
+ }],
2662
+ /**
2663
+ * Min-Width
2664
+ * @see https://tailwindcss.com/docs/min-width
2665
+ */
2666
+ 'min-w': [{
2667
+ 'min-w': [isArbitraryValue, spacing, 'min', 'max', 'fit']
2668
+ }],
2669
+ /**
2670
+ * Max-Width
2671
+ * @see https://tailwindcss.com/docs/max-width
2672
+ */
2673
+ 'max-w': [{
2674
+ 'max-w': [isArbitraryValue, spacing, 'none', 'full', 'min', 'max', 'fit', 'prose', {
2675
+ screen: [isTshirtSize]
2676
+ }, isTshirtSize]
2677
+ }],
2678
+ /**
2679
+ * Height
2680
+ * @see https://tailwindcss.com/docs/height
2681
+ */
2682
+ h: [{
2683
+ h: [isArbitraryValue, spacing, 'auto', 'min', 'max', 'fit', 'svh', 'lvh', 'dvh']
2684
+ }],
2685
+ /**
2686
+ * Min-Height
2687
+ * @see https://tailwindcss.com/docs/min-height
2688
+ */
2689
+ 'min-h': [{
2690
+ 'min-h': [isArbitraryValue, spacing, 'min', 'max', 'fit', 'svh', 'lvh', 'dvh']
2691
+ }],
2692
+ /**
2693
+ * Max-Height
2694
+ * @see https://tailwindcss.com/docs/max-height
2695
+ */
2696
+ 'max-h': [{
2697
+ 'max-h': [isArbitraryValue, spacing, 'min', 'max', 'fit', 'svh', 'lvh', 'dvh']
2698
+ }],
2699
+ /**
2700
+ * Size
2701
+ * @see https://tailwindcss.com/docs/size
2702
+ */
2703
+ size: [{
2704
+ size: [isArbitraryValue, spacing, 'auto', 'min', 'max', 'fit']
2705
+ }],
2706
+ // Typography
2707
+ /**
2708
+ * Font Size
2709
+ * @see https://tailwindcss.com/docs/font-size
2710
+ */
2711
+ 'font-size': [{
2712
+ text: ['base', isTshirtSize, isArbitraryLength]
2713
+ }],
2714
+ /**
2715
+ * Font Smoothing
2716
+ * @see https://tailwindcss.com/docs/font-smoothing
2717
+ */
2718
+ 'font-smoothing': ['antialiased', 'subpixel-antialiased'],
2719
+ /**
2720
+ * Font Style
2721
+ * @see https://tailwindcss.com/docs/font-style
2722
+ */
2723
+ 'font-style': ['italic', 'not-italic'],
2724
+ /**
2725
+ * Font Weight
2726
+ * @see https://tailwindcss.com/docs/font-weight
2727
+ */
2728
+ 'font-weight': [{
2729
+ font: ['thin', 'extralight', 'light', 'normal', 'medium', 'semibold', 'bold', 'extrabold', 'black', isArbitraryNumber]
2730
+ }],
2731
+ /**
2732
+ * Font Family
2733
+ * @see https://tailwindcss.com/docs/font-family
2734
+ */
2735
+ 'font-family': [{
2736
+ font: [isAny]
2737
+ }],
2738
+ /**
2739
+ * Font Variant Numeric
2740
+ * @see https://tailwindcss.com/docs/font-variant-numeric
2741
+ */
2742
+ 'fvn-normal': ['normal-nums'],
2743
+ /**
2744
+ * Font Variant Numeric
2745
+ * @see https://tailwindcss.com/docs/font-variant-numeric
2746
+ */
2747
+ 'fvn-ordinal': ['ordinal'],
2748
+ /**
2749
+ * Font Variant Numeric
2750
+ * @see https://tailwindcss.com/docs/font-variant-numeric
2751
+ */
2752
+ 'fvn-slashed-zero': ['slashed-zero'],
2753
+ /**
2754
+ * Font Variant Numeric
2755
+ * @see https://tailwindcss.com/docs/font-variant-numeric
2756
+ */
2757
+ 'fvn-figure': ['lining-nums', 'oldstyle-nums'],
2758
+ /**
2759
+ * Font Variant Numeric
2760
+ * @see https://tailwindcss.com/docs/font-variant-numeric
2761
+ */
2762
+ 'fvn-spacing': ['proportional-nums', 'tabular-nums'],
2763
+ /**
2764
+ * Font Variant Numeric
2765
+ * @see https://tailwindcss.com/docs/font-variant-numeric
2766
+ */
2767
+ 'fvn-fraction': ['diagonal-fractions', 'stacked-fractons'],
2768
+ /**
2769
+ * Letter Spacing
2770
+ * @see https://tailwindcss.com/docs/letter-spacing
2771
+ */
2772
+ tracking: [{
2773
+ tracking: ['tighter', 'tight', 'normal', 'wide', 'wider', 'widest', isArbitraryValue]
2774
+ }],
2775
+ /**
2776
+ * Line Clamp
2777
+ * @see https://tailwindcss.com/docs/line-clamp
2778
+ */
2779
+ 'line-clamp': [{
2780
+ 'line-clamp': ['none', isNumber, isArbitraryNumber]
2781
+ }],
2782
+ /**
2783
+ * Line Height
2784
+ * @see https://tailwindcss.com/docs/line-height
2785
+ */
2786
+ leading: [{
2787
+ leading: ['none', 'tight', 'snug', 'normal', 'relaxed', 'loose', isLength, isArbitraryValue]
2788
+ }],
2789
+ /**
2790
+ * List Style Image
2791
+ * @see https://tailwindcss.com/docs/list-style-image
2792
+ */
2793
+ 'list-image': [{
2794
+ 'list-image': ['none', isArbitraryValue]
2795
+ }],
2796
+ /**
2797
+ * List Style Type
2798
+ * @see https://tailwindcss.com/docs/list-style-type
2799
+ */
2800
+ 'list-style-type': [{
2801
+ list: ['none', 'disc', 'decimal', isArbitraryValue]
2802
+ }],
2803
+ /**
2804
+ * List Style Position
2805
+ * @see https://tailwindcss.com/docs/list-style-position
2806
+ */
2807
+ 'list-style-position': [{
2808
+ list: ['inside', 'outside']
2809
+ }],
2810
+ /**
2811
+ * Placeholder Color
2812
+ * @deprecated since Tailwind CSS v3.0.0
2813
+ * @see https://tailwindcss.com/docs/placeholder-color
2814
+ */
2815
+ 'placeholder-color': [{
2816
+ placeholder: [colors]
2817
+ }],
2818
+ /**
2819
+ * Placeholder Opacity
2820
+ * @see https://tailwindcss.com/docs/placeholder-opacity
2821
+ */
2822
+ 'placeholder-opacity': [{
2823
+ 'placeholder-opacity': [opacity]
2824
+ }],
2825
+ /**
2826
+ * Text Alignment
2827
+ * @see https://tailwindcss.com/docs/text-align
2828
+ */
2829
+ 'text-alignment': [{
2830
+ text: ['left', 'center', 'right', 'justify', 'start', 'end']
2831
+ }],
2832
+ /**
2833
+ * Text Color
2834
+ * @see https://tailwindcss.com/docs/text-color
2835
+ */
2836
+ 'text-color': [{
2837
+ text: [colors]
2838
+ }],
2839
+ /**
2840
+ * Text Opacity
2841
+ * @see https://tailwindcss.com/docs/text-opacity
2842
+ */
2843
+ 'text-opacity': [{
2844
+ 'text-opacity': [opacity]
2845
+ }],
2846
+ /**
2847
+ * Text Decoration
2848
+ * @see https://tailwindcss.com/docs/text-decoration
2849
+ */
2850
+ 'text-decoration': ['underline', 'overline', 'line-through', 'no-underline'],
2851
+ /**
2852
+ * Text Decoration Style
2853
+ * @see https://tailwindcss.com/docs/text-decoration-style
2854
+ */
2855
+ 'text-decoration-style': [{
2856
+ decoration: [...getLineStyles(), 'wavy']
2857
+ }],
2858
+ /**
2859
+ * Text Decoration Thickness
2860
+ * @see https://tailwindcss.com/docs/text-decoration-thickness
2861
+ */
2862
+ 'text-decoration-thickness': [{
2863
+ decoration: ['auto', 'from-font', isLength, isArbitraryLength]
2864
+ }],
2865
+ /**
2866
+ * Text Underline Offset
2867
+ * @see https://tailwindcss.com/docs/text-underline-offset
2868
+ */
2869
+ 'underline-offset': [{
2870
+ 'underline-offset': ['auto', isLength, isArbitraryValue]
2871
+ }],
2872
+ /**
2873
+ * Text Decoration Color
2874
+ * @see https://tailwindcss.com/docs/text-decoration-color
2875
+ */
2876
+ 'text-decoration-color': [{
2877
+ decoration: [colors]
2878
+ }],
2879
+ /**
2880
+ * Text Transform
2881
+ * @see https://tailwindcss.com/docs/text-transform
2882
+ */
2883
+ 'text-transform': ['uppercase', 'lowercase', 'capitalize', 'normal-case'],
2884
+ /**
2885
+ * Text Overflow
2886
+ * @see https://tailwindcss.com/docs/text-overflow
2887
+ */
2888
+ 'text-overflow': ['truncate', 'text-ellipsis', 'text-clip'],
2889
+ /**
2890
+ * Text Wrap
2891
+ * @see https://tailwindcss.com/docs/text-wrap
2892
+ */
2893
+ 'text-wrap': [{
2894
+ text: ['wrap', 'nowrap', 'balance', 'pretty']
2895
+ }],
2896
+ /**
2897
+ * Text Indent
2898
+ * @see https://tailwindcss.com/docs/text-indent
2899
+ */
2900
+ indent: [{
2901
+ indent: getSpacingWithArbitrary()
2902
+ }],
2903
+ /**
2904
+ * Vertical Alignment
2905
+ * @see https://tailwindcss.com/docs/vertical-align
2906
+ */
2907
+ 'vertical-align': [{
2908
+ align: ['baseline', 'top', 'middle', 'bottom', 'text-top', 'text-bottom', 'sub', 'super', isArbitraryValue]
2909
+ }],
2910
+ /**
2911
+ * Whitespace
2912
+ * @see https://tailwindcss.com/docs/whitespace
2913
+ */
2914
+ whitespace: [{
2915
+ whitespace: ['normal', 'nowrap', 'pre', 'pre-line', 'pre-wrap', 'break-spaces']
2916
+ }],
2917
+ /**
2918
+ * Word Break
2919
+ * @see https://tailwindcss.com/docs/word-break
2920
+ */
2921
+ break: [{
2922
+ break: ['normal', 'words', 'all', 'keep']
2923
+ }],
2924
+ /**
2925
+ * Hyphens
2926
+ * @see https://tailwindcss.com/docs/hyphens
2927
+ */
2928
+ hyphens: [{
2929
+ hyphens: ['none', 'manual', 'auto']
2930
+ }],
2931
+ /**
2932
+ * Content
2933
+ * @see https://tailwindcss.com/docs/content
2934
+ */
2935
+ content: [{
2936
+ content: ['none', isArbitraryValue]
2937
+ }],
2938
+ // Backgrounds
2939
+ /**
2940
+ * Background Attachment
2941
+ * @see https://tailwindcss.com/docs/background-attachment
2942
+ */
2943
+ 'bg-attachment': [{
2944
+ bg: ['fixed', 'local', 'scroll']
2945
+ }],
2946
+ /**
2947
+ * Background Clip
2948
+ * @see https://tailwindcss.com/docs/background-clip
2949
+ */
2950
+ 'bg-clip': [{
2951
+ 'bg-clip': ['border', 'padding', 'content', 'text']
2952
+ }],
2953
+ /**
2954
+ * Background Opacity
2955
+ * @deprecated since Tailwind CSS v3.0.0
2956
+ * @see https://tailwindcss.com/docs/background-opacity
2957
+ */
2958
+ 'bg-opacity': [{
2959
+ 'bg-opacity': [opacity]
2960
+ }],
2961
+ /**
2962
+ * Background Origin
2963
+ * @see https://tailwindcss.com/docs/background-origin
2964
+ */
2965
+ 'bg-origin': [{
2966
+ 'bg-origin': ['border', 'padding', 'content']
2967
+ }],
2968
+ /**
2969
+ * Background Position
2970
+ * @see https://tailwindcss.com/docs/background-position
2971
+ */
2972
+ 'bg-position': [{
2973
+ bg: [...getPositions(), isArbitraryPosition]
2974
+ }],
2975
+ /**
2976
+ * Background Repeat
2977
+ * @see https://tailwindcss.com/docs/background-repeat
2978
+ */
2979
+ 'bg-repeat': [{
2980
+ bg: ['no-repeat', {
2981
+ repeat: ['', 'x', 'y', 'round', 'space']
2982
+ }]
2983
+ }],
2984
+ /**
2985
+ * Background Size
2986
+ * @see https://tailwindcss.com/docs/background-size
2987
+ */
2988
+ 'bg-size': [{
2989
+ bg: ['auto', 'cover', 'contain', isArbitrarySize]
2990
+ }],
2991
+ /**
2992
+ * Background Image
2993
+ * @see https://tailwindcss.com/docs/background-image
2994
+ */
2995
+ 'bg-image': [{
2996
+ bg: ['none', {
2997
+ 'gradient-to': ['t', 'tr', 'r', 'br', 'b', 'bl', 'l', 'tl']
2998
+ }, isArbitraryImage]
2999
+ }],
3000
+ /**
3001
+ * Background Color
3002
+ * @see https://tailwindcss.com/docs/background-color
3003
+ */
3004
+ 'bg-color': [{
3005
+ bg: [colors]
3006
+ }],
3007
+ /**
3008
+ * Gradient Color Stops From Position
3009
+ * @see https://tailwindcss.com/docs/gradient-color-stops
3010
+ */
3011
+ 'gradient-from-pos': [{
3012
+ from: [gradientColorStopPositions]
3013
+ }],
3014
+ /**
3015
+ * Gradient Color Stops Via Position
3016
+ * @see https://tailwindcss.com/docs/gradient-color-stops
3017
+ */
3018
+ 'gradient-via-pos': [{
3019
+ via: [gradientColorStopPositions]
3020
+ }],
3021
+ /**
3022
+ * Gradient Color Stops To Position
3023
+ * @see https://tailwindcss.com/docs/gradient-color-stops
3024
+ */
3025
+ 'gradient-to-pos': [{
3026
+ to: [gradientColorStopPositions]
3027
+ }],
3028
+ /**
3029
+ * Gradient Color Stops From
3030
+ * @see https://tailwindcss.com/docs/gradient-color-stops
3031
+ */
3032
+ 'gradient-from': [{
3033
+ from: [gradientColorStops]
3034
+ }],
3035
+ /**
3036
+ * Gradient Color Stops Via
3037
+ * @see https://tailwindcss.com/docs/gradient-color-stops
3038
+ */
3039
+ 'gradient-via': [{
3040
+ via: [gradientColorStops]
3041
+ }],
3042
+ /**
3043
+ * Gradient Color Stops To
3044
+ * @see https://tailwindcss.com/docs/gradient-color-stops
3045
+ */
3046
+ 'gradient-to': [{
3047
+ to: [gradientColorStops]
3048
+ }],
3049
+ // Borders
3050
+ /**
3051
+ * Border Radius
3052
+ * @see https://tailwindcss.com/docs/border-radius
3053
+ */
3054
+ rounded: [{
3055
+ rounded: [borderRadius]
3056
+ }],
3057
+ /**
3058
+ * Border Radius Start
3059
+ * @see https://tailwindcss.com/docs/border-radius
3060
+ */
3061
+ 'rounded-s': [{
3062
+ 'rounded-s': [borderRadius]
3063
+ }],
3064
+ /**
3065
+ * Border Radius End
3066
+ * @see https://tailwindcss.com/docs/border-radius
3067
+ */
3068
+ 'rounded-e': [{
3069
+ 'rounded-e': [borderRadius]
3070
+ }],
3071
+ /**
3072
+ * Border Radius Top
3073
+ * @see https://tailwindcss.com/docs/border-radius
3074
+ */
3075
+ 'rounded-t': [{
3076
+ 'rounded-t': [borderRadius]
3077
+ }],
3078
+ /**
3079
+ * Border Radius Right
3080
+ * @see https://tailwindcss.com/docs/border-radius
3081
+ */
3082
+ 'rounded-r': [{
3083
+ 'rounded-r': [borderRadius]
3084
+ }],
3085
+ /**
3086
+ * Border Radius Bottom
3087
+ * @see https://tailwindcss.com/docs/border-radius
3088
+ */
3089
+ 'rounded-b': [{
3090
+ 'rounded-b': [borderRadius]
3091
+ }],
3092
+ /**
3093
+ * Border Radius Left
3094
+ * @see https://tailwindcss.com/docs/border-radius
3095
+ */
3096
+ 'rounded-l': [{
3097
+ 'rounded-l': [borderRadius]
3098
+ }],
3099
+ /**
3100
+ * Border Radius Start Start
3101
+ * @see https://tailwindcss.com/docs/border-radius
3102
+ */
3103
+ 'rounded-ss': [{
3104
+ 'rounded-ss': [borderRadius]
3105
+ }],
3106
+ /**
3107
+ * Border Radius Start End
3108
+ * @see https://tailwindcss.com/docs/border-radius
3109
+ */
3110
+ 'rounded-se': [{
3111
+ 'rounded-se': [borderRadius]
3112
+ }],
3113
+ /**
3114
+ * Border Radius End End
3115
+ * @see https://tailwindcss.com/docs/border-radius
3116
+ */
3117
+ 'rounded-ee': [{
3118
+ 'rounded-ee': [borderRadius]
3119
+ }],
3120
+ /**
3121
+ * Border Radius End Start
3122
+ * @see https://tailwindcss.com/docs/border-radius
3123
+ */
3124
+ 'rounded-es': [{
3125
+ 'rounded-es': [borderRadius]
3126
+ }],
3127
+ /**
3128
+ * Border Radius Top Left
3129
+ * @see https://tailwindcss.com/docs/border-radius
3130
+ */
3131
+ 'rounded-tl': [{
3132
+ 'rounded-tl': [borderRadius]
3133
+ }],
3134
+ /**
3135
+ * Border Radius Top Right
3136
+ * @see https://tailwindcss.com/docs/border-radius
3137
+ */
3138
+ 'rounded-tr': [{
3139
+ 'rounded-tr': [borderRadius]
3140
+ }],
3141
+ /**
3142
+ * Border Radius Bottom Right
3143
+ * @see https://tailwindcss.com/docs/border-radius
3144
+ */
3145
+ 'rounded-br': [{
3146
+ 'rounded-br': [borderRadius]
3147
+ }],
3148
+ /**
3149
+ * Border Radius Bottom Left
3150
+ * @see https://tailwindcss.com/docs/border-radius
3151
+ */
3152
+ 'rounded-bl': [{
3153
+ 'rounded-bl': [borderRadius]
3154
+ }],
3155
+ /**
3156
+ * Border Width
3157
+ * @see https://tailwindcss.com/docs/border-width
3158
+ */
3159
+ 'border-w': [{
3160
+ border: [borderWidth]
3161
+ }],
3162
+ /**
3163
+ * Border Width X
3164
+ * @see https://tailwindcss.com/docs/border-width
3165
+ */
3166
+ 'border-w-x': [{
3167
+ 'border-x': [borderWidth]
3168
+ }],
3169
+ /**
3170
+ * Border Width Y
3171
+ * @see https://tailwindcss.com/docs/border-width
3172
+ */
3173
+ 'border-w-y': [{
3174
+ 'border-y': [borderWidth]
3175
+ }],
3176
+ /**
3177
+ * Border Width Start
3178
+ * @see https://tailwindcss.com/docs/border-width
3179
+ */
3180
+ 'border-w-s': [{
3181
+ 'border-s': [borderWidth]
3182
+ }],
3183
+ /**
3184
+ * Border Width End
3185
+ * @see https://tailwindcss.com/docs/border-width
3186
+ */
3187
+ 'border-w-e': [{
3188
+ 'border-e': [borderWidth]
3189
+ }],
3190
+ /**
3191
+ * Border Width Top
3192
+ * @see https://tailwindcss.com/docs/border-width
3193
+ */
3194
+ 'border-w-t': [{
3195
+ 'border-t': [borderWidth]
3196
+ }],
3197
+ /**
3198
+ * Border Width Right
3199
+ * @see https://tailwindcss.com/docs/border-width
3200
+ */
3201
+ 'border-w-r': [{
3202
+ 'border-r': [borderWidth]
3203
+ }],
3204
+ /**
3205
+ * Border Width Bottom
3206
+ * @see https://tailwindcss.com/docs/border-width
3207
+ */
3208
+ 'border-w-b': [{
3209
+ 'border-b': [borderWidth]
3210
+ }],
3211
+ /**
3212
+ * Border Width Left
3213
+ * @see https://tailwindcss.com/docs/border-width
3214
+ */
3215
+ 'border-w-l': [{
3216
+ 'border-l': [borderWidth]
3217
+ }],
3218
+ /**
3219
+ * Border Opacity
3220
+ * @see https://tailwindcss.com/docs/border-opacity
3221
+ */
3222
+ 'border-opacity': [{
3223
+ 'border-opacity': [opacity]
3224
+ }],
3225
+ /**
3226
+ * Border Style
3227
+ * @see https://tailwindcss.com/docs/border-style
3228
+ */
3229
+ 'border-style': [{
3230
+ border: [...getLineStyles(), 'hidden']
3231
+ }],
3232
+ /**
3233
+ * Divide Width X
3234
+ * @see https://tailwindcss.com/docs/divide-width
3235
+ */
3236
+ 'divide-x': [{
3237
+ 'divide-x': [borderWidth]
3238
+ }],
3239
+ /**
3240
+ * Divide Width X Reverse
3241
+ * @see https://tailwindcss.com/docs/divide-width
3242
+ */
3243
+ 'divide-x-reverse': ['divide-x-reverse'],
3244
+ /**
3245
+ * Divide Width Y
3246
+ * @see https://tailwindcss.com/docs/divide-width
3247
+ */
3248
+ 'divide-y': [{
3249
+ 'divide-y': [borderWidth]
3250
+ }],
3251
+ /**
3252
+ * Divide Width Y Reverse
3253
+ * @see https://tailwindcss.com/docs/divide-width
3254
+ */
3255
+ 'divide-y-reverse': ['divide-y-reverse'],
3256
+ /**
3257
+ * Divide Opacity
3258
+ * @see https://tailwindcss.com/docs/divide-opacity
3259
+ */
3260
+ 'divide-opacity': [{
3261
+ 'divide-opacity': [opacity]
3262
+ }],
3263
+ /**
3264
+ * Divide Style
3265
+ * @see https://tailwindcss.com/docs/divide-style
3266
+ */
3267
+ 'divide-style': [{
3268
+ divide: getLineStyles()
3269
+ }],
3270
+ /**
3271
+ * Border Color
3272
+ * @see https://tailwindcss.com/docs/border-color
3273
+ */
3274
+ 'border-color': [{
3275
+ border: [borderColor]
3276
+ }],
3277
+ /**
3278
+ * Border Color X
3279
+ * @see https://tailwindcss.com/docs/border-color
3280
+ */
3281
+ 'border-color-x': [{
3282
+ 'border-x': [borderColor]
3283
+ }],
3284
+ /**
3285
+ * Border Color Y
3286
+ * @see https://tailwindcss.com/docs/border-color
3287
+ */
3288
+ 'border-color-y': [{
3289
+ 'border-y': [borderColor]
3290
+ }],
3291
+ /**
3292
+ * Border Color S
3293
+ * @see https://tailwindcss.com/docs/border-color
3294
+ */
3295
+ 'border-color-s': [{
3296
+ 'border-s': [borderColor]
3297
+ }],
3298
+ /**
3299
+ * Border Color E
3300
+ * @see https://tailwindcss.com/docs/border-color
3301
+ */
3302
+ 'border-color-e': [{
3303
+ 'border-e': [borderColor]
3304
+ }],
3305
+ /**
3306
+ * Border Color Top
3307
+ * @see https://tailwindcss.com/docs/border-color
3308
+ */
3309
+ 'border-color-t': [{
3310
+ 'border-t': [borderColor]
3311
+ }],
3312
+ /**
3313
+ * Border Color Right
3314
+ * @see https://tailwindcss.com/docs/border-color
3315
+ */
3316
+ 'border-color-r': [{
3317
+ 'border-r': [borderColor]
3318
+ }],
3319
+ /**
3320
+ * Border Color Bottom
3321
+ * @see https://tailwindcss.com/docs/border-color
3322
+ */
3323
+ 'border-color-b': [{
3324
+ 'border-b': [borderColor]
3325
+ }],
3326
+ /**
3327
+ * Border Color Left
3328
+ * @see https://tailwindcss.com/docs/border-color
3329
+ */
3330
+ 'border-color-l': [{
3331
+ 'border-l': [borderColor]
3332
+ }],
3333
+ /**
3334
+ * Divide Color
3335
+ * @see https://tailwindcss.com/docs/divide-color
3336
+ */
3337
+ 'divide-color': [{
3338
+ divide: [borderColor]
3339
+ }],
3340
+ /**
3341
+ * Outline Style
3342
+ * @see https://tailwindcss.com/docs/outline-style
3343
+ */
3344
+ 'outline-style': [{
3345
+ outline: ['', ...getLineStyles()]
3346
+ }],
3347
+ /**
3348
+ * Outline Offset
3349
+ * @see https://tailwindcss.com/docs/outline-offset
3350
+ */
3351
+ 'outline-offset': [{
3352
+ 'outline-offset': [isLength, isArbitraryValue]
3353
+ }],
3354
+ /**
3355
+ * Outline Width
3356
+ * @see https://tailwindcss.com/docs/outline-width
3357
+ */
3358
+ 'outline-w': [{
3359
+ outline: [isLength, isArbitraryLength]
3360
+ }],
3361
+ /**
3362
+ * Outline Color
3363
+ * @see https://tailwindcss.com/docs/outline-color
3364
+ */
3365
+ 'outline-color': [{
3366
+ outline: [colors]
3367
+ }],
3368
+ /**
3369
+ * Ring Width
3370
+ * @see https://tailwindcss.com/docs/ring-width
3371
+ */
3372
+ 'ring-w': [{
3373
+ ring: getLengthWithEmptyAndArbitrary()
3374
+ }],
3375
+ /**
3376
+ * Ring Width Inset
3377
+ * @see https://tailwindcss.com/docs/ring-width
3378
+ */
3379
+ 'ring-w-inset': ['ring-inset'],
3380
+ /**
3381
+ * Ring Color
3382
+ * @see https://tailwindcss.com/docs/ring-color
3383
+ */
3384
+ 'ring-color': [{
3385
+ ring: [colors]
3386
+ }],
3387
+ /**
3388
+ * Ring Opacity
3389
+ * @see https://tailwindcss.com/docs/ring-opacity
3390
+ */
3391
+ 'ring-opacity': [{
3392
+ 'ring-opacity': [opacity]
3393
+ }],
3394
+ /**
3395
+ * Ring Offset Width
3396
+ * @see https://tailwindcss.com/docs/ring-offset-width
3397
+ */
3398
+ 'ring-offset-w': [{
3399
+ 'ring-offset': [isLength, isArbitraryLength]
3400
+ }],
3401
+ /**
3402
+ * Ring Offset Color
3403
+ * @see https://tailwindcss.com/docs/ring-offset-color
3404
+ */
3405
+ 'ring-offset-color': [{
3406
+ 'ring-offset': [colors]
3407
+ }],
3408
+ // Effects
3409
+ /**
3410
+ * Box Shadow
3411
+ * @see https://tailwindcss.com/docs/box-shadow
3412
+ */
3413
+ shadow: [{
3414
+ shadow: ['', 'inner', 'none', isTshirtSize, isArbitraryShadow]
3415
+ }],
3416
+ /**
3417
+ * Box Shadow Color
3418
+ * @see https://tailwindcss.com/docs/box-shadow-color
3419
+ */
3420
+ 'shadow-color': [{
3421
+ shadow: [isAny]
3422
+ }],
3423
+ /**
3424
+ * Opacity
3425
+ * @see https://tailwindcss.com/docs/opacity
3426
+ */
3427
+ opacity: [{
3428
+ opacity: [opacity]
3429
+ }],
3430
+ /**
3431
+ * Mix Blend Mode
3432
+ * @see https://tailwindcss.com/docs/mix-blend-mode
3433
+ */
3434
+ 'mix-blend': [{
3435
+ 'mix-blend': [...getBlendModes(), 'plus-lighter', 'plus-darker']
3436
+ }],
3437
+ /**
3438
+ * Background Blend Mode
3439
+ * @see https://tailwindcss.com/docs/background-blend-mode
3440
+ */
3441
+ 'bg-blend': [{
3442
+ 'bg-blend': getBlendModes()
3443
+ }],
3444
+ // Filters
3445
+ /**
3446
+ * Filter
3447
+ * @deprecated since Tailwind CSS v3.0.0
3448
+ * @see https://tailwindcss.com/docs/filter
3449
+ */
3450
+ filter: [{
3451
+ filter: ['', 'none']
3452
+ }],
3453
+ /**
3454
+ * Blur
3455
+ * @see https://tailwindcss.com/docs/blur
3456
+ */
3457
+ blur: [{
3458
+ blur: [blur]
3459
+ }],
3460
+ /**
3461
+ * Brightness
3462
+ * @see https://tailwindcss.com/docs/brightness
3463
+ */
3464
+ brightness: [{
3465
+ brightness: [brightness]
3466
+ }],
3467
+ /**
3468
+ * Contrast
3469
+ * @see https://tailwindcss.com/docs/contrast
3470
+ */
3471
+ contrast: [{
3472
+ contrast: [contrast]
3473
+ }],
3474
+ /**
3475
+ * Drop Shadow
3476
+ * @see https://tailwindcss.com/docs/drop-shadow
3477
+ */
3478
+ 'drop-shadow': [{
3479
+ 'drop-shadow': ['', 'none', isTshirtSize, isArbitraryValue]
3480
+ }],
3481
+ /**
3482
+ * Grayscale
3483
+ * @see https://tailwindcss.com/docs/grayscale
3484
+ */
3485
+ grayscale: [{
3486
+ grayscale: [grayscale]
3487
+ }],
3488
+ /**
3489
+ * Hue Rotate
3490
+ * @see https://tailwindcss.com/docs/hue-rotate
3491
+ */
3492
+ 'hue-rotate': [{
3493
+ 'hue-rotate': [hueRotate]
3494
+ }],
3495
+ /**
3496
+ * Invert
3497
+ * @see https://tailwindcss.com/docs/invert
3498
+ */
3499
+ invert: [{
3500
+ invert: [invert]
3501
+ }],
3502
+ /**
3503
+ * Saturate
3504
+ * @see https://tailwindcss.com/docs/saturate
3505
+ */
3506
+ saturate: [{
3507
+ saturate: [saturate]
3508
+ }],
3509
+ /**
3510
+ * Sepia
3511
+ * @see https://tailwindcss.com/docs/sepia
3512
+ */
3513
+ sepia: [{
3514
+ sepia: [sepia]
3515
+ }],
3516
+ /**
3517
+ * Backdrop Filter
3518
+ * @deprecated since Tailwind CSS v3.0.0
3519
+ * @see https://tailwindcss.com/docs/backdrop-filter
3520
+ */
3521
+ 'backdrop-filter': [{
3522
+ 'backdrop-filter': ['', 'none']
3523
+ }],
3524
+ /**
3525
+ * Backdrop Blur
3526
+ * @see https://tailwindcss.com/docs/backdrop-blur
3527
+ */
3528
+ 'backdrop-blur': [{
3529
+ 'backdrop-blur': [blur]
3530
+ }],
3531
+ /**
3532
+ * Backdrop Brightness
3533
+ * @see https://tailwindcss.com/docs/backdrop-brightness
3534
+ */
3535
+ 'backdrop-brightness': [{
3536
+ 'backdrop-brightness': [brightness]
3537
+ }],
3538
+ /**
3539
+ * Backdrop Contrast
3540
+ * @see https://tailwindcss.com/docs/backdrop-contrast
3541
+ */
3542
+ 'backdrop-contrast': [{
3543
+ 'backdrop-contrast': [contrast]
3544
+ }],
3545
+ /**
3546
+ * Backdrop Grayscale
3547
+ * @see https://tailwindcss.com/docs/backdrop-grayscale
3548
+ */
3549
+ 'backdrop-grayscale': [{
3550
+ 'backdrop-grayscale': [grayscale]
3551
+ }],
3552
+ /**
3553
+ * Backdrop Hue Rotate
3554
+ * @see https://tailwindcss.com/docs/backdrop-hue-rotate
3555
+ */
3556
+ 'backdrop-hue-rotate': [{
3557
+ 'backdrop-hue-rotate': [hueRotate]
3558
+ }],
3559
+ /**
3560
+ * Backdrop Invert
3561
+ * @see https://tailwindcss.com/docs/backdrop-invert
3562
+ */
3563
+ 'backdrop-invert': [{
3564
+ 'backdrop-invert': [invert]
3565
+ }],
3566
+ /**
3567
+ * Backdrop Opacity
3568
+ * @see https://tailwindcss.com/docs/backdrop-opacity
3569
+ */
3570
+ 'backdrop-opacity': [{
3571
+ 'backdrop-opacity': [opacity]
3572
+ }],
3573
+ /**
3574
+ * Backdrop Saturate
3575
+ * @see https://tailwindcss.com/docs/backdrop-saturate
3576
+ */
3577
+ 'backdrop-saturate': [{
3578
+ 'backdrop-saturate': [saturate]
3579
+ }],
3580
+ /**
3581
+ * Backdrop Sepia
3582
+ * @see https://tailwindcss.com/docs/backdrop-sepia
3583
+ */
3584
+ 'backdrop-sepia': [{
3585
+ 'backdrop-sepia': [sepia]
3586
+ }],
3587
+ // Tables
3588
+ /**
3589
+ * Border Collapse
3590
+ * @see https://tailwindcss.com/docs/border-collapse
3591
+ */
3592
+ 'border-collapse': [{
3593
+ border: ['collapse', 'separate']
3594
+ }],
3595
+ /**
3596
+ * Border Spacing
3597
+ * @see https://tailwindcss.com/docs/border-spacing
3598
+ */
3599
+ 'border-spacing': [{
3600
+ 'border-spacing': [borderSpacing]
3601
+ }],
3602
+ /**
3603
+ * Border Spacing X
3604
+ * @see https://tailwindcss.com/docs/border-spacing
3605
+ */
3606
+ 'border-spacing-x': [{
3607
+ 'border-spacing-x': [borderSpacing]
3608
+ }],
3609
+ /**
3610
+ * Border Spacing Y
3611
+ * @see https://tailwindcss.com/docs/border-spacing
3612
+ */
3613
+ 'border-spacing-y': [{
3614
+ 'border-spacing-y': [borderSpacing]
3615
+ }],
3616
+ /**
3617
+ * Table Layout
3618
+ * @see https://tailwindcss.com/docs/table-layout
3619
+ */
3620
+ 'table-layout': [{
3621
+ table: ['auto', 'fixed']
3622
+ }],
3623
+ /**
3624
+ * Caption Side
3625
+ * @see https://tailwindcss.com/docs/caption-side
3626
+ */
3627
+ caption: [{
3628
+ caption: ['top', 'bottom']
3629
+ }],
3630
+ // Transitions and Animation
3631
+ /**
3632
+ * Tranisition Property
3633
+ * @see https://tailwindcss.com/docs/transition-property
3634
+ */
3635
+ transition: [{
3636
+ transition: ['none', 'all', '', 'colors', 'opacity', 'shadow', 'transform', isArbitraryValue]
3637
+ }],
3638
+ /**
3639
+ * Transition Duration
3640
+ * @see https://tailwindcss.com/docs/transition-duration
3641
+ */
3642
+ duration: [{
3643
+ duration: getNumberAndArbitrary()
3644
+ }],
3645
+ /**
3646
+ * Transition Timing Function
3647
+ * @see https://tailwindcss.com/docs/transition-timing-function
3648
+ */
3649
+ ease: [{
3650
+ ease: ['linear', 'in', 'out', 'in-out', isArbitraryValue]
3651
+ }],
3652
+ /**
3653
+ * Transition Delay
3654
+ * @see https://tailwindcss.com/docs/transition-delay
3655
+ */
3656
+ delay: [{
3657
+ delay: getNumberAndArbitrary()
3658
+ }],
3659
+ /**
3660
+ * Animation
3661
+ * @see https://tailwindcss.com/docs/animation
3662
+ */
3663
+ animate: [{
3664
+ animate: ['none', 'spin', 'ping', 'pulse', 'bounce', isArbitraryValue]
3665
+ }],
3666
+ // Transforms
3667
+ /**
3668
+ * Transform
3669
+ * @see https://tailwindcss.com/docs/transform
3670
+ */
3671
+ transform: [{
3672
+ transform: ['', 'gpu', 'none']
3673
+ }],
3674
+ /**
3675
+ * Scale
3676
+ * @see https://tailwindcss.com/docs/scale
3677
+ */
3678
+ scale: [{
3679
+ scale: [scale]
3680
+ }],
3681
+ /**
3682
+ * Scale X
3683
+ * @see https://tailwindcss.com/docs/scale
3684
+ */
3685
+ 'scale-x': [{
3686
+ 'scale-x': [scale]
3687
+ }],
3688
+ /**
3689
+ * Scale Y
3690
+ * @see https://tailwindcss.com/docs/scale
3691
+ */
3692
+ 'scale-y': [{
3693
+ 'scale-y': [scale]
3694
+ }],
3695
+ /**
3696
+ * Rotate
3697
+ * @see https://tailwindcss.com/docs/rotate
3698
+ */
3699
+ rotate: [{
3700
+ rotate: [isInteger, isArbitraryValue]
3701
+ }],
3702
+ /**
3703
+ * Translate X
3704
+ * @see https://tailwindcss.com/docs/translate
3705
+ */
3706
+ 'translate-x': [{
3707
+ 'translate-x': [translate]
3708
+ }],
3709
+ /**
3710
+ * Translate Y
3711
+ * @see https://tailwindcss.com/docs/translate
3712
+ */
3713
+ 'translate-y': [{
3714
+ 'translate-y': [translate]
3715
+ }],
3716
+ /**
3717
+ * Skew X
3718
+ * @see https://tailwindcss.com/docs/skew
3719
+ */
3720
+ 'skew-x': [{
3721
+ 'skew-x': [skew]
3722
+ }],
3723
+ /**
3724
+ * Skew Y
3725
+ * @see https://tailwindcss.com/docs/skew
3726
+ */
3727
+ 'skew-y': [{
3728
+ 'skew-y': [skew]
3729
+ }],
3730
+ /**
3731
+ * Transform Origin
3732
+ * @see https://tailwindcss.com/docs/transform-origin
3733
+ */
3734
+ 'transform-origin': [{
3735
+ origin: ['center', 'top', 'top-right', 'right', 'bottom-right', 'bottom', 'bottom-left', 'left', 'top-left', isArbitraryValue]
3736
+ }],
3737
+ // Interactivity
3738
+ /**
3739
+ * Accent Color
3740
+ * @see https://tailwindcss.com/docs/accent-color
3741
+ */
3742
+ accent: [{
3743
+ accent: ['auto', colors]
3744
+ }],
3745
+ /**
3746
+ * Appearance
3747
+ * @see https://tailwindcss.com/docs/appearance
3748
+ */
3749
+ appearance: [{
3750
+ appearance: ['none', 'auto']
3751
+ }],
3752
+ /**
3753
+ * Cursor
3754
+ * @see https://tailwindcss.com/docs/cursor
3755
+ */
3756
+ cursor: [{
3757
+ 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]
3758
+ }],
3759
+ /**
3760
+ * Caret Color
3761
+ * @see https://tailwindcss.com/docs/just-in-time-mode#caret-color-utilities
3762
+ */
3763
+ 'caret-color': [{
3764
+ caret: [colors]
3765
+ }],
3766
+ /**
3767
+ * Pointer Events
3768
+ * @see https://tailwindcss.com/docs/pointer-events
3769
+ */
3770
+ 'pointer-events': [{
3771
+ 'pointer-events': ['none', 'auto']
3772
+ }],
3773
+ /**
3774
+ * Resize
3775
+ * @see https://tailwindcss.com/docs/resize
3776
+ */
3777
+ resize: [{
3778
+ resize: ['none', 'y', 'x', '']
3779
+ }],
3780
+ /**
3781
+ * Scroll Behavior
3782
+ * @see https://tailwindcss.com/docs/scroll-behavior
3783
+ */
3784
+ 'scroll-behavior': [{
3785
+ scroll: ['auto', 'smooth']
3786
+ }],
3787
+ /**
3788
+ * Scroll Margin
3789
+ * @see https://tailwindcss.com/docs/scroll-margin
3790
+ */
3791
+ 'scroll-m': [{
3792
+ 'scroll-m': getSpacingWithArbitrary()
3793
+ }],
3794
+ /**
3795
+ * Scroll Margin X
3796
+ * @see https://tailwindcss.com/docs/scroll-margin
3797
+ */
3798
+ 'scroll-mx': [{
3799
+ 'scroll-mx': getSpacingWithArbitrary()
3800
+ }],
3801
+ /**
3802
+ * Scroll Margin Y
3803
+ * @see https://tailwindcss.com/docs/scroll-margin
3804
+ */
3805
+ 'scroll-my': [{
3806
+ 'scroll-my': getSpacingWithArbitrary()
3807
+ }],
3808
+ /**
3809
+ * Scroll Margin Start
3810
+ * @see https://tailwindcss.com/docs/scroll-margin
3811
+ */
3812
+ 'scroll-ms': [{
3813
+ 'scroll-ms': getSpacingWithArbitrary()
3814
+ }],
3815
+ /**
3816
+ * Scroll Margin End
3817
+ * @see https://tailwindcss.com/docs/scroll-margin
3818
+ */
3819
+ 'scroll-me': [{
3820
+ 'scroll-me': getSpacingWithArbitrary()
3821
+ }],
3822
+ /**
3823
+ * Scroll Margin Top
3824
+ * @see https://tailwindcss.com/docs/scroll-margin
3825
+ */
3826
+ 'scroll-mt': [{
3827
+ 'scroll-mt': getSpacingWithArbitrary()
3828
+ }],
3829
+ /**
3830
+ * Scroll Margin Right
3831
+ * @see https://tailwindcss.com/docs/scroll-margin
3832
+ */
3833
+ 'scroll-mr': [{
3834
+ 'scroll-mr': getSpacingWithArbitrary()
3835
+ }],
3836
+ /**
3837
+ * Scroll Margin Bottom
3838
+ * @see https://tailwindcss.com/docs/scroll-margin
3839
+ */
3840
+ 'scroll-mb': [{
3841
+ 'scroll-mb': getSpacingWithArbitrary()
3842
+ }],
3843
+ /**
3844
+ * Scroll Margin Left
3845
+ * @see https://tailwindcss.com/docs/scroll-margin
3846
+ */
3847
+ 'scroll-ml': [{
3848
+ 'scroll-ml': getSpacingWithArbitrary()
3849
+ }],
3850
+ /**
3851
+ * Scroll Padding
3852
+ * @see https://tailwindcss.com/docs/scroll-padding
3853
+ */
3854
+ 'scroll-p': [{
3855
+ 'scroll-p': getSpacingWithArbitrary()
3856
+ }],
3857
+ /**
3858
+ * Scroll Padding X
3859
+ * @see https://tailwindcss.com/docs/scroll-padding
3860
+ */
3861
+ 'scroll-px': [{
3862
+ 'scroll-px': getSpacingWithArbitrary()
3863
+ }],
3864
+ /**
3865
+ * Scroll Padding Y
3866
+ * @see https://tailwindcss.com/docs/scroll-padding
3867
+ */
3868
+ 'scroll-py': [{
3869
+ 'scroll-py': getSpacingWithArbitrary()
3870
+ }],
3871
+ /**
3872
+ * Scroll Padding Start
3873
+ * @see https://tailwindcss.com/docs/scroll-padding
3874
+ */
3875
+ 'scroll-ps': [{
3876
+ 'scroll-ps': getSpacingWithArbitrary()
3877
+ }],
3878
+ /**
3879
+ * Scroll Padding End
3880
+ * @see https://tailwindcss.com/docs/scroll-padding
3881
+ */
3882
+ 'scroll-pe': [{
3883
+ 'scroll-pe': getSpacingWithArbitrary()
3884
+ }],
3885
+ /**
3886
+ * Scroll Padding Top
3887
+ * @see https://tailwindcss.com/docs/scroll-padding
3888
+ */
3889
+ 'scroll-pt': [{
3890
+ 'scroll-pt': getSpacingWithArbitrary()
3891
+ }],
3892
+ /**
3893
+ * Scroll Padding Right
3894
+ * @see https://tailwindcss.com/docs/scroll-padding
3895
+ */
3896
+ 'scroll-pr': [{
3897
+ 'scroll-pr': getSpacingWithArbitrary()
3898
+ }],
3899
+ /**
3900
+ * Scroll Padding Bottom
3901
+ * @see https://tailwindcss.com/docs/scroll-padding
3902
+ */
3903
+ 'scroll-pb': [{
3904
+ 'scroll-pb': getSpacingWithArbitrary()
3905
+ }],
3906
+ /**
3907
+ * Scroll Padding Left
3908
+ * @see https://tailwindcss.com/docs/scroll-padding
3909
+ */
3910
+ 'scroll-pl': [{
3911
+ 'scroll-pl': getSpacingWithArbitrary()
3912
+ }],
3913
+ /**
3914
+ * Scroll Snap Align
3915
+ * @see https://tailwindcss.com/docs/scroll-snap-align
3916
+ */
3917
+ 'snap-align': [{
3918
+ snap: ['start', 'end', 'center', 'align-none']
3919
+ }],
3920
+ /**
3921
+ * Scroll Snap Stop
3922
+ * @see https://tailwindcss.com/docs/scroll-snap-stop
3923
+ */
3924
+ 'snap-stop': [{
3925
+ snap: ['normal', 'always']
3926
+ }],
3927
+ /**
3928
+ * Scroll Snap Type
3929
+ * @see https://tailwindcss.com/docs/scroll-snap-type
3930
+ */
3931
+ 'snap-type': [{
3932
+ snap: ['none', 'x', 'y', 'both']
3933
+ }],
3934
+ /**
3935
+ * Scroll Snap Type Strictness
3936
+ * @see https://tailwindcss.com/docs/scroll-snap-type
3937
+ */
3938
+ 'snap-strictness': [{
3939
+ snap: ['mandatory', 'proximity']
3940
+ }],
3941
+ /**
3942
+ * Touch Action
3943
+ * @see https://tailwindcss.com/docs/touch-action
3944
+ */
3945
+ touch: [{
3946
+ touch: ['auto', 'none', 'manipulation']
3947
+ }],
3948
+ /**
3949
+ * Touch Action X
3950
+ * @see https://tailwindcss.com/docs/touch-action
3951
+ */
3952
+ 'touch-x': [{
3953
+ 'touch-pan': ['x', 'left', 'right']
3954
+ }],
3955
+ /**
3956
+ * Touch Action Y
3957
+ * @see https://tailwindcss.com/docs/touch-action
3958
+ */
3959
+ 'touch-y': [{
3960
+ 'touch-pan': ['y', 'up', 'down']
3961
+ }],
3962
+ /**
3963
+ * Touch Action Pinch Zoom
3964
+ * @see https://tailwindcss.com/docs/touch-action
3965
+ */
3966
+ 'touch-pz': ['touch-pinch-zoom'],
3967
+ /**
3968
+ * User Select
3969
+ * @see https://tailwindcss.com/docs/user-select
3970
+ */
3971
+ select: [{
3972
+ select: ['none', 'text', 'all', 'auto']
3973
+ }],
3974
+ /**
3975
+ * Will Change
3976
+ * @see https://tailwindcss.com/docs/will-change
3977
+ */
3978
+ 'will-change': [{
3979
+ 'will-change': ['auto', 'scroll', 'contents', 'transform', isArbitraryValue]
3980
+ }],
3981
+ // SVG
3982
+ /**
3983
+ * Fill
3984
+ * @see https://tailwindcss.com/docs/fill
3985
+ */
3986
+ fill: [{
3987
+ fill: [colors, 'none']
3988
+ }],
3989
+ /**
3990
+ * Stroke Width
3991
+ * @see https://tailwindcss.com/docs/stroke-width
3992
+ */
3993
+ 'stroke-w': [{
3994
+ stroke: [isLength, isArbitraryLength, isArbitraryNumber]
3995
+ }],
3996
+ /**
3997
+ * Stroke
3998
+ * @see https://tailwindcss.com/docs/stroke
3999
+ */
4000
+ stroke: [{
4001
+ stroke: [colors, 'none']
4002
+ }],
4003
+ // Accessibility
4004
+ /**
4005
+ * Screen Readers
4006
+ * @see https://tailwindcss.com/docs/screen-readers
4007
+ */
4008
+ sr: ['sr-only', 'not-sr-only'],
4009
+ /**
4010
+ * Forced Color Adjust
4011
+ * @see https://tailwindcss.com/docs/forced-color-adjust
4012
+ */
4013
+ 'forced-color-adjust': [{
4014
+ 'forced-color-adjust': ['auto', 'none']
4015
+ }]
4016
+ },
4017
+ conflictingClassGroups: {
4018
+ overflow: ['overflow-x', 'overflow-y'],
4019
+ overscroll: ['overscroll-x', 'overscroll-y'],
4020
+ inset: ['inset-x', 'inset-y', 'start', 'end', 'top', 'right', 'bottom', 'left'],
4021
+ 'inset-x': ['right', 'left'],
4022
+ 'inset-y': ['top', 'bottom'],
4023
+ flex: ['basis', 'grow', 'shrink'],
4024
+ gap: ['gap-x', 'gap-y'],
4025
+ p: ['px', 'py', 'ps', 'pe', 'pt', 'pr', 'pb', 'pl'],
4026
+ px: ['pr', 'pl'],
4027
+ py: ['pt', 'pb'],
4028
+ m: ['mx', 'my', 'ms', 'me', 'mt', 'mr', 'mb', 'ml'],
4029
+ mx: ['mr', 'ml'],
4030
+ my: ['mt', 'mb'],
4031
+ size: ['w', 'h'],
4032
+ 'font-size': ['leading'],
4033
+ 'fvn-normal': ['fvn-ordinal', 'fvn-slashed-zero', 'fvn-figure', 'fvn-spacing', 'fvn-fraction'],
4034
+ 'fvn-ordinal': ['fvn-normal'],
4035
+ 'fvn-slashed-zero': ['fvn-normal'],
4036
+ 'fvn-figure': ['fvn-normal'],
4037
+ 'fvn-spacing': ['fvn-normal'],
4038
+ 'fvn-fraction': ['fvn-normal'],
4039
+ 'line-clamp': ['display', 'overflow'],
4040
+ 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'],
4041
+ 'rounded-s': ['rounded-ss', 'rounded-es'],
4042
+ 'rounded-e': ['rounded-se', 'rounded-ee'],
4043
+ 'rounded-t': ['rounded-tl', 'rounded-tr'],
4044
+ 'rounded-r': ['rounded-tr', 'rounded-br'],
4045
+ 'rounded-b': ['rounded-br', 'rounded-bl'],
4046
+ 'rounded-l': ['rounded-tl', 'rounded-bl'],
4047
+ 'border-spacing': ['border-spacing-x', 'border-spacing-y'],
4048
+ 'border-w': ['border-w-s', 'border-w-e', 'border-w-t', 'border-w-r', 'border-w-b', 'border-w-l'],
4049
+ 'border-w-x': ['border-w-r', 'border-w-l'],
4050
+ 'border-w-y': ['border-w-t', 'border-w-b'],
4051
+ 'border-color': ['border-color-s', 'border-color-e', 'border-color-t', 'border-color-r', 'border-color-b', 'border-color-l'],
4052
+ 'border-color-x': ['border-color-r', 'border-color-l'],
4053
+ 'border-color-y': ['border-color-t', 'border-color-b'],
4054
+ 'scroll-m': ['scroll-mx', 'scroll-my', 'scroll-ms', 'scroll-me', 'scroll-mt', 'scroll-mr', 'scroll-mb', 'scroll-ml'],
4055
+ 'scroll-mx': ['scroll-mr', 'scroll-ml'],
4056
+ 'scroll-my': ['scroll-mt', 'scroll-mb'],
4057
+ 'scroll-p': ['scroll-px', 'scroll-py', 'scroll-ps', 'scroll-pe', 'scroll-pt', 'scroll-pr', 'scroll-pb', 'scroll-pl'],
4058
+ 'scroll-px': ['scroll-pr', 'scroll-pl'],
4059
+ 'scroll-py': ['scroll-pt', 'scroll-pb'],
4060
+ touch: ['touch-x', 'touch-y', 'touch-pz'],
4061
+ 'touch-x': ['touch'],
4062
+ 'touch-y': ['touch'],
4063
+ 'touch-pz': ['touch']
4064
+ },
4065
+ conflictingClassGroupModifiers: {
4066
+ 'font-size': ['leading']
4067
+ }
4068
+ };
4069
+ };
4070
+ const twMerge = /*#__PURE__*/createTailwindMerge(getDefaultConfig);
4071
+
4072
+ function cn() {
4073
+ var inputs = [];
4074
+ for (var _i = 0; _i < arguments.length; _i++) {
4075
+ inputs[_i] = arguments[_i];
4076
+ }
4077
+ return twMerge(clsx(inputs));
4078
+ }
4079
+
4080
+ 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", {
4081
+ variants: {
4082
+ variant: {
4083
+ default: "bg-primary text-primary-foreground hover:bg-primary/90",
4084
+ destructive: "bg-destructive text-destructive-foreground hover:bg-destructive/90",
4085
+ outline: "border border-input bg-background hover:bg-accent hover:text-accent-foreground",
4086
+ secondary: "bg-secondary text-secondary-foreground hover:bg-secondary/80",
4087
+ ghost: "hover:bg-accent hover:text-accent-foreground",
4088
+ link: "text-primary underline-offset-4 hover:underline",
4089
+ },
4090
+ size: {
4091
+ default: "h-10 px-4 py-2",
4092
+ sm: "h-9 rounded-md px-3",
4093
+ lg: "h-11 rounded-md px-8",
4094
+ icon: "h-10 w-10",
4095
+ },
4096
+ },
4097
+ defaultVariants: {
4098
+ variant: "default",
4099
+ size: "default",
4100
+ },
4101
+ });
4102
+ var Button = React__namespace.forwardRef(function (_a, ref) {
4103
+ var className = _a.className, variant = _a.variant, size = _a.size, _b = _a.asChild, asChild = _b === void 0 ? false : _b, props = __rest(_a, ["className", "variant", "size", "asChild"]);
4104
+ var Comp = asChild ? Slot : "button";
4105
+ return (jsxRuntimeExports.jsx(Comp, __assign({ className: cn(buttonVariants({ variant: variant, size: size, className: className })), ref: ref }, props)));
4106
+ });
4107
+ Button.displayName = "Button";
4108
+
4109
+ exports.Button = Button;
9
4110
  //# sourceMappingURL=index.js.map