bromcom-ui-next 0.1.21 → 0.1.22

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (513) hide show
  1. package/dist/bromcom-ui/bcm-accordion-group.entry.esm.js.map +1 -0
  2. package/dist/bromcom-ui/bcm-accordion.entry.esm.js.map +1 -0
  3. package/dist/bromcom-ui/bcm-alert.entry.esm.js.map +1 -0
  4. package/dist/bromcom-ui/bcm-avatar.entry.esm.js.map +1 -0
  5. package/dist/bromcom-ui/bcm-badge.entry.esm.js.map +1 -0
  6. package/dist/bromcom-ui/bcm-basic-badge.entry.esm.js.map +1 -0
  7. package/dist/bromcom-ui/bcm-button-group.entry.esm.js.map +1 -0
  8. package/dist/bromcom-ui/bcm-button.entry.esm.js.map +1 -0
  9. package/dist/bromcom-ui/bcm-checkbox.entry.esm.js.map +1 -0
  10. package/dist/bromcom-ui/bcm-chip.entry.esm.js.map +1 -0
  11. package/dist/bromcom-ui/bcm-divider.entry.esm.js.map +1 -0
  12. package/dist/bromcom-ui/bcm-drawer.entry.esm.js.map +1 -0
  13. package/dist/bromcom-ui/bcm-dropdown-item.entry.esm.js.map +1 -0
  14. package/dist/bromcom-ui/bcm-dropdown.entry.esm.js.map +1 -0
  15. package/dist/bromcom-ui/bcm-input.entry.esm.js.map +1 -0
  16. package/dist/bromcom-ui/bcm-linked.entry.esm.js.map +1 -0
  17. package/dist/bromcom-ui/bcm-pop-confirm.entry.esm.js.map +1 -0
  18. package/dist/bromcom-ui/bcm-popover.entry.esm.js.map +1 -0
  19. package/dist/bromcom-ui/bcm-radio-group.entry.esm.js.map +1 -0
  20. package/dist/bromcom-ui/bcm-radio.entry.esm.js.map +1 -0
  21. package/dist/bromcom-ui/bcm-segmented-picker-option.entry.esm.js.map +1 -0
  22. package/dist/bromcom-ui/bcm-segmented-picker.entry.esm.js.map +1 -0
  23. package/dist/bromcom-ui/bcm-shortcut.entry.esm.js.map +1 -0
  24. package/dist/bromcom-ui/bcm-switch.entry.esm.js.map +1 -0
  25. package/dist/bromcom-ui/bcm-tabs-content.entry.esm.js.map +1 -0
  26. package/dist/bromcom-ui/bcm-tabs-list.entry.esm.js.map +1 -0
  27. package/dist/bromcom-ui/bcm-tabs-trigger.entry.esm.js.map +1 -0
  28. package/dist/bromcom-ui/bcm-tabs.entry.esm.js.map +1 -0
  29. package/dist/bromcom-ui/bcm-text.entry.esm.js.map +1 -0
  30. package/dist/bromcom-ui/bcm-textarea.entry.esm.js.map +1 -0
  31. package/dist/bromcom-ui/bcm-tooltip.entry.esm.js.map +1 -0
  32. package/dist/bromcom-ui/bromcom-ui.esm.js +1 -1
  33. package/dist/bromcom-ui/bromcom-ui.esm.js.map +1 -1
  34. package/dist/bromcom-ui/index.esm.js.map +1 -1
  35. package/dist/bromcom-ui/loader.esm.js.map +1 -0
  36. package/dist/bromcom-ui/p-07b05abd.entry.js +2 -0
  37. package/dist/bromcom-ui/p-07b05abd.entry.js.map +1 -0
  38. package/dist/bromcom-ui/p-2d3a0ad4.entry.js +2 -0
  39. package/dist/bromcom-ui/p-2d3a0ad4.entry.js.map +1 -0
  40. package/dist/bromcom-ui/p-319d3937.entry.js +2 -0
  41. package/dist/bromcom-ui/p-319d3937.entry.js.map +1 -0
  42. package/dist/bromcom-ui/p-361073bc.entry.js +2 -0
  43. package/dist/bromcom-ui/p-361073bc.entry.js.map +1 -0
  44. package/dist/bromcom-ui/p-378bf83e.entry.js +2 -0
  45. package/dist/bromcom-ui/p-378bf83e.entry.js.map +1 -0
  46. package/dist/bromcom-ui/p-3866ae3e.entry.js +2 -0
  47. package/dist/bromcom-ui/p-3866ae3e.entry.js.map +1 -0
  48. package/dist/bromcom-ui/p-3fbed81b.entry.js +2 -0
  49. package/dist/bromcom-ui/p-3fbed81b.entry.js.map +1 -0
  50. package/dist/bromcom-ui/p-45158141.entry.js +2 -0
  51. package/dist/bromcom-ui/p-45158141.entry.js.map +1 -0
  52. package/dist/bromcom-ui/p-4d980154.entry.js +2 -0
  53. package/dist/bromcom-ui/p-4d980154.entry.js.map +1 -0
  54. package/dist/bromcom-ui/{p-a03922f8.entry.js → p-50505dd6.entry.js} +2 -2
  55. package/dist/bromcom-ui/p-50505dd6.entry.js.map +1 -0
  56. package/dist/bromcom-ui/{p-b1f9ad67.entry.js → p-62c14cc4.entry.js} +2 -2
  57. package/dist/bromcom-ui/p-62c14cc4.entry.js.map +1 -0
  58. package/dist/bromcom-ui/p-67f62d75.entry.js +2 -0
  59. package/dist/bromcom-ui/p-67f62d75.entry.js.map +1 -0
  60. package/dist/bromcom-ui/p-6fa6b826.entry.js +2 -0
  61. package/dist/bromcom-ui/p-6fa6b826.entry.js.map +1 -0
  62. package/dist/bromcom-ui/p-75d1117d.entry.js +2 -0
  63. package/dist/bromcom-ui/p-75d1117d.entry.js.map +1 -0
  64. package/dist/bromcom-ui/p-778c0de1.entry.js +2 -0
  65. package/dist/bromcom-ui/p-778c0de1.entry.js.map +1 -0
  66. package/dist/bromcom-ui/p-7d366ff2.entry.js +2 -0
  67. package/dist/bromcom-ui/p-7d366ff2.entry.js.map +1 -0
  68. package/dist/bromcom-ui/p-813cffad.entry.js +2 -0
  69. package/dist/bromcom-ui/p-813cffad.entry.js.map +1 -0
  70. package/dist/bromcom-ui/p-813e7ebe.entry.js +2 -0
  71. package/dist/bromcom-ui/p-813e7ebe.entry.js.map +1 -0
  72. package/dist/bromcom-ui/p-87e7e02a.entry.js +2 -0
  73. package/dist/bromcom-ui/p-87e7e02a.entry.js.map +1 -0
  74. package/dist/bromcom-ui/p-90b65db8.entry.js +2 -0
  75. package/dist/bromcom-ui/p-90b65db8.entry.js.map +1 -0
  76. package/dist/bromcom-ui/p-9293a2ce.entry.js +2 -0
  77. package/dist/bromcom-ui/p-9293a2ce.entry.js.map +1 -0
  78. package/dist/bromcom-ui/p-9bf8f3c1.entry.js +2 -0
  79. package/dist/bromcom-ui/p-9bf8f3c1.entry.js.map +1 -0
  80. package/dist/bromcom-ui/p-BfTCfPZ1.js +7 -0
  81. package/dist/bromcom-ui/p-BfTCfPZ1.js.map +1 -0
  82. package/dist/bromcom-ui/p-CEcVC0yX.js +2 -0
  83. package/dist/bromcom-ui/p-CEcVC0yX.js.map +1 -0
  84. package/dist/bromcom-ui/{p-13a245f6.js → p-CUvT12BL.js} +1 -1
  85. package/dist/bromcom-ui/p-CUvT12BL.js.map +1 -0
  86. package/dist/bromcom-ui/p-CrZxEeDA.js +3 -0
  87. package/dist/bromcom-ui/p-CrZxEeDA.js.map +1 -0
  88. package/dist/bromcom-ui/p-DxMLMJ3r.js +2 -0
  89. package/dist/bromcom-ui/p-DxMLMJ3r.js.map +1 -0
  90. package/dist/bromcom-ui/{p-ba2410ef.js → p-IBjzkjef.js} +2 -2
  91. package/dist/bromcom-ui/p-IBjzkjef.js.map +1 -0
  92. package/dist/bromcom-ui/p-a4ace572.entry.js +2 -0
  93. package/dist/bromcom-ui/p-a4ace572.entry.js.map +1 -0
  94. package/dist/bromcom-ui/p-a8b66a90.entry.js +2 -0
  95. package/dist/bromcom-ui/p-a8b66a90.entry.js.map +1 -0
  96. package/dist/bromcom-ui/p-ab1f24b4.entry.js +2 -0
  97. package/dist/bromcom-ui/p-ab1f24b4.entry.js.map +1 -0
  98. package/dist/bromcom-ui/p-b566bad4.entry.js +2 -0
  99. package/dist/bromcom-ui/p-b566bad4.entry.js.map +1 -0
  100. package/dist/bromcom-ui/p-c8307ce4.entry.js +2 -0
  101. package/dist/bromcom-ui/p-c8307ce4.entry.js.map +1 -0
  102. package/dist/bromcom-ui/p-c86d4b07.entry.js +2 -0
  103. package/dist/bromcom-ui/p-c86d4b07.entry.js.map +1 -0
  104. package/dist/bromcom-ui/{p-06d42346.entry.js → p-e00fa939.entry.js} +2 -2
  105. package/dist/bromcom-ui/p-e00fa939.entry.js.map +1 -0
  106. package/dist/bromcom-ui/{p-11227d96.entry.js → p-e91676ff.entry.js} +2 -2
  107. package/dist/bromcom-ui/p-e91676ff.entry.js.map +1 -0
  108. package/dist/bromcom-ui/p-fdc1df0c.entry.js +2 -0
  109. package/dist/bromcom-ui/p-fdc1df0c.entry.js.map +1 -0
  110. package/dist/cjs/bcm-accordion-group.cjs.entry.js +3 -5
  111. package/dist/cjs/bcm-accordion-group.cjs.entry.js.map +1 -1
  112. package/dist/cjs/bcm-accordion-group.entry.cjs.js.map +1 -0
  113. package/dist/cjs/bcm-accordion.cjs.entry.js +4 -6
  114. package/dist/cjs/bcm-accordion.cjs.entry.js.map +1 -1
  115. package/dist/cjs/bcm-accordion.entry.cjs.js.map +1 -0
  116. package/dist/cjs/bcm-alert.cjs.entry.js +4 -6
  117. package/dist/cjs/bcm-alert.cjs.entry.js.map +1 -1
  118. package/dist/cjs/bcm-alert.entry.cjs.js.map +1 -0
  119. package/dist/cjs/bcm-avatar.cjs.entry.js +4 -6
  120. package/dist/cjs/bcm-avatar.cjs.entry.js.map +1 -1
  121. package/dist/cjs/bcm-avatar.entry.cjs.js.map +1 -0
  122. package/dist/cjs/bcm-badge.cjs.entry.js +4 -6
  123. package/dist/cjs/bcm-badge.cjs.entry.js.map +1 -1
  124. package/dist/cjs/bcm-badge.entry.cjs.js.map +1 -0
  125. package/dist/cjs/bcm-basic-badge.cjs.entry.js +5 -7
  126. package/dist/cjs/bcm-basic-badge.cjs.entry.js.map +1 -1
  127. package/dist/cjs/bcm-basic-badge.entry.cjs.js.map +1 -0
  128. package/dist/cjs/bcm-button-group.cjs.entry.js +4 -6
  129. package/dist/cjs/bcm-button-group.cjs.entry.js.map +1 -1
  130. package/dist/cjs/bcm-button-group.entry.cjs.js.map +1 -0
  131. package/dist/cjs/bcm-button.cjs.entry.js +316 -0
  132. package/dist/cjs/bcm-button.cjs.entry.js.map +1 -0
  133. package/dist/cjs/bcm-button.entry.cjs.js.map +1 -0
  134. package/dist/cjs/bcm-checkbox.cjs.entry.js +5 -7
  135. package/dist/cjs/bcm-checkbox.cjs.entry.js.map +1 -1
  136. package/dist/cjs/bcm-checkbox.entry.cjs.js.map +1 -0
  137. package/dist/cjs/bcm-chip.cjs.entry.js +4 -6
  138. package/dist/cjs/bcm-chip.cjs.entry.js.map +1 -1
  139. package/dist/cjs/bcm-chip.entry.cjs.js.map +1 -0
  140. package/dist/cjs/bcm-divider.cjs.entry.js +4 -6
  141. package/dist/cjs/bcm-divider.cjs.entry.js.map +1 -1
  142. package/dist/cjs/bcm-divider.entry.cjs.js.map +1 -0
  143. package/dist/cjs/bcm-drawer.cjs.entry.js +206 -0
  144. package/dist/cjs/bcm-drawer.cjs.entry.js.map +1 -0
  145. package/dist/cjs/bcm-drawer.entry.cjs.js.map +1 -0
  146. package/dist/cjs/bcm-dropdown-item.cjs.entry.js +61 -0
  147. package/dist/cjs/bcm-dropdown-item.cjs.entry.js.map +1 -0
  148. package/dist/cjs/bcm-dropdown-item.entry.cjs.js.map +1 -0
  149. package/dist/cjs/bcm-dropdown.cjs.entry.js +54 -0
  150. package/dist/cjs/bcm-dropdown.cjs.entry.js.map +1 -0
  151. package/dist/cjs/bcm-dropdown.entry.cjs.js.map +1 -0
  152. package/dist/cjs/bcm-input.cjs.entry.js +315 -0
  153. package/dist/cjs/bcm-input.cjs.entry.js.map +1 -0
  154. package/dist/cjs/bcm-input.entry.cjs.js.map +1 -0
  155. package/dist/cjs/bcm-linked.cjs.entry.js +343 -0
  156. package/dist/cjs/bcm-linked.cjs.entry.js.map +1 -0
  157. package/dist/cjs/bcm-linked.entry.cjs.js.map +1 -0
  158. package/dist/cjs/bcm-pop-confirm.cjs.entry.js +7 -9
  159. package/dist/cjs/bcm-pop-confirm.cjs.entry.js.map +1 -1
  160. package/dist/cjs/bcm-pop-confirm.entry.cjs.js.map +1 -0
  161. package/dist/cjs/bcm-popover.cjs.entry.js +8 -10
  162. package/dist/cjs/bcm-popover.cjs.entry.js.map +1 -1
  163. package/dist/cjs/bcm-popover.entry.cjs.js.map +1 -0
  164. package/dist/cjs/bcm-radio-group.cjs.entry.js +6 -8
  165. package/dist/cjs/bcm-radio-group.cjs.entry.js.map +1 -1
  166. package/dist/cjs/bcm-radio-group.entry.cjs.js.map +1 -0
  167. package/dist/cjs/bcm-radio.cjs.entry.js +4 -6
  168. package/dist/cjs/bcm-radio.cjs.entry.js.map +1 -1
  169. package/dist/cjs/bcm-radio.entry.cjs.js.map +1 -0
  170. package/dist/cjs/bcm-segmented-picker-option.cjs.entry.js +4 -6
  171. package/dist/cjs/bcm-segmented-picker-option.cjs.entry.js.map +1 -1
  172. package/dist/cjs/bcm-segmented-picker-option.entry.cjs.js.map +1 -0
  173. package/dist/cjs/bcm-segmented-picker.cjs.entry.js +4 -6
  174. package/dist/cjs/bcm-segmented-picker.cjs.entry.js.map +1 -1
  175. package/dist/cjs/bcm-segmented-picker.entry.cjs.js.map +1 -0
  176. package/dist/cjs/bcm-shortcut.cjs.entry.js +50 -0
  177. package/dist/cjs/bcm-shortcut.cjs.entry.js.map +1 -0
  178. package/dist/cjs/bcm-shortcut.entry.cjs.js.map +1 -0
  179. package/dist/cjs/bcm-switch.cjs.entry.js +5 -7
  180. package/dist/cjs/bcm-switch.cjs.entry.js.map +1 -1
  181. package/dist/cjs/bcm-switch.entry.cjs.js.map +1 -0
  182. package/dist/cjs/bcm-tabs-content.cjs.entry.js +3 -5
  183. package/dist/cjs/bcm-tabs-content.cjs.entry.js.map +1 -1
  184. package/dist/cjs/bcm-tabs-content.entry.cjs.js.map +1 -0
  185. package/dist/cjs/bcm-tabs-list.cjs.entry.js +4 -6
  186. package/dist/cjs/bcm-tabs-list.cjs.entry.js.map +1 -1
  187. package/dist/cjs/bcm-tabs-list.entry.cjs.js.map +1 -0
  188. package/dist/cjs/bcm-tabs-trigger.cjs.entry.js +4 -6
  189. package/dist/cjs/bcm-tabs-trigger.cjs.entry.js.map +1 -1
  190. package/dist/cjs/bcm-tabs-trigger.entry.cjs.js.map +1 -0
  191. package/dist/cjs/bcm-tabs.cjs.entry.js +4 -6
  192. package/dist/cjs/bcm-tabs.cjs.entry.js.map +1 -1
  193. package/dist/cjs/bcm-tabs.entry.cjs.js.map +1 -0
  194. package/dist/cjs/bcm-text.cjs.entry.js +124 -0
  195. package/dist/cjs/bcm-text.cjs.entry.js.map +1 -0
  196. package/dist/cjs/bcm-text.entry.cjs.js.map +1 -0
  197. package/dist/cjs/bcm-textarea.cjs.entry.js +8 -10
  198. package/dist/cjs/bcm-textarea.cjs.entry.js.map +1 -1
  199. package/dist/cjs/bcm-textarea.entry.cjs.js.map +1 -0
  200. package/dist/cjs/bcm-tooltip.cjs.entry.js +8 -10
  201. package/dist/cjs/bcm-tooltip.cjs.entry.js.map +1 -1
  202. package/dist/cjs/bcm-tooltip.entry.cjs.js.map +1 -0
  203. package/dist/cjs/bromcom-ui.cjs.js +8 -8
  204. package/dist/cjs/bromcom-ui.cjs.js.map +1 -1
  205. package/dist/cjs/{floating-ui.dom.esm-3ec8404c.js → floating-ui.dom-DyKmFgkP.js} +32 -512
  206. package/dist/cjs/floating-ui.dom-DyKmFgkP.js.map +1 -0
  207. package/dist/cjs/{generate-id-f6982042.js → generate-id-CG_BkTJu.js} +4 -13
  208. package/dist/cjs/generate-id-CG_BkTJu.js.map +1 -0
  209. package/dist/cjs/index-Bp6Dd2i1.js +97 -0
  210. package/dist/cjs/index-Bp6Dd2i1.js.map +1 -0
  211. package/dist/cjs/{index-6710808e.js → index-DFpZVb11.js} +461 -279
  212. package/dist/cjs/index-DFpZVb11.js.map +1 -0
  213. package/dist/cjs/index.cjs.js +1 -0
  214. package/dist/cjs/index.cjs.js.map +1 -1
  215. package/dist/cjs/loader.cjs.js +4 -6
  216. package/dist/cjs/loader.cjs.js.map +1 -1
  217. package/dist/cjs/tv-ngpIbGlG.js +2624 -0
  218. package/dist/cjs/tv-ngpIbGlG.js.map +1 -0
  219. package/dist/cjs/{validation-messages-18389279.js → validation-messages-BjfpSEWk.js} +2 -1
  220. package/dist/cjs/validation-messages-BjfpSEWk.js.map +1 -0
  221. package/dist/collection/collection-manifest.json +1 -1
  222. package/dist/collection/components/accordion/accordion.component.js +4 -4
  223. package/dist/collection/components/accordion-group/accordion-group.component.js +1 -1
  224. package/dist/collection/components/alert/alert.component.js +5 -5
  225. package/dist/collection/components/avatar/avatar.component.js +9 -9
  226. package/dist/collection/components/badge/badge.component.js +9 -9
  227. package/dist/collection/components/basic-badge/basic-badge.component.js +5 -5
  228. package/dist/collection/components/basic-badge/basic-badge.css +1 -1
  229. package/dist/collection/components/button/button.component.js +20 -20
  230. package/dist/collection/components/button/button.css +1 -1
  231. package/dist/collection/components/button-group/button-group.component.js +7 -7
  232. package/dist/collection/components/checkbox/checkbox.component.js +9 -9
  233. package/dist/collection/components/chip/chip.component.js +6 -6
  234. package/dist/collection/components/divider/divider.component.js +3 -3
  235. package/dist/collection/components/drawer/drawer.component.js +6 -6
  236. package/dist/collection/components/dropdown/dropdown.component.js +1 -1
  237. package/dist/collection/components/dropdown-item/dropdown-item.component.js +6 -5
  238. package/dist/collection/components/dropdown-item/dropdown-item.component.js.map +1 -1
  239. package/dist/collection/components/input/input.component.js +32 -31
  240. package/dist/collection/components/input/input.component.js.map +1 -1
  241. package/dist/collection/components/input/input.css +1 -1
  242. package/dist/collection/components/linked/linked.component.js +13 -12
  243. package/dist/collection/components/linked/linked.component.js.map +1 -1
  244. package/dist/collection/components/linked/linked.css +1 -1
  245. package/dist/collection/components/pop-confirm/pop-confirm.component.js +10 -10
  246. package/dist/collection/components/popover/popover.component.js +7 -7
  247. package/dist/collection/components/radio/radio.component.js +9 -9
  248. package/dist/collection/components/radio-group/radio-group.component.js +9 -9
  249. package/dist/collection/components/segmented-picker/segmented-picker-option.component.js +5 -5
  250. package/dist/collection/components/segmented-picker/segmented-picker.component.js +4 -4
  251. package/dist/collection/components/shortcut/shortcut.js +2 -2
  252. package/dist/collection/components/switch/switch.component.js +11 -11
  253. package/dist/collection/components/tabs/tabs-content.component.js +1 -1
  254. package/dist/collection/components/tabs/tabs-trigger.component.js +4 -4
  255. package/dist/collection/components/tabs/tabs.component.js +2 -2
  256. package/dist/collection/components/text/text.component.js +4 -4
  257. package/dist/collection/components/textarea/textarea.component.js +25 -24
  258. package/dist/collection/components/textarea/textarea.component.js.map +1 -1
  259. package/dist/collection/components/textarea/textarea.css +1 -1
  260. package/dist/collection/components/tooltip/tooltip.component.js +5 -5
  261. package/dist/components/bcm-accordion-group.js +4 -4
  262. package/dist/components/bcm-accordion-group.js.map +1 -1
  263. package/dist/components/bcm-accordion.js +5 -5
  264. package/dist/components/bcm-accordion.js.map +1 -1
  265. package/dist/components/bcm-alert.js +5 -5
  266. package/dist/components/bcm-alert.js.map +1 -1
  267. package/dist/components/bcm-avatar.js +6 -6
  268. package/dist/components/bcm-avatar.js.map +1 -1
  269. package/dist/components/bcm-badge.js +2 -1
  270. package/dist/components/bcm-basic-badge.js +6 -6
  271. package/dist/components/bcm-basic-badge.js.map +1 -1
  272. package/dist/components/bcm-button-group.js +5 -5
  273. package/dist/components/bcm-button-group.js.map +1 -1
  274. package/dist/components/bcm-button.js +2 -1
  275. package/dist/components/bcm-checkbox.js +6 -6
  276. package/dist/components/bcm-checkbox.js.map +1 -1
  277. package/dist/components/bcm-chip.js +5 -5
  278. package/dist/components/bcm-chip.js.map +1 -1
  279. package/dist/components/bcm-divider.js +5 -5
  280. package/dist/components/bcm-divider.js.map +1 -1
  281. package/dist/components/bcm-drawer.js +5 -5
  282. package/dist/components/bcm-drawer.js.map +1 -1
  283. package/dist/components/bcm-dropdown-item.js +6 -6
  284. package/dist/components/bcm-dropdown-item.js.map +1 -1
  285. package/dist/components/bcm-dropdown.js +7 -7
  286. package/dist/components/bcm-dropdown.js.map +1 -1
  287. package/dist/components/bcm-input.js +14 -14
  288. package/dist/components/bcm-input.js.map +1 -1
  289. package/dist/components/bcm-linked.js +2 -1
  290. package/dist/components/bcm-pop-confirm.js +7 -7
  291. package/dist/components/bcm-pop-confirm.js.map +1 -1
  292. package/dist/components/bcm-popover.js +6 -6
  293. package/dist/components/bcm-popover.js.map +1 -1
  294. package/dist/components/bcm-radio-group.js +7 -7
  295. package/dist/components/bcm-radio-group.js.map +1 -1
  296. package/dist/components/bcm-radio.js +5 -5
  297. package/dist/components/bcm-radio.js.map +1 -1
  298. package/dist/components/bcm-segmented-picker-option.js +5 -5
  299. package/dist/components/bcm-segmented-picker-option.js.map +1 -1
  300. package/dist/components/bcm-segmented-picker.js +5 -5
  301. package/dist/components/bcm-segmented-picker.js.map +1 -1
  302. package/dist/components/bcm-shortcut.js +5 -5
  303. package/dist/components/bcm-shortcut.js.map +1 -1
  304. package/dist/components/bcm-switch.js +6 -6
  305. package/dist/components/bcm-switch.js.map +1 -1
  306. package/dist/components/bcm-tabs-content.js +4 -4
  307. package/dist/components/bcm-tabs-content.js.map +1 -1
  308. package/dist/components/bcm-tabs-list.js +5 -5
  309. package/dist/components/bcm-tabs-list.js.map +1 -1
  310. package/dist/components/bcm-tabs-trigger.js +5 -5
  311. package/dist/components/bcm-tabs-trigger.js.map +1 -1
  312. package/dist/components/bcm-tabs.js +5 -5
  313. package/dist/components/bcm-tabs.js.map +1 -1
  314. package/dist/components/bcm-text.js +5 -5
  315. package/dist/components/bcm-text.js.map +1 -1
  316. package/dist/components/bcm-textarea.js +9 -9
  317. package/dist/components/bcm-textarea.js.map +1 -1
  318. package/dist/components/bcm-tooltip.js +6 -6
  319. package/dist/components/bcm-tooltip.js.map +1 -1
  320. package/dist/components/index.js +1706 -2
  321. package/dist/components/index.js.map +1 -1
  322. package/dist/components/{p-bf273460.js → p-A70Ppz6C.js} +6 -6
  323. package/dist/components/p-A70Ppz6C.js.map +1 -0
  324. package/dist/components/{p-39872cdf.js → p-BHwftRkk.js} +8 -8
  325. package/dist/components/p-BHwftRkk.js.map +1 -0
  326. package/dist/components/{p-c491a7c9.js → p-BdGAZ8M0.js} +7 -7
  327. package/dist/components/p-BdGAZ8M0.js.map +1 -0
  328. package/dist/components/p-BfTCfPZ1.js +95 -0
  329. package/dist/components/p-BfTCfPZ1.js.map +1 -0
  330. package/dist/components/p-CEcVC0yX.js +2622 -0
  331. package/dist/components/p-CEcVC0yX.js.map +1 -0
  332. package/dist/{esm/validation-messages-af4512f0.js → components/p-CUvT12BL.js} +2 -1
  333. package/dist/components/p-CUvT12BL.js.map +1 -0
  334. package/dist/components/{p-50133556.js → p-CzcTU1ty.js} +32 -512
  335. package/dist/components/p-CzcTU1ty.js.map +1 -0
  336. package/dist/components/{p-ba2410ef.js → p-IBjzkjef.js} +4 -13
  337. package/dist/components/p-IBjzkjef.js.map +1 -0
  338. package/dist/esm/bcm-accordion-group.entry.js +3 -3
  339. package/dist/esm/bcm-accordion-group.entry.js.map +1 -1
  340. package/dist/esm/bcm-accordion.entry.js +4 -4
  341. package/dist/esm/bcm-accordion.entry.js.map +1 -1
  342. package/dist/esm/bcm-alert.entry.js +4 -4
  343. package/dist/esm/bcm-alert.entry.js.map +1 -1
  344. package/dist/esm/bcm-avatar.entry.js +4 -4
  345. package/dist/esm/bcm-avatar.entry.js.map +1 -1
  346. package/dist/esm/bcm-badge.entry.js +4 -4
  347. package/dist/esm/bcm-badge.entry.js.map +1 -1
  348. package/dist/esm/bcm-basic-badge.entry.js +5 -5
  349. package/dist/esm/bcm-basic-badge.entry.js.map +1 -1
  350. package/dist/esm/bcm-button-group.entry.js +4 -4
  351. package/dist/esm/bcm-button-group.entry.js.map +1 -1
  352. package/dist/esm/bcm-button.entry.js +314 -0
  353. package/dist/esm/bcm-button.entry.js.map +1 -0
  354. package/dist/esm/bcm-checkbox.entry.js +5 -5
  355. package/dist/esm/bcm-checkbox.entry.js.map +1 -1
  356. package/dist/esm/bcm-chip.entry.js +4 -4
  357. package/dist/esm/bcm-chip.entry.js.map +1 -1
  358. package/dist/esm/bcm-divider.entry.js +4 -4
  359. package/dist/esm/bcm-divider.entry.js.map +1 -1
  360. package/dist/esm/bcm-drawer.entry.js +204 -0
  361. package/dist/esm/bcm-drawer.entry.js.map +1 -0
  362. package/dist/esm/bcm-dropdown-item.entry.js +59 -0
  363. package/dist/esm/bcm-dropdown-item.entry.js.map +1 -0
  364. package/dist/esm/bcm-dropdown.entry.js +52 -0
  365. package/dist/esm/bcm-dropdown.entry.js.map +1 -0
  366. package/dist/esm/bcm-input.entry.js +313 -0
  367. package/dist/esm/bcm-input.entry.js.map +1 -0
  368. package/dist/esm/bcm-linked.entry.js +341 -0
  369. package/dist/esm/bcm-linked.entry.js.map +1 -0
  370. package/dist/esm/bcm-pop-confirm.entry.js +5 -5
  371. package/dist/esm/bcm-pop-confirm.entry.js.map +1 -1
  372. package/dist/esm/bcm-popover.entry.js +5 -5
  373. package/dist/esm/bcm-popover.entry.js.map +1 -1
  374. package/dist/esm/bcm-radio-group.entry.js +6 -6
  375. package/dist/esm/bcm-radio-group.entry.js.map +1 -1
  376. package/dist/esm/bcm-radio.entry.js +4 -4
  377. package/dist/esm/bcm-radio.entry.js.map +1 -1
  378. package/dist/esm/bcm-segmented-picker-option.entry.js +4 -4
  379. package/dist/esm/bcm-segmented-picker-option.entry.js.map +1 -1
  380. package/dist/esm/bcm-segmented-picker.entry.js +4 -4
  381. package/dist/esm/bcm-segmented-picker.entry.js.map +1 -1
  382. package/dist/esm/bcm-shortcut.entry.js +48 -0
  383. package/dist/esm/bcm-shortcut.entry.js.map +1 -0
  384. package/dist/esm/bcm-switch.entry.js +5 -5
  385. package/dist/esm/bcm-switch.entry.js.map +1 -1
  386. package/dist/esm/bcm-tabs-content.entry.js +3 -3
  387. package/dist/esm/bcm-tabs-content.entry.js.map +1 -1
  388. package/dist/esm/bcm-tabs-list.entry.js +4 -4
  389. package/dist/esm/bcm-tabs-list.entry.js.map +1 -1
  390. package/dist/esm/bcm-tabs-trigger.entry.js +4 -4
  391. package/dist/esm/bcm-tabs-trigger.entry.js.map +1 -1
  392. package/dist/esm/bcm-tabs.entry.js +4 -4
  393. package/dist/esm/bcm-tabs.entry.js.map +1 -1
  394. package/dist/esm/bcm-text.entry.js +122 -0
  395. package/dist/esm/bcm-text.entry.js.map +1 -0
  396. package/dist/esm/bcm-textarea.entry.js +8 -8
  397. package/dist/esm/bcm-textarea.entry.js.map +1 -1
  398. package/dist/esm/bcm-tooltip.entry.js +5 -5
  399. package/dist/esm/bcm-tooltip.entry.js.map +1 -1
  400. package/dist/esm/bromcom-ui.js +6 -5
  401. package/dist/esm/bromcom-ui.js.map +1 -1
  402. package/dist/esm/{floating-ui.dom.esm-b7749b71.js → floating-ui.dom-DxMLMJ3r.js} +33 -513
  403. package/dist/esm/floating-ui.dom-DxMLMJ3r.js.map +1 -0
  404. package/dist/esm/{generate-id-3b2fcb93.js → generate-id-IBjzkjef.js} +4 -13
  405. package/dist/esm/generate-id-IBjzkjef.js.map +1 -0
  406. package/dist/esm/index-BfTCfPZ1.js +95 -0
  407. package/dist/esm/index-BfTCfPZ1.js.map +1 -0
  408. package/dist/esm/{index-18b75a47.js → index-CrZxEeDA.js} +461 -260
  409. package/dist/esm/index-CrZxEeDA.js.map +1 -0
  410. package/dist/esm/index.js +1 -0
  411. package/dist/esm/index.js.map +1 -1
  412. package/dist/esm/loader.js +4 -4
  413. package/dist/esm/loader.js.map +1 -1
  414. package/dist/esm/tv-CEcVC0yX.js +2622 -0
  415. package/dist/esm/tv-CEcVC0yX.js.map +1 -0
  416. package/dist/{components/p-13a245f6.js → esm/validation-messages-CUvT12BL.js} +2 -1
  417. package/dist/esm/validation-messages-CUvT12BL.js.map +1 -0
  418. package/dist/types/components.d.ts +280 -0
  419. package/dist/types/stencil-public-runtime.d.ts +35 -6
  420. package/package.json +1 -1
  421. package/dist/bromcom-ui/p-06d42346.entry.js.map +0 -1
  422. package/dist/bromcom-ui/p-0c8a9725.entry.js +0 -2
  423. package/dist/bromcom-ui/p-0c8a9725.entry.js.map +0 -1
  424. package/dist/bromcom-ui/p-11227d96.entry.js.map +0 -1
  425. package/dist/bromcom-ui/p-12360e4c.js +0 -7
  426. package/dist/bromcom-ui/p-12360e4c.js.map +0 -1
  427. package/dist/bromcom-ui/p-13a245f6.js.map +0 -1
  428. package/dist/bromcom-ui/p-1b4ccb21.entry.js +0 -2
  429. package/dist/bromcom-ui/p-1b4ccb21.entry.js.map +0 -1
  430. package/dist/bromcom-ui/p-1e726978.entry.js +0 -2
  431. package/dist/bromcom-ui/p-1e726978.entry.js.map +0 -1
  432. package/dist/bromcom-ui/p-2c58fcb7.js +0 -2
  433. package/dist/bromcom-ui/p-2c58fcb7.js.map +0 -1
  434. package/dist/bromcom-ui/p-2e469cb9.entry.js +0 -2
  435. package/dist/bromcom-ui/p-2e469cb9.entry.js.map +0 -1
  436. package/dist/bromcom-ui/p-350c97e1.entry.js +0 -2
  437. package/dist/bromcom-ui/p-350c97e1.entry.js.map +0 -1
  438. package/dist/bromcom-ui/p-4027f5c4.entry.js +0 -2
  439. package/dist/bromcom-ui/p-4027f5c4.entry.js.map +0 -1
  440. package/dist/bromcom-ui/p-45f4c75b.entry.js +0 -2
  441. package/dist/bromcom-ui/p-45f4c75b.entry.js.map +0 -1
  442. package/dist/bromcom-ui/p-4652635d.entry.js +0 -2
  443. package/dist/bromcom-ui/p-4652635d.entry.js.map +0 -1
  444. package/dist/bromcom-ui/p-50133556.js +0 -2
  445. package/dist/bromcom-ui/p-50133556.js.map +0 -1
  446. package/dist/bromcom-ui/p-67ceb7f3.entry.js +0 -2
  447. package/dist/bromcom-ui/p-67ceb7f3.entry.js.map +0 -1
  448. package/dist/bromcom-ui/p-77122bc2.entry.js +0 -2
  449. package/dist/bromcom-ui/p-77122bc2.entry.js.map +0 -1
  450. package/dist/bromcom-ui/p-78d8f63c.entry.js +0 -2
  451. package/dist/bromcom-ui/p-78d8f63c.entry.js.map +0 -1
  452. package/dist/bromcom-ui/p-87a0f20b.entry.js +0 -2
  453. package/dist/bromcom-ui/p-87a0f20b.entry.js.map +0 -1
  454. package/dist/bromcom-ui/p-881ccea1.entry.js +0 -2
  455. package/dist/bromcom-ui/p-881ccea1.entry.js.map +0 -1
  456. package/dist/bromcom-ui/p-8ae92b62.entry.js +0 -2
  457. package/dist/bromcom-ui/p-8ae92b62.entry.js.map +0 -1
  458. package/dist/bromcom-ui/p-9a6cec21.entry.js +0 -2
  459. package/dist/bromcom-ui/p-9a6cec21.entry.js.map +0 -1
  460. package/dist/bromcom-ui/p-9d0aeb92.js +0 -3
  461. package/dist/bromcom-ui/p-9d0aeb92.js.map +0 -1
  462. package/dist/bromcom-ui/p-a03922f8.entry.js.map +0 -1
  463. package/dist/bromcom-ui/p-a20f6baf.entry.js +0 -2
  464. package/dist/bromcom-ui/p-a20f6baf.entry.js.map +0 -1
  465. package/dist/bromcom-ui/p-b1f9ad67.entry.js.map +0 -1
  466. package/dist/bromcom-ui/p-ba2410ef.js.map +0 -1
  467. package/dist/bromcom-ui/p-bf213fe6.entry.js +0 -2
  468. package/dist/bromcom-ui/p-bf213fe6.entry.js.map +0 -1
  469. package/dist/bromcom-ui/p-c89f7997.entry.js +0 -2
  470. package/dist/bromcom-ui/p-c89f7997.entry.js.map +0 -1
  471. package/dist/bromcom-ui/p-ddf64315.js +0 -2
  472. package/dist/bromcom-ui/p-ddf64315.js.map +0 -1
  473. package/dist/bromcom-ui/p-f56b22de.entry.js +0 -2
  474. package/dist/bromcom-ui/p-f56b22de.entry.js.map +0 -1
  475. package/dist/bromcom-ui/p-fdcb9dbd.entry.js +0 -2
  476. package/dist/bromcom-ui/p-fdcb9dbd.entry.js.map +0 -1
  477. package/dist/cjs/app-globals-e0eef2e9.js +0 -47
  478. package/dist/cjs/app-globals-e0eef2e9.js.map +0 -1
  479. package/dist/cjs/bcm-button_8.cjs.entry.js +0 -1423
  480. package/dist/cjs/bcm-button_8.cjs.entry.js.map +0 -1
  481. package/dist/cjs/floating-ui.dom.esm-3ec8404c.js.map +0 -1
  482. package/dist/cjs/generate-id-f6982042.js.map +0 -1
  483. package/dist/cjs/index-5a88e57b.js +0 -84
  484. package/dist/cjs/index-5a88e57b.js.map +0 -1
  485. package/dist/cjs/index-6710808e.js.map +0 -1
  486. package/dist/cjs/tv-d2e35446.js +0 -2597
  487. package/dist/cjs/tv-d2e35446.js.map +0 -1
  488. package/dist/cjs/validation-messages-18389279.js.map +0 -1
  489. package/dist/components/p-12360e4c.js +0 -82
  490. package/dist/components/p-12360e4c.js.map +0 -1
  491. package/dist/components/p-13a245f6.js.map +0 -1
  492. package/dist/components/p-2c58fcb7.js +0 -2595
  493. package/dist/components/p-2c58fcb7.js.map +0 -1
  494. package/dist/components/p-30135590.js +0 -1567
  495. package/dist/components/p-30135590.js.map +0 -1
  496. package/dist/components/p-39872cdf.js.map +0 -1
  497. package/dist/components/p-50133556.js.map +0 -1
  498. package/dist/components/p-ba2410ef.js.map +0 -1
  499. package/dist/components/p-bf273460.js.map +0 -1
  500. package/dist/components/p-c491a7c9.js.map +0 -1
  501. package/dist/esm/app-globals-f7994f55.js +0 -45
  502. package/dist/esm/app-globals-f7994f55.js.map +0 -1
  503. package/dist/esm/bcm-button_8.entry.js +0 -1412
  504. package/dist/esm/bcm-button_8.entry.js.map +0 -1
  505. package/dist/esm/floating-ui.dom.esm-b7749b71.js.map +0 -1
  506. package/dist/esm/generate-id-3b2fcb93.js.map +0 -1
  507. package/dist/esm/index-097075ad.js +0 -82
  508. package/dist/esm/index-097075ad.js.map +0 -1
  509. package/dist/esm/index-18b75a47.js.map +0 -1
  510. package/dist/esm/tv-6dcd2224.js +0 -2595
  511. package/dist/esm/tv-6dcd2224.js.map +0 -1
  512. package/dist/esm/validation-messages-af4512f0.js.map +0 -1
  513. package/loader/package.json +0 -11
@@ -1,1423 +0,0 @@
1
- 'use strict';
2
-
3
- Object.defineProperty(exports, '__esModule', { value: true });
4
-
5
- const index = require('./index-6710808e.js');
6
- const tv = require('./tv-d2e35446.js');
7
- const index$1 = require('./index-5a88e57b.js');
8
- const generateId = require('./generate-id-f6982042.js');
9
- const validationMessages = require('./validation-messages-18389279.js');
10
- const floatingUi_dom_esm = require('./floating-ui.dom.esm-3ec8404c.js');
11
-
12
- const variantOptions = {
13
- save: {
14
- text: 'Save',
15
- status: 'success',
16
- icon: 'far fa-save',
17
- iconPosition: 'prefix',
18
- kind: 'primary',
19
- },
20
- ok: {
21
- text: 'Ok',
22
- status: 'success',
23
- icon: 'far fa-check',
24
- iconPosition: 'prefix',
25
- },
26
- new: {
27
- text: 'New',
28
- status: 'success',
29
- icon: 'far fa-plus',
30
- iconPosition: 'prefix',
31
- },
32
- add: {
33
- text: 'Add',
34
- status: 'success',
35
- icon: 'far fa-plus',
36
- iconPosition: 'prefix',
37
- },
38
- create: {
39
- text: 'Create',
40
- status: 'success',
41
- icon: 'far fa-plus',
42
- iconPosition: 'prefix',
43
- },
44
- prev: {
45
- text: 'Prev',
46
- status: 'default',
47
- icon: 'far fa-arrow-left',
48
- iconPosition: 'prefix',
49
- },
50
- next: {
51
- text: 'Next',
52
- status: 'default',
53
- icon: 'far fa-arrow-right',
54
- iconPosition: 'suffix',
55
- },
56
- apply: {
57
- text: 'Apply',
58
- status: 'default',
59
- icon: 'far fa-check-circle',
60
- iconPosition: 'prefix',
61
- },
62
- submit: {
63
- text: 'Submit',
64
- status: 'default',
65
- icon: 'far fa-save',
66
- iconPosition: 'prefix',
67
- },
68
- send: {
69
- text: 'Send',
70
- status: 'success',
71
- icon: 'far fa-paper-plane',
72
- iconPosition: 'prefix',
73
- },
74
- delete: {
75
- text: 'Delete',
76
- status: 'error',
77
- icon: 'far fa-trash',
78
- iconPosition: 'prefix',
79
- },
80
- cancel: {
81
- text: 'Cancel',
82
- status: 'error',
83
- icon: 'far fa-times',
84
- iconPosition: 'prefix',
85
- },
86
- decline: {
87
- text: 'Decline',
88
- status: 'error',
89
- icon: 'far fa-ban',
90
- iconPosition: 'prefix',
91
- },
92
- close: {
93
- text: 'Close',
94
- status: 'error',
95
- icon: 'far fa-times-circle',
96
- iconPosition: 'prefix',
97
- },
98
- archive: {
99
- text: 'Archive',
100
- status: 'error',
101
- icon: 'far fa-folder-open',
102
- iconPosition: 'prefix',
103
- },
104
- remove: {
105
- text: 'Remove',
106
- status: 'error',
107
- icon: 'far fa-minus-circle',
108
- iconPosition: 'prefix',
109
- },
110
- edit: {
111
- text: 'Edit',
112
- status: 'default',
113
- icon: 'far fa-edit',
114
- iconPosition: 'prefix',
115
- },
116
- export: {
117
- text: 'Export',
118
- status: 'default',
119
- icon: 'far fa-sign-out',
120
- iconPosition: 'prefix',
121
- },
122
- import: {
123
- text: 'Import',
124
- status: 'default',
125
- icon: 'far fa-sign-in',
126
- iconPosition: 'prefix',
127
- },
128
- filter: {
129
- text: 'Filter',
130
- status: 'default',
131
- icon: 'far fa-filter',
132
- iconPosition: 'prefix',
133
- },
134
- update: {
135
- text: 'Update',
136
- status: 'default',
137
- icon: 'far fa-sync',
138
- iconPosition: 'prefix',
139
- },
140
- reset: {
141
- text: 'Reset',
142
- status: 'default',
143
- icon: 'far fa-sync',
144
- iconPosition: 'prefix',
145
- },
146
- download: {
147
- text: 'Download',
148
- status: 'default',
149
- icon: 'far fa-download',
150
- iconPosition: 'prefix',
151
- },
152
- };
153
-
154
- const buttonCss = ".relative{position:relative}:host{display:inline-block;position:relative}:host([full-width]){width:100%}:host([position=first]) .bcm-button{border-bottom-right-radius:0;border-top-right-radius:0}:host([position=middle]) .bcm-button{border-radius:0}:host([position=last]) .bcm-button{border-bottom-left-radius:0;border-top-left-radius:0}:host([position=first].orientation-vertical) .bcm-button{border-bottom-left-radius:0;border-bottom-right-radius:0;border-top-left-radius:var(--bcm-ui-border-radius,4px);border-top-right-radius:var(--bcm-ui-border-radius,4px)}:host([position=middle].orientation-vertical) .bcm-button{border-radius:0}:host([position=last].orientation-vertical) .bcm-button{border-bottom-left-radius:var(--bcm-ui-border-radius,4px);border-bottom-right-radius:var(--bcm-ui-border-radius,4px);border-top-left-radius:0;border-top-right-radius:0}.static{position:static}.inline-flex{display:inline-flex}.min-h-10{min-height:2.5rem}.min-h-6{min-height:1.5rem}.min-h-8{min-height:2rem}.w-full{width:100%}.cursor-not-allowed{cursor:not-allowed}.cursor-pointer{cursor:pointer}.appearance-none{appearance:none}.items-center{align-items:center}.justify-center{justify-content:center}.rounded{border-radius:var(--bcm-ui-border-radius-default,6px)}.border{border-width:1px}.border-solid{border-style:solid}.border-\\[--bcm-final-border-color\\]{border-color:var(--bcm-final-border-color)}.border-color-disabled{border-color:var(--bcm-ui-color-border-disabled)}.bg-\\[--bcm-final-bg-color\\]{background-color:var(--bcm-final-bg-color)}.bg-\\[--bcm-ui-color-background-disabled-default\\]{background-color:var(--bcm-ui-color-background-disabled-default)}.px-2{padding-left:.5rem;padding-right:.5rem}.px-3{padding-left:.75rem;padding-right:.75rem}.py-0\\.5{padding-bottom:.125rem;padding-top:.125rem}.py-1{padding-bottom:.25rem;padding-top:.25rem}.py-px{padding-bottom:1px;padding-top:1px}.text-size-4{font-size:var(--bcm-ui-font-size-4,14px);line-height:var(--bcm-ui-line-height-4,20px)}.text-size-5{font-size:var(--bcm-ui-font-size-5,16px);line-height:var(--bcm-ui-line-height-5,24px)}.text-size-6{font-size:var(--bcm-ui-font-size-6,18px);line-height:var(--bcm-ui-line-height-6,24px)}.leading-none{line-height:1}.text-\\[--bcm-final-text-color\\]{color:var(--bcm-final-text-color)}.text-color-disabled{color:var(--bcm-ui-color-text-disabled)}.shadow{--tw-shadow:var(--bcm-ui-box-shadow-default);--tw-shadow-colored:var(--bcm-ui-box-shadow-default);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.outline{outline-style:solid}.outline-0{outline-width:0}.hover\\:bg-\\[--bcm-final-hover-bg-color\\]:hover{background-color:var(--bcm-final-hover-bg-color)}.focus-visible\\:ring:focus-visible{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.active\\:bg-\\[--bcm-final-active-bg-color\\]:active{background-color:var(--bcm-final-active-bg-color)}.flex{display:flex}.max-h-64{max-height:16rem}.min-w-10{min-width:2.5rem}.max-w-64{max-width:16rem}.flex-col{flex-direction:column}.overflow-y-auto{overflow-y:auto}.rounded-lg{border-radius:var(--bcm-ui-border-radius-lg,8px)}.bg-color-basic-panel{background-color:var(--bcm-ui-color-background-basic-panel)}.py-1\\.5{padding-bottom:.375rem;padding-top:.375rem}.shadow,.shadow-3{box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.shadow-3{--tw-shadow:var(--bcm-ui-box-shadow-3);--tw-shadow-colored:var(--bcm-ui-box-shadow-3)}.container{width:100%}@media (min-width:640px){.container{max-width:640px}}@media (min-width:768px){.container{max-width:768px}}@media (min-width:1024px){.container{max-width:1024px}}@media (min-width:1280px){.container{max-width:1280px}}@media (min-width:1536px){.container{max-width:1536px}}.bcm-ui-element{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-family:Inter,sans-serif}.absolute{position:absolute}.z-\\[9999\\]{z-index:9999}.mx-auto{margin-left:auto;margin-right:auto}.hidden{display:none}.size-6{height:1.5rem;width:1.5rem}.h-2{height:.5rem}.w-4{width:1rem}.max-w-80{max-width:20rem}.max-w-96{max-width:24rem}.flex-1{flex:1 1 0%}.flex-row{flex-direction:row}.justify-end{justify-content:flex-end}.justify-between{justify-content:space-between}.gap-2{gap:.5rem}.gap-2\\.5{gap:.625rem}.gap-3{gap:.75rem}.gap-4{gap:1rem}.gap-6{gap:1.5rem}.gap-8{gap:2rem}.text-pretty{text-wrap:pretty}.rounded-\\[--popover-radius\\]{border-radius:var(--popover-radius)}.rounded-full{border-radius:var(--bcm-ui-border-radius-full,9999px)}.bg-\\[--popover-bg\\]{background-color:var(--popover-bg)}.p-4{padding:1rem}.p-6{padding:1.5rem}.p-8{padding:2rem}.font-sans{font-family:Inter,sans-serif}.text-size-7{font-size:var(--bcm-ui-font-size-7,20px);line-height:var(--bcm-ui-line-height-7,28px)}.text-size-inherit{font-size:inherit;line-height:inherit}.font-semibold{font-weight:600}.\\!text-color-header{color:var(--bcm-ui-color-text-header)!important}.text-\\[--text-color\\]{color:var(--text-color)}.shadow,.shadow-2{box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.shadow-2{--tw-shadow:var(--bcm-ui-box-shadow-2);--tw-shadow-colored:var(--bcm-ui-box-shadow-2)}.hover\\:bg-gray-100:hover{background-color:oklch(.967 .003 264.542)}";
155
- const BcmButtonStyle0 = buttonCss;
156
-
157
- const BcmButton = class {
158
- constructor(hostRef) {
159
- index.registerInstance(this, hostRef);
160
- this.bcmClick = index.createEvent(this, "bcmClick", 1);
161
- this.bcmFocus = index.createEvent(this, "bcmFocus", 1);
162
- this.bcmBlur = index.createEvent(this, "bcmBlur", 1);
163
- /** Defines the main visual style of the button */
164
- this.kind = 'primary';
165
- /** Controls the button size */
166
- this.size = 'medium';
167
- /** Defines the button's status/state color */
168
- this.status = 'default';
169
- /** Icon placement (prefix/suffix) */
170
- this.iconPosition = 'prefix';
171
- /** Icon-only button mode */
172
- this.iconOnly = false;
173
- /** Full width button */
174
- this.fullWidth = false;
175
- /** HTML button type */
176
- this.type = 'button';
177
- /** Loading state */
178
- this.loading = false;
179
- /** Disabled state */
180
- this.disabled = false;
181
- /** Active state */
182
- this.active = false;
183
- this.handleClick = (event) => {
184
- if (!this.disabled && !this.loading) {
185
- this.bcmClick.emit(event);
186
- }
187
- };
188
- this.handleFocus = (event) => {
189
- this.bcmFocus.emit(event);
190
- };
191
- this.handleBlur = (event) => {
192
- this.bcmBlur.emit(event);
193
- };
194
- this.buttonClass = tv.tv({
195
- base: 'bcm-button appearance-none inline-flex items-center justify-center border border-solid rounded outline-0',
196
- variants: {
197
- size: {
198
- small: 'text-size-4 py-px px-2 min-h-6',
199
- medium: 'text-size-5 py-0.5 px-3 min-h-8',
200
- large: 'text-size-6 py-1 px-3 min-h-10',
201
- },
202
- kind: {
203
- primary: 'kind-primary',
204
- ghost: 'kind-ghost',
205
- text: 'kind-text',
206
- outline: 'kind-outline',
207
- },
208
- fullWidth: {
209
- true: 'full-width w-full',
210
- },
211
- disabled: {
212
- true: 'disabled cursor-not-allowed bg-[--bcm-ui-color-background-disabled-default] text-color-disabled border-color-disabled',
213
- false: [
214
- 'cursor-pointer',
215
- 'bg-[--bcm-final-bg-color] text-[--bcm-final-text-color] border-[--bcm-final-border-color]',
216
- 'hover:bg-[--bcm-final-hover-bg-color]',
217
- 'active:bg-[--bcm-final-active-bg-color]',
218
- 'focus-visible:ring',
219
- ],
220
- },
221
- loading: {
222
- true: '',
223
- },
224
- position: {
225
- first: 'position-first',
226
- middle: 'position-middle',
227
- last: 'position-last',
228
- },
229
- },
230
- defaultVariants: {
231
- size: 'medium',
232
- kind: 'primary',
233
- fullWidth: false,
234
- disabled: false,
235
- loading: false,
236
- },
237
- }, {
238
- twMerge: false,
239
- });
240
- }
241
- get buttonText() {
242
- return this.text || (this.variant ? variantOptions[this.variant].text : '');
243
- }
244
- get buttonIcon() {
245
- if (this.variant && variantOptions[this.variant].icon) {
246
- return {
247
- icon: variantOptions[this.variant].icon,
248
- position: variantOptions[this.variant].iconPosition || 'prefix',
249
- };
250
- }
251
- return {
252
- icon: this.icon,
253
- position: this.iconPosition,
254
- };
255
- }
256
- get buttonStatus() {
257
- return this.variant ? variantOptions[this.variant].status : this.status;
258
- }
259
- get buttonStyles() {
260
- const status = this.buttonStatus === 'default' ? 'primary' : this.buttonStatus;
261
- // These are the internal default styles based on component props (kind, status)
262
- const kindStyleMap = {
263
- primary: {
264
- '--bcm-button-bg': `var(--bcm-ui-color-background-${status}-default)`,
265
- '--bcm-button-bg-hover': `var(--bcm-ui-color-background-${status}-hover)`,
266
- '--bcm-button-bg-active': `var(--bcm-ui-color-background-${status}-active)`,
267
- '--bcm-button-border': 'transparent',
268
- '--bcm-button-text': 'var(--bcm-ui-color-text-base)',
269
- },
270
- outline: {
271
- '--bcm-button-bg': 'var(--bcm-ui-color-background-default-default)',
272
- '--bcm-button-bg-hover': 'var(--bcm-ui-color-background-default-hover)',
273
- '--bcm-button-bg-active': 'var(--bcm-ui-color-background-default-active)',
274
- '--bcm-button-border': `var(--bcm-ui-color-border-${this.buttonStatus})`,
275
- '--bcm-button-text': `var(--bcm-ui-color-text-${this.buttonStatus})`,
276
- },
277
- ghost: {
278
- '--bcm-button-bg': 'transparent',
279
- '--bcm-button-bg-hover': 'var(--bcm-ui-color-background-default-hover)',
280
- '--bcm-button-bg-active': 'var(--bcm-ui-color-background-default-active)',
281
- '--bcm-button-border': 'transparent',
282
- '--bcm-button-text': `var(--bcm-ui-color-text-${this.buttonStatus})`,
283
- },
284
- text: {
285
- '--bcm-button-bg': 'transparent',
286
- '--bcm-button-bg-hover': 'var(--bcm-ui-color-background-default-hover)',
287
- '--bcm-button-bg-active': 'var(--bcm-ui-color-background-default-active)',
288
- '--bcm-button-border': 'transparent',
289
- '--bcm-button-text': `var(--bcm-ui-color-text-${status})`,
290
- },
291
- };
292
- const internalDefaultStyles = kindStyleMap[this.kind];
293
- // These are the "final" CSS custom properties used by the component's styling.
294
- // They use the "--bcm-button-custom-..." token if provided by the user,
295
- // otherwise, they fall back to the internal "--bcm-button-..." style defined above.
296
- const finalEffectiveStyles = {
297
- '--bcm-final-text-color': `var(--bcm-button-custom-text-color, ${internalDefaultStyles['--bcm-button-text']})`,
298
- '--bcm-final-border-color': `var(--bcm-button-custom-border-color, ${internalDefaultStyles['--bcm-button-border']})`,
299
- '--bcm-final-bg-color': `var(--bcm-button-custom-bg-color, ${internalDefaultStyles['--bcm-button-bg']})`,
300
- '--bcm-final-hover-bg-color': `var(--bcm-button-custom-hover-bg-color, ${internalDefaultStyles['--bcm-button-bg-hover']})`,
301
- '--bcm-final-active-bg-color': `var(--bcm-button-custom-active-bg-color, ${internalDefaultStyles['--bcm-button-bg-active']})`,
302
- };
303
- // return kindStyleMap[this.kind];
304
- return Object.assign(Object.assign({}, internalDefaultStyles), finalEffectiveStyles);
305
- }
306
- render() {
307
- const { icon, position } = this.buttonIcon;
308
- return (index.h(index.Host, { key: '33e438220fdb261ff87289f8dcbaa7e0601d73c1' }, index.h("button", { key: '4fb4d22a44bac12b3780f9570c734f60fdaba788', type: this.type, disabled: this.disabled || this.loading, "aria-label": this.label, "aria-expanded": this.expanded, "aria-controls": this.controls, "aria-disabled": this.disabled, onClick: this.handleClick, onFocus: this.handleFocus, onBlur: this.handleBlur, style: this.buttonStyles, class: this.buttonClass({
309
- size: this.size,
310
- kind: this.kind,
311
- fullWidth: this.fullWidth,
312
- disabled: this.disabled,
313
- loading: this.loading,
314
- position: this.position,
315
- }) }, this.loading && index.h("slot", { key: 'fa8dcbcba338f94700842fd0482d0261c9a1d3e3', name: "loading" }), index.h("span", { key: '345162b4ad0034d5081dee0438ceeefe4930ecfb' }, index.h("slot", { key: 'c65c9aa07fd2f159426192fc6239c394ee6ec58d', name: "prefix" }, position === 'prefix' && icon && index.h("i", { key: 'c94e32a5d308ba3ad98ac10239fc9a155f47e2ac', class: ' leading-none ' + icon }))), index.h("slot", { key: '171402bb9251492c7e5b0cf572fb0e2ae62a6add' }, this.buttonText), index.h("span", { key: 'ae3c5a885029b3d4c54e5ca21ac22adffa26b013' }, index.h("slot", { key: 'f80819d122624bb279d19822278c8e651dec27c7', name: "suffix" }, position === 'suffix' && icon && index.h("i", { key: '69631e99a8b7f47dd1d00984f582ec6e7b5433e8', class: ' leading-none ' + icon }))))));
316
- }
317
- };
318
- BcmButton.style = BcmButtonStyle0;
319
-
320
- const drawerCss = ".contents{display:contents}:host{display:contents}.bcm-ui-element{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-family:Inter,sans-serif}.visible{visibility:visible}.invisible{visibility:hidden}.static{position:static}.fixed{position:fixed}.inset-0{inset:0}.bottom-0{bottom:0}.left-0{left:0}.right-0{right:0}.top-0{top:0}.z-40{z-index:40}.z-50{z-index:50}.m-0{margin:0}.flex{display:flex}.hidden{display:none}.h-6{height:1.5rem}.w-6{width:1.5rem}.flex-grow{flex-grow:1}.-translate-x-full{--tw-translate-x:-100%}.-translate-x-full,.-translate-y-full{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-translate-y-full{--tw-translate-y:-100%}.translate-x-0{--tw-translate-x:0px}.translate-x-0,.translate-x-full{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-x-full{--tw-translate-x:100%}.translate-y-0{--tw-translate-y:0px}.translate-y-0,.translate-y-full{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-y-full{--tw-translate-y:100%}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.cursor-pointer{cursor:pointer}.flex-col{flex-direction:column}.items-center{align-items:center}.justify-between{justify-content:space-between}.overflow-y-auto{overflow-y:auto}.border-none{border-style:none}.bg-color-base{background-color:var(--bcm-ui-color-background-base-default)}.bg-color-default{background-color:var(--bcm-ui-color-background-default-default)}.bg-color-transparent{background-color:var(--bcm-ui-color-background-transparent-default)}.bg-transparent{background-color:transparent}.p-0{padding:0}.p-4{padding:1rem}.px-4{padding-left:1rem;padding-right:1rem}.py-3{padding-bottom:.75rem;padding-top:.75rem}.text-size-5{font-size:var(--bcm-ui-font-size-5,16px);line-height:var(--bcm-ui-line-height-5,24px)}.text-size-6{font-size:var(--bcm-ui-font-size-6,18px);line-height:var(--bcm-ui-line-height-6,24px)}.font-medium{font-weight:500}.font-semibold{font-weight:600}.text-color-default{color:var(--bcm-ui-color-text-default)}.opacity-0{opacity:0}.opacity-100{opacity:1}.shadow{--tw-shadow:var(--bcm-ui-box-shadow-default);--tw-shadow-colored:var(--bcm-ui-box-shadow-default);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.transition-opacity{transition-duration:.15s;transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1)}.transition-transform{transition-duration:.15s;transition-property:transform;transition-timing-function:cubic-bezier(.4,0,.2,1)}.duration-300{transition-duration:.3s}.ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)}.hover\\:bg-color-default-hover:hover{background-color:var(--bcm-ui-color-background-default-hover)}.active\\:bg-color-default-active:active{background-color:var(--bcm-ui-color-background-default-active)}";
321
- const BcmDrawerStyle0 = drawerCss;
322
-
323
- const BcmDrawer = class {
324
- constructor(hostRef) {
325
- index.registerInstance(this, hostRef);
326
- this.bcmOpen = index.createEvent(this, "bcmOpen", 7);
327
- this.bcmClose = index.createEvent(this, "bcmClose", 7);
328
- this.bcmBeforeOpen = index.createEvent(this, "bcmBeforeOpen", 7);
329
- this.bcmBeforeClose = index.createEvent(this, "bcmBeforeClose", 7);
330
- this.open = false;
331
- this.size = 'medium';
332
- this.position = 'right';
333
- this.fullWidth = false;
334
- this.noHeader = false;
335
- this.drawerClass = tv.tv({
336
- slots: {
337
- backdrop: 'fixed inset-0 bg-color-transparent z-40 transition-opacity duration-300',
338
- wrapper: 'bcm-ui-element fixed bg-color-base text-color-default z-50 transform transition-transform duration-300 ease-in-out flex flex-col',
339
- header: 'flex justify-between items-center bg-color-default text-color-default',
340
- title: 'font-semibold m-0 text-size-6',
341
- closeButton: 'text-size-5 font-medium text-color-default bg-transparent border-none p-0 h-6 w-6 hover:bg-color-default-hover cursor-pointer active:bg-color-default-active',
342
- content: 'overflow-y-auto flex-grow',
343
- },
344
- variants: {
345
- open: {
346
- true: {
347
- backdrop: 'opacity-100 visible',
348
- },
349
- false: {
350
- backdrop: 'opacity-0 invisible',
351
- },
352
- },
353
- position: {
354
- left: {
355
- wrapper: 'top-0 left-0 bottom-0',
356
- },
357
- right: {
358
- wrapper: 'top-0 right-0 bottom-0',
359
- },
360
- top: {
361
- wrapper: 'top-0 left-0 right-0',
362
- },
363
- bottom: {
364
- wrapper: 'bottom-0 left-0 right-0',
365
- },
366
- },
367
- size: {
368
- small: {
369
- header: 'py-3 px-4',
370
- content: 'p-4',
371
- },
372
- medium: {
373
- header: 'py-3 px-4',
374
- content: 'p-4',
375
- },
376
- large: {
377
- header: 'py-3 px-4',
378
- content: 'p-4',
379
- },
380
- },
381
- noHeader: {
382
- true: {
383
- header: 'hidden',
384
- },
385
- },
386
- },
387
- compoundVariants: [
388
- {
389
- open: true,
390
- position: ['left', 'right'],
391
- class: {
392
- wrapper: 'translate-x-0',
393
- },
394
- },
395
- {
396
- open: true,
397
- position: ['top', 'bottom'],
398
- class: {
399
- wrapper: 'translate-y-0',
400
- },
401
- },
402
- {
403
- open: false,
404
- position: 'left',
405
- class: {
406
- wrapper: '-translate-x-full',
407
- },
408
- },
409
- {
410
- open: false,
411
- position: 'right',
412
- class: {
413
- wrapper: 'translate-x-full',
414
- },
415
- },
416
- {
417
- open: false,
418
- position: 'top',
419
- class: {
420
- wrapper: '-translate-y-full',
421
- },
422
- },
423
- {
424
- open: false,
425
- position: 'bottom',
426
- class: {
427
- wrapper: 'translate-y-full',
428
- },
429
- },
430
- ],
431
- });
432
- }
433
- handleOpenChange(isOpen) {
434
- if (isOpen) {
435
- document.body.style.overflow = 'hidden';
436
- this.bcmOpen.emit();
437
- }
438
- else {
439
- document.body.style.overflow = '';
440
- this.bcmClose.emit();
441
- }
442
- }
443
- handleKeyDown(event) {
444
- if (event.key === 'Escape' && this.open) {
445
- this.hide();
446
- }
447
- }
448
- async show() {
449
- const event = this.bcmBeforeOpen.emit();
450
- if (!event.defaultPrevented) {
451
- this.open = true;
452
- }
453
- }
454
- async hide() {
455
- const event = this.bcmBeforeClose.emit();
456
- if (!event.defaultPrevented) {
457
- this.open = false;
458
- }
459
- }
460
- disconnectedCallback() {
461
- document.body.style.overflow = '';
462
- }
463
- getWrapperStyle() {
464
- const style = {};
465
- if (this.fullWidth) {
466
- if (this.position === 'left' || this.position === 'right') {
467
- style.width = '100vw';
468
- }
469
- else {
470
- style.height = '100vh';
471
- }
472
- return style;
473
- }
474
- if (this.position === 'left' || this.position === 'right') {
475
- switch (this.size) {
476
- case 'small':
477
- style.width = '320px';
478
- break;
479
- case 'medium':
480
- style.width = '480px';
481
- break;
482
- case 'large':
483
- style.width = '1064px';
484
- break;
485
- }
486
- }
487
- else {
488
- switch (this.size) {
489
- case 'small':
490
- style.height = '40vh';
491
- break;
492
- case 'medium':
493
- style.height = '60vh';
494
- break;
495
- case 'large':
496
- style.height = '90vh';
497
- break;
498
- }
499
- }
500
- return style;
501
- }
502
- render() {
503
- const { backdrop, wrapper, header, title, closeButton, content } = this.drawerClass({
504
- open: this.open,
505
- position: this.position,
506
- size: this.size,
507
- noHeader: this.noHeader,
508
- });
509
- return (index.h("div", { key: '44379905f1499a16d625ac4d1ff5e89fc6367d46', part: "base" }, index.h("div", { key: 'bc53e5322a61cd4af0691905c509d4c5fb765939', part: "backdrop", class: backdrop(), onClick: () => this.hide() }), index.h("div", { key: 'd5a666671d24b2f3b55b7462b5218a3e11358982', part: "wrapper", class: wrapper(), style: this.getWrapperStyle(), role: "dialog", "aria-modal": "true", "aria-hidden": !this.open ? 'true' : 'false', "aria-label": this.headerText }, index.h("div", { key: '5124de9d7fa8f3aa7267f0998f4c4f98f3ebbc4a', part: "header", class: header() }, index.h("h2", { key: '8aa4b971efa9fe0fafa1cfb94f0b6b96f21f2f15', part: "title", class: title() }, index.h("slot", { key: '949ae8f65d13e9e1c973c16a9f90205ac7e7042f', name: "header" }, this.headerText)), index.h("button", { key: 'a0c42761ee859e87dee5c267ea7245dde4fb8756', part: "close-button", class: closeButton(), onClick: () => this.hide(), "aria-label": "Close" }, index.h("bcm-icon", { key: '2df273d63da93eda2280759a909906fe4ae0c493', name: "fa-solid fa-xmark" }))), index.h("div", { key: 'b2532537d10f9aa0dcfa2fca8ac806577363e05b', part: "content", class: content() }, index.h("slot", { key: 'bfec5cff35a7bf7bf1d9801ba89559501e6f301f' })), index.h("div", { key: '4d44fdba62c74fd5c893c5296f998754228cf961', part: "footer" }, index.h("slot", { key: 'fd0a58127fd2f0ba0955cef629e55700142a8f32', name: "footer" })))));
510
- }
511
- get host() { return index.getElement(this); }
512
- static get watchers() { return {
513
- "open": ["handleOpenChange"]
514
- }; }
515
- };
516
- BcmDrawer.style = BcmDrawerStyle0;
517
-
518
- const dropdownCss = ".visible{visibility:visible}.hidden{display:none}.static{position:static}.flex{display:flex}.max-h-64{max-height:16rem}.w-full{width:100%}.min-w-10{min-width:2.5rem}.max-w-64{max-width:16rem}.flex-col{flex-direction:column}.items-center{align-items:center}.overflow-y-auto{overflow-y:auto}.rounded-lg{border-radius:var(--bcm-ui-border-radius-lg,8px)}.bg-color-basic-panel{background-color:var(--bcm-ui-color-background-basic-panel)}.py-1\\.5{padding-bottom:.375rem;padding-top:.375rem}.shadow{--tw-shadow:var(--bcm-ui-box-shadow-default);--tw-shadow-colored:var(--bcm-ui-box-shadow-default)}.shadow,.shadow-3{box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.shadow-3{--tw-shadow:var(--bcm-ui-box-shadow-3);--tw-shadow-colored:var(--bcm-ui-box-shadow-3)}.outline{outline-style:solid}";
519
- const BcmDropdownStyle0 = dropdownCss;
520
-
521
- const Dropdown = class {
522
- constructor(hostRef) {
523
- index.registerInstance(this, hostRef);
524
- this.bcmDropdownChange = index.createEvent(this, "bcmDropdownChange", 1);
525
- this.isReady = false;
526
- this.dropdownItems = [];
527
- this.dropdownClass = tv.tv({
528
- base: 'dropdown flex flex-col items-center min-w-10 shadow-3 max-w-64 max-h-64 w-full bg-color-basic-panel rounded-lg py-1.5 overflow-y-auto',
529
- });
530
- this.handleSlotChange = () => {
531
- this.dropdownItems = Array.from(this.host.querySelectorAll('bcm-dropdown-item'));
532
- if (this.dropdownItems.length === 0) {
533
- console.warn('No dropdown items found in dropdown component');
534
- }
535
- };
536
- }
537
- componentDidLoad() {
538
- const button = this.host.shadowRoot.querySelector('bcm-button');
539
- if (button) {
540
- this.buttonRef = button;
541
- this.isReady = true;
542
- }
543
- }
544
- handleDropdownItemChange(event) {
545
- var _a;
546
- const { element, selected } = event === null || event === void 0 ? void 0 : event.detail;
547
- (_a = this.dropdownItems) === null || _a === void 0 ? void 0 : _a.forEach(item => {
548
- if (item != element) {
549
- item.selected = false;
550
- }
551
- });
552
- this.bcmDropdownChange.emit({
553
- element: element,
554
- selected,
555
- });
556
- }
557
- render() {
558
- return (index.h(index.Host, { key: '6aaff12c84d38c32df5bc8dccb83421afb315eef' }, index.h("bcm-button", { key: '5612cef7303a6b839531e125c895a4e7b8d32282', kind: "outline" }, index.h("span", { key: '951418845cb1ec71fe6dc5bbbc33c49934447640', part: "text" }, this.text)), this.isReady && (index.h("bcm-linked", { key: 'd594359d6a9b7c673307c6a92e6d69cc47be3e1a', targetElement: this.buttonRef }, index.h("div", { key: '9badba5b1e99af6a5d58b02e849cb0923e49dfd8', part: "dropdown-container", class: this.dropdownClass() }, index.h("slot", { key: 'c8191f215600170475d514bb6b4056047e6442d2', onSlotchange: this.handleSlotChange }))))));
559
- }
560
- get host() { return index.getElement(this); }
561
- };
562
- Dropdown.style = BcmDropdownStyle0;
563
-
564
- const dropdownItemCss = ".flex{display:flex}:host{display:inline-block;width:100%}::slotted([slot=left-content]){align-items:center;display:flex;flex-direction:row;gap:8px}::slotted([slot=right-content]){align-items:center;display:flex;flex-direction:row;gap:8px}.bcm-ui-element{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-family:Inter,sans-serif}.static{position:static}.w-full{width:100%}.cursor-pointer{cursor:pointer}.flex-row{flex-direction:row}.gap-2{gap:.5rem}.text-pretty{text-wrap:pretty}.bg-\\[var\\(--bcm-ui-color-background-base-active\\)\\]{background-color:var(--bcm-ui-color-background-base-active)}.bg-\\[var\\(--bcm-ui-color-background-palette-red-default\\)\\]{background-color:var(--bcm-ui-color-background-palette-red-default)}.px-4{padding-left:1rem;padding-right:1rem}.py-2{padding-bottom:.5rem;padding-top:.5rem}.shadow{--tw-shadow:var(--bcm-ui-box-shadow-default);--tw-shadow-colored:var(--bcm-ui-box-shadow-default);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.hover\\:bg-\\[var\\(--bcm-ui-color-background-base-active\\)\\]:hover{background-color:var(--bcm-ui-color-background-base-active)}.hover\\:bg-\\[var\\(--bcm-ui-color-background-base-hover\\)\\]:hover{background-color:var(--bcm-ui-color-background-base-hover)}.hover\\:bg-\\[var\\(--bcm-ui-color-background-palette-red-default\\)\\]:hover{background-color:var(--bcm-ui-color-background-palette-red-default)}";
565
- const BcmDropdownItemStyle0 = dropdownItemCss;
566
-
567
- const DropdownItem = class {
568
- constructor(hostRef) {
569
- index.registerInstance(this, hostRef);
570
- this.bcmDropDownItemChange = index.createEvent(this, "bcmDropDownItemChange", 1);
571
- this.selected = false;
572
- this.error = false;
573
- this.disabled = false;
574
- this.dropdownItemClass = tv.tv({
575
- base: 'dropdown-item bcm-ui-element bcm-ui-content-display flex flex-row gap-2 py-2 px-4 cursor-pointer text-color',
576
- variants: {
577
- selected: {
578
- true: 'bg-[var(--bcm-ui-color-background-base-active)] hover:bg-[var(--bcm-ui-color-background-base-active)]',
579
- false: 'hover:bg-[var(--bcm-ui-color-background-base-hover)]',
580
- },
581
- error: {
582
- true: 'bg-[var(--bcm-ui-color-background-palette-red-default)] hover:bg-[var(--bcm-ui-color-background-palette-red-default)]',
583
- false: '',
584
- },
585
- disabled: {
586
- true: '', // should be discuss with ux team
587
- false: '',
588
- },
589
- },
590
- defaultVariants: {
591
- selected: false,
592
- error: false,
593
- disabled: false,
594
- },
595
- }, {
596
- twMerge: false,
597
- });
598
- }
599
- handleClick() {
600
- this.selected = true;
601
- this.bcmDropDownItemChange.emit({
602
- element: this.host,
603
- selected: this.selected,
604
- });
605
- }
606
- render() {
607
- var _a;
608
- return (index.h("div", { key: '69beaac4c9225bc7803b4002f1543c18e76e36cc', "aria-checked": this.selected, class: this.dropdownItemClass({
609
- selected: this.selected,
610
- error: this.error,
611
- }), onClick: () => this.handleClick() }, index.h("slot", { key: 'ca2712023285689a1774b5869d982e87d3add46a', name: "left-content" }, this.icon && index.h("bcm-icon", { key: 'bef7483a47c823ed746c39ae37acc3a2360f0c59', "icon-name": this.icon })), index.h("div", { key: 'a9bdddf97d4a4e07e601599a4adb11354227dd0f', class: "flex flex-row text-pretty w-full" }, index.h("slot", { key: '51c488350d2daabc32fc9693211a4e89d8cce16f' }, this.text)), index.h("slot", { key: '9bf3f8b4affa41ea72f181a073aea8cd56f8a2df', name: "right-content" }, (_a = this.rightIcons) === null || _a === void 0 ? void 0 : _a.map(icon => (index.h("bcm-icon", { "icon-name": icon }))))));
612
- }
613
- get host() { return index.getElement(this); }
614
- };
615
- DropdownItem.style = BcmDropdownItemStyle0;
616
-
617
- /**
618
- * Checks if a named slot has any content
619
- * @param element - The host element (component instance)
620
- * @param slotName - Name of the slot to check
621
- * @returns boolean indicating if the slot has any assigned nodes
622
- */
623
- const checkSlotContent = (element, slotName) => {
624
- var _a;
625
- const slot = (_a = element.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelector(`slot[name="${slotName}"]`);
626
- if (!slot)
627
- return false;
628
- const assignedNodes = slot.assignedNodes();
629
- return assignedNodes.length > 0;
630
- };
631
-
632
- const inputCss = ".visible{visibility:visible}.collapse{visibility:collapse}.relative{position:relative}.block{display:block}.table{display:table}.contents{display:contents}.hidden{display:none}.border-collapse{border-collapse:collapse}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.resize{resize:both}.border{border-width:1px}.underline{text-decoration-line:underline}.outline{outline-style:solid}/*! tailwindcss v3.4.17 | MIT License | https://tailwindcss.com*/*,:after,:before{border:0 solid oklch(.928 .006 264.531);box-sizing:border-box}:after,:before{--tw-content:\"\"}:host,html{-webkit-text-size-adjust:100%;font-feature-settings:normal;-webkit-tap-highlight-color:transparent;font-family:Inter,sans-serif;font-variation-settings:normal;line-height:1.5;-moz-tab-size:4;-o-tab-size:4;tab-size:4}body{line-height:inherit;margin:0}hr{border-top-width:1px;color:inherit;height:0}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,pre,samp{font-feature-settings:normal;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em;font-variation-settings:normal}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{border-collapse:collapse;border-color:inherit;text-indent:0}button,input,optgroup,select,textarea{font-feature-settings:inherit;color:inherit;font-family:inherit;font-size:100%;font-variation-settings:inherit;font-weight:inherit;letter-spacing:inherit;line-height:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dd,dl,fieldset,figure,h1,h2,h3,h4,h5,h6,hr,p,pre{margin:0}fieldset,legend{padding:0}menu,ol,ul{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{color:oklch(.707 .022 261.325);opacity:1}input::placeholder,textarea::placeholder{color:oklch(.707 .022 261.325);opacity:1}[role=button],button{cursor:pointer}:disabled{cursor:default}audio,canvas,embed,iframe,img,object,svg,video{display:block;vertical-align:middle}img,video{height:auto;max-width:100%}[hidden]:where(:not([hidden=until-found])){display:none}:host{display:inline-block}.bcm-ui-element{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-family:Inter,sans-serif}.static{position:static}.mt-1{margin-top:.25rem}.flex{display:flex}.h-10{height:2.5rem}.h-6{height:1.5rem}.h-8{height:2rem}.h-full{height:100%}.w-6{width:1.5rem}.w-full{width:100%}.flex-1{flex:1 1 0%}.cursor-not-allowed{cursor:not-allowed}.appearance-none{appearance:none}.items-center{align-items:center}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-2{gap:.5rem}.text-ellipsis{text-overflow:ellipsis}.rounded{border-radius:var(--bcm-ui-border-radius-default,6px)}.border-0{border-width:0}.border-solid{border-style:solid}.border-\\[--bcm-ui-color-border-default\\]{border-color:var(--bcm-ui-color-border-default)}.border-\\[--bcm-ui-color-border-error\\]{border-color:var(--bcm-ui-color-border-error)}.border-\\[--bcm-ui-color-border-info\\]{border-color:var(--bcm-ui-color-border-info)}.border-\\[--bcm-ui-color-border-success\\]{border-color:var(--bcm-ui-color-border-success)}.border-\\[--bcm-ui-color-border-warning\\]{border-color:var(--bcm-ui-color-border-warning)}.bg-\\[--bcm-ui-color-background-base-default\\]{background-color:var(--bcm-ui-color-background-base-default)}.bg-transparent{background-color:transparent}.px-1{padding-left:.25rem;padding-right:.25rem}.px-2{padding-left:.5rem;padding-right:.5rem}.font-sans{font-family:Inter,sans-serif}.text-size-3{font-size:var(--bcm-ui-font-size-3,12px);line-height:var(--bcm-ui-line-height-3,16px)}.text-size-4{font-size:var(--bcm-ui-font-size-4,14px);line-height:var(--bcm-ui-line-height-4,20px)}.text-size-5{font-size:var(--bcm-ui-font-size-5,16px);line-height:var(--bcm-ui-line-height-5,24px)}.text-size-6{font-size:var(--bcm-ui-font-size-6,18px);line-height:var(--bcm-ui-line-height-6,24px)}.font-medium{font-weight:500}.text-\\[--bcm-ui-color-text-caption\\]{color:var(--bcm-ui-color-text-caption)}.text-\\[--bcm-ui-color-text-default\\]{color:var(--bcm-ui-color-text-default)}.text-\\[--bcm-ui-color-text-disabled\\]{color:var(--bcm-ui-color-text-disabled)}.text-\\[--bcm-ui-color-text-error\\]{color:var(--bcm-ui-color-text-error)}.text-\\[--bcm-ui-color-text-info\\]{color:var(--bcm-ui-color-text-info)}.text-\\[--bcm-ui-color-text-success\\]{color:var(--bcm-ui-color-text-success)}.text-\\[--bcm-ui-color-text-warning\\]{color:var(--bcm-ui-color-text-warning)}.text-color-disabled{color:var(--bcm-ui-color-text-disabled)}.text-color-label{color:var(--bcm-ui-color-text-label)}.antialiased{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.shadow{--tw-shadow:var(--bcm-ui-box-shadow-default);--tw-shadow-colored:var(--bcm-ui-box-shadow-default);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.outline-0{outline-width:0}.blur{--tw-blur:blur(8px);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.transition-colors{transition-duration:.15s;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1)}.duration-200{transition-duration:.2s}.placeholder\\:font-normal::placeholder{font-weight:400}.placeholder\\:text-\\[--bcm-ui-color-text-placeholder\\]::placeholder{color:var(--bcm-ui-color-text-placeholder)}.hover\\:border-\\[--bcm-ui-color-border-error\\]:hover{border-color:var(--bcm-ui-color-border-error)}.hover\\:border-\\[--bcm-ui-color-border-info\\]:hover{border-color:var(--bcm-ui-color-border-info)}.hover\\:border-\\[--bcm-ui-color-border-primary\\]:hover{border-color:var(--bcm-ui-color-border-primary)}.hover\\:border-\\[--bcm-ui-color-border-success\\]:hover{border-color:var(--bcm-ui-color-border-success)}.hover\\:border-\\[--bcm-ui-color-border-warning\\]:hover{border-color:var(--bcm-ui-color-border-warning)}.has-\\[\\:focus\\]\\:border-\\[--bcm-ui-color-border-error\\]:has(:focus){border-color:var(--bcm-ui-color-border-error)}.has-\\[\\:focus\\]\\:border-\\[--bcm-ui-color-border-info\\]:has(:focus){border-color:var(--bcm-ui-color-border-info)}.has-\\[\\:focus\\]\\:border-\\[--bcm-ui-color-border-primary\\]:has(:focus){border-color:var(--bcm-ui-color-border-primary)}.has-\\[\\:focus\\]\\:border-\\[--bcm-ui-color-border-success\\]:has(:focus){border-color:var(--bcm-ui-color-border-success)}.has-\\[\\:focus\\]\\:border-\\[--bcm-ui-color-border-warning\\]:has(:focus){border-color:var(--bcm-ui-color-border-warning)}.\\[\\&\\:\\:-webkit-inner-spin-button\\]\\:appearance-none::-webkit-inner-spin-button{appearance:none}";
633
- const BcmInputStyle0 = inputCss;
634
-
635
- const BcmInput = class {
636
- constructor(hostRef) {
637
- index.registerInstance(this, hostRef);
638
- this.bcmInput = index.createEvent(this, "bcmInput", 1);
639
- this.bcmChange = index.createEvent(this, "bcmChange", 1);
640
- this.bcmFocus = index.createEvent(this, "bcmFocus", 1);
641
- this.bcmBlur = index.createEvent(this, "bcmBlur", 1);
642
- this.bcmKeyDown = index.createEvent(this, "bcmKeyDown", 1);
643
- this.bcmKeyUp = index.createEvent(this, "bcmKeyUp", 1);
644
- this.isFocused = false;
645
- this.isValid = true;
646
- this.internalStatus = 'default';
647
- this.isPasswordVisible = false;
648
- /** Input value */
649
- this.value = '';
650
- /** Input id */
651
- this._id = generateId.generateId('input');
652
- /** Controls the input size */
653
- this.size = 'medium';
654
- /** Defines the input's status/state */
655
- this.status = 'default';
656
- /** Full width input */
657
- this.fullWidth = false;
658
- /** HTML input type */
659
- this.type = 'text';
660
- /** Whether the input is disabled */
661
- this.disabled = false;
662
- /** Whether the input is readonly */
663
- this.readonly = false;
664
- /** Whether the input is required */
665
- this.required = false;
666
- /** Whether to use native form validation
667
- * If false, component will handle validation internally
668
- */
669
- this.useNativeValidation = true;
670
- this.onInput = (event) => {
671
- const input = event.target;
672
- this.value = input.value;
673
- this.bcmInput.emit(event);
674
- this.validateInput();
675
- };
676
- this.onChange = (event) => {
677
- this.bcmChange.emit(event);
678
- };
679
- this.onFocus = (event) => {
680
- this.isFocused = true;
681
- this.bcmFocus.emit(event);
682
- };
683
- this.onBlur = (event) => {
684
- this.isFocused = false;
685
- this.bcmBlur.emit(event);
686
- this.validateInput();
687
- };
688
- this.onKeyDown = (event) => {
689
- this.bcmKeyDown.emit(event);
690
- };
691
- this.onKeyUp = (event) => {
692
- this.bcmKeyUp.emit(event);
693
- };
694
- this.styleClass = tv.tv({
695
- slots: {
696
- base: [
697
- 'bcm-input bcm-input__container',
698
- 'bg-[--bcm-ui-color-background-base-default]',
699
- 'text-[--bcm-ui-color-text-default]',
700
- 'border border-solid rounded',
701
- 'flex items-center justify-between',
702
- 'transition-colors duration-200',
703
- 'px-2',
704
- ],
705
- inputClass: [
706
- 'input',
707
- 'w-full flex-1',
708
- 'border-0 outline-0 bg-transparent',
709
- 'appearance-none text-ellipsis',
710
- 'text-[--bcm-ui-color-text-default] placeholder:text-[--bcm-ui-color-text-placeholder] placeholder:font-normal',
711
- 'font-sans antialiased font-medium',
712
- 'px-1',
713
- '[appearance:textfield][&::-webkit-outer-spin-button]:appearance-none [&::-webkit-inner-spin-button]:appearance-none',
714
- ],
715
- },
716
- variants: {
717
- size: {
718
- small: {
719
- base: '',
720
- inputClass: 'text-size-4 h-6',
721
- },
722
- medium: {
723
- base: '',
724
- inputClass: 'text-size-5 h-8',
725
- },
726
- large: {
727
- base: '',
728
- inputClass: 'text-size-6 h-10',
729
- },
730
- },
731
- status: {
732
- default: {
733
- base: ['border-[--bcm-ui-color-border-default]', 'hover:border-[--bcm-ui-color-border-primary]', 'has-[:focus]:border-[--bcm-ui-color-border-primary]'],
734
- },
735
- error: {
736
- base: ['border-[--bcm-ui-color-border-error]', 'hover:border-[--bcm-ui-color-border-error]', 'has-[:focus]:border-[--bcm-ui-color-border-error]'],
737
- },
738
- success: {
739
- base: ['border-[--bcm-ui-color-border-success]', 'hover:border-[--bcm-ui-color-border-success]', 'has-[:focus]:border-[--bcm-ui-color-border-success]'],
740
- },
741
- warning: {
742
- base: ['border-[--bcm-ui-color-border-warning]', 'hover:border-[--bcm-ui-color-border-warning]', 'has-[:focus]:border-[--bcm-ui-color-border-warning]'],
743
- },
744
- info: {
745
- base: ['border-[--bcm-ui-color-border-info]', 'hover:border-[--bcm-ui-color-border-info]', 'has-[:focus]:border-[--bcm-ui-color-border-info]'],
746
- },
747
- },
748
- fullWidth: {
749
- true: 'full-width w-full',
750
- },
751
- disabled: {
752
- true: 'disabled cursor-not-allowed',
753
- false: '',
754
- },
755
- focused: {
756
- true: {
757
- base: '',
758
- },
759
- },
760
- },
761
- defaultVariants: {
762
- size: 'medium',
763
- status: 'default',
764
- fullWidth: false,
765
- disabled: false,
766
- focused: false,
767
- },
768
- }, {
769
- twMerge: false,
770
- });
771
- this.togglePasswordVisibility = () => {
772
- this.isPasswordVisible = !this.isPasswordVisible;
773
- this.inputRef.type = this.isPasswordVisible ? 'text' : 'password';
774
- };
775
- this.PasswordToggleButton = () => {
776
- var _a;
777
- if (this.type !== 'password' || this.disabled || this.readonly || ((_a = this.value) === null || _a === void 0 ? void 0 : _a.length) === 0)
778
- return null;
779
- return (index.h("button", { class: "appearance-none flex items-center w-6 h-full justify-center", onClick: this.togglePasswordVisibility, type: "button" }, index.h("bcm-icon", { name: this.isPasswordVisible ? 'fa-eye-slash fa-regular' : 'fa-regular fa-eye', size: this.iconSize })));
780
- };
781
- this.iconSize = {
782
- small: 14,
783
- medium: 16,
784
- large: 18,
785
- }[this.size];
786
- }
787
- handleValueChange(newValue) {
788
- if (this.inputRef) {
789
- this.inputRef.value = newValue;
790
- }
791
- }
792
- watchStatus(newValue) {
793
- this.internalStatus = newValue;
794
- }
795
- watchErrorMessage(newValue) {
796
- this.internalErrorMessage = newValue;
797
- }
798
- async setFocus() {
799
- var _a;
800
- (_a = this.inputRef) === null || _a === void 0 ? void 0 : _a.focus();
801
- }
802
- async setBlur() {
803
- var _a;
804
- (_a = this.inputRef) === null || _a === void 0 ? void 0 : _a.blur();
805
- }
806
- async select() {
807
- var _a;
808
- (_a = this.inputRef) === null || _a === void 0 ? void 0 : _a.select();
809
- }
810
- /** Sets locale and messages for all inputs */
811
- async setLocale(locale, messages) {
812
- // Set messages and update validation immediately
813
- validationMessages.setValidationMessages(locale, messages);
814
- // Mevcut validasyon mesajını güncelle
815
- if (!this.isValid) {
816
- this.validateInput();
817
- }
818
- }
819
- componentWillLoad() {
820
- // I18n için default mesajları set et
821
- validationMessages.setValidationMessages('en', validationMessages.defaultValidationMessages);
822
- this.internalStatus = this.status;
823
- this.internalErrorMessage = this.errorMessage;
824
- }
825
- validateInput() {
826
- if (!this.inputRef)
827
- return;
828
- // Reset validation state
829
- this.isValid = true;
830
- this.validationMessage = '';
831
- const value = this.inputRef.value;
832
- // Required check
833
- if (this.required && !value) {
834
- this.isValid = false;
835
- this.validationMessage = validationMessages.getValidationMessage('required');
836
- this.internalStatus = 'error';
837
- this.internalErrorMessage = this.validationMessage;
838
- return;
839
- }
840
- // Minimum length check
841
- else if (this.minLength && value.length < this.minLength) {
842
- this.isValid = false;
843
- this.validationMessage = validationMessages.getValidationMessage('minlength', { min: this.minLength });
844
- }
845
- // Maximum length check
846
- else if (this.maxLength && value.length > this.maxLength) {
847
- this.isValid = false;
848
- this.validationMessage = validationMessages.getValidationMessage('maxlength', { max: this.maxLength });
849
- }
850
- // Pattern check
851
- else if (this.pattern && !new RegExp(this.pattern).test(value)) {
852
- this.isValid = false;
853
- this.validationMessage = validationMessages.getValidationMessage('pattern');
854
- }
855
- // Email check
856
- else if (this.type === 'email' && value && !/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(value)) {
857
- this.isValid = false;
858
- this.validationMessage = validationMessages.getValidationMessage('email');
859
- }
860
- // Number range check
861
- else if (this.type === 'number' && value) {
862
- const numValue = parseFloat(value);
863
- if (this.min !== undefined && numValue < this.min) {
864
- this.isValid = false;
865
- this.validationMessage = validationMessages.getValidationMessage('min', { min: this.min });
866
- }
867
- else if (this.max !== undefined && numValue > this.max) {
868
- this.isValid = false;
869
- this.validationMessage = validationMessages.getValidationMessage('max', { max: this.max });
870
- }
871
- }
872
- // Update component state
873
- this.internalStatus = this.isValid ? 'default' : 'error';
874
- this.internalErrorMessage = this.validationMessage;
875
- }
876
- hasSlotContent(slotName) {
877
- return checkSlotContent(this.el, slotName);
878
- }
879
- getDefaultIconForType() {
880
- return; // TODO: Will be implemented later
881
- // return defaultIcons[this.type as keyof typeof defaultIcons];
882
- }
883
- render() {
884
- const inputId = this._id + '-input' || this.name;
885
- const { base, inputClass } = this.styleClass({
886
- size: this.size,
887
- status: this.internalStatus,
888
- fullWidth: this.fullWidth,
889
- disabled: this.disabled,
890
- focused: this.isFocused,
891
- });
892
- return (index.h("div", { key: '2b470d6a8d48e3867345a1baaf038f464167bd8c', class: "bcm-ui-element" }, this.label && (index.h("label", { key: '65aa7f333c4cc7deb68dec12ac25fd953d03e5a9', class: index$1.classNames('input-label font-medium', {
893
- 'text-color-label': !this.disabled,
894
- 'text-color-disabled': this.disabled,
895
- }, {
896
- 'text-size-3': this.size === 'small',
897
- 'text-size-4': this.size === 'medium',
898
- 'text-size-5': this.size === 'large',
899
- }), htmlFor: inputId }, index.h("slot", { key: '5507aaf837e03b059b5ee37270406519e3460d84', name: "label" }, this.label), this.required && index.h("span", { key: 'ae92e270cf66574dd511403df99ce6f0172f7cf0' }, "*"))), index.h("div", { key: 'c562649dbb4085830f2229af20b450de50af18ab', class: base() }, (this.hasSlotContent('prefix') || this.prefixIcon || this.getDefaultIconForType()) && (index.h("div", { key: '8e53088d990111325fad2c78c99818761e729e80', class: "flex items-center gap-2 px-2" }, (this.prefixIcon || this.getDefaultIconForType()) && (index.h("bcm-icon", { key: '0dd292f047e02ce75051b8a271ffcedb35036631', class: "prefix-icon", "icon-name": this.prefixIcon || this.getDefaultIconForType(), size: this.iconSize })), index.h("slot", { key: '6dd835e17b66f29681232748a9cc8fd04ef8365e', name: "prefix" }))), index.h("input", { key: '965fa5a5d2188a8608ae997973c792708fd986bf', ref: el => (this.inputRef = el), id: inputId, class: inputClass(), type: this.type, name: this.name, disabled: this.disabled, readonly: this.readonly, required: this.required, placeholder: this.placeholder, autocomplete: this.autocomplete, minlength: this.minLength, maxlength: this.maxLength, min: this.min, max: this.max, step: this.step, pattern: this.pattern, "aria-invalid": this.status === 'error', "aria-required": this.required, "aria-labelledby": this.labelledby, "aria-describedby": this.describedby, value: this.value, onInput: this.onInput, onChange: this.onChange, onFocus: this.onFocus, onBlur: this.onBlur, onKeyDown: this.onKeyDown, onKeyUp: this.onKeyUp }), (this.hasSlotContent('suffix') || this.suffixIcon) && (index.h("div", { key: 'f0f78deaa350963ff31b07c2076a405bb4560fc5', class: "flex items-center gap-2 px-2" }, index.h("slot", { key: '6b6afb6088fa96b9c1daa97641e70bd9d1a8f044', name: "suffix" }), this.suffixIcon && index.h("bcm-icon", { key: '9f33e74c6629341ba5cc447af1b4ba9237997138', class: "suffix-icon", "icon-name": this.suffixIcon, size: this.iconSize }))), this.PasswordToggleButton()), (this.captionText || this.internalErrorMessage || this.validationMessage) && (index.h("div", { key: '416b4a6c586ebd6e722a68181ca4dc1125fc5e7d', class: index$1.classNames('input-caption-text font-regular mt-1', {
900
- 'text-[--bcm-ui-color-text-caption]': !this.disabled && this.internalStatus === 'default',
901
- 'text-[--bcm-ui-color-text-error]': !this.disabled && (this.internalStatus === 'error' || !this.isValid),
902
- 'text-[--bcm-ui-color-text-success]': !this.disabled && this.internalStatus === 'success',
903
- 'text-[--bcm-ui-color-text-warning]': !this.disabled && this.internalStatus === 'warning',
904
- 'text-[--bcm-ui-color-text-info]': !this.disabled && this.internalStatus === 'info',
905
- 'text-[--bcm-ui-color-text-disabled]': this.disabled,
906
- }, {
907
- 'text-size-3': this.size === 'small',
908
- 'text-size-4': this.size === 'medium',
909
- 'text-size-5': this.size === 'large',
910
- }) }, !this.isValid ? this.validationMessage : this.internalStatus === 'error' ? this.internalErrorMessage : this.captionText))));
911
- }
912
- get el() { return index.getElement(this); }
913
- static get watchers() { return {
914
- "value": ["handleValueChange"],
915
- "status": ["watchStatus"],
916
- "errorMessage": ["watchErrorMessage"]
917
- }; }
918
- };
919
- BcmInput.style = BcmInputStyle0;
920
-
921
- const linkedCss = ".absolute{position:absolute}.relative{position:relative}.block{display:block}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.border{border-width:1px}.transition{transition-duration:.15s;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1)}bcm-linked{display:block;position:relative}bcm-linked[append-to-body]{display:none}.floating-content{min-width:-moz-max-content;min-width:max-content;transition:opacity .2s ease,visibility .2s ease,transform .2s ease;will-change:transform,opacity}.floating-visible{animation:fadeInScale .2s ease-out}.floating-hidden{display:none!important;pointer-events:none}.floating-wrapper{position:relative;z-index:1}@keyframes fadeInScale{0%{opacity:0;transform:scale(.95) translateY(-5px)}to{opacity:1;transform:scale(1) translateY(0)}}.floating-arrow{z-index:-1}.floating-arrow,.floating-arrow:before{height:10px;position:absolute;width:10px}.floating-arrow:before{background:#fff;border:1px solid #e2e8f0;content:\"\";transform:rotate(45deg)}.arrow-top{bottom:-5px}.arrow-bottom,.arrow-top{left:50%;transform:translateX(-50%)}.arrow-bottom{top:-5px}.arrow-left{right:-5px}.arrow-left,.arrow-right{top:50%;transform:translateY(-50%)}.arrow-right{left:-5px}.arrow-top:before{border-bottom:0;border-right:0}.arrow-bottom:before{border-left:0;border-top:0}.arrow-left:before{border-right:0;border-top:0}.arrow-right:before{border-bottom:0;border-left:0}@media (max-width:768px){.floating-content{max-height:calc(100vh - 32px);max-width:calc(100vw - 32px)}}.visible{visibility:visible}.static{position:static}.fixed{position:fixed}.hidden{display:none}.resize{resize:both}.blur{--tw-blur:blur(8px);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.flex{display:flex}.max-h-64{max-height:16rem}.w-full{width:100%}.min-w-10{min-width:2.5rem}.max-w-64{max-width:16rem}.flex-col{flex-direction:column}.items-center{align-items:center}.overflow-y-auto{overflow-y:auto}.rounded-lg{border-radius:var(--bcm-ui-border-radius-lg,8px)}.bg-color-basic-panel{background-color:var(--bcm-ui-color-background-basic-panel)}.py-1\\.5{padding-bottom:.375rem;padding-top:.375rem}.shadow{--tw-shadow:var(--bcm-ui-box-shadow-default);--tw-shadow-colored:var(--bcm-ui-box-shadow-default)}.shadow,.shadow-3{box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.shadow-3{--tw-shadow:var(--bcm-ui-box-shadow-3);--tw-shadow-colored:var(--bcm-ui-box-shadow-3)}.outline{outline-style:solid}";
922
- const BcmLinkedStyle0 = linkedCss;
923
-
924
- const BcmLinked = class {
925
- constructor(hostRef) {
926
- index.registerInstance(this, hostRef);
927
- this.bcmShow = index.createEvent(this, "bcmShow", 7);
928
- this.bcmHide = index.createEvent(this, "bcmHide", 7);
929
- this.bcmShown = index.createEvent(this, "bcmShown", 7);
930
- this.bcmHidden = index.createEvent(this, "bcmHidden", 7);
931
- // Trigger configuration
932
- this.trigger = 'click';
933
- this.placement = 'bottom-start';
934
- // Timing configuration
935
- this.showDelay = 0;
936
- this.hideDelay = 0;
937
- // Positioning configuration
938
- this.offset = 8;
939
- this.arrow = false;
940
- this.disabled = false;
941
- // Style configuration
942
- this.zIndex = 1000;
943
- this.appendToBody = false;
944
- this.destroyOnHide = false;
945
- // State
946
- this.isVisible = false;
947
- this.isReady = false;
948
- this.handleMouseEnter = () => {
949
- this.clearTimeouts();
950
- if (this.showDelay > 0) {
951
- this.showTimeout = setTimeout(() => this.show(), this.showDelay);
952
- }
953
- else {
954
- this.show();
955
- }
956
- };
957
- this.handleMouseLeave = () => {
958
- this.clearTimeouts();
959
- if (this.hideDelay > 0) {
960
- this.hideTimeout = setTimeout(() => this.hide(), this.hideDelay);
961
- }
962
- else {
963
- this.hide();
964
- }
965
- };
966
- this.handleFloatingMouseEnter = () => {
967
- this.clearTimeouts();
968
- };
969
- this.handleFloatingMouseLeave = () => {
970
- this.clearTimeouts();
971
- if (this.hideDelay > 0) {
972
- this.hideTimeout = setTimeout(() => this.hide(), this.hideDelay);
973
- }
974
- else {
975
- this.hide();
976
- }
977
- };
978
- this.handleClick = (e) => {
979
- e.stopPropagation();
980
- this.toggle();
981
- };
982
- this.handleFocus = () => {
983
- this.show();
984
- };
985
- this.handleBlur = () => {
986
- this.hide();
987
- };
988
- }
989
- // Watch for changes
990
- setupTarget() {
991
- this.disconnectTarget();
992
- this.connectTarget();
993
- }
994
- onVisibilityChange(newValue) {
995
- if (newValue) {
996
- this.updatePosition();
997
- this.bcmShown.emit();
998
- }
999
- else {
1000
- this.bcmHidden.emit();
1001
- }
1002
- }
1003
- async componentDidLoad() {
1004
- // Wait for render
1005
- await new Promise(resolve => requestAnimationFrame(resolve));
1006
- this.floatingEl = this.host.querySelector('.floating-content');
1007
- if (this.floatingEl) {
1008
- this.isReady = true;
1009
- this.connectTarget();
1010
- this.setupFloatingObserver();
1011
- console.log('✅ bcm-linked initialized successfully');
1012
- }
1013
- else {
1014
- console.error('❌ Could not find .floating-content element');
1015
- }
1016
- }
1017
- disconnectedCallback() {
1018
- var _a, _b;
1019
- this.disconnectTarget();
1020
- this.clearTimeouts();
1021
- (_a = this.cleanup) === null || _a === void 0 ? void 0 : _a.call(this);
1022
- (_b = this.resizeObserver) === null || _b === void 0 ? void 0 : _b.disconnect();
1023
- // Restore element to original position if component is destroyed while in portal
1024
- if (this.appendToBody && this.floatingEl && this.originalParent) {
1025
- this.originalParent.appendChild(this.floatingEl);
1026
- }
1027
- }
1028
- connectTarget() {
1029
- if (!this.isReady)
1030
- return;
1031
- // Find target element
1032
- this.targetEl =
1033
- this.targetElement || (this.targetId ? document.getElementById(this.targetId) : null) || this.host.previousElementSibling || this.host.parentElement;
1034
- if (!this.targetEl) {
1035
- console.warn('bcm-linked: No target element found');
1036
- return;
1037
- }
1038
- // Setup event listeners based on trigger type
1039
- this.setupEventListeners();
1040
- // Setup auto-update for position
1041
- if (this.targetEl && this.floatingEl) {
1042
- this.cleanup = floatingUi_dom_esm.autoUpdate(this.targetEl, this.floatingEl, () => {
1043
- if (this.isVisible) {
1044
- this.updatePosition();
1045
- }
1046
- });
1047
- }
1048
- // Setup resize observer for responsive positioning
1049
- this.resizeObserver = new ResizeObserver(() => {
1050
- if (this.isVisible) {
1051
- this.updatePosition();
1052
- }
1053
- });
1054
- this.resizeObserver.observe(this.floatingEl);
1055
- }
1056
- disconnectTarget() {
1057
- var _a, _b;
1058
- if (this.targetEl) {
1059
- this.removeEventListeners();
1060
- }
1061
- (_a = this.cleanup) === null || _a === void 0 ? void 0 : _a.call(this);
1062
- (_b = this.resizeObserver) === null || _b === void 0 ? void 0 : _b.disconnect();
1063
- }
1064
- setupEventListeners() {
1065
- var _a, _b;
1066
- if (!this.targetEl || this.disabled)
1067
- return;
1068
- switch (this.trigger) {
1069
- case 'hover':
1070
- this.targetEl.addEventListener('mouseenter', this.handleMouseEnter);
1071
- this.targetEl.addEventListener('mouseleave', this.handleMouseLeave);
1072
- (_a = this.floatingEl) === null || _a === void 0 ? void 0 : _a.addEventListener('mouseenter', this.handleFloatingMouseEnter);
1073
- (_b = this.floatingEl) === null || _b === void 0 ? void 0 : _b.addEventListener('mouseleave', this.handleFloatingMouseLeave);
1074
- break;
1075
- case 'click':
1076
- this.targetEl.addEventListener('click', this.handleClick);
1077
- this.setupClickOutside();
1078
- break;
1079
- case 'focus':
1080
- this.targetEl.addEventListener('focus', this.handleFocus);
1081
- this.targetEl.addEventListener('blur', this.handleBlur);
1082
- break;
1083
- }
1084
- }
1085
- removeEventListeners() {
1086
- var _a, _b;
1087
- if (!this.targetEl)
1088
- return;
1089
- this.targetEl.removeEventListener('mouseenter', this.handleMouseEnter);
1090
- this.targetEl.removeEventListener('mouseleave', this.handleMouseLeave);
1091
- this.targetEl.removeEventListener('click', this.handleClick);
1092
- this.targetEl.removeEventListener('focus', this.handleFocus);
1093
- this.targetEl.removeEventListener('blur', this.handleBlur);
1094
- (_a = this.floatingEl) === null || _a === void 0 ? void 0 : _a.removeEventListener('mouseenter', this.handleFloatingMouseEnter);
1095
- (_b = this.floatingEl) === null || _b === void 0 ? void 0 : _b.removeEventListener('mouseleave', this.handleFloatingMouseLeave);
1096
- this.removeClickOutside();
1097
- }
1098
- setupClickOutside() {
1099
- this.clickOutsideHandler = (e) => {
1100
- var _a, _b;
1101
- const target = e.target;
1102
- if (!((_a = this.floatingEl) === null || _a === void 0 ? void 0 : _a.contains(target)) && !((_b = this.targetEl) === null || _b === void 0 ? void 0 : _b.contains(target)) && !this.host.contains(target)) {
1103
- this.hide();
1104
- }
1105
- };
1106
- document.addEventListener('click', this.clickOutsideHandler, true);
1107
- }
1108
- removeClickOutside() {
1109
- if (this.clickOutsideHandler) {
1110
- document.removeEventListener('click', this.clickOutsideHandler, true);
1111
- this.clickOutsideHandler = undefined;
1112
- }
1113
- }
1114
- clearTimeouts() {
1115
- if (this.showTimeout) {
1116
- clearTimeout(this.showTimeout);
1117
- this.showTimeout = undefined;
1118
- }
1119
- if (this.hideTimeout) {
1120
- clearTimeout(this.hideTimeout);
1121
- this.hideTimeout = undefined;
1122
- }
1123
- }
1124
- async updatePosition() {
1125
- if (!this.targetEl || !this.floatingEl || !this.isVisible)
1126
- return;
1127
- // Use autoPlacement only for bottom-start (dropdown default)
1128
- // For other placements, respect the manual placement with flip fallback
1129
- // const useAutoPlacement = this.placement === 'bottom-start';
1130
- const middleware = [
1131
- floatingUi_dom_esm.offset(this.offset),
1132
- // useAutoPlacement
1133
- // ? autoPlacement({
1134
- // allowedPlacements: ['bottom-start', 'bottom-end', 'bottom', 'top-start', 'top-end', 'top', 'right-start', 'right-end', 'right', 'left-start', 'left-end', 'left'],
1135
- // boundary: document.body,
1136
- // })
1137
- // :
1138
- floatingUi_dom_esm.flip({
1139
- fallbackPlacements: ['top', 'bottom', 'left', 'right', 'top-start', 'top-end', 'bottom-start', 'bottom-end', 'left-start', 'left-end', 'right-start', 'right-end'],
1140
- }),
1141
- floatingUi_dom_esm.shift({
1142
- padding: 8,
1143
- }),
1144
- ];
1145
- const { x, y, placement } = await floatingUi_dom_esm.computePosition(this.targetEl, this.floatingEl, {
1146
- placement: this.placement,
1147
- middleware,
1148
- strategy: 'fixed',
1149
- });
1150
- Object.assign(this.floatingEl.style, {
1151
- left: `${x}px`,
1152
- top: `${y}px`,
1153
- zIndex: this.zIndex.toString(),
1154
- });
1155
- // Update arrow if enabled
1156
- if (this.arrow) {
1157
- this.updateArrow(placement);
1158
- }
1159
- }
1160
- updateArrow(placement) {
1161
- var _a;
1162
- const arrow = (_a = this.floatingEl) === null || _a === void 0 ? void 0 : _a.querySelector('.floating-arrow');
1163
- if (!arrow)
1164
- return;
1165
- // Remove all arrow classes
1166
- arrow.className = 'floating-arrow';
1167
- // Add placement-specific class
1168
- const side = placement.split('-')[0];
1169
- arrow.classList.add(`arrow-${side}`);
1170
- }
1171
- async show() {
1172
- if (this.disabled || this.isVisible)
1173
- return;
1174
- this.bcmShow.emit();
1175
- // Portalling: Move the floating element to the body
1176
- if (this.appendToBody && this.floatingEl) {
1177
- this.originalParent = this.floatingEl.parentNode;
1178
- this.originalNextSibling = this.floatingEl.nextSibling;
1179
- document.body.appendChild(this.floatingEl);
1180
- }
1181
- this.isVisible = true;
1182
- // Use requestAnimationFrame to ensure the element is visible before positioning
1183
- await new Promise(resolve => requestAnimationFrame(resolve));
1184
- await this.updatePosition();
1185
- }
1186
- async hide() {
1187
- if (!this.isVisible)
1188
- return;
1189
- this.bcmHide.emit();
1190
- this.isVisible = false;
1191
- // Portalling: Restore the floating element to its original position
1192
- if (this.appendToBody && this.floatingEl && this.originalParent) {
1193
- if (this.originalNextSibling) {
1194
- this.originalParent.insertBefore(this.floatingEl, this.originalNextSibling);
1195
- }
1196
- else {
1197
- this.originalParent.appendChild(this.floatingEl);
1198
- }
1199
- this.originalParent = undefined;
1200
- this.originalNextSibling = undefined;
1201
- }
1202
- if (this.destroyOnHide && this.floatingEl && this.floatingEl.parentNode) {
1203
- this.floatingEl.parentNode.removeChild(this.floatingEl);
1204
- }
1205
- }
1206
- async toggle() {
1207
- if (this.isVisible) {
1208
- await this.hide();
1209
- }
1210
- else {
1211
- await this.show();
1212
- }
1213
- }
1214
- async updatePositioning() {
1215
- await this.updatePosition();
1216
- }
1217
- setupFloatingObserver() {
1218
- if (!this.floatingEl)
1219
- return;
1220
- // Observe floating element size changes for position updates
1221
- this.resizeObserver = new ResizeObserver(() => {
1222
- if (this.isVisible) {
1223
- this.updatePosition();
1224
- }
1225
- });
1226
- this.resizeObserver.observe(this.floatingEl);
1227
- }
1228
- render() {
1229
- const floatingClasses = {
1230
- 'floating-content': true,
1231
- 'floating-visible': this.isVisible,
1232
- 'floating-hidden': !this.isVisible,
1233
- 'floating-with-arrow': this.arrow,
1234
- 'floating-destroy-on-hide': this.destroyOnHide,
1235
- };
1236
- return (index.h(index.Host, { key: 'f5835cc1b6044476e66402d23a3becf18d3f2049' }, index.h("div", { key: '2c7f92bbe85bc938a767734ef4b27702247fb390', class: floatingClasses, style: {
1237
- position: 'fixed',
1238
- top: '0px',
1239
- left: '0px',
1240
- zIndex: this.zIndex.toString(),
1241
- display: this.isVisible ? 'block' : 'none',
1242
- visibility: this.isVisible ? 'visible' : 'hidden',
1243
- opacity: this.isVisible ? '1' : '0',
1244
- pointerEvents: this.isVisible ? 'auto' : 'none',
1245
- } }, this.arrow && index.h("div", { key: 'f6eedac02b29b3ca00a9a84eea940ac89089f30c', class: "floating-arrow" }), index.h("div", { key: '7cb19f085de1d77a41fd9897be90999e78a0a54d', class: "floating-wrapper" }, index.h("slot", { key: 'a4b4289642850e3c2f7f27771b3d28bc41c8248a' }))), index.h("div", { key: '61cd7af9a4a47c87c308e1e67f96efb987c97312', style: { display: 'none' } }, index.h("slot", { key: '7160df275f5c7c66733158f95266598d0d207a17', name: "fallback" }))));
1246
- }
1247
- get host() { return index.getElement(this); }
1248
- static get watchers() { return {
1249
- "targetId": ["setupTarget"],
1250
- "targetElement": ["setupTarget"],
1251
- "isVisible": ["onVisibilityChange"]
1252
- }; }
1253
- };
1254
- BcmLinked.style = BcmLinkedStyle0;
1255
-
1256
- const shortcutCss = ":host{display:inline-block}.bcm-ui-element{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-family:Inter,sans-serif}.static{position:static}.block{display:block}.h-fit{height:fit-content}.w-fit{width:fit-content}.rounded{border-radius:var(--bcm-ui-border-radius-default,6px)}.border{border-width:1px}.border-solid{border-style:solid}.border-color-default{border-color:var(--bcm-ui-color-border-default)}.bg-color-default{background-color:var(--bcm-ui-color-background-default-default)}.px-1{padding-left:.25rem;padding-right:.25rem}.text-center{text-align:center}.text-size-2{font-size:var(--bcm-ui-font-size-2,10px);line-height:var(--bcm-ui-line-height-2,12px)}.text-size-3{font-size:var(--bcm-ui-font-size-3,12px);line-height:var(--bcm-ui-line-height-3,16px)}.text-size-4{font-size:var(--bcm-ui-font-size-4,14px);line-height:var(--bcm-ui-line-height-4,20px)}.font-medium{font-weight:500}.capitalize{text-transform:capitalize}.text-color-default{color:var(--bcm-ui-color-text-default)}.shadow{--tw-shadow:var(--bcm-ui-box-shadow-default);--tw-shadow-colored:var(--bcm-ui-box-shadow-default);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}";
1257
- const BcmShortcutStyle0 = shortcutCss;
1258
-
1259
- const osKeys = {
1260
- ctrl: '⌘',
1261
- alt: '⌥',
1262
- shift: '⇧',
1263
- del: '⌫',
1264
- delete: '⌫',
1265
- backspace: '⌦',
1266
- enter: '⏎',
1267
- return: '⏎',
1268
- };
1269
- const BcmShortcut = class {
1270
- constructor(hostRef) {
1271
- index.registerInstance(this, hostRef);
1272
- this.size = 'small';
1273
- this.isMac = /Mac/.test(window.navigator.userAgent);
1274
- }
1275
- getHotkey(key) {
1276
- if (!key) {
1277
- return '';
1278
- }
1279
- if (this.isMac && (key.includes(' ') || key.includes('+'))) {
1280
- const keys = key.split(/[\s+]+/);
1281
- return keys.map(k => osKeys[k] || k).join('');
1282
- }
1283
- else {
1284
- return key;
1285
- }
1286
- }
1287
- render() {
1288
- const { size, hotkey } = this;
1289
- return (index.h("div", { key: '007588d1d20941ead644a3d1fd72410cb6793ff5', class: index$1.classNames('bcm-ui-element bcm-ui-content-display', 'block h-fit w-fit rounded border border-solid px-1', 'border-color-default bg-color-default text-color-default', 'text-center font-medium capitalize', {
1290
- 'text-size-2': size === 'small',
1291
- 'text-size-3': size === 'medium',
1292
- 'text-size-4': size === 'large',
1293
- }) }, this.getHotkey(hotkey)));
1294
- }
1295
- };
1296
- BcmShortcut.style = BcmShortcutStyle0;
1297
-
1298
- const variantTagMap = {
1299
- display: 'h1',
1300
- heading1: 'h2',
1301
- heading2: 'h3',
1302
- title1: 'h4',
1303
- title2: 'h5',
1304
- title3: 'h6',
1305
- body: 'p',
1306
- bodyAccent: 'p',
1307
- helper: 'p',
1308
- caption: 'p',
1309
- label: 'label',
1310
- placeholder: 'p',
1311
- link: 'a',
1312
- info: 'p',
1313
- infoAccent: 'p',
1314
- };
1315
-
1316
- const textCss = ".static{position:static}.m-0{margin:0}.appearance-none{appearance:none}.truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.p-0{padding:0}.text-size-12{font-size:var(--bcm-ui-font-size-12,60px);line-height:var(--bcm-ui-line-height-12,72px)}.text-size-3{font-size:var(--bcm-ui-font-size-3,12px);line-height:var(--bcm-ui-line-height-3,16px)}.text-size-4{font-size:var(--bcm-ui-font-size-4,14px);line-height:var(--bcm-ui-line-height-4,20px)}.text-size-5{font-size:var(--bcm-ui-font-size-5,16px);line-height:var(--bcm-ui-line-height-5,24px)}.text-size-6{font-size:var(--bcm-ui-font-size-6,18px);line-height:var(--bcm-ui-line-height-6,24px)}.text-size-7{font-size:var(--bcm-ui-font-size-7,20px);line-height:var(--bcm-ui-line-height-7,28px)}.font-medium{font-weight:500}.font-semibold{font-weight:600}.text-color-caption{color:var(--bcm-ui-color-text-caption)}.text-color-default{color:var(--bcm-ui-color-text-default)}.text-color-disabled{color:var(--bcm-ui-color-text-disabled)}.text-color-header{color:var(--bcm-ui-color-text-header)}.text-color-helper{color:var(--bcm-ui-color-text-helper)}.text-color-label{color:var(--bcm-ui-color-text-label)}.text-color-placeholder{color:var(--bcm-ui-color-text-placeholder)}.text-color-primary{color:var(--bcm-ui-color-text-primary)}.underline{text-decoration-line:underline}.shadow{--tw-shadow:var(--bcm-ui-box-shadow-default);--tw-shadow-colored:var(--bcm-ui-box-shadow-default);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}";
1317
- const BcmTextStyle0 = textCss;
1318
-
1319
- const BcmText = class {
1320
- constructor(hostRef) {
1321
- index.registerInstance(this, hostRef);
1322
- /** Text variant */
1323
- this.variant = 'body';
1324
- /** Text size */
1325
- this.size = 'medium';
1326
- /** Text overflow behavior */
1327
- this.overflow = false;
1328
- this.variantClassMap = {
1329
- display: 'font-semibold text-size-12 text-color-header',
1330
- heading1: 'font-semibold text-size-7 text-color-header',
1331
- heading2: 'font-semibold text-size-6 text-color-header',
1332
- title1: {
1333
- small: 'font-semibold text-size-5 text-color-header',
1334
- medium: 'font-semibold text-size-6 text-color-header',
1335
- large: 'font-semibold text-size-7 text-color-header',
1336
- },
1337
- title2: {
1338
- small: 'font-semibold text-size-4 text-color-default',
1339
- medium: 'font-semibold text-size-5 text-color-default',
1340
- large: 'font-semibold text-size-6 text-color-default',
1341
- },
1342
- title3: {
1343
- small: 'font-semibold text-size-3 text-color-disabled',
1344
- medium: 'font-semibold text-size-4 text-color-disabled',
1345
- large: 'font-semibold text-size-5 text-color-disabled',
1346
- },
1347
- body: {
1348
- small: 'font-regular text-size-4 text-color-default',
1349
- medium: 'font-regular text-size-5 text-color-default',
1350
- large: 'font-regular text-size-6 text-color-default',
1351
- },
1352
- bodyAccent: {
1353
- small: 'font-medium text-size-4 text-color-default',
1354
- medium: 'font-medium text-size-5 text-color-default',
1355
- large: 'font-medium text-size-6 text-color-default',
1356
- },
1357
- helper: {
1358
- small: 'font-regular text-size-4 text-color-helper',
1359
- medium: 'font-regular text-size-5 text-color-helper',
1360
- large: 'font-regular text-size-6 text-color-helper',
1361
- },
1362
- caption: {
1363
- small: 'font-regular text-size-3 text-color-caption',
1364
- medium: 'font-regular text-size-4 text-color-caption',
1365
- large: 'font-regular text-size-5 text-color-caption',
1366
- },
1367
- link: {
1368
- small: 'font-medium text-size-4 underline text-color-primary',
1369
- medium: 'font-medium text-size-5 underline text-color-primary',
1370
- large: 'font-medium text-size-6 underline text-color-primary',
1371
- },
1372
- label: {
1373
- small: 'font-medium text-size-3 text-color-label',
1374
- medium: 'font-medium text-size-4 text-color-label',
1375
- large: 'font-medium text-size-5 text-color-label',
1376
- },
1377
- placeholder: {
1378
- small: 'font-regular text-size-4 text-color-placeholder',
1379
- medium: 'font-regular text-size-5 text-color-placeholder',
1380
- large: 'font-regular text-size-6 text-color-placeholder',
1381
- },
1382
- info: {
1383
- small: 'font-regular text-size-3 text-color-default',
1384
- medium: 'font-regular text-size-4 text-color-default',
1385
- large: 'font-regular text-size-5 text-color-default',
1386
- },
1387
- infoAccent: {
1388
- small: 'font-medium text-size-3 text-color-header',
1389
- medium: 'font-medium text-size-4 text-color-header',
1390
- large: 'font-medium text-size-5 text-color-header',
1391
- },
1392
- };
1393
- this.getTextClass = (variant, size) => {
1394
- const variantClasses = this.variantClassMap[variant];
1395
- if (typeof variantClasses === 'string') {
1396
- return variantClasses;
1397
- }
1398
- return variantClasses[size];
1399
- };
1400
- this.getOverflowClass = (overflow) => {
1401
- return overflow ? 'truncate' : '';
1402
- };
1403
- }
1404
- render() {
1405
- var _a;
1406
- const Tag = variantTagMap[this.variant];
1407
- const variantClass = this.getTextClass(this.variant, this.size);
1408
- const overflowClass = this.getOverflowClass((_a = this.overflow) !== null && _a !== void 0 ? _a : false);
1409
- return (index.h(Tag, { key: '152d737752eea962ac3c5086011da69578ef0920', class: index$1.classNames('bcm-text appearance-none m-0 p-0', variantClass, overflowClass), part: "text" }, index.h("slot", { key: 'e8c8c89a5925936a2e22a75265b7f42317eab983' }, this.text)));
1410
- }
1411
- };
1412
- BcmText.style = BcmTextStyle0;
1413
-
1414
- exports.bcm_button = BcmButton;
1415
- exports.bcm_drawer = BcmDrawer;
1416
- exports.bcm_dropdown = Dropdown;
1417
- exports.bcm_dropdown_item = DropdownItem;
1418
- exports.bcm_input = BcmInput;
1419
- exports.bcm_linked = BcmLinked;
1420
- exports.bcm_shortcut = BcmShortcut;
1421
- exports.bcm_text = BcmText;
1422
-
1423
- //# sourceMappingURL=bcm-button_8.cjs.entry.js.map