bromcom-ui-next 0.1.5 → 0.1.6

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 (377) hide show
  1. package/dist/bromcom-ui/bromcom-ui.css +1 -1
  2. package/dist/bromcom-ui/bromcom-ui.esm.js +1 -1
  3. package/dist/bromcom-ui/bromcom-ui.esm.js.map +1 -1
  4. package/dist/bromcom-ui/p-0d0d6483.entry.js +2 -0
  5. package/dist/bromcom-ui/{p-e08b23ff.entry.js.map → p-0d0d6483.entry.js.map} +1 -1
  6. package/dist/bromcom-ui/p-13784cd7.entry.js +2 -0
  7. package/dist/bromcom-ui/p-13784cd7.entry.js.map +1 -0
  8. package/dist/bromcom-ui/p-13a245f6.js +2 -0
  9. package/dist/bromcom-ui/p-13a245f6.js.map +1 -0
  10. package/dist/bromcom-ui/p-25038cc8.entry.js +2 -0
  11. package/dist/bromcom-ui/p-25038cc8.entry.js.map +1 -0
  12. package/dist/bromcom-ui/p-308f865b.entry.js +2 -0
  13. package/dist/bromcom-ui/p-308f865b.entry.js.map +1 -0
  14. package/dist/bromcom-ui/{p-f0ece968.entry.js → p-385fa0f3.entry.js} +2 -2
  15. package/dist/bromcom-ui/p-389f1976.entry.js +2 -0
  16. package/dist/bromcom-ui/p-389f1976.entry.js.map +1 -0
  17. package/dist/bromcom-ui/p-3b230145.entry.js +2 -0
  18. package/dist/bromcom-ui/p-3b230145.entry.js.map +1 -0
  19. package/dist/bromcom-ui/p-49b0e982.entry.js +2 -0
  20. package/dist/bromcom-ui/p-49b0e982.entry.js.map +1 -0
  21. package/dist/bromcom-ui/p-55c4263c.entry.js +2 -0
  22. package/dist/bromcom-ui/p-55c4263c.entry.js.map +1 -0
  23. package/dist/bromcom-ui/{p-f9eeafa7.entry.js → p-58ee24a8.entry.js} +2 -2
  24. package/dist/bromcom-ui/p-729a870f.js.map +1 -1
  25. package/dist/bromcom-ui/p-9551c35e.entry.js +2 -0
  26. package/dist/bromcom-ui/p-9551c35e.entry.js.map +1 -0
  27. package/dist/bromcom-ui/p-9594cebb.js +2 -0
  28. package/dist/bromcom-ui/p-9594cebb.js.map +1 -0
  29. package/dist/bromcom-ui/p-98c76392.entry.js +2 -0
  30. package/dist/bromcom-ui/p-98c76392.entry.js.map +1 -0
  31. package/dist/bromcom-ui/p-a29e61a4.entry.js +2 -0
  32. package/dist/bromcom-ui/{p-7a1bf6a6.entry.js.map → p-a29e61a4.entry.js.map} +1 -1
  33. package/dist/bromcom-ui/p-ba2410ef.js +2 -0
  34. package/dist/bromcom-ui/p-ba2410ef.js.map +1 -0
  35. package/dist/bromcom-ui/p-bd0f7e78.entry.js +2 -0
  36. package/dist/bromcom-ui/p-bd0f7e78.entry.js.map +1 -0
  37. package/dist/bromcom-ui/p-bf69fc8a.entry.js +2 -0
  38. package/dist/bromcom-ui/p-bf69fc8a.entry.js.map +1 -0
  39. package/dist/bromcom-ui/{p-5bee2e76.entry.js → p-c1161950.entry.js} +2 -2
  40. package/dist/bromcom-ui/p-c2b3945e.entry.js +2 -0
  41. package/dist/bromcom-ui/p-c2b3945e.entry.js.map +1 -0
  42. package/dist/bromcom-ui/{p-53f21d16.entry.js → p-c427ffee.entry.js} +2 -2
  43. package/dist/bromcom-ui/p-c444235a.entry.js +2 -0
  44. package/dist/bromcom-ui/{p-63cb0933.entry.js.map → p-c444235a.entry.js.map} +1 -1
  45. package/dist/bromcom-ui/p-c995a48c.entry.js +2 -0
  46. package/dist/bromcom-ui/p-c995a48c.entry.js.map +1 -0
  47. package/dist/bromcom-ui/p-c9b736d9.js +3 -0
  48. package/dist/{cjs/index-4795c073.js.map → bromcom-ui/p-c9b736d9.js.map} +1 -1
  49. package/dist/bromcom-ui/p-cd271b49.entry.js +2 -0
  50. package/dist/bromcom-ui/p-cd271b49.entry.js.map +1 -0
  51. package/dist/bromcom-ui/p-cee68279.entry.js +2 -0
  52. package/dist/bromcom-ui/{p-2bbd3c52.entry.js.map → p-cee68279.entry.js.map} +1 -1
  53. package/dist/bromcom-ui/{p-6abaf96f.entry.js → p-d57587e5.entry.js} +2 -2
  54. package/dist/bromcom-ui/p-e89ab4a7.entry.js +2 -0
  55. package/dist/bromcom-ui/p-e89ab4a7.entry.js.map +1 -0
  56. package/dist/bromcom-ui/{p-4f402148.entry.js → p-f2d8aa70.entry.js} +2 -2
  57. package/dist/bromcom-ui/p-f4e8a47d.entry.js +2 -0
  58. package/dist/bromcom-ui/p-f4e8a47d.entry.js.map +1 -0
  59. package/dist/cjs/app-globals-29edfda4.js.map +1 -1
  60. package/dist/cjs/bcm-accordion-group.cjs.entry.js +1 -1
  61. package/dist/cjs/bcm-accordion.cjs.entry.js +1 -1
  62. package/dist/cjs/bcm-alert.cjs.entry.js +1 -1
  63. package/dist/cjs/bcm-avatar_4.cjs.entry.js +12 -6
  64. package/dist/cjs/bcm-avatar_4.cjs.entry.js.map +1 -1
  65. package/dist/cjs/bcm-button-group.cjs.entry.js +97 -0
  66. package/dist/cjs/bcm-button-group.cjs.entry.js.map +1 -0
  67. package/dist/cjs/bcm-checkbox.cjs.entry.js +226 -0
  68. package/dist/cjs/bcm-checkbox.cjs.entry.js.map +1 -0
  69. package/dist/cjs/bcm-chip.cjs.entry.js +2 -2
  70. package/dist/cjs/bcm-divider.cjs.entry.js +2 -2
  71. package/dist/cjs/bcm-dropdown-item.cjs.entry.js +3 -3
  72. package/dist/cjs/bcm-dropdown.cjs.entry.js +3 -3
  73. package/dist/cjs/bcm-dropdown.cjs.entry.js.map +1 -1
  74. package/dist/cjs/bcm-input.cjs.entry.js +7 -6
  75. package/dist/cjs/bcm-input.cjs.entry.js.map +1 -1
  76. package/dist/cjs/bcm-linked.cjs.entry.js +9 -1899
  77. package/dist/cjs/bcm-linked.cjs.entry.js.map +1 -1
  78. package/dist/cjs/bcm-pop-confirm.cjs.entry.js +252 -0
  79. package/dist/cjs/bcm-pop-confirm.cjs.entry.js.map +1 -0
  80. package/dist/cjs/bcm-popover.cjs.entry.js +191 -0
  81. package/dist/cjs/bcm-popover.cjs.entry.js.map +1 -0
  82. package/dist/cjs/bcm-radio-group.cjs.entry.js +171 -0
  83. package/dist/cjs/bcm-radio-group.cjs.entry.js.map +1 -0
  84. package/dist/cjs/bcm-radio.cjs.entry.js +173 -0
  85. package/dist/cjs/bcm-radio.cjs.entry.js.map +1 -0
  86. package/dist/cjs/bcm-segmented-picker-option.cjs.entry.js +109 -0
  87. package/dist/cjs/bcm-segmented-picker-option.cjs.entry.js.map +1 -0
  88. package/dist/cjs/bcm-segmented-picker.cjs.entry.js +146 -0
  89. package/dist/cjs/bcm-segmented-picker.cjs.entry.js.map +1 -0
  90. package/dist/cjs/bcm-switch.cjs.entry.js +188 -0
  91. package/dist/cjs/bcm-switch.cjs.entry.js.map +1 -0
  92. package/dist/cjs/bcm-tabs-content.cjs.entry.js +22 -0
  93. package/dist/cjs/bcm-tabs-content.cjs.entry.js.map +1 -0
  94. package/dist/cjs/bcm-tabs-list.cjs.entry.js +43 -0
  95. package/dist/cjs/bcm-tabs-list.cjs.entry.js.map +1 -0
  96. package/dist/cjs/bcm-tabs-trigger.cjs.entry.js +92 -0
  97. package/dist/cjs/bcm-tabs-trigger.cjs.entry.js.map +1 -0
  98. package/dist/cjs/bcm-tabs.cjs.entry.js +211 -0
  99. package/dist/cjs/bcm-tabs.cjs.entry.js.map +1 -0
  100. package/dist/cjs/bcm-text.cjs.entry.js +2 -2
  101. package/dist/cjs/bcm-textarea.cjs.entry.js +8 -7
  102. package/dist/cjs/bcm-textarea.cjs.entry.js.map +1 -1
  103. package/dist/cjs/bcm-tooltip.cjs.entry.js +187 -0
  104. package/dist/cjs/bcm-tooltip.cjs.entry.js.map +1 -0
  105. package/dist/cjs/bromcom-ui.cjs.js +2 -2
  106. package/dist/cjs/floating-ui.dom.esm-3ec8404c.js +2085 -0
  107. package/dist/cjs/floating-ui.dom.esm-3ec8404c.js.map +1 -0
  108. package/dist/{components/p-31354aaa.js → cjs/generate-id-f6982042.js} +4 -47
  109. package/dist/cjs/generate-id-f6982042.js.map +1 -0
  110. package/dist/cjs/{index-4795c073.js → index-9a2c5938.js} +36 -7
  111. package/dist/{bromcom-ui/p-15fe392b.js.map → cjs/index-9a2c5938.js.map} +1 -1
  112. package/dist/cjs/loader.cjs.js +2 -2
  113. package/dist/cjs/validation-messages-18389279.js +52 -0
  114. package/dist/cjs/validation-messages-18389279.js.map +1 -0
  115. package/dist/collection/collection-manifest.json +15 -1
  116. package/dist/collection/components/avatar/avatar.css +1 -1
  117. package/dist/collection/components/badge/badge.css +1 -1
  118. package/dist/collection/components/button/button.component.js +33 -2
  119. package/dist/collection/components/button/button.component.js.map +1 -1
  120. package/dist/collection/components/button/button.css +1 -1
  121. package/dist/collection/components/button/types.js.map +1 -1
  122. package/dist/collection/components/button-group/button-group.component.js +252 -0
  123. package/dist/collection/components/button-group/button-group.component.js.map +1 -0
  124. package/dist/collection/components/button-group/button-group.css +1 -0
  125. package/dist/collection/components/button-group/types.js +2 -0
  126. package/dist/collection/components/button-group/types.js.map +1 -0
  127. package/dist/collection/components/checkbox/checkbox.component.js +440 -0
  128. package/dist/collection/components/checkbox/checkbox.component.js.map +1 -0
  129. package/dist/collection/components/checkbox/checkbox.css +1 -0
  130. package/dist/collection/components/chip/chip.component.js +1 -1
  131. package/dist/collection/components/divider/divider.component.js +1 -1
  132. package/dist/collection/components/dropdown/dropdown.component.js +1 -1
  133. package/dist/collection/components/dropdown/dropdown.css +1 -1
  134. package/dist/collection/components/dropdown-item/dropdown-item.component.js +2 -2
  135. package/dist/collection/components/input/input.component.js +2 -2
  136. package/dist/collection/components/input/input.css +1 -1
  137. package/dist/collection/components/linked/linked.component.js +2 -2
  138. package/dist/collection/components/linked/linked.css +1 -1
  139. package/dist/collection/components/pop-confirm/pop-confirm.component.js +629 -0
  140. package/dist/collection/components/pop-confirm/pop-confirm.component.js.map +1 -0
  141. package/dist/collection/components/pop-confirm/pop-confirm.css +1 -0
  142. package/dist/collection/components/popover/popover.component.js +477 -0
  143. package/dist/collection/components/popover/popover.component.js.map +1 -0
  144. package/dist/collection/components/popover/popover.css +1 -0
  145. package/dist/collection/components/radio/radio.component.js +502 -0
  146. package/dist/collection/components/radio/radio.component.js.map +1 -0
  147. package/dist/collection/components/radio/radio.css +1 -0
  148. package/dist/collection/components/radio-group/radio-group.component.js +523 -0
  149. package/dist/collection/components/radio-group/radio-group.component.js.map +1 -0
  150. package/dist/collection/components/radio-group/radio-group.css +1 -0
  151. package/dist/collection/components/segmented-picker/segmented-picker-option.component.js +253 -0
  152. package/dist/collection/components/segmented-picker/segmented-picker-option.component.js.map +1 -0
  153. package/dist/collection/components/segmented-picker/segmented-picker-option.css +1 -0
  154. package/dist/collection/components/segmented-picker/segmented-picker.component.js +269 -0
  155. package/dist/collection/components/segmented-picker/segmented-picker.component.js.map +1 -0
  156. package/dist/collection/components/segmented-picker/segmented-picker.css +1 -0
  157. package/dist/collection/components/segmented-picker/types.js +2 -0
  158. package/dist/collection/components/segmented-picker/types.js.map +1 -0
  159. package/dist/collection/components/switch/switch.component.js +452 -0
  160. package/dist/collection/components/switch/switch.component.js.map +1 -0
  161. package/dist/collection/components/switch/switch.css +1 -0
  162. package/dist/collection/components/tabs/bcm-tabs.css +1 -0
  163. package/dist/collection/components/tabs/tabs-content.component.js +46 -0
  164. package/dist/collection/components/tabs/tabs-content.component.js.map +1 -0
  165. package/dist/collection/components/tabs/tabs-content.css +1 -0
  166. package/dist/collection/components/tabs/tabs-list.component.js +46 -0
  167. package/dist/collection/components/tabs/tabs-list.component.js.map +1 -0
  168. package/dist/collection/components/tabs/tabs-list.css +1 -0
  169. package/dist/collection/components/tabs/tabs-trigger.component.js +195 -0
  170. package/dist/collection/components/tabs/tabs-trigger.component.js.map +1 -0
  171. package/dist/collection/components/tabs/tabs-trigger.css +1 -0
  172. package/dist/collection/components/tabs/tabs.component.js +422 -0
  173. package/dist/collection/components/tabs/tabs.component.js.map +1 -0
  174. package/dist/collection/components/text/text.component.js +1 -1
  175. package/dist/collection/components/textarea/textarea.component.js +3 -3
  176. package/dist/collection/components/textarea/textarea.css +1 -1
  177. package/dist/collection/components/tooltip/tooltip.component.js +385 -0
  178. package/dist/collection/components/tooltip/tooltip.component.js.map +1 -0
  179. package/dist/collection/components/tooltip/tooltip.css +1 -0
  180. package/dist/collection/styles/theme-variables.js +14 -0
  181. package/dist/collection/styles/theme-variables.js.map +1 -1
  182. package/dist/components/bcm-accordion-group.js +1 -1
  183. package/dist/components/bcm-accordion.js +1 -1
  184. package/dist/components/bcm-alert.js +1 -1
  185. package/dist/components/bcm-avatar.js +3 -3
  186. package/dist/components/bcm-avatar.js.map +1 -1
  187. package/dist/components/bcm-badge.js +1 -1
  188. package/dist/components/bcm-basic-badge.js +1 -1
  189. package/dist/components/bcm-button-group.d.ts +11 -0
  190. package/dist/components/bcm-button-group.js +120 -0
  191. package/dist/components/bcm-button-group.js.map +1 -0
  192. package/dist/components/bcm-button.js +1 -1
  193. package/dist/components/bcm-checkbox.d.ts +11 -0
  194. package/dist/components/bcm-checkbox.js +256 -0
  195. package/dist/components/bcm-checkbox.js.map +1 -0
  196. package/dist/components/bcm-chip.js +2 -2
  197. package/dist/components/bcm-divider.js +2 -2
  198. package/dist/components/bcm-dropdown-item.js +3 -3
  199. package/dist/components/bcm-dropdown.js +5 -5
  200. package/dist/components/bcm-dropdown.js.map +1 -1
  201. package/dist/components/bcm-input.js +6 -5
  202. package/dist/components/bcm-input.js.map +1 -1
  203. package/dist/components/bcm-linked.js +1 -1
  204. package/dist/components/bcm-pop-confirm.d.ts +11 -0
  205. package/dist/components/bcm-pop-confirm.js +288 -0
  206. package/dist/components/bcm-pop-confirm.js.map +1 -0
  207. package/dist/components/bcm-popover.d.ts +11 -0
  208. package/dist/components/bcm-popover.js +216 -0
  209. package/dist/components/bcm-popover.js.map +1 -0
  210. package/dist/components/bcm-radio-group.d.ts +11 -0
  211. package/dist/components/bcm-radio-group.js +200 -0
  212. package/dist/components/bcm-radio-group.js.map +1 -0
  213. package/dist/components/bcm-radio.d.ts +11 -0
  214. package/dist/components/bcm-radio.js +198 -0
  215. package/dist/components/bcm-radio.js.map +1 -0
  216. package/dist/components/bcm-segmented-picker-option.d.ts +11 -0
  217. package/dist/components/bcm-segmented-picker-option.js +131 -0
  218. package/dist/components/bcm-segmented-picker-option.js.map +1 -0
  219. package/dist/components/bcm-segmented-picker.d.ts +11 -0
  220. package/dist/components/bcm-segmented-picker.js +170 -0
  221. package/dist/components/bcm-segmented-picker.js.map +1 -0
  222. package/dist/components/bcm-switch.d.ts +11 -0
  223. package/dist/components/bcm-switch.js +215 -0
  224. package/dist/components/bcm-switch.js.map +1 -0
  225. package/dist/components/bcm-tabs-content.d.ts +11 -0
  226. package/dist/components/bcm-tabs-content.js +39 -0
  227. package/dist/components/bcm-tabs-content.js.map +1 -0
  228. package/dist/components/bcm-tabs-list.d.ts +11 -0
  229. package/dist/components/bcm-tabs-list.js +58 -0
  230. package/dist/components/bcm-tabs-list.js.map +1 -0
  231. package/dist/components/bcm-tabs-trigger.d.ts +11 -0
  232. package/dist/components/bcm-tabs-trigger.js +112 -0
  233. package/dist/components/bcm-tabs-trigger.js.map +1 -0
  234. package/dist/components/bcm-tabs.d.ts +11 -0
  235. package/dist/components/bcm-tabs.js +239 -0
  236. package/dist/components/bcm-tabs.js.map +1 -0
  237. package/dist/components/bcm-text.js +2 -2
  238. package/dist/components/bcm-textarea.js +7 -6
  239. package/dist/components/bcm-textarea.js.map +1 -1
  240. package/dist/components/bcm-tooltip.d.ts +11 -0
  241. package/dist/components/bcm-tooltip.js +211 -0
  242. package/dist/components/bcm-tooltip.js.map +1 -0
  243. package/dist/components/index.js +1 -1
  244. package/dist/components/p-13a245f6.js +48 -0
  245. package/dist/components/p-13a245f6.js.map +1 -0
  246. package/dist/components/{p-e918f815.js → p-49f20ff7.js} +3 -3
  247. package/dist/components/{p-e918f815.js.map → p-49f20ff7.js.map} +1 -1
  248. package/dist/components/{p-13582168.js → p-5377117d.js} +32 -6
  249. package/dist/components/p-5377117d.js.map +1 -0
  250. package/dist/components/p-5f7a0d0d.js +107 -0
  251. package/dist/components/p-5f7a0d0d.js.map +1 -0
  252. package/dist/components/{p-613ee92d.js → p-9594cebb.js} +201 -120
  253. package/dist/components/p-9594cebb.js.map +1 -0
  254. package/dist/{esm/validation-messages-a29d53be.js → components/p-ba2410ef.js} +2 -47
  255. package/dist/components/p-ba2410ef.js.map +1 -0
  256. package/dist/components/{p-0063a3d9.js → p-c3a60937.js} +12 -5
  257. package/dist/components/p-c3a60937.js.map +1 -0
  258. package/dist/esm/app-globals-bfa07b76.js.map +1 -1
  259. package/dist/esm/bcm-accordion-group.entry.js +1 -1
  260. package/dist/esm/bcm-accordion.entry.js +1 -1
  261. package/dist/esm/bcm-alert.entry.js +1 -1
  262. package/dist/esm/bcm-avatar_4.entry.js +12 -6
  263. package/dist/esm/bcm-avatar_4.entry.js.map +1 -1
  264. package/dist/esm/bcm-button-group.entry.js +93 -0
  265. package/dist/esm/bcm-button-group.entry.js.map +1 -0
  266. package/dist/esm/bcm-checkbox.entry.js +222 -0
  267. package/dist/esm/bcm-checkbox.entry.js.map +1 -0
  268. package/dist/esm/bcm-chip.entry.js +2 -2
  269. package/dist/esm/bcm-divider.entry.js +2 -2
  270. package/dist/esm/bcm-dropdown-item.entry.js +3 -3
  271. package/dist/esm/bcm-dropdown.entry.js +3 -3
  272. package/dist/esm/bcm-dropdown.entry.js.map +1 -1
  273. package/dist/esm/bcm-input.entry.js +6 -5
  274. package/dist/esm/bcm-input.entry.js.map +1 -1
  275. package/dist/esm/bcm-linked.entry.js +5 -1895
  276. package/dist/esm/bcm-linked.entry.js.map +1 -1
  277. package/dist/esm/bcm-pop-confirm.entry.js +248 -0
  278. package/dist/esm/bcm-pop-confirm.entry.js.map +1 -0
  279. package/dist/esm/bcm-popover.entry.js +187 -0
  280. package/dist/esm/bcm-popover.entry.js.map +1 -0
  281. package/dist/esm/bcm-radio-group.entry.js +167 -0
  282. package/dist/esm/bcm-radio-group.entry.js.map +1 -0
  283. package/dist/esm/bcm-radio.entry.js +169 -0
  284. package/dist/esm/bcm-radio.entry.js.map +1 -0
  285. package/dist/esm/bcm-segmented-picker-option.entry.js +105 -0
  286. package/dist/esm/bcm-segmented-picker-option.entry.js.map +1 -0
  287. package/dist/esm/bcm-segmented-picker.entry.js +142 -0
  288. package/dist/esm/bcm-segmented-picker.entry.js.map +1 -0
  289. package/dist/esm/bcm-switch.entry.js +184 -0
  290. package/dist/esm/bcm-switch.entry.js.map +1 -0
  291. package/dist/esm/bcm-tabs-content.entry.js +18 -0
  292. package/dist/esm/bcm-tabs-content.entry.js.map +1 -0
  293. package/dist/esm/bcm-tabs-list.entry.js +39 -0
  294. package/dist/esm/bcm-tabs-list.entry.js.map +1 -0
  295. package/dist/esm/bcm-tabs-trigger.entry.js +88 -0
  296. package/dist/esm/bcm-tabs-trigger.entry.js.map +1 -0
  297. package/dist/esm/bcm-tabs.entry.js +207 -0
  298. package/dist/esm/bcm-tabs.entry.js.map +1 -0
  299. package/dist/esm/bcm-text.entry.js +2 -2
  300. package/dist/esm/bcm-textarea.entry.js +7 -6
  301. package/dist/esm/bcm-textarea.entry.js.map +1 -1
  302. package/dist/esm/bcm-tooltip.entry.js +183 -0
  303. package/dist/esm/bcm-tooltip.entry.js.map +1 -0
  304. package/dist/esm/bromcom-ui.js +3 -3
  305. package/dist/esm/floating-ui.dom.esm-480e0f15.js +2078 -0
  306. package/dist/esm/floating-ui.dom.esm-480e0f15.js.map +1 -0
  307. package/dist/{cjs/validation-messages-c36e5c31.js → esm/generate-id-3b2fcb93.js} +2 -52
  308. package/dist/esm/generate-id-3b2fcb93.js.map +1 -0
  309. package/dist/esm/{index-27cc1bac.js → index-8571fbf7.js} +36 -8
  310. package/dist/esm/index-8571fbf7.js.map +1 -0
  311. package/dist/esm/loader.js +3 -3
  312. package/dist/esm/validation-messages-af4512f0.js +48 -0
  313. package/dist/esm/validation-messages-af4512f0.js.map +1 -0
  314. package/dist/types/components/button/button.component.d.ts +3 -1
  315. package/dist/types/components/button/types.d.ts +4 -4
  316. package/dist/types/components/button-group/button-group.component.d.ts +25 -0
  317. package/dist/types/components/button-group/types.d.ts +2 -0
  318. package/dist/types/components/checkbox/checkbox.component.d.ts +99 -0
  319. package/dist/types/components/pop-confirm/pop-confirm.component.d.ts +195 -0
  320. package/dist/types/components/popover/popover.component.d.ts +118 -0
  321. package/dist/types/components/radio/radio.component.d.ts +105 -0
  322. package/dist/types/components/radio-group/radio-group.component.d.ts +124 -0
  323. package/dist/types/components/segmented-picker/segmented-picker-option.component.d.ts +30 -0
  324. package/dist/types/components/segmented-picker/segmented-picker.component.d.ts +35 -0
  325. package/dist/types/components/segmented-picker/types.d.ts +1 -0
  326. package/dist/types/components/switch/switch.component.d.ts +62 -0
  327. package/dist/types/components/tabs/tabs-content.component.d.ts +13 -0
  328. package/dist/types/components/tabs/tabs-list.component.d.ts +12 -0
  329. package/dist/types/components/tabs/tabs-trigger.component.d.ts +41 -0
  330. package/dist/types/components/tabs/tabs.component.d.ts +88 -0
  331. package/dist/types/components/tooltip/tooltip.component.d.ts +86 -0
  332. package/dist/types/components.d.ts +2576 -819
  333. package/dist/types/styles/theme-variables.d.ts +14 -0
  334. package/package.json +1 -1
  335. package/dist/bromcom-ui/p-15fe392b.js +0 -3
  336. package/dist/bromcom-ui/p-2bbd3c52.entry.js +0 -2
  337. package/dist/bromcom-ui/p-2f1d87a7.entry.js +0 -2
  338. package/dist/bromcom-ui/p-2f1d87a7.entry.js.map +0 -1
  339. package/dist/bromcom-ui/p-31354aaa.js +0 -2
  340. package/dist/bromcom-ui/p-31354aaa.js.map +0 -1
  341. package/dist/bromcom-ui/p-5737e7de.entry.js +0 -2
  342. package/dist/bromcom-ui/p-5737e7de.entry.js.map +0 -1
  343. package/dist/bromcom-ui/p-63cb0933.entry.js +0 -2
  344. package/dist/bromcom-ui/p-7a1bf6a6.entry.js +0 -2
  345. package/dist/bromcom-ui/p-e08b23ff.entry.js +0 -2
  346. package/dist/bromcom-ui/styles/theme-variables.ts +0 -369
  347. package/dist/bromcom-ui/styles/themes/index.css +0 -1
  348. package/dist/bromcom-ui/styles/themes/library/default.css +0 -73
  349. package/dist/bromcom-ui/styles/variables/box-shadow.css +0 -15
  350. package/dist/bromcom-ui/styles/variables/colors-dark.css +0 -314
  351. package/dist/bromcom-ui/styles/variables/colors-light.css +0 -325
  352. package/dist/bromcom-ui/styles/variables/font-size-rem.css +0 -33
  353. package/dist/bromcom-ui/styles/variables/font-size.css +0 -33
  354. package/dist/bromcom-ui/styles/variables/index.css +0 -6
  355. package/dist/cjs/validation-messages-c36e5c31.js.map +0 -1
  356. package/dist/collection/styles/theme-variables.ts +0 -369
  357. package/dist/collection/styles/themes/index.css +0 -1
  358. package/dist/collection/styles/themes/library/default.css +0 -73
  359. package/dist/collection/styles/variables/box-shadow.css +0 -15
  360. package/dist/collection/styles/variables/colors-dark.css +0 -314
  361. package/dist/collection/styles/variables/colors-light.css +0 -325
  362. package/dist/collection/styles/variables/font-size-rem.css +0 -33
  363. package/dist/collection/styles/variables/font-size.css +0 -33
  364. package/dist/collection/styles/variables/index.css +0 -6
  365. package/dist/components/p-0063a3d9.js.map +0 -1
  366. package/dist/components/p-13582168.js.map +0 -1
  367. package/dist/components/p-31354aaa.js.map +0 -1
  368. package/dist/components/p-613ee92d.js.map +0 -1
  369. package/dist/esm/index-27cc1bac.js.map +0 -1
  370. package/dist/esm/validation-messages-a29d53be.js.map +0 -1
  371. package/dist/tailwind.config.js +0 -32
  372. /package/dist/bromcom-ui/{p-f0ece968.entry.js.map → p-385fa0f3.entry.js.map} +0 -0
  373. /package/dist/bromcom-ui/{p-f9eeafa7.entry.js.map → p-58ee24a8.entry.js.map} +0 -0
  374. /package/dist/bromcom-ui/{p-5bee2e76.entry.js.map → p-c1161950.entry.js.map} +0 -0
  375. /package/dist/bromcom-ui/{p-53f21d16.entry.js.map → p-c427ffee.entry.js.map} +0 -0
  376. /package/dist/bromcom-ui/{p-6abaf96f.entry.js.map → p-d57587e5.entry.js.map} +0 -0
  377. /package/dist/bromcom-ui/{p-4f402148.entry.js.map → p-f2d8aa70.entry.js.map} +0 -0
@@ -0,0 +1,222 @@
1
+ import { r as registerInstance, c as createEvent, h, g as getElement } from './index-8571fbf7.js';
2
+ import { c as ce } from './index-f3b17e60.js';
3
+ import { g as generateId } from './generate-id-3b2fcb93.js';
4
+
5
+ const checkboxCss = ".relative{position:relative}.block{display:block}:host{align-self:center;display:block;height:-moz-fit-content;height:fit-content;position:relative;width:-moz-fit-content;width:fit-content}.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}.static{position:static}.absolute{position:absolute}.flex{display:flex}.inline-flex{display:inline-flex}.size-2{height:.5rem;width:.5rem}.size-3{height:.75rem;width:.75rem}.size-4{height:1rem;width:1rem}.size-\\[10px\\]{height:10px;width:10px}.size-\\[18px\\]{height:18px;width:18px}.h-0{height:0}.w-0{width:0}.cursor-not-allowed{cursor:not-allowed}.cursor-pointer{cursor:pointer}.select-none{user-select:none}.flex-row{flex-direction:row}.flex-row-reverse{flex-direction:row-reverse}.items-center{align-items:center}.justify-center{justify-content:center}.gap-2{gap:.5rem}.gap-2\\.5{gap:.625rem}.gap-3{gap:.75rem}.rounded{border-radius:var(--bcm-ui-border-radius-default,6px)}.border{border-width:1px}.border-solid{border-style:solid}.border-\\[--border-color\\]{border-color:var(--border-color)}.bg-\\[--unchecked-color\\]{background-color:var(--unchecked-color)}.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)}.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-color{color:var(--bcm-ui-color-text-default)}.text-color-base{color:var(--bcm-ui-color-text-base)}.text-color-disabled{color:var(--bcm-ui-color-text-disabled)}.opacity-0{opacity:0}.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-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}.ease-out{transition-timing-function:cubic-bezier(0,0,.2,1)}.hover\\:border-\\[--border-color\\]:hover{border-color:var(--border-color)}.hover\\:border-\\[--hover-border-color\\]:hover{border-color:var(--hover-border-color)}.hover\\:bg-\\[--unchecked-color\\]:hover{background-color:var(--unchecked-color)}.peer:checked~.peer-checked\\:border-\\[--checked-color\\]{border-color:var(--checked-color)}.peer:checked~.peer-checked\\:bg-\\[--checked-color\\]{background-color:var(--checked-color)}.peer:checked~.hover\\:peer-checked\\:bg-\\[--hover-color\\]:hover{background-color:var(--hover-color)}.peer:indeterminate~.peer-indeterminate\\:border-\\[--checked-color\\]{border-color:var(--checked-color)}.peer:indeterminate~.peer-indeterminate\\:bg-\\[--checked-color\\]{background-color:var(--checked-color)}.peer:indeterminate~.hover\\:peer-indeterminate\\:bg-\\[--hover-color\\]:hover{background-color:var(--hover-color)}";
6
+ const BcmCheckboxStyle0 = checkboxCss;
7
+
8
+ const Checkbox = class {
9
+ constructor(hostRef) {
10
+ registerInstance(this, hostRef);
11
+ this.bcmCheckboxChange = createEvent(this, "bcmCheckboxChange", 1);
12
+ /**
13
+ * Unique ID for the component. Automatically generated if not specified.
14
+ */
15
+ this._id = generateId('bcm-checkbox');
16
+ /**
17
+ * Determines if the checkbox is in an indeterminate state.
18
+ * This is useful when some items in a group of checkboxes are selected and others are not.
19
+ */
20
+ this.indeterminate = false;
21
+ /**
22
+ * Size variant of the checkbox
23
+ */
24
+ this.size = 'medium';
25
+ /**
26
+ * Determines if the checkbox is checked
27
+ */
28
+ this.checked = false;
29
+ /**
30
+ * Indicates if the checkbox is in an error state.
31
+ * This affects the visual styling of the component.
32
+ */
33
+ this.error = false;
34
+ /**
35
+ * Determines if the checkbox is disabled
36
+ */
37
+ this.disabled = false;
38
+ /**
39
+ * Controls the position of the label relative to the checkbox
40
+ */
41
+ this.labelPosition = 'right';
42
+ /**
43
+ * Handles change events on the checkbox
44
+ * Updates state and emits the change event
45
+ */
46
+ this.handleChange = () => {
47
+ if (this.disabled)
48
+ return;
49
+ if (this.inputElement) {
50
+ this.inputElement.indeterminate = false;
51
+ this.indeterminate = false;
52
+ this.internalChecked = !this.internalChecked;
53
+ this.inputElement.checked = this.internalChecked;
54
+ this.bcmCheckboxChange.emit({
55
+ element: this.inputElement,
56
+ checked: this.internalChecked,
57
+ });
58
+ }
59
+ };
60
+ /**
61
+ * Tailwind Variants definition for the component
62
+ * Configures styling based on component props
63
+ */
64
+ this.classes = ce({
65
+ slots: {
66
+ container: 'flex items-center bcm-ui-element bcm-checkbox',
67
+ checkbox: [
68
+ 'flex items-center justify-center rounded',
69
+ 'border border-solid border-[--border-color]',
70
+ 'bg-[--unchecked-color]',
71
+ 'transition-colors duration-200 ease-out',
72
+ 'peer-checked:bg-[--checked-color]',
73
+ 'peer-checked:border-[--checked-color]',
74
+ 'peer-indeterminate:bg-[--checked-color]',
75
+ 'peer-indeterminate:border-[--checked-color]',
76
+ 'hover:border-[--hover-border-color]',
77
+ 'hover:peer-checked:bg-[--hover-color]',
78
+ 'hover:peer-indeterminate:bg-[--hover-color]',
79
+ ],
80
+ iconContainer: 'flex items-center justify-center',
81
+ label: 'select-none text-color',
82
+ hiddenInput: 'absolute w-0 h-0 opacity-0 peer',
83
+ },
84
+ variants: {
85
+ size: {
86
+ small: {
87
+ container: 'gap-2',
88
+ checkbox: 'size-3',
89
+ iconContainer: 'size-2 text-size-2',
90
+ label: 'text-size-4',
91
+ hiddenInput: 'size-3',
92
+ },
93
+ medium: {
94
+ container: 'gap-2.5',
95
+ checkbox: 'size-4',
96
+ iconContainer: 'size-[10px] text-size-3',
97
+ label: 'text-size-5',
98
+ hiddenInput: 'size-4',
99
+ },
100
+ large: {
101
+ container: 'gap-3',
102
+ checkbox: 'size-[18px]',
103
+ iconContainer: 'size-4 text-size-4',
104
+ label: 'text-size-6',
105
+ hiddenInput: 'size-[18px]',
106
+ },
107
+ },
108
+ disabled: {
109
+ true: {
110
+ container: 'cursor-not-allowed',
111
+ checkbox: 'cursor-not-allowed hover:border-[--border-color] hover:bg-[--unchecked-color]',
112
+ label: 'cursor-not-allowed text-color-disabled',
113
+ iconContainer: 'text-color-disabled',
114
+ hiddenInput: 'cursor-not-allowed',
115
+ },
116
+ false: {
117
+ container: 'cursor-pointer',
118
+ checkbox: 'cursor-pointer',
119
+ label: 'cursor-pointer text-color',
120
+ iconContainer: 'text-color-base',
121
+ hiddenInput: 'cursor-pointer',
122
+ },
123
+ },
124
+ labelPosition: {
125
+ left: {
126
+ container: 'flex-row-reverse',
127
+ },
128
+ right: {
129
+ container: 'flex-row',
130
+ },
131
+ },
132
+ },
133
+ defaultVariants: {
134
+ size: 'medium',
135
+ checked: false,
136
+ disabled: false,
137
+ error: false,
138
+ labelPosition: 'right',
139
+ },
140
+ }, { twMerge: false });
141
+ }
142
+ /**
143
+ * Lifecycle method that runs before the component first renders.
144
+ * Initializes the internal checked state.
145
+ */
146
+ componentWillLoad() {
147
+ this.internalChecked = this.checked !== undefined ? this.checked : false;
148
+ }
149
+ /**
150
+ * Lifecycle method that runs after the component has rendered.
151
+ * Updates the indeterminate state of the input element.
152
+ */
153
+ componentDidLoad() {
154
+ this.updateIndeterminateState();
155
+ }
156
+ /**
157
+ * Watches for changes to the checked prop and updates the internal state
158
+ * @param newValue The new checked value
159
+ */
160
+ syncCheckedProp(newValue) {
161
+ if (newValue !== undefined) {
162
+ this.internalChecked = newValue;
163
+ }
164
+ }
165
+ /**
166
+ * Watches for changes to indeterminate and internalChecked states
167
+ * Updates the input element accordingly
168
+ */
169
+ updateIndeterminateState() {
170
+ if (this.inputElement) {
171
+ this.inputElement.indeterminate = this.indeterminate && !this.internalChecked;
172
+ this.inputElement.checked = this.internalChecked;
173
+ }
174
+ }
175
+ /**
176
+ * Returns the CSS custom properties based on component state
177
+ * @returns Object with CSS custom properties
178
+ */
179
+ getStyles() {
180
+ const defaultStyles = {
181
+ '--checked-color': 'var(--bcm-ui-color-background-primary-default)',
182
+ '--unchecked-color': 'var(--bcm-ui-color-background-default-default)',
183
+ '--border-color': 'var(--bcm-ui-color-border-default)',
184
+ '--hover-border-color': 'var(--bcm-ui-color-border-primary)',
185
+ '--hover-color': 'var(--bcm-ui-color-background-info-hover)',
186
+ };
187
+ const errorStyles = {
188
+ '--checked-color': 'var(--bcm-ui-color-background-error-default)',
189
+ '--unchecked-color': 'var(--bcm-ui-color-background-palette-red-default)',
190
+ '--border-color': 'var(--bcm-ui-color-border-error)',
191
+ '--hover-border-color': 'var(--bcm-ui-color-border-error)',
192
+ '--hover-color': 'var(--bcm-ui-color-border-error)',
193
+ };
194
+ const disabledStyles = {
195
+ '--checked-color': 'var(--bcm-ui-color-background-disabled-default)',
196
+ '--unchecked-color': 'var(--bcm-ui-color-background-disabled-default)',
197
+ '--border-color': 'var(--bcm-ui-color-border-disabled)',
198
+ '--hover-color': 'var(--bcm-ui-color-border-disabled)',
199
+ '--hover-border-color': 'var(--bcm-ui-color-border-disabled)',
200
+ };
201
+ return Object.assign(Object.assign(Object.assign({}, defaultStyles), (this.error ? errorStyles : {})), (this.disabled ? disabledStyles : {}));
202
+ }
203
+ /**
204
+ * Renders the checkbox component
205
+ */
206
+ render() {
207
+ const { container, checkbox, iconContainer, label, hiddenInput } = this.classes({ size: this.size, disabled: this.disabled, labelPosition: this.labelPosition });
208
+ const internalId = this._id + '-internal-checkbox' || this.name;
209
+ return (h("div", { key: '929811f64a1ff48905b61f227554cccfae903108', class: container(), style: this.getStyles(), part: "checkbox-wrapper" }, h("div", { key: '69dc0ca98a78368e72641152e8fc324b08819fa3', class: "relative inline-flex" }, h("input", { key: '97784b43009500e631190ed82926c64c41ac00a4', type: "checkbox", role: "checkbox", id: internalId, name: this.name, checked: this.internalChecked, indeterminate: this.indeterminate, disabled: this.disabled, class: hiddenInput(), "aria-checked": this.internalChecked ? 'true' : this.indeterminate ? 'mixed' : 'false', "aria-invalid": this.error, "aria-label": this.label || 'Checkbox', onChange: this.handleChange, ref: el => (this.inputElement = el) }), h("div", { key: '8d3d03ab4f96d3393faec1bd5a8feff2160eae27', class: checkbox(), onClick: this.handleChange, part: "checkbox" }, this.internalChecked && (h("div", { key: '4e9043412e09f344da5c019f9c40a1f99e859220', class: iconContainer(), part: "icon" }, h("bcm-icon", { key: 'd041938bee4fb0adb5036846c22662d2bd95ba9b', name: "fa-regular fa-check" }))), this.indeterminate && !this.internalChecked && (h("div", { key: '25091614ed7d86cc27a5799e4358edf58f918192', class: iconContainer(), part: "icon" }, h("bcm-icon", { key: '0aa679bcf957cc272621132a54b76067ce0b90ea', name: "fa-regular fa-minus" }))))), h("label", { key: '44b7e84f1e61febee09baad2a0957172455726e0', htmlFor: internalId, class: label(), part: "label" }, this.label)));
210
+ }
211
+ get el() { return getElement(this); }
212
+ static get watchers() { return {
213
+ "checked": ["syncCheckedProp"],
214
+ "indeterminate": ["updateIndeterminateState"],
215
+ "internalChecked": ["updateIndeterminateState"]
216
+ }; }
217
+ };
218
+ Checkbox.style = BcmCheckboxStyle0;
219
+
220
+ export { Checkbox as bcm_checkbox };
221
+
222
+ //# sourceMappingURL=bcm-checkbox.entry.js.map
@@ -0,0 +1 @@
1
+ {"file":"bcm-checkbox.entry.js","m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AAI,CAAC,IAAI,CAAC,eAAe,KACxC,4DAAK,KAAK,EAAE,aAAa,EAAE,EAAE,IAAI,EAAC,MAAM,IACpC,iEAAU,IAAI,EAAC,qBAAqB,GAAY,CAC9C,CACT,CACC,CACJ,EACN,8DAAO,OAAO,EAAE,UAAU,EAAE,KAAK,EAAE,KAAK,EAAE,EAAE,IAAI,EAAC,OAAO,IACnD,IAAI,CAAC,KAAK,CACP,CACN,EACR;KACL;;;;;;;;;;;;","names":["tv"],"sources":["src/components/checkbox/checkbox.css?tag=bcm-checkbox&encapsulation=shadow","src/components/checkbox/checkbox.component.tsx"],"sourcesContent":[":host {\n display: block;\n position: relative;\n width: fit-content;\n height: fit-content;\n align-self: center;\n}\n","import { Component, h, Prop, Element, ComponentInterface, EventEmitter, Event, Watch, State } from '@stencil/core';\nimport { tv } from 'tailwind-variants';\nimport { generateId } from '../../utils/id/generate-id';\n\n/**\n * @description A checkbox component that allows users to select or deselect an option.\n * It also supports an indeterminate state.\n */\n@Component({\n tag: 'bcm-checkbox',\n styleUrl: 'checkbox.css',\n shadow: true,\n})\nexport class Checkbox implements ComponentInterface {\n /** Reference to the host element */\n @Element() el: HTMLElement;\n\n /**\n * Unique ID for the component. Automatically generated if not specified.\n */\n @Prop({ attribute: 'id', reflect: true })\n _id?: string = generateId('bcm-checkbox');\n\n /**\n * Label text to display next to the checkbox\n */\n @Prop()\n label?: string;\n\n /**\n * Name attribute for the checkbox when used in a form\n */\n @Prop()\n name: string;\n\n /**\n * Determines if the checkbox is in an indeterminate state.\n * This is useful when some items in a group of checkboxes are selected and others are not.\n */\n @Prop({ mutable: true })\n indeterminate: boolean = false;\n\n /**\n * Size variant of the checkbox\n */\n @Prop()\n size: 'small' | 'medium' | 'large' = 'medium';\n\n /**\n * Determines if the checkbox is checked\n */\n @Prop({ mutable: true })\n checked: boolean = false;\n\n /**\n * Indicates if the checkbox is in an error state.\n * This affects the visual styling of the component.\n */\n @Prop()\n error: boolean = false;\n\n /**\n * Determines if the checkbox is disabled\n */\n @Prop()\n disabled: boolean = false;\n\n /**\n * Controls the position of the label relative to the checkbox\n */\n @Prop()\n labelPosition: 'left' | 'right' = 'right';\n\n /**\n * Internal state to track checked status\n */\n @State() internalChecked: boolean;\n\n /**\n * Event emitted when the checked state changes\n */\n @Event({\n composed: false,\n bubbles: false,\n cancelable: true,\n eventName: 'bcmCheckboxChange',\n })\n bcmCheckboxChange: EventEmitter<{ element: any; checked: boolean }>;\n\n /** Reference to the underlying input element */\n private inputElement: HTMLInputElement;\n\n /**\n * Lifecycle method that runs before the component first renders.\n * Initializes the internal checked state.\n */\n componentWillLoad() {\n this.internalChecked = this.checked !== undefined ? this.checked : false;\n }\n\n /**\n * Lifecycle method that runs after the component has rendered.\n * Updates the indeterminate state of the input element.\n */\n componentDidLoad() {\n this.updateIndeterminateState();\n }\n\n /**\n * Watches for changes to the checked prop and updates the internal state\n * @param newValue The new checked value\n */\n @Watch('checked')\n syncCheckedProp(newValue: boolean | undefined) {\n if (newValue !== undefined) {\n this.internalChecked = newValue;\n }\n }\n\n /**\n * Watches for changes to indeterminate and internalChecked states\n * Updates the input element accordingly\n */\n @Watch('indeterminate')\n @Watch('internalChecked')\n updateIndeterminateState() {\n if (this.inputElement) {\n this.inputElement.indeterminate = this.indeterminate && !this.internalChecked;\n this.inputElement.checked = this.internalChecked;\n }\n }\n\n /**\n * Handles change events on the checkbox\n * Updates state and emits the change event\n */\n private handleChange = () => {\n if (this.disabled) return;\n if (this.inputElement) {\n this.inputElement.indeterminate = false;\n this.indeterminate = false;\n this.internalChecked = !this.internalChecked;\n this.inputElement.checked = this.internalChecked;\n this.bcmCheckboxChange.emit({\n element: this.inputElement,\n checked: this.internalChecked,\n });\n }\n };\n\n /**\n * Returns the CSS custom properties based on component state\n * @returns Object with CSS custom properties\n */\n private getStyles() {\n const defaultStyles = {\n '--checked-color': 'var(--bcm-ui-color-background-primary-default)',\n '--unchecked-color': 'var(--bcm-ui-color-background-default-default)',\n '--border-color': 'var(--bcm-ui-color-border-default)',\n '--hover-border-color': 'var(--bcm-ui-color-border-primary)',\n '--hover-color': 'var(--bcm-ui-color-background-info-hover)',\n };\n\n const errorStyles = {\n '--checked-color': 'var(--bcm-ui-color-background-error-default)',\n '--unchecked-color': 'var(--bcm-ui-color-background-palette-red-default)',\n '--border-color': 'var(--bcm-ui-color-border-error)',\n '--hover-border-color': 'var(--bcm-ui-color-border-error)',\n '--hover-color': 'var(--bcm-ui-color-border-error)',\n };\n\n const disabledStyles = {\n '--checked-color': 'var(--bcm-ui-color-background-disabled-default)',\n '--unchecked-color': 'var(--bcm-ui-color-background-disabled-default)',\n '--border-color': 'var(--bcm-ui-color-border-disabled)',\n '--hover-color': 'var(--bcm-ui-color-border-disabled)',\n '--hover-border-color': 'var(--bcm-ui-color-border-disabled)',\n };\n\n return {\n ...defaultStyles,\n ...(this.error ? errorStyles : {}),\n ...(this.disabled ? disabledStyles : {}),\n };\n }\n\n /**\n * Tailwind Variants definition for the component\n * Configures styling based on component props\n */\n private classes = tv(\n {\n slots: {\n container: 'flex items-center bcm-ui-element bcm-checkbox',\n checkbox: [\n 'flex items-center justify-center rounded',\n 'border border-solid border-[--border-color]',\n 'bg-[--unchecked-color]',\n 'transition-colors duration-200 ease-out',\n 'peer-checked:bg-[--checked-color]',\n 'peer-checked:border-[--checked-color]',\n 'peer-indeterminate:bg-[--checked-color]',\n 'peer-indeterminate:border-[--checked-color]',\n 'hover:border-[--hover-border-color]',\n 'hover:peer-checked:bg-[--hover-color]',\n 'hover:peer-indeterminate:bg-[--hover-color]',\n ],\n iconContainer: 'flex items-center justify-center',\n label: 'select-none text-color',\n hiddenInput: 'absolute w-0 h-0 opacity-0 peer',\n },\n variants: {\n size: {\n small: {\n container: 'gap-2',\n checkbox: 'size-3',\n iconContainer: 'size-2 text-size-2',\n label: 'text-size-4',\n hiddenInput: 'size-3',\n },\n medium: {\n container: 'gap-2.5',\n checkbox: 'size-4',\n iconContainer: 'size-[10px] text-size-3',\n label: 'text-size-5',\n hiddenInput: 'size-4',\n },\n large: {\n container: 'gap-3',\n checkbox: 'size-[18px]',\n iconContainer: 'size-4 text-size-4',\n label: 'text-size-6',\n hiddenInput: 'size-[18px]',\n },\n },\n disabled: {\n true: {\n container: 'cursor-not-allowed',\n checkbox: 'cursor-not-allowed hover:border-[--border-color] hover:bg-[--unchecked-color]',\n label: 'cursor-not-allowed text-color-disabled',\n iconContainer: 'text-color-disabled',\n hiddenInput: 'cursor-not-allowed',\n },\n false: {\n container: 'cursor-pointer',\n checkbox: 'cursor-pointer',\n label: 'cursor-pointer text-color',\n iconContainer: 'text-color-base',\n hiddenInput: 'cursor-pointer',\n },\n },\n labelPosition: {\n left: {\n container: 'flex-row-reverse',\n },\n right: {\n container: 'flex-row',\n },\n },\n },\n defaultVariants: {\n size: 'medium',\n checked: false,\n disabled: false,\n error: false,\n labelPosition: 'right',\n },\n },\n { twMerge: false },\n );\n\n /**\n * Renders the checkbox component\n */\n render() {\n const { container, checkbox, iconContainer, label, hiddenInput } = this.classes({ size: this.size, disabled: this.disabled, labelPosition: this.labelPosition });\n const internalId = this._id + '-internal-checkbox' || this.name;\n\n return (\n <div class={container()} style={this.getStyles()} part=\"checkbox-wrapper\">\n <div class=\"relative inline-flex\">\n <input\n type=\"checkbox\"\n role=\"checkbox\"\n id={internalId}\n name={this.name}\n checked={this.internalChecked}\n indeterminate={this.indeterminate}\n disabled={this.disabled}\n class={hiddenInput()}\n aria-checked={this.internalChecked ? 'true' : this.indeterminate ? 'mixed' : 'false'}\n aria-invalid={this.error}\n aria-label={this.label || 'Checkbox'}\n onChange={this.handleChange}\n ref={el => (this.inputElement = el as HTMLInputElement)}\n />\n <div class={checkbox()} onClick={this.handleChange} part=\"checkbox\">\n {this.internalChecked && (\n <div class={iconContainer()} part=\"icon\">\n <bcm-icon name=\"fa-regular fa-check\"></bcm-icon>\n </div>\n )}\n {this.indeterminate && !this.internalChecked && (\n <div class={iconContainer()} part=\"icon\">\n <bcm-icon name=\"fa-regular fa-minus\"></bcm-icon>\n </div>\n )}\n </div>\n </div>\n <label htmlFor={internalId} class={label()} part=\"label\">\n {this.label}\n </label>\n </div>\n );\n }\n}"],"version":3}
@@ -1,4 +1,4 @@
1
- import { r as registerInstance, c as createEvent, h } from './index-27cc1bac.js';
1
+ import { r as registerInstance, c as createEvent, h } from './index-8571fbf7.js';
2
2
  import { c as ce } from './index-f3b17e60.js';
3
3
 
4
4
  const STATUS_COLORS = {
@@ -116,7 +116,7 @@ const BcmChip = class {
116
116
  }
117
117
  }
118
118
  render() {
119
- return (h("div", { key: '1bcc941d68f13e8d57ffb0621911b585b3909d5a', style: this.chipStyle, class: this.chipClass({ size: this.size, kind: this.kind, disabled: this.disabled }), role: "button", "aria-disabled": this.disabled ? 'true' : 'false' }, h("slot", { key: '3a2dc016ac80905bfa38f16f50417700c854a421' }), this.dismissible && h("bcm-icon", { key: '9176d4a57accdcc9b814293d441fa12ba2065c9b', onClick: () => this.handleDismiss(), class: "cursor-pointer", "icon-name": "fa-regular fa-xmark", "aria-label": "Dismiss chip" })));
119
+ return (h("div", { key: '77ad31933acb6e0f5574f3590b2274f61b20caed', style: this.chipStyle, class: this.chipClass({ size: this.size, kind: this.kind, disabled: this.disabled }), role: "button", "aria-disabled": this.disabled ? 'true' : 'false' }, h("slot", { key: '781811b794a2d89c0ac609e934d6393094c541e8' }), this.dismissible && h("bcm-icon", { key: '08e55b19802624566ae6323c1102257cba784420', onClick: () => this.handleDismiss(), class: "cursor-pointer", "icon-name": "fa-regular fa-xmark", "aria-label": "Dismiss chip" })));
120
120
  }
121
121
  };
122
122
  BcmChip.style = BcmChipStyle0;
@@ -1,4 +1,4 @@
1
- import { r as registerInstance, h } from './index-27cc1bac.js';
1
+ import { r as registerInstance, h } from './index-8571fbf7.js';
2
2
  import { c as ce } from './index-f3b17e60.js';
3
3
 
4
4
  const dividerCss = ".block{display:block}:host{--bcm-divider-border:var(--bcm-ui-color-border-default);display:block}.static{position:static}.h-full{height:100%}.w-full{width:100%}.border{border-width:1px}.border-2{border-width:2px}.border-4{border-width:4px}.border-\\[1px\\]{border-width:1px}.border-l{border-left-width:1px}.border-t{border-top-width:1px}.border-solid{border-style:solid}.border-dashed{border-style:dashed}.border-dotted{border-style:dotted}.border-\\[--bcm-divider-border\\]{border-color:var(--bcm-divider-border)}.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)}";
@@ -63,7 +63,7 @@ const Divider = class {
63
63
  });
64
64
  }
65
65
  render() {
66
- return (h("div", { key: '92fe4c3cf2ae2824759a643912fcbb9bc7e426f8', role: "separator", "aria-orientation": this.direction, class: this.dividerClass({
66
+ return (h("div", { key: '92749401a2890b85a848d9e1b2c77c12b5f8d410', role: "separator", "aria-orientation": this.direction, class: this.dividerClass({
67
67
  direction: this.direction,
68
68
  variant: this.variant,
69
69
  size: this.size,
@@ -1,4 +1,4 @@
1
- import { r as registerInstance, c as createEvent, h, g as getElement } from './index-27cc1bac.js';
1
+ import { r as registerInstance, c as createEvent, h, g as getElement } from './index-8571fbf7.js';
2
2
  import { c as ce } from './index-f3b17e60.js';
3
3
 
4
4
  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}.text-color{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)}.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)}";
@@ -45,10 +45,10 @@ const DropdownItem = class {
45
45
  }
46
46
  render() {
47
47
  var _a;
48
- return (h("div", { key: '5fc499042cd981b6edfe3f44550cf198c49af57a', "aria-checked": this.selected, class: this.dropdownItemClass({
48
+ return (h("div", { key: '210f1b6277e07eeabd5da39d63a332ae84bed898', "aria-checked": this.selected, class: this.dropdownItemClass({
49
49
  selected: this.selected,
50
50
  error: this.error,
51
- }), onClick: () => this.handleClick() }, h("slot", { key: 'd071c2f932538bfac7db4ba8b2814737f8564d86', name: "left-content" }, this.icon && h("bcm-icon", { key: 'a56ca3229b08765f10b792b0aaa850e15ab6a233', "icon-name": this.icon })), h("div", { key: '69c25567202874fb152f0b01205c79a14f9bb534', class: "flex flex-row text-pretty w-full" }, h("slot", { key: 'be46aaf4103f9d9a1f7c1951cabb7523b97a3004' }, this.text)), h("slot", { key: '91067b0910f89d6a77b135c36990ecc14d5b97fe', name: "right-content" }, (_a = this.rightIcons) === null || _a === void 0 ? void 0 : _a.map(icon => (h("bcm-icon", { "icon-name": icon }))))));
51
+ }), onClick: () => this.handleClick() }, h("slot", { key: '4edc3ba20bd9b7f0bcb456178c72c3050e391e31', name: "left-content" }, this.icon && h("bcm-icon", { key: '867366e7d2491d1d59613f1ada4b5355ea1f67f9', "icon-name": this.icon })), h("div", { key: '845b630b0865d7e73dec69f00819105c7447fac8', class: "flex flex-row text-pretty w-full" }, h("slot", { key: 'ad70e94c42c8ee3bf01e8e14ee9d21909cacc204' }, this.text)), h("slot", { key: 'dfd1dd09b8c0c2f8927e8804087b32254fc7a05d', name: "right-content" }, (_a = this.rightIcons) === null || _a === void 0 ? void 0 : _a.map(icon => (h("bcm-icon", { "icon-name": icon }))))));
52
52
  }
53
53
  get host() { return getElement(this); }
54
54
  };
@@ -1,7 +1,7 @@
1
- import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-27cc1bac.js';
1
+ import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-8571fbf7.js';
2
2
  import { c as ce } from './index-f3b17e60.js';
3
3
 
4
- const dropdownCss = ".visible{visibility:visible}.hidden{display:none}:host{--dropdown-box-min-weight:32px;--dropdown-box-max-width:384px;--dropdown-box-max-height:384px;--dropdown-box-background-color:var(\"--bcm-ui-color-background-base-default\")}.scroll{height:140px;overflow-y:auto;width:140px}.scroll:active::-webkit-scrollbar-thumb,.scroll:focus::-webkit-scrollbar-thumb,.scroll:hover::-webkit-scrollbar-thumb{visibility:visible}.scroll::-webkit-scrollbar-thumb{background-color:#a9a9a9;visibility:hidden}.scroll::-webkit-scrollbar{height:8px;width:8px}.static{position:static}.flex{display:flex}.max-h-\\[--dropdown-box-max-height\\]{max-height:var(--dropdown-box-max-height)}.w-full{width:100%}.min-w-\\[--dropdown-box-min-weight\\]{min-width:var(--dropdown-box-min-weight)}.max-w-\\[--dropdown-box-max-weight\\]{max-width:var(--dropdown-box-max-weight)}.flex-col{flex-direction:column}.items-center{align-items:center}.rounded-lg{border-radius:.5rem}.bg-\\[--dropdown-box-background-color\\]{background-color:var(--dropdown-box-background-color)}.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}";
4
+ const dropdownCss = ".visible{visibility:visible}.hidden{display:none}:host{--dropdown-box-min-weight:32px;--dropdown-box-max-width:384px;--dropdown-box-max-height:384px;--dropdown-box-background-color:var(\"--bcm-ui-color-background-base-default\")}.scroll{height:140px;overflow-y:auto;width:140px}.scroll:active::-webkit-scrollbar-thumb,.scroll:focus::-webkit-scrollbar-thumb,.scroll:hover::-webkit-scrollbar-thumb{visibility:visible}.scroll::-webkit-scrollbar-thumb{background-color:#a9a9a9;visibility:hidden}.scroll::-webkit-scrollbar{height:8px;width:8px}.static{position:static}.flex{display:flex}.max-h-\\[--dropdown-box-max-height\\]{max-height:var(--dropdown-box-max-height)}.w-full{width:100%}.min-w-\\[--dropdown-box-min-weight\\]{min-width:var(--dropdown-box-min-weight)}.max-w-\\[--dropdown-box-max-weight\\]{max-width:var(--dropdown-box-max-weight)}.flex-col{flex-direction:column}.items-center{align-items:center}.rounded-lg{border-radius:var(--bcm-ui-border-radius-lg,8px)}.bg-\\[--dropdown-box-background-color\\]{background-color:var(--dropdown-box-background-color)}.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}";
5
5
  const BcmDropdownStyle0 = dropdownCss;
6
6
 
7
7
  const Dropdown = class {
@@ -41,7 +41,7 @@ const Dropdown = class {
41
41
  });
42
42
  }
43
43
  render() {
44
- return (h(Host, { key: 'b11ebb72b3edcdfb390e0db6670f4529be9c68fb' }, h("bcm-button", { key: 'ed882535b16ddbc4125a1fc0dc99da8c09b6ee08', kind: "outline" }, h("span", { key: '6bbbaf7e987dda4cab9871bdf05f2b1563c88f76', part: "text" }, this.text)), this.isReady && (h("bcm-linked", { key: '0baaf5b767cb1be7fd88fac88d721b672f9a3fce', targetElement: this.buttonRef }, h("div", { key: 'c5548264d4ab84019eeac053317d210898320d01', part: "dropdown-container", class: this.dropdownClass() }, h("slot", { key: '7484957ffd0d7997e8acea90c56291eb0d036003', onSlotchange: this.handleSlotChange }))))));
44
+ return (h(Host, { key: 'f8ebd7ecb5d6383caa178be4e34e64736c482b4a' }, h("bcm-button", { key: 'aab16dd01ce75758f0e075514b0775a679233315', kind: "outline" }, h("span", { key: '1d7842631a451eb6a4230f9e20e34948db642a3d', part: "text" }, this.text)), this.isReady && (h("bcm-linked", { key: '8f41062a05700f373912f300b4002464e4f9655e', targetElement: this.buttonRef }, h("div", { key: '7f9f35fd9cc8bd952794917293de1c4298ef9dec', part: "dropdown-container", class: this.dropdownClass() }, h("slot", { key: '38cc8b4c92c07499bc9471db7749372943b618dd', onSlotchange: this.handleSlotChange }))))));
45
45
  }
46
46
  get host() { return getElement(this); }
47
47
  };
@@ -1 +1 @@
1
- {"file":"bcm-dropdown.entry.js","mappings":";;;AAAA,MAAM,WAAW,GAAG,85CAA85C,CAAC;AACn7C,0BAAe,WAAW;;MCOb,QAAQ;IALrB;;;QAUa,YAAO,GAAY,KAAK,CAAC;QAEzB,kBAAa,GAAiC,EAAE,CAAC;QAoClD,kBAAa,GAAGA,EAAE,CAAC;YACvB,IAAI,EAAE,yNAAyN;SAClO,CAAC,CAAC;QAEK,qBAAgB,GAAG;YACvB,IAAI,CAAC,aAAa,GAAG,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,gBAAgB,CAAC,mBAAmB,CAAC,CAAC,CAAC;YAEjF,IAAI,IAAI,CAAC,aAAa,CAAC,MAAM,KAAK,CAAC,EAAE;gBACjC,OAAO,CAAC,IAAI,CAAC,+CAA+C,CAAC,CAAC;aACjE;SACJ,CAAC;KAkBL;IApDG,gBAAgB;QACZ,MAAM,MAAM,GAAG,IAAI,CAAC,IAAI,CAAC,UAAU,CAAC,aAAa,CAAC,YAAY,CAAyB,CAAC;QACxF,IAAI,MAAM,EAAE;YACR,IAAI,CAAC,SAAS,GAAG,MAAM,CAAC;YACxB,IAAI,CAAC,OAAO,GAAG,IAAI,CAAC;SACvB;KACJ;IAGD,wBAAwB,CAAC,KAAkB;;QACvC,MAAM,EAAE,OAAO,EAAE,QAAQ,EAAE,GAAG,KAAK,aAAL,KAAK,uBAAL,KAAK,CAAE,MAAM,CAAC;QAE5C,MAAA,IAAI,CAAC,aAAa,0CAAE,OAAO,CAAC,IAAI;YAC5B,IAAI,IAAI,IAAI,OAAO,EAAE;gBACjB,IAAI,CAAC,QAAQ,GAAG,KAAK,CAAC;aACzB;SACJ,CAAC,CAAC;QAEH,IAAI,CAAC,iBAAiB,CAAC,IAAI,CAAC;YACxB,OAAO,EAAE,OAAO;YAChB,QAAQ;SACX,CAAC,CAAC;KACN;IAcD,MAAM;QACF,QACI,EAAC,IAAI,uDACD,mEAAY,IAAI,EAAC,SAAS,IACtB,6DAAM,IAAI,EAAC,MAAM,IAAE,IAAI,CAAC,IAAI,CAAQ,CAC3B,EACZ,IAAI,CAAC,OAAO,KACT,mEAAY,aAAa,EAAE,IAAI,CAAC,SAAS,IACrC,4DAAK,IAAI,EAAC,oBAAoB,EAAC,KAAK,EAAE,IAAI,CAAC,aAAa,EAAE,IACtD,6DAAM,YAAY,EAAE,IAAI,CAAC,gBAAgB,GAAS,CAChD,CACG,CAChB,CACE,EACT;KACL;;;;;;;","names":["tv"],"sources":["src/components/dropdown/dropdown.css?tag=bcm-dropdown&encapsulation=shadow","src/components/dropdown/dropdown.component.tsx"],"sourcesContent":[":host {\n --dropdown-box-min-weight: 32px;\n --dropdown-box-max-width: 384px;\n --dropdown-box-max-height: 384px;\n --dropdown-box-background-color: var('--bcm-ui-color-background-base-default');\n}\n\n.scroll {\n height: 140px;\n width: 140px;\n overflow-y: auto;\n}\n\n.scroll:active::-webkit-scrollbar-thumb,\n.scroll:focus::-webkit-scrollbar-thumb,\n.scroll:hover::-webkit-scrollbar-thumb {\n visibility: visible;\n}\n.scroll::-webkit-scrollbar-thumb {\n background-color: darkgrey;\n visibility: hidden;\n}\n\n.scroll::-webkit-scrollbar {\n width: 8px;\n height: 8px;\n}\n","import { Component, ComponentInterface, h, Prop, State, Element, Host, Event, EventEmitter, Listen } from '@stencil/core';\nimport { tv } from 'tailwind-variants';\n\n@Component({\n tag: 'bcm-dropdown',\n styleUrl: 'dropdown.css',\n shadow: true,\n})\nexport class Dropdown implements ComponentInterface {\n @Element() host: HTMLElement;\n\n @Prop() text?: string;\n\n @State() isReady: boolean = false;\n\n @State() dropdownItems: HTMLBcmDropdownItemElement[] = [];\n\n protected buttonRef?: HTMLBcmButtonElement;\n\n @Event({\n composed: false,\n bubbles: false,\n cancelable: true,\n eventName: 'bcmDropdownChange',\n })\n bcmDropdownChange: EventEmitter<any>;\n\n componentDidLoad() {\n const button = this.host.shadowRoot.querySelector('bcm-button') as HTMLBcmButtonElement;\n if (button) {\n this.buttonRef = button;\n this.isReady = true;\n }\n }\n\n @Listen('bcmDropDownItemChange', { capture: true })\n handleDropdownItemChange(event: CustomEvent) {\n const { element, selected } = event?.detail;\n\n this.dropdownItems?.forEach(item => {\n if (item != element) {\n item.selected = false;\n }\n });\n\n this.bcmDropdownChange.emit({\n element: element,\n selected,\n });\n }\n\n private dropdownClass = tv({\n base: 'dropdown flex flex-col items-center min-w-[--dropdown-box-min-weight] shadow-3 max-w-[--dropdown-box-max-weight] max-h-[--dropdown-box-max-height] w-full bg-[--dropdown-box-background-color] rounded-lg py-1.5 scroll',\n });\n\n private handleSlotChange = () => {\n this.dropdownItems = Array.from(this.host.querySelectorAll('bcm-dropdown-item'));\n\n if (this.dropdownItems.length === 0) {\n console.warn('No dropdown items found in dropdown component');\n }\n };\n\n render() {\n return (\n <Host>\n <bcm-button kind=\"outline\">\n <span part=\"text\">{this.text}</span>\n </bcm-button>\n {this.isReady && (\n <bcm-linked targetElement={this.buttonRef}>\n <div part=\"dropdown-container\" class={this.dropdownClass()}>\n <slot onSlotchange={this.handleSlotChange}></slot>\n </div>\n </bcm-linked>\n )}\n </Host>\n );\n }\n}\n"],"version":3}
1
+ {"file":"bcm-dropdown.entry.js","mappings":";;;AAAA,MAAM,WAAW,GAAG,27CAA27C,CAAC;AACh9C,0BAAe,WAAW;;MCOb,QAAQ;IALrB;;;QAUa,YAAO,GAAY,KAAK,CAAC;QAEzB,kBAAa,GAAiC,EAAE,CAAC;QAoClD,kBAAa,GAAGA,EAAE,CAAC;YACvB,IAAI,EAAE,yNAAyN;SAClO,CAAC,CAAC;QAEK,qBAAgB,GAAG;YACvB,IAAI,CAAC,aAAa,GAAG,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,gBAAgB,CAAC,mBAAmB,CAAC,CAAC,CAAC;YAEjF,IAAI,IAAI,CAAC,aAAa,CAAC,MAAM,KAAK,CAAC,EAAE;gBACjC,OAAO,CAAC,IAAI,CAAC,+CAA+C,CAAC,CAAC;aACjE;SACJ,CAAC;KAkBL;IApDG,gBAAgB;QACZ,MAAM,MAAM,GAAG,IAAI,CAAC,IAAI,CAAC,UAAU,CAAC,aAAa,CAAC,YAAY,CAAyB,CAAC;QACxF,IAAI,MAAM,EAAE;YACR,IAAI,CAAC,SAAS,GAAG,MAAM,CAAC;YACxB,IAAI,CAAC,OAAO,GAAG,IAAI,CAAC;SACvB;KACJ;IAGD,wBAAwB,CAAC,KAAkB;;QACvC,MAAM,EAAE,OAAO,EAAE,QAAQ,EAAE,GAAG,KAAK,aAAL,KAAK,uBAAL,KAAK,CAAE,MAAM,CAAC;QAE5C,MAAA,IAAI,CAAC,aAAa,0CAAE,OAAO,CAAC,IAAI;YAC5B,IAAI,IAAI,IAAI,OAAO,EAAE;gBACjB,IAAI,CAAC,QAAQ,GAAG,KAAK,CAAC;aACzB;SACJ,CAAC,CAAC;QAEH,IAAI,CAAC,iBAAiB,CAAC,IAAI,CAAC;YACxB,OAAO,EAAE,OAAO;YAChB,QAAQ;SACX,CAAC,CAAC;KACN;IAcD,MAAM;QACF,QACI,EAAC,IAAI,uDACD,mEAAY,IAAI,EAAC,SAAS,IACtB,6DAAM,IAAI,EAAC,MAAM,IAAE,IAAI,CAAC,IAAI,CAAQ,CAC3B,EACZ,IAAI,CAAC,OAAO,KACT,mEAAY,aAAa,EAAE,IAAI,CAAC,SAAS,IACrC,4DAAK,IAAI,EAAC,oBAAoB,EAAC,KAAK,EAAE,IAAI,CAAC,aAAa,EAAE,IACtD,6DAAM,YAAY,EAAE,IAAI,CAAC,gBAAgB,GAAS,CAChD,CACG,CAChB,CACE,EACT;KACL;;;;;;;","names":["tv"],"sources":["src/components/dropdown/dropdown.css?tag=bcm-dropdown&encapsulation=shadow","src/components/dropdown/dropdown.component.tsx"],"sourcesContent":[":host {\n --dropdown-box-min-weight: 32px;\n --dropdown-box-max-width: 384px;\n --dropdown-box-max-height: 384px;\n --dropdown-box-background-color: var('--bcm-ui-color-background-base-default');\n}\n\n.scroll {\n height: 140px;\n width: 140px;\n overflow-y: auto;\n}\n\n.scroll:active::-webkit-scrollbar-thumb,\n.scroll:focus::-webkit-scrollbar-thumb,\n.scroll:hover::-webkit-scrollbar-thumb {\n visibility: visible;\n}\n.scroll::-webkit-scrollbar-thumb {\n background-color: darkgrey;\n visibility: hidden;\n}\n\n.scroll::-webkit-scrollbar {\n width: 8px;\n height: 8px;\n}\n","import { Component, ComponentInterface, h, Prop, State, Element, Host, Event, EventEmitter, Listen } from '@stencil/core';\nimport { tv } from 'tailwind-variants';\n\n@Component({\n tag: 'bcm-dropdown',\n styleUrl: 'dropdown.css',\n shadow: true,\n})\nexport class Dropdown implements ComponentInterface {\n @Element() host: HTMLElement;\n\n @Prop() text?: string;\n\n @State() isReady: boolean = false;\n\n @State() dropdownItems: HTMLBcmDropdownItemElement[] = [];\n\n protected buttonRef?: HTMLBcmButtonElement;\n\n @Event({\n composed: false,\n bubbles: false,\n cancelable: true,\n eventName: 'bcmDropdownChange',\n })\n bcmDropdownChange: EventEmitter<any>;\n\n componentDidLoad() {\n const button = this.host.shadowRoot.querySelector('bcm-button') as HTMLBcmButtonElement;\n if (button) {\n this.buttonRef = button;\n this.isReady = true;\n }\n }\n\n @Listen('bcmDropDownItemChange', { capture: true })\n handleDropdownItemChange(event: CustomEvent) {\n const { element, selected } = event?.detail;\n\n this.dropdownItems?.forEach(item => {\n if (item != element) {\n item.selected = false;\n }\n });\n\n this.bcmDropdownChange.emit({\n element: element,\n selected,\n });\n }\n\n private dropdownClass = tv({\n base: 'dropdown flex flex-col items-center min-w-[--dropdown-box-min-weight] shadow-3 max-w-[--dropdown-box-max-weight] max-h-[--dropdown-box-max-height] w-full bg-[--dropdown-box-background-color] rounded-lg py-1.5 scroll',\n });\n\n private handleSlotChange = () => {\n this.dropdownItems = Array.from(this.host.querySelectorAll('bcm-dropdown-item'));\n\n if (this.dropdownItems.length === 0) {\n console.warn('No dropdown items found in dropdown component');\n }\n };\n\n render() {\n return (\n <Host>\n <bcm-button kind=\"outline\">\n <span part=\"text\">{this.text}</span>\n </bcm-button>\n {this.isReady && (\n <bcm-linked targetElement={this.buttonRef}>\n <div part=\"dropdown-container\" class={this.dropdownClass()}>\n <slot onSlotchange={this.handleSlotChange}></slot>\n </div>\n </bcm-linked>\n )}\n </Host>\n );\n }\n}\n"],"version":3}
@@ -1,7 +1,8 @@
1
- import { r as registerInstance, c as createEvent, h, g as getElement } from './index-27cc1bac.js';
1
+ import { r as registerInstance, c as createEvent, h, g as getElement } from './index-8571fbf7.js';
2
2
  import { c as ce } from './index-f3b17e60.js';
3
3
  import { c as classNames } from './index-097075ad.js';
4
- import { g as generateId, s as setValidationMessages, a as getValidationMessage, d as defaultValidationMessages } from './validation-messages-a29d53be.js';
4
+ import { g as generateId } from './generate-id-3b2fcb93.js';
5
+ import { s as setValidationMessages, g as getValidationMessage, d as defaultValidationMessages } from './validation-messages-af4512f0.js';
5
6
 
6
7
  const defaultIcons = {
7
8
  'search': 'fa-regular fa-magnifying-glass',
@@ -29,7 +30,7 @@ const checkSlotContent = (element, slotName) => {
29
30
  return assignedNodes.length > 0;
30
31
  };
31
32
 
32
- 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}.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-between{justify-content:space-between}.gap-2{gap:.5rem}.text-ellipsis{text-overflow:ellipsis}.rounded{border-radius:.25rem}.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)}";
33
+ 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}.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-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)}";
33
34
  const BcmInputStyle0 = inputCss;
34
35
 
35
36
  const BcmInput = class {
@@ -275,14 +276,14 @@ const BcmInput = class {
275
276
  medium: 16,
276
277
  large: 18,
277
278
  }[this.size];
278
- return (h("div", { key: '16027ed2f475a50578b117a3683521f85e230679', class: "bcm-ui-element" }, this.label && (h("label", { key: 'c5cc664264a8c4a10a6d76b436bd7d8182c177c0', class: classNames('input-label font-medium', {
279
+ return (h("div", { key: 'a0fa86f738a07e475cd809c9abe8bd7aa5f50d2e', class: "bcm-ui-element" }, this.label && (h("label", { key: 'b2715f3669bf51b2bc93b29a4ce78fc84d6a8fec', class: classNames('input-label font-medium', {
279
280
  'text-color-label': !this.disabled,
280
281
  'text-color-disabled': this.disabled,
281
282
  }, {
282
283
  'text-size-3': this.size === 'small',
283
284
  'text-size-4': this.size === 'medium',
284
285
  'text-size-5': this.size === 'large',
285
- }), htmlFor: inputId }, h("slot", { key: '45628e044e789a9b14620d53a4df5474550f359b', name: "label" }, this.label), this.required && h("span", { key: '8e04bc0e5f05e2b4f9061cb4d42c0238bc35130f' }, "*"))), h("div", { key: '7be51bae7a14d41afeb850283a784f6b3f03f543', class: base() }, (this.hasSlotContent('prefix') || this.prefixIcon || this.getDefaultIconForType()) && (h("div", { key: '4d1af4117603a1d59fe31046fb6211023d1262cb', class: "flex items-center gap-2 px-2" }, (this.prefixIcon || this.getDefaultIconForType()) && (h("bcm-icon", { key: 'e24c083434cbc7c434af1b029dd61e8d868e940d', class: "prefix-icon", "icon-name": this.prefixIcon || this.getDefaultIconForType(), size: iconSize })), h("slot", { key: 'bb8bde1293d13181732213203b176f19c42d8f4b', name: "prefix" }))), h("input", { key: 'b39040649ad32e6a966fe0828380a5971fba624d', 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) && (h("div", { key: '76005ada0408cab0591b96df36126cbf6e97b3c0', class: "flex items-center gap-2 px-2" }, h("slot", { key: '72276115112f969c220a66dee52ab03edf49164a', name: "suffix" }), this.suffixIcon && h("bcm-icon", { key: 'cc29fc8350d49f7b967ad94ee309dfe0c57cfde8', class: "suffix-icon", "icon-name": this.suffixIcon, size: iconSize })))), (this.captionText || this.internalErrorMessage || this.validationMessage) && (h("div", { key: '9918268a982a1e36f51a1220d6f39f4f111bf3bc', class: classNames('input-caption-text font-regular mt-1', {
286
+ }), htmlFor: inputId }, h("slot", { key: '26f991e1bad25cc2f074b9259320cc555c3d4bd9', name: "label" }, this.label), this.required && h("span", { key: '0b5a332b842ece285b093b2474e7dd376530d613' }, "*"))), h("div", { key: 'f4b1d4087e2bdfb07c140170e4e59e10c2163535', class: base() }, (this.hasSlotContent('prefix') || this.prefixIcon || this.getDefaultIconForType()) && (h("div", { key: 'dcc49ae6c4ad4795d1f10f85065e44cb061fce0e', class: "flex items-center gap-2 px-2" }, (this.prefixIcon || this.getDefaultIconForType()) && (h("bcm-icon", { key: 'c56c06852192dcfc4e7d3df24851afc31804b6b9', class: "prefix-icon", "icon-name": this.prefixIcon || this.getDefaultIconForType(), size: iconSize })), h("slot", { key: '29bd74d28492d5e95b4c3155b3c5a9fed3671a2a', name: "prefix" }))), h("input", { key: '21a06d459d5f68be085d46580134ea4718192d89', 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) && (h("div", { key: 'd3852234f0410ed5ceb7df79c2645a97c45afac2', class: "flex items-center gap-2 px-2" }, h("slot", { key: '1e280c327b4791631c3dda4f3ec49706b8a88300', name: "suffix" }), this.suffixIcon && h("bcm-icon", { key: 'd0d14a9d2c7ce1be1de030afb661866b7bf60546', class: "suffix-icon", "icon-name": this.suffixIcon, size: iconSize })))), (this.captionText || this.internalErrorMessage || this.validationMessage) && (h("div", { key: '4408fc79afa594d8a932898f13573395ae33cccd', class: classNames('input-caption-text font-regular mt-1', {
286
287
  'text-[--bcm-ui-color-text-caption]': !this.disabled && this.internalStatus === 'default',
287
288
  'text-[--bcm-ui-color-text-error]': !this.disabled && (this.internalStatus === 'error' || !this.isValid),
288
289
  'text-[--bcm-ui-color-text-success]': !this.disabled && this.internalStatus === 'success',
@@ -1 +1 @@
1
- {"file":"bcm-input.entry.js","mappings":";;;;;AAIO,MAAM,YAAY,GAAG;IAC1B,QAAQ,EAAE,gCAAgC;IAC1C,OAAO,EAAE,wBAAwB;IACjC,KAAK,EAAE,qBAAqB;IAC5B,KAAK,EAAE,oBAAoB;IAC3B,MAAM,EAAE,wBAAwB;IAChC,MAAM,EAAE,qBAAqB;IAC7B,gBAAgB,EAAE,8BAA8B;IAChD,UAAU,EAAE,oBAAoB;CACxB;;ACbV;;;;;;AAMO,MAAM,gBAAgB,GAAG,CAAC,OAAoB,EAAE,QAAgB;;IACrE,MAAM,IAAI,GAAG,MAAA,OAAO,CAAC,UAAU,0CAAE,aAAa,CAAC,cAAc,QAAQ,IAAI,CAAoB,CAAC;IAC9F,IAAI,CAAC,IAAI;QAAE,OAAO,KAAK,CAAC;IAExB,MAAM,aAAa,GAAG,IAAI,CAAC,aAAa,EAAE,CAAC;IAC3C,OAAO,aAAa,CAAC,MAAM,GAAG,CAAC,CAAC;AAClC,CAAC;;ACZD,MAAM,QAAQ,GAAG,i0OAAi0O,CAAC;AACn1O,uBAAe,QAAQ;;MCYV,QAAQ;IALrB;;;;;;;;QASW,cAAS,GAAG,KAAK,CAAC;QAElB,YAAO,GAAG,IAAI,CAAC;QACf,mBAAc,GAAgB,SAAS,CAAC;;QAKjD,UAAK,GAAW,EAAE,CAAC;;QAYnB,QAAG,GAAY,UAAU,CAAC,OAAO,CAAC,CAAC;;QAInC,SAAI,GAAc,QAAQ,CAAC;;QAI3B,WAAM,GAAgB,SAAS,CAAC;;QAIhC,cAAS,GAAG,KAAK,CAAC;;QAIlB,SAAI,GAAc,MAAM,CAAC;;QAIzB,aAAQ,GAAG,KAAK,CAAC;;QAIjB,aAAQ,GAAG,KAAK,CAAC;;QAIjB,aAAQ,GAAG,KAAK,CAAC;;;;QA8Dj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AAC,QAAQ,KAAK,IAAI,CAAC,cAAc,KAAK,OAAO,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC;gBACxG,oCAAoC,EAAE,CAAC,IAAI,CAAC,QAAQ,IAAI,IAAI,CAAC,cAAc,KAAK,SAAS;gBACzF,oCAAoC,EAAE,CAAC,IAAI,CAAC,QAAQ,IAAI,IAAI,CAAC,cAAc,KAAK,SAAS;gBACzF,iCAAiC,EAAE,CAAC,IAAI,CAAC,QAAQ,IAAI,IAAI,CAAC,cAAc,KAAK,MAAM;gBACnF,qCAAqC,EAAE,IAAI,CAAC,QAAQ;aACrD,EACD;gBACE,aAAa,EAAE,IAAI,CAAC,IAAI,KAAK,OAAO;gBACpC,aAAa,EAAE,IAAI,CAAC,IAAI,KAAK,QAAQ;gBACrC,aAAa,EAAE,IAAI,CAAC,IAAI,KAAK,OAAO;aACrC,CACF,IAEA,CAAC,IAAI,CAAC,OAAO,GAAG,IAAI,CAAC,iBAAiB,GAAG,IAAI,CAAC,cAAc,KAAK,OAAO,GAAG,IAAI,CAAC,oBAAoB,GAAG,IAAI,CAAC,WAAW,CACpH,CACP,CACG,EACN;KACH;;;;;;;;;;;;","names":["tv"],"sources":["src/components/input/types.ts","src/utils/slot/check-slot-content.ts","src/components/input/input.scss?tag=bcm-input&encapsulation=shadow","src/components/input/input.component.tsx"],"sourcesContent":["export type InputSize = 'small' | 'medium' | 'large';\nexport type InputStatus = 'default' | 'error' | 'success' | 'warning' | 'info';\nexport type InputType = 'text' | 'password' | 'email' | 'number' | 'tel' | 'url' | 'search' | 'date' | 'time' | 'datetime-local';\n\nexport const defaultIcons = {\n 'search': 'fa-regular fa-magnifying-glass',\n 'email': 'fa-regular fa-envelope',\n 'tel': 'fa-regular fa-phone',\n 'url': 'fa-regular fa-link',\n 'date': 'fa-regular fa-calendar',\n 'time': 'fa-regular fa-clock',\n 'datetime-local': 'fa-regular fa-calendar-clock',\n 'password': 'fa-regular fa-lock',\n} as const;\n","/**\n * Checks if a named slot has any content\n * @param element - The host element (component instance)\n * @param slotName - Name of the slot to check\n * @returns boolean indicating if the slot has any assigned nodes\n */\nexport const checkSlotContent = (element: HTMLElement, slotName: string): boolean => {\n const slot = element.shadowRoot?.querySelector(`slot[name=\"${slotName}\"]`) as HTMLSlotElement;\n if (!slot) return false;\n\n const assignedNodes = slot.assignedNodes();\n return assignedNodes.length > 0;\n};\n",":host {\n display: inline-block;\n}\n","import { Component, Prop, h, Event, EventEmitter, Method, State, Watch, Element } from '@stencil/core';\nimport { InputSize, InputStatus, InputType, defaultIcons } from './types';\nimport { tv } from 'tailwind-variants';\nimport classNames from 'classnames';\nimport { generateId } from '../../utils/id/generate-id';\nimport { checkSlotContent } from '../../utils/slot/check-slot-content';\nimport { getValidationMessage, setValidationMessages, defaultValidationMessages } from '../../utils/validation-messages';\n\n@Component({\n tag: 'bcm-input',\n styleUrl: 'input.scss',\n shadow: true,\n})\nexport class BcmInput {\n @Element() el: HTMLElement;\n private inputRef: HTMLInputElement;\n\n @State() isFocused = false;\n @State() validationMessage: string;\n @State() isValid = true;\n @State() internalStatus: InputStatus = 'default';\n @State() internalErrorMessage: string;\n\n /** Input value */\n @Prop({ mutable: true, reflect: true })\n value: string = '';\n\n /** Input placeholder text */\n @Prop()\n placeholder?: string;\n\n /** Input name */\n @Prop()\n name?: string;\n\n /** Input id */\n @Prop({ attribute: 'id', reflect: true })\n _id?: string = generateId('input');\n\n /** Controls the input size */\n @Prop()\n size: InputSize = 'medium';\n\n /** Defines the input's status/state */\n @Prop()\n status: InputStatus = 'default';\n\n /** Full width input */\n @Prop({ attribute: 'full-width', reflect: true })\n fullWidth = false;\n\n /** HTML input type */\n @Prop()\n type: InputType = 'text';\n\n /** Whether the input is disabled */\n @Prop()\n disabled = false;\n\n /** Whether the input is readonly */\n @Prop()\n readonly = false;\n\n /** Whether the input is required */\n @Prop()\n required = false;\n\n /** Input autocomplete attribute */\n @Prop()\n autocomplete?: string;\n\n /** Min length for text input */\n @Prop()\n minLength?: number;\n\n /** Max length for text input */\n @Prop()\n maxLength?: number;\n\n /** Min value for number input */\n @Prop()\n min?: number;\n\n /** Max value for number input */\n @Prop()\n max?: number;\n\n /** Step value for number input */\n @Prop()\n step?: number;\n\n /** Pattern for validation */\n @Prop()\n pattern?: string;\n\n /** Input label for accessibility */\n @Prop()\n label?: string;\n\n /** Error message to display */\n @Prop()\n errorMessage?: string;\n\n /** Caption text to display below input */\n @Prop()\n captionText?: string;\n\n /** ID of associated label element */\n @Prop()\n labelledby?: string;\n\n /** ID of associated caption/error text element */\n @Prop()\n describedby?: string;\n\n /** Prefix icon class name */\n @Prop()\n prefixIcon?: string;\n\n /** Suffix icon class name */\n @Prop()\n suffixIcon?: string;\n\n /** Whether to use native form validation\n * If false, component will handle validation internally\n */\n @Prop()\n useNativeValidation = true;\n\n /** Custom validation function */\n @Prop()\n validator?: (value: string) => string | undefined;\n\n @Event({\n composed: false,\n bubbles: false,\n cancelable: true,\n })\n bcmInput: EventEmitter<InputEvent>;\n\n @Event({\n composed: false,\n bubbles: false,\n cancelable: true,\n })\n bcmChange: EventEmitter<Event>;\n\n @Event({\n composed: false,\n bubbles: false,\n cancelable: true,\n })\n bcmFocus: EventEmitter<FocusEvent>;\n\n @Event({\n composed: false,\n bubbles: false,\n cancelable: true,\n })\n bcmBlur: EventEmitter<FocusEvent>;\n\n @Event({\n composed: false,\n bubbles: false,\n cancelable: true,\n })\n bcmKeyDown: EventEmitter<KeyboardEvent>;\n\n @Event({\n composed: false,\n bubbles: false,\n cancelable: true,\n })\n bcmKeyUp: EventEmitter<KeyboardEvent>;\n\n @Watch('value')\n handleValueChange(newValue: string) {\n if (this.inputRef) {\n this.inputRef.value = newValue;\n }\n }\n\n @Watch('status')\n watchStatus(newValue: InputStatus) {\n this.internalStatus = newValue;\n }\n\n @Watch('errorMessage')\n watchErrorMessage(newValue: string) {\n this.internalErrorMessage = newValue;\n }\n\n @Method()\n async setFocus() {\n this.inputRef?.focus();\n }\n\n @Method()\n async setBlur() {\n this.inputRef?.blur();\n }\n\n @Method()\n async select() {\n this.inputRef?.select();\n }\n\n /** Sets locale and messages for all inputs */\n @Method()\n async setLocale(locale: string, messages: Record<string, string>) {\n // Set messages and update validation immediately\n setValidationMessages(locale, messages);\n\n // Mevcut validasyon mesajını güncelle\n if (!this.isValid) {\n this.validateInput();\n }\n }\n\n componentWillLoad() {\n // I18n için default mesajları set et\n setValidationMessages('en', defaultValidationMessages);\n this.internalStatus = this.status;\n this.internalErrorMessage = this.errorMessage;\n }\n\n private validateInput(): void {\n if (!this.inputRef) return;\n\n // Reset validation state\n this.isValid = true;\n this.validationMessage = '';\n\n const value = this.inputRef.value;\n\n // Required check\n if (this.required && !value) {\n this.isValid = false;\n this.validationMessage = getValidationMessage('required');\n this.internalStatus = 'error';\n this.internalErrorMessage = this.validationMessage;\n return;\n }\n\n // Minimum length check\n else if (this.minLength && value.length < this.minLength) {\n this.isValid = false;\n this.validationMessage = getValidationMessage('minlength', { min: this.minLength });\n }\n // Maximum length check\n else if (this.maxLength && value.length > this.maxLength) {\n this.isValid = false;\n this.validationMessage = getValidationMessage('maxlength', { max: this.maxLength });\n }\n // Pattern check\n else if (this.pattern && !new RegExp(this.pattern).test(value)) {\n this.isValid = false;\n this.validationMessage = getValidationMessage('pattern');\n }\n // Email check\n else if (this.type === 'email' && value && !/^[^\\s@]+@[^\\s@]+\\.[^\\s@]+$/.test(value)) {\n this.isValid = false;\n this.validationMessage = getValidationMessage('email');\n }\n // Number range check\n else if (this.type === 'number' && value) {\n const numValue = parseFloat(value);\n if (this.min !== undefined && numValue < this.min) {\n this.isValid = false;\n this.validationMessage = getValidationMessage('min', { min: this.min });\n } else if (this.max !== undefined && numValue > this.max) {\n this.isValid = false;\n this.validationMessage = getValidationMessage('max', { max: this.max });\n }\n }\n\n // Update component state\n this.internalStatus = this.isValid ? 'default' : 'error';\n this.internalErrorMessage = this.validationMessage;\n }\n\n private onInput = (event: InputEvent) => {\n const input = event.target as HTMLInputElement;\n this.value = input.value;\n this.bcmInput.emit(event);\n this.validateInput();\n };\n\n private onChange = (event: Event) => {\n this.bcmChange.emit(event);\n };\n\n private onFocus = (event: FocusEvent) => {\n this.isFocused = true;\n this.bcmFocus.emit(event);\n };\n\n private onBlur = (event: FocusEvent) => {\n this.isFocused = false;\n this.bcmBlur.emit(event);\n this.validateInput();\n };\n\n private onKeyDown = (event: KeyboardEvent) => {\n this.bcmKeyDown.emit(event);\n };\n\n private onKeyUp = (event: KeyboardEvent) => {\n this.bcmKeyUp.emit(event);\n };\n\n private hasSlotContent(slotName: string): boolean {\n return checkSlotContent(this.el, slotName);\n }\n\n private styleClass = tv(\n {\n slots: {\n base: [\n 'bcm-input bcm-input__container',\n 'bg-[--bcm-ui-color-background-base-default]',\n 'border border-solid rounded',\n 'flex items-center justify-between',\n 'transition-colors duration-200',\n 'px-2',\n ],\n inputClass: [\n 'input',\n 'w-full flex-1',\n 'border-0 outline-0 bg-transparent',\n 'appearance-none text-ellipsis',\n 'text-[--bcm-ui-color-text-default] placeholder:text-[--bcm-ui-color-text-placeholder] placeholder:font-normal',\n 'font-sans antialiased font-medium',\n 'px-1',\n ],\n },\n variants: {\n size: {\n small: {\n base: '',\n inputClass: 'text-size-4 h-6',\n },\n medium: {\n base: '',\n inputClass: 'text-size-5 h-8',\n },\n large: {\n base: '',\n inputClass: 'text-size-6 h-10',\n },\n },\n status: {\n default: {\n base: ['border-[--bcm-ui-color-border-default]', 'hover:border-[--bcm-ui-color-border-primary]', 'has-[:focus]:border-[--bcm-ui-color-border-primary]'],\n },\n error: {\n base: ['border-[--bcm-ui-color-border-error]', 'hover:border-[--bcm-ui-color-border-error]', 'has-[:focus]:border-[--bcm-ui-color-border-error]'],\n },\n success: {\n base: ['border-[--bcm-ui-color-border-success]', 'hover:border-[--bcm-ui-color-border-success]', 'has-[:focus]:border-[--bcm-ui-color-border-success]'],\n },\n warning: {\n base: ['border-[--bcm-ui-color-border-warning]', 'hover:border-[--bcm-ui-color-border-warning]', 'has-[:focus]:border-[--bcm-ui-color-border-warning]'],\n },\n info: {\n base: ['border-[--bcm-ui-color-border-info]', 'hover:border-[--bcm-ui-color-border-info]', 'has-[:focus]:border-[--bcm-ui-color-border-info]'],\n },\n },\n fullWidth: {\n true: 'full-width w-full',\n },\n disabled: {\n true: 'disabled cursor-not-allowed',\n false: '',\n },\n focused: {\n true: {\n base: '',\n },\n },\n },\n defaultVariants: {\n size: 'medium',\n status: 'default',\n fullWidth: false,\n disabled: false,\n focused: false,\n },\n },\n {\n twMerge: false,\n },\n );\n\n private getDefaultIconForType(): string | undefined {\n return defaultIcons[this.type as keyof typeof defaultIcons];\n }\n\n render() {\n const inputId = this._id + '-input' || this.name;\n\n const { base, inputClass } = this.styleClass({\n size: this.size,\n status: this.internalStatus,\n fullWidth: this.fullWidth,\n disabled: this.disabled,\n focused: this.isFocused,\n });\n\n const iconSize = {\n small: 14,\n medium: 16,\n large: 18,\n }[this.size];\n\n return (\n <div class=\"bcm-ui-element\">\n {this.label && (\n <label\n class={classNames(\n 'input-label font-medium',\n {\n 'text-color-label': !this.disabled,\n 'text-color-disabled': this.disabled,\n },\n {\n 'text-size-3': this.size === 'small',\n 'text-size-4': this.size === 'medium',\n 'text-size-5': this.size === 'large',\n },\n )}\n htmlFor={inputId}\n >\n <slot name=\"label\">{this.label}</slot>\n {this.required && <span>*</span>}\n </label>\n )}\n\n <div class={base()}>\n {(this.hasSlotContent('prefix') || this.prefixIcon || this.getDefaultIconForType()) && (\n <div class=\"flex items-center gap-2 px-2\">\n {(this.prefixIcon || this.getDefaultIconForType()) && (\n <bcm-icon class=\"prefix-icon\" icon-name={this.prefixIcon || this.getDefaultIconForType()} size={iconSize}></bcm-icon>\n )}\n <slot name=\"prefix\"></slot>\n </div>\n )}\n <input\n ref={el => (this.inputRef = el)}\n id={inputId}\n class={inputClass()}\n type={this.type}\n name={this.name}\n disabled={this.disabled}\n readonly={this.readonly}\n required={this.required}\n placeholder={this.placeholder}\n autocomplete={this.autocomplete}\n minlength={this.minLength}\n maxlength={this.maxLength}\n min={this.min}\n max={this.max}\n step={this.step}\n pattern={this.pattern}\n aria-invalid={this.status === 'error'}\n aria-required={this.required}\n aria-labelledby={this.labelledby}\n aria-describedby={this.describedby}\n value={this.value}\n onInput={this.onInput}\n onChange={this.onChange}\n onFocus={this.onFocus}\n onBlur={this.onBlur}\n onKeyDown={this.onKeyDown}\n onKeyUp={this.onKeyUp}\n />\n {(this.hasSlotContent('suffix') || this.suffixIcon) && (\n <div class=\"flex items-center gap-2 px-2\">\n <slot name=\"suffix\"></slot>\n {this.suffixIcon && <bcm-icon class=\"suffix-icon\" icon-name={this.suffixIcon} size={iconSize}></bcm-icon>}\n </div>\n )}\n </div>\n {(this.captionText || this.internalErrorMessage || this.validationMessage) && (\n <div\n class={classNames(\n 'input-caption-text font-regular mt-1',\n {\n 'text-[--bcm-ui-color-text-caption]': !this.disabled && this.internalStatus === 'default',\n 'text-[--bcm-ui-color-text-error]': !this.disabled && (this.internalStatus === 'error' || !this.isValid),\n 'text-[--bcm-ui-color-text-success]': !this.disabled && this.internalStatus === 'success',\n 'text-[--bcm-ui-color-text-warning]': !this.disabled && this.internalStatus === 'warning',\n 'text-[--bcm-ui-color-text-info]': !this.disabled && this.internalStatus === 'info',\n 'text-[--bcm-ui-color-text-disabled]': this.disabled,\n },\n {\n 'text-size-3': this.size === 'small',\n 'text-size-4': this.size === 'medium',\n 'text-size-5': this.size === 'large',\n },\n )}\n >\n {!this.isValid ? this.validationMessage : this.internalStatus === 'error' ? this.internalErrorMessage : this.captionText}\n </div>\n )}\n </div>\n );\n }\n}\n"],"version":3}
1
+ {"file":"bcm-input.entry.js","mappings":";;;;;;AAIO,MAAM,YAAY,GAAG;IAC1B,QAAQ,EAAE,gCAAgC;IAC1C,OAAO,EAAE,wBAAwB;IACjC,KAAK,EAAE,qBAAqB;IAC5B,KAAK,EAAE,oBAAoB;IAC3B,MAAM,EAAE,wBAAwB;IAChC,MAAM,EAAE,qBAAqB;IAC7B,g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nF,qCAAqC,EAAE,IAAI,CAAC,QAAQ;aACrD,EACD;gBACE,aAAa,EAAE,IAAI,CAAC,IAAI,KAAK,OAAO;gBACpC,aAAa,EAAE,IAAI,CAAC,IAAI,KAAK,QAAQ;gBACrC,aAAa,EAAE,IAAI,CAAC,IAAI,KAAK,OAAO;aACrC,CACF,IAEA,CAAC,IAAI,CAAC,OAAO,GAAG,IAAI,CAAC,iBAAiB,GAAG,IAAI,CAAC,cAAc,KAAK,OAAO,GAAG,IAAI,CAAC,oBAAoB,GAAG,IAAI,CAAC,WAAW,CACpH,CACP,CACG,EACN;KACH;;;;;;;;;;;;","names":["tv"],"sources":["src/components/input/types.ts","src/utils/slot/check-slot-content.ts","src/components/input/input.scss?tag=bcm-input&encapsulation=shadow","src/components/input/input.component.tsx"],"sourcesContent":["export type InputSize = 'small' | 'medium' | 'large';\nexport type InputStatus = 'default' | 'error' | 'success' | 'warning' | 'info';\nexport type InputType = 'text' | 'password' | 'email' | 'number' | 'tel' | 'url' | 'search' | 'date' | 'time' | 'datetime-local';\n\nexport const defaultIcons = {\n 'search': 'fa-regular fa-magnifying-glass',\n 'email': 'fa-regular fa-envelope',\n 'tel': 'fa-regular fa-phone',\n 'url': 'fa-regular fa-link',\n 'date': 'fa-regular fa-calendar',\n 'time': 'fa-regular fa-clock',\n 'datetime-local': 'fa-regular fa-calendar-clock',\n 'password': 'fa-regular fa-lock',\n} as const;\n","/**\n * Checks if a named slot has any content\n * @param element - The host element (component instance)\n * @param slotName - Name of the slot to check\n * @returns boolean indicating if the slot has any assigned nodes\n */\nexport const checkSlotContent = (element: HTMLElement, slotName: string): boolean => {\n const slot = element.shadowRoot?.querySelector(`slot[name=\"${slotName}\"]`) as HTMLSlotElement;\n if (!slot) return false;\n\n const assignedNodes = slot.assignedNodes();\n return assignedNodes.length > 0;\n};\n",":host {\n display: inline-block;\n}\n","import { Component, Prop, h, Event, EventEmitter, Method, State, Watch, Element } from '@stencil/core';\nimport { InputSize, InputStatus, InputType, defaultIcons } from './types';\nimport { tv } from 'tailwind-variants';\nimport classNames from 'classnames';\nimport { generateId } from '../../utils/id/generate-id';\nimport { checkSlotContent } from '../../utils/slot/check-slot-content';\nimport { getValidationMessage, setValidationMessages, defaultValidationMessages } from '../../utils/validation-messages';\n\n@Component({\n tag: 'bcm-input',\n styleUrl: 'input.scss',\n shadow: true,\n})\nexport class BcmInput {\n @Element() el: HTMLElement;\n private inputRef: HTMLInputElement;\n\n @State() isFocused = false;\n @State() validationMessage: string;\n @State() isValid = true;\n @State() internalStatus: InputStatus = 'default';\n @State() internalErrorMessage: string;\n\n /** Input value */\n @Prop({ mutable: true, reflect: true })\n value: string = '';\n\n /** Input placeholder text */\n @Prop()\n placeholder?: string;\n\n /** Input name */\n @Prop()\n name?: string;\n\n /** Input id */\n @Prop({ attribute: 'id', reflect: true })\n _id?: string = generateId('input');\n\n /** Controls the input size */\n @Prop()\n size: InputSize = 'medium';\n\n /** Defines the input's status/state */\n @Prop()\n status: InputStatus = 'default';\n\n /** Full width input */\n @Prop({ attribute: 'full-width', reflect: true })\n fullWidth = false;\n\n /** HTML input type */\n @Prop()\n type: InputType = 'text';\n\n /** Whether the input is disabled */\n @Prop()\n disabled = false;\n\n /** Whether the input is readonly */\n @Prop()\n readonly = false;\n\n /** Whether the input is required */\n @Prop()\n required = false;\n\n /** Input autocomplete attribute */\n @Prop()\n autocomplete?: string;\n\n /** Min length for text input */\n @Prop()\n minLength?: number;\n\n /** Max length for text input */\n @Prop()\n maxLength?: number;\n\n /** Min value for number input */\n @Prop()\n min?: number;\n\n /** Max value for number input */\n @Prop()\n max?: number;\n\n /** Step value for number input */\n @Prop()\n step?: number;\n\n /** Pattern for validation */\n @Prop()\n pattern?: string;\n\n /** Input label for accessibility */\n @Prop()\n label?: string;\n\n /** Error message to display */\n @Prop()\n errorMessage?: string;\n\n /** Caption text to display below input */\n @Prop()\n captionText?: string;\n\n /** ID of associated label element */\n @Prop()\n labelledby?: string;\n\n /** ID of associated caption/error text element */\n @Prop()\n describedby?: string;\n\n /** Prefix icon class name */\n @Prop()\n prefixIcon?: string;\n\n /** Suffix icon class name */\n @Prop()\n suffixIcon?: string;\n\n /** Whether to use native form validation\n * If false, component will handle validation internally\n */\n @Prop()\n useNativeValidation = true;\n\n /** Custom validation function */\n @Prop()\n validator?: (value: string) => string | undefined;\n\n @Event({\n composed: false,\n bubbles: false,\n cancelable: true,\n })\n bcmInput: EventEmitter<InputEvent>;\n\n @Event({\n composed: false,\n bubbles: false,\n cancelable: true,\n })\n bcmChange: EventEmitter<Event>;\n\n @Event({\n composed: false,\n bubbles: false,\n cancelable: true,\n })\n bcmFocus: EventEmitter<FocusEvent>;\n\n @Event({\n composed: false,\n bubbles: false,\n cancelable: true,\n })\n bcmBlur: EventEmitter<FocusEvent>;\n\n @Event({\n composed: false,\n bubbles: false,\n cancelable: true,\n })\n bcmKeyDown: EventEmitter<KeyboardEvent>;\n\n @Event({\n composed: false,\n bubbles: false,\n cancelable: true,\n })\n bcmKeyUp: EventEmitter<KeyboardEvent>;\n\n @Watch('value')\n handleValueChange(newValue: string) {\n if (this.inputRef) {\n this.inputRef.value = newValue;\n }\n }\n\n @Watch('status')\n watchStatus(newValue: InputStatus) {\n this.internalStatus = newValue;\n }\n\n @Watch('errorMessage')\n watchErrorMessage(newValue: string) {\n this.internalErrorMessage = newValue;\n }\n\n @Method()\n async setFocus() {\n this.inputRef?.focus();\n }\n\n @Method()\n async setBlur() {\n this.inputRef?.blur();\n }\n\n @Method()\n async select() {\n this.inputRef?.select();\n }\n\n /** Sets locale and messages for all inputs */\n @Method()\n async setLocale(locale: string, messages: Record<string, string>) {\n // Set messages and update validation immediately\n setValidationMessages(locale, messages);\n\n // Mevcut validasyon mesajını güncelle\n if (!this.isValid) {\n this.validateInput();\n }\n }\n\n componentWillLoad() {\n // I18n için default mesajları set et\n setValidationMessages('en', defaultValidationMessages);\n this.internalStatus = this.status;\n this.internalErrorMessage = this.errorMessage;\n }\n\n private validateInput(): void {\n if (!this.inputRef) return;\n\n // Reset validation state\n this.isValid = true;\n this.validationMessage = '';\n\n const value = this.inputRef.value;\n\n // Required check\n if (this.required && !value) {\n this.isValid = false;\n this.validationMessage = getValidationMessage('required');\n this.internalStatus = 'error';\n this.internalErrorMessage = this.validationMessage;\n return;\n }\n\n // Minimum length check\n else if (this.minLength && value.length < this.minLength) {\n this.isValid = false;\n this.validationMessage = getValidationMessage('minlength', { min: this.minLength });\n }\n // Maximum length check\n else if (this.maxLength && value.length > this.maxLength) {\n this.isValid = false;\n this.validationMessage = getValidationMessage('maxlength', { max: this.maxLength });\n }\n // Pattern check\n else if (this.pattern && !new RegExp(this.pattern).test(value)) {\n this.isValid = false;\n this.validationMessage = getValidationMessage('pattern');\n }\n // Email check\n else if (this.type === 'email' && value && !/^[^\\s@]+@[^\\s@]+\\.[^\\s@]+$/.test(value)) {\n this.isValid = false;\n this.validationMessage = getValidationMessage('email');\n }\n // Number range check\n else if (this.type === 'number' && value) {\n const numValue = parseFloat(value);\n if (this.min !== undefined && numValue < this.min) {\n this.isValid = false;\n this.validationMessage = getValidationMessage('min', { min: this.min });\n } else if (this.max !== undefined && numValue > this.max) {\n this.isValid = false;\n this.validationMessage = getValidationMessage('max', { max: this.max });\n }\n }\n\n // Update component state\n this.internalStatus = this.isValid ? 'default' : 'error';\n this.internalErrorMessage = this.validationMessage;\n }\n\n private onInput = (event: InputEvent) => {\n const input = event.target as HTMLInputElement;\n this.value = input.value;\n this.bcmInput.emit(event);\n this.validateInput();\n };\n\n private onChange = (event: Event) => {\n this.bcmChange.emit(event);\n };\n\n private onFocus = (event: FocusEvent) => {\n this.isFocused = true;\n this.bcmFocus.emit(event);\n };\n\n private onBlur = (event: FocusEvent) => {\n this.isFocused = false;\n this.bcmBlur.emit(event);\n this.validateInput();\n };\n\n private onKeyDown = (event: KeyboardEvent) => {\n this.bcmKeyDown.emit(event);\n };\n\n private onKeyUp = (event: KeyboardEvent) => {\n this.bcmKeyUp.emit(event);\n };\n\n private hasSlotContent(slotName: string): boolean {\n return checkSlotContent(this.el, slotName);\n }\n\n private styleClass = tv(\n {\n slots: {\n base: [\n 'bcm-input bcm-input__container',\n 'bg-[--bcm-ui-color-background-base-default]',\n 'border border-solid rounded',\n 'flex items-center justify-between',\n 'transition-colors duration-200',\n 'px-2',\n ],\n inputClass: [\n 'input',\n 'w-full flex-1',\n 'border-0 outline-0 bg-transparent',\n 'appearance-none text-ellipsis',\n 'text-[--bcm-ui-color-text-default] placeholder:text-[--bcm-ui-color-text-placeholder] placeholder:font-normal',\n 'font-sans antialiased font-medium',\n 'px-1',\n ],\n },\n variants: {\n size: {\n small: {\n base: '',\n inputClass: 'text-size-4 h-6',\n },\n medium: {\n base: '',\n inputClass: 'text-size-5 h-8',\n },\n large: {\n base: '',\n inputClass: 'text-size-6 h-10',\n },\n },\n status: {\n default: {\n base: ['border-[--bcm-ui-color-border-default]', 'hover:border-[--bcm-ui-color-border-primary]', 'has-[:focus]:border-[--bcm-ui-color-border-primary]'],\n },\n error: {\n base: ['border-[--bcm-ui-color-border-error]', 'hover:border-[--bcm-ui-color-border-error]', 'has-[:focus]:border-[--bcm-ui-color-border-error]'],\n },\n success: {\n base: ['border-[--bcm-ui-color-border-success]', 'hover:border-[--bcm-ui-color-border-success]', 'has-[:focus]:border-[--bcm-ui-color-border-success]'],\n },\n warning: {\n base: ['border-[--bcm-ui-color-border-warning]', 'hover:border-[--bcm-ui-color-border-warning]', 'has-[:focus]:border-[--bcm-ui-color-border-warning]'],\n },\n info: {\n base: ['border-[--bcm-ui-color-border-info]', 'hover:border-[--bcm-ui-color-border-info]', 'has-[:focus]:border-[--bcm-ui-color-border-info]'],\n },\n },\n fullWidth: {\n true: 'full-width w-full',\n },\n disabled: {\n true: 'disabled cursor-not-allowed',\n false: '',\n },\n focused: {\n true: {\n base: '',\n },\n },\n },\n defaultVariants: {\n size: 'medium',\n status: 'default',\n fullWidth: false,\n disabled: false,\n focused: false,\n },\n },\n {\n twMerge: false,\n },\n );\n\n private getDefaultIconForType(): string | undefined {\n return defaultIcons[this.type as keyof typeof defaultIcons];\n }\n\n render() {\n const inputId = this._id + '-input' || this.name;\n\n const { base, inputClass } = this.styleClass({\n size: this.size,\n status: this.internalStatus,\n fullWidth: this.fullWidth,\n disabled: this.disabled,\n focused: this.isFocused,\n });\n\n const iconSize = {\n small: 14,\n medium: 16,\n large: 18,\n }[this.size];\n\n return (\n <div class=\"bcm-ui-element\">\n {this.label && (\n <label\n class={classNames(\n 'input-label font-medium',\n {\n 'text-color-label': !this.disabled,\n 'text-color-disabled': this.disabled,\n },\n {\n 'text-size-3': this.size === 'small',\n 'text-size-4': this.size === 'medium',\n 'text-size-5': this.size === 'large',\n },\n )}\n htmlFor={inputId}\n >\n <slot name=\"label\">{this.label}</slot>\n {this.required && <span>*</span>}\n </label>\n )}\n\n <div class={base()}>\n {(this.hasSlotContent('prefix') || this.prefixIcon || this.getDefaultIconForType()) && (\n <div class=\"flex items-center gap-2 px-2\">\n {(this.prefixIcon || this.getDefaultIconForType()) && (\n <bcm-icon class=\"prefix-icon\" icon-name={this.prefixIcon || this.getDefaultIconForType()} size={iconSize}></bcm-icon>\n )}\n <slot name=\"prefix\"></slot>\n </div>\n )}\n <input\n ref={el => (this.inputRef = el)}\n id={inputId}\n class={inputClass()}\n type={this.type}\n name={this.name}\n disabled={this.disabled}\n readonly={this.readonly}\n required={this.required}\n placeholder={this.placeholder}\n autocomplete={this.autocomplete}\n minlength={this.minLength}\n maxlength={this.maxLength}\n min={this.min}\n max={this.max}\n step={this.step}\n pattern={this.pattern}\n aria-invalid={this.status === 'error'}\n aria-required={this.required}\n aria-labelledby={this.labelledby}\n aria-describedby={this.describedby}\n value={this.value}\n onInput={this.onInput}\n onChange={this.onChange}\n onFocus={this.onFocus}\n onBlur={this.onBlur}\n onKeyDown={this.onKeyDown}\n onKeyUp={this.onKeyUp}\n />\n {(this.hasSlotContent('suffix') || this.suffixIcon) && (\n <div class=\"flex items-center gap-2 px-2\">\n <slot name=\"suffix\"></slot>\n {this.suffixIcon && <bcm-icon class=\"suffix-icon\" icon-name={this.suffixIcon} size={iconSize}></bcm-icon>}\n </div>\n )}\n </div>\n {(this.captionText || this.internalErrorMessage || this.validationMessage) && (\n <div\n class={classNames(\n 'input-caption-text font-regular mt-1',\n {\n 'text-[--bcm-ui-color-text-caption]': !this.disabled && this.internalStatus === 'default',\n 'text-[--bcm-ui-color-text-error]': !this.disabled && (this.internalStatus === 'error' || !this.isValid),\n 'text-[--bcm-ui-color-text-success]': !this.disabled && this.internalStatus === 'success',\n 'text-[--bcm-ui-color-text-warning]': !this.disabled && this.internalStatus === 'warning',\n 'text-[--bcm-ui-color-text-info]': !this.disabled && this.internalStatus === 'info',\n 'text-[--bcm-ui-color-text-disabled]': this.disabled,\n },\n {\n 'text-size-3': this.size === 'small',\n 'text-size-4': this.size === 'medium',\n 'text-size-5': this.size === 'large',\n },\n )}\n >\n {!this.isValid ? this.validationMessage : this.internalStatus === 'error' ? this.internalErrorMessage : this.captionText}\n </div>\n )}\n </div>\n );\n }\n}\n"],"version":3}