bromcom-ui-next 0.1.21 → 0.1.22

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