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