bromcom-ui-next 0.1.39 → 0.1.41
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.
- package/dist/bromcom-ui/bromcom-ui.esm.js +1 -1
- package/dist/bromcom-ui/{p-5d06f874.entry.js → p-1cd205e3.entry.js} +1 -1
- package/dist/bromcom-ui/{p-37840600.entry.js → p-278c8205.entry.js} +1 -1
- package/dist/bromcom-ui/{p-5b25aa24.entry.js → p-2c40197f.entry.js} +1 -1
- package/dist/bromcom-ui/p-33d0726d.entry.js +1 -0
- package/dist/bromcom-ui/p-384bca2b.entry.js +1 -0
- package/dist/bromcom-ui/{p-f0faedf7.entry.js → p-39f43cbb.entry.js} +1 -1
- package/dist/bromcom-ui/{p-f42c8c0e.entry.js → p-3b278aa2.entry.js} +1 -1
- package/dist/bromcom-ui/{p-6f2162b1.entry.js → p-3c8308e8.entry.js} +1 -1
- package/dist/bromcom-ui/{p-a709c6ba.entry.js → p-430d9b69.entry.js} +1 -1
- package/dist/bromcom-ui/{p-282a7801.entry.js → p-449b6f9a.entry.js} +1 -1
- package/dist/bromcom-ui/{p-8819d845.entry.js → p-466f9145.entry.js} +1 -1
- package/dist/bromcom-ui/{p-3425bcf5.entry.js → p-53082c51.entry.js} +1 -1
- package/dist/bromcom-ui/p-65cb3344.entry.js +1 -0
- package/dist/bromcom-ui/{p-ad408c9a.entry.js → p-6e7221a1.entry.js} +1 -1
- package/dist/bromcom-ui/{p-2c9e225b.entry.js → p-716d4253.entry.js} +1 -1
- package/dist/bromcom-ui/{p-6d667a81.entry.js → p-724789fd.entry.js} +1 -1
- package/dist/bromcom-ui/p-77bc4871.entry.js +1 -0
- package/dist/bromcom-ui/p-7b6131f4.entry.js +1 -0
- package/dist/bromcom-ui/{p-992ca37a.entry.js → p-9682e900.entry.js} +1 -1
- package/dist/bromcom-ui/{p-f45ecd0e.entry.js → p-9ee52978.entry.js} +1 -1
- package/dist/bromcom-ui/p-a19629e7.entry.js +1 -0
- package/dist/bromcom-ui/{p-b8001f36.entry.js → p-a687ff1b.entry.js} +1 -1
- package/dist/bromcom-ui/p-ac223daf.entry.js +1 -0
- package/dist/bromcom-ui/{p-b1eaa46d.entry.js → p-b4399aa2.entry.js} +1 -1
- package/dist/bromcom-ui/p-bccb1a72.entry.js +1 -0
- package/dist/bromcom-ui/{p-dc706cb6.entry.js → p-c9917155.entry.js} +1 -1
- package/dist/bromcom-ui/p-cfeadc24.entry.js +1 -0
- package/dist/bromcom-ui/{p-b5360906.entry.js → p-f422c6b7.entry.js} +1 -1
- package/dist/bromcom-ui/p-f81a81db.entry.js +1 -0
- package/dist/bromcom-ui/{p-5c83f948.entry.js → p-f84a456d.entry.js} +1 -1
- package/dist/cjs/bcm-accordion-group.cjs.entry.js +2 -2
- package/dist/cjs/bcm-accordion.cjs.entry.js +3 -3
- package/dist/cjs/bcm-alert.cjs.entry.js +1 -1
- package/dist/cjs/bcm-attendance.cjs.entry.js +77 -0
- package/dist/cjs/bcm-avatar.cjs.entry.js +1 -1
- package/dist/cjs/bcm-badge.cjs.entry.js +3 -3
- package/dist/cjs/bcm-basic-badge.cjs.entry.js +3 -3
- package/dist/cjs/bcm-button-group.cjs.entry.js +3 -3
- package/dist/cjs/bcm-button.cjs.entry.js +3 -3
- package/dist/cjs/bcm-checkbox.cjs.entry.js +1 -1
- package/dist/cjs/bcm-chip.cjs.entry.js +2 -2
- package/dist/cjs/bcm-divider.cjs.entry.js +1 -1
- package/dist/cjs/bcm-drawer.cjs.entry.js +1 -1
- package/dist/cjs/bcm-dropdown-item.cjs.entry.js +2 -2
- package/dist/cjs/bcm-dropdown.cjs.entry.js +2 -2
- package/dist/cjs/bcm-file-upload.cjs.entry.js +1 -1
- package/dist/cjs/bcm-input.cjs.entry.js +2 -2
- package/dist/cjs/bcm-linked.cjs.entry.js +3 -3
- package/dist/cjs/bcm-modal.cjs.entry.js +1 -1
- package/dist/cjs/bcm-pop-confirm.cjs.entry.js +2 -2
- package/dist/cjs/bcm-popover.cjs.entry.js +3 -3
- package/dist/cjs/bcm-radio-group.cjs.entry.js +2 -2
- package/dist/cjs/bcm-radio.cjs.entry.js +1 -1
- package/dist/cjs/bcm-segment_3.cjs.entry.js +8 -8
- package/dist/cjs/bcm-shortcut.cjs.entry.js +1 -1
- package/dist/cjs/bcm-switch.cjs.entry.js +2 -2
- package/dist/cjs/bcm-tab.cjs.entry.js +1 -1
- package/dist/cjs/bcm-tabs.cjs.entry.js +3 -3
- package/dist/cjs/bcm-textarea.cjs.entry.js +3 -3
- package/dist/cjs/bcm-tooltip.cjs.entry.js +3 -3
- package/dist/cjs/bromcom-ui.cjs.js +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/collection/collection-manifest.json +1 -0
- package/dist/collection/components/accordion/accordion.component.js +2 -2
- package/dist/collection/components/accordion/accordion.css +1 -1
- package/dist/collection/components/accordion-group/accordion-group.component.js +1 -1
- package/dist/collection/components/accordion-group/accordion-group.css +1 -1
- package/dist/collection/components/alert/alert.component.js +1 -1
- package/dist/collection/components/attendance/attendance.component.js +136 -0
- package/dist/collection/components/attendance/attendance.css +1 -0
- package/dist/collection/components/avatar/avatar.css +1 -1
- package/dist/collection/components/badge/badge.component.js +2 -2
- package/dist/collection/components/badge/badge.css +1 -1
- package/dist/collection/components/basic-badge/basic-badge.component.js +2 -2
- package/dist/collection/components/basic-badge/basic-badge.css +1 -1
- package/dist/collection/components/button/button.component.js +2 -2
- package/dist/collection/components/button/button.css +1 -1
- package/dist/collection/components/button-group/button-group.component.js +2 -2
- package/dist/collection/components/button-group/button-group.css +1 -1
- package/dist/collection/components/checkbox/checkbox.component.js +1 -1
- package/dist/collection/components/chip/chip.component.js +1 -1
- package/dist/collection/components/chip/chip.css +1 -1
- package/dist/collection/components/divider/divider.component.js +1 -1
- package/dist/collection/components/drawer/drawer.component.js +1 -1
- package/dist/collection/components/dropdown/dropdown.component.js +1 -1
- package/dist/collection/components/dropdown/dropdown.css +1 -1
- package/dist/collection/components/dropdown-item/dropdown-item.component.js +2 -2
- package/dist/collection/components/input/input.component.js +2 -2
- package/dist/collection/components/linked/linked.component.js +2 -2
- package/dist/collection/components/linked/linked.css +1 -1
- package/dist/collection/components/modal/modal.component.js +1 -1
- package/dist/collection/components/pop-confirm/pop-confirm.component.js +1 -1
- package/dist/collection/components/pop-confirm/pop-confirm.css +1 -1
- package/dist/collection/components/popover/popover.component.js +2 -2
- package/dist/collection/components/popover/popover.css +1 -1
- package/dist/collection/components/radio/radio.component.js +1 -1
- package/dist/collection/components/radio-group/radio-group.component.js +2 -2
- package/dist/collection/components/segmented-picker/segment.component.js +2 -2
- package/dist/collection/components/segmented-picker/segment.css +1 -1
- package/dist/collection/components/segmented-picker/segmented-picker.component.js +3 -3
- package/dist/collection/components/shortcut/shortcut.js +1 -1
- package/dist/collection/components/switch/switch.component.js +2 -2
- package/dist/collection/components/tabs/tab.component.js +1 -1
- package/dist/collection/components/tabs/tabs.component.js +3 -3
- package/dist/collection/components/text/text.component.js +1 -1
- package/dist/collection/components/text/text.css +1 -1
- package/dist/collection/components/textarea/textarea.component.js +3 -3
- package/dist/collection/components/tooltip/tooltip.component.js +2 -2
- package/dist/collection/components/tooltip/tooltip.css +1 -1
- package/dist/collection/components/upload/file-upload.component.js +1 -1
- package/dist/components/bcm-accordion-group.js +1 -1
- package/dist/components/bcm-accordion.js +1 -1
- package/dist/components/bcm-alert.js +1 -1
- package/dist/components/bcm-attendance.d.ts +11 -0
- package/dist/components/bcm-attendance.js +1 -0
- package/dist/components/bcm-avatar.js +1 -1
- package/dist/components/bcm-badge.js +1 -1
- package/dist/components/bcm-basic-badge.js +1 -1
- package/dist/components/bcm-button-group.js +1 -1
- package/dist/components/bcm-button.js +1 -1
- package/dist/components/bcm-checkbox.js +1 -1
- package/dist/components/bcm-chip.js +1 -1
- package/dist/components/bcm-divider.js +1 -1
- package/dist/components/bcm-drawer.js +1 -1
- package/dist/components/bcm-dropdown-item.js +1 -1
- package/dist/components/bcm-dropdown.js +1 -1
- package/dist/components/bcm-file-upload.js +1 -1
- package/dist/components/bcm-input.js +1 -1
- package/dist/components/bcm-linked.js +1 -1
- package/dist/components/bcm-modal.js +1 -1
- package/dist/components/bcm-pop-confirm.js +1 -1
- package/dist/components/bcm-popover.js +1 -1
- package/dist/components/bcm-radio-group.js +1 -1
- package/dist/components/bcm-radio.js +1 -1
- package/dist/components/bcm-segment.js +1 -1
- package/dist/components/bcm-segmented-picker.js +1 -1
- package/dist/components/bcm-shortcut.js +1 -1
- package/dist/components/bcm-switch.js +1 -1
- package/dist/components/bcm-tab.js +1 -1
- package/dist/components/bcm-tabs.js +1 -1
- package/dist/components/bcm-text.js +1 -1
- package/dist/components/bcm-textarea.js +1 -1
- package/dist/components/bcm-tooltip.js +1 -1
- package/dist/components/{p-BQbLrMuz.js → p-C3wzcnH3.js} +1 -1
- package/dist/components/p-CXVKfgBL.js +1 -0
- package/dist/components/{p-B5YCVscx.js → p-CicdrC2Y.js} +1 -1
- package/dist/components/{p-2c_3ffq_.js → p-Cj7tjKxM.js} +1 -1
- package/dist/components/{p-BzObQIih.js → p-DWnYDhBg.js} +1 -1
- package/dist/esm/bcm-accordion-group.entry.js +2 -2
- package/dist/esm/bcm-accordion.entry.js +3 -3
- package/dist/esm/bcm-alert.entry.js +1 -1
- package/dist/esm/bcm-attendance.entry.js +75 -0
- package/dist/esm/bcm-avatar.entry.js +1 -1
- package/dist/esm/bcm-badge.entry.js +3 -3
- package/dist/esm/bcm-basic-badge.entry.js +3 -3
- package/dist/esm/bcm-button-group.entry.js +3 -3
- package/dist/esm/bcm-button.entry.js +3 -3
- package/dist/esm/bcm-checkbox.entry.js +1 -1
- package/dist/esm/bcm-chip.entry.js +2 -2
- package/dist/esm/bcm-divider.entry.js +1 -1
- package/dist/esm/bcm-drawer.entry.js +1 -1
- package/dist/esm/bcm-dropdown-item.entry.js +2 -2
- package/dist/esm/bcm-dropdown.entry.js +2 -2
- package/dist/esm/bcm-file-upload.entry.js +1 -1
- package/dist/esm/bcm-input.entry.js +2 -2
- package/dist/esm/bcm-linked.entry.js +3 -3
- package/dist/esm/bcm-modal.entry.js +1 -1
- package/dist/esm/bcm-pop-confirm.entry.js +2 -2
- package/dist/esm/bcm-popover.entry.js +3 -3
- package/dist/esm/bcm-radio-group.entry.js +2 -2
- package/dist/esm/bcm-radio.entry.js +1 -1
- package/dist/esm/bcm-segment_3.entry.js +8 -8
- package/dist/esm/bcm-shortcut.entry.js +1 -1
- package/dist/esm/bcm-switch.entry.js +2 -2
- package/dist/esm/bcm-tab.entry.js +1 -1
- package/dist/esm/bcm-tabs.entry.js +3 -3
- package/dist/esm/bcm-textarea.entry.js +3 -3
- package/dist/esm/bcm-tooltip.entry.js +3 -3
- package/dist/esm/bromcom-ui.js +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/react/components.ts +12 -0
- package/dist/types/components/attendance/attendance.component.d.ts +41 -0
- package/dist/types/components.d.ts +79 -0
- package/package.json +6 -1
- package/dist/bromcom-ui/p-1b4384aa.entry.js +0 -1
- package/dist/bromcom-ui/p-5226eb99.entry.js +0 -1
- package/dist/bromcom-ui/p-70908292.entry.js +0 -1
- package/dist/bromcom-ui/p-90af9f04.entry.js +0 -1
- package/dist/bromcom-ui/p-b6e291a9.entry.js +0 -1
- package/dist/bromcom-ui/p-b8ec7192.entry.js +0 -1
- package/dist/bromcom-ui/p-c15f6486.entry.js +0 -1
- package/dist/bromcom-ui/p-eb46701d.entry.js +0 -1
- package/dist/bromcom-ui/p-f82bd7b9.entry.js +0 -1
|
@@ -184,12 +184,12 @@ export class BcmAccordion {
|
|
|
184
184
|
hasFooterContent: this.hasFooterContent || !!this.hintText,
|
|
185
185
|
expanded: this.expanded,
|
|
186
186
|
});
|
|
187
|
-
return (h("div", { key: '
|
|
187
|
+
return (h("div", { key: '9c83659267354c8bd3020943a0b1249546dce1f1', class: container() }, h("header", { key: '0bed1927fe623f6811c7fbf75c6525bf5bcb66a9', class: header(), role: "button", tabindex: "0", "aria-expanded": this.expanded.toString(), "aria-controls": "accordion-content", onKeyDown: e => {
|
|
188
188
|
if (e.key === 'Enter' || e.key === ' ') {
|
|
189
189
|
e.preventDefault();
|
|
190
190
|
this.toggle();
|
|
191
191
|
}
|
|
192
|
-
}, onClick: () => this.toggle() }, h("slot", { key: '
|
|
192
|
+
}, onClick: () => this.toggle() }, h("slot", { key: '60a538d30c687a3691cc5ceaec13be86d5634bfc', name: "title" }, this.headerTitle), h("div", { key: 'eb8c3731f212eeef7a9fe465346244de668d3f4b', class: rightSection() }, h("span", { key: 'e7dd00840cf11d5bd117f501bb8ae67e5ece4b26', onClick: e => e.stopPropagation() }, h("slot", { key: '7d3276e04dead179ab451213a2467b5184622a1c', name: "actions" })), h("bcm-icon", { key: '7ec0e909fe71724621c3f92c21c02b839209cdaa', name: "fa-regular fa-chevron-down", class: icon() }))), h("div", { key: '3448118d97a7d8e254acac2e9570a7126cc9c189', class: content(), style: { maxHeight: this.expanded ? 'auto' : '0px' }, ref: el => (this.contentEl = el) }, h("div", { key: '773aeff390e0fccf64448ef94e65f1b3d26cc899', class: "px-4 py-2" }, h("slot", { key: '0077fdfe18121813c0d1694bb5a0b00c16da0376' })), h("footer", { key: 'e501c04b8f4b3e49fded6bfb45a179dd3a312921', class: footer() }, h("slot", { key: '4a171d164bf8c3577d4f5802167a0c5e58f04898', name: "footer", onSlotchange: this.handleFooterSlotChange }, this.hintText)))));
|
|
193
193
|
}
|
|
194
194
|
static get is() { return "bcm-accordion"; }
|
|
195
195
|
static get encapsulation() { return "shadow"; }
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.block{display:block}.flex{display:flex}.border{border-width:1px}:host{--bcm-accordion-bg:var(--bcm-ui-color-background-basic-panel);--bcm-accordion-content-bg:var(--bcm-ui-color-background-basic-base);--bcm-accordion-text:var(--bcm-ui-color-text-header);--bcm-accordion-border:var(--bcm-ui-color-border-default);--bcm-accordion-radius:6px;--bcm-accordion-footer-bg:var(--bcm-ui-color-background-default-default);display:block;width:100%}:host(:not([group])) .accordion-container{border:1px solid var(--bcm-accordion-border);border-radius:var(--bcm-accordion-radius)}:host([group]) .accordion-container{border-bottom:1px solid var(--bcm-accordion-border);border-radius:0}:host([group]:last-of-type) .accordion-container{border-bottom:none}:host([group]:first-of-type) .accordion-container{border-top-left-radius:var(--bcm-accordion-radius);border-top-right-radius:var(--bcm-accordion-radius)}:host([group]:last-of-type) .accordion-footer{border-bottom-left-radius:var(--bcm-accordion-radius);border-bottom-right-radius:var(--bcm-accordion-radius)}:host(:not([group])) .accordion-footer{border-bottom-left-radius:var(--bcm-accordion-radius);border-bottom-right-radius:var(--bcm-accordion-radius)}::slotted([slot=title]){align-items:center;display:flex;flex-direction:row;gap:10px}::slotted([slot=actions]){align-items:center;display:flex;flex-direction:row;gap:12px}.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,Inter Variable,sans-serif}.collapse{visibility:collapse}.
|
|
1
|
+
.block{display:block}.flex{display:flex}.border{border-width:1px}:host{--bcm-accordion-bg:var(--bcm-ui-color-background-basic-panel);--bcm-accordion-content-bg:var(--bcm-ui-color-background-basic-base);--bcm-accordion-text:var(--bcm-ui-color-text-header);--bcm-accordion-border:var(--bcm-ui-color-border-default);--bcm-accordion-radius:6px;--bcm-accordion-footer-bg:var(--bcm-ui-color-background-default-default);display:block;width:100%}:host(:not([group])) .accordion-container{border:1px solid var(--bcm-accordion-border);border-radius:var(--bcm-accordion-radius)}:host([group]) .accordion-container{border-bottom:1px solid var(--bcm-accordion-border);border-radius:0}:host([group]:last-of-type) .accordion-container{border-bottom:none}:host([group]:first-of-type) .accordion-container{border-top-left-radius:var(--bcm-accordion-radius);border-top-right-radius:var(--bcm-accordion-radius)}:host([group]:last-of-type) .accordion-footer{border-bottom-left-radius:var(--bcm-accordion-radius);border-bottom-right-radius:var(--bcm-accordion-radius)}:host(:not([group])) .accordion-footer{border-bottom-left-radius:var(--bcm-accordion-radius);border-bottom-right-radius:var(--bcm-accordion-radius)}::slotted([slot=title]){align-items:center;display:flex;flex-direction:row;gap:10px}::slotted([slot=actions]){align-items:center;display:flex;flex-direction:row;gap:12px}.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,Inter Variable,sans-serif}.collapse{visibility:collapse}.hidden{display:none}.w-full{width:100%}.min-w-max{min-width:max-content}.rotate-0{--tw-rotate:0deg}.rotate-0,.rotate-180{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))}.rotate-180{--tw-rotate:180deg}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.cursor-pointer{cursor:pointer}.flex-row{flex-direction:row}.flex-col{flex-direction:column}.flex-nowrap{flex-wrap:nowrap}.items-center{align-items:center}.justify-between{justify-content:space-between}.gap-2{gap:.5rem}.gap-2\.5{gap:.625rem}.overflow-hidden{overflow:hidden}.text-wrap{text-wrap:wrap}.rounded-\[--bcm-accordion-radius\]{border-radius:var(--bcm-accordion-radius)}.bg-\[--bcm-accordion-bg\]{background-color:var(--bcm-accordion-bg)}.bg-\[--bcm-accordion-footer-bg\]{background-color:var(--bcm-accordion-footer-bg)}.bg-color-basic-base{background-color:var(--bcm-ui-color-background-basic-base)}.p-4{padding:1rem}.px-4{padding-left:1rem;padding-right:1rem}.py-2{padding-bottom:.5rem;padding-top:.5rem}.text-size-4{font-size:var(--bcm-ui-font-size-4,14px);line-height:var(--bcm-ui-line-height-4,20px)}.text-size-6{font-size:var(--bcm-ui-font-size-6,18px);line-height:var(--bcm-ui-line-height-6,24px)}.font-normal{font-weight:400}.font-semibold{font-weight:600}.text-\[--bcm-accordion-text\]{color:var(--bcm-accordion-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)}.transition-all{transition-duration:.15s;transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1)}.transition-transform{transition-duration:.15s;transition-property:transform;transition-timing-function:cubic-bezier(.4,0,.2,1)}.duration-300{transition-duration:.3s}.ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)}
|
|
@@ -131,7 +131,7 @@ export class BcmAccordionGroup {
|
|
|
131
131
|
});
|
|
132
132
|
}
|
|
133
133
|
render() {
|
|
134
|
-
return (h("div", { key: '
|
|
134
|
+
return (h("div", { key: '57202468d175ed9ab0e40c7601c186731ef6db75', class: "flex flex-col bcm-ui-element w-full border border-solid border-[--bcm-accordion-border] rounded-[--bcm-accordion-radius]", role: "group", "aria-label": "Accordion group" }, h("slot", { key: '3d3918076c44aec985d19aa0cfaa7b1c03414fc0', onSlotchange: this.handleSlotChange })));
|
|
135
135
|
}
|
|
136
136
|
static get is() { return "bcm-accordion-group"; }
|
|
137
137
|
static get encapsulation() { return "shadow"; }
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.block{display:block}:host{--bcm-accordion-border:var(--bcm-ui-color-border-default);--bcm-accordion-radius:6px;display:block;width:100%}.bcm-ui-element{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-family:Inter,Inter Variable,sans-serif}.collapse{visibility:collapse}.
|
|
1
|
+
.block{display:block}:host{--bcm-accordion-border:var(--bcm-ui-color-border-default);--bcm-accordion-radius:6px;display:block;width:100%}.bcm-ui-element{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-family:Inter,Inter Variable,sans-serif}.collapse{visibility:collapse}.flex{display:flex}.w-full{width:100%}.flex-col{flex-direction:column}.rounded-\[--bcm-accordion-radius\]{border-radius:var(--bcm-accordion-radius)}.border{border-width:1px}.border-solid{border-style:solid}.border-\[--bcm-accordion-border\]{border-color:var(--bcm-accordion-border)}.shadow{--tw-shadow:var(--bcm-ui-box-shadow-default);--tw-shadow-colored:var(--bcm-ui-box-shadow-default);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}
|
|
@@ -81,7 +81,7 @@ export class BcmAlert {
|
|
|
81
81
|
}
|
|
82
82
|
render() {
|
|
83
83
|
const { base, section } = this.alertClass({ size: this.size });
|
|
84
|
-
return (h("div", { key: '
|
|
84
|
+
return (h("div", { key: '51e98e60947d77647a80c015747b98e06417b383', role: "alert", "aria-live": "assertive", "aria-atomic": "true", class: base(), style: this.alertStyles }, h("div", { key: 'ef4129d4aee61f30165b8a47e5d4294470435d08', class: section() + " flex-1 min-w-0" }, this.showStatusIcon && h("bcm-icon", { key: '3565ccb12b1a3a731b1f489da0e36018a3301e65', "icon-name": this.getStatusIcon() }), h("div", { key: 'f1aa781bba466f8d4a584edc3f2a2a50b6c2d7c3', class: "min-w-0" }, h("slot", { key: '8513e2a9da2fa1fadedac0f82614e9f8cce1a74f' }))), h("div", { key: '4accb8cedc4ac45c4a9a1c5ea7d1dab05aea7c74', class: section() + " flex-shrink-0" }, h("div", { key: 'e9fca46688db4b0ff11c59fba59166127fac0762', part: "action" }, h("slot", { key: 'c5eb3417f28ada04570e4076d1c54572db4528f5', name: "action" })), h("span", { key: 'c41fecfec7f18ea0dffda561754fd55afa70ff95', part: "icon" }, this.dismissible && h("bcm-icon", { key: '12e45f8ad0e40955ea68a17eaaa614ee644624ef', onClick: () => this.onDismiss(), class: "cursor-pointer", "icon-name": "fa-regular fa-xmark" })))));
|
|
85
85
|
}
|
|
86
86
|
static get is() { return "bcm-alert"; }
|
|
87
87
|
static get encapsulation() { return "shadow"; }
|
|
@@ -0,0 +1,136 @@
|
|
|
1
|
+
import { Host, h } from "@stencil/core";
|
|
2
|
+
import { tv } from "../../utils/tv";
|
|
3
|
+
/**
|
|
4
|
+
* @component BcmAttendance
|
|
5
|
+
* @description Visualizes attendance history (AM/PM status) for a series of days.
|
|
6
|
+
* Supports different status types (present, late, absent, etc.) with color-coded indicators.
|
|
7
|
+
* Can handle data via JSON string or direct object array.
|
|
8
|
+
*
|
|
9
|
+
* @example Basic usage
|
|
10
|
+
* <bcm-attendance data='[{"weekday":"Mon", "am":"present", "pm":"absent"}]'></bcm-attendance>
|
|
11
|
+
*
|
|
12
|
+
* @example With specific statuses
|
|
13
|
+
* <bcm-attendance data='[
|
|
14
|
+
* {"weekday":"Mon", "am":"present", "pm":"present"},
|
|
15
|
+
* {"weekday":"Tue", "am":"late", "pm":"present"}
|
|
16
|
+
* ]'></bcm-attendance>
|
|
17
|
+
*/
|
|
18
|
+
export class Attendance {
|
|
19
|
+
el;
|
|
20
|
+
/**
|
|
21
|
+
* Data for attendance items to be displayed.
|
|
22
|
+
* Can be passed as a JSON string (HTML attribute) or a JavaScript Array (Property).
|
|
23
|
+
*
|
|
24
|
+
* Format: Array of objects with `weekday`, `am`, and `pm` properties.
|
|
25
|
+
* Status values: 'present', 'late', 'absent', 'other', 'default'.
|
|
26
|
+
*
|
|
27
|
+
* @type {string | AttendanceItem[]}
|
|
28
|
+
* @default []
|
|
29
|
+
*/
|
|
30
|
+
data = [];
|
|
31
|
+
_data = [];
|
|
32
|
+
componentWillLoad() {
|
|
33
|
+
this.parseData(this.data);
|
|
34
|
+
}
|
|
35
|
+
dataHandler(newValue) {
|
|
36
|
+
this.parseData(newValue);
|
|
37
|
+
}
|
|
38
|
+
parseData(value) {
|
|
39
|
+
if (typeof value === 'string') {
|
|
40
|
+
try {
|
|
41
|
+
this._data = JSON.parse(value);
|
|
42
|
+
}
|
|
43
|
+
catch (e) {
|
|
44
|
+
console.warn('BcmAttendance: Invalid JSON string in data attribute', e);
|
|
45
|
+
this._data = [];
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
else {
|
|
49
|
+
this._data = Array.isArray(value) ? value : [];
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
attendanceStyles = tv({
|
|
53
|
+
slots: {
|
|
54
|
+
base: 'bcm-ui-element bcm-attendance inline-flex items-center flex-row gap-0.5 w-fit',
|
|
55
|
+
item: 'flex flex-row items-center gap-[1px]',
|
|
56
|
+
indicator: 'block w-[7px] h-[14px] transition-colors',
|
|
57
|
+
},
|
|
58
|
+
variants: {
|
|
59
|
+
status: {
|
|
60
|
+
present: { indicator: 'bg-color-success hover:bg-color-success-hover' },
|
|
61
|
+
late: { indicator: 'bg-color-warning hover:bg-color-warning-hover' },
|
|
62
|
+
absent: { indicator: 'bg-color-error hover:bg-color-error-hover' },
|
|
63
|
+
other: { indicator: 'bg-color-primary hover:bg-color-primary-hover' },
|
|
64
|
+
default: { indicator: 'bg-color-default-active hover:bg-color-default-hover' },
|
|
65
|
+
},
|
|
66
|
+
period: {
|
|
67
|
+
am: { indicator: 'rounded-l-full' },
|
|
68
|
+
pm: { indicator: 'rounded-r-full' },
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
});
|
|
72
|
+
render() {
|
|
73
|
+
const { base, item, indicator } = this.attendanceStyles();
|
|
74
|
+
return (h(Host, { key: 'a0bedc4e15f08faff785a8d6f3f1ceeefd4af10f', class: base() }, this._data.map(entry => (h("div", { class: item() }, h("bcm-tooltip", { trigger: "hover", message: `${entry.weekday || ''} / AM`, "aria-label": `${entry.weekday || ''} / AM` }, h("span", { class: indicator({ status: entry.am || 'default', period: 'am' }) })), h("bcm-tooltip", { trigger: "hover", message: `${entry.weekday || ''} / PM`, "aria-label": `${entry.weekday || ''} / PM` }, h("span", { class: indicator({ status: entry.pm || 'default', period: 'pm' }) })))))));
|
|
75
|
+
}
|
|
76
|
+
static get is() { return "bcm-attendance"; }
|
|
77
|
+
static get encapsulation() { return "shadow"; }
|
|
78
|
+
static get originalStyleUrls() {
|
|
79
|
+
return {
|
|
80
|
+
"$": ["attendance.css"]
|
|
81
|
+
};
|
|
82
|
+
}
|
|
83
|
+
static get styleUrls() {
|
|
84
|
+
return {
|
|
85
|
+
"$": ["attendance.css"]
|
|
86
|
+
};
|
|
87
|
+
}
|
|
88
|
+
static get properties() {
|
|
89
|
+
return {
|
|
90
|
+
"data": {
|
|
91
|
+
"type": "string",
|
|
92
|
+
"mutable": true,
|
|
93
|
+
"complexType": {
|
|
94
|
+
"original": "string | AttendanceItem[]",
|
|
95
|
+
"resolved": "AttendanceItem[] | string",
|
|
96
|
+
"references": {
|
|
97
|
+
"AttendanceItem": {
|
|
98
|
+
"location": "local",
|
|
99
|
+
"path": "/Users/muratpolatozkan/works/bromcom/bromcom-ui-v2/src/components/attendance/attendance.component.tsx",
|
|
100
|
+
"id": "src/components/attendance/attendance.component.tsx::AttendanceItem"
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
},
|
|
104
|
+
"required": false,
|
|
105
|
+
"optional": false,
|
|
106
|
+
"docs": {
|
|
107
|
+
"tags": [{
|
|
108
|
+
"name": "type",
|
|
109
|
+
"text": "{string | AttendanceItem[]}"
|
|
110
|
+
}, {
|
|
111
|
+
"name": "default",
|
|
112
|
+
"text": "[]"
|
|
113
|
+
}],
|
|
114
|
+
"text": "Data for attendance items to be displayed.\nCan be passed as a JSON string (HTML attribute) or a JavaScript Array (Property).\n\nFormat: Array of objects with `weekday`, `am`, and `pm` properties.\nStatus values: 'present', 'late', 'absent', 'other', 'default'."
|
|
115
|
+
},
|
|
116
|
+
"getter": false,
|
|
117
|
+
"setter": false,
|
|
118
|
+
"reflect": false,
|
|
119
|
+
"attribute": "data",
|
|
120
|
+
"defaultValue": "[]"
|
|
121
|
+
}
|
|
122
|
+
};
|
|
123
|
+
}
|
|
124
|
+
static get states() {
|
|
125
|
+
return {
|
|
126
|
+
"_data": {}
|
|
127
|
+
};
|
|
128
|
+
}
|
|
129
|
+
static get elementRef() { return "el"; }
|
|
130
|
+
static get watchers() {
|
|
131
|
+
return [{
|
|
132
|
+
"propName": "data",
|
|
133
|
+
"methodName": "dataHandler"
|
|
134
|
+
}];
|
|
135
|
+
}
|
|
136
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
:host{display:inline-flex}.bcm-ui-element{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-family:Inter,Inter Variable,sans-serif}.static{position:static}.block{display:block}.flex{display:flex}.inline-flex{display:inline-flex}.h-\[14px\]{height:14px}.w-\[7px\]{width:7px}.w-fit{width:fit-content}.flex-row{flex-direction:row}.items-center{align-items:center}.gap-0\.5{gap:.125rem}.gap-\[1px\]{gap:1px}.rounded-l-full{border-bottom-left-radius:var(--bcm-ui-border-radius-full,9999px);border-top-left-radius:var(--bcm-ui-border-radius-full,9999px)}.rounded-r-full{border-bottom-right-radius:var(--bcm-ui-border-radius-full,9999px);border-top-right-radius:var(--bcm-ui-border-radius-full,9999px)}.bg-color-default-active{background-color:var(--bcm-ui-color-background-default-active)}.bg-color-error{background-color:var(--bcm-ui-color-background-error-default)}.bg-color-primary{background-color:var(--bcm-ui-color-background-primary-default)}.bg-color-success{background-color:var(--bcm-ui-color-background-success-default)}.bg-color-warning{background-color:var(--bcm-ui-color-background-warning-default)}.shadow{--tw-shadow:var(--bcm-ui-box-shadow-default);--tw-shadow-colored:var(--bcm-ui-box-shadow-default);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.transition-colors{transition-duration:.15s;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1)}.hover\:bg-color-default-hover:hover{background-color:var(--bcm-ui-color-background-default-hover)}.hover\:bg-color-error-hover:hover{background-color:var(--bcm-ui-color-background-error-hover)}.hover\:bg-color-primary-hover:hover{background-color:var(--bcm-ui-color-background-primary-hover)}.hover\:bg-color-success-hover:hover{background-color:var(--bcm-ui-color-background-success-hover)}.hover\:bg-color-warning-hover:hover{background-color:var(--bcm-ui-color-background-warning-hover)}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
: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,Inter Variable,sans-serif}.-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)}
|
|
1
|
+
: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,Inter Variable,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)}
|
|
@@ -143,7 +143,7 @@ export class Badge {
|
|
|
143
143
|
};
|
|
144
144
|
}
|
|
145
145
|
render() {
|
|
146
|
-
return (h("div", { key: '
|
|
146
|
+
return (h("div", { key: '1e9841224a0b1b569e407787177ae5ee8bf35efc', class: "relative inline-flex" }, h("slot", { key: '38e4b7d8ed005bab0b4f6019bb723050110712d7' }), h("div", { key: 'c1a43e186eb6d419b15913f1a1d0f6da066e98b0', role: "status", "aria-live": "polite", "aria-label": this.status ? `Status: ${this.status}` : undefined, class: this.classes({
|
|
147
147
|
size: this.size,
|
|
148
148
|
variant: this.variant,
|
|
149
149
|
position: this.position,
|
|
@@ -151,7 +151,7 @@ export class Badge {
|
|
|
151
151
|
}), style: {
|
|
152
152
|
...this.badgeStyle,
|
|
153
153
|
...this.offsetStyle,
|
|
154
|
-
} }, this.variant == 'text' && h("slot", { key: '
|
|
154
|
+
} }, this.variant == 'text' && h("slot", { key: 'b64583f68dc80fad924c75b8a72f3375d3da2407', name: "badge" }, this.text))));
|
|
155
155
|
}
|
|
156
156
|
static get is() { return "bcm-badge"; }
|
|
157
157
|
static get encapsulation() { return "shadow"; }
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.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}.bcm-ui-element{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-family:Inter,Inter Variable,sans-serif}.-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)}.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}}.
|
|
1
|
+
.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}.bcm-ui-element{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-family:Inter,Inter Variable,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)}.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}}.absolute{position:absolute}.-bottom-1{bottom:-.25rem}.-left-1{left:-.25rem}.-right-1{right:-.25rem}.-top-1{top:-.25rem}.z-10{z-index:10}.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))}.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)}.leading-none{line-height:1}.text-\[--bcm-badge-text\]{color:var(--bcm-badge-text)}.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)}
|
|
@@ -95,10 +95,10 @@ export class BasicBadge {
|
|
|
95
95
|
};
|
|
96
96
|
}
|
|
97
97
|
render() {
|
|
98
|
-
return (h("span", { key: '
|
|
98
|
+
return (h("span", { key: '45b4c9f4c7ab8b9948264f76eeb5cfe24e516bd1', part: "base", role: "status", "aria-live": "polite", style: this.badgeStyle, class: this.classes({
|
|
99
99
|
size: this.size,
|
|
100
100
|
variant: this.variant,
|
|
101
|
-
}) }, this.variant === 'text' && (h("span", { key: '
|
|
101
|
+
}) }, this.variant === 'text' && (h("span", { key: 'd8f8b1156fca7b25413811833eb1991dcadc7e72', class: "badge-content" }, h("slot", { key: '4ef189eb3f9b99a01bed5077e5010fc455ba2721' })))));
|
|
102
102
|
}
|
|
103
103
|
static get is() { return "bcm-basic-badge"; }
|
|
104
104
|
static get encapsulation() { return "shadow"; }
|
|
@@ -1 +1 @@
|
|
|
1
|
-
: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,Inter Variable,sans-serif}.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)}
|
|
1
|
+
: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,Inter Variable,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)}
|
|
@@ -170,14 +170,14 @@ export class BcmButton {
|
|
|
170
170
|
});
|
|
171
171
|
render() {
|
|
172
172
|
const { icon, position } = this.buttonIcon;
|
|
173
|
-
return (h(Host, { key: '
|
|
173
|
+
return (h(Host, { key: '1ea99318b31838afec9ae3a2184b51e5f6fa2e4d' }, h("button", { key: '78e0a1605edd296608de28803815065447ec6079', 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({
|
|
174
174
|
size: this.size,
|
|
175
175
|
kind: this.kind,
|
|
176
176
|
fullWidth: this.fullWidth,
|
|
177
177
|
disabled: this.disabled,
|
|
178
178
|
loading: this.loading,
|
|
179
179
|
position: this.position,
|
|
180
|
-
}) }, this.loading && h("slot", { key: '
|
|
180
|
+
}) }, this.loading && h("slot", { key: '36c82ea5ad85660118f17ceb7a8929187ddc9dd9', name: "loading" }), h("span", { key: '37f8857e1582ee85bae803344eaa920d7c07fe0e' }, h("slot", { key: '5e25f2acebccb178deba44c949a4adc38f2d3b14', name: "prefix" }, position === 'prefix' && icon && h("i", { key: 'f297d627a2bfef386a09af9c429d2e7f450ad329', class: ' leading-none ' + icon }))), h("slot", { key: 'a6eeddad54e1e9aabadc146dd437706534df80f6' }, this.buttonText), h("span", { key: '4f55c951cd643a0f1eeb75230252095f616276d5' }, h("slot", { key: 'd7a5132f14ba3ccc9a74f758fc75666837202456', name: "suffix" }, position === 'suffix' && icon && h("i", { key: '78e6d3077c97b6ba38793336ef5bb5b7d4251566', class: ' leading-none ' + icon }))))));
|
|
181
181
|
}
|
|
182
182
|
static get is() { return "bcm-button"; }
|
|
183
183
|
static get encapsulation() { return "shadow"; }
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.relative{position:relative}:host{display:inline-flex;height:-moz-fit-content;height:fit-content;position:relative;width:-moz-fit-content;width:fit-content}: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}.bcm-ui-element{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-family:Inter,Inter Variable,sans-serif}.
|
|
1
|
+
.relative{position:relative}:host{display:inline-flex;height:-moz-fit-content;height:fit-content;position:relative;width:-moz-fit-content;width:fit-content}: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}.bcm-ui-element{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-family:Inter,Inter Variable,sans-serif}.flex{display:flex}.max-h-64{max-height:16rem}.w-full{width:100%}.min-w-10{min-width:2.5rem}.max-w-64{max-width:16rem}.flex-col{flex-direction:column}.items-center{align-items:center}.overflow-y-auto{overflow-y:auto}.rounded-lg{border-radius:var(--bcm-ui-border-radius-lg,8px)}.bg-color-basic-panel{background-color:var(--bcm-ui-color-background-basic-panel)}.py-1\.5{padding-bottom:.375rem;padding-top:.375rem}.shadow{--tw-shadow:var(--bcm-ui-box-shadow-default);--tw-shadow-colored:var(--bcm-ui-box-shadow-default)}.shadow,.shadow-3{box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.shadow-3{--tw-shadow:var(--bcm-ui-box-shadow-3);--tw-shadow-colored:var(--bcm-ui-box-shadow-3)}.outline{outline-style:solid}.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}}.visible{visibility:visible}.static{position:static}.fixed{position:fixed}.absolute{position:absolute}.right-3{right:.75rem}.right-4{right:1rem}.right-6{right:1.5rem}.top-3{top:.75rem}.top-4{top:1rem}.top-6{top:1.5rem}.z-\[9999\]{z-index:9999}.m-0{margin:0}.inline-block{display:inline-block}.hidden{display:none}.size-6{height:1.5rem;width:1.5rem}.h-3{height:.75rem}.w-3{width:.75rem}.max-w-80{max-width:20rem}.max-w-96{max-width:24rem}.flex-1{flex:1 1 0%}.rotate-45{--tw-rotate:45deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.cursor-pointer{cursor:pointer}.flex-row{flex-direction:row}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.gap-2{gap:.5rem}.gap-4{gap:1rem}.gap-6{gap:1.5rem}.gap-8{gap:2rem}.text-pretty{text-wrap:pretty}.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}.pr-8{padding-right:2rem}.font-sans{font-family:Inter,Inter Variable,sans-serif}.text-size-4{font-size:var(--bcm-ui-font-size-4,14px);line-height:var(--bcm-ui-line-height-4,20px)}.text-size-5{font-size:var(--bcm-ui-font-size-5,16px);line-height:var(--bcm-ui-line-height-5,24px)}.text-size-6{font-size:var(--bcm-ui-font-size-6,18px);line-height:var(--bcm-ui-line-height-6,24px)}.text-size-7{font-size:var(--bcm-ui-font-size-7,20px);line-height:var(--bcm-ui-line-height-7,28px)}.font-semibold{font-weight:600}.\!text-color-header{color:var(--bcm-ui-color-text-header)!important}.text-\[var\(--bcm-ui-color-text-error\)\]{color:var(--bcm-ui-color-text-error)}.text-\[var\(--bcm-ui-color-text-info\)\]{color:var(--bcm-ui-color-text-info)}.text-\[var\(--bcm-ui-color-text-success\)\]{color:var(--bcm-ui-color-text-success)}.text-\[var\(--bcm-ui-color-text-warning\)\]{color:var(--bcm-ui-color-text-warning)}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.hover\:bg-gray-100:hover{background-color:oklch(.967 .003 264.542)}.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}.cursor-not-allowed{cursor:not-allowed}.appearance-none{appearance:none}.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}.font-medium{font-weight:500}.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)}.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)}
|
|
@@ -85,10 +85,10 @@ export class BcmButtonGroup {
|
|
|
85
85
|
twMerge: false,
|
|
86
86
|
});
|
|
87
87
|
render() {
|
|
88
|
-
return (h(Host, { key: '
|
|
88
|
+
return (h(Host, { key: '8d88cf214197d97f7c006286c85d631b0921d662' }, h("div", { key: 'd597a5f10e5fc5f050924bd48c764b9aeafbc672', class: this.buttonGroupClass({
|
|
89
89
|
orientation: this.orientation,
|
|
90
90
|
fullWidth: this.fullWidth,
|
|
91
|
-
}) }, h("slot", { key: '
|
|
91
|
+
}) }, h("slot", { key: 'e167d1694667140bf970f8f2eb4ad9266fd71681' }))));
|
|
92
92
|
}
|
|
93
93
|
static get is() { return "bcm-button-group"; }
|
|
94
94
|
static get encapsulation() { return "shadow"; }
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.block{display:block}.flex{display:flex}:host{display:block}.bcm-button-group{display:flex}.bcm-ui-element{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-family:Inter,Inter Variable,sans-serif}.
|
|
1
|
+
.block{display:block}.flex{display:flex}:host{display:block}.bcm-button-group{display:flex}.bcm-ui-element{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-family:Inter,Inter Variable,sans-serif}.w-full{width:100%}.flex-row{flex-direction:row}.flex-col{flex-direction:column}.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)}
|
|
@@ -361,7 +361,7 @@ export class Checkbox extends BaseChoiceControl {
|
|
|
361
361
|
labelPosition: this.labelPosition,
|
|
362
362
|
});
|
|
363
363
|
const internalId = (this._id ? `${this._id}-internal-checkbox` : undefined) ?? this.name ?? 'bcm-checkbox';
|
|
364
|
-
return (h("div", { key: '
|
|
364
|
+
return (h("div", { key: '1439de99bbd34bf79e8c4aab73e53ad7210889cf', class: root(), style: this.getStyles(), part: "checkbox" }, h("div", { key: '11b06ec19eee1795dc5c38838fe8140d987aca05', class: row() }, h("div", { key: '58349e8fc657776c99e24abe6f7fe5f245f15b7f', class: "relative inline-flex" }, h("input", { key: '0effd2f01aa147bce8c9a0af237ed37292805a2b', ref: el => (this.inputElement = el), type: "checkbox", role: "checkbox", id: internalId, name: this.name, checked: this.internalChecked, indeterminate: this.indeterminate, disabled: this.disabled, class: hiddenInput(), "aria-checked": this.internalChecked ? 'true' : this.indeterminate ? 'mixed' : 'false', "aria-invalid": this.error, "aria-required": this.required, "aria-label": this.label || 'Checkbox', onChange: this.handleChange, part: "input" }), h("div", { key: '5c1c6fbd7f3a651f5dcbb445019c6c68f3f1482f', class: checkbox(), part: "control", onClick: () => this.inputElement?.click() }, this.internalChecked && (h("div", { key: '982565dc34854eb2992d7c37b5c79f48aad81fde', class: iconContainer(), part: "icon" }, h("bcm-icon", { key: '27edfb270f68a8e2579d7ddda1d2c7db74e69cb1', name: "fa-regular fa-check" }))), this.indeterminate && !this.internalChecked && (h("div", { key: 'b42c459bc20d2cb3992b72e19e1cb0b307aaa7aa', class: iconContainer(), part: "icon" }, h("bcm-icon", { key: '01c0e0d5aeb32f962699c80dfcfd4b85ea315e19', name: "fa-regular fa-minus" }))))), h("label", { key: '01a0c46e1d5a5e839e6316416856b8928b3b380f', htmlFor: internalId, class: label(), part: "label" }, h("slot", { key: 'f874e503e169b3296f31002ad739d978fdb4b37f' }, this.label))), this.error && this.caption && (h("span", { key: 'd8453e0638c46c59e6bcbb58340b4b0eb679c863', class: caption(), part: "caption" }, this.caption))));
|
|
365
365
|
}
|
|
366
366
|
static get is() { return "bcm-checkbox"; }
|
|
367
367
|
static get encapsulation() { return "shadow"; }
|
|
@@ -132,7 +132,7 @@ export class BcmChip {
|
|
|
132
132
|
}
|
|
133
133
|
}
|
|
134
134
|
render() {
|
|
135
|
-
return (h("div", { key: '
|
|
135
|
+
return (h("div", { key: '8ad5584c9279bcd53ec71161c2ec937e4d6e3edc', style: this.chipStyle, class: this.chipClass({ size: this.size, kind: this.kind, disabled: this.disabled }), role: "button", "aria-disabled": this.disabled ? 'true' : 'false' }, h("slot", { key: '04c00866c3616ac5d32ba74559dd2d39d3a1fe34' }), this.dismissible && h("bcm-icon", { key: 'c3f2394d92acbd277d96a5da953ebf1c81ff0607', onClick: () => this.handleDismiss(), class: "cursor-pointer", "icon-name": "fa-regular fa-xmark", "aria-label": "Dismiss chip" })));
|
|
136
136
|
}
|
|
137
137
|
static get is() { return "bcm-chip"; }
|
|
138
138
|
static get encapsulation() { return "shadow"; }
|
|
@@ -1 +1 @@
|
|
|
1
|
-
:host{--bcm-chip-bg:var(--bcm-ui-color-background-default-default);--bcm-chip-text:var(--bcm-ui-color-text-default);--bcm-chip-border:var(--bcm-ui-color-border-default);--bcm-chip-hover-bg:var(--bcm-ui-color-background-default-hover);--bcm-chip-active-bg:var(--bcm-ui-color-background-default-active);--bcm-chip-radius:6px;display:inline-block}.bcm-ui-element{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-family:Inter,Inter Variable,sans-serif}.flex{display:flex}.min-w-max{min-width:max-content}.cursor-not-allowed{cursor:not-allowed}.cursor-pointer{cursor:pointer}.items-center{align-items:center}.justify-center{justify-content:center}.gap-1{gap:.25rem}.rounded-\[--bcm-chip-radius\]{border-radius:var(--bcm-chip-radius)}.border{border-width:1px}.border-none{border-style:none}.border-\[--bcm-chip-border\]{border-color:var(--bcm-chip-border)}.border-transparent{border-color:transparent}.bg-\[--bcm-chip-bg\]{background-color:var(--bcm-chip-bg)}.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}.py-px{padding-bottom:1px;padding-top:1px}.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-normal{font-weight:400}.text-\[--bcm-chip-text\]{color:var(--bcm-chip-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)}.hover\:bg-\[--bcm-chip-hover-bg\]:hover{background-color:var(--bcm-chip-hover-bg)}.active\:bg-\[--bcm-chip-active-bg\]:active{background-color:var(--bcm-chip-active-bg)}
|
|
1
|
+
:host{--bcm-chip-bg:var(--bcm-ui-color-background-default-default);--bcm-chip-text:var(--bcm-ui-color-text-default);--bcm-chip-border:var(--bcm-ui-color-border-default);--bcm-chip-hover-bg:var(--bcm-ui-color-background-default-hover);--bcm-chip-active-bg:var(--bcm-ui-color-background-default-active);--bcm-chip-radius:6px;display:inline-block}.bcm-ui-element{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-family:Inter,Inter Variable,sans-serif}.static{position:static}.flex{display:flex}.min-w-max{min-width:max-content}.cursor-not-allowed{cursor:not-allowed}.cursor-pointer{cursor:pointer}.items-center{align-items:center}.justify-center{justify-content:center}.gap-1{gap:.25rem}.rounded-\[--bcm-chip-radius\]{border-radius:var(--bcm-chip-radius)}.border{border-width:1px}.border-none{border-style:none}.border-\[--bcm-chip-border\]{border-color:var(--bcm-chip-border)}.border-transparent{border-color:transparent}.bg-\[--bcm-chip-bg\]{background-color:var(--bcm-chip-bg)}.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}.py-px{padding-bottom:1px;padding-top:1px}.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-normal{font-weight:400}.text-\[--bcm-chip-text\]{color:var(--bcm-chip-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)}.hover\:bg-\[--bcm-chip-hover-bg\]:hover{background-color:var(--bcm-chip-hover-bg)}.active\:bg-\[--bcm-chip-active-bg\]:active{background-color:var(--bcm-chip-active-bg)}
|
|
@@ -63,7 +63,7 @@ export class Divider {
|
|
|
63
63
|
twMerge: false,
|
|
64
64
|
});
|
|
65
65
|
render() {
|
|
66
|
-
return (h("div", { key: '
|
|
66
|
+
return (h("div", { key: 'c59fec0ff25d3b31c456397b2a8df25faebfae05', role: "separator", "aria-orientation": this.direction, class: this.dividerClass({
|
|
67
67
|
direction: this.direction,
|
|
68
68
|
variant: this.variant,
|
|
69
69
|
size: this.size,
|
|
@@ -361,7 +361,7 @@ export class BcmDrawer {
|
|
|
361
361
|
noHeader: this.noHeader,
|
|
362
362
|
noFooter: this.noFooter,
|
|
363
363
|
});
|
|
364
|
-
return (h("dialog", { key: '
|
|
364
|
+
return (h("dialog", { key: '81c5658630bb4ee4f4693d551f6bdccea2776b3d', ref: el => (this.dialogRef = el), part: "dialog", class: dialog(), onClick: this.handleBackdropClick, onCancel: this.handleDialogCancel, "aria-labelledby": "drawer-title", "aria-describedby": this.helperText ? 'drawer-helper' : undefined, "aria-modal": "true" }, h("div", { key: 'eb53ad80389cf56f25788ab7580e833e11b4d06e', part: "container", class: container() }, h("div", { key: '5bf4d7fe05ba209403a798b6caac63d921ff7785', part: "drawer", class: drawer(), style: this.getDrawerStyle(), role: "document", onClick: this.handleDrawerClick }, !this.noHeader && (h("div", { key: 'e2e8e7d9e3d54c51b4a7a898bf47c88011da1108', part: "header", class: header() }, h("div", { key: '9868e6c9f5227ca0dc1883e2c75e778c0c1b8d51', part: "header-content", class: headerContent() }, h("h2", { key: '1c5866d24a311f737697a895fe3fa3335dffe1b0', id: "drawer-title", part: "title", class: title() }, h("slot", { key: '04b5dc29029a92bf34dad488e861cf40df53b3e9', name: "header" }, this.headerText)), this.helperText && (h("p", { key: '0c9840a5dbbcfb71157ce12b1b5bc1161a3b5824', id: "drawer-helper", part: "helper-text", class: helperText() }, h("slot", { key: '6d58894a15b2031a75b965334116e9da0ef131f7', name: "helper" }, this.helperText)))), h("button", { key: 'b11945796962da08c7d1b23f9337892aa3e654f4', part: "close-button", class: closeButton(), onClick: () => this.hide(), "aria-label": "Close drawer", type: "button" }, h("bcm-icon", { key: '1f211c596717d8172e4485c7f1a6d86e2c9a7079', name: "fa-solid fa-xmark" })))), h("div", { key: '3612001d93962defead3e2fd8b2b5cbe196ad54b', part: "content", class: content() }, h("slot", { key: '162f338b88e42b3073eaa151885ed8804d246bf4' })), !this.noFooter && (h("div", { key: '0af0db53c5a7846c9677bd0535f1fe4aac50cbc3', part: "footer", class: footer() }, h("slot", { key: 'ddf81921c31b0649f13d1d57a0c645b73a6747ef', name: "footer" })))))));
|
|
365
365
|
}
|
|
366
366
|
static get is() { return "bcm-drawer"; }
|
|
367
367
|
static get encapsulation() { return "shadow"; }
|
|
@@ -27,7 +27,7 @@ export class Dropdown {
|
|
|
27
27
|
}
|
|
28
28
|
};
|
|
29
29
|
render() {
|
|
30
|
-
return (h(Host, { key: '
|
|
30
|
+
return (h(Host, { key: '2faadef3d5fb0ff1e0b0f1bed6aa63c64c220264' }, h("bcm-linked", { key: 'f81c8bebe44deff74f3a4e688d70633ca8d24a19', trigger: "click", placement: "bottom-start" }, h("bcm-button", { key: 'fb0c175118ec4dfdbe58afed227033c62cad12da', kind: "outline", slot: "trigger" }, h("span", { key: 'ab8ed34151b645cf2b82b1bc1932c7c8762f37b0', part: "text" }, this.text)), h("div", { key: 'c3e2c0a26c622c60bd283d68bc583c59c20e8ecd', part: "dropdown-container", class: this.dropdownClass() }, h("slot", { key: '872b04b80f3b61b6a8fed1570a2053f1942b468d', onSlotchange: this.handleSlotChange })))));
|
|
31
31
|
}
|
|
32
32
|
static get is() { return "bcm-dropdown"; }
|
|
33
33
|
static get encapsulation() { return "shadow"; }
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.visible{visibility:visible}.hidden{display:none}.bcm-ui-element{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-family:Inter,Inter Variable,sans-serif}.
|
|
1
|
+
.visible{visibility:visible}.hidden{display:none}.bcm-ui-element{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-family:Inter,Inter Variable,sans-serif}.flex{display:flex}.max-h-64{max-height:16rem}.w-full{width:100%}.min-w-10{min-width:2.5rem}.max-w-64{max-width:16rem}.flex-col{flex-direction:column}.items-center{align-items:center}.overflow-y-auto{overflow-y:auto}.rounded-lg{border-radius:var(--bcm-ui-border-radius-lg,8px)}.bg-color-basic-panel{background-color:var(--bcm-ui-color-background-basic-panel)}.py-1\.5{padding-bottom:.375rem;padding-top:.375rem}.shadow{--tw-shadow:var(--bcm-ui-box-shadow-default);--tw-shadow-colored:var(--bcm-ui-box-shadow-default)}.shadow,.shadow-3{box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.shadow-3{--tw-shadow:var(--bcm-ui-box-shadow-3);--tw-shadow-colored:var(--bcm-ui-box-shadow-3)}.outline{outline-style:solid}
|
|
@@ -41,10 +41,10 @@ export class DropdownItem {
|
|
|
41
41
|
twMerge: false,
|
|
42
42
|
});
|
|
43
43
|
render() {
|
|
44
|
-
return (h("div", { key: '
|
|
44
|
+
return (h("div", { key: 'd1556f355242b946fe8dd9474345f68e63057456', "aria-checked": this.selected, class: this.dropdownItemClass({
|
|
45
45
|
selected: this.selected,
|
|
46
46
|
error: this.error,
|
|
47
|
-
}), onClick: () => this.handleClick() }, h("slot", { key: '
|
|
47
|
+
}), onClick: () => this.handleClick() }, h("slot", { key: 'a90f641dd9028cf1133eed3012146dd009b7d539', name: "left-content" }, this.icon && h("bcm-icon", { key: '285f9e5be9f469b21fa13c869e998fdaea4e33ad', "icon-name": this.icon })), h("div", { key: '88ed52038a89adcc295722f913adf0f6ea35380c', class: "flex flex-row text-pretty w-full" }, h("slot", { key: 'eda2b44a8c725f1754ad86c5abe4b67236b0ff0b' }, this.text)), h("slot", { key: '4b05ed73283c11d3e789311fa82e8915abafce99', name: "right-content" }, this.rightIcons?.map(icon => (h("bcm-icon", { "icon-name": icon }))))));
|
|
48
48
|
}
|
|
49
49
|
static get is() { return "bcm-dropdown-item"; }
|
|
50
50
|
static get encapsulation() { return "shadow"; }
|
|
@@ -338,14 +338,14 @@ export class BcmInput {
|
|
|
338
338
|
disabled: this.disabled,
|
|
339
339
|
focused: this.isFocused,
|
|
340
340
|
});
|
|
341
|
-
return (h("div", { key: '
|
|
341
|
+
return (h("div", { key: 'f1416e171b7b003810be70e4ae52b5656fb636bc', class: "bcm-ui-element" }, this.label && (h("label", { key: '9a8dc3005ff12793bdcc22ac2f67296dbba9e1a9', class: classNames('input-label font-medium', {
|
|
342
342
|
'text-color-label': !this.disabled,
|
|
343
343
|
'text-color-disabled': this.disabled,
|
|
344
344
|
}, {
|
|
345
345
|
'text-size-3': this.size === 'small',
|
|
346
346
|
'text-size-4': this.size === 'medium',
|
|
347
347
|
'text-size-5': this.size === 'large',
|
|
348
|
-
}), htmlFor: inputId }, h("slot", { key: '
|
|
348
|
+
}), htmlFor: inputId }, h("slot", { key: 'a0effbf8991b1b7e0c7970d69039bc258432085a', name: "label" }, this.label), this.required && h("span", { key: '1da707cd979a59dc3795fe0f85909f9d4a622513' }, "*"))), h("div", { key: '0da7cc9a6e2a322a0bc58cf576920cc724cc42fe', class: base() }, (this.hasSlotContent('prefix') || this.prefixIcon || this.getDefaultIconForType()) && (h("div", { key: '77aa4803f97e37a1cd7f652d83ea6d22d7351ca6', class: "flex items-center gap-2 px-2" }, (this.prefixIcon || this.getDefaultIconForType()) && (h("bcm-icon", { key: '64da4cf7319d59e91fa9517e97fb8cded597c95f', class: "prefix-icon", "icon-name": this.prefixIcon || this.getDefaultIconForType(), size: this.iconSize })), h("slot", { key: '1c5f4008075babd9474e672a143f7eb54fe7ce24', name: "prefix" }))), h("input", { key: 'df9e0521d580f4b6022832ef3fcaf86b6508ee67', ref: el => (this.inputRef = el), id: inputId, class: inputClass(), type: this.type, name: this.name, disabled: this.disabled, readonly: this.readonly, required: this.required, placeholder: this.placeholder, autocomplete: this.autocomplete, minlength: this.minLength, maxlength: this.maxLength, min: this.min, max: this.max, step: this.step, pattern: this.pattern, "aria-invalid": this.status === 'error', "aria-required": this.required, "aria-labelledby": this.labelledby, "aria-describedby": this.describedby, value: this.value, onInput: this.onInput, onChange: this.onChange, onFocus: this.onFocus, onBlur: this.onBlur, onKeyDown: this.onKeyDown, onKeyUp: this.onKeyUp }), (this.hasSlotContent('suffix') || this.suffixIcon) && (h("div", { key: 'b3cc3f4736d78d469b1addc994a1be516bdd5f2b', class: "flex items-center gap-2 px-2" }, h("slot", { key: '0f06aaf53a846749f94e72f6d632d17653121d97', name: "suffix" }), this.suffixIcon && h("bcm-icon", { key: '8b22ed0ac67d749b83b09c16fd1aec8141720fcf', class: "suffix-icon", "icon-name": this.suffixIcon, size: this.iconSize }))), this.PasswordToggleButton()), (this.captionText || this.internalErrorMessage || this.validationMessage) && (h("div", { key: '389bd6172582b601405c84b96375c6ad0aeb93e9', class: classNames('input-caption-text font-regular mt-1', {
|
|
349
349
|
'text-[--bcm-ui-color-text-caption]': !this.disabled && this.internalStatus === 'default',
|
|
350
350
|
'text-[--bcm-ui-color-text-error]': !this.disabled && (this.internalStatus === 'error' || !this.isValid),
|
|
351
351
|
'text-[--bcm-ui-color-text-success]': !this.disabled && this.internalStatus === 'success',
|
|
@@ -459,9 +459,9 @@ export class BcmLinked {
|
|
|
459
459
|
});
|
|
460
460
|
render() {
|
|
461
461
|
const { wrapper, floating, arrow, content } = this.linkedClass();
|
|
462
|
-
return (h(Host, { key: '
|
|
462
|
+
return (h(Host, { key: 'dbc3d142529d7147007e854591c83ebae052cf17' }, h("div", { key: '3e7253256768b3a00e53db75ddaf3cbf4e7878bd', class: wrapper() }, h("slot", { key: '2d38a538c6c92294936bbd5b0419f534c4d0a04d', name: "trigger", onSlotchange: this.handleTriggerSlotChange }), h("div", { key: 'ff97471403f6012b3416ee20c5c64f012b96585c', ref: el => (this.floatingRef = el), id: this.componentId, part: "floating", class: floating(),
|
|
463
463
|
// @ts-ignore - popover is a valid HTML attribute
|
|
464
|
-
popover: "manual", role: "dialog" }, this.showArrow && h("div", { key: '
|
|
464
|
+
popover: "manual", role: "dialog" }, this.showArrow && h("div", { key: '6f5fe8b9eafd3219437a2a2cdf83ab651b5090db', ref: el => (this.arrowRef = el), part: "arrow", class: arrow() }), h("div", { key: 'a0387e48c33101ada01f2196af226117c84b2a6e', part: "content", class: content() }, h("slot", { key: '5fba0836dd50f7e7afd60cd151088272c5043bcc' }))))));
|
|
465
465
|
}
|
|
466
466
|
static get is() { return "bcm-linked"; }
|
|
467
467
|
static get encapsulation() { return "shadow"; }
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.visible{visibility:visible}.absolute{position:absolute}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.border{border-width:1px}.transition{transition-duration:.15s;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1)}.ease-out{transition-timing-function:cubic-bezier(0,0,.2,1)}:host{display:inline-block}[popover]{background:transparent;border:none;margin:0;opacity:0;overflow:visible;padding:0;position:absolute;transform:scale(.95);transition:opacity .15s ease-out,transform .15s ease-out,display allow-discrete .15s ease-out,overlay allow-discrete .15s ease-out}[popover]:popover-open{opacity:1;transform:scale(1)}@starting-style{[popover]:popover-open{opacity:0;transform:scale(.95)}}[data-placement^=top] [part=arrow]{border-left:none;border-top:none;bottom:-4px}[data-placement^=bottom] [part=arrow]{border-bottom:none;border-right:none;top:-4px}[data-placement^=left] [part=arrow]{border-bottom:none;border-left:none;right:-4px}[data-placement^=right] [part=arrow]{border-right:none;border-top:none;left:-4px}.bcm-ui-element{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-family:Inter,Inter Variable,sans-serif}.
|
|
1
|
+
.visible{visibility:visible}.absolute{position:absolute}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.border{border-width:1px}.transition{transition-duration:.15s;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1)}.ease-out{transition-timing-function:cubic-bezier(0,0,.2,1)}:host{display:inline-block}[popover]{background:transparent;border:none;margin:0;opacity:0;overflow:visible;padding:0;position:absolute;transform:scale(.95);transition:opacity .15s ease-out,transform .15s ease-out,display allow-discrete .15s ease-out,overlay allow-discrete .15s ease-out}[popover]:popover-open{opacity:1;transform:scale(1)}@starting-style{[popover]:popover-open{opacity:0;transform:scale(.95)}}[data-placement^=top] [part=arrow]{border-left:none;border-top:none;bottom:-4px}[data-placement^=bottom] [part=arrow]{border-bottom:none;border-right:none;top:-4px}[data-placement^=left] [part=arrow]{border-bottom:none;border-left:none;right:-4px}[data-placement^=right] [part=arrow]{border-right:none;border-top:none;left:-4px}.bcm-ui-element{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-family:Inter,Inter Variable,sans-serif}.flex{display:flex}.max-h-64{max-height:16rem}.w-full{width:100%}.min-w-10{min-width:2.5rem}.max-w-64{max-width:16rem}.flex-col{flex-direction:column}.items-center{align-items:center}.overflow-y-auto{overflow-y:auto}.rounded-lg{border-radius:var(--bcm-ui-border-radius-lg,8px)}.bg-color-basic-panel{background-color:var(--bcm-ui-color-background-basic-panel)}.py-1\.5{padding-bottom:.375rem;padding-top:.375rem}.shadow{--tw-shadow:var(--bcm-ui-box-shadow-default);--tw-shadow-colored:var(--bcm-ui-box-shadow-default)}.shadow,.shadow-3{box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.shadow-3{--tw-shadow:var(--bcm-ui-box-shadow-3);--tw-shadow-colored:var(--bcm-ui-box-shadow-3)}.outline{outline-style:solid}.static{position:static}.fixed{position:fixed}.relative{position:relative}.inline-block{display:inline-block}.hidden{display:none}.h-2{height:.5rem}.w-2{width:.5rem}.rotate-45{--tw-rotate:45deg;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))}.rounded-md{border-radius:var(--bcm-ui-border-radius-md,6px)}.bg-color-basic-base{background-color:var(--bcm-ui-color-background-basic-base)}.shadow,.shadow-lg{box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.shadow-lg{--tw-shadow:var(--bcm-ui-box-shadow-lg);--tw-shadow-colored:var(--bcm-ui-box-shadow-lg)}.blur{--tw-blur:blur(8px);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}
|
|
@@ -389,7 +389,7 @@ export class BcmModal {
|
|
|
389
389
|
noHeader: this.noHeader,
|
|
390
390
|
noFooter: this.noFooter,
|
|
391
391
|
});
|
|
392
|
-
return (h("dialog", { key: '
|
|
392
|
+
return (h("dialog", { key: 'abf9f2ba545f64908ab69d9cc77f38384ca8b294', ref: el => (this.dialogRef = el), part: "dialog", class: dialog(), onClick: this.handleBackdropClick, onCancel: this.handleDialogCancel, "aria-labelledby": "modal-title", "aria-describedby": this.helperText ? 'modal-helper' : undefined, "aria-modal": "true" }, h("div", { key: '8b74fa435ba18c760fac5a69d69b9ec931719774', part: "container", class: container() }, h("div", { key: '97c300b0362f0785fa10bb28f65584b342e1043d', part: "modal", class: modal(), style: this.getModalStyle(), role: "document", onClick: e => e.stopPropagation() }, !this.noHeader && (h("div", { key: 'df1f72c63d84cb651c25089a32b138051c1828f9', part: "header", class: header() }, h("div", { key: '4d3ea8ea5015b40a62c73a9653251466de5e396d', part: "header-content", class: headerContent() }, h("h2", { key: '1c07ed9cacf3817dd8aca18e6c84873154a70275', id: "modal-title", part: "title", class: title() }, h("slot", { key: 'f8e6c5964a62e28ea64d9118ada58568bc2844f5', name: "header" }, this.headerText)), this.helperText && (h("p", { key: '0adf0359fd32f278680fd637d8f883f88b885194', id: "modal-helper", part: "helper-text", class: helperText() }, h("slot", { key: '24fd7c93a6cb4c3c5091a6b1bf171abd40f5a0f6', name: "helper" }, this.helperText)))), h("button", { key: 'a60a222675ea2f95bd281bf2049a3b1275724049', part: "close-button", class: closeButton(), onClick: () => this.hide(), "aria-label": "Close modal", type: "button" }, h("bcm-icon", { key: '1552b7345565fb9721cbff0a1ecd177fde5db2eb', name: "fa-solid fa-xmark" })))), h("div", { key: '31a07a87efcdec2c4a672b7f78b0bdf1a98d15e8', part: "content", class: content() }, h("slot", { key: '951761be372e23ab7224046504ace7fcf895a626' })), !this.noFooter && (h("div", { key: 'e052a785b68fd593d2eabc2a59376570a76dcebb', part: "footer", class: footer() }, h("slot", { key: '6c48cc1b5473a9d9887955b9a6b6e01c3c68a21c', name: "footer" })))))));
|
|
393
393
|
}
|
|
394
394
|
static get is() { return "bcm-modal"; }
|
|
395
395
|
static get encapsulation() { return "shadow"; }
|
|
@@ -522,7 +522,7 @@ export class BcmPopConfirm {
|
|
|
522
522
|
// Status icon only shows if explicitly enabled AND there's header text
|
|
523
523
|
const showStatusIcon = this.statusIcon && this.headerText;
|
|
524
524
|
const hasHeaderText = Boolean(this.headerText);
|
|
525
|
-
return (h("div", { key: '
|
|
525
|
+
return (h("div", { key: 'ef324898cdc6e0d02d974b5d963a83d826ae03c6', class: "inline-block" }, h("slot", { key: '9837be082d95203034b4ef632b4e1de552b3ddf3', onSlotchange: this.handleSlotChange }), h("div", { key: 'a7b6405ba095cf5a8b44b30646dcd1dec47ee8c1', ref: el => (this.popconfirmRef = el), id: this.popconfirmId, part: "container", class: container(), popover: "manual", role: "alertdialog", "aria-labelledby": hasHeaderText ? `${this.popconfirmId}-header` : undefined, "aria-describedby": `${this.popconfirmId}-body` }, this.showArrow && h("div", { key: '1e755056630025c285f239b97d4f8b12157b27e0', ref: el => (this.arrowRef = el), part: "arrow", class: arrowClass() }), h("div", { key: 'f22df40716a39c698f81d263f32e5dde5e750736', class: closeBtn(), onClick: this.handleCancel, role: "button", tabIndex: 0, "aria-label": "Close" }, h("bcm-icon", { key: 'e65ed93d76065b6d60ffaca447cd74c88c42f6ba', "icon-name": "far fa-times" })), h("header", { key: 'b1a14421eadebdc5d7743442a5cd5764cdb1c91c', class: header() }, h("div", { key: 'ad38f509d91aee4ac330a7dbd9219b38d74fd293', class: headerLeft() }, showStatusIcon && h("bcm-icon", { key: 'a6e30f3013293535e30702f06bba4026e2cc9997', "icon-name": statusIcons[this.status] }), hasHeaderText && (h("span", { key: 'a7783f8b4ffebdbb9e3933ab126e89ce665bb11e', id: `${this.popconfirmId}-header`, class: title() }, this.headerText)), h("slot", { key: 'cb19354b2da6509b32335fbdcb7e39f9e3e870bb', name: "header" }))), h("main", { key: '9196e80c62ee712e7ac308c58f7fb31bb5a658e0', id: `${this.popconfirmId}-body`, part: "body", class: body() }, h("slot", { key: '7aad6ce3617628d6e318ab344d26856271fbc5ea', name: "body" }, this.description)), h("footer", { key: 'a6d0240f6b1e814425ae790fdf4e208d1256503d', part: "footer", class: footer() }, h("slot", { key: '47a863b401cbdba258ccd9d05ea7969b263f9fb3', name: "footer" }, h("bcm-button", { key: 'cef225e554ea2897e7fe6657037cdaa847aed9b6', kind: "outline", size: this.size, onClick: this.handleCancel }, this.cancelText), h("bcm-button", { key: '2e515544c5a0e02d83e3d7a8e9fddab4b08bd4e7', size: this.size, status: this.status, kind: "primary", onClick: this.handleConfirm }, this.confirmText))))));
|
|
526
526
|
}
|
|
527
527
|
static get is() { return "bcm-pop-confirm"; }
|
|
528
528
|
static get encapsulation() { return "shadow"; }
|