bromcom-ui-next 0.1.8 → 0.1.10

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 (258) hide show
  1. package/dist/bromcom-ui/bromcom-ui.esm.js +1 -1
  2. package/dist/bromcom-ui/bromcom-ui.esm.js.map +1 -1
  3. package/dist/bromcom-ui/{p-a1aae3ef.entry.js → p-09b53a8f.entry.js} +2 -2
  4. package/dist/bromcom-ui/{p-49b0e982.entry.js → p-1392a235.entry.js} +2 -2
  5. package/dist/bromcom-ui/{p-389f1976.entry.js → p-1867c3e6.entry.js} +2 -2
  6. package/dist/bromcom-ui/p-1d44a091.entry.js +2 -0
  7. package/dist/bromcom-ui/{p-cee68279.entry.js.map → p-1d44a091.entry.js.map} +1 -1
  8. package/dist/bromcom-ui/p-2820ad28.entry.js +2 -0
  9. package/dist/bromcom-ui/p-2820ad28.entry.js.map +1 -0
  10. package/dist/bromcom-ui/{p-58ee24a8.entry.js → p-2cb15e60.entry.js} +2 -2
  11. package/dist/bromcom-ui/p-3583888a.entry.js +2 -0
  12. package/dist/bromcom-ui/{p-9ab4d2be.entry.js.map → p-3583888a.entry.js.map} +1 -1
  13. package/dist/bromcom-ui/{p-cd271b49.entry.js → p-3d424afc.entry.js} +2 -2
  14. package/dist/bromcom-ui/p-3ed3885e.entry.js +2 -0
  15. package/dist/bromcom-ui/{p-a3dbbeaf.entry.js.map → p-3ed3885e.entry.js.map} +1 -1
  16. package/dist/bromcom-ui/{p-e89ab4a7.entry.js → p-3f153277.entry.js} +2 -2
  17. package/dist/bromcom-ui/{p-13784cd7.entry.js → p-4762d66b.entry.js} +2 -2
  18. package/dist/bromcom-ui/{p-bf69fc8a.entry.js → p-4bba4ab4.entry.js} +2 -2
  19. package/dist/bromcom-ui/{p-9594cebb.js → p-50133556.js} +2 -2
  20. package/dist/bromcom-ui/{p-d57587e5.entry.js → p-50713153.entry.js} +2 -2
  21. package/dist/bromcom-ui/{p-056c9348.entry.js → p-5541403c.entry.js} +2 -2
  22. package/dist/bromcom-ui/p-651a6761.entry.js +2 -0
  23. package/dist/bromcom-ui/p-651a6761.entry.js.map +1 -0
  24. package/dist/bromcom-ui/p-79082ca0.entry.js +2 -0
  25. package/dist/bromcom-ui/p-79082ca0.entry.js.map +1 -0
  26. package/dist/bromcom-ui/{p-bd0f7e78.entry.js → p-86704b91.entry.js} +2 -2
  27. package/dist/bromcom-ui/{p-55c4263c.entry.js → p-898d5cf6.entry.js} +2 -2
  28. package/dist/bromcom-ui/p-9bd6c84d.entry.js +2 -0
  29. package/dist/bromcom-ui/p-9bd6c84d.entry.js.map +1 -0
  30. package/dist/bromcom-ui/{p-0d0d6483.entry.js → p-c45d9e50.entry.js} +2 -2
  31. package/dist/bromcom-ui/{p-625bbd86.entry.js → p-c78b12c3.entry.js} +2 -2
  32. package/dist/bromcom-ui/{p-1bf71c9b.entry.js → p-d7b636bf.entry.js} +2 -2
  33. package/dist/bromcom-ui/p-ddf64315.js.map +1 -1
  34. package/dist/bromcom-ui/{p-c995a48c.entry.js → p-ea274e8b.entry.js} +2 -2
  35. package/dist/bromcom-ui/p-ea6cdc17.entry.js +2 -0
  36. package/dist/bromcom-ui/{p-0d273bac.entry.js.map → p-ea6cdc17.entry.js.map} +1 -1
  37. package/dist/bromcom-ui/p-edfa3b52.entry.js +2 -0
  38. package/dist/bromcom-ui/p-edfa3b52.entry.js.map +1 -0
  39. package/dist/cjs/app-globals-e0eef2e9.js.map +1 -1
  40. package/dist/cjs/bcm-accordion-group.cjs.entry.js +2 -2
  41. package/dist/cjs/bcm-accordion-group.cjs.entry.js.map +1 -1
  42. package/dist/cjs/bcm-accordion.cjs.entry.js +2 -2
  43. package/dist/cjs/bcm-alert.cjs.entry.js +1 -1
  44. package/dist/cjs/bcm-avatar.cjs.entry.js +89 -0
  45. package/dist/cjs/bcm-avatar.cjs.entry.js.map +1 -0
  46. package/dist/cjs/bcm-badge.cjs.entry.js +123 -0
  47. package/dist/cjs/bcm-badge.cjs.entry.js.map +1 -0
  48. package/dist/cjs/bcm-basic-badge.cjs.entry.js +92 -0
  49. package/dist/cjs/bcm-basic-badge.cjs.entry.js.map +1 -0
  50. package/dist/cjs/bcm-button-group.cjs.entry.js +2 -2
  51. package/dist/cjs/bcm-button_5.cjs.entry.js +830 -0
  52. package/dist/cjs/bcm-button_5.cjs.entry.js.map +1 -0
  53. package/dist/cjs/bcm-checkbox.cjs.entry.js +1 -1
  54. package/dist/cjs/bcm-chip.cjs.entry.js +2 -2
  55. package/dist/cjs/bcm-chip.cjs.entry.js.map +1 -1
  56. package/dist/cjs/bcm-divider.cjs.entry.js +1 -1
  57. package/dist/cjs/bcm-input.cjs.entry.js +5 -3
  58. package/dist/cjs/bcm-input.cjs.entry.js.map +1 -1
  59. package/dist/cjs/bcm-pop-confirm.cjs.entry.js +1 -1
  60. package/dist/cjs/bcm-popover.cjs.entry.js +1 -1
  61. package/dist/cjs/bcm-radio-group.cjs.entry.js +2 -2
  62. package/dist/cjs/bcm-radio.cjs.entry.js +2 -2
  63. package/dist/cjs/bcm-radio.cjs.entry.js.map +1 -1
  64. package/dist/cjs/bcm-segmented-picker-option.cjs.entry.js +2 -2
  65. package/dist/cjs/bcm-segmented-picker.cjs.entry.js +2 -2
  66. package/dist/cjs/bcm-switch.cjs.entry.js +2 -2
  67. package/dist/cjs/bcm-tabs-content.cjs.entry.js +1 -1
  68. package/dist/cjs/bcm-tabs-list.cjs.entry.js +1 -1
  69. package/dist/cjs/bcm-tabs-trigger.cjs.entry.js +1 -1
  70. package/dist/cjs/bcm-tabs.cjs.entry.js +1 -1
  71. package/dist/cjs/bcm-textarea.cjs.entry.js +3 -3
  72. package/dist/cjs/bcm-tooltip.cjs.entry.js +1 -1
  73. package/dist/cjs/bromcom-ui.cjs.js +1 -1
  74. package/dist/cjs/loader.cjs.js +1 -1
  75. package/dist/collection/collection-manifest.json +1 -1
  76. package/dist/collection/components/accordion/accordion.component.js +2 -2
  77. package/dist/collection/components/accordion-group/accordion-group.component.js +1 -1
  78. package/dist/collection/components/accordion-group/accordion-group.css +1 -1
  79. package/dist/collection/components/alert/alert.component.js +1 -1
  80. package/dist/collection/components/badge/badge.component.js +2 -2
  81. package/dist/collection/components/badge/badge.css +1 -1
  82. package/dist/collection/components/basic-badge/basic-badge.component.js +2 -2
  83. package/dist/collection/components/basic-badge/basic-badge.css +1 -1
  84. package/dist/collection/components/button/button.component.js +2 -2
  85. package/dist/collection/components/button/button.css +1 -1
  86. package/dist/collection/components/button-group/button-group.component.js +2 -2
  87. package/dist/collection/components/checkbox/checkbox.component.js +1 -1
  88. package/dist/collection/components/chip/chip.component.js +1 -1
  89. package/dist/collection/components/chip/chip.css +1 -1
  90. package/dist/collection/components/divider/divider.component.js +1 -1
  91. package/dist/collection/components/dropdown/dropdown.component.js +2 -2
  92. package/dist/collection/components/dropdown/dropdown.component.js.map +1 -1
  93. package/dist/collection/components/dropdown/dropdown.css +1 -1
  94. package/dist/collection/components/dropdown-item/dropdown-item.component.js +2 -2
  95. package/dist/collection/components/input/input.component.js +4 -2
  96. package/dist/collection/components/input/input.component.js.map +1 -1
  97. package/dist/collection/components/input/input.css +1 -1
  98. package/dist/collection/components/linked/linked.component.js +610 -49
  99. package/dist/collection/components/linked/linked.component.js.map +1 -1
  100. package/dist/collection/components/linked/linked.css +1 -1
  101. package/dist/collection/components/pop-confirm/pop-confirm.component.js +1 -1
  102. package/dist/collection/components/popover/popover.component.js +1 -1
  103. package/dist/collection/components/radio/radio.component.js +1 -1
  104. package/dist/collection/components/radio/radio.css +1 -1
  105. package/dist/collection/components/radio-group/radio-group.component.js +2 -2
  106. package/dist/collection/components/segmented-picker/segmented-picker-option.component.js +2 -2
  107. package/dist/collection/components/segmented-picker/segmented-picker.component.js +2 -2
  108. package/dist/collection/components/switch/switch.component.js +2 -2
  109. package/dist/collection/components/tabs/tabs-content.component.js +1 -1
  110. package/dist/collection/components/tabs/tabs-list.component.js +1 -1
  111. package/dist/collection/components/tabs/tabs-trigger.component.js +1 -1
  112. package/dist/collection/components/tabs/tabs.component.js +1 -1
  113. package/dist/collection/components/text/text.component.js +28 -1
  114. package/dist/collection/components/text/text.component.js.map +1 -1
  115. package/dist/collection/components/text/text.css +1 -1
  116. package/dist/collection/components/textarea/textarea.component.js +3 -3
  117. package/dist/collection/components/tooltip/tooltip.component.js +1 -1
  118. package/dist/components/bcm-accordion-group.js +2 -2
  119. package/dist/components/bcm-accordion-group.js.map +1 -1
  120. package/dist/components/bcm-accordion.js +2 -2
  121. package/dist/components/bcm-alert.js +1 -1
  122. package/dist/components/bcm-avatar.js +1 -1
  123. package/dist/components/bcm-badge.js +1 -1
  124. package/dist/components/bcm-basic-badge.js +3 -3
  125. package/dist/components/bcm-basic-badge.js.map +1 -1
  126. package/dist/components/bcm-button-group.js +2 -2
  127. package/dist/components/bcm-button.js +1 -1
  128. package/dist/components/bcm-checkbox.js +1 -1
  129. package/dist/components/bcm-chip.js +2 -2
  130. package/dist/components/bcm-chip.js.map +1 -1
  131. package/dist/components/bcm-divider.js +1 -1
  132. package/dist/components/bcm-dropdown-item.js +2 -2
  133. package/dist/components/bcm-dropdown.js +5 -5
  134. package/dist/components/bcm-dropdown.js.map +1 -1
  135. package/dist/components/bcm-input.js +5 -3
  136. package/dist/components/bcm-input.js.map +1 -1
  137. package/dist/components/bcm-linked.js +1 -1
  138. package/dist/components/bcm-pop-confirm.js +3 -3
  139. package/dist/components/bcm-popover.js +2 -2
  140. package/dist/components/bcm-radio-group.js +2 -2
  141. package/dist/components/bcm-radio.js +2 -2
  142. package/dist/components/bcm-radio.js.map +1 -1
  143. package/dist/components/bcm-segmented-picker-option.js +2 -2
  144. package/dist/components/bcm-segmented-picker.js +2 -2
  145. package/dist/components/bcm-switch.js +2 -2
  146. package/dist/components/bcm-tabs-content.js +1 -1
  147. package/dist/components/bcm-tabs-list.js +1 -1
  148. package/dist/components/bcm-tabs-trigger.js +1 -1
  149. package/dist/components/bcm-tabs.js +1 -1
  150. package/dist/components/bcm-text.js +11 -3
  151. package/dist/components/bcm-text.js.map +1 -1
  152. package/dist/components/bcm-textarea.js +3 -3
  153. package/dist/components/bcm-tooltip.js +2 -2
  154. package/dist/components/{p-49f20ff7.js → p-2fe931c0.js} +4 -4
  155. package/dist/components/{p-49f20ff7.js.map → p-2fe931c0.js.map} +1 -1
  156. package/dist/components/{p-9594cebb.js → p-50133556.js} +2 -2
  157. package/dist/components/{p-9594cebb.js.map → p-50133556.js.map} +1 -1
  158. package/dist/components/p-9bf969b2.js +336 -0
  159. package/dist/components/p-9bf969b2.js.map +1 -0
  160. package/dist/components/{p-434bf03a.js → p-c978f1a7.js} +4 -4
  161. package/dist/components/{p-434bf03a.js.map → p-c978f1a7.js.map} +1 -1
  162. package/dist/esm/app-globals-f7994f55.js.map +1 -1
  163. package/dist/esm/bcm-accordion-group.entry.js +2 -2
  164. package/dist/esm/bcm-accordion-group.entry.js.map +1 -1
  165. package/dist/esm/bcm-accordion.entry.js +2 -2
  166. package/dist/esm/bcm-alert.entry.js +1 -1
  167. package/dist/esm/bcm-avatar.entry.js +85 -0
  168. package/dist/esm/bcm-avatar.entry.js.map +1 -0
  169. package/dist/esm/bcm-badge.entry.js +119 -0
  170. package/dist/esm/bcm-badge.entry.js.map +1 -0
  171. package/dist/esm/bcm-basic-badge.entry.js +88 -0
  172. package/dist/esm/bcm-basic-badge.entry.js.map +1 -0
  173. package/dist/esm/bcm-button-group.entry.js +2 -2
  174. package/dist/esm/bcm-button_5.entry.js +822 -0
  175. package/dist/esm/bcm-button_5.entry.js.map +1 -0
  176. package/dist/esm/bcm-checkbox.entry.js +1 -1
  177. package/dist/esm/bcm-chip.entry.js +2 -2
  178. package/dist/esm/bcm-chip.entry.js.map +1 -1
  179. package/dist/esm/bcm-divider.entry.js +1 -1
  180. package/dist/esm/bcm-input.entry.js +5 -3
  181. package/dist/esm/bcm-input.entry.js.map +1 -1
  182. package/dist/esm/bcm-pop-confirm.entry.js +2 -2
  183. package/dist/esm/bcm-popover.entry.js +2 -2
  184. package/dist/esm/bcm-radio-group.entry.js +2 -2
  185. package/dist/esm/bcm-radio.entry.js +2 -2
  186. package/dist/esm/bcm-radio.entry.js.map +1 -1
  187. package/dist/esm/bcm-segmented-picker-option.entry.js +2 -2
  188. package/dist/esm/bcm-segmented-picker.entry.js +2 -2
  189. package/dist/esm/bcm-switch.entry.js +2 -2
  190. package/dist/esm/bcm-tabs-content.entry.js +1 -1
  191. package/dist/esm/bcm-tabs-list.entry.js +1 -1
  192. package/dist/esm/bcm-tabs-trigger.entry.js +1 -1
  193. package/dist/esm/bcm-tabs.entry.js +1 -1
  194. package/dist/esm/bcm-textarea.entry.js +3 -3
  195. package/dist/esm/bcm-tooltip.entry.js +2 -2
  196. package/dist/esm/bromcom-ui.js +1 -1
  197. package/dist/esm/{floating-ui.dom.esm-480e0f15.js → floating-ui.dom.esm-b7749b71.js} +2 -2
  198. package/dist/esm/{floating-ui.dom.esm-480e0f15.js.map → floating-ui.dom.esm-b7749b71.js.map} +1 -1
  199. package/dist/esm/loader.js +1 -1
  200. package/dist/types/components/linked/linked.component.d.ts +47 -7
  201. package/dist/types/components/text/text.component.d.ts +3 -0
  202. package/dist/types/components.d.ts +57 -1
  203. package/package.json +2 -1
  204. package/dist/bromcom-ui/p-0d273bac.entry.js +0 -2
  205. package/dist/bromcom-ui/p-9ab4d2be.entry.js +0 -2
  206. package/dist/bromcom-ui/p-a3dbbeaf.entry.js +0 -2
  207. package/dist/bromcom-ui/p-b1b493ab.entry.js +0 -2
  208. package/dist/bromcom-ui/p-b1b493ab.entry.js.map +0 -1
  209. package/dist/bromcom-ui/p-c427ffee.entry.js +0 -2
  210. package/dist/bromcom-ui/p-c427ffee.entry.js.map +0 -1
  211. package/dist/bromcom-ui/p-c444235a.entry.js +0 -2
  212. package/dist/bromcom-ui/p-c444235a.entry.js.map +0 -1
  213. package/dist/bromcom-ui/p-cee68279.entry.js +0 -2
  214. package/dist/bromcom-ui/p-e7e8305f.entry.js +0 -2
  215. package/dist/bromcom-ui/p-e7e8305f.entry.js.map +0 -1
  216. package/dist/bromcom-ui/p-f4e8a47d.entry.js +0 -2
  217. package/dist/bromcom-ui/p-f4e8a47d.entry.js.map +0 -1
  218. package/dist/bromcom-ui/p-f7890098.entry.js +0 -2
  219. package/dist/bromcom-ui/p-f7890098.entry.js.map +0 -1
  220. package/dist/cjs/bcm-avatar_4.cjs.entry.js +0 -596
  221. package/dist/cjs/bcm-avatar_4.cjs.entry.js.map +0 -1
  222. package/dist/cjs/bcm-dropdown-item.cjs.entry.js +0 -63
  223. package/dist/cjs/bcm-dropdown-item.cjs.entry.js.map +0 -1
  224. package/dist/cjs/bcm-dropdown.cjs.entry.js +0 -56
  225. package/dist/cjs/bcm-dropdown.cjs.entry.js.map +0 -1
  226. package/dist/cjs/bcm-linked.cjs.entry.js +0 -91
  227. package/dist/cjs/bcm-linked.cjs.entry.js.map +0 -1
  228. package/dist/cjs/bcm-text.cjs.entry.js +0 -119
  229. package/dist/cjs/bcm-text.cjs.entry.js.map +0 -1
  230. package/dist/components/p-5f7a0d0d.js +0 -107
  231. package/dist/components/p-5f7a0d0d.js.map +0 -1
  232. package/dist/esm/bcm-avatar_4.entry.js +0 -589
  233. package/dist/esm/bcm-avatar_4.entry.js.map +0 -1
  234. package/dist/esm/bcm-dropdown-item.entry.js +0 -59
  235. package/dist/esm/bcm-dropdown-item.entry.js.map +0 -1
  236. package/dist/esm/bcm-dropdown.entry.js +0 -52
  237. package/dist/esm/bcm-dropdown.entry.js.map +0 -1
  238. package/dist/esm/bcm-linked.entry.js +0 -87
  239. package/dist/esm/bcm-linked.entry.js.map +0 -1
  240. package/dist/esm/bcm-text.entry.js +0 -115
  241. package/dist/esm/bcm-text.entry.js.map +0 -1
  242. /package/dist/bromcom-ui/{p-a1aae3ef.entry.js.map → p-09b53a8f.entry.js.map} +0 -0
  243. /package/dist/bromcom-ui/{p-49b0e982.entry.js.map → p-1392a235.entry.js.map} +0 -0
  244. /package/dist/bromcom-ui/{p-389f1976.entry.js.map → p-1867c3e6.entry.js.map} +0 -0
  245. /package/dist/bromcom-ui/{p-58ee24a8.entry.js.map → p-2cb15e60.entry.js.map} +0 -0
  246. /package/dist/bromcom-ui/{p-cd271b49.entry.js.map → p-3d424afc.entry.js.map} +0 -0
  247. /package/dist/bromcom-ui/{p-e89ab4a7.entry.js.map → p-3f153277.entry.js.map} +0 -0
  248. /package/dist/bromcom-ui/{p-13784cd7.entry.js.map → p-4762d66b.entry.js.map} +0 -0
  249. /package/dist/bromcom-ui/{p-bf69fc8a.entry.js.map → p-4bba4ab4.entry.js.map} +0 -0
  250. /package/dist/bromcom-ui/{p-9594cebb.js.map → p-50133556.js.map} +0 -0
  251. /package/dist/bromcom-ui/{p-d57587e5.entry.js.map → p-50713153.entry.js.map} +0 -0
  252. /package/dist/bromcom-ui/{p-056c9348.entry.js.map → p-5541403c.entry.js.map} +0 -0
  253. /package/dist/bromcom-ui/{p-bd0f7e78.entry.js.map → p-86704b91.entry.js.map} +0 -0
  254. /package/dist/bromcom-ui/{p-55c4263c.entry.js.map → p-898d5cf6.entry.js.map} +0 -0
  255. /package/dist/bromcom-ui/{p-0d0d6483.entry.js.map → p-c45d9e50.entry.js.map} +0 -0
  256. /package/dist/bromcom-ui/{p-625bbd86.entry.js.map → p-c78b12c3.entry.js.map} +0 -0
  257. /package/dist/bromcom-ui/{p-1bf71c9b.entry.js.map → p-d7b636bf.entry.js.map} +0 -0
  258. /package/dist/bromcom-ui/{p-c995a48c.entry.js.map → p-ea274e8b.entry.js.map} +0 -0
@@ -1,589 +0,0 @@
1
- import { r as registerInstance, h, c as createEvent, H as Host } from './index-8571fbf7.js';
2
- import { c as classNames } from './index-097075ad.js';
3
- import { c as ce } from './index-f3b17e60.js';
4
-
5
- const avatarCss = ":host{--bcm-avatar-bg:var(--bcm-ui-color-background-default-default);--bcm-avatar-text:var(--bcm-ui-color-text-default);--bcm-avatar-radius:50%}.bcm-ui-element{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-family:Inter,sans-serif}.static{position:static}.-right-0\\.5{right:-.125rem}.-top-0\\.5{top:-.125rem}.right-0{right:0}.top-0{top:0}.inline-flex{display:inline-flex}.h-10{height:2.5rem}.h-6{height:1.5rem}.h-8{height:2rem}.h-full{height:100%}.w-10{width:2.5rem}.w-6{width:1.5rem}.w-8{width:2rem}.w-full{width:100%}.items-center{align-items:center}.justify-center{justify-content:center}.rounded-\\[--bcm-ui-radius\\]{border-radius:var(--bcm-ui-radius)}.rounded-full{border-radius:var(--bcm-ui-border-radius-full,9999px)}.bg-\\[--bcm-avatar-bg\\]{background-color:var(--bcm-avatar-bg)}.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}.uppercase{text-transform:uppercase}.text-\\[--bcm-avatar-text\\]{color:var(--bcm-avatar-text)}.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)}";
6
- const BcmAvatarStyle0 = avatarCss;
7
-
8
- const BcmAvatar = class {
9
- constructor(hostRef) {
10
- registerInstance(this, hostRef);
11
- /** Shape of the avatar (ellipse/square) */
12
- this.shape = 'ellipse';
13
- /** Size of the avatar */
14
- this.size = 'medium';
15
- /** Fallback icon class */
16
- this.icon = 'fas fa-user';
17
- /** Status indicator animation */
18
- this.blink = false;
19
- this.isFallback = false;
20
- }
21
- getFirstLetters(name) {
22
- const words = name.split(' ');
23
- const initials = words.map(word => word.charAt(0).toUpperCase()).join('');
24
- return initials.substring(0, 2);
25
- }
26
- render() {
27
- const baseClass = classNames('bcm-avatar bcm-ui-element bcm-ui-content-display', 'uppercase font-medium', 'inline-flex items-center justify-center', 'bg-[--bcm-avatar-bg] text-[--bcm-avatar-text]', {
28
- 'shape-ellipse rounded-full': this.shape === 'ellipse',
29
- 'shape-square rounded-[--bcm-ui-radius]': this.shape === 'square',
30
- 'size-small text-size-4 w-6 h-6': this.size === 'small',
31
- 'size-medium text-size-5 w-8 h-8': this.size === 'medium',
32
- 'size-large text-size-6 w-10 h-10': this.size === 'large',
33
- });
34
- const badgeClass = classNames('badge', {
35
- 'top-0 right-0': this.shape === 'ellipse',
36
- '-top-0.5 -right-0.5': this.shape === 'square',
37
- });
38
- const imageClass = classNames('image w-full h-full', {
39
- 'rounded-full': this.shape === 'ellipse',
40
- 'rounded-[--bcm-ui-radius]': this.shape === 'square',
41
- });
42
- let style = {};
43
- if (this.color) {
44
- const isColorTone = this.color.includes('-');
45
- const _color = isColorTone ? this.color.split('-')[0] : this.color;
46
- const bgColor = `var(--bcm-ui-color-background-palette-${_color}-default)`;
47
- const textColor = `var(--bcm-ui-color-text-palette-${_color}`;
48
- style = {
49
- '--bcm-avatar-bg': bgColor,
50
- '--bcm-avatar-text': textColor,
51
- };
52
- }
53
- const customSize = !Object.keys(['small', 'medium', 'large']).includes(this.size)
54
- ? {
55
- width: `${this.size}px`,
56
- height: `${this.size}px`,
57
- fontSize: `${+this.size / 2}px`,
58
- }
59
- : {};
60
- const RenderContent = () => {
61
- if (this.isFallback) {
62
- if (this.name) {
63
- return this.getFirstLetters(this.name);
64
- }
65
- else {
66
- return h("i", { class: this.icon });
67
- }
68
- }
69
- else if (this.image) {
70
- return h("img", { class: imageClass, onError: () => (this.isFallback = true), src: this.image, alt: this.alt, "aria-label": this.alt || this.name || 'Avatar' });
71
- }
72
- else if (this.name) {
73
- return this.getFirstLetters(this.name);
74
- }
75
- else {
76
- return h("i", { class: this.icon });
77
- }
78
- };
79
- return (h("div", { role: "img", "aria-label": this.alt || this.name || 'Avatar', class: baseClass, style: Object.assign(Object.assign({}, style), customSize) }, h(RenderContent, null), this.status && h("bcm-badge", { class: badgeClass, status: this.status, blink: this.blink, "aria-hidden": "true" }), h("slot", null)));
80
- }
81
- };
82
- BcmAvatar.style = BcmAvatarStyle0;
83
-
84
- const badgeCss = ".relative{position:relative}:host{--bcm-badge-bg:var(--bcm-ui-color-background-default-default);--bcm-badge-text:var(--bcm-ui-color-text-default);--bcm-badge-radius:9999px;display:inline-block;position:relative}::slotted([slot=badge]){color:var(--bcm-badge-text);font-weight:500}.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}.-bottom-1{bottom:-.25rem}.-left-1{left:-.25rem}.-right-1{right:-.25rem}.-top-1{top:-.25rem}.z-10{z-index:10}.inline-flex{display:inline-flex}.size-1{height:.25rem;width:.25rem}.size-1\\.5{height:.375rem;width:.375rem}.size-2{height:.5rem;width:.5rem}.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))}.items-center{align-items:center}.justify-center{justify-content:center}.gap-0{gap:0}.gap-1{gap:.25rem}.gap-2{gap:.5rem}.rounded-\\[--bcm-badge-radius\\]{border-radius:var(--bcm-badge-radius)}.bg-\\[--bcm-badge-bg\\]{background-color:var(--bcm-badge-bg)}.p-0{padding:0}.px-1{padding-left:.25rem;padding-right:.25rem}.px-1\\.5{padding-left:.375rem;padding-right:.375rem}.px-2{padding-left:.5rem;padding-right:.5rem}.py-0\\.5{padding-bottom:.125rem;padding-top:.125rem}.py-1{padding-bottom:.25rem;padding-top:.25rem}.text-\\[0px\\]{font-size:0}.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)}.font-medium{font-weight:500}.leading-none{line-height:1}.text-\\[--bcm-badge-text\\]{color:var(--bcm-badge-text)}.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)}.after\\:absolute:after{content:var(--tw-content);position:absolute}.after\\:h-full:after{content:var(--tw-content);height:100%}.after\\:w-full:after{content:var(--tw-content);width:100%}@keyframes ping{75%,to{content:var(--tw-content);opacity:0;transform:scale(2)}}.after\\:animate-blink:after{animation:ping 2s infinite;content:var(--tw-content)}.after\\:rounded-full:after{border-radius:var(--bcm-ui-border-radius-full,9999px);content:var(--tw-content)}.after\\:bg-\\[--bcm-badge-bg\\]:after{background-color:var(--bcm-badge-bg);content:var(--tw-content)}.after\\:content-\\[\\\"\\\"\\]:after{--tw-content:\"\";content:var(--tw-content)}.-right-0\\.5{right:-.125rem}.-top-0\\.5{top:-.125rem}.right-0{right:0}.top-0{top:0}.h-10{height:2.5rem}.h-6{height:1.5rem}.h-8{height:2rem}.h-full{height:100%}.w-10{width:2.5rem}.w-6{width:1.5rem}.w-8{width:2rem}.w-full{width:100%}.rounded-\\[--bcm-ui-radius\\]{border-radius:var(--bcm-ui-radius)}.rounded-full{border-radius:var(--bcm-ui-border-radius-full,9999px)}.bg-\\[--bcm-avatar-bg\\]{background-color:var(--bcm-avatar-bg)}.text-size-6{font-size:var(--bcm-ui-font-size-6,18px);line-height:var(--bcm-ui-line-height-6,24px)}.uppercase{text-transform:uppercase}.text-\\[--bcm-avatar-text\\]{color:var(--bcm-avatar-text)}";
85
- const BcmBadgeStyle0 = badgeCss;
86
-
87
- const Badge = class {
88
- constructor(hostRef) {
89
- registerInstance(this, hostRef);
90
- /**
91
- * Determines the size of the badge.
92
- * @type {'small' | 'medium' | 'large'}
93
- * @default 'medium'
94
- */
95
- this.size = 'medium';
96
- /**
97
- * Sets the visual variant of the badge.
98
- * 'dot': Appears as a small dot indicator
99
- * 'text': Displays content as text
100
- * @type {'dot' | 'text'}
101
- * @default 'text'
102
- */
103
- this.variant = 'text';
104
- /**
105
- * Enables soft color mode for the badge.
106
- * When true, uses lighter tones and pastel colors.
107
- * @type {boolean}
108
- * @default false
109
- */
110
- this.soft = false;
111
- /**
112
- * Enables blinking animation for the badge.
113
- * Useful for drawing attention or indicating active status.
114
- * @type {boolean}
115
- * @default false
116
- */
117
- this.blink = false;
118
- /**
119
- * Sets the position of the badge relative to its container.
120
- * @type {'top-right' | 'top-left' | 'bottom-right' | 'bottom-left'}
121
- * @default 'top-right'
122
- */
123
- this.position = 'top-right';
124
- this.classes = ce({
125
- base: 'badge bcm-ui-element absolute font-medium inline-flex items-center justify-center bg-[--bcm-badge-bg] text-[--bcm-badge-text] rounded-[--bcm-badge-radius] z-10',
126
- variants: {
127
- size: {
128
- small: 'gap-1 px-1 text-size-3',
129
- medium: 'gap-1 py-0.5 px-1.5 text-size-4',
130
- large: 'gap-2 py-1 px-2 text-size-5',
131
- },
132
- variant: {
133
- dot: 'gap-0 p-0 text-[0px] leading-none',
134
- text: '',
135
- },
136
- position: {
137
- 'top-right': '-top-1 -right-1',
138
- 'top-left': '-top-1 -left-1',
139
- 'bottom-right': '-bottom-1 -right-1',
140
- 'bottom-left': '-bottom-1 -left-1',
141
- },
142
- blink: {
143
- true: 'after:content-[""] after:absolute after:rounded-full after:bg-[--bcm-badge-bg] after:animate-blink after:w-full after:h-full',
144
- },
145
- },
146
- compoundVariants: [
147
- {
148
- variant: 'dot',
149
- size: 'small',
150
- class: 'size-1',
151
- },
152
- {
153
- variant: 'dot',
154
- size: 'medium',
155
- class: 'size-1.5',
156
- },
157
- {
158
- variant: 'dot',
159
- size: 'large',
160
- class: 'size-2',
161
- },
162
- ],
163
- defaultVariants: {
164
- variant: 'text',
165
- size: 'medium',
166
- position: 'top-right',
167
- blink: false,
168
- },
169
- });
170
- }
171
- get offsetStyle() {
172
- if (!this.offset)
173
- return {};
174
- const [x = 0, y = 0] = this.offset.split(',').map(val => val.trim());
175
- return { transform: `translate(${x}px, ${y}px)` };
176
- }
177
- get badgeStyle() {
178
- if (!this.color)
179
- return {};
180
- const variantType = this.soft ? 'soft' : 'vivid';
181
- return {
182
- '--bcm-badge-bg': `var(--bcm-ui-color-background-${variantType}-${this.color}-default)`,
183
- '--bcm-badge-text': this.soft ? `var(--bcm-ui-color-text-palette-${this.color})` : 'var(--bcm-ui-color-text-base)',
184
- };
185
- }
186
- render() {
187
- return (h("div", { key: '9c6ce83cc0ae25399f2d97139d9e91578be38237', class: "relative inline-flex" }, h("slot", { key: 'b05db7fc70a8ff5c680e79507d44678ea4f8aba4' }), h("div", { key: 'e3fe3d09e236ae1569d533824f4bb585a5871b53', role: "status", "aria-live": "polite", "aria-label": this.status ? `Status: ${this.status}` : undefined, class: this.classes({
188
- size: this.size,
189
- variant: this.variant,
190
- position: this.position,
191
- blink: this.blink,
192
- }), style: Object.assign(Object.assign({}, this.badgeStyle), this.offsetStyle) }, this.variant == 'text' && h("slot", { key: '98e3f9eaa2966a748e41782efbe78ca35a9deee6', name: "badge" }, this.text))));
193
- }
194
- };
195
- Badge.style = BcmBadgeStyle0;
196
-
197
- const basicBadgeCss = ":host{--bcm-badge-bg:var(--bcm-ui-color-background-default-default);--bcm-badge-text:var(--bcm-ui-color-text-default);--bcm-badge-radius:9999px;display:inline-flex;height:-moz-fit-content;height:fit-content;width:-moz-fit-content;width:fit-content}.badge-content{color:var(--bcm-badge-text);font-weight:500}.bcm-ui-element{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-family:Inter,sans-serif}.static{position:static}.inline-flex{display:inline-flex}.size-1{height:.25rem;width:.25rem}.size-1\\.5{height:.375rem;width:.375rem}.size-2{height:.5rem;width:.5rem}.select-none{user-select:none}.items-center{align-items:center}.justify-center{justify-content:center}.gap-0{gap:0}.whitespace-nowrap{white-space:nowrap}.rounded-\\[--bcm-badge-radius\\]{border-radius:var(--bcm-badge-radius)}.bg-\\[--bcm-badge-bg\\]{background-color:var(--bcm-badge-bg)}.p-0{padding:0}.px-1{padding-left:.25rem;padding-right:.25rem}.px-1\\.5{padding-left:.375rem;padding-right:.375rem}.px-2{padding-left:.5rem;padding-right:.5rem}.py-0\\.5{padding-bottom:.125rem;padding-top:.125rem}.py-1{padding-bottom:.25rem;padding-top:.25rem}.text-\\[0px\\]{font-size:0}.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)}.font-medium{font-weight:500}.leading-none{line-height:1}.text-\\[--bcm-badge-text\\]{color:var(--bcm-badge-text)}.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)}";
198
- const BcmBasicBadgeStyle0 = basicBadgeCss;
199
-
200
- const BasicBadge = class {
201
- constructor(hostRef) {
202
- registerInstance(this, hostRef);
203
- /**
204
- * Determines the size of the badge.
205
- * @type {'small' | 'medium' | 'large'}
206
- * @default 'medium'
207
- */
208
- this.size = 'medium';
209
- /**
210
- * Sets the visual variant of the badge.
211
- * 'dot': Appears as a small dot indicator
212
- * 'text': Displays content as text
213
- * @type {'dot' | 'text'}
214
- * @default 'text'
215
- */
216
- this.variant = 'text';
217
- /**
218
- * Enables soft color mode for the badge.
219
- * When true, uses lighter tones and pastel colors.
220
- * @type {boolean}
221
- * @default false
222
- */
223
- this.soft = false;
224
- this.classes = ce({
225
- base: 'badge bcm-ui-element inline-flex items-center justify-center whitespace-nowrap select-none font-medium bg-[--bcm-badge-bg] text-[--bcm-badge-text] rounded-[--bcm-badge-radius]',
226
- variants: {
227
- size: {
228
- small: 'px-1 text-size-3',
229
- medium: 'py-0.5 px-1.5 text-size-4',
230
- large: 'py-1 px-2 text-size-5',
231
- },
232
- variant: {
233
- dot: 'gap-0 p-0 text-[0px] leading-none',
234
- text: '',
235
- },
236
- },
237
- compoundVariants: [
238
- {
239
- variant: 'dot',
240
- size: 'small',
241
- class: 'size-1',
242
- },
243
- {
244
- variant: 'dot',
245
- size: 'medium',
246
- class: 'size-1.5',
247
- },
248
- {
249
- variant: 'dot',
250
- size: 'large',
251
- class: 'size-2',
252
- },
253
- ],
254
- defaultVariants: {
255
- variant: 'text',
256
- size: 'medium',
257
- blink: false,
258
- },
259
- });
260
- }
261
- get badgeStyle() {
262
- if (!this.color)
263
- return {};
264
- const variantType = this.soft ? 'palette' : 'vivid';
265
- return {
266
- '--bcm-badge-bg': `var(--bcm-ui-color-background-${variantType}-${this.color}-default)`,
267
- '--bcm-badge-text': this.soft ? `var(--bcm-ui-color-text-palette-${this.color})` : 'var(--bcm-ui-color-text-base)',
268
- };
269
- }
270
- render() {
271
- return (h("span", { key: '808cd1e3672a57596174767ce793244024a3f6c3', part: "base", role: "status", "aria-live": "polite", style: this.badgeStyle, class: this.classes({
272
- size: this.size,
273
- variant: this.variant,
274
- }) }, this.variant === 'text' && (h("span", { key: 'c3b5d31649cf6177173401cafcb8c520d4cf9745', class: "badge-content" }, h("slot", { key: 'a6a902a3a2a9c2effa1fc7e0ef4267ab17b6b2ef' })))));
275
- }
276
- };
277
- BasicBadge.style = BcmBasicBadgeStyle0;
278
-
279
- const variantOptions = {
280
- save: {
281
- text: 'Save',
282
- status: 'success',
283
- icon: 'far fa-save',
284
- iconPosition: 'prefix',
285
- kind: 'primary',
286
- },
287
- ok: {
288
- text: 'Ok',
289
- status: 'success',
290
- icon: 'far fa-check',
291
- iconPosition: 'prefix',
292
- },
293
- new: {
294
- text: 'New',
295
- status: 'success',
296
- icon: 'far fa-plus',
297
- iconPosition: 'prefix',
298
- },
299
- add: {
300
- text: 'Add',
301
- status: 'success',
302
- icon: 'far fa-plus',
303
- iconPosition: 'prefix',
304
- },
305
- create: {
306
- text: 'Create',
307
- status: 'success',
308
- icon: 'far fa-plus',
309
- iconPosition: 'prefix',
310
- },
311
- prev: {
312
- text: 'Prev',
313
- status: 'default',
314
- icon: 'far fa-arrow-left',
315
- iconPosition: 'prefix',
316
- },
317
- next: {
318
- text: 'Next',
319
- status: 'default',
320
- icon: 'far fa-arrow-right',
321
- iconPosition: 'suffix',
322
- },
323
- apply: {
324
- text: 'Apply',
325
- status: 'default',
326
- icon: 'far fa-check-circle',
327
- iconPosition: 'prefix',
328
- },
329
- submit: {
330
- text: 'Submit',
331
- status: 'default',
332
- icon: 'far fa-save',
333
- iconPosition: 'prefix',
334
- },
335
- send: {
336
- text: 'Send',
337
- status: 'success',
338
- icon: 'far fa-paper-plane',
339
- iconPosition: 'prefix',
340
- },
341
- delete: {
342
- text: 'Delete',
343
- status: 'error',
344
- icon: 'far fa-trash',
345
- iconPosition: 'prefix',
346
- },
347
- cancel: {
348
- text: 'Cancel',
349
- status: 'error',
350
- icon: 'far fa-times',
351
- iconPosition: 'prefix',
352
- },
353
- decline: {
354
- text: 'Decline',
355
- status: 'error',
356
- icon: 'far fa-ban',
357
- iconPosition: 'prefix',
358
- },
359
- close: {
360
- text: 'Close',
361
- status: 'error',
362
- icon: 'far fa-times-circle',
363
- iconPosition: 'prefix',
364
- },
365
- archive: {
366
- text: 'Archive',
367
- status: 'error',
368
- icon: 'far fa-folder-open',
369
- iconPosition: 'prefix',
370
- },
371
- remove: {
372
- text: 'Remove',
373
- status: 'error',
374
- icon: 'far fa-minus-circle',
375
- iconPosition: 'prefix',
376
- },
377
- edit: {
378
- text: 'Edit',
379
- status: 'default',
380
- icon: 'far fa-edit',
381
- iconPosition: 'prefix',
382
- },
383
- export: {
384
- text: 'Export',
385
- status: 'default',
386
- icon: 'far fa-sign-out',
387
- iconPosition: 'prefix',
388
- },
389
- import: {
390
- text: 'Import',
391
- status: 'default',
392
- icon: 'far fa-sign-in',
393
- iconPosition: 'prefix',
394
- },
395
- filter: {
396
- text: 'Filter',
397
- status: 'default',
398
- icon: 'far fa-filter',
399
- iconPosition: 'prefix',
400
- },
401
- update: {
402
- text: 'Update',
403
- status: 'default',
404
- icon: 'far fa-sync',
405
- iconPosition: 'prefix',
406
- },
407
- reset: {
408
- text: 'Reset',
409
- status: 'default',
410
- icon: 'far fa-sync',
411
- iconPosition: 'prefix',
412
- },
413
- download: {
414
- text: 'Download',
415
- status: 'default',
416
- icon: 'far fa-download',
417
- iconPosition: 'prefix',
418
- },
419
- };
420
-
421
- const buttonCss = ".relative{position:relative}:host{display:inline-block;position:relative}:host([full-width]){width:100%}:host([position=first]) .bcm-button{border-bottom-right-radius:0;border-top-right-radius:0}:host([position=middle]) .bcm-button{border-radius:0}:host([position=last]) .bcm-button{border-bottom-left-radius:0;border-top-left-radius:0}:host([position=first].orientation-vertical) .bcm-button{border-bottom-left-radius:0;border-bottom-right-radius:0;border-top-left-radius:var(--bcm-ui-border-radius,4px);border-top-right-radius:var(--bcm-ui-border-radius,4px)}:host([position=middle].orientation-vertical) .bcm-button{border-radius:0}:host([position=last].orientation-vertical) .bcm-button{border-bottom-left-radius:var(--bcm-ui-border-radius,4px);border-bottom-right-radius:var(--bcm-ui-border-radius,4px);border-top-left-radius:0;border-top-right-radius:0}.static{position:static}.inline-flex{display:inline-flex}.min-h-10{min-height:2.5rem}.min-h-6{min-height:1.5rem}.min-h-8{min-height:2rem}.w-full{width:100%}.cursor-not-allowed{cursor:not-allowed}.cursor-pointer{cursor:pointer}.appearance-none{appearance:none}.items-center{align-items:center}.justify-center{justify-content:center}.rounded{border-radius:var(--bcm-ui-border-radius-default,6px)}.border{border-width:1px}.border-solid{border-style:solid}.border-\\[--bcm-final-border-color\\]{border-color:var(--bcm-final-border-color)}.border-color-disabled{border-color:var(--bcm-ui-color-border-disabled)}.bg-\\[--bcm-final-bg-color\\]{background-color:var(--bcm-final-bg-color)}.bg-\\[--bcm-ui-color-background-disabled-default\\]{background-color:var(--bcm-ui-color-background-disabled-default)}.px-2{padding-left:.5rem;padding-right:.5rem}.px-3{padding-left:.75rem;padding-right:.75rem}.py-0\\.5{padding-bottom:.125rem;padding-top:.125rem}.py-1{padding-bottom:.25rem;padding-top:.25rem}.py-px{padding-bottom:1px;padding-top:1px}.text-size-4{font-size:var(--bcm-ui-font-size-4,14px);line-height:var(--bcm-ui-line-height-4,20px)}.text-size-5{font-size:var(--bcm-ui-font-size-5,16px);line-height:var(--bcm-ui-line-height-5,24px)}.text-size-6{font-size:var(--bcm-ui-font-size-6,18px);line-height:var(--bcm-ui-line-height-6,24px)}.leading-none{line-height:1}.text-\\[--bcm-final-text-color\\]{color:var(--bcm-final-text-color)}.text-color-disabled{color:var(--bcm-ui-color-text-disabled)}.shadow{--tw-shadow:var(--bcm-ui-box-shadow-default);--tw-shadow-colored:var(--bcm-ui-box-shadow-default);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.outline{outline-style:solid}.outline-0{outline-width:0}.hover\\:bg-\\[--bcm-final-hover-bg-color\\]:hover{background-color:var(--bcm-final-hover-bg-color)}.focus-visible\\:ring:focus-visible{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.active\\:bg-\\[--bcm-final-active-bg-color\\]:active{background-color:var(--bcm-final-active-bg-color)}.container{width:100%}@media (min-width:640px){.container{max-width:640px}}@media (min-width:768px){.container{max-width:768px}}@media (min-width:1024px){.container{max-width:1024px}}@media (min-width:1280px){.container{max-width:1280px}}@media (min-width:1536px){.container{max-width:1536px}}.bcm-ui-element{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-family:Inter,sans-serif}.absolute{position:absolute}.z-\\[9999\\]{z-index:9999}.mx-auto{margin-left:auto;margin-right:auto}.flex{display:flex}.hidden{display:none}.size-6{height:1.5rem;width:1.5rem}.h-2{height:.5rem}.w-4{width:1rem}.max-w-64{max-width:16rem}.max-w-80{max-width:20rem}.max-w-96{max-width:24rem}.flex-1{flex:1 1 0%}.flex-row{flex-direction:row}.flex-col{flex-direction:column}.justify-end{justify-content:flex-end}.justify-between{justify-content:space-between}.gap-2{gap:.5rem}.gap-2\\.5{gap:.625rem}.gap-3{gap:.75rem}.gap-4{gap:1rem}.gap-6{gap:1.5rem}.gap-8{gap:2rem}.text-pretty{text-wrap:pretty}.rounded-\\[--popover-radius\\]{border-radius:var(--popover-radius)}.rounded-full{border-radius:var(--bcm-ui-border-radius-full,9999px)}.bg-\\[--popover-bg\\]{background-color:var(--popover-bg)}.p-4{padding:1rem}.p-6{padding:1.5rem}.p-8{padding:2rem}.font-sans{font-family:Inter,sans-serif}.text-size-7{font-size:var(--bcm-ui-font-size-7,20px);line-height:var(--bcm-ui-line-height-7,28px)}.text-size-inherit{font-size:inherit;line-height:inherit}.font-semibold{font-weight:600}.\\!text-color-header{color:var(--bcm-ui-color-text-header)!important}.text-\\[--text-color\\]{color:var(--text-color)}.shadow,.shadow-2{box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.shadow-2{--tw-shadow:var(--bcm-ui-box-shadow-2);--tw-shadow-colored:var(--bcm-ui-box-shadow-2)}.hover\\:bg-gray-100:hover{background-color:oklch(.967 .003 264.542)}.max-h-\\[--dropdown-box-max-height\\]{max-height:var(--dropdown-box-max-height)}.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)}.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,.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)}";
422
- const BcmButtonStyle0 = buttonCss;
423
-
424
- const BcmButton = class {
425
- constructor(hostRef) {
426
- registerInstance(this, hostRef);
427
- this.bcmClick = createEvent(this, "bcmClick", 1);
428
- this.bcmFocus = createEvent(this, "bcmFocus", 1);
429
- this.bcmBlur = createEvent(this, "bcmBlur", 1);
430
- /** Defines the main visual style of the button */
431
- this.kind = 'primary';
432
- /** Controls the button size */
433
- this.size = 'medium';
434
- /** Defines the button's status/state color */
435
- this.status = 'default';
436
- /** Icon placement (prefix/suffix) */
437
- this.iconPosition = 'prefix';
438
- /** Icon-only button mode */
439
- this.iconOnly = false;
440
- /** Full width button */
441
- this.fullWidth = false;
442
- /** HTML button type */
443
- this.type = 'button';
444
- /** Loading state */
445
- this.loading = false;
446
- /** Disabled state */
447
- this.disabled = false;
448
- /** Active state */
449
- this.active = false;
450
- this.handleClick = (event) => {
451
- if (!this.disabled && !this.loading) {
452
- this.bcmClick.emit(event);
453
- }
454
- };
455
- this.handleFocus = (event) => {
456
- this.bcmFocus.emit(event);
457
- };
458
- this.handleBlur = (event) => {
459
- this.bcmBlur.emit(event);
460
- };
461
- this.buttonClass = ce({
462
- base: 'bcm-button appearance-none inline-flex items-center justify-center border border-solid rounded outline-0',
463
- variants: {
464
- size: {
465
- small: 'text-size-4 py-px px-2 min-h-6',
466
- medium: 'text-size-5 py-0.5 px-3 min-h-8',
467
- large: 'text-size-6 py-1 px-3 min-h-10',
468
- },
469
- kind: {
470
- primary: 'kind-primary',
471
- ghost: 'kind-ghost',
472
- text: 'kind-text',
473
- outline: 'kind-outline',
474
- },
475
- fullWidth: {
476
- true: 'full-width w-full',
477
- },
478
- disabled: {
479
- true: 'disabled cursor-not-allowed bg-[--bcm-ui-color-background-disabled-default] text-color-disabled border-color-disabled',
480
- false: [
481
- 'cursor-pointer',
482
- 'bg-[--bcm-final-bg-color] text-[--bcm-final-text-color] border-[--bcm-final-border-color]',
483
- 'hover:bg-[--bcm-final-hover-bg-color]',
484
- 'active:bg-[--bcm-final-active-bg-color]',
485
- 'focus-visible:ring',
486
- ],
487
- },
488
- loading: {
489
- true: '',
490
- },
491
- position: {
492
- first: 'position-first',
493
- middle: 'position-middle',
494
- last: 'position-last',
495
- },
496
- },
497
- defaultVariants: {
498
- size: 'medium',
499
- kind: 'primary',
500
- fullWidth: false,
501
- disabled: false,
502
- loading: false,
503
- },
504
- }, {
505
- twMerge: false,
506
- });
507
- }
508
- get buttonText() {
509
- return this.text || (this.variant ? variantOptions[this.variant].text : '');
510
- }
511
- get buttonIcon() {
512
- if (this.variant && variantOptions[this.variant].icon) {
513
- return {
514
- icon: variantOptions[this.variant].icon,
515
- position: variantOptions[this.variant].iconPosition || 'prefix',
516
- };
517
- }
518
- return {
519
- icon: this.icon,
520
- position: this.iconPosition,
521
- };
522
- }
523
- get buttonStatus() {
524
- return this.variant ? variantOptions[this.variant].status : this.status;
525
- }
526
- get buttonStyles() {
527
- const status = this.buttonStatus === 'default' ? 'primary' : this.buttonStatus;
528
- // These are the internal default styles based on component props (kind, status)
529
- const kindStyleMap = {
530
- primary: {
531
- '--bcm-button-bg': `var(--bcm-ui-color-background-${status}-default)`,
532
- '--bcm-button-bg-hover': `var(--bcm-ui-color-background-${status}-hover)`,
533
- '--bcm-button-bg-active': `var(--bcm-ui-color-background-${status}-active)`,
534
- '--bcm-button-border': 'transparent',
535
- '--bcm-button-text': 'var(--bcm-ui-color-text-base)',
536
- },
537
- outline: {
538
- '--bcm-button-bg': 'var(--bcm-ui-color-background-default-default)',
539
- '--bcm-button-bg-hover': 'var(--bcm-ui-color-background-default-hover)',
540
- '--bcm-button-bg-active': 'var(--bcm-ui-color-background-default-active)',
541
- '--bcm-button-border': `var(--bcm-ui-color-border-${this.buttonStatus})`,
542
- '--bcm-button-text': `var(--bcm-ui-color-text-${this.buttonStatus})`,
543
- },
544
- ghost: {
545
- '--bcm-button-bg': 'transparent',
546
- '--bcm-button-bg-hover': 'var(--bcm-ui-color-background-default-hover)',
547
- '--bcm-button-bg-active': 'var(--bcm-ui-color-background-default-active)',
548
- '--bcm-button-border': 'transparent',
549
- '--bcm-button-text': `var(--bcm-ui-color-text-${this.buttonStatus})`,
550
- },
551
- text: {
552
- '--bcm-button-bg': 'transparent',
553
- '--bcm-button-bg-hover': 'var(--bcm-ui-color-background-default-hover)',
554
- '--bcm-button-bg-active': 'var(--bcm-ui-color-background-default-active)',
555
- '--bcm-button-border': 'transparent',
556
- '--bcm-button-text': `var(--bcm-ui-color-text-${status})`,
557
- },
558
- };
559
- const internalDefaultStyles = kindStyleMap[this.kind];
560
- // These are the "final" CSS custom properties used by the component's styling.
561
- // They use the "--bcm-button-custom-..." token if provided by the user,
562
- // otherwise, they fall back to the internal "--bcm-button-..." style defined above.
563
- const finalEffectiveStyles = {
564
- '--bcm-final-text-color': `var(--bcm-button-custom-text-color, ${internalDefaultStyles['--bcm-button-text']})`,
565
- '--bcm-final-border-color': `var(--bcm-button-custom-border-color, ${internalDefaultStyles['--bcm-button-border']})`,
566
- '--bcm-final-bg-color': `var(--bcm-button-custom-bg-color, ${internalDefaultStyles['--bcm-button-bg']})`,
567
- '--bcm-final-hover-bg-color': `var(--bcm-button-custom-hover-bg-color, ${internalDefaultStyles['--bcm-button-bg-hover']})`,
568
- '--bcm-final-active-bg-color': `var(--bcm-button-custom-active-bg-color, ${internalDefaultStyles['--bcm-button-bg-active']})`,
569
- };
570
- // return kindStyleMap[this.kind];
571
- return Object.assign(Object.assign({}, internalDefaultStyles), finalEffectiveStyles);
572
- }
573
- render() {
574
- const { icon, position } = this.buttonIcon;
575
- return (h(Host, { key: '434cab012a2f174ca6b21f7484104ed9952daf38' }, h("button", { key: 'bf000fa02d836d0142e3f335b806c20afe10726b', type: this.type, disabled: this.disabled || this.loading, "aria-label": this.label, "aria-expanded": this.expanded, "aria-controls": this.controls, "aria-disabled": this.disabled, onClick: this.handleClick, onFocus: this.handleFocus, onBlur: this.handleBlur, style: this.buttonStyles, class: this.buttonClass({
576
- size: this.size,
577
- kind: this.kind,
578
- fullWidth: this.fullWidth,
579
- disabled: this.disabled,
580
- loading: this.loading,
581
- position: this.position,
582
- }) }, this.loading && h("slot", { key: 'c95198f7776c10c7b380c8f2c3c73a05517a72c8', name: "loading" }), h("span", { key: '3433ff03ba933966cab816a8f9882c51b647549d' }, h("slot", { key: 'd1027e43b007789d1da57ace2b2f2da585434604', name: "prefix" }, position === 'prefix' && icon && h("i", { key: '0be135da5ee717f885f56298e9886112ad44767f', class: ' leading-none ' + icon }))), h("slot", { key: '13dc3c513cc364615e15c7074729219a251c8756' }, this.buttonText), h("span", { key: '5dab9df786eec4ed2554df88ffbfea8c6a324c1f' }, h("slot", { key: 'ca80a898105d9d310fea2b34f9b6c9fe282a7eb0', name: "suffix" }, position === 'suffix' && icon && h("i", { key: '57d3a187cf7af1d6ebc289c472579aa973fc6c86', class: ' leading-none ' + icon }))))));
583
- }
584
- };
585
- BcmButton.style = BcmButtonStyle0;
586
-
587
- export { BcmAvatar as bcm_avatar, Badge as bcm_badge, BasicBadge as bcm_basic_badge, BcmButton as bcm_button };
588
-
589
- //# sourceMappingURL=bcm-avatar_4.entry.js.map