@paperless/core 2.0.1-beta.13 → 2.0.1-beta.2

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