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