bromcom-ui 2.12.2-test.0 → 2.12.3-rc.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 (197) hide show
  1. package/dist/bromcom-ui/bromcom-ui.esm.js +1 -1
  2. package/dist/bromcom-ui/p-08c75801.js +5 -0
  3. package/dist/bromcom-ui/{p-69260d36.entry.js → p-0e7c65a4.entry.js} +1 -1
  4. package/dist/bromcom-ui/{p-2f5c9906.entry.js → p-163e9e9f.entry.js} +1 -1
  5. package/dist/bromcom-ui/p-16eba042.entry.js +5 -0
  6. package/dist/bromcom-ui/{p-518bddef.js → p-1774cf8d.js} +1 -1
  7. package/dist/bromcom-ui/{p-8c312ed4.js → p-190f60ff.js} +1 -1
  8. package/dist/bromcom-ui/{p-7c5763cc.entry.js → p-23de0f81.entry.js} +1 -1
  9. package/dist/bromcom-ui/{p-74e6d2b6.js → p-28beec31.js} +1 -1
  10. package/dist/bromcom-ui/{p-41e60400.entry.js → p-2f241754.entry.js} +1 -1
  11. package/dist/bromcom-ui/{p-67343ad8.entry.js → p-3a20c2da.entry.js} +1 -1
  12. package/dist/bromcom-ui/{p-228c74e9.entry.js → p-3a5afdde.entry.js} +1 -1
  13. package/dist/bromcom-ui/{p-2e9ac83b.entry.js → p-3a98282f.entry.js} +1 -1
  14. package/dist/bromcom-ui/{p-7d18ce0e.entry.js → p-3ce81521.entry.js} +1 -1
  15. package/dist/bromcom-ui/{p-c0be6529.js → p-413e4bb5.js} +1 -1
  16. package/dist/bromcom-ui/{p-053dc717.entry.js → p-4786edf8.entry.js} +1 -1
  17. package/dist/bromcom-ui/{p-3238bf36.js → p-491fa9dc.js} +1 -1
  18. package/dist/bromcom-ui/p-4b94e74a.entry.js +5 -0
  19. package/dist/bromcom-ui/{p-594a57c3.entry.js → p-4e60da7b.entry.js} +1 -1
  20. package/dist/bromcom-ui/{p-d551a51d.entry.js → p-4eff4c1f.entry.js} +1 -1
  21. package/dist/bromcom-ui/{p-acad99a2.entry.js → p-513f0687.entry.js} +1 -1
  22. package/dist/bromcom-ui/{p-5dea2654.entry.js → p-5244fb1e.entry.js} +1 -1
  23. package/dist/bromcom-ui/{p-43c578cf.js → p-53c8aabd.js} +1 -1
  24. package/dist/bromcom-ui/{p-9850cbce.js → p-55aeb18f.js} +1 -1
  25. package/dist/bromcom-ui/{p-67352697.js → p-5b96cd07.js} +1 -1
  26. package/dist/bromcom-ui/{p-5c03c44b.entry.js → p-6b5d687e.entry.js} +1 -1
  27. package/dist/bromcom-ui/{p-2a609520.entry.js → p-74dbd9f5.entry.js} +1 -1
  28. package/dist/bromcom-ui/{p-ba9eff2a.entry.js → p-77b01aeb.entry.js} +1 -1
  29. package/dist/bromcom-ui/{p-d587c02a.entry.js → p-78a62251.entry.js} +1 -1
  30. package/dist/bromcom-ui/{p-d938b428.entry.js → p-7d2009fb.entry.js} +1 -1
  31. package/dist/bromcom-ui/{p-cb99a9b8.entry.js → p-84ac7b5c.entry.js} +1 -1
  32. package/dist/bromcom-ui/{p-170cf07d.js → p-8828bbde.js} +2 -2
  33. package/dist/bromcom-ui/{p-84f2a816.entry.js → p-8d658561.entry.js} +1 -1
  34. package/dist/bromcom-ui/{p-15f73583.entry.js → p-9195ef01.entry.js} +1 -1
  35. package/dist/bromcom-ui/{p-1c9314bd.entry.js → p-92ada041.entry.js} +1 -1
  36. package/dist/bromcom-ui/{p-8b7bb213.entry.js → p-9b77878c.entry.js} +1 -1
  37. package/dist/bromcom-ui/{p-1f8c2199.entry.js → p-a2aaaa6d.entry.js} +1 -1
  38. package/dist/bromcom-ui/{p-758bf843.entry.js → p-a5c650c3.entry.js} +1 -1
  39. package/dist/bromcom-ui/{p-c73b74f6.entry.js → p-acc118dd.entry.js} +1 -1
  40. package/dist/bromcom-ui/{p-f0e30624.entry.js → p-adb1df77.entry.js} +1 -1
  41. package/dist/bromcom-ui/{p-ce99c0ec.entry.js → p-b0842aa0.entry.js} +1 -1
  42. package/dist/bromcom-ui/{p-2aaeb247.entry.js → p-b17acffb.entry.js} +1 -1
  43. package/dist/bromcom-ui/{p-12133565.js → p-c168b4ec.js} +1 -1
  44. package/dist/bromcom-ui/{p-14b725a7.entry.js → p-c62bb5c8.entry.js} +1 -1
  45. package/dist/bromcom-ui/{p-df48ff39.entry.js → p-ca72ffc3.entry.js} +1 -1
  46. package/dist/bromcom-ui/{p-b721a12e.entry.js → p-ca806d4e.entry.js} +1 -1
  47. package/dist/bromcom-ui/{p-8e683b32.js → p-ce3a95cf.js} +1 -1
  48. package/dist/bromcom-ui/{p-155da55c.js → p-d1298c40.js} +1 -1
  49. package/dist/bromcom-ui/{p-e4f7a11e.entry.js → p-d49e9044.entry.js} +1 -1
  50. package/dist/bromcom-ui/p-d4f95f24.entry.js +5 -0
  51. package/dist/bromcom-ui/{p-056785ca.entry.js → p-d7bf2666.entry.js} +1 -1
  52. package/dist/bromcom-ui/{p-25b5138d.entry.js → p-ddc0734e.entry.js} +1 -1
  53. package/dist/bromcom-ui/{p-ece578ef.entry.js → p-dddd0430.entry.js} +1 -1
  54. package/dist/bromcom-ui/{p-bdc78a44.entry.js → p-e323f35d.entry.js} +1 -1
  55. package/dist/bromcom-ui/{p-626b805d.entry.js → p-e5a7cb21.entry.js} +1 -1
  56. package/dist/bromcom-ui/{p-ae57f046.entry.js → p-e8d69fae.entry.js} +1 -1
  57. package/dist/bromcom-ui/{p-6ebbc0c7.entry.js → p-e989d53d.entry.js} +1 -1
  58. package/dist/bromcom-ui/{p-1c801d0c.entry.js → p-ea9ddaed.entry.js} +1 -1
  59. package/dist/bromcom-ui/{p-ccf83587.entry.js → p-f0ffa605.entry.js} +3 -3
  60. package/dist/bromcom-ui/{p-33a40e22.entry.js → p-fc15e3a1.entry.js} +1 -1
  61. package/dist/cjs/bcm-accordion_63.cjs.entry.js +32 -45
  62. package/dist/cjs/bcm-alert.cjs.entry.js +4 -4
  63. package/dist/cjs/bcm-attendance-actions-comment.cjs.entry.js +6 -6
  64. package/dist/cjs/bcm-attendance-actions-dropdown.cjs.entry.js +6 -6
  65. package/dist/cjs/bcm-autocomplete.cjs.entry.js +1 -1
  66. package/dist/cjs/bcm-box.cjs.entry.js +1 -1
  67. package/dist/cjs/bcm-breadcrumb.cjs.entry.js +3 -3
  68. package/dist/cjs/bcm-caption.cjs.entry.js +6 -6
  69. package/dist/cjs/bcm-card.cjs.entry.js +4 -4
  70. package/dist/cjs/bcm-chip-group.cjs.entry.js +10 -10
  71. package/dist/cjs/bcm-colorpicker.cjs.entry.js +1 -1
  72. package/dist/cjs/bcm-content.cjs.entry.js +1 -1
  73. package/dist/cjs/bcm-date-picker.cjs.entry.js +4 -4
  74. package/dist/cjs/bcm-datetime-picker.cjs.entry.js +5 -5
  75. package/dist/cjs/bcm-default.cjs.entry.js +3 -3
  76. package/dist/cjs/bcm-error-layout.cjs.entry.js +1 -1
  77. package/dist/cjs/bcm-form-2.cjs.entry.js +4 -4
  78. package/dist/cjs/bcm-form-group.cjs.entry.js +1 -1
  79. package/dist/cjs/bcm-input-2.cjs.entry.js +7 -7
  80. package/dist/cjs/bcm-input-custom.cjs.entry.js +3 -3
  81. package/dist/cjs/bcm-input-dropdown.cjs.entry.js +7 -7
  82. package/dist/cjs/bcm-message.cjs.entry.js +1 -1
  83. package/dist/cjs/bcm-modal-2-footer.cjs.entry.js +5 -5
  84. package/dist/cjs/bcm-modal-2-header.cjs.entry.js +5 -5
  85. package/dist/cjs/bcm-modal-2.cjs.entry.js +5 -5
  86. package/dist/cjs/bcm-notification.cjs.entry.js +1 -1
  87. package/dist/cjs/bcm-number-input.cjs.entry.js +8 -8
  88. package/dist/cjs/bcm-overlay_2.cjs.entry.js +1 -1
  89. package/dist/cjs/bcm-popover.cjs.entry.js +5 -5
  90. package/dist/cjs/bcm-range.cjs.entry.js +3 -3
  91. package/dist/cjs/bcm-react-number.cjs.entry.js +1 -1
  92. package/dist/cjs/bcm-result.cjs.entry.js +1 -1
  93. package/dist/cjs/bcm-select-group.cjs.entry.js +1 -1
  94. package/dist/cjs/bcm-select-option.cjs.entry.js +1 -1
  95. package/dist/cjs/bcm-skeleton.cjs.entry.js +6 -6
  96. package/dist/cjs/bcm-tab-pane.cjs.entry.js +1 -1
  97. package/dist/cjs/bcm-table.cjs.entry.js +5 -5
  98. package/dist/cjs/bcm-tabs-content.cjs.entry.js +1 -1
  99. package/dist/cjs/bcm-tag.cjs.entry.js +4 -4
  100. package/dist/cjs/bcm-time-picker.cjs.entry.js +4 -4
  101. package/dist/cjs/bcm-timeline-item.cjs.entry.js +1 -1
  102. package/dist/cjs/bcm-timeline.cjs.entry.js +1 -1
  103. package/dist/cjs/bcm-toast.cjs.entry.js +3 -3
  104. package/dist/cjs/bcm-treeview-group.cjs.entry.js +1 -1
  105. package/dist/cjs/bromcom-ui.cjs.js +3 -3
  106. package/dist/cjs/{caption-template-85a18b6d.js → caption-template-9f135978.js} +1 -1
  107. package/dist/cjs/{generate-8b79fe19.js → generate-07ef0a10.js} +1 -1
  108. package/dist/cjs/{global-8d54b6ff.js → global-7bcdc5b1.js} +2 -2
  109. package/dist/cjs/{index-d3b89435.js → index-5279dea2.js} +347 -386
  110. package/dist/cjs/{index-d321de96.js → index-7db051e3.js} +1 -1
  111. package/dist/cjs/{index-c591ecec.js → index-bb6ac306.js} +3 -0
  112. package/dist/cjs/{input.style-890ee369.js → input.style-b5676e6a.js} +1 -1
  113. package/dist/cjs/{is-load-decorator-15036f37.js → is-load-decorator-60805e8b.js} +1 -1
  114. package/dist/cjs/{label-template-e83447b5.js → label-template-8ba82507.js} +1 -1
  115. package/dist/cjs/loader.cjs.js +3 -3
  116. package/dist/cjs/{number-helper-0dcca04f.js → number-helper-8b8695ec.js} +1 -1
  117. package/dist/cjs/old-bcm-popover-box.cjs.entry.js +4 -4
  118. package/dist/cjs/old-bcm-popover.cjs.entry.js +3 -3
  119. package/dist/cjs/{package-2af5ef6d.js → package-5542841a.js} +1 -1
  120. package/dist/cjs/{slot-template-29229e8f.js → slot-template-0e8feeb4.js} +1 -1
  121. package/dist/cjs/{validators-5c1442df.js → validators-b4487059.js} +1 -1
  122. package/dist/collection/components/molecules/menu/menu.js +0 -14
  123. package/dist/collection/components/molecules/stepper/stepper.css +47 -47
  124. package/dist/collection/components/organism/list/list.js +2 -2
  125. package/dist/collection/stories/ui-library/components/list/country.js +186 -0
  126. package/dist/components/bcm-stepper.js +1 -1
  127. package/dist/components/generate.js +1 -1
  128. package/dist/components/index5.js +347 -386
  129. package/dist/components/list.js +2 -2
  130. package/dist/components/menu.js +0 -14
  131. package/dist/esm/bcm-accordion_63.entry.js +32 -45
  132. package/dist/esm/bcm-alert.entry.js +4 -4
  133. package/dist/esm/bcm-attendance-actions-comment.entry.js +6 -6
  134. package/dist/esm/bcm-attendance-actions-dropdown.entry.js +6 -6
  135. package/dist/esm/bcm-autocomplete.entry.js +1 -1
  136. package/dist/esm/bcm-box.entry.js +1 -1
  137. package/dist/esm/bcm-breadcrumb.entry.js +3 -3
  138. package/dist/esm/bcm-caption.entry.js +6 -6
  139. package/dist/esm/bcm-card.entry.js +4 -4
  140. package/dist/esm/bcm-chip-group.entry.js +10 -10
  141. package/dist/esm/bcm-colorpicker.entry.js +1 -1
  142. package/dist/esm/bcm-content.entry.js +1 -1
  143. package/dist/esm/bcm-date-picker.entry.js +4 -4
  144. package/dist/esm/bcm-datetime-picker.entry.js +5 -5
  145. package/dist/esm/bcm-default.entry.js +3 -3
  146. package/dist/esm/bcm-error-layout.entry.js +1 -1
  147. package/dist/esm/bcm-form-2.entry.js +4 -4
  148. package/dist/esm/bcm-form-group.entry.js +1 -1
  149. package/dist/esm/bcm-input-2.entry.js +7 -7
  150. package/dist/esm/bcm-input-custom.entry.js +3 -3
  151. package/dist/esm/bcm-input-dropdown.entry.js +7 -7
  152. package/dist/esm/bcm-message.entry.js +1 -1
  153. package/dist/esm/bcm-modal-2-footer.entry.js +5 -5
  154. package/dist/esm/bcm-modal-2-header.entry.js +5 -5
  155. package/dist/esm/bcm-modal-2.entry.js +5 -5
  156. package/dist/esm/bcm-notification.entry.js +1 -1
  157. package/dist/esm/bcm-number-input.entry.js +8 -8
  158. package/dist/esm/bcm-overlay_2.entry.js +1 -1
  159. package/dist/esm/bcm-popover.entry.js +5 -5
  160. package/dist/esm/bcm-range.entry.js +3 -3
  161. package/dist/esm/bcm-react-number.entry.js +1 -1
  162. package/dist/esm/bcm-result.entry.js +1 -1
  163. package/dist/esm/bcm-select-group.entry.js +1 -1
  164. package/dist/esm/bcm-select-option.entry.js +1 -1
  165. package/dist/esm/bcm-skeleton.entry.js +6 -6
  166. package/dist/esm/bcm-tab-pane.entry.js +1 -1
  167. package/dist/esm/bcm-table.entry.js +5 -5
  168. package/dist/esm/bcm-tabs-content.entry.js +1 -1
  169. package/dist/esm/bcm-tag.entry.js +4 -4
  170. package/dist/esm/bcm-time-picker.entry.js +4 -4
  171. package/dist/esm/bcm-timeline-item.entry.js +1 -1
  172. package/dist/esm/bcm-timeline.entry.js +1 -1
  173. package/dist/esm/bcm-toast.entry.js +3 -3
  174. package/dist/esm/bcm-treeview-group.entry.js +1 -1
  175. package/dist/esm/bromcom-ui.js +4 -4
  176. package/dist/esm/{caption-template-3cd42c3b.js → caption-template-8fb16bc5.js} +1 -1
  177. package/dist/esm/{generate-e0d0677e.js → generate-456c9a95.js} +1 -1
  178. package/dist/esm/{global-b4aafa0d.js → global-d8c395e1.js} +2 -2
  179. package/dist/esm/{index-0615c2b8.js → index-2b2668ab.js} +3 -1
  180. package/dist/esm/{index-9f698d35.js → index-3bc8c6e3.js} +347 -386
  181. package/dist/esm/{index-7e71bbc8.js → index-6ef67209.js} +1 -1
  182. package/dist/esm/{input.style-fadcc0bd.js → input.style-e855c0f3.js} +1 -1
  183. package/dist/esm/{is-load-decorator-8277e3b8.js → is-load-decorator-0f334092.js} +1 -1
  184. package/dist/esm/{label-template-ef97aadb.js → label-template-cc2646d1.js} +1 -1
  185. package/dist/esm/loader.js +4 -4
  186. package/dist/esm/{number-helper-423b9a17.js → number-helper-de819805.js} +1 -1
  187. package/dist/esm/old-bcm-popover-box.entry.js +4 -4
  188. package/dist/esm/old-bcm-popover.entry.js +3 -3
  189. package/dist/esm/{package-bb25563a.js → package-dec1fb78.js} +1 -1
  190. package/dist/esm/{slot-template-0d958dcc.js → slot-template-42240428.js} +1 -1
  191. package/dist/esm/{validators-4aa12ffe.js → validators-e95cb184.js} +1 -1
  192. package/dist/types/stories/ui-library/components/list/country.d.ts +6 -0
  193. package/package.json +1 -1
  194. package/dist/bromcom-ui/p-c0b3bf0d.entry.js +0 -5
  195. package/dist/bromcom-ui/p-ccc61045.js +0 -5
  196. package/dist/bromcom-ui/p-cd9b19ec.entry.js +0 -5
  197. package/dist/bromcom-ui/p-d4cc8b4d.entry.js +0 -5
@@ -4,24 +4,57 @@
4
4
  */
5
5
  'use strict';
6
6
 
7
- const _commonjsHelpers = require('./_commonjsHelpers-ed84c3ca.js');
7
+ var a=t=>typeof t=="boolean"?`${t}`:t===0?"0":t,l=t=>!t||typeof t!="object"||Object.keys(t).length===0,u=(t,e)=>JSON.stringify(t)===JSON.stringify(e);function i(t,e){t.forEach(function(n){Array.isArray(n)?i(n,e):e.push(n);});}function y(t){let e=[];return i(t,e),e}var x=(...t)=>y(t).filter(Boolean),p=(t,e)=>{let n={},c=Object.keys(t),f=Object.keys(e);for(let o of c)if(f.includes(o)){let r=t[o],s=e[o];typeof r=="object"&&typeof s=="object"?n[o]=p(r,s):n[o]=s+" "+r;}else n[o]=t[o];for(let o of f)c.includes(o)||(n[o]=e[o]);return n},g=t=>!t||typeof t!="string"?t:t.replace(/\s+/g," ").trim();
8
8
 
9
- var l=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,u=e=>!e||typeof e!="object"||Object.keys(e).length===0,x=(e,o)=>JSON.stringify(e)===JSON.stringify(o);function i(e,o){e.forEach(function(r){Array.isArray(r)?i(r,o):o.push(r);});}function y(e){let o=[];return i(e,o),o}var a=(...e)=>y(e).filter(Boolean),p=(e,o)=>{let r={},c=Object.keys(e),f=Object.keys(o);for(let t of c)if(f.includes(t)){let s=e[t],n=o[t];typeof s=="object"&&typeof n=="object"?r[t]=p(s,n):Array.isArray(s)||Array.isArray(n)?r[t]=a(n,s):r[t]=n+" "+s;}else r[t]=e[t];for(let t of f)c.includes(t)||(r[t]=o[t]);return r},g=e=>!e||typeof e!="string"?e:e.replace(/\s+/g," ").trim();
10
-
11
- var bundleCjs = _commonjsHelpers.createCommonjsModule(function (module, exports) {
9
+ /**
10
+ * The code in this file is copied from https://github.com/lukeed/clsx and modified to suit the needs of tailwind-merge better.
11
+ *
12
+ * Specifically:
13
+ * - Runtime code from https://github.com/lukeed/clsx/blob/v1.2.1/src/index.js
14
+ * - TypeScript types from https://github.com/lukeed/clsx/blob/v1.2.1/clsx.d.ts
15
+ *
16
+ * Original code has MIT license: Copyright (c) Luke Edwards <luke.edwards05@gmail.com> (lukeed.com)
17
+ */
18
+ function twJoin() {
19
+ var index = 0;
20
+ var argument;
21
+ var resolvedValue;
22
+ var string = '';
23
+ while (index < arguments.length) {
24
+ if (argument = arguments[index++]) {
25
+ if (resolvedValue = toValue(argument)) {
26
+ string && (string += ' ');
27
+ string += resolvedValue;
28
+ }
29
+ }
30
+ }
31
+ return string;
32
+ }
33
+ function toValue(mix) {
34
+ if (typeof mix === 'string') {
35
+ return mix;
36
+ }
37
+ var resolvedValue;
38
+ var string = '';
39
+ for (var k = 0; k < mix.length; k++) {
40
+ if (mix[k]) {
41
+ if (resolvedValue = toValue(mix[k])) {
42
+ string && (string += ' ');
43
+ string += resolvedValue;
44
+ }
45
+ }
46
+ }
47
+ return string;
48
+ }
12
49
 
13
- Object.defineProperty(exports, Symbol.toStringTag, {
14
- value: 'Module'
15
- });
16
- const CLASS_PART_SEPARATOR = '-';
50
+ var CLASS_PART_SEPARATOR = '-';
17
51
  function createClassUtils(config) {
18
- const classMap = createClassMap(config);
19
- const {
20
- conflictingClassGroups,
21
- conflictingClassGroupModifiers
22
- } = config;
52
+ var classMap = createClassMap(config);
53
+ var conflictingClassGroups = config.conflictingClassGroups,
54
+ _config$conflictingCl = config.conflictingClassGroupModifiers,
55
+ conflictingClassGroupModifiers = _config$conflictingCl === void 0 ? {} : _config$conflictingCl;
23
56
  function getClassGroupId(className) {
24
- const classParts = className.split(CLASS_PART_SEPARATOR);
57
+ var classParts = className.split(CLASS_PART_SEPARATOR);
25
58
  // 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.
26
59
  if (classParts[0] === '' && classParts.length !== 1) {
27
60
  classParts.shift();
@@ -29,40 +62,41 @@ function createClassUtils(config) {
29
62
  return getGroupRecursive(classParts, classMap) || getGroupIdForArbitraryProperty(className);
30
63
  }
31
64
  function getConflictingClassGroupIds(classGroupId, hasPostfixModifier) {
32
- const conflicts = conflictingClassGroups[classGroupId] || [];
65
+ var conflicts = conflictingClassGroups[classGroupId] || [];
33
66
  if (hasPostfixModifier && conflictingClassGroupModifiers[classGroupId]) {
34
- return [...conflicts, ...conflictingClassGroupModifiers[classGroupId]];
67
+ return [].concat(conflicts, conflictingClassGroupModifiers[classGroupId]);
35
68
  }
36
69
  return conflicts;
37
70
  }
38
71
  return {
39
- getClassGroupId,
40
- getConflictingClassGroupIds
72
+ getClassGroupId: getClassGroupId,
73
+ getConflictingClassGroupIds: getConflictingClassGroupIds
41
74
  };
42
75
  }
43
76
  function getGroupRecursive(classParts, classPartObject) {
44
77
  if (classParts.length === 0) {
45
78
  return classPartObject.classGroupId;
46
79
  }
47
- const currentClassPart = classParts[0];
48
- const nextClassPartObject = classPartObject.nextPart.get(currentClassPart);
49
- const classGroupFromNextClassPart = nextClassPartObject ? getGroupRecursive(classParts.slice(1), nextClassPartObject) : undefined;
80
+ var currentClassPart = classParts[0];
81
+ var nextClassPartObject = classPartObject.nextPart.get(currentClassPart);
82
+ var classGroupFromNextClassPart = nextClassPartObject ? getGroupRecursive(classParts.slice(1), nextClassPartObject) : undefined;
50
83
  if (classGroupFromNextClassPart) {
51
84
  return classGroupFromNextClassPart;
52
85
  }
53
86
  if (classPartObject.validators.length === 0) {
54
87
  return undefined;
55
88
  }
56
- const classRest = classParts.join(CLASS_PART_SEPARATOR);
57
- return classPartObject.validators.find(({
58
- validator
59
- }) => validator(classRest))?.classGroupId;
89
+ var classRest = classParts.join(CLASS_PART_SEPARATOR);
90
+ return classPartObject.validators.find(function (_ref) {
91
+ var validator = _ref.validator;
92
+ return validator(classRest);
93
+ })?.classGroupId;
60
94
  }
61
- const arbitraryPropertyRegex = /^\[(.+)\]$/;
95
+ var arbitraryPropertyRegex = /^\[(.+)\]$/;
62
96
  function getGroupIdForArbitraryProperty(className) {
63
97
  if (arbitraryPropertyRegex.test(className)) {
64
- const arbitraryPropertyClassName = arbitraryPropertyRegex.exec(className)[1];
65
- const property = arbitraryPropertyClassName?.substring(0, arbitraryPropertyClassName.indexOf(':'));
98
+ var arbitraryPropertyClassName = arbitraryPropertyRegex.exec(className)[1];
99
+ var property = arbitraryPropertyClassName?.substring(0, arbitraryPropertyClassName.indexOf(':'));
66
100
  if (property) {
67
101
  // I use two dots here because one dot is used as prefix for class groups in plugins
68
102
  return 'arbitrary..' + property;
@@ -73,24 +107,24 @@ function getGroupIdForArbitraryProperty(className) {
73
107
  * Exported for testing only
74
108
  */
75
109
  function createClassMap(config) {
76
- const {
77
- theme,
78
- prefix
79
- } = config;
80
- const classMap = {
110
+ var theme = config.theme,
111
+ prefix = config.prefix;
112
+ var classMap = {
81
113
  nextPart: new Map(),
82
114
  validators: []
83
115
  };
84
- const prefixedClassGroupEntries = getPrefixedClassGroupEntries(Object.entries(config.classGroups), prefix);
85
- prefixedClassGroupEntries.forEach(([classGroupId, classGroup]) => {
116
+ var prefixedClassGroupEntries = getPrefixedClassGroupEntries(Object.entries(config.classGroups), prefix);
117
+ prefixedClassGroupEntries.forEach(function (_ref2) {
118
+ var classGroupId = _ref2[0],
119
+ classGroup = _ref2[1];
86
120
  processClassesRecursively(classGroup, classMap, classGroupId, theme);
87
121
  });
88
122
  return classMap;
89
123
  }
90
124
  function processClassesRecursively(classGroup, classPartObject, classGroupId, theme) {
91
- classGroup.forEach(classDefinition => {
125
+ classGroup.forEach(function (classDefinition) {
92
126
  if (typeof classDefinition === 'string') {
93
- const classPartObjectToEdit = classDefinition === '' ? classPartObject : getPart(classPartObject, classDefinition);
127
+ var classPartObjectToEdit = classDefinition === '' ? classPartObject : getPart(classPartObject, classDefinition);
94
128
  classPartObjectToEdit.classGroupId = classGroupId;
95
129
  return;
96
130
  }
@@ -101,18 +135,20 @@ function processClassesRecursively(classGroup, classPartObject, classGroupId, th
101
135
  }
102
136
  classPartObject.validators.push({
103
137
  validator: classDefinition,
104
- classGroupId
138
+ classGroupId: classGroupId
105
139
  });
106
140
  return;
107
141
  }
108
- Object.entries(classDefinition).forEach(([key, classGroup]) => {
142
+ Object.entries(classDefinition).forEach(function (_ref3) {
143
+ var key = _ref3[0],
144
+ classGroup = _ref3[1];
109
145
  processClassesRecursively(classGroup, getPart(classPartObject, key), classGroupId, theme);
110
146
  });
111
147
  });
112
148
  }
113
149
  function getPart(classPartObject, path) {
114
- let currentClassPartObject = classPartObject;
115
- path.split(CLASS_PART_SEPARATOR).forEach(pathPart => {
150
+ var currentClassPartObject = classPartObject;
151
+ path.split(CLASS_PART_SEPARATOR).forEach(function (pathPart) {
116
152
  if (!currentClassPartObject.nextPart.has(pathPart)) {
117
153
  currentClassPartObject.nextPart.set(pathPart, {
118
154
  nextPart: new Map(),
@@ -130,13 +166,19 @@ function getPrefixedClassGroupEntries(classGroupEntries, prefix) {
130
166
  if (!prefix) {
131
167
  return classGroupEntries;
132
168
  }
133
- return classGroupEntries.map(([classGroupId, classGroup]) => {
134
- const prefixedClassGroup = classGroup.map(classDefinition => {
169
+ return classGroupEntries.map(function (_ref4) {
170
+ var classGroupId = _ref4[0],
171
+ classGroup = _ref4[1];
172
+ var prefixedClassGroup = classGroup.map(function (classDefinition) {
135
173
  if (typeof classDefinition === 'string') {
136
174
  return prefix + classDefinition;
137
175
  }
138
176
  if (typeof classDefinition === 'object') {
139
- return Object.fromEntries(Object.entries(classDefinition).map(([key, value]) => [prefix + key, value]));
177
+ return Object.fromEntries(Object.entries(classDefinition).map(function (_ref5) {
178
+ var key = _ref5[0],
179
+ value = _ref5[1];
180
+ return [prefix + key, value];
181
+ }));
140
182
  }
141
183
  return classDefinition;
142
184
  });
@@ -148,13 +190,15 @@ function getPrefixedClassGroupEntries(classGroupEntries, prefix) {
148
190
  function createLruCache(maxCacheSize) {
149
191
  if (maxCacheSize < 1) {
150
192
  return {
151
- get: () => undefined,
152
- set: () => {}
193
+ get: function get() {
194
+ return undefined;
195
+ },
196
+ set: function set() {}
153
197
  };
154
198
  }
155
- let cacheSize = 0;
156
- let cache = new Map();
157
- let previousCache = new Map();
199
+ var cacheSize = 0;
200
+ var cache = new Map();
201
+ var previousCache = new Map();
158
202
  function update(key, value) {
159
203
  cache.set(key, value);
160
204
  cacheSize++;
@@ -165,8 +209,8 @@ function createLruCache(maxCacheSize) {
165
209
  }
166
210
  }
167
211
  return {
168
- get(key) {
169
- let value = cache.get(key);
212
+ get: function get(key) {
213
+ var value = cache.get(key);
170
214
  if (value !== undefined) {
171
215
  return value;
172
216
  }
@@ -175,7 +219,7 @@ function createLruCache(maxCacheSize) {
175
219
  return value;
176
220
  }
177
221
  },
178
- set(key, value) {
222
+ set: function set(key, value) {
179
223
  if (cache.has(key)) {
180
224
  cache.set(key, value);
181
225
  } else {
@@ -184,20 +228,21 @@ function createLruCache(maxCacheSize) {
184
228
  }
185
229
  };
186
230
  }
187
- const IMPORTANT_MODIFIER = '!';
231
+
232
+ var IMPORTANT_MODIFIER = '!';
188
233
  function createSplitModifiers(config) {
189
- const separator = config.separator;
190
- const isSeparatorSingleCharacter = separator.length === 1;
191
- const firstSeparatorCharacter = separator[0];
192
- const separatorLength = separator.length;
234
+ var separator = config.separator || ':';
235
+ var isSeparatorSingleCharacter = separator.length === 1;
236
+ var firstSeparatorCharacter = separator[0];
237
+ var separatorLength = separator.length;
193
238
  // splitModifiers inspired by https://github.com/tailwindlabs/tailwindcss/blob/v3.2.2/src/util/splitAtTopLevelOnly.js
194
239
  return function splitModifiers(className) {
195
- const modifiers = [];
196
- let bracketDepth = 0;
197
- let modifierStart = 0;
198
- let postfixModifierPosition;
199
- for (let index = 0; index < className.length; index++) {
200
- let currentCharacter = className[index];
240
+ var modifiers = [];
241
+ var bracketDepth = 0;
242
+ var modifierStart = 0;
243
+ var postfixModifierPosition;
244
+ for (var index = 0; index < className.length; index++) {
245
+ var currentCharacter = className[index];
201
246
  if (bracketDepth === 0) {
202
247
  if (currentCharacter === firstSeparatorCharacter && (isSeparatorSingleCharacter || className.slice(index, index + separatorLength) === separator)) {
203
248
  modifiers.push(className.slice(modifierStart, index));
@@ -215,15 +260,15 @@ function createSplitModifiers(config) {
215
260
  bracketDepth--;
216
261
  }
217
262
  }
218
- const baseClassNameWithImportantModifier = modifiers.length === 0 ? className : className.substring(modifierStart);
219
- const hasImportantModifier = baseClassNameWithImportantModifier.startsWith(IMPORTANT_MODIFIER);
220
- const baseClassName = hasImportantModifier ? baseClassNameWithImportantModifier.substring(1) : baseClassNameWithImportantModifier;
221
- const maybePostfixModifierPosition = postfixModifierPosition && postfixModifierPosition > modifierStart ? postfixModifierPosition - modifierStart : undefined;
263
+ var baseClassNameWithImportantModifier = modifiers.length === 0 ? className : className.substring(modifierStart);
264
+ var hasImportantModifier = baseClassNameWithImportantModifier.startsWith(IMPORTANT_MODIFIER);
265
+ var baseClassName = hasImportantModifier ? baseClassNameWithImportantModifier.substring(1) : baseClassNameWithImportantModifier;
266
+ var maybePostfixModifierPosition = postfixModifierPosition && postfixModifierPosition > modifierStart ? postfixModifierPosition - modifierStart : undefined;
222
267
  return {
223
- modifiers,
224
- hasImportantModifier,
225
- baseClassName,
226
- maybePostfixModifierPosition
268
+ modifiers: modifiers,
269
+ hasImportantModifier: hasImportantModifier,
270
+ baseClassName: baseClassName,
271
+ maybePostfixModifierPosition: maybePostfixModifierPosition
227
272
  };
228
273
  };
229
274
  }
@@ -236,20 +281,21 @@ function sortModifiers(modifiers) {
236
281
  if (modifiers.length <= 1) {
237
282
  return modifiers;
238
283
  }
239
- const sortedModifiers = [];
240
- let unsortedModifiers = [];
241
- modifiers.forEach(modifier => {
242
- const isArbitraryVariant = modifier[0] === '[';
284
+ var sortedModifiers = [];
285
+ var unsortedModifiers = [];
286
+ modifiers.forEach(function (modifier) {
287
+ var isArbitraryVariant = modifier[0] === '[';
243
288
  if (isArbitraryVariant) {
244
- sortedModifiers.push(...unsortedModifiers.sort(), modifier);
289
+ sortedModifiers.push.apply(sortedModifiers, unsortedModifiers.sort().concat([modifier]));
245
290
  unsortedModifiers = [];
246
291
  } else {
247
292
  unsortedModifiers.push(modifier);
248
293
  }
249
294
  });
250
- sortedModifiers.push(...unsortedModifiers.sort());
295
+ sortedModifiers.push.apply(sortedModifiers, unsortedModifiers.sort());
251
296
  return sortedModifiers;
252
297
  }
298
+
253
299
  function createConfigUtils(config) {
254
300
  return {
255
301
  cache: createLruCache(config.cacheSize),
@@ -257,13 +303,12 @@ function createConfigUtils(config) {
257
303
  ...createClassUtils(config)
258
304
  };
259
305
  }
260
- const SPLIT_CLASSES_REGEX = /\s+/;
306
+
307
+ var SPLIT_CLASSES_REGEX = /\s+/;
261
308
  function mergeClassList(classList, configUtils) {
262
- const {
263
- splitModifiers,
264
- getClassGroupId,
265
- getConflictingClassGroupIds
266
- } = configUtils;
309
+ var splitModifiers = configUtils.splitModifiers,
310
+ getClassGroupId = configUtils.getClassGroupId,
311
+ getConflictingClassGroupIds = configUtils.getConflictingClassGroupIds;
267
312
  /**
268
313
  * Set of classGroupIds in following format:
269
314
  * `{importantModifier}{variantModifiers}{classGroupId}`
@@ -271,109 +316,77 @@ function mergeClassList(classList, configUtils) {
271
316
  * @example 'hover:focus:bg-color'
272
317
  * @example 'md:!pr'
273
318
  */
274
- const classGroupsInConflict = new Set();
275
- return classList.trim().split(SPLIT_CLASSES_REGEX).map(originalClassName => {
276
- const {
277
- modifiers,
278
- hasImportantModifier,
279
- baseClassName,
280
- maybePostfixModifierPosition
281
- } = splitModifiers(originalClassName);
282
- let classGroupId = getClassGroupId(maybePostfixModifierPosition ? baseClassName.substring(0, maybePostfixModifierPosition) : baseClassName);
283
- let hasPostfixModifier = Boolean(maybePostfixModifierPosition);
319
+ var classGroupsInConflict = new Set();
320
+ return classList.trim().split(SPLIT_CLASSES_REGEX).map(function (originalClassName) {
321
+ var _splitModifiers = splitModifiers(originalClassName),
322
+ modifiers = _splitModifiers.modifiers,
323
+ hasImportantModifier = _splitModifiers.hasImportantModifier,
324
+ baseClassName = _splitModifiers.baseClassName,
325
+ maybePostfixModifierPosition = _splitModifiers.maybePostfixModifierPosition;
326
+ var classGroupId = getClassGroupId(maybePostfixModifierPosition ? baseClassName.substring(0, maybePostfixModifierPosition) : baseClassName);
327
+ var hasPostfixModifier = Boolean(maybePostfixModifierPosition);
284
328
  if (!classGroupId) {
285
329
  if (!maybePostfixModifierPosition) {
286
330
  return {
287
331
  isTailwindClass: false,
288
- originalClassName
332
+ originalClassName: originalClassName
289
333
  };
290
334
  }
291
335
  classGroupId = getClassGroupId(baseClassName);
292
336
  if (!classGroupId) {
293
337
  return {
294
338
  isTailwindClass: false,
295
- originalClassName
339
+ originalClassName: originalClassName
296
340
  };
297
341
  }
298
342
  hasPostfixModifier = false;
299
343
  }
300
- const variantModifier = sortModifiers(modifiers).join(':');
301
- const modifierId = hasImportantModifier ? variantModifier + IMPORTANT_MODIFIER : variantModifier;
344
+ var variantModifier = sortModifiers(modifiers).join(':');
345
+ var modifierId = hasImportantModifier ? variantModifier + IMPORTANT_MODIFIER : variantModifier;
302
346
  return {
303
347
  isTailwindClass: true,
304
- modifierId,
305
- classGroupId,
306
- originalClassName,
307
- hasPostfixModifier
348
+ modifierId: modifierId,
349
+ classGroupId: classGroupId,
350
+ originalClassName: originalClassName,
351
+ hasPostfixModifier: hasPostfixModifier
308
352
  };
309
353
  }).reverse()
310
354
  // Last class in conflict wins, so we need to filter conflicting classes in reverse order.
311
- .filter(parsed => {
355
+ .filter(function (parsed) {
312
356
  if (!parsed.isTailwindClass) {
313
357
  return true;
314
358
  }
315
- const {
316
- modifierId,
317
- classGroupId,
318
- hasPostfixModifier
319
- } = parsed;
320
- const classId = modifierId + classGroupId;
359
+ var modifierId = parsed.modifierId,
360
+ classGroupId = parsed.classGroupId,
361
+ hasPostfixModifier = parsed.hasPostfixModifier;
362
+ var classId = modifierId + classGroupId;
321
363
  if (classGroupsInConflict.has(classId)) {
322
364
  return false;
323
365
  }
324
366
  classGroupsInConflict.add(classId);
325
- getConflictingClassGroupIds(classGroupId, hasPostfixModifier).forEach(group => classGroupsInConflict.add(modifierId + group));
367
+ getConflictingClassGroupIds(classGroupId, hasPostfixModifier).forEach(function (group) {
368
+ return classGroupsInConflict.add(modifierId + group);
369
+ });
326
370
  return true;
327
- }).reverse().map(parsed => parsed.originalClassName).join(' ');
371
+ }).reverse().map(function (parsed) {
372
+ return parsed.originalClassName;
373
+ }).join(' ');
328
374
  }
329
375
 
330
- /**
331
- * The code in this file is copied from https://github.com/lukeed/clsx and modified to suit the needs of tailwind-merge better.
332
- *
333
- * Specifically:
334
- * - Runtime code from https://github.com/lukeed/clsx/blob/v1.2.1/src/index.js
335
- * - TypeScript types from https://github.com/lukeed/clsx/blob/v1.2.1/clsx.d.ts
336
- *
337
- * Original code has MIT license: Copyright (c) Luke Edwards <luke.edwards05@gmail.com> (lukeed.com)
338
- */
339
- function twJoin() {
340
- let index = 0;
341
- let argument;
342
- let resolvedValue;
343
- let string = '';
344
- while (index < arguments.length) {
345
- if (argument = arguments[index++]) {
346
- if (resolvedValue = toValue(argument)) {
347
- string && (string += ' ');
348
- string += resolvedValue;
349
- }
350
- }
351
- }
352
- return string;
353
- }
354
- function toValue(mix) {
355
- if (typeof mix === 'string') {
356
- return mix;
357
- }
358
- let resolvedValue;
359
- let string = '';
360
- for (let k = 0; k < mix.length; k++) {
361
- if (mix[k]) {
362
- if (resolvedValue = toValue(mix[k])) {
363
- string && (string += ' ');
364
- string += resolvedValue;
365
- }
366
- }
376
+ function createTailwindMerge() {
377
+ for (var _len = arguments.length, createConfig = new Array(_len), _key = 0; _key < _len; _key++) {
378
+ createConfig[_key] = arguments[_key];
367
379
  }
368
- return string;
369
- }
370
- function createTailwindMerge(createConfigFirst, ...createConfigRest) {
371
- let configUtils;
372
- let cacheGet;
373
- let cacheSet;
374
- let functionToCall = initTailwindMerge;
380
+ var configUtils;
381
+ var cacheGet;
382
+ var cacheSet;
383
+ var functionToCall = initTailwindMerge;
375
384
  function initTailwindMerge(classList) {
376
- const config = createConfigRest.reduce((previousConfig, createConfigCurrent) => createConfigCurrent(previousConfig), createConfigFirst());
385
+ var firstCreateConfig = createConfig[0],
386
+ restCreateConfig = createConfig.slice(1);
387
+ var config = restCreateConfig.reduce(function (previousConfig, createConfigCurrent) {
388
+ return createConfigCurrent(previousConfig);
389
+ }, firstCreateConfig());
377
390
  configUtils = createConfigUtils(config);
378
391
  cacheGet = configUtils.cache.get;
379
392
  cacheSet = configUtils.cache.set;
@@ -381,11 +394,11 @@ function createTailwindMerge(createConfigFirst, ...createConfigRest) {
381
394
  return tailwindMerge(classList);
382
395
  }
383
396
  function tailwindMerge(classList) {
384
- const cachedResult = cacheGet(classList);
397
+ var cachedResult = cacheGet(classList);
385
398
  if (cachedResult) {
386
399
  return cachedResult;
387
400
  }
388
- const result = mergeClassList(classList, configUtils);
401
+ var result = mergeClassList(classList, configUtils);
389
402
  cacheSet(classList, result);
390
403
  return result;
391
404
  }
@@ -393,156 +406,166 @@ function createTailwindMerge(createConfigFirst, ...createConfigRest) {
393
406
  return functionToCall(twJoin.apply(null, arguments));
394
407
  };
395
408
  }
409
+
396
410
  function fromTheme(key) {
397
- const themeGetter = theme => theme[key] || [];
411
+ var themeGetter = function themeGetter(theme) {
412
+ return theme[key] || [];
413
+ };
398
414
  themeGetter.isThemeGetter = true;
399
415
  return themeGetter;
400
416
  }
401
- const arbitraryValueRegex = /^\[(?:([a-z-]+):)?(.+)\]$/i;
402
- const fractionRegex = /^\d+\/\d+$/;
403
- const stringLengths = /*#__PURE__*/new Set(['px', 'full', 'screen']);
404
- const tshirtUnitRegex = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/;
405
- 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$/;
406
- const colorFunctionRegex = /^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/;
407
- // Shadow always begins with x and y offset separated by underscore optionally prepended by inset
408
- const shadowRegex = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/;
409
- const imageRegex = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/;
417
+
418
+ var arbitraryValueRegex = /^\[(?:([a-z-]+):)?(.+)\]$/i;
419
+ var fractionRegex = /^\d+\/\d+$/;
420
+ var stringLengths = /*#__PURE__*/new Set(['px', 'full', 'screen']);
421
+ var tshirtUnitRegex = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/;
422
+ 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$/;
423
+ // Shadow always begins with x and y offset separated by underscore
424
+ var shadowRegex = /^-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/;
410
425
  function isLength(value) {
411
- return isNumber(value) || stringLengths.has(value) || fractionRegex.test(value);
426
+ return isNumber(value) || stringLengths.has(value) || fractionRegex.test(value) || isArbitraryLength(value);
412
427
  }
413
428
  function isArbitraryLength(value) {
414
429
  return getIsArbitraryValue(value, 'length', isLengthOnly);
415
430
  }
416
- function isNumber(value) {
417
- return Boolean(value) && !Number.isNaN(Number(value));
431
+ function isArbitrarySize(value) {
432
+ return getIsArbitraryValue(value, 'size', isNever);
433
+ }
434
+ function isArbitraryPosition(value) {
435
+ return getIsArbitraryValue(value, 'position', isNever);
436
+ }
437
+ function isArbitraryUrl(value) {
438
+ return getIsArbitraryValue(value, 'url', isUrl);
418
439
  }
419
440
  function isArbitraryNumber(value) {
420
441
  return getIsArbitraryValue(value, 'number', isNumber);
421
442
  }
422
- function isInteger(value) {
423
- return Boolean(value) && Number.isInteger(Number(value));
443
+ function isNumber(value) {
444
+ return !Number.isNaN(Number(value));
424
445
  }
425
446
  function isPercent(value) {
426
447
  return value.endsWith('%') && isNumber(value.slice(0, -1));
427
448
  }
449
+ function isInteger(value) {
450
+ return isIntegerOnly(value) || getIsArbitraryValue(value, 'number', isIntegerOnly);
451
+ }
428
452
  function isArbitraryValue(value) {
429
453
  return arbitraryValueRegex.test(value);
430
454
  }
455
+ function isAny() {
456
+ return true;
457
+ }
431
458
  function isTshirtSize(value) {
432
459
  return tshirtUnitRegex.test(value);
433
460
  }
434
- const sizeLabels = /*#__PURE__*/new Set(['length', 'size', 'percentage']);
435
- function isArbitrarySize(value) {
436
- return getIsArbitraryValue(value, sizeLabels, isNever);
437
- }
438
- function isArbitraryPosition(value) {
439
- return getIsArbitraryValue(value, 'position', isNever);
440
- }
441
- const imageLabels = /*#__PURE__*/new Set(['image', 'url']);
442
- function isArbitraryImage(value) {
443
- return getIsArbitraryValue(value, imageLabels, isImage);
444
- }
445
461
  function isArbitraryShadow(value) {
446
462
  return getIsArbitraryValue(value, '', isShadow);
447
463
  }
448
- function isAny() {
449
- return true;
450
- }
451
464
  function getIsArbitraryValue(value, label, testValue) {
452
- const result = arbitraryValueRegex.exec(value);
465
+ var result = arbitraryValueRegex.exec(value);
453
466
  if (result) {
454
467
  if (result[1]) {
455
- return typeof label === 'string' ? result[1] === label : label.has(result[1]);
468
+ return result[1] === label;
456
469
  }
457
470
  return testValue(result[2]);
458
471
  }
459
472
  return false;
460
473
  }
461
474
  function isLengthOnly(value) {
462
- // `colorFunctionRegex` check is necessary because color functions can have percentages in them which which would be incorrectly classified as lengths.
463
- // For example, `hsl(0 0% 0%)` would be classified as a length without this check.
464
- // I could also use lookbehind assertion in `lengthUnitRegex` but that isn't supported widely enough.
465
- return lengthUnitRegex.test(value) && !colorFunctionRegex.test(value);
475
+ return lengthUnitRegex.test(value);
466
476
  }
467
477
  function isNever() {
468
478
  return false;
469
479
  }
480
+ function isUrl(value) {
481
+ return value.startsWith('url(');
482
+ }
483
+ function isIntegerOnly(value) {
484
+ return Number.isInteger(Number(value));
485
+ }
470
486
  function isShadow(value) {
471
487
  return shadowRegex.test(value);
472
488
  }
473
- function isImage(value) {
474
- return imageRegex.test(value);
475
- }
476
- const validators = /*#__PURE__*/Object.defineProperty({
477
- __proto__: null,
478
- isAny,
479
- isArbitraryImage,
480
- isArbitraryLength,
481
- isArbitraryNumber,
482
- isArbitraryPosition,
483
- isArbitraryShadow,
484
- isArbitrarySize,
485
- isArbitraryValue,
486
- isInteger,
487
- isLength,
488
- isNumber,
489
- isPercent,
490
- isTshirtSize
491
- }, Symbol.toStringTag, {
492
- value: 'Module'
493
- });
489
+
494
490
  function getDefaultConfig() {
495
- const colors = fromTheme('colors');
496
- const spacing = fromTheme('spacing');
497
- const blur = fromTheme('blur');
498
- const brightness = fromTheme('brightness');
499
- const borderColor = fromTheme('borderColor');
500
- const borderRadius = fromTheme('borderRadius');
501
- const borderSpacing = fromTheme('borderSpacing');
502
- const borderWidth = fromTheme('borderWidth');
503
- const contrast = fromTheme('contrast');
504
- const grayscale = fromTheme('grayscale');
505
- const hueRotate = fromTheme('hueRotate');
506
- const invert = fromTheme('invert');
507
- const gap = fromTheme('gap');
508
- const gradientColorStops = fromTheme('gradientColorStops');
509
- const gradientColorStopPositions = fromTheme('gradientColorStopPositions');
510
- const inset = fromTheme('inset');
511
- const margin = fromTheme('margin');
512
- const opacity = fromTheme('opacity');
513
- const padding = fromTheme('padding');
514
- const saturate = fromTheme('saturate');
515
- const scale = fromTheme('scale');
516
- const sepia = fromTheme('sepia');
517
- const skew = fromTheme('skew');
518
- const space = fromTheme('space');
519
- const translate = fromTheme('translate');
520
- const getOverscroll = () => ['auto', 'contain', 'none'];
521
- const getOverflow = () => ['auto', 'hidden', 'clip', 'visible', 'scroll'];
522
- const getSpacingWithAutoAndArbitrary = () => ['auto', isArbitraryValue, spacing];
523
- const getSpacingWithArbitrary = () => [isArbitraryValue, spacing];
524
- const getLengthWithEmptyAndArbitrary = () => ['', isLength, isArbitraryLength];
525
- const getNumberWithAutoAndArbitrary = () => ['auto', isNumber, isArbitraryValue];
526
- const getPositions = () => ['bottom', 'center', 'left', 'left-bottom', 'left-top', 'right', 'right-bottom', 'right-top', 'top'];
527
- const getLineStyles = () => ['solid', 'dashed', 'dotted', 'double', 'none'];
528
- const getBlendModes = () => ['normal', 'multiply', 'screen', 'overlay', 'darken', 'lighten', 'color-dodge', 'color-burn', 'hard-light', 'soft-light', 'difference', 'exclusion', 'hue', 'saturation', 'color', 'luminosity', 'plus-lighter'];
529
- const getAlign = () => ['start', 'end', 'center', 'between', 'around', 'evenly', 'stretch'];
530
- const getZeroAndEmpty = () => ['', '0', isArbitraryValue];
531
- const getBreaks = () => ['auto', 'avoid', 'all', 'avoid-page', 'page', 'left', 'right', 'column'];
532
- const getNumber = () => [isNumber, isArbitraryNumber];
533
- const getNumberAndArbitrary = () => [isNumber, isArbitraryValue];
491
+ var colors = fromTheme('colors');
492
+ var spacing = fromTheme('spacing');
493
+ var blur = fromTheme('blur');
494
+ var brightness = fromTheme('brightness');
495
+ var borderColor = fromTheme('borderColor');
496
+ var borderRadius = fromTheme('borderRadius');
497
+ var borderSpacing = fromTheme('borderSpacing');
498
+ var borderWidth = fromTheme('borderWidth');
499
+ var contrast = fromTheme('contrast');
500
+ var grayscale = fromTheme('grayscale');
501
+ var hueRotate = fromTheme('hueRotate');
502
+ var invert = fromTheme('invert');
503
+ var gap = fromTheme('gap');
504
+ var gradientColorStops = fromTheme('gradientColorStops');
505
+ var gradientColorStopPositions = fromTheme('gradientColorStopPositions');
506
+ var inset = fromTheme('inset');
507
+ var margin = fromTheme('margin');
508
+ var opacity = fromTheme('opacity');
509
+ var padding = fromTheme('padding');
510
+ var saturate = fromTheme('saturate');
511
+ var scale = fromTheme('scale');
512
+ var sepia = fromTheme('sepia');
513
+ var skew = fromTheme('skew');
514
+ var space = fromTheme('space');
515
+ var translate = fromTheme('translate');
516
+ var getOverscroll = function getOverscroll() {
517
+ return ['auto', 'contain', 'none'];
518
+ };
519
+ var getOverflow = function getOverflow() {
520
+ return ['auto', 'hidden', 'clip', 'visible', 'scroll'];
521
+ };
522
+ var getSpacingWithAutoAndArbitrary = function getSpacingWithAutoAndArbitrary() {
523
+ return ['auto', isArbitraryValue, spacing];
524
+ };
525
+ var getSpacingWithArbitrary = function getSpacingWithArbitrary() {
526
+ return [isArbitraryValue, spacing];
527
+ };
528
+ var getLengthWithEmpty = function getLengthWithEmpty() {
529
+ return ['', isLength];
530
+ };
531
+ var getNumberWithAutoAndArbitrary = function getNumberWithAutoAndArbitrary() {
532
+ return ['auto', isNumber, isArbitraryValue];
533
+ };
534
+ var getPositions = function getPositions() {
535
+ return ['bottom', 'center', 'left', 'left-bottom', 'left-top', 'right', 'right-bottom', 'right-top', 'top'];
536
+ };
537
+ var getLineStyles = function getLineStyles() {
538
+ return ['solid', 'dashed', 'dotted', 'double', 'none'];
539
+ };
540
+ var getBlendModes = function getBlendModes() {
541
+ return ['normal', 'multiply', 'screen', 'overlay', 'darken', 'lighten', 'color-dodge', 'color-burn', 'hard-light', 'soft-light', 'difference', 'exclusion', 'hue', 'saturation', 'color', 'luminosity', 'plus-lighter'];
542
+ };
543
+ var getAlign = function getAlign() {
544
+ return ['start', 'end', 'center', 'between', 'around', 'evenly', 'stretch'];
545
+ };
546
+ var getZeroAndEmpty = function getZeroAndEmpty() {
547
+ return ['', '0', isArbitraryValue];
548
+ };
549
+ var getBreaks = function getBreaks() {
550
+ return ['auto', 'avoid', 'all', 'avoid-page', 'page', 'left', 'right', 'column'];
551
+ };
552
+ var getNumber = function getNumber() {
553
+ return [isNumber, isArbitraryNumber];
554
+ };
555
+ var getNumberAndArbitrary = function getNumberAndArbitrary() {
556
+ return [isNumber, isArbitraryValue];
557
+ };
534
558
  return {
535
559
  cacheSize: 500,
536
- separator: ':',
537
560
  theme: {
538
561
  colors: [isAny],
539
- spacing: [isLength, isArbitraryLength],
562
+ spacing: [isLength],
540
563
  blur: ['none', '', isTshirtSize, isArbitraryValue],
541
564
  brightness: getNumber(),
542
565
  borderColor: [colors],
543
566
  borderRadius: ['none', '', 'full', isTshirtSize, isArbitraryValue],
544
567
  borderSpacing: getSpacingWithArbitrary(),
545
- borderWidth: getLengthWithEmptyAndArbitrary(),
568
+ borderWidth: getLengthWithEmpty(),
546
569
  contrast: getNumber(),
547
570
  grayscale: getZeroAndEmpty(),
548
571
  hueRotate: getNumberAndArbitrary(),
@@ -626,15 +649,15 @@ function getDefaultConfig() {
626
649
  * Floats
627
650
  * @see https://tailwindcss.com/docs/float
628
651
  */
629
- float: [{
630
- float: ['right', 'left', 'none', 'start', 'end']
652
+ "float": [{
653
+ "float": ['right', 'left', 'none']
631
654
  }],
632
655
  /**
633
656
  * Clear
634
657
  * @see https://tailwindcss.com/docs/clear
635
658
  */
636
659
  clear: [{
637
- clear: ['left', 'right', 'both', 'none', 'start', 'end']
660
+ clear: ['left', 'right', 'both', 'none']
638
661
  }],
639
662
  /**
640
663
  * Isolation
@@ -653,7 +676,7 @@ function getDefaultConfig() {
653
676
  * @see https://tailwindcss.com/docs/object-position
654
677
  */
655
678
  'object-position': [{
656
- object: [...getPositions(), isArbitraryValue]
679
+ object: [].concat(getPositions(), [isArbitraryValue])
657
680
  }],
658
681
  /**
659
682
  * Overflow
@@ -775,7 +798,7 @@ function getDefaultConfig() {
775
798
  * @see https://tailwindcss.com/docs/z-index
776
799
  */
777
800
  z: [{
778
- z: ['auto', isInteger, isArbitraryValue]
801
+ z: ['auto', isInteger]
779
802
  }],
780
803
  // Flexbox and Grid
781
804
  /**
@@ -825,7 +848,7 @@ function getDefaultConfig() {
825
848
  * @see https://tailwindcss.com/docs/order
826
849
  */
827
850
  order: [{
828
- order: ['first', 'last', 'none', isInteger, isArbitraryValue]
851
+ order: ['first', 'last', 'none', isInteger]
829
852
  }],
830
853
  /**
831
854
  * Grid Template Columns
@@ -840,7 +863,7 @@ function getDefaultConfig() {
840
863
  */
841
864
  'col-start-end': [{
842
865
  col: ['auto', {
843
- span: ['full', isInteger, isArbitraryValue]
866
+ span: ['full', isInteger]
844
867
  }, isArbitraryValue]
845
868
  }],
846
869
  /**
@@ -870,7 +893,7 @@ function getDefaultConfig() {
870
893
  */
871
894
  'row-start-end': [{
872
895
  row: ['auto', {
873
- span: [isInteger, isArbitraryValue]
896
+ span: [isInteger]
874
897
  }, isArbitraryValue]
875
898
  }],
876
899
  /**
@@ -934,7 +957,7 @@ function getDefaultConfig() {
934
957
  * @see https://tailwindcss.com/docs/justify-content
935
958
  */
936
959
  'justify-content': [{
937
- justify: ['normal', ...getAlign()]
960
+ justify: ['normal'].concat(getAlign())
938
961
  }],
939
962
  /**
940
963
  * Justify Items
@@ -955,7 +978,7 @@ function getDefaultConfig() {
955
978
  * @see https://tailwindcss.com/docs/align-content
956
979
  */
957
980
  'align-content': [{
958
- content: ['normal', ...getAlign(), 'baseline']
981
+ content: ['normal'].concat(getAlign(), ['baseline'])
959
982
  }],
960
983
  /**
961
984
  * Align Items
@@ -976,7 +999,7 @@ function getDefaultConfig() {
976
999
  * @see https://tailwindcss.com/docs/place-content
977
1000
  */
978
1001
  'place-content': [{
979
- 'place-content': [...getAlign(), 'baseline']
1002
+ 'place-content': [].concat(getAlign(), ['baseline'])
980
1003
  }],
981
1004
  /**
982
1005
  * Place Items
@@ -1149,51 +1172,44 @@ function getDefaultConfig() {
1149
1172
  * @see https://tailwindcss.com/docs/width
1150
1173
  */
1151
1174
  w: [{
1152
- w: ['auto', 'min', 'max', 'fit', 'svw', 'lvw', 'dvw', isArbitraryValue, spacing]
1175
+ w: ['auto', 'min', 'max', 'fit', isArbitraryValue, spacing]
1153
1176
  }],
1154
1177
  /**
1155
1178
  * Min-Width
1156
1179
  * @see https://tailwindcss.com/docs/min-width
1157
1180
  */
1158
1181
  'min-w': [{
1159
- 'min-w': [isArbitraryValue, spacing, 'min', 'max', 'fit']
1182
+ 'min-w': ['min', 'max', 'fit', isArbitraryValue, isLength]
1160
1183
  }],
1161
1184
  /**
1162
1185
  * Max-Width
1163
1186
  * @see https://tailwindcss.com/docs/max-width
1164
1187
  */
1165
1188
  'max-w': [{
1166
- 'max-w': [isArbitraryValue, spacing, 'none', 'full', 'min', 'max', 'fit', 'prose', {
1189
+ 'max-w': ['0', 'none', 'full', 'min', 'max', 'fit', 'prose', {
1167
1190
  screen: [isTshirtSize]
1168
- }, isTshirtSize]
1191
+ }, isTshirtSize, isArbitraryValue]
1169
1192
  }],
1170
1193
  /**
1171
1194
  * Height
1172
1195
  * @see https://tailwindcss.com/docs/height
1173
1196
  */
1174
1197
  h: [{
1175
- h: [isArbitraryValue, spacing, 'auto', 'min', 'max', 'fit', 'svh', 'lvh', 'dvh']
1198
+ h: [isArbitraryValue, spacing, 'auto', 'min', 'max', 'fit']
1176
1199
  }],
1177
1200
  /**
1178
1201
  * Min-Height
1179
1202
  * @see https://tailwindcss.com/docs/min-height
1180
1203
  */
1181
1204
  'min-h': [{
1182
- 'min-h': [isArbitraryValue, spacing, 'min', 'max', 'fit', 'svh', 'lvh', 'dvh']
1205
+ 'min-h': ['min', 'max', 'fit', isArbitraryValue, isLength]
1183
1206
  }],
1184
1207
  /**
1185
1208
  * Max-Height
1186
1209
  * @see https://tailwindcss.com/docs/max-height
1187
1210
  */
1188
1211
  'max-h': [{
1189
- 'max-h': [isArbitraryValue, spacing, 'min', 'max', 'fit', 'svh', 'lvh', 'dvh']
1190
- }],
1191
- /**
1192
- * Size
1193
- * @see https://tailwindcss.com/docs/size
1194
- */
1195
- size: [{
1196
- size: [isArbitraryValue, spacing, 'auto', 'min', 'max', 'fit']
1212
+ 'max-h': [isArbitraryValue, spacing, 'min', 'max', 'fit']
1197
1213
  }],
1198
1214
  // Typography
1199
1215
  /**
@@ -1276,7 +1292,7 @@ function getDefaultConfig() {
1276
1292
  * @see https://tailwindcss.com/docs/line-height
1277
1293
  */
1278
1294
  leading: [{
1279
- leading: ['none', 'tight', 'snug', 'normal', 'relaxed', 'loose', isLength, isArbitraryValue]
1295
+ leading: ['none', 'tight', 'snug', 'normal', 'relaxed', 'loose', isArbitraryValue, isLength]
1280
1296
  }],
1281
1297
  /**
1282
1298
  * List Style Image
@@ -1345,21 +1361,21 @@ function getDefaultConfig() {
1345
1361
  * @see https://tailwindcss.com/docs/text-decoration-style
1346
1362
  */
1347
1363
  'text-decoration-style': [{
1348
- decoration: [...getLineStyles(), 'wavy']
1364
+ decoration: [].concat(getLineStyles(), ['wavy'])
1349
1365
  }],
1350
1366
  /**
1351
1367
  * Text Decoration Thickness
1352
1368
  * @see https://tailwindcss.com/docs/text-decoration-thickness
1353
1369
  */
1354
1370
  'text-decoration-thickness': [{
1355
- decoration: ['auto', 'from-font', isLength, isArbitraryLength]
1371
+ decoration: ['auto', 'from-font', isLength]
1356
1372
  }],
1357
1373
  /**
1358
1374
  * Text Underline Offset
1359
1375
  * @see https://tailwindcss.com/docs/text-underline-offset
1360
1376
  */
1361
1377
  'underline-offset': [{
1362
- 'underline-offset': ['auto', isLength, isArbitraryValue]
1378
+ 'underline-offset': ['auto', isArbitraryValue, isLength]
1363
1379
  }],
1364
1380
  /**
1365
1381
  * Text Decoration Color
@@ -1378,13 +1394,6 @@ function getDefaultConfig() {
1378
1394
  * @see https://tailwindcss.com/docs/text-overflow
1379
1395
  */
1380
1396
  'text-overflow': ['truncate', 'text-ellipsis', 'text-clip'],
1381
- /**
1382
- * Text Wrap
1383
- * @see https://tailwindcss.com/docs/text-wrap
1384
- */
1385
- 'text-wrap': [{
1386
- text: ['wrap', 'nowrap', 'balance', 'pretty']
1387
- }],
1388
1397
  /**
1389
1398
  * Text Indent
1390
1399
  * @see https://tailwindcss.com/docs/text-indent
@@ -1410,8 +1419,8 @@ function getDefaultConfig() {
1410
1419
  * Word Break
1411
1420
  * @see https://tailwindcss.com/docs/word-break
1412
1421
  */
1413
- break: [{
1414
- break: ['normal', 'words', 'all', 'keep']
1422
+ "break": [{
1423
+ "break": ['normal', 'words', 'all', 'keep']
1415
1424
  }],
1416
1425
  /**
1417
1426
  * Hyphens
@@ -1462,7 +1471,7 @@ function getDefaultConfig() {
1462
1471
  * @see https://tailwindcss.com/docs/background-position
1463
1472
  */
1464
1473
  'bg-position': [{
1465
- bg: [...getPositions(), isArbitraryPosition]
1474
+ bg: [].concat(getPositions(), [isArbitraryPosition])
1466
1475
  }],
1467
1476
  /**
1468
1477
  * Background Repeat
@@ -1487,7 +1496,7 @@ function getDefaultConfig() {
1487
1496
  'bg-image': [{
1488
1497
  bg: ['none', {
1489
1498
  'gradient-to': ['t', 'tr', 'r', 'br', 'b', 'bl', 'l', 'tl']
1490
- }, isArbitraryImage]
1499
+ }, isArbitraryUrl]
1491
1500
  }],
1492
1501
  /**
1493
1502
  * Background Color
@@ -1719,7 +1728,7 @@ function getDefaultConfig() {
1719
1728
  * @see https://tailwindcss.com/docs/border-style
1720
1729
  */
1721
1730
  'border-style': [{
1722
- border: [...getLineStyles(), 'hidden']
1731
+ border: [].concat(getLineStyles(), ['hidden'])
1723
1732
  }],
1724
1733
  /**
1725
1734
  * Divide Width X
@@ -1820,21 +1829,21 @@ function getDefaultConfig() {
1820
1829
  * @see https://tailwindcss.com/docs/outline-style
1821
1830
  */
1822
1831
  'outline-style': [{
1823
- outline: ['', ...getLineStyles()]
1832
+ outline: [''].concat(getLineStyles())
1824
1833
  }],
1825
1834
  /**
1826
1835
  * Outline Offset
1827
1836
  * @see https://tailwindcss.com/docs/outline-offset
1828
1837
  */
1829
1838
  'outline-offset': [{
1830
- 'outline-offset': [isLength, isArbitraryValue]
1839
+ 'outline-offset': [isArbitraryValue, isLength]
1831
1840
  }],
1832
1841
  /**
1833
1842
  * Outline Width
1834
1843
  * @see https://tailwindcss.com/docs/outline-width
1835
1844
  */
1836
1845
  'outline-w': [{
1837
- outline: [isLength, isArbitraryLength]
1846
+ outline: [isLength]
1838
1847
  }],
1839
1848
  /**
1840
1849
  * Outline Color
@@ -1848,7 +1857,7 @@ function getDefaultConfig() {
1848
1857
  * @see https://tailwindcss.com/docs/ring-width
1849
1858
  */
1850
1859
  'ring-w': [{
1851
- ring: getLengthWithEmptyAndArbitrary()
1860
+ ring: getLengthWithEmpty()
1852
1861
  }],
1853
1862
  /**
1854
1863
  * Ring Width Inset
@@ -1874,7 +1883,7 @@ function getDefaultConfig() {
1874
1883
  * @see https://tailwindcss.com/docs/ring-offset-width
1875
1884
  */
1876
1885
  'ring-offset-w': [{
1877
- 'ring-offset': [isLength, isArbitraryLength]
1886
+ 'ring-offset': [isLength]
1878
1887
  }],
1879
1888
  /**
1880
1889
  * Ring Offset Color
@@ -2224,9 +2233,7 @@ function getDefaultConfig() {
2224
2233
  * Appearance
2225
2234
  * @see https://tailwindcss.com/docs/appearance
2226
2235
  */
2227
- appearance: [{
2228
- appearance: ['none', 'auto']
2229
- }],
2236
+ appearance: ['appearance-none'],
2230
2237
  /**
2231
2238
  * Cursor
2232
2239
  * @see https://tailwindcss.com/docs/cursor
@@ -2421,27 +2428,10 @@ function getDefaultConfig() {
2421
2428
  * @see https://tailwindcss.com/docs/touch-action
2422
2429
  */
2423
2430
  touch: [{
2424
- touch: ['auto', 'none', 'manipulation']
2425
- }],
2426
- /**
2427
- * Touch Action X
2428
- * @see https://tailwindcss.com/docs/touch-action
2429
- */
2430
- 'touch-x': [{
2431
- 'touch-pan': ['x', 'left', 'right']
2432
- }],
2433
- /**
2434
- * Touch Action Y
2435
- * @see https://tailwindcss.com/docs/touch-action
2436
- */
2437
- 'touch-y': [{
2438
- 'touch-pan': ['y', 'up', 'down']
2431
+ touch: ['auto', 'none', 'pinch-zoom', 'manipulation', {
2432
+ pan: ['x', 'left', 'right', 'y', 'up', 'down']
2433
+ }]
2439
2434
  }],
2440
- /**
2441
- * Touch Action Pinch Zoom
2442
- * @see https://tailwindcss.com/docs/touch-action
2443
- */
2444
- 'touch-pz': ['touch-pinch-zoom'],
2445
2435
  /**
2446
2436
  * User Select
2447
2437
  * @see https://tailwindcss.com/docs/user-select
@@ -2469,7 +2459,7 @@ function getDefaultConfig() {
2469
2459
  * @see https://tailwindcss.com/docs/stroke-width
2470
2460
  */
2471
2461
  'stroke-w': [{
2472
- stroke: [isLength, isArbitraryLength, isArbitraryNumber]
2462
+ stroke: [isLength, isArbitraryNumber]
2473
2463
  }],
2474
2464
  /**
2475
2465
  * Stroke
@@ -2483,14 +2473,7 @@ function getDefaultConfig() {
2483
2473
  * Screen Readers
2484
2474
  * @see https://tailwindcss.com/docs/screen-readers
2485
2475
  */
2486
- sr: ['sr-only', 'not-sr-only'],
2487
- /**
2488
- * Forced Color Adjust
2489
- * @see https://tailwindcss.com/docs/forced-color-adjust
2490
- */
2491
- 'forced-color-adjust': [{
2492
- 'forced-color-adjust': ['auto', 'none']
2493
- }]
2476
+ sr: ['sr-only', 'not-sr-only']
2494
2477
  },
2495
2478
  conflictingClassGroups: {
2496
2479
  overflow: ['overflow-x', 'overflow-y'],
@@ -2506,7 +2489,6 @@ function getDefaultConfig() {
2506
2489
  m: ['mx', 'my', 'ms', 'me', 'mt', 'mr', 'mb', 'ml'],
2507
2490
  mx: ['mr', 'ml'],
2508
2491
  my: ['mt', 'mb'],
2509
- size: ['w', 'h'],
2510
2492
  'font-size': ['leading'],
2511
2493
  'fvn-normal': ['fvn-ordinal', 'fvn-slashed-zero', 'fvn-figure', 'fvn-spacing', 'fvn-fraction'],
2512
2494
  'fvn-ordinal': ['fvn-normal'],
@@ -2514,7 +2496,6 @@ function getDefaultConfig() {
2514
2496
  'fvn-figure': ['fvn-normal'],
2515
2497
  'fvn-spacing': ['fvn-normal'],
2516
2498
  'fvn-fraction': ['fvn-normal'],
2517
- 'line-clamp': ['display', 'overflow'],
2518
2499
  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'],
2519
2500
  'rounded-s': ['rounded-ss', 'rounded-es'],
2520
2501
  'rounded-e': ['rounded-se', 'rounded-ee'],
@@ -2534,11 +2515,7 @@ function getDefaultConfig() {
2534
2515
  'scroll-my': ['scroll-mt', 'scroll-mb'],
2535
2516
  'scroll-p': ['scroll-px', 'scroll-py', 'scroll-ps', 'scroll-pe', 'scroll-pt', 'scroll-pr', 'scroll-pb', 'scroll-pl'],
2536
2517
  'scroll-px': ['scroll-pr', 'scroll-pl'],
2537
- 'scroll-py': ['scroll-pt', 'scroll-pb'],
2538
- touch: ['touch-x', 'touch-y', 'touch-pz'],
2539
- 'touch-x': ['touch'],
2540
- 'touch-y': ['touch'],
2541
- 'touch-pz': ['touch']
2518
+ 'scroll-py': ['scroll-pt', 'scroll-pb']
2542
2519
  },
2543
2520
  conflictingClassGroupModifiers: {
2544
2521
  'font-size': ['leading']
@@ -2550,61 +2527,45 @@ function getDefaultConfig() {
2550
2527
  * @param baseConfig Config where other config will be merged into. This object will be mutated.
2551
2528
  * @param configExtension Partial config to merge into the `baseConfig`.
2552
2529
  */
2553
- function mergeConfigs(baseConfig, {
2554
- cacheSize,
2555
- prefix,
2556
- separator,
2557
- extend = {},
2558
- override = {}
2559
- }) {
2560
- overrideProperty(baseConfig, 'cacheSize', cacheSize);
2561
- overrideProperty(baseConfig, 'prefix', prefix);
2562
- overrideProperty(baseConfig, 'separator', separator);
2563
- for (const configKey in override) {
2564
- overrideConfigProperties(baseConfig[configKey], override[configKey]);
2565
- }
2566
- for (const key in extend) {
2567
- mergeConfigProperties(baseConfig[key], extend[key]);
2530
+ function mergeConfigs(baseConfig, configExtension) {
2531
+ for (var key in configExtension) {
2532
+ mergePropertyRecursively(baseConfig, key, configExtension[key]);
2568
2533
  }
2569
2534
  return baseConfig;
2570
2535
  }
2571
- function overrideProperty(baseObject, overrideKey, overrideValue) {
2572
- if (overrideValue !== undefined) {
2573
- baseObject[overrideKey] = overrideValue;
2536
+ var hasOwnProperty = Object.prototype.hasOwnProperty;
2537
+ var overrideTypes = /*#__PURE__*/new Set(['string', 'number', 'boolean']);
2538
+ function mergePropertyRecursively(baseObject, mergeKey, mergeValue) {
2539
+ if (!hasOwnProperty.call(baseObject, mergeKey) || overrideTypes.has(typeof mergeValue) || mergeValue === null) {
2540
+ baseObject[mergeKey] = mergeValue;
2541
+ return;
2574
2542
  }
2575
- }
2576
- function overrideConfigProperties(baseObject, overrideObject) {
2577
- if (overrideObject) {
2578
- for (const key in overrideObject) {
2579
- overrideProperty(baseObject, key, overrideObject[key]);
2580
- }
2543
+ if (Array.isArray(mergeValue) && Array.isArray(baseObject[mergeKey])) {
2544
+ baseObject[mergeKey] = baseObject[mergeKey].concat(mergeValue);
2545
+ return;
2581
2546
  }
2582
- }
2583
- function mergeConfigProperties(baseObject, mergeObject) {
2584
- if (mergeObject) {
2585
- for (const key in mergeObject) {
2586
- const mergeValue = mergeObject[key];
2587
- if (mergeValue !== undefined) {
2588
- baseObject[key] = (baseObject[key] || []).concat(mergeValue);
2589
- }
2547
+ if (typeof mergeValue === 'object' && typeof baseObject[mergeKey] === 'object') {
2548
+ if (baseObject[mergeKey] === null) {
2549
+ baseObject[mergeKey] = mergeValue;
2550
+ return;
2551
+ }
2552
+ for (var nextKey in mergeValue) {
2553
+ mergePropertyRecursively(baseObject[mergeKey], nextKey, mergeValue[nextKey]);
2590
2554
  }
2591
2555
  }
2592
2556
  }
2593
- function extendTailwindMerge(configExtension, ...createConfig) {
2594
- return typeof configExtension === 'function' ? createTailwindMerge(getDefaultConfig, configExtension, ...createConfig) : createTailwindMerge(() => mergeConfigs(getDefaultConfig(), configExtension), ...createConfig);
2557
+
2558
+ function extendTailwindMerge(configExtension) {
2559
+ for (var _len = arguments.length, createConfig = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
2560
+ createConfig[_key - 1] = arguments[_key];
2561
+ }
2562
+ return typeof configExtension === 'function' ? createTailwindMerge.apply(void 0, [getDefaultConfig, configExtension].concat(createConfig)) : createTailwindMerge.apply(void 0, [function () {
2563
+ return mergeConfigs(getDefaultConfig(), configExtension);
2564
+ }].concat(createConfig));
2595
2565
  }
2596
- const twMerge = /*#__PURE__*/createTailwindMerge(getDefaultConfig);
2597
- exports.createTailwindMerge = createTailwindMerge;
2598
- exports.extendTailwindMerge = extendTailwindMerge;
2599
- exports.fromTheme = fromTheme;
2600
- exports.getDefaultConfig = getDefaultConfig;
2601
- exports.mergeConfigs = mergeConfigs;
2602
- exports.twJoin = twJoin;
2603
- exports.twMerge = twMerge;
2604
- exports.validators = validators;
2605
- //# sourceMappingURL=bundle-cjs.js.map
2606
- });
2607
2566
 
2608
- var ie={twMerge:!0,twMergeConfig:{},responsiveVariants:!1},_=s=>s||void 0,M=(...s)=>_(y(s).filter(Boolean).join(" ")),R=null,v={},q=!1,j=(...s)=>b$1=>b$1.twMerge?((!R||q)&&(q=!1,R=u(v)?bundleCjs.twMerge:bundleCjs.extendTailwindMerge({...v,extend:{theme:v.theme,classGroups:v.classGroups,conflictingClassGroupModifiers:v.conflictingClassGroupModifiers,conflictingClassGroups:v.conflictingClassGroups,...v.extend}})),_(R(M(s)))):M(s),Z=(s,b)=>{for(let e in b)s.hasOwnProperty(e)?s[e]=M(s[e],b[e]):s[e]=b[e];return s},ce=(s,b$1)=>{let{extend:e=null,slots:N={},variants:F={},compoundVariants:U=[],compoundSlots:C=[],defaultVariants:W={}}=s,m={...ie,...b$1},S=e!=null&&e.base?M(e.base,s==null?void 0:s.base):s==null?void 0:s.base,g$1=e!=null&&e.variants&&!u(e.variants)?p(F,e.variants):F,A=e!=null&&e.defaultVariants&&!u(e.defaultVariants)?{...e.defaultVariants,...W}:W;!u(m.twMergeConfig)&&!x(m.twMergeConfig,v)&&(q=!0,v=m.twMergeConfig);let O=u(e==null?void 0:e.slots),$=u(N)?{}:{base:M(s==null?void 0:s.base,O&&(e==null?void 0:e.base)),...N},w=O?$:Z({...e==null?void 0:e.slots},u($)?{base:s==null?void 0:s.base}:$),h$1=u(e==null?void 0:e.compoundVariants)?U:a(e==null?void 0:e.compoundVariants,U),V=f=>{if(u(g$1)&&u(N)&&O)return j(S,f==null?void 0:f.class,f==null?void 0:f.className)(m);if(h$1&&!Array.isArray(h$1))throw new TypeError(`The "compoundVariants" prop must be an array. Received: ${typeof h$1}`);if(C&&!Array.isArray(C))throw new TypeError(`The "compoundSlots" prop must be an array. Received: ${typeof C}`);let K=(t,n,a=[],i)=>{let r=a;if(typeof n=="string")r=r.concat(g(n).split(" ").map(o=>`${t}:${o}`));else if(Array.isArray(n))r=r.concat(n.reduce((o,c)=>o.concat(`${t}:${c}`),[]));else if(typeof n=="object"&&typeof i=="string"){for(let o in n)if(n.hasOwnProperty(o)&&o===i){let c=n[o];if(c&&typeof c=="string"){let l=g(c);r[i]?r[i]=r[i].concat(l.split(" ").map(u=>`${t}:${u}`)):r[i]=l.split(" ").map(u=>`${t}:${u}`);}else Array.isArray(c)&&c.length>0&&(r[i]=c.reduce((l,u)=>l.concat(`${t}:${u}`),[]));}}return r},z=(t,n=g$1,a$1=null,i=null)=>{var J;let r=n[t];if(!r||u(r))return null;let o=(J=i==null?void 0:i[t])!=null?J:f==null?void 0:f[t];if(o===null)return null;let c=l(o),l$1=Array.isArray(m.responsiveVariants)&&m.responsiveVariants.length>0||m.responsiveVariants===!0,u$1=A==null?void 0:A[t],d=[];if(typeof c=="object"&&l$1)for(let[T,L]of Object.entries(c)){let ne=r[L];if(T==="initial"){u$1=L;continue}Array.isArray(m.responsiveVariants)&&!m.responsiveVariants.includes(T)||(d=K(T,ne,d,a$1));}let ae=c!=null&&typeof c!="object"?c:l(u$1),k=r[ae||"false"];return typeof d=="object"&&typeof a$1=="string"&&d[a$1]?Z(d,k):d.length>0?(d.push(k),d):k},P=()=>g$1?Object.keys(g$1).map(t=>z(t,g$1)):null,p=(t,n)=>{if(!g$1||typeof g$1!="object")return null;let a=new Array;for(let i in g$1){let r=z(i,g$1,t,n),o=t==="base"&&typeof r=="string"?r:r&&r[t];o&&(a[a.length]=o);}return a},D={};for(let t in f)f[t]!==void 0&&(D[t]=f[t]);let H=(t,n)=>{var i;let a=typeof(f==null?void 0:f[t])=="object"?{[t]:(i=f[t])==null?void 0:i.initial}:{};return {...A,...D,...a,...n}},I=(t=[],n)=>{let a=[];for(let{class:i,className:r,...o}of t){let c=!0;for(let[l,u]of Object.entries(o)){let d=H(l,n);if(Array.isArray(u)){if(!u.includes(d[l])){c=!1;break}}else if(d[l]!==u){c=!1;break}}c&&(i&&a.push(i),r&&a.push(r));}return a},ee=t=>{let n=I(h$1,t);if(!Array.isArray(n))return n;let a={};for(let i of n)if(typeof i=="string"&&(a.base=j(a.base,i)(m)),typeof i=="object")for(let[r,o]of Object.entries(i))a[r]=j(a[r],o)(m);return a},te=t=>{if(C.length<1)return null;let n={};for(let{slots:a=[],class:i,className:r,...o}of C){if(!u(o)){let c=!0;for(let l of Object.keys(o)){let u=H(l,t)[l];if(u===void 0||(Array.isArray(o[l])?!o[l].includes(u):o[l]!==u)){c=!1;break}}if(!c)continue}for(let c of a)n[c]=n[c]||[],n[c].push([i,r]);}return n};if(!u(N)||!O){let t={};if(typeof w=="object"&&!u(w))for(let n of Object.keys(w))t[n]=a=>{var i,r;return j(w[n],p(n,a),((i=ee(a))!=null?i:[])[n],((r=te(a))!=null?r:[])[n],a==null?void 0:a.class,a==null?void 0:a.className)(m)};return t}return j(S,P(),I(h$1),f==null?void 0:f.class,f==null?void 0:f.className)(m)},x$1=()=>{if(!(!g$1||typeof g$1!="object"))return Object.keys(g$1)};return V.variantKeys=x$1(),V.extend=e,V.base=S,V.slots=w,V.variants=g$1,V.defaultVariants=A,V.compoundSlots=C,V.compoundVariants=h$1,V};
2567
+ var twMerge = /*#__PURE__*/createTailwindMerge(getDefaultConfig);
2568
+
2569
+ var re={twMerge:!0,twMergeConfig:{},responsiveVariants:!1},Z=i=>i||void 0,j=(...i)=>Z(y(i).filter(Boolean).join(" ")),B=null,O={},R=!1,A=(...i)=>v=>v.twMerge?((!B||R)&&(R=!1,B=l(O)?twMerge:extendTailwindMerge(O)),Z(B(j(i)))):j(i),Y=(i,v)=>{for(let e in v)i.hasOwnProperty(e)?i[e]=j(i[e],v[e]):i[e]=v[e];return i},ce=(i,v)=>{let{extend:e$1=null,slots:N={},variants:q={},compoundVariants:C=[],compoundSlots:V=[],defaultVariants:F={}}=i,m={...re,...v},M=e$1!=null&&e$1.base?j(e$1.base,i==null?void 0:i.base):i==null?void 0:i.base,g$1=e$1!=null&&e$1.variants&&!l(e$1.variants)?p(q,e$1.variants):q,h=e$1!=null&&e$1.defaultVariants&&!l(e$1.defaultVariants)?{...e$1.defaultVariants,...F}:F;!l(m.twMergeConfig)&&!u(m.twMergeConfig,O)&&(R=!0,O=m.twMergeConfig);let $=l(N)?{}:{base:i==null?void 0:i.base,...N},w=l(e$1==null?void 0:e$1.slots)?$:Y(e$1==null?void 0:e$1.slots,l($)?{base:i==null?void 0:i.base}:$),d=f=>{if(l(g$1)&&l(N)&&l(e$1==null?void 0:e$1.slots))return A(M,f==null?void 0:f.class,f==null?void 0:f.className)(m);if(C&&!Array.isArray(C))throw new TypeError(`The "compoundVariants" prop must be an array. Received: ${typeof C}`);if(V&&!Array.isArray(V))throw new TypeError(`The "compoundSlots" prop must be an array. Received: ${typeof V}`);let K=(t,n,a=[],s)=>{let r=a;if(typeof n=="string")r=r.concat(g(n).split(" ").map(l=>`${t}:${l}`));else if(Array.isArray(n))r=r.concat(n.reduce((l,c)=>l.concat(`${t}:${c}`),[]));else if(typeof n=="object"&&typeof s=="string"){for(let l in n)if(n.hasOwnProperty(l)&&l===s){let c=n[l];if(c&&typeof c=="string"){let y=g(c);r[s]?r[s]=r[s].concat(y.split(" ").map(u=>`${t}:${u}`)):r[s]=y.split(" ").map(u=>`${t}:${u}`);}else Array.isArray(c)&&c.length>0&&(r[s]=c.reduce((y,u)=>y.concat(`${t}:${u}`),[]));}}return r},U=(t,n=g$1,a$1=null,s=null)=>{var H;let r=n[t];if(!r||l(r))return null;let l$1=(H=s==null?void 0:s[t])!=null?H:f==null?void 0:f[t];if(l$1===null)return null;let c=a(l$1),y=Array.isArray(m.responsiveVariants)&&m.responsiveVariants.length>0||m.responsiveVariants===!0,u=h==null?void 0:h[t],b$1=[];if(typeof c=="object"&&y)for(let[k,I]of Object.entries(c)){let te=r[I];if(k==="initial"){u=I;continue}Array.isArray(m.responsiveVariants)&&!m.responsiveVariants.includes(k)||(b$1=K(k,te,b$1,a$1));}let S=r[c]||r[a(u)];return typeof b$1=="object"&&typeof a$1=="string"&&b$1[a$1]?Y(b$1,S):b$1.length>0?(b$1.push(S),b$1):S},x$1=()=>g$1?Object.keys(g$1).map(t=>U(t,g$1)):null,P=(t,n)=>{if(!g$1||typeof g$1!="object")return null;let a=new Array;for(let s in g$1){let r=U(s,g$1,t,n),l=t==="base"&&typeof r=="string"?r:r&&r[t];l&&(a[a.length]=l);}return a},W={};for(let t in f)f[t]!==void 0&&(W[t]=f[t]);let z=(t,n)=>{var s;let a=typeof(f==null?void 0:f[t])=="object"?{[t]:(s=f[t])==null?void 0:s.initial}:{};return {...h,...W,...a,...n}},D=(t=[],n)=>{let a=[];for(let{class:s,className:r,...l}of t){let c=!0;for(let[y,u]of Object.entries(l)){let b=z(y,n);if(Array.isArray(u)){if(!u.includes(b[y])){c=!1;break}}else if(b[y]!==u){c=!1;break}}c&&(s&&a.push(s),r&&a.push(r));}return a},G=t=>{let n=D(C,t),a=D(e$1==null?void 0:e$1.compoundVariants,t);return x(a,n)},p=t=>{let n=G(t);if(!Array.isArray(n))return n;let a={};for(let s of n)if(typeof s=="string"&&(a.base=A(a.base,s)(m)),typeof s=="object")for(let[r,l]of Object.entries(s))a[r]=A(a[r],l)(m);return a},ee=t=>{if(V.length<1)return null;let n={};for(let{slots:a=[],class:s,className:r,...l$1}of V){if(!l(l$1)){let c=!0;for(let y of Object.keys(l$1)){let u=z(y,t)[y];if(u===void 0||u!==l$1[y]){c=!1;break}}if(!c)continue}for(let c of a)n[c]=n[c]||[],n[c].push([s,r]);}return n};if(!l(N)||!l(e$1==null?void 0:e$1.slots)){let t={};if(typeof w=="object"&&!l(w))for(let n of Object.keys(w))t[n]=a=>{var s,r;return A(w[n],P(n,a),((s=p(a))!=null?s:[])[n],((r=ee(a))!=null?r:[])[n],a==null?void 0:a.class,a==null?void 0:a.className)(m)};return t}return A(M,x$1(),G(),f==null?void 0:f.class,f==null?void 0:f.className)(m)},_=()=>{if(!(!g$1||typeof g$1!="object"))return Object.keys(g$1)};return d.variantKeys=_(),d.extend=e$1,d.base=M,d.slots=w,d.variants=g$1,d.defaultVariants=h,d.compoundSlots=V,d.compoundVariants=C,d};
2609
2570
 
2610
2571
  exports.ce = ce;