@niledatabase/react 3.0.0-alpha.2 → 3.0.0-alpha.21

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.
Files changed (38) hide show
  1. package/dist/index.d.mts +63 -0
  2. package/dist/index.d.ts +62 -10
  3. package/dist/index.js +2992 -5
  4. package/dist/index.mjs +2956 -0
  5. package/package.json +37 -24
  6. package/dist/GoogleLoginButton/GoogleLoginButton.d.ts +0 -10
  7. package/dist/GoogleLoginButton/GoogleLoginButton.stories.d.ts +0 -11
  8. package/dist/GoogleLoginButton/index.d.ts +0 -1
  9. package/dist/SignInForm/SignInForm.d.ts +0 -3
  10. package/dist/SignInForm/UserLoginForm.stories.d.ts +0 -5
  11. package/dist/SignInForm/index.d.ts +0 -1
  12. package/dist/SignInForm/types.d.ts +0 -15
  13. package/dist/SignUpForm/NewUserSignUp.stories.d.ts +0 -5
  14. package/dist/SignUpForm/SignUpForm.d.ts +0 -3
  15. package/dist/SignUpForm/index.d.ts +0 -1
  16. package/dist/SignUpForm/types.d.ts +0 -13
  17. package/dist/UserTenantList/CreateUser.d.ts +0 -8
  18. package/dist/UserTenantList/UserList.d.ts +0 -17
  19. package/dist/UserTenantList/UserList.stories.d.ts +0 -5
  20. package/dist/UserTenantList/UserModal.d.ts +0 -7
  21. package/dist/UserTenantList/index.d.ts +0 -1
  22. package/dist/UserTenantList/useDataParser.d.ts +0 -4
  23. package/dist/context/index.d.ts +0 -9
  24. package/dist/context/theme.d.ts +0 -7
  25. package/dist/context/types.d.ts +0 -22
  26. package/dist/hooks/useResults.d.ts +0 -22
  27. package/dist/hooks/useTextSizer.d.ts +0 -1
  28. package/dist/lib/SimpleForm/CheckGroup/index.d.ts +0 -10
  29. package/dist/lib/SimpleForm/index.d.ts +0 -11
  30. package/dist/lib/SimpleForm/types.d.ts +0 -37
  31. package/dist/react.cjs.development.js +0 -938
  32. package/dist/react.cjs.development.js.map +0 -1
  33. package/dist/react.cjs.production.min.js +0 -2
  34. package/dist/react.cjs.production.min.js.map +0 -1
  35. package/dist/react.esm.d.ts +0 -11
  36. package/dist/react.esm.js +0 -906
  37. package/dist/react.esm.js.map +0 -1
  38. package/dist/utils/getColumnSize.d.ts +0 -2
package/dist/index.mjs ADDED
@@ -0,0 +1,2956 @@
1
+ // src/GoogleLoginButton/GoogleLoginButton.tsx
2
+ import React2 from "react";
3
+ import { signIn } from "next-auth/react";
4
+ import { Slot as Slot2 } from "@radix-ui/react-slot";
5
+
6
+ // ../../node_modules/clsx/dist/clsx.mjs
7
+ function r(e) {
8
+ var t, f, n = "";
9
+ if ("string" == typeof e || "number" == typeof e) n += e;
10
+ else if ("object" == typeof e) if (Array.isArray(e)) {
11
+ var o = e.length;
12
+ for (t = 0; t < o; t++) e[t] && (f = r(e[t])) && (n && (n += " "), n += f);
13
+ } else for (f in e) e[f] && (n && (n += " "), n += f);
14
+ return n;
15
+ }
16
+ function clsx() {
17
+ for (var e, t, f = 0, n = "", o = arguments.length; f < o; f++) (e = arguments[f]) && (t = r(e)) && (n && (n += " "), n += t);
18
+ return n;
19
+ }
20
+
21
+ // ../../node_modules/tailwind-merge/dist/bundle-mjs.mjs
22
+ var CLASS_PART_SEPARATOR = "-";
23
+ var createClassGroupUtils = (config) => {
24
+ const classMap = createClassMap(config);
25
+ const {
26
+ conflictingClassGroups,
27
+ conflictingClassGroupModifiers
28
+ } = config;
29
+ const getClassGroupId = (className) => {
30
+ const classParts = className.split(CLASS_PART_SEPARATOR);
31
+ if (classParts[0] === "" && classParts.length !== 1) {
32
+ classParts.shift();
33
+ }
34
+ return getGroupRecursive(classParts, classMap) || getGroupIdForArbitraryProperty(className);
35
+ };
36
+ const getConflictingClassGroupIds = (classGroupId, hasPostfixModifier) => {
37
+ const conflicts = conflictingClassGroups[classGroupId] || [];
38
+ if (hasPostfixModifier && conflictingClassGroupModifiers[classGroupId]) {
39
+ return [...conflicts, ...conflictingClassGroupModifiers[classGroupId]];
40
+ }
41
+ return conflicts;
42
+ };
43
+ return {
44
+ getClassGroupId,
45
+ getConflictingClassGroupIds
46
+ };
47
+ };
48
+ var getGroupRecursive = (classParts, classPartObject) => {
49
+ if (classParts.length === 0) {
50
+ return classPartObject.classGroupId;
51
+ }
52
+ const currentClassPart = classParts[0];
53
+ const nextClassPartObject = classPartObject.nextPart.get(currentClassPart);
54
+ const classGroupFromNextClassPart = nextClassPartObject ? getGroupRecursive(classParts.slice(1), nextClassPartObject) : void 0;
55
+ if (classGroupFromNextClassPart) {
56
+ return classGroupFromNextClassPart;
57
+ }
58
+ if (classPartObject.validators.length === 0) {
59
+ return void 0;
60
+ }
61
+ const classRest = classParts.join(CLASS_PART_SEPARATOR);
62
+ return classPartObject.validators.find(({
63
+ validator
64
+ }) => validator(classRest))?.classGroupId;
65
+ };
66
+ var arbitraryPropertyRegex = /^\[(.+)\]$/;
67
+ var getGroupIdForArbitraryProperty = (className) => {
68
+ if (arbitraryPropertyRegex.test(className)) {
69
+ const arbitraryPropertyClassName = arbitraryPropertyRegex.exec(className)[1];
70
+ const property = arbitraryPropertyClassName?.substring(0, arbitraryPropertyClassName.indexOf(":"));
71
+ if (property) {
72
+ return "arbitrary.." + property;
73
+ }
74
+ }
75
+ };
76
+ var createClassMap = (config) => {
77
+ const {
78
+ theme,
79
+ prefix
80
+ } = config;
81
+ const classMap = {
82
+ nextPart: /* @__PURE__ */ new Map(),
83
+ validators: []
84
+ };
85
+ const prefixedClassGroupEntries = getPrefixedClassGroupEntries(Object.entries(config.classGroups), prefix);
86
+ prefixedClassGroupEntries.forEach(([classGroupId, classGroup]) => {
87
+ processClassesRecursively(classGroup, classMap, classGroupId, theme);
88
+ });
89
+ return classMap;
90
+ };
91
+ var processClassesRecursively = (classGroup, classPartObject, classGroupId, theme) => {
92
+ classGroup.forEach((classDefinition) => {
93
+ if (typeof classDefinition === "string") {
94
+ const classPartObjectToEdit = classDefinition === "" ? classPartObject : getPart(classPartObject, classDefinition);
95
+ classPartObjectToEdit.classGroupId = classGroupId;
96
+ return;
97
+ }
98
+ if (typeof classDefinition === "function") {
99
+ if (isThemeGetter(classDefinition)) {
100
+ processClassesRecursively(classDefinition(theme), classPartObject, classGroupId, theme);
101
+ return;
102
+ }
103
+ classPartObject.validators.push({
104
+ validator: classDefinition,
105
+ classGroupId
106
+ });
107
+ return;
108
+ }
109
+ Object.entries(classDefinition).forEach(([key, classGroup2]) => {
110
+ processClassesRecursively(classGroup2, getPart(classPartObject, key), classGroupId, theme);
111
+ });
112
+ });
113
+ };
114
+ var getPart = (classPartObject, path) => {
115
+ let currentClassPartObject = classPartObject;
116
+ path.split(CLASS_PART_SEPARATOR).forEach((pathPart) => {
117
+ if (!currentClassPartObject.nextPart.has(pathPart)) {
118
+ currentClassPartObject.nextPart.set(pathPart, {
119
+ nextPart: /* @__PURE__ */ new Map(),
120
+ validators: []
121
+ });
122
+ }
123
+ currentClassPartObject = currentClassPartObject.nextPart.get(pathPart);
124
+ });
125
+ return currentClassPartObject;
126
+ };
127
+ var isThemeGetter = (func) => func.isThemeGetter;
128
+ var getPrefixedClassGroupEntries = (classGroupEntries, prefix) => {
129
+ if (!prefix) {
130
+ return classGroupEntries;
131
+ }
132
+ return classGroupEntries.map(([classGroupId, classGroup]) => {
133
+ const prefixedClassGroup = classGroup.map((classDefinition) => {
134
+ if (typeof classDefinition === "string") {
135
+ return prefix + classDefinition;
136
+ }
137
+ if (typeof classDefinition === "object") {
138
+ return Object.fromEntries(Object.entries(classDefinition).map(([key, value]) => [prefix + key, value]));
139
+ }
140
+ return classDefinition;
141
+ });
142
+ return [classGroupId, prefixedClassGroup];
143
+ });
144
+ };
145
+ var createLruCache = (maxCacheSize) => {
146
+ if (maxCacheSize < 1) {
147
+ return {
148
+ get: () => void 0,
149
+ set: () => {
150
+ }
151
+ };
152
+ }
153
+ let cacheSize = 0;
154
+ let cache = /* @__PURE__ */ new Map();
155
+ let previousCache = /* @__PURE__ */ new Map();
156
+ const update = (key, value) => {
157
+ cache.set(key, value);
158
+ cacheSize++;
159
+ if (cacheSize > maxCacheSize) {
160
+ cacheSize = 0;
161
+ previousCache = cache;
162
+ cache = /* @__PURE__ */ new Map();
163
+ }
164
+ };
165
+ return {
166
+ get(key) {
167
+ let value = cache.get(key);
168
+ if (value !== void 0) {
169
+ return value;
170
+ }
171
+ if ((value = previousCache.get(key)) !== void 0) {
172
+ update(key, value);
173
+ return value;
174
+ }
175
+ },
176
+ set(key, value) {
177
+ if (cache.has(key)) {
178
+ cache.set(key, value);
179
+ } else {
180
+ update(key, value);
181
+ }
182
+ }
183
+ };
184
+ };
185
+ var IMPORTANT_MODIFIER = "!";
186
+ var createParseClassName = (config) => {
187
+ const {
188
+ separator,
189
+ experimentalParseClassName
190
+ } = config;
191
+ const isSeparatorSingleCharacter = separator.length === 1;
192
+ const firstSeparatorCharacter = separator[0];
193
+ const separatorLength = separator.length;
194
+ const parseClassName = (className) => {
195
+ const modifiers = [];
196
+ let bracketDepth = 0;
197
+ let modifierStart = 0;
198
+ let postfixModifierPosition;
199
+ for (let index = 0; index < className.length; index++) {
200
+ let currentCharacter = className[index];
201
+ if (bracketDepth === 0) {
202
+ if (currentCharacter === firstSeparatorCharacter && (isSeparatorSingleCharacter || className.slice(index, index + separatorLength) === separator)) {
203
+ modifiers.push(className.slice(modifierStart, index));
204
+ modifierStart = index + separatorLength;
205
+ continue;
206
+ }
207
+ if (currentCharacter === "/") {
208
+ postfixModifierPosition = index;
209
+ continue;
210
+ }
211
+ }
212
+ if (currentCharacter === "[") {
213
+ bracketDepth++;
214
+ } else if (currentCharacter === "]") {
215
+ bracketDepth--;
216
+ }
217
+ }
218
+ const baseClassNameWithImportantModifier = modifiers.length === 0 ? className : className.substring(modifierStart);
219
+ const hasImportantModifier = baseClassNameWithImportantModifier.startsWith(IMPORTANT_MODIFIER);
220
+ const baseClassName = hasImportantModifier ? baseClassNameWithImportantModifier.substring(1) : baseClassNameWithImportantModifier;
221
+ const maybePostfixModifierPosition = postfixModifierPosition && postfixModifierPosition > modifierStart ? postfixModifierPosition - modifierStart : void 0;
222
+ return {
223
+ modifiers,
224
+ hasImportantModifier,
225
+ baseClassName,
226
+ maybePostfixModifierPosition
227
+ };
228
+ };
229
+ if (experimentalParseClassName) {
230
+ return (className) => experimentalParseClassName({
231
+ className,
232
+ parseClassName
233
+ });
234
+ }
235
+ return parseClassName;
236
+ };
237
+ var sortModifiers = (modifiers) => {
238
+ if (modifiers.length <= 1) {
239
+ return modifiers;
240
+ }
241
+ const sortedModifiers = [];
242
+ let unsortedModifiers = [];
243
+ modifiers.forEach((modifier) => {
244
+ const isArbitraryVariant = modifier[0] === "[";
245
+ if (isArbitraryVariant) {
246
+ sortedModifiers.push(...unsortedModifiers.sort(), modifier);
247
+ unsortedModifiers = [];
248
+ } else {
249
+ unsortedModifiers.push(modifier);
250
+ }
251
+ });
252
+ sortedModifiers.push(...unsortedModifiers.sort());
253
+ return sortedModifiers;
254
+ };
255
+ var createConfigUtils = (config) => ({
256
+ cache: createLruCache(config.cacheSize),
257
+ parseClassName: createParseClassName(config),
258
+ ...createClassGroupUtils(config)
259
+ });
260
+ var SPLIT_CLASSES_REGEX = /\s+/;
261
+ var mergeClassList = (classList, configUtils) => {
262
+ const {
263
+ parseClassName,
264
+ getClassGroupId,
265
+ getConflictingClassGroupIds
266
+ } = configUtils;
267
+ const classGroupsInConflict = [];
268
+ const classNames = classList.trim().split(SPLIT_CLASSES_REGEX);
269
+ let result = "";
270
+ for (let index = classNames.length - 1; index >= 0; index -= 1) {
271
+ const originalClassName = classNames[index];
272
+ const {
273
+ modifiers,
274
+ hasImportantModifier,
275
+ baseClassName,
276
+ maybePostfixModifierPosition
277
+ } = parseClassName(originalClassName);
278
+ let hasPostfixModifier = Boolean(maybePostfixModifierPosition);
279
+ let classGroupId = getClassGroupId(hasPostfixModifier ? baseClassName.substring(0, maybePostfixModifierPosition) : baseClassName);
280
+ if (!classGroupId) {
281
+ if (!hasPostfixModifier) {
282
+ result = originalClassName + (result.length > 0 ? " " + result : result);
283
+ continue;
284
+ }
285
+ classGroupId = getClassGroupId(baseClassName);
286
+ if (!classGroupId) {
287
+ result = originalClassName + (result.length > 0 ? " " + result : result);
288
+ continue;
289
+ }
290
+ hasPostfixModifier = false;
291
+ }
292
+ const variantModifier = sortModifiers(modifiers).join(":");
293
+ const modifierId = hasImportantModifier ? variantModifier + IMPORTANT_MODIFIER : variantModifier;
294
+ const classId = modifierId + classGroupId;
295
+ if (classGroupsInConflict.includes(classId)) {
296
+ continue;
297
+ }
298
+ classGroupsInConflict.push(classId);
299
+ const conflictGroups = getConflictingClassGroupIds(classGroupId, hasPostfixModifier);
300
+ for (let i = 0; i < conflictGroups.length; ++i) {
301
+ const group = conflictGroups[i];
302
+ classGroupsInConflict.push(modifierId + group);
303
+ }
304
+ result = originalClassName + (result.length > 0 ? " " + result : result);
305
+ }
306
+ return result;
307
+ };
308
+ function twJoin() {
309
+ let index = 0;
310
+ let argument;
311
+ let resolvedValue;
312
+ let string = "";
313
+ while (index < arguments.length) {
314
+ if (argument = arguments[index++]) {
315
+ if (resolvedValue = toValue(argument)) {
316
+ string && (string += " ");
317
+ string += resolvedValue;
318
+ }
319
+ }
320
+ }
321
+ return string;
322
+ }
323
+ var toValue = (mix) => {
324
+ if (typeof mix === "string") {
325
+ return mix;
326
+ }
327
+ let resolvedValue;
328
+ let string = "";
329
+ for (let k = 0; k < mix.length; k++) {
330
+ if (mix[k]) {
331
+ if (resolvedValue = toValue(mix[k])) {
332
+ string && (string += " ");
333
+ string += resolvedValue;
334
+ }
335
+ }
336
+ }
337
+ return string;
338
+ };
339
+ function createTailwindMerge(createConfigFirst, ...createConfigRest) {
340
+ let configUtils;
341
+ let cacheGet;
342
+ let cacheSet;
343
+ let functionToCall = initTailwindMerge;
344
+ function initTailwindMerge(classList) {
345
+ const config = createConfigRest.reduce((previousConfig, createConfigCurrent) => createConfigCurrent(previousConfig), createConfigFirst());
346
+ configUtils = createConfigUtils(config);
347
+ cacheGet = configUtils.cache.get;
348
+ cacheSet = configUtils.cache.set;
349
+ functionToCall = tailwindMerge;
350
+ return tailwindMerge(classList);
351
+ }
352
+ function tailwindMerge(classList) {
353
+ const cachedResult = cacheGet(classList);
354
+ if (cachedResult) {
355
+ return cachedResult;
356
+ }
357
+ const result = mergeClassList(classList, configUtils);
358
+ cacheSet(classList, result);
359
+ return result;
360
+ }
361
+ return function callTailwindMerge() {
362
+ return functionToCall(twJoin.apply(null, arguments));
363
+ };
364
+ }
365
+ var fromTheme = (key) => {
366
+ const themeGetter = (theme) => theme[key] || [];
367
+ themeGetter.isThemeGetter = true;
368
+ return themeGetter;
369
+ };
370
+ var arbitraryValueRegex = /^\[(?:([a-z-]+):)?(.+)\]$/i;
371
+ var fractionRegex = /^\d+\/\d+$/;
372
+ var stringLengths = /* @__PURE__ */ new Set(["px", "full", "screen"]);
373
+ var tshirtUnitRegex = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/;
374
+ var 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$/;
375
+ var colorFunctionRegex = /^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/;
376
+ var shadowRegex = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/;
377
+ var imageRegex = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/;
378
+ var isLength = (value) => isNumber(value) || stringLengths.has(value) || fractionRegex.test(value);
379
+ var isArbitraryLength = (value) => getIsArbitraryValue(value, "length", isLengthOnly);
380
+ var isNumber = (value) => Boolean(value) && !Number.isNaN(Number(value));
381
+ var isArbitraryNumber = (value) => getIsArbitraryValue(value, "number", isNumber);
382
+ var isInteger = (value) => Boolean(value) && Number.isInteger(Number(value));
383
+ var isPercent = (value) => value.endsWith("%") && isNumber(value.slice(0, -1));
384
+ var isArbitraryValue = (value) => arbitraryValueRegex.test(value);
385
+ var isTshirtSize = (value) => tshirtUnitRegex.test(value);
386
+ var sizeLabels = /* @__PURE__ */ new Set(["length", "size", "percentage"]);
387
+ var isArbitrarySize = (value) => getIsArbitraryValue(value, sizeLabels, isNever);
388
+ var isArbitraryPosition = (value) => getIsArbitraryValue(value, "position", isNever);
389
+ var imageLabels = /* @__PURE__ */ new Set(["image", "url"]);
390
+ var isArbitraryImage = (value) => getIsArbitraryValue(value, imageLabels, isImage);
391
+ var isArbitraryShadow = (value) => getIsArbitraryValue(value, "", isShadow);
392
+ var isAny = () => true;
393
+ var getIsArbitraryValue = (value, label, testValue) => {
394
+ const result = arbitraryValueRegex.exec(value);
395
+ if (result) {
396
+ if (result[1]) {
397
+ return typeof label === "string" ? result[1] === label : label.has(result[1]);
398
+ }
399
+ return testValue(result[2]);
400
+ }
401
+ return false;
402
+ };
403
+ var isLengthOnly = (value) => (
404
+ // `colorFunctionRegex` check is necessary because color functions can have percentages in them which which would be incorrectly classified as lengths.
405
+ // For example, `hsl(0 0% 0%)` would be classified as a length without this check.
406
+ // I could also use lookbehind assertion in `lengthUnitRegex` but that isn't supported widely enough.
407
+ lengthUnitRegex.test(value) && !colorFunctionRegex.test(value)
408
+ );
409
+ var isNever = () => false;
410
+ var isShadow = (value) => shadowRegex.test(value);
411
+ var isImage = (value) => imageRegex.test(value);
412
+ var getDefaultConfig = () => {
413
+ const colors = fromTheme("colors");
414
+ const spacing = fromTheme("spacing");
415
+ const blur = fromTheme("blur");
416
+ const brightness = fromTheme("brightness");
417
+ const borderColor = fromTheme("borderColor");
418
+ const borderRadius = fromTheme("borderRadius");
419
+ const borderSpacing = fromTheme("borderSpacing");
420
+ const borderWidth = fromTheme("borderWidth");
421
+ const contrast = fromTheme("contrast");
422
+ const grayscale = fromTheme("grayscale");
423
+ const hueRotate = fromTheme("hueRotate");
424
+ const invert = fromTheme("invert");
425
+ const gap = fromTheme("gap");
426
+ const gradientColorStops = fromTheme("gradientColorStops");
427
+ const gradientColorStopPositions = fromTheme("gradientColorStopPositions");
428
+ const inset = fromTheme("inset");
429
+ const margin = fromTheme("margin");
430
+ const opacity = fromTheme("opacity");
431
+ const padding = fromTheme("padding");
432
+ const saturate = fromTheme("saturate");
433
+ const scale = fromTheme("scale");
434
+ const sepia = fromTheme("sepia");
435
+ const skew = fromTheme("skew");
436
+ const space = fromTheme("space");
437
+ const translate = fromTheme("translate");
438
+ const getOverscroll = () => ["auto", "contain", "none"];
439
+ const getOverflow = () => ["auto", "hidden", "clip", "visible", "scroll"];
440
+ const getSpacingWithAutoAndArbitrary = () => ["auto", isArbitraryValue, spacing];
441
+ const getSpacingWithArbitrary = () => [isArbitraryValue, spacing];
442
+ const getLengthWithEmptyAndArbitrary = () => ["", isLength, isArbitraryLength];
443
+ const getNumberWithAutoAndArbitrary = () => ["auto", isNumber, isArbitraryValue];
444
+ const getPositions = () => ["bottom", "center", "left", "left-bottom", "left-top", "right", "right-bottom", "right-top", "top"];
445
+ const getLineStyles = () => ["solid", "dashed", "dotted", "double", "none"];
446
+ const getBlendModes = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"];
447
+ const getAlign = () => ["start", "end", "center", "between", "around", "evenly", "stretch"];
448
+ const getZeroAndEmpty = () => ["", "0", isArbitraryValue];
449
+ const getBreaks = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"];
450
+ const getNumberAndArbitrary = () => [isNumber, isArbitraryValue];
451
+ return {
452
+ cacheSize: 500,
453
+ separator: ":",
454
+ theme: {
455
+ colors: [isAny],
456
+ spacing: [isLength, isArbitraryLength],
457
+ blur: ["none", "", isTshirtSize, isArbitraryValue],
458
+ brightness: getNumberAndArbitrary(),
459
+ borderColor: [colors],
460
+ borderRadius: ["none", "", "full", isTshirtSize, isArbitraryValue],
461
+ borderSpacing: getSpacingWithArbitrary(),
462
+ borderWidth: getLengthWithEmptyAndArbitrary(),
463
+ contrast: getNumberAndArbitrary(),
464
+ grayscale: getZeroAndEmpty(),
465
+ hueRotate: getNumberAndArbitrary(),
466
+ invert: getZeroAndEmpty(),
467
+ gap: getSpacingWithArbitrary(),
468
+ gradientColorStops: [colors],
469
+ gradientColorStopPositions: [isPercent, isArbitraryLength],
470
+ inset: getSpacingWithAutoAndArbitrary(),
471
+ margin: getSpacingWithAutoAndArbitrary(),
472
+ opacity: getNumberAndArbitrary(),
473
+ padding: getSpacingWithArbitrary(),
474
+ saturate: getNumberAndArbitrary(),
475
+ scale: getNumberAndArbitrary(),
476
+ sepia: getZeroAndEmpty(),
477
+ skew: getNumberAndArbitrary(),
478
+ space: getSpacingWithArbitrary(),
479
+ translate: getSpacingWithArbitrary()
480
+ },
481
+ classGroups: {
482
+ // Layout
483
+ /**
484
+ * Aspect Ratio
485
+ * @see https://tailwindcss.com/docs/aspect-ratio
486
+ */
487
+ aspect: [{
488
+ aspect: ["auto", "square", "video", isArbitraryValue]
489
+ }],
490
+ /**
491
+ * Container
492
+ * @see https://tailwindcss.com/docs/container
493
+ */
494
+ container: ["container"],
495
+ /**
496
+ * Columns
497
+ * @see https://tailwindcss.com/docs/columns
498
+ */
499
+ columns: [{
500
+ columns: [isTshirtSize]
501
+ }],
502
+ /**
503
+ * Break After
504
+ * @see https://tailwindcss.com/docs/break-after
505
+ */
506
+ "break-after": [{
507
+ "break-after": getBreaks()
508
+ }],
509
+ /**
510
+ * Break Before
511
+ * @see https://tailwindcss.com/docs/break-before
512
+ */
513
+ "break-before": [{
514
+ "break-before": getBreaks()
515
+ }],
516
+ /**
517
+ * Break Inside
518
+ * @see https://tailwindcss.com/docs/break-inside
519
+ */
520
+ "break-inside": [{
521
+ "break-inside": ["auto", "avoid", "avoid-page", "avoid-column"]
522
+ }],
523
+ /**
524
+ * Box Decoration Break
525
+ * @see https://tailwindcss.com/docs/box-decoration-break
526
+ */
527
+ "box-decoration": [{
528
+ "box-decoration": ["slice", "clone"]
529
+ }],
530
+ /**
531
+ * Box Sizing
532
+ * @see https://tailwindcss.com/docs/box-sizing
533
+ */
534
+ box: [{
535
+ box: ["border", "content"]
536
+ }],
537
+ /**
538
+ * Display
539
+ * @see https://tailwindcss.com/docs/display
540
+ */
541
+ 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"],
542
+ /**
543
+ * Floats
544
+ * @see https://tailwindcss.com/docs/float
545
+ */
546
+ float: [{
547
+ float: ["right", "left", "none", "start", "end"]
548
+ }],
549
+ /**
550
+ * Clear
551
+ * @see https://tailwindcss.com/docs/clear
552
+ */
553
+ clear: [{
554
+ clear: ["left", "right", "both", "none", "start", "end"]
555
+ }],
556
+ /**
557
+ * Isolation
558
+ * @see https://tailwindcss.com/docs/isolation
559
+ */
560
+ isolation: ["isolate", "isolation-auto"],
561
+ /**
562
+ * Object Fit
563
+ * @see https://tailwindcss.com/docs/object-fit
564
+ */
565
+ "object-fit": [{
566
+ object: ["contain", "cover", "fill", "none", "scale-down"]
567
+ }],
568
+ /**
569
+ * Object Position
570
+ * @see https://tailwindcss.com/docs/object-position
571
+ */
572
+ "object-position": [{
573
+ object: [...getPositions(), isArbitraryValue]
574
+ }],
575
+ /**
576
+ * Overflow
577
+ * @see https://tailwindcss.com/docs/overflow
578
+ */
579
+ overflow: [{
580
+ overflow: getOverflow()
581
+ }],
582
+ /**
583
+ * Overflow X
584
+ * @see https://tailwindcss.com/docs/overflow
585
+ */
586
+ "overflow-x": [{
587
+ "overflow-x": getOverflow()
588
+ }],
589
+ /**
590
+ * Overflow Y
591
+ * @see https://tailwindcss.com/docs/overflow
592
+ */
593
+ "overflow-y": [{
594
+ "overflow-y": getOverflow()
595
+ }],
596
+ /**
597
+ * Overscroll Behavior
598
+ * @see https://tailwindcss.com/docs/overscroll-behavior
599
+ */
600
+ overscroll: [{
601
+ overscroll: getOverscroll()
602
+ }],
603
+ /**
604
+ * Overscroll Behavior X
605
+ * @see https://tailwindcss.com/docs/overscroll-behavior
606
+ */
607
+ "overscroll-x": [{
608
+ "overscroll-x": getOverscroll()
609
+ }],
610
+ /**
611
+ * Overscroll Behavior Y
612
+ * @see https://tailwindcss.com/docs/overscroll-behavior
613
+ */
614
+ "overscroll-y": [{
615
+ "overscroll-y": getOverscroll()
616
+ }],
617
+ /**
618
+ * Position
619
+ * @see https://tailwindcss.com/docs/position
620
+ */
621
+ position: ["static", "fixed", "absolute", "relative", "sticky"],
622
+ /**
623
+ * Top / Right / Bottom / Left
624
+ * @see https://tailwindcss.com/docs/top-right-bottom-left
625
+ */
626
+ inset: [{
627
+ inset: [inset]
628
+ }],
629
+ /**
630
+ * Right / Left
631
+ * @see https://tailwindcss.com/docs/top-right-bottom-left
632
+ */
633
+ "inset-x": [{
634
+ "inset-x": [inset]
635
+ }],
636
+ /**
637
+ * Top / Bottom
638
+ * @see https://tailwindcss.com/docs/top-right-bottom-left
639
+ */
640
+ "inset-y": [{
641
+ "inset-y": [inset]
642
+ }],
643
+ /**
644
+ * Start
645
+ * @see https://tailwindcss.com/docs/top-right-bottom-left
646
+ */
647
+ start: [{
648
+ start: [inset]
649
+ }],
650
+ /**
651
+ * End
652
+ * @see https://tailwindcss.com/docs/top-right-bottom-left
653
+ */
654
+ end: [{
655
+ end: [inset]
656
+ }],
657
+ /**
658
+ * Top
659
+ * @see https://tailwindcss.com/docs/top-right-bottom-left
660
+ */
661
+ top: [{
662
+ top: [inset]
663
+ }],
664
+ /**
665
+ * Right
666
+ * @see https://tailwindcss.com/docs/top-right-bottom-left
667
+ */
668
+ right: [{
669
+ right: [inset]
670
+ }],
671
+ /**
672
+ * Bottom
673
+ * @see https://tailwindcss.com/docs/top-right-bottom-left
674
+ */
675
+ bottom: [{
676
+ bottom: [inset]
677
+ }],
678
+ /**
679
+ * Left
680
+ * @see https://tailwindcss.com/docs/top-right-bottom-left
681
+ */
682
+ left: [{
683
+ left: [inset]
684
+ }],
685
+ /**
686
+ * Visibility
687
+ * @see https://tailwindcss.com/docs/visibility
688
+ */
689
+ visibility: ["visible", "invisible", "collapse"],
690
+ /**
691
+ * Z-Index
692
+ * @see https://tailwindcss.com/docs/z-index
693
+ */
694
+ z: [{
695
+ z: ["auto", isInteger, isArbitraryValue]
696
+ }],
697
+ // Flexbox and Grid
698
+ /**
699
+ * Flex Basis
700
+ * @see https://tailwindcss.com/docs/flex-basis
701
+ */
702
+ basis: [{
703
+ basis: getSpacingWithAutoAndArbitrary()
704
+ }],
705
+ /**
706
+ * Flex Direction
707
+ * @see https://tailwindcss.com/docs/flex-direction
708
+ */
709
+ "flex-direction": [{
710
+ flex: ["row", "row-reverse", "col", "col-reverse"]
711
+ }],
712
+ /**
713
+ * Flex Wrap
714
+ * @see https://tailwindcss.com/docs/flex-wrap
715
+ */
716
+ "flex-wrap": [{
717
+ flex: ["wrap", "wrap-reverse", "nowrap"]
718
+ }],
719
+ /**
720
+ * Flex
721
+ * @see https://tailwindcss.com/docs/flex
722
+ */
723
+ flex: [{
724
+ flex: ["1", "auto", "initial", "none", isArbitraryValue]
725
+ }],
726
+ /**
727
+ * Flex Grow
728
+ * @see https://tailwindcss.com/docs/flex-grow
729
+ */
730
+ grow: [{
731
+ grow: getZeroAndEmpty()
732
+ }],
733
+ /**
734
+ * Flex Shrink
735
+ * @see https://tailwindcss.com/docs/flex-shrink
736
+ */
737
+ shrink: [{
738
+ shrink: getZeroAndEmpty()
739
+ }],
740
+ /**
741
+ * Order
742
+ * @see https://tailwindcss.com/docs/order
743
+ */
744
+ order: [{
745
+ order: ["first", "last", "none", isInteger, isArbitraryValue]
746
+ }],
747
+ /**
748
+ * Grid Template Columns
749
+ * @see https://tailwindcss.com/docs/grid-template-columns
750
+ */
751
+ "grid-cols": [{
752
+ "grid-cols": [isAny]
753
+ }],
754
+ /**
755
+ * Grid Column Start / End
756
+ * @see https://tailwindcss.com/docs/grid-column
757
+ */
758
+ "col-start-end": [{
759
+ col: ["auto", {
760
+ span: ["full", isInteger, isArbitraryValue]
761
+ }, isArbitraryValue]
762
+ }],
763
+ /**
764
+ * Grid Column Start
765
+ * @see https://tailwindcss.com/docs/grid-column
766
+ */
767
+ "col-start": [{
768
+ "col-start": getNumberWithAutoAndArbitrary()
769
+ }],
770
+ /**
771
+ * Grid Column End
772
+ * @see https://tailwindcss.com/docs/grid-column
773
+ */
774
+ "col-end": [{
775
+ "col-end": getNumberWithAutoAndArbitrary()
776
+ }],
777
+ /**
778
+ * Grid Template Rows
779
+ * @see https://tailwindcss.com/docs/grid-template-rows
780
+ */
781
+ "grid-rows": [{
782
+ "grid-rows": [isAny]
783
+ }],
784
+ /**
785
+ * Grid Row Start / End
786
+ * @see https://tailwindcss.com/docs/grid-row
787
+ */
788
+ "row-start-end": [{
789
+ row: ["auto", {
790
+ span: [isInteger, isArbitraryValue]
791
+ }, isArbitraryValue]
792
+ }],
793
+ /**
794
+ * Grid Row Start
795
+ * @see https://tailwindcss.com/docs/grid-row
796
+ */
797
+ "row-start": [{
798
+ "row-start": getNumberWithAutoAndArbitrary()
799
+ }],
800
+ /**
801
+ * Grid Row End
802
+ * @see https://tailwindcss.com/docs/grid-row
803
+ */
804
+ "row-end": [{
805
+ "row-end": getNumberWithAutoAndArbitrary()
806
+ }],
807
+ /**
808
+ * Grid Auto Flow
809
+ * @see https://tailwindcss.com/docs/grid-auto-flow
810
+ */
811
+ "grid-flow": [{
812
+ "grid-flow": ["row", "col", "dense", "row-dense", "col-dense"]
813
+ }],
814
+ /**
815
+ * Grid Auto Columns
816
+ * @see https://tailwindcss.com/docs/grid-auto-columns
817
+ */
818
+ "auto-cols": [{
819
+ "auto-cols": ["auto", "min", "max", "fr", isArbitraryValue]
820
+ }],
821
+ /**
822
+ * Grid Auto Rows
823
+ * @see https://tailwindcss.com/docs/grid-auto-rows
824
+ */
825
+ "auto-rows": [{
826
+ "auto-rows": ["auto", "min", "max", "fr", isArbitraryValue]
827
+ }],
828
+ /**
829
+ * Gap
830
+ * @see https://tailwindcss.com/docs/gap
831
+ */
832
+ gap: [{
833
+ gap: [gap]
834
+ }],
835
+ /**
836
+ * Gap X
837
+ * @see https://tailwindcss.com/docs/gap
838
+ */
839
+ "gap-x": [{
840
+ "gap-x": [gap]
841
+ }],
842
+ /**
843
+ * Gap Y
844
+ * @see https://tailwindcss.com/docs/gap
845
+ */
846
+ "gap-y": [{
847
+ "gap-y": [gap]
848
+ }],
849
+ /**
850
+ * Justify Content
851
+ * @see https://tailwindcss.com/docs/justify-content
852
+ */
853
+ "justify-content": [{
854
+ justify: ["normal", ...getAlign()]
855
+ }],
856
+ /**
857
+ * Justify Items
858
+ * @see https://tailwindcss.com/docs/justify-items
859
+ */
860
+ "justify-items": [{
861
+ "justify-items": ["start", "end", "center", "stretch"]
862
+ }],
863
+ /**
864
+ * Justify Self
865
+ * @see https://tailwindcss.com/docs/justify-self
866
+ */
867
+ "justify-self": [{
868
+ "justify-self": ["auto", "start", "end", "center", "stretch"]
869
+ }],
870
+ /**
871
+ * Align Content
872
+ * @see https://tailwindcss.com/docs/align-content
873
+ */
874
+ "align-content": [{
875
+ content: ["normal", ...getAlign(), "baseline"]
876
+ }],
877
+ /**
878
+ * Align Items
879
+ * @see https://tailwindcss.com/docs/align-items
880
+ */
881
+ "align-items": [{
882
+ items: ["start", "end", "center", "baseline", "stretch"]
883
+ }],
884
+ /**
885
+ * Align Self
886
+ * @see https://tailwindcss.com/docs/align-self
887
+ */
888
+ "align-self": [{
889
+ self: ["auto", "start", "end", "center", "stretch", "baseline"]
890
+ }],
891
+ /**
892
+ * Place Content
893
+ * @see https://tailwindcss.com/docs/place-content
894
+ */
895
+ "place-content": [{
896
+ "place-content": [...getAlign(), "baseline"]
897
+ }],
898
+ /**
899
+ * Place Items
900
+ * @see https://tailwindcss.com/docs/place-items
901
+ */
902
+ "place-items": [{
903
+ "place-items": ["start", "end", "center", "baseline", "stretch"]
904
+ }],
905
+ /**
906
+ * Place Self
907
+ * @see https://tailwindcss.com/docs/place-self
908
+ */
909
+ "place-self": [{
910
+ "place-self": ["auto", "start", "end", "center", "stretch"]
911
+ }],
912
+ // Spacing
913
+ /**
914
+ * Padding
915
+ * @see https://tailwindcss.com/docs/padding
916
+ */
917
+ p: [{
918
+ p: [padding]
919
+ }],
920
+ /**
921
+ * Padding X
922
+ * @see https://tailwindcss.com/docs/padding
923
+ */
924
+ px: [{
925
+ px: [padding]
926
+ }],
927
+ /**
928
+ * Padding Y
929
+ * @see https://tailwindcss.com/docs/padding
930
+ */
931
+ py: [{
932
+ py: [padding]
933
+ }],
934
+ /**
935
+ * Padding Start
936
+ * @see https://tailwindcss.com/docs/padding
937
+ */
938
+ ps: [{
939
+ ps: [padding]
940
+ }],
941
+ /**
942
+ * Padding End
943
+ * @see https://tailwindcss.com/docs/padding
944
+ */
945
+ pe: [{
946
+ pe: [padding]
947
+ }],
948
+ /**
949
+ * Padding Top
950
+ * @see https://tailwindcss.com/docs/padding
951
+ */
952
+ pt: [{
953
+ pt: [padding]
954
+ }],
955
+ /**
956
+ * Padding Right
957
+ * @see https://tailwindcss.com/docs/padding
958
+ */
959
+ pr: [{
960
+ pr: [padding]
961
+ }],
962
+ /**
963
+ * Padding Bottom
964
+ * @see https://tailwindcss.com/docs/padding
965
+ */
966
+ pb: [{
967
+ pb: [padding]
968
+ }],
969
+ /**
970
+ * Padding Left
971
+ * @see https://tailwindcss.com/docs/padding
972
+ */
973
+ pl: [{
974
+ pl: [padding]
975
+ }],
976
+ /**
977
+ * Margin
978
+ * @see https://tailwindcss.com/docs/margin
979
+ */
980
+ m: [{
981
+ m: [margin]
982
+ }],
983
+ /**
984
+ * Margin X
985
+ * @see https://tailwindcss.com/docs/margin
986
+ */
987
+ mx: [{
988
+ mx: [margin]
989
+ }],
990
+ /**
991
+ * Margin Y
992
+ * @see https://tailwindcss.com/docs/margin
993
+ */
994
+ my: [{
995
+ my: [margin]
996
+ }],
997
+ /**
998
+ * Margin Start
999
+ * @see https://tailwindcss.com/docs/margin
1000
+ */
1001
+ ms: [{
1002
+ ms: [margin]
1003
+ }],
1004
+ /**
1005
+ * Margin End
1006
+ * @see https://tailwindcss.com/docs/margin
1007
+ */
1008
+ me: [{
1009
+ me: [margin]
1010
+ }],
1011
+ /**
1012
+ * Margin Top
1013
+ * @see https://tailwindcss.com/docs/margin
1014
+ */
1015
+ mt: [{
1016
+ mt: [margin]
1017
+ }],
1018
+ /**
1019
+ * Margin Right
1020
+ * @see https://tailwindcss.com/docs/margin
1021
+ */
1022
+ mr: [{
1023
+ mr: [margin]
1024
+ }],
1025
+ /**
1026
+ * Margin Bottom
1027
+ * @see https://tailwindcss.com/docs/margin
1028
+ */
1029
+ mb: [{
1030
+ mb: [margin]
1031
+ }],
1032
+ /**
1033
+ * Margin Left
1034
+ * @see https://tailwindcss.com/docs/margin
1035
+ */
1036
+ ml: [{
1037
+ ml: [margin]
1038
+ }],
1039
+ /**
1040
+ * Space Between X
1041
+ * @see https://tailwindcss.com/docs/space
1042
+ */
1043
+ "space-x": [{
1044
+ "space-x": [space]
1045
+ }],
1046
+ /**
1047
+ * Space Between X Reverse
1048
+ * @see https://tailwindcss.com/docs/space
1049
+ */
1050
+ "space-x-reverse": ["space-x-reverse"],
1051
+ /**
1052
+ * Space Between Y
1053
+ * @see https://tailwindcss.com/docs/space
1054
+ */
1055
+ "space-y": [{
1056
+ "space-y": [space]
1057
+ }],
1058
+ /**
1059
+ * Space Between Y Reverse
1060
+ * @see https://tailwindcss.com/docs/space
1061
+ */
1062
+ "space-y-reverse": ["space-y-reverse"],
1063
+ // Sizing
1064
+ /**
1065
+ * Width
1066
+ * @see https://tailwindcss.com/docs/width
1067
+ */
1068
+ w: [{
1069
+ w: ["auto", "min", "max", "fit", "svw", "lvw", "dvw", isArbitraryValue, spacing]
1070
+ }],
1071
+ /**
1072
+ * Min-Width
1073
+ * @see https://tailwindcss.com/docs/min-width
1074
+ */
1075
+ "min-w": [{
1076
+ "min-w": [isArbitraryValue, spacing, "min", "max", "fit"]
1077
+ }],
1078
+ /**
1079
+ * Max-Width
1080
+ * @see https://tailwindcss.com/docs/max-width
1081
+ */
1082
+ "max-w": [{
1083
+ "max-w": [isArbitraryValue, spacing, "none", "full", "min", "max", "fit", "prose", {
1084
+ screen: [isTshirtSize]
1085
+ }, isTshirtSize]
1086
+ }],
1087
+ /**
1088
+ * Height
1089
+ * @see https://tailwindcss.com/docs/height
1090
+ */
1091
+ h: [{
1092
+ h: [isArbitraryValue, spacing, "auto", "min", "max", "fit", "svh", "lvh", "dvh"]
1093
+ }],
1094
+ /**
1095
+ * Min-Height
1096
+ * @see https://tailwindcss.com/docs/min-height
1097
+ */
1098
+ "min-h": [{
1099
+ "min-h": [isArbitraryValue, spacing, "min", "max", "fit", "svh", "lvh", "dvh"]
1100
+ }],
1101
+ /**
1102
+ * Max-Height
1103
+ * @see https://tailwindcss.com/docs/max-height
1104
+ */
1105
+ "max-h": [{
1106
+ "max-h": [isArbitraryValue, spacing, "min", "max", "fit", "svh", "lvh", "dvh"]
1107
+ }],
1108
+ /**
1109
+ * Size
1110
+ * @see https://tailwindcss.com/docs/size
1111
+ */
1112
+ size: [{
1113
+ size: [isArbitraryValue, spacing, "auto", "min", "max", "fit"]
1114
+ }],
1115
+ // Typography
1116
+ /**
1117
+ * Font Size
1118
+ * @see https://tailwindcss.com/docs/font-size
1119
+ */
1120
+ "font-size": [{
1121
+ text: ["base", isTshirtSize, isArbitraryLength]
1122
+ }],
1123
+ /**
1124
+ * Font Smoothing
1125
+ * @see https://tailwindcss.com/docs/font-smoothing
1126
+ */
1127
+ "font-smoothing": ["antialiased", "subpixel-antialiased"],
1128
+ /**
1129
+ * Font Style
1130
+ * @see https://tailwindcss.com/docs/font-style
1131
+ */
1132
+ "font-style": ["italic", "not-italic"],
1133
+ /**
1134
+ * Font Weight
1135
+ * @see https://tailwindcss.com/docs/font-weight
1136
+ */
1137
+ "font-weight": [{
1138
+ font: ["thin", "extralight", "light", "normal", "medium", "semibold", "bold", "extrabold", "black", isArbitraryNumber]
1139
+ }],
1140
+ /**
1141
+ * Font Family
1142
+ * @see https://tailwindcss.com/docs/font-family
1143
+ */
1144
+ "font-family": [{
1145
+ font: [isAny]
1146
+ }],
1147
+ /**
1148
+ * Font Variant Numeric
1149
+ * @see https://tailwindcss.com/docs/font-variant-numeric
1150
+ */
1151
+ "fvn-normal": ["normal-nums"],
1152
+ /**
1153
+ * Font Variant Numeric
1154
+ * @see https://tailwindcss.com/docs/font-variant-numeric
1155
+ */
1156
+ "fvn-ordinal": ["ordinal"],
1157
+ /**
1158
+ * Font Variant Numeric
1159
+ * @see https://tailwindcss.com/docs/font-variant-numeric
1160
+ */
1161
+ "fvn-slashed-zero": ["slashed-zero"],
1162
+ /**
1163
+ * Font Variant Numeric
1164
+ * @see https://tailwindcss.com/docs/font-variant-numeric
1165
+ */
1166
+ "fvn-figure": ["lining-nums", "oldstyle-nums"],
1167
+ /**
1168
+ * Font Variant Numeric
1169
+ * @see https://tailwindcss.com/docs/font-variant-numeric
1170
+ */
1171
+ "fvn-spacing": ["proportional-nums", "tabular-nums"],
1172
+ /**
1173
+ * Font Variant Numeric
1174
+ * @see https://tailwindcss.com/docs/font-variant-numeric
1175
+ */
1176
+ "fvn-fraction": ["diagonal-fractions", "stacked-fractons"],
1177
+ /**
1178
+ * Letter Spacing
1179
+ * @see https://tailwindcss.com/docs/letter-spacing
1180
+ */
1181
+ tracking: [{
1182
+ tracking: ["tighter", "tight", "normal", "wide", "wider", "widest", isArbitraryValue]
1183
+ }],
1184
+ /**
1185
+ * Line Clamp
1186
+ * @see https://tailwindcss.com/docs/line-clamp
1187
+ */
1188
+ "line-clamp": [{
1189
+ "line-clamp": ["none", isNumber, isArbitraryNumber]
1190
+ }],
1191
+ /**
1192
+ * Line Height
1193
+ * @see https://tailwindcss.com/docs/line-height
1194
+ */
1195
+ leading: [{
1196
+ leading: ["none", "tight", "snug", "normal", "relaxed", "loose", isLength, isArbitraryValue]
1197
+ }],
1198
+ /**
1199
+ * List Style Image
1200
+ * @see https://tailwindcss.com/docs/list-style-image
1201
+ */
1202
+ "list-image": [{
1203
+ "list-image": ["none", isArbitraryValue]
1204
+ }],
1205
+ /**
1206
+ * List Style Type
1207
+ * @see https://tailwindcss.com/docs/list-style-type
1208
+ */
1209
+ "list-style-type": [{
1210
+ list: ["none", "disc", "decimal", isArbitraryValue]
1211
+ }],
1212
+ /**
1213
+ * List Style Position
1214
+ * @see https://tailwindcss.com/docs/list-style-position
1215
+ */
1216
+ "list-style-position": [{
1217
+ list: ["inside", "outside"]
1218
+ }],
1219
+ /**
1220
+ * Placeholder Color
1221
+ * @deprecated since Tailwind CSS v3.0.0
1222
+ * @see https://tailwindcss.com/docs/placeholder-color
1223
+ */
1224
+ "placeholder-color": [{
1225
+ placeholder: [colors]
1226
+ }],
1227
+ /**
1228
+ * Placeholder Opacity
1229
+ * @see https://tailwindcss.com/docs/placeholder-opacity
1230
+ */
1231
+ "placeholder-opacity": [{
1232
+ "placeholder-opacity": [opacity]
1233
+ }],
1234
+ /**
1235
+ * Text Alignment
1236
+ * @see https://tailwindcss.com/docs/text-align
1237
+ */
1238
+ "text-alignment": [{
1239
+ text: ["left", "center", "right", "justify", "start", "end"]
1240
+ }],
1241
+ /**
1242
+ * Text Color
1243
+ * @see https://tailwindcss.com/docs/text-color
1244
+ */
1245
+ "text-color": [{
1246
+ text: [colors]
1247
+ }],
1248
+ /**
1249
+ * Text Opacity
1250
+ * @see https://tailwindcss.com/docs/text-opacity
1251
+ */
1252
+ "text-opacity": [{
1253
+ "text-opacity": [opacity]
1254
+ }],
1255
+ /**
1256
+ * Text Decoration
1257
+ * @see https://tailwindcss.com/docs/text-decoration
1258
+ */
1259
+ "text-decoration": ["underline", "overline", "line-through", "no-underline"],
1260
+ /**
1261
+ * Text Decoration Style
1262
+ * @see https://tailwindcss.com/docs/text-decoration-style
1263
+ */
1264
+ "text-decoration-style": [{
1265
+ decoration: [...getLineStyles(), "wavy"]
1266
+ }],
1267
+ /**
1268
+ * Text Decoration Thickness
1269
+ * @see https://tailwindcss.com/docs/text-decoration-thickness
1270
+ */
1271
+ "text-decoration-thickness": [{
1272
+ decoration: ["auto", "from-font", isLength, isArbitraryLength]
1273
+ }],
1274
+ /**
1275
+ * Text Underline Offset
1276
+ * @see https://tailwindcss.com/docs/text-underline-offset
1277
+ */
1278
+ "underline-offset": [{
1279
+ "underline-offset": ["auto", isLength, isArbitraryValue]
1280
+ }],
1281
+ /**
1282
+ * Text Decoration Color
1283
+ * @see https://tailwindcss.com/docs/text-decoration-color
1284
+ */
1285
+ "text-decoration-color": [{
1286
+ decoration: [colors]
1287
+ }],
1288
+ /**
1289
+ * Text Transform
1290
+ * @see https://tailwindcss.com/docs/text-transform
1291
+ */
1292
+ "text-transform": ["uppercase", "lowercase", "capitalize", "normal-case"],
1293
+ /**
1294
+ * Text Overflow
1295
+ * @see https://tailwindcss.com/docs/text-overflow
1296
+ */
1297
+ "text-overflow": ["truncate", "text-ellipsis", "text-clip"],
1298
+ /**
1299
+ * Text Wrap
1300
+ * @see https://tailwindcss.com/docs/text-wrap
1301
+ */
1302
+ "text-wrap": [{
1303
+ text: ["wrap", "nowrap", "balance", "pretty"]
1304
+ }],
1305
+ /**
1306
+ * Text Indent
1307
+ * @see https://tailwindcss.com/docs/text-indent
1308
+ */
1309
+ indent: [{
1310
+ indent: getSpacingWithArbitrary()
1311
+ }],
1312
+ /**
1313
+ * Vertical Alignment
1314
+ * @see https://tailwindcss.com/docs/vertical-align
1315
+ */
1316
+ "vertical-align": [{
1317
+ align: ["baseline", "top", "middle", "bottom", "text-top", "text-bottom", "sub", "super", isArbitraryValue]
1318
+ }],
1319
+ /**
1320
+ * Whitespace
1321
+ * @see https://tailwindcss.com/docs/whitespace
1322
+ */
1323
+ whitespace: [{
1324
+ whitespace: ["normal", "nowrap", "pre", "pre-line", "pre-wrap", "break-spaces"]
1325
+ }],
1326
+ /**
1327
+ * Word Break
1328
+ * @see https://tailwindcss.com/docs/word-break
1329
+ */
1330
+ break: [{
1331
+ break: ["normal", "words", "all", "keep"]
1332
+ }],
1333
+ /**
1334
+ * Hyphens
1335
+ * @see https://tailwindcss.com/docs/hyphens
1336
+ */
1337
+ hyphens: [{
1338
+ hyphens: ["none", "manual", "auto"]
1339
+ }],
1340
+ /**
1341
+ * Content
1342
+ * @see https://tailwindcss.com/docs/content
1343
+ */
1344
+ content: [{
1345
+ content: ["none", isArbitraryValue]
1346
+ }],
1347
+ // Backgrounds
1348
+ /**
1349
+ * Background Attachment
1350
+ * @see https://tailwindcss.com/docs/background-attachment
1351
+ */
1352
+ "bg-attachment": [{
1353
+ bg: ["fixed", "local", "scroll"]
1354
+ }],
1355
+ /**
1356
+ * Background Clip
1357
+ * @see https://tailwindcss.com/docs/background-clip
1358
+ */
1359
+ "bg-clip": [{
1360
+ "bg-clip": ["border", "padding", "content", "text"]
1361
+ }],
1362
+ /**
1363
+ * Background Opacity
1364
+ * @deprecated since Tailwind CSS v3.0.0
1365
+ * @see https://tailwindcss.com/docs/background-opacity
1366
+ */
1367
+ "bg-opacity": [{
1368
+ "bg-opacity": [opacity]
1369
+ }],
1370
+ /**
1371
+ * Background Origin
1372
+ * @see https://tailwindcss.com/docs/background-origin
1373
+ */
1374
+ "bg-origin": [{
1375
+ "bg-origin": ["border", "padding", "content"]
1376
+ }],
1377
+ /**
1378
+ * Background Position
1379
+ * @see https://tailwindcss.com/docs/background-position
1380
+ */
1381
+ "bg-position": [{
1382
+ bg: [...getPositions(), isArbitraryPosition]
1383
+ }],
1384
+ /**
1385
+ * Background Repeat
1386
+ * @see https://tailwindcss.com/docs/background-repeat
1387
+ */
1388
+ "bg-repeat": [{
1389
+ bg: ["no-repeat", {
1390
+ repeat: ["", "x", "y", "round", "space"]
1391
+ }]
1392
+ }],
1393
+ /**
1394
+ * Background Size
1395
+ * @see https://tailwindcss.com/docs/background-size
1396
+ */
1397
+ "bg-size": [{
1398
+ bg: ["auto", "cover", "contain", isArbitrarySize]
1399
+ }],
1400
+ /**
1401
+ * Background Image
1402
+ * @see https://tailwindcss.com/docs/background-image
1403
+ */
1404
+ "bg-image": [{
1405
+ bg: ["none", {
1406
+ "gradient-to": ["t", "tr", "r", "br", "b", "bl", "l", "tl"]
1407
+ }, isArbitraryImage]
1408
+ }],
1409
+ /**
1410
+ * Background Color
1411
+ * @see https://tailwindcss.com/docs/background-color
1412
+ */
1413
+ "bg-color": [{
1414
+ bg: [colors]
1415
+ }],
1416
+ /**
1417
+ * Gradient Color Stops From Position
1418
+ * @see https://tailwindcss.com/docs/gradient-color-stops
1419
+ */
1420
+ "gradient-from-pos": [{
1421
+ from: [gradientColorStopPositions]
1422
+ }],
1423
+ /**
1424
+ * Gradient Color Stops Via Position
1425
+ * @see https://tailwindcss.com/docs/gradient-color-stops
1426
+ */
1427
+ "gradient-via-pos": [{
1428
+ via: [gradientColorStopPositions]
1429
+ }],
1430
+ /**
1431
+ * Gradient Color Stops To Position
1432
+ * @see https://tailwindcss.com/docs/gradient-color-stops
1433
+ */
1434
+ "gradient-to-pos": [{
1435
+ to: [gradientColorStopPositions]
1436
+ }],
1437
+ /**
1438
+ * Gradient Color Stops From
1439
+ * @see https://tailwindcss.com/docs/gradient-color-stops
1440
+ */
1441
+ "gradient-from": [{
1442
+ from: [gradientColorStops]
1443
+ }],
1444
+ /**
1445
+ * Gradient Color Stops Via
1446
+ * @see https://tailwindcss.com/docs/gradient-color-stops
1447
+ */
1448
+ "gradient-via": [{
1449
+ via: [gradientColorStops]
1450
+ }],
1451
+ /**
1452
+ * Gradient Color Stops To
1453
+ * @see https://tailwindcss.com/docs/gradient-color-stops
1454
+ */
1455
+ "gradient-to": [{
1456
+ to: [gradientColorStops]
1457
+ }],
1458
+ // Borders
1459
+ /**
1460
+ * Border Radius
1461
+ * @see https://tailwindcss.com/docs/border-radius
1462
+ */
1463
+ rounded: [{
1464
+ rounded: [borderRadius]
1465
+ }],
1466
+ /**
1467
+ * Border Radius Start
1468
+ * @see https://tailwindcss.com/docs/border-radius
1469
+ */
1470
+ "rounded-s": [{
1471
+ "rounded-s": [borderRadius]
1472
+ }],
1473
+ /**
1474
+ * Border Radius End
1475
+ * @see https://tailwindcss.com/docs/border-radius
1476
+ */
1477
+ "rounded-e": [{
1478
+ "rounded-e": [borderRadius]
1479
+ }],
1480
+ /**
1481
+ * Border Radius Top
1482
+ * @see https://tailwindcss.com/docs/border-radius
1483
+ */
1484
+ "rounded-t": [{
1485
+ "rounded-t": [borderRadius]
1486
+ }],
1487
+ /**
1488
+ * Border Radius Right
1489
+ * @see https://tailwindcss.com/docs/border-radius
1490
+ */
1491
+ "rounded-r": [{
1492
+ "rounded-r": [borderRadius]
1493
+ }],
1494
+ /**
1495
+ * Border Radius Bottom
1496
+ * @see https://tailwindcss.com/docs/border-radius
1497
+ */
1498
+ "rounded-b": [{
1499
+ "rounded-b": [borderRadius]
1500
+ }],
1501
+ /**
1502
+ * Border Radius Left
1503
+ * @see https://tailwindcss.com/docs/border-radius
1504
+ */
1505
+ "rounded-l": [{
1506
+ "rounded-l": [borderRadius]
1507
+ }],
1508
+ /**
1509
+ * Border Radius Start Start
1510
+ * @see https://tailwindcss.com/docs/border-radius
1511
+ */
1512
+ "rounded-ss": [{
1513
+ "rounded-ss": [borderRadius]
1514
+ }],
1515
+ /**
1516
+ * Border Radius Start End
1517
+ * @see https://tailwindcss.com/docs/border-radius
1518
+ */
1519
+ "rounded-se": [{
1520
+ "rounded-se": [borderRadius]
1521
+ }],
1522
+ /**
1523
+ * Border Radius End End
1524
+ * @see https://tailwindcss.com/docs/border-radius
1525
+ */
1526
+ "rounded-ee": [{
1527
+ "rounded-ee": [borderRadius]
1528
+ }],
1529
+ /**
1530
+ * Border Radius End Start
1531
+ * @see https://tailwindcss.com/docs/border-radius
1532
+ */
1533
+ "rounded-es": [{
1534
+ "rounded-es": [borderRadius]
1535
+ }],
1536
+ /**
1537
+ * Border Radius Top Left
1538
+ * @see https://tailwindcss.com/docs/border-radius
1539
+ */
1540
+ "rounded-tl": [{
1541
+ "rounded-tl": [borderRadius]
1542
+ }],
1543
+ /**
1544
+ * Border Radius Top Right
1545
+ * @see https://tailwindcss.com/docs/border-radius
1546
+ */
1547
+ "rounded-tr": [{
1548
+ "rounded-tr": [borderRadius]
1549
+ }],
1550
+ /**
1551
+ * Border Radius Bottom Right
1552
+ * @see https://tailwindcss.com/docs/border-radius
1553
+ */
1554
+ "rounded-br": [{
1555
+ "rounded-br": [borderRadius]
1556
+ }],
1557
+ /**
1558
+ * Border Radius Bottom Left
1559
+ * @see https://tailwindcss.com/docs/border-radius
1560
+ */
1561
+ "rounded-bl": [{
1562
+ "rounded-bl": [borderRadius]
1563
+ }],
1564
+ /**
1565
+ * Border Width
1566
+ * @see https://tailwindcss.com/docs/border-width
1567
+ */
1568
+ "border-w": [{
1569
+ border: [borderWidth]
1570
+ }],
1571
+ /**
1572
+ * Border Width X
1573
+ * @see https://tailwindcss.com/docs/border-width
1574
+ */
1575
+ "border-w-x": [{
1576
+ "border-x": [borderWidth]
1577
+ }],
1578
+ /**
1579
+ * Border Width Y
1580
+ * @see https://tailwindcss.com/docs/border-width
1581
+ */
1582
+ "border-w-y": [{
1583
+ "border-y": [borderWidth]
1584
+ }],
1585
+ /**
1586
+ * Border Width Start
1587
+ * @see https://tailwindcss.com/docs/border-width
1588
+ */
1589
+ "border-w-s": [{
1590
+ "border-s": [borderWidth]
1591
+ }],
1592
+ /**
1593
+ * Border Width End
1594
+ * @see https://tailwindcss.com/docs/border-width
1595
+ */
1596
+ "border-w-e": [{
1597
+ "border-e": [borderWidth]
1598
+ }],
1599
+ /**
1600
+ * Border Width Top
1601
+ * @see https://tailwindcss.com/docs/border-width
1602
+ */
1603
+ "border-w-t": [{
1604
+ "border-t": [borderWidth]
1605
+ }],
1606
+ /**
1607
+ * Border Width Right
1608
+ * @see https://tailwindcss.com/docs/border-width
1609
+ */
1610
+ "border-w-r": [{
1611
+ "border-r": [borderWidth]
1612
+ }],
1613
+ /**
1614
+ * Border Width Bottom
1615
+ * @see https://tailwindcss.com/docs/border-width
1616
+ */
1617
+ "border-w-b": [{
1618
+ "border-b": [borderWidth]
1619
+ }],
1620
+ /**
1621
+ * Border Width Left
1622
+ * @see https://tailwindcss.com/docs/border-width
1623
+ */
1624
+ "border-w-l": [{
1625
+ "border-l": [borderWidth]
1626
+ }],
1627
+ /**
1628
+ * Border Opacity
1629
+ * @see https://tailwindcss.com/docs/border-opacity
1630
+ */
1631
+ "border-opacity": [{
1632
+ "border-opacity": [opacity]
1633
+ }],
1634
+ /**
1635
+ * Border Style
1636
+ * @see https://tailwindcss.com/docs/border-style
1637
+ */
1638
+ "border-style": [{
1639
+ border: [...getLineStyles(), "hidden"]
1640
+ }],
1641
+ /**
1642
+ * Divide Width X
1643
+ * @see https://tailwindcss.com/docs/divide-width
1644
+ */
1645
+ "divide-x": [{
1646
+ "divide-x": [borderWidth]
1647
+ }],
1648
+ /**
1649
+ * Divide Width X Reverse
1650
+ * @see https://tailwindcss.com/docs/divide-width
1651
+ */
1652
+ "divide-x-reverse": ["divide-x-reverse"],
1653
+ /**
1654
+ * Divide Width Y
1655
+ * @see https://tailwindcss.com/docs/divide-width
1656
+ */
1657
+ "divide-y": [{
1658
+ "divide-y": [borderWidth]
1659
+ }],
1660
+ /**
1661
+ * Divide Width Y Reverse
1662
+ * @see https://tailwindcss.com/docs/divide-width
1663
+ */
1664
+ "divide-y-reverse": ["divide-y-reverse"],
1665
+ /**
1666
+ * Divide Opacity
1667
+ * @see https://tailwindcss.com/docs/divide-opacity
1668
+ */
1669
+ "divide-opacity": [{
1670
+ "divide-opacity": [opacity]
1671
+ }],
1672
+ /**
1673
+ * Divide Style
1674
+ * @see https://tailwindcss.com/docs/divide-style
1675
+ */
1676
+ "divide-style": [{
1677
+ divide: getLineStyles()
1678
+ }],
1679
+ /**
1680
+ * Border Color
1681
+ * @see https://tailwindcss.com/docs/border-color
1682
+ */
1683
+ "border-color": [{
1684
+ border: [borderColor]
1685
+ }],
1686
+ /**
1687
+ * Border Color X
1688
+ * @see https://tailwindcss.com/docs/border-color
1689
+ */
1690
+ "border-color-x": [{
1691
+ "border-x": [borderColor]
1692
+ }],
1693
+ /**
1694
+ * Border Color Y
1695
+ * @see https://tailwindcss.com/docs/border-color
1696
+ */
1697
+ "border-color-y": [{
1698
+ "border-y": [borderColor]
1699
+ }],
1700
+ /**
1701
+ * Border Color Top
1702
+ * @see https://tailwindcss.com/docs/border-color
1703
+ */
1704
+ "border-color-t": [{
1705
+ "border-t": [borderColor]
1706
+ }],
1707
+ /**
1708
+ * Border Color Right
1709
+ * @see https://tailwindcss.com/docs/border-color
1710
+ */
1711
+ "border-color-r": [{
1712
+ "border-r": [borderColor]
1713
+ }],
1714
+ /**
1715
+ * Border Color Bottom
1716
+ * @see https://tailwindcss.com/docs/border-color
1717
+ */
1718
+ "border-color-b": [{
1719
+ "border-b": [borderColor]
1720
+ }],
1721
+ /**
1722
+ * Border Color Left
1723
+ * @see https://tailwindcss.com/docs/border-color
1724
+ */
1725
+ "border-color-l": [{
1726
+ "border-l": [borderColor]
1727
+ }],
1728
+ /**
1729
+ * Divide Color
1730
+ * @see https://tailwindcss.com/docs/divide-color
1731
+ */
1732
+ "divide-color": [{
1733
+ divide: [borderColor]
1734
+ }],
1735
+ /**
1736
+ * Outline Style
1737
+ * @see https://tailwindcss.com/docs/outline-style
1738
+ */
1739
+ "outline-style": [{
1740
+ outline: ["", ...getLineStyles()]
1741
+ }],
1742
+ /**
1743
+ * Outline Offset
1744
+ * @see https://tailwindcss.com/docs/outline-offset
1745
+ */
1746
+ "outline-offset": [{
1747
+ "outline-offset": [isLength, isArbitraryValue]
1748
+ }],
1749
+ /**
1750
+ * Outline Width
1751
+ * @see https://tailwindcss.com/docs/outline-width
1752
+ */
1753
+ "outline-w": [{
1754
+ outline: [isLength, isArbitraryLength]
1755
+ }],
1756
+ /**
1757
+ * Outline Color
1758
+ * @see https://tailwindcss.com/docs/outline-color
1759
+ */
1760
+ "outline-color": [{
1761
+ outline: [colors]
1762
+ }],
1763
+ /**
1764
+ * Ring Width
1765
+ * @see https://tailwindcss.com/docs/ring-width
1766
+ */
1767
+ "ring-w": [{
1768
+ ring: getLengthWithEmptyAndArbitrary()
1769
+ }],
1770
+ /**
1771
+ * Ring Width Inset
1772
+ * @see https://tailwindcss.com/docs/ring-width
1773
+ */
1774
+ "ring-w-inset": ["ring-inset"],
1775
+ /**
1776
+ * Ring Color
1777
+ * @see https://tailwindcss.com/docs/ring-color
1778
+ */
1779
+ "ring-color": [{
1780
+ ring: [colors]
1781
+ }],
1782
+ /**
1783
+ * Ring Opacity
1784
+ * @see https://tailwindcss.com/docs/ring-opacity
1785
+ */
1786
+ "ring-opacity": [{
1787
+ "ring-opacity": [opacity]
1788
+ }],
1789
+ /**
1790
+ * Ring Offset Width
1791
+ * @see https://tailwindcss.com/docs/ring-offset-width
1792
+ */
1793
+ "ring-offset-w": [{
1794
+ "ring-offset": [isLength, isArbitraryLength]
1795
+ }],
1796
+ /**
1797
+ * Ring Offset Color
1798
+ * @see https://tailwindcss.com/docs/ring-offset-color
1799
+ */
1800
+ "ring-offset-color": [{
1801
+ "ring-offset": [colors]
1802
+ }],
1803
+ // Effects
1804
+ /**
1805
+ * Box Shadow
1806
+ * @see https://tailwindcss.com/docs/box-shadow
1807
+ */
1808
+ shadow: [{
1809
+ shadow: ["", "inner", "none", isTshirtSize, isArbitraryShadow]
1810
+ }],
1811
+ /**
1812
+ * Box Shadow Color
1813
+ * @see https://tailwindcss.com/docs/box-shadow-color
1814
+ */
1815
+ "shadow-color": [{
1816
+ shadow: [isAny]
1817
+ }],
1818
+ /**
1819
+ * Opacity
1820
+ * @see https://tailwindcss.com/docs/opacity
1821
+ */
1822
+ opacity: [{
1823
+ opacity: [opacity]
1824
+ }],
1825
+ /**
1826
+ * Mix Blend Mode
1827
+ * @see https://tailwindcss.com/docs/mix-blend-mode
1828
+ */
1829
+ "mix-blend": [{
1830
+ "mix-blend": [...getBlendModes(), "plus-lighter", "plus-darker"]
1831
+ }],
1832
+ /**
1833
+ * Background Blend Mode
1834
+ * @see https://tailwindcss.com/docs/background-blend-mode
1835
+ */
1836
+ "bg-blend": [{
1837
+ "bg-blend": getBlendModes()
1838
+ }],
1839
+ // Filters
1840
+ /**
1841
+ * Filter
1842
+ * @deprecated since Tailwind CSS v3.0.0
1843
+ * @see https://tailwindcss.com/docs/filter
1844
+ */
1845
+ filter: [{
1846
+ filter: ["", "none"]
1847
+ }],
1848
+ /**
1849
+ * Blur
1850
+ * @see https://tailwindcss.com/docs/blur
1851
+ */
1852
+ blur: [{
1853
+ blur: [blur]
1854
+ }],
1855
+ /**
1856
+ * Brightness
1857
+ * @see https://tailwindcss.com/docs/brightness
1858
+ */
1859
+ brightness: [{
1860
+ brightness: [brightness]
1861
+ }],
1862
+ /**
1863
+ * Contrast
1864
+ * @see https://tailwindcss.com/docs/contrast
1865
+ */
1866
+ contrast: [{
1867
+ contrast: [contrast]
1868
+ }],
1869
+ /**
1870
+ * Drop Shadow
1871
+ * @see https://tailwindcss.com/docs/drop-shadow
1872
+ */
1873
+ "drop-shadow": [{
1874
+ "drop-shadow": ["", "none", isTshirtSize, isArbitraryValue]
1875
+ }],
1876
+ /**
1877
+ * Grayscale
1878
+ * @see https://tailwindcss.com/docs/grayscale
1879
+ */
1880
+ grayscale: [{
1881
+ grayscale: [grayscale]
1882
+ }],
1883
+ /**
1884
+ * Hue Rotate
1885
+ * @see https://tailwindcss.com/docs/hue-rotate
1886
+ */
1887
+ "hue-rotate": [{
1888
+ "hue-rotate": [hueRotate]
1889
+ }],
1890
+ /**
1891
+ * Invert
1892
+ * @see https://tailwindcss.com/docs/invert
1893
+ */
1894
+ invert: [{
1895
+ invert: [invert]
1896
+ }],
1897
+ /**
1898
+ * Saturate
1899
+ * @see https://tailwindcss.com/docs/saturate
1900
+ */
1901
+ saturate: [{
1902
+ saturate: [saturate]
1903
+ }],
1904
+ /**
1905
+ * Sepia
1906
+ * @see https://tailwindcss.com/docs/sepia
1907
+ */
1908
+ sepia: [{
1909
+ sepia: [sepia]
1910
+ }],
1911
+ /**
1912
+ * Backdrop Filter
1913
+ * @deprecated since Tailwind CSS v3.0.0
1914
+ * @see https://tailwindcss.com/docs/backdrop-filter
1915
+ */
1916
+ "backdrop-filter": [{
1917
+ "backdrop-filter": ["", "none"]
1918
+ }],
1919
+ /**
1920
+ * Backdrop Blur
1921
+ * @see https://tailwindcss.com/docs/backdrop-blur
1922
+ */
1923
+ "backdrop-blur": [{
1924
+ "backdrop-blur": [blur]
1925
+ }],
1926
+ /**
1927
+ * Backdrop Brightness
1928
+ * @see https://tailwindcss.com/docs/backdrop-brightness
1929
+ */
1930
+ "backdrop-brightness": [{
1931
+ "backdrop-brightness": [brightness]
1932
+ }],
1933
+ /**
1934
+ * Backdrop Contrast
1935
+ * @see https://tailwindcss.com/docs/backdrop-contrast
1936
+ */
1937
+ "backdrop-contrast": [{
1938
+ "backdrop-contrast": [contrast]
1939
+ }],
1940
+ /**
1941
+ * Backdrop Grayscale
1942
+ * @see https://tailwindcss.com/docs/backdrop-grayscale
1943
+ */
1944
+ "backdrop-grayscale": [{
1945
+ "backdrop-grayscale": [grayscale]
1946
+ }],
1947
+ /**
1948
+ * Backdrop Hue Rotate
1949
+ * @see https://tailwindcss.com/docs/backdrop-hue-rotate
1950
+ */
1951
+ "backdrop-hue-rotate": [{
1952
+ "backdrop-hue-rotate": [hueRotate]
1953
+ }],
1954
+ /**
1955
+ * Backdrop Invert
1956
+ * @see https://tailwindcss.com/docs/backdrop-invert
1957
+ */
1958
+ "backdrop-invert": [{
1959
+ "backdrop-invert": [invert]
1960
+ }],
1961
+ /**
1962
+ * Backdrop Opacity
1963
+ * @see https://tailwindcss.com/docs/backdrop-opacity
1964
+ */
1965
+ "backdrop-opacity": [{
1966
+ "backdrop-opacity": [opacity]
1967
+ }],
1968
+ /**
1969
+ * Backdrop Saturate
1970
+ * @see https://tailwindcss.com/docs/backdrop-saturate
1971
+ */
1972
+ "backdrop-saturate": [{
1973
+ "backdrop-saturate": [saturate]
1974
+ }],
1975
+ /**
1976
+ * Backdrop Sepia
1977
+ * @see https://tailwindcss.com/docs/backdrop-sepia
1978
+ */
1979
+ "backdrop-sepia": [{
1980
+ "backdrop-sepia": [sepia]
1981
+ }],
1982
+ // Tables
1983
+ /**
1984
+ * Border Collapse
1985
+ * @see https://tailwindcss.com/docs/border-collapse
1986
+ */
1987
+ "border-collapse": [{
1988
+ border: ["collapse", "separate"]
1989
+ }],
1990
+ /**
1991
+ * Border Spacing
1992
+ * @see https://tailwindcss.com/docs/border-spacing
1993
+ */
1994
+ "border-spacing": [{
1995
+ "border-spacing": [borderSpacing]
1996
+ }],
1997
+ /**
1998
+ * Border Spacing X
1999
+ * @see https://tailwindcss.com/docs/border-spacing
2000
+ */
2001
+ "border-spacing-x": [{
2002
+ "border-spacing-x": [borderSpacing]
2003
+ }],
2004
+ /**
2005
+ * Border Spacing Y
2006
+ * @see https://tailwindcss.com/docs/border-spacing
2007
+ */
2008
+ "border-spacing-y": [{
2009
+ "border-spacing-y": [borderSpacing]
2010
+ }],
2011
+ /**
2012
+ * Table Layout
2013
+ * @see https://tailwindcss.com/docs/table-layout
2014
+ */
2015
+ "table-layout": [{
2016
+ table: ["auto", "fixed"]
2017
+ }],
2018
+ /**
2019
+ * Caption Side
2020
+ * @see https://tailwindcss.com/docs/caption-side
2021
+ */
2022
+ caption: [{
2023
+ caption: ["top", "bottom"]
2024
+ }],
2025
+ // Transitions and Animation
2026
+ /**
2027
+ * Tranisition Property
2028
+ * @see https://tailwindcss.com/docs/transition-property
2029
+ */
2030
+ transition: [{
2031
+ transition: ["none", "all", "", "colors", "opacity", "shadow", "transform", isArbitraryValue]
2032
+ }],
2033
+ /**
2034
+ * Transition Duration
2035
+ * @see https://tailwindcss.com/docs/transition-duration
2036
+ */
2037
+ duration: [{
2038
+ duration: getNumberAndArbitrary()
2039
+ }],
2040
+ /**
2041
+ * Transition Timing Function
2042
+ * @see https://tailwindcss.com/docs/transition-timing-function
2043
+ */
2044
+ ease: [{
2045
+ ease: ["linear", "in", "out", "in-out", isArbitraryValue]
2046
+ }],
2047
+ /**
2048
+ * Transition Delay
2049
+ * @see https://tailwindcss.com/docs/transition-delay
2050
+ */
2051
+ delay: [{
2052
+ delay: getNumberAndArbitrary()
2053
+ }],
2054
+ /**
2055
+ * Animation
2056
+ * @see https://tailwindcss.com/docs/animation
2057
+ */
2058
+ animate: [{
2059
+ animate: ["none", "spin", "ping", "pulse", "bounce", isArbitraryValue]
2060
+ }],
2061
+ // Transforms
2062
+ /**
2063
+ * Transform
2064
+ * @see https://tailwindcss.com/docs/transform
2065
+ */
2066
+ transform: [{
2067
+ transform: ["", "gpu", "none"]
2068
+ }],
2069
+ /**
2070
+ * Scale
2071
+ * @see https://tailwindcss.com/docs/scale
2072
+ */
2073
+ scale: [{
2074
+ scale: [scale]
2075
+ }],
2076
+ /**
2077
+ * Scale X
2078
+ * @see https://tailwindcss.com/docs/scale
2079
+ */
2080
+ "scale-x": [{
2081
+ "scale-x": [scale]
2082
+ }],
2083
+ /**
2084
+ * Scale Y
2085
+ * @see https://tailwindcss.com/docs/scale
2086
+ */
2087
+ "scale-y": [{
2088
+ "scale-y": [scale]
2089
+ }],
2090
+ /**
2091
+ * Rotate
2092
+ * @see https://tailwindcss.com/docs/rotate
2093
+ */
2094
+ rotate: [{
2095
+ rotate: [isInteger, isArbitraryValue]
2096
+ }],
2097
+ /**
2098
+ * Translate X
2099
+ * @see https://tailwindcss.com/docs/translate
2100
+ */
2101
+ "translate-x": [{
2102
+ "translate-x": [translate]
2103
+ }],
2104
+ /**
2105
+ * Translate Y
2106
+ * @see https://tailwindcss.com/docs/translate
2107
+ */
2108
+ "translate-y": [{
2109
+ "translate-y": [translate]
2110
+ }],
2111
+ /**
2112
+ * Skew X
2113
+ * @see https://tailwindcss.com/docs/skew
2114
+ */
2115
+ "skew-x": [{
2116
+ "skew-x": [skew]
2117
+ }],
2118
+ /**
2119
+ * Skew Y
2120
+ * @see https://tailwindcss.com/docs/skew
2121
+ */
2122
+ "skew-y": [{
2123
+ "skew-y": [skew]
2124
+ }],
2125
+ /**
2126
+ * Transform Origin
2127
+ * @see https://tailwindcss.com/docs/transform-origin
2128
+ */
2129
+ "transform-origin": [{
2130
+ origin: ["center", "top", "top-right", "right", "bottom-right", "bottom", "bottom-left", "left", "top-left", isArbitraryValue]
2131
+ }],
2132
+ // Interactivity
2133
+ /**
2134
+ * Accent Color
2135
+ * @see https://tailwindcss.com/docs/accent-color
2136
+ */
2137
+ accent: [{
2138
+ accent: ["auto", colors]
2139
+ }],
2140
+ /**
2141
+ * Appearance
2142
+ * @see https://tailwindcss.com/docs/appearance
2143
+ */
2144
+ appearance: [{
2145
+ appearance: ["none", "auto"]
2146
+ }],
2147
+ /**
2148
+ * Cursor
2149
+ * @see https://tailwindcss.com/docs/cursor
2150
+ */
2151
+ cursor: [{
2152
+ 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]
2153
+ }],
2154
+ /**
2155
+ * Caret Color
2156
+ * @see https://tailwindcss.com/docs/just-in-time-mode#caret-color-utilities
2157
+ */
2158
+ "caret-color": [{
2159
+ caret: [colors]
2160
+ }],
2161
+ /**
2162
+ * Pointer Events
2163
+ * @see https://tailwindcss.com/docs/pointer-events
2164
+ */
2165
+ "pointer-events": [{
2166
+ "pointer-events": ["none", "auto"]
2167
+ }],
2168
+ /**
2169
+ * Resize
2170
+ * @see https://tailwindcss.com/docs/resize
2171
+ */
2172
+ resize: [{
2173
+ resize: ["none", "y", "x", ""]
2174
+ }],
2175
+ /**
2176
+ * Scroll Behavior
2177
+ * @see https://tailwindcss.com/docs/scroll-behavior
2178
+ */
2179
+ "scroll-behavior": [{
2180
+ scroll: ["auto", "smooth"]
2181
+ }],
2182
+ /**
2183
+ * Scroll Margin
2184
+ * @see https://tailwindcss.com/docs/scroll-margin
2185
+ */
2186
+ "scroll-m": [{
2187
+ "scroll-m": getSpacingWithArbitrary()
2188
+ }],
2189
+ /**
2190
+ * Scroll Margin X
2191
+ * @see https://tailwindcss.com/docs/scroll-margin
2192
+ */
2193
+ "scroll-mx": [{
2194
+ "scroll-mx": getSpacingWithArbitrary()
2195
+ }],
2196
+ /**
2197
+ * Scroll Margin Y
2198
+ * @see https://tailwindcss.com/docs/scroll-margin
2199
+ */
2200
+ "scroll-my": [{
2201
+ "scroll-my": getSpacingWithArbitrary()
2202
+ }],
2203
+ /**
2204
+ * Scroll Margin Start
2205
+ * @see https://tailwindcss.com/docs/scroll-margin
2206
+ */
2207
+ "scroll-ms": [{
2208
+ "scroll-ms": getSpacingWithArbitrary()
2209
+ }],
2210
+ /**
2211
+ * Scroll Margin End
2212
+ * @see https://tailwindcss.com/docs/scroll-margin
2213
+ */
2214
+ "scroll-me": [{
2215
+ "scroll-me": getSpacingWithArbitrary()
2216
+ }],
2217
+ /**
2218
+ * Scroll Margin Top
2219
+ * @see https://tailwindcss.com/docs/scroll-margin
2220
+ */
2221
+ "scroll-mt": [{
2222
+ "scroll-mt": getSpacingWithArbitrary()
2223
+ }],
2224
+ /**
2225
+ * Scroll Margin Right
2226
+ * @see https://tailwindcss.com/docs/scroll-margin
2227
+ */
2228
+ "scroll-mr": [{
2229
+ "scroll-mr": getSpacingWithArbitrary()
2230
+ }],
2231
+ /**
2232
+ * Scroll Margin Bottom
2233
+ * @see https://tailwindcss.com/docs/scroll-margin
2234
+ */
2235
+ "scroll-mb": [{
2236
+ "scroll-mb": getSpacingWithArbitrary()
2237
+ }],
2238
+ /**
2239
+ * Scroll Margin Left
2240
+ * @see https://tailwindcss.com/docs/scroll-margin
2241
+ */
2242
+ "scroll-ml": [{
2243
+ "scroll-ml": getSpacingWithArbitrary()
2244
+ }],
2245
+ /**
2246
+ * Scroll Padding
2247
+ * @see https://tailwindcss.com/docs/scroll-padding
2248
+ */
2249
+ "scroll-p": [{
2250
+ "scroll-p": getSpacingWithArbitrary()
2251
+ }],
2252
+ /**
2253
+ * Scroll Padding X
2254
+ * @see https://tailwindcss.com/docs/scroll-padding
2255
+ */
2256
+ "scroll-px": [{
2257
+ "scroll-px": getSpacingWithArbitrary()
2258
+ }],
2259
+ /**
2260
+ * Scroll Padding Y
2261
+ * @see https://tailwindcss.com/docs/scroll-padding
2262
+ */
2263
+ "scroll-py": [{
2264
+ "scroll-py": getSpacingWithArbitrary()
2265
+ }],
2266
+ /**
2267
+ * Scroll Padding Start
2268
+ * @see https://tailwindcss.com/docs/scroll-padding
2269
+ */
2270
+ "scroll-ps": [{
2271
+ "scroll-ps": getSpacingWithArbitrary()
2272
+ }],
2273
+ /**
2274
+ * Scroll Padding End
2275
+ * @see https://tailwindcss.com/docs/scroll-padding
2276
+ */
2277
+ "scroll-pe": [{
2278
+ "scroll-pe": getSpacingWithArbitrary()
2279
+ }],
2280
+ /**
2281
+ * Scroll Padding Top
2282
+ * @see https://tailwindcss.com/docs/scroll-padding
2283
+ */
2284
+ "scroll-pt": [{
2285
+ "scroll-pt": getSpacingWithArbitrary()
2286
+ }],
2287
+ /**
2288
+ * Scroll Padding Right
2289
+ * @see https://tailwindcss.com/docs/scroll-padding
2290
+ */
2291
+ "scroll-pr": [{
2292
+ "scroll-pr": getSpacingWithArbitrary()
2293
+ }],
2294
+ /**
2295
+ * Scroll Padding Bottom
2296
+ * @see https://tailwindcss.com/docs/scroll-padding
2297
+ */
2298
+ "scroll-pb": [{
2299
+ "scroll-pb": getSpacingWithArbitrary()
2300
+ }],
2301
+ /**
2302
+ * Scroll Padding Left
2303
+ * @see https://tailwindcss.com/docs/scroll-padding
2304
+ */
2305
+ "scroll-pl": [{
2306
+ "scroll-pl": getSpacingWithArbitrary()
2307
+ }],
2308
+ /**
2309
+ * Scroll Snap Align
2310
+ * @see https://tailwindcss.com/docs/scroll-snap-align
2311
+ */
2312
+ "snap-align": [{
2313
+ snap: ["start", "end", "center", "align-none"]
2314
+ }],
2315
+ /**
2316
+ * Scroll Snap Stop
2317
+ * @see https://tailwindcss.com/docs/scroll-snap-stop
2318
+ */
2319
+ "snap-stop": [{
2320
+ snap: ["normal", "always"]
2321
+ }],
2322
+ /**
2323
+ * Scroll Snap Type
2324
+ * @see https://tailwindcss.com/docs/scroll-snap-type
2325
+ */
2326
+ "snap-type": [{
2327
+ snap: ["none", "x", "y", "both"]
2328
+ }],
2329
+ /**
2330
+ * Scroll Snap Type Strictness
2331
+ * @see https://tailwindcss.com/docs/scroll-snap-type
2332
+ */
2333
+ "snap-strictness": [{
2334
+ snap: ["mandatory", "proximity"]
2335
+ }],
2336
+ /**
2337
+ * Touch Action
2338
+ * @see https://tailwindcss.com/docs/touch-action
2339
+ */
2340
+ touch: [{
2341
+ touch: ["auto", "none", "manipulation"]
2342
+ }],
2343
+ /**
2344
+ * Touch Action X
2345
+ * @see https://tailwindcss.com/docs/touch-action
2346
+ */
2347
+ "touch-x": [{
2348
+ "touch-pan": ["x", "left", "right"]
2349
+ }],
2350
+ /**
2351
+ * Touch Action Y
2352
+ * @see https://tailwindcss.com/docs/touch-action
2353
+ */
2354
+ "touch-y": [{
2355
+ "touch-pan": ["y", "up", "down"]
2356
+ }],
2357
+ /**
2358
+ * Touch Action Pinch Zoom
2359
+ * @see https://tailwindcss.com/docs/touch-action
2360
+ */
2361
+ "touch-pz": ["touch-pinch-zoom"],
2362
+ /**
2363
+ * User Select
2364
+ * @see https://tailwindcss.com/docs/user-select
2365
+ */
2366
+ select: [{
2367
+ select: ["none", "text", "all", "auto"]
2368
+ }],
2369
+ /**
2370
+ * Will Change
2371
+ * @see https://tailwindcss.com/docs/will-change
2372
+ */
2373
+ "will-change": [{
2374
+ "will-change": ["auto", "scroll", "contents", "transform", isArbitraryValue]
2375
+ }],
2376
+ // SVG
2377
+ /**
2378
+ * Fill
2379
+ * @see https://tailwindcss.com/docs/fill
2380
+ */
2381
+ fill: [{
2382
+ fill: [colors, "none"]
2383
+ }],
2384
+ /**
2385
+ * Stroke Width
2386
+ * @see https://tailwindcss.com/docs/stroke-width
2387
+ */
2388
+ "stroke-w": [{
2389
+ stroke: [isLength, isArbitraryLength, isArbitraryNumber]
2390
+ }],
2391
+ /**
2392
+ * Stroke
2393
+ * @see https://tailwindcss.com/docs/stroke
2394
+ */
2395
+ stroke: [{
2396
+ stroke: [colors, "none"]
2397
+ }],
2398
+ // Accessibility
2399
+ /**
2400
+ * Screen Readers
2401
+ * @see https://tailwindcss.com/docs/screen-readers
2402
+ */
2403
+ sr: ["sr-only", "not-sr-only"],
2404
+ /**
2405
+ * Forced Color Adjust
2406
+ * @see https://tailwindcss.com/docs/forced-color-adjust
2407
+ */
2408
+ "forced-color-adjust": [{
2409
+ "forced-color-adjust": ["auto", "none"]
2410
+ }]
2411
+ },
2412
+ conflictingClassGroups: {
2413
+ overflow: ["overflow-x", "overflow-y"],
2414
+ overscroll: ["overscroll-x", "overscroll-y"],
2415
+ inset: ["inset-x", "inset-y", "start", "end", "top", "right", "bottom", "left"],
2416
+ "inset-x": ["right", "left"],
2417
+ "inset-y": ["top", "bottom"],
2418
+ flex: ["basis", "grow", "shrink"],
2419
+ gap: ["gap-x", "gap-y"],
2420
+ p: ["px", "py", "ps", "pe", "pt", "pr", "pb", "pl"],
2421
+ px: ["pr", "pl"],
2422
+ py: ["pt", "pb"],
2423
+ m: ["mx", "my", "ms", "me", "mt", "mr", "mb", "ml"],
2424
+ mx: ["mr", "ml"],
2425
+ my: ["mt", "mb"],
2426
+ size: ["w", "h"],
2427
+ "font-size": ["leading"],
2428
+ "fvn-normal": ["fvn-ordinal", "fvn-slashed-zero", "fvn-figure", "fvn-spacing", "fvn-fraction"],
2429
+ "fvn-ordinal": ["fvn-normal"],
2430
+ "fvn-slashed-zero": ["fvn-normal"],
2431
+ "fvn-figure": ["fvn-normal"],
2432
+ "fvn-spacing": ["fvn-normal"],
2433
+ "fvn-fraction": ["fvn-normal"],
2434
+ "line-clamp": ["display", "overflow"],
2435
+ 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"],
2436
+ "rounded-s": ["rounded-ss", "rounded-es"],
2437
+ "rounded-e": ["rounded-se", "rounded-ee"],
2438
+ "rounded-t": ["rounded-tl", "rounded-tr"],
2439
+ "rounded-r": ["rounded-tr", "rounded-br"],
2440
+ "rounded-b": ["rounded-br", "rounded-bl"],
2441
+ "rounded-l": ["rounded-tl", "rounded-bl"],
2442
+ "border-spacing": ["border-spacing-x", "border-spacing-y"],
2443
+ "border-w": ["border-w-s", "border-w-e", "border-w-t", "border-w-r", "border-w-b", "border-w-l"],
2444
+ "border-w-x": ["border-w-r", "border-w-l"],
2445
+ "border-w-y": ["border-w-t", "border-w-b"],
2446
+ "border-color": ["border-color-t", "border-color-r", "border-color-b", "border-color-l"],
2447
+ "border-color-x": ["border-color-r", "border-color-l"],
2448
+ "border-color-y": ["border-color-t", "border-color-b"],
2449
+ "scroll-m": ["scroll-mx", "scroll-my", "scroll-ms", "scroll-me", "scroll-mt", "scroll-mr", "scroll-mb", "scroll-ml"],
2450
+ "scroll-mx": ["scroll-mr", "scroll-ml"],
2451
+ "scroll-my": ["scroll-mt", "scroll-mb"],
2452
+ "scroll-p": ["scroll-px", "scroll-py", "scroll-ps", "scroll-pe", "scroll-pt", "scroll-pr", "scroll-pb", "scroll-pl"],
2453
+ "scroll-px": ["scroll-pr", "scroll-pl"],
2454
+ "scroll-py": ["scroll-pt", "scroll-pb"],
2455
+ touch: ["touch-x", "touch-y", "touch-pz"],
2456
+ "touch-x": ["touch"],
2457
+ "touch-y": ["touch"],
2458
+ "touch-pz": ["touch"]
2459
+ },
2460
+ conflictingClassGroupModifiers: {
2461
+ "font-size": ["leading"]
2462
+ }
2463
+ };
2464
+ };
2465
+ var twMerge = /* @__PURE__ */ createTailwindMerge(getDefaultConfig);
2466
+
2467
+ // lib/utils.ts
2468
+ function cn(...inputs) {
2469
+ return twMerge(clsx(inputs));
2470
+ }
2471
+
2472
+ // components/ui/button.tsx
2473
+ import * as React from "react";
2474
+ import { Slot } from "@radix-ui/react-slot";
2475
+
2476
+ // ../../node_modules/class-variance-authority/node_modules/clsx/dist/clsx.mjs
2477
+ function r2(e) {
2478
+ var t, f, n = "";
2479
+ if ("string" == typeof e || "number" == typeof e) n += e;
2480
+ else if ("object" == typeof e) if (Array.isArray(e)) for (t = 0; t < e.length; t++) e[t] && (f = r2(e[t])) && (n && (n += " "), n += f);
2481
+ else for (t in e) e[t] && (n && (n += " "), n += t);
2482
+ return n;
2483
+ }
2484
+ function clsx2() {
2485
+ for (var e, t, f = 0, n = ""; f < arguments.length; ) (e = arguments[f++]) && (t = r2(e)) && (n && (n += " "), n += t);
2486
+ return n;
2487
+ }
2488
+
2489
+ // ../../node_modules/class-variance-authority/dist/index.mjs
2490
+ var falsyToString = (value) => typeof value === "boolean" ? "".concat(value) : value === 0 ? "0" : value;
2491
+ var cx = clsx2;
2492
+ var cva = (base, config) => {
2493
+ return (props) => {
2494
+ var ref;
2495
+ if ((config === null || config === void 0 ? void 0 : config.variants) == null) return cx(base, props === null || props === void 0 ? void 0 : props.class, props === null || props === void 0 ? void 0 : props.className);
2496
+ const { variants, defaultVariants } = config;
2497
+ const getVariantClassNames = Object.keys(variants).map((variant) => {
2498
+ const variantProp = props === null || props === void 0 ? void 0 : props[variant];
2499
+ const defaultVariantProp = defaultVariants === null || defaultVariants === void 0 ? void 0 : defaultVariants[variant];
2500
+ if (variantProp === null) return null;
2501
+ const variantKey = falsyToString(variantProp) || falsyToString(defaultVariantProp);
2502
+ return variants[variant][variantKey];
2503
+ });
2504
+ const propsWithoutUndefined = props && Object.entries(props).reduce((acc, param) => {
2505
+ let [key, value] = param;
2506
+ if (value === void 0) {
2507
+ return acc;
2508
+ }
2509
+ acc[key] = value;
2510
+ return acc;
2511
+ }, {});
2512
+ const getCompoundVariantClassNames = config === null || config === void 0 ? void 0 : (ref = config.compoundVariants) === null || ref === void 0 ? void 0 : ref.reduce((acc, param1) => {
2513
+ let { class: cvClass, className: cvClassName, ...compoundVariantOptions } = param1;
2514
+ return Object.entries(compoundVariantOptions).every((param) => {
2515
+ let [key, value] = param;
2516
+ return Array.isArray(value) ? value.includes({
2517
+ ...defaultVariants,
2518
+ ...propsWithoutUndefined
2519
+ }[key]) : {
2520
+ ...defaultVariants,
2521
+ ...propsWithoutUndefined
2522
+ }[key] === value;
2523
+ }) ? [
2524
+ ...acc,
2525
+ cvClass,
2526
+ cvClassName
2527
+ ] : acc;
2528
+ }, []);
2529
+ return cx(base, getVariantClassNames, getCompoundVariantClassNames, props === null || props === void 0 ? void 0 : props.class, props === null || props === void 0 ? void 0 : props.className);
2530
+ };
2531
+ };
2532
+
2533
+ // components/ui/button.tsx
2534
+ var buttonVariants = cva(
2535
+ "inline-flex items-center justify-center whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",
2536
+ {
2537
+ variants: {
2538
+ variant: {
2539
+ default: "bg-primary text-primary-foreground hover:bg-primary/90",
2540
+ destructive: "bg-destructive text-destructive-foreground hover:bg-destructive/90",
2541
+ outline: "border border-input bg-background hover:bg-accent hover:text-accent-foreground",
2542
+ secondary: "bg-secondary text-secondary-foreground hover:bg-secondary/80",
2543
+ ghost: "hover:bg-accent hover:text-accent-foreground",
2544
+ link: "text-primary underline-offset-4 hover:underline"
2545
+ },
2546
+ size: {
2547
+ default: "h-10 px-4 py-2",
2548
+ sm: "h-9 rounded-md px-3",
2549
+ lg: "h-11 rounded-md px-8",
2550
+ icon: "h-10 w-10"
2551
+ }
2552
+ },
2553
+ defaultVariants: {
2554
+ variant: "default",
2555
+ size: "default"
2556
+ }
2557
+ }
2558
+ );
2559
+ var Button = React.forwardRef(
2560
+ ({ className, variant, size, asChild = false, ...props }, ref) => {
2561
+ const Comp = asChild ? Slot : "button";
2562
+ return /* @__PURE__ */ React.createElement(
2563
+ Comp,
2564
+ {
2565
+ className: cn(buttonVariants({ variant, size, className })),
2566
+ ref,
2567
+ ...props
2568
+ }
2569
+ );
2570
+ }
2571
+ );
2572
+ Button.displayName = "Button";
2573
+
2574
+ // src/GoogleLoginButton/GoogleLoginButton.tsx
2575
+ var GoogleSSOButton = React2.forwardRef(
2576
+ ({ callbackUrl, className, variant, size, asChild = false, ...props }, ref) => {
2577
+ const Comp = asChild ? Slot2 : "button";
2578
+ return /* @__PURE__ */ React2.createElement(
2579
+ Comp,
2580
+ {
2581
+ className: cn(
2582
+ buttonVariants({ variant, size, className }),
2583
+ "bg-[#4285f4] hover:bg-[#4285f4] hover:bg-opacity-90 pl-[3px]"
2584
+ ),
2585
+ ref,
2586
+ onClick: () => {
2587
+ signIn("google", { callbackUrl });
2588
+ },
2589
+ ...props
2590
+ },
2591
+ /* @__PURE__ */ React2.createElement("div", { className: "inline-flex items-center flex-1 justify-between font-roboto rounded-[4px] gap-4 google-logo" }, /* @__PURE__ */ React2.createElement(
2592
+ "div",
2593
+ {
2594
+ style: {
2595
+ background: "white",
2596
+ borderRadius: "4px",
2597
+ padding: "0.5rem"
2598
+ }
2599
+ },
2600
+ /* @__PURE__ */ React2.createElement(GoogleLogo, null)
2601
+ ), /* @__PURE__ */ React2.createElement("div", null, "Continue with Google"))
2602
+ );
2603
+ }
2604
+ );
2605
+ GoogleSSOButton.displayName = "GoogleSSOButton";
2606
+ var GoogleLoginButton_default = GoogleSSOButton;
2607
+ function GoogleLogo() {
2608
+ return /* @__PURE__ */ React2.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: "18", height: "18" }, /* @__PURE__ */ React2.createElement("g", { fill: "#000", fillRule: "evenodd" }, /* @__PURE__ */ React2.createElement(
2609
+ "path",
2610
+ {
2611
+ d: "M9 3.48c1.69 0 2.83.73 3.48 1.34l2.54-2.48C13.46.89 11.43 0 9 0 5.48 0 2.44 2.02.96 4.96l2.91 2.26C4.6 5.05 6.62 3.48 9 3.48z",
2612
+ fill: "#EA4335"
2613
+ }
2614
+ ), /* @__PURE__ */ React2.createElement(
2615
+ "path",
2616
+ {
2617
+ d: "M17.64 9.2c0-.74-.06-1.28-.19-1.84H9v3.34h4.96c-.1.83-.64 2.08-1.84 2.92l2.84 2.2c1.7-1.57 2.68-3.88 2.68-6.62z",
2618
+ fill: "#4285F4"
2619
+ }
2620
+ ), /* @__PURE__ */ React2.createElement(
2621
+ "path",
2622
+ {
2623
+ d: "M3.88 10.78A5.54 5.54 0 0 1 3.58 9c0-.62.11-1.22.29-1.78L.96 4.96A9.008 9.008 0 0 0 0 9c0 1.45.35 2.82.96 4.04l2.92-2.26z",
2624
+ fill: "#FBBC05"
2625
+ }
2626
+ ), /* @__PURE__ */ React2.createElement(
2627
+ "path",
2628
+ {
2629
+ d: "M9 18c2.43 0 4.47-.8 5.96-2.18l-2.84-2.2c-.76.53-1.78.9-3.12.9-2.38 0-4.4-1.57-5.12-3.74L.97 13.04C2.45 15.98 5.48 18 9 18z",
2630
+ fill: "#34A853"
2631
+ }
2632
+ ), /* @__PURE__ */ React2.createElement("path", { fill: "none", d: "M0 0h18v18H0z" })));
2633
+ }
2634
+
2635
+ // src/SignUpForm/SignUpForm.tsx
2636
+ import React7 from "react";
2637
+
2638
+ // src/SignUpForm/Form.tsx
2639
+ import React6 from "react";
2640
+ import { QueryClient, QueryClientProvider } from "@tanstack/react-query";
2641
+ import { useForm } from "react-hook-form";
2642
+
2643
+ // components/ui/form.tsx
2644
+ import * as React4 from "react";
2645
+ import { Slot as Slot3 } from "@radix-ui/react-slot";
2646
+ import {
2647
+ Controller,
2648
+ FormProvider,
2649
+ useFormContext
2650
+ } from "react-hook-form";
2651
+
2652
+ // components/ui/label.tsx
2653
+ import * as React3 from "react";
2654
+ import * as LabelPrimitive from "@radix-ui/react-label";
2655
+ var labelVariants = cva(
2656
+ "text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"
2657
+ );
2658
+ var Label = React3.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React3.createElement(
2659
+ LabelPrimitive.Root,
2660
+ {
2661
+ ref,
2662
+ className: cn(labelVariants(), className),
2663
+ ...props
2664
+ }
2665
+ ));
2666
+ Label.displayName = LabelPrimitive.Root.displayName;
2667
+
2668
+ // components/ui/form.tsx
2669
+ var Form = FormProvider;
2670
+ var FormFieldContext = React4.createContext(
2671
+ {}
2672
+ );
2673
+ var FormField = ({ ...props }) => {
2674
+ return /* @__PURE__ */ React4.createElement(FormFieldContext.Provider, { value: { name: props.name } }, /* @__PURE__ */ React4.createElement(Controller, { ...props }));
2675
+ };
2676
+ var useFormField = () => {
2677
+ const fieldContext = React4.useContext(FormFieldContext);
2678
+ const itemContext = React4.useContext(FormItemContext);
2679
+ const { getFieldState, formState } = useFormContext();
2680
+ const fieldState = getFieldState(fieldContext.name, formState);
2681
+ if (!fieldContext) {
2682
+ throw new Error("useFormField should be used within <FormField>");
2683
+ }
2684
+ const { id } = itemContext;
2685
+ return {
2686
+ id,
2687
+ name: fieldContext.name,
2688
+ formItemId: `${id}-form-item`,
2689
+ formDescriptionId: `${id}-form-item-description`,
2690
+ formMessageId: `${id}-form-item-message`,
2691
+ ...fieldState
2692
+ };
2693
+ };
2694
+ var FormItemContext = React4.createContext(
2695
+ {}
2696
+ );
2697
+ var FormItem = React4.forwardRef(({ className, ...props }, ref) => {
2698
+ const id = React4.useId();
2699
+ return /* @__PURE__ */ React4.createElement(FormItemContext.Provider, { value: { id } }, /* @__PURE__ */ React4.createElement("div", { ref, className: cn("space-y-2", className), ...props }));
2700
+ });
2701
+ FormItem.displayName = "FormItem";
2702
+ var FormLabel = React4.forwardRef(({ className, ...props }, ref) => {
2703
+ const { error, formItemId } = useFormField();
2704
+ return /* @__PURE__ */ React4.createElement(
2705
+ Label,
2706
+ {
2707
+ ref,
2708
+ className: cn(error && "text-destructive", className),
2709
+ htmlFor: formItemId,
2710
+ ...props
2711
+ }
2712
+ );
2713
+ });
2714
+ FormLabel.displayName = "FormLabel";
2715
+ var FormControl = React4.forwardRef(({ ...props }, ref) => {
2716
+ const { error, formItemId, formDescriptionId, formMessageId } = useFormField();
2717
+ return /* @__PURE__ */ React4.createElement(
2718
+ Slot3,
2719
+ {
2720
+ ref,
2721
+ id: formItemId,
2722
+ "aria-describedby": !error ? `${formDescriptionId}` : `${formDescriptionId} ${formMessageId}`,
2723
+ "aria-invalid": !!error,
2724
+ ...props
2725
+ }
2726
+ );
2727
+ });
2728
+ FormControl.displayName = "FormControl";
2729
+ var FormDescription = React4.forwardRef(({ className, ...props }, ref) => {
2730
+ const { formDescriptionId } = useFormField();
2731
+ return /* @__PURE__ */ React4.createElement(
2732
+ "p",
2733
+ {
2734
+ ref,
2735
+ id: formDescriptionId,
2736
+ className: cn("text-sm text-muted-foreground", className),
2737
+ ...props
2738
+ }
2739
+ );
2740
+ });
2741
+ FormDescription.displayName = "FormDescription";
2742
+ var FormMessage = React4.forwardRef(({ className, children, ...props }, ref) => {
2743
+ const { error, formMessageId } = useFormField();
2744
+ const body = error ? String(error?.message) : children;
2745
+ if (!body) {
2746
+ return null;
2747
+ }
2748
+ return /* @__PURE__ */ React4.createElement(
2749
+ "p",
2750
+ {
2751
+ ref,
2752
+ id: formMessageId,
2753
+ className: cn("text-sm font-medium text-destructive", className),
2754
+ ...props
2755
+ },
2756
+ body
2757
+ );
2758
+ });
2759
+ FormMessage.displayName = "FormMessage";
2760
+
2761
+ // components/ui/input.tsx
2762
+ import * as React5 from "react";
2763
+ var Input = React5.forwardRef(
2764
+ ({ className, type, ...props }, ref) => {
2765
+ return /* @__PURE__ */ React5.createElement(
2766
+ "input",
2767
+ {
2768
+ type,
2769
+ className: cn(
2770
+ "flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",
2771
+ className
2772
+ ),
2773
+ ref,
2774
+ ...props
2775
+ }
2776
+ );
2777
+ }
2778
+ );
2779
+ Input.displayName = "Input";
2780
+
2781
+ // src/SignUpForm/hooks.tsx
2782
+ import { useMutation } from "@tanstack/react-query";
2783
+ function useSignUp(params) {
2784
+ const { onSuccess, onError, beforeMutate } = params;
2785
+ const mutation = useMutation({
2786
+ mutationFn: async (_data) => {
2787
+ const possibleData = beforeMutate && beforeMutate(_data);
2788
+ const payload = { ..._data, ...possibleData };
2789
+ return await fetch(`${window.location.origin}/api/users`, {
2790
+ body: JSON.stringify(payload),
2791
+ method: "POST"
2792
+ });
2793
+ },
2794
+ onSuccess,
2795
+ onError
2796
+ });
2797
+ return mutation.mutate;
2798
+ }
2799
+
2800
+ // src/SignUpForm/Form.tsx
2801
+ var queryClient = new QueryClient();
2802
+ function SignUpForm(props) {
2803
+ const { client } = props ?? {};
2804
+ return /* @__PURE__ */ React6.createElement(QueryClientProvider, { client: client ?? queryClient }, /* @__PURE__ */ React6.createElement(SignInForm, { ...props }));
2805
+ }
2806
+ function SignInForm(props) {
2807
+ const signUp = useSignUp(props);
2808
+ const form = useForm({ defaultValues: { email: "", password: "" } });
2809
+ return /* @__PURE__ */ React6.createElement(Form, { ...form }, /* @__PURE__ */ React6.createElement(
2810
+ "form",
2811
+ {
2812
+ onSubmit: form.handleSubmit(
2813
+ ({ email, password }) => signUp({ email, password })
2814
+ ),
2815
+ className: "space-y-8"
2816
+ },
2817
+ /* @__PURE__ */ React6.createElement(
2818
+ FormField,
2819
+ {
2820
+ control: form.control,
2821
+ name: "email",
2822
+ render: ({ field }) => {
2823
+ return /* @__PURE__ */ React6.createElement(FormItem, null, /* @__PURE__ */ React6.createElement(FormLabel, null, "Email"), /* @__PURE__ */ React6.createElement(FormControl, null, /* @__PURE__ */ React6.createElement(
2824
+ Input,
2825
+ {
2826
+ placeholder: "Email",
2827
+ ...field,
2828
+ autoComplete: "current-email"
2829
+ }
2830
+ )), /* @__PURE__ */ React6.createElement(FormDescription, null, "Your email address."), /* @__PURE__ */ React6.createElement(FormMessage, null));
2831
+ }
2832
+ }
2833
+ ),
2834
+ /* @__PURE__ */ React6.createElement(
2835
+ FormField,
2836
+ {
2837
+ control: form.control,
2838
+ name: "password",
2839
+ render: ({ field }) => {
2840
+ return /* @__PURE__ */ React6.createElement(FormItem, null, /* @__PURE__ */ React6.createElement(FormLabel, null, "Password"), /* @__PURE__ */ React6.createElement(FormControl, null, /* @__PURE__ */ React6.createElement(
2841
+ Input,
2842
+ {
2843
+ placeholder: "Password",
2844
+ ...field,
2845
+ type: "password",
2846
+ autoComplete: "current-password"
2847
+ }
2848
+ )), /* @__PURE__ */ React6.createElement(FormDescription, null, "Your password."), /* @__PURE__ */ React6.createElement(FormMessage, null));
2849
+ }
2850
+ }
2851
+ ),
2852
+ /* @__PURE__ */ React6.createElement(Button, null, "Sign up")
2853
+ ));
2854
+ }
2855
+
2856
+ // src/SignUpForm/SignUpForm.tsx
2857
+ function SigningUp(props) {
2858
+ return /* @__PURE__ */ React7.createElement("div", { className: "flex flex-col gap-4" }, /* @__PURE__ */ React7.createElement("div", { className: "font-sans text-3xl" }, "Sign up"), /* @__PURE__ */ React7.createElement(SignUpForm, { ...props }));
2859
+ }
2860
+
2861
+ // src/SignInForm/SignInForm.tsx
2862
+ import React9 from "react";
2863
+
2864
+ // src/SignInForm/Form.tsx
2865
+ import React8 from "react";
2866
+ import { QueryClient as QueryClient2, QueryClientProvider as QueryClientProvider2 } from "@tanstack/react-query";
2867
+ import { useForm as useForm2 } from "react-hook-form";
2868
+
2869
+ // src/SignInForm/hooks.tsx
2870
+ import { useMutation as useMutation2 } from "@tanstack/react-query";
2871
+ import { signIn as signIn2 } from "next-auth/react";
2872
+ function useSignIn(params) {
2873
+ const { onSuccess, onError, beforeMutate, callbackUrl } = params ?? {};
2874
+ const mutation = useMutation2({
2875
+ mutationFn: async (_data) => {
2876
+ const d = { ..._data, callbackUrl };
2877
+ const possibleData = beforeMutate && beforeMutate(d);
2878
+ const data = possibleData ?? d;
2879
+ return await signIn2("credentials", data);
2880
+ },
2881
+ onSuccess,
2882
+ onError
2883
+ });
2884
+ return mutation.mutate;
2885
+ }
2886
+
2887
+ // src/SignInForm/Form.tsx
2888
+ var queryClient2 = new QueryClient2();
2889
+ function SigningIn(props) {
2890
+ const { client, ...remaining } = props ?? {};
2891
+ return /* @__PURE__ */ React8.createElement(QueryClientProvider2, { client: client ?? queryClient2 }, /* @__PURE__ */ React8.createElement(SignInForm2, { ...remaining }));
2892
+ }
2893
+ function SignInForm2(props) {
2894
+ const signIn3 = useSignIn(props);
2895
+ const form = useForm2({ defaultValues: { email: "", password: "" } });
2896
+ return /* @__PURE__ */ React8.createElement(Form, { ...form }, /* @__PURE__ */ React8.createElement(
2897
+ "form",
2898
+ {
2899
+ onSubmit: form.handleSubmit(
2900
+ ({ email, password }) => signIn3 && signIn3({ email, password })
2901
+ ),
2902
+ className: "space-y-8"
2903
+ },
2904
+ /* @__PURE__ */ React8.createElement(
2905
+ FormField,
2906
+ {
2907
+ control: form.control,
2908
+ name: "email",
2909
+ render: ({ field }) => {
2910
+ return /* @__PURE__ */ React8.createElement(FormItem, null, /* @__PURE__ */ React8.createElement(FormLabel, null, "Email"), /* @__PURE__ */ React8.createElement(FormControl, null, /* @__PURE__ */ React8.createElement(
2911
+ Input,
2912
+ {
2913
+ placeholder: "Email",
2914
+ ...field,
2915
+ autoComplete: "current-email"
2916
+ }
2917
+ )), /* @__PURE__ */ React8.createElement(FormDescription, null, "The email of a user."), /* @__PURE__ */ React8.createElement(FormMessage, null));
2918
+ }
2919
+ }
2920
+ ),
2921
+ /* @__PURE__ */ React8.createElement(
2922
+ FormField,
2923
+ {
2924
+ control: form.control,
2925
+ name: "password",
2926
+ render: ({ field }) => {
2927
+ return /* @__PURE__ */ React8.createElement(FormItem, null, /* @__PURE__ */ React8.createElement(FormLabel, null, "Password"), /* @__PURE__ */ React8.createElement(FormControl, null, /* @__PURE__ */ React8.createElement(
2928
+ Input,
2929
+ {
2930
+ placeholder: "Password",
2931
+ ...field,
2932
+ type: "password",
2933
+ autoComplete: "current-password"
2934
+ }
2935
+ )), /* @__PURE__ */ React8.createElement(FormDescription, null, "The desired password."), /* @__PURE__ */ React8.createElement(FormMessage, null));
2936
+ }
2937
+ }
2938
+ ),
2939
+ /* @__PURE__ */ React8.createElement(Button, { type: "submit" }, "Sign In")
2940
+ ));
2941
+ }
2942
+
2943
+ // src/SignInForm/SignInForm.tsx
2944
+ function SigningIn2(props) {
2945
+ return /* @__PURE__ */ React9.createElement("div", { className: "flex flex-col gap-4" }, /* @__PURE__ */ React9.createElement("h2", { className: "font-sans text-3xl" }, "Sign In"), /* @__PURE__ */ React9.createElement(SigningIn, { ...props }));
2946
+ }
2947
+
2948
+ // src/index.ts
2949
+ export * from "next-auth/react";
2950
+ export {
2951
+ GoogleLoginButton_default as Google,
2952
+ SigningIn2 as SignInForm,
2953
+ SigningUp as SignUpForm,
2954
+ useSignIn,
2955
+ useSignUp
2956
+ };