bromcom-ui-next 0.1.2 → 0.1.4

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 (209) 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/global/global.js +14 -15
  5. package/dist/bromcom-ui/p-04f6d730.entry.js +2 -0
  6. package/dist/bromcom-ui/p-04f6d730.entry.js.map +1 -0
  7. package/dist/bromcom-ui/{p-b36f4f44.js → p-12360e4c.js} +1 -1
  8. package/dist/bromcom-ui/p-15fe392b.js +3 -0
  9. package/dist/bromcom-ui/p-15fe392b.js.map +1 -0
  10. package/dist/bromcom-ui/p-1b11150b.entry.js +2 -0
  11. package/dist/bromcom-ui/p-1b11150b.entry.js.map +1 -0
  12. package/dist/bromcom-ui/p-1d86c1cf.entry.js +2 -0
  13. package/dist/bromcom-ui/p-1d86c1cf.entry.js.map +1 -0
  14. package/dist/bromcom-ui/p-31354aaa.js +2 -0
  15. package/dist/bromcom-ui/p-31354aaa.js.map +1 -0
  16. package/dist/bromcom-ui/p-3b607038.entry.js +2 -0
  17. package/dist/bromcom-ui/p-3b607038.entry.js.map +1 -0
  18. package/dist/bromcom-ui/p-5d0838e9.entry.js +2 -0
  19. package/dist/bromcom-ui/p-5d0838e9.entry.js.map +1 -0
  20. package/dist/bromcom-ui/p-729a870f.js +2 -0
  21. package/dist/bromcom-ui/p-729a870f.js.map +1 -0
  22. package/dist/bromcom-ui/p-a590f793.entry.js +2 -0
  23. package/dist/bromcom-ui/p-a590f793.entry.js.map +1 -0
  24. package/dist/bromcom-ui/p-cd437280.entry.js +2 -0
  25. package/dist/bromcom-ui/p-cd437280.entry.js.map +1 -0
  26. package/dist/bromcom-ui/p-dcea8d62.entry.js +2 -0
  27. package/dist/bromcom-ui/{p-0a74cf15.entry.js.map → p-dcea8d62.entry.js.map} +1 -1
  28. package/dist/bromcom-ui/p-ebed10d5.entry.js +2 -0
  29. package/dist/bromcom-ui/{p-2d836917.entry.js.map → p-ebed10d5.entry.js.map} +1 -1
  30. package/dist/cjs/app-globals-29edfda4.js +39 -0
  31. package/dist/cjs/app-globals-29edfda4.js.map +1 -0
  32. package/dist/cjs/bcm-accordion-group.cjs.entry.js +92 -0
  33. package/dist/cjs/bcm-accordion-group.cjs.entry.js.map +1 -0
  34. package/dist/cjs/bcm-accordion.cjs.entry.js +128 -0
  35. package/dist/cjs/bcm-accordion.cjs.entry.js.map +1 -0
  36. package/dist/cjs/bcm-alert.cjs.entry.js +2 -2
  37. package/dist/cjs/bcm-alert.cjs.entry.js.map +1 -1
  38. package/dist/cjs/bcm-avatar_4.cjs.entry.js +577 -0
  39. package/dist/cjs/bcm-avatar_4.cjs.entry.js.map +1 -0
  40. package/dist/cjs/bcm-chip.cjs.entry.js +130 -0
  41. package/dist/cjs/bcm-chip.cjs.entry.js.map +1 -0
  42. package/dist/cjs/bcm-divider.cjs.entry.js +81 -0
  43. package/dist/cjs/bcm-divider.cjs.entry.js.map +1 -0
  44. package/dist/cjs/bcm-input.cjs.entry.js +313 -0
  45. package/dist/cjs/bcm-input.cjs.entry.js.map +1 -0
  46. package/dist/cjs/bcm-text.cjs.entry.js +4 -4
  47. package/dist/cjs/bcm-text.cjs.entry.js.map +1 -1
  48. package/dist/cjs/bcm-textarea.cjs.entry.js +316 -0
  49. package/dist/cjs/bcm-textarea.cjs.entry.js.map +1 -0
  50. package/dist/cjs/bromcom-ui.cjs.js +3 -3
  51. package/dist/cjs/{index-638f2d15.js → index-4795c073.js} +43 -5
  52. package/dist/cjs/index-4795c073.js.map +1 -0
  53. package/dist/{components/p-b36f4f44.js → cjs/index-5a88e57b.js} +5 -3
  54. package/dist/cjs/{index-a4eea4bb.js.map → index-5a88e57b.js.map} +1 -1
  55. package/dist/cjs/loader.cjs.js +3 -3
  56. package/dist/cjs/validation-messages-c36e5c31.js +134 -0
  57. package/dist/cjs/validation-messages-c36e5c31.js.map +1 -0
  58. package/dist/collection/collection-manifest.json +6 -1
  59. package/dist/collection/components/accordion/accordion.component.js +5 -5
  60. package/dist/collection/components/accordion/accordion.component.js.map +1 -1
  61. package/dist/collection/components/accordion/accordion.css +1 -1
  62. package/dist/collection/components/accordion-group/accordion-group.component.js +1 -1
  63. package/dist/collection/components/accordion-group/accordion-group.component.js.map +1 -1
  64. package/dist/collection/components/accordion-group/accordion-group.css +1 -1
  65. package/dist/collection/components/alert/alert.css +1 -1
  66. package/dist/collection/components/avatar/avatar.component.js.map +1 -1
  67. package/dist/collection/components/avatar/avatar.css +1 -1
  68. package/dist/collection/components/badge/badge.component.js +373 -0
  69. package/dist/collection/components/badge/badge.component.js.map +1 -0
  70. package/dist/collection/components/badge/badge.css +1 -0
  71. package/dist/collection/components/basic-badge/basic-badge.component.js +236 -0
  72. package/dist/collection/components/basic-badge/basic-badge.component.js.map +1 -0
  73. package/dist/collection/components/basic-badge/basic-badge.css +1 -0
  74. package/dist/collection/components/button/button.component.js +3 -3
  75. package/dist/collection/components/button/button.component.js.map +1 -1
  76. package/dist/collection/components/button/button.css +1 -1
  77. package/dist/collection/components/chip/chip.component.js +2 -2
  78. package/dist/collection/components/chip/chip.component.js.map +1 -1
  79. package/dist/collection/components/chip/chip.css +1 -1
  80. package/dist/collection/components/divider/divider.component.js +190 -0
  81. package/dist/collection/components/divider/divider.component.js.map +1 -0
  82. package/dist/collection/components/divider/divider.css +1 -0
  83. package/dist/collection/components/input/input.component.js +1050 -0
  84. package/dist/collection/components/input/input.component.js.map +1 -0
  85. package/dist/collection/components/input/input.css +2 -0
  86. package/dist/collection/components/input/types.js +11 -0
  87. package/dist/collection/components/input/types.js.map +1 -0
  88. package/dist/collection/components/text/text.component.js +1 -1
  89. package/dist/collection/components/text/text.css +1 -1
  90. package/dist/collection/components/textarea/textarea.component.js +1013 -0
  91. package/dist/collection/components/textarea/textarea.component.js.map +1 -0
  92. package/dist/collection/components/textarea/textarea.css +2 -0
  93. package/dist/collection/components/textarea/types.js +2 -0
  94. package/dist/collection/components/textarea/types.js.map +1 -0
  95. package/dist/collection/global/global.js +14 -15
  96. package/dist/collection/utils/i18n.js +29 -0
  97. package/dist/collection/utils/i18n.js.map +1 -0
  98. package/dist/collection/utils/id/generate-id.js +16 -0
  99. package/dist/collection/utils/id/generate-id.js.map +1 -0
  100. package/dist/collection/utils/slot/check-slot-content.js +15 -0
  101. package/dist/collection/utils/slot/check-slot-content.js.map +1 -0
  102. package/dist/collection/utils/validation-messages.js +17 -0
  103. package/dist/collection/utils/validation-messages.js.map +1 -0
  104. package/dist/components/bcm-accordion-group.js +3 -3
  105. package/dist/components/bcm-accordion-group.js.map +1 -1
  106. package/dist/components/bcm-accordion.js +7 -7
  107. package/dist/components/bcm-accordion.js.map +1 -1
  108. package/dist/components/bcm-alert.js +2 -2
  109. package/dist/components/bcm-alert.js.map +1 -1
  110. package/dist/components/bcm-avatar.js +13 -7
  111. package/dist/components/bcm-avatar.js.map +1 -1
  112. package/dist/components/bcm-badge.d.ts +11 -0
  113. package/dist/components/bcm-badge.js +8 -0
  114. package/dist/components/bcm-badge.js.map +1 -0
  115. package/dist/components/bcm-basic-badge.d.ts +11 -0
  116. package/dist/components/bcm-basic-badge.js +113 -0
  117. package/dist/components/bcm-basic-badge.js.map +1 -0
  118. package/dist/components/bcm-button.js +5 -5
  119. package/dist/components/bcm-button.js.map +1 -1
  120. package/dist/components/bcm-chip.js +4 -4
  121. package/dist/components/bcm-chip.js.map +1 -1
  122. package/dist/components/bcm-divider.d.ts +11 -0
  123. package/dist/components/bcm-divider.js +100 -0
  124. package/dist/components/bcm-divider.js.map +1 -0
  125. package/dist/components/bcm-input.d.ts +11 -0
  126. package/dist/components/bcm-input.js +369 -0
  127. package/dist/components/bcm-input.js.map +1 -0
  128. package/dist/components/bcm-text.js +4 -4
  129. package/dist/components/bcm-text.js.map +1 -1
  130. package/dist/components/bcm-textarea.d.ts +11 -0
  131. package/dist/components/bcm-textarea.js +369 -0
  132. package/dist/components/bcm-textarea.js.map +1 -0
  133. package/dist/components/index.js +12 -16
  134. package/dist/components/index.js.map +1 -1
  135. package/dist/{esm/index-f0e9d579.js → components/p-12360e4c.js} +3 -3
  136. package/dist/components/{p-b36f4f44.js.map → p-12360e4c.js.map} +1 -1
  137. package/dist/components/{p-0adcc84f.js → p-13582168.js} +34 -3
  138. package/dist/components/p-13582168.js.map +1 -0
  139. package/dist/components/p-31354aaa.js +129 -0
  140. package/dist/components/p-31354aaa.js.map +1 -0
  141. package/dist/components/p-39637e05.js +145 -0
  142. package/dist/components/p-39637e05.js.map +1 -0
  143. package/dist/esm/app-globals-bfa07b76.js +37 -0
  144. package/dist/esm/app-globals-bfa07b76.js.map +1 -0
  145. package/dist/esm/bcm-accordion-group.entry.js +88 -0
  146. package/dist/esm/bcm-accordion-group.entry.js.map +1 -0
  147. package/dist/esm/bcm-accordion.entry.js +124 -0
  148. package/dist/esm/bcm-accordion.entry.js.map +1 -0
  149. package/dist/esm/bcm-alert.entry.js +2 -2
  150. package/dist/esm/bcm-alert.entry.js.map +1 -1
  151. package/dist/esm/bcm-avatar_4.entry.js +570 -0
  152. package/dist/esm/bcm-avatar_4.entry.js.map +1 -0
  153. package/dist/esm/bcm-chip.entry.js +126 -0
  154. package/dist/esm/bcm-chip.entry.js.map +1 -0
  155. package/dist/esm/bcm-divider.entry.js +77 -0
  156. package/dist/esm/bcm-divider.entry.js.map +1 -0
  157. package/dist/esm/bcm-input.entry.js +309 -0
  158. package/dist/esm/bcm-input.entry.js.map +1 -0
  159. package/dist/esm/bcm-text.entry.js +4 -4
  160. package/dist/esm/bcm-text.entry.js.map +1 -1
  161. package/dist/esm/bcm-textarea.entry.js +312 -0
  162. package/dist/esm/bcm-textarea.entry.js.map +1 -0
  163. package/dist/esm/bromcom-ui.js +4 -4
  164. package/dist/{cjs/index-a4eea4bb.js → esm/index-097075ad.js} +3 -5
  165. package/dist/esm/{index-f0e9d579.js.map → index-097075ad.js.map} +1 -1
  166. package/dist/esm/{index-ce2fac11.js → index-27cc1bac.js} +43 -5
  167. package/dist/esm/index-27cc1bac.js.map +1 -0
  168. package/dist/esm/loader.js +4 -4
  169. package/dist/esm/validation-messages-a29d53be.js +129 -0
  170. package/dist/esm/validation-messages-a29d53be.js.map +1 -0
  171. package/dist/types/components/badge/badge.component.d.ts +87 -0
  172. package/dist/types/components/basic-badge/basic-badge.component.d.ts +54 -0
  173. package/dist/types/components/divider/divider.component.d.ts +40 -0
  174. package/dist/types/components/input/input.component.d.ts +93 -0
  175. package/dist/types/components/input/types.d.ts +13 -0
  176. package/dist/types/components/textarea/textarea.component.d.ts +85 -0
  177. package/dist/types/components/textarea/types.d.ts +7 -0
  178. package/dist/types/components.d.ts +889 -0
  179. package/dist/types/utils/i18n.d.ts +8 -0
  180. package/dist/types/utils/id/generate-id.d.ts +9 -0
  181. package/dist/types/utils/slot/check-slot-content.d.ts +7 -0
  182. package/dist/types/utils/validation-messages.d.ts +11 -0
  183. package/package.json +3 -2
  184. package/dist/bromcom-ui/p-0a74cf15.entry.js +0 -2
  185. package/dist/bromcom-ui/p-27c997d8.js +0 -3
  186. package/dist/bromcom-ui/p-27c997d8.js.map +0 -1
  187. package/dist/bromcom-ui/p-2d836917.entry.js +0 -2
  188. package/dist/bromcom-ui/p-40643b53.js +0 -2
  189. package/dist/bromcom-ui/p-40643b53.js.map +0 -1
  190. package/dist/bromcom-ui/p-84a5dcdb.entry.js +0 -2
  191. package/dist/bromcom-ui/p-84a5dcdb.entry.js.map +0 -1
  192. package/dist/bromcom-ui/p-f0c61f8c.entry.js +0 -2
  193. package/dist/bromcom-ui/p-f0c61f8c.entry.js.map +0 -1
  194. package/dist/cjs/app-globals-e8faea0d.js +0 -43
  195. package/dist/cjs/app-globals-e8faea0d.js.map +0 -1
  196. package/dist/cjs/bcm-accordion_4.cjs.entry.js +0 -623
  197. package/dist/cjs/bcm-accordion_4.cjs.entry.js.map +0 -1
  198. package/dist/cjs/bcm-avatar.cjs.entry.js +0 -89
  199. package/dist/cjs/bcm-avatar.cjs.entry.js.map +0 -1
  200. package/dist/cjs/index-638f2d15.js.map +0 -1
  201. package/dist/components/p-0adcc84f.js.map +0 -1
  202. package/dist/esm/app-globals-f781c325.js +0 -41
  203. package/dist/esm/app-globals-f781c325.js.map +0 -1
  204. package/dist/esm/bcm-accordion_4.entry.js +0 -616
  205. package/dist/esm/bcm-accordion_4.entry.js.map +0 -1
  206. package/dist/esm/bcm-avatar.entry.js +0 -85
  207. package/dist/esm/bcm-avatar.entry.js.map +0 -1
  208. package/dist/esm/index-ce2fac11.js.map +0 -1
  209. /package/dist/bromcom-ui/{p-b36f4f44.js.map → p-12360e4c.js.map} +0 -0
@@ -0,0 +1,570 @@
1
+ import { r as registerInstance, h, c as createEvent, H as Host } from './index-27cc1bac.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: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:0 1px 3px 0 rgba(0,0,0,.1),0 1px 2px -1px rgba(0,0,0,.1);--tw-shadow-colored:0 1px 3px 0 var(--tw-shadow-color),0 1px 2px -1px var(--tw-shadow-color);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:0 1px 3px 0 rgba(0,0,0,.1),0 1px 2px -1px rgba(0,0,0,.1);--tw-shadow-colored:0 1px 3px 0 var(--tw-shadow-color),0 1px 2px -1px var(--tw-shadow-color);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: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: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:0 1px 3px 0 rgba(0,0,0,.1),0 1px 2px -1px rgba(0,0,0,.1);--tw-shadow-colored:0 1px 3px 0 var(--tw-shadow-color),0 1px 2px -1px var(--tw-shadow-color);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 ? 'soft' : '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: '17d82a67aaf2793bbd922c901bbfb05b91abea35', 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: '5b4fffd0979dec737d0209f8268467c19a5dd795', class: "badge-content" }, h("slot", { key: 'a554c64e657079ba933ead458c76a894f236b533' })))));
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%}.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:.25rem}.border{border-width:1px}.border-solid{border-style:solid}.border-\\[--bcm-button-border\\]{border-color:var(--bcm-button-border)}.bg-\\[--bcm-button-bg\\]{background-color:var(--bcm-button-bg)}.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-button-text\\]{color:var(--bcm-button-text)}.text-color-disabled{color:var(--bcm-ui-color-text-disabled)}.shadow{--tw-shadow:0 1px 3px 0 rgba(0,0,0,.1),0 1px 2px -1px rgba(0,0,0,.1);--tw-shadow-colored:0 1px 3px 0 var(--tw-shadow-color),0 1px 2px -1px var(--tw-shadow-color);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-button-bg-hover\\]:hover{background-color:var(--bcm-button-bg-hover)}.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-button-bg-active\\]:active{background-color:var(--bcm-button-bg-active)}";
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-button-bg] text-[--bcm-button-text] border-[--bcm-button-border]',
483
+ 'hover:bg-[--bcm-button-bg-hover]',
484
+ 'active:bg-[--bcm-button-bg-active]',
485
+ 'focus-visible:ring',
486
+ ],
487
+ },
488
+ loading: {
489
+ true: '',
490
+ },
491
+ },
492
+ defaultVariants: {
493
+ size: 'medium',
494
+ kind: 'primary',
495
+ fullWidth: false,
496
+ disabled: false,
497
+ loading: false,
498
+ },
499
+ }, {
500
+ twMerge: false,
501
+ });
502
+ }
503
+ get buttonText() {
504
+ return this.text || (this.variant ? variantOptions[this.variant].text : '');
505
+ }
506
+ get buttonIcon() {
507
+ if (this.variant && variantOptions[this.variant].icon) {
508
+ return {
509
+ icon: variantOptions[this.variant].icon,
510
+ position: variantOptions[this.variant].iconPosition || 'prefix',
511
+ };
512
+ }
513
+ return {
514
+ icon: this.icon,
515
+ position: this.iconPosition,
516
+ };
517
+ }
518
+ get buttonStatus() {
519
+ return this.variant ? variantOptions[this.variant].status : this.status;
520
+ }
521
+ get buttonStyles() {
522
+ const status = this.buttonStatus === 'default' ? 'primary' : this.buttonStatus;
523
+ const kindStyleMap = {
524
+ primary: {
525
+ '--bcm-button-bg': `var(--bcm-ui-color-background-${status}-default)`,
526
+ '--bcm-button-bg-hover': `var(--bcm-ui-color-background-${status}-hover)`,
527
+ '--bcm-button-bg-active': `var(--bcm-ui-color-background-${status}-active)`,
528
+ '--bcm-button-border': 'transparent',
529
+ '--bcm-button-text': 'var(--bcm-ui-color-text-base)',
530
+ },
531
+ outline: {
532
+ '--bcm-button-bg': 'var(--bcm-ui-color-background-default-default)',
533
+ '--bcm-button-bg-hover': 'var(--bcm-ui-color-background-default-hover)',
534
+ '--bcm-button-bg-active': 'var(--bcm-ui-color-background-default-active)',
535
+ '--bcm-button-border': `var(--bcm-ui-color-border-${this.buttonStatus})`,
536
+ '--bcm-button-text': `var(--bcm-ui-color-text-${this.buttonStatus})`,
537
+ },
538
+ ghost: {
539
+ '--bcm-button-bg': 'transparent',
540
+ '--bcm-button-bg-hover': 'var(--bcm-ui-color-background-default-hover)',
541
+ '--bcm-button-bg-active': 'var(--bcm-ui-color-background-default-active)',
542
+ '--bcm-button-border': 'transparent',
543
+ '--bcm-button-text': `var(--bcm-ui-color-text-${this.buttonStatus})`,
544
+ },
545
+ text: {
546
+ '--bcm-button-bg': 'transparent',
547
+ '--bcm-button-bg-hover': 'var(--bcm-ui-color-background-default-hover)',
548
+ '--bcm-button-bg-active': 'var(--bcm-ui-color-background-default-active)',
549
+ '--bcm-button-border': 'transparent',
550
+ '--bcm-button-text': `var(--bcm-ui-color-text-${status})`,
551
+ },
552
+ };
553
+ return kindStyleMap[this.kind];
554
+ }
555
+ render() {
556
+ const { icon, position } = this.buttonIcon;
557
+ return (h(Host, { key: 'b1188fbe4439c4878a3306020097d07913b2212d' }, h("button", { key: 'eae7a80a19ea54120102d93127f55b039833bc54', 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({
558
+ size: this.size,
559
+ kind: this.kind,
560
+ fullWidth: this.fullWidth,
561
+ disabled: this.disabled,
562
+ loading: this.loading,
563
+ }) }, this.loading && h("slot", { key: 'c231e6995ec417011a833b86668be0226855df26', name: "loading" }), h("span", { key: '0398204b65ab60a2061b78cedd61c1fc934f9946' }, h("slot", { key: '664f13b119445486a1185bb009581cc64d1c0b3e', name: "prefix" }, position === 'prefix' && icon && h("i", { key: 'c06367c640065ef5255a89c3d3c9db08a88659d1', class: ' leading-none ' + icon }))), h("slot", { key: 'f8fc4f7eaae1ad869af95a6990a53def07678cd7' }, this.buttonText), h("span", { key: 'b1b7dc15d8090bb057b6b237d65c17ac328ee380' }, h("slot", { key: '43539884f514d7bb365e10e06bf1119b5c60a2b3', name: "suffix" }, position === 'suffix' && icon && h("i", { key: 'bf9ad3dc22fc11ca218c28e1a00e9e5a8cef80f2', class: ' leading-none ' + icon }))))));
564
+ }
565
+ };
566
+ BcmButton.style = BcmButtonStyle0;
567
+
568
+ export { BcmAvatar as bcm_avatar, Badge as bcm_badge, BasicBadge as bcm_basic_badge, BcmButton as bcm_button };
569
+
570
+ //# sourceMappingURL=bcm-avatar_4.entry.js.map