bromcom-ui-next 0.1.21 → 0.1.22
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/bcm-accordion-group.entry.esm.js.map +1 -0
- package/dist/bromcom-ui/bcm-accordion.entry.esm.js.map +1 -0
- package/dist/bromcom-ui/bcm-alert.entry.esm.js.map +1 -0
- package/dist/bromcom-ui/bcm-avatar.entry.esm.js.map +1 -0
- package/dist/bromcom-ui/bcm-badge.entry.esm.js.map +1 -0
- package/dist/bromcom-ui/bcm-basic-badge.entry.esm.js.map +1 -0
- package/dist/bromcom-ui/bcm-button-group.entry.esm.js.map +1 -0
- package/dist/bromcom-ui/bcm-button.entry.esm.js.map +1 -0
- package/dist/bromcom-ui/bcm-checkbox.entry.esm.js.map +1 -0
- package/dist/bromcom-ui/bcm-chip.entry.esm.js.map +1 -0
- package/dist/bromcom-ui/bcm-divider.entry.esm.js.map +1 -0
- package/dist/bromcom-ui/bcm-drawer.entry.esm.js.map +1 -0
- package/dist/bromcom-ui/bcm-dropdown-item.entry.esm.js.map +1 -0
- package/dist/bromcom-ui/bcm-dropdown.entry.esm.js.map +1 -0
- package/dist/bromcom-ui/bcm-input.entry.esm.js.map +1 -0
- package/dist/bromcom-ui/bcm-linked.entry.esm.js.map +1 -0
- package/dist/bromcom-ui/bcm-pop-confirm.entry.esm.js.map +1 -0
- package/dist/bromcom-ui/bcm-popover.entry.esm.js.map +1 -0
- package/dist/bromcom-ui/bcm-radio-group.entry.esm.js.map +1 -0
- package/dist/bromcom-ui/bcm-radio.entry.esm.js.map +1 -0
- package/dist/bromcom-ui/bcm-segmented-picker-option.entry.esm.js.map +1 -0
- package/dist/bromcom-ui/bcm-segmented-picker.entry.esm.js.map +1 -0
- package/dist/bromcom-ui/bcm-shortcut.entry.esm.js.map +1 -0
- package/dist/bromcom-ui/bcm-switch.entry.esm.js.map +1 -0
- package/dist/bromcom-ui/bcm-tabs-content.entry.esm.js.map +1 -0
- package/dist/bromcom-ui/bcm-tabs-list.entry.esm.js.map +1 -0
- package/dist/bromcom-ui/bcm-tabs-trigger.entry.esm.js.map +1 -0
- package/dist/bromcom-ui/bcm-tabs.entry.esm.js.map +1 -0
- package/dist/bromcom-ui/bcm-text.entry.esm.js.map +1 -0
- package/dist/bromcom-ui/bcm-textarea.entry.esm.js.map +1 -0
- package/dist/bromcom-ui/bcm-tooltip.entry.esm.js.map +1 -0
- package/dist/bromcom-ui/bromcom-ui.esm.js +1 -1
- package/dist/bromcom-ui/bromcom-ui.esm.js.map +1 -1
- package/dist/bromcom-ui/index.esm.js.map +1 -1
- package/dist/bromcom-ui/loader.esm.js.map +1 -0
- package/dist/bromcom-ui/p-07b05abd.entry.js +2 -0
- package/dist/bromcom-ui/p-07b05abd.entry.js.map +1 -0
- package/dist/bromcom-ui/p-2d3a0ad4.entry.js +2 -0
- package/dist/bromcom-ui/p-2d3a0ad4.entry.js.map +1 -0
- package/dist/bromcom-ui/p-319d3937.entry.js +2 -0
- package/dist/bromcom-ui/p-319d3937.entry.js.map +1 -0
- package/dist/bromcom-ui/p-361073bc.entry.js +2 -0
- package/dist/bromcom-ui/p-361073bc.entry.js.map +1 -0
- package/dist/bromcom-ui/p-378bf83e.entry.js +2 -0
- package/dist/bromcom-ui/p-378bf83e.entry.js.map +1 -0
- package/dist/bromcom-ui/p-3866ae3e.entry.js +2 -0
- package/dist/bromcom-ui/p-3866ae3e.entry.js.map +1 -0
- package/dist/bromcom-ui/p-3fbed81b.entry.js +2 -0
- package/dist/bromcom-ui/p-3fbed81b.entry.js.map +1 -0
- package/dist/bromcom-ui/p-45158141.entry.js +2 -0
- package/dist/bromcom-ui/p-45158141.entry.js.map +1 -0
- package/dist/bromcom-ui/p-4d980154.entry.js +2 -0
- package/dist/bromcom-ui/p-4d980154.entry.js.map +1 -0
- package/dist/bromcom-ui/{p-a03922f8.entry.js → p-50505dd6.entry.js} +2 -2
- package/dist/bromcom-ui/p-50505dd6.entry.js.map +1 -0
- package/dist/bromcom-ui/{p-b1f9ad67.entry.js → p-62c14cc4.entry.js} +2 -2
- package/dist/bromcom-ui/p-62c14cc4.entry.js.map +1 -0
- package/dist/bromcom-ui/p-67f62d75.entry.js +2 -0
- package/dist/bromcom-ui/p-67f62d75.entry.js.map +1 -0
- package/dist/bromcom-ui/p-6fa6b826.entry.js +2 -0
- package/dist/bromcom-ui/p-6fa6b826.entry.js.map +1 -0
- package/dist/bromcom-ui/p-75d1117d.entry.js +2 -0
- package/dist/bromcom-ui/p-75d1117d.entry.js.map +1 -0
- package/dist/bromcom-ui/p-778c0de1.entry.js +2 -0
- package/dist/bromcom-ui/p-778c0de1.entry.js.map +1 -0
- package/dist/bromcom-ui/p-7d366ff2.entry.js +2 -0
- package/dist/bromcom-ui/p-7d366ff2.entry.js.map +1 -0
- package/dist/bromcom-ui/p-813cffad.entry.js +2 -0
- package/dist/bromcom-ui/p-813cffad.entry.js.map +1 -0
- package/dist/bromcom-ui/p-813e7ebe.entry.js +2 -0
- package/dist/bromcom-ui/p-813e7ebe.entry.js.map +1 -0
- package/dist/bromcom-ui/p-87e7e02a.entry.js +2 -0
- package/dist/bromcom-ui/p-87e7e02a.entry.js.map +1 -0
- package/dist/bromcom-ui/p-90b65db8.entry.js +2 -0
- package/dist/bromcom-ui/p-90b65db8.entry.js.map +1 -0
- package/dist/bromcom-ui/p-9293a2ce.entry.js +2 -0
- package/dist/bromcom-ui/p-9293a2ce.entry.js.map +1 -0
- package/dist/bromcom-ui/p-9bf8f3c1.entry.js +2 -0
- package/dist/bromcom-ui/p-9bf8f3c1.entry.js.map +1 -0
- package/dist/bromcom-ui/p-BfTCfPZ1.js +7 -0
- package/dist/bromcom-ui/p-BfTCfPZ1.js.map +1 -0
- package/dist/bromcom-ui/p-CEcVC0yX.js +2 -0
- package/dist/bromcom-ui/p-CEcVC0yX.js.map +1 -0
- package/dist/bromcom-ui/{p-13a245f6.js → p-CUvT12BL.js} +1 -1
- package/dist/bromcom-ui/p-CUvT12BL.js.map +1 -0
- package/dist/bromcom-ui/p-CrZxEeDA.js +3 -0
- package/dist/bromcom-ui/p-CrZxEeDA.js.map +1 -0
- package/dist/bromcom-ui/p-DxMLMJ3r.js +2 -0
- package/dist/bromcom-ui/p-DxMLMJ3r.js.map +1 -0
- package/dist/bromcom-ui/{p-ba2410ef.js → p-IBjzkjef.js} +2 -2
- package/dist/bromcom-ui/p-IBjzkjef.js.map +1 -0
- package/dist/bromcom-ui/p-a4ace572.entry.js +2 -0
- package/dist/bromcom-ui/p-a4ace572.entry.js.map +1 -0
- package/dist/bromcom-ui/p-a8b66a90.entry.js +2 -0
- package/dist/bromcom-ui/p-a8b66a90.entry.js.map +1 -0
- package/dist/bromcom-ui/p-ab1f24b4.entry.js +2 -0
- package/dist/bromcom-ui/p-ab1f24b4.entry.js.map +1 -0
- package/dist/bromcom-ui/p-b566bad4.entry.js +2 -0
- package/dist/bromcom-ui/p-b566bad4.entry.js.map +1 -0
- package/dist/bromcom-ui/p-c8307ce4.entry.js +2 -0
- package/dist/bromcom-ui/p-c8307ce4.entry.js.map +1 -0
- package/dist/bromcom-ui/p-c86d4b07.entry.js +2 -0
- package/dist/bromcom-ui/p-c86d4b07.entry.js.map +1 -0
- package/dist/bromcom-ui/{p-06d42346.entry.js → p-e00fa939.entry.js} +2 -2
- package/dist/bromcom-ui/p-e00fa939.entry.js.map +1 -0
- package/dist/bromcom-ui/{p-11227d96.entry.js → p-e91676ff.entry.js} +2 -2
- package/dist/bromcom-ui/p-e91676ff.entry.js.map +1 -0
- package/dist/bromcom-ui/p-fdc1df0c.entry.js +2 -0
- package/dist/bromcom-ui/p-fdc1df0c.entry.js.map +1 -0
- package/dist/cjs/bcm-accordion-group.cjs.entry.js +3 -5
- package/dist/cjs/bcm-accordion-group.cjs.entry.js.map +1 -1
- package/dist/cjs/bcm-accordion-group.entry.cjs.js.map +1 -0
- package/dist/cjs/bcm-accordion.cjs.entry.js +4 -6
- package/dist/cjs/bcm-accordion.cjs.entry.js.map +1 -1
- package/dist/cjs/bcm-accordion.entry.cjs.js.map +1 -0
- package/dist/cjs/bcm-alert.cjs.entry.js +4 -6
- package/dist/cjs/bcm-alert.cjs.entry.js.map +1 -1
- package/dist/cjs/bcm-alert.entry.cjs.js.map +1 -0
- package/dist/cjs/bcm-avatar.cjs.entry.js +4 -6
- package/dist/cjs/bcm-avatar.cjs.entry.js.map +1 -1
- package/dist/cjs/bcm-avatar.entry.cjs.js.map +1 -0
- package/dist/cjs/bcm-badge.cjs.entry.js +4 -6
- package/dist/cjs/bcm-badge.cjs.entry.js.map +1 -1
- package/dist/cjs/bcm-badge.entry.cjs.js.map +1 -0
- package/dist/cjs/bcm-basic-badge.cjs.entry.js +5 -7
- package/dist/cjs/bcm-basic-badge.cjs.entry.js.map +1 -1
- package/dist/cjs/bcm-basic-badge.entry.cjs.js.map +1 -0
- package/dist/cjs/bcm-button-group.cjs.entry.js +4 -6
- package/dist/cjs/bcm-button-group.cjs.entry.js.map +1 -1
- package/dist/cjs/bcm-button-group.entry.cjs.js.map +1 -0
- package/dist/cjs/bcm-button.cjs.entry.js +316 -0
- package/dist/cjs/bcm-button.cjs.entry.js.map +1 -0
- package/dist/cjs/bcm-button.entry.cjs.js.map +1 -0
- package/dist/cjs/bcm-checkbox.cjs.entry.js +5 -7
- package/dist/cjs/bcm-checkbox.cjs.entry.js.map +1 -1
- package/dist/cjs/bcm-checkbox.entry.cjs.js.map +1 -0
- package/dist/cjs/bcm-chip.cjs.entry.js +4 -6
- package/dist/cjs/bcm-chip.cjs.entry.js.map +1 -1
- package/dist/cjs/bcm-chip.entry.cjs.js.map +1 -0
- package/dist/cjs/bcm-divider.cjs.entry.js +4 -6
- package/dist/cjs/bcm-divider.cjs.entry.js.map +1 -1
- package/dist/cjs/bcm-divider.entry.cjs.js.map +1 -0
- package/dist/cjs/bcm-drawer.cjs.entry.js +206 -0
- package/dist/cjs/bcm-drawer.cjs.entry.js.map +1 -0
- package/dist/cjs/bcm-drawer.entry.cjs.js.map +1 -0
- package/dist/cjs/bcm-dropdown-item.cjs.entry.js +61 -0
- package/dist/cjs/bcm-dropdown-item.cjs.entry.js.map +1 -0
- package/dist/cjs/bcm-dropdown-item.entry.cjs.js.map +1 -0
- package/dist/cjs/bcm-dropdown.cjs.entry.js +54 -0
- package/dist/cjs/bcm-dropdown.cjs.entry.js.map +1 -0
- package/dist/cjs/bcm-dropdown.entry.cjs.js.map +1 -0
- package/dist/cjs/bcm-input.cjs.entry.js +315 -0
- package/dist/cjs/bcm-input.cjs.entry.js.map +1 -0
- package/dist/cjs/bcm-input.entry.cjs.js.map +1 -0
- package/dist/cjs/bcm-linked.cjs.entry.js +343 -0
- package/dist/cjs/bcm-linked.cjs.entry.js.map +1 -0
- package/dist/cjs/bcm-linked.entry.cjs.js.map +1 -0
- package/dist/cjs/bcm-pop-confirm.cjs.entry.js +7 -9
- package/dist/cjs/bcm-pop-confirm.cjs.entry.js.map +1 -1
- package/dist/cjs/bcm-pop-confirm.entry.cjs.js.map +1 -0
- package/dist/cjs/bcm-popover.cjs.entry.js +8 -10
- package/dist/cjs/bcm-popover.cjs.entry.js.map +1 -1
- package/dist/cjs/bcm-popover.entry.cjs.js.map +1 -0
- package/dist/cjs/bcm-radio-group.cjs.entry.js +6 -8
- package/dist/cjs/bcm-radio-group.cjs.entry.js.map +1 -1
- package/dist/cjs/bcm-radio-group.entry.cjs.js.map +1 -0
- package/dist/cjs/bcm-radio.cjs.entry.js +4 -6
- package/dist/cjs/bcm-radio.cjs.entry.js.map +1 -1
- package/dist/cjs/bcm-radio.entry.cjs.js.map +1 -0
- package/dist/cjs/bcm-segmented-picker-option.cjs.entry.js +4 -6
- package/dist/cjs/bcm-segmented-picker-option.cjs.entry.js.map +1 -1
- package/dist/cjs/bcm-segmented-picker-option.entry.cjs.js.map +1 -0
- package/dist/cjs/bcm-segmented-picker.cjs.entry.js +4 -6
- package/dist/cjs/bcm-segmented-picker.cjs.entry.js.map +1 -1
- package/dist/cjs/bcm-segmented-picker.entry.cjs.js.map +1 -0
- package/dist/cjs/bcm-shortcut.cjs.entry.js +50 -0
- package/dist/cjs/bcm-shortcut.cjs.entry.js.map +1 -0
- package/dist/cjs/bcm-shortcut.entry.cjs.js.map +1 -0
- package/dist/cjs/bcm-switch.cjs.entry.js +5 -7
- package/dist/cjs/bcm-switch.cjs.entry.js.map +1 -1
- package/dist/cjs/bcm-switch.entry.cjs.js.map +1 -0
- package/dist/cjs/bcm-tabs-content.cjs.entry.js +3 -5
- package/dist/cjs/bcm-tabs-content.cjs.entry.js.map +1 -1
- package/dist/cjs/bcm-tabs-content.entry.cjs.js.map +1 -0
- package/dist/cjs/bcm-tabs-list.cjs.entry.js +4 -6
- package/dist/cjs/bcm-tabs-list.cjs.entry.js.map +1 -1
- package/dist/cjs/bcm-tabs-list.entry.cjs.js.map +1 -0
- package/dist/cjs/bcm-tabs-trigger.cjs.entry.js +4 -6
- package/dist/cjs/bcm-tabs-trigger.cjs.entry.js.map +1 -1
- package/dist/cjs/bcm-tabs-trigger.entry.cjs.js.map +1 -0
- package/dist/cjs/bcm-tabs.cjs.entry.js +4 -6
- package/dist/cjs/bcm-tabs.cjs.entry.js.map +1 -1
- package/dist/cjs/bcm-tabs.entry.cjs.js.map +1 -0
- package/dist/cjs/bcm-text.cjs.entry.js +124 -0
- package/dist/cjs/bcm-text.cjs.entry.js.map +1 -0
- package/dist/cjs/bcm-text.entry.cjs.js.map +1 -0
- package/dist/cjs/bcm-textarea.cjs.entry.js +8 -10
- package/dist/cjs/bcm-textarea.cjs.entry.js.map +1 -1
- package/dist/cjs/bcm-textarea.entry.cjs.js.map +1 -0
- package/dist/cjs/bcm-tooltip.cjs.entry.js +8 -10
- package/dist/cjs/bcm-tooltip.cjs.entry.js.map +1 -1
- package/dist/cjs/bcm-tooltip.entry.cjs.js.map +1 -0
- package/dist/cjs/bromcom-ui.cjs.js +8 -8
- package/dist/cjs/bromcom-ui.cjs.js.map +1 -1
- package/dist/cjs/{floating-ui.dom.esm-3ec8404c.js → floating-ui.dom-DyKmFgkP.js} +32 -512
- package/dist/cjs/floating-ui.dom-DyKmFgkP.js.map +1 -0
- package/dist/cjs/{generate-id-f6982042.js → generate-id-CG_BkTJu.js} +4 -13
- package/dist/cjs/generate-id-CG_BkTJu.js.map +1 -0
- package/dist/cjs/index-Bp6Dd2i1.js +97 -0
- package/dist/cjs/index-Bp6Dd2i1.js.map +1 -0
- package/dist/cjs/{index-6710808e.js → index-DFpZVb11.js} +461 -279
- package/dist/cjs/index-DFpZVb11.js.map +1 -0
- package/dist/cjs/index.cjs.js +1 -0
- package/dist/cjs/index.cjs.js.map +1 -1
- package/dist/cjs/loader.cjs.js +4 -6
- package/dist/cjs/loader.cjs.js.map +1 -1
- package/dist/cjs/tv-ngpIbGlG.js +2624 -0
- package/dist/cjs/tv-ngpIbGlG.js.map +1 -0
- package/dist/cjs/{validation-messages-18389279.js → validation-messages-BjfpSEWk.js} +2 -1
- package/dist/cjs/validation-messages-BjfpSEWk.js.map +1 -0
- package/dist/collection/collection-manifest.json +1 -1
- package/dist/collection/components/accordion/accordion.component.js +4 -4
- package/dist/collection/components/accordion-group/accordion-group.component.js +1 -1
- package/dist/collection/components/alert/alert.component.js +5 -5
- package/dist/collection/components/avatar/avatar.component.js +9 -9
- package/dist/collection/components/badge/badge.component.js +9 -9
- package/dist/collection/components/basic-badge/basic-badge.component.js +5 -5
- package/dist/collection/components/basic-badge/basic-badge.css +1 -1
- package/dist/collection/components/button/button.component.js +20 -20
- package/dist/collection/components/button/button.css +1 -1
- package/dist/collection/components/button-group/button-group.component.js +7 -7
- package/dist/collection/components/checkbox/checkbox.component.js +9 -9
- package/dist/collection/components/chip/chip.component.js +6 -6
- package/dist/collection/components/divider/divider.component.js +3 -3
- package/dist/collection/components/drawer/drawer.component.js +6 -6
- package/dist/collection/components/dropdown/dropdown.component.js +1 -1
- package/dist/collection/components/dropdown-item/dropdown-item.component.js +6 -5
- package/dist/collection/components/dropdown-item/dropdown-item.component.js.map +1 -1
- package/dist/collection/components/input/input.component.js +32 -31
- package/dist/collection/components/input/input.component.js.map +1 -1
- package/dist/collection/components/input/input.css +1 -1
- package/dist/collection/components/linked/linked.component.js +13 -12
- package/dist/collection/components/linked/linked.component.js.map +1 -1
- package/dist/collection/components/linked/linked.css +1 -1
- package/dist/collection/components/pop-confirm/pop-confirm.component.js +10 -10
- package/dist/collection/components/popover/popover.component.js +7 -7
- package/dist/collection/components/radio/radio.component.js +9 -9
- package/dist/collection/components/radio-group/radio-group.component.js +9 -9
- package/dist/collection/components/segmented-picker/segmented-picker-option.component.js +5 -5
- package/dist/collection/components/segmented-picker/segmented-picker.component.js +4 -4
- package/dist/collection/components/shortcut/shortcut.js +2 -2
- package/dist/collection/components/switch/switch.component.js +11 -11
- package/dist/collection/components/tabs/tabs-content.component.js +1 -1
- package/dist/collection/components/tabs/tabs-trigger.component.js +4 -4
- package/dist/collection/components/tabs/tabs.component.js +2 -2
- package/dist/collection/components/text/text.component.js +4 -4
- package/dist/collection/components/textarea/textarea.component.js +25 -24
- package/dist/collection/components/textarea/textarea.component.js.map +1 -1
- package/dist/collection/components/textarea/textarea.css +1 -1
- package/dist/collection/components/tooltip/tooltip.component.js +5 -5
- package/dist/components/bcm-accordion-group.js +4 -4
- package/dist/components/bcm-accordion-group.js.map +1 -1
- package/dist/components/bcm-accordion.js +5 -5
- package/dist/components/bcm-accordion.js.map +1 -1
- package/dist/components/bcm-alert.js +5 -5
- package/dist/components/bcm-alert.js.map +1 -1
- package/dist/components/bcm-avatar.js +6 -6
- package/dist/components/bcm-avatar.js.map +1 -1
- package/dist/components/bcm-badge.js +2 -1
- package/dist/components/bcm-basic-badge.js +6 -6
- package/dist/components/bcm-basic-badge.js.map +1 -1
- package/dist/components/bcm-button-group.js +5 -5
- package/dist/components/bcm-button-group.js.map +1 -1
- package/dist/components/bcm-button.js +2 -1
- package/dist/components/bcm-checkbox.js +6 -6
- package/dist/components/bcm-checkbox.js.map +1 -1
- package/dist/components/bcm-chip.js +5 -5
- package/dist/components/bcm-chip.js.map +1 -1
- package/dist/components/bcm-divider.js +5 -5
- package/dist/components/bcm-divider.js.map +1 -1
- package/dist/components/bcm-drawer.js +5 -5
- package/dist/components/bcm-drawer.js.map +1 -1
- package/dist/components/bcm-dropdown-item.js +6 -6
- package/dist/components/bcm-dropdown-item.js.map +1 -1
- package/dist/components/bcm-dropdown.js +7 -7
- package/dist/components/bcm-dropdown.js.map +1 -1
- package/dist/components/bcm-input.js +14 -14
- package/dist/components/bcm-input.js.map +1 -1
- package/dist/components/bcm-linked.js +2 -1
- package/dist/components/bcm-pop-confirm.js +7 -7
- package/dist/components/bcm-pop-confirm.js.map +1 -1
- package/dist/components/bcm-popover.js +6 -6
- package/dist/components/bcm-popover.js.map +1 -1
- package/dist/components/bcm-radio-group.js +7 -7
- package/dist/components/bcm-radio-group.js.map +1 -1
- package/dist/components/bcm-radio.js +5 -5
- package/dist/components/bcm-radio.js.map +1 -1
- package/dist/components/bcm-segmented-picker-option.js +5 -5
- package/dist/components/bcm-segmented-picker-option.js.map +1 -1
- package/dist/components/bcm-segmented-picker.js +5 -5
- package/dist/components/bcm-segmented-picker.js.map +1 -1
- package/dist/components/bcm-shortcut.js +5 -5
- package/dist/components/bcm-shortcut.js.map +1 -1
- package/dist/components/bcm-switch.js +6 -6
- package/dist/components/bcm-switch.js.map +1 -1
- package/dist/components/bcm-tabs-content.js +4 -4
- package/dist/components/bcm-tabs-content.js.map +1 -1
- package/dist/components/bcm-tabs-list.js +5 -5
- package/dist/components/bcm-tabs-list.js.map +1 -1
- package/dist/components/bcm-tabs-trigger.js +5 -5
- package/dist/components/bcm-tabs-trigger.js.map +1 -1
- package/dist/components/bcm-tabs.js +5 -5
- package/dist/components/bcm-tabs.js.map +1 -1
- package/dist/components/bcm-text.js +5 -5
- package/dist/components/bcm-text.js.map +1 -1
- package/dist/components/bcm-textarea.js +9 -9
- package/dist/components/bcm-textarea.js.map +1 -1
- package/dist/components/bcm-tooltip.js +6 -6
- package/dist/components/bcm-tooltip.js.map +1 -1
- package/dist/components/index.js +1706 -2
- package/dist/components/index.js.map +1 -1
- package/dist/components/{p-bf273460.js → p-A70Ppz6C.js} +6 -6
- package/dist/components/p-A70Ppz6C.js.map +1 -0
- package/dist/components/{p-39872cdf.js → p-BHwftRkk.js} +8 -8
- package/dist/components/p-BHwftRkk.js.map +1 -0
- package/dist/components/{p-c491a7c9.js → p-BdGAZ8M0.js} +7 -7
- package/dist/components/p-BdGAZ8M0.js.map +1 -0
- package/dist/components/p-BfTCfPZ1.js +95 -0
- package/dist/components/p-BfTCfPZ1.js.map +1 -0
- package/dist/components/p-CEcVC0yX.js +2622 -0
- package/dist/components/p-CEcVC0yX.js.map +1 -0
- package/dist/{esm/validation-messages-af4512f0.js → components/p-CUvT12BL.js} +2 -1
- package/dist/components/p-CUvT12BL.js.map +1 -0
- package/dist/components/{p-50133556.js → p-CzcTU1ty.js} +32 -512
- package/dist/components/p-CzcTU1ty.js.map +1 -0
- package/dist/components/{p-ba2410ef.js → p-IBjzkjef.js} +4 -13
- package/dist/components/p-IBjzkjef.js.map +1 -0
- package/dist/esm/bcm-accordion-group.entry.js +3 -3
- package/dist/esm/bcm-accordion-group.entry.js.map +1 -1
- package/dist/esm/bcm-accordion.entry.js +4 -4
- package/dist/esm/bcm-accordion.entry.js.map +1 -1
- package/dist/esm/bcm-alert.entry.js +4 -4
- package/dist/esm/bcm-alert.entry.js.map +1 -1
- package/dist/esm/bcm-avatar.entry.js +4 -4
- package/dist/esm/bcm-avatar.entry.js.map +1 -1
- package/dist/esm/bcm-badge.entry.js +4 -4
- package/dist/esm/bcm-badge.entry.js.map +1 -1
- package/dist/esm/bcm-basic-badge.entry.js +5 -5
- package/dist/esm/bcm-basic-badge.entry.js.map +1 -1
- package/dist/esm/bcm-button-group.entry.js +4 -4
- package/dist/esm/bcm-button-group.entry.js.map +1 -1
- package/dist/esm/bcm-button.entry.js +314 -0
- package/dist/esm/bcm-button.entry.js.map +1 -0
- package/dist/esm/bcm-checkbox.entry.js +5 -5
- package/dist/esm/bcm-checkbox.entry.js.map +1 -1
- package/dist/esm/bcm-chip.entry.js +4 -4
- package/dist/esm/bcm-chip.entry.js.map +1 -1
- package/dist/esm/bcm-divider.entry.js +4 -4
- package/dist/esm/bcm-divider.entry.js.map +1 -1
- package/dist/esm/bcm-drawer.entry.js +204 -0
- package/dist/esm/bcm-drawer.entry.js.map +1 -0
- package/dist/esm/bcm-dropdown-item.entry.js +59 -0
- package/dist/esm/bcm-dropdown-item.entry.js.map +1 -0
- package/dist/esm/bcm-dropdown.entry.js +52 -0
- package/dist/esm/bcm-dropdown.entry.js.map +1 -0
- package/dist/esm/bcm-input.entry.js +313 -0
- package/dist/esm/bcm-input.entry.js.map +1 -0
- package/dist/esm/bcm-linked.entry.js +341 -0
- package/dist/esm/bcm-linked.entry.js.map +1 -0
- package/dist/esm/bcm-pop-confirm.entry.js +5 -5
- package/dist/esm/bcm-pop-confirm.entry.js.map +1 -1
- package/dist/esm/bcm-popover.entry.js +5 -5
- package/dist/esm/bcm-popover.entry.js.map +1 -1
- package/dist/esm/bcm-radio-group.entry.js +6 -6
- package/dist/esm/bcm-radio-group.entry.js.map +1 -1
- package/dist/esm/bcm-radio.entry.js +4 -4
- package/dist/esm/bcm-radio.entry.js.map +1 -1
- package/dist/esm/bcm-segmented-picker-option.entry.js +4 -4
- package/dist/esm/bcm-segmented-picker-option.entry.js.map +1 -1
- package/dist/esm/bcm-segmented-picker.entry.js +4 -4
- package/dist/esm/bcm-segmented-picker.entry.js.map +1 -1
- package/dist/esm/bcm-shortcut.entry.js +48 -0
- package/dist/esm/bcm-shortcut.entry.js.map +1 -0
- package/dist/esm/bcm-switch.entry.js +5 -5
- package/dist/esm/bcm-switch.entry.js.map +1 -1
- package/dist/esm/bcm-tabs-content.entry.js +3 -3
- package/dist/esm/bcm-tabs-content.entry.js.map +1 -1
- package/dist/esm/bcm-tabs-list.entry.js +4 -4
- package/dist/esm/bcm-tabs-list.entry.js.map +1 -1
- package/dist/esm/bcm-tabs-trigger.entry.js +4 -4
- package/dist/esm/bcm-tabs-trigger.entry.js.map +1 -1
- package/dist/esm/bcm-tabs.entry.js +4 -4
- package/dist/esm/bcm-tabs.entry.js.map +1 -1
- package/dist/esm/bcm-text.entry.js +122 -0
- package/dist/esm/bcm-text.entry.js.map +1 -0
- package/dist/esm/bcm-textarea.entry.js +8 -8
- package/dist/esm/bcm-textarea.entry.js.map +1 -1
- package/dist/esm/bcm-tooltip.entry.js +5 -5
- package/dist/esm/bcm-tooltip.entry.js.map +1 -1
- package/dist/esm/bromcom-ui.js +6 -5
- package/dist/esm/bromcom-ui.js.map +1 -1
- package/dist/esm/{floating-ui.dom.esm-b7749b71.js → floating-ui.dom-DxMLMJ3r.js} +33 -513
- package/dist/esm/floating-ui.dom-DxMLMJ3r.js.map +1 -0
- package/dist/esm/{generate-id-3b2fcb93.js → generate-id-IBjzkjef.js} +4 -13
- package/dist/esm/generate-id-IBjzkjef.js.map +1 -0
- package/dist/esm/index-BfTCfPZ1.js +95 -0
- package/dist/esm/index-BfTCfPZ1.js.map +1 -0
- package/dist/esm/{index-18b75a47.js → index-CrZxEeDA.js} +461 -260
- package/dist/esm/index-CrZxEeDA.js.map +1 -0
- package/dist/esm/index.js +1 -0
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/loader.js +4 -4
- package/dist/esm/loader.js.map +1 -1
- package/dist/esm/tv-CEcVC0yX.js +2622 -0
- package/dist/esm/tv-CEcVC0yX.js.map +1 -0
- package/dist/{components/p-13a245f6.js → esm/validation-messages-CUvT12BL.js} +2 -1
- package/dist/esm/validation-messages-CUvT12BL.js.map +1 -0
- package/dist/types/components.d.ts +280 -0
- package/dist/types/stencil-public-runtime.d.ts +35 -6
- package/package.json +1 -1
- package/dist/bromcom-ui/p-06d42346.entry.js.map +0 -1
- package/dist/bromcom-ui/p-0c8a9725.entry.js +0 -2
- package/dist/bromcom-ui/p-0c8a9725.entry.js.map +0 -1
- package/dist/bromcom-ui/p-11227d96.entry.js.map +0 -1
- package/dist/bromcom-ui/p-12360e4c.js +0 -7
- package/dist/bromcom-ui/p-12360e4c.js.map +0 -1
- package/dist/bromcom-ui/p-13a245f6.js.map +0 -1
- package/dist/bromcom-ui/p-1b4ccb21.entry.js +0 -2
- package/dist/bromcom-ui/p-1b4ccb21.entry.js.map +0 -1
- package/dist/bromcom-ui/p-1e726978.entry.js +0 -2
- package/dist/bromcom-ui/p-1e726978.entry.js.map +0 -1
- package/dist/bromcom-ui/p-2c58fcb7.js +0 -2
- package/dist/bromcom-ui/p-2c58fcb7.js.map +0 -1
- package/dist/bromcom-ui/p-2e469cb9.entry.js +0 -2
- package/dist/bromcom-ui/p-2e469cb9.entry.js.map +0 -1
- package/dist/bromcom-ui/p-350c97e1.entry.js +0 -2
- package/dist/bromcom-ui/p-350c97e1.entry.js.map +0 -1
- package/dist/bromcom-ui/p-4027f5c4.entry.js +0 -2
- package/dist/bromcom-ui/p-4027f5c4.entry.js.map +0 -1
- package/dist/bromcom-ui/p-45f4c75b.entry.js +0 -2
- package/dist/bromcom-ui/p-45f4c75b.entry.js.map +0 -1
- package/dist/bromcom-ui/p-4652635d.entry.js +0 -2
- package/dist/bromcom-ui/p-4652635d.entry.js.map +0 -1
- package/dist/bromcom-ui/p-50133556.js +0 -2
- package/dist/bromcom-ui/p-50133556.js.map +0 -1
- package/dist/bromcom-ui/p-67ceb7f3.entry.js +0 -2
- package/dist/bromcom-ui/p-67ceb7f3.entry.js.map +0 -1
- package/dist/bromcom-ui/p-77122bc2.entry.js +0 -2
- package/dist/bromcom-ui/p-77122bc2.entry.js.map +0 -1
- package/dist/bromcom-ui/p-78d8f63c.entry.js +0 -2
- package/dist/bromcom-ui/p-78d8f63c.entry.js.map +0 -1
- package/dist/bromcom-ui/p-87a0f20b.entry.js +0 -2
- package/dist/bromcom-ui/p-87a0f20b.entry.js.map +0 -1
- package/dist/bromcom-ui/p-881ccea1.entry.js +0 -2
- package/dist/bromcom-ui/p-881ccea1.entry.js.map +0 -1
- package/dist/bromcom-ui/p-8ae92b62.entry.js +0 -2
- package/dist/bromcom-ui/p-8ae92b62.entry.js.map +0 -1
- package/dist/bromcom-ui/p-9a6cec21.entry.js +0 -2
- package/dist/bromcom-ui/p-9a6cec21.entry.js.map +0 -1
- package/dist/bromcom-ui/p-9d0aeb92.js +0 -3
- package/dist/bromcom-ui/p-9d0aeb92.js.map +0 -1
- package/dist/bromcom-ui/p-a03922f8.entry.js.map +0 -1
- package/dist/bromcom-ui/p-a20f6baf.entry.js +0 -2
- package/dist/bromcom-ui/p-a20f6baf.entry.js.map +0 -1
- package/dist/bromcom-ui/p-b1f9ad67.entry.js.map +0 -1
- package/dist/bromcom-ui/p-ba2410ef.js.map +0 -1
- package/dist/bromcom-ui/p-bf213fe6.entry.js +0 -2
- package/dist/bromcom-ui/p-bf213fe6.entry.js.map +0 -1
- package/dist/bromcom-ui/p-c89f7997.entry.js +0 -2
- package/dist/bromcom-ui/p-c89f7997.entry.js.map +0 -1
- package/dist/bromcom-ui/p-ddf64315.js +0 -2
- package/dist/bromcom-ui/p-ddf64315.js.map +0 -1
- package/dist/bromcom-ui/p-f56b22de.entry.js +0 -2
- package/dist/bromcom-ui/p-f56b22de.entry.js.map +0 -1
- package/dist/bromcom-ui/p-fdcb9dbd.entry.js +0 -2
- package/dist/bromcom-ui/p-fdcb9dbd.entry.js.map +0 -1
- package/dist/cjs/app-globals-e0eef2e9.js +0 -47
- package/dist/cjs/app-globals-e0eef2e9.js.map +0 -1
- package/dist/cjs/bcm-button_8.cjs.entry.js +0 -1423
- package/dist/cjs/bcm-button_8.cjs.entry.js.map +0 -1
- package/dist/cjs/floating-ui.dom.esm-3ec8404c.js.map +0 -1
- package/dist/cjs/generate-id-f6982042.js.map +0 -1
- package/dist/cjs/index-5a88e57b.js +0 -84
- package/dist/cjs/index-5a88e57b.js.map +0 -1
- package/dist/cjs/index-6710808e.js.map +0 -1
- package/dist/cjs/tv-d2e35446.js +0 -2597
- package/dist/cjs/tv-d2e35446.js.map +0 -1
- package/dist/cjs/validation-messages-18389279.js.map +0 -1
- package/dist/components/p-12360e4c.js +0 -82
- package/dist/components/p-12360e4c.js.map +0 -1
- package/dist/components/p-13a245f6.js.map +0 -1
- package/dist/components/p-2c58fcb7.js +0 -2595
- package/dist/components/p-2c58fcb7.js.map +0 -1
- package/dist/components/p-30135590.js +0 -1567
- package/dist/components/p-30135590.js.map +0 -1
- package/dist/components/p-39872cdf.js.map +0 -1
- package/dist/components/p-50133556.js.map +0 -1
- package/dist/components/p-ba2410ef.js.map +0 -1
- package/dist/components/p-bf273460.js.map +0 -1
- package/dist/components/p-c491a7c9.js.map +0 -1
- package/dist/esm/app-globals-f7994f55.js +0 -45
- package/dist/esm/app-globals-f7994f55.js.map +0 -1
- package/dist/esm/bcm-button_8.entry.js +0 -1412
- package/dist/esm/bcm-button_8.entry.js.map +0 -1
- package/dist/esm/floating-ui.dom.esm-b7749b71.js.map +0 -1
- package/dist/esm/generate-id-3b2fcb93.js.map +0 -1
- package/dist/esm/index-097075ad.js +0 -82
- package/dist/esm/index-097075ad.js.map +0 -1
- package/dist/esm/index-18b75a47.js.map +0 -1
- package/dist/esm/tv-6dcd2224.js +0 -2595
- package/dist/esm/tv-6dcd2224.js.map +0 -1
- package/dist/esm/validation-messages-af4512f0.js.map +0 -1
- package/loader/package.json +0 -11
|
@@ -1,1412 +0,0 @@
|
|
|
1
|
-
import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-18b75a47.js';
|
|
2
|
-
import { t as tv } from './tv-6dcd2224.js';
|
|
3
|
-
import { c as classNames } from './index-097075ad.js';
|
|
4
|
-
import { g as generateId } from './generate-id-3b2fcb93.js';
|
|
5
|
-
import { s as setValidationMessages, g as getValidationMessage, d as defaultValidationMessages } from './validation-messages-af4512f0.js';
|
|
6
|
-
import { a as autoUpdate, o as offset, f as flip, s as shift, c as computePosition } from './floating-ui.dom.esm-b7749b71.js';
|
|
7
|
-
|
|
8
|
-
const variantOptions = {
|
|
9
|
-
save: {
|
|
10
|
-
text: 'Save',
|
|
11
|
-
status: 'success',
|
|
12
|
-
icon: 'far fa-save',
|
|
13
|
-
iconPosition: 'prefix',
|
|
14
|
-
kind: 'primary',
|
|
15
|
-
},
|
|
16
|
-
ok: {
|
|
17
|
-
text: 'Ok',
|
|
18
|
-
status: 'success',
|
|
19
|
-
icon: 'far fa-check',
|
|
20
|
-
iconPosition: 'prefix',
|
|
21
|
-
},
|
|
22
|
-
new: {
|
|
23
|
-
text: 'New',
|
|
24
|
-
status: 'success',
|
|
25
|
-
icon: 'far fa-plus',
|
|
26
|
-
iconPosition: 'prefix',
|
|
27
|
-
},
|
|
28
|
-
add: {
|
|
29
|
-
text: 'Add',
|
|
30
|
-
status: 'success',
|
|
31
|
-
icon: 'far fa-plus',
|
|
32
|
-
iconPosition: 'prefix',
|
|
33
|
-
},
|
|
34
|
-
create: {
|
|
35
|
-
text: 'Create',
|
|
36
|
-
status: 'success',
|
|
37
|
-
icon: 'far fa-plus',
|
|
38
|
-
iconPosition: 'prefix',
|
|
39
|
-
},
|
|
40
|
-
prev: {
|
|
41
|
-
text: 'Prev',
|
|
42
|
-
status: 'default',
|
|
43
|
-
icon: 'far fa-arrow-left',
|
|
44
|
-
iconPosition: 'prefix',
|
|
45
|
-
},
|
|
46
|
-
next: {
|
|
47
|
-
text: 'Next',
|
|
48
|
-
status: 'default',
|
|
49
|
-
icon: 'far fa-arrow-right',
|
|
50
|
-
iconPosition: 'suffix',
|
|
51
|
-
},
|
|
52
|
-
apply: {
|
|
53
|
-
text: 'Apply',
|
|
54
|
-
status: 'default',
|
|
55
|
-
icon: 'far fa-check-circle',
|
|
56
|
-
iconPosition: 'prefix',
|
|
57
|
-
},
|
|
58
|
-
submit: {
|
|
59
|
-
text: 'Submit',
|
|
60
|
-
status: 'default',
|
|
61
|
-
icon: 'far fa-save',
|
|
62
|
-
iconPosition: 'prefix',
|
|
63
|
-
},
|
|
64
|
-
send: {
|
|
65
|
-
text: 'Send',
|
|
66
|
-
status: 'success',
|
|
67
|
-
icon: 'far fa-paper-plane',
|
|
68
|
-
iconPosition: 'prefix',
|
|
69
|
-
},
|
|
70
|
-
delete: {
|
|
71
|
-
text: 'Delete',
|
|
72
|
-
status: 'error',
|
|
73
|
-
icon: 'far fa-trash',
|
|
74
|
-
iconPosition: 'prefix',
|
|
75
|
-
},
|
|
76
|
-
cancel: {
|
|
77
|
-
text: 'Cancel',
|
|
78
|
-
status: 'error',
|
|
79
|
-
icon: 'far fa-times',
|
|
80
|
-
iconPosition: 'prefix',
|
|
81
|
-
},
|
|
82
|
-
decline: {
|
|
83
|
-
text: 'Decline',
|
|
84
|
-
status: 'error',
|
|
85
|
-
icon: 'far fa-ban',
|
|
86
|
-
iconPosition: 'prefix',
|
|
87
|
-
},
|
|
88
|
-
close: {
|
|
89
|
-
text: 'Close',
|
|
90
|
-
status: 'error',
|
|
91
|
-
icon: 'far fa-times-circle',
|
|
92
|
-
iconPosition: 'prefix',
|
|
93
|
-
},
|
|
94
|
-
archive: {
|
|
95
|
-
text: 'Archive',
|
|
96
|
-
status: 'error',
|
|
97
|
-
icon: 'far fa-folder-open',
|
|
98
|
-
iconPosition: 'prefix',
|
|
99
|
-
},
|
|
100
|
-
remove: {
|
|
101
|
-
text: 'Remove',
|
|
102
|
-
status: 'error',
|
|
103
|
-
icon: 'far fa-minus-circle',
|
|
104
|
-
iconPosition: 'prefix',
|
|
105
|
-
},
|
|
106
|
-
edit: {
|
|
107
|
-
text: 'Edit',
|
|
108
|
-
status: 'default',
|
|
109
|
-
icon: 'far fa-edit',
|
|
110
|
-
iconPosition: 'prefix',
|
|
111
|
-
},
|
|
112
|
-
export: {
|
|
113
|
-
text: 'Export',
|
|
114
|
-
status: 'default',
|
|
115
|
-
icon: 'far fa-sign-out',
|
|
116
|
-
iconPosition: 'prefix',
|
|
117
|
-
},
|
|
118
|
-
import: {
|
|
119
|
-
text: 'Import',
|
|
120
|
-
status: 'default',
|
|
121
|
-
icon: 'far fa-sign-in',
|
|
122
|
-
iconPosition: 'prefix',
|
|
123
|
-
},
|
|
124
|
-
filter: {
|
|
125
|
-
text: 'Filter',
|
|
126
|
-
status: 'default',
|
|
127
|
-
icon: 'far fa-filter',
|
|
128
|
-
iconPosition: 'prefix',
|
|
129
|
-
},
|
|
130
|
-
update: {
|
|
131
|
-
text: 'Update',
|
|
132
|
-
status: 'default',
|
|
133
|
-
icon: 'far fa-sync',
|
|
134
|
-
iconPosition: 'prefix',
|
|
135
|
-
},
|
|
136
|
-
reset: {
|
|
137
|
-
text: 'Reset',
|
|
138
|
-
status: 'default',
|
|
139
|
-
icon: 'far fa-sync',
|
|
140
|
-
iconPosition: 'prefix',
|
|
141
|
-
},
|
|
142
|
-
download: {
|
|
143
|
-
text: 'Download',
|
|
144
|
-
status: 'default',
|
|
145
|
-
icon: 'far fa-download',
|
|
146
|
-
iconPosition: 'prefix',
|
|
147
|
-
},
|
|
148
|
-
};
|
|
149
|
-
|
|
150
|
-
const buttonCss = ".relative{position:relative}:host{display:inline-block;position:relative}:host([full-width]){width:100%}:host([position=first]) .bcm-button{border-bottom-right-radius:0;border-top-right-radius:0}:host([position=middle]) .bcm-button{border-radius:0}:host([position=last]) .bcm-button{border-bottom-left-radius:0;border-top-left-radius:0}:host([position=first].orientation-vertical) .bcm-button{border-bottom-left-radius:0;border-bottom-right-radius:0;border-top-left-radius:var(--bcm-ui-border-radius,4px);border-top-right-radius:var(--bcm-ui-border-radius,4px)}:host([position=middle].orientation-vertical) .bcm-button{border-radius:0}:host([position=last].orientation-vertical) .bcm-button{border-bottom-left-radius:var(--bcm-ui-border-radius,4px);border-bottom-right-radius:var(--bcm-ui-border-radius,4px);border-top-left-radius:0;border-top-right-radius:0}.static{position:static}.inline-flex{display:inline-flex}.min-h-10{min-height:2.5rem}.min-h-6{min-height:1.5rem}.min-h-8{min-height:2rem}.w-full{width:100%}.cursor-not-allowed{cursor:not-allowed}.cursor-pointer{cursor:pointer}.appearance-none{appearance:none}.items-center{align-items:center}.justify-center{justify-content:center}.rounded{border-radius:var(--bcm-ui-border-radius-default,6px)}.border{border-width:1px}.border-solid{border-style:solid}.border-\\[--bcm-final-border-color\\]{border-color:var(--bcm-final-border-color)}.border-color-disabled{border-color:var(--bcm-ui-color-border-disabled)}.bg-\\[--bcm-final-bg-color\\]{background-color:var(--bcm-final-bg-color)}.bg-\\[--bcm-ui-color-background-disabled-default\\]{background-color:var(--bcm-ui-color-background-disabled-default)}.px-2{padding-left:.5rem;padding-right:.5rem}.px-3{padding-left:.75rem;padding-right:.75rem}.py-0\\.5{padding-bottom:.125rem;padding-top:.125rem}.py-1{padding-bottom:.25rem;padding-top:.25rem}.py-px{padding-bottom:1px;padding-top:1px}.text-size-4{font-size:var(--bcm-ui-font-size-4,14px);line-height:var(--bcm-ui-line-height-4,20px)}.text-size-5{font-size:var(--bcm-ui-font-size-5,16px);line-height:var(--bcm-ui-line-height-5,24px)}.text-size-6{font-size:var(--bcm-ui-font-size-6,18px);line-height:var(--bcm-ui-line-height-6,24px)}.leading-none{line-height:1}.text-\\[--bcm-final-text-color\\]{color:var(--bcm-final-text-color)}.text-color-disabled{color:var(--bcm-ui-color-text-disabled)}.shadow{--tw-shadow:var(--bcm-ui-box-shadow-default);--tw-shadow-colored:var(--bcm-ui-box-shadow-default);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.outline{outline-style:solid}.outline-0{outline-width:0}.hover\\:bg-\\[--bcm-final-hover-bg-color\\]:hover{background-color:var(--bcm-final-hover-bg-color)}.focus-visible\\:ring:focus-visible{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.active\\:bg-\\[--bcm-final-active-bg-color\\]:active{background-color:var(--bcm-final-active-bg-color)}.flex{display:flex}.max-h-64{max-height:16rem}.min-w-10{min-width:2.5rem}.max-w-64{max-width:16rem}.flex-col{flex-direction:column}.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,.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)}.container{width:100%}@media (min-width:640px){.container{max-width:640px}}@media (min-width:768px){.container{max-width:768px}}@media (min-width:1024px){.container{max-width:1024px}}@media (min-width:1280px){.container{max-width:1280px}}@media (min-width:1536px){.container{max-width:1536px}}.bcm-ui-element{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-family:Inter,sans-serif}.absolute{position:absolute}.z-\\[9999\\]{z-index:9999}.mx-auto{margin-left:auto;margin-right:auto}.hidden{display:none}.size-6{height:1.5rem;width:1.5rem}.h-2{height:.5rem}.w-4{width:1rem}.max-w-80{max-width:20rem}.max-w-96{max-width:24rem}.flex-1{flex:1 1 0%}.flex-row{flex-direction:row}.justify-end{justify-content:flex-end}.justify-between{justify-content:space-between}.gap-2{gap:.5rem}.gap-2\\.5{gap:.625rem}.gap-3{gap:.75rem}.gap-4{gap:1rem}.gap-6{gap:1.5rem}.gap-8{gap:2rem}.text-pretty{text-wrap:pretty}.rounded-\\[--popover-radius\\]{border-radius:var(--popover-radius)}.rounded-full{border-radius:var(--bcm-ui-border-radius-full,9999px)}.bg-\\[--popover-bg\\]{background-color:var(--popover-bg)}.p-4{padding:1rem}.p-6{padding:1.5rem}.p-8{padding:2rem}.font-sans{font-family:Inter,sans-serif}.text-size-7{font-size:var(--bcm-ui-font-size-7,20px);line-height:var(--bcm-ui-line-height-7,28px)}.text-size-inherit{font-size:inherit;line-height:inherit}.font-semibold{font-weight:600}.\\!text-color-header{color:var(--bcm-ui-color-text-header)!important}.text-\\[--text-color\\]{color:var(--text-color)}.shadow,.shadow-2{box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.shadow-2{--tw-shadow:var(--bcm-ui-box-shadow-2);--tw-shadow-colored:var(--bcm-ui-box-shadow-2)}.hover\\:bg-gray-100:hover{background-color:oklch(.967 .003 264.542)}";
|
|
151
|
-
const BcmButtonStyle0 = buttonCss;
|
|
152
|
-
|
|
153
|
-
const BcmButton = class {
|
|
154
|
-
constructor(hostRef) {
|
|
155
|
-
registerInstance(this, hostRef);
|
|
156
|
-
this.bcmClick = createEvent(this, "bcmClick", 1);
|
|
157
|
-
this.bcmFocus = createEvent(this, "bcmFocus", 1);
|
|
158
|
-
this.bcmBlur = createEvent(this, "bcmBlur", 1);
|
|
159
|
-
/** Defines the main visual style of the button */
|
|
160
|
-
this.kind = 'primary';
|
|
161
|
-
/** Controls the button size */
|
|
162
|
-
this.size = 'medium';
|
|
163
|
-
/** Defines the button's status/state color */
|
|
164
|
-
this.status = 'default';
|
|
165
|
-
/** Icon placement (prefix/suffix) */
|
|
166
|
-
this.iconPosition = 'prefix';
|
|
167
|
-
/** Icon-only button mode */
|
|
168
|
-
this.iconOnly = false;
|
|
169
|
-
/** Full width button */
|
|
170
|
-
this.fullWidth = false;
|
|
171
|
-
/** HTML button type */
|
|
172
|
-
this.type = 'button';
|
|
173
|
-
/** Loading state */
|
|
174
|
-
this.loading = false;
|
|
175
|
-
/** Disabled state */
|
|
176
|
-
this.disabled = false;
|
|
177
|
-
/** Active state */
|
|
178
|
-
this.active = false;
|
|
179
|
-
this.handleClick = (event) => {
|
|
180
|
-
if (!this.disabled && !this.loading) {
|
|
181
|
-
this.bcmClick.emit(event);
|
|
182
|
-
}
|
|
183
|
-
};
|
|
184
|
-
this.handleFocus = (event) => {
|
|
185
|
-
this.bcmFocus.emit(event);
|
|
186
|
-
};
|
|
187
|
-
this.handleBlur = (event) => {
|
|
188
|
-
this.bcmBlur.emit(event);
|
|
189
|
-
};
|
|
190
|
-
this.buttonClass = tv({
|
|
191
|
-
base: 'bcm-button appearance-none inline-flex items-center justify-center border border-solid rounded outline-0',
|
|
192
|
-
variants: {
|
|
193
|
-
size: {
|
|
194
|
-
small: 'text-size-4 py-px px-2 min-h-6',
|
|
195
|
-
medium: 'text-size-5 py-0.5 px-3 min-h-8',
|
|
196
|
-
large: 'text-size-6 py-1 px-3 min-h-10',
|
|
197
|
-
},
|
|
198
|
-
kind: {
|
|
199
|
-
primary: 'kind-primary',
|
|
200
|
-
ghost: 'kind-ghost',
|
|
201
|
-
text: 'kind-text',
|
|
202
|
-
outline: 'kind-outline',
|
|
203
|
-
},
|
|
204
|
-
fullWidth: {
|
|
205
|
-
true: 'full-width w-full',
|
|
206
|
-
},
|
|
207
|
-
disabled: {
|
|
208
|
-
true: 'disabled cursor-not-allowed bg-[--bcm-ui-color-background-disabled-default] text-color-disabled border-color-disabled',
|
|
209
|
-
false: [
|
|
210
|
-
'cursor-pointer',
|
|
211
|
-
'bg-[--bcm-final-bg-color] text-[--bcm-final-text-color] border-[--bcm-final-border-color]',
|
|
212
|
-
'hover:bg-[--bcm-final-hover-bg-color]',
|
|
213
|
-
'active:bg-[--bcm-final-active-bg-color]',
|
|
214
|
-
'focus-visible:ring',
|
|
215
|
-
],
|
|
216
|
-
},
|
|
217
|
-
loading: {
|
|
218
|
-
true: '',
|
|
219
|
-
},
|
|
220
|
-
position: {
|
|
221
|
-
first: 'position-first',
|
|
222
|
-
middle: 'position-middle',
|
|
223
|
-
last: 'position-last',
|
|
224
|
-
},
|
|
225
|
-
},
|
|
226
|
-
defaultVariants: {
|
|
227
|
-
size: 'medium',
|
|
228
|
-
kind: 'primary',
|
|
229
|
-
fullWidth: false,
|
|
230
|
-
disabled: false,
|
|
231
|
-
loading: false,
|
|
232
|
-
},
|
|
233
|
-
}, {
|
|
234
|
-
twMerge: false,
|
|
235
|
-
});
|
|
236
|
-
}
|
|
237
|
-
get buttonText() {
|
|
238
|
-
return this.text || (this.variant ? variantOptions[this.variant].text : '');
|
|
239
|
-
}
|
|
240
|
-
get buttonIcon() {
|
|
241
|
-
if (this.variant && variantOptions[this.variant].icon) {
|
|
242
|
-
return {
|
|
243
|
-
icon: variantOptions[this.variant].icon,
|
|
244
|
-
position: variantOptions[this.variant].iconPosition || 'prefix',
|
|
245
|
-
};
|
|
246
|
-
}
|
|
247
|
-
return {
|
|
248
|
-
icon: this.icon,
|
|
249
|
-
position: this.iconPosition,
|
|
250
|
-
};
|
|
251
|
-
}
|
|
252
|
-
get buttonStatus() {
|
|
253
|
-
return this.variant ? variantOptions[this.variant].status : this.status;
|
|
254
|
-
}
|
|
255
|
-
get buttonStyles() {
|
|
256
|
-
const status = this.buttonStatus === 'default' ? 'primary' : this.buttonStatus;
|
|
257
|
-
// These are the internal default styles based on component props (kind, status)
|
|
258
|
-
const kindStyleMap = {
|
|
259
|
-
primary: {
|
|
260
|
-
'--bcm-button-bg': `var(--bcm-ui-color-background-${status}-default)`,
|
|
261
|
-
'--bcm-button-bg-hover': `var(--bcm-ui-color-background-${status}-hover)`,
|
|
262
|
-
'--bcm-button-bg-active': `var(--bcm-ui-color-background-${status}-active)`,
|
|
263
|
-
'--bcm-button-border': 'transparent',
|
|
264
|
-
'--bcm-button-text': 'var(--bcm-ui-color-text-base)',
|
|
265
|
-
},
|
|
266
|
-
outline: {
|
|
267
|
-
'--bcm-button-bg': 'var(--bcm-ui-color-background-default-default)',
|
|
268
|
-
'--bcm-button-bg-hover': 'var(--bcm-ui-color-background-default-hover)',
|
|
269
|
-
'--bcm-button-bg-active': 'var(--bcm-ui-color-background-default-active)',
|
|
270
|
-
'--bcm-button-border': `var(--bcm-ui-color-border-${this.buttonStatus})`,
|
|
271
|
-
'--bcm-button-text': `var(--bcm-ui-color-text-${this.buttonStatus})`,
|
|
272
|
-
},
|
|
273
|
-
ghost: {
|
|
274
|
-
'--bcm-button-bg': 'transparent',
|
|
275
|
-
'--bcm-button-bg-hover': 'var(--bcm-ui-color-background-default-hover)',
|
|
276
|
-
'--bcm-button-bg-active': 'var(--bcm-ui-color-background-default-active)',
|
|
277
|
-
'--bcm-button-border': 'transparent',
|
|
278
|
-
'--bcm-button-text': `var(--bcm-ui-color-text-${this.buttonStatus})`,
|
|
279
|
-
},
|
|
280
|
-
text: {
|
|
281
|
-
'--bcm-button-bg': 'transparent',
|
|
282
|
-
'--bcm-button-bg-hover': 'var(--bcm-ui-color-background-default-hover)',
|
|
283
|
-
'--bcm-button-bg-active': 'var(--bcm-ui-color-background-default-active)',
|
|
284
|
-
'--bcm-button-border': 'transparent',
|
|
285
|
-
'--bcm-button-text': `var(--bcm-ui-color-text-${status})`,
|
|
286
|
-
},
|
|
287
|
-
};
|
|
288
|
-
const internalDefaultStyles = kindStyleMap[this.kind];
|
|
289
|
-
// These are the "final" CSS custom properties used by the component's styling.
|
|
290
|
-
// They use the "--bcm-button-custom-..." token if provided by the user,
|
|
291
|
-
// otherwise, they fall back to the internal "--bcm-button-..." style defined above.
|
|
292
|
-
const finalEffectiveStyles = {
|
|
293
|
-
'--bcm-final-text-color': `var(--bcm-button-custom-text-color, ${internalDefaultStyles['--bcm-button-text']})`,
|
|
294
|
-
'--bcm-final-border-color': `var(--bcm-button-custom-border-color, ${internalDefaultStyles['--bcm-button-border']})`,
|
|
295
|
-
'--bcm-final-bg-color': `var(--bcm-button-custom-bg-color, ${internalDefaultStyles['--bcm-button-bg']})`,
|
|
296
|
-
'--bcm-final-hover-bg-color': `var(--bcm-button-custom-hover-bg-color, ${internalDefaultStyles['--bcm-button-bg-hover']})`,
|
|
297
|
-
'--bcm-final-active-bg-color': `var(--bcm-button-custom-active-bg-color, ${internalDefaultStyles['--bcm-button-bg-active']})`,
|
|
298
|
-
};
|
|
299
|
-
// return kindStyleMap[this.kind];
|
|
300
|
-
return Object.assign(Object.assign({}, internalDefaultStyles), finalEffectiveStyles);
|
|
301
|
-
}
|
|
302
|
-
render() {
|
|
303
|
-
const { icon, position } = this.buttonIcon;
|
|
304
|
-
return (h(Host, { key: '33e438220fdb261ff87289f8dcbaa7e0601d73c1' }, h("button", { key: '4fb4d22a44bac12b3780f9570c734f60fdaba788', 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({
|
|
305
|
-
size: this.size,
|
|
306
|
-
kind: this.kind,
|
|
307
|
-
fullWidth: this.fullWidth,
|
|
308
|
-
disabled: this.disabled,
|
|
309
|
-
loading: this.loading,
|
|
310
|
-
position: this.position,
|
|
311
|
-
}) }, this.loading && h("slot", { key: 'fa8dcbcba338f94700842fd0482d0261c9a1d3e3', name: "loading" }), h("span", { key: '345162b4ad0034d5081dee0438ceeefe4930ecfb' }, h("slot", { key: 'c65c9aa07fd2f159426192fc6239c394ee6ec58d', name: "prefix" }, position === 'prefix' && icon && h("i", { key: 'c94e32a5d308ba3ad98ac10239fc9a155f47e2ac', class: ' leading-none ' + icon }))), h("slot", { key: '171402bb9251492c7e5b0cf572fb0e2ae62a6add' }, this.buttonText), h("span", { key: 'ae3c5a885029b3d4c54e5ca21ac22adffa26b013' }, h("slot", { key: 'f80819d122624bb279d19822278c8e651dec27c7', name: "suffix" }, position === 'suffix' && icon && h("i", { key: '69631e99a8b7f47dd1d00984f582ec6e7b5433e8', class: ' leading-none ' + icon }))))));
|
|
312
|
-
}
|
|
313
|
-
};
|
|
314
|
-
BcmButton.style = BcmButtonStyle0;
|
|
315
|
-
|
|
316
|
-
const drawerCss = ".contents{display:contents}:host{display:contents}.bcm-ui-element{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-family:Inter,sans-serif}.visible{visibility:visible}.invisible{visibility:hidden}.static{position:static}.fixed{position:fixed}.inset-0{inset:0}.bottom-0{bottom:0}.left-0{left:0}.right-0{right:0}.top-0{top:0}.z-40{z-index:40}.z-50{z-index:50}.m-0{margin:0}.flex{display:flex}.hidden{display:none}.h-6{height:1.5rem}.w-6{width:1.5rem}.flex-grow{flex-grow:1}.-translate-x-full{--tw-translate-x:-100%}.-translate-x-full,.-translate-y-full{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))}.-translate-y-full{--tw-translate-y:-100%}.translate-x-0{--tw-translate-x:0px}.translate-x-0,.translate-x-full{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))}.translate-x-full{--tw-translate-x:100%}.translate-y-0{--tw-translate-y:0px}.translate-y-0,.translate-y-full{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))}.translate-y-full{--tw-translate-y:100%}.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-col{flex-direction:column}.items-center{align-items:center}.justify-between{justify-content:space-between}.overflow-y-auto{overflow-y:auto}.border-none{border-style:none}.bg-color-base{background-color:var(--bcm-ui-color-background-base-default)}.bg-color-default{background-color:var(--bcm-ui-color-background-default-default)}.bg-color-transparent{background-color:var(--bcm-ui-color-background-transparent-default)}.bg-transparent{background-color:transparent}.p-0{padding:0}.p-4{padding:1rem}.px-4{padding-left:1rem;padding-right:1rem}.py-3{padding-bottom:.75rem;padding-top:.75rem}.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}.font-semibold{font-weight:600}.text-color-default{color:var(--bcm-ui-color-text-default)}.opacity-0{opacity:0}.opacity-100{opacity:1}.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-opacity{transition-duration:.15s;transition-property:opacity;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)}.hover\\:bg-color-default-hover:hover{background-color:var(--bcm-ui-color-background-default-hover)}.active\\:bg-color-default-active:active{background-color:var(--bcm-ui-color-background-default-active)}";
|
|
317
|
-
const BcmDrawerStyle0 = drawerCss;
|
|
318
|
-
|
|
319
|
-
const BcmDrawer = class {
|
|
320
|
-
constructor(hostRef) {
|
|
321
|
-
registerInstance(this, hostRef);
|
|
322
|
-
this.bcmOpen = createEvent(this, "bcmOpen", 7);
|
|
323
|
-
this.bcmClose = createEvent(this, "bcmClose", 7);
|
|
324
|
-
this.bcmBeforeOpen = createEvent(this, "bcmBeforeOpen", 7);
|
|
325
|
-
this.bcmBeforeClose = createEvent(this, "bcmBeforeClose", 7);
|
|
326
|
-
this.open = false;
|
|
327
|
-
this.size = 'medium';
|
|
328
|
-
this.position = 'right';
|
|
329
|
-
this.fullWidth = false;
|
|
330
|
-
this.noHeader = false;
|
|
331
|
-
this.drawerClass = tv({
|
|
332
|
-
slots: {
|
|
333
|
-
backdrop: 'fixed inset-0 bg-color-transparent z-40 transition-opacity duration-300',
|
|
334
|
-
wrapper: 'bcm-ui-element fixed bg-color-base text-color-default z-50 transform transition-transform duration-300 ease-in-out flex flex-col',
|
|
335
|
-
header: 'flex justify-between items-center bg-color-default text-color-default',
|
|
336
|
-
title: 'font-semibold m-0 text-size-6',
|
|
337
|
-
closeButton: 'text-size-5 font-medium text-color-default bg-transparent border-none p-0 h-6 w-6 hover:bg-color-default-hover cursor-pointer active:bg-color-default-active',
|
|
338
|
-
content: 'overflow-y-auto flex-grow',
|
|
339
|
-
},
|
|
340
|
-
variants: {
|
|
341
|
-
open: {
|
|
342
|
-
true: {
|
|
343
|
-
backdrop: 'opacity-100 visible',
|
|
344
|
-
},
|
|
345
|
-
false: {
|
|
346
|
-
backdrop: 'opacity-0 invisible',
|
|
347
|
-
},
|
|
348
|
-
},
|
|
349
|
-
position: {
|
|
350
|
-
left: {
|
|
351
|
-
wrapper: 'top-0 left-0 bottom-0',
|
|
352
|
-
},
|
|
353
|
-
right: {
|
|
354
|
-
wrapper: 'top-0 right-0 bottom-0',
|
|
355
|
-
},
|
|
356
|
-
top: {
|
|
357
|
-
wrapper: 'top-0 left-0 right-0',
|
|
358
|
-
},
|
|
359
|
-
bottom: {
|
|
360
|
-
wrapper: 'bottom-0 left-0 right-0',
|
|
361
|
-
},
|
|
362
|
-
},
|
|
363
|
-
size: {
|
|
364
|
-
small: {
|
|
365
|
-
header: 'py-3 px-4',
|
|
366
|
-
content: 'p-4',
|
|
367
|
-
},
|
|
368
|
-
medium: {
|
|
369
|
-
header: 'py-3 px-4',
|
|
370
|
-
content: 'p-4',
|
|
371
|
-
},
|
|
372
|
-
large: {
|
|
373
|
-
header: 'py-3 px-4',
|
|
374
|
-
content: 'p-4',
|
|
375
|
-
},
|
|
376
|
-
},
|
|
377
|
-
noHeader: {
|
|
378
|
-
true: {
|
|
379
|
-
header: 'hidden',
|
|
380
|
-
},
|
|
381
|
-
},
|
|
382
|
-
},
|
|
383
|
-
compoundVariants: [
|
|
384
|
-
{
|
|
385
|
-
open: true,
|
|
386
|
-
position: ['left', 'right'],
|
|
387
|
-
class: {
|
|
388
|
-
wrapper: 'translate-x-0',
|
|
389
|
-
},
|
|
390
|
-
},
|
|
391
|
-
{
|
|
392
|
-
open: true,
|
|
393
|
-
position: ['top', 'bottom'],
|
|
394
|
-
class: {
|
|
395
|
-
wrapper: 'translate-y-0',
|
|
396
|
-
},
|
|
397
|
-
},
|
|
398
|
-
{
|
|
399
|
-
open: false,
|
|
400
|
-
position: 'left',
|
|
401
|
-
class: {
|
|
402
|
-
wrapper: '-translate-x-full',
|
|
403
|
-
},
|
|
404
|
-
},
|
|
405
|
-
{
|
|
406
|
-
open: false,
|
|
407
|
-
position: 'right',
|
|
408
|
-
class: {
|
|
409
|
-
wrapper: 'translate-x-full',
|
|
410
|
-
},
|
|
411
|
-
},
|
|
412
|
-
{
|
|
413
|
-
open: false,
|
|
414
|
-
position: 'top',
|
|
415
|
-
class: {
|
|
416
|
-
wrapper: '-translate-y-full',
|
|
417
|
-
},
|
|
418
|
-
},
|
|
419
|
-
{
|
|
420
|
-
open: false,
|
|
421
|
-
position: 'bottom',
|
|
422
|
-
class: {
|
|
423
|
-
wrapper: 'translate-y-full',
|
|
424
|
-
},
|
|
425
|
-
},
|
|
426
|
-
],
|
|
427
|
-
});
|
|
428
|
-
}
|
|
429
|
-
handleOpenChange(isOpen) {
|
|
430
|
-
if (isOpen) {
|
|
431
|
-
document.body.style.overflow = 'hidden';
|
|
432
|
-
this.bcmOpen.emit();
|
|
433
|
-
}
|
|
434
|
-
else {
|
|
435
|
-
document.body.style.overflow = '';
|
|
436
|
-
this.bcmClose.emit();
|
|
437
|
-
}
|
|
438
|
-
}
|
|
439
|
-
handleKeyDown(event) {
|
|
440
|
-
if (event.key === 'Escape' && this.open) {
|
|
441
|
-
this.hide();
|
|
442
|
-
}
|
|
443
|
-
}
|
|
444
|
-
async show() {
|
|
445
|
-
const event = this.bcmBeforeOpen.emit();
|
|
446
|
-
if (!event.defaultPrevented) {
|
|
447
|
-
this.open = true;
|
|
448
|
-
}
|
|
449
|
-
}
|
|
450
|
-
async hide() {
|
|
451
|
-
const event = this.bcmBeforeClose.emit();
|
|
452
|
-
if (!event.defaultPrevented) {
|
|
453
|
-
this.open = false;
|
|
454
|
-
}
|
|
455
|
-
}
|
|
456
|
-
disconnectedCallback() {
|
|
457
|
-
document.body.style.overflow = '';
|
|
458
|
-
}
|
|
459
|
-
getWrapperStyle() {
|
|
460
|
-
const style = {};
|
|
461
|
-
if (this.fullWidth) {
|
|
462
|
-
if (this.position === 'left' || this.position === 'right') {
|
|
463
|
-
style.width = '100vw';
|
|
464
|
-
}
|
|
465
|
-
else {
|
|
466
|
-
style.height = '100vh';
|
|
467
|
-
}
|
|
468
|
-
return style;
|
|
469
|
-
}
|
|
470
|
-
if (this.position === 'left' || this.position === 'right') {
|
|
471
|
-
switch (this.size) {
|
|
472
|
-
case 'small':
|
|
473
|
-
style.width = '320px';
|
|
474
|
-
break;
|
|
475
|
-
case 'medium':
|
|
476
|
-
style.width = '480px';
|
|
477
|
-
break;
|
|
478
|
-
case 'large':
|
|
479
|
-
style.width = '1064px';
|
|
480
|
-
break;
|
|
481
|
-
}
|
|
482
|
-
}
|
|
483
|
-
else {
|
|
484
|
-
switch (this.size) {
|
|
485
|
-
case 'small':
|
|
486
|
-
style.height = '40vh';
|
|
487
|
-
break;
|
|
488
|
-
case 'medium':
|
|
489
|
-
style.height = '60vh';
|
|
490
|
-
break;
|
|
491
|
-
case 'large':
|
|
492
|
-
style.height = '90vh';
|
|
493
|
-
break;
|
|
494
|
-
}
|
|
495
|
-
}
|
|
496
|
-
return style;
|
|
497
|
-
}
|
|
498
|
-
render() {
|
|
499
|
-
const { backdrop, wrapper, header, title, closeButton, content } = this.drawerClass({
|
|
500
|
-
open: this.open,
|
|
501
|
-
position: this.position,
|
|
502
|
-
size: this.size,
|
|
503
|
-
noHeader: this.noHeader,
|
|
504
|
-
});
|
|
505
|
-
return (h("div", { key: '44379905f1499a16d625ac4d1ff5e89fc6367d46', part: "base" }, h("div", { key: 'bc53e5322a61cd4af0691905c509d4c5fb765939', part: "backdrop", class: backdrop(), onClick: () => this.hide() }), h("div", { key: 'd5a666671d24b2f3b55b7462b5218a3e11358982', part: "wrapper", class: wrapper(), style: this.getWrapperStyle(), role: "dialog", "aria-modal": "true", "aria-hidden": !this.open ? 'true' : 'false', "aria-label": this.headerText }, h("div", { key: '5124de9d7fa8f3aa7267f0998f4c4f98f3ebbc4a', part: "header", class: header() }, h("h2", { key: '8aa4b971efa9fe0fafa1cfb94f0b6b96f21f2f15', part: "title", class: title() }, h("slot", { key: '949ae8f65d13e9e1c973c16a9f90205ac7e7042f', name: "header" }, this.headerText)), h("button", { key: 'a0c42761ee859e87dee5c267ea7245dde4fb8756', part: "close-button", class: closeButton(), onClick: () => this.hide(), "aria-label": "Close" }, h("bcm-icon", { key: '2df273d63da93eda2280759a909906fe4ae0c493', name: "fa-solid fa-xmark" }))), h("div", { key: 'b2532537d10f9aa0dcfa2fca8ac806577363e05b', part: "content", class: content() }, h("slot", { key: 'bfec5cff35a7bf7bf1d9801ba89559501e6f301f' })), h("div", { key: '4d44fdba62c74fd5c893c5296f998754228cf961', part: "footer" }, h("slot", { key: 'fd0a58127fd2f0ba0955cef629e55700142a8f32', name: "footer" })))));
|
|
506
|
-
}
|
|
507
|
-
get host() { return getElement(this); }
|
|
508
|
-
static get watchers() { return {
|
|
509
|
-
"open": ["handleOpenChange"]
|
|
510
|
-
}; }
|
|
511
|
-
};
|
|
512
|
-
BcmDrawer.style = BcmDrawerStyle0;
|
|
513
|
-
|
|
514
|
-
const dropdownCss = ".visible{visibility:visible}.hidden{display:none}.static{position:static}.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}";
|
|
515
|
-
const BcmDropdownStyle0 = dropdownCss;
|
|
516
|
-
|
|
517
|
-
const Dropdown = class {
|
|
518
|
-
constructor(hostRef) {
|
|
519
|
-
registerInstance(this, hostRef);
|
|
520
|
-
this.bcmDropdownChange = createEvent(this, "bcmDropdownChange", 1);
|
|
521
|
-
this.isReady = false;
|
|
522
|
-
this.dropdownItems = [];
|
|
523
|
-
this.dropdownClass = tv({
|
|
524
|
-
base: 'dropdown flex flex-col items-center min-w-10 shadow-3 max-w-64 max-h-64 w-full bg-color-basic-panel rounded-lg py-1.5 overflow-y-auto',
|
|
525
|
-
});
|
|
526
|
-
this.handleSlotChange = () => {
|
|
527
|
-
this.dropdownItems = Array.from(this.host.querySelectorAll('bcm-dropdown-item'));
|
|
528
|
-
if (this.dropdownItems.length === 0) {
|
|
529
|
-
console.warn('No dropdown items found in dropdown component');
|
|
530
|
-
}
|
|
531
|
-
};
|
|
532
|
-
}
|
|
533
|
-
componentDidLoad() {
|
|
534
|
-
const button = this.host.shadowRoot.querySelector('bcm-button');
|
|
535
|
-
if (button) {
|
|
536
|
-
this.buttonRef = button;
|
|
537
|
-
this.isReady = true;
|
|
538
|
-
}
|
|
539
|
-
}
|
|
540
|
-
handleDropdownItemChange(event) {
|
|
541
|
-
var _a;
|
|
542
|
-
const { element, selected } = event === null || event === void 0 ? void 0 : event.detail;
|
|
543
|
-
(_a = this.dropdownItems) === null || _a === void 0 ? void 0 : _a.forEach(item => {
|
|
544
|
-
if (item != element) {
|
|
545
|
-
item.selected = false;
|
|
546
|
-
}
|
|
547
|
-
});
|
|
548
|
-
this.bcmDropdownChange.emit({
|
|
549
|
-
element: element,
|
|
550
|
-
selected,
|
|
551
|
-
});
|
|
552
|
-
}
|
|
553
|
-
render() {
|
|
554
|
-
return (h(Host, { key: '6aaff12c84d38c32df5bc8dccb83421afb315eef' }, h("bcm-button", { key: '5612cef7303a6b839531e125c895a4e7b8d32282', kind: "outline" }, h("span", { key: '951418845cb1ec71fe6dc5bbbc33c49934447640', part: "text" }, this.text)), this.isReady && (h("bcm-linked", { key: 'd594359d6a9b7c673307c6a92e6d69cc47be3e1a', targetElement: this.buttonRef }, h("div", { key: '9badba5b1e99af6a5d58b02e849cb0923e49dfd8', part: "dropdown-container", class: this.dropdownClass() }, h("slot", { key: 'c8191f215600170475d514bb6b4056047e6442d2', onSlotchange: this.handleSlotChange }))))));
|
|
555
|
-
}
|
|
556
|
-
get host() { return getElement(this); }
|
|
557
|
-
};
|
|
558
|
-
Dropdown.style = BcmDropdownStyle0;
|
|
559
|
-
|
|
560
|
-
const dropdownItemCss = ".flex{display:flex}:host{display:inline-block;width:100%}::slotted([slot=left-content]){align-items:center;display:flex;flex-direction:row;gap:8px}::slotted([slot=right-content]){align-items:center;display:flex;flex-direction:row;gap:8px}.bcm-ui-element{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-family:Inter,sans-serif}.static{position:static}.w-full{width:100%}.cursor-pointer{cursor:pointer}.flex-row{flex-direction:row}.gap-2{gap:.5rem}.text-pretty{text-wrap:pretty}.bg-\\[var\\(--bcm-ui-color-background-base-active\\)\\]{background-color:var(--bcm-ui-color-background-base-active)}.bg-\\[var\\(--bcm-ui-color-background-palette-red-default\\)\\]{background-color:var(--bcm-ui-color-background-palette-red-default)}.px-4{padding-left:1rem;padding-right:1rem}.py-2{padding-bottom:.5rem;padding-top:.5rem}.shadow{--tw-shadow:var(--bcm-ui-box-shadow-default);--tw-shadow-colored:var(--bcm-ui-box-shadow-default);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.hover\\:bg-\\[var\\(--bcm-ui-color-background-base-active\\)\\]:hover{background-color:var(--bcm-ui-color-background-base-active)}.hover\\:bg-\\[var\\(--bcm-ui-color-background-base-hover\\)\\]:hover{background-color:var(--bcm-ui-color-background-base-hover)}.hover\\:bg-\\[var\\(--bcm-ui-color-background-palette-red-default\\)\\]:hover{background-color:var(--bcm-ui-color-background-palette-red-default)}";
|
|
561
|
-
const BcmDropdownItemStyle0 = dropdownItemCss;
|
|
562
|
-
|
|
563
|
-
const DropdownItem = class {
|
|
564
|
-
constructor(hostRef) {
|
|
565
|
-
registerInstance(this, hostRef);
|
|
566
|
-
this.bcmDropDownItemChange = createEvent(this, "bcmDropDownItemChange", 1);
|
|
567
|
-
this.selected = false;
|
|
568
|
-
this.error = false;
|
|
569
|
-
this.disabled = false;
|
|
570
|
-
this.dropdownItemClass = tv({
|
|
571
|
-
base: 'dropdown-item bcm-ui-element bcm-ui-content-display flex flex-row gap-2 py-2 px-4 cursor-pointer text-color',
|
|
572
|
-
variants: {
|
|
573
|
-
selected: {
|
|
574
|
-
true: 'bg-[var(--bcm-ui-color-background-base-active)] hover:bg-[var(--bcm-ui-color-background-base-active)]',
|
|
575
|
-
false: 'hover:bg-[var(--bcm-ui-color-background-base-hover)]',
|
|
576
|
-
},
|
|
577
|
-
error: {
|
|
578
|
-
true: 'bg-[var(--bcm-ui-color-background-palette-red-default)] hover:bg-[var(--bcm-ui-color-background-palette-red-default)]',
|
|
579
|
-
false: '',
|
|
580
|
-
},
|
|
581
|
-
disabled: {
|
|
582
|
-
true: '', // should be discuss with ux team
|
|
583
|
-
false: '',
|
|
584
|
-
},
|
|
585
|
-
},
|
|
586
|
-
defaultVariants: {
|
|
587
|
-
selected: false,
|
|
588
|
-
error: false,
|
|
589
|
-
disabled: false,
|
|
590
|
-
},
|
|
591
|
-
}, {
|
|
592
|
-
twMerge: false,
|
|
593
|
-
});
|
|
594
|
-
}
|
|
595
|
-
handleClick() {
|
|
596
|
-
this.selected = true;
|
|
597
|
-
this.bcmDropDownItemChange.emit({
|
|
598
|
-
element: this.host,
|
|
599
|
-
selected: this.selected,
|
|
600
|
-
});
|
|
601
|
-
}
|
|
602
|
-
render() {
|
|
603
|
-
var _a;
|
|
604
|
-
return (h("div", { key: '69beaac4c9225bc7803b4002f1543c18e76e36cc', "aria-checked": this.selected, class: this.dropdownItemClass({
|
|
605
|
-
selected: this.selected,
|
|
606
|
-
error: this.error,
|
|
607
|
-
}), onClick: () => this.handleClick() }, h("slot", { key: 'ca2712023285689a1774b5869d982e87d3add46a', name: "left-content" }, this.icon && h("bcm-icon", { key: 'bef7483a47c823ed746c39ae37acc3a2360f0c59', "icon-name": this.icon })), h("div", { key: 'a9bdddf97d4a4e07e601599a4adb11354227dd0f', class: "flex flex-row text-pretty w-full" }, h("slot", { key: '51c488350d2daabc32fc9693211a4e89d8cce16f' }, this.text)), h("slot", { key: '9bf3f8b4affa41ea72f181a073aea8cd56f8a2df', name: "right-content" }, (_a = this.rightIcons) === null || _a === void 0 ? void 0 : _a.map(icon => (h("bcm-icon", { "icon-name": icon }))))));
|
|
608
|
-
}
|
|
609
|
-
get host() { return getElement(this); }
|
|
610
|
-
};
|
|
611
|
-
DropdownItem.style = BcmDropdownItemStyle0;
|
|
612
|
-
|
|
613
|
-
/**
|
|
614
|
-
* Checks if a named slot has any content
|
|
615
|
-
* @param element - The host element (component instance)
|
|
616
|
-
* @param slotName - Name of the slot to check
|
|
617
|
-
* @returns boolean indicating if the slot has any assigned nodes
|
|
618
|
-
*/
|
|
619
|
-
const checkSlotContent = (element, slotName) => {
|
|
620
|
-
var _a;
|
|
621
|
-
const slot = (_a = element.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelector(`slot[name="${slotName}"]`);
|
|
622
|
-
if (!slot)
|
|
623
|
-
return false;
|
|
624
|
-
const assignedNodes = slot.assignedNodes();
|
|
625
|
-
return assignedNodes.length > 0;
|
|
626
|
-
};
|
|
627
|
-
|
|
628
|
-
const inputCss = ".visible{visibility:visible}.collapse{visibility:collapse}.relative{position:relative}.block{display:block}.table{display:table}.contents{display:contents}.hidden{display:none}.border-collapse{border-collapse:collapse}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.resize{resize:both}.border{border-width:1px}.underline{text-decoration-line:underline}.outline{outline-style:solid}/*! tailwindcss v3.4.17 | MIT License | https://tailwindcss.com*/*,:after,:before{border:0 solid oklch(.928 .006 264.531);box-sizing:border-box}:after,:before{--tw-content:\"\"}:host,html{-webkit-text-size-adjust:100%;font-feature-settings:normal;-webkit-tap-highlight-color:transparent;font-family:Inter,sans-serif;font-variation-settings:normal;line-height:1.5;-moz-tab-size:4;-o-tab-size:4;tab-size:4}body{line-height:inherit;margin:0}hr{border-top-width:1px;color:inherit;height:0}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,pre,samp{font-feature-settings:normal;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em;font-variation-settings:normal}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{border-collapse:collapse;border-color:inherit;text-indent:0}button,input,optgroup,select,textarea{font-feature-settings:inherit;color:inherit;font-family:inherit;font-size:100%;font-variation-settings:inherit;font-weight:inherit;letter-spacing:inherit;line-height:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dd,dl,fieldset,figure,h1,h2,h3,h4,h5,h6,hr,p,pre{margin:0}fieldset,legend{padding:0}menu,ol,ul{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{color:oklch(.707 .022 261.325);opacity:1}input::placeholder,textarea::placeholder{color:oklch(.707 .022 261.325);opacity:1}[role=button],button{cursor:pointer}:disabled{cursor:default}audio,canvas,embed,iframe,img,object,svg,video{display:block;vertical-align:middle}img,video{height:auto;max-width:100%}[hidden]:where(:not([hidden=until-found])){display:none}:host{display:inline-block}.bcm-ui-element{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-family:Inter,sans-serif}.static{position:static}.mt-1{margin-top:.25rem}.flex{display:flex}.h-10{height:2.5rem}.h-6{height:1.5rem}.h-8{height:2rem}.h-full{height:100%}.w-6{width:1.5rem}.w-full{width:100%}.flex-1{flex:1 1 0%}.cursor-not-allowed{cursor:not-allowed}.appearance-none{appearance:none}.items-center{align-items:center}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-2{gap:.5rem}.text-ellipsis{text-overflow:ellipsis}.rounded{border-radius:var(--bcm-ui-border-radius-default,6px)}.border-0{border-width:0}.border-solid{border-style:solid}.border-\\[--bcm-ui-color-border-default\\]{border-color:var(--bcm-ui-color-border-default)}.border-\\[--bcm-ui-color-border-error\\]{border-color:var(--bcm-ui-color-border-error)}.border-\\[--bcm-ui-color-border-info\\]{border-color:var(--bcm-ui-color-border-info)}.border-\\[--bcm-ui-color-border-success\\]{border-color:var(--bcm-ui-color-border-success)}.border-\\[--bcm-ui-color-border-warning\\]{border-color:var(--bcm-ui-color-border-warning)}.bg-\\[--bcm-ui-color-background-base-default\\]{background-color:var(--bcm-ui-color-background-base-default)}.bg-transparent{background-color:transparent}.px-1{padding-left:.25rem;padding-right:.25rem}.px-2{padding-left:.5rem;padding-right:.5rem}.font-sans{font-family:Inter,sans-serif}.text-size-3{font-size:var(--bcm-ui-font-size-3,12px);line-height:var(--bcm-ui-line-height-3,16px)}.text-size-4{font-size:var(--bcm-ui-font-size-4,14px);line-height:var(--bcm-ui-line-height-4,20px)}.text-size-5{font-size:var(--bcm-ui-font-size-5,16px);line-height:var(--bcm-ui-line-height-5,24px)}.text-size-6{font-size:var(--bcm-ui-font-size-6,18px);line-height:var(--bcm-ui-line-height-6,24px)}.font-medium{font-weight:500}.text-\\[--bcm-ui-color-text-caption\\]{color:var(--bcm-ui-color-text-caption)}.text-\\[--bcm-ui-color-text-default\\]{color:var(--bcm-ui-color-text-default)}.text-\\[--bcm-ui-color-text-disabled\\]{color:var(--bcm-ui-color-text-disabled)}.text-\\[--bcm-ui-color-text-error\\]{color:var(--bcm-ui-color-text-error)}.text-\\[--bcm-ui-color-text-info\\]{color:var(--bcm-ui-color-text-info)}.text-\\[--bcm-ui-color-text-success\\]{color:var(--bcm-ui-color-text-success)}.text-\\[--bcm-ui-color-text-warning\\]{color:var(--bcm-ui-color-text-warning)}.text-color-disabled{color:var(--bcm-ui-color-text-disabled)}.text-color-label{color:var(--bcm-ui-color-text-label)}.antialiased{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.shadow{--tw-shadow:var(--bcm-ui-box-shadow-default);--tw-shadow-colored:var(--bcm-ui-box-shadow-default);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.outline-0{outline-width:0}.blur{--tw-blur:blur(8px);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.transition-colors{transition-duration:.15s;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1)}.duration-200{transition-duration:.2s}.placeholder\\:font-normal::placeholder{font-weight:400}.placeholder\\:text-\\[--bcm-ui-color-text-placeholder\\]::placeholder{color:var(--bcm-ui-color-text-placeholder)}.hover\\:border-\\[--bcm-ui-color-border-error\\]:hover{border-color:var(--bcm-ui-color-border-error)}.hover\\:border-\\[--bcm-ui-color-border-info\\]:hover{border-color:var(--bcm-ui-color-border-info)}.hover\\:border-\\[--bcm-ui-color-border-primary\\]:hover{border-color:var(--bcm-ui-color-border-primary)}.hover\\:border-\\[--bcm-ui-color-border-success\\]:hover{border-color:var(--bcm-ui-color-border-success)}.hover\\:border-\\[--bcm-ui-color-border-warning\\]:hover{border-color:var(--bcm-ui-color-border-warning)}.has-\\[\\:focus\\]\\:border-\\[--bcm-ui-color-border-error\\]:has(:focus){border-color:var(--bcm-ui-color-border-error)}.has-\\[\\:focus\\]\\:border-\\[--bcm-ui-color-border-info\\]:has(:focus){border-color:var(--bcm-ui-color-border-info)}.has-\\[\\:focus\\]\\:border-\\[--bcm-ui-color-border-primary\\]:has(:focus){border-color:var(--bcm-ui-color-border-primary)}.has-\\[\\:focus\\]\\:border-\\[--bcm-ui-color-border-success\\]:has(:focus){border-color:var(--bcm-ui-color-border-success)}.has-\\[\\:focus\\]\\:border-\\[--bcm-ui-color-border-warning\\]:has(:focus){border-color:var(--bcm-ui-color-border-warning)}.\\[\\&\\:\\:-webkit-inner-spin-button\\]\\:appearance-none::-webkit-inner-spin-button{appearance:none}";
|
|
629
|
-
const BcmInputStyle0 = inputCss;
|
|
630
|
-
|
|
631
|
-
const BcmInput = class {
|
|
632
|
-
constructor(hostRef) {
|
|
633
|
-
registerInstance(this, hostRef);
|
|
634
|
-
this.bcmInput = createEvent(this, "bcmInput", 1);
|
|
635
|
-
this.bcmChange = createEvent(this, "bcmChange", 1);
|
|
636
|
-
this.bcmFocus = createEvent(this, "bcmFocus", 1);
|
|
637
|
-
this.bcmBlur = createEvent(this, "bcmBlur", 1);
|
|
638
|
-
this.bcmKeyDown = createEvent(this, "bcmKeyDown", 1);
|
|
639
|
-
this.bcmKeyUp = createEvent(this, "bcmKeyUp", 1);
|
|
640
|
-
this.isFocused = false;
|
|
641
|
-
this.isValid = true;
|
|
642
|
-
this.internalStatus = 'default';
|
|
643
|
-
this.isPasswordVisible = false;
|
|
644
|
-
/** Input value */
|
|
645
|
-
this.value = '';
|
|
646
|
-
/** Input id */
|
|
647
|
-
this._id = generateId('input');
|
|
648
|
-
/** Controls the input size */
|
|
649
|
-
this.size = 'medium';
|
|
650
|
-
/** Defines the input's status/state */
|
|
651
|
-
this.status = 'default';
|
|
652
|
-
/** Full width input */
|
|
653
|
-
this.fullWidth = false;
|
|
654
|
-
/** HTML input type */
|
|
655
|
-
this.type = 'text';
|
|
656
|
-
/** Whether the input is disabled */
|
|
657
|
-
this.disabled = false;
|
|
658
|
-
/** Whether the input is readonly */
|
|
659
|
-
this.readonly = false;
|
|
660
|
-
/** Whether the input is required */
|
|
661
|
-
this.required = false;
|
|
662
|
-
/** Whether to use native form validation
|
|
663
|
-
* If false, component will handle validation internally
|
|
664
|
-
*/
|
|
665
|
-
this.useNativeValidation = true;
|
|
666
|
-
this.onInput = (event) => {
|
|
667
|
-
const input = event.target;
|
|
668
|
-
this.value = input.value;
|
|
669
|
-
this.bcmInput.emit(event);
|
|
670
|
-
this.validateInput();
|
|
671
|
-
};
|
|
672
|
-
this.onChange = (event) => {
|
|
673
|
-
this.bcmChange.emit(event);
|
|
674
|
-
};
|
|
675
|
-
this.onFocus = (event) => {
|
|
676
|
-
this.isFocused = true;
|
|
677
|
-
this.bcmFocus.emit(event);
|
|
678
|
-
};
|
|
679
|
-
this.onBlur = (event) => {
|
|
680
|
-
this.isFocused = false;
|
|
681
|
-
this.bcmBlur.emit(event);
|
|
682
|
-
this.validateInput();
|
|
683
|
-
};
|
|
684
|
-
this.onKeyDown = (event) => {
|
|
685
|
-
this.bcmKeyDown.emit(event);
|
|
686
|
-
};
|
|
687
|
-
this.onKeyUp = (event) => {
|
|
688
|
-
this.bcmKeyUp.emit(event);
|
|
689
|
-
};
|
|
690
|
-
this.styleClass = tv({
|
|
691
|
-
slots: {
|
|
692
|
-
base: [
|
|
693
|
-
'bcm-input bcm-input__container',
|
|
694
|
-
'bg-[--bcm-ui-color-background-base-default]',
|
|
695
|
-
'text-[--bcm-ui-color-text-default]',
|
|
696
|
-
'border border-solid rounded',
|
|
697
|
-
'flex items-center justify-between',
|
|
698
|
-
'transition-colors duration-200',
|
|
699
|
-
'px-2',
|
|
700
|
-
],
|
|
701
|
-
inputClass: [
|
|
702
|
-
'input',
|
|
703
|
-
'w-full flex-1',
|
|
704
|
-
'border-0 outline-0 bg-transparent',
|
|
705
|
-
'appearance-none text-ellipsis',
|
|
706
|
-
'text-[--bcm-ui-color-text-default] placeholder:text-[--bcm-ui-color-text-placeholder] placeholder:font-normal',
|
|
707
|
-
'font-sans antialiased font-medium',
|
|
708
|
-
'px-1',
|
|
709
|
-
'[appearance:textfield][&::-webkit-outer-spin-button]:appearance-none [&::-webkit-inner-spin-button]:appearance-none',
|
|
710
|
-
],
|
|
711
|
-
},
|
|
712
|
-
variants: {
|
|
713
|
-
size: {
|
|
714
|
-
small: {
|
|
715
|
-
base: '',
|
|
716
|
-
inputClass: 'text-size-4 h-6',
|
|
717
|
-
},
|
|
718
|
-
medium: {
|
|
719
|
-
base: '',
|
|
720
|
-
inputClass: 'text-size-5 h-8',
|
|
721
|
-
},
|
|
722
|
-
large: {
|
|
723
|
-
base: '',
|
|
724
|
-
inputClass: 'text-size-6 h-10',
|
|
725
|
-
},
|
|
726
|
-
},
|
|
727
|
-
status: {
|
|
728
|
-
default: {
|
|
729
|
-
base: ['border-[--bcm-ui-color-border-default]', 'hover:border-[--bcm-ui-color-border-primary]', 'has-[:focus]:border-[--bcm-ui-color-border-primary]'],
|
|
730
|
-
},
|
|
731
|
-
error: {
|
|
732
|
-
base: ['border-[--bcm-ui-color-border-error]', 'hover:border-[--bcm-ui-color-border-error]', 'has-[:focus]:border-[--bcm-ui-color-border-error]'],
|
|
733
|
-
},
|
|
734
|
-
success: {
|
|
735
|
-
base: ['border-[--bcm-ui-color-border-success]', 'hover:border-[--bcm-ui-color-border-success]', 'has-[:focus]:border-[--bcm-ui-color-border-success]'],
|
|
736
|
-
},
|
|
737
|
-
warning: {
|
|
738
|
-
base: ['border-[--bcm-ui-color-border-warning]', 'hover:border-[--bcm-ui-color-border-warning]', 'has-[:focus]:border-[--bcm-ui-color-border-warning]'],
|
|
739
|
-
},
|
|
740
|
-
info: {
|
|
741
|
-
base: ['border-[--bcm-ui-color-border-info]', 'hover:border-[--bcm-ui-color-border-info]', 'has-[:focus]:border-[--bcm-ui-color-border-info]'],
|
|
742
|
-
},
|
|
743
|
-
},
|
|
744
|
-
fullWidth: {
|
|
745
|
-
true: 'full-width w-full',
|
|
746
|
-
},
|
|
747
|
-
disabled: {
|
|
748
|
-
true: 'disabled cursor-not-allowed',
|
|
749
|
-
false: '',
|
|
750
|
-
},
|
|
751
|
-
focused: {
|
|
752
|
-
true: {
|
|
753
|
-
base: '',
|
|
754
|
-
},
|
|
755
|
-
},
|
|
756
|
-
},
|
|
757
|
-
defaultVariants: {
|
|
758
|
-
size: 'medium',
|
|
759
|
-
status: 'default',
|
|
760
|
-
fullWidth: false,
|
|
761
|
-
disabled: false,
|
|
762
|
-
focused: false,
|
|
763
|
-
},
|
|
764
|
-
}, {
|
|
765
|
-
twMerge: false,
|
|
766
|
-
});
|
|
767
|
-
this.togglePasswordVisibility = () => {
|
|
768
|
-
this.isPasswordVisible = !this.isPasswordVisible;
|
|
769
|
-
this.inputRef.type = this.isPasswordVisible ? 'text' : 'password';
|
|
770
|
-
};
|
|
771
|
-
this.PasswordToggleButton = () => {
|
|
772
|
-
var _a;
|
|
773
|
-
if (this.type !== 'password' || this.disabled || this.readonly || ((_a = this.value) === null || _a === void 0 ? void 0 : _a.length) === 0)
|
|
774
|
-
return null;
|
|
775
|
-
return (h("button", { class: "appearance-none flex items-center w-6 h-full justify-center", onClick: this.togglePasswordVisibility, type: "button" }, h("bcm-icon", { name: this.isPasswordVisible ? 'fa-eye-slash fa-regular' : 'fa-regular fa-eye', size: this.iconSize })));
|
|
776
|
-
};
|
|
777
|
-
this.iconSize = {
|
|
778
|
-
small: 14,
|
|
779
|
-
medium: 16,
|
|
780
|
-
large: 18,
|
|
781
|
-
}[this.size];
|
|
782
|
-
}
|
|
783
|
-
handleValueChange(newValue) {
|
|
784
|
-
if (this.inputRef) {
|
|
785
|
-
this.inputRef.value = newValue;
|
|
786
|
-
}
|
|
787
|
-
}
|
|
788
|
-
watchStatus(newValue) {
|
|
789
|
-
this.internalStatus = newValue;
|
|
790
|
-
}
|
|
791
|
-
watchErrorMessage(newValue) {
|
|
792
|
-
this.internalErrorMessage = newValue;
|
|
793
|
-
}
|
|
794
|
-
async setFocus() {
|
|
795
|
-
var _a;
|
|
796
|
-
(_a = this.inputRef) === null || _a === void 0 ? void 0 : _a.focus();
|
|
797
|
-
}
|
|
798
|
-
async setBlur() {
|
|
799
|
-
var _a;
|
|
800
|
-
(_a = this.inputRef) === null || _a === void 0 ? void 0 : _a.blur();
|
|
801
|
-
}
|
|
802
|
-
async select() {
|
|
803
|
-
var _a;
|
|
804
|
-
(_a = this.inputRef) === null || _a === void 0 ? void 0 : _a.select();
|
|
805
|
-
}
|
|
806
|
-
/** Sets locale and messages for all inputs */
|
|
807
|
-
async setLocale(locale, messages) {
|
|
808
|
-
// Set messages and update validation immediately
|
|
809
|
-
setValidationMessages(locale, messages);
|
|
810
|
-
// Mevcut validasyon mesajını güncelle
|
|
811
|
-
if (!this.isValid) {
|
|
812
|
-
this.validateInput();
|
|
813
|
-
}
|
|
814
|
-
}
|
|
815
|
-
componentWillLoad() {
|
|
816
|
-
// I18n için default mesajları set et
|
|
817
|
-
setValidationMessages('en', defaultValidationMessages);
|
|
818
|
-
this.internalStatus = this.status;
|
|
819
|
-
this.internalErrorMessage = this.errorMessage;
|
|
820
|
-
}
|
|
821
|
-
validateInput() {
|
|
822
|
-
if (!this.inputRef)
|
|
823
|
-
return;
|
|
824
|
-
// Reset validation state
|
|
825
|
-
this.isValid = true;
|
|
826
|
-
this.validationMessage = '';
|
|
827
|
-
const value = this.inputRef.value;
|
|
828
|
-
// Required check
|
|
829
|
-
if (this.required && !value) {
|
|
830
|
-
this.isValid = false;
|
|
831
|
-
this.validationMessage = getValidationMessage('required');
|
|
832
|
-
this.internalStatus = 'error';
|
|
833
|
-
this.internalErrorMessage = this.validationMessage;
|
|
834
|
-
return;
|
|
835
|
-
}
|
|
836
|
-
// Minimum length check
|
|
837
|
-
else if (this.minLength && value.length < this.minLength) {
|
|
838
|
-
this.isValid = false;
|
|
839
|
-
this.validationMessage = getValidationMessage('minlength', { min: this.minLength });
|
|
840
|
-
}
|
|
841
|
-
// Maximum length check
|
|
842
|
-
else if (this.maxLength && value.length > this.maxLength) {
|
|
843
|
-
this.isValid = false;
|
|
844
|
-
this.validationMessage = getValidationMessage('maxlength', { max: this.maxLength });
|
|
845
|
-
}
|
|
846
|
-
// Pattern check
|
|
847
|
-
else if (this.pattern && !new RegExp(this.pattern).test(value)) {
|
|
848
|
-
this.isValid = false;
|
|
849
|
-
this.validationMessage = getValidationMessage('pattern');
|
|
850
|
-
}
|
|
851
|
-
// Email check
|
|
852
|
-
else if (this.type === 'email' && value && !/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(value)) {
|
|
853
|
-
this.isValid = false;
|
|
854
|
-
this.validationMessage = getValidationMessage('email');
|
|
855
|
-
}
|
|
856
|
-
// Number range check
|
|
857
|
-
else if (this.type === 'number' && value) {
|
|
858
|
-
const numValue = parseFloat(value);
|
|
859
|
-
if (this.min !== undefined && numValue < this.min) {
|
|
860
|
-
this.isValid = false;
|
|
861
|
-
this.validationMessage = getValidationMessage('min', { min: this.min });
|
|
862
|
-
}
|
|
863
|
-
else if (this.max !== undefined && numValue > this.max) {
|
|
864
|
-
this.isValid = false;
|
|
865
|
-
this.validationMessage = getValidationMessage('max', { max: this.max });
|
|
866
|
-
}
|
|
867
|
-
}
|
|
868
|
-
// Update component state
|
|
869
|
-
this.internalStatus = this.isValid ? 'default' : 'error';
|
|
870
|
-
this.internalErrorMessage = this.validationMessage;
|
|
871
|
-
}
|
|
872
|
-
hasSlotContent(slotName) {
|
|
873
|
-
return checkSlotContent(this.el, slotName);
|
|
874
|
-
}
|
|
875
|
-
getDefaultIconForType() {
|
|
876
|
-
return; // TODO: Will be implemented later
|
|
877
|
-
// return defaultIcons[this.type as keyof typeof defaultIcons];
|
|
878
|
-
}
|
|
879
|
-
render() {
|
|
880
|
-
const inputId = this._id + '-input' || this.name;
|
|
881
|
-
const { base, inputClass } = this.styleClass({
|
|
882
|
-
size: this.size,
|
|
883
|
-
status: this.internalStatus,
|
|
884
|
-
fullWidth: this.fullWidth,
|
|
885
|
-
disabled: this.disabled,
|
|
886
|
-
focused: this.isFocused,
|
|
887
|
-
});
|
|
888
|
-
return (h("div", { key: '2b470d6a8d48e3867345a1baaf038f464167bd8c', class: "bcm-ui-element" }, this.label && (h("label", { key: '65aa7f333c4cc7deb68dec12ac25fd953d03e5a9', class: classNames('input-label font-medium', {
|
|
889
|
-
'text-color-label': !this.disabled,
|
|
890
|
-
'text-color-disabled': this.disabled,
|
|
891
|
-
}, {
|
|
892
|
-
'text-size-3': this.size === 'small',
|
|
893
|
-
'text-size-4': this.size === 'medium',
|
|
894
|
-
'text-size-5': this.size === 'large',
|
|
895
|
-
}), htmlFor: inputId }, h("slot", { key: '5507aaf837e03b059b5ee37270406519e3460d84', name: "label" }, this.label), this.required && h("span", { key: 'ae92e270cf66574dd511403df99ce6f0172f7cf0' }, "*"))), h("div", { key: 'c562649dbb4085830f2229af20b450de50af18ab', class: base() }, (this.hasSlotContent('prefix') || this.prefixIcon || this.getDefaultIconForType()) && (h("div", { key: '8e53088d990111325fad2c78c99818761e729e80', class: "flex items-center gap-2 px-2" }, (this.prefixIcon || this.getDefaultIconForType()) && (h("bcm-icon", { key: '0dd292f047e02ce75051b8a271ffcedb35036631', class: "prefix-icon", "icon-name": this.prefixIcon || this.getDefaultIconForType(), size: this.iconSize })), h("slot", { key: '6dd835e17b66f29681232748a9cc8fd04ef8365e', name: "prefix" }))), h("input", { key: '965fa5a5d2188a8608ae997973c792708fd986bf', 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: 'f0f78deaa350963ff31b07c2076a405bb4560fc5', class: "flex items-center gap-2 px-2" }, h("slot", { key: '6b6afb6088fa96b9c1daa97641e70bd9d1a8f044', name: "suffix" }), this.suffixIcon && h("bcm-icon", { key: '9f33e74c6629341ba5cc447af1b4ba9237997138', class: "suffix-icon", "icon-name": this.suffixIcon, size: this.iconSize }))), this.PasswordToggleButton()), (this.captionText || this.internalErrorMessage || this.validationMessage) && (h("div", { key: '416b4a6c586ebd6e722a68181ca4dc1125fc5e7d', class: classNames('input-caption-text font-regular mt-1', {
|
|
896
|
-
'text-[--bcm-ui-color-text-caption]': !this.disabled && this.internalStatus === 'default',
|
|
897
|
-
'text-[--bcm-ui-color-text-error]': !this.disabled && (this.internalStatus === 'error' || !this.isValid),
|
|
898
|
-
'text-[--bcm-ui-color-text-success]': !this.disabled && this.internalStatus === 'success',
|
|
899
|
-
'text-[--bcm-ui-color-text-warning]': !this.disabled && this.internalStatus === 'warning',
|
|
900
|
-
'text-[--bcm-ui-color-text-info]': !this.disabled && this.internalStatus === 'info',
|
|
901
|
-
'text-[--bcm-ui-color-text-disabled]': this.disabled,
|
|
902
|
-
}, {
|
|
903
|
-
'text-size-3': this.size === 'small',
|
|
904
|
-
'text-size-4': this.size === 'medium',
|
|
905
|
-
'text-size-5': this.size === 'large',
|
|
906
|
-
}) }, !this.isValid ? this.validationMessage : this.internalStatus === 'error' ? this.internalErrorMessage : this.captionText))));
|
|
907
|
-
}
|
|
908
|
-
get el() { return getElement(this); }
|
|
909
|
-
static get watchers() { return {
|
|
910
|
-
"value": ["handleValueChange"],
|
|
911
|
-
"status": ["watchStatus"],
|
|
912
|
-
"errorMessage": ["watchErrorMessage"]
|
|
913
|
-
}; }
|
|
914
|
-
};
|
|
915
|
-
BcmInput.style = BcmInputStyle0;
|
|
916
|
-
|
|
917
|
-
const linkedCss = ".absolute{position:absolute}.relative{position:relative}.block{display:block}.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)}bcm-linked{display:block;position:relative}bcm-linked[append-to-body]{display:none}.floating-content{min-width:-moz-max-content;min-width:max-content;transition:opacity .2s ease,visibility .2s ease,transform .2s ease;will-change:transform,opacity}.floating-visible{animation:fadeInScale .2s ease-out}.floating-hidden{display:none!important;pointer-events:none}.floating-wrapper{position:relative;z-index:1}@keyframes fadeInScale{0%{opacity:0;transform:scale(.95) translateY(-5px)}to{opacity:1;transform:scale(1) translateY(0)}}.floating-arrow{z-index:-1}.floating-arrow,.floating-arrow:before{height:10px;position:absolute;width:10px}.floating-arrow:before{background:#fff;border:1px solid #e2e8f0;content:\"\";transform:rotate(45deg)}.arrow-top{bottom:-5px}.arrow-bottom,.arrow-top{left:50%;transform:translateX(-50%)}.arrow-bottom{top:-5px}.arrow-left{right:-5px}.arrow-left,.arrow-right{top:50%;transform:translateY(-50%)}.arrow-right{left:-5px}.arrow-top:before{border-bottom:0;border-right:0}.arrow-bottom:before{border-left:0;border-top:0}.arrow-left:before{border-right:0;border-top:0}.arrow-right:before{border-bottom:0;border-left:0}@media (max-width:768px){.floating-content{max-height:calc(100vh - 32px);max-width:calc(100vw - 32px)}}.visible{visibility:visible}.static{position:static}.fixed{position:fixed}.hidden{display:none}.resize{resize:both}.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)}.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}";
|
|
918
|
-
const BcmLinkedStyle0 = linkedCss;
|
|
919
|
-
|
|
920
|
-
const BcmLinked = class {
|
|
921
|
-
constructor(hostRef) {
|
|
922
|
-
registerInstance(this, hostRef);
|
|
923
|
-
this.bcmShow = createEvent(this, "bcmShow", 7);
|
|
924
|
-
this.bcmHide = createEvent(this, "bcmHide", 7);
|
|
925
|
-
this.bcmShown = createEvent(this, "bcmShown", 7);
|
|
926
|
-
this.bcmHidden = createEvent(this, "bcmHidden", 7);
|
|
927
|
-
// Trigger configuration
|
|
928
|
-
this.trigger = 'click';
|
|
929
|
-
this.placement = 'bottom-start';
|
|
930
|
-
// Timing configuration
|
|
931
|
-
this.showDelay = 0;
|
|
932
|
-
this.hideDelay = 0;
|
|
933
|
-
// Positioning configuration
|
|
934
|
-
this.offset = 8;
|
|
935
|
-
this.arrow = false;
|
|
936
|
-
this.disabled = false;
|
|
937
|
-
// Style configuration
|
|
938
|
-
this.zIndex = 1000;
|
|
939
|
-
this.appendToBody = false;
|
|
940
|
-
this.destroyOnHide = false;
|
|
941
|
-
// State
|
|
942
|
-
this.isVisible = false;
|
|
943
|
-
this.isReady = false;
|
|
944
|
-
this.handleMouseEnter = () => {
|
|
945
|
-
this.clearTimeouts();
|
|
946
|
-
if (this.showDelay > 0) {
|
|
947
|
-
this.showTimeout = setTimeout(() => this.show(), this.showDelay);
|
|
948
|
-
}
|
|
949
|
-
else {
|
|
950
|
-
this.show();
|
|
951
|
-
}
|
|
952
|
-
};
|
|
953
|
-
this.handleMouseLeave = () => {
|
|
954
|
-
this.clearTimeouts();
|
|
955
|
-
if (this.hideDelay > 0) {
|
|
956
|
-
this.hideTimeout = setTimeout(() => this.hide(), this.hideDelay);
|
|
957
|
-
}
|
|
958
|
-
else {
|
|
959
|
-
this.hide();
|
|
960
|
-
}
|
|
961
|
-
};
|
|
962
|
-
this.handleFloatingMouseEnter = () => {
|
|
963
|
-
this.clearTimeouts();
|
|
964
|
-
};
|
|
965
|
-
this.handleFloatingMouseLeave = () => {
|
|
966
|
-
this.clearTimeouts();
|
|
967
|
-
if (this.hideDelay > 0) {
|
|
968
|
-
this.hideTimeout = setTimeout(() => this.hide(), this.hideDelay);
|
|
969
|
-
}
|
|
970
|
-
else {
|
|
971
|
-
this.hide();
|
|
972
|
-
}
|
|
973
|
-
};
|
|
974
|
-
this.handleClick = (e) => {
|
|
975
|
-
e.stopPropagation();
|
|
976
|
-
this.toggle();
|
|
977
|
-
};
|
|
978
|
-
this.handleFocus = () => {
|
|
979
|
-
this.show();
|
|
980
|
-
};
|
|
981
|
-
this.handleBlur = () => {
|
|
982
|
-
this.hide();
|
|
983
|
-
};
|
|
984
|
-
}
|
|
985
|
-
// Watch for changes
|
|
986
|
-
setupTarget() {
|
|
987
|
-
this.disconnectTarget();
|
|
988
|
-
this.connectTarget();
|
|
989
|
-
}
|
|
990
|
-
onVisibilityChange(newValue) {
|
|
991
|
-
if (newValue) {
|
|
992
|
-
this.updatePosition();
|
|
993
|
-
this.bcmShown.emit();
|
|
994
|
-
}
|
|
995
|
-
else {
|
|
996
|
-
this.bcmHidden.emit();
|
|
997
|
-
}
|
|
998
|
-
}
|
|
999
|
-
async componentDidLoad() {
|
|
1000
|
-
// Wait for render
|
|
1001
|
-
await new Promise(resolve => requestAnimationFrame(resolve));
|
|
1002
|
-
this.floatingEl = this.host.querySelector('.floating-content');
|
|
1003
|
-
if (this.floatingEl) {
|
|
1004
|
-
this.isReady = true;
|
|
1005
|
-
this.connectTarget();
|
|
1006
|
-
this.setupFloatingObserver();
|
|
1007
|
-
console.log('✅ bcm-linked initialized successfully');
|
|
1008
|
-
}
|
|
1009
|
-
else {
|
|
1010
|
-
console.error('❌ Could not find .floating-content element');
|
|
1011
|
-
}
|
|
1012
|
-
}
|
|
1013
|
-
disconnectedCallback() {
|
|
1014
|
-
var _a, _b;
|
|
1015
|
-
this.disconnectTarget();
|
|
1016
|
-
this.clearTimeouts();
|
|
1017
|
-
(_a = this.cleanup) === null || _a === void 0 ? void 0 : _a.call(this);
|
|
1018
|
-
(_b = this.resizeObserver) === null || _b === void 0 ? void 0 : _b.disconnect();
|
|
1019
|
-
// Restore element to original position if component is destroyed while in portal
|
|
1020
|
-
if (this.appendToBody && this.floatingEl && this.originalParent) {
|
|
1021
|
-
this.originalParent.appendChild(this.floatingEl);
|
|
1022
|
-
}
|
|
1023
|
-
}
|
|
1024
|
-
connectTarget() {
|
|
1025
|
-
if (!this.isReady)
|
|
1026
|
-
return;
|
|
1027
|
-
// Find target element
|
|
1028
|
-
this.targetEl =
|
|
1029
|
-
this.targetElement || (this.targetId ? document.getElementById(this.targetId) : null) || this.host.previousElementSibling || this.host.parentElement;
|
|
1030
|
-
if (!this.targetEl) {
|
|
1031
|
-
console.warn('bcm-linked: No target element found');
|
|
1032
|
-
return;
|
|
1033
|
-
}
|
|
1034
|
-
// Setup event listeners based on trigger type
|
|
1035
|
-
this.setupEventListeners();
|
|
1036
|
-
// Setup auto-update for position
|
|
1037
|
-
if (this.targetEl && this.floatingEl) {
|
|
1038
|
-
this.cleanup = autoUpdate(this.targetEl, this.floatingEl, () => {
|
|
1039
|
-
if (this.isVisible) {
|
|
1040
|
-
this.updatePosition();
|
|
1041
|
-
}
|
|
1042
|
-
});
|
|
1043
|
-
}
|
|
1044
|
-
// Setup resize observer for responsive positioning
|
|
1045
|
-
this.resizeObserver = new ResizeObserver(() => {
|
|
1046
|
-
if (this.isVisible) {
|
|
1047
|
-
this.updatePosition();
|
|
1048
|
-
}
|
|
1049
|
-
});
|
|
1050
|
-
this.resizeObserver.observe(this.floatingEl);
|
|
1051
|
-
}
|
|
1052
|
-
disconnectTarget() {
|
|
1053
|
-
var _a, _b;
|
|
1054
|
-
if (this.targetEl) {
|
|
1055
|
-
this.removeEventListeners();
|
|
1056
|
-
}
|
|
1057
|
-
(_a = this.cleanup) === null || _a === void 0 ? void 0 : _a.call(this);
|
|
1058
|
-
(_b = this.resizeObserver) === null || _b === void 0 ? void 0 : _b.disconnect();
|
|
1059
|
-
}
|
|
1060
|
-
setupEventListeners() {
|
|
1061
|
-
var _a, _b;
|
|
1062
|
-
if (!this.targetEl || this.disabled)
|
|
1063
|
-
return;
|
|
1064
|
-
switch (this.trigger) {
|
|
1065
|
-
case 'hover':
|
|
1066
|
-
this.targetEl.addEventListener('mouseenter', this.handleMouseEnter);
|
|
1067
|
-
this.targetEl.addEventListener('mouseleave', this.handleMouseLeave);
|
|
1068
|
-
(_a = this.floatingEl) === null || _a === void 0 ? void 0 : _a.addEventListener('mouseenter', this.handleFloatingMouseEnter);
|
|
1069
|
-
(_b = this.floatingEl) === null || _b === void 0 ? void 0 : _b.addEventListener('mouseleave', this.handleFloatingMouseLeave);
|
|
1070
|
-
break;
|
|
1071
|
-
case 'click':
|
|
1072
|
-
this.targetEl.addEventListener('click', this.handleClick);
|
|
1073
|
-
this.setupClickOutside();
|
|
1074
|
-
break;
|
|
1075
|
-
case 'focus':
|
|
1076
|
-
this.targetEl.addEventListener('focus', this.handleFocus);
|
|
1077
|
-
this.targetEl.addEventListener('blur', this.handleBlur);
|
|
1078
|
-
break;
|
|
1079
|
-
}
|
|
1080
|
-
}
|
|
1081
|
-
removeEventListeners() {
|
|
1082
|
-
var _a, _b;
|
|
1083
|
-
if (!this.targetEl)
|
|
1084
|
-
return;
|
|
1085
|
-
this.targetEl.removeEventListener('mouseenter', this.handleMouseEnter);
|
|
1086
|
-
this.targetEl.removeEventListener('mouseleave', this.handleMouseLeave);
|
|
1087
|
-
this.targetEl.removeEventListener('click', this.handleClick);
|
|
1088
|
-
this.targetEl.removeEventListener('focus', this.handleFocus);
|
|
1089
|
-
this.targetEl.removeEventListener('blur', this.handleBlur);
|
|
1090
|
-
(_a = this.floatingEl) === null || _a === void 0 ? void 0 : _a.removeEventListener('mouseenter', this.handleFloatingMouseEnter);
|
|
1091
|
-
(_b = this.floatingEl) === null || _b === void 0 ? void 0 : _b.removeEventListener('mouseleave', this.handleFloatingMouseLeave);
|
|
1092
|
-
this.removeClickOutside();
|
|
1093
|
-
}
|
|
1094
|
-
setupClickOutside() {
|
|
1095
|
-
this.clickOutsideHandler = (e) => {
|
|
1096
|
-
var _a, _b;
|
|
1097
|
-
const target = e.target;
|
|
1098
|
-
if (!((_a = this.floatingEl) === null || _a === void 0 ? void 0 : _a.contains(target)) && !((_b = this.targetEl) === null || _b === void 0 ? void 0 : _b.contains(target)) && !this.host.contains(target)) {
|
|
1099
|
-
this.hide();
|
|
1100
|
-
}
|
|
1101
|
-
};
|
|
1102
|
-
document.addEventListener('click', this.clickOutsideHandler, true);
|
|
1103
|
-
}
|
|
1104
|
-
removeClickOutside() {
|
|
1105
|
-
if (this.clickOutsideHandler) {
|
|
1106
|
-
document.removeEventListener('click', this.clickOutsideHandler, true);
|
|
1107
|
-
this.clickOutsideHandler = undefined;
|
|
1108
|
-
}
|
|
1109
|
-
}
|
|
1110
|
-
clearTimeouts() {
|
|
1111
|
-
if (this.showTimeout) {
|
|
1112
|
-
clearTimeout(this.showTimeout);
|
|
1113
|
-
this.showTimeout = undefined;
|
|
1114
|
-
}
|
|
1115
|
-
if (this.hideTimeout) {
|
|
1116
|
-
clearTimeout(this.hideTimeout);
|
|
1117
|
-
this.hideTimeout = undefined;
|
|
1118
|
-
}
|
|
1119
|
-
}
|
|
1120
|
-
async updatePosition() {
|
|
1121
|
-
if (!this.targetEl || !this.floatingEl || !this.isVisible)
|
|
1122
|
-
return;
|
|
1123
|
-
// Use autoPlacement only for bottom-start (dropdown default)
|
|
1124
|
-
// For other placements, respect the manual placement with flip fallback
|
|
1125
|
-
// const useAutoPlacement = this.placement === 'bottom-start';
|
|
1126
|
-
const middleware = [
|
|
1127
|
-
offset(this.offset),
|
|
1128
|
-
// useAutoPlacement
|
|
1129
|
-
// ? autoPlacement({
|
|
1130
|
-
// allowedPlacements: ['bottom-start', 'bottom-end', 'bottom', 'top-start', 'top-end', 'top', 'right-start', 'right-end', 'right', 'left-start', 'left-end', 'left'],
|
|
1131
|
-
// boundary: document.body,
|
|
1132
|
-
// })
|
|
1133
|
-
// :
|
|
1134
|
-
flip({
|
|
1135
|
-
fallbackPlacements: ['top', 'bottom', 'left', 'right', 'top-start', 'top-end', 'bottom-start', 'bottom-end', 'left-start', 'left-end', 'right-start', 'right-end'],
|
|
1136
|
-
}),
|
|
1137
|
-
shift({
|
|
1138
|
-
padding: 8,
|
|
1139
|
-
}),
|
|
1140
|
-
];
|
|
1141
|
-
const { x, y, placement } = await computePosition(this.targetEl, this.floatingEl, {
|
|
1142
|
-
placement: this.placement,
|
|
1143
|
-
middleware,
|
|
1144
|
-
strategy: 'fixed',
|
|
1145
|
-
});
|
|
1146
|
-
Object.assign(this.floatingEl.style, {
|
|
1147
|
-
left: `${x}px`,
|
|
1148
|
-
top: `${y}px`,
|
|
1149
|
-
zIndex: this.zIndex.toString(),
|
|
1150
|
-
});
|
|
1151
|
-
// Update arrow if enabled
|
|
1152
|
-
if (this.arrow) {
|
|
1153
|
-
this.updateArrow(placement);
|
|
1154
|
-
}
|
|
1155
|
-
}
|
|
1156
|
-
updateArrow(placement) {
|
|
1157
|
-
var _a;
|
|
1158
|
-
const arrow = (_a = this.floatingEl) === null || _a === void 0 ? void 0 : _a.querySelector('.floating-arrow');
|
|
1159
|
-
if (!arrow)
|
|
1160
|
-
return;
|
|
1161
|
-
// Remove all arrow classes
|
|
1162
|
-
arrow.className = 'floating-arrow';
|
|
1163
|
-
// Add placement-specific class
|
|
1164
|
-
const side = placement.split('-')[0];
|
|
1165
|
-
arrow.classList.add(`arrow-${side}`);
|
|
1166
|
-
}
|
|
1167
|
-
async show() {
|
|
1168
|
-
if (this.disabled || this.isVisible)
|
|
1169
|
-
return;
|
|
1170
|
-
this.bcmShow.emit();
|
|
1171
|
-
// Portalling: Move the floating element to the body
|
|
1172
|
-
if (this.appendToBody && this.floatingEl) {
|
|
1173
|
-
this.originalParent = this.floatingEl.parentNode;
|
|
1174
|
-
this.originalNextSibling = this.floatingEl.nextSibling;
|
|
1175
|
-
document.body.appendChild(this.floatingEl);
|
|
1176
|
-
}
|
|
1177
|
-
this.isVisible = true;
|
|
1178
|
-
// Use requestAnimationFrame to ensure the element is visible before positioning
|
|
1179
|
-
await new Promise(resolve => requestAnimationFrame(resolve));
|
|
1180
|
-
await this.updatePosition();
|
|
1181
|
-
}
|
|
1182
|
-
async hide() {
|
|
1183
|
-
if (!this.isVisible)
|
|
1184
|
-
return;
|
|
1185
|
-
this.bcmHide.emit();
|
|
1186
|
-
this.isVisible = false;
|
|
1187
|
-
// Portalling: Restore the floating element to its original position
|
|
1188
|
-
if (this.appendToBody && this.floatingEl && this.originalParent) {
|
|
1189
|
-
if (this.originalNextSibling) {
|
|
1190
|
-
this.originalParent.insertBefore(this.floatingEl, this.originalNextSibling);
|
|
1191
|
-
}
|
|
1192
|
-
else {
|
|
1193
|
-
this.originalParent.appendChild(this.floatingEl);
|
|
1194
|
-
}
|
|
1195
|
-
this.originalParent = undefined;
|
|
1196
|
-
this.originalNextSibling = undefined;
|
|
1197
|
-
}
|
|
1198
|
-
if (this.destroyOnHide && this.floatingEl && this.floatingEl.parentNode) {
|
|
1199
|
-
this.floatingEl.parentNode.removeChild(this.floatingEl);
|
|
1200
|
-
}
|
|
1201
|
-
}
|
|
1202
|
-
async toggle() {
|
|
1203
|
-
if (this.isVisible) {
|
|
1204
|
-
await this.hide();
|
|
1205
|
-
}
|
|
1206
|
-
else {
|
|
1207
|
-
await this.show();
|
|
1208
|
-
}
|
|
1209
|
-
}
|
|
1210
|
-
async updatePositioning() {
|
|
1211
|
-
await this.updatePosition();
|
|
1212
|
-
}
|
|
1213
|
-
setupFloatingObserver() {
|
|
1214
|
-
if (!this.floatingEl)
|
|
1215
|
-
return;
|
|
1216
|
-
// Observe floating element size changes for position updates
|
|
1217
|
-
this.resizeObserver = new ResizeObserver(() => {
|
|
1218
|
-
if (this.isVisible) {
|
|
1219
|
-
this.updatePosition();
|
|
1220
|
-
}
|
|
1221
|
-
});
|
|
1222
|
-
this.resizeObserver.observe(this.floatingEl);
|
|
1223
|
-
}
|
|
1224
|
-
render() {
|
|
1225
|
-
const floatingClasses = {
|
|
1226
|
-
'floating-content': true,
|
|
1227
|
-
'floating-visible': this.isVisible,
|
|
1228
|
-
'floating-hidden': !this.isVisible,
|
|
1229
|
-
'floating-with-arrow': this.arrow,
|
|
1230
|
-
'floating-destroy-on-hide': this.destroyOnHide,
|
|
1231
|
-
};
|
|
1232
|
-
return (h(Host, { key: 'f5835cc1b6044476e66402d23a3becf18d3f2049' }, h("div", { key: '2c7f92bbe85bc938a767734ef4b27702247fb390', class: floatingClasses, style: {
|
|
1233
|
-
position: 'fixed',
|
|
1234
|
-
top: '0px',
|
|
1235
|
-
left: '0px',
|
|
1236
|
-
zIndex: this.zIndex.toString(),
|
|
1237
|
-
display: this.isVisible ? 'block' : 'none',
|
|
1238
|
-
visibility: this.isVisible ? 'visible' : 'hidden',
|
|
1239
|
-
opacity: this.isVisible ? '1' : '0',
|
|
1240
|
-
pointerEvents: this.isVisible ? 'auto' : 'none',
|
|
1241
|
-
} }, this.arrow && h("div", { key: 'f6eedac02b29b3ca00a9a84eea940ac89089f30c', class: "floating-arrow" }), h("div", { key: '7cb19f085de1d77a41fd9897be90999e78a0a54d', class: "floating-wrapper" }, h("slot", { key: 'a4b4289642850e3c2f7f27771b3d28bc41c8248a' }))), h("div", { key: '61cd7af9a4a47c87c308e1e67f96efb987c97312', style: { display: 'none' } }, h("slot", { key: '7160df275f5c7c66733158f95266598d0d207a17', name: "fallback" }))));
|
|
1242
|
-
}
|
|
1243
|
-
get host() { return getElement(this); }
|
|
1244
|
-
static get watchers() { return {
|
|
1245
|
-
"targetId": ["setupTarget"],
|
|
1246
|
-
"targetElement": ["setupTarget"],
|
|
1247
|
-
"isVisible": ["onVisibilityChange"]
|
|
1248
|
-
}; }
|
|
1249
|
-
};
|
|
1250
|
-
BcmLinked.style = BcmLinkedStyle0;
|
|
1251
|
-
|
|
1252
|
-
const shortcutCss = ":host{display:inline-block}.bcm-ui-element{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-family:Inter,sans-serif}.static{position:static}.block{display:block}.h-fit{height:fit-content}.w-fit{width:fit-content}.rounded{border-radius:var(--bcm-ui-border-radius-default,6px)}.border{border-width:1px}.border-solid{border-style:solid}.border-color-default{border-color:var(--bcm-ui-color-border-default)}.bg-color-default{background-color:var(--bcm-ui-color-background-default-default)}.px-1{padding-left:.25rem;padding-right:.25rem}.text-center{text-align:center}.text-size-2{font-size:var(--bcm-ui-font-size-2,10px);line-height:var(--bcm-ui-line-height-2,12px)}.text-size-3{font-size:var(--bcm-ui-font-size-3,12px);line-height:var(--bcm-ui-line-height-3,16px)}.text-size-4{font-size:var(--bcm-ui-font-size-4,14px);line-height:var(--bcm-ui-line-height-4,20px)}.font-medium{font-weight:500}.capitalize{text-transform:capitalize}.text-color-default{color:var(--bcm-ui-color-text-default)}.shadow{--tw-shadow:var(--bcm-ui-box-shadow-default);--tw-shadow-colored:var(--bcm-ui-box-shadow-default);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}";
|
|
1253
|
-
const BcmShortcutStyle0 = shortcutCss;
|
|
1254
|
-
|
|
1255
|
-
const osKeys = {
|
|
1256
|
-
ctrl: '⌘',
|
|
1257
|
-
alt: '⌥',
|
|
1258
|
-
shift: '⇧',
|
|
1259
|
-
del: '⌫',
|
|
1260
|
-
delete: '⌫',
|
|
1261
|
-
backspace: '⌦',
|
|
1262
|
-
enter: '⏎',
|
|
1263
|
-
return: '⏎',
|
|
1264
|
-
};
|
|
1265
|
-
const BcmShortcut = class {
|
|
1266
|
-
constructor(hostRef) {
|
|
1267
|
-
registerInstance(this, hostRef);
|
|
1268
|
-
this.size = 'small';
|
|
1269
|
-
this.isMac = /Mac/.test(window.navigator.userAgent);
|
|
1270
|
-
}
|
|
1271
|
-
getHotkey(key) {
|
|
1272
|
-
if (!key) {
|
|
1273
|
-
return '';
|
|
1274
|
-
}
|
|
1275
|
-
if (this.isMac && (key.includes(' ') || key.includes('+'))) {
|
|
1276
|
-
const keys = key.split(/[\s+]+/);
|
|
1277
|
-
return keys.map(k => osKeys[k] || k).join('');
|
|
1278
|
-
}
|
|
1279
|
-
else {
|
|
1280
|
-
return key;
|
|
1281
|
-
}
|
|
1282
|
-
}
|
|
1283
|
-
render() {
|
|
1284
|
-
const { size, hotkey } = this;
|
|
1285
|
-
return (h("div", { key: '007588d1d20941ead644a3d1fd72410cb6793ff5', class: classNames('bcm-ui-element bcm-ui-content-display', 'block h-fit w-fit rounded border border-solid px-1', 'border-color-default bg-color-default text-color-default', 'text-center font-medium capitalize', {
|
|
1286
|
-
'text-size-2': size === 'small',
|
|
1287
|
-
'text-size-3': size === 'medium',
|
|
1288
|
-
'text-size-4': size === 'large',
|
|
1289
|
-
}) }, this.getHotkey(hotkey)));
|
|
1290
|
-
}
|
|
1291
|
-
};
|
|
1292
|
-
BcmShortcut.style = BcmShortcutStyle0;
|
|
1293
|
-
|
|
1294
|
-
const variantTagMap = {
|
|
1295
|
-
display: 'h1',
|
|
1296
|
-
heading1: 'h2',
|
|
1297
|
-
heading2: 'h3',
|
|
1298
|
-
title1: 'h4',
|
|
1299
|
-
title2: 'h5',
|
|
1300
|
-
title3: 'h6',
|
|
1301
|
-
body: 'p',
|
|
1302
|
-
bodyAccent: 'p',
|
|
1303
|
-
helper: 'p',
|
|
1304
|
-
caption: 'p',
|
|
1305
|
-
label: 'label',
|
|
1306
|
-
placeholder: 'p',
|
|
1307
|
-
link: 'a',
|
|
1308
|
-
info: 'p',
|
|
1309
|
-
infoAccent: 'p',
|
|
1310
|
-
};
|
|
1311
|
-
|
|
1312
|
-
const textCss = ".static{position:static}.m-0{margin:0}.appearance-none{appearance:none}.truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.p-0{padding:0}.text-size-12{font-size:var(--bcm-ui-font-size-12,60px);line-height:var(--bcm-ui-line-height-12,72px)}.text-size-3{font-size:var(--bcm-ui-font-size-3,12px);line-height:var(--bcm-ui-line-height-3,16px)}.text-size-4{font-size:var(--bcm-ui-font-size-4,14px);line-height:var(--bcm-ui-line-height-4,20px)}.text-size-5{font-size:var(--bcm-ui-font-size-5,16px);line-height:var(--bcm-ui-line-height-5,24px)}.text-size-6{font-size:var(--bcm-ui-font-size-6,18px);line-height:var(--bcm-ui-line-height-6,24px)}.text-size-7{font-size:var(--bcm-ui-font-size-7,20px);line-height:var(--bcm-ui-line-height-7,28px)}.font-medium{font-weight:500}.font-semibold{font-weight:600}.text-color-caption{color:var(--bcm-ui-color-text-caption)}.text-color-default{color:var(--bcm-ui-color-text-default)}.text-color-disabled{color:var(--bcm-ui-color-text-disabled)}.text-color-header{color:var(--bcm-ui-color-text-header)}.text-color-helper{color:var(--bcm-ui-color-text-helper)}.text-color-label{color:var(--bcm-ui-color-text-label)}.text-color-placeholder{color:var(--bcm-ui-color-text-placeholder)}.text-color-primary{color:var(--bcm-ui-color-text-primary)}.underline{text-decoration-line:underline}.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)}";
|
|
1313
|
-
const BcmTextStyle0 = textCss;
|
|
1314
|
-
|
|
1315
|
-
const BcmText = class {
|
|
1316
|
-
constructor(hostRef) {
|
|
1317
|
-
registerInstance(this, hostRef);
|
|
1318
|
-
/** Text variant */
|
|
1319
|
-
this.variant = 'body';
|
|
1320
|
-
/** Text size */
|
|
1321
|
-
this.size = 'medium';
|
|
1322
|
-
/** Text overflow behavior */
|
|
1323
|
-
this.overflow = false;
|
|
1324
|
-
this.variantClassMap = {
|
|
1325
|
-
display: 'font-semibold text-size-12 text-color-header',
|
|
1326
|
-
heading1: 'font-semibold text-size-7 text-color-header',
|
|
1327
|
-
heading2: 'font-semibold text-size-6 text-color-header',
|
|
1328
|
-
title1: {
|
|
1329
|
-
small: 'font-semibold text-size-5 text-color-header',
|
|
1330
|
-
medium: 'font-semibold text-size-6 text-color-header',
|
|
1331
|
-
large: 'font-semibold text-size-7 text-color-header',
|
|
1332
|
-
},
|
|
1333
|
-
title2: {
|
|
1334
|
-
small: 'font-semibold text-size-4 text-color-default',
|
|
1335
|
-
medium: 'font-semibold text-size-5 text-color-default',
|
|
1336
|
-
large: 'font-semibold text-size-6 text-color-default',
|
|
1337
|
-
},
|
|
1338
|
-
title3: {
|
|
1339
|
-
small: 'font-semibold text-size-3 text-color-disabled',
|
|
1340
|
-
medium: 'font-semibold text-size-4 text-color-disabled',
|
|
1341
|
-
large: 'font-semibold text-size-5 text-color-disabled',
|
|
1342
|
-
},
|
|
1343
|
-
body: {
|
|
1344
|
-
small: 'font-regular text-size-4 text-color-default',
|
|
1345
|
-
medium: 'font-regular text-size-5 text-color-default',
|
|
1346
|
-
large: 'font-regular text-size-6 text-color-default',
|
|
1347
|
-
},
|
|
1348
|
-
bodyAccent: {
|
|
1349
|
-
small: 'font-medium text-size-4 text-color-default',
|
|
1350
|
-
medium: 'font-medium text-size-5 text-color-default',
|
|
1351
|
-
large: 'font-medium text-size-6 text-color-default',
|
|
1352
|
-
},
|
|
1353
|
-
helper: {
|
|
1354
|
-
small: 'font-regular text-size-4 text-color-helper',
|
|
1355
|
-
medium: 'font-regular text-size-5 text-color-helper',
|
|
1356
|
-
large: 'font-regular text-size-6 text-color-helper',
|
|
1357
|
-
},
|
|
1358
|
-
caption: {
|
|
1359
|
-
small: 'font-regular text-size-3 text-color-caption',
|
|
1360
|
-
medium: 'font-regular text-size-4 text-color-caption',
|
|
1361
|
-
large: 'font-regular text-size-5 text-color-caption',
|
|
1362
|
-
},
|
|
1363
|
-
link: {
|
|
1364
|
-
small: 'font-medium text-size-4 underline text-color-primary',
|
|
1365
|
-
medium: 'font-medium text-size-5 underline text-color-primary',
|
|
1366
|
-
large: 'font-medium text-size-6 underline text-color-primary',
|
|
1367
|
-
},
|
|
1368
|
-
label: {
|
|
1369
|
-
small: 'font-medium text-size-3 text-color-label',
|
|
1370
|
-
medium: 'font-medium text-size-4 text-color-label',
|
|
1371
|
-
large: 'font-medium text-size-5 text-color-label',
|
|
1372
|
-
},
|
|
1373
|
-
placeholder: {
|
|
1374
|
-
small: 'font-regular text-size-4 text-color-placeholder',
|
|
1375
|
-
medium: 'font-regular text-size-5 text-color-placeholder',
|
|
1376
|
-
large: 'font-regular text-size-6 text-color-placeholder',
|
|
1377
|
-
},
|
|
1378
|
-
info: {
|
|
1379
|
-
small: 'font-regular text-size-3 text-color-default',
|
|
1380
|
-
medium: 'font-regular text-size-4 text-color-default',
|
|
1381
|
-
large: 'font-regular text-size-5 text-color-default',
|
|
1382
|
-
},
|
|
1383
|
-
infoAccent: {
|
|
1384
|
-
small: 'font-medium text-size-3 text-color-header',
|
|
1385
|
-
medium: 'font-medium text-size-4 text-color-header',
|
|
1386
|
-
large: 'font-medium text-size-5 text-color-header',
|
|
1387
|
-
},
|
|
1388
|
-
};
|
|
1389
|
-
this.getTextClass = (variant, size) => {
|
|
1390
|
-
const variantClasses = this.variantClassMap[variant];
|
|
1391
|
-
if (typeof variantClasses === 'string') {
|
|
1392
|
-
return variantClasses;
|
|
1393
|
-
}
|
|
1394
|
-
return variantClasses[size];
|
|
1395
|
-
};
|
|
1396
|
-
this.getOverflowClass = (overflow) => {
|
|
1397
|
-
return overflow ? 'truncate' : '';
|
|
1398
|
-
};
|
|
1399
|
-
}
|
|
1400
|
-
render() {
|
|
1401
|
-
var _a;
|
|
1402
|
-
const Tag = variantTagMap[this.variant];
|
|
1403
|
-
const variantClass = this.getTextClass(this.variant, this.size);
|
|
1404
|
-
const overflowClass = this.getOverflowClass((_a = this.overflow) !== null && _a !== void 0 ? _a : false);
|
|
1405
|
-
return (h(Tag, { key: '152d737752eea962ac3c5086011da69578ef0920', class: classNames('bcm-text appearance-none m-0 p-0', variantClass, overflowClass), part: "text" }, h("slot", { key: 'e8c8c89a5925936a2e22a75265b7f42317eab983' }, this.text)));
|
|
1406
|
-
}
|
|
1407
|
-
};
|
|
1408
|
-
BcmText.style = BcmTextStyle0;
|
|
1409
|
-
|
|
1410
|
-
export { BcmButton as bcm_button, BcmDrawer as bcm_drawer, Dropdown as bcm_dropdown, DropdownItem as bcm_dropdown_item, BcmInput as bcm_input, BcmLinked as bcm_linked, BcmShortcut as bcm_shortcut, BcmText as bcm_text };
|
|
1411
|
-
|
|
1412
|
-
//# sourceMappingURL=bcm-button_8.entry.js.map
|