bromcom-ui 2.12.1-test.0 → 3.0.0-preview.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (581) hide show
  1. package/dist/bromcom-ui/bromcom-ui.css +1 -1
  2. package/dist/bromcom-ui/bromcom-ui.esm.js +1 -1
  3. package/dist/bromcom-ui/p-0125212b.entry.js +5 -0
  4. package/dist/bromcom-ui/{p-58c0a1f5.js → p-014f7aa2.js} +1 -1
  5. package/dist/bromcom-ui/{p-c54aaa8c.entry.js → p-0167c2cc.entry.js} +1 -1
  6. package/dist/bromcom-ui/p-033f2926.entry.js +5 -0
  7. package/dist/bromcom-ui/{p-7d18ce0e.entry.js → p-0c494f44.entry.js} +1 -1
  8. package/dist/bromcom-ui/{p-daeb868a.js → p-0e65fd54.js} +1 -1
  9. package/dist/bromcom-ui/p-14ed2c86.js +5 -0
  10. package/dist/bromcom-ui/{p-7c5763cc.entry.js → p-1ca7e1a1.entry.js} +1 -1
  11. package/dist/bromcom-ui/{p-053dc717.entry.js → p-1d577d30.entry.js} +1 -1
  12. package/dist/bromcom-ui/p-2032843f.entry.js +5 -0
  13. package/dist/bromcom-ui/{p-2aaeb247.entry.js → p-23c01e93.entry.js} +1 -1
  14. package/dist/bromcom-ui/p-2663c49f.entry.js +5 -0
  15. package/dist/bromcom-ui/{p-bdc78a44.entry.js → p-2903e611.entry.js} +1 -1
  16. package/dist/bromcom-ui/p-2ecb8899.entry.js +5 -0
  17. package/dist/bromcom-ui/p-31368d21.entry.js +5 -0
  18. package/dist/bromcom-ui/{p-c02d4055.entry.js → p-370b6020.entry.js} +1 -1
  19. package/dist/bromcom-ui/{p-9850cbce.js → p-397c1438.js} +1 -1
  20. package/dist/bromcom-ui/p-3a944947.entry.js +5 -0
  21. package/dist/bromcom-ui/{p-cebe6c15.entry.js → p-3aa7e1ce.entry.js} +1 -1
  22. package/dist/bromcom-ui/p-3db88841.entry.js +5 -0
  23. package/dist/bromcom-ui/{p-c99dbd93.entry.js → p-3f4d5368.entry.js} +1 -1
  24. package/dist/bromcom-ui/{p-3a60a194.js → p-403d3912.js} +1 -1
  25. package/dist/bromcom-ui/p-40871628.js +5 -0
  26. package/dist/bromcom-ui/p-4254234c.entry.js +5 -0
  27. package/dist/bromcom-ui/p-42a7244e.entry.js +5 -0
  28. package/dist/bromcom-ui/p-4c5168fe.js +5 -0
  29. package/dist/bromcom-ui/{p-69260d36.entry.js → p-51341d24.entry.js} +1 -1
  30. package/dist/bromcom-ui/{p-0bda558d.js → p-588ba8fc.js} +1 -1
  31. package/dist/bromcom-ui/{p-d73d6a2f.entry.js → p-58fa6ecf.entry.js} +1 -1
  32. package/dist/bromcom-ui/p-5a65b538.js +5 -0
  33. package/dist/bromcom-ui/p-5f74f707.js +5 -0
  34. package/dist/bromcom-ui/{p-35f2e15a.js → p-5fbbf611.js} +1 -1
  35. package/dist/bromcom-ui/p-66d74084.js +5 -0
  36. package/dist/bromcom-ui/p-74912375.js +5 -0
  37. package/dist/bromcom-ui/p-7fa410eb.entry.js +5 -0
  38. package/dist/bromcom-ui/{p-626b805d.entry.js → p-87291a4f.entry.js} +1 -1
  39. package/dist/bromcom-ui/p-8d2e1aea.entry.js +5 -0
  40. package/dist/bromcom-ui/p-9acc7a1c.entry.js +5 -0
  41. package/dist/bromcom-ui/p-9f913f3e.entry.js +5 -0
  42. package/dist/bromcom-ui/{p-e82dab5a.entry.js → p-a02650af.entry.js} +1 -1
  43. package/dist/bromcom-ui/p-aa370552.js +5 -0
  44. package/dist/bromcom-ui/{p-7c223356.entry.js → p-ac200139.entry.js} +1 -1
  45. package/dist/bromcom-ui/p-afe35470.entry.js +16 -0
  46. package/dist/bromcom-ui/p-affe097a.entry.js +5 -0
  47. package/dist/bromcom-ui/{p-79d5c3d8.entry.js → p-b702f1e5.entry.js} +1 -1
  48. package/dist/bromcom-ui/p-bc6ecf66.entry.js +5 -0
  49. package/dist/bromcom-ui/{p-313b7bb0.entry.js → p-bdda1f76.entry.js} +1 -1
  50. package/dist/bromcom-ui/p-bde34843.entry.js +5 -0
  51. package/dist/bromcom-ui/{p-f0e30624.entry.js → p-c187994f.entry.js} +1 -1
  52. package/dist/bromcom-ui/p-cc583dbc.js +5 -0
  53. package/dist/bromcom-ui/p-ccc61045.js +5 -0
  54. package/dist/bromcom-ui/{p-67343ad8.entry.js → p-cd12ef44.entry.js} +1 -1
  55. package/dist/bromcom-ui/p-cf164584.js +5 -0
  56. package/dist/bromcom-ui/{p-594a57c3.entry.js → p-cfb0bdbe.entry.js} +1 -1
  57. package/dist/bromcom-ui/{p-d551a51d.entry.js → p-dc23865f.entry.js} +1 -1
  58. package/dist/bromcom-ui/p-ddf90943.entry.js +5 -0
  59. package/dist/bromcom-ui/{p-170cf07d.js → p-e3ce7150.js} +2 -2
  60. package/dist/bromcom-ui/p-e45072df.entry.js +5 -0
  61. package/dist/bromcom-ui/p-e747137c.entry.js +5 -0
  62. package/dist/bromcom-ui/{p-ba9eff2a.entry.js → p-e8f7282a.entry.js} +1 -1
  63. package/dist/bromcom-ui/{p-1c9314bd.entry.js → p-e9672b15.entry.js} +1 -1
  64. package/dist/bromcom-ui/p-ef34f278.entry.js +5 -0
  65. package/dist/bromcom-ui/{p-11a5ae6d.entry.js → p-ef84ca66.entry.js} +1 -1
  66. package/dist/bromcom-ui/{p-1c7ea00b.entry.js → p-ef8636fe.entry.js} +1 -1
  67. package/dist/bromcom-ui/p-f530cf23.js +5 -0
  68. package/dist/bromcom-ui/{p-5dea2654.entry.js → p-f65dae79.entry.js} +1 -1
  69. package/dist/bromcom-ui/p-f68a946f.js +5 -0
  70. package/dist/bromcom-ui/p-f9e5528f.entry.js +5 -0
  71. package/dist/bromcom-ui/{p-1bdfc73a.entry.js → p-fa1eae97.entry.js} +1 -1
  72. package/dist/bromcom-ui/{p-1c801d0c.entry.js → p-fb083e20.entry.js} +1 -1
  73. package/dist/bromcom-ui/p-fb490a1f.entry.js +5 -0
  74. package/dist/cjs/{bcm-1d1fcf21.js → bcm-51d38d17.js} +7 -1
  75. package/dist/cjs/{bcm-accordion_63.cjs.entry.js → bcm-accordion_68.cjs.entry.js} +2641 -1319
  76. package/dist/cjs/bcm-alert.cjs.entry.js +89 -75
  77. package/dist/cjs/bcm-arrow.cjs.entry.js +34 -0
  78. package/dist/cjs/bcm-attendance-actions-comment.cjs.entry.js +10 -9
  79. package/dist/cjs/bcm-attendance-actions-dropdown.cjs.entry.js +10 -9
  80. package/dist/cjs/bcm-autocomplete.cjs.entry.js +1 -1
  81. package/dist/cjs/bcm-box.cjs.entry.js +1 -1
  82. package/dist/cjs/bcm-breadcrumb.cjs.entry.js +3 -3
  83. package/dist/cjs/bcm-caption.cjs.entry.js +10 -9
  84. package/dist/cjs/bcm-card.cjs.entry.js +6 -6
  85. package/dist/cjs/bcm-chip-group.cjs.entry.js +15 -19
  86. package/dist/cjs/bcm-colorpicker.cjs.entry.js +1 -1
  87. package/dist/cjs/bcm-content.cjs.entry.js +1 -1
  88. package/dist/cjs/bcm-date-picker.cjs.entry.js +5 -5
  89. package/dist/cjs/bcm-datetime-picker.cjs.entry.js +9 -9
  90. package/dist/cjs/bcm-default.cjs.entry.js +3 -3
  91. package/dist/cjs/bcm-error-layout.cjs.entry.js +1 -1
  92. package/dist/cjs/bcm-form-2.cjs.entry.js +6 -6
  93. package/dist/cjs/bcm-form-group.cjs.entry.js +1 -1
  94. package/dist/cjs/bcm-input-custom.cjs.entry.js +3 -3
  95. package/dist/cjs/bcm-input-dropdown.cjs.entry.js +10 -10
  96. package/dist/cjs/bcm-message.cjs.entry.js +1 -1
  97. package/dist/cjs/bcm-modal-2-footer.cjs.entry.js +8 -7
  98. package/dist/cjs/bcm-modal-2-header.cjs.entry.js +8 -7
  99. package/dist/cjs/bcm-modal-2.cjs.entry.js +8 -7
  100. package/dist/cjs/bcm-notification.cjs.entry.js +1 -1
  101. package/dist/cjs/bcm-number-input.cjs.entry.js +12 -12
  102. package/dist/cjs/bcm-overlay_2.cjs.entry.js +1 -1
  103. package/dist/cjs/bcm-popconfirm-box-v2.cjs.entry.js +109 -0
  104. package/dist/cjs/bcm-popconfirm-host.cjs.entry.js +135 -0
  105. package/dist/cjs/bcm-range.cjs.entry.js +4 -4
  106. package/dist/cjs/bcm-react-number.cjs.entry.js +1 -1
  107. package/dist/cjs/bcm-resizable-pane.cjs.entry.js +42 -0
  108. package/dist/cjs/bcm-result-footer.cjs.entry.js +39 -0
  109. package/dist/cjs/bcm-result.cjs.entry.js +16 -47
  110. package/dist/cjs/bcm-segment-picker-item.cjs.entry.js +33 -0
  111. package/dist/cjs/bcm-segment-picker.cjs.entry.js +67 -0
  112. package/dist/cjs/bcm-select-group.cjs.entry.js +1 -1
  113. package/dist/cjs/bcm-select-option.cjs.entry.js +1 -1
  114. package/dist/cjs/bcm-skeleton.cjs.entry.js +8 -8
  115. package/dist/cjs/bcm-tab-pane.cjs.entry.js +1 -1
  116. package/dist/cjs/bcm-table.cjs.entry.js +9 -8
  117. package/dist/cjs/bcm-tabs-content.cjs.entry.js +1 -1
  118. package/dist/cjs/bcm-tag.cjs.entry.js +5 -5
  119. package/dist/cjs/bcm-time-picker.cjs.entry.js +5 -5
  120. package/dist/cjs/bcm-timeline-item.cjs.entry.js +1 -1
  121. package/dist/cjs/bcm-timeline.cjs.entry.js +1 -1
  122. package/dist/cjs/bcm-toast.cjs.entry.js +198 -42
  123. package/dist/cjs/bcm-treeview-group.cjs.entry.js +1 -1
  124. package/dist/cjs/bromcom-ui.cjs.js +4 -4
  125. package/dist/cjs/{caption-template-85a18b6d.js → caption-template-1ba40085.js} +10 -10
  126. package/dist/cjs/floating-ui-4c31473e.js +101 -0
  127. package/dist/{esm/floating-ui-3f4394da.js → cjs/floating-ui.dom.esm-f0638c44.js} +8 -93
  128. package/dist/cjs/{generate-7510539d.js → generate-eda14f12.js} +13 -36
  129. package/dist/cjs/{global-711c589c.js → global-971b32f6.js} +2 -2
  130. package/dist/cjs/{index-c591ecec.js → index-bb6ac306.js} +3 -0
  131. package/dist/cjs/{index-5279dea2.js → index-d3b89435.js} +386 -347
  132. package/dist/cjs/{input.style-b5676e6a.js → input.style-3e8b7803.js} +16 -15
  133. package/dist/cjs/{is-load-decorator-15036f37.js → is-load-decorator-60805e8b.js} +1 -1
  134. package/dist/cjs/{label-template-e83447b5.js → label-template-540044c9.js} +8 -7
  135. package/dist/cjs/loader.cjs.js +4 -4
  136. package/dist/cjs/{number-helper-9d2d1d5a.js → number-helper-d14c9546.js} +1 -1
  137. package/dist/cjs/old-bcm-popover-box.cjs.entry.js +10 -9
  138. package/dist/cjs/old-bcm-popover.cjs.entry.js +4 -4
  139. package/dist/cjs/{package-a60955f7.js → package-f644e6eb.js} +1 -1
  140. package/dist/cjs/{popover-placement-d1aa81f0.js → popover-placement-3c0ad75e.js} +1 -1
  141. package/dist/cjs/popover.style-e390b5a1.js +108 -0
  142. package/dist/cjs/result.style-f58d0ac4.js +56 -0
  143. package/dist/cjs/segment-picker.style-ce057603.js +55 -0
  144. package/dist/cjs/{slot-template-29229e8f.js → slot-template-d02ae4e4.js} +2 -2
  145. package/dist/cjs/{string-helper-1ee6dc21.js → string-helper-cc89c9d6.js} +1 -1
  146. package/dist/cjs/types-e4c4d1b2.js +175 -0
  147. package/dist/collection/collection-manifest.json +15 -5
  148. package/dist/collection/components/atoms/{chip/chip-group.css → avatar/avatar.css} +4 -2
  149. package/dist/collection/components/atoms/avatar/avatar.js +13 -3
  150. package/dist/collection/components/atoms/avatar/avatar.style.js +6 -6
  151. package/dist/collection/components/atoms/{icon/icon.css → badge/badge.css} +3 -2
  152. package/dist/collection/components/atoms/badge/badge.js +10 -0
  153. package/dist/collection/components/atoms/badge/badge.style.js +10 -10
  154. package/dist/collection/components/atoms/button/button.css +11 -332
  155. package/dist/collection/components/atoms/button/button.js +429 -241
  156. package/dist/collection/components/atoms/button/button.style.js +89 -0
  157. package/dist/collection/components/atoms/chip/chip-group.js +2 -14
  158. package/dist/collection/components/atoms/chip/chip.css +11 -87
  159. package/dist/collection/components/atoms/chip/chip.js +84 -45
  160. package/dist/collection/components/atoms/chip/chip.style.js +99 -0
  161. package/dist/collection/components/atoms/divider/divider.js +7 -38
  162. package/dist/collection/components/atoms/divider/divider.style.js +19 -0
  163. package/dist/collection/components/atoms/icon/icon.js +14 -37
  164. package/dist/collection/components/atoms/label/label.js +21 -2
  165. package/dist/collection/components/atoms/link/link.js +132 -58
  166. package/dist/collection/components/atoms/link/link.style.js +39 -0
  167. package/dist/collection/components/molecules/accordion/accordion.js +3 -13
  168. package/dist/collection/components/molecules/alert/alert.js +118 -137
  169. package/dist/collection/components/molecules/alert/alert.style.js +65 -0
  170. package/dist/collection/components/molecules/checkbox/checkbox.css +10 -317
  171. package/dist/collection/components/molecules/checkbox/checkbox.js +119 -142
  172. package/dist/collection/components/molecules/checkbox/checkbox.style.js +156 -0
  173. package/dist/collection/components/molecules/{checkbox/group.js → checkbox-group/checkbox-group.js} +23 -40
  174. package/dist/collection/components/molecules/checkbox-group/checkbox-group.style.js +40 -0
  175. package/dist/collection/components/molecules/color-input/color-input.js +3 -1
  176. package/dist/collection/components/molecules/color-input/color-input.style.js +17 -0
  177. package/dist/collection/components/molecules/drawer/drawer.css +0 -81
  178. package/dist/collection/components/molecules/drawer/drawer.js +7 -13
  179. package/dist/collection/components/molecules/drawer/drawer.style.js +55 -0
  180. package/dist/collection/components/molecules/dropdown/dropdown.js +13 -7
  181. package/dist/collection/components/molecules/empty/empty.js +91 -3
  182. package/dist/collection/components/molecules/empty/empty.style.js +64 -0
  183. package/dist/collection/components/molecules/expansion-panel/bcm-expansion-panel-description.js +16 -0
  184. package/dist/collection/components/molecules/expansion-panel/bcm-expansion-panel-extra.js +16 -0
  185. package/dist/collection/components/molecules/expansion-panel/bcm-expansion-panel-header.js +16 -0
  186. package/dist/collection/components/molecules/expansion-panel/expansion-panel.js +91 -57
  187. package/dist/collection/components/molecules/expansion-panel/expansion-panel.style.js +91 -0
  188. package/dist/collection/components/molecules/input/input.js +78 -66
  189. package/dist/collection/components/molecules/input/input.style.js +15 -14
  190. package/dist/collection/components/molecules/menu/menu.js +14 -0
  191. package/dist/collection/components/molecules/modal/modal-footer.js +41 -0
  192. package/dist/collection/components/molecules/modal/modal-header.js +39 -0
  193. package/dist/collection/components/molecules/modal/modal.css +1 -139
  194. package/dist/collection/components/molecules/modal/modal.js +9 -16
  195. package/dist/collection/components/molecules/modal/modal.style.js +111 -0
  196. package/dist/collection/components/molecules/number-input/number-input.js +1 -1
  197. package/dist/collection/components/molecules/number-input/react-input.js +1 -1
  198. package/dist/collection/components/molecules/popconfirm/popconfirm-box.css +22 -6
  199. package/dist/collection/components/molecules/popconfirm/popconfirm-box.js +11 -9
  200. package/dist/collection/components/molecules/popconfirm-v2/pop-confirm-host.js +309 -0
  201. package/dist/collection/components/molecules/popconfirm-v2/popconf.style.js +57 -0
  202. package/dist/collection/components/molecules/popconfirm-v2/popconfirm-v2.js +201 -0
  203. package/dist/collection/components/molecules/popover/popover.js +3 -1
  204. package/dist/collection/components/molecules/popover/popover.style.js +42 -0
  205. package/dist/collection/components/molecules/radio/radio-group.js +6 -2
  206. package/dist/collection/components/molecules/radio/radio-group.style.js +37 -0
  207. package/dist/collection/components/{atoms/divider/divider.css → molecules/radio/radio.css} +9 -17
  208. package/dist/collection/components/molecules/radio/radio.js +21 -22
  209. package/dist/collection/components/molecules/radio/radio.style.js +67 -0
  210. package/dist/collection/components/molecules/result/result-footer.js +41 -0
  211. package/dist/collection/components/molecules/result/result.js +36 -65
  212. package/dist/collection/components/molecules/result/result.style.js +51 -0
  213. package/dist/collection/components/molecules/search/search.js +10 -13
  214. package/dist/collection/components/molecules/stepper/stepper.css +41 -35
  215. package/dist/collection/components/molecules/switch/switch.js +11 -24
  216. package/dist/collection/components/molecules/switch/switch.style.js +182 -0
  217. package/dist/collection/components/molecules/tab-group/tab-group.js +3 -28
  218. package/dist/collection/components/molecules/tab-group/tab-group.syle.js +63 -0
  219. package/dist/collection/components/molecules/tab-group/tab-item-header.js +7 -32
  220. package/dist/collection/components/molecules/tab-group/tab-item.js +7 -6
  221. package/dist/collection/components/molecules/textarea/textarea.js +55 -44
  222. package/dist/collection/components/molecules/textarea/textarea.style.js +122 -0
  223. package/dist/collection/components/molecules/tooltip/tooltip.js +5 -3
  224. package/dist/collection/components/molecules/tooltip/tooltip.style.js +38 -0
  225. package/dist/collection/components/organism/datetime-picker/datetime-picker.css +20 -20
  226. package/dist/collection/components/organism/list/list.css +73 -324
  227. package/dist/collection/components/organism/list/list.js +2 -2
  228. package/dist/collection/components/{molecules/checkbox/group.css → other/arrow/arrow.css} +24 -31
  229. package/dist/collection/components/other/arrow/arrow.js +70 -0
  230. package/dist/collection/components/other/resizable-pane/resizable-pane.js +79 -0
  231. package/dist/collection/components/other/segment-picker/segment-picker-item.js +158 -0
  232. package/dist/collection/components/other/segment-picker/segment-picker.js +252 -0
  233. package/dist/collection/components/other/segment-picker/segment-picker.style.js +50 -0
  234. package/dist/collection/components/other/shortcut/shortcut.js +12 -6
  235. package/dist/collection/components/other/shortcut/shortcut.style.js +38 -0
  236. package/dist/collection/components/other/toast/toast.js +15 -31
  237. package/dist/collection/components/other/toast/toast.style.js +176 -0
  238. package/dist/collection/components/other_deprecated/listbox/listbox-item.js +1 -1
  239. package/dist/collection/components/other_deprecated/listbox/listbox.js +1 -1
  240. package/dist/collection/components/other_deprecated/old-input/old-input.css +38 -24
  241. package/dist/collection/components/other_deprecated/old-input/old-input.js +4 -2
  242. package/dist/collection/components/other_deprecated/old-popover/old-popover-box.css +3 -2
  243. package/dist/collection/components/third-parts/colorful/colorful.css +0 -242
  244. package/dist/collection/components/third-parts/rc-picker/rc-picker.css +31 -27
  245. package/dist/collection/helper/generate.js +11 -16
  246. package/dist/collection/helper/index.js +1 -0
  247. package/dist/collection/helper/pop-confirm-helper.js +76 -0
  248. package/dist/collection/helper/popover-helper.js +8 -7
  249. package/dist/collection/helper/tooltip-helper.js +3 -15
  250. package/dist/collection/models/bcm.js +9 -1
  251. package/dist/collection/templates/caption-template.js +9 -9
  252. package/dist/collection/templates/checkbox-template.js +11 -16
  253. package/dist/collection/templates/icon-template.js +4 -19
  254. package/dist/collection/templates/info-footer-template.js +1 -1
  255. package/dist/collection/templates/label-template.js +6 -5
  256. package/dist/collection/templates/list-item-template.js +3 -2
  257. package/dist/collection/templates/step-template.js +1 -1
  258. package/dist/components/avatar.js +17 -20
  259. package/dist/components/badge.js +16 -13
  260. package/dist/components/bcm-accordion.js +3 -6
  261. package/dist/components/bcm-alert.js +99 -88
  262. package/dist/components/{bcm-input-2.d.ts → bcm-arrow.d.ts} +4 -4
  263. package/dist/components/bcm-arrow.js +47 -0
  264. package/dist/components/bcm-attendance-actions-comment.js +3 -3
  265. package/dist/components/bcm-attendance-actions-dropdown.js +3 -3
  266. package/dist/components/bcm-attendance-actions.js +3 -3
  267. package/dist/components/bcm-autocomplete.js +6 -12
  268. package/dist/components/bcm-button-group.js +1 -1
  269. package/dist/components/bcm-caption.js +3 -2
  270. package/dist/components/bcm-checkbox-group.js +62 -40
  271. package/dist/components/bcm-chip-group.js +6 -9
  272. package/dist/components/bcm-color-input.js +17 -2
  273. package/dist/components/bcm-date-picker.js +2 -2
  274. package/dist/components/bcm-date.js +3 -2
  275. package/dist/components/bcm-drawer.js +61 -29
  276. package/dist/components/bcm-dropdown.js +3 -3
  277. package/dist/components/bcm-expansion-panel-description.d.ts +11 -0
  278. package/dist/components/bcm-expansion-panel-description.js +36 -0
  279. package/dist/components/bcm-expansion-panel-extra.d.ts +11 -0
  280. package/dist/components/bcm-expansion-panel-extra.js +36 -0
  281. package/dist/components/bcm-expansion-panel-header.d.ts +11 -0
  282. package/dist/components/bcm-expansion-panel-header.js +36 -0
  283. package/dist/components/bcm-expansion-panel.js +118 -52
  284. package/dist/components/bcm-form-2.js +1 -1
  285. package/dist/components/bcm-input-dropdown.js +4 -3
  286. package/dist/components/bcm-item.js +1 -1
  287. package/dist/components/bcm-modal-2-footer.js +1 -1
  288. package/dist/components/bcm-modal-2-header.js +1 -1
  289. package/dist/components/bcm-modal-2.js +2 -2
  290. package/dist/components/bcm-modal-footer.d.ts +11 -0
  291. package/dist/components/bcm-modal-footer.js +47 -0
  292. package/dist/components/bcm-modal-header.d.ts +11 -0
  293. package/dist/components/bcm-modal-header.js +45 -0
  294. package/dist/components/bcm-modal.js +12 -25
  295. package/dist/components/bcm-number-input.js +4 -3
  296. package/dist/components/bcm-popconfirm-box-v2.d.ts +11 -0
  297. package/dist/components/bcm-popconfirm-box-v2.js +132 -0
  298. package/dist/components/bcm-popconfirm-host.d.ts +11 -0
  299. package/dist/components/bcm-popconfirm-host.js +158 -0
  300. package/dist/components/bcm-popconfirm.js +5 -17
  301. package/dist/components/bcm-popover.js +11 -10
  302. package/dist/components/bcm-progress.js +1 -1
  303. package/dist/components/bcm-radio-group.js +43 -4
  304. package/dist/components/bcm-range.js +1 -1
  305. package/dist/components/bcm-resizable-pane.d.ts +11 -0
  306. package/dist/components/bcm-resizable-pane.js +60 -0
  307. package/dist/components/{bcm-checkbox-lite.d.ts → bcm-result-footer.d.ts} +4 -4
  308. package/dist/components/bcm-result-footer.js +47 -0
  309. package/dist/components/bcm-result.js +20 -61
  310. package/dist/components/bcm-segment-picker-item.d.ts +11 -0
  311. package/dist/components/bcm-segment-picker-item.js +51 -0
  312. package/dist/components/bcm-segment-picker.d.ts +11 -0
  313. package/dist/components/bcm-segment-picker.js +87 -0
  314. package/dist/components/bcm-select.js +6 -12
  315. package/dist/components/bcm-shortcut.js +48 -8
  316. package/dist/components/bcm-stepper.js +5 -4
  317. package/dist/components/bcm-switch.js +189 -17
  318. package/dist/components/bcm-tab-group.js +5 -13
  319. package/dist/components/bcm-tab-item-header.js +9 -17
  320. package/dist/components/bcm-tab-item.js +8 -7
  321. package/dist/components/bcm-table.js +2 -1
  322. package/dist/components/bcm-tag.js +1 -1
  323. package/dist/components/bcm-time-picker.js +1 -1
  324. package/dist/components/bcm-toast.js +188 -32
  325. package/dist/components/bcm.js +8 -2
  326. package/dist/components/button.js +232 -184
  327. package/dist/components/caption-template.js +9 -9
  328. package/dist/components/checkbox.js +94 -104
  329. package/dist/components/checkbox.style.js +159 -0
  330. package/dist/components/chip.js +152 -40
  331. package/dist/components/colorful.js +1 -1
  332. package/dist/components/datetime-picker.js +3 -3
  333. package/dist/components/divider.js +21 -13
  334. package/dist/components/empty.js +75 -3
  335. package/dist/{cjs/floating-ui-5b396838.js → components/floating-ui.dom.esm.js} +1 -96
  336. package/dist/components/floating-ui.js +2 -1407
  337. package/dist/components/generate.js +14 -37
  338. package/dist/components/icon.js +14 -13
  339. package/dist/components/index.d.ts +14 -4
  340. package/dist/components/index.js +12 -2
  341. package/dist/components/index4.js +2590 -173
  342. package/dist/components/index5.js +171 -2549
  343. package/dist/components/input.js +77 -54
  344. package/dist/components/input.style.js +16 -15
  345. package/dist/components/label.js +12 -9
  346. package/dist/components/link.js +83 -39
  347. package/dist/components/linked.js +2 -2
  348. package/dist/components/list.js +28 -33
  349. package/dist/components/listbox-item.js +21 -9
  350. package/dist/components/listbox.js +7 -13
  351. package/dist/components/menu.js +15 -1
  352. package/dist/components/modal.style.js +114 -0
  353. package/dist/components/old-bcm-popover.js +1 -1
  354. package/dist/components/old-input.js +5 -3
  355. package/dist/components/old-popover-box.js +1 -1
  356. package/dist/components/popconfirm-box.js +12 -22
  357. package/dist/components/popover.style.js +108 -0
  358. package/dist/components/radio.js +79 -24
  359. package/dist/components/rc-overflow.js +1 -1
  360. package/dist/components/rc-picker.js +2 -2
  361. package/dist/components/result.style.js +54 -0
  362. package/dist/components/search.js +14 -16
  363. package/dist/components/segment-picker.style.js +53 -0
  364. package/dist/components/select-box.js +6 -12
  365. package/dist/components/skeleton.js +2 -2
  366. package/dist/components/step.js +1 -1
  367. package/dist/components/string-helper.js +1 -1
  368. package/dist/components/tab-group.syle.js +66 -0
  369. package/dist/components/textarea.js +152 -36
  370. package/dist/components/tooltip-helper.js +3 -16
  371. package/dist/components/tooltip.js +5 -4
  372. package/dist/esm/{bcm-a50d55ba.js → bcm-7f07539b.js} +7 -1
  373. package/dist/esm/{bcm-accordion_63.entry.js → bcm-accordion_68.entry.js} +2198 -881
  374. package/dist/esm/bcm-alert.entry.js +89 -75
  375. package/dist/esm/bcm-arrow.entry.js +30 -0
  376. package/dist/esm/bcm-attendance-actions-comment.entry.js +10 -9
  377. package/dist/esm/bcm-attendance-actions-dropdown.entry.js +10 -9
  378. package/dist/esm/bcm-autocomplete.entry.js +1 -1
  379. package/dist/esm/bcm-box.entry.js +1 -1
  380. package/dist/esm/bcm-breadcrumb.entry.js +3 -3
  381. package/dist/esm/bcm-caption.entry.js +10 -9
  382. package/dist/esm/bcm-card.entry.js +6 -6
  383. package/dist/esm/bcm-chip-group.entry.js +15 -19
  384. package/dist/esm/bcm-colorpicker.entry.js +1 -1
  385. package/dist/esm/bcm-content.entry.js +1 -1
  386. package/dist/esm/bcm-date-picker.entry.js +5 -5
  387. package/dist/esm/bcm-datetime-picker.entry.js +9 -9
  388. package/dist/esm/bcm-default.entry.js +3 -3
  389. package/dist/esm/bcm-error-layout.entry.js +1 -1
  390. package/dist/esm/bcm-form-2.entry.js +6 -6
  391. package/dist/esm/bcm-form-group.entry.js +1 -1
  392. package/dist/esm/bcm-input-custom.entry.js +3 -3
  393. package/dist/esm/bcm-input-dropdown.entry.js +10 -10
  394. package/dist/esm/bcm-message.entry.js +1 -1
  395. package/dist/esm/bcm-modal-2-footer.entry.js +8 -7
  396. package/dist/esm/bcm-modal-2-header.entry.js +8 -7
  397. package/dist/esm/bcm-modal-2.entry.js +8 -7
  398. package/dist/esm/bcm-notification.entry.js +1 -1
  399. package/dist/esm/bcm-number-input.entry.js +12 -12
  400. package/dist/esm/bcm-overlay_2.entry.js +1 -1
  401. package/dist/esm/bcm-popconfirm-box-v2.entry.js +105 -0
  402. package/dist/esm/bcm-popconfirm-host.entry.js +131 -0
  403. package/dist/esm/bcm-range.entry.js +4 -4
  404. package/dist/esm/bcm-react-number.entry.js +1 -1
  405. package/dist/esm/bcm-resizable-pane.entry.js +38 -0
  406. package/dist/esm/bcm-result-footer.entry.js +35 -0
  407. package/dist/esm/bcm-result.entry.js +16 -47
  408. package/dist/esm/bcm-segment-picker-item.entry.js +29 -0
  409. package/dist/esm/bcm-segment-picker.entry.js +63 -0
  410. package/dist/esm/bcm-select-group.entry.js +1 -1
  411. package/dist/esm/bcm-select-option.entry.js +1 -1
  412. package/dist/esm/bcm-skeleton.entry.js +8 -8
  413. package/dist/esm/bcm-tab-pane.entry.js +1 -1
  414. package/dist/esm/bcm-table.entry.js +9 -8
  415. package/dist/esm/bcm-tabs-content.entry.js +1 -1
  416. package/dist/esm/bcm-tag.entry.js +5 -5
  417. package/dist/esm/bcm-time-picker.entry.js +5 -5
  418. package/dist/esm/bcm-timeline-item.entry.js +1 -1
  419. package/dist/esm/bcm-timeline.entry.js +1 -1
  420. package/dist/esm/bcm-toast.entry.js +192 -36
  421. package/dist/esm/bcm-treeview-group.entry.js +1 -1
  422. package/dist/esm/bromcom-ui.js +5 -5
  423. package/dist/esm/{caption-template-3cd42c3b.js → caption-template-56977835.js} +10 -10
  424. package/dist/esm/floating-ui-4016b544.js +99 -0
  425. package/dist/esm/floating-ui.dom.esm-40a07b59.js +1411 -0
  426. package/dist/esm/{generate-74379aca.js → generate-8470dd6c.js} +14 -37
  427. package/dist/esm/{global-e20393a3.js → global-e694da71.js} +2 -2
  428. package/dist/esm/{index-0615c2b8.js → index-15387314.js} +3 -1
  429. package/dist/esm/{index-3bc8c6e3.js → index-9f698d35.js} +386 -347
  430. package/dist/esm/{input.style-e855c0f3.js → input.style-fe41ebc8.js} +16 -15
  431. package/dist/esm/{is-load-decorator-8277e3b8.js → is-load-decorator-5b0610df.js} +1 -1
  432. package/dist/esm/{label-template-ef97aadb.js → label-template-c7e70e5f.js} +8 -7
  433. package/dist/esm/loader.js +5 -5
  434. package/dist/esm/{number-helper-6c691943.js → number-helper-56061510.js} +1 -1
  435. package/dist/esm/old-bcm-popover-box.entry.js +10 -9
  436. package/dist/esm/old-bcm-popover.entry.js +4 -4
  437. package/dist/esm/{package-0b936309.js → package-387afefd.js} +1 -1
  438. package/dist/esm/{popover-placement-1b15cc99.js → popover-placement-6391b815.js} +1 -1
  439. package/dist/esm/popover.style-be349acc.js +104 -0
  440. package/dist/esm/result.style-de3bc950.js +54 -0
  441. package/dist/esm/segment-picker.style-1e837fe7.js +53 -0
  442. package/dist/esm/{slot-template-0d958dcc.js → slot-template-250f6ed4.js} +2 -2
  443. package/dist/esm/{string-helper-b4602002.js → string-helper-243b3e1d.js} +1 -1
  444. package/dist/esm/types-ec7dcf4f.js +173 -0
  445. package/dist/types/components/atoms/avatar/avatar.style.d.ts +21 -21
  446. package/dist/types/components/atoms/button/button.d.ts +32 -20
  447. package/dist/types/components/atoms/button/button.style.d.ts +334 -0
  448. package/dist/types/components/atoms/chip/chip.d.ts +4 -14
  449. package/dist/types/components/atoms/chip/chip.style.d.ts +387 -0
  450. package/dist/types/components/atoms/divider/divider.d.ts +1 -2
  451. package/dist/types/components/atoms/divider/divider.style.d.ts +42 -0
  452. package/dist/types/components/atoms/icon/icon.d.ts +0 -2
  453. package/dist/types/components/atoms/label/label.d.ts +1 -0
  454. package/dist/types/components/atoms/link/link.d.ts +10 -6
  455. package/dist/types/components/atoms/link/link.style.d.ts +171 -0
  456. package/dist/types/components/molecules/alert/alert.d.ts +15 -17
  457. package/dist/types/components/molecules/alert/alert.style.d.ts +331 -0
  458. package/dist/types/components/molecules/checkbox/checkbox.d.ts +16 -29
  459. package/dist/types/components/molecules/checkbox/checkbox.style.d.ts +498 -0
  460. package/dist/types/components/molecules/checkbox-group/checkbox-group.style.d.ts +108 -0
  461. package/dist/types/components/molecules/color-input/color-input.d.ts +0 -1
  462. package/dist/types/components/molecules/color-input/color-input.style.d.ts +10 -0
  463. package/dist/types/components/molecules/drawer/drawer.style.d.ts +252 -0
  464. package/dist/types/components/molecules/dropdown/dropdown.d.ts +2 -2
  465. package/dist/types/components/molecules/empty/empty.d.ts +6 -0
  466. package/dist/types/components/molecules/empty/empty.style.d.ts +296 -0
  467. package/dist/types/components/molecules/expansion-panel/bcm-expansion-panel-description.d.ts +6 -0
  468. package/dist/types/components/molecules/expansion-panel/bcm-expansion-panel-extra.d.ts +6 -0
  469. package/dist/types/components/molecules/expansion-panel/bcm-expansion-panel-header.d.ts +6 -0
  470. package/dist/types/components/molecules/expansion-panel/expansion-panel.d.ts +6 -5
  471. package/dist/types/components/molecules/expansion-panel/expansion-panel.style.d.ts +437 -0
  472. package/dist/types/components/molecules/input/input.d.ts +2 -2
  473. package/dist/types/components/molecules/modal/modal-footer.d.ts +7 -0
  474. package/dist/types/components/molecules/modal/modal-header.d.ts +7 -0
  475. package/dist/types/components/molecules/modal/modal.style.d.ts +364 -0
  476. package/dist/types/components/molecules/popconfirm/popconfirm-box.d.ts +1 -1
  477. package/dist/types/components/molecules/popconfirm-v2/pop-confirm-host.d.ts +26 -0
  478. package/dist/types/components/molecules/popconfirm-v2/popconf.style.d.ts +277 -0
  479. package/dist/types/components/molecules/popconfirm-v2/popconfirm-v2.d.ts +15 -0
  480. package/dist/types/components/molecules/popover/popover.style.d.ts +103 -0
  481. package/dist/types/components/molecules/radio/radio-group.style.d.ts +108 -0
  482. package/dist/types/components/molecules/radio/radio.style.d.ts +202 -0
  483. package/dist/types/components/molecules/result/result-footer.d.ts +7 -0
  484. package/dist/types/components/molecules/result/result.d.ts +3 -7
  485. package/dist/types/components/molecules/result/result.style.d.ts +180 -0
  486. package/dist/types/components/molecules/switch/switch.style.d.ts +537 -0
  487. package/dist/types/components/molecules/tab-group/tab-group.d.ts +0 -1
  488. package/dist/types/components/molecules/tab-group/tab-group.syle.d.ts +236 -0
  489. package/dist/types/components/molecules/tab-group/tab-item-header.d.ts +0 -1
  490. package/dist/types/components/molecules/textarea/textarea.d.ts +2 -2
  491. package/dist/types/components/molecules/textarea/textarea.style.d.ts +610 -0
  492. package/dist/types/components/molecules/tooltip/tooltip.style.d.ts +94 -0
  493. package/dist/types/components/other/arrow/arrow.d.ts +7 -0
  494. package/dist/types/components/other/resizable-pane/resizable-pane.d.ts +11 -0
  495. package/dist/types/components/other/segment-picker/segment-picker-item.d.ts +12 -0
  496. package/dist/types/components/other/segment-picker/segment-picker.d.ts +35 -0
  497. package/dist/types/components/other/segment-picker/segment-picker.style.d.ts +150 -0
  498. package/dist/types/components/other/shortcut/shortcut.style.d.ts +91 -0
  499. package/dist/types/components/other/toast/toast.style.d.ts +539 -0
  500. package/dist/types/components.d.ts +448 -278
  501. package/dist/types/helper/generate.d.ts +0 -3
  502. package/dist/types/helper/index.d.ts +1 -0
  503. package/dist/types/helper/pop-confirm-helper.d.ts +23 -0
  504. package/dist/types/helper/tooltip-helper.d.ts +0 -1
  505. package/dist/types/models/bcm-types.d.ts +3 -2
  506. package/dist/types/models/bcm.d.ts +7 -1
  507. package/dist/types/templates/icon-template.d.ts +2 -2
  508. package/dist/types/templates/label-template.d.ts +1 -0
  509. package/package.json +2 -2
  510. package/dist/bromcom-ui/p-0345ed68.entry.js +0 -5
  511. package/dist/bromcom-ui/p-069ae664.entry.js +0 -5
  512. package/dist/bromcom-ui/p-08c75801.js +0 -5
  513. package/dist/bromcom-ui/p-193d926a.entry.js +0 -5
  514. package/dist/bromcom-ui/p-228c74e9.entry.js +0 -5
  515. package/dist/bromcom-ui/p-29c4dc0a.entry.js +0 -5
  516. package/dist/bromcom-ui/p-2d34eb30.entry.js +0 -5
  517. package/dist/bromcom-ui/p-2df6b47d.js +0 -5
  518. package/dist/bromcom-ui/p-2ee89105.entry.js +0 -5
  519. package/dist/bromcom-ui/p-305b0bc8.entry.js +0 -5
  520. package/dist/bromcom-ui/p-3238bf36.js +0 -5
  521. package/dist/bromcom-ui/p-3b863650.entry.js +0 -5
  522. package/dist/bromcom-ui/p-3fac58f7.js +0 -5
  523. package/dist/bromcom-ui/p-43c578cf.js +0 -5
  524. package/dist/bromcom-ui/p-4f05c6a4.entry.js +0 -5
  525. package/dist/bromcom-ui/p-4f6eb6d6.js +0 -5
  526. package/dist/bromcom-ui/p-6e5f5f36.js +0 -5
  527. package/dist/bromcom-ui/p-7400e3c3.entry.js +0 -5
  528. package/dist/bromcom-ui/p-74e6d2b6.js +0 -5
  529. package/dist/bromcom-ui/p-87d9dff7.entry.js +0 -5
  530. package/dist/bromcom-ui/p-8e683b32.js +0 -5
  531. package/dist/bromcom-ui/p-a2ed89f0.entry.js +0 -5
  532. package/dist/bromcom-ui/p-a313fba6.js +0 -5
  533. package/dist/bromcom-ui/p-ae57f046.entry.js +0 -5
  534. package/dist/bromcom-ui/p-bbae06ed.entry.js +0 -5
  535. package/dist/bromcom-ui/p-d1298c40.js +0 -5
  536. package/dist/bromcom-ui/p-e99cc26b.entry.js +0 -5
  537. package/dist/bromcom-ui/p-ea7368b4.entry.js +0 -5
  538. package/dist/bromcom-ui/p-ec1fe98f.entry.js +0 -16
  539. package/dist/bromcom-ui/p-ece578ef.entry.js +0 -5
  540. package/dist/cjs/bcm-input-2.cjs.entry.js +0 -153
  541. package/dist/cjs/bcm-popover.cjs.entry.js +0 -230
  542. package/dist/cjs/index-d321de96.js +0 -193
  543. package/dist/cjs/types-cc4adee7.js +0 -19
  544. package/dist/cjs/validators-9369c82a.js +0 -33
  545. package/dist/collection/components/atoms/link/link.css +0 -175
  546. package/dist/collection/components/atoms/states/button.states.js +0 -31
  547. package/dist/collection/components/molecules/accordion/accordion.css +0 -127
  548. package/dist/collection/components/molecules/alert/alert.css +0 -191
  549. package/dist/collection/components/molecules/alert/types.js +0 -23
  550. package/dist/collection/components/molecules/checkbox/checkbox-lite.js +0 -236
  551. package/dist/collection/components/molecules/expansion-panel/expansion-panel.css +0 -238
  552. package/dist/collection/components/molecules/input/input.css +0 -365
  553. package/dist/collection/components/molecules/input/input2.js +0 -918
  554. package/dist/collection/components/molecules/result/result.css +0 -164
  555. package/dist/collection/components/molecules/result/types.js +0 -22
  556. package/dist/collection/components/molecules/search/search.css +0 -365
  557. package/dist/collection/components/molecules/states/alert.states.js +0 -25
  558. package/dist/collection/components/molecules/switch/switch.css +0 -434
  559. package/dist/collection/components/molecules/textarea/textarea.css +0 -365
  560. package/dist/collection/components/molecules/textarea/types.js +0 -13
  561. package/dist/collection/global/components/_checkbox.css +0 -378
  562. package/dist/components/bcm-checkbox-lite.js +0 -10
  563. package/dist/components/bcm-input-2.js +0 -225
  564. package/dist/components/checkbox-lite.js +0 -97
  565. package/dist/components/input-template.js +0 -90
  566. package/dist/components/validators.js +0 -35
  567. package/dist/esm/bcm-input-2.entry.js +0 -149
  568. package/dist/esm/bcm-popover.entry.js +0 -226
  569. package/dist/esm/index-7e71bbc8.js +0 -191
  570. package/dist/esm/types-6f06fa1a.js +0 -19
  571. package/dist/esm/validators-c067048c.js +0 -31
  572. package/dist/types/components/atoms/states/button.states.d.ts +0 -7
  573. package/dist/types/components/molecules/alert/types.d.ts +0 -25
  574. package/dist/types/components/molecules/checkbox/checkbox-lite.d.ts +0 -14
  575. package/dist/types/components/molecules/input/input2.d.ts +0 -64
  576. package/dist/types/components/molecules/result/types.d.ts +0 -19
  577. package/dist/types/components/molecules/states/alert.states.d.ts +0 -7
  578. package/dist/types/components/molecules/textarea/types.d.ts +0 -9
  579. /package/dist/collection/components/{third-parts/rc-picker → organism/date}/date.js +0 -0
  580. /package/dist/types/components/molecules/{checkbox/group.d.ts → checkbox-group/checkbox-group.d.ts} +0 -0
  581. /package/dist/types/components/{third-parts/rc-picker → organism/date}/date.d.ts +0 -0
@@ -2,57 +2,24 @@
2
2
  * Built with Stencil
3
3
  * Copyright (c) Bromcom.
4
4
  */
5
- var a=t=>typeof t=="boolean"?`${t}`:t===0?"0":t,l=t=>!t||typeof t!="object"||Object.keys(t).length===0,u=(t,e)=>JSON.stringify(t)===JSON.stringify(e);function i(t,e){t.forEach(function(n){Array.isArray(n)?i(n,e):e.push(n);});}function y(t){let e=[];return i(t,e),e}var x=(...t)=>y(t).filter(Boolean),p=(t,e)=>{let n={},c=Object.keys(t),f=Object.keys(e);for(let o of c)if(f.includes(o)){let r=t[o],s=e[o];typeof r=="object"&&typeof s=="object"?n[o]=p(r,s):n[o]=s+" "+r;}else n[o]=t[o];for(let o of f)c.includes(o)||(n[o]=e[o]);return n},g=t=>!t||typeof t!="string"?t:t.replace(/\s+/g," ").trim();
5
+ import { c as createCommonjsModule } from './_commonjsHelpers-7002e5de.js';
6
6
 
7
- /**
8
- * The code in this file is copied from https://github.com/lukeed/clsx and modified to suit the needs of tailwind-merge better.
9
- *
10
- * Specifically:
11
- * - Runtime code from https://github.com/lukeed/clsx/blob/v1.2.1/src/index.js
12
- * - TypeScript types from https://github.com/lukeed/clsx/blob/v1.2.1/clsx.d.ts
13
- *
14
- * Original code has MIT license: Copyright (c) Luke Edwards <luke.edwards05@gmail.com> (lukeed.com)
15
- */
16
- function twJoin() {
17
- var index = 0;
18
- var argument;
19
- var resolvedValue;
20
- var string = '';
21
- while (index < arguments.length) {
22
- if (argument = arguments[index++]) {
23
- if (resolvedValue = toValue(argument)) {
24
- string && (string += ' ');
25
- string += resolvedValue;
26
- }
27
- }
28
- }
29
- return string;
30
- }
31
- function toValue(mix) {
32
- if (typeof mix === 'string') {
33
- return mix;
34
- }
35
- var resolvedValue;
36
- var string = '';
37
- for (var k = 0; k < mix.length; k++) {
38
- if (mix[k]) {
39
- if (resolvedValue = toValue(mix[k])) {
40
- string && (string += ' ');
41
- string += resolvedValue;
42
- }
43
- }
44
- }
45
- return string;
46
- }
7
+ var l=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,u=e=>!e||typeof e!="object"||Object.keys(e).length===0,x=(e,o)=>JSON.stringify(e)===JSON.stringify(o);function i(e,o){e.forEach(function(r){Array.isArray(r)?i(r,o):o.push(r);});}function y(e){let o=[];return i(e,o),o}var a=(...e)=>y(e).filter(Boolean),p=(e,o)=>{let r={},c=Object.keys(e),f=Object.keys(o);for(let t of c)if(f.includes(t)){let s=e[t],n=o[t];typeof s=="object"&&typeof n=="object"?r[t]=p(s,n):Array.isArray(s)||Array.isArray(n)?r[t]=a(n,s):r[t]=n+" "+s;}else r[t]=e[t];for(let t of f)c.includes(t)||(r[t]=o[t]);return r},g=e=>!e||typeof e!="string"?e:e.replace(/\s+/g," ").trim();
8
+
9
+ var bundleCjs = createCommonjsModule(function (module, exports) {
47
10
 
48
- var CLASS_PART_SEPARATOR = '-';
11
+ Object.defineProperty(exports, Symbol.toStringTag, {
12
+ value: 'Module'
13
+ });
14
+ const CLASS_PART_SEPARATOR = '-';
49
15
  function createClassUtils(config) {
50
- var classMap = createClassMap(config);
51
- var conflictingClassGroups = config.conflictingClassGroups,
52
- _config$conflictingCl = config.conflictingClassGroupModifiers,
53
- conflictingClassGroupModifiers = _config$conflictingCl === void 0 ? {} : _config$conflictingCl;
16
+ const classMap = createClassMap(config);
17
+ const {
18
+ conflictingClassGroups,
19
+ conflictingClassGroupModifiers
20
+ } = config;
54
21
  function getClassGroupId(className) {
55
- var classParts = className.split(CLASS_PART_SEPARATOR);
22
+ const classParts = className.split(CLASS_PART_SEPARATOR);
56
23
  // 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.
57
24
  if (classParts[0] === '' && classParts.length !== 1) {
58
25
  classParts.shift();
@@ -60,41 +27,40 @@ function createClassUtils(config) {
60
27
  return getGroupRecursive(classParts, classMap) || getGroupIdForArbitraryProperty(className);
61
28
  }
62
29
  function getConflictingClassGroupIds(classGroupId, hasPostfixModifier) {
63
- var conflicts = conflictingClassGroups[classGroupId] || [];
30
+ const conflicts = conflictingClassGroups[classGroupId] || [];
64
31
  if (hasPostfixModifier && conflictingClassGroupModifiers[classGroupId]) {
65
- return [].concat(conflicts, conflictingClassGroupModifiers[classGroupId]);
32
+ return [...conflicts, ...conflictingClassGroupModifiers[classGroupId]];
66
33
  }
67
34
  return conflicts;
68
35
  }
69
36
  return {
70
- getClassGroupId: getClassGroupId,
71
- getConflictingClassGroupIds: getConflictingClassGroupIds
37
+ getClassGroupId,
38
+ getConflictingClassGroupIds
72
39
  };
73
40
  }
74
41
  function getGroupRecursive(classParts, classPartObject) {
75
42
  if (classParts.length === 0) {
76
43
  return classPartObject.classGroupId;
77
44
  }
78
- var currentClassPart = classParts[0];
79
- var nextClassPartObject = classPartObject.nextPart.get(currentClassPart);
80
- var classGroupFromNextClassPart = nextClassPartObject ? getGroupRecursive(classParts.slice(1), nextClassPartObject) : undefined;
45
+ const currentClassPart = classParts[0];
46
+ const nextClassPartObject = classPartObject.nextPart.get(currentClassPart);
47
+ const classGroupFromNextClassPart = nextClassPartObject ? getGroupRecursive(classParts.slice(1), nextClassPartObject) : undefined;
81
48
  if (classGroupFromNextClassPart) {
82
49
  return classGroupFromNextClassPart;
83
50
  }
84
51
  if (classPartObject.validators.length === 0) {
85
52
  return undefined;
86
53
  }
87
- var classRest = classParts.join(CLASS_PART_SEPARATOR);
88
- return classPartObject.validators.find(function (_ref) {
89
- var validator = _ref.validator;
90
- return validator(classRest);
91
- })?.classGroupId;
54
+ const classRest = classParts.join(CLASS_PART_SEPARATOR);
55
+ return classPartObject.validators.find(({
56
+ validator
57
+ }) => validator(classRest))?.classGroupId;
92
58
  }
93
- var arbitraryPropertyRegex = /^\[(.+)\]$/;
59
+ const arbitraryPropertyRegex = /^\[(.+)\]$/;
94
60
  function getGroupIdForArbitraryProperty(className) {
95
61
  if (arbitraryPropertyRegex.test(className)) {
96
- var arbitraryPropertyClassName = arbitraryPropertyRegex.exec(className)[1];
97
- var property = arbitraryPropertyClassName?.substring(0, arbitraryPropertyClassName.indexOf(':'));
62
+ const arbitraryPropertyClassName = arbitraryPropertyRegex.exec(className)[1];
63
+ const property = arbitraryPropertyClassName?.substring(0, arbitraryPropertyClassName.indexOf(':'));
98
64
  if (property) {
99
65
  // I use two dots here because one dot is used as prefix for class groups in plugins
100
66
  return 'arbitrary..' + property;
@@ -105,24 +71,24 @@ function getGroupIdForArbitraryProperty(className) {
105
71
  * Exported for testing only
106
72
  */
107
73
  function createClassMap(config) {
108
- var theme = config.theme,
109
- prefix = config.prefix;
110
- var classMap = {
74
+ const {
75
+ theme,
76
+ prefix
77
+ } = config;
78
+ const classMap = {
111
79
  nextPart: new Map(),
112
80
  validators: []
113
81
  };
114
- var prefixedClassGroupEntries = getPrefixedClassGroupEntries(Object.entries(config.classGroups), prefix);
115
- prefixedClassGroupEntries.forEach(function (_ref2) {
116
- var classGroupId = _ref2[0],
117
- classGroup = _ref2[1];
82
+ const prefixedClassGroupEntries = getPrefixedClassGroupEntries(Object.entries(config.classGroups), prefix);
83
+ prefixedClassGroupEntries.forEach(([classGroupId, classGroup]) => {
118
84
  processClassesRecursively(classGroup, classMap, classGroupId, theme);
119
85
  });
120
86
  return classMap;
121
87
  }
122
88
  function processClassesRecursively(classGroup, classPartObject, classGroupId, theme) {
123
- classGroup.forEach(function (classDefinition) {
89
+ classGroup.forEach(classDefinition => {
124
90
  if (typeof classDefinition === 'string') {
125
- var classPartObjectToEdit = classDefinition === '' ? classPartObject : getPart(classPartObject, classDefinition);
91
+ const classPartObjectToEdit = classDefinition === '' ? classPartObject : getPart(classPartObject, classDefinition);
126
92
  classPartObjectToEdit.classGroupId = classGroupId;
127
93
  return;
128
94
  }
@@ -133,20 +99,18 @@ function processClassesRecursively(classGroup, classPartObject, classGroupId, th
133
99
  }
134
100
  classPartObject.validators.push({
135
101
  validator: classDefinition,
136
- classGroupId: classGroupId
102
+ classGroupId
137
103
  });
138
104
  return;
139
105
  }
140
- Object.entries(classDefinition).forEach(function (_ref3) {
141
- var key = _ref3[0],
142
- classGroup = _ref3[1];
106
+ Object.entries(classDefinition).forEach(([key, classGroup]) => {
143
107
  processClassesRecursively(classGroup, getPart(classPartObject, key), classGroupId, theme);
144
108
  });
145
109
  });
146
110
  }
147
111
  function getPart(classPartObject, path) {
148
- var currentClassPartObject = classPartObject;
149
- path.split(CLASS_PART_SEPARATOR).forEach(function (pathPart) {
112
+ let currentClassPartObject = classPartObject;
113
+ path.split(CLASS_PART_SEPARATOR).forEach(pathPart => {
150
114
  if (!currentClassPartObject.nextPart.has(pathPart)) {
151
115
  currentClassPartObject.nextPart.set(pathPart, {
152
116
  nextPart: new Map(),
@@ -164,19 +128,13 @@ function getPrefixedClassGroupEntries(classGroupEntries, prefix) {
164
128
  if (!prefix) {
165
129
  return classGroupEntries;
166
130
  }
167
- return classGroupEntries.map(function (_ref4) {
168
- var classGroupId = _ref4[0],
169
- classGroup = _ref4[1];
170
- var prefixedClassGroup = classGroup.map(function (classDefinition) {
131
+ return classGroupEntries.map(([classGroupId, classGroup]) => {
132
+ const prefixedClassGroup = classGroup.map(classDefinition => {
171
133
  if (typeof classDefinition === 'string') {
172
134
  return prefix + classDefinition;
173
135
  }
174
136
  if (typeof classDefinition === 'object') {
175
- return Object.fromEntries(Object.entries(classDefinition).map(function (_ref5) {
176
- var key = _ref5[0],
177
- value = _ref5[1];
178
- return [prefix + key, value];
179
- }));
137
+ return Object.fromEntries(Object.entries(classDefinition).map(([key, value]) => [prefix + key, value]));
180
138
  }
181
139
  return classDefinition;
182
140
  });
@@ -188,15 +146,13 @@ function getPrefixedClassGroupEntries(classGroupEntries, prefix) {
188
146
  function createLruCache(maxCacheSize) {
189
147
  if (maxCacheSize < 1) {
190
148
  return {
191
- get: function get() {
192
- return undefined;
193
- },
194
- set: function set() {}
149
+ get: () => undefined,
150
+ set: () => {}
195
151
  };
196
152
  }
197
- var cacheSize = 0;
198
- var cache = new Map();
199
- var previousCache = new Map();
153
+ let cacheSize = 0;
154
+ let cache = new Map();
155
+ let previousCache = new Map();
200
156
  function update(key, value) {
201
157
  cache.set(key, value);
202
158
  cacheSize++;
@@ -207,8 +163,8 @@ function createLruCache(maxCacheSize) {
207
163
  }
208
164
  }
209
165
  return {
210
- get: function get(key) {
211
- var value = cache.get(key);
166
+ get(key) {
167
+ let value = cache.get(key);
212
168
  if (value !== undefined) {
213
169
  return value;
214
170
  }
@@ -217,7 +173,7 @@ function createLruCache(maxCacheSize) {
217
173
  return value;
218
174
  }
219
175
  },
220
- set: function set(key, value) {
176
+ set(key, value) {
221
177
  if (cache.has(key)) {
222
178
  cache.set(key, value);
223
179
  } else {
@@ -226,21 +182,20 @@ function createLruCache(maxCacheSize) {
226
182
  }
227
183
  };
228
184
  }
229
-
230
- var IMPORTANT_MODIFIER = '!';
185
+ const IMPORTANT_MODIFIER = '!';
231
186
  function createSplitModifiers(config) {
232
- var separator = config.separator || ':';
233
- var isSeparatorSingleCharacter = separator.length === 1;
234
- var firstSeparatorCharacter = separator[0];
235
- var separatorLength = separator.length;
187
+ const separator = config.separator;
188
+ const isSeparatorSingleCharacter = separator.length === 1;
189
+ const firstSeparatorCharacter = separator[0];
190
+ const separatorLength = separator.length;
236
191
  // splitModifiers inspired by https://github.com/tailwindlabs/tailwindcss/blob/v3.2.2/src/util/splitAtTopLevelOnly.js
237
192
  return function splitModifiers(className) {
238
- var modifiers = [];
239
- var bracketDepth = 0;
240
- var modifierStart = 0;
241
- var postfixModifierPosition;
242
- for (var index = 0; index < className.length; index++) {
243
- var currentCharacter = className[index];
193
+ const modifiers = [];
194
+ let bracketDepth = 0;
195
+ let modifierStart = 0;
196
+ let postfixModifierPosition;
197
+ for (let index = 0; index < className.length; index++) {
198
+ let currentCharacter = className[index];
244
199
  if (bracketDepth === 0) {
245
200
  if (currentCharacter === firstSeparatorCharacter && (isSeparatorSingleCharacter || className.slice(index, index + separatorLength) === separator)) {
246
201
  modifiers.push(className.slice(modifierStart, index));
@@ -258,15 +213,15 @@ function createSplitModifiers(config) {
258
213
  bracketDepth--;
259
214
  }
260
215
  }
261
- var baseClassNameWithImportantModifier = modifiers.length === 0 ? className : className.substring(modifierStart);
262
- var hasImportantModifier = baseClassNameWithImportantModifier.startsWith(IMPORTANT_MODIFIER);
263
- var baseClassName = hasImportantModifier ? baseClassNameWithImportantModifier.substring(1) : baseClassNameWithImportantModifier;
264
- var maybePostfixModifierPosition = postfixModifierPosition && postfixModifierPosition > modifierStart ? postfixModifierPosition - modifierStart : undefined;
216
+ const baseClassNameWithImportantModifier = modifiers.length === 0 ? className : className.substring(modifierStart);
217
+ const hasImportantModifier = baseClassNameWithImportantModifier.startsWith(IMPORTANT_MODIFIER);
218
+ const baseClassName = hasImportantModifier ? baseClassNameWithImportantModifier.substring(1) : baseClassNameWithImportantModifier;
219
+ const maybePostfixModifierPosition = postfixModifierPosition && postfixModifierPosition > modifierStart ? postfixModifierPosition - modifierStart : undefined;
265
220
  return {
266
- modifiers: modifiers,
267
- hasImportantModifier: hasImportantModifier,
268
- baseClassName: baseClassName,
269
- maybePostfixModifierPosition: maybePostfixModifierPosition
221
+ modifiers,
222
+ hasImportantModifier,
223
+ baseClassName,
224
+ maybePostfixModifierPosition
270
225
  };
271
226
  };
272
227
  }
@@ -279,21 +234,20 @@ function sortModifiers(modifiers) {
279
234
  if (modifiers.length <= 1) {
280
235
  return modifiers;
281
236
  }
282
- var sortedModifiers = [];
283
- var unsortedModifiers = [];
284
- modifiers.forEach(function (modifier) {
285
- var isArbitraryVariant = modifier[0] === '[';
237
+ const sortedModifiers = [];
238
+ let unsortedModifiers = [];
239
+ modifiers.forEach(modifier => {
240
+ const isArbitraryVariant = modifier[0] === '[';
286
241
  if (isArbitraryVariant) {
287
- sortedModifiers.push.apply(sortedModifiers, unsortedModifiers.sort().concat([modifier]));
242
+ sortedModifiers.push(...unsortedModifiers.sort(), modifier);
288
243
  unsortedModifiers = [];
289
244
  } else {
290
245
  unsortedModifiers.push(modifier);
291
246
  }
292
247
  });
293
- sortedModifiers.push.apply(sortedModifiers, unsortedModifiers.sort());
248
+ sortedModifiers.push(...unsortedModifiers.sort());
294
249
  return sortedModifiers;
295
250
  }
296
-
297
251
  function createConfigUtils(config) {
298
252
  return {
299
253
  cache: createLruCache(config.cacheSize),
@@ -301,12 +255,13 @@ function createConfigUtils(config) {
301
255
  ...createClassUtils(config)
302
256
  };
303
257
  }
304
-
305
- var SPLIT_CLASSES_REGEX = /\s+/;
258
+ const SPLIT_CLASSES_REGEX = /\s+/;
306
259
  function mergeClassList(classList, configUtils) {
307
- var splitModifiers = configUtils.splitModifiers,
308
- getClassGroupId = configUtils.getClassGroupId,
309
- getConflictingClassGroupIds = configUtils.getConflictingClassGroupIds;
260
+ const {
261
+ splitModifiers,
262
+ getClassGroupId,
263
+ getConflictingClassGroupIds
264
+ } = configUtils;
310
265
  /**
311
266
  * Set of classGroupIds in following format:
312
267
  * `{importantModifier}{variantModifiers}{classGroupId}`
@@ -314,77 +269,109 @@ function mergeClassList(classList, configUtils) {
314
269
  * @example 'hover:focus:bg-color'
315
270
  * @example 'md:!pr'
316
271
  */
317
- var classGroupsInConflict = new Set();
318
- return classList.trim().split(SPLIT_CLASSES_REGEX).map(function (originalClassName) {
319
- var _splitModifiers = splitModifiers(originalClassName),
320
- modifiers = _splitModifiers.modifiers,
321
- hasImportantModifier = _splitModifiers.hasImportantModifier,
322
- baseClassName = _splitModifiers.baseClassName,
323
- maybePostfixModifierPosition = _splitModifiers.maybePostfixModifierPosition;
324
- var classGroupId = getClassGroupId(maybePostfixModifierPosition ? baseClassName.substring(0, maybePostfixModifierPosition) : baseClassName);
325
- var hasPostfixModifier = Boolean(maybePostfixModifierPosition);
272
+ const classGroupsInConflict = new Set();
273
+ return classList.trim().split(SPLIT_CLASSES_REGEX).map(originalClassName => {
274
+ const {
275
+ modifiers,
276
+ hasImportantModifier,
277
+ baseClassName,
278
+ maybePostfixModifierPosition
279
+ } = splitModifiers(originalClassName);
280
+ let classGroupId = getClassGroupId(maybePostfixModifierPosition ? baseClassName.substring(0, maybePostfixModifierPosition) : baseClassName);
281
+ let hasPostfixModifier = Boolean(maybePostfixModifierPosition);
326
282
  if (!classGroupId) {
327
283
  if (!maybePostfixModifierPosition) {
328
284
  return {
329
285
  isTailwindClass: false,
330
- originalClassName: originalClassName
286
+ originalClassName
331
287
  };
332
288
  }
333
289
  classGroupId = getClassGroupId(baseClassName);
334
290
  if (!classGroupId) {
335
291
  return {
336
292
  isTailwindClass: false,
337
- originalClassName: originalClassName
293
+ originalClassName
338
294
  };
339
295
  }
340
296
  hasPostfixModifier = false;
341
297
  }
342
- var variantModifier = sortModifiers(modifiers).join(':');
343
- var modifierId = hasImportantModifier ? variantModifier + IMPORTANT_MODIFIER : variantModifier;
298
+ const variantModifier = sortModifiers(modifiers).join(':');
299
+ const modifierId = hasImportantModifier ? variantModifier + IMPORTANT_MODIFIER : variantModifier;
344
300
  return {
345
301
  isTailwindClass: true,
346
- modifierId: modifierId,
347
- classGroupId: classGroupId,
348
- originalClassName: originalClassName,
349
- hasPostfixModifier: hasPostfixModifier
302
+ modifierId,
303
+ classGroupId,
304
+ originalClassName,
305
+ hasPostfixModifier
350
306
  };
351
307
  }).reverse()
352
308
  // Last class in conflict wins, so we need to filter conflicting classes in reverse order.
353
- .filter(function (parsed) {
309
+ .filter(parsed => {
354
310
  if (!parsed.isTailwindClass) {
355
311
  return true;
356
312
  }
357
- var modifierId = parsed.modifierId,
358
- classGroupId = parsed.classGroupId,
359
- hasPostfixModifier = parsed.hasPostfixModifier;
360
- var classId = modifierId + classGroupId;
313
+ const {
314
+ modifierId,
315
+ classGroupId,
316
+ hasPostfixModifier
317
+ } = parsed;
318
+ const classId = modifierId + classGroupId;
361
319
  if (classGroupsInConflict.has(classId)) {
362
320
  return false;
363
321
  }
364
322
  classGroupsInConflict.add(classId);
365
- getConflictingClassGroupIds(classGroupId, hasPostfixModifier).forEach(function (group) {
366
- return classGroupsInConflict.add(modifierId + group);
367
- });
323
+ getConflictingClassGroupIds(classGroupId, hasPostfixModifier).forEach(group => classGroupsInConflict.add(modifierId + group));
368
324
  return true;
369
- }).reverse().map(function (parsed) {
370
- return parsed.originalClassName;
371
- }).join(' ');
325
+ }).reverse().map(parsed => parsed.originalClassName).join(' ');
372
326
  }
373
327
 
374
- function createTailwindMerge() {
375
- for (var _len = arguments.length, createConfig = new Array(_len), _key = 0; _key < _len; _key++) {
376
- createConfig[_key] = arguments[_key];
328
+ /**
329
+ * The code in this file is copied from https://github.com/lukeed/clsx and modified to suit the needs of tailwind-merge better.
330
+ *
331
+ * Specifically:
332
+ * - Runtime code from https://github.com/lukeed/clsx/blob/v1.2.1/src/index.js
333
+ * - TypeScript types from https://github.com/lukeed/clsx/blob/v1.2.1/clsx.d.ts
334
+ *
335
+ * Original code has MIT license: Copyright (c) Luke Edwards <luke.edwards05@gmail.com> (lukeed.com)
336
+ */
337
+ function twJoin() {
338
+ let index = 0;
339
+ let argument;
340
+ let resolvedValue;
341
+ let string = '';
342
+ while (index < arguments.length) {
343
+ if (argument = arguments[index++]) {
344
+ if (resolvedValue = toValue(argument)) {
345
+ string && (string += ' ');
346
+ string += resolvedValue;
347
+ }
348
+ }
349
+ }
350
+ return string;
351
+ }
352
+ function toValue(mix) {
353
+ if (typeof mix === 'string') {
354
+ return mix;
355
+ }
356
+ let resolvedValue;
357
+ let string = '';
358
+ for (let k = 0; k < mix.length; k++) {
359
+ if (mix[k]) {
360
+ if (resolvedValue = toValue(mix[k])) {
361
+ string && (string += ' ');
362
+ string += resolvedValue;
363
+ }
364
+ }
377
365
  }
378
- var configUtils;
379
- var cacheGet;
380
- var cacheSet;
381
- var functionToCall = initTailwindMerge;
366
+ return string;
367
+ }
368
+ function createTailwindMerge(createConfigFirst, ...createConfigRest) {
369
+ let configUtils;
370
+ let cacheGet;
371
+ let cacheSet;
372
+ let functionToCall = initTailwindMerge;
382
373
  function initTailwindMerge(classList) {
383
- var firstCreateConfig = createConfig[0],
384
- restCreateConfig = createConfig.slice(1);
385
- var config = restCreateConfig.reduce(function (previousConfig, createConfigCurrent) {
386
- return createConfigCurrent(previousConfig);
387
- }, firstCreateConfig());
374
+ const config = createConfigRest.reduce((previousConfig, createConfigCurrent) => createConfigCurrent(previousConfig), createConfigFirst());
388
375
  configUtils = createConfigUtils(config);
389
376
  cacheGet = configUtils.cache.get;
390
377
  cacheSet = configUtils.cache.set;
@@ -392,11 +379,11 @@ function createTailwindMerge() {
392
379
  return tailwindMerge(classList);
393
380
  }
394
381
  function tailwindMerge(classList) {
395
- var cachedResult = cacheGet(classList);
382
+ const cachedResult = cacheGet(classList);
396
383
  if (cachedResult) {
397
384
  return cachedResult;
398
385
  }
399
- var result = mergeClassList(classList, configUtils);
386
+ const result = mergeClassList(classList, configUtils);
400
387
  cacheSet(classList, result);
401
388
  return result;
402
389
  }
@@ -404,166 +391,156 @@ function createTailwindMerge() {
404
391
  return functionToCall(twJoin.apply(null, arguments));
405
392
  };
406
393
  }
407
-
408
394
  function fromTheme(key) {
409
- var themeGetter = function themeGetter(theme) {
410
- return theme[key] || [];
411
- };
395
+ const themeGetter = theme => theme[key] || [];
412
396
  themeGetter.isThemeGetter = true;
413
397
  return themeGetter;
414
398
  }
415
-
416
- var arbitraryValueRegex = /^\[(?:([a-z-]+):)?(.+)\]$/i;
417
- var fractionRegex = /^\d+\/\d+$/;
418
- var stringLengths = /*#__PURE__*/new Set(['px', 'full', 'screen']);
419
- var tshirtUnitRegex = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/;
420
- var lengthUnitRegex = /\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/;
421
- // Shadow always begins with x and y offset separated by underscore
422
- var shadowRegex = /^-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/;
399
+ const arbitraryValueRegex = /^\[(?:([a-z-]+):)?(.+)\]$/i;
400
+ const fractionRegex = /^\d+\/\d+$/;
401
+ const stringLengths = /*#__PURE__*/new Set(['px', 'full', 'screen']);
402
+ const tshirtUnitRegex = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/;
403
+ 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$/;
404
+ const colorFunctionRegex = /^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/;
405
+ // Shadow always begins with x and y offset separated by underscore optionally prepended by inset
406
+ const shadowRegex = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/;
407
+ const imageRegex = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/;
423
408
  function isLength(value) {
424
- return isNumber(value) || stringLengths.has(value) || fractionRegex.test(value) || isArbitraryLength(value);
409
+ return isNumber(value) || stringLengths.has(value) || fractionRegex.test(value);
425
410
  }
426
411
  function isArbitraryLength(value) {
427
412
  return getIsArbitraryValue(value, 'length', isLengthOnly);
428
413
  }
429
- function isArbitrarySize(value) {
430
- return getIsArbitraryValue(value, 'size', isNever);
431
- }
432
- function isArbitraryPosition(value) {
433
- return getIsArbitraryValue(value, 'position', isNever);
434
- }
435
- function isArbitraryUrl(value) {
436
- return getIsArbitraryValue(value, 'url', isUrl);
414
+ function isNumber(value) {
415
+ return Boolean(value) && !Number.isNaN(Number(value));
437
416
  }
438
417
  function isArbitraryNumber(value) {
439
418
  return getIsArbitraryValue(value, 'number', isNumber);
440
419
  }
441
- function isNumber(value) {
442
- return !Number.isNaN(Number(value));
420
+ function isInteger(value) {
421
+ return Boolean(value) && Number.isInteger(Number(value));
443
422
  }
444
423
  function isPercent(value) {
445
424
  return value.endsWith('%') && isNumber(value.slice(0, -1));
446
425
  }
447
- function isInteger(value) {
448
- return isIntegerOnly(value) || getIsArbitraryValue(value, 'number', isIntegerOnly);
449
- }
450
426
  function isArbitraryValue(value) {
451
427
  return arbitraryValueRegex.test(value);
452
428
  }
453
- function isAny() {
454
- return true;
455
- }
456
429
  function isTshirtSize(value) {
457
430
  return tshirtUnitRegex.test(value);
458
431
  }
432
+ const sizeLabels = /*#__PURE__*/new Set(['length', 'size', 'percentage']);
433
+ function isArbitrarySize(value) {
434
+ return getIsArbitraryValue(value, sizeLabels, isNever);
435
+ }
436
+ function isArbitraryPosition(value) {
437
+ return getIsArbitraryValue(value, 'position', isNever);
438
+ }
439
+ const imageLabels = /*#__PURE__*/new Set(['image', 'url']);
440
+ function isArbitraryImage(value) {
441
+ return getIsArbitraryValue(value, imageLabels, isImage);
442
+ }
459
443
  function isArbitraryShadow(value) {
460
444
  return getIsArbitraryValue(value, '', isShadow);
461
445
  }
446
+ function isAny() {
447
+ return true;
448
+ }
462
449
  function getIsArbitraryValue(value, label, testValue) {
463
- var result = arbitraryValueRegex.exec(value);
450
+ const result = arbitraryValueRegex.exec(value);
464
451
  if (result) {
465
452
  if (result[1]) {
466
- return result[1] === label;
453
+ return typeof label === 'string' ? result[1] === label : label.has(result[1]);
467
454
  }
468
455
  return testValue(result[2]);
469
456
  }
470
457
  return false;
471
458
  }
472
459
  function isLengthOnly(value) {
473
- return lengthUnitRegex.test(value);
460
+ // `colorFunctionRegex` check is necessary because color functions can have percentages in them which which would be incorrectly classified as lengths.
461
+ // For example, `hsl(0 0% 0%)` would be classified as a length without this check.
462
+ // I could also use lookbehind assertion in `lengthUnitRegex` but that isn't supported widely enough.
463
+ return lengthUnitRegex.test(value) && !colorFunctionRegex.test(value);
474
464
  }
475
465
  function isNever() {
476
466
  return false;
477
467
  }
478
- function isUrl(value) {
479
- return value.startsWith('url(');
480
- }
481
- function isIntegerOnly(value) {
482
- return Number.isInteger(Number(value));
483
- }
484
468
  function isShadow(value) {
485
469
  return shadowRegex.test(value);
486
470
  }
487
-
471
+ function isImage(value) {
472
+ return imageRegex.test(value);
473
+ }
474
+ const validators = /*#__PURE__*/Object.defineProperty({
475
+ __proto__: null,
476
+ isAny,
477
+ isArbitraryImage,
478
+ isArbitraryLength,
479
+ isArbitraryNumber,
480
+ isArbitraryPosition,
481
+ isArbitraryShadow,
482
+ isArbitrarySize,
483
+ isArbitraryValue,
484
+ isInteger,
485
+ isLength,
486
+ isNumber,
487
+ isPercent,
488
+ isTshirtSize
489
+ }, Symbol.toStringTag, {
490
+ value: 'Module'
491
+ });
488
492
  function getDefaultConfig() {
489
- var colors = fromTheme('colors');
490
- var spacing = fromTheme('spacing');
491
- var blur = fromTheme('blur');
492
- var brightness = fromTheme('brightness');
493
- var borderColor = fromTheme('borderColor');
494
- var borderRadius = fromTheme('borderRadius');
495
- var borderSpacing = fromTheme('borderSpacing');
496
- var borderWidth = fromTheme('borderWidth');
497
- var contrast = fromTheme('contrast');
498
- var grayscale = fromTheme('grayscale');
499
- var hueRotate = fromTheme('hueRotate');
500
- var invert = fromTheme('invert');
501
- var gap = fromTheme('gap');
502
- var gradientColorStops = fromTheme('gradientColorStops');
503
- var gradientColorStopPositions = fromTheme('gradientColorStopPositions');
504
- var inset = fromTheme('inset');
505
- var margin = fromTheme('margin');
506
- var opacity = fromTheme('opacity');
507
- var padding = fromTheme('padding');
508
- var saturate = fromTheme('saturate');
509
- var scale = fromTheme('scale');
510
- var sepia = fromTheme('sepia');
511
- var skew = fromTheme('skew');
512
- var space = fromTheme('space');
513
- var translate = fromTheme('translate');
514
- var getOverscroll = function getOverscroll() {
515
- return ['auto', 'contain', 'none'];
516
- };
517
- var getOverflow = function getOverflow() {
518
- return ['auto', 'hidden', 'clip', 'visible', 'scroll'];
519
- };
520
- var getSpacingWithAutoAndArbitrary = function getSpacingWithAutoAndArbitrary() {
521
- return ['auto', isArbitraryValue, spacing];
522
- };
523
- var getSpacingWithArbitrary = function getSpacingWithArbitrary() {
524
- return [isArbitraryValue, spacing];
525
- };
526
- var getLengthWithEmpty = function getLengthWithEmpty() {
527
- return ['', isLength];
528
- };
529
- var getNumberWithAutoAndArbitrary = function getNumberWithAutoAndArbitrary() {
530
- return ['auto', isNumber, isArbitraryValue];
531
- };
532
- var getPositions = function getPositions() {
533
- return ['bottom', 'center', 'left', 'left-bottom', 'left-top', 'right', 'right-bottom', 'right-top', 'top'];
534
- };
535
- var getLineStyles = function getLineStyles() {
536
- return ['solid', 'dashed', 'dotted', 'double', 'none'];
537
- };
538
- var getBlendModes = function getBlendModes() {
539
- return ['normal', 'multiply', 'screen', 'overlay', 'darken', 'lighten', 'color-dodge', 'color-burn', 'hard-light', 'soft-light', 'difference', 'exclusion', 'hue', 'saturation', 'color', 'luminosity', 'plus-lighter'];
540
- };
541
- var getAlign = function getAlign() {
542
- return ['start', 'end', 'center', 'between', 'around', 'evenly', 'stretch'];
543
- };
544
- var getZeroAndEmpty = function getZeroAndEmpty() {
545
- return ['', '0', isArbitraryValue];
546
- };
547
- var getBreaks = function getBreaks() {
548
- return ['auto', 'avoid', 'all', 'avoid-page', 'page', 'left', 'right', 'column'];
549
- };
550
- var getNumber = function getNumber() {
551
- return [isNumber, isArbitraryNumber];
552
- };
553
- var getNumberAndArbitrary = function getNumberAndArbitrary() {
554
- return [isNumber, isArbitraryValue];
555
- };
493
+ const colors = fromTheme('colors');
494
+ const spacing = fromTheme('spacing');
495
+ const blur = fromTheme('blur');
496
+ const brightness = fromTheme('brightness');
497
+ const borderColor = fromTheme('borderColor');
498
+ const borderRadius = fromTheme('borderRadius');
499
+ const borderSpacing = fromTheme('borderSpacing');
500
+ const borderWidth = fromTheme('borderWidth');
501
+ const contrast = fromTheme('contrast');
502
+ const grayscale = fromTheme('grayscale');
503
+ const hueRotate = fromTheme('hueRotate');
504
+ const invert = fromTheme('invert');
505
+ const gap = fromTheme('gap');
506
+ const gradientColorStops = fromTheme('gradientColorStops');
507
+ const gradientColorStopPositions = fromTheme('gradientColorStopPositions');
508
+ const inset = fromTheme('inset');
509
+ const margin = fromTheme('margin');
510
+ const opacity = fromTheme('opacity');
511
+ const padding = fromTheme('padding');
512
+ const saturate = fromTheme('saturate');
513
+ const scale = fromTheme('scale');
514
+ const sepia = fromTheme('sepia');
515
+ const skew = fromTheme('skew');
516
+ const space = fromTheme('space');
517
+ const translate = fromTheme('translate');
518
+ const getOverscroll = () => ['auto', 'contain', 'none'];
519
+ const getOverflow = () => ['auto', 'hidden', 'clip', 'visible', 'scroll'];
520
+ const getSpacingWithAutoAndArbitrary = () => ['auto', isArbitraryValue, spacing];
521
+ const getSpacingWithArbitrary = () => [isArbitraryValue, spacing];
522
+ const getLengthWithEmptyAndArbitrary = () => ['', isLength, isArbitraryLength];
523
+ const getNumberWithAutoAndArbitrary = () => ['auto', isNumber, isArbitraryValue];
524
+ const getPositions = () => ['bottom', 'center', 'left', 'left-bottom', 'left-top', 'right', 'right-bottom', 'right-top', 'top'];
525
+ const getLineStyles = () => ['solid', 'dashed', 'dotted', 'double', 'none'];
526
+ const getBlendModes = () => ['normal', 'multiply', 'screen', 'overlay', 'darken', 'lighten', 'color-dodge', 'color-burn', 'hard-light', 'soft-light', 'difference', 'exclusion', 'hue', 'saturation', 'color', 'luminosity', 'plus-lighter'];
527
+ const getAlign = () => ['start', 'end', 'center', 'between', 'around', 'evenly', 'stretch'];
528
+ const getZeroAndEmpty = () => ['', '0', isArbitraryValue];
529
+ const getBreaks = () => ['auto', 'avoid', 'all', 'avoid-page', 'page', 'left', 'right', 'column'];
530
+ const getNumber = () => [isNumber, isArbitraryNumber];
531
+ const getNumberAndArbitrary = () => [isNumber, isArbitraryValue];
556
532
  return {
557
533
  cacheSize: 500,
534
+ separator: ':',
558
535
  theme: {
559
536
  colors: [isAny],
560
- spacing: [isLength],
537
+ spacing: [isLength, isArbitraryLength],
561
538
  blur: ['none', '', isTshirtSize, isArbitraryValue],
562
539
  brightness: getNumber(),
563
540
  borderColor: [colors],
564
541
  borderRadius: ['none', '', 'full', isTshirtSize, isArbitraryValue],
565
542
  borderSpacing: getSpacingWithArbitrary(),
566
- borderWidth: getLengthWithEmpty(),
543
+ borderWidth: getLengthWithEmptyAndArbitrary(),
567
544
  contrast: getNumber(),
568
545
  grayscale: getZeroAndEmpty(),
569
546
  hueRotate: getNumberAndArbitrary(),
@@ -647,15 +624,15 @@ function getDefaultConfig() {
647
624
  * Floats
648
625
  * @see https://tailwindcss.com/docs/float
649
626
  */
650
- "float": [{
651
- "float": ['right', 'left', 'none']
627
+ float: [{
628
+ float: ['right', 'left', 'none', 'start', 'end']
652
629
  }],
653
630
  /**
654
631
  * Clear
655
632
  * @see https://tailwindcss.com/docs/clear
656
633
  */
657
634
  clear: [{
658
- clear: ['left', 'right', 'both', 'none']
635
+ clear: ['left', 'right', 'both', 'none', 'start', 'end']
659
636
  }],
660
637
  /**
661
638
  * Isolation
@@ -674,7 +651,7 @@ function getDefaultConfig() {
674
651
  * @see https://tailwindcss.com/docs/object-position
675
652
  */
676
653
  'object-position': [{
677
- object: [].concat(getPositions(), [isArbitraryValue])
654
+ object: [...getPositions(), isArbitraryValue]
678
655
  }],
679
656
  /**
680
657
  * Overflow
@@ -796,7 +773,7 @@ function getDefaultConfig() {
796
773
  * @see https://tailwindcss.com/docs/z-index
797
774
  */
798
775
  z: [{
799
- z: ['auto', isInteger]
776
+ z: ['auto', isInteger, isArbitraryValue]
800
777
  }],
801
778
  // Flexbox and Grid
802
779
  /**
@@ -846,7 +823,7 @@ function getDefaultConfig() {
846
823
  * @see https://tailwindcss.com/docs/order
847
824
  */
848
825
  order: [{
849
- order: ['first', 'last', 'none', isInteger]
826
+ order: ['first', 'last', 'none', isInteger, isArbitraryValue]
850
827
  }],
851
828
  /**
852
829
  * Grid Template Columns
@@ -861,7 +838,7 @@ function getDefaultConfig() {
861
838
  */
862
839
  'col-start-end': [{
863
840
  col: ['auto', {
864
- span: ['full', isInteger]
841
+ span: ['full', isInteger, isArbitraryValue]
865
842
  }, isArbitraryValue]
866
843
  }],
867
844
  /**
@@ -891,7 +868,7 @@ function getDefaultConfig() {
891
868
  */
892
869
  'row-start-end': [{
893
870
  row: ['auto', {
894
- span: [isInteger]
871
+ span: [isInteger, isArbitraryValue]
895
872
  }, isArbitraryValue]
896
873
  }],
897
874
  /**
@@ -955,7 +932,7 @@ function getDefaultConfig() {
955
932
  * @see https://tailwindcss.com/docs/justify-content
956
933
  */
957
934
  'justify-content': [{
958
- justify: ['normal'].concat(getAlign())
935
+ justify: ['normal', ...getAlign()]
959
936
  }],
960
937
  /**
961
938
  * Justify Items
@@ -976,7 +953,7 @@ function getDefaultConfig() {
976
953
  * @see https://tailwindcss.com/docs/align-content
977
954
  */
978
955
  'align-content': [{
979
- content: ['normal'].concat(getAlign(), ['baseline'])
956
+ content: ['normal', ...getAlign(), 'baseline']
980
957
  }],
981
958
  /**
982
959
  * Align Items
@@ -997,7 +974,7 @@ function getDefaultConfig() {
997
974
  * @see https://tailwindcss.com/docs/place-content
998
975
  */
999
976
  'place-content': [{
1000
- 'place-content': [].concat(getAlign(), ['baseline'])
977
+ 'place-content': [...getAlign(), 'baseline']
1001
978
  }],
1002
979
  /**
1003
980
  * Place Items
@@ -1170,44 +1147,51 @@ function getDefaultConfig() {
1170
1147
  * @see https://tailwindcss.com/docs/width
1171
1148
  */
1172
1149
  w: [{
1173
- w: ['auto', 'min', 'max', 'fit', isArbitraryValue, spacing]
1150
+ w: ['auto', 'min', 'max', 'fit', 'svw', 'lvw', 'dvw', isArbitraryValue, spacing]
1174
1151
  }],
1175
1152
  /**
1176
1153
  * Min-Width
1177
1154
  * @see https://tailwindcss.com/docs/min-width
1178
1155
  */
1179
1156
  'min-w': [{
1180
- 'min-w': ['min', 'max', 'fit', isArbitraryValue, isLength]
1157
+ 'min-w': [isArbitraryValue, spacing, 'min', 'max', 'fit']
1181
1158
  }],
1182
1159
  /**
1183
1160
  * Max-Width
1184
1161
  * @see https://tailwindcss.com/docs/max-width
1185
1162
  */
1186
1163
  'max-w': [{
1187
- 'max-w': ['0', 'none', 'full', 'min', 'max', 'fit', 'prose', {
1164
+ 'max-w': [isArbitraryValue, spacing, 'none', 'full', 'min', 'max', 'fit', 'prose', {
1188
1165
  screen: [isTshirtSize]
1189
- }, isTshirtSize, isArbitraryValue]
1166
+ }, isTshirtSize]
1190
1167
  }],
1191
1168
  /**
1192
1169
  * Height
1193
1170
  * @see https://tailwindcss.com/docs/height
1194
1171
  */
1195
1172
  h: [{
1196
- h: [isArbitraryValue, spacing, 'auto', 'min', 'max', 'fit']
1173
+ h: [isArbitraryValue, spacing, 'auto', 'min', 'max', 'fit', 'svh', 'lvh', 'dvh']
1197
1174
  }],
1198
1175
  /**
1199
1176
  * Min-Height
1200
1177
  * @see https://tailwindcss.com/docs/min-height
1201
1178
  */
1202
1179
  'min-h': [{
1203
- 'min-h': ['min', 'max', 'fit', isArbitraryValue, isLength]
1180
+ 'min-h': [isArbitraryValue, spacing, 'min', 'max', 'fit', 'svh', 'lvh', 'dvh']
1204
1181
  }],
1205
1182
  /**
1206
1183
  * Max-Height
1207
1184
  * @see https://tailwindcss.com/docs/max-height
1208
1185
  */
1209
1186
  'max-h': [{
1210
- 'max-h': [isArbitraryValue, spacing, 'min', 'max', 'fit']
1187
+ 'max-h': [isArbitraryValue, spacing, 'min', 'max', 'fit', 'svh', 'lvh', 'dvh']
1188
+ }],
1189
+ /**
1190
+ * Size
1191
+ * @see https://tailwindcss.com/docs/size
1192
+ */
1193
+ size: [{
1194
+ size: [isArbitraryValue, spacing, 'auto', 'min', 'max', 'fit']
1211
1195
  }],
1212
1196
  // Typography
1213
1197
  /**
@@ -1290,7 +1274,7 @@ function getDefaultConfig() {
1290
1274
  * @see https://tailwindcss.com/docs/line-height
1291
1275
  */
1292
1276
  leading: [{
1293
- leading: ['none', 'tight', 'snug', 'normal', 'relaxed', 'loose', isArbitraryValue, isLength]
1277
+ leading: ['none', 'tight', 'snug', 'normal', 'relaxed', 'loose', isLength, isArbitraryValue]
1294
1278
  }],
1295
1279
  /**
1296
1280
  * List Style Image
@@ -1359,21 +1343,21 @@ function getDefaultConfig() {
1359
1343
  * @see https://tailwindcss.com/docs/text-decoration-style
1360
1344
  */
1361
1345
  'text-decoration-style': [{
1362
- decoration: [].concat(getLineStyles(), ['wavy'])
1346
+ decoration: [...getLineStyles(), 'wavy']
1363
1347
  }],
1364
1348
  /**
1365
1349
  * Text Decoration Thickness
1366
1350
  * @see https://tailwindcss.com/docs/text-decoration-thickness
1367
1351
  */
1368
1352
  'text-decoration-thickness': [{
1369
- decoration: ['auto', 'from-font', isLength]
1353
+ decoration: ['auto', 'from-font', isLength, isArbitraryLength]
1370
1354
  }],
1371
1355
  /**
1372
1356
  * Text Underline Offset
1373
1357
  * @see https://tailwindcss.com/docs/text-underline-offset
1374
1358
  */
1375
1359
  'underline-offset': [{
1376
- 'underline-offset': ['auto', isArbitraryValue, isLength]
1360
+ 'underline-offset': ['auto', isLength, isArbitraryValue]
1377
1361
  }],
1378
1362
  /**
1379
1363
  * Text Decoration Color
@@ -1392,6 +1376,13 @@ function getDefaultConfig() {
1392
1376
  * @see https://tailwindcss.com/docs/text-overflow
1393
1377
  */
1394
1378
  'text-overflow': ['truncate', 'text-ellipsis', 'text-clip'],
1379
+ /**
1380
+ * Text Wrap
1381
+ * @see https://tailwindcss.com/docs/text-wrap
1382
+ */
1383
+ 'text-wrap': [{
1384
+ text: ['wrap', 'nowrap', 'balance', 'pretty']
1385
+ }],
1395
1386
  /**
1396
1387
  * Text Indent
1397
1388
  * @see https://tailwindcss.com/docs/text-indent
@@ -1417,8 +1408,8 @@ function getDefaultConfig() {
1417
1408
  * Word Break
1418
1409
  * @see https://tailwindcss.com/docs/word-break
1419
1410
  */
1420
- "break": [{
1421
- "break": ['normal', 'words', 'all', 'keep']
1411
+ break: [{
1412
+ break: ['normal', 'words', 'all', 'keep']
1422
1413
  }],
1423
1414
  /**
1424
1415
  * Hyphens
@@ -1469,7 +1460,7 @@ function getDefaultConfig() {
1469
1460
  * @see https://tailwindcss.com/docs/background-position
1470
1461
  */
1471
1462
  'bg-position': [{
1472
- bg: [].concat(getPositions(), [isArbitraryPosition])
1463
+ bg: [...getPositions(), isArbitraryPosition]
1473
1464
  }],
1474
1465
  /**
1475
1466
  * Background Repeat
@@ -1494,7 +1485,7 @@ function getDefaultConfig() {
1494
1485
  'bg-image': [{
1495
1486
  bg: ['none', {
1496
1487
  'gradient-to': ['t', 'tr', 'r', 'br', 'b', 'bl', 'l', 'tl']
1497
- }, isArbitraryUrl]
1488
+ }, isArbitraryImage]
1498
1489
  }],
1499
1490
  /**
1500
1491
  * Background Color
@@ -1726,7 +1717,7 @@ function getDefaultConfig() {
1726
1717
  * @see https://tailwindcss.com/docs/border-style
1727
1718
  */
1728
1719
  'border-style': [{
1729
- border: [].concat(getLineStyles(), ['hidden'])
1720
+ border: [...getLineStyles(), 'hidden']
1730
1721
  }],
1731
1722
  /**
1732
1723
  * Divide Width X
@@ -1827,21 +1818,21 @@ function getDefaultConfig() {
1827
1818
  * @see https://tailwindcss.com/docs/outline-style
1828
1819
  */
1829
1820
  'outline-style': [{
1830
- outline: [''].concat(getLineStyles())
1821
+ outline: ['', ...getLineStyles()]
1831
1822
  }],
1832
1823
  /**
1833
1824
  * Outline Offset
1834
1825
  * @see https://tailwindcss.com/docs/outline-offset
1835
1826
  */
1836
1827
  'outline-offset': [{
1837
- 'outline-offset': [isArbitraryValue, isLength]
1828
+ 'outline-offset': [isLength, isArbitraryValue]
1838
1829
  }],
1839
1830
  /**
1840
1831
  * Outline Width
1841
1832
  * @see https://tailwindcss.com/docs/outline-width
1842
1833
  */
1843
1834
  'outline-w': [{
1844
- outline: [isLength]
1835
+ outline: [isLength, isArbitraryLength]
1845
1836
  }],
1846
1837
  /**
1847
1838
  * Outline Color
@@ -1855,7 +1846,7 @@ function getDefaultConfig() {
1855
1846
  * @see https://tailwindcss.com/docs/ring-width
1856
1847
  */
1857
1848
  'ring-w': [{
1858
- ring: getLengthWithEmpty()
1849
+ ring: getLengthWithEmptyAndArbitrary()
1859
1850
  }],
1860
1851
  /**
1861
1852
  * Ring Width Inset
@@ -1881,7 +1872,7 @@ function getDefaultConfig() {
1881
1872
  * @see https://tailwindcss.com/docs/ring-offset-width
1882
1873
  */
1883
1874
  'ring-offset-w': [{
1884
- 'ring-offset': [isLength]
1875
+ 'ring-offset': [isLength, isArbitraryLength]
1885
1876
  }],
1886
1877
  /**
1887
1878
  * Ring Offset Color
@@ -2231,7 +2222,9 @@ function getDefaultConfig() {
2231
2222
  * Appearance
2232
2223
  * @see https://tailwindcss.com/docs/appearance
2233
2224
  */
2234
- appearance: ['appearance-none'],
2225
+ appearance: [{
2226
+ appearance: ['none', 'auto']
2227
+ }],
2235
2228
  /**
2236
2229
  * Cursor
2237
2230
  * @see https://tailwindcss.com/docs/cursor
@@ -2426,10 +2419,27 @@ function getDefaultConfig() {
2426
2419
  * @see https://tailwindcss.com/docs/touch-action
2427
2420
  */
2428
2421
  touch: [{
2429
- touch: ['auto', 'none', 'pinch-zoom', 'manipulation', {
2430
- pan: ['x', 'left', 'right', 'y', 'up', 'down']
2431
- }]
2422
+ touch: ['auto', 'none', 'manipulation']
2423
+ }],
2424
+ /**
2425
+ * Touch Action X
2426
+ * @see https://tailwindcss.com/docs/touch-action
2427
+ */
2428
+ 'touch-x': [{
2429
+ 'touch-pan': ['x', 'left', 'right']
2430
+ }],
2431
+ /**
2432
+ * Touch Action Y
2433
+ * @see https://tailwindcss.com/docs/touch-action
2434
+ */
2435
+ 'touch-y': [{
2436
+ 'touch-pan': ['y', 'up', 'down']
2432
2437
  }],
2438
+ /**
2439
+ * Touch Action Pinch Zoom
2440
+ * @see https://tailwindcss.com/docs/touch-action
2441
+ */
2442
+ 'touch-pz': ['touch-pinch-zoom'],
2433
2443
  /**
2434
2444
  * User Select
2435
2445
  * @see https://tailwindcss.com/docs/user-select
@@ -2457,7 +2467,7 @@ function getDefaultConfig() {
2457
2467
  * @see https://tailwindcss.com/docs/stroke-width
2458
2468
  */
2459
2469
  'stroke-w': [{
2460
- stroke: [isLength, isArbitraryNumber]
2470
+ stroke: [isLength, isArbitraryLength, isArbitraryNumber]
2461
2471
  }],
2462
2472
  /**
2463
2473
  * Stroke
@@ -2471,7 +2481,14 @@ function getDefaultConfig() {
2471
2481
  * Screen Readers
2472
2482
  * @see https://tailwindcss.com/docs/screen-readers
2473
2483
  */
2474
- sr: ['sr-only', 'not-sr-only']
2484
+ sr: ['sr-only', 'not-sr-only'],
2485
+ /**
2486
+ * Forced Color Adjust
2487
+ * @see https://tailwindcss.com/docs/forced-color-adjust
2488
+ */
2489
+ 'forced-color-adjust': [{
2490
+ 'forced-color-adjust': ['auto', 'none']
2491
+ }]
2475
2492
  },
2476
2493
  conflictingClassGroups: {
2477
2494
  overflow: ['overflow-x', 'overflow-y'],
@@ -2487,6 +2504,7 @@ function getDefaultConfig() {
2487
2504
  m: ['mx', 'my', 'ms', 'me', 'mt', 'mr', 'mb', 'ml'],
2488
2505
  mx: ['mr', 'ml'],
2489
2506
  my: ['mt', 'mb'],
2507
+ size: ['w', 'h'],
2490
2508
  'font-size': ['leading'],
2491
2509
  'fvn-normal': ['fvn-ordinal', 'fvn-slashed-zero', 'fvn-figure', 'fvn-spacing', 'fvn-fraction'],
2492
2510
  'fvn-ordinal': ['fvn-normal'],
@@ -2494,6 +2512,7 @@ function getDefaultConfig() {
2494
2512
  'fvn-figure': ['fvn-normal'],
2495
2513
  'fvn-spacing': ['fvn-normal'],
2496
2514
  'fvn-fraction': ['fvn-normal'],
2515
+ 'line-clamp': ['display', 'overflow'],
2497
2516
  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'],
2498
2517
  'rounded-s': ['rounded-ss', 'rounded-es'],
2499
2518
  'rounded-e': ['rounded-se', 'rounded-ee'],
@@ -2513,7 +2532,11 @@ function getDefaultConfig() {
2513
2532
  'scroll-my': ['scroll-mt', 'scroll-mb'],
2514
2533
  'scroll-p': ['scroll-px', 'scroll-py', 'scroll-ps', 'scroll-pe', 'scroll-pt', 'scroll-pr', 'scroll-pb', 'scroll-pl'],
2515
2534
  'scroll-px': ['scroll-pr', 'scroll-pl'],
2516
- 'scroll-py': ['scroll-pt', 'scroll-pb']
2535
+ 'scroll-py': ['scroll-pt', 'scroll-pb'],
2536
+ touch: ['touch-x', 'touch-y', 'touch-pz'],
2537
+ 'touch-x': ['touch'],
2538
+ 'touch-y': ['touch'],
2539
+ 'touch-pz': ['touch']
2517
2540
  },
2518
2541
  conflictingClassGroupModifiers: {
2519
2542
  'font-size': ['leading']
@@ -2525,45 +2548,61 @@ function getDefaultConfig() {
2525
2548
  * @param baseConfig Config where other config will be merged into. This object will be mutated.
2526
2549
  * @param configExtension Partial config to merge into the `baseConfig`.
2527
2550
  */
2528
- function mergeConfigs(baseConfig, configExtension) {
2529
- for (var key in configExtension) {
2530
- mergePropertyRecursively(baseConfig, key, configExtension[key]);
2551
+ function mergeConfigs(baseConfig, {
2552
+ cacheSize,
2553
+ prefix,
2554
+ separator,
2555
+ extend = {},
2556
+ override = {}
2557
+ }) {
2558
+ overrideProperty(baseConfig, 'cacheSize', cacheSize);
2559
+ overrideProperty(baseConfig, 'prefix', prefix);
2560
+ overrideProperty(baseConfig, 'separator', separator);
2561
+ for (const configKey in override) {
2562
+ overrideConfigProperties(baseConfig[configKey], override[configKey]);
2563
+ }
2564
+ for (const key in extend) {
2565
+ mergeConfigProperties(baseConfig[key], extend[key]);
2531
2566
  }
2532
2567
  return baseConfig;
2533
2568
  }
2534
- var hasOwnProperty = Object.prototype.hasOwnProperty;
2535
- var overrideTypes = /*#__PURE__*/new Set(['string', 'number', 'boolean']);
2536
- function mergePropertyRecursively(baseObject, mergeKey, mergeValue) {
2537
- if (!hasOwnProperty.call(baseObject, mergeKey) || overrideTypes.has(typeof mergeValue) || mergeValue === null) {
2538
- baseObject[mergeKey] = mergeValue;
2539
- return;
2569
+ function overrideProperty(baseObject, overrideKey, overrideValue) {
2570
+ if (overrideValue !== undefined) {
2571
+ baseObject[overrideKey] = overrideValue;
2540
2572
  }
2541
- if (Array.isArray(mergeValue) && Array.isArray(baseObject[mergeKey])) {
2542
- baseObject[mergeKey] = baseObject[mergeKey].concat(mergeValue);
2543
- return;
2544
- }
2545
- if (typeof mergeValue === 'object' && typeof baseObject[mergeKey] === 'object') {
2546
- if (baseObject[mergeKey] === null) {
2547
- baseObject[mergeKey] = mergeValue;
2548
- return;
2549
- }
2550
- for (var nextKey in mergeValue) {
2551
- mergePropertyRecursively(baseObject[mergeKey], nextKey, mergeValue[nextKey]);
2573
+ }
2574
+ function overrideConfigProperties(baseObject, overrideObject) {
2575
+ if (overrideObject) {
2576
+ for (const key in overrideObject) {
2577
+ overrideProperty(baseObject, key, overrideObject[key]);
2552
2578
  }
2553
2579
  }
2554
2580
  }
2555
-
2556
- function extendTailwindMerge(configExtension) {
2557
- for (var _len = arguments.length, createConfig = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
2558
- createConfig[_key - 1] = arguments[_key];
2581
+ function mergeConfigProperties(baseObject, mergeObject) {
2582
+ if (mergeObject) {
2583
+ for (const key in mergeObject) {
2584
+ const mergeValue = mergeObject[key];
2585
+ if (mergeValue !== undefined) {
2586
+ baseObject[key] = (baseObject[key] || []).concat(mergeValue);
2587
+ }
2588
+ }
2559
2589
  }
2560
- return typeof configExtension === 'function' ? createTailwindMerge.apply(void 0, [getDefaultConfig, configExtension].concat(createConfig)) : createTailwindMerge.apply(void 0, [function () {
2561
- return mergeConfigs(getDefaultConfig(), configExtension);
2562
- }].concat(createConfig));
2563
2590
  }
2591
+ function extendTailwindMerge(configExtension, ...createConfig) {
2592
+ return typeof configExtension === 'function' ? createTailwindMerge(getDefaultConfig, configExtension, ...createConfig) : createTailwindMerge(() => mergeConfigs(getDefaultConfig(), configExtension), ...createConfig);
2593
+ }
2594
+ const twMerge = /*#__PURE__*/createTailwindMerge(getDefaultConfig);
2595
+ exports.createTailwindMerge = createTailwindMerge;
2596
+ exports.extendTailwindMerge = extendTailwindMerge;
2597
+ exports.fromTheme = fromTheme;
2598
+ exports.getDefaultConfig = getDefaultConfig;
2599
+ exports.mergeConfigs = mergeConfigs;
2600
+ exports.twJoin = twJoin;
2601
+ exports.twMerge = twMerge;
2602
+ exports.validators = validators;
2603
+ //# sourceMappingURL=bundle-cjs.js.map
2604
+ });
2564
2605
 
2565
- var twMerge = /*#__PURE__*/createTailwindMerge(getDefaultConfig);
2566
-
2567
- var re={twMerge:!0,twMergeConfig:{},responsiveVariants:!1},Z=i=>i||void 0,j=(...i)=>Z(y(i).filter(Boolean).join(" ")),B=null,O={},R=!1,A=(...i)=>v=>v.twMerge?((!B||R)&&(R=!1,B=l(O)?twMerge:extendTailwindMerge(O)),Z(B(j(i)))):j(i),Y=(i,v)=>{for(let e in v)i.hasOwnProperty(e)?i[e]=j(i[e],v[e]):i[e]=v[e];return i},ce=(i,v)=>{let{extend:e$1=null,slots:N={},variants:q={},compoundVariants:C=[],compoundSlots:V=[],defaultVariants:F={}}=i,m={...re,...v},M=e$1!=null&&e$1.base?j(e$1.base,i==null?void 0:i.base):i==null?void 0:i.base,g$1=e$1!=null&&e$1.variants&&!l(e$1.variants)?p(q,e$1.variants):q,h=e$1!=null&&e$1.defaultVariants&&!l(e$1.defaultVariants)?{...e$1.defaultVariants,...F}:F;!l(m.twMergeConfig)&&!u(m.twMergeConfig,O)&&(R=!0,O=m.twMergeConfig);let $=l(N)?{}:{base:i==null?void 0:i.base,...N},w=l(e$1==null?void 0:e$1.slots)?$:Y(e$1==null?void 0:e$1.slots,l($)?{base:i==null?void 0:i.base}:$),d=f=>{if(l(g$1)&&l(N)&&l(e$1==null?void 0:e$1.slots))return A(M,f==null?void 0:f.class,f==null?void 0:f.className)(m);if(C&&!Array.isArray(C))throw new TypeError(`The "compoundVariants" prop must be an array. Received: ${typeof C}`);if(V&&!Array.isArray(V))throw new TypeError(`The "compoundSlots" prop must be an array. Received: ${typeof V}`);let K=(t,n,a=[],s)=>{let r=a;if(typeof n=="string")r=r.concat(g(n).split(" ").map(l=>`${t}:${l}`));else if(Array.isArray(n))r=r.concat(n.reduce((l,c)=>l.concat(`${t}:${c}`),[]));else if(typeof n=="object"&&typeof s=="string"){for(let l in n)if(n.hasOwnProperty(l)&&l===s){let c=n[l];if(c&&typeof c=="string"){let y=g(c);r[s]?r[s]=r[s].concat(y.split(" ").map(u=>`${t}:${u}`)):r[s]=y.split(" ").map(u=>`${t}:${u}`);}else Array.isArray(c)&&c.length>0&&(r[s]=c.reduce((y,u)=>y.concat(`${t}:${u}`),[]));}}return r},U=(t,n=g$1,a$1=null,s=null)=>{var H;let r=n[t];if(!r||l(r))return null;let l$1=(H=s==null?void 0:s[t])!=null?H:f==null?void 0:f[t];if(l$1===null)return null;let c=a(l$1),y=Array.isArray(m.responsiveVariants)&&m.responsiveVariants.length>0||m.responsiveVariants===!0,u=h==null?void 0:h[t],b$1=[];if(typeof c=="object"&&y)for(let[k,I]of Object.entries(c)){let te=r[I];if(k==="initial"){u=I;continue}Array.isArray(m.responsiveVariants)&&!m.responsiveVariants.includes(k)||(b$1=K(k,te,b$1,a$1));}let S=r[c]||r[a(u)];return typeof b$1=="object"&&typeof a$1=="string"&&b$1[a$1]?Y(b$1,S):b$1.length>0?(b$1.push(S),b$1):S},x$1=()=>g$1?Object.keys(g$1).map(t=>U(t,g$1)):null,P=(t,n)=>{if(!g$1||typeof g$1!="object")return null;let a=new Array;for(let s in g$1){let r=U(s,g$1,t,n),l=t==="base"&&typeof r=="string"?r:r&&r[t];l&&(a[a.length]=l);}return a},W={};for(let t in f)f[t]!==void 0&&(W[t]=f[t]);let z=(t,n)=>{var s;let a=typeof(f==null?void 0:f[t])=="object"?{[t]:(s=f[t])==null?void 0:s.initial}:{};return {...h,...W,...a,...n}},D=(t=[],n)=>{let a=[];for(let{class:s,className:r,...l}of t){let c=!0;for(let[y,u]of Object.entries(l)){let b=z(y,n);if(Array.isArray(u)){if(!u.includes(b[y])){c=!1;break}}else if(b[y]!==u){c=!1;break}}c&&(s&&a.push(s),r&&a.push(r));}return a},G=t=>{let n=D(C,t),a=D(e$1==null?void 0:e$1.compoundVariants,t);return x(a,n)},p=t=>{let n=G(t);if(!Array.isArray(n))return n;let a={};for(let s of n)if(typeof s=="string"&&(a.base=A(a.base,s)(m)),typeof s=="object")for(let[r,l]of Object.entries(s))a[r]=A(a[r],l)(m);return a},ee=t=>{if(V.length<1)return null;let n={};for(let{slots:a=[],class:s,className:r,...l$1}of V){if(!l(l$1)){let c=!0;for(let y of Object.keys(l$1)){let u=z(y,t)[y];if(u===void 0||u!==l$1[y]){c=!1;break}}if(!c)continue}for(let c of a)n[c]=n[c]||[],n[c].push([s,r]);}return n};if(!l(N)||!l(e$1==null?void 0:e$1.slots)){let t={};if(typeof w=="object"&&!l(w))for(let n of Object.keys(w))t[n]=a=>{var s,r;return A(w[n],P(n,a),((s=p(a))!=null?s:[])[n],((r=ee(a))!=null?r:[])[n],a==null?void 0:a.class,a==null?void 0:a.className)(m)};return t}return A(M,x$1(),G(),f==null?void 0:f.class,f==null?void 0:f.className)(m)},_=()=>{if(!(!g$1||typeof g$1!="object"))return Object.keys(g$1)};return d.variantKeys=_(),d.extend=e$1,d.base=M,d.slots=w,d.variants=g$1,d.defaultVariants=h,d.compoundSlots=V,d.compoundVariants=C,d};
2606
+ var ie={twMerge:!0,twMergeConfig:{},responsiveVariants:!1},_=s=>s||void 0,M=(...s)=>_(y(s).filter(Boolean).join(" ")),R=null,v={},q=!1,j=(...s)=>b$1=>b$1.twMerge?((!R||q)&&(q=!1,R=u(v)?bundleCjs.twMerge:bundleCjs.extendTailwindMerge({...v,extend:{theme:v.theme,classGroups:v.classGroups,conflictingClassGroupModifiers:v.conflictingClassGroupModifiers,conflictingClassGroups:v.conflictingClassGroups,...v.extend}})),_(R(M(s)))):M(s),Z=(s,b)=>{for(let e in b)s.hasOwnProperty(e)?s[e]=M(s[e],b[e]):s[e]=b[e];return s},ce=(s,b$1)=>{let{extend:e=null,slots:N={},variants:F={},compoundVariants:U=[],compoundSlots:C=[],defaultVariants:W={}}=s,m={...ie,...b$1},S=e!=null&&e.base?M(e.base,s==null?void 0:s.base):s==null?void 0:s.base,g$1=e!=null&&e.variants&&!u(e.variants)?p(F,e.variants):F,A=e!=null&&e.defaultVariants&&!u(e.defaultVariants)?{...e.defaultVariants,...W}:W;!u(m.twMergeConfig)&&!x(m.twMergeConfig,v)&&(q=!0,v=m.twMergeConfig);let O=u(e==null?void 0:e.slots),$=u(N)?{}:{base:M(s==null?void 0:s.base,O&&(e==null?void 0:e.base)),...N},w=O?$:Z({...e==null?void 0:e.slots},u($)?{base:s==null?void 0:s.base}:$),h$1=u(e==null?void 0:e.compoundVariants)?U:a(e==null?void 0:e.compoundVariants,U),V=f=>{if(u(g$1)&&u(N)&&O)return j(S,f==null?void 0:f.class,f==null?void 0:f.className)(m);if(h$1&&!Array.isArray(h$1))throw new TypeError(`The "compoundVariants" prop must be an array. Received: ${typeof h$1}`);if(C&&!Array.isArray(C))throw new TypeError(`The "compoundSlots" prop must be an array. Received: ${typeof C}`);let K=(t,n,a=[],i)=>{let r=a;if(typeof n=="string")r=r.concat(g(n).split(" ").map(o=>`${t}:${o}`));else if(Array.isArray(n))r=r.concat(n.reduce((o,c)=>o.concat(`${t}:${c}`),[]));else if(typeof n=="object"&&typeof i=="string"){for(let o in n)if(n.hasOwnProperty(o)&&o===i){let c=n[o];if(c&&typeof c=="string"){let l=g(c);r[i]?r[i]=r[i].concat(l.split(" ").map(u=>`${t}:${u}`)):r[i]=l.split(" ").map(u=>`${t}:${u}`);}else Array.isArray(c)&&c.length>0&&(r[i]=c.reduce((l,u)=>l.concat(`${t}:${u}`),[]));}}return r},z=(t,n=g$1,a$1=null,i=null)=>{var J;let r=n[t];if(!r||u(r))return null;let o=(J=i==null?void 0:i[t])!=null?J:f==null?void 0:f[t];if(o===null)return null;let c=l(o),l$1=Array.isArray(m.responsiveVariants)&&m.responsiveVariants.length>0||m.responsiveVariants===!0,u$1=A==null?void 0:A[t],d=[];if(typeof c=="object"&&l$1)for(let[T,L]of Object.entries(c)){let ne=r[L];if(T==="initial"){u$1=L;continue}Array.isArray(m.responsiveVariants)&&!m.responsiveVariants.includes(T)||(d=K(T,ne,d,a$1));}let ae=c!=null&&typeof c!="object"?c:l(u$1),k=r[ae||"false"];return typeof d=="object"&&typeof a$1=="string"&&d[a$1]?Z(d,k):d.length>0?(d.push(k),d):k},P=()=>g$1?Object.keys(g$1).map(t=>z(t,g$1)):null,p=(t,n)=>{if(!g$1||typeof g$1!="object")return null;let a=new Array;for(let i in g$1){let r=z(i,g$1,t,n),o=t==="base"&&typeof r=="string"?r:r&&r[t];o&&(a[a.length]=o);}return a},D={};for(let t in f)f[t]!==void 0&&(D[t]=f[t]);let H=(t,n)=>{var i;let a=typeof(f==null?void 0:f[t])=="object"?{[t]:(i=f[t])==null?void 0:i.initial}:{};return {...A,...D,...a,...n}},I=(t=[],n)=>{let a=[];for(let{class:i,className:r,...o}of t){let c=!0;for(let[l,u]of Object.entries(o)){let d=H(l,n);if(Array.isArray(u)){if(!u.includes(d[l])){c=!1;break}}else if(d[l]!==u){c=!1;break}}c&&(i&&a.push(i),r&&a.push(r));}return a},ee=t=>{let n=I(h$1,t);if(!Array.isArray(n))return n;let a={};for(let i of n)if(typeof i=="string"&&(a.base=j(a.base,i)(m)),typeof i=="object")for(let[r,o]of Object.entries(i))a[r]=j(a[r],o)(m);return a},te=t=>{if(C.length<1)return null;let n={};for(let{slots:a=[],class:i,className:r,...o}of C){if(!u(o)){let c=!0;for(let l of Object.keys(o)){let u=H(l,t)[l];if(u===void 0||(Array.isArray(o[l])?!o[l].includes(u):o[l]!==u)){c=!1;break}}if(!c)continue}for(let c of a)n[c]=n[c]||[],n[c].push([i,r]);}return n};if(!u(N)||!O){let t={};if(typeof w=="object"&&!u(w))for(let n of Object.keys(w))t[n]=a=>{var i,r;return j(w[n],p(n,a),((i=ee(a))!=null?i:[])[n],((r=te(a))!=null?r:[])[n],a==null?void 0:a.class,a==null?void 0:a.className)(m)};return t}return j(S,P(),I(h$1),f==null?void 0:f.class,f==null?void 0:f.className)(m)},x$1=()=>{if(!(!g$1||typeof g$1!="object"))return Object.keys(g$1)};return V.variantKeys=x$1(),V.extend=e,V.base=S,V.slots=w,V.variants=g$1,V.defaultVariants=A,V.compoundSlots=C,V.compoundVariants=h$1,V};
2568
2607
 
2569
2608
  export { ce as c };