bromcom-ui 2.9.0-rc.1 → 2.9.0-rc.11

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 (505) 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/global/global.js +19 -5
  4. package/dist/bromcom-ui/{p-bc840f30.entry.js → p-01416407.entry.js} +1 -1
  5. package/dist/bromcom-ui/{p-4aa0e6b1.js → p-034bbcdd.js} +1 -1
  6. package/dist/bromcom-ui/p-042efd5e.entry.js +5 -0
  7. package/dist/bromcom-ui/p-068d918e.entry.js +5 -0
  8. package/dist/bromcom-ui/p-0976ff0f.entry.js +5 -0
  9. package/dist/bromcom-ui/p-0a7f3cd6.entry.js +5 -0
  10. package/dist/bromcom-ui/p-0b0ff7ee.entry.js +5 -0
  11. package/dist/bromcom-ui/p-0ce0079c.entry.js +5 -0
  12. package/dist/bromcom-ui/p-0ff006e8.entry.js +5 -0
  13. package/dist/bromcom-ui/p-104a32ce.entry.js +5 -0
  14. package/dist/bromcom-ui/p-12304c2d.entry.js +5 -0
  15. package/dist/bromcom-ui/{p-f937f362.entry.js → p-123d6355.entry.js} +1 -1
  16. package/dist/bromcom-ui/p-132d4301.entry.js +5 -0
  17. package/dist/bromcom-ui/p-1701ff2a.entry.js +5 -0
  18. package/dist/bromcom-ui/p-170cf07d.js +6 -0
  19. package/dist/bromcom-ui/p-19c7cea5.entry.js +5 -0
  20. package/dist/bromcom-ui/{p-5618ee1e.entry.js → p-1b96dbbf.entry.js} +1 -1
  21. package/dist/bromcom-ui/{p-037a40a6.entry.js → p-228c74e9.entry.js} +1 -1
  22. package/dist/bromcom-ui/{p-a429e85b.js → p-23c35e1b.js} +1 -1
  23. package/dist/bromcom-ui/p-2608b100.entry.js +5 -0
  24. package/dist/bromcom-ui/{p-f8c20298.entry.js → p-28f78dd4.entry.js} +1 -1
  25. package/dist/bromcom-ui/p-2a9053d8.js +5 -0
  26. package/dist/bromcom-ui/p-2ba8bfb9.js +5 -0
  27. package/dist/bromcom-ui/p-2c21b28a.entry.js +5 -0
  28. package/dist/bromcom-ui/p-2d4a0a66.entry.js +5 -0
  29. package/dist/bromcom-ui/{p-c80ab24a.entry.js → p-3078fcd2.entry.js} +1 -1
  30. package/dist/bromcom-ui/p-3182df7e.js +10 -0
  31. package/dist/bromcom-ui/p-324bf5e5.entry.js +5 -0
  32. package/dist/bromcom-ui/p-37084b52.entry.js +5 -0
  33. package/dist/bromcom-ui/p-37488f1a.entry.js +5 -0
  34. package/dist/bromcom-ui/{p-05b0bdce.entry.js → p-3960cae8.entry.js} +1 -1
  35. package/dist/bromcom-ui/{p-63b14659.entry.js → p-3a06c6b1.entry.js} +1 -1
  36. package/dist/bromcom-ui/{p-c23b6240.js → p-3ade1099.js} +1 -1
  37. package/dist/bromcom-ui/{p-799af572.js → p-3bd27fdd.js} +1 -1
  38. package/dist/bromcom-ui/{p-8c018ae0.js → p-3c7a0345.js} +1 -1
  39. package/dist/bromcom-ui/{p-494ebf69.entry.js → p-3d730230.entry.js} +1 -1
  40. package/dist/bromcom-ui/p-3db7cc9b.entry.js +5 -0
  41. package/dist/bromcom-ui/{p-d8cc24f0.entry.js → p-44ca28fa.entry.js} +1 -1
  42. package/dist/bromcom-ui/p-45ca98b5.entry.js +5 -0
  43. package/dist/bromcom-ui/p-4707aa4d.entry.js +5 -0
  44. package/dist/bromcom-ui/p-4798d827.js +5 -0
  45. package/dist/bromcom-ui/{p-12543c4f.js → p-49bb8e10.js} +1 -1
  46. package/dist/bromcom-ui/p-4ae97c02.entry.js +5 -0
  47. package/dist/bromcom-ui/p-4c21b17f.js +5 -0
  48. package/dist/bromcom-ui/{p-842a5926.entry.js → p-4e33341b.entry.js} +1 -1
  49. package/dist/bromcom-ui/p-5101acb3.js +5 -0
  50. package/dist/bromcom-ui/p-5600c817.js +5 -0
  51. package/dist/bromcom-ui/p-56317397.entry.js +5 -0
  52. package/dist/bromcom-ui/p-57a08b2c.entry.js +5 -0
  53. package/dist/bromcom-ui/{p-7e44e6b5.js → p-5ae0a59b.js} +1 -1
  54. package/dist/bromcom-ui/p-5dc1d0fc.entry.js +5 -0
  55. package/dist/bromcom-ui/p-5fbb57f6.entry.js +5 -0
  56. package/dist/bromcom-ui/p-62eb13d4.entry.js +5 -0
  57. package/dist/bromcom-ui/p-63337aa3.entry.js +5 -0
  58. package/dist/bromcom-ui/{p-f82afa9d.entry.js → p-67343ad8.entry.js} +1 -1
  59. package/dist/bromcom-ui/{p-8f78fe1c.entry.js → p-6ab403d2.entry.js} +1 -1
  60. package/dist/bromcom-ui/p-6cff5185.entry.js +5 -0
  61. package/dist/bromcom-ui/p-6e577849.entry.js +5 -0
  62. package/dist/bromcom-ui/p-7014cade.entry.js +5 -0
  63. package/dist/bromcom-ui/p-74798533.entry.js +5 -0
  64. package/dist/bromcom-ui/{p-a60a2dd0.js → p-74e6d2b6.js} +1 -1
  65. package/dist/bromcom-ui/{p-54bcf02f.js → p-76595c93.js} +1 -1
  66. package/dist/bromcom-ui/p-78f57233.entry.js +5 -0
  67. package/dist/bromcom-ui/{p-5c059eba.entry.js → p-7b486021.entry.js} +1 -1
  68. package/dist/bromcom-ui/{p-f7e29f3e.entry.js → p-7c5763cc.entry.js} +1 -1
  69. package/dist/bromcom-ui/p-7e3209a0.js +14 -0
  70. package/dist/bromcom-ui/{p-961dc8e1.entry.js → p-7f1612df.entry.js} +1 -1
  71. package/dist/bromcom-ui/p-82671aa3.entry.js +5 -0
  72. package/dist/bromcom-ui/p-8403e81f.entry.js +5 -0
  73. package/dist/bromcom-ui/p-8b6dbd63.entry.js +5 -0
  74. package/dist/bromcom-ui/{p-53820462.entry.js → p-8c3535b6.entry.js} +1 -1
  75. package/dist/bromcom-ui/p-8eb5ed81.entry.js +5 -0
  76. package/dist/bromcom-ui/{p-76cb3798.entry.js → p-9314d7ed.entry.js} +1 -1
  77. package/dist/bromcom-ui/p-941b7517.entry.js +5 -0
  78. package/dist/bromcom-ui/p-94f43ce3.entry.js +5 -0
  79. package/dist/bromcom-ui/p-9519a9e4.entry.js +5 -0
  80. package/dist/bromcom-ui/p-95fa989d.entry.js +5 -0
  81. package/dist/bromcom-ui/p-9bf657da.entry.js +5 -0
  82. package/dist/bromcom-ui/{p-23309057.entry.js → p-9d12a9da.entry.js} +1 -1
  83. package/dist/bromcom-ui/p-a4e3b170.entry.js +5 -0
  84. package/dist/bromcom-ui/p-a9eb0321.js +315 -0
  85. package/dist/bromcom-ui/{p-4fcf03c1.entry.js → p-ae57f046.entry.js} +1 -1
  86. package/dist/bromcom-ui/{p-d69fb13b.entry.js → p-b284e383.entry.js} +1 -1
  87. package/dist/bromcom-ui/p-b4caa7af.entry.js +5 -0
  88. package/dist/bromcom-ui/p-b82685e4.js +12 -0
  89. package/dist/bromcom-ui/{p-7d662231.entry.js → p-ba3c6657.entry.js} +1 -1
  90. package/dist/bromcom-ui/p-bdec3fa0.entry.js +5 -0
  91. package/dist/bromcom-ui/p-bdf80844.entry.js +5 -0
  92. package/dist/bromcom-ui/p-bebbec89.entry.js +5 -0
  93. package/dist/bromcom-ui/p-bed627ab.js +11 -0
  94. package/dist/bromcom-ui/p-c8a64f05.entry.js +5 -0
  95. package/dist/bromcom-ui/p-c8d647c1.entry.js +5 -0
  96. package/dist/bromcom-ui/{p-cb6d3c4e.js → p-cb522ae0.js} +1 -1
  97. package/dist/bromcom-ui/p-cbb2de64.entry.js +5 -0
  98. package/dist/bromcom-ui/p-ce3b1f49.entry.js +5 -0
  99. package/dist/bromcom-ui/{p-f3ed187a.entry.js → p-cea71a01.entry.js} +1 -1
  100. package/dist/bromcom-ui/{p-8d0ca8c2.js → p-cff8ef93.js} +1 -1
  101. package/dist/bromcom-ui/p-d2670b77.entry.js +5 -0
  102. package/dist/bromcom-ui/p-d896a91f.entry.js +5 -0
  103. package/dist/bromcom-ui/{p-b60bcecf.js → p-dc8305dc.js} +1 -1
  104. package/dist/bromcom-ui/{p-2afef4b5.entry.js → p-df185078.entry.js} +1 -1
  105. package/dist/bromcom-ui/{p-dbc4c30c.js → p-e1689f47.js} +1 -1
  106. package/dist/bromcom-ui/{p-c8e13fd7.js → p-e1877ee9.js} +1 -1
  107. package/dist/bromcom-ui/p-e45c1546.js +5 -0
  108. package/dist/bromcom-ui/p-e59b1f37.entry.js +5 -0
  109. package/dist/bromcom-ui/p-eaaf03db.js +5 -0
  110. package/dist/bromcom-ui/p-edfa7c7b.entry.js +5 -0
  111. package/dist/bromcom-ui/p-f0061666.entry.js +5 -0
  112. package/dist/bromcom-ui/p-f8a91bd5.js +5 -0
  113. package/dist/bromcom-ui/static/message-bot.svg +10 -0
  114. package/dist/cjs/{_commonjsHelpers-bd20f4c0.js → _commonjsHelpers-ed84c3ca.js} +16 -0
  115. package/dist/cjs/{bcm-ab921827.js → bcm-03727f3b.js} +5 -4
  116. package/dist/cjs/bcm-accordion.cjs.entry.js +5 -4
  117. package/dist/cjs/bcm-alert.cjs.entry.js +9 -8
  118. package/dist/cjs/bcm-attendance.cjs.entry.js +5 -4
  119. package/dist/cjs/bcm-autocomplete.cjs.entry.js +3 -3
  120. package/dist/cjs/bcm-avatar_2.cjs.entry.js +2770 -0
  121. package/dist/cjs/bcm-box.cjs.entry.js +1 -1
  122. package/dist/cjs/bcm-breadcrumb.cjs.entry.js +6 -5
  123. package/dist/cjs/bcm-button-group.cjs.entry.js +11 -10
  124. package/dist/cjs/{bcm-avatar_15.cjs.entry.js → bcm-button_8.cjs.entry.js} +423 -5456
  125. package/dist/cjs/bcm-card.cjs.entry.js +10 -9
  126. package/dist/cjs/bcm-checkbox-group.cjs.entry.js +15 -14
  127. package/dist/cjs/bcm-checkbox-lite_9.cjs.entry.js +10 -9
  128. package/dist/cjs/bcm-checkbox_2.cjs.entry.js +18 -17
  129. package/dist/cjs/bcm-chip-group.cjs.entry.js +129 -0
  130. package/dist/cjs/bcm-chip.cjs.entry.js +91 -0
  131. package/dist/cjs/bcm-collapse-group.cjs.entry.js +1 -1
  132. package/dist/cjs/bcm-collapse.cjs.entry.js +6 -5
  133. package/dist/cjs/bcm-color-input.cjs.entry.js +10 -9
  134. package/dist/cjs/bcm-colorpicker.cjs.entry.js +3 -3
  135. package/dist/cjs/bcm-content.cjs.entry.js +1 -1
  136. package/dist/cjs/bcm-date-picker.cjs.entry.js +9 -8
  137. package/dist/cjs/bcm-date.cjs.entry.js +124 -0
  138. package/dist/cjs/bcm-datetime-picker.cjs.entry.js +29 -14
  139. package/dist/cjs/bcm-default.cjs.entry.js +5 -4
  140. package/dist/cjs/bcm-drawer.cjs.entry.js +13 -12
  141. package/dist/cjs/bcm-dropdown.cjs.entry.js +12 -11
  142. package/dist/cjs/bcm-error-layout.cjs.entry.js +3 -3
  143. package/dist/cjs/bcm-expansion-panel.cjs.entry.js +9 -8
  144. package/dist/cjs/bcm-form-2.cjs.entry.js +13 -9
  145. package/dist/cjs/bcm-form-group.cjs.entry.js +1 -1
  146. package/dist/cjs/bcm-form.cjs.entry.js +489 -0
  147. package/dist/cjs/bcm-input-custom.cjs.entry.js +6 -5
  148. package/dist/cjs/bcm-item.cjs.entry.js +9 -8
  149. package/dist/cjs/bcm-items.cjs.entry.js +8 -7
  150. package/dist/cjs/bcm-link.cjs.entry.js +6 -6
  151. package/dist/cjs/bcm-list_3.cjs.entry.js +2503 -0
  152. package/dist/cjs/bcm-menu.cjs.entry.js +15 -13
  153. package/dist/cjs/bcm-message.cjs.entry.js +3 -3
  154. package/dist/cjs/bcm-modal-2-footer.cjs.entry.js +11 -10
  155. package/dist/cjs/bcm-modal-2-header.cjs.entry.js +10 -9
  156. package/dist/cjs/bcm-modal-2.cjs.entry.js +12 -11
  157. package/dist/cjs/bcm-modal.cjs.entry.js +11 -10
  158. package/dist/cjs/bcm-notification.cjs.entry.js +3 -3
  159. package/dist/cjs/bcm-old-input.cjs.entry.js +4 -4
  160. package/dist/cjs/bcm-old-tag_2.cjs.entry.js +3 -3
  161. package/dist/cjs/bcm-overlay_2.cjs.entry.js +4 -4
  162. package/dist/cjs/bcm-popconfirm-box.cjs.entry.js +10 -9
  163. package/dist/cjs/bcm-popconfirm.cjs.entry.js +9 -8
  164. package/dist/cjs/bcm-popover.cjs.entry.js +27 -22
  165. package/dist/cjs/bcm-progress.cjs.entry.js +9 -8
  166. package/dist/cjs/bcm-radio-group.cjs.entry.js +17 -16
  167. package/dist/cjs/bcm-radio.cjs.entry.js +18 -17
  168. package/dist/cjs/bcm-range.cjs.entry.js +10 -9
  169. package/dist/cjs/bcm-rc-picker.cjs.entry.js +8150 -0
  170. package/dist/cjs/bcm-result.cjs.entry.js +3 -3
  171. package/dist/cjs/bcm-select-group.cjs.entry.js +3 -3
  172. package/dist/cjs/bcm-select-option.cjs.entry.js +3 -3
  173. package/dist/cjs/bcm-select.cjs.entry.js +5 -5
  174. package/dist/cjs/bcm-skeleton.cjs.entry.js +5 -4
  175. package/dist/cjs/bcm-step.cjs.entry.js +8 -7
  176. package/dist/cjs/bcm-stepper.cjs.entry.js +15 -14
  177. package/dist/cjs/bcm-switch.cjs.entry.js +15 -14
  178. package/dist/cjs/bcm-tab-group.cjs.entry.js +16 -11
  179. package/dist/cjs/bcm-tab-item-header.cjs.entry.js +23 -37
  180. package/dist/cjs/bcm-tab-item.cjs.entry.js +10 -9
  181. package/dist/cjs/bcm-tab-pane.cjs.entry.js +3 -3
  182. package/dist/cjs/bcm-tab.cjs.entry.js +3 -3
  183. package/dist/cjs/bcm-table.cjs.entry.js +7649 -38
  184. package/dist/cjs/bcm-tabs-content.cjs.entry.js +3 -3
  185. package/dist/cjs/bcm-tabs.cjs.entry.js +3 -3
  186. package/dist/cjs/bcm-tag.cjs.entry.js +19 -18
  187. package/dist/cjs/bcm-text.cjs.entry.js +8 -8
  188. package/dist/cjs/bcm-textarea.cjs.entry.js +13 -12
  189. package/dist/cjs/bcm-time-picker.cjs.entry.js +9 -8
  190. package/dist/cjs/bcm-timeline-item.cjs.entry.js +3 -3
  191. package/dist/cjs/bcm-timeline.cjs.entry.js +3 -3
  192. package/dist/cjs/bcm-toast.cjs.entry.js +15 -14
  193. package/dist/cjs/bcm-treeview-group.cjs.entry.js +1 -1
  194. package/dist/cjs/bromcom-ui.cjs.js +5 -3
  195. package/dist/cjs/{caption-template-8d099fd6.js → caption-template-81dbc490.js} +2 -2
  196. package/dist/cjs/{color-helper-d6d2028b.js → color-helper-c3a819ea.js} +28 -2
  197. package/dist/cjs/{colors-e1d142ad.js → colors-078851ec.js} +1 -1
  198. package/dist/cjs/{floating-ui-c9fc2202.js → floating-ui-baa45717.js} +2 -2
  199. package/dist/cjs/{generate-de243a66.js → generate-84a14c1a.js} +57 -8
  200. package/dist/cjs/global-5e41fa4e.js +27 -0
  201. package/dist/cjs/{index-fdbf5226.js → index-95ae50d0.js} +1 -1
  202. package/dist/cjs/index-c08b35b2.js +1610 -0
  203. package/dist/cjs/{index-ddfd6d8f.js → index-c591ecec.js} +4 -0
  204. package/dist/cjs/{index-4506fcd7.js → index-d321de96.js} +1 -1
  205. package/dist/cjs/index-e05a7c6f.js +545 -0
  206. package/dist/cjs/{input-template-4c532c3a.js → input-template-b5038151.js} +8 -8
  207. package/dist/cjs/{is-load-decorator-137dded1.js → is-load-decorator-7575fbd2.js} +1 -1
  208. package/dist/cjs/{json-parse-decarator-f61061cf.js → json-parse-decarator-c18e611d.js} +2 -2
  209. package/dist/cjs/{label-template-4d5f99a5.js → label-template-8d34230f.js} +5 -5
  210. package/dist/cjs/loader.cjs.js +5 -3
  211. package/dist/cjs/moment-c1a71617.js +5689 -0
  212. package/dist/cjs/{number-helper-dedd64eb.js → number-helper-59448c42.js} +1 -1
  213. package/dist/cjs/old-bcm-popover-box.cjs.entry.js +11 -10
  214. package/dist/cjs/old-bcm-popover.cjs.entry.js +9 -8
  215. package/dist/cjs/package-fe10d578.js +9 -0
  216. package/dist/cjs/{popover-placement-ccb40073.js → popover-placement-86ece590.js} +1 -1
  217. package/dist/cjs/{slot-template-d70ea082.js → slot-template-758beb71.js} +2 -2
  218. package/dist/cjs/{stepper-states-faff7944.js → stepper-states-deb53239.js} +3 -3
  219. package/dist/cjs/{string-helper-d681e5c7.js → string-helper-b89a9828.js} +3 -3
  220. package/dist/cjs/{tooltip-helper-edce6fd0.js → tooltip-helper-5b2ee66d.js} +22 -14
  221. package/dist/cjs/{validators-e5a6ef69.js → validators-d89fdce5.js} +1 -1
  222. package/dist/cjs/watermark-2c23c8f1.js +47499 -0
  223. package/dist/collection/assets/csv.svg +9 -0
  224. package/dist/collection/assets/excel.svg +9 -0
  225. package/dist/collection/assets/pdf.svg +9 -0
  226. package/dist/collection/collection-manifest.json +5 -2
  227. package/dist/collection/components/atoms/avatar/avatar.js +94 -81
  228. package/dist/collection/components/atoms/avatar/avatar.style.js +42 -0
  229. package/dist/collection/components/atoms/badge/badge.js +30 -90
  230. package/dist/collection/components/atoms/badge/badge.style.js +48 -0
  231. package/dist/collection/components/atoms/icon/icon.js +15 -3
  232. package/dist/collection/components/atoms/icon/static/message-bot.svg +10 -0
  233. package/dist/collection/components/molecules/input/input.js +4 -4
  234. package/dist/collection/components/molecules/input-dropdown/input-dropdown.css +284 -0
  235. package/dist/collection/components/molecules/input-dropdown/input-dropdown.js +698 -0
  236. package/dist/collection/components/molecules/items/items.js +1 -1
  237. package/dist/collection/components/molecules/linked/linked.js +14 -2
  238. package/dist/collection/components/molecules/menu/menu.js +1 -0
  239. package/dist/collection/components/molecules/popconfirm/popconfirm.js +1 -1
  240. package/dist/collection/components/molecules/popover/popover.js +2 -2
  241. package/dist/collection/components/molecules/tab-group/tab-group.js +5 -1
  242. package/dist/collection/components/molecules/tab-group/tab-item-header.js +11 -26
  243. package/dist/collection/components/molecules/tooltip/tooltip.js +2 -2
  244. package/dist/collection/components/organism/datetime-picker/datetime-picker.js +15 -1
  245. package/dist/collection/components/organism/form/form.js +1 -0
  246. package/dist/collection/components/organism/form-2/bcm-form-components.js +4 -1
  247. package/dist/collection/components/organism/list/list.js +21 -2
  248. package/dist/collection/components/other/typography/typography.js +1 -1
  249. package/dist/collection/components/other_deprecated/old-popover/old-popover.js +1 -1
  250. package/dist/collection/components/third-parts/rc-picker/date.js +572 -0
  251. package/dist/collection/components/third-parts/rc-picker/rc-picker.css +366 -0
  252. package/dist/collection/components/third-parts/rc-picker/rc-picker.js +258 -0
  253. package/dist/collection/components/third-parts/table/table-definations.js +42 -0
  254. package/dist/collection/components/third-parts/table/table.css +136 -0
  255. package/dist/collection/components/third-parts/table/table.js +288 -0
  256. package/dist/collection/decorators/bcm-decorator.js +28 -0
  257. package/dist/collection/decorators/event-decorator.js +31 -0
  258. package/dist/collection/decorators/index.js +1 -0
  259. package/dist/collection/global/global.js +19 -5
  260. package/dist/collection/helper/color-helper.js +27 -1
  261. package/dist/collection/helper/generate.js +54 -4
  262. package/dist/collection/helper/popover-helper.js +13 -9
  263. package/dist/collection/helper/tooltip-helper.js +12 -4
  264. package/dist/collection/models/bcm.js +1 -0
  265. package/dist/collection/templates/index.js +2 -0
  266. package/dist/collection/templates/toolbar-hamburger-template.js +14 -0
  267. package/dist/collection/templates/toolbar-template.js +15 -0
  268. package/dist/components/_commonjsHelpers.js +16 -1
  269. package/dist/components/avatar.js +93 -53
  270. package/dist/components/badge.js +2638 -46
  271. package/dist/components/bcm-date.d.ts +11 -0
  272. package/dist/components/bcm-date.js +161 -0
  273. package/dist/components/bcm-form-2.js +4 -1
  274. package/dist/components/bcm-form.js +1 -0
  275. package/dist/components/bcm-input-dropdown.d.ts +11 -0
  276. package/dist/components/bcm-input-dropdown.js +330 -0
  277. package/dist/components/bcm-items.js +1 -1
  278. package/dist/components/bcm-popover.js +14 -10
  279. package/dist/components/bcm-rc-picker.d.ts +11 -0
  280. package/dist/components/bcm-rc-picker.js +10 -0
  281. package/dist/components/bcm-tab-group.js +5 -1
  282. package/dist/components/bcm-tab-item-header.js +11 -26
  283. package/dist/components/bcm-table.js +55128 -41
  284. package/dist/components/bcm.js +1 -0
  285. package/dist/components/color-helper.js +27 -1
  286. package/dist/components/colors2.js +1 -1
  287. package/dist/components/datetime-picker.js +15 -1
  288. package/dist/components/generate.js +57 -7
  289. package/dist/components/icon.js +15 -3
  290. package/dist/components/index.d.ts +4 -1
  291. package/dist/components/index.js +17 -3
  292. package/dist/components/index3.js +5 -1
  293. package/dist/components/input.js +4 -4
  294. package/dist/components/linked.js +13 -1
  295. package/dist/components/list.js +4 -2
  296. package/dist/components/menu.js +1 -0
  297. package/dist/components/raf.js +1594 -0
  298. package/dist/components/rc-overflow.js +32 -1557
  299. package/dist/components/rc-picker.js +13851 -0
  300. package/dist/components/tooltip-helper.js +12 -4
  301. package/dist/components/tooltip.js +1 -1
  302. package/dist/components/typography.js +1 -1
  303. package/dist/esm/{_commonjsHelpers-3016b722.js → _commonjsHelpers-be0d4ec8.js} +16 -1
  304. package/dist/esm/{bcm-9f50af9c.js → bcm-ac17222c.js} +2 -1
  305. package/dist/esm/bcm-accordion.entry.js +5 -4
  306. package/dist/esm/bcm-alert.entry.js +9 -8
  307. package/dist/esm/bcm-attendance.entry.js +5 -4
  308. package/dist/esm/bcm-autocomplete.entry.js +3 -3
  309. package/dist/esm/bcm-avatar_2.entry.js +2765 -0
  310. package/dist/esm/bcm-box.entry.js +1 -1
  311. package/dist/esm/bcm-breadcrumb.entry.js +6 -5
  312. package/dist/esm/bcm-button-group.entry.js +8 -7
  313. package/dist/esm/{bcm-avatar_15.entry.js → bcm-button_8.entry.js} +438 -5464
  314. package/dist/esm/bcm-card.entry.js +11 -10
  315. package/dist/esm/bcm-checkbox-group.entry.js +13 -12
  316. package/dist/esm/bcm-checkbox-lite_9.entry.js +8 -7
  317. package/dist/esm/bcm-checkbox_2.entry.js +14 -13
  318. package/dist/esm/bcm-chip-group.entry.js +125 -0
  319. package/dist/esm/bcm-chip.entry.js +87 -0
  320. package/dist/esm/bcm-collapse-group.entry.js +2 -2
  321. package/dist/esm/bcm-collapse.entry.js +6 -5
  322. package/dist/esm/bcm-color-input.entry.js +12 -11
  323. package/dist/esm/bcm-colorpicker.entry.js +5 -5
  324. package/dist/esm/bcm-content.entry.js +1 -1
  325. package/dist/esm/bcm-date-picker.entry.js +9 -8
  326. package/dist/esm/bcm-date.entry.js +120 -0
  327. package/dist/esm/bcm-datetime-picker.entry.js +29 -14
  328. package/dist/esm/bcm-default.entry.js +5 -4
  329. package/dist/esm/bcm-drawer.entry.js +13 -12
  330. package/dist/esm/bcm-dropdown.entry.js +9 -8
  331. package/dist/esm/bcm-error-layout.entry.js +3 -3
  332. package/dist/esm/bcm-expansion-panel.entry.js +10 -9
  333. package/dist/esm/bcm-form-2.entry.js +12 -8
  334. package/dist/esm/bcm-form-group.entry.js +1 -1
  335. package/dist/esm/bcm-form.entry.js +485 -0
  336. package/dist/esm/bcm-input-custom.entry.js +6 -5
  337. package/dist/esm/bcm-item.entry.js +9 -8
  338. package/dist/esm/bcm-items.entry.js +8 -7
  339. package/dist/esm/bcm-link.entry.js +4 -4
  340. package/dist/esm/bcm-list_3.entry.js +2497 -0
  341. package/dist/esm/bcm-menu.entry.js +17 -15
  342. package/dist/esm/bcm-message.entry.js +3 -3
  343. package/dist/esm/bcm-modal-2-footer.entry.js +13 -12
  344. package/dist/esm/bcm-modal-2-header.entry.js +12 -11
  345. package/dist/esm/bcm-modal-2.entry.js +13 -12
  346. package/dist/esm/bcm-modal.entry.js +9 -8
  347. package/dist/esm/bcm-notification.entry.js +3 -3
  348. package/dist/esm/bcm-old-input.entry.js +5 -5
  349. package/dist/esm/bcm-old-tag_2.entry.js +4 -4
  350. package/dist/esm/bcm-overlay_2.entry.js +4 -4
  351. package/dist/esm/bcm-popconfirm-box.entry.js +11 -10
  352. package/dist/esm/bcm-popconfirm.entry.js +7 -6
  353. package/dist/esm/bcm-popover.entry.js +27 -22
  354. package/dist/esm/bcm-progress.entry.js +9 -8
  355. package/dist/esm/bcm-radio-group.entry.js +15 -14
  356. package/dist/esm/bcm-radio.entry.js +13 -12
  357. package/dist/esm/bcm-range.entry.js +8 -7
  358. package/dist/esm/bcm-rc-picker.entry.js +8146 -0
  359. package/dist/esm/bcm-result.entry.js +3 -3
  360. package/dist/esm/bcm-select-group.entry.js +3 -3
  361. package/dist/esm/bcm-select-option.entry.js +3 -3
  362. package/dist/esm/bcm-select.entry.js +6 -6
  363. package/dist/esm/bcm-skeleton.entry.js +5 -4
  364. package/dist/esm/bcm-step.entry.js +8 -7
  365. package/dist/esm/bcm-stepper.entry.js +15 -14
  366. package/dist/esm/bcm-switch.entry.js +10 -9
  367. package/dist/esm/bcm-tab-group.entry.js +17 -12
  368. package/dist/esm/bcm-tab-item-header.entry.js +24 -38
  369. package/dist/esm/bcm-tab-item.entry.js +12 -11
  370. package/dist/esm/bcm-tab-pane.entry.js +3 -3
  371. package/dist/esm/bcm-tab.entry.js +3 -3
  372. package/dist/esm/bcm-table.entry.js +7650 -39
  373. package/dist/esm/bcm-tabs-content.entry.js +4 -4
  374. package/dist/esm/bcm-tabs.entry.js +4 -4
  375. package/dist/esm/bcm-tag.entry.js +9 -8
  376. package/dist/esm/bcm-text.entry.js +9 -9
  377. package/dist/esm/bcm-textarea.entry.js +11 -10
  378. package/dist/esm/bcm-time-picker.entry.js +9 -8
  379. package/dist/esm/bcm-timeline-item.entry.js +3 -3
  380. package/dist/esm/bcm-timeline.entry.js +3 -3
  381. package/dist/esm/bcm-toast.entry.js +9 -8
  382. package/dist/esm/bcm-treeview-group.entry.js +1 -1
  383. package/dist/esm/bromcom-ui.js +6 -4
  384. package/dist/esm/{caption-template-da16ba7b.js → caption-template-e973a48c.js} +2 -2
  385. package/dist/esm/{color-helper-e8ce23d7.js → color-helper-c4fa9ebc.js} +29 -3
  386. package/dist/esm/{colors-44c95e7e.js → colors-e1c31f79.js} +1 -1
  387. package/dist/esm/{element-dragger-89bb52fd.js → element-dragger-7ea06c76.js} +1 -1
  388. package/dist/esm/{floating-ui-e7341329.js → floating-ui-54c52eaa.js} +1 -1
  389. package/dist/esm/{generate-61676bf1.js → generate-77bbe272.js} +56 -7
  390. package/dist/esm/global-1b5f8bb5.js +25 -0
  391. package/dist/esm/{index-39133086.js → index-0615c2b8.js} +3 -1
  392. package/dist/esm/{index-93e36fdb.js → index-7e71bbc8.js} +1 -1
  393. package/dist/esm/index-a6d9d0af.js +541 -0
  394. package/dist/esm/{index-ed9652af.js → index-b84bc8c9.js} +1 -1
  395. package/dist/esm/index-c4568336.js +1594 -0
  396. package/dist/esm/{input-template-606f7441.js → input-template-bf10f00a.js} +4 -4
  397. package/dist/esm/{is-load-decorator-bc14ec4b.js → is-load-decorator-6784aa87.js} +1 -1
  398. package/dist/esm/{json-parse-decarator-2303670f.js → json-parse-decarator-7a13e271.js} +2 -2
  399. package/dist/esm/{label-template-d74fe788.js → label-template-f156f33f.js} +4 -4
  400. package/dist/esm/loader.js +6 -4
  401. package/dist/esm/moment-24231dde.js +5686 -0
  402. package/dist/esm/{number-helper-4ef4df19.js → number-helper-787aa192.js} +1 -1
  403. package/dist/esm/old-bcm-popover-box.entry.js +13 -12
  404. package/dist/esm/old-bcm-popover.entry.js +7 -6
  405. package/dist/esm/package-42b4a30f.js +7 -0
  406. package/dist/esm/{popover-placement-78f86f15.js → popover-placement-018109c4.js} +1 -1
  407. package/dist/esm/{slot-template-5b2db362.js → slot-template-46035685.js} +2 -2
  408. package/dist/esm/{stepper-states-9bb5528f.js → stepper-states-9f10dd4d.js} +3 -3
  409. package/dist/esm/{string-helper-6bd24967.js → string-helper-4a28f775.js} +2 -2
  410. package/dist/esm/{tooltip-helper-79e225e7.js → tooltip-helper-a6101f5d.js} +21 -13
  411. package/dist/esm/{utils-57652744.js → utils-b3338faf.js} +1 -1
  412. package/dist/esm/{validators-c4a5912c.js → validators-0ba6d217.js} +1 -1
  413. package/dist/esm/watermark-f2c6a1f9.js +47477 -0
  414. package/dist/types/components/atoms/avatar/avatar.d.ts +6 -10
  415. package/dist/types/components/atoms/avatar/avatar.style.d.ts +181 -0
  416. package/dist/types/components/atoms/badge/badge.d.ts +3 -7
  417. package/dist/types/components/atoms/badge/badge.style.d.ts +153 -0
  418. package/dist/types/components/atoms/icon/icon.d.ts +1 -0
  419. package/dist/types/components/molecules/input-dropdown/input-dropdown.d.ts +55 -0
  420. package/dist/types/components/molecules/linked/linked.d.ts +1 -0
  421. package/dist/types/components/organism/datetime-picker/datetime-picker.d.ts +1 -0
  422. package/dist/types/components/organism/list/list.d.ts +1 -0
  423. package/dist/types/components/third-parts/rc-picker/date.d.ts +46 -0
  424. package/dist/types/components/third-parts/rc-picker/rc-picker.d.ts +20 -0
  425. package/dist/types/components/third-parts/table/table-definations.d.ts +28 -0
  426. package/dist/types/components/third-parts/table/table.d.ts +37 -0
  427. package/dist/types/components.d.ts +183 -16
  428. package/dist/types/decorators/bcm-decorator.d.ts +2 -0
  429. package/dist/types/decorators/event-decorator.d.ts +2 -0
  430. package/dist/types/decorators/index.d.ts +1 -0
  431. package/dist/types/helper/color-helper.d.ts +22 -2
  432. package/dist/types/helper/generate.d.ts +21 -1
  433. package/dist/types/helper/popover-helper.d.ts +0 -5
  434. package/dist/types/helper/tooltip-helper.d.ts +0 -1
  435. package/dist/types/models/bcm.d.ts +9 -1
  436. package/dist/types/templates/index.d.ts +2 -0
  437. package/dist/types/templates/toolbar-hamburger-template.d.ts +12 -0
  438. package/dist/types/templates/toolbar-template.d.ts +13 -0
  439. package/package.json +16 -7
  440. package/dist/bromcom-ui/p-043beeb5.entry.js +0 -5
  441. package/dist/bromcom-ui/p-08fb3095.js +0 -5
  442. package/dist/bromcom-ui/p-0a28fd61.entry.js +0 -5
  443. package/dist/bromcom-ui/p-0c07940d.entry.js +0 -5
  444. package/dist/bromcom-ui/p-0d9741fc.entry.js +0 -5
  445. package/dist/bromcom-ui/p-11629904.entry.js +0 -5
  446. package/dist/bromcom-ui/p-11e7f04b.entry.js +0 -5
  447. package/dist/bromcom-ui/p-139b0cfc.entry.js +0 -5
  448. package/dist/bromcom-ui/p-195c4c41.entry.js +0 -5
  449. package/dist/bromcom-ui/p-1b8982a8.entry.js +0 -5
  450. package/dist/bromcom-ui/p-24aefda6.js +0 -5
  451. package/dist/bromcom-ui/p-25cfdc1c.entry.js +0 -5
  452. package/dist/bromcom-ui/p-27a8f8cc.entry.js +0 -5
  453. package/dist/bromcom-ui/p-3731f4fb.entry.js +0 -5
  454. package/dist/bromcom-ui/p-431b023c.js +0 -5
  455. package/dist/bromcom-ui/p-43bb2a7c.entry.js +0 -5
  456. package/dist/bromcom-ui/p-440afdfa.entry.js +0 -5
  457. package/dist/bromcom-ui/p-465c6839.entry.js +0 -5
  458. package/dist/bromcom-ui/p-49105365.entry.js +0 -5
  459. package/dist/bromcom-ui/p-4be5dbb6.entry.js +0 -5
  460. package/dist/bromcom-ui/p-4fcc0d21.entry.js +0 -5
  461. package/dist/bromcom-ui/p-61f2613f.entry.js +0 -5
  462. package/dist/bromcom-ui/p-62adb1ff.entry.js +0 -5
  463. package/dist/bromcom-ui/p-68e2ddc3.entry.js +0 -5
  464. package/dist/bromcom-ui/p-6f56f8ca.js +0 -5
  465. package/dist/bromcom-ui/p-772a214f.js +0 -5
  466. package/dist/bromcom-ui/p-78bfd81b.entry.js +0 -5
  467. package/dist/bromcom-ui/p-79fd816c.js +0 -5
  468. package/dist/bromcom-ui/p-7b09e9b1.entry.js +0 -5
  469. package/dist/bromcom-ui/p-7ce49866.entry.js +0 -5
  470. package/dist/bromcom-ui/p-843905c8.js +0 -5
  471. package/dist/bromcom-ui/p-908e7c36.entry.js +0 -5
  472. package/dist/bromcom-ui/p-92bf3f86.js +0 -5
  473. package/dist/bromcom-ui/p-9bdcbb1a.entry.js +0 -5
  474. package/dist/bromcom-ui/p-9be7f6be.entry.js +0 -5
  475. package/dist/bromcom-ui/p-a104f436.entry.js +0 -5
  476. package/dist/bromcom-ui/p-a1b02a4a.entry.js +0 -5
  477. package/dist/bromcom-ui/p-abd0ebef.entry.js +0 -5
  478. package/dist/bromcom-ui/p-b0353da0.entry.js +0 -19
  479. package/dist/bromcom-ui/p-b640b81a.entry.js +0 -5
  480. package/dist/bromcom-ui/p-b7d6857f.entry.js +0 -5
  481. package/dist/bromcom-ui/p-bad06cf8.entry.js +0 -5
  482. package/dist/bromcom-ui/p-c41e87a2.entry.js +0 -5
  483. package/dist/bromcom-ui/p-c6c6529b.entry.js +0 -5
  484. package/dist/bromcom-ui/p-cb0afdd3.entry.js +0 -5
  485. package/dist/bromcom-ui/p-cc470d2a.entry.js +0 -5
  486. package/dist/bromcom-ui/p-d0b8b715.entry.js +0 -5
  487. package/dist/bromcom-ui/p-d18196f9.entry.js +0 -5
  488. package/dist/bromcom-ui/p-d5b645ba.entry.js +0 -5
  489. package/dist/bromcom-ui/p-d65a1e21.js +0 -11
  490. package/dist/bromcom-ui/p-d78958e3.entry.js +0 -5
  491. package/dist/bromcom-ui/p-da1055cb.js +0 -6
  492. package/dist/bromcom-ui/p-dc19c6f4.entry.js +0 -5
  493. package/dist/bromcom-ui/p-ded0661d.entry.js +0 -5
  494. package/dist/bromcom-ui/p-e150d373.entry.js +0 -5
  495. package/dist/bromcom-ui/p-f053aa86.entry.js +0 -5
  496. package/dist/bromcom-ui/p-f589ac2d.entry.js +0 -5
  497. package/dist/bromcom-ui/p-f606f90c.entry.js +0 -5
  498. package/dist/bromcom-ui/p-ff488369.entry.js +0 -5
  499. package/dist/cjs/global-b0d21446.js +0 -15
  500. package/dist/collection/components/atoms/avatar/avatar.css +0 -198
  501. package/dist/collection/components/atoms/badge/badge.css +0 -231
  502. package/dist/collection/components/other/data-table/table.css +0 -130
  503. package/dist/collection/components/other/data-table/table.js +0 -88
  504. package/dist/esm/global-4fad925b.js +0 -13
  505. package/dist/types/components/other/data-table/table.d.ts +0 -8
@@ -3,70 +3,2662 @@
3
3
  * Copyright (c) Bromcom.
4
4
  */
5
5
  import { proxyCustomElement, HTMLElement, h, Host } from '@stencil/core/internal/client';
6
- import { c as classnames } from './index2.js';
7
- import { a as Bcm } from './bcm.js';
8
- import { G as Generate } from './generate.js';
9
- import { S as SlotTemplate } from './slot-template.js';
10
6
  import { C as ColorHelper } from './color-helper.js';
7
+ import './validators.js';
8
+ import { G as Generate } from './generate.js';
9
+ import './number-helper.js';
10
+ import './string-helper.js';
11
+ import './element-dragger.js';
12
+ import { a as Bcm } from './bcm.js';
11
13
 
12
- const badgeCss = "@import url(\"https://fonts.googleapis.com/css?family=Roboto:400,500\");@import url(\"https://fonts.googleapis.com/css2?family=Inter:wght@200;400;500;600&display=swap\"); .size-1{font-size:12px;line-height:20px}.size-2{font-size:14px;line-height:22px}.size-3{font-size:16px;line-height:24px}.size-4{font-size:20px;line-height:28px}.size-5{font-size:24px;line-height:32px}.size-6{font-size:30px;line-height:38px}.size-7{font-size:38px;line-height:46px}.size-8{font-size:46px;line-height:54px}.size-9{font-size:56px;line-height:64px}.weight-regular{font-weight:400}.weight-semibold{font-weight:500}.input-size-large{height:40px}.input-size-medium{height:32px}.input-size-small{height:24px}.resize-none textarea{resize:none}.resize-vertical textarea{resize:vertical}.resize-auto textarea{height:auto;resize:none}.textarea-size-large{padding:4px 0 0 4px;min-height:40px}.textarea-size-large .bcm-input-element{min-height:calc((40px - 8px) + 2px)}.textarea-size-large .input-clear-button{height:calc( 40px - 16px );top:8px;padding:0;margin-right:8px}.textarea-size-medium{padding:4px 0 0 4px;min-height:32px}.textarea-size-medium .bcm-input-element{min-height:calc((32px - 8px) + 2px)}.textarea-size-medium .input-clear-button{height:calc( 32px - 16px );top:8px;padding:0;margin-right:8px}.textarea-size-small{padding:0px 0 0 4px;min-height:24px}.textarea-size-small .bcm-input-element{min-height:calc((24px - 8px) + 2px)}.textarea-size-small .input-clear-button{height:calc( 24px - 16px );top:8px;padding:0;margin-right:8px}*{box-sizing:border-box}.bcm-badge{--bcm-badge-color:var(--bcm-new-ds-color-white);--bcm-badge-background-color:var(--bcm-new-ds-color-slate-400);--bcm-badge-spacing:4px;font-family:\"Inter\", sans-serif;font-size:14px;line-height:calc(14px + 8px);font-weight:400;box-sizing:border-box;display:inline-flex;flex-direction:row;align-items:center;justify-content:flex-start;flex-wrap:nowrap;gap:4px}.bcm-badge.hidden{display:none}.bcm-badge span:empty{display:none}.bcm-badge__dot{color:var(--bcm-badge-color);background-color:var(--bcm-badge-background-color);display:inline-block;border-radius:100px;position:relative}.bcm-badge__dot-text{display:flex;flex-direction:row;align-items:center;justify-content:center;flex-wrap:nowrap;padding:0 var(--bcm-badge-spacing);z-index:2;color:var(--bcm-badge-color)}.bcm-badge__dot-size-small{font-size:10px;line-height:calc(10px + 8px);min-width:6px;min-height:6px}.bcm-badge__dot-size-small .bcm-badge__dot-text{min-width:calc(10px + 8px)}.bcm-badge__dot-size-medium{font-size:12px;line-height:calc(12px + 8px);min-width:8px;min-height:8px}.bcm-badge__dot-size-medium .bcm-badge__dot-text{min-width:calc(12px + 8px)}.bcm-badge__dot-size-large{font-size:14px;line-height:calc(14px + 8px);min-width:10px;min-height:10px}.bcm-badge__dot-size-large .bcm-badge__dot-text{min-width:calc(14px + 8px)}.bcm-badge__dot-blink{position:relative;z-index:1}.bcm-badge__dot-blink:after{content:\"\";position:absolute;z-index:-1;top:0;left:0;background:var(--bcm-badge-background-color);border-radius:100px;opacity:0.7;box-shadow:0 0 0 0 rgba(0, 0, 0, 0);transform:scale(1);width:100%;height:100%}.bcm-badge__dot:after{background-color:var(--bcm-badge-background-color);animation:badge-pulse 2s infinite}@keyframes badge-pulse{0%{transform:scale(0.95);box-shadow:0 0 0 0 var(--bcm-badge-background-color)}70%{transform:scale(1);box-shadow:0 0 0 10px rgba(0, 0, 0, 0)}100%{transform:scale(0.95);box-shadow:0 0 0 0 rgba(0, 0, 0, 0)}}";
14
+ 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();
15
+
16
+ /**
17
+ * The code in this file is copied from https://github.com/lukeed/clsx and modified to suit the needs of tailwind-merge better.
18
+ *
19
+ * Specifically:
20
+ * - Runtime code from https://github.com/lukeed/clsx/blob/v1.2.1/src/index.js
21
+ * - TypeScript types from https://github.com/lukeed/clsx/blob/v1.2.1/clsx.d.ts
22
+ *
23
+ * Original code has MIT license: Copyright (c) Luke Edwards <luke.edwards05@gmail.com> (lukeed.com)
24
+ */
25
+ function twJoin() {
26
+ var index = 0;
27
+ var argument;
28
+ var resolvedValue;
29
+ var string = '';
30
+ while (index < arguments.length) {
31
+ if (argument = arguments[index++]) {
32
+ if (resolvedValue = toValue(argument)) {
33
+ string && (string += ' ');
34
+ string += resolvedValue;
35
+ }
36
+ }
37
+ }
38
+ return string;
39
+ }
40
+ function toValue(mix) {
41
+ if (typeof mix === 'string') {
42
+ return mix;
43
+ }
44
+ var resolvedValue;
45
+ var string = '';
46
+ for (var k = 0; k < mix.length; k++) {
47
+ if (mix[k]) {
48
+ if (resolvedValue = toValue(mix[k])) {
49
+ string && (string += ' ');
50
+ string += resolvedValue;
51
+ }
52
+ }
53
+ }
54
+ return string;
55
+ }
56
+
57
+ var CLASS_PART_SEPARATOR = '-';
58
+ function createClassUtils(config) {
59
+ var classMap = createClassMap(config);
60
+ var conflictingClassGroups = config.conflictingClassGroups,
61
+ _config$conflictingCl = config.conflictingClassGroupModifiers,
62
+ conflictingClassGroupModifiers = _config$conflictingCl === void 0 ? {} : _config$conflictingCl;
63
+ function getClassGroupId(className) {
64
+ var classParts = className.split(CLASS_PART_SEPARATOR);
65
+ // 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.
66
+ if (classParts[0] === '' && classParts.length !== 1) {
67
+ classParts.shift();
68
+ }
69
+ return getGroupRecursive(classParts, classMap) || getGroupIdForArbitraryProperty(className);
70
+ }
71
+ function getConflictingClassGroupIds(classGroupId, hasPostfixModifier) {
72
+ var conflicts = conflictingClassGroups[classGroupId] || [];
73
+ if (hasPostfixModifier && conflictingClassGroupModifiers[classGroupId]) {
74
+ return [].concat(conflicts, conflictingClassGroupModifiers[classGroupId]);
75
+ }
76
+ return conflicts;
77
+ }
78
+ return {
79
+ getClassGroupId: getClassGroupId,
80
+ getConflictingClassGroupIds: getConflictingClassGroupIds
81
+ };
82
+ }
83
+ function getGroupRecursive(classParts, classPartObject) {
84
+ if (classParts.length === 0) {
85
+ return classPartObject.classGroupId;
86
+ }
87
+ var currentClassPart = classParts[0];
88
+ var nextClassPartObject = classPartObject.nextPart.get(currentClassPart);
89
+ var classGroupFromNextClassPart = nextClassPartObject ? getGroupRecursive(classParts.slice(1), nextClassPartObject) : undefined;
90
+ if (classGroupFromNextClassPart) {
91
+ return classGroupFromNextClassPart;
92
+ }
93
+ if (classPartObject.validators.length === 0) {
94
+ return undefined;
95
+ }
96
+ var classRest = classParts.join(CLASS_PART_SEPARATOR);
97
+ return classPartObject.validators.find(function (_ref) {
98
+ var validator = _ref.validator;
99
+ return validator(classRest);
100
+ })?.classGroupId;
101
+ }
102
+ var arbitraryPropertyRegex = /^\[(.+)\]$/;
103
+ function getGroupIdForArbitraryProperty(className) {
104
+ if (arbitraryPropertyRegex.test(className)) {
105
+ var arbitraryPropertyClassName = arbitraryPropertyRegex.exec(className)[1];
106
+ var property = arbitraryPropertyClassName?.substring(0, arbitraryPropertyClassName.indexOf(':'));
107
+ if (property) {
108
+ // I use two dots here because one dot is used as prefix for class groups in plugins
109
+ return 'arbitrary..' + property;
110
+ }
111
+ }
112
+ }
113
+ /**
114
+ * Exported for testing only
115
+ */
116
+ function createClassMap(config) {
117
+ var theme = config.theme,
118
+ prefix = config.prefix;
119
+ var classMap = {
120
+ nextPart: new Map(),
121
+ validators: []
122
+ };
123
+ var prefixedClassGroupEntries = getPrefixedClassGroupEntries(Object.entries(config.classGroups), prefix);
124
+ prefixedClassGroupEntries.forEach(function (_ref2) {
125
+ var classGroupId = _ref2[0],
126
+ classGroup = _ref2[1];
127
+ processClassesRecursively(classGroup, classMap, classGroupId, theme);
128
+ });
129
+ return classMap;
130
+ }
131
+ function processClassesRecursively(classGroup, classPartObject, classGroupId, theme) {
132
+ classGroup.forEach(function (classDefinition) {
133
+ if (typeof classDefinition === 'string') {
134
+ var classPartObjectToEdit = classDefinition === '' ? classPartObject : getPart(classPartObject, classDefinition);
135
+ classPartObjectToEdit.classGroupId = classGroupId;
136
+ return;
137
+ }
138
+ if (typeof classDefinition === 'function') {
139
+ if (isThemeGetter(classDefinition)) {
140
+ processClassesRecursively(classDefinition(theme), classPartObject, classGroupId, theme);
141
+ return;
142
+ }
143
+ classPartObject.validators.push({
144
+ validator: classDefinition,
145
+ classGroupId: classGroupId
146
+ });
147
+ return;
148
+ }
149
+ Object.entries(classDefinition).forEach(function (_ref3) {
150
+ var key = _ref3[0],
151
+ classGroup = _ref3[1];
152
+ processClassesRecursively(classGroup, getPart(classPartObject, key), classGroupId, theme);
153
+ });
154
+ });
155
+ }
156
+ function getPart(classPartObject, path) {
157
+ var currentClassPartObject = classPartObject;
158
+ path.split(CLASS_PART_SEPARATOR).forEach(function (pathPart) {
159
+ if (!currentClassPartObject.nextPart.has(pathPart)) {
160
+ currentClassPartObject.nextPart.set(pathPart, {
161
+ nextPart: new Map(),
162
+ validators: []
163
+ });
164
+ }
165
+ currentClassPartObject = currentClassPartObject.nextPart.get(pathPart);
166
+ });
167
+ return currentClassPartObject;
168
+ }
169
+ function isThemeGetter(func) {
170
+ return func.isThemeGetter;
171
+ }
172
+ function getPrefixedClassGroupEntries(classGroupEntries, prefix) {
173
+ if (!prefix) {
174
+ return classGroupEntries;
175
+ }
176
+ return classGroupEntries.map(function (_ref4) {
177
+ var classGroupId = _ref4[0],
178
+ classGroup = _ref4[1];
179
+ var prefixedClassGroup = classGroup.map(function (classDefinition) {
180
+ if (typeof classDefinition === 'string') {
181
+ return prefix + classDefinition;
182
+ }
183
+ if (typeof classDefinition === 'object') {
184
+ return Object.fromEntries(Object.entries(classDefinition).map(function (_ref5) {
185
+ var key = _ref5[0],
186
+ value = _ref5[1];
187
+ return [prefix + key, value];
188
+ }));
189
+ }
190
+ return classDefinition;
191
+ });
192
+ return [classGroupId, prefixedClassGroup];
193
+ });
194
+ }
195
+
196
+ // LRU cache inspired from hashlru (https://github.com/dominictarr/hashlru/blob/v1.0.4/index.js) but object replaced with Map to improve performance
197
+ function createLruCache(maxCacheSize) {
198
+ if (maxCacheSize < 1) {
199
+ return {
200
+ get: function get() {
201
+ return undefined;
202
+ },
203
+ set: function set() {}
204
+ };
205
+ }
206
+ var cacheSize = 0;
207
+ var cache = new Map();
208
+ var previousCache = new Map();
209
+ function update(key, value) {
210
+ cache.set(key, value);
211
+ cacheSize++;
212
+ if (cacheSize > maxCacheSize) {
213
+ cacheSize = 0;
214
+ previousCache = cache;
215
+ cache = new Map();
216
+ }
217
+ }
218
+ return {
219
+ get: function get(key) {
220
+ var value = cache.get(key);
221
+ if (value !== undefined) {
222
+ return value;
223
+ }
224
+ if ((value = previousCache.get(key)) !== undefined) {
225
+ update(key, value);
226
+ return value;
227
+ }
228
+ },
229
+ set: function set(key, value) {
230
+ if (cache.has(key)) {
231
+ cache.set(key, value);
232
+ } else {
233
+ update(key, value);
234
+ }
235
+ }
236
+ };
237
+ }
238
+
239
+ var IMPORTANT_MODIFIER = '!';
240
+ function createSplitModifiers(config) {
241
+ var separator = config.separator || ':';
242
+ var isSeparatorSingleCharacter = separator.length === 1;
243
+ var firstSeparatorCharacter = separator[0];
244
+ var separatorLength = separator.length;
245
+ // splitModifiers inspired by https://github.com/tailwindlabs/tailwindcss/blob/v3.2.2/src/util/splitAtTopLevelOnly.js
246
+ return function splitModifiers(className) {
247
+ var modifiers = [];
248
+ var bracketDepth = 0;
249
+ var modifierStart = 0;
250
+ var postfixModifierPosition;
251
+ for (var index = 0; index < className.length; index++) {
252
+ var currentCharacter = className[index];
253
+ if (bracketDepth === 0) {
254
+ if (currentCharacter === firstSeparatorCharacter && (isSeparatorSingleCharacter || className.slice(index, index + separatorLength) === separator)) {
255
+ modifiers.push(className.slice(modifierStart, index));
256
+ modifierStart = index + separatorLength;
257
+ continue;
258
+ }
259
+ if (currentCharacter === '/') {
260
+ postfixModifierPosition = index;
261
+ continue;
262
+ }
263
+ }
264
+ if (currentCharacter === '[') {
265
+ bracketDepth++;
266
+ } else if (currentCharacter === ']') {
267
+ bracketDepth--;
268
+ }
269
+ }
270
+ var baseClassNameWithImportantModifier = modifiers.length === 0 ? className : className.substring(modifierStart);
271
+ var hasImportantModifier = baseClassNameWithImportantModifier.startsWith(IMPORTANT_MODIFIER);
272
+ var baseClassName = hasImportantModifier ? baseClassNameWithImportantModifier.substring(1) : baseClassNameWithImportantModifier;
273
+ var maybePostfixModifierPosition = postfixModifierPosition && postfixModifierPosition > modifierStart ? postfixModifierPosition - modifierStart : undefined;
274
+ return {
275
+ modifiers: modifiers,
276
+ hasImportantModifier: hasImportantModifier,
277
+ baseClassName: baseClassName,
278
+ maybePostfixModifierPosition: maybePostfixModifierPosition
279
+ };
280
+ };
281
+ }
282
+ /**
283
+ * Sorts modifiers according to following schema:
284
+ * - Predefined modifiers are sorted alphabetically
285
+ * - When an arbitrary variant appears, it must be preserved which modifiers are before and after it
286
+ */
287
+ function sortModifiers(modifiers) {
288
+ if (modifiers.length <= 1) {
289
+ return modifiers;
290
+ }
291
+ var sortedModifiers = [];
292
+ var unsortedModifiers = [];
293
+ modifiers.forEach(function (modifier) {
294
+ var isArbitraryVariant = modifier[0] === '[';
295
+ if (isArbitraryVariant) {
296
+ sortedModifiers.push.apply(sortedModifiers, unsortedModifiers.sort().concat([modifier]));
297
+ unsortedModifiers = [];
298
+ } else {
299
+ unsortedModifiers.push(modifier);
300
+ }
301
+ });
302
+ sortedModifiers.push.apply(sortedModifiers, unsortedModifiers.sort());
303
+ return sortedModifiers;
304
+ }
305
+
306
+ function createConfigUtils(config) {
307
+ return {
308
+ cache: createLruCache(config.cacheSize),
309
+ splitModifiers: createSplitModifiers(config),
310
+ ...createClassUtils(config)
311
+ };
312
+ }
313
+
314
+ var SPLIT_CLASSES_REGEX = /\s+/;
315
+ function mergeClassList(classList, configUtils) {
316
+ var splitModifiers = configUtils.splitModifiers,
317
+ getClassGroupId = configUtils.getClassGroupId,
318
+ getConflictingClassGroupIds = configUtils.getConflictingClassGroupIds;
319
+ /**
320
+ * Set of classGroupIds in following format:
321
+ * `{importantModifier}{variantModifiers}{classGroupId}`
322
+ * @example 'float'
323
+ * @example 'hover:focus:bg-color'
324
+ * @example 'md:!pr'
325
+ */
326
+ var classGroupsInConflict = new Set();
327
+ return classList.trim().split(SPLIT_CLASSES_REGEX).map(function (originalClassName) {
328
+ var _splitModifiers = splitModifiers(originalClassName),
329
+ modifiers = _splitModifiers.modifiers,
330
+ hasImportantModifier = _splitModifiers.hasImportantModifier,
331
+ baseClassName = _splitModifiers.baseClassName,
332
+ maybePostfixModifierPosition = _splitModifiers.maybePostfixModifierPosition;
333
+ var classGroupId = getClassGroupId(maybePostfixModifierPosition ? baseClassName.substring(0, maybePostfixModifierPosition) : baseClassName);
334
+ var hasPostfixModifier = Boolean(maybePostfixModifierPosition);
335
+ if (!classGroupId) {
336
+ if (!maybePostfixModifierPosition) {
337
+ return {
338
+ isTailwindClass: false,
339
+ originalClassName: originalClassName
340
+ };
341
+ }
342
+ classGroupId = getClassGroupId(baseClassName);
343
+ if (!classGroupId) {
344
+ return {
345
+ isTailwindClass: false,
346
+ originalClassName: originalClassName
347
+ };
348
+ }
349
+ hasPostfixModifier = false;
350
+ }
351
+ var variantModifier = sortModifiers(modifiers).join(':');
352
+ var modifierId = hasImportantModifier ? variantModifier + IMPORTANT_MODIFIER : variantModifier;
353
+ return {
354
+ isTailwindClass: true,
355
+ modifierId: modifierId,
356
+ classGroupId: classGroupId,
357
+ originalClassName: originalClassName,
358
+ hasPostfixModifier: hasPostfixModifier
359
+ };
360
+ }).reverse()
361
+ // Last class in conflict wins, so we need to filter conflicting classes in reverse order.
362
+ .filter(function (parsed) {
363
+ if (!parsed.isTailwindClass) {
364
+ return true;
365
+ }
366
+ var modifierId = parsed.modifierId,
367
+ classGroupId = parsed.classGroupId,
368
+ hasPostfixModifier = parsed.hasPostfixModifier;
369
+ var classId = modifierId + classGroupId;
370
+ if (classGroupsInConflict.has(classId)) {
371
+ return false;
372
+ }
373
+ classGroupsInConflict.add(classId);
374
+ getConflictingClassGroupIds(classGroupId, hasPostfixModifier).forEach(function (group) {
375
+ return classGroupsInConflict.add(modifierId + group);
376
+ });
377
+ return true;
378
+ }).reverse().map(function (parsed) {
379
+ return parsed.originalClassName;
380
+ }).join(' ');
381
+ }
382
+
383
+ function createTailwindMerge() {
384
+ for (var _len = arguments.length, createConfig = new Array(_len), _key = 0; _key < _len; _key++) {
385
+ createConfig[_key] = arguments[_key];
386
+ }
387
+ var configUtils;
388
+ var cacheGet;
389
+ var cacheSet;
390
+ var functionToCall = initTailwindMerge;
391
+ function initTailwindMerge(classList) {
392
+ var firstCreateConfig = createConfig[0],
393
+ restCreateConfig = createConfig.slice(1);
394
+ var config = restCreateConfig.reduce(function (previousConfig, createConfigCurrent) {
395
+ return createConfigCurrent(previousConfig);
396
+ }, firstCreateConfig());
397
+ configUtils = createConfigUtils(config);
398
+ cacheGet = configUtils.cache.get;
399
+ cacheSet = configUtils.cache.set;
400
+ functionToCall = tailwindMerge;
401
+ return tailwindMerge(classList);
402
+ }
403
+ function tailwindMerge(classList) {
404
+ var cachedResult = cacheGet(classList);
405
+ if (cachedResult) {
406
+ return cachedResult;
407
+ }
408
+ var result = mergeClassList(classList, configUtils);
409
+ cacheSet(classList, result);
410
+ return result;
411
+ }
412
+ return function callTailwindMerge() {
413
+ return functionToCall(twJoin.apply(null, arguments));
414
+ };
415
+ }
416
+
417
+ function fromTheme(key) {
418
+ var themeGetter = function themeGetter(theme) {
419
+ return theme[key] || [];
420
+ };
421
+ themeGetter.isThemeGetter = true;
422
+ return themeGetter;
423
+ }
424
+
425
+ var arbitraryValueRegex = /^\[(?:([a-z-]+):)?(.+)\]$/i;
426
+ var fractionRegex = /^\d+\/\d+$/;
427
+ var stringLengths = /*#__PURE__*/new Set(['px', 'full', 'screen']);
428
+ var tshirtUnitRegex = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/;
429
+ 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$/;
430
+ // Shadow always begins with x and y offset separated by underscore
431
+ var shadowRegex = /^-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/;
432
+ function isLength(value) {
433
+ return isNumber(value) || stringLengths.has(value) || fractionRegex.test(value) || isArbitraryLength(value);
434
+ }
435
+ function isArbitraryLength(value) {
436
+ return getIsArbitraryValue(value, 'length', isLengthOnly);
437
+ }
438
+ function isArbitrarySize(value) {
439
+ return getIsArbitraryValue(value, 'size', isNever);
440
+ }
441
+ function isArbitraryPosition(value) {
442
+ return getIsArbitraryValue(value, 'position', isNever);
443
+ }
444
+ function isArbitraryUrl(value) {
445
+ return getIsArbitraryValue(value, 'url', isUrl);
446
+ }
447
+ function isArbitraryNumber(value) {
448
+ return getIsArbitraryValue(value, 'number', isNumber);
449
+ }
450
+ function isNumber(value) {
451
+ return !Number.isNaN(Number(value));
452
+ }
453
+ function isPercent(value) {
454
+ return value.endsWith('%') && isNumber(value.slice(0, -1));
455
+ }
456
+ function isInteger(value) {
457
+ return isIntegerOnly(value) || getIsArbitraryValue(value, 'number', isIntegerOnly);
458
+ }
459
+ function isArbitraryValue(value) {
460
+ return arbitraryValueRegex.test(value);
461
+ }
462
+ function isAny() {
463
+ return true;
464
+ }
465
+ function isTshirtSize(value) {
466
+ return tshirtUnitRegex.test(value);
467
+ }
468
+ function isArbitraryShadow(value) {
469
+ return getIsArbitraryValue(value, '', isShadow);
470
+ }
471
+ function getIsArbitraryValue(value, label, testValue) {
472
+ var result = arbitraryValueRegex.exec(value);
473
+ if (result) {
474
+ if (result[1]) {
475
+ return result[1] === label;
476
+ }
477
+ return testValue(result[2]);
478
+ }
479
+ return false;
480
+ }
481
+ function isLengthOnly(value) {
482
+ return lengthUnitRegex.test(value);
483
+ }
484
+ function isNever() {
485
+ return false;
486
+ }
487
+ function isUrl(value) {
488
+ return value.startsWith('url(');
489
+ }
490
+ function isIntegerOnly(value) {
491
+ return Number.isInteger(Number(value));
492
+ }
493
+ function isShadow(value) {
494
+ return shadowRegex.test(value);
495
+ }
496
+
497
+ function getDefaultConfig() {
498
+ var colors = fromTheme('colors');
499
+ var spacing = fromTheme('spacing');
500
+ var blur = fromTheme('blur');
501
+ var brightness = fromTheme('brightness');
502
+ var borderColor = fromTheme('borderColor');
503
+ var borderRadius = fromTheme('borderRadius');
504
+ var borderSpacing = fromTheme('borderSpacing');
505
+ var borderWidth = fromTheme('borderWidth');
506
+ var contrast = fromTheme('contrast');
507
+ var grayscale = fromTheme('grayscale');
508
+ var hueRotate = fromTheme('hueRotate');
509
+ var invert = fromTheme('invert');
510
+ var gap = fromTheme('gap');
511
+ var gradientColorStops = fromTheme('gradientColorStops');
512
+ var gradientColorStopPositions = fromTheme('gradientColorStopPositions');
513
+ var inset = fromTheme('inset');
514
+ var margin = fromTheme('margin');
515
+ var opacity = fromTheme('opacity');
516
+ var padding = fromTheme('padding');
517
+ var saturate = fromTheme('saturate');
518
+ var scale = fromTheme('scale');
519
+ var sepia = fromTheme('sepia');
520
+ var skew = fromTheme('skew');
521
+ var space = fromTheme('space');
522
+ var translate = fromTheme('translate');
523
+ var getOverscroll = function getOverscroll() {
524
+ return ['auto', 'contain', 'none'];
525
+ };
526
+ var getOverflow = function getOverflow() {
527
+ return ['auto', 'hidden', 'clip', 'visible', 'scroll'];
528
+ };
529
+ var getSpacingWithAutoAndArbitrary = function getSpacingWithAutoAndArbitrary() {
530
+ return ['auto', isArbitraryValue, spacing];
531
+ };
532
+ var getSpacingWithArbitrary = function getSpacingWithArbitrary() {
533
+ return [isArbitraryValue, spacing];
534
+ };
535
+ var getLengthWithEmpty = function getLengthWithEmpty() {
536
+ return ['', isLength];
537
+ };
538
+ var getNumberWithAutoAndArbitrary = function getNumberWithAutoAndArbitrary() {
539
+ return ['auto', isNumber, isArbitraryValue];
540
+ };
541
+ var getPositions = function getPositions() {
542
+ return ['bottom', 'center', 'left', 'left-bottom', 'left-top', 'right', 'right-bottom', 'right-top', 'top'];
543
+ };
544
+ var getLineStyles = function getLineStyles() {
545
+ return ['solid', 'dashed', 'dotted', 'double', 'none'];
546
+ };
547
+ var getBlendModes = function getBlendModes() {
548
+ return ['normal', 'multiply', 'screen', 'overlay', 'darken', 'lighten', 'color-dodge', 'color-burn', 'hard-light', 'soft-light', 'difference', 'exclusion', 'hue', 'saturation', 'color', 'luminosity', 'plus-lighter'];
549
+ };
550
+ var getAlign = function getAlign() {
551
+ return ['start', 'end', 'center', 'between', 'around', 'evenly', 'stretch'];
552
+ };
553
+ var getZeroAndEmpty = function getZeroAndEmpty() {
554
+ return ['', '0', isArbitraryValue];
555
+ };
556
+ var getBreaks = function getBreaks() {
557
+ return ['auto', 'avoid', 'all', 'avoid-page', 'page', 'left', 'right', 'column'];
558
+ };
559
+ var getNumber = function getNumber() {
560
+ return [isNumber, isArbitraryNumber];
561
+ };
562
+ var getNumberAndArbitrary = function getNumberAndArbitrary() {
563
+ return [isNumber, isArbitraryValue];
564
+ };
565
+ return {
566
+ cacheSize: 500,
567
+ theme: {
568
+ colors: [isAny],
569
+ spacing: [isLength],
570
+ blur: ['none', '', isTshirtSize, isArbitraryValue],
571
+ brightness: getNumber(),
572
+ borderColor: [colors],
573
+ borderRadius: ['none', '', 'full', isTshirtSize, isArbitraryValue],
574
+ borderSpacing: getSpacingWithArbitrary(),
575
+ borderWidth: getLengthWithEmpty(),
576
+ contrast: getNumber(),
577
+ grayscale: getZeroAndEmpty(),
578
+ hueRotate: getNumberAndArbitrary(),
579
+ invert: getZeroAndEmpty(),
580
+ gap: getSpacingWithArbitrary(),
581
+ gradientColorStops: [colors],
582
+ gradientColorStopPositions: [isPercent, isArbitraryLength],
583
+ inset: getSpacingWithAutoAndArbitrary(),
584
+ margin: getSpacingWithAutoAndArbitrary(),
585
+ opacity: getNumber(),
586
+ padding: getSpacingWithArbitrary(),
587
+ saturate: getNumber(),
588
+ scale: getNumber(),
589
+ sepia: getZeroAndEmpty(),
590
+ skew: getNumberAndArbitrary(),
591
+ space: getSpacingWithArbitrary(),
592
+ translate: getSpacingWithArbitrary()
593
+ },
594
+ classGroups: {
595
+ // Layout
596
+ /**
597
+ * Aspect Ratio
598
+ * @see https://tailwindcss.com/docs/aspect-ratio
599
+ */
600
+ aspect: [{
601
+ aspect: ['auto', 'square', 'video', isArbitraryValue]
602
+ }],
603
+ /**
604
+ * Container
605
+ * @see https://tailwindcss.com/docs/container
606
+ */
607
+ container: ['container'],
608
+ /**
609
+ * Columns
610
+ * @see https://tailwindcss.com/docs/columns
611
+ */
612
+ columns: [{
613
+ columns: [isTshirtSize]
614
+ }],
615
+ /**
616
+ * Break After
617
+ * @see https://tailwindcss.com/docs/break-after
618
+ */
619
+ 'break-after': [{
620
+ 'break-after': getBreaks()
621
+ }],
622
+ /**
623
+ * Break Before
624
+ * @see https://tailwindcss.com/docs/break-before
625
+ */
626
+ 'break-before': [{
627
+ 'break-before': getBreaks()
628
+ }],
629
+ /**
630
+ * Break Inside
631
+ * @see https://tailwindcss.com/docs/break-inside
632
+ */
633
+ 'break-inside': [{
634
+ 'break-inside': ['auto', 'avoid', 'avoid-page', 'avoid-column']
635
+ }],
636
+ /**
637
+ * Box Decoration Break
638
+ * @see https://tailwindcss.com/docs/box-decoration-break
639
+ */
640
+ 'box-decoration': [{
641
+ 'box-decoration': ['slice', 'clone']
642
+ }],
643
+ /**
644
+ * Box Sizing
645
+ * @see https://tailwindcss.com/docs/box-sizing
646
+ */
647
+ box: [{
648
+ box: ['border', 'content']
649
+ }],
650
+ /**
651
+ * Display
652
+ * @see https://tailwindcss.com/docs/display
653
+ */
654
+ display: ['block', 'inline-block', 'inline', 'flex', 'inline-flex', 'table', 'inline-table', 'table-caption', 'table-cell', 'table-column', 'table-column-group', 'table-footer-group', 'table-header-group', 'table-row-group', 'table-row', 'flow-root', 'grid', 'inline-grid', 'contents', 'list-item', 'hidden'],
655
+ /**
656
+ * Floats
657
+ * @see https://tailwindcss.com/docs/float
658
+ */
659
+ "float": [{
660
+ "float": ['right', 'left', 'none']
661
+ }],
662
+ /**
663
+ * Clear
664
+ * @see https://tailwindcss.com/docs/clear
665
+ */
666
+ clear: [{
667
+ clear: ['left', 'right', 'both', 'none']
668
+ }],
669
+ /**
670
+ * Isolation
671
+ * @see https://tailwindcss.com/docs/isolation
672
+ */
673
+ isolation: ['isolate', 'isolation-auto'],
674
+ /**
675
+ * Object Fit
676
+ * @see https://tailwindcss.com/docs/object-fit
677
+ */
678
+ 'object-fit': [{
679
+ object: ['contain', 'cover', 'fill', 'none', 'scale-down']
680
+ }],
681
+ /**
682
+ * Object Position
683
+ * @see https://tailwindcss.com/docs/object-position
684
+ */
685
+ 'object-position': [{
686
+ object: [].concat(getPositions(), [isArbitraryValue])
687
+ }],
688
+ /**
689
+ * Overflow
690
+ * @see https://tailwindcss.com/docs/overflow
691
+ */
692
+ overflow: [{
693
+ overflow: getOverflow()
694
+ }],
695
+ /**
696
+ * Overflow X
697
+ * @see https://tailwindcss.com/docs/overflow
698
+ */
699
+ 'overflow-x': [{
700
+ 'overflow-x': getOverflow()
701
+ }],
702
+ /**
703
+ * Overflow Y
704
+ * @see https://tailwindcss.com/docs/overflow
705
+ */
706
+ 'overflow-y': [{
707
+ 'overflow-y': getOverflow()
708
+ }],
709
+ /**
710
+ * Overscroll Behavior
711
+ * @see https://tailwindcss.com/docs/overscroll-behavior
712
+ */
713
+ overscroll: [{
714
+ overscroll: getOverscroll()
715
+ }],
716
+ /**
717
+ * Overscroll Behavior X
718
+ * @see https://tailwindcss.com/docs/overscroll-behavior
719
+ */
720
+ 'overscroll-x': [{
721
+ 'overscroll-x': getOverscroll()
722
+ }],
723
+ /**
724
+ * Overscroll Behavior Y
725
+ * @see https://tailwindcss.com/docs/overscroll-behavior
726
+ */
727
+ 'overscroll-y': [{
728
+ 'overscroll-y': getOverscroll()
729
+ }],
730
+ /**
731
+ * Position
732
+ * @see https://tailwindcss.com/docs/position
733
+ */
734
+ position: ['static', 'fixed', 'absolute', 'relative', 'sticky'],
735
+ /**
736
+ * Top / Right / Bottom / Left
737
+ * @see https://tailwindcss.com/docs/top-right-bottom-left
738
+ */
739
+ inset: [{
740
+ inset: [inset]
741
+ }],
742
+ /**
743
+ * Right / Left
744
+ * @see https://tailwindcss.com/docs/top-right-bottom-left
745
+ */
746
+ 'inset-x': [{
747
+ 'inset-x': [inset]
748
+ }],
749
+ /**
750
+ * Top / Bottom
751
+ * @see https://tailwindcss.com/docs/top-right-bottom-left
752
+ */
753
+ 'inset-y': [{
754
+ 'inset-y': [inset]
755
+ }],
756
+ /**
757
+ * Start
758
+ * @see https://tailwindcss.com/docs/top-right-bottom-left
759
+ */
760
+ start: [{
761
+ start: [inset]
762
+ }],
763
+ /**
764
+ * End
765
+ * @see https://tailwindcss.com/docs/top-right-bottom-left
766
+ */
767
+ end: [{
768
+ end: [inset]
769
+ }],
770
+ /**
771
+ * Top
772
+ * @see https://tailwindcss.com/docs/top-right-bottom-left
773
+ */
774
+ top: [{
775
+ top: [inset]
776
+ }],
777
+ /**
778
+ * Right
779
+ * @see https://tailwindcss.com/docs/top-right-bottom-left
780
+ */
781
+ right: [{
782
+ right: [inset]
783
+ }],
784
+ /**
785
+ * Bottom
786
+ * @see https://tailwindcss.com/docs/top-right-bottom-left
787
+ */
788
+ bottom: [{
789
+ bottom: [inset]
790
+ }],
791
+ /**
792
+ * Left
793
+ * @see https://tailwindcss.com/docs/top-right-bottom-left
794
+ */
795
+ left: [{
796
+ left: [inset]
797
+ }],
798
+ /**
799
+ * Visibility
800
+ * @see https://tailwindcss.com/docs/visibility
801
+ */
802
+ visibility: ['visible', 'invisible', 'collapse'],
803
+ /**
804
+ * Z-Index
805
+ * @see https://tailwindcss.com/docs/z-index
806
+ */
807
+ z: [{
808
+ z: ['auto', isInteger]
809
+ }],
810
+ // Flexbox and Grid
811
+ /**
812
+ * Flex Basis
813
+ * @see https://tailwindcss.com/docs/flex-basis
814
+ */
815
+ basis: [{
816
+ basis: getSpacingWithAutoAndArbitrary()
817
+ }],
818
+ /**
819
+ * Flex Direction
820
+ * @see https://tailwindcss.com/docs/flex-direction
821
+ */
822
+ 'flex-direction': [{
823
+ flex: ['row', 'row-reverse', 'col', 'col-reverse']
824
+ }],
825
+ /**
826
+ * Flex Wrap
827
+ * @see https://tailwindcss.com/docs/flex-wrap
828
+ */
829
+ 'flex-wrap': [{
830
+ flex: ['wrap', 'wrap-reverse', 'nowrap']
831
+ }],
832
+ /**
833
+ * Flex
834
+ * @see https://tailwindcss.com/docs/flex
835
+ */
836
+ flex: [{
837
+ flex: ['1', 'auto', 'initial', 'none', isArbitraryValue]
838
+ }],
839
+ /**
840
+ * Flex Grow
841
+ * @see https://tailwindcss.com/docs/flex-grow
842
+ */
843
+ grow: [{
844
+ grow: getZeroAndEmpty()
845
+ }],
846
+ /**
847
+ * Flex Shrink
848
+ * @see https://tailwindcss.com/docs/flex-shrink
849
+ */
850
+ shrink: [{
851
+ shrink: getZeroAndEmpty()
852
+ }],
853
+ /**
854
+ * Order
855
+ * @see https://tailwindcss.com/docs/order
856
+ */
857
+ order: [{
858
+ order: ['first', 'last', 'none', isInteger]
859
+ }],
860
+ /**
861
+ * Grid Template Columns
862
+ * @see https://tailwindcss.com/docs/grid-template-columns
863
+ */
864
+ 'grid-cols': [{
865
+ 'grid-cols': [isAny]
866
+ }],
867
+ /**
868
+ * Grid Column Start / End
869
+ * @see https://tailwindcss.com/docs/grid-column
870
+ */
871
+ 'col-start-end': [{
872
+ col: ['auto', {
873
+ span: ['full', isInteger]
874
+ }, isArbitraryValue]
875
+ }],
876
+ /**
877
+ * Grid Column Start
878
+ * @see https://tailwindcss.com/docs/grid-column
879
+ */
880
+ 'col-start': [{
881
+ 'col-start': getNumberWithAutoAndArbitrary()
882
+ }],
883
+ /**
884
+ * Grid Column End
885
+ * @see https://tailwindcss.com/docs/grid-column
886
+ */
887
+ 'col-end': [{
888
+ 'col-end': getNumberWithAutoAndArbitrary()
889
+ }],
890
+ /**
891
+ * Grid Template Rows
892
+ * @see https://tailwindcss.com/docs/grid-template-rows
893
+ */
894
+ 'grid-rows': [{
895
+ 'grid-rows': [isAny]
896
+ }],
897
+ /**
898
+ * Grid Row Start / End
899
+ * @see https://tailwindcss.com/docs/grid-row
900
+ */
901
+ 'row-start-end': [{
902
+ row: ['auto', {
903
+ span: [isInteger]
904
+ }, isArbitraryValue]
905
+ }],
906
+ /**
907
+ * Grid Row Start
908
+ * @see https://tailwindcss.com/docs/grid-row
909
+ */
910
+ 'row-start': [{
911
+ 'row-start': getNumberWithAutoAndArbitrary()
912
+ }],
913
+ /**
914
+ * Grid Row End
915
+ * @see https://tailwindcss.com/docs/grid-row
916
+ */
917
+ 'row-end': [{
918
+ 'row-end': getNumberWithAutoAndArbitrary()
919
+ }],
920
+ /**
921
+ * Grid Auto Flow
922
+ * @see https://tailwindcss.com/docs/grid-auto-flow
923
+ */
924
+ 'grid-flow': [{
925
+ 'grid-flow': ['row', 'col', 'dense', 'row-dense', 'col-dense']
926
+ }],
927
+ /**
928
+ * Grid Auto Columns
929
+ * @see https://tailwindcss.com/docs/grid-auto-columns
930
+ */
931
+ 'auto-cols': [{
932
+ 'auto-cols': ['auto', 'min', 'max', 'fr', isArbitraryValue]
933
+ }],
934
+ /**
935
+ * Grid Auto Rows
936
+ * @see https://tailwindcss.com/docs/grid-auto-rows
937
+ */
938
+ 'auto-rows': [{
939
+ 'auto-rows': ['auto', 'min', 'max', 'fr', isArbitraryValue]
940
+ }],
941
+ /**
942
+ * Gap
943
+ * @see https://tailwindcss.com/docs/gap
944
+ */
945
+ gap: [{
946
+ gap: [gap]
947
+ }],
948
+ /**
949
+ * Gap X
950
+ * @see https://tailwindcss.com/docs/gap
951
+ */
952
+ 'gap-x': [{
953
+ 'gap-x': [gap]
954
+ }],
955
+ /**
956
+ * Gap Y
957
+ * @see https://tailwindcss.com/docs/gap
958
+ */
959
+ 'gap-y': [{
960
+ 'gap-y': [gap]
961
+ }],
962
+ /**
963
+ * Justify Content
964
+ * @see https://tailwindcss.com/docs/justify-content
965
+ */
966
+ 'justify-content': [{
967
+ justify: ['normal'].concat(getAlign())
968
+ }],
969
+ /**
970
+ * Justify Items
971
+ * @see https://tailwindcss.com/docs/justify-items
972
+ */
973
+ 'justify-items': [{
974
+ 'justify-items': ['start', 'end', 'center', 'stretch']
975
+ }],
976
+ /**
977
+ * Justify Self
978
+ * @see https://tailwindcss.com/docs/justify-self
979
+ */
980
+ 'justify-self': [{
981
+ 'justify-self': ['auto', 'start', 'end', 'center', 'stretch']
982
+ }],
983
+ /**
984
+ * Align Content
985
+ * @see https://tailwindcss.com/docs/align-content
986
+ */
987
+ 'align-content': [{
988
+ content: ['normal'].concat(getAlign(), ['baseline'])
989
+ }],
990
+ /**
991
+ * Align Items
992
+ * @see https://tailwindcss.com/docs/align-items
993
+ */
994
+ 'align-items': [{
995
+ items: ['start', 'end', 'center', 'baseline', 'stretch']
996
+ }],
997
+ /**
998
+ * Align Self
999
+ * @see https://tailwindcss.com/docs/align-self
1000
+ */
1001
+ 'align-self': [{
1002
+ self: ['auto', 'start', 'end', 'center', 'stretch', 'baseline']
1003
+ }],
1004
+ /**
1005
+ * Place Content
1006
+ * @see https://tailwindcss.com/docs/place-content
1007
+ */
1008
+ 'place-content': [{
1009
+ 'place-content': [].concat(getAlign(), ['baseline'])
1010
+ }],
1011
+ /**
1012
+ * Place Items
1013
+ * @see https://tailwindcss.com/docs/place-items
1014
+ */
1015
+ 'place-items': [{
1016
+ 'place-items': ['start', 'end', 'center', 'baseline', 'stretch']
1017
+ }],
1018
+ /**
1019
+ * Place Self
1020
+ * @see https://tailwindcss.com/docs/place-self
1021
+ */
1022
+ 'place-self': [{
1023
+ 'place-self': ['auto', 'start', 'end', 'center', 'stretch']
1024
+ }],
1025
+ // Spacing
1026
+ /**
1027
+ * Padding
1028
+ * @see https://tailwindcss.com/docs/padding
1029
+ */
1030
+ p: [{
1031
+ p: [padding]
1032
+ }],
1033
+ /**
1034
+ * Padding X
1035
+ * @see https://tailwindcss.com/docs/padding
1036
+ */
1037
+ px: [{
1038
+ px: [padding]
1039
+ }],
1040
+ /**
1041
+ * Padding Y
1042
+ * @see https://tailwindcss.com/docs/padding
1043
+ */
1044
+ py: [{
1045
+ py: [padding]
1046
+ }],
1047
+ /**
1048
+ * Padding Start
1049
+ * @see https://tailwindcss.com/docs/padding
1050
+ */
1051
+ ps: [{
1052
+ ps: [padding]
1053
+ }],
1054
+ /**
1055
+ * Padding End
1056
+ * @see https://tailwindcss.com/docs/padding
1057
+ */
1058
+ pe: [{
1059
+ pe: [padding]
1060
+ }],
1061
+ /**
1062
+ * Padding Top
1063
+ * @see https://tailwindcss.com/docs/padding
1064
+ */
1065
+ pt: [{
1066
+ pt: [padding]
1067
+ }],
1068
+ /**
1069
+ * Padding Right
1070
+ * @see https://tailwindcss.com/docs/padding
1071
+ */
1072
+ pr: [{
1073
+ pr: [padding]
1074
+ }],
1075
+ /**
1076
+ * Padding Bottom
1077
+ * @see https://tailwindcss.com/docs/padding
1078
+ */
1079
+ pb: [{
1080
+ pb: [padding]
1081
+ }],
1082
+ /**
1083
+ * Padding Left
1084
+ * @see https://tailwindcss.com/docs/padding
1085
+ */
1086
+ pl: [{
1087
+ pl: [padding]
1088
+ }],
1089
+ /**
1090
+ * Margin
1091
+ * @see https://tailwindcss.com/docs/margin
1092
+ */
1093
+ m: [{
1094
+ m: [margin]
1095
+ }],
1096
+ /**
1097
+ * Margin X
1098
+ * @see https://tailwindcss.com/docs/margin
1099
+ */
1100
+ mx: [{
1101
+ mx: [margin]
1102
+ }],
1103
+ /**
1104
+ * Margin Y
1105
+ * @see https://tailwindcss.com/docs/margin
1106
+ */
1107
+ my: [{
1108
+ my: [margin]
1109
+ }],
1110
+ /**
1111
+ * Margin Start
1112
+ * @see https://tailwindcss.com/docs/margin
1113
+ */
1114
+ ms: [{
1115
+ ms: [margin]
1116
+ }],
1117
+ /**
1118
+ * Margin End
1119
+ * @see https://tailwindcss.com/docs/margin
1120
+ */
1121
+ me: [{
1122
+ me: [margin]
1123
+ }],
1124
+ /**
1125
+ * Margin Top
1126
+ * @see https://tailwindcss.com/docs/margin
1127
+ */
1128
+ mt: [{
1129
+ mt: [margin]
1130
+ }],
1131
+ /**
1132
+ * Margin Right
1133
+ * @see https://tailwindcss.com/docs/margin
1134
+ */
1135
+ mr: [{
1136
+ mr: [margin]
1137
+ }],
1138
+ /**
1139
+ * Margin Bottom
1140
+ * @see https://tailwindcss.com/docs/margin
1141
+ */
1142
+ mb: [{
1143
+ mb: [margin]
1144
+ }],
1145
+ /**
1146
+ * Margin Left
1147
+ * @see https://tailwindcss.com/docs/margin
1148
+ */
1149
+ ml: [{
1150
+ ml: [margin]
1151
+ }],
1152
+ /**
1153
+ * Space Between X
1154
+ * @see https://tailwindcss.com/docs/space
1155
+ */
1156
+ 'space-x': [{
1157
+ 'space-x': [space]
1158
+ }],
1159
+ /**
1160
+ * Space Between X Reverse
1161
+ * @see https://tailwindcss.com/docs/space
1162
+ */
1163
+ 'space-x-reverse': ['space-x-reverse'],
1164
+ /**
1165
+ * Space Between Y
1166
+ * @see https://tailwindcss.com/docs/space
1167
+ */
1168
+ 'space-y': [{
1169
+ 'space-y': [space]
1170
+ }],
1171
+ /**
1172
+ * Space Between Y Reverse
1173
+ * @see https://tailwindcss.com/docs/space
1174
+ */
1175
+ 'space-y-reverse': ['space-y-reverse'],
1176
+ // Sizing
1177
+ /**
1178
+ * Width
1179
+ * @see https://tailwindcss.com/docs/width
1180
+ */
1181
+ w: [{
1182
+ w: ['auto', 'min', 'max', 'fit', isArbitraryValue, spacing]
1183
+ }],
1184
+ /**
1185
+ * Min-Width
1186
+ * @see https://tailwindcss.com/docs/min-width
1187
+ */
1188
+ 'min-w': [{
1189
+ 'min-w': ['min', 'max', 'fit', isArbitraryValue, isLength]
1190
+ }],
1191
+ /**
1192
+ * Max-Width
1193
+ * @see https://tailwindcss.com/docs/max-width
1194
+ */
1195
+ 'max-w': [{
1196
+ 'max-w': ['0', 'none', 'full', 'min', 'max', 'fit', 'prose', {
1197
+ screen: [isTshirtSize]
1198
+ }, isTshirtSize, isArbitraryValue]
1199
+ }],
1200
+ /**
1201
+ * Height
1202
+ * @see https://tailwindcss.com/docs/height
1203
+ */
1204
+ h: [{
1205
+ h: [isArbitraryValue, spacing, 'auto', 'min', 'max', 'fit']
1206
+ }],
1207
+ /**
1208
+ * Min-Height
1209
+ * @see https://tailwindcss.com/docs/min-height
1210
+ */
1211
+ 'min-h': [{
1212
+ 'min-h': ['min', 'max', 'fit', isArbitraryValue, isLength]
1213
+ }],
1214
+ /**
1215
+ * Max-Height
1216
+ * @see https://tailwindcss.com/docs/max-height
1217
+ */
1218
+ 'max-h': [{
1219
+ 'max-h': [isArbitraryValue, spacing, 'min', 'max', 'fit']
1220
+ }],
1221
+ // Typography
1222
+ /**
1223
+ * Font Size
1224
+ * @see https://tailwindcss.com/docs/font-size
1225
+ */
1226
+ 'font-size': [{
1227
+ text: ['base', isTshirtSize, isArbitraryLength]
1228
+ }],
1229
+ /**
1230
+ * Font Smoothing
1231
+ * @see https://tailwindcss.com/docs/font-smoothing
1232
+ */
1233
+ 'font-smoothing': ['antialiased', 'subpixel-antialiased'],
1234
+ /**
1235
+ * Font Style
1236
+ * @see https://tailwindcss.com/docs/font-style
1237
+ */
1238
+ 'font-style': ['italic', 'not-italic'],
1239
+ /**
1240
+ * Font Weight
1241
+ * @see https://tailwindcss.com/docs/font-weight
1242
+ */
1243
+ 'font-weight': [{
1244
+ font: ['thin', 'extralight', 'light', 'normal', 'medium', 'semibold', 'bold', 'extrabold', 'black', isArbitraryNumber]
1245
+ }],
1246
+ /**
1247
+ * Font Family
1248
+ * @see https://tailwindcss.com/docs/font-family
1249
+ */
1250
+ 'font-family': [{
1251
+ font: [isAny]
1252
+ }],
1253
+ /**
1254
+ * Font Variant Numeric
1255
+ * @see https://tailwindcss.com/docs/font-variant-numeric
1256
+ */
1257
+ 'fvn-normal': ['normal-nums'],
1258
+ /**
1259
+ * Font Variant Numeric
1260
+ * @see https://tailwindcss.com/docs/font-variant-numeric
1261
+ */
1262
+ 'fvn-ordinal': ['ordinal'],
1263
+ /**
1264
+ * Font Variant Numeric
1265
+ * @see https://tailwindcss.com/docs/font-variant-numeric
1266
+ */
1267
+ 'fvn-slashed-zero': ['slashed-zero'],
1268
+ /**
1269
+ * Font Variant Numeric
1270
+ * @see https://tailwindcss.com/docs/font-variant-numeric
1271
+ */
1272
+ 'fvn-figure': ['lining-nums', 'oldstyle-nums'],
1273
+ /**
1274
+ * Font Variant Numeric
1275
+ * @see https://tailwindcss.com/docs/font-variant-numeric
1276
+ */
1277
+ 'fvn-spacing': ['proportional-nums', 'tabular-nums'],
1278
+ /**
1279
+ * Font Variant Numeric
1280
+ * @see https://tailwindcss.com/docs/font-variant-numeric
1281
+ */
1282
+ 'fvn-fraction': ['diagonal-fractions', 'stacked-fractons'],
1283
+ /**
1284
+ * Letter Spacing
1285
+ * @see https://tailwindcss.com/docs/letter-spacing
1286
+ */
1287
+ tracking: [{
1288
+ tracking: ['tighter', 'tight', 'normal', 'wide', 'wider', 'widest', isArbitraryValue]
1289
+ }],
1290
+ /**
1291
+ * Line Clamp
1292
+ * @see https://tailwindcss.com/docs/line-clamp
1293
+ */
1294
+ 'line-clamp': [{
1295
+ 'line-clamp': ['none', isNumber, isArbitraryNumber]
1296
+ }],
1297
+ /**
1298
+ * Line Height
1299
+ * @see https://tailwindcss.com/docs/line-height
1300
+ */
1301
+ leading: [{
1302
+ leading: ['none', 'tight', 'snug', 'normal', 'relaxed', 'loose', isArbitraryValue, isLength]
1303
+ }],
1304
+ /**
1305
+ * List Style Image
1306
+ * @see https://tailwindcss.com/docs/list-style-image
1307
+ */
1308
+ 'list-image': [{
1309
+ 'list-image': ['none', isArbitraryValue]
1310
+ }],
1311
+ /**
1312
+ * List Style Type
1313
+ * @see https://tailwindcss.com/docs/list-style-type
1314
+ */
1315
+ 'list-style-type': [{
1316
+ list: ['none', 'disc', 'decimal', isArbitraryValue]
1317
+ }],
1318
+ /**
1319
+ * List Style Position
1320
+ * @see https://tailwindcss.com/docs/list-style-position
1321
+ */
1322
+ 'list-style-position': [{
1323
+ list: ['inside', 'outside']
1324
+ }],
1325
+ /**
1326
+ * Placeholder Color
1327
+ * @deprecated since Tailwind CSS v3.0.0
1328
+ * @see https://tailwindcss.com/docs/placeholder-color
1329
+ */
1330
+ 'placeholder-color': [{
1331
+ placeholder: [colors]
1332
+ }],
1333
+ /**
1334
+ * Placeholder Opacity
1335
+ * @see https://tailwindcss.com/docs/placeholder-opacity
1336
+ */
1337
+ 'placeholder-opacity': [{
1338
+ 'placeholder-opacity': [opacity]
1339
+ }],
1340
+ /**
1341
+ * Text Alignment
1342
+ * @see https://tailwindcss.com/docs/text-align
1343
+ */
1344
+ 'text-alignment': [{
1345
+ text: ['left', 'center', 'right', 'justify', 'start', 'end']
1346
+ }],
1347
+ /**
1348
+ * Text Color
1349
+ * @see https://tailwindcss.com/docs/text-color
1350
+ */
1351
+ 'text-color': [{
1352
+ text: [colors]
1353
+ }],
1354
+ /**
1355
+ * Text Opacity
1356
+ * @see https://tailwindcss.com/docs/text-opacity
1357
+ */
1358
+ 'text-opacity': [{
1359
+ 'text-opacity': [opacity]
1360
+ }],
1361
+ /**
1362
+ * Text Decoration
1363
+ * @see https://tailwindcss.com/docs/text-decoration
1364
+ */
1365
+ 'text-decoration': ['underline', 'overline', 'line-through', 'no-underline'],
1366
+ /**
1367
+ * Text Decoration Style
1368
+ * @see https://tailwindcss.com/docs/text-decoration-style
1369
+ */
1370
+ 'text-decoration-style': [{
1371
+ decoration: [].concat(getLineStyles(), ['wavy'])
1372
+ }],
1373
+ /**
1374
+ * Text Decoration Thickness
1375
+ * @see https://tailwindcss.com/docs/text-decoration-thickness
1376
+ */
1377
+ 'text-decoration-thickness': [{
1378
+ decoration: ['auto', 'from-font', isLength]
1379
+ }],
1380
+ /**
1381
+ * Text Underline Offset
1382
+ * @see https://tailwindcss.com/docs/text-underline-offset
1383
+ */
1384
+ 'underline-offset': [{
1385
+ 'underline-offset': ['auto', isArbitraryValue, isLength]
1386
+ }],
1387
+ /**
1388
+ * Text Decoration Color
1389
+ * @see https://tailwindcss.com/docs/text-decoration-color
1390
+ */
1391
+ 'text-decoration-color': [{
1392
+ decoration: [colors]
1393
+ }],
1394
+ /**
1395
+ * Text Transform
1396
+ * @see https://tailwindcss.com/docs/text-transform
1397
+ */
1398
+ 'text-transform': ['uppercase', 'lowercase', 'capitalize', 'normal-case'],
1399
+ /**
1400
+ * Text Overflow
1401
+ * @see https://tailwindcss.com/docs/text-overflow
1402
+ */
1403
+ 'text-overflow': ['truncate', 'text-ellipsis', 'text-clip'],
1404
+ /**
1405
+ * Text Indent
1406
+ * @see https://tailwindcss.com/docs/text-indent
1407
+ */
1408
+ indent: [{
1409
+ indent: getSpacingWithArbitrary()
1410
+ }],
1411
+ /**
1412
+ * Vertical Alignment
1413
+ * @see https://tailwindcss.com/docs/vertical-align
1414
+ */
1415
+ 'vertical-align': [{
1416
+ align: ['baseline', 'top', 'middle', 'bottom', 'text-top', 'text-bottom', 'sub', 'super', isArbitraryValue]
1417
+ }],
1418
+ /**
1419
+ * Whitespace
1420
+ * @see https://tailwindcss.com/docs/whitespace
1421
+ */
1422
+ whitespace: [{
1423
+ whitespace: ['normal', 'nowrap', 'pre', 'pre-line', 'pre-wrap', 'break-spaces']
1424
+ }],
1425
+ /**
1426
+ * Word Break
1427
+ * @see https://tailwindcss.com/docs/word-break
1428
+ */
1429
+ "break": [{
1430
+ "break": ['normal', 'words', 'all', 'keep']
1431
+ }],
1432
+ /**
1433
+ * Hyphens
1434
+ * @see https://tailwindcss.com/docs/hyphens
1435
+ */
1436
+ hyphens: [{
1437
+ hyphens: ['none', 'manual', 'auto']
1438
+ }],
1439
+ /**
1440
+ * Content
1441
+ * @see https://tailwindcss.com/docs/content
1442
+ */
1443
+ content: [{
1444
+ content: ['none', isArbitraryValue]
1445
+ }],
1446
+ // Backgrounds
1447
+ /**
1448
+ * Background Attachment
1449
+ * @see https://tailwindcss.com/docs/background-attachment
1450
+ */
1451
+ 'bg-attachment': [{
1452
+ bg: ['fixed', 'local', 'scroll']
1453
+ }],
1454
+ /**
1455
+ * Background Clip
1456
+ * @see https://tailwindcss.com/docs/background-clip
1457
+ */
1458
+ 'bg-clip': [{
1459
+ 'bg-clip': ['border', 'padding', 'content', 'text']
1460
+ }],
1461
+ /**
1462
+ * Background Opacity
1463
+ * @deprecated since Tailwind CSS v3.0.0
1464
+ * @see https://tailwindcss.com/docs/background-opacity
1465
+ */
1466
+ 'bg-opacity': [{
1467
+ 'bg-opacity': [opacity]
1468
+ }],
1469
+ /**
1470
+ * Background Origin
1471
+ * @see https://tailwindcss.com/docs/background-origin
1472
+ */
1473
+ 'bg-origin': [{
1474
+ 'bg-origin': ['border', 'padding', 'content']
1475
+ }],
1476
+ /**
1477
+ * Background Position
1478
+ * @see https://tailwindcss.com/docs/background-position
1479
+ */
1480
+ 'bg-position': [{
1481
+ bg: [].concat(getPositions(), [isArbitraryPosition])
1482
+ }],
1483
+ /**
1484
+ * Background Repeat
1485
+ * @see https://tailwindcss.com/docs/background-repeat
1486
+ */
1487
+ 'bg-repeat': [{
1488
+ bg: ['no-repeat', {
1489
+ repeat: ['', 'x', 'y', 'round', 'space']
1490
+ }]
1491
+ }],
1492
+ /**
1493
+ * Background Size
1494
+ * @see https://tailwindcss.com/docs/background-size
1495
+ */
1496
+ 'bg-size': [{
1497
+ bg: ['auto', 'cover', 'contain', isArbitrarySize]
1498
+ }],
1499
+ /**
1500
+ * Background Image
1501
+ * @see https://tailwindcss.com/docs/background-image
1502
+ */
1503
+ 'bg-image': [{
1504
+ bg: ['none', {
1505
+ 'gradient-to': ['t', 'tr', 'r', 'br', 'b', 'bl', 'l', 'tl']
1506
+ }, isArbitraryUrl]
1507
+ }],
1508
+ /**
1509
+ * Background Color
1510
+ * @see https://tailwindcss.com/docs/background-color
1511
+ */
1512
+ 'bg-color': [{
1513
+ bg: [colors]
1514
+ }],
1515
+ /**
1516
+ * Gradient Color Stops From Position
1517
+ * @see https://tailwindcss.com/docs/gradient-color-stops
1518
+ */
1519
+ 'gradient-from-pos': [{
1520
+ from: [gradientColorStopPositions]
1521
+ }],
1522
+ /**
1523
+ * Gradient Color Stops Via Position
1524
+ * @see https://tailwindcss.com/docs/gradient-color-stops
1525
+ */
1526
+ 'gradient-via-pos': [{
1527
+ via: [gradientColorStopPositions]
1528
+ }],
1529
+ /**
1530
+ * Gradient Color Stops To Position
1531
+ * @see https://tailwindcss.com/docs/gradient-color-stops
1532
+ */
1533
+ 'gradient-to-pos': [{
1534
+ to: [gradientColorStopPositions]
1535
+ }],
1536
+ /**
1537
+ * Gradient Color Stops From
1538
+ * @see https://tailwindcss.com/docs/gradient-color-stops
1539
+ */
1540
+ 'gradient-from': [{
1541
+ from: [gradientColorStops]
1542
+ }],
1543
+ /**
1544
+ * Gradient Color Stops Via
1545
+ * @see https://tailwindcss.com/docs/gradient-color-stops
1546
+ */
1547
+ 'gradient-via': [{
1548
+ via: [gradientColorStops]
1549
+ }],
1550
+ /**
1551
+ * Gradient Color Stops To
1552
+ * @see https://tailwindcss.com/docs/gradient-color-stops
1553
+ */
1554
+ 'gradient-to': [{
1555
+ to: [gradientColorStops]
1556
+ }],
1557
+ // Borders
1558
+ /**
1559
+ * Border Radius
1560
+ * @see https://tailwindcss.com/docs/border-radius
1561
+ */
1562
+ rounded: [{
1563
+ rounded: [borderRadius]
1564
+ }],
1565
+ /**
1566
+ * Border Radius Start
1567
+ * @see https://tailwindcss.com/docs/border-radius
1568
+ */
1569
+ 'rounded-s': [{
1570
+ 'rounded-s': [borderRadius]
1571
+ }],
1572
+ /**
1573
+ * Border Radius End
1574
+ * @see https://tailwindcss.com/docs/border-radius
1575
+ */
1576
+ 'rounded-e': [{
1577
+ 'rounded-e': [borderRadius]
1578
+ }],
1579
+ /**
1580
+ * Border Radius Top
1581
+ * @see https://tailwindcss.com/docs/border-radius
1582
+ */
1583
+ 'rounded-t': [{
1584
+ 'rounded-t': [borderRadius]
1585
+ }],
1586
+ /**
1587
+ * Border Radius Right
1588
+ * @see https://tailwindcss.com/docs/border-radius
1589
+ */
1590
+ 'rounded-r': [{
1591
+ 'rounded-r': [borderRadius]
1592
+ }],
1593
+ /**
1594
+ * Border Radius Bottom
1595
+ * @see https://tailwindcss.com/docs/border-radius
1596
+ */
1597
+ 'rounded-b': [{
1598
+ 'rounded-b': [borderRadius]
1599
+ }],
1600
+ /**
1601
+ * Border Radius Left
1602
+ * @see https://tailwindcss.com/docs/border-radius
1603
+ */
1604
+ 'rounded-l': [{
1605
+ 'rounded-l': [borderRadius]
1606
+ }],
1607
+ /**
1608
+ * Border Radius Start Start
1609
+ * @see https://tailwindcss.com/docs/border-radius
1610
+ */
1611
+ 'rounded-ss': [{
1612
+ 'rounded-ss': [borderRadius]
1613
+ }],
1614
+ /**
1615
+ * Border Radius Start End
1616
+ * @see https://tailwindcss.com/docs/border-radius
1617
+ */
1618
+ 'rounded-se': [{
1619
+ 'rounded-se': [borderRadius]
1620
+ }],
1621
+ /**
1622
+ * Border Radius End End
1623
+ * @see https://tailwindcss.com/docs/border-radius
1624
+ */
1625
+ 'rounded-ee': [{
1626
+ 'rounded-ee': [borderRadius]
1627
+ }],
1628
+ /**
1629
+ * Border Radius End Start
1630
+ * @see https://tailwindcss.com/docs/border-radius
1631
+ */
1632
+ 'rounded-es': [{
1633
+ 'rounded-es': [borderRadius]
1634
+ }],
1635
+ /**
1636
+ * Border Radius Top Left
1637
+ * @see https://tailwindcss.com/docs/border-radius
1638
+ */
1639
+ 'rounded-tl': [{
1640
+ 'rounded-tl': [borderRadius]
1641
+ }],
1642
+ /**
1643
+ * Border Radius Top Right
1644
+ * @see https://tailwindcss.com/docs/border-radius
1645
+ */
1646
+ 'rounded-tr': [{
1647
+ 'rounded-tr': [borderRadius]
1648
+ }],
1649
+ /**
1650
+ * Border Radius Bottom Right
1651
+ * @see https://tailwindcss.com/docs/border-radius
1652
+ */
1653
+ 'rounded-br': [{
1654
+ 'rounded-br': [borderRadius]
1655
+ }],
1656
+ /**
1657
+ * Border Radius Bottom Left
1658
+ * @see https://tailwindcss.com/docs/border-radius
1659
+ */
1660
+ 'rounded-bl': [{
1661
+ 'rounded-bl': [borderRadius]
1662
+ }],
1663
+ /**
1664
+ * Border Width
1665
+ * @see https://tailwindcss.com/docs/border-width
1666
+ */
1667
+ 'border-w': [{
1668
+ border: [borderWidth]
1669
+ }],
1670
+ /**
1671
+ * Border Width X
1672
+ * @see https://tailwindcss.com/docs/border-width
1673
+ */
1674
+ 'border-w-x': [{
1675
+ 'border-x': [borderWidth]
1676
+ }],
1677
+ /**
1678
+ * Border Width Y
1679
+ * @see https://tailwindcss.com/docs/border-width
1680
+ */
1681
+ 'border-w-y': [{
1682
+ 'border-y': [borderWidth]
1683
+ }],
1684
+ /**
1685
+ * Border Width Start
1686
+ * @see https://tailwindcss.com/docs/border-width
1687
+ */
1688
+ 'border-w-s': [{
1689
+ 'border-s': [borderWidth]
1690
+ }],
1691
+ /**
1692
+ * Border Width End
1693
+ * @see https://tailwindcss.com/docs/border-width
1694
+ */
1695
+ 'border-w-e': [{
1696
+ 'border-e': [borderWidth]
1697
+ }],
1698
+ /**
1699
+ * Border Width Top
1700
+ * @see https://tailwindcss.com/docs/border-width
1701
+ */
1702
+ 'border-w-t': [{
1703
+ 'border-t': [borderWidth]
1704
+ }],
1705
+ /**
1706
+ * Border Width Right
1707
+ * @see https://tailwindcss.com/docs/border-width
1708
+ */
1709
+ 'border-w-r': [{
1710
+ 'border-r': [borderWidth]
1711
+ }],
1712
+ /**
1713
+ * Border Width Bottom
1714
+ * @see https://tailwindcss.com/docs/border-width
1715
+ */
1716
+ 'border-w-b': [{
1717
+ 'border-b': [borderWidth]
1718
+ }],
1719
+ /**
1720
+ * Border Width Left
1721
+ * @see https://tailwindcss.com/docs/border-width
1722
+ */
1723
+ 'border-w-l': [{
1724
+ 'border-l': [borderWidth]
1725
+ }],
1726
+ /**
1727
+ * Border Opacity
1728
+ * @see https://tailwindcss.com/docs/border-opacity
1729
+ */
1730
+ 'border-opacity': [{
1731
+ 'border-opacity': [opacity]
1732
+ }],
1733
+ /**
1734
+ * Border Style
1735
+ * @see https://tailwindcss.com/docs/border-style
1736
+ */
1737
+ 'border-style': [{
1738
+ border: [].concat(getLineStyles(), ['hidden'])
1739
+ }],
1740
+ /**
1741
+ * Divide Width X
1742
+ * @see https://tailwindcss.com/docs/divide-width
1743
+ */
1744
+ 'divide-x': [{
1745
+ 'divide-x': [borderWidth]
1746
+ }],
1747
+ /**
1748
+ * Divide Width X Reverse
1749
+ * @see https://tailwindcss.com/docs/divide-width
1750
+ */
1751
+ 'divide-x-reverse': ['divide-x-reverse'],
1752
+ /**
1753
+ * Divide Width Y
1754
+ * @see https://tailwindcss.com/docs/divide-width
1755
+ */
1756
+ 'divide-y': [{
1757
+ 'divide-y': [borderWidth]
1758
+ }],
1759
+ /**
1760
+ * Divide Width Y Reverse
1761
+ * @see https://tailwindcss.com/docs/divide-width
1762
+ */
1763
+ 'divide-y-reverse': ['divide-y-reverse'],
1764
+ /**
1765
+ * Divide Opacity
1766
+ * @see https://tailwindcss.com/docs/divide-opacity
1767
+ */
1768
+ 'divide-opacity': [{
1769
+ 'divide-opacity': [opacity]
1770
+ }],
1771
+ /**
1772
+ * Divide Style
1773
+ * @see https://tailwindcss.com/docs/divide-style
1774
+ */
1775
+ 'divide-style': [{
1776
+ divide: getLineStyles()
1777
+ }],
1778
+ /**
1779
+ * Border Color
1780
+ * @see https://tailwindcss.com/docs/border-color
1781
+ */
1782
+ 'border-color': [{
1783
+ border: [borderColor]
1784
+ }],
1785
+ /**
1786
+ * Border Color X
1787
+ * @see https://tailwindcss.com/docs/border-color
1788
+ */
1789
+ 'border-color-x': [{
1790
+ 'border-x': [borderColor]
1791
+ }],
1792
+ /**
1793
+ * Border Color Y
1794
+ * @see https://tailwindcss.com/docs/border-color
1795
+ */
1796
+ 'border-color-y': [{
1797
+ 'border-y': [borderColor]
1798
+ }],
1799
+ /**
1800
+ * Border Color Top
1801
+ * @see https://tailwindcss.com/docs/border-color
1802
+ */
1803
+ 'border-color-t': [{
1804
+ 'border-t': [borderColor]
1805
+ }],
1806
+ /**
1807
+ * Border Color Right
1808
+ * @see https://tailwindcss.com/docs/border-color
1809
+ */
1810
+ 'border-color-r': [{
1811
+ 'border-r': [borderColor]
1812
+ }],
1813
+ /**
1814
+ * Border Color Bottom
1815
+ * @see https://tailwindcss.com/docs/border-color
1816
+ */
1817
+ 'border-color-b': [{
1818
+ 'border-b': [borderColor]
1819
+ }],
1820
+ /**
1821
+ * Border Color Left
1822
+ * @see https://tailwindcss.com/docs/border-color
1823
+ */
1824
+ 'border-color-l': [{
1825
+ 'border-l': [borderColor]
1826
+ }],
1827
+ /**
1828
+ * Divide Color
1829
+ * @see https://tailwindcss.com/docs/divide-color
1830
+ */
1831
+ 'divide-color': [{
1832
+ divide: [borderColor]
1833
+ }],
1834
+ /**
1835
+ * Outline Style
1836
+ * @see https://tailwindcss.com/docs/outline-style
1837
+ */
1838
+ 'outline-style': [{
1839
+ outline: [''].concat(getLineStyles())
1840
+ }],
1841
+ /**
1842
+ * Outline Offset
1843
+ * @see https://tailwindcss.com/docs/outline-offset
1844
+ */
1845
+ 'outline-offset': [{
1846
+ 'outline-offset': [isArbitraryValue, isLength]
1847
+ }],
1848
+ /**
1849
+ * Outline Width
1850
+ * @see https://tailwindcss.com/docs/outline-width
1851
+ */
1852
+ 'outline-w': [{
1853
+ outline: [isLength]
1854
+ }],
1855
+ /**
1856
+ * Outline Color
1857
+ * @see https://tailwindcss.com/docs/outline-color
1858
+ */
1859
+ 'outline-color': [{
1860
+ outline: [colors]
1861
+ }],
1862
+ /**
1863
+ * Ring Width
1864
+ * @see https://tailwindcss.com/docs/ring-width
1865
+ */
1866
+ 'ring-w': [{
1867
+ ring: getLengthWithEmpty()
1868
+ }],
1869
+ /**
1870
+ * Ring Width Inset
1871
+ * @see https://tailwindcss.com/docs/ring-width
1872
+ */
1873
+ 'ring-w-inset': ['ring-inset'],
1874
+ /**
1875
+ * Ring Color
1876
+ * @see https://tailwindcss.com/docs/ring-color
1877
+ */
1878
+ 'ring-color': [{
1879
+ ring: [colors]
1880
+ }],
1881
+ /**
1882
+ * Ring Opacity
1883
+ * @see https://tailwindcss.com/docs/ring-opacity
1884
+ */
1885
+ 'ring-opacity': [{
1886
+ 'ring-opacity': [opacity]
1887
+ }],
1888
+ /**
1889
+ * Ring Offset Width
1890
+ * @see https://tailwindcss.com/docs/ring-offset-width
1891
+ */
1892
+ 'ring-offset-w': [{
1893
+ 'ring-offset': [isLength]
1894
+ }],
1895
+ /**
1896
+ * Ring Offset Color
1897
+ * @see https://tailwindcss.com/docs/ring-offset-color
1898
+ */
1899
+ 'ring-offset-color': [{
1900
+ 'ring-offset': [colors]
1901
+ }],
1902
+ // Effects
1903
+ /**
1904
+ * Box Shadow
1905
+ * @see https://tailwindcss.com/docs/box-shadow
1906
+ */
1907
+ shadow: [{
1908
+ shadow: ['', 'inner', 'none', isTshirtSize, isArbitraryShadow]
1909
+ }],
1910
+ /**
1911
+ * Box Shadow Color
1912
+ * @see https://tailwindcss.com/docs/box-shadow-color
1913
+ */
1914
+ 'shadow-color': [{
1915
+ shadow: [isAny]
1916
+ }],
1917
+ /**
1918
+ * Opacity
1919
+ * @see https://tailwindcss.com/docs/opacity
1920
+ */
1921
+ opacity: [{
1922
+ opacity: [opacity]
1923
+ }],
1924
+ /**
1925
+ * Mix Blend Mode
1926
+ * @see https://tailwindcss.com/docs/mix-blend-mode
1927
+ */
1928
+ 'mix-blend': [{
1929
+ 'mix-blend': getBlendModes()
1930
+ }],
1931
+ /**
1932
+ * Background Blend Mode
1933
+ * @see https://tailwindcss.com/docs/background-blend-mode
1934
+ */
1935
+ 'bg-blend': [{
1936
+ 'bg-blend': getBlendModes()
1937
+ }],
1938
+ // Filters
1939
+ /**
1940
+ * Filter
1941
+ * @deprecated since Tailwind CSS v3.0.0
1942
+ * @see https://tailwindcss.com/docs/filter
1943
+ */
1944
+ filter: [{
1945
+ filter: ['', 'none']
1946
+ }],
1947
+ /**
1948
+ * Blur
1949
+ * @see https://tailwindcss.com/docs/blur
1950
+ */
1951
+ blur: [{
1952
+ blur: [blur]
1953
+ }],
1954
+ /**
1955
+ * Brightness
1956
+ * @see https://tailwindcss.com/docs/brightness
1957
+ */
1958
+ brightness: [{
1959
+ brightness: [brightness]
1960
+ }],
1961
+ /**
1962
+ * Contrast
1963
+ * @see https://tailwindcss.com/docs/contrast
1964
+ */
1965
+ contrast: [{
1966
+ contrast: [contrast]
1967
+ }],
1968
+ /**
1969
+ * Drop Shadow
1970
+ * @see https://tailwindcss.com/docs/drop-shadow
1971
+ */
1972
+ 'drop-shadow': [{
1973
+ 'drop-shadow': ['', 'none', isTshirtSize, isArbitraryValue]
1974
+ }],
1975
+ /**
1976
+ * Grayscale
1977
+ * @see https://tailwindcss.com/docs/grayscale
1978
+ */
1979
+ grayscale: [{
1980
+ grayscale: [grayscale]
1981
+ }],
1982
+ /**
1983
+ * Hue Rotate
1984
+ * @see https://tailwindcss.com/docs/hue-rotate
1985
+ */
1986
+ 'hue-rotate': [{
1987
+ 'hue-rotate': [hueRotate]
1988
+ }],
1989
+ /**
1990
+ * Invert
1991
+ * @see https://tailwindcss.com/docs/invert
1992
+ */
1993
+ invert: [{
1994
+ invert: [invert]
1995
+ }],
1996
+ /**
1997
+ * Saturate
1998
+ * @see https://tailwindcss.com/docs/saturate
1999
+ */
2000
+ saturate: [{
2001
+ saturate: [saturate]
2002
+ }],
2003
+ /**
2004
+ * Sepia
2005
+ * @see https://tailwindcss.com/docs/sepia
2006
+ */
2007
+ sepia: [{
2008
+ sepia: [sepia]
2009
+ }],
2010
+ /**
2011
+ * Backdrop Filter
2012
+ * @deprecated since Tailwind CSS v3.0.0
2013
+ * @see https://tailwindcss.com/docs/backdrop-filter
2014
+ */
2015
+ 'backdrop-filter': [{
2016
+ 'backdrop-filter': ['', 'none']
2017
+ }],
2018
+ /**
2019
+ * Backdrop Blur
2020
+ * @see https://tailwindcss.com/docs/backdrop-blur
2021
+ */
2022
+ 'backdrop-blur': [{
2023
+ 'backdrop-blur': [blur]
2024
+ }],
2025
+ /**
2026
+ * Backdrop Brightness
2027
+ * @see https://tailwindcss.com/docs/backdrop-brightness
2028
+ */
2029
+ 'backdrop-brightness': [{
2030
+ 'backdrop-brightness': [brightness]
2031
+ }],
2032
+ /**
2033
+ * Backdrop Contrast
2034
+ * @see https://tailwindcss.com/docs/backdrop-contrast
2035
+ */
2036
+ 'backdrop-contrast': [{
2037
+ 'backdrop-contrast': [contrast]
2038
+ }],
2039
+ /**
2040
+ * Backdrop Grayscale
2041
+ * @see https://tailwindcss.com/docs/backdrop-grayscale
2042
+ */
2043
+ 'backdrop-grayscale': [{
2044
+ 'backdrop-grayscale': [grayscale]
2045
+ }],
2046
+ /**
2047
+ * Backdrop Hue Rotate
2048
+ * @see https://tailwindcss.com/docs/backdrop-hue-rotate
2049
+ */
2050
+ 'backdrop-hue-rotate': [{
2051
+ 'backdrop-hue-rotate': [hueRotate]
2052
+ }],
2053
+ /**
2054
+ * Backdrop Invert
2055
+ * @see https://tailwindcss.com/docs/backdrop-invert
2056
+ */
2057
+ 'backdrop-invert': [{
2058
+ 'backdrop-invert': [invert]
2059
+ }],
2060
+ /**
2061
+ * Backdrop Opacity
2062
+ * @see https://tailwindcss.com/docs/backdrop-opacity
2063
+ */
2064
+ 'backdrop-opacity': [{
2065
+ 'backdrop-opacity': [opacity]
2066
+ }],
2067
+ /**
2068
+ * Backdrop Saturate
2069
+ * @see https://tailwindcss.com/docs/backdrop-saturate
2070
+ */
2071
+ 'backdrop-saturate': [{
2072
+ 'backdrop-saturate': [saturate]
2073
+ }],
2074
+ /**
2075
+ * Backdrop Sepia
2076
+ * @see https://tailwindcss.com/docs/backdrop-sepia
2077
+ */
2078
+ 'backdrop-sepia': [{
2079
+ 'backdrop-sepia': [sepia]
2080
+ }],
2081
+ // Tables
2082
+ /**
2083
+ * Border Collapse
2084
+ * @see https://tailwindcss.com/docs/border-collapse
2085
+ */
2086
+ 'border-collapse': [{
2087
+ border: ['collapse', 'separate']
2088
+ }],
2089
+ /**
2090
+ * Border Spacing
2091
+ * @see https://tailwindcss.com/docs/border-spacing
2092
+ */
2093
+ 'border-spacing': [{
2094
+ 'border-spacing': [borderSpacing]
2095
+ }],
2096
+ /**
2097
+ * Border Spacing X
2098
+ * @see https://tailwindcss.com/docs/border-spacing
2099
+ */
2100
+ 'border-spacing-x': [{
2101
+ 'border-spacing-x': [borderSpacing]
2102
+ }],
2103
+ /**
2104
+ * Border Spacing Y
2105
+ * @see https://tailwindcss.com/docs/border-spacing
2106
+ */
2107
+ 'border-spacing-y': [{
2108
+ 'border-spacing-y': [borderSpacing]
2109
+ }],
2110
+ /**
2111
+ * Table Layout
2112
+ * @see https://tailwindcss.com/docs/table-layout
2113
+ */
2114
+ 'table-layout': [{
2115
+ table: ['auto', 'fixed']
2116
+ }],
2117
+ /**
2118
+ * Caption Side
2119
+ * @see https://tailwindcss.com/docs/caption-side
2120
+ */
2121
+ caption: [{
2122
+ caption: ['top', 'bottom']
2123
+ }],
2124
+ // Transitions and Animation
2125
+ /**
2126
+ * Tranisition Property
2127
+ * @see https://tailwindcss.com/docs/transition-property
2128
+ */
2129
+ transition: [{
2130
+ transition: ['none', 'all', '', 'colors', 'opacity', 'shadow', 'transform', isArbitraryValue]
2131
+ }],
2132
+ /**
2133
+ * Transition Duration
2134
+ * @see https://tailwindcss.com/docs/transition-duration
2135
+ */
2136
+ duration: [{
2137
+ duration: getNumberAndArbitrary()
2138
+ }],
2139
+ /**
2140
+ * Transition Timing Function
2141
+ * @see https://tailwindcss.com/docs/transition-timing-function
2142
+ */
2143
+ ease: [{
2144
+ ease: ['linear', 'in', 'out', 'in-out', isArbitraryValue]
2145
+ }],
2146
+ /**
2147
+ * Transition Delay
2148
+ * @see https://tailwindcss.com/docs/transition-delay
2149
+ */
2150
+ delay: [{
2151
+ delay: getNumberAndArbitrary()
2152
+ }],
2153
+ /**
2154
+ * Animation
2155
+ * @see https://tailwindcss.com/docs/animation
2156
+ */
2157
+ animate: [{
2158
+ animate: ['none', 'spin', 'ping', 'pulse', 'bounce', isArbitraryValue]
2159
+ }],
2160
+ // Transforms
2161
+ /**
2162
+ * Transform
2163
+ * @see https://tailwindcss.com/docs/transform
2164
+ */
2165
+ transform: [{
2166
+ transform: ['', 'gpu', 'none']
2167
+ }],
2168
+ /**
2169
+ * Scale
2170
+ * @see https://tailwindcss.com/docs/scale
2171
+ */
2172
+ scale: [{
2173
+ scale: [scale]
2174
+ }],
2175
+ /**
2176
+ * Scale X
2177
+ * @see https://tailwindcss.com/docs/scale
2178
+ */
2179
+ 'scale-x': [{
2180
+ 'scale-x': [scale]
2181
+ }],
2182
+ /**
2183
+ * Scale Y
2184
+ * @see https://tailwindcss.com/docs/scale
2185
+ */
2186
+ 'scale-y': [{
2187
+ 'scale-y': [scale]
2188
+ }],
2189
+ /**
2190
+ * Rotate
2191
+ * @see https://tailwindcss.com/docs/rotate
2192
+ */
2193
+ rotate: [{
2194
+ rotate: [isInteger, isArbitraryValue]
2195
+ }],
2196
+ /**
2197
+ * Translate X
2198
+ * @see https://tailwindcss.com/docs/translate
2199
+ */
2200
+ 'translate-x': [{
2201
+ 'translate-x': [translate]
2202
+ }],
2203
+ /**
2204
+ * Translate Y
2205
+ * @see https://tailwindcss.com/docs/translate
2206
+ */
2207
+ 'translate-y': [{
2208
+ 'translate-y': [translate]
2209
+ }],
2210
+ /**
2211
+ * Skew X
2212
+ * @see https://tailwindcss.com/docs/skew
2213
+ */
2214
+ 'skew-x': [{
2215
+ 'skew-x': [skew]
2216
+ }],
2217
+ /**
2218
+ * Skew Y
2219
+ * @see https://tailwindcss.com/docs/skew
2220
+ */
2221
+ 'skew-y': [{
2222
+ 'skew-y': [skew]
2223
+ }],
2224
+ /**
2225
+ * Transform Origin
2226
+ * @see https://tailwindcss.com/docs/transform-origin
2227
+ */
2228
+ 'transform-origin': [{
2229
+ origin: ['center', 'top', 'top-right', 'right', 'bottom-right', 'bottom', 'bottom-left', 'left', 'top-left', isArbitraryValue]
2230
+ }],
2231
+ // Interactivity
2232
+ /**
2233
+ * Accent Color
2234
+ * @see https://tailwindcss.com/docs/accent-color
2235
+ */
2236
+ accent: [{
2237
+ accent: ['auto', colors]
2238
+ }],
2239
+ /**
2240
+ * Appearance
2241
+ * @see https://tailwindcss.com/docs/appearance
2242
+ */
2243
+ appearance: ['appearance-none'],
2244
+ /**
2245
+ * Cursor
2246
+ * @see https://tailwindcss.com/docs/cursor
2247
+ */
2248
+ cursor: [{
2249
+ cursor: ['auto', 'default', 'pointer', 'wait', 'text', 'move', 'help', 'not-allowed', 'none', 'context-menu', 'progress', 'cell', 'crosshair', 'vertical-text', 'alias', 'copy', 'no-drop', 'grab', 'grabbing', 'all-scroll', 'col-resize', 'row-resize', 'n-resize', 'e-resize', 's-resize', 'w-resize', 'ne-resize', 'nw-resize', 'se-resize', 'sw-resize', 'ew-resize', 'ns-resize', 'nesw-resize', 'nwse-resize', 'zoom-in', 'zoom-out', isArbitraryValue]
2250
+ }],
2251
+ /**
2252
+ * Caret Color
2253
+ * @see https://tailwindcss.com/docs/just-in-time-mode#caret-color-utilities
2254
+ */
2255
+ 'caret-color': [{
2256
+ caret: [colors]
2257
+ }],
2258
+ /**
2259
+ * Pointer Events
2260
+ * @see https://tailwindcss.com/docs/pointer-events
2261
+ */
2262
+ 'pointer-events': [{
2263
+ 'pointer-events': ['none', 'auto']
2264
+ }],
2265
+ /**
2266
+ * Resize
2267
+ * @see https://tailwindcss.com/docs/resize
2268
+ */
2269
+ resize: [{
2270
+ resize: ['none', 'y', 'x', '']
2271
+ }],
2272
+ /**
2273
+ * Scroll Behavior
2274
+ * @see https://tailwindcss.com/docs/scroll-behavior
2275
+ */
2276
+ 'scroll-behavior': [{
2277
+ scroll: ['auto', 'smooth']
2278
+ }],
2279
+ /**
2280
+ * Scroll Margin
2281
+ * @see https://tailwindcss.com/docs/scroll-margin
2282
+ */
2283
+ 'scroll-m': [{
2284
+ 'scroll-m': getSpacingWithArbitrary()
2285
+ }],
2286
+ /**
2287
+ * Scroll Margin X
2288
+ * @see https://tailwindcss.com/docs/scroll-margin
2289
+ */
2290
+ 'scroll-mx': [{
2291
+ 'scroll-mx': getSpacingWithArbitrary()
2292
+ }],
2293
+ /**
2294
+ * Scroll Margin Y
2295
+ * @see https://tailwindcss.com/docs/scroll-margin
2296
+ */
2297
+ 'scroll-my': [{
2298
+ 'scroll-my': getSpacingWithArbitrary()
2299
+ }],
2300
+ /**
2301
+ * Scroll Margin Start
2302
+ * @see https://tailwindcss.com/docs/scroll-margin
2303
+ */
2304
+ 'scroll-ms': [{
2305
+ 'scroll-ms': getSpacingWithArbitrary()
2306
+ }],
2307
+ /**
2308
+ * Scroll Margin End
2309
+ * @see https://tailwindcss.com/docs/scroll-margin
2310
+ */
2311
+ 'scroll-me': [{
2312
+ 'scroll-me': getSpacingWithArbitrary()
2313
+ }],
2314
+ /**
2315
+ * Scroll Margin Top
2316
+ * @see https://tailwindcss.com/docs/scroll-margin
2317
+ */
2318
+ 'scroll-mt': [{
2319
+ 'scroll-mt': getSpacingWithArbitrary()
2320
+ }],
2321
+ /**
2322
+ * Scroll Margin Right
2323
+ * @see https://tailwindcss.com/docs/scroll-margin
2324
+ */
2325
+ 'scroll-mr': [{
2326
+ 'scroll-mr': getSpacingWithArbitrary()
2327
+ }],
2328
+ /**
2329
+ * Scroll Margin Bottom
2330
+ * @see https://tailwindcss.com/docs/scroll-margin
2331
+ */
2332
+ 'scroll-mb': [{
2333
+ 'scroll-mb': getSpacingWithArbitrary()
2334
+ }],
2335
+ /**
2336
+ * Scroll Margin Left
2337
+ * @see https://tailwindcss.com/docs/scroll-margin
2338
+ */
2339
+ 'scroll-ml': [{
2340
+ 'scroll-ml': getSpacingWithArbitrary()
2341
+ }],
2342
+ /**
2343
+ * Scroll Padding
2344
+ * @see https://tailwindcss.com/docs/scroll-padding
2345
+ */
2346
+ 'scroll-p': [{
2347
+ 'scroll-p': getSpacingWithArbitrary()
2348
+ }],
2349
+ /**
2350
+ * Scroll Padding X
2351
+ * @see https://tailwindcss.com/docs/scroll-padding
2352
+ */
2353
+ 'scroll-px': [{
2354
+ 'scroll-px': getSpacingWithArbitrary()
2355
+ }],
2356
+ /**
2357
+ * Scroll Padding Y
2358
+ * @see https://tailwindcss.com/docs/scroll-padding
2359
+ */
2360
+ 'scroll-py': [{
2361
+ 'scroll-py': getSpacingWithArbitrary()
2362
+ }],
2363
+ /**
2364
+ * Scroll Padding Start
2365
+ * @see https://tailwindcss.com/docs/scroll-padding
2366
+ */
2367
+ 'scroll-ps': [{
2368
+ 'scroll-ps': getSpacingWithArbitrary()
2369
+ }],
2370
+ /**
2371
+ * Scroll Padding End
2372
+ * @see https://tailwindcss.com/docs/scroll-padding
2373
+ */
2374
+ 'scroll-pe': [{
2375
+ 'scroll-pe': getSpacingWithArbitrary()
2376
+ }],
2377
+ /**
2378
+ * Scroll Padding Top
2379
+ * @see https://tailwindcss.com/docs/scroll-padding
2380
+ */
2381
+ 'scroll-pt': [{
2382
+ 'scroll-pt': getSpacingWithArbitrary()
2383
+ }],
2384
+ /**
2385
+ * Scroll Padding Right
2386
+ * @see https://tailwindcss.com/docs/scroll-padding
2387
+ */
2388
+ 'scroll-pr': [{
2389
+ 'scroll-pr': getSpacingWithArbitrary()
2390
+ }],
2391
+ /**
2392
+ * Scroll Padding Bottom
2393
+ * @see https://tailwindcss.com/docs/scroll-padding
2394
+ */
2395
+ 'scroll-pb': [{
2396
+ 'scroll-pb': getSpacingWithArbitrary()
2397
+ }],
2398
+ /**
2399
+ * Scroll Padding Left
2400
+ * @see https://tailwindcss.com/docs/scroll-padding
2401
+ */
2402
+ 'scroll-pl': [{
2403
+ 'scroll-pl': getSpacingWithArbitrary()
2404
+ }],
2405
+ /**
2406
+ * Scroll Snap Align
2407
+ * @see https://tailwindcss.com/docs/scroll-snap-align
2408
+ */
2409
+ 'snap-align': [{
2410
+ snap: ['start', 'end', 'center', 'align-none']
2411
+ }],
2412
+ /**
2413
+ * Scroll Snap Stop
2414
+ * @see https://tailwindcss.com/docs/scroll-snap-stop
2415
+ */
2416
+ 'snap-stop': [{
2417
+ snap: ['normal', 'always']
2418
+ }],
2419
+ /**
2420
+ * Scroll Snap Type
2421
+ * @see https://tailwindcss.com/docs/scroll-snap-type
2422
+ */
2423
+ 'snap-type': [{
2424
+ snap: ['none', 'x', 'y', 'both']
2425
+ }],
2426
+ /**
2427
+ * Scroll Snap Type Strictness
2428
+ * @see https://tailwindcss.com/docs/scroll-snap-type
2429
+ */
2430
+ 'snap-strictness': [{
2431
+ snap: ['mandatory', 'proximity']
2432
+ }],
2433
+ /**
2434
+ * Touch Action
2435
+ * @see https://tailwindcss.com/docs/touch-action
2436
+ */
2437
+ touch: [{
2438
+ touch: ['auto', 'none', 'pinch-zoom', 'manipulation', {
2439
+ pan: ['x', 'left', 'right', 'y', 'up', 'down']
2440
+ }]
2441
+ }],
2442
+ /**
2443
+ * User Select
2444
+ * @see https://tailwindcss.com/docs/user-select
2445
+ */
2446
+ select: [{
2447
+ select: ['none', 'text', 'all', 'auto']
2448
+ }],
2449
+ /**
2450
+ * Will Change
2451
+ * @see https://tailwindcss.com/docs/will-change
2452
+ */
2453
+ 'will-change': [{
2454
+ 'will-change': ['auto', 'scroll', 'contents', 'transform', isArbitraryValue]
2455
+ }],
2456
+ // SVG
2457
+ /**
2458
+ * Fill
2459
+ * @see https://tailwindcss.com/docs/fill
2460
+ */
2461
+ fill: [{
2462
+ fill: [colors, 'none']
2463
+ }],
2464
+ /**
2465
+ * Stroke Width
2466
+ * @see https://tailwindcss.com/docs/stroke-width
2467
+ */
2468
+ 'stroke-w': [{
2469
+ stroke: [isLength, isArbitraryNumber]
2470
+ }],
2471
+ /**
2472
+ * Stroke
2473
+ * @see https://tailwindcss.com/docs/stroke
2474
+ */
2475
+ stroke: [{
2476
+ stroke: [colors, 'none']
2477
+ }],
2478
+ // Accessibility
2479
+ /**
2480
+ * Screen Readers
2481
+ * @see https://tailwindcss.com/docs/screen-readers
2482
+ */
2483
+ sr: ['sr-only', 'not-sr-only']
2484
+ },
2485
+ conflictingClassGroups: {
2486
+ overflow: ['overflow-x', 'overflow-y'],
2487
+ overscroll: ['overscroll-x', 'overscroll-y'],
2488
+ inset: ['inset-x', 'inset-y', 'start', 'end', 'top', 'right', 'bottom', 'left'],
2489
+ 'inset-x': ['right', 'left'],
2490
+ 'inset-y': ['top', 'bottom'],
2491
+ flex: ['basis', 'grow', 'shrink'],
2492
+ gap: ['gap-x', 'gap-y'],
2493
+ p: ['px', 'py', 'ps', 'pe', 'pt', 'pr', 'pb', 'pl'],
2494
+ px: ['pr', 'pl'],
2495
+ py: ['pt', 'pb'],
2496
+ m: ['mx', 'my', 'ms', 'me', 'mt', 'mr', 'mb', 'ml'],
2497
+ mx: ['mr', 'ml'],
2498
+ my: ['mt', 'mb'],
2499
+ 'font-size': ['leading'],
2500
+ 'fvn-normal': ['fvn-ordinal', 'fvn-slashed-zero', 'fvn-figure', 'fvn-spacing', 'fvn-fraction'],
2501
+ 'fvn-ordinal': ['fvn-normal'],
2502
+ 'fvn-slashed-zero': ['fvn-normal'],
2503
+ 'fvn-figure': ['fvn-normal'],
2504
+ 'fvn-spacing': ['fvn-normal'],
2505
+ 'fvn-fraction': ['fvn-normal'],
2506
+ 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'],
2507
+ 'rounded-s': ['rounded-ss', 'rounded-es'],
2508
+ 'rounded-e': ['rounded-se', 'rounded-ee'],
2509
+ 'rounded-t': ['rounded-tl', 'rounded-tr'],
2510
+ 'rounded-r': ['rounded-tr', 'rounded-br'],
2511
+ 'rounded-b': ['rounded-br', 'rounded-bl'],
2512
+ 'rounded-l': ['rounded-tl', 'rounded-bl'],
2513
+ 'border-spacing': ['border-spacing-x', 'border-spacing-y'],
2514
+ 'border-w': ['border-w-s', 'border-w-e', 'border-w-t', 'border-w-r', 'border-w-b', 'border-w-l'],
2515
+ 'border-w-x': ['border-w-r', 'border-w-l'],
2516
+ 'border-w-y': ['border-w-t', 'border-w-b'],
2517
+ 'border-color': ['border-color-t', 'border-color-r', 'border-color-b', 'border-color-l'],
2518
+ 'border-color-x': ['border-color-r', 'border-color-l'],
2519
+ 'border-color-y': ['border-color-t', 'border-color-b'],
2520
+ 'scroll-m': ['scroll-mx', 'scroll-my', 'scroll-ms', 'scroll-me', 'scroll-mt', 'scroll-mr', 'scroll-mb', 'scroll-ml'],
2521
+ 'scroll-mx': ['scroll-mr', 'scroll-ml'],
2522
+ 'scroll-my': ['scroll-mt', 'scroll-mb'],
2523
+ 'scroll-p': ['scroll-px', 'scroll-py', 'scroll-ps', 'scroll-pe', 'scroll-pt', 'scroll-pr', 'scroll-pb', 'scroll-pl'],
2524
+ 'scroll-px': ['scroll-pr', 'scroll-pl'],
2525
+ 'scroll-py': ['scroll-pt', 'scroll-pb']
2526
+ },
2527
+ conflictingClassGroupModifiers: {
2528
+ 'font-size': ['leading']
2529
+ }
2530
+ };
2531
+ }
2532
+
2533
+ /**
2534
+ * @param baseConfig Config where other config will be merged into. This object will be mutated.
2535
+ * @param configExtension Partial config to merge into the `baseConfig`.
2536
+ */
2537
+ function mergeConfigs(baseConfig, configExtension) {
2538
+ for (var key in configExtension) {
2539
+ mergePropertyRecursively(baseConfig, key, configExtension[key]);
2540
+ }
2541
+ return baseConfig;
2542
+ }
2543
+ var hasOwnProperty = Object.prototype.hasOwnProperty;
2544
+ var overrideTypes = /*#__PURE__*/new Set(['string', 'number', 'boolean']);
2545
+ function mergePropertyRecursively(baseObject, mergeKey, mergeValue) {
2546
+ if (!hasOwnProperty.call(baseObject, mergeKey) || overrideTypes.has(typeof mergeValue) || mergeValue === null) {
2547
+ baseObject[mergeKey] = mergeValue;
2548
+ return;
2549
+ }
2550
+ if (Array.isArray(mergeValue) && Array.isArray(baseObject[mergeKey])) {
2551
+ baseObject[mergeKey] = baseObject[mergeKey].concat(mergeValue);
2552
+ return;
2553
+ }
2554
+ if (typeof mergeValue === 'object' && typeof baseObject[mergeKey] === 'object') {
2555
+ if (baseObject[mergeKey] === null) {
2556
+ baseObject[mergeKey] = mergeValue;
2557
+ return;
2558
+ }
2559
+ for (var nextKey in mergeValue) {
2560
+ mergePropertyRecursively(baseObject[mergeKey], nextKey, mergeValue[nextKey]);
2561
+ }
2562
+ }
2563
+ }
2564
+
2565
+ function extendTailwindMerge(configExtension) {
2566
+ for (var _len = arguments.length, createConfig = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
2567
+ createConfig[_key - 1] = arguments[_key];
2568
+ }
2569
+ return typeof configExtension === 'function' ? createTailwindMerge.apply(void 0, [getDefaultConfig, configExtension].concat(createConfig)) : createTailwindMerge.apply(void 0, [function () {
2570
+ return mergeConfigs(getDefaultConfig(), configExtension);
2571
+ }].concat(createConfig));
2572
+ }
2573
+
2574
+ var twMerge = /*#__PURE__*/createTailwindMerge(getDefaultConfig);
2575
+
2576
+ 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};
2577
+
2578
+ const badgeStyle = ce({
2579
+ slots: {
2580
+ host: "bcm-badge tw-inline-flex tw-items-center tw-justify-center",
2581
+ base: [
2582
+ "bcm-badge__dot bcm-ui-element bcm-ui-content-display",
2583
+ "tw-flex tw-items-center tw-justify-center tw-flex-row",
2584
+ "tw-rounded-full tw-text-center",
2585
+ "tw-bg-[--bcm-badge-bg] tw-text-[--bcm-badge-text]",
2586
+ "tw-whitespace-nowrap",
2587
+ ],
2588
+ dotText: "empty:tw-hidden",
2589
+ },
2590
+ variants: {
2591
+ size: {
2592
+ small: {
2593
+ base: "bcm-badge__dot-size-small tw-text-1 tw-min-w-1.5 tw-min-h-1.5",
2594
+ dotText: "tw-px-1.5 tw-min-w-4",
2595
+ },
2596
+ medium: {
2597
+ base: "bcm-badge__dot-size-medium tw-text-2 tw-min-w-2 tw-min-h-2",
2598
+ dotText: "tw-px-1.5 tw-min-w-5",
2599
+ },
2600
+ large: {
2601
+ base: "bcm-badge__dot-size-large tw-text-3 tw-min-w-2.5 tw-min-h-2.5",
2602
+ dotText: "tw-px-2 tw-min-w-6",
2603
+ },
2604
+ },
2605
+ blink: {
2606
+ true: {
2607
+ base: [
2608
+ "bcm-badge__dot-blink tw-relative",
2609
+ "after:tw-content-[''] after:tw-absolute after:tw-top-0 after:tw-left-0 after:tw-z-[-1]",
2610
+ "after:tw-w-full after:tw-h-full after:tw-bg-[--bcm-badge-bg] after:tw-opacity-75 after:tw-rounded-full",
2611
+ "after:tw-animate-blink after:tw-pointer-events-none",
2612
+ ],
2613
+ },
2614
+ },
2615
+ },
2616
+ defaultVariants: {
2617
+ size: "medium",
2618
+ blink: false,
2619
+ },
2620
+ });
13
2621
 
14
2622
  const BcmBadge = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
15
2623
  constructor() {
16
2624
  super();
17
2625
  this.__registerHost();
2626
+ this.statusColors = {
2627
+ info: "blue",
2628
+ error: "red",
2629
+ warning: "amber",
2630
+ success: "emerald",
2631
+ };
18
2632
  this._id = Generate.UID();
19
- this.hidden = false;
20
2633
  this.blink = false;
21
2634
  this.value = undefined;
22
2635
  this.color = undefined;
23
2636
  this.size = Bcm.Size.medium;
24
2637
  this.status = undefined;
25
- this._slot = undefined;
26
- }
27
- setStyleVariables() {
28
- const { status, value } = this;
29
- let { color } = this;
30
- const statusColors = {
31
- 'info': 'blue',
32
- 'error': 'red',
33
- 'warning': 'amber',
34
- 'success': 'emerald',
35
- 'default': 'slate'
36
- };
37
- !!status && (color = statusColors[status]);
38
- !color && (color = 'slate');
39
- const prefix = `--bcm-badge`;
40
- const spacing = !!value && value.length > 1 ? '8' : '4';
41
- return {
42
- [`${prefix}-color`]: ColorHelper.reverseColor(ColorHelper.dsColor(`${color}`)),
43
- [`${prefix}-background-color`]: ColorHelper.dsColor(`${color}`),
44
- [`${prefix}-spacing`]: `${spacing}px`
45
- };
46
2638
  }
47
2639
  render() {
48
- let { blink, value, size, _slot, hidden } = this;
49
- const dotClass = classnames('bcm-badge__dot', 'bcm-badge__dot-size-' + size,
50
- // 'size-2',
51
- {
52
- 'bcm-badge__dot-blink': blink
53
- });
54
- const hostClasses = classnames('bcm-badge', {
55
- hidden
2640
+ const { blink, value, size, color, status } = this;
2641
+ const _color = this.statusColors[status] || color;
2642
+ const { tone, colorName } = ColorHelper.parseColor(_color);
2643
+ const dc = Generate.getTwColor({
2644
+ color: colorName,
2645
+ tones: {
2646
+ [tone]: ["bg"],
2647
+ },
2648
+ variable: "--bcm-badge",
56
2649
  });
57
- return (h(Host, { class: hostClasses, style: this.setStyleVariables() }, h("span", { hidden: true }, h("slot", null)), h("div", { class: dotClass }, !!value && h("span", { class: "bcm-badge__dot-text" }, value)), h(SlotTemplate, { value: _slot })));
2650
+ const style = Object.assign(Object.assign({}, dc), (dc["--bcm-badge-bg"] && { "--bcm-badge-text": ColorHelper.reverseColor(dc["--bcm-badge-bg"]) }));
2651
+ const { base, dotText, host } = badgeStyle({ size, blink });
2652
+ return (h(Host, { class: host(), role: "status", "aria-live": "polite" }, h("div", { class: base(), style: style }, h("span", { class: dotText(), role: "presentation", "aria-hidden": "true" }, h("slot", null, value)), h("span", { class: "tw-sr-only" }, value))));
58
2653
  }
59
2654
  get el() { return this; }
60
- static get style() { return badgeCss; }
61
2655
  }, [4, "bcm-badge", {
62
- "_id": [1537, "id"],
63
- "hidden": [1028],
64
- "blink": [1028],
65
- "value": [1025],
66
- "color": [1032],
67
- "size": [1025],
68
- "status": [1025],
69
- "_slot": [1032, "slot"]
2656
+ "_id": [513, "id"],
2657
+ "blink": [4],
2658
+ "value": [1],
2659
+ "color": [8],
2660
+ "size": [1],
2661
+ "status": [1]
70
2662
  }]);
71
2663
  function defineCustomElement() {
72
2664
  if (typeof customElements === "undefined") {
@@ -82,4 +2674,4 @@ function defineCustomElement() {
82
2674
  } });
83
2675
  }
84
2676
 
85
- export { BcmBadge as B, defineCustomElement as d };
2677
+ export { BcmBadge as B, ce as c, defineCustomElement as d };