bromcom-ui-next 0.1.4 → 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 (395) 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-3b607038.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-385fa0f3.entry.js +2 -0
  15. package/dist/bromcom-ui/p-385fa0f3.entry.js.map +1 -0
  16. package/dist/bromcom-ui/p-389f1976.entry.js +2 -0
  17. package/dist/bromcom-ui/p-389f1976.entry.js.map +1 -0
  18. package/dist/bromcom-ui/p-3b230145.entry.js +2 -0
  19. package/dist/bromcom-ui/p-3b230145.entry.js.map +1 -0
  20. package/dist/bromcom-ui/p-49b0e982.entry.js +2 -0
  21. package/dist/bromcom-ui/p-49b0e982.entry.js.map +1 -0
  22. package/dist/bromcom-ui/p-55c4263c.entry.js +2 -0
  23. package/dist/bromcom-ui/p-55c4263c.entry.js.map +1 -0
  24. package/dist/bromcom-ui/{p-ebed10d5.entry.js → p-58ee24a8.entry.js} +2 -2
  25. package/dist/bromcom-ui/{p-ebed10d5.entry.js.map → p-58ee24a8.entry.js.map} +1 -1
  26. package/dist/bromcom-ui/p-729a870f.js.map +1 -1
  27. package/dist/bromcom-ui/p-9551c35e.entry.js +2 -0
  28. package/dist/bromcom-ui/p-9551c35e.entry.js.map +1 -0
  29. package/dist/bromcom-ui/p-9594cebb.js +2 -0
  30. package/dist/bromcom-ui/p-9594cebb.js.map +1 -0
  31. package/dist/bromcom-ui/p-98c76392.entry.js +2 -0
  32. package/dist/bromcom-ui/p-98c76392.entry.js.map +1 -0
  33. package/dist/bromcom-ui/p-a29e61a4.entry.js +2 -0
  34. package/dist/bromcom-ui/{p-cd437280.entry.js.map → p-a29e61a4.entry.js.map} +1 -1
  35. package/dist/bromcom-ui/p-ba2410ef.js +2 -0
  36. package/dist/bromcom-ui/p-ba2410ef.js.map +1 -0
  37. package/dist/bromcom-ui/p-bd0f7e78.entry.js +2 -0
  38. package/dist/bromcom-ui/p-bd0f7e78.entry.js.map +1 -0
  39. package/dist/bromcom-ui/p-bf69fc8a.entry.js +2 -0
  40. package/dist/bromcom-ui/p-bf69fc8a.entry.js.map +1 -0
  41. package/dist/bromcom-ui/{p-5d0838e9.entry.js → p-c1161950.entry.js} +2 -2
  42. package/dist/bromcom-ui/{p-5d0838e9.entry.js.map → p-c1161950.entry.js.map} +1 -1
  43. package/dist/bromcom-ui/p-c2b3945e.entry.js +2 -0
  44. package/dist/bromcom-ui/p-c2b3945e.entry.js.map +1 -0
  45. package/dist/bromcom-ui/p-c427ffee.entry.js +2 -0
  46. package/dist/bromcom-ui/{p-dcea8d62.entry.js.map → p-c427ffee.entry.js.map} +1 -1
  47. package/dist/bromcom-ui/p-c444235a.entry.js +2 -0
  48. package/dist/bromcom-ui/p-c444235a.entry.js.map +1 -0
  49. package/dist/bromcom-ui/p-c995a48c.entry.js +2 -0
  50. package/dist/bromcom-ui/p-c995a48c.entry.js.map +1 -0
  51. package/dist/bromcom-ui/p-c9b736d9.js +3 -0
  52. package/dist/{cjs/index-4795c073.js.map → bromcom-ui/p-c9b736d9.js.map} +1 -1
  53. package/dist/bromcom-ui/p-cd271b49.entry.js +2 -0
  54. package/dist/bromcom-ui/p-cd271b49.entry.js.map +1 -0
  55. package/dist/bromcom-ui/p-cee68279.entry.js +2 -0
  56. package/dist/bromcom-ui/{p-1d86c1cf.entry.js.map → p-cee68279.entry.js.map} +1 -1
  57. package/dist/bromcom-ui/{p-a590f793.entry.js → p-d57587e5.entry.js} +2 -2
  58. package/dist/bromcom-ui/{p-a590f793.entry.js.map → p-d57587e5.entry.js.map} +1 -1
  59. package/dist/bromcom-ui/p-e89ab4a7.entry.js +2 -0
  60. package/dist/bromcom-ui/p-e89ab4a7.entry.js.map +1 -0
  61. package/dist/bromcom-ui/{p-1b11150b.entry.js → p-f2d8aa70.entry.js} +2 -2
  62. package/dist/bromcom-ui/{p-1b11150b.entry.js.map → p-f2d8aa70.entry.js.map} +1 -1
  63. package/dist/bromcom-ui/p-f4e8a47d.entry.js +2 -0
  64. package/dist/bromcom-ui/p-f4e8a47d.entry.js.map +1 -0
  65. package/dist/cjs/app-globals-29edfda4.js.map +1 -1
  66. package/dist/cjs/bcm-accordion-group.cjs.entry.js +2 -2
  67. package/dist/cjs/bcm-accordion-group.cjs.entry.js.map +1 -1
  68. package/dist/cjs/bcm-accordion.cjs.entry.js +2 -2
  69. package/dist/cjs/bcm-accordion.cjs.entry.js.map +1 -1
  70. package/dist/cjs/bcm-alert.cjs.entry.js +2 -2
  71. package/dist/cjs/bcm-alert.cjs.entry.js.map +1 -1
  72. package/dist/cjs/bcm-avatar_4.cjs.entry.js +13 -7
  73. package/dist/cjs/bcm-avatar_4.cjs.entry.js.map +1 -1
  74. package/dist/cjs/bcm-button-group.cjs.entry.js +97 -0
  75. package/dist/cjs/bcm-button-group.cjs.entry.js.map +1 -0
  76. package/dist/cjs/bcm-checkbox.cjs.entry.js +226 -0
  77. package/dist/cjs/bcm-checkbox.cjs.entry.js.map +1 -0
  78. package/dist/cjs/bcm-chip.cjs.entry.js +3 -3
  79. package/dist/cjs/bcm-chip.cjs.entry.js.map +1 -1
  80. package/dist/cjs/bcm-divider.cjs.entry.js +3 -3
  81. package/dist/cjs/bcm-divider.cjs.entry.js.map +1 -1
  82. package/dist/cjs/bcm-dropdown-item.cjs.entry.js +63 -0
  83. package/dist/cjs/bcm-dropdown-item.cjs.entry.js.map +1 -0
  84. package/dist/cjs/bcm-dropdown.cjs.entry.js +56 -0
  85. package/dist/cjs/bcm-dropdown.cjs.entry.js.map +1 -0
  86. package/dist/cjs/bcm-input.cjs.entry.js +7 -6
  87. package/dist/cjs/bcm-input.cjs.entry.js.map +1 -1
  88. package/dist/cjs/bcm-linked.cjs.entry.js +91 -0
  89. package/dist/cjs/bcm-linked.cjs.entry.js.map +1 -0
  90. package/dist/cjs/bcm-pop-confirm.cjs.entry.js +252 -0
  91. package/dist/cjs/bcm-pop-confirm.cjs.entry.js.map +1 -0
  92. package/dist/cjs/bcm-popover.cjs.entry.js +191 -0
  93. package/dist/cjs/bcm-popover.cjs.entry.js.map +1 -0
  94. package/dist/cjs/bcm-radio-group.cjs.entry.js +171 -0
  95. package/dist/cjs/bcm-radio-group.cjs.entry.js.map +1 -0
  96. package/dist/cjs/bcm-radio.cjs.entry.js +173 -0
  97. package/dist/cjs/bcm-radio.cjs.entry.js.map +1 -0
  98. package/dist/cjs/bcm-segmented-picker-option.cjs.entry.js +109 -0
  99. package/dist/cjs/bcm-segmented-picker-option.cjs.entry.js.map +1 -0
  100. package/dist/cjs/bcm-segmented-picker.cjs.entry.js +146 -0
  101. package/dist/cjs/bcm-segmented-picker.cjs.entry.js.map +1 -0
  102. package/dist/cjs/bcm-switch.cjs.entry.js +188 -0
  103. package/dist/cjs/bcm-switch.cjs.entry.js.map +1 -0
  104. package/dist/cjs/bcm-tabs-content.cjs.entry.js +22 -0
  105. package/dist/cjs/bcm-tabs-content.cjs.entry.js.map +1 -0
  106. package/dist/cjs/bcm-tabs-list.cjs.entry.js +43 -0
  107. package/dist/cjs/bcm-tabs-list.cjs.entry.js.map +1 -0
  108. package/dist/cjs/bcm-tabs-trigger.cjs.entry.js +92 -0
  109. package/dist/cjs/bcm-tabs-trigger.cjs.entry.js.map +1 -0
  110. package/dist/cjs/bcm-tabs.cjs.entry.js +211 -0
  111. package/dist/cjs/bcm-tabs.cjs.entry.js.map +1 -0
  112. package/dist/cjs/bcm-text.cjs.entry.js +3 -3
  113. package/dist/cjs/bcm-text.cjs.entry.js.map +1 -1
  114. package/dist/cjs/bcm-textarea.cjs.entry.js +8 -7
  115. package/dist/cjs/bcm-textarea.cjs.entry.js.map +1 -1
  116. package/dist/cjs/bcm-tooltip.cjs.entry.js +187 -0
  117. package/dist/cjs/bcm-tooltip.cjs.entry.js.map +1 -0
  118. package/dist/cjs/bromcom-ui.cjs.js +2 -2
  119. package/dist/cjs/floating-ui.dom.esm-3ec8404c.js +2085 -0
  120. package/dist/cjs/floating-ui.dom.esm-3ec8404c.js.map +1 -0
  121. package/dist/{components/p-31354aaa.js → cjs/generate-id-f6982042.js} +4 -47
  122. package/dist/cjs/generate-id-f6982042.js.map +1 -0
  123. package/dist/cjs/{index-4795c073.js → index-9a2c5938.js} +36 -7
  124. package/dist/{bromcom-ui/p-15fe392b.js.map → cjs/index-9a2c5938.js.map} +1 -1
  125. package/dist/cjs/loader.cjs.js +2 -2
  126. package/dist/cjs/validation-messages-18389279.js +52 -0
  127. package/dist/cjs/validation-messages-18389279.js.map +1 -0
  128. package/dist/collection/collection-manifest.json +18 -1
  129. package/dist/collection/components/accordion/accordion.css +1 -1
  130. package/dist/collection/components/accordion-group/accordion-group.css +1 -1
  131. package/dist/collection/components/alert/alert.css +1 -1
  132. package/dist/collection/components/avatar/avatar.css +1 -1
  133. package/dist/collection/components/badge/badge.css +1 -1
  134. package/dist/collection/components/basic-badge/basic-badge.css +1 -1
  135. package/dist/collection/components/button/button.component.js +33 -2
  136. package/dist/collection/components/button/button.component.js.map +1 -1
  137. package/dist/collection/components/button/button.css +1 -1
  138. package/dist/collection/components/button/types.js.map +1 -1
  139. package/dist/collection/components/button-group/button-group.component.js +252 -0
  140. package/dist/collection/components/button-group/button-group.component.js.map +1 -0
  141. package/dist/collection/components/button-group/button-group.css +1 -0
  142. package/dist/collection/components/button-group/types.js +2 -0
  143. package/dist/collection/components/button-group/types.js.map +1 -0
  144. package/dist/collection/components/checkbox/checkbox.component.js +440 -0
  145. package/dist/collection/components/checkbox/checkbox.component.js.map +1 -0
  146. package/dist/collection/components/checkbox/checkbox.css +1 -0
  147. package/dist/collection/components/chip/chip.component.js +1 -1
  148. package/dist/collection/components/chip/chip.css +1 -1
  149. package/dist/collection/components/divider/divider.component.js +1 -1
  150. package/dist/collection/components/divider/divider.css +1 -1
  151. package/dist/collection/components/dropdown/dropdown.component.js +110 -0
  152. package/dist/collection/components/dropdown/dropdown.component.js.map +1 -0
  153. package/dist/collection/components/dropdown/dropdown.css +1 -0
  154. package/dist/collection/components/dropdown-item/dropdown-item.component.js +198 -0
  155. package/dist/collection/components/dropdown-item/dropdown-item.component.js.map +1 -0
  156. package/dist/collection/components/dropdown-item/dropdown-item.css +1 -0
  157. package/dist/collection/components/input/input.component.js +2 -2
  158. package/dist/collection/components/input/input.css +1 -1
  159. package/dist/collection/components/linked/linked.component.js +140 -0
  160. package/dist/collection/components/linked/linked.component.js.map +1 -0
  161. package/dist/collection/components/linked/linked.css +1 -0
  162. package/dist/collection/components/pop-confirm/pop-confirm.component.js +629 -0
  163. package/dist/collection/components/pop-confirm/pop-confirm.component.js.map +1 -0
  164. package/dist/collection/components/pop-confirm/pop-confirm.css +1 -0
  165. package/dist/collection/components/popover/popover.component.js +477 -0
  166. package/dist/collection/components/popover/popover.component.js.map +1 -0
  167. package/dist/collection/components/popover/popover.css +1 -0
  168. package/dist/collection/components/radio/radio.component.js +502 -0
  169. package/dist/collection/components/radio/radio.component.js.map +1 -0
  170. package/dist/collection/components/radio/radio.css +1 -0
  171. package/dist/collection/components/radio-group/radio-group.component.js +523 -0
  172. package/dist/collection/components/radio-group/radio-group.component.js.map +1 -0
  173. package/dist/collection/components/radio-group/radio-group.css +1 -0
  174. package/dist/collection/components/segmented-picker/segmented-picker-option.component.js +253 -0
  175. package/dist/collection/components/segmented-picker/segmented-picker-option.component.js.map +1 -0
  176. package/dist/collection/components/segmented-picker/segmented-picker-option.css +1 -0
  177. package/dist/collection/components/segmented-picker/segmented-picker.component.js +269 -0
  178. package/dist/collection/components/segmented-picker/segmented-picker.component.js.map +1 -0
  179. package/dist/collection/components/segmented-picker/segmented-picker.css +1 -0
  180. package/dist/collection/components/segmented-picker/types.js +2 -0
  181. package/dist/collection/components/segmented-picker/types.js.map +1 -0
  182. package/dist/collection/components/switch/switch.component.js +452 -0
  183. package/dist/collection/components/switch/switch.component.js.map +1 -0
  184. package/dist/collection/components/switch/switch.css +1 -0
  185. package/dist/collection/components/tabs/bcm-tabs.css +1 -0
  186. package/dist/collection/components/tabs/tabs-content.component.js +46 -0
  187. package/dist/collection/components/tabs/tabs-content.component.js.map +1 -0
  188. package/dist/collection/components/tabs/tabs-content.css +1 -0
  189. package/dist/collection/components/tabs/tabs-list.component.js +46 -0
  190. package/dist/collection/components/tabs/tabs-list.component.js.map +1 -0
  191. package/dist/collection/components/tabs/tabs-list.css +1 -0
  192. package/dist/collection/components/tabs/tabs-trigger.component.js +195 -0
  193. package/dist/collection/components/tabs/tabs-trigger.component.js.map +1 -0
  194. package/dist/collection/components/tabs/tabs-trigger.css +1 -0
  195. package/dist/collection/components/tabs/tabs.component.js +422 -0
  196. package/dist/collection/components/tabs/tabs.component.js.map +1 -0
  197. package/dist/collection/components/text/text.component.js +1 -1
  198. package/dist/collection/components/text/text.css +1 -1
  199. package/dist/collection/components/textarea/textarea.component.js +3 -3
  200. package/dist/collection/components/textarea/textarea.css +1 -1
  201. package/dist/collection/components/tooltip/tooltip.component.js +385 -0
  202. package/dist/collection/components/tooltip/tooltip.component.js.map +1 -0
  203. package/dist/collection/components/tooltip/tooltip.css +1 -0
  204. package/dist/collection/styles/theme-variables.js +29 -0
  205. package/dist/collection/styles/theme-variables.js.map +1 -1
  206. package/dist/components/bcm-accordion-group.js +2 -2
  207. package/dist/components/bcm-accordion-group.js.map +1 -1
  208. package/dist/components/bcm-accordion.js +2 -2
  209. package/dist/components/bcm-accordion.js.map +1 -1
  210. package/dist/components/bcm-alert.js +2 -2
  211. package/dist/components/bcm-alert.js.map +1 -1
  212. package/dist/components/bcm-avatar.js +3 -3
  213. package/dist/components/bcm-avatar.js.map +1 -1
  214. package/dist/components/bcm-badge.js +1 -1
  215. package/dist/components/bcm-basic-badge.js +2 -2
  216. package/dist/components/bcm-basic-badge.js.map +1 -1
  217. package/dist/components/bcm-button-group.d.ts +11 -0
  218. package/dist/components/bcm-button-group.js +120 -0
  219. package/dist/components/bcm-button-group.js.map +1 -0
  220. package/dist/components/bcm-button.js +1 -327
  221. package/dist/components/bcm-button.js.map +1 -1
  222. package/dist/components/bcm-checkbox.d.ts +11 -0
  223. package/dist/components/bcm-checkbox.js +256 -0
  224. package/dist/components/bcm-checkbox.js.map +1 -0
  225. package/dist/components/bcm-chip.js +3 -3
  226. package/dist/components/bcm-chip.js.map +1 -1
  227. package/dist/components/bcm-divider.js +3 -3
  228. package/dist/components/bcm-divider.js.map +1 -1
  229. package/dist/components/bcm-dropdown-item.d.ts +11 -0
  230. package/dist/components/bcm-dropdown-item.js +85 -0
  231. package/dist/components/bcm-dropdown-item.js.map +1 -0
  232. package/dist/components/bcm-dropdown.d.ts +11 -0
  233. package/dist/components/bcm-dropdown.js +87 -0
  234. package/dist/components/bcm-dropdown.js.map +1 -0
  235. package/dist/components/bcm-input.js +6 -5
  236. package/dist/components/bcm-input.js.map +1 -1
  237. package/dist/components/bcm-linked.d.ts +11 -0
  238. package/dist/components/bcm-linked.js +8 -0
  239. package/dist/components/bcm-linked.js.map +1 -0
  240. package/dist/components/bcm-pop-confirm.d.ts +11 -0
  241. package/dist/components/bcm-pop-confirm.js +288 -0
  242. package/dist/components/bcm-pop-confirm.js.map +1 -0
  243. package/dist/components/bcm-popover.d.ts +11 -0
  244. package/dist/components/bcm-popover.js +216 -0
  245. package/dist/components/bcm-popover.js.map +1 -0
  246. package/dist/components/bcm-radio-group.d.ts +11 -0
  247. package/dist/components/bcm-radio-group.js +200 -0
  248. package/dist/components/bcm-radio-group.js.map +1 -0
  249. package/dist/components/bcm-radio.d.ts +11 -0
  250. package/dist/components/bcm-radio.js +198 -0
  251. package/dist/components/bcm-radio.js.map +1 -0
  252. package/dist/components/bcm-segmented-picker-option.d.ts +11 -0
  253. package/dist/components/bcm-segmented-picker-option.js +131 -0
  254. package/dist/components/bcm-segmented-picker-option.js.map +1 -0
  255. package/dist/components/bcm-segmented-picker.d.ts +11 -0
  256. package/dist/components/bcm-segmented-picker.js +170 -0
  257. package/dist/components/bcm-segmented-picker.js.map +1 -0
  258. package/dist/components/bcm-switch.d.ts +11 -0
  259. package/dist/components/bcm-switch.js +215 -0
  260. package/dist/components/bcm-switch.js.map +1 -0
  261. package/dist/components/bcm-tabs-content.d.ts +11 -0
  262. package/dist/components/bcm-tabs-content.js +39 -0
  263. package/dist/components/bcm-tabs-content.js.map +1 -0
  264. package/dist/components/bcm-tabs-list.d.ts +11 -0
  265. package/dist/components/bcm-tabs-list.js +58 -0
  266. package/dist/components/bcm-tabs-list.js.map +1 -0
  267. package/dist/components/bcm-tabs-trigger.d.ts +11 -0
  268. package/dist/components/bcm-tabs-trigger.js +112 -0
  269. package/dist/components/bcm-tabs-trigger.js.map +1 -0
  270. package/dist/components/bcm-tabs.d.ts +11 -0
  271. package/dist/components/bcm-tabs.js +239 -0
  272. package/dist/components/bcm-tabs.js.map +1 -0
  273. package/dist/components/bcm-text.js +3 -3
  274. package/dist/components/bcm-text.js.map +1 -1
  275. package/dist/components/bcm-textarea.js +7 -6
  276. package/dist/components/bcm-textarea.js.map +1 -1
  277. package/dist/components/bcm-tooltip.d.ts +11 -0
  278. package/dist/components/bcm-tooltip.js +211 -0
  279. package/dist/components/bcm-tooltip.js.map +1 -0
  280. package/dist/components/index.js +1 -1
  281. package/dist/components/p-13a245f6.js +48 -0
  282. package/dist/components/p-13a245f6.js.map +1 -0
  283. package/dist/components/{p-39637e05.js → p-49f20ff7.js} +3 -3
  284. package/dist/components/{p-39637e05.js.map → p-49f20ff7.js.map} +1 -1
  285. package/dist/components/{p-13582168.js → p-5377117d.js} +32 -6
  286. package/dist/components/p-5377117d.js.map +1 -0
  287. package/dist/components/p-5f7a0d0d.js +107 -0
  288. package/dist/components/p-5f7a0d0d.js.map +1 -0
  289. package/dist/components/p-9594cebb.js +2078 -0
  290. package/dist/components/p-9594cebb.js.map +1 -0
  291. package/dist/{esm/validation-messages-a29d53be.js → components/p-ba2410ef.js} +2 -47
  292. package/dist/components/p-ba2410ef.js.map +1 -0
  293. package/dist/components/p-c3a60937.js +338 -0
  294. package/dist/components/p-c3a60937.js.map +1 -0
  295. package/dist/esm/app-globals-bfa07b76.js.map +1 -1
  296. package/dist/esm/bcm-accordion-group.entry.js +2 -2
  297. package/dist/esm/bcm-accordion-group.entry.js.map +1 -1
  298. package/dist/esm/bcm-accordion.entry.js +2 -2
  299. package/dist/esm/bcm-accordion.entry.js.map +1 -1
  300. package/dist/esm/bcm-alert.entry.js +2 -2
  301. package/dist/esm/bcm-alert.entry.js.map +1 -1
  302. package/dist/esm/bcm-avatar_4.entry.js +13 -7
  303. package/dist/esm/bcm-avatar_4.entry.js.map +1 -1
  304. package/dist/esm/bcm-button-group.entry.js +93 -0
  305. package/dist/esm/bcm-button-group.entry.js.map +1 -0
  306. package/dist/esm/bcm-checkbox.entry.js +222 -0
  307. package/dist/esm/bcm-checkbox.entry.js.map +1 -0
  308. package/dist/esm/bcm-chip.entry.js +3 -3
  309. package/dist/esm/bcm-chip.entry.js.map +1 -1
  310. package/dist/esm/bcm-divider.entry.js +3 -3
  311. package/dist/esm/bcm-divider.entry.js.map +1 -1
  312. package/dist/esm/bcm-dropdown-item.entry.js +59 -0
  313. package/dist/esm/bcm-dropdown-item.entry.js.map +1 -0
  314. package/dist/esm/bcm-dropdown.entry.js +52 -0
  315. package/dist/esm/bcm-dropdown.entry.js.map +1 -0
  316. package/dist/esm/bcm-input.entry.js +6 -5
  317. package/dist/esm/bcm-input.entry.js.map +1 -1
  318. package/dist/esm/bcm-linked.entry.js +87 -0
  319. package/dist/esm/bcm-linked.entry.js.map +1 -0
  320. package/dist/esm/bcm-pop-confirm.entry.js +248 -0
  321. package/dist/esm/bcm-pop-confirm.entry.js.map +1 -0
  322. package/dist/esm/bcm-popover.entry.js +187 -0
  323. package/dist/esm/bcm-popover.entry.js.map +1 -0
  324. package/dist/esm/bcm-radio-group.entry.js +167 -0
  325. package/dist/esm/bcm-radio-group.entry.js.map +1 -0
  326. package/dist/esm/bcm-radio.entry.js +169 -0
  327. package/dist/esm/bcm-radio.entry.js.map +1 -0
  328. package/dist/esm/bcm-segmented-picker-option.entry.js +105 -0
  329. package/dist/esm/bcm-segmented-picker-option.entry.js.map +1 -0
  330. package/dist/esm/bcm-segmented-picker.entry.js +142 -0
  331. package/dist/esm/bcm-segmented-picker.entry.js.map +1 -0
  332. package/dist/esm/bcm-switch.entry.js +184 -0
  333. package/dist/esm/bcm-switch.entry.js.map +1 -0
  334. package/dist/esm/bcm-tabs-content.entry.js +18 -0
  335. package/dist/esm/bcm-tabs-content.entry.js.map +1 -0
  336. package/dist/esm/bcm-tabs-list.entry.js +39 -0
  337. package/dist/esm/bcm-tabs-list.entry.js.map +1 -0
  338. package/dist/esm/bcm-tabs-trigger.entry.js +88 -0
  339. package/dist/esm/bcm-tabs-trigger.entry.js.map +1 -0
  340. package/dist/esm/bcm-tabs.entry.js +207 -0
  341. package/dist/esm/bcm-tabs.entry.js.map +1 -0
  342. package/dist/esm/bcm-text.entry.js +3 -3
  343. package/dist/esm/bcm-text.entry.js.map +1 -1
  344. package/dist/esm/bcm-textarea.entry.js +7 -6
  345. package/dist/esm/bcm-textarea.entry.js.map +1 -1
  346. package/dist/esm/bcm-tooltip.entry.js +183 -0
  347. package/dist/esm/bcm-tooltip.entry.js.map +1 -0
  348. package/dist/esm/bromcom-ui.js +3 -3
  349. package/dist/esm/floating-ui.dom.esm-480e0f15.js +2078 -0
  350. package/dist/esm/floating-ui.dom.esm-480e0f15.js.map +1 -0
  351. package/dist/{cjs/validation-messages-c36e5c31.js → esm/generate-id-3b2fcb93.js} +2 -52
  352. package/dist/esm/generate-id-3b2fcb93.js.map +1 -0
  353. package/dist/esm/{index-27cc1bac.js → index-8571fbf7.js} +36 -8
  354. package/dist/esm/index-8571fbf7.js.map +1 -0
  355. package/dist/esm/loader.js +3 -3
  356. package/dist/esm/validation-messages-af4512f0.js +48 -0
  357. package/dist/esm/validation-messages-af4512f0.js.map +1 -0
  358. package/dist/types/components/button/button.component.d.ts +3 -1
  359. package/dist/types/components/button/types.d.ts +4 -4
  360. package/dist/types/components/button-group/button-group.component.d.ts +25 -0
  361. package/dist/types/components/button-group/types.d.ts +2 -0
  362. package/dist/types/components/checkbox/checkbox.component.d.ts +99 -0
  363. package/dist/types/components/dropdown/dropdown.component.d.ts +14 -0
  364. package/dist/types/components/dropdown-item/dropdown-item.component.d.ts +14 -0
  365. package/dist/types/components/linked/linked.component.d.ts +16 -0
  366. package/dist/types/components/pop-confirm/pop-confirm.component.d.ts +195 -0
  367. package/dist/types/components/popover/popover.component.d.ts +118 -0
  368. package/dist/types/components/radio/radio.component.d.ts +105 -0
  369. package/dist/types/components/radio-group/radio-group.component.d.ts +124 -0
  370. package/dist/types/components/segmented-picker/segmented-picker-option.component.d.ts +30 -0
  371. package/dist/types/components/segmented-picker/segmented-picker.component.d.ts +35 -0
  372. package/dist/types/components/segmented-picker/types.d.ts +1 -0
  373. package/dist/types/components/switch/switch.component.d.ts +62 -0
  374. package/dist/types/components/tabs/tabs-content.component.d.ts +13 -0
  375. package/dist/types/components/tabs/tabs-list.component.d.ts +12 -0
  376. package/dist/types/components/tabs/tabs-trigger.component.d.ts +41 -0
  377. package/dist/types/components/tabs/tabs.component.d.ts +88 -0
  378. package/dist/types/components/tooltip/tooltip.component.d.ts +86 -0
  379. package/dist/types/components.d.ts +2495 -649
  380. package/dist/types/styles/theme-variables.d.ts +29 -0
  381. package/package.json +2 -1
  382. package/dist/bromcom-ui/p-04f6d730.entry.js +0 -2
  383. package/dist/bromcom-ui/p-04f6d730.entry.js.map +0 -1
  384. package/dist/bromcom-ui/p-15fe392b.js +0 -3
  385. package/dist/bromcom-ui/p-1d86c1cf.entry.js +0 -2
  386. package/dist/bromcom-ui/p-31354aaa.js +0 -2
  387. package/dist/bromcom-ui/p-31354aaa.js.map +0 -1
  388. package/dist/bromcom-ui/p-3b607038.entry.js +0 -2
  389. package/dist/bromcom-ui/p-cd437280.entry.js +0 -2
  390. package/dist/bromcom-ui/p-dcea8d62.entry.js +0 -2
  391. package/dist/cjs/validation-messages-c36e5c31.js.map +0 -1
  392. package/dist/components/p-13582168.js.map +0 -1
  393. package/dist/components/p-31354aaa.js.map +0 -1
  394. package/dist/esm/index-27cc1bac.js.map +0 -1
  395. package/dist/esm/validation-messages-a29d53be.js.map +0 -1
@@ -0,0 +1 @@
1
+ {"file":"validation-messages-af4512f0.js","mappings":"MAEa,IAAI;IAIf,OAAO,WAAW,CAAC,MAAc,EAAE,QAAgC;QACjE,IAAI,CAAC,QAAQ,CAAC,MAAM,CAAC,GAAG,QAAQ,CAAC;QACjC,IAAI,CAAC,aAAa,GAAG,MAAM,CAAC;;KAE7B;IAED,OAAO,SAAS,CAAC,MAAc;QAC7B,IAAI,IAAI,CAAC,QAAQ,CAAC,MAAM,CAAC,EAAE;YACzB,IAAI,CAAC,aAAa,GAAG,MAAM,CAAC;;YAE5B,OAAO,CAAC,GAAG,CAAC,2BAA2B,MAAM,EAAE,CAAC,CAAC;SAClD;aAAM;YACL,OAAO,CAAC,IAAI,CAAC,WAAW,MAAM,yBAAyB,CAAC,CAAC;SAC1D;KACF;IAED,OAAO,CAAC,CAAC,GAAW,EAAE,IAA0B;;QAC9C,MAAM,OAAO,GAAG,CAAA,MAAA,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,aAAa,CAAC,0CAAG,GAAG,CAAC,KAAI,GAAG,CAAC;QAChE,IAAI,CAAC,IAAI;YAAE,OAAO,OAAO,CAAC;QAE1B,OAAO,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,MAAM,CAAC,CAAC,GAAG,EAAE,CAAC,GAAG,EAAE,KAAK,CAAC;YACnD,OAAO,GAAG,CAAC,OAAO,CAAC,IAAI,MAAM,CAAC,IAAI,GAAG,GAAG,EAAE,GAAG,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC;SAChE,EAAE,OAAO,CAAC,CAAC;KACb;;AA1Bc,aAAQ,GAA2C,EAAE,CAAC;AACtD,kBAAa,GAAG,IAAI;;MCFxB,yBAAyB,GAAG;IACvC,KAAK,EAAE,oCAAoC;IAC3C,QAAQ,EAAE,wBAAwB;IAClC,SAAS,EAAE,wCAAwC;IACnD,SAAS,EAAE,4CAA4C;IACvD,GAAG,EAAE,8BAA8B;IACnC,GAAG,EAAE,6BAA6B;IAClC,OAAO,EAAE,6BAA6B;EACtC;MAEW,qBAAqB,GAAG,CAAC,MAAc,EAAE,QAAmD;IACvG,IAAI,CAAC,WAAW,CAAC,MAAM,kCAAO,yBAAyB,GAAK,QAAQ,EAAG,CAAC;AAC1E,EAAE;MAEW,oBAAoB,GAAG,CAAC,IAA4C,EAAE,IAAsC;IACvH,OAAO,IAAI,CAAC,CAAC,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;AAC5B;;;;","names":[],"sources":["src/utils/i18n.ts","src/utils/validation-messages.ts"],"sourcesContent":["export type MessageTemplateData = Record<string, string | number>;\n\nexport class I18n {\n private static messages: Record<string, Record<string, string>> = {};\n private static currentLocale = 'en';\n\n static setMessages(locale: string, messages: Record<string, string>) {\n this.messages[locale] = messages;\n this.currentLocale = locale; // Mesajları set ederken locale'i de güncelle\n // console.log(`I18n messages set for locale: ${locale}`, messages);\n }\n\n static setLocale(locale: string) {\n if (this.messages[locale]) {\n this.currentLocale = locale;\n // Locale değiştiğinde console'a bilgi ver (development için)\n console.log(`I18n locale changed to: ${locale}`);\n } else {\n console.warn(`Locale '${locale}' not found in messages`);\n }\n }\n\n static t(key: string, data?: MessageTemplateData): string {\n const message = this.messages[this.currentLocale]?.[key] || key;\n if (!data) return message;\n\n return Object.entries(data).reduce((msg, [key, value]) => {\n return msg.replace(new RegExp(`{${key}}`, 'g'), String(value));\n }, message);\n }\n}\n","import { I18n } from './i18n';\n\nexport const defaultValidationMessages = {\n email: 'Please enter a valid email address',\n required: 'This field is required',\n minlength: 'Please enter at least {min} characters',\n maxlength: 'Please enter no more than {max} characters',\n min: 'Value must be at least {min}',\n max: 'Value must be at most {max}',\n pattern: 'Please enter a valid format',\n};\n\nexport const setValidationMessages = (locale: string, messages: Partial<typeof defaultValidationMessages>) => {\n I18n.setMessages(locale, { ...defaultValidationMessages, ...messages });\n};\n\nexport const getValidationMessage = (type: keyof typeof defaultValidationMessages, data?: Record<string, string | number>) => {\n return I18n.t(type, data);\n};\n"],"version":3}
@@ -1,5 +1,5 @@
1
1
  import { EventEmitter } from '../../stencil-public-runtime';
2
- import { ButtonKind, ButtonSize, ButtonType, ButtonStatus, ButtonVariant, IconPosition } from './types';
2
+ import { ButtonKind, ButtonSize, ButtonType, ButtonStatus, ButtonVariant, IconPosition, ButtonPosition } from './types';
3
3
  export declare class BcmButton {
4
4
  /** Defines the main visual style of the button */
5
5
  kind: ButtonKind;
@@ -9,6 +9,8 @@ export declare class BcmButton {
9
9
  status: ButtonStatus;
10
10
  /** Predefined button variants */
11
11
  variant?: ButtonVariant;
12
+ /** Button position in button group (first, middle, last) */
13
+ position?: ButtonPosition;
12
14
  /** Icon class name */
13
15
  icon?: string;
14
16
  /** Icon placement (prefix/suffix) */
@@ -3,13 +3,13 @@ export type ButtonSize = 'small' | 'medium' | 'large';
3
3
  export type ButtonType = 'button' | 'reset' | 'submit';
4
4
  export type ButtonStatus = 'default' | 'success' | 'error' | 'warning' | 'info';
5
5
  export type IconPosition = 'prefix' | 'suffix';
6
- interface ButtonVariantConfig {
6
+ export type ButtonPosition = 'first' | 'middle' | 'last' | null;
7
+ export interface VariantOption {
7
8
  text: string;
8
- status: ButtonStatus;
9
9
  icon?: string;
10
10
  iconPosition?: IconPosition;
11
+ status?: ButtonStatus;
11
12
  kind?: ButtonKind;
12
13
  }
13
- export declare const variantOptions: Record<string, ButtonVariantConfig>;
14
+ export declare const variantOptions: Record<string, VariantOption>;
14
15
  export type ButtonVariant = keyof typeof variantOptions;
15
- export {};
@@ -0,0 +1,25 @@
1
+ import { ComponentInterface } from '../../stencil-public-runtime';
2
+ import { ButtonKind, ButtonSize, ButtonStatus } from '../button/types';
3
+ export declare class BcmButtonGroup implements ComponentInterface {
4
+ host: HTMLElement;
5
+ /** Defines the main visual style of buttons */
6
+ kind?: ButtonKind;
7
+ /** Controls the button size */
8
+ size?: ButtonSize;
9
+ /** Defines the button's status/state color */
10
+ status?: ButtonStatus;
11
+ /** Full width buttons */
12
+ fullWidth?: boolean;
13
+ /** Loading state */
14
+ loading?: boolean;
15
+ /** Disabled state */
16
+ disabled?: boolean;
17
+ /** Button orientation */
18
+ orientation: 'horizontal' | 'vertical';
19
+ componentDidLoad(): void;
20
+ componentDidUpdate(): void;
21
+ private applyPropertiesToButtons;
22
+ private setButtonPositions;
23
+ private buttonGroupClass;
24
+ render(): any;
25
+ }
@@ -0,0 +1,2 @@
1
+ export type ButtonGroupGap = 'small' | 'medium' | 'large';
2
+ export type ButtonGroupOrientation = 'horizontal' | 'vertical';
@@ -0,0 +1,99 @@
1
+ import { ComponentInterface, EventEmitter } from '../../stencil-public-runtime';
2
+ /**
3
+ * @description A checkbox component that allows users to select or deselect an option.
4
+ * It also supports an indeterminate state.
5
+ */
6
+ export declare class Checkbox implements ComponentInterface {
7
+ /** Reference to the host element */
8
+ el: HTMLElement;
9
+ /**
10
+ * Unique ID for the component. Automatically generated if not specified.
11
+ */
12
+ _id?: string;
13
+ /**
14
+ * Label text to display next to the checkbox
15
+ */
16
+ label?: string;
17
+ /**
18
+ * Name attribute for the checkbox when used in a form
19
+ */
20
+ name: string;
21
+ /**
22
+ * Determines if the checkbox is in an indeterminate state.
23
+ * This is useful when some items in a group of checkboxes are selected and others are not.
24
+ */
25
+ indeterminate: boolean;
26
+ /**
27
+ * Size variant of the checkbox
28
+ */
29
+ size: 'small' | 'medium' | 'large';
30
+ /**
31
+ * Determines if the checkbox is checked
32
+ */
33
+ checked: boolean;
34
+ /**
35
+ * Indicates if the checkbox is in an error state.
36
+ * This affects the visual styling of the component.
37
+ */
38
+ error: boolean;
39
+ /**
40
+ * Determines if the checkbox is disabled
41
+ */
42
+ disabled: boolean;
43
+ /**
44
+ * Controls the position of the label relative to the checkbox
45
+ */
46
+ labelPosition: 'left' | 'right';
47
+ /**
48
+ * Internal state to track checked status
49
+ */
50
+ internalChecked: boolean;
51
+ /**
52
+ * Event emitted when the checked state changes
53
+ */
54
+ bcmCheckboxChange: EventEmitter<{
55
+ element: any;
56
+ checked: boolean;
57
+ }>;
58
+ /** Reference to the underlying input element */
59
+ private inputElement;
60
+ /**
61
+ * Lifecycle method that runs before the component first renders.
62
+ * Initializes the internal checked state.
63
+ */
64
+ componentWillLoad(): void;
65
+ /**
66
+ * Lifecycle method that runs after the component has rendered.
67
+ * Updates the indeterminate state of the input element.
68
+ */
69
+ componentDidLoad(): void;
70
+ /**
71
+ * Watches for changes to the checked prop and updates the internal state
72
+ * @param newValue The new checked value
73
+ */
74
+ syncCheckedProp(newValue: boolean | undefined): void;
75
+ /**
76
+ * Watches for changes to indeterminate and internalChecked states
77
+ * Updates the input element accordingly
78
+ */
79
+ updateIndeterminateState(): void;
80
+ /**
81
+ * Handles change events on the checkbox
82
+ * Updates state and emits the change event
83
+ */
84
+ private handleChange;
85
+ /**
86
+ * Returns the CSS custom properties based on component state
87
+ * @returns Object with CSS custom properties
88
+ */
89
+ private getStyles;
90
+ /**
91
+ * Tailwind Variants definition for the component
92
+ * Configures styling based on component props
93
+ */
94
+ private classes;
95
+ /**
96
+ * Renders the checkbox component
97
+ */
98
+ render(): any;
99
+ }
@@ -0,0 +1,14 @@
1
+ import { ComponentInterface, EventEmitter } from '../../stencil-public-runtime';
2
+ export declare class Dropdown implements ComponentInterface {
3
+ host: HTMLElement;
4
+ text?: string;
5
+ isReady: boolean;
6
+ dropdownItems: HTMLBcmDropdownItemElement[];
7
+ protected buttonRef?: HTMLBcmButtonElement;
8
+ bcmDropdownChange: EventEmitter<any>;
9
+ componentDidLoad(): void;
10
+ handleDropdownItemChange(event: CustomEvent): void;
11
+ private dropdownClass;
12
+ private handleSlotChange;
13
+ render(): any;
14
+ }
@@ -0,0 +1,14 @@
1
+ import { ComponentInterface, EventEmitter } from '../../stencil-public-runtime';
2
+ export declare class DropdownItem implements ComponentInterface {
3
+ host: HTMLElement;
4
+ text: string;
5
+ icon: string;
6
+ rightIcons: string[];
7
+ selected: boolean;
8
+ error: boolean;
9
+ disabled: boolean;
10
+ bcmDropDownItemChange: EventEmitter<any>;
11
+ private handleClick;
12
+ private dropdownItemClass;
13
+ render(): any;
14
+ }
@@ -0,0 +1,16 @@
1
+ import { ComponentInterface } from "../../stencil-public-runtime";
2
+ export declare class BcmLinked implements ComponentInterface {
3
+ host: HTMLElement;
4
+ targetId: string;
5
+ targetElement?: HTMLElement;
6
+ isVisible: boolean;
7
+ private floatingEl?;
8
+ private targetEl?;
9
+ componentDidLoad(): void;
10
+ private updatePosition;
11
+ private show;
12
+ private hide;
13
+ private toggle;
14
+ render(): any;
15
+ disconnectedCallback(): void;
16
+ }
@@ -0,0 +1,195 @@
1
+ import { EventEmitter, ComponentInterface } from '../../stencil-public-runtime';
2
+ import { type Placement } from '@floating-ui/dom';
3
+ /**
4
+ * @component BcmPopConfirm
5
+ * @description A floating confirmation pop-up component that prompts users for action confirmation, triggered by click or hover events.
6
+ * Offers customizable header, body content, and footer areas through slots, with accessibility and positioning features.
7
+ *
8
+ * @example Basic usage
9
+ * <bcm-pop-confirm target-id="trigger-btn" placement="right" header-text="Confirm Action" description="Are you sure?" confirm-text="Yes" cancel-text="No" status="warning"></bcm-pop-confirm>
10
+ *
11
+ * @example With all slots and custom styling
12
+ * <bcm-pop-confirm target-id="trigger-btn" placement="left" header-text="Delete Item" description="Are you sure you want to delete this item?" confirm-text="Delete" cancel-text="Cancel" status="error" arrow-color="#ffffff">
13
+ * <span slot="header">Custom Header Text</span>
14
+ * <span slot="body">Additional details here</span>
15
+ * <span slot="footer">Custom Footer Action</span>
16
+ * </bcm-pop-confirm>
17
+ *
18
+ * @example Event handling
19
+ * // Listen to confirmation events
20
+ * const popConfirm = document.querySelector('bcm-pop-confirm');
21
+ * popConfirm.addEventListener('bcmConfirm', () => {
22
+ * console.log('User confirmed the action!');
23
+ * });
24
+ * popConfirm.addEventListener('bcmCancel', () => {
25
+ * console.log('User canceled the action!');
26
+ * });
27
+ *
28
+ * // Programmatically control pop-up
29
+ * await popConfirm.show(); // Show the pop-up
30
+ * await popConfirm.hide(); // Hide the pop-up
31
+ *
32
+ * @prop {string} arrowColor - The color of the arrow pointing to the trigger element (default: 'var(--bcm-ui-color-background-basic-panel)')
33
+ * @prop {string} cancelText - Text displayed on the cancel button (default: 'Cancel')
34
+ * @prop {string} confirmText - Text displayed on the confirm button (default: 'Yes')
35
+ * @prop {string} description - The description or body content of the pop-up (default: '')
36
+ * @prop {string} headerText - The header text displayed at the top of the pop-up (default: '')
37
+ * @prop {Placement} placement - The placement position of the pop-up relative to the trigger (default: 'right')
38
+ * @prop {('small' | 'medium' | 'large')} size - The size of the pop-up, determining its dimensions (default: 'medium')
39
+ * @prop {('info' | 'error' | 'warning' | 'success' | 'default')} status - The status of the pop-up, affecting its icon and color (default: 'info')
40
+ * @prop {boolean} statusIcon - Whether to display a status icon based on the `status` prop (default: true)
41
+ * @prop {string} targetId - The ID of the trigger element (e.g., a button) that opens the pop-up
42
+ *
43
+ * @slot header - Custom content for the header area (optional)
44
+ * @slot body - Custom content for the main body area (optional, falls back to `description`)
45
+ * @slot footer - Custom content for the footer area (optional)
46
+ *
47
+ * @event {EventEmitter<void>} bcmConfirm - Emitted when the user confirms the action in the pop-up
48
+ * @event {EventEmitter<void>} bcmCancel - Emitted when the user cancels the action in the pop-up
49
+ *
50
+ * @csspart container - The root container element of the pop-up
51
+ * @csspart header - The header section with title and close icon
52
+ * @csspart content - The main content section of the pop-up
53
+ * @csspart footer - The footer section with confirm/cancel buttons
54
+ * @csspart arrow - The positioning arrow pointing to the trigger
55
+ *
56
+ * @css {string} --popover-radius - Border radius of the pop-up (default: defined in CSS)
57
+ * @css {string} --popover-bg - Background color of the pop-up
58
+ * @css {string} --text-color - Text color of the pop-up based on status
59
+ *
60
+ * @methods
61
+ * show() - Programmatically shows the pop-up
62
+ * hide() - Programmatically hides the pop-up
63
+ */
64
+ export declare class PopConfirm implements ComponentInterface {
65
+ el: HTMLElement;
66
+ /**
67
+ * The color of the arrow pointing to the trigger element.
68
+ * Can be a CSS custom property or a specific color value.
69
+ * @default 'var(--bcm-ui-color-background-basic-panel)'
70
+ */
71
+ arrowColor: string;
72
+ /**
73
+ * The text displayed on the cancel button.
74
+ * @default 'Cancel'
75
+ */
76
+ cancelText: string;
77
+ /**
78
+ * The text displayed on the confirm button.
79
+ * @default 'Yes'
80
+ */
81
+ confirmText: string;
82
+ /**
83
+ * The description or body content of the pop-up.
84
+ * @default ''
85
+ */
86
+ description: string;
87
+ /**
88
+ * The header text displayed at the top of the pop-up.
89
+ * @default ''
90
+ */
91
+ headerText: string;
92
+ /**
93
+ * The placement position of the pop-up relative to the trigger element.
94
+ * @default 'bottom'
95
+ */
96
+ placement: Placement;
97
+ /**
98
+ * The size of the pop-up, determining its dimensions and padding.
99
+ * @default 'medium'
100
+ */
101
+ size: 'small' | 'medium' | 'large';
102
+ /**
103
+ * The status of the pop-up, affecting its icon and color scheme.
104
+ * @default 'info'
105
+ */
106
+ status: 'info' | 'error' | 'warning' | 'success';
107
+ /**
108
+ * Whether to display a status icon based on the `status` prop.
109
+ * @default true
110
+ */
111
+ statusIcon: boolean;
112
+ /**
113
+ * The ID of the trigger element (e.g., a button) that opens the pop-up.
114
+ */
115
+ targetId: string;
116
+ /**
117
+ * Indicates whether the pop-up is currently open or closed.
118
+ * @default false
119
+ */
120
+ isOpen: boolean;
121
+ /**
122
+ * The current placement position of the pop-up after computation.
123
+ */
124
+ currentPlacement: 'top' | 'bottom' | 'left' | 'right';
125
+ /**
126
+ * Emits an event when the user confirms the action in the pop-up.
127
+ */
128
+ bcmConfirm: EventEmitter<void>;
129
+ /**
130
+ * Emits an event when the user cancels the action in the pop-up.
131
+ */
132
+ bcmCancel: EventEmitter<void>;
133
+ private triggerElement;
134
+ private popoverElement;
135
+ private arrowElement;
136
+ /**
137
+ * Lifecycle method called when the component is loaded.
138
+ * Initializes the trigger element and attaches a click event listener.
139
+ */
140
+ componentDidLoad(): void;
141
+ /**
142
+ * Handles the click event on the trigger element to open the pop-up.
143
+ * Prevents default behavior and propagation, then opens the pop-up if it's closed.
144
+ * @param event The mouse event triggering the action.
145
+ */
146
+ private handleTriggerClick;
147
+ /**
148
+ * Handles the confirm button click, closing the pop-up and emitting the confirm event.
149
+ * Prevents default behavior and propagation.
150
+ * @param event The mouse event triggering the action.
151
+ */
152
+ private handleConfirm;
153
+ /**
154
+ * Handles the cancel button click, closing the pop-up and emitting the cancel event.
155
+ * Prevents default behavior and propagation.
156
+ * @param event The mouse event triggering the action.
157
+ */
158
+ private handleCancel;
159
+ /**
160
+ * Programmatically shows the pop-up by setting `isOpen` to true and updating its position.
161
+ * @returns A promise that resolves when the pop-up is shown.
162
+ */
163
+ show(): Promise<void>;
164
+ /**
165
+ * Programmatically hides the pop-up by setting `isOpen` to false.
166
+ * @returns A promise that resolves when the pop-up is hidden.
167
+ */
168
+ hide(): Promise<void>;
169
+ /**
170
+ * Updates the position of the pop-up relative to the trigger element using Floating UI.
171
+ * Ensures the pop-up stays within viewport bounds and positions the arrow correctly.
172
+ */
173
+ private updatePosition;
174
+ /**
175
+ * Returns the dynamic styles for the pop-up, including text and arrow colors.
176
+ * @returns An object containing CSS custom properties.
177
+ */
178
+ private get popoverStyle();
179
+ /**
180
+ * Lifecycle method called when the component is removed from the DOM.
181
+ * Cleans up the event listener to prevent memory leaks.
182
+ */
183
+ disconnectedCallback(): void;
184
+ /**
185
+ * Defines Tailwind Variants classes for the pop-up's structure and styling.
186
+ * Supports different sizes and generates dynamic class names.
187
+ */
188
+ private classes;
189
+ /**
190
+ * Renders the pop-up component, showing it only when `isOpen` is true.
191
+ * Includes header, main content, and footer sections with dynamic styling and slots for customization.
192
+ * @returns JSX.Element representing the pop-up or an empty fragment if closed.
193
+ */
194
+ render(): any;
195
+ }
@@ -0,0 +1,118 @@
1
+ import { ComponentInterface, EventEmitter } from '../../stencil-public-runtime';
2
+ /**
3
+ * @component BcmPopover
4
+ * @description A flexible popover component that displays contextual information or content relative to a target element.
5
+ * Supports different sizes, trigger types (click or hover), placements (top, right, bottom, left), and can be controlled via slots or props.
6
+ *
7
+ * @example Basic Click Popover
8
+ * <bcm-popover trigger="click" size="medium" placement="top">
9
+ * <bcm-button>Click Me</bcm-button>
10
+ * <span slot="header">Header</span>
11
+ * <span slot="content">This is a simple popover content.</span>
12
+ * </bcm-popover>
13
+ *
14
+ * @example Hover Popover with Props
15
+ * <bcm-popover trigger="hover" hover-delay="200" size="large" placement="right" header-text="Prop Header" message="This is a hover popover with props.">
16
+ * <bcm-button>Hover Me</bcm-button>
17
+ * </bcm-popover>
18
+ *
19
+ * @example Programmatic Control
20
+ * <bcm-popover id="my-popover" trigger="click">
21
+ * <bcm-button>Toggle Me</bcm-button>
22
+ * <span slot="content">Controlled popover</span>
23
+ * </bcm-popover>
24
+ * <script>
25
+ * const popover = document.querySelector('#my-popover');
26
+ * popover.openPopup(); // Opens the popover
27
+ * popover.closePopup(); // Closes the popover
28
+ * </script>
29
+ *
30
+ * @slot - Default slot for the target element that triggers the popover
31
+ * @slot header - Slot for custom header content
32
+ * @slot content - Slot for custom popover content
33
+ *
34
+ * @csspart popover - The root popover container element, stylable for the entire popover
35
+ * @csspart header - The header section of the popover, stylable for the title area
36
+ * @csspart content - The content section of the popover, stylable for the main content area
37
+ * @csspart arrow - The arrow element of the popover, stylable for the positioning arrow
38
+ */
39
+ export declare class Popover implements ComponentInterface {
40
+ el: HTMLElement;
41
+ private targetElement;
42
+ private popoverElement;
43
+ private arrowElement;
44
+ private hoverTimeout;
45
+ private cleanupAutoUpdate;
46
+ /**
47
+ * @prop {('small' | 'medium' | 'large')} size - Defines the size of the popover.
48
+ * Controls the text size and padding of the popover content.
49
+ * Default: 'medium'
50
+ */
51
+ size: 'small' | 'medium' | 'large';
52
+ /**
53
+ * @prop {('top' | 'right' | 'bottom' | 'left')} placement - Defines the position of the popover relative to the target element.
54
+ * Determines where the popover appears around the trigger element.
55
+ * Default: 'top'
56
+ */
57
+ placement: 'top' | 'right' | 'bottom' | 'left';
58
+ /**
59
+ * @prop {('click' | 'hover')} trigger - Defines the interaction type to show/hide the popover.
60
+ * 'click' toggles on click, 'hover' shows on mouse enter and hides on mouse leave.
61
+ * Default: 'click'
62
+ */
63
+ trigger: 'click' | 'hover';
64
+ /**
65
+ * @prop {number} hoverDelay - Delay in milliseconds before showing or hiding the popover when trigger is 'hover'.
66
+ * Adds a delay to prevent flickering on quick mouse movements.
67
+ * Default: 150
68
+ */
69
+ hoverDelay: number;
70
+ /**
71
+ * @prop {boolean} open - Indicates whether the popover is currently open.
72
+ * Can be set programmatically or toggled by user interaction. Mutable.
73
+ * Default: false
74
+ */
75
+ open: boolean;
76
+ /**
77
+ * @prop {string} headerText - Custom text for the popover header.
78
+ * Used as fallback content if the 'header' slot is not provided.
79
+ */
80
+ headerText: string;
81
+ /**
82
+ * @prop {string} message - Custom text for the popover content.
83
+ * Used as fallback content if the 'content' slot is not provided.
84
+ */
85
+ message: string;
86
+ /**
87
+ * @event {EventEmitter<void>} bcmPopoverOpen - Emitted when the popover is opened.
88
+ * Useful for tracking when the popover becomes visible.
89
+ */
90
+ bcmPopoverOpen: EventEmitter<void>;
91
+ /**
92
+ * @event {EventEmitter<void>} bcmPopoverClose - Emitted when the popover is closed.
93
+ * Useful for tracking when the popover is hidden.
94
+ */
95
+ bcmPopoverClose: EventEmitter<void>;
96
+ connectedCallback(): void;
97
+ disconnectedCallback(): void;
98
+ private togglePopover;
99
+ private showPopover;
100
+ private hidePopover;
101
+ /**
102
+ * @method {Promise<void>} openPopup - Programmatically opens the popover.
103
+ * Triggers the showPopover logic to display the popover with the specified hover delay (if applicable).
104
+ * @returns {Promise<void>} A promise that resolves when the popover is opened.
105
+ */
106
+ openPopup(): Promise<void>;
107
+ /**
108
+ * @method {Promise<void>} closePopup - Programmatically closes the popover.
109
+ * Triggers the hidePopover logic to hide the popover with the specified hover delay (if applicable).
110
+ * @returns {Promise<void>} A promise that resolves when the popover is closed.
111
+ */
112
+ closePopup(): Promise<void>;
113
+ private handleSlotChange;
114
+ private handleOutsideClick;
115
+ private updatePosition;
116
+ private popoverClass;
117
+ render(): any;
118
+ }
@@ -0,0 +1,105 @@
1
+ /**
2
+ * @component BcmRadio
3
+ * @description A customizable radio button component for forms, supporting various sizes, states, and label positioning.
4
+ * It can be used to select a single option from a group of choices, with support for error, disabled, and readonly states.
5
+ *
6
+ * @example
7
+ * <bcm-radio label="Option 1" name="group1" value="1" size="medium" label-position="right">
8
+ * Option 1
9
+ * </bcm-radio>
10
+ *
11
+ * @example Radio with error state
12
+ * <bcm-radio label="Error Option" name="group1" value="2" error={true}>
13
+ * Error Option
14
+ * </bcm-radio>
15
+ *
16
+ * @prop {string} label - The text label to display next to the radio button.
17
+ * @prop {string} name - The name attribute for the radio input, used to group radio buttons.
18
+ * @prop {string} value - The value of the radio button, submitted with the form.
19
+ * @prop {boolean} checked - Whether the radio button is selected.
20
+ * @defaultValue false
21
+ * @prop {RadioSize} size - Defines the size of the radio button: 'small' | 'medium' | 'large'.
22
+ * @defaultValue 'medium'
23
+ * @prop {boolean} disabled - Whether the radio button is disabled.
24
+ * @defaultValue false
25
+ * @prop {boolean} readonly - Whether the radio button is readonly.
26
+ * @defaultValue false
27
+ * @prop {LabelPosition} labelPosition - Position of the label relative to the radio button: 'right' | 'left'.
28
+ * @defaultValue 'right'
29
+ * @prop {boolean} error - Whether the radio button is in an error state.
30
+ * @defaultValue false
31
+ *
32
+ * @event {EventEmitter<void>} bcmRadioChange - Emitted when the radio button's checked state changes.
33
+ * @event {EventEmitter<FocusEvent>} bcmFocus - Emitted when the radio button gains focus.
34
+ * @event {EventEmitter<FocusEvent>} bcmBlur - Emitted when the radio button loses focus.
35
+ *
36
+ * @csspart container - The root label element wrapping the radio button and label.
37
+ * @csspart dotContainer - The container for the radio button dot.
38
+ * @csspart dot - The inner dot of the radio button.
39
+ * @csspart label - The label text element.
40
+ */
41
+ import { ComponentInterface, EventEmitter } from '../../stencil-public-runtime';
42
+ export declare class BcmRadio implements ComponentInterface {
43
+ host: HTMLBcmRadioElement;
44
+ /**
45
+ * The text label to display next to the radio button.
46
+ * @prop
47
+ * @defaultValue undefined
48
+ */
49
+ label: string;
50
+ /**
51
+ * The name attribute for the radio input, used to group radio buttons.
52
+ * @prop
53
+ * @defaultValue undefined
54
+ */
55
+ name: string;
56
+ /**
57
+ * The value of the radio button, submitted with the form.
58
+ * @prop
59
+ * @defaultValue undefined
60
+ */
61
+ value: string;
62
+ /**
63
+ * Whether the radio button is selected.
64
+ * @prop
65
+ * @defaultValue false
66
+ */
67
+ checked: boolean;
68
+ /**
69
+ * Defines the size of the radio button: 'small' | 'medium' | 'large'.
70
+ * @prop
71
+ * @defaultValue 'medium'
72
+ */
73
+ size: 'small' | 'medium' | 'large';
74
+ /**
75
+ * Whether the radio button is disabled.
76
+ * @prop
77
+ * @defaultValue false
78
+ */
79
+ disabled: boolean;
80
+ /**
81
+ * Whether the radio button is readonly.
82
+ * @prop
83
+ * @defaultValue false
84
+ */
85
+ readonly: boolean;
86
+ /**
87
+ * Position of the label relative to the radio button: 'right' | 'left'.
88
+ * @prop
89
+ * @defaultValue 'right'
90
+ */
91
+ labelPosition: 'right' | 'left';
92
+ /**
93
+ * Whether the radio button is in an error state.
94
+ * @prop
95
+ * @defaultValue false
96
+ */
97
+ error: boolean;
98
+ bcmRadioChange: EventEmitter<void>;
99
+ bcmBlur: EventEmitter<FocusEvent>;
100
+ bcmFocus: EventEmitter<FocusEvent>;
101
+ private handleClick;
102
+ private getRadioStyle;
103
+ private getRadioClass;
104
+ render(): any;
105
+ }