rivet-ui 0.1.0

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 (233) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +120 -0
  3. package/dist/chunk-fjtwj9cw.js +79 -0
  4. package/dist/chunk-fjtwj9cw.js.map +10 -0
  5. package/dist/components/Accordion/Accordion.d.ts +7 -0
  6. package/dist/components/Accordion/Accordion.stories.d.ts +10 -0
  7. package/dist/components/Accordion/index.d.ts +1 -0
  8. package/dist/components/Accordion/index.js +62 -0
  9. package/dist/components/Accordion/index.js.map +10 -0
  10. package/dist/components/Alert/Alert.d.ts +15 -0
  11. package/dist/components/Alert/Alert.stories.d.ts +23 -0
  12. package/dist/components/Alert/index.d.ts +2 -0
  13. package/dist/components/Alert/index.js +57 -0
  14. package/dist/components/Alert/index.js.map +10 -0
  15. package/dist/components/AlertDialog/AlertDialog.d.ts +11 -0
  16. package/dist/components/AlertDialog/AlertDialog.stories.d.ts +9 -0
  17. package/dist/components/AlertDialog/index.d.ts +1 -0
  18. package/dist/components/AlertDialog/index.js +66 -0
  19. package/dist/components/AlertDialog/index.js.map +10 -0
  20. package/dist/components/Autocomplete/Autocomplete.d.ts +17 -0
  21. package/dist/components/Autocomplete/Autocomplete.stories.d.ts +6 -0
  22. package/dist/components/Autocomplete/index.d.ts +1 -0
  23. package/dist/components/Autocomplete/index.js +109 -0
  24. package/dist/components/Autocomplete/index.js.map +10 -0
  25. package/dist/components/Avatar/Avatar.d.ts +19 -0
  26. package/dist/components/Avatar/Avatar.stories.d.ts +29 -0
  27. package/dist/components/Avatar/index.d.ts +2 -0
  28. package/dist/components/Avatar/index.js +65 -0
  29. package/dist/components/Avatar/index.js.map +10 -0
  30. package/dist/components/AvatarLabel/AvatarLabel.d.ts +12 -0
  31. package/dist/components/AvatarLabel/AvatarLabel.stories.d.ts +10 -0
  32. package/dist/components/AvatarLabel/index.d.ts +2 -0
  33. package/dist/components/AvatarLabel/index.js +74 -0
  34. package/dist/components/AvatarLabel/index.js.map +10 -0
  35. package/dist/components/Badge/Badge.d.ts +13 -0
  36. package/dist/components/Badge/Badge.stories.d.ts +25 -0
  37. package/dist/components/Badge/index.d.ts +2 -0
  38. package/dist/components/Badge/index.js +38 -0
  39. package/dist/components/Badge/index.js.map +10 -0
  40. package/dist/components/Button/Button.d.ts +15 -0
  41. package/dist/components/Button/Button.stories.d.ts +35 -0
  42. package/dist/components/Button/index.d.ts +2 -0
  43. package/dist/components/Button/index.js +44 -0
  44. package/dist/components/Button/index.js.map +10 -0
  45. package/dist/components/Card/Card.d.ts +6 -0
  46. package/dist/components/Card/Card.stories.d.ts +13 -0
  47. package/dist/components/Card/index.d.ts +1 -0
  48. package/dist/components/Card/index.js +47 -0
  49. package/dist/components/Card/index.js.map +10 -0
  50. package/dist/components/Checkbox/Checkbox.d.ts +6 -0
  51. package/dist/components/Checkbox/Checkbox.stories.d.ts +25 -0
  52. package/dist/components/Checkbox/index.d.ts +1 -0
  53. package/dist/components/Checkbox/index.js +68 -0
  54. package/dist/components/Checkbox/index.js.map +10 -0
  55. package/dist/components/Collapsible/Collapsible.d.ts +4 -0
  56. package/dist/components/Collapsible/Collapsible.stories.d.ts +10 -0
  57. package/dist/components/Collapsible/index.d.ts +1 -0
  58. package/dist/components/Collapsible/index.js +34 -0
  59. package/dist/components/Collapsible/index.js.map +10 -0
  60. package/dist/components/Combobox/Combobox.d.ts +24 -0
  61. package/dist/components/Combobox/Combobox.stories.d.ts +13 -0
  62. package/dist/components/Combobox/index.d.ts +1 -0
  63. package/dist/components/Combobox/index.js +162 -0
  64. package/dist/components/Combobox/index.js.map +10 -0
  65. package/dist/components/ConfirmDialog/ConfirmDialog.d.ts +22 -0
  66. package/dist/components/ConfirmDialog/ConfirmDialog.stories.d.ts +10 -0
  67. package/dist/components/ConfirmDialog/index.d.ts +2 -0
  68. package/dist/components/ConfirmDialog/index.js +85 -0
  69. package/dist/components/ConfirmDialog/index.js.map +10 -0
  70. package/dist/components/ContextMenu/ContextMenu.d.ts +21 -0
  71. package/dist/components/ContextMenu/ContextMenu.stories.d.ts +7 -0
  72. package/dist/components/ContextMenu/index.d.ts +1 -0
  73. package/dist/components/ContextMenu/index.js +117 -0
  74. package/dist/components/ContextMenu/index.js.map +10 -0
  75. package/dist/components/Dialog/Dialog.d.ts +11 -0
  76. package/dist/components/Dialog/Dialog.stories.d.ts +10 -0
  77. package/dist/components/Dialog/index.d.ts +1 -0
  78. package/dist/components/Dialog/index.js +66 -0
  79. package/dist/components/Dialog/index.js.map +10 -0
  80. package/dist/components/Drawer/Drawer.d.ts +13 -0
  81. package/dist/components/Drawer/Drawer.stories.d.ts +9 -0
  82. package/dist/components/Drawer/index.d.ts +1 -0
  83. package/dist/components/Drawer/index.js +81 -0
  84. package/dist/components/Drawer/index.js.map +10 -0
  85. package/dist/components/Field/Field.d.ts +8 -0
  86. package/dist/components/Field/Field.stories.d.ts +21 -0
  87. package/dist/components/Field/index.d.ts +1 -0
  88. package/dist/components/Field/index.js +52 -0
  89. package/dist/components/Field/index.js.map +10 -0
  90. package/dist/components/Fieldset/Fieldset.d.ts +3 -0
  91. package/dist/components/Fieldset/Fieldset.stories.d.ts +14 -0
  92. package/dist/components/Fieldset/index.d.ts +1 -0
  93. package/dist/components/Fieldset/index.js +27 -0
  94. package/dist/components/Fieldset/index.js.map +10 -0
  95. package/dist/components/Form/Form.d.ts +5 -0
  96. package/dist/components/Form/Form.stories.d.ts +5 -0
  97. package/dist/components/Form/index.d.ts +1 -0
  98. package/dist/components/Form/index.js +20 -0
  99. package/dist/components/Form/index.js.map +10 -0
  100. package/dist/components/Input/Input.d.ts +16 -0
  101. package/dist/components/Input/Input.stories.d.ts +34 -0
  102. package/dist/components/Input/index.d.ts +2 -0
  103. package/dist/components/Input/index.js +44 -0
  104. package/dist/components/Input/index.js.map +10 -0
  105. package/dist/components/Menu/Menu.d.ts +21 -0
  106. package/dist/components/Menu/Menu.stories.d.ts +9 -0
  107. package/dist/components/Menu/index.d.ts +1 -0
  108. package/dist/components/Menu/index.js +117 -0
  109. package/dist/components/Menu/index.js.map +10 -0
  110. package/dist/components/Menubar/Menubar.d.ts +2 -0
  111. package/dist/components/Menubar/Menubar.stories.d.ts +5 -0
  112. package/dist/components/Menubar/index.d.ts +1 -0
  113. package/dist/components/Menubar/index.js +20 -0
  114. package/dist/components/Menubar/index.js.map +10 -0
  115. package/dist/components/Meter/Meter.d.ts +6 -0
  116. package/dist/components/Meter/Meter.stories.d.ts +7 -0
  117. package/dist/components/Meter/index.d.ts +1 -0
  118. package/dist/components/Meter/index.js +48 -0
  119. package/dist/components/Meter/index.js.map +10 -0
  120. package/dist/components/NavigationMenu/NavigationMenu.d.ts +12 -0
  121. package/dist/components/NavigationMenu/NavigationMenu.stories.d.ts +5 -0
  122. package/dist/components/NavigationMenu/index.d.ts +1 -0
  123. package/dist/components/NavigationMenu/index.js +100 -0
  124. package/dist/components/NavigationMenu/index.js.map +10 -0
  125. package/dist/components/NumberField/NumberField.d.ts +8 -0
  126. package/dist/components/NumberField/NumberField.stories.d.ts +7 -0
  127. package/dist/components/NumberField/index.d.ts +1 -0
  128. package/dist/components/NumberField/index.js +84 -0
  129. package/dist/components/NumberField/index.js.map +10 -0
  130. package/dist/components/PageHeader/PageHeader.d.ts +10 -0
  131. package/dist/components/PageHeader/PageHeader.stories.d.ts +10 -0
  132. package/dist/components/PageHeader/index.d.ts +2 -0
  133. package/dist/components/PageHeader/index.js +48 -0
  134. package/dist/components/PageHeader/index.js.map +10 -0
  135. package/dist/components/Popover/Popover.d.ts +12 -0
  136. package/dist/components/Popover/Popover.stories.d.ts +9 -0
  137. package/dist/components/Popover/index.d.ts +1 -0
  138. package/dist/components/Popover/index.js +74 -0
  139. package/dist/components/Popover/index.js.map +10 -0
  140. package/dist/components/PreviewCard/PreviewCard.d.ts +9 -0
  141. package/dist/components/PreviewCard/PreviewCard.stories.d.ts +8 -0
  142. package/dist/components/PreviewCard/index.d.ts +1 -0
  143. package/dist/components/PreviewCard/index.js +53 -0
  144. package/dist/components/PreviewCard/index.js.map +10 -0
  145. package/dist/components/ProfileCard/ProfileCard.d.ts +19 -0
  146. package/dist/components/ProfileCard/ProfileCard.stories.d.ts +11 -0
  147. package/dist/components/ProfileCard/index.d.ts +2 -0
  148. package/dist/components/ProfileCard/index.js +97 -0
  149. package/dist/components/ProfileCard/index.js.map +10 -0
  150. package/dist/components/Progress/Progress.d.ts +6 -0
  151. package/dist/components/Progress/Progress.stories.d.ts +7 -0
  152. package/dist/components/Progress/index.d.ts +1 -0
  153. package/dist/components/Progress/index.js +48 -0
  154. package/dist/components/Progress/index.js.map +10 -0
  155. package/dist/components/Radio/Radio.d.ts +6 -0
  156. package/dist/components/Radio/Radio.stories.d.ts +20 -0
  157. package/dist/components/Radio/index.d.ts +1 -0
  158. package/dist/components/Radio/index.js +35 -0
  159. package/dist/components/Radio/index.js.map +10 -0
  160. package/dist/components/ScrollArea/ScrollArea.d.ts +7 -0
  161. package/dist/components/ScrollArea/ScrollArea.stories.d.ts +6 -0
  162. package/dist/components/ScrollArea/index.d.ts +1 -0
  163. package/dist/components/ScrollArea/index.js +55 -0
  164. package/dist/components/ScrollArea/index.js.map +10 -0
  165. package/dist/components/SearchField/SearchField.d.ts +11 -0
  166. package/dist/components/SearchField/SearchField.stories.d.ts +9 -0
  167. package/dist/components/SearchField/index.d.ts +2 -0
  168. package/dist/components/SearchField/index.js +65 -0
  169. package/dist/components/SearchField/index.js.map +10 -0
  170. package/dist/components/Select/Select.d.ts +19 -0
  171. package/dist/components/Select/Select.stories.d.ts +20 -0
  172. package/dist/components/Select/index.d.ts +1 -0
  173. package/dist/components/Select/index.js +143 -0
  174. package/dist/components/Select/index.js.map +10 -0
  175. package/dist/components/Separator/Separator.d.ts +2 -0
  176. package/dist/components/Separator/Separator.stories.d.ts +10 -0
  177. package/dist/components/Separator/index.d.ts +1 -0
  178. package/dist/components/Separator/index.js +20 -0
  179. package/dist/components/Separator/index.js.map +10 -0
  180. package/dist/components/Slider/Slider.d.ts +10 -0
  181. package/dist/components/Slider/Slider.stories.d.ts +7 -0
  182. package/dist/components/Slider/index.d.ts +1 -0
  183. package/dist/components/Slider/index.js +55 -0
  184. package/dist/components/Slider/index.js.map +10 -0
  185. package/dist/components/Switch/Switch.d.ts +3 -0
  186. package/dist/components/Switch/Switch.stories.d.ts +24 -0
  187. package/dist/components/Switch/index.d.ts +1 -0
  188. package/dist/components/Switch/index.js +27 -0
  189. package/dist/components/Switch/index.js.map +10 -0
  190. package/dist/components/Tabs/Tabs.d.ts +6 -0
  191. package/dist/components/Tabs/Tabs.stories.d.ts +9 -0
  192. package/dist/components/Tabs/index.d.ts +1 -0
  193. package/dist/components/Tabs/index.js +43 -0
  194. package/dist/components/Tabs/index.js.map +10 -0
  195. package/dist/components/Toast/Toast.d.ts +14 -0
  196. package/dist/components/Toast/Toast.stories.d.ts +8 -0
  197. package/dist/components/Toast/index.d.ts +1 -0
  198. package/dist/components/Toast/index.js +127 -0
  199. package/dist/components/Toast/index.js.map +10 -0
  200. package/dist/components/Toggle/Toggle.d.ts +3 -0
  201. package/dist/components/Toggle/Toggle.stories.d.ts +8 -0
  202. package/dist/components/Toggle/index.d.ts +1 -0
  203. package/dist/components/Toggle/index.js +20 -0
  204. package/dist/components/Toggle/index.js.map +10 -0
  205. package/dist/components/ToggleGroup/ToggleGroup.d.ts +3 -0
  206. package/dist/components/ToggleGroup/ToggleGroup.stories.d.ts +6 -0
  207. package/dist/components/ToggleGroup/index.d.ts +1 -0
  208. package/dist/components/ToggleGroup/index.js +20 -0
  209. package/dist/components/ToggleGroup/index.js.map +10 -0
  210. package/dist/components/Toolbar/Toolbar.d.ts +7 -0
  211. package/dist/components/Toolbar/Toolbar.stories.d.ts +7 -0
  212. package/dist/components/Toolbar/index.d.ts +1 -0
  213. package/dist/components/Toolbar/index.js +50 -0
  214. package/dist/components/Toolbar/index.js.map +10 -0
  215. package/dist/components/Tooltip/Tooltip.d.ts +9 -0
  216. package/dist/components/Tooltip/Tooltip.stories.d.ts +9 -0
  217. package/dist/components/Tooltip/index.d.ts +1 -0
  218. package/dist/components/Tooltip/index.js +48 -0
  219. package/dist/components/Tooltip/index.js.map +10 -0
  220. package/dist/fonts.css +3 -0
  221. package/dist/index.d.ts +55 -0
  222. package/dist/index.js +620 -0
  223. package/dist/index.js.map +9 -0
  224. package/dist/stories/Camps.stories.d.ts +11 -0
  225. package/dist/stories/Plains.stories.d.ts +11 -0
  226. package/dist/stories/Theming.stories.d.ts +8 -0
  227. package/dist/stories/Typography.stories.d.ts +5 -0
  228. package/dist/styles.css +2 -0
  229. package/dist/utils/cn.d.ts +2 -0
  230. package/dist/utils/cn.js +1806 -0
  231. package/dist/utils/cn.js.map +12 -0
  232. package/dist/utils/cn.test.d.ts +1 -0
  233. package/package.json +266 -0
@@ -0,0 +1,1806 @@
1
+ // node_modules/clsx/dist/clsx.mjs
2
+ function r(e) {
3
+ var t, f, n = "";
4
+ if (typeof e == "string" || typeof e == "number")
5
+ n += e;
6
+ else if (typeof e == "object")
7
+ if (Array.isArray(e)) {
8
+ var o = e.length;
9
+ for (t = 0;t < o; t++)
10
+ e[t] && (f = r(e[t])) && (n && (n += " "), n += f);
11
+ } else
12
+ for (f in e)
13
+ e[f] && (n && (n += " "), n += f);
14
+ return n;
15
+ }
16
+ function clsx() {
17
+ for (var e, t, f = 0, n = "", o = arguments.length;f < o; f++)
18
+ (e = arguments[f]) && (t = r(e)) && (n && (n += " "), n += t);
19
+ return n;
20
+ }
21
+
22
+ // node_modules/tailwind-merge/dist/bundle-mjs.mjs
23
+ var concatArrays = (array1, array2) => {
24
+ const combinedArray = new Array(array1.length + array2.length);
25
+ for (let i = 0;i < array1.length; i++) {
26
+ combinedArray[i] = array1[i];
27
+ }
28
+ for (let i = 0;i < array2.length; i++) {
29
+ combinedArray[array1.length + i] = array2[i];
30
+ }
31
+ return combinedArray;
32
+ };
33
+ var createClassValidatorObject = (classGroupId, validator) => ({
34
+ classGroupId,
35
+ validator
36
+ });
37
+ var createClassPartObject = (nextPart = new Map, validators = null, classGroupId) => ({
38
+ nextPart,
39
+ validators,
40
+ classGroupId
41
+ });
42
+ var CLASS_PART_SEPARATOR = "-";
43
+ var EMPTY_CONFLICTS = [];
44
+ var ARBITRARY_PROPERTY_PREFIX = "arbitrary..";
45
+ var createClassGroupUtils = (config) => {
46
+ const classMap = createClassMap(config);
47
+ const {
48
+ conflictingClassGroups,
49
+ conflictingClassGroupModifiers
50
+ } = config;
51
+ const getClassGroupId = (className) => {
52
+ if (className.startsWith("[") && className.endsWith("]")) {
53
+ return getGroupIdForArbitraryProperty(className);
54
+ }
55
+ const classParts = className.split(CLASS_PART_SEPARATOR);
56
+ const startIndex = classParts[0] === "" && classParts.length > 1 ? 1 : 0;
57
+ return getGroupRecursive(classParts, startIndex, classMap);
58
+ };
59
+ const getConflictingClassGroupIds = (classGroupId, hasPostfixModifier) => {
60
+ if (hasPostfixModifier) {
61
+ const modifierConflicts = conflictingClassGroupModifiers[classGroupId];
62
+ const baseConflicts = conflictingClassGroups[classGroupId];
63
+ if (modifierConflicts) {
64
+ if (baseConflicts) {
65
+ return concatArrays(baseConflicts, modifierConflicts);
66
+ }
67
+ return modifierConflicts;
68
+ }
69
+ return baseConflicts || EMPTY_CONFLICTS;
70
+ }
71
+ return conflictingClassGroups[classGroupId] || EMPTY_CONFLICTS;
72
+ };
73
+ return {
74
+ getClassGroupId,
75
+ getConflictingClassGroupIds
76
+ };
77
+ };
78
+ var getGroupRecursive = (classParts, startIndex, classPartObject) => {
79
+ const classPathsLength = classParts.length - startIndex;
80
+ if (classPathsLength === 0) {
81
+ return classPartObject.classGroupId;
82
+ }
83
+ const currentClassPart = classParts[startIndex];
84
+ const nextClassPartObject = classPartObject.nextPart.get(currentClassPart);
85
+ if (nextClassPartObject) {
86
+ const result = getGroupRecursive(classParts, startIndex + 1, nextClassPartObject);
87
+ if (result)
88
+ return result;
89
+ }
90
+ const validators = classPartObject.validators;
91
+ if (validators === null) {
92
+ return;
93
+ }
94
+ const classRest = startIndex === 0 ? classParts.join(CLASS_PART_SEPARATOR) : classParts.slice(startIndex).join(CLASS_PART_SEPARATOR);
95
+ const validatorsLength = validators.length;
96
+ for (let i = 0;i < validatorsLength; i++) {
97
+ const validatorObj = validators[i];
98
+ if (validatorObj.validator(classRest)) {
99
+ return validatorObj.classGroupId;
100
+ }
101
+ }
102
+ return;
103
+ };
104
+ var getGroupIdForArbitraryProperty = (className) => className.slice(1, -1).indexOf(":") === -1 ? undefined : (() => {
105
+ const content = className.slice(1, -1);
106
+ const colonIndex = content.indexOf(":");
107
+ const property = content.slice(0, colonIndex);
108
+ return property ? ARBITRARY_PROPERTY_PREFIX + property : undefined;
109
+ })();
110
+ var createClassMap = (config) => {
111
+ const {
112
+ theme,
113
+ classGroups
114
+ } = config;
115
+ return processClassGroups(classGroups, theme);
116
+ };
117
+ var processClassGroups = (classGroups, theme) => {
118
+ const classMap = createClassPartObject();
119
+ for (const classGroupId in classGroups) {
120
+ const group = classGroups[classGroupId];
121
+ processClassesRecursively(group, classMap, classGroupId, theme);
122
+ }
123
+ return classMap;
124
+ };
125
+ var processClassesRecursively = (classGroup, classPartObject, classGroupId, theme) => {
126
+ const len = classGroup.length;
127
+ for (let i = 0;i < len; i++) {
128
+ const classDefinition = classGroup[i];
129
+ processClassDefinition(classDefinition, classPartObject, classGroupId, theme);
130
+ }
131
+ };
132
+ var processClassDefinition = (classDefinition, classPartObject, classGroupId, theme) => {
133
+ if (typeof classDefinition === "string") {
134
+ processStringDefinition(classDefinition, classPartObject, classGroupId);
135
+ return;
136
+ }
137
+ if (typeof classDefinition === "function") {
138
+ processFunctionDefinition(classDefinition, classPartObject, classGroupId, theme);
139
+ return;
140
+ }
141
+ processObjectDefinition(classDefinition, classPartObject, classGroupId, theme);
142
+ };
143
+ var processStringDefinition = (classDefinition, classPartObject, classGroupId) => {
144
+ const classPartObjectToEdit = classDefinition === "" ? classPartObject : getPart(classPartObject, classDefinition);
145
+ classPartObjectToEdit.classGroupId = classGroupId;
146
+ };
147
+ var processFunctionDefinition = (classDefinition, classPartObject, classGroupId, theme) => {
148
+ if (isThemeGetter(classDefinition)) {
149
+ processClassesRecursively(classDefinition(theme), classPartObject, classGroupId, theme);
150
+ return;
151
+ }
152
+ if (classPartObject.validators === null) {
153
+ classPartObject.validators = [];
154
+ }
155
+ classPartObject.validators.push(createClassValidatorObject(classGroupId, classDefinition));
156
+ };
157
+ var processObjectDefinition = (classDefinition, classPartObject, classGroupId, theme) => {
158
+ const entries = Object.entries(classDefinition);
159
+ const len = entries.length;
160
+ for (let i = 0;i < len; i++) {
161
+ const [key, value] = entries[i];
162
+ processClassesRecursively(value, getPart(classPartObject, key), classGroupId, theme);
163
+ }
164
+ };
165
+ var getPart = (classPartObject, path) => {
166
+ let current = classPartObject;
167
+ const parts = path.split(CLASS_PART_SEPARATOR);
168
+ const len = parts.length;
169
+ for (let i = 0;i < len; i++) {
170
+ const part = parts[i];
171
+ let next = current.nextPart.get(part);
172
+ if (!next) {
173
+ next = createClassPartObject();
174
+ current.nextPart.set(part, next);
175
+ }
176
+ current = next;
177
+ }
178
+ return current;
179
+ };
180
+ var isThemeGetter = (func) => ("isThemeGetter" in func) && func.isThemeGetter === true;
181
+ var createLruCache = (maxCacheSize) => {
182
+ if (maxCacheSize < 1) {
183
+ return {
184
+ get: () => {
185
+ return;
186
+ },
187
+ set: () => {}
188
+ };
189
+ }
190
+ let cacheSize = 0;
191
+ let cache = Object.create(null);
192
+ let previousCache = Object.create(null);
193
+ const update = (key, value) => {
194
+ cache[key] = value;
195
+ cacheSize++;
196
+ if (cacheSize > maxCacheSize) {
197
+ cacheSize = 0;
198
+ previousCache = cache;
199
+ cache = Object.create(null);
200
+ }
201
+ };
202
+ return {
203
+ get(key) {
204
+ let value = cache[key];
205
+ if (value !== undefined) {
206
+ return value;
207
+ }
208
+ if ((value = previousCache[key]) !== undefined) {
209
+ update(key, value);
210
+ return value;
211
+ }
212
+ },
213
+ set(key, value) {
214
+ if (key in cache) {
215
+ cache[key] = value;
216
+ } else {
217
+ update(key, value);
218
+ }
219
+ }
220
+ };
221
+ };
222
+ var IMPORTANT_MODIFIER = "!";
223
+ var MODIFIER_SEPARATOR = ":";
224
+ var EMPTY_MODIFIERS = [];
225
+ var createResultObject = (modifiers, hasImportantModifier, baseClassName, maybePostfixModifierPosition, isExternal) => ({
226
+ modifiers,
227
+ hasImportantModifier,
228
+ baseClassName,
229
+ maybePostfixModifierPosition,
230
+ isExternal
231
+ });
232
+ var createParseClassName = (config) => {
233
+ const {
234
+ prefix,
235
+ experimentalParseClassName
236
+ } = config;
237
+ let parseClassName = (className) => {
238
+ const modifiers = [];
239
+ let bracketDepth = 0;
240
+ let parenDepth = 0;
241
+ let modifierStart = 0;
242
+ let postfixModifierPosition;
243
+ const len = className.length;
244
+ for (let index = 0;index < len; index++) {
245
+ const currentCharacter = className[index];
246
+ if (bracketDepth === 0 && parenDepth === 0) {
247
+ if (currentCharacter === MODIFIER_SEPARATOR) {
248
+ modifiers.push(className.slice(modifierStart, index));
249
+ modifierStart = index + 1;
250
+ continue;
251
+ }
252
+ if (currentCharacter === "/") {
253
+ postfixModifierPosition = index;
254
+ continue;
255
+ }
256
+ }
257
+ if (currentCharacter === "[")
258
+ bracketDepth++;
259
+ else if (currentCharacter === "]")
260
+ bracketDepth--;
261
+ else if (currentCharacter === "(")
262
+ parenDepth++;
263
+ else if (currentCharacter === ")")
264
+ parenDepth--;
265
+ }
266
+ const baseClassNameWithImportantModifier = modifiers.length === 0 ? className : className.slice(modifierStart);
267
+ let baseClassName = baseClassNameWithImportantModifier;
268
+ let hasImportantModifier = false;
269
+ if (baseClassNameWithImportantModifier.endsWith(IMPORTANT_MODIFIER)) {
270
+ baseClassName = baseClassNameWithImportantModifier.slice(0, -1);
271
+ hasImportantModifier = true;
272
+ } else if (baseClassNameWithImportantModifier.startsWith(IMPORTANT_MODIFIER)) {
273
+ baseClassName = baseClassNameWithImportantModifier.slice(1);
274
+ hasImportantModifier = true;
275
+ }
276
+ const maybePostfixModifierPosition = postfixModifierPosition && postfixModifierPosition > modifierStart ? postfixModifierPosition - modifierStart : undefined;
277
+ return createResultObject(modifiers, hasImportantModifier, baseClassName, maybePostfixModifierPosition);
278
+ };
279
+ if (prefix) {
280
+ const fullPrefix = prefix + MODIFIER_SEPARATOR;
281
+ const parseClassNameOriginal = parseClassName;
282
+ parseClassName = (className) => className.startsWith(fullPrefix) ? parseClassNameOriginal(className.slice(fullPrefix.length)) : createResultObject(EMPTY_MODIFIERS, false, className, undefined, true);
283
+ }
284
+ if (experimentalParseClassName) {
285
+ const parseClassNameOriginal = parseClassName;
286
+ parseClassName = (className) => experimentalParseClassName({
287
+ className,
288
+ parseClassName: parseClassNameOriginal
289
+ });
290
+ }
291
+ return parseClassName;
292
+ };
293
+ var createSortModifiers = (config) => {
294
+ const modifierWeights = new Map;
295
+ config.orderSensitiveModifiers.forEach((mod, index) => {
296
+ modifierWeights.set(mod, 1e6 + index);
297
+ });
298
+ return (modifiers) => {
299
+ const result = [];
300
+ let currentSegment = [];
301
+ for (let i = 0;i < modifiers.length; i++) {
302
+ const modifier = modifiers[i];
303
+ const isArbitrary = modifier[0] === "[";
304
+ const isOrderSensitive = modifierWeights.has(modifier);
305
+ if (isArbitrary || isOrderSensitive) {
306
+ if (currentSegment.length > 0) {
307
+ currentSegment.sort();
308
+ result.push(...currentSegment);
309
+ currentSegment = [];
310
+ }
311
+ result.push(modifier);
312
+ } else {
313
+ currentSegment.push(modifier);
314
+ }
315
+ }
316
+ if (currentSegment.length > 0) {
317
+ currentSegment.sort();
318
+ result.push(...currentSegment);
319
+ }
320
+ return result;
321
+ };
322
+ };
323
+ var createConfigUtils = (config) => ({
324
+ cache: createLruCache(config.cacheSize),
325
+ parseClassName: createParseClassName(config),
326
+ sortModifiers: createSortModifiers(config),
327
+ ...createClassGroupUtils(config)
328
+ });
329
+ var SPLIT_CLASSES_REGEX = /\s+/;
330
+ var mergeClassList = (classList, configUtils) => {
331
+ const {
332
+ parseClassName,
333
+ getClassGroupId,
334
+ getConflictingClassGroupIds,
335
+ sortModifiers
336
+ } = configUtils;
337
+ const classGroupsInConflict = [];
338
+ const classNames = classList.trim().split(SPLIT_CLASSES_REGEX);
339
+ let result = "";
340
+ for (let index = classNames.length - 1;index >= 0; index -= 1) {
341
+ const originalClassName = classNames[index];
342
+ const {
343
+ isExternal,
344
+ modifiers,
345
+ hasImportantModifier,
346
+ baseClassName,
347
+ maybePostfixModifierPosition
348
+ } = parseClassName(originalClassName);
349
+ if (isExternal) {
350
+ result = originalClassName + (result.length > 0 ? " " + result : result);
351
+ continue;
352
+ }
353
+ let hasPostfixModifier = !!maybePostfixModifierPosition;
354
+ let classGroupId = getClassGroupId(hasPostfixModifier ? baseClassName.substring(0, maybePostfixModifierPosition) : baseClassName);
355
+ if (!classGroupId) {
356
+ if (!hasPostfixModifier) {
357
+ result = originalClassName + (result.length > 0 ? " " + result : result);
358
+ continue;
359
+ }
360
+ classGroupId = getClassGroupId(baseClassName);
361
+ if (!classGroupId) {
362
+ result = originalClassName + (result.length > 0 ? " " + result : result);
363
+ continue;
364
+ }
365
+ hasPostfixModifier = false;
366
+ }
367
+ const variantModifier = modifiers.length === 0 ? "" : modifiers.length === 1 ? modifiers[0] : sortModifiers(modifiers).join(":");
368
+ const modifierId = hasImportantModifier ? variantModifier + IMPORTANT_MODIFIER : variantModifier;
369
+ const classId = modifierId + classGroupId;
370
+ if (classGroupsInConflict.indexOf(classId) > -1) {
371
+ continue;
372
+ }
373
+ classGroupsInConflict.push(classId);
374
+ const conflictGroups = getConflictingClassGroupIds(classGroupId, hasPostfixModifier);
375
+ for (let i = 0;i < conflictGroups.length; ++i) {
376
+ const group = conflictGroups[i];
377
+ classGroupsInConflict.push(modifierId + group);
378
+ }
379
+ result = originalClassName + (result.length > 0 ? " " + result : result);
380
+ }
381
+ return result;
382
+ };
383
+ var twJoin = (...classLists) => {
384
+ let index = 0;
385
+ let argument;
386
+ let resolvedValue;
387
+ let string = "";
388
+ while (index < classLists.length) {
389
+ if (argument = classLists[index++]) {
390
+ if (resolvedValue = toValue(argument)) {
391
+ string && (string += " ");
392
+ string += resolvedValue;
393
+ }
394
+ }
395
+ }
396
+ return string;
397
+ };
398
+ var toValue = (mix) => {
399
+ if (typeof mix === "string") {
400
+ return mix;
401
+ }
402
+ let resolvedValue;
403
+ let string = "";
404
+ for (let k = 0;k < mix.length; k++) {
405
+ if (mix[k]) {
406
+ if (resolvedValue = toValue(mix[k])) {
407
+ string && (string += " ");
408
+ string += resolvedValue;
409
+ }
410
+ }
411
+ }
412
+ return string;
413
+ };
414
+ var createTailwindMerge = (createConfigFirst, ...createConfigRest) => {
415
+ let configUtils;
416
+ let cacheGet;
417
+ let cacheSet;
418
+ let functionToCall;
419
+ const initTailwindMerge = (classList) => {
420
+ const config = createConfigRest.reduce((previousConfig, createConfigCurrent) => createConfigCurrent(previousConfig), createConfigFirst());
421
+ configUtils = createConfigUtils(config);
422
+ cacheGet = configUtils.cache.get;
423
+ cacheSet = configUtils.cache.set;
424
+ functionToCall = tailwindMerge;
425
+ return tailwindMerge(classList);
426
+ };
427
+ const tailwindMerge = (classList) => {
428
+ const cachedResult = cacheGet(classList);
429
+ if (cachedResult) {
430
+ return cachedResult;
431
+ }
432
+ const result = mergeClassList(classList, configUtils);
433
+ cacheSet(classList, result);
434
+ return result;
435
+ };
436
+ functionToCall = initTailwindMerge;
437
+ return (...args) => functionToCall(twJoin(...args));
438
+ };
439
+ var fallbackThemeArr = [];
440
+ var fromTheme = (key) => {
441
+ const themeGetter = (theme) => theme[key] || fallbackThemeArr;
442
+ themeGetter.isThemeGetter = true;
443
+ return themeGetter;
444
+ };
445
+ var arbitraryValueRegex = /^\[(?:(\w[\w-]*):)?(.+)\]$/i;
446
+ var arbitraryVariableRegex = /^\((?:(\w[\w-]*):)?(.+)\)$/i;
447
+ var fractionRegex = /^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/;
448
+ var tshirtUnitRegex = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/;
449
+ var lengthUnitRegex = /\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/;
450
+ var colorFunctionRegex = /^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/;
451
+ var shadowRegex = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/;
452
+ var imageRegex = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/;
453
+ var isFraction = (value) => fractionRegex.test(value);
454
+ var isNumber = (value) => !!value && !Number.isNaN(Number(value));
455
+ var isInteger = (value) => !!value && Number.isInteger(Number(value));
456
+ var isPercent = (value) => value.endsWith("%") && isNumber(value.slice(0, -1));
457
+ var isTshirtSize = (value) => tshirtUnitRegex.test(value);
458
+ var isAny = () => true;
459
+ var isLengthOnly = (value) => lengthUnitRegex.test(value) && !colorFunctionRegex.test(value);
460
+ var isNever = () => false;
461
+ var isShadow = (value) => shadowRegex.test(value);
462
+ var isImage = (value) => imageRegex.test(value);
463
+ var isAnyNonArbitrary = (value) => !isArbitraryValue(value) && !isArbitraryVariable(value);
464
+ var isArbitrarySize = (value) => getIsArbitraryValue(value, isLabelSize, isNever);
465
+ var isArbitraryValue = (value) => arbitraryValueRegex.test(value);
466
+ var isArbitraryLength = (value) => getIsArbitraryValue(value, isLabelLength, isLengthOnly);
467
+ var isArbitraryNumber = (value) => getIsArbitraryValue(value, isLabelNumber, isNumber);
468
+ var isArbitraryWeight = (value) => getIsArbitraryValue(value, isLabelWeight, isAny);
469
+ var isArbitraryFamilyName = (value) => getIsArbitraryValue(value, isLabelFamilyName, isNever);
470
+ var isArbitraryPosition = (value) => getIsArbitraryValue(value, isLabelPosition, isNever);
471
+ var isArbitraryImage = (value) => getIsArbitraryValue(value, isLabelImage, isImage);
472
+ var isArbitraryShadow = (value) => getIsArbitraryValue(value, isLabelShadow, isShadow);
473
+ var isArbitraryVariable = (value) => arbitraryVariableRegex.test(value);
474
+ var isArbitraryVariableLength = (value) => getIsArbitraryVariable(value, isLabelLength);
475
+ var isArbitraryVariableFamilyName = (value) => getIsArbitraryVariable(value, isLabelFamilyName);
476
+ var isArbitraryVariablePosition = (value) => getIsArbitraryVariable(value, isLabelPosition);
477
+ var isArbitraryVariableSize = (value) => getIsArbitraryVariable(value, isLabelSize);
478
+ var isArbitraryVariableImage = (value) => getIsArbitraryVariable(value, isLabelImage);
479
+ var isArbitraryVariableShadow = (value) => getIsArbitraryVariable(value, isLabelShadow, true);
480
+ var isArbitraryVariableWeight = (value) => getIsArbitraryVariable(value, isLabelWeight, true);
481
+ var getIsArbitraryValue = (value, testLabel, testValue) => {
482
+ const result = arbitraryValueRegex.exec(value);
483
+ if (result) {
484
+ if (result[1]) {
485
+ return testLabel(result[1]);
486
+ }
487
+ return testValue(result[2]);
488
+ }
489
+ return false;
490
+ };
491
+ var getIsArbitraryVariable = (value, testLabel, shouldMatchNoLabel = false) => {
492
+ const result = arbitraryVariableRegex.exec(value);
493
+ if (result) {
494
+ if (result[1]) {
495
+ return testLabel(result[1]);
496
+ }
497
+ return shouldMatchNoLabel;
498
+ }
499
+ return false;
500
+ };
501
+ var isLabelPosition = (label) => label === "position" || label === "percentage";
502
+ var isLabelImage = (label) => label === "image" || label === "url";
503
+ var isLabelSize = (label) => label === "length" || label === "size" || label === "bg-size";
504
+ var isLabelLength = (label) => label === "length";
505
+ var isLabelNumber = (label) => label === "number";
506
+ var isLabelFamilyName = (label) => label === "family-name";
507
+ var isLabelWeight = (label) => label === "number" || label === "weight";
508
+ var isLabelShadow = (label) => label === "shadow";
509
+ var getDefaultConfig = () => {
510
+ const themeColor = fromTheme("color");
511
+ const themeFont = fromTheme("font");
512
+ const themeText = fromTheme("text");
513
+ const themeFontWeight = fromTheme("font-weight");
514
+ const themeTracking = fromTheme("tracking");
515
+ const themeLeading = fromTheme("leading");
516
+ const themeBreakpoint = fromTheme("breakpoint");
517
+ const themeContainer = fromTheme("container");
518
+ const themeSpacing = fromTheme("spacing");
519
+ const themeRadius = fromTheme("radius");
520
+ const themeShadow = fromTheme("shadow");
521
+ const themeInsetShadow = fromTheme("inset-shadow");
522
+ const themeTextShadow = fromTheme("text-shadow");
523
+ const themeDropShadow = fromTheme("drop-shadow");
524
+ const themeBlur = fromTheme("blur");
525
+ const themePerspective = fromTheme("perspective");
526
+ const themeAspect = fromTheme("aspect");
527
+ const themeEase = fromTheme("ease");
528
+ const themeAnimate = fromTheme("animate");
529
+ const scaleBreak = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"];
530
+ const scalePosition = () => [
531
+ "center",
532
+ "top",
533
+ "bottom",
534
+ "left",
535
+ "right",
536
+ "top-left",
537
+ "left-top",
538
+ "top-right",
539
+ "right-top",
540
+ "bottom-right",
541
+ "right-bottom",
542
+ "bottom-left",
543
+ "left-bottom"
544
+ ];
545
+ const scalePositionWithArbitrary = () => [...scalePosition(), isArbitraryVariable, isArbitraryValue];
546
+ const scaleOverflow = () => ["auto", "hidden", "clip", "visible", "scroll"];
547
+ const scaleOverscroll = () => ["auto", "contain", "none"];
548
+ const scaleUnambiguousSpacing = () => [isArbitraryVariable, isArbitraryValue, themeSpacing];
549
+ const scaleInset = () => [isFraction, "full", "auto", ...scaleUnambiguousSpacing()];
550
+ const scaleGridTemplateColsRows = () => [isInteger, "none", "subgrid", isArbitraryVariable, isArbitraryValue];
551
+ const scaleGridColRowStartAndEnd = () => ["auto", {
552
+ span: ["full", isInteger, isArbitraryVariable, isArbitraryValue]
553
+ }, isInteger, isArbitraryVariable, isArbitraryValue];
554
+ const scaleGridColRowStartOrEnd = () => [isInteger, "auto", isArbitraryVariable, isArbitraryValue];
555
+ const scaleGridAutoColsRows = () => ["auto", "min", "max", "fr", isArbitraryVariable, isArbitraryValue];
556
+ const scaleAlignPrimaryAxis = () => ["start", "end", "center", "between", "around", "evenly", "stretch", "baseline", "center-safe", "end-safe"];
557
+ const scaleAlignSecondaryAxis = () => ["start", "end", "center", "stretch", "center-safe", "end-safe"];
558
+ const scaleMargin = () => ["auto", ...scaleUnambiguousSpacing()];
559
+ const scaleSizing = () => [isFraction, "auto", "full", "dvw", "dvh", "lvw", "lvh", "svw", "svh", "min", "max", "fit", ...scaleUnambiguousSpacing()];
560
+ const scaleSizingInline = () => [isFraction, "screen", "full", "dvw", "lvw", "svw", "min", "max", "fit", ...scaleUnambiguousSpacing()];
561
+ const scaleSizingBlock = () => [isFraction, "screen", "full", "lh", "dvh", "lvh", "svh", "min", "max", "fit", ...scaleUnambiguousSpacing()];
562
+ const scaleColor = () => [themeColor, isArbitraryVariable, isArbitraryValue];
563
+ const scaleBgPosition = () => [...scalePosition(), isArbitraryVariablePosition, isArbitraryPosition, {
564
+ position: [isArbitraryVariable, isArbitraryValue]
565
+ }];
566
+ const scaleBgRepeat = () => ["no-repeat", {
567
+ repeat: ["", "x", "y", "space", "round"]
568
+ }];
569
+ const scaleBgSize = () => ["auto", "cover", "contain", isArbitraryVariableSize, isArbitrarySize, {
570
+ size: [isArbitraryVariable, isArbitraryValue]
571
+ }];
572
+ const scaleGradientStopPosition = () => [isPercent, isArbitraryVariableLength, isArbitraryLength];
573
+ const scaleRadius = () => [
574
+ "",
575
+ "none",
576
+ "full",
577
+ themeRadius,
578
+ isArbitraryVariable,
579
+ isArbitraryValue
580
+ ];
581
+ const scaleBorderWidth = () => ["", isNumber, isArbitraryVariableLength, isArbitraryLength];
582
+ const scaleLineStyle = () => ["solid", "dashed", "dotted", "double"];
583
+ const scaleBlendMode = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"];
584
+ const scaleMaskImagePosition = () => [isNumber, isPercent, isArbitraryVariablePosition, isArbitraryPosition];
585
+ const scaleBlur = () => [
586
+ "",
587
+ "none",
588
+ themeBlur,
589
+ isArbitraryVariable,
590
+ isArbitraryValue
591
+ ];
592
+ const scaleRotate = () => ["none", isNumber, isArbitraryVariable, isArbitraryValue];
593
+ const scaleScale = () => ["none", isNumber, isArbitraryVariable, isArbitraryValue];
594
+ const scaleSkew = () => [isNumber, isArbitraryVariable, isArbitraryValue];
595
+ const scaleTranslate = () => [isFraction, "full", ...scaleUnambiguousSpacing()];
596
+ return {
597
+ cacheSize: 500,
598
+ theme: {
599
+ animate: ["spin", "ping", "pulse", "bounce"],
600
+ aspect: ["video"],
601
+ blur: [isTshirtSize],
602
+ breakpoint: [isTshirtSize],
603
+ color: [isAny],
604
+ container: [isTshirtSize],
605
+ "drop-shadow": [isTshirtSize],
606
+ ease: ["in", "out", "in-out"],
607
+ font: [isAnyNonArbitrary],
608
+ "font-weight": ["thin", "extralight", "light", "normal", "medium", "semibold", "bold", "extrabold", "black"],
609
+ "inset-shadow": [isTshirtSize],
610
+ leading: ["none", "tight", "snug", "normal", "relaxed", "loose"],
611
+ perspective: ["dramatic", "near", "normal", "midrange", "distant", "none"],
612
+ radius: [isTshirtSize],
613
+ shadow: [isTshirtSize],
614
+ spacing: ["px", isNumber],
615
+ text: [isTshirtSize],
616
+ "text-shadow": [isTshirtSize],
617
+ tracking: ["tighter", "tight", "normal", "wide", "wider", "widest"]
618
+ },
619
+ classGroups: {
620
+ aspect: [{
621
+ aspect: ["auto", "square", isFraction, isArbitraryValue, isArbitraryVariable, themeAspect]
622
+ }],
623
+ container: ["container"],
624
+ columns: [{
625
+ columns: [isNumber, isArbitraryValue, isArbitraryVariable, themeContainer]
626
+ }],
627
+ "break-after": [{
628
+ "break-after": scaleBreak()
629
+ }],
630
+ "break-before": [{
631
+ "break-before": scaleBreak()
632
+ }],
633
+ "break-inside": [{
634
+ "break-inside": ["auto", "avoid", "avoid-page", "avoid-column"]
635
+ }],
636
+ "box-decoration": [{
637
+ "box-decoration": ["slice", "clone"]
638
+ }],
639
+ box: [{
640
+ box: ["border", "content"]
641
+ }],
642
+ 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"],
643
+ sr: ["sr-only", "not-sr-only"],
644
+ float: [{
645
+ float: ["right", "left", "none", "start", "end"]
646
+ }],
647
+ clear: [{
648
+ clear: ["left", "right", "both", "none", "start", "end"]
649
+ }],
650
+ isolation: ["isolate", "isolation-auto"],
651
+ "object-fit": [{
652
+ object: ["contain", "cover", "fill", "none", "scale-down"]
653
+ }],
654
+ "object-position": [{
655
+ object: scalePositionWithArbitrary()
656
+ }],
657
+ overflow: [{
658
+ overflow: scaleOverflow()
659
+ }],
660
+ "overflow-x": [{
661
+ "overflow-x": scaleOverflow()
662
+ }],
663
+ "overflow-y": [{
664
+ "overflow-y": scaleOverflow()
665
+ }],
666
+ overscroll: [{
667
+ overscroll: scaleOverscroll()
668
+ }],
669
+ "overscroll-x": [{
670
+ "overscroll-x": scaleOverscroll()
671
+ }],
672
+ "overscroll-y": [{
673
+ "overscroll-y": scaleOverscroll()
674
+ }],
675
+ position: ["static", "fixed", "absolute", "relative", "sticky"],
676
+ inset: [{
677
+ inset: scaleInset()
678
+ }],
679
+ "inset-x": [{
680
+ "inset-x": scaleInset()
681
+ }],
682
+ "inset-y": [{
683
+ "inset-y": scaleInset()
684
+ }],
685
+ start: [{
686
+ "inset-s": scaleInset(),
687
+ start: scaleInset()
688
+ }],
689
+ end: [{
690
+ "inset-e": scaleInset(),
691
+ end: scaleInset()
692
+ }],
693
+ "inset-bs": [{
694
+ "inset-bs": scaleInset()
695
+ }],
696
+ "inset-be": [{
697
+ "inset-be": scaleInset()
698
+ }],
699
+ top: [{
700
+ top: scaleInset()
701
+ }],
702
+ right: [{
703
+ right: scaleInset()
704
+ }],
705
+ bottom: [{
706
+ bottom: scaleInset()
707
+ }],
708
+ left: [{
709
+ left: scaleInset()
710
+ }],
711
+ visibility: ["visible", "invisible", "collapse"],
712
+ z: [{
713
+ z: [isInteger, "auto", isArbitraryVariable, isArbitraryValue]
714
+ }],
715
+ basis: [{
716
+ basis: [isFraction, "full", "auto", themeContainer, ...scaleUnambiguousSpacing()]
717
+ }],
718
+ "flex-direction": [{
719
+ flex: ["row", "row-reverse", "col", "col-reverse"]
720
+ }],
721
+ "flex-wrap": [{
722
+ flex: ["nowrap", "wrap", "wrap-reverse"]
723
+ }],
724
+ flex: [{
725
+ flex: [isNumber, isFraction, "auto", "initial", "none", isArbitraryValue]
726
+ }],
727
+ grow: [{
728
+ grow: ["", isNumber, isArbitraryVariable, isArbitraryValue]
729
+ }],
730
+ shrink: [{
731
+ shrink: ["", isNumber, isArbitraryVariable, isArbitraryValue]
732
+ }],
733
+ order: [{
734
+ order: [isInteger, "first", "last", "none", isArbitraryVariable, isArbitraryValue]
735
+ }],
736
+ "grid-cols": [{
737
+ "grid-cols": scaleGridTemplateColsRows()
738
+ }],
739
+ "col-start-end": [{
740
+ col: scaleGridColRowStartAndEnd()
741
+ }],
742
+ "col-start": [{
743
+ "col-start": scaleGridColRowStartOrEnd()
744
+ }],
745
+ "col-end": [{
746
+ "col-end": scaleGridColRowStartOrEnd()
747
+ }],
748
+ "grid-rows": [{
749
+ "grid-rows": scaleGridTemplateColsRows()
750
+ }],
751
+ "row-start-end": [{
752
+ row: scaleGridColRowStartAndEnd()
753
+ }],
754
+ "row-start": [{
755
+ "row-start": scaleGridColRowStartOrEnd()
756
+ }],
757
+ "row-end": [{
758
+ "row-end": scaleGridColRowStartOrEnd()
759
+ }],
760
+ "grid-flow": [{
761
+ "grid-flow": ["row", "col", "dense", "row-dense", "col-dense"]
762
+ }],
763
+ "auto-cols": [{
764
+ "auto-cols": scaleGridAutoColsRows()
765
+ }],
766
+ "auto-rows": [{
767
+ "auto-rows": scaleGridAutoColsRows()
768
+ }],
769
+ gap: [{
770
+ gap: scaleUnambiguousSpacing()
771
+ }],
772
+ "gap-x": [{
773
+ "gap-x": scaleUnambiguousSpacing()
774
+ }],
775
+ "gap-y": [{
776
+ "gap-y": scaleUnambiguousSpacing()
777
+ }],
778
+ "justify-content": [{
779
+ justify: [...scaleAlignPrimaryAxis(), "normal"]
780
+ }],
781
+ "justify-items": [{
782
+ "justify-items": [...scaleAlignSecondaryAxis(), "normal"]
783
+ }],
784
+ "justify-self": [{
785
+ "justify-self": ["auto", ...scaleAlignSecondaryAxis()]
786
+ }],
787
+ "align-content": [{
788
+ content: ["normal", ...scaleAlignPrimaryAxis()]
789
+ }],
790
+ "align-items": [{
791
+ items: [...scaleAlignSecondaryAxis(), {
792
+ baseline: ["", "last"]
793
+ }]
794
+ }],
795
+ "align-self": [{
796
+ self: ["auto", ...scaleAlignSecondaryAxis(), {
797
+ baseline: ["", "last"]
798
+ }]
799
+ }],
800
+ "place-content": [{
801
+ "place-content": scaleAlignPrimaryAxis()
802
+ }],
803
+ "place-items": [{
804
+ "place-items": [...scaleAlignSecondaryAxis(), "baseline"]
805
+ }],
806
+ "place-self": [{
807
+ "place-self": ["auto", ...scaleAlignSecondaryAxis()]
808
+ }],
809
+ p: [{
810
+ p: scaleUnambiguousSpacing()
811
+ }],
812
+ px: [{
813
+ px: scaleUnambiguousSpacing()
814
+ }],
815
+ py: [{
816
+ py: scaleUnambiguousSpacing()
817
+ }],
818
+ ps: [{
819
+ ps: scaleUnambiguousSpacing()
820
+ }],
821
+ pe: [{
822
+ pe: scaleUnambiguousSpacing()
823
+ }],
824
+ pbs: [{
825
+ pbs: scaleUnambiguousSpacing()
826
+ }],
827
+ pbe: [{
828
+ pbe: scaleUnambiguousSpacing()
829
+ }],
830
+ pt: [{
831
+ pt: scaleUnambiguousSpacing()
832
+ }],
833
+ pr: [{
834
+ pr: scaleUnambiguousSpacing()
835
+ }],
836
+ pb: [{
837
+ pb: scaleUnambiguousSpacing()
838
+ }],
839
+ pl: [{
840
+ pl: scaleUnambiguousSpacing()
841
+ }],
842
+ m: [{
843
+ m: scaleMargin()
844
+ }],
845
+ mx: [{
846
+ mx: scaleMargin()
847
+ }],
848
+ my: [{
849
+ my: scaleMargin()
850
+ }],
851
+ ms: [{
852
+ ms: scaleMargin()
853
+ }],
854
+ me: [{
855
+ me: scaleMargin()
856
+ }],
857
+ mbs: [{
858
+ mbs: scaleMargin()
859
+ }],
860
+ mbe: [{
861
+ mbe: scaleMargin()
862
+ }],
863
+ mt: [{
864
+ mt: scaleMargin()
865
+ }],
866
+ mr: [{
867
+ mr: scaleMargin()
868
+ }],
869
+ mb: [{
870
+ mb: scaleMargin()
871
+ }],
872
+ ml: [{
873
+ ml: scaleMargin()
874
+ }],
875
+ "space-x": [{
876
+ "space-x": scaleUnambiguousSpacing()
877
+ }],
878
+ "space-x-reverse": ["space-x-reverse"],
879
+ "space-y": [{
880
+ "space-y": scaleUnambiguousSpacing()
881
+ }],
882
+ "space-y-reverse": ["space-y-reverse"],
883
+ size: [{
884
+ size: scaleSizing()
885
+ }],
886
+ "inline-size": [{
887
+ inline: ["auto", ...scaleSizingInline()]
888
+ }],
889
+ "min-inline-size": [{
890
+ "min-inline": ["auto", ...scaleSizingInline()]
891
+ }],
892
+ "max-inline-size": [{
893
+ "max-inline": ["none", ...scaleSizingInline()]
894
+ }],
895
+ "block-size": [{
896
+ block: ["auto", ...scaleSizingBlock()]
897
+ }],
898
+ "min-block-size": [{
899
+ "min-block": ["auto", ...scaleSizingBlock()]
900
+ }],
901
+ "max-block-size": [{
902
+ "max-block": ["none", ...scaleSizingBlock()]
903
+ }],
904
+ w: [{
905
+ w: [themeContainer, "screen", ...scaleSizing()]
906
+ }],
907
+ "min-w": [{
908
+ "min-w": [
909
+ themeContainer,
910
+ "screen",
911
+ "none",
912
+ ...scaleSizing()
913
+ ]
914
+ }],
915
+ "max-w": [{
916
+ "max-w": [
917
+ themeContainer,
918
+ "screen",
919
+ "none",
920
+ "prose",
921
+ {
922
+ screen: [themeBreakpoint]
923
+ },
924
+ ...scaleSizing()
925
+ ]
926
+ }],
927
+ h: [{
928
+ h: ["screen", "lh", ...scaleSizing()]
929
+ }],
930
+ "min-h": [{
931
+ "min-h": ["screen", "lh", "none", ...scaleSizing()]
932
+ }],
933
+ "max-h": [{
934
+ "max-h": ["screen", "lh", ...scaleSizing()]
935
+ }],
936
+ "font-size": [{
937
+ text: ["base", themeText, isArbitraryVariableLength, isArbitraryLength]
938
+ }],
939
+ "font-smoothing": ["antialiased", "subpixel-antialiased"],
940
+ "font-style": ["italic", "not-italic"],
941
+ "font-weight": [{
942
+ font: [themeFontWeight, isArbitraryVariableWeight, isArbitraryWeight]
943
+ }],
944
+ "font-stretch": [{
945
+ "font-stretch": ["ultra-condensed", "extra-condensed", "condensed", "semi-condensed", "normal", "semi-expanded", "expanded", "extra-expanded", "ultra-expanded", isPercent, isArbitraryValue]
946
+ }],
947
+ "font-family": [{
948
+ font: [isArbitraryVariableFamilyName, isArbitraryFamilyName, themeFont]
949
+ }],
950
+ "font-features": [{
951
+ "font-features": [isArbitraryValue]
952
+ }],
953
+ "fvn-normal": ["normal-nums"],
954
+ "fvn-ordinal": ["ordinal"],
955
+ "fvn-slashed-zero": ["slashed-zero"],
956
+ "fvn-figure": ["lining-nums", "oldstyle-nums"],
957
+ "fvn-spacing": ["proportional-nums", "tabular-nums"],
958
+ "fvn-fraction": ["diagonal-fractions", "stacked-fractions"],
959
+ tracking: [{
960
+ tracking: [themeTracking, isArbitraryVariable, isArbitraryValue]
961
+ }],
962
+ "line-clamp": [{
963
+ "line-clamp": [isNumber, "none", isArbitraryVariable, isArbitraryNumber]
964
+ }],
965
+ leading: [{
966
+ leading: [
967
+ themeLeading,
968
+ ...scaleUnambiguousSpacing()
969
+ ]
970
+ }],
971
+ "list-image": [{
972
+ "list-image": ["none", isArbitraryVariable, isArbitraryValue]
973
+ }],
974
+ "list-style-position": [{
975
+ list: ["inside", "outside"]
976
+ }],
977
+ "list-style-type": [{
978
+ list: ["disc", "decimal", "none", isArbitraryVariable, isArbitraryValue]
979
+ }],
980
+ "text-alignment": [{
981
+ text: ["left", "center", "right", "justify", "start", "end"]
982
+ }],
983
+ "placeholder-color": [{
984
+ placeholder: scaleColor()
985
+ }],
986
+ "text-color": [{
987
+ text: scaleColor()
988
+ }],
989
+ "text-decoration": ["underline", "overline", "line-through", "no-underline"],
990
+ "text-decoration-style": [{
991
+ decoration: [...scaleLineStyle(), "wavy"]
992
+ }],
993
+ "text-decoration-thickness": [{
994
+ decoration: [isNumber, "from-font", "auto", isArbitraryVariable, isArbitraryLength]
995
+ }],
996
+ "text-decoration-color": [{
997
+ decoration: scaleColor()
998
+ }],
999
+ "underline-offset": [{
1000
+ "underline-offset": [isNumber, "auto", isArbitraryVariable, isArbitraryValue]
1001
+ }],
1002
+ "text-transform": ["uppercase", "lowercase", "capitalize", "normal-case"],
1003
+ "text-overflow": ["truncate", "text-ellipsis", "text-clip"],
1004
+ "text-wrap": [{
1005
+ text: ["wrap", "nowrap", "balance", "pretty"]
1006
+ }],
1007
+ indent: [{
1008
+ indent: scaleUnambiguousSpacing()
1009
+ }],
1010
+ "vertical-align": [{
1011
+ align: ["baseline", "top", "middle", "bottom", "text-top", "text-bottom", "sub", "super", isArbitraryVariable, isArbitraryValue]
1012
+ }],
1013
+ whitespace: [{
1014
+ whitespace: ["normal", "nowrap", "pre", "pre-line", "pre-wrap", "break-spaces"]
1015
+ }],
1016
+ break: [{
1017
+ break: ["normal", "words", "all", "keep"]
1018
+ }],
1019
+ wrap: [{
1020
+ wrap: ["break-word", "anywhere", "normal"]
1021
+ }],
1022
+ hyphens: [{
1023
+ hyphens: ["none", "manual", "auto"]
1024
+ }],
1025
+ content: [{
1026
+ content: ["none", isArbitraryVariable, isArbitraryValue]
1027
+ }],
1028
+ "bg-attachment": [{
1029
+ bg: ["fixed", "local", "scroll"]
1030
+ }],
1031
+ "bg-clip": [{
1032
+ "bg-clip": ["border", "padding", "content", "text"]
1033
+ }],
1034
+ "bg-origin": [{
1035
+ "bg-origin": ["border", "padding", "content"]
1036
+ }],
1037
+ "bg-position": [{
1038
+ bg: scaleBgPosition()
1039
+ }],
1040
+ "bg-repeat": [{
1041
+ bg: scaleBgRepeat()
1042
+ }],
1043
+ "bg-size": [{
1044
+ bg: scaleBgSize()
1045
+ }],
1046
+ "bg-image": [{
1047
+ bg: ["none", {
1048
+ linear: [{
1049
+ to: ["t", "tr", "r", "br", "b", "bl", "l", "tl"]
1050
+ }, isInteger, isArbitraryVariable, isArbitraryValue],
1051
+ radial: ["", isArbitraryVariable, isArbitraryValue],
1052
+ conic: [isInteger, isArbitraryVariable, isArbitraryValue]
1053
+ }, isArbitraryVariableImage, isArbitraryImage]
1054
+ }],
1055
+ "bg-color": [{
1056
+ bg: scaleColor()
1057
+ }],
1058
+ "gradient-from-pos": [{
1059
+ from: scaleGradientStopPosition()
1060
+ }],
1061
+ "gradient-via-pos": [{
1062
+ via: scaleGradientStopPosition()
1063
+ }],
1064
+ "gradient-to-pos": [{
1065
+ to: scaleGradientStopPosition()
1066
+ }],
1067
+ "gradient-from": [{
1068
+ from: scaleColor()
1069
+ }],
1070
+ "gradient-via": [{
1071
+ via: scaleColor()
1072
+ }],
1073
+ "gradient-to": [{
1074
+ to: scaleColor()
1075
+ }],
1076
+ rounded: [{
1077
+ rounded: scaleRadius()
1078
+ }],
1079
+ "rounded-s": [{
1080
+ "rounded-s": scaleRadius()
1081
+ }],
1082
+ "rounded-e": [{
1083
+ "rounded-e": scaleRadius()
1084
+ }],
1085
+ "rounded-t": [{
1086
+ "rounded-t": scaleRadius()
1087
+ }],
1088
+ "rounded-r": [{
1089
+ "rounded-r": scaleRadius()
1090
+ }],
1091
+ "rounded-b": [{
1092
+ "rounded-b": scaleRadius()
1093
+ }],
1094
+ "rounded-l": [{
1095
+ "rounded-l": scaleRadius()
1096
+ }],
1097
+ "rounded-ss": [{
1098
+ "rounded-ss": scaleRadius()
1099
+ }],
1100
+ "rounded-se": [{
1101
+ "rounded-se": scaleRadius()
1102
+ }],
1103
+ "rounded-ee": [{
1104
+ "rounded-ee": scaleRadius()
1105
+ }],
1106
+ "rounded-es": [{
1107
+ "rounded-es": scaleRadius()
1108
+ }],
1109
+ "rounded-tl": [{
1110
+ "rounded-tl": scaleRadius()
1111
+ }],
1112
+ "rounded-tr": [{
1113
+ "rounded-tr": scaleRadius()
1114
+ }],
1115
+ "rounded-br": [{
1116
+ "rounded-br": scaleRadius()
1117
+ }],
1118
+ "rounded-bl": [{
1119
+ "rounded-bl": scaleRadius()
1120
+ }],
1121
+ "border-w": [{
1122
+ border: scaleBorderWidth()
1123
+ }],
1124
+ "border-w-x": [{
1125
+ "border-x": scaleBorderWidth()
1126
+ }],
1127
+ "border-w-y": [{
1128
+ "border-y": scaleBorderWidth()
1129
+ }],
1130
+ "border-w-s": [{
1131
+ "border-s": scaleBorderWidth()
1132
+ }],
1133
+ "border-w-e": [{
1134
+ "border-e": scaleBorderWidth()
1135
+ }],
1136
+ "border-w-bs": [{
1137
+ "border-bs": scaleBorderWidth()
1138
+ }],
1139
+ "border-w-be": [{
1140
+ "border-be": scaleBorderWidth()
1141
+ }],
1142
+ "border-w-t": [{
1143
+ "border-t": scaleBorderWidth()
1144
+ }],
1145
+ "border-w-r": [{
1146
+ "border-r": scaleBorderWidth()
1147
+ }],
1148
+ "border-w-b": [{
1149
+ "border-b": scaleBorderWidth()
1150
+ }],
1151
+ "border-w-l": [{
1152
+ "border-l": scaleBorderWidth()
1153
+ }],
1154
+ "divide-x": [{
1155
+ "divide-x": scaleBorderWidth()
1156
+ }],
1157
+ "divide-x-reverse": ["divide-x-reverse"],
1158
+ "divide-y": [{
1159
+ "divide-y": scaleBorderWidth()
1160
+ }],
1161
+ "divide-y-reverse": ["divide-y-reverse"],
1162
+ "border-style": [{
1163
+ border: [...scaleLineStyle(), "hidden", "none"]
1164
+ }],
1165
+ "divide-style": [{
1166
+ divide: [...scaleLineStyle(), "hidden", "none"]
1167
+ }],
1168
+ "border-color": [{
1169
+ border: scaleColor()
1170
+ }],
1171
+ "border-color-x": [{
1172
+ "border-x": scaleColor()
1173
+ }],
1174
+ "border-color-y": [{
1175
+ "border-y": scaleColor()
1176
+ }],
1177
+ "border-color-s": [{
1178
+ "border-s": scaleColor()
1179
+ }],
1180
+ "border-color-e": [{
1181
+ "border-e": scaleColor()
1182
+ }],
1183
+ "border-color-bs": [{
1184
+ "border-bs": scaleColor()
1185
+ }],
1186
+ "border-color-be": [{
1187
+ "border-be": scaleColor()
1188
+ }],
1189
+ "border-color-t": [{
1190
+ "border-t": scaleColor()
1191
+ }],
1192
+ "border-color-r": [{
1193
+ "border-r": scaleColor()
1194
+ }],
1195
+ "border-color-b": [{
1196
+ "border-b": scaleColor()
1197
+ }],
1198
+ "border-color-l": [{
1199
+ "border-l": scaleColor()
1200
+ }],
1201
+ "divide-color": [{
1202
+ divide: scaleColor()
1203
+ }],
1204
+ "outline-style": [{
1205
+ outline: [...scaleLineStyle(), "none", "hidden"]
1206
+ }],
1207
+ "outline-offset": [{
1208
+ "outline-offset": [isNumber, isArbitraryVariable, isArbitraryValue]
1209
+ }],
1210
+ "outline-w": [{
1211
+ outline: ["", isNumber, isArbitraryVariableLength, isArbitraryLength]
1212
+ }],
1213
+ "outline-color": [{
1214
+ outline: scaleColor()
1215
+ }],
1216
+ shadow: [{
1217
+ shadow: [
1218
+ "",
1219
+ "none",
1220
+ themeShadow,
1221
+ isArbitraryVariableShadow,
1222
+ isArbitraryShadow
1223
+ ]
1224
+ }],
1225
+ "shadow-color": [{
1226
+ shadow: scaleColor()
1227
+ }],
1228
+ "inset-shadow": [{
1229
+ "inset-shadow": ["none", themeInsetShadow, isArbitraryVariableShadow, isArbitraryShadow]
1230
+ }],
1231
+ "inset-shadow-color": [{
1232
+ "inset-shadow": scaleColor()
1233
+ }],
1234
+ "ring-w": [{
1235
+ ring: scaleBorderWidth()
1236
+ }],
1237
+ "ring-w-inset": ["ring-inset"],
1238
+ "ring-color": [{
1239
+ ring: scaleColor()
1240
+ }],
1241
+ "ring-offset-w": [{
1242
+ "ring-offset": [isNumber, isArbitraryLength]
1243
+ }],
1244
+ "ring-offset-color": [{
1245
+ "ring-offset": scaleColor()
1246
+ }],
1247
+ "inset-ring-w": [{
1248
+ "inset-ring": scaleBorderWidth()
1249
+ }],
1250
+ "inset-ring-color": [{
1251
+ "inset-ring": scaleColor()
1252
+ }],
1253
+ "text-shadow": [{
1254
+ "text-shadow": ["none", themeTextShadow, isArbitraryVariableShadow, isArbitraryShadow]
1255
+ }],
1256
+ "text-shadow-color": [{
1257
+ "text-shadow": scaleColor()
1258
+ }],
1259
+ opacity: [{
1260
+ opacity: [isNumber, isArbitraryVariable, isArbitraryValue]
1261
+ }],
1262
+ "mix-blend": [{
1263
+ "mix-blend": [...scaleBlendMode(), "plus-darker", "plus-lighter"]
1264
+ }],
1265
+ "bg-blend": [{
1266
+ "bg-blend": scaleBlendMode()
1267
+ }],
1268
+ "mask-clip": [{
1269
+ "mask-clip": ["border", "padding", "content", "fill", "stroke", "view"]
1270
+ }, "mask-no-clip"],
1271
+ "mask-composite": [{
1272
+ mask: ["add", "subtract", "intersect", "exclude"]
1273
+ }],
1274
+ "mask-image-linear-pos": [{
1275
+ "mask-linear": [isNumber]
1276
+ }],
1277
+ "mask-image-linear-from-pos": [{
1278
+ "mask-linear-from": scaleMaskImagePosition()
1279
+ }],
1280
+ "mask-image-linear-to-pos": [{
1281
+ "mask-linear-to": scaleMaskImagePosition()
1282
+ }],
1283
+ "mask-image-linear-from-color": [{
1284
+ "mask-linear-from": scaleColor()
1285
+ }],
1286
+ "mask-image-linear-to-color": [{
1287
+ "mask-linear-to": scaleColor()
1288
+ }],
1289
+ "mask-image-t-from-pos": [{
1290
+ "mask-t-from": scaleMaskImagePosition()
1291
+ }],
1292
+ "mask-image-t-to-pos": [{
1293
+ "mask-t-to": scaleMaskImagePosition()
1294
+ }],
1295
+ "mask-image-t-from-color": [{
1296
+ "mask-t-from": scaleColor()
1297
+ }],
1298
+ "mask-image-t-to-color": [{
1299
+ "mask-t-to": scaleColor()
1300
+ }],
1301
+ "mask-image-r-from-pos": [{
1302
+ "mask-r-from": scaleMaskImagePosition()
1303
+ }],
1304
+ "mask-image-r-to-pos": [{
1305
+ "mask-r-to": scaleMaskImagePosition()
1306
+ }],
1307
+ "mask-image-r-from-color": [{
1308
+ "mask-r-from": scaleColor()
1309
+ }],
1310
+ "mask-image-r-to-color": [{
1311
+ "mask-r-to": scaleColor()
1312
+ }],
1313
+ "mask-image-b-from-pos": [{
1314
+ "mask-b-from": scaleMaskImagePosition()
1315
+ }],
1316
+ "mask-image-b-to-pos": [{
1317
+ "mask-b-to": scaleMaskImagePosition()
1318
+ }],
1319
+ "mask-image-b-from-color": [{
1320
+ "mask-b-from": scaleColor()
1321
+ }],
1322
+ "mask-image-b-to-color": [{
1323
+ "mask-b-to": scaleColor()
1324
+ }],
1325
+ "mask-image-l-from-pos": [{
1326
+ "mask-l-from": scaleMaskImagePosition()
1327
+ }],
1328
+ "mask-image-l-to-pos": [{
1329
+ "mask-l-to": scaleMaskImagePosition()
1330
+ }],
1331
+ "mask-image-l-from-color": [{
1332
+ "mask-l-from": scaleColor()
1333
+ }],
1334
+ "mask-image-l-to-color": [{
1335
+ "mask-l-to": scaleColor()
1336
+ }],
1337
+ "mask-image-x-from-pos": [{
1338
+ "mask-x-from": scaleMaskImagePosition()
1339
+ }],
1340
+ "mask-image-x-to-pos": [{
1341
+ "mask-x-to": scaleMaskImagePosition()
1342
+ }],
1343
+ "mask-image-x-from-color": [{
1344
+ "mask-x-from": scaleColor()
1345
+ }],
1346
+ "mask-image-x-to-color": [{
1347
+ "mask-x-to": scaleColor()
1348
+ }],
1349
+ "mask-image-y-from-pos": [{
1350
+ "mask-y-from": scaleMaskImagePosition()
1351
+ }],
1352
+ "mask-image-y-to-pos": [{
1353
+ "mask-y-to": scaleMaskImagePosition()
1354
+ }],
1355
+ "mask-image-y-from-color": [{
1356
+ "mask-y-from": scaleColor()
1357
+ }],
1358
+ "mask-image-y-to-color": [{
1359
+ "mask-y-to": scaleColor()
1360
+ }],
1361
+ "mask-image-radial": [{
1362
+ "mask-radial": [isArbitraryVariable, isArbitraryValue]
1363
+ }],
1364
+ "mask-image-radial-from-pos": [{
1365
+ "mask-radial-from": scaleMaskImagePosition()
1366
+ }],
1367
+ "mask-image-radial-to-pos": [{
1368
+ "mask-radial-to": scaleMaskImagePosition()
1369
+ }],
1370
+ "mask-image-radial-from-color": [{
1371
+ "mask-radial-from": scaleColor()
1372
+ }],
1373
+ "mask-image-radial-to-color": [{
1374
+ "mask-radial-to": scaleColor()
1375
+ }],
1376
+ "mask-image-radial-shape": [{
1377
+ "mask-radial": ["circle", "ellipse"]
1378
+ }],
1379
+ "mask-image-radial-size": [{
1380
+ "mask-radial": [{
1381
+ closest: ["side", "corner"],
1382
+ farthest: ["side", "corner"]
1383
+ }]
1384
+ }],
1385
+ "mask-image-radial-pos": [{
1386
+ "mask-radial-at": scalePosition()
1387
+ }],
1388
+ "mask-image-conic-pos": [{
1389
+ "mask-conic": [isNumber]
1390
+ }],
1391
+ "mask-image-conic-from-pos": [{
1392
+ "mask-conic-from": scaleMaskImagePosition()
1393
+ }],
1394
+ "mask-image-conic-to-pos": [{
1395
+ "mask-conic-to": scaleMaskImagePosition()
1396
+ }],
1397
+ "mask-image-conic-from-color": [{
1398
+ "mask-conic-from": scaleColor()
1399
+ }],
1400
+ "mask-image-conic-to-color": [{
1401
+ "mask-conic-to": scaleColor()
1402
+ }],
1403
+ "mask-mode": [{
1404
+ mask: ["alpha", "luminance", "match"]
1405
+ }],
1406
+ "mask-origin": [{
1407
+ "mask-origin": ["border", "padding", "content", "fill", "stroke", "view"]
1408
+ }],
1409
+ "mask-position": [{
1410
+ mask: scaleBgPosition()
1411
+ }],
1412
+ "mask-repeat": [{
1413
+ mask: scaleBgRepeat()
1414
+ }],
1415
+ "mask-size": [{
1416
+ mask: scaleBgSize()
1417
+ }],
1418
+ "mask-type": [{
1419
+ "mask-type": ["alpha", "luminance"]
1420
+ }],
1421
+ "mask-image": [{
1422
+ mask: ["none", isArbitraryVariable, isArbitraryValue]
1423
+ }],
1424
+ filter: [{
1425
+ filter: [
1426
+ "",
1427
+ "none",
1428
+ isArbitraryVariable,
1429
+ isArbitraryValue
1430
+ ]
1431
+ }],
1432
+ blur: [{
1433
+ blur: scaleBlur()
1434
+ }],
1435
+ brightness: [{
1436
+ brightness: [isNumber, isArbitraryVariable, isArbitraryValue]
1437
+ }],
1438
+ contrast: [{
1439
+ contrast: [isNumber, isArbitraryVariable, isArbitraryValue]
1440
+ }],
1441
+ "drop-shadow": [{
1442
+ "drop-shadow": [
1443
+ "",
1444
+ "none",
1445
+ themeDropShadow,
1446
+ isArbitraryVariableShadow,
1447
+ isArbitraryShadow
1448
+ ]
1449
+ }],
1450
+ "drop-shadow-color": [{
1451
+ "drop-shadow": scaleColor()
1452
+ }],
1453
+ grayscale: [{
1454
+ grayscale: ["", isNumber, isArbitraryVariable, isArbitraryValue]
1455
+ }],
1456
+ "hue-rotate": [{
1457
+ "hue-rotate": [isNumber, isArbitraryVariable, isArbitraryValue]
1458
+ }],
1459
+ invert: [{
1460
+ invert: ["", isNumber, isArbitraryVariable, isArbitraryValue]
1461
+ }],
1462
+ saturate: [{
1463
+ saturate: [isNumber, isArbitraryVariable, isArbitraryValue]
1464
+ }],
1465
+ sepia: [{
1466
+ sepia: ["", isNumber, isArbitraryVariable, isArbitraryValue]
1467
+ }],
1468
+ "backdrop-filter": [{
1469
+ "backdrop-filter": [
1470
+ "",
1471
+ "none",
1472
+ isArbitraryVariable,
1473
+ isArbitraryValue
1474
+ ]
1475
+ }],
1476
+ "backdrop-blur": [{
1477
+ "backdrop-blur": scaleBlur()
1478
+ }],
1479
+ "backdrop-brightness": [{
1480
+ "backdrop-brightness": [isNumber, isArbitraryVariable, isArbitraryValue]
1481
+ }],
1482
+ "backdrop-contrast": [{
1483
+ "backdrop-contrast": [isNumber, isArbitraryVariable, isArbitraryValue]
1484
+ }],
1485
+ "backdrop-grayscale": [{
1486
+ "backdrop-grayscale": ["", isNumber, isArbitraryVariable, isArbitraryValue]
1487
+ }],
1488
+ "backdrop-hue-rotate": [{
1489
+ "backdrop-hue-rotate": [isNumber, isArbitraryVariable, isArbitraryValue]
1490
+ }],
1491
+ "backdrop-invert": [{
1492
+ "backdrop-invert": ["", isNumber, isArbitraryVariable, isArbitraryValue]
1493
+ }],
1494
+ "backdrop-opacity": [{
1495
+ "backdrop-opacity": [isNumber, isArbitraryVariable, isArbitraryValue]
1496
+ }],
1497
+ "backdrop-saturate": [{
1498
+ "backdrop-saturate": [isNumber, isArbitraryVariable, isArbitraryValue]
1499
+ }],
1500
+ "backdrop-sepia": [{
1501
+ "backdrop-sepia": ["", isNumber, isArbitraryVariable, isArbitraryValue]
1502
+ }],
1503
+ "border-collapse": [{
1504
+ border: ["collapse", "separate"]
1505
+ }],
1506
+ "border-spacing": [{
1507
+ "border-spacing": scaleUnambiguousSpacing()
1508
+ }],
1509
+ "border-spacing-x": [{
1510
+ "border-spacing-x": scaleUnambiguousSpacing()
1511
+ }],
1512
+ "border-spacing-y": [{
1513
+ "border-spacing-y": scaleUnambiguousSpacing()
1514
+ }],
1515
+ "table-layout": [{
1516
+ table: ["auto", "fixed"]
1517
+ }],
1518
+ caption: [{
1519
+ caption: ["top", "bottom"]
1520
+ }],
1521
+ transition: [{
1522
+ transition: ["", "all", "colors", "opacity", "shadow", "transform", "none", isArbitraryVariable, isArbitraryValue]
1523
+ }],
1524
+ "transition-behavior": [{
1525
+ transition: ["normal", "discrete"]
1526
+ }],
1527
+ duration: [{
1528
+ duration: [isNumber, "initial", isArbitraryVariable, isArbitraryValue]
1529
+ }],
1530
+ ease: [{
1531
+ ease: ["linear", "initial", themeEase, isArbitraryVariable, isArbitraryValue]
1532
+ }],
1533
+ delay: [{
1534
+ delay: [isNumber, isArbitraryVariable, isArbitraryValue]
1535
+ }],
1536
+ animate: [{
1537
+ animate: ["none", themeAnimate, isArbitraryVariable, isArbitraryValue]
1538
+ }],
1539
+ backface: [{
1540
+ backface: ["hidden", "visible"]
1541
+ }],
1542
+ perspective: [{
1543
+ perspective: [themePerspective, isArbitraryVariable, isArbitraryValue]
1544
+ }],
1545
+ "perspective-origin": [{
1546
+ "perspective-origin": scalePositionWithArbitrary()
1547
+ }],
1548
+ rotate: [{
1549
+ rotate: scaleRotate()
1550
+ }],
1551
+ "rotate-x": [{
1552
+ "rotate-x": scaleRotate()
1553
+ }],
1554
+ "rotate-y": [{
1555
+ "rotate-y": scaleRotate()
1556
+ }],
1557
+ "rotate-z": [{
1558
+ "rotate-z": scaleRotate()
1559
+ }],
1560
+ scale: [{
1561
+ scale: scaleScale()
1562
+ }],
1563
+ "scale-x": [{
1564
+ "scale-x": scaleScale()
1565
+ }],
1566
+ "scale-y": [{
1567
+ "scale-y": scaleScale()
1568
+ }],
1569
+ "scale-z": [{
1570
+ "scale-z": scaleScale()
1571
+ }],
1572
+ "scale-3d": ["scale-3d"],
1573
+ skew: [{
1574
+ skew: scaleSkew()
1575
+ }],
1576
+ "skew-x": [{
1577
+ "skew-x": scaleSkew()
1578
+ }],
1579
+ "skew-y": [{
1580
+ "skew-y": scaleSkew()
1581
+ }],
1582
+ transform: [{
1583
+ transform: [isArbitraryVariable, isArbitraryValue, "", "none", "gpu", "cpu"]
1584
+ }],
1585
+ "transform-origin": [{
1586
+ origin: scalePositionWithArbitrary()
1587
+ }],
1588
+ "transform-style": [{
1589
+ transform: ["3d", "flat"]
1590
+ }],
1591
+ translate: [{
1592
+ translate: scaleTranslate()
1593
+ }],
1594
+ "translate-x": [{
1595
+ "translate-x": scaleTranslate()
1596
+ }],
1597
+ "translate-y": [{
1598
+ "translate-y": scaleTranslate()
1599
+ }],
1600
+ "translate-z": [{
1601
+ "translate-z": scaleTranslate()
1602
+ }],
1603
+ "translate-none": ["translate-none"],
1604
+ accent: [{
1605
+ accent: scaleColor()
1606
+ }],
1607
+ appearance: [{
1608
+ appearance: ["none", "auto"]
1609
+ }],
1610
+ "caret-color": [{
1611
+ caret: scaleColor()
1612
+ }],
1613
+ "color-scheme": [{
1614
+ scheme: ["normal", "dark", "light", "light-dark", "only-dark", "only-light"]
1615
+ }],
1616
+ cursor: [{
1617
+ 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]
1618
+ }],
1619
+ "field-sizing": [{
1620
+ "field-sizing": ["fixed", "content"]
1621
+ }],
1622
+ "pointer-events": [{
1623
+ "pointer-events": ["auto", "none"]
1624
+ }],
1625
+ resize: [{
1626
+ resize: ["none", "", "y", "x"]
1627
+ }],
1628
+ "scroll-behavior": [{
1629
+ scroll: ["auto", "smooth"]
1630
+ }],
1631
+ "scroll-m": [{
1632
+ "scroll-m": scaleUnambiguousSpacing()
1633
+ }],
1634
+ "scroll-mx": [{
1635
+ "scroll-mx": scaleUnambiguousSpacing()
1636
+ }],
1637
+ "scroll-my": [{
1638
+ "scroll-my": scaleUnambiguousSpacing()
1639
+ }],
1640
+ "scroll-ms": [{
1641
+ "scroll-ms": scaleUnambiguousSpacing()
1642
+ }],
1643
+ "scroll-me": [{
1644
+ "scroll-me": scaleUnambiguousSpacing()
1645
+ }],
1646
+ "scroll-mbs": [{
1647
+ "scroll-mbs": scaleUnambiguousSpacing()
1648
+ }],
1649
+ "scroll-mbe": [{
1650
+ "scroll-mbe": scaleUnambiguousSpacing()
1651
+ }],
1652
+ "scroll-mt": [{
1653
+ "scroll-mt": scaleUnambiguousSpacing()
1654
+ }],
1655
+ "scroll-mr": [{
1656
+ "scroll-mr": scaleUnambiguousSpacing()
1657
+ }],
1658
+ "scroll-mb": [{
1659
+ "scroll-mb": scaleUnambiguousSpacing()
1660
+ }],
1661
+ "scroll-ml": [{
1662
+ "scroll-ml": scaleUnambiguousSpacing()
1663
+ }],
1664
+ "scroll-p": [{
1665
+ "scroll-p": scaleUnambiguousSpacing()
1666
+ }],
1667
+ "scroll-px": [{
1668
+ "scroll-px": scaleUnambiguousSpacing()
1669
+ }],
1670
+ "scroll-py": [{
1671
+ "scroll-py": scaleUnambiguousSpacing()
1672
+ }],
1673
+ "scroll-ps": [{
1674
+ "scroll-ps": scaleUnambiguousSpacing()
1675
+ }],
1676
+ "scroll-pe": [{
1677
+ "scroll-pe": scaleUnambiguousSpacing()
1678
+ }],
1679
+ "scroll-pbs": [{
1680
+ "scroll-pbs": scaleUnambiguousSpacing()
1681
+ }],
1682
+ "scroll-pbe": [{
1683
+ "scroll-pbe": scaleUnambiguousSpacing()
1684
+ }],
1685
+ "scroll-pt": [{
1686
+ "scroll-pt": scaleUnambiguousSpacing()
1687
+ }],
1688
+ "scroll-pr": [{
1689
+ "scroll-pr": scaleUnambiguousSpacing()
1690
+ }],
1691
+ "scroll-pb": [{
1692
+ "scroll-pb": scaleUnambiguousSpacing()
1693
+ }],
1694
+ "scroll-pl": [{
1695
+ "scroll-pl": scaleUnambiguousSpacing()
1696
+ }],
1697
+ "snap-align": [{
1698
+ snap: ["start", "end", "center", "align-none"]
1699
+ }],
1700
+ "snap-stop": [{
1701
+ snap: ["normal", "always"]
1702
+ }],
1703
+ "snap-type": [{
1704
+ snap: ["none", "x", "y", "both"]
1705
+ }],
1706
+ "snap-strictness": [{
1707
+ snap: ["mandatory", "proximity"]
1708
+ }],
1709
+ touch: [{
1710
+ touch: ["auto", "none", "manipulation"]
1711
+ }],
1712
+ "touch-x": [{
1713
+ "touch-pan": ["x", "left", "right"]
1714
+ }],
1715
+ "touch-y": [{
1716
+ "touch-pan": ["y", "up", "down"]
1717
+ }],
1718
+ "touch-pz": ["touch-pinch-zoom"],
1719
+ select: [{
1720
+ select: ["none", "text", "all", "auto"]
1721
+ }],
1722
+ "will-change": [{
1723
+ "will-change": ["auto", "scroll", "contents", "transform", isArbitraryVariable, isArbitraryValue]
1724
+ }],
1725
+ fill: [{
1726
+ fill: ["none", ...scaleColor()]
1727
+ }],
1728
+ "stroke-w": [{
1729
+ stroke: [isNumber, isArbitraryVariableLength, isArbitraryLength, isArbitraryNumber]
1730
+ }],
1731
+ stroke: [{
1732
+ stroke: ["none", ...scaleColor()]
1733
+ }],
1734
+ "forced-color-adjust": [{
1735
+ "forced-color-adjust": ["auto", "none"]
1736
+ }]
1737
+ },
1738
+ conflictingClassGroups: {
1739
+ overflow: ["overflow-x", "overflow-y"],
1740
+ overscroll: ["overscroll-x", "overscroll-y"],
1741
+ inset: ["inset-x", "inset-y", "inset-bs", "inset-be", "start", "end", "top", "right", "bottom", "left"],
1742
+ "inset-x": ["right", "left"],
1743
+ "inset-y": ["top", "bottom"],
1744
+ flex: ["basis", "grow", "shrink"],
1745
+ gap: ["gap-x", "gap-y"],
1746
+ p: ["px", "py", "ps", "pe", "pbs", "pbe", "pt", "pr", "pb", "pl"],
1747
+ px: ["pr", "pl"],
1748
+ py: ["pt", "pb"],
1749
+ m: ["mx", "my", "ms", "me", "mbs", "mbe", "mt", "mr", "mb", "ml"],
1750
+ mx: ["mr", "ml"],
1751
+ my: ["mt", "mb"],
1752
+ size: ["w", "h"],
1753
+ "font-size": ["leading"],
1754
+ "fvn-normal": ["fvn-ordinal", "fvn-slashed-zero", "fvn-figure", "fvn-spacing", "fvn-fraction"],
1755
+ "fvn-ordinal": ["fvn-normal"],
1756
+ "fvn-slashed-zero": ["fvn-normal"],
1757
+ "fvn-figure": ["fvn-normal"],
1758
+ "fvn-spacing": ["fvn-normal"],
1759
+ "fvn-fraction": ["fvn-normal"],
1760
+ "line-clamp": ["display", "overflow"],
1761
+ 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"],
1762
+ "rounded-s": ["rounded-ss", "rounded-es"],
1763
+ "rounded-e": ["rounded-se", "rounded-ee"],
1764
+ "rounded-t": ["rounded-tl", "rounded-tr"],
1765
+ "rounded-r": ["rounded-tr", "rounded-br"],
1766
+ "rounded-b": ["rounded-br", "rounded-bl"],
1767
+ "rounded-l": ["rounded-tl", "rounded-bl"],
1768
+ "border-spacing": ["border-spacing-x", "border-spacing-y"],
1769
+ "border-w": ["border-w-x", "border-w-y", "border-w-s", "border-w-e", "border-w-bs", "border-w-be", "border-w-t", "border-w-r", "border-w-b", "border-w-l"],
1770
+ "border-w-x": ["border-w-r", "border-w-l"],
1771
+ "border-w-y": ["border-w-t", "border-w-b"],
1772
+ "border-color": ["border-color-x", "border-color-y", "border-color-s", "border-color-e", "border-color-bs", "border-color-be", "border-color-t", "border-color-r", "border-color-b", "border-color-l"],
1773
+ "border-color-x": ["border-color-r", "border-color-l"],
1774
+ "border-color-y": ["border-color-t", "border-color-b"],
1775
+ translate: ["translate-x", "translate-y", "translate-none"],
1776
+ "translate-none": ["translate", "translate-x", "translate-y", "translate-z"],
1777
+ "scroll-m": ["scroll-mx", "scroll-my", "scroll-ms", "scroll-me", "scroll-mbs", "scroll-mbe", "scroll-mt", "scroll-mr", "scroll-mb", "scroll-ml"],
1778
+ "scroll-mx": ["scroll-mr", "scroll-ml"],
1779
+ "scroll-my": ["scroll-mt", "scroll-mb"],
1780
+ "scroll-p": ["scroll-px", "scroll-py", "scroll-ps", "scroll-pe", "scroll-pbs", "scroll-pbe", "scroll-pt", "scroll-pr", "scroll-pb", "scroll-pl"],
1781
+ "scroll-px": ["scroll-pr", "scroll-pl"],
1782
+ "scroll-py": ["scroll-pt", "scroll-pb"],
1783
+ touch: ["touch-x", "touch-y", "touch-pz"],
1784
+ "touch-x": ["touch"],
1785
+ "touch-y": ["touch"],
1786
+ "touch-pz": ["touch"]
1787
+ },
1788
+ conflictingClassGroupModifiers: {
1789
+ "font-size": ["leading"]
1790
+ },
1791
+ orderSensitiveModifiers: ["*", "**", "after", "backdrop", "before", "details-content", "file", "first-letter", "first-line", "marker", "placeholder", "selection"]
1792
+ };
1793
+ };
1794
+ var twMerge = /* @__PURE__ */ createTailwindMerge(getDefaultConfig);
1795
+
1796
+ // src/utils/cn.ts
1797
+ function cn(...inputs) {
1798
+ return twMerge(clsx(inputs));
1799
+ }
1800
+ export {
1801
+ cn
1802
+ };
1803
+
1804
+ export { clsx, cn };
1805
+
1806
+ //# debugId=FB44A3A07408430A64756E2164756E21