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