bromcom-ui 2.12.1-test.0 → 3.0.0-preview.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bromcom-ui/bromcom-ui.css +1 -1
- package/dist/bromcom-ui/bromcom-ui.esm.js +1 -1
- package/dist/bromcom-ui/p-0125212b.entry.js +5 -0
- package/dist/bromcom-ui/{p-58c0a1f5.js → p-014f7aa2.js} +1 -1
- package/dist/bromcom-ui/{p-c54aaa8c.entry.js → p-0167c2cc.entry.js} +1 -1
- package/dist/bromcom-ui/p-033f2926.entry.js +5 -0
- package/dist/bromcom-ui/{p-7d18ce0e.entry.js → p-0c494f44.entry.js} +1 -1
- package/dist/bromcom-ui/{p-daeb868a.js → p-0e65fd54.js} +1 -1
- package/dist/bromcom-ui/p-14ed2c86.js +5 -0
- package/dist/bromcom-ui/{p-7c5763cc.entry.js → p-1ca7e1a1.entry.js} +1 -1
- package/dist/bromcom-ui/{p-053dc717.entry.js → p-1d577d30.entry.js} +1 -1
- package/dist/bromcom-ui/p-2032843f.entry.js +5 -0
- package/dist/bromcom-ui/{p-2aaeb247.entry.js → p-23c01e93.entry.js} +1 -1
- package/dist/bromcom-ui/p-2663c49f.entry.js +5 -0
- package/dist/bromcom-ui/{p-bdc78a44.entry.js → p-2903e611.entry.js} +1 -1
- package/dist/bromcom-ui/p-2ecb8899.entry.js +5 -0
- package/dist/bromcom-ui/p-31368d21.entry.js +5 -0
- package/dist/bromcom-ui/{p-c02d4055.entry.js → p-370b6020.entry.js} +1 -1
- package/dist/bromcom-ui/{p-9850cbce.js → p-397c1438.js} +1 -1
- package/dist/bromcom-ui/p-3a944947.entry.js +5 -0
- package/dist/bromcom-ui/{p-cebe6c15.entry.js → p-3aa7e1ce.entry.js} +1 -1
- package/dist/bromcom-ui/p-3db88841.entry.js +5 -0
- package/dist/bromcom-ui/{p-c99dbd93.entry.js → p-3f4d5368.entry.js} +1 -1
- package/dist/bromcom-ui/{p-3a60a194.js → p-403d3912.js} +1 -1
- package/dist/bromcom-ui/p-40871628.js +5 -0
- package/dist/bromcom-ui/p-4254234c.entry.js +5 -0
- package/dist/bromcom-ui/p-42a7244e.entry.js +5 -0
- package/dist/bromcom-ui/p-4c5168fe.js +5 -0
- package/dist/bromcom-ui/{p-69260d36.entry.js → p-51341d24.entry.js} +1 -1
- package/dist/bromcom-ui/{p-0bda558d.js → p-588ba8fc.js} +1 -1
- package/dist/bromcom-ui/{p-d73d6a2f.entry.js → p-58fa6ecf.entry.js} +1 -1
- package/dist/bromcom-ui/p-5a65b538.js +5 -0
- package/dist/bromcom-ui/p-5f74f707.js +5 -0
- package/dist/bromcom-ui/{p-35f2e15a.js → p-5fbbf611.js} +1 -1
- package/dist/bromcom-ui/p-66d74084.js +5 -0
- package/dist/bromcom-ui/p-74912375.js +5 -0
- package/dist/bromcom-ui/p-7fa410eb.entry.js +5 -0
- package/dist/bromcom-ui/{p-626b805d.entry.js → p-87291a4f.entry.js} +1 -1
- package/dist/bromcom-ui/p-8d2e1aea.entry.js +5 -0
- package/dist/bromcom-ui/p-9acc7a1c.entry.js +5 -0
- package/dist/bromcom-ui/p-9f913f3e.entry.js +5 -0
- package/dist/bromcom-ui/{p-e82dab5a.entry.js → p-a02650af.entry.js} +1 -1
- package/dist/bromcom-ui/p-aa370552.js +5 -0
- package/dist/bromcom-ui/{p-7c223356.entry.js → p-ac200139.entry.js} +1 -1
- package/dist/bromcom-ui/p-afe35470.entry.js +16 -0
- package/dist/bromcom-ui/p-affe097a.entry.js +5 -0
- package/dist/bromcom-ui/{p-79d5c3d8.entry.js → p-b702f1e5.entry.js} +1 -1
- package/dist/bromcom-ui/p-bc6ecf66.entry.js +5 -0
- package/dist/bromcom-ui/{p-313b7bb0.entry.js → p-bdda1f76.entry.js} +1 -1
- package/dist/bromcom-ui/p-bde34843.entry.js +5 -0
- package/dist/bromcom-ui/{p-f0e30624.entry.js → p-c187994f.entry.js} +1 -1
- package/dist/bromcom-ui/p-cc583dbc.js +5 -0
- package/dist/bromcom-ui/p-ccc61045.js +5 -0
- package/dist/bromcom-ui/{p-67343ad8.entry.js → p-cd12ef44.entry.js} +1 -1
- package/dist/bromcom-ui/p-cf164584.js +5 -0
- package/dist/bromcom-ui/{p-594a57c3.entry.js → p-cfb0bdbe.entry.js} +1 -1
- package/dist/bromcom-ui/{p-d551a51d.entry.js → p-dc23865f.entry.js} +1 -1
- package/dist/bromcom-ui/p-ddf90943.entry.js +5 -0
- package/dist/bromcom-ui/{p-170cf07d.js → p-e3ce7150.js} +2 -2
- package/dist/bromcom-ui/p-e45072df.entry.js +5 -0
- package/dist/bromcom-ui/p-e747137c.entry.js +5 -0
- package/dist/bromcom-ui/{p-ba9eff2a.entry.js → p-e8f7282a.entry.js} +1 -1
- package/dist/bromcom-ui/{p-1c9314bd.entry.js → p-e9672b15.entry.js} +1 -1
- package/dist/bromcom-ui/p-ef34f278.entry.js +5 -0
- package/dist/bromcom-ui/{p-11a5ae6d.entry.js → p-ef84ca66.entry.js} +1 -1
- package/dist/bromcom-ui/{p-1c7ea00b.entry.js → p-ef8636fe.entry.js} +1 -1
- package/dist/bromcom-ui/p-f530cf23.js +5 -0
- package/dist/bromcom-ui/{p-5dea2654.entry.js → p-f65dae79.entry.js} +1 -1
- package/dist/bromcom-ui/p-f68a946f.js +5 -0
- package/dist/bromcom-ui/p-f9e5528f.entry.js +5 -0
- package/dist/bromcom-ui/{p-1bdfc73a.entry.js → p-fa1eae97.entry.js} +1 -1
- package/dist/bromcom-ui/{p-1c801d0c.entry.js → p-fb083e20.entry.js} +1 -1
- package/dist/bromcom-ui/p-fb490a1f.entry.js +5 -0
- package/dist/cjs/{bcm-1d1fcf21.js → bcm-51d38d17.js} +7 -1
- package/dist/cjs/{bcm-accordion_63.cjs.entry.js → bcm-accordion_68.cjs.entry.js} +2641 -1319
- package/dist/cjs/bcm-alert.cjs.entry.js +89 -75
- package/dist/cjs/bcm-arrow.cjs.entry.js +34 -0
- package/dist/cjs/bcm-attendance-actions-comment.cjs.entry.js +10 -9
- package/dist/cjs/bcm-attendance-actions-dropdown.cjs.entry.js +10 -9
- package/dist/cjs/bcm-autocomplete.cjs.entry.js +1 -1
- package/dist/cjs/bcm-box.cjs.entry.js +1 -1
- package/dist/cjs/bcm-breadcrumb.cjs.entry.js +3 -3
- package/dist/cjs/bcm-caption.cjs.entry.js +10 -9
- package/dist/cjs/bcm-card.cjs.entry.js +6 -6
- package/dist/cjs/bcm-chip-group.cjs.entry.js +15 -19
- package/dist/cjs/bcm-colorpicker.cjs.entry.js +1 -1
- package/dist/cjs/bcm-content.cjs.entry.js +1 -1
- package/dist/cjs/bcm-date-picker.cjs.entry.js +5 -5
- package/dist/cjs/bcm-datetime-picker.cjs.entry.js +9 -9
- package/dist/cjs/bcm-default.cjs.entry.js +3 -3
- package/dist/cjs/bcm-error-layout.cjs.entry.js +1 -1
- package/dist/cjs/bcm-form-2.cjs.entry.js +6 -6
- package/dist/cjs/bcm-form-group.cjs.entry.js +1 -1
- package/dist/cjs/bcm-input-custom.cjs.entry.js +3 -3
- package/dist/cjs/bcm-input-dropdown.cjs.entry.js +10 -10
- package/dist/cjs/bcm-message.cjs.entry.js +1 -1
- package/dist/cjs/bcm-modal-2-footer.cjs.entry.js +8 -7
- package/dist/cjs/bcm-modal-2-header.cjs.entry.js +8 -7
- package/dist/cjs/bcm-modal-2.cjs.entry.js +8 -7
- package/dist/cjs/bcm-notification.cjs.entry.js +1 -1
- package/dist/cjs/bcm-number-input.cjs.entry.js +12 -12
- package/dist/cjs/bcm-overlay_2.cjs.entry.js +1 -1
- package/dist/cjs/bcm-popconfirm-box-v2.cjs.entry.js +109 -0
- package/dist/cjs/bcm-popconfirm-host.cjs.entry.js +135 -0
- package/dist/cjs/bcm-range.cjs.entry.js +4 -4
- package/dist/cjs/bcm-react-number.cjs.entry.js +1 -1
- package/dist/cjs/bcm-resizable-pane.cjs.entry.js +42 -0
- package/dist/cjs/bcm-result-footer.cjs.entry.js +39 -0
- package/dist/cjs/bcm-result.cjs.entry.js +16 -47
- package/dist/cjs/bcm-segment-picker-item.cjs.entry.js +33 -0
- package/dist/cjs/bcm-segment-picker.cjs.entry.js +67 -0
- package/dist/cjs/bcm-select-group.cjs.entry.js +1 -1
- package/dist/cjs/bcm-select-option.cjs.entry.js +1 -1
- package/dist/cjs/bcm-skeleton.cjs.entry.js +8 -8
- package/dist/cjs/bcm-tab-pane.cjs.entry.js +1 -1
- package/dist/cjs/bcm-table.cjs.entry.js +9 -8
- package/dist/cjs/bcm-tabs-content.cjs.entry.js +1 -1
- package/dist/cjs/bcm-tag.cjs.entry.js +5 -5
- package/dist/cjs/bcm-time-picker.cjs.entry.js +5 -5
- package/dist/cjs/bcm-timeline-item.cjs.entry.js +1 -1
- package/dist/cjs/bcm-timeline.cjs.entry.js +1 -1
- package/dist/cjs/bcm-toast.cjs.entry.js +198 -42
- package/dist/cjs/bcm-treeview-group.cjs.entry.js +1 -1
- package/dist/cjs/bromcom-ui.cjs.js +4 -4
- package/dist/cjs/{caption-template-85a18b6d.js → caption-template-1ba40085.js} +10 -10
- package/dist/cjs/floating-ui-4c31473e.js +101 -0
- package/dist/{esm/floating-ui-3f4394da.js → cjs/floating-ui.dom.esm-f0638c44.js} +8 -93
- package/dist/cjs/{generate-7510539d.js → generate-eda14f12.js} +13 -36
- package/dist/cjs/{global-711c589c.js → global-971b32f6.js} +2 -2
- package/dist/cjs/{index-c591ecec.js → index-bb6ac306.js} +3 -0
- package/dist/cjs/{index-5279dea2.js → index-d3b89435.js} +386 -347
- package/dist/cjs/{input.style-b5676e6a.js → input.style-3e8b7803.js} +16 -15
- package/dist/cjs/{is-load-decorator-15036f37.js → is-load-decorator-60805e8b.js} +1 -1
- package/dist/cjs/{label-template-e83447b5.js → label-template-540044c9.js} +8 -7
- package/dist/cjs/loader.cjs.js +4 -4
- package/dist/cjs/{number-helper-9d2d1d5a.js → number-helper-d14c9546.js} +1 -1
- package/dist/cjs/old-bcm-popover-box.cjs.entry.js +10 -9
- package/dist/cjs/old-bcm-popover.cjs.entry.js +4 -4
- package/dist/cjs/{package-a60955f7.js → package-f644e6eb.js} +1 -1
- package/dist/cjs/{popover-placement-d1aa81f0.js → popover-placement-3c0ad75e.js} +1 -1
- package/dist/cjs/popover.style-e390b5a1.js +108 -0
- package/dist/cjs/result.style-f58d0ac4.js +56 -0
- package/dist/cjs/segment-picker.style-ce057603.js +55 -0
- package/dist/cjs/{slot-template-29229e8f.js → slot-template-d02ae4e4.js} +2 -2
- package/dist/cjs/{string-helper-1ee6dc21.js → string-helper-cc89c9d6.js} +1 -1
- package/dist/cjs/types-e4c4d1b2.js +175 -0
- package/dist/collection/collection-manifest.json +15 -5
- package/dist/collection/components/atoms/{chip/chip-group.css → avatar/avatar.css} +4 -2
- package/dist/collection/components/atoms/avatar/avatar.js +13 -3
- package/dist/collection/components/atoms/avatar/avatar.style.js +6 -6
- package/dist/collection/components/atoms/{icon/icon.css → badge/badge.css} +3 -2
- package/dist/collection/components/atoms/badge/badge.js +10 -0
- package/dist/collection/components/atoms/badge/badge.style.js +10 -10
- package/dist/collection/components/atoms/button/button.css +11 -332
- package/dist/collection/components/atoms/button/button.js +429 -241
- package/dist/collection/components/atoms/button/button.style.js +89 -0
- package/dist/collection/components/atoms/chip/chip-group.js +2 -14
- package/dist/collection/components/atoms/chip/chip.css +11 -87
- package/dist/collection/components/atoms/chip/chip.js +84 -45
- package/dist/collection/components/atoms/chip/chip.style.js +99 -0
- package/dist/collection/components/atoms/divider/divider.js +7 -38
- package/dist/collection/components/atoms/divider/divider.style.js +19 -0
- package/dist/collection/components/atoms/icon/icon.js +14 -37
- package/dist/collection/components/atoms/label/label.js +21 -2
- package/dist/collection/components/atoms/link/link.js +132 -58
- package/dist/collection/components/atoms/link/link.style.js +39 -0
- package/dist/collection/components/molecules/accordion/accordion.js +3 -13
- package/dist/collection/components/molecules/alert/alert.js +118 -137
- package/dist/collection/components/molecules/alert/alert.style.js +65 -0
- package/dist/collection/components/molecules/checkbox/checkbox.css +10 -317
- package/dist/collection/components/molecules/checkbox/checkbox.js +119 -142
- package/dist/collection/components/molecules/checkbox/checkbox.style.js +156 -0
- package/dist/collection/components/molecules/{checkbox/group.js → checkbox-group/checkbox-group.js} +23 -40
- package/dist/collection/components/molecules/checkbox-group/checkbox-group.style.js +40 -0
- package/dist/collection/components/molecules/color-input/color-input.js +3 -1
- package/dist/collection/components/molecules/color-input/color-input.style.js +17 -0
- package/dist/collection/components/molecules/drawer/drawer.css +0 -81
- package/dist/collection/components/molecules/drawer/drawer.js +7 -13
- package/dist/collection/components/molecules/drawer/drawer.style.js +55 -0
- package/dist/collection/components/molecules/dropdown/dropdown.js +13 -7
- package/dist/collection/components/molecules/empty/empty.js +91 -3
- package/dist/collection/components/molecules/empty/empty.style.js +64 -0
- package/dist/collection/components/molecules/expansion-panel/bcm-expansion-panel-description.js +16 -0
- package/dist/collection/components/molecules/expansion-panel/bcm-expansion-panel-extra.js +16 -0
- package/dist/collection/components/molecules/expansion-panel/bcm-expansion-panel-header.js +16 -0
- package/dist/collection/components/molecules/expansion-panel/expansion-panel.js +91 -57
- package/dist/collection/components/molecules/expansion-panel/expansion-panel.style.js +91 -0
- package/dist/collection/components/molecules/input/input.js +78 -66
- package/dist/collection/components/molecules/input/input.style.js +15 -14
- package/dist/collection/components/molecules/menu/menu.js +14 -0
- package/dist/collection/components/molecules/modal/modal-footer.js +41 -0
- package/dist/collection/components/molecules/modal/modal-header.js +39 -0
- package/dist/collection/components/molecules/modal/modal.css +1 -139
- package/dist/collection/components/molecules/modal/modal.js +9 -16
- package/dist/collection/components/molecules/modal/modal.style.js +111 -0
- package/dist/collection/components/molecules/number-input/number-input.js +1 -1
- package/dist/collection/components/molecules/number-input/react-input.js +1 -1
- package/dist/collection/components/molecules/popconfirm/popconfirm-box.css +22 -6
- package/dist/collection/components/molecules/popconfirm/popconfirm-box.js +11 -9
- package/dist/collection/components/molecules/popconfirm-v2/pop-confirm-host.js +309 -0
- package/dist/collection/components/molecules/popconfirm-v2/popconf.style.js +57 -0
- package/dist/collection/components/molecules/popconfirm-v2/popconfirm-v2.js +201 -0
- package/dist/collection/components/molecules/popover/popover.js +3 -1
- package/dist/collection/components/molecules/popover/popover.style.js +42 -0
- package/dist/collection/components/molecules/radio/radio-group.js +6 -2
- package/dist/collection/components/molecules/radio/radio-group.style.js +37 -0
- package/dist/collection/components/{atoms/divider/divider.css → molecules/radio/radio.css} +9 -17
- package/dist/collection/components/molecules/radio/radio.js +21 -22
- package/dist/collection/components/molecules/radio/radio.style.js +67 -0
- package/dist/collection/components/molecules/result/result-footer.js +41 -0
- package/dist/collection/components/molecules/result/result.js +36 -65
- package/dist/collection/components/molecules/result/result.style.js +51 -0
- package/dist/collection/components/molecules/search/search.js +10 -13
- package/dist/collection/components/molecules/stepper/stepper.css +41 -35
- package/dist/collection/components/molecules/switch/switch.js +11 -24
- package/dist/collection/components/molecules/switch/switch.style.js +182 -0
- package/dist/collection/components/molecules/tab-group/tab-group.js +3 -28
- package/dist/collection/components/molecules/tab-group/tab-group.syle.js +63 -0
- package/dist/collection/components/molecules/tab-group/tab-item-header.js +7 -32
- package/dist/collection/components/molecules/tab-group/tab-item.js +7 -6
- package/dist/collection/components/molecules/textarea/textarea.js +55 -44
- package/dist/collection/components/molecules/textarea/textarea.style.js +122 -0
- package/dist/collection/components/molecules/tooltip/tooltip.js +5 -3
- package/dist/collection/components/molecules/tooltip/tooltip.style.js +38 -0
- package/dist/collection/components/organism/datetime-picker/datetime-picker.css +20 -20
- package/dist/collection/components/organism/list/list.css +73 -324
- package/dist/collection/components/organism/list/list.js +2 -2
- package/dist/collection/components/{molecules/checkbox/group.css → other/arrow/arrow.css} +24 -31
- package/dist/collection/components/other/arrow/arrow.js +70 -0
- package/dist/collection/components/other/resizable-pane/resizable-pane.js +79 -0
- package/dist/collection/components/other/segment-picker/segment-picker-item.js +158 -0
- package/dist/collection/components/other/segment-picker/segment-picker.js +252 -0
- package/dist/collection/components/other/segment-picker/segment-picker.style.js +50 -0
- package/dist/collection/components/other/shortcut/shortcut.js +12 -6
- package/dist/collection/components/other/shortcut/shortcut.style.js +38 -0
- package/dist/collection/components/other/toast/toast.js +15 -31
- package/dist/collection/components/other/toast/toast.style.js +176 -0
- package/dist/collection/components/other_deprecated/listbox/listbox-item.js +1 -1
- package/dist/collection/components/other_deprecated/listbox/listbox.js +1 -1
- package/dist/collection/components/other_deprecated/old-input/old-input.css +38 -24
- package/dist/collection/components/other_deprecated/old-input/old-input.js +4 -2
- package/dist/collection/components/other_deprecated/old-popover/old-popover-box.css +3 -2
- package/dist/collection/components/third-parts/colorful/colorful.css +0 -242
- package/dist/collection/components/third-parts/rc-picker/rc-picker.css +31 -27
- package/dist/collection/helper/generate.js +11 -16
- package/dist/collection/helper/index.js +1 -0
- package/dist/collection/helper/pop-confirm-helper.js +76 -0
- package/dist/collection/helper/popover-helper.js +8 -7
- package/dist/collection/helper/tooltip-helper.js +3 -15
- package/dist/collection/models/bcm.js +9 -1
- package/dist/collection/templates/caption-template.js +9 -9
- package/dist/collection/templates/checkbox-template.js +11 -16
- package/dist/collection/templates/icon-template.js +4 -19
- package/dist/collection/templates/info-footer-template.js +1 -1
- package/dist/collection/templates/label-template.js +6 -5
- package/dist/collection/templates/list-item-template.js +3 -2
- package/dist/collection/templates/step-template.js +1 -1
- package/dist/components/avatar.js +17 -20
- package/dist/components/badge.js +16 -13
- package/dist/components/bcm-accordion.js +3 -6
- package/dist/components/bcm-alert.js +99 -88
- package/dist/components/{bcm-input-2.d.ts → bcm-arrow.d.ts} +4 -4
- package/dist/components/bcm-arrow.js +47 -0
- package/dist/components/bcm-attendance-actions-comment.js +3 -3
- package/dist/components/bcm-attendance-actions-dropdown.js +3 -3
- package/dist/components/bcm-attendance-actions.js +3 -3
- package/dist/components/bcm-autocomplete.js +6 -12
- package/dist/components/bcm-button-group.js +1 -1
- package/dist/components/bcm-caption.js +3 -2
- package/dist/components/bcm-checkbox-group.js +62 -40
- package/dist/components/bcm-chip-group.js +6 -9
- package/dist/components/bcm-color-input.js +17 -2
- package/dist/components/bcm-date-picker.js +2 -2
- package/dist/components/bcm-date.js +3 -2
- package/dist/components/bcm-drawer.js +61 -29
- package/dist/components/bcm-dropdown.js +3 -3
- package/dist/components/bcm-expansion-panel-description.d.ts +11 -0
- package/dist/components/bcm-expansion-panel-description.js +36 -0
- package/dist/components/bcm-expansion-panel-extra.d.ts +11 -0
- package/dist/components/bcm-expansion-panel-extra.js +36 -0
- package/dist/components/bcm-expansion-panel-header.d.ts +11 -0
- package/dist/components/bcm-expansion-panel-header.js +36 -0
- package/dist/components/bcm-expansion-panel.js +118 -52
- package/dist/components/bcm-form-2.js +1 -1
- package/dist/components/bcm-input-dropdown.js +4 -3
- package/dist/components/bcm-item.js +1 -1
- package/dist/components/bcm-modal-2-footer.js +1 -1
- package/dist/components/bcm-modal-2-header.js +1 -1
- package/dist/components/bcm-modal-2.js +2 -2
- package/dist/components/bcm-modal-footer.d.ts +11 -0
- package/dist/components/bcm-modal-footer.js +47 -0
- package/dist/components/bcm-modal-header.d.ts +11 -0
- package/dist/components/bcm-modal-header.js +45 -0
- package/dist/components/bcm-modal.js +12 -25
- package/dist/components/bcm-number-input.js +4 -3
- package/dist/components/bcm-popconfirm-box-v2.d.ts +11 -0
- package/dist/components/bcm-popconfirm-box-v2.js +132 -0
- package/dist/components/bcm-popconfirm-host.d.ts +11 -0
- package/dist/components/bcm-popconfirm-host.js +158 -0
- package/dist/components/bcm-popconfirm.js +5 -17
- package/dist/components/bcm-popover.js +11 -10
- package/dist/components/bcm-progress.js +1 -1
- package/dist/components/bcm-radio-group.js +43 -4
- package/dist/components/bcm-range.js +1 -1
- package/dist/components/bcm-resizable-pane.d.ts +11 -0
- package/dist/components/bcm-resizable-pane.js +60 -0
- package/dist/components/{bcm-checkbox-lite.d.ts → bcm-result-footer.d.ts} +4 -4
- package/dist/components/bcm-result-footer.js +47 -0
- package/dist/components/bcm-result.js +20 -61
- package/dist/components/bcm-segment-picker-item.d.ts +11 -0
- package/dist/components/bcm-segment-picker-item.js +51 -0
- package/dist/components/bcm-segment-picker.d.ts +11 -0
- package/dist/components/bcm-segment-picker.js +87 -0
- package/dist/components/bcm-select.js +6 -12
- package/dist/components/bcm-shortcut.js +48 -8
- package/dist/components/bcm-stepper.js +5 -4
- package/dist/components/bcm-switch.js +189 -17
- package/dist/components/bcm-tab-group.js +5 -13
- package/dist/components/bcm-tab-item-header.js +9 -17
- package/dist/components/bcm-tab-item.js +8 -7
- package/dist/components/bcm-table.js +2 -1
- package/dist/components/bcm-tag.js +1 -1
- package/dist/components/bcm-time-picker.js +1 -1
- package/dist/components/bcm-toast.js +188 -32
- package/dist/components/bcm.js +8 -2
- package/dist/components/button.js +232 -184
- package/dist/components/caption-template.js +9 -9
- package/dist/components/checkbox.js +94 -104
- package/dist/components/checkbox.style.js +159 -0
- package/dist/components/chip.js +152 -40
- package/dist/components/colorful.js +1 -1
- package/dist/components/datetime-picker.js +3 -3
- package/dist/components/divider.js +21 -13
- package/dist/components/empty.js +75 -3
- package/dist/{cjs/floating-ui-5b396838.js → components/floating-ui.dom.esm.js} +1 -96
- package/dist/components/floating-ui.js +2 -1407
- package/dist/components/generate.js +14 -37
- package/dist/components/icon.js +14 -13
- package/dist/components/index.d.ts +14 -4
- package/dist/components/index.js +12 -2
- package/dist/components/index4.js +2590 -173
- package/dist/components/index5.js +171 -2549
- package/dist/components/input.js +77 -54
- package/dist/components/input.style.js +16 -15
- package/dist/components/label.js +12 -9
- package/dist/components/link.js +83 -39
- package/dist/components/linked.js +2 -2
- package/dist/components/list.js +28 -33
- package/dist/components/listbox-item.js +21 -9
- package/dist/components/listbox.js +7 -13
- package/dist/components/menu.js +15 -1
- package/dist/components/modal.style.js +114 -0
- package/dist/components/old-bcm-popover.js +1 -1
- package/dist/components/old-input.js +5 -3
- package/dist/components/old-popover-box.js +1 -1
- package/dist/components/popconfirm-box.js +12 -22
- package/dist/components/popover.style.js +108 -0
- package/dist/components/radio.js +79 -24
- package/dist/components/rc-overflow.js +1 -1
- package/dist/components/rc-picker.js +2 -2
- package/dist/components/result.style.js +54 -0
- package/dist/components/search.js +14 -16
- package/dist/components/segment-picker.style.js +53 -0
- package/dist/components/select-box.js +6 -12
- package/dist/components/skeleton.js +2 -2
- package/dist/components/step.js +1 -1
- package/dist/components/string-helper.js +1 -1
- package/dist/components/tab-group.syle.js +66 -0
- package/dist/components/textarea.js +152 -36
- package/dist/components/tooltip-helper.js +3 -16
- package/dist/components/tooltip.js +5 -4
- package/dist/esm/{bcm-a50d55ba.js → bcm-7f07539b.js} +7 -1
- package/dist/esm/{bcm-accordion_63.entry.js → bcm-accordion_68.entry.js} +2198 -881
- package/dist/esm/bcm-alert.entry.js +89 -75
- package/dist/esm/bcm-arrow.entry.js +30 -0
- package/dist/esm/bcm-attendance-actions-comment.entry.js +10 -9
- package/dist/esm/bcm-attendance-actions-dropdown.entry.js +10 -9
- package/dist/esm/bcm-autocomplete.entry.js +1 -1
- package/dist/esm/bcm-box.entry.js +1 -1
- package/dist/esm/bcm-breadcrumb.entry.js +3 -3
- package/dist/esm/bcm-caption.entry.js +10 -9
- package/dist/esm/bcm-card.entry.js +6 -6
- package/dist/esm/bcm-chip-group.entry.js +15 -19
- package/dist/esm/bcm-colorpicker.entry.js +1 -1
- package/dist/esm/bcm-content.entry.js +1 -1
- package/dist/esm/bcm-date-picker.entry.js +5 -5
- package/dist/esm/bcm-datetime-picker.entry.js +9 -9
- package/dist/esm/bcm-default.entry.js +3 -3
- package/dist/esm/bcm-error-layout.entry.js +1 -1
- package/dist/esm/bcm-form-2.entry.js +6 -6
- package/dist/esm/bcm-form-group.entry.js +1 -1
- package/dist/esm/bcm-input-custom.entry.js +3 -3
- package/dist/esm/bcm-input-dropdown.entry.js +10 -10
- package/dist/esm/bcm-message.entry.js +1 -1
- package/dist/esm/bcm-modal-2-footer.entry.js +8 -7
- package/dist/esm/bcm-modal-2-header.entry.js +8 -7
- package/dist/esm/bcm-modal-2.entry.js +8 -7
- package/dist/esm/bcm-notification.entry.js +1 -1
- package/dist/esm/bcm-number-input.entry.js +12 -12
- package/dist/esm/bcm-overlay_2.entry.js +1 -1
- package/dist/esm/bcm-popconfirm-box-v2.entry.js +105 -0
- package/dist/esm/bcm-popconfirm-host.entry.js +131 -0
- package/dist/esm/bcm-range.entry.js +4 -4
- package/dist/esm/bcm-react-number.entry.js +1 -1
- package/dist/esm/bcm-resizable-pane.entry.js +38 -0
- package/dist/esm/bcm-result-footer.entry.js +35 -0
- package/dist/esm/bcm-result.entry.js +16 -47
- package/dist/esm/bcm-segment-picker-item.entry.js +29 -0
- package/dist/esm/bcm-segment-picker.entry.js +63 -0
- package/dist/esm/bcm-select-group.entry.js +1 -1
- package/dist/esm/bcm-select-option.entry.js +1 -1
- package/dist/esm/bcm-skeleton.entry.js +8 -8
- package/dist/esm/bcm-tab-pane.entry.js +1 -1
- package/dist/esm/bcm-table.entry.js +9 -8
- package/dist/esm/bcm-tabs-content.entry.js +1 -1
- package/dist/esm/bcm-tag.entry.js +5 -5
- package/dist/esm/bcm-time-picker.entry.js +5 -5
- package/dist/esm/bcm-timeline-item.entry.js +1 -1
- package/dist/esm/bcm-timeline.entry.js +1 -1
- package/dist/esm/bcm-toast.entry.js +192 -36
- package/dist/esm/bcm-treeview-group.entry.js +1 -1
- package/dist/esm/bromcom-ui.js +5 -5
- package/dist/esm/{caption-template-3cd42c3b.js → caption-template-56977835.js} +10 -10
- package/dist/esm/floating-ui-4016b544.js +99 -0
- package/dist/esm/floating-ui.dom.esm-40a07b59.js +1411 -0
- package/dist/esm/{generate-74379aca.js → generate-8470dd6c.js} +14 -37
- package/dist/esm/{global-e20393a3.js → global-e694da71.js} +2 -2
- package/dist/esm/{index-0615c2b8.js → index-15387314.js} +3 -1
- package/dist/esm/{index-3bc8c6e3.js → index-9f698d35.js} +386 -347
- package/dist/esm/{input.style-e855c0f3.js → input.style-fe41ebc8.js} +16 -15
- package/dist/esm/{is-load-decorator-8277e3b8.js → is-load-decorator-5b0610df.js} +1 -1
- package/dist/esm/{label-template-ef97aadb.js → label-template-c7e70e5f.js} +8 -7
- package/dist/esm/loader.js +5 -5
- package/dist/esm/{number-helper-6c691943.js → number-helper-56061510.js} +1 -1
- package/dist/esm/old-bcm-popover-box.entry.js +10 -9
- package/dist/esm/old-bcm-popover.entry.js +4 -4
- package/dist/esm/{package-0b936309.js → package-387afefd.js} +1 -1
- package/dist/esm/{popover-placement-1b15cc99.js → popover-placement-6391b815.js} +1 -1
- package/dist/esm/popover.style-be349acc.js +104 -0
- package/dist/esm/result.style-de3bc950.js +54 -0
- package/dist/esm/segment-picker.style-1e837fe7.js +53 -0
- package/dist/esm/{slot-template-0d958dcc.js → slot-template-250f6ed4.js} +2 -2
- package/dist/esm/{string-helper-b4602002.js → string-helper-243b3e1d.js} +1 -1
- package/dist/esm/types-ec7dcf4f.js +173 -0
- package/dist/types/components/atoms/avatar/avatar.style.d.ts +21 -21
- package/dist/types/components/atoms/button/button.d.ts +32 -20
- package/dist/types/components/atoms/button/button.style.d.ts +334 -0
- package/dist/types/components/atoms/chip/chip.d.ts +4 -14
- package/dist/types/components/atoms/chip/chip.style.d.ts +387 -0
- package/dist/types/components/atoms/divider/divider.d.ts +1 -2
- package/dist/types/components/atoms/divider/divider.style.d.ts +42 -0
- package/dist/types/components/atoms/icon/icon.d.ts +0 -2
- package/dist/types/components/atoms/label/label.d.ts +1 -0
- package/dist/types/components/atoms/link/link.d.ts +10 -6
- package/dist/types/components/atoms/link/link.style.d.ts +171 -0
- package/dist/types/components/molecules/alert/alert.d.ts +15 -17
- package/dist/types/components/molecules/alert/alert.style.d.ts +331 -0
- package/dist/types/components/molecules/checkbox/checkbox.d.ts +16 -29
- package/dist/types/components/molecules/checkbox/checkbox.style.d.ts +498 -0
- package/dist/types/components/molecules/checkbox-group/checkbox-group.style.d.ts +108 -0
- package/dist/types/components/molecules/color-input/color-input.d.ts +0 -1
- package/dist/types/components/molecules/color-input/color-input.style.d.ts +10 -0
- package/dist/types/components/molecules/drawer/drawer.style.d.ts +252 -0
- package/dist/types/components/molecules/dropdown/dropdown.d.ts +2 -2
- package/dist/types/components/molecules/empty/empty.d.ts +6 -0
- package/dist/types/components/molecules/empty/empty.style.d.ts +296 -0
- package/dist/types/components/molecules/expansion-panel/bcm-expansion-panel-description.d.ts +6 -0
- package/dist/types/components/molecules/expansion-panel/bcm-expansion-panel-extra.d.ts +6 -0
- package/dist/types/components/molecules/expansion-panel/bcm-expansion-panel-header.d.ts +6 -0
- package/dist/types/components/molecules/expansion-panel/expansion-panel.d.ts +6 -5
- package/dist/types/components/molecules/expansion-panel/expansion-panel.style.d.ts +437 -0
- package/dist/types/components/molecules/input/input.d.ts +2 -2
- package/dist/types/components/molecules/modal/modal-footer.d.ts +7 -0
- package/dist/types/components/molecules/modal/modal-header.d.ts +7 -0
- package/dist/types/components/molecules/modal/modal.style.d.ts +364 -0
- package/dist/types/components/molecules/popconfirm/popconfirm-box.d.ts +1 -1
- package/dist/types/components/molecules/popconfirm-v2/pop-confirm-host.d.ts +26 -0
- package/dist/types/components/molecules/popconfirm-v2/popconf.style.d.ts +277 -0
- package/dist/types/components/molecules/popconfirm-v2/popconfirm-v2.d.ts +15 -0
- package/dist/types/components/molecules/popover/popover.style.d.ts +103 -0
- package/dist/types/components/molecules/radio/radio-group.style.d.ts +108 -0
- package/dist/types/components/molecules/radio/radio.style.d.ts +202 -0
- package/dist/types/components/molecules/result/result-footer.d.ts +7 -0
- package/dist/types/components/molecules/result/result.d.ts +3 -7
- package/dist/types/components/molecules/result/result.style.d.ts +180 -0
- package/dist/types/components/molecules/switch/switch.style.d.ts +537 -0
- package/dist/types/components/molecules/tab-group/tab-group.d.ts +0 -1
- package/dist/types/components/molecules/tab-group/tab-group.syle.d.ts +236 -0
- package/dist/types/components/molecules/tab-group/tab-item-header.d.ts +0 -1
- package/dist/types/components/molecules/textarea/textarea.d.ts +2 -2
- package/dist/types/components/molecules/textarea/textarea.style.d.ts +610 -0
- package/dist/types/components/molecules/tooltip/tooltip.style.d.ts +94 -0
- package/dist/types/components/other/arrow/arrow.d.ts +7 -0
- package/dist/types/components/other/resizable-pane/resizable-pane.d.ts +11 -0
- package/dist/types/components/other/segment-picker/segment-picker-item.d.ts +12 -0
- package/dist/types/components/other/segment-picker/segment-picker.d.ts +35 -0
- package/dist/types/components/other/segment-picker/segment-picker.style.d.ts +150 -0
- package/dist/types/components/other/shortcut/shortcut.style.d.ts +91 -0
- package/dist/types/components/other/toast/toast.style.d.ts +539 -0
- package/dist/types/components.d.ts +448 -278
- package/dist/types/helper/generate.d.ts +0 -3
- package/dist/types/helper/index.d.ts +1 -0
- package/dist/types/helper/pop-confirm-helper.d.ts +23 -0
- package/dist/types/helper/tooltip-helper.d.ts +0 -1
- package/dist/types/models/bcm-types.d.ts +3 -2
- package/dist/types/models/bcm.d.ts +7 -1
- package/dist/types/templates/icon-template.d.ts +2 -2
- package/dist/types/templates/label-template.d.ts +1 -0
- package/package.json +2 -2
- package/dist/bromcom-ui/p-0345ed68.entry.js +0 -5
- package/dist/bromcom-ui/p-069ae664.entry.js +0 -5
- package/dist/bromcom-ui/p-08c75801.js +0 -5
- package/dist/bromcom-ui/p-193d926a.entry.js +0 -5
- package/dist/bromcom-ui/p-228c74e9.entry.js +0 -5
- package/dist/bromcom-ui/p-29c4dc0a.entry.js +0 -5
- package/dist/bromcom-ui/p-2d34eb30.entry.js +0 -5
- package/dist/bromcom-ui/p-2df6b47d.js +0 -5
- package/dist/bromcom-ui/p-2ee89105.entry.js +0 -5
- package/dist/bromcom-ui/p-305b0bc8.entry.js +0 -5
- package/dist/bromcom-ui/p-3238bf36.js +0 -5
- package/dist/bromcom-ui/p-3b863650.entry.js +0 -5
- package/dist/bromcom-ui/p-3fac58f7.js +0 -5
- package/dist/bromcom-ui/p-43c578cf.js +0 -5
- package/dist/bromcom-ui/p-4f05c6a4.entry.js +0 -5
- package/dist/bromcom-ui/p-4f6eb6d6.js +0 -5
- package/dist/bromcom-ui/p-6e5f5f36.js +0 -5
- package/dist/bromcom-ui/p-7400e3c3.entry.js +0 -5
- package/dist/bromcom-ui/p-74e6d2b6.js +0 -5
- package/dist/bromcom-ui/p-87d9dff7.entry.js +0 -5
- package/dist/bromcom-ui/p-8e683b32.js +0 -5
- package/dist/bromcom-ui/p-a2ed89f0.entry.js +0 -5
- package/dist/bromcom-ui/p-a313fba6.js +0 -5
- package/dist/bromcom-ui/p-ae57f046.entry.js +0 -5
- package/dist/bromcom-ui/p-bbae06ed.entry.js +0 -5
- package/dist/bromcom-ui/p-d1298c40.js +0 -5
- package/dist/bromcom-ui/p-e99cc26b.entry.js +0 -5
- package/dist/bromcom-ui/p-ea7368b4.entry.js +0 -5
- package/dist/bromcom-ui/p-ec1fe98f.entry.js +0 -16
- package/dist/bromcom-ui/p-ece578ef.entry.js +0 -5
- package/dist/cjs/bcm-input-2.cjs.entry.js +0 -153
- package/dist/cjs/bcm-popover.cjs.entry.js +0 -230
- package/dist/cjs/index-d321de96.js +0 -193
- package/dist/cjs/types-cc4adee7.js +0 -19
- package/dist/cjs/validators-9369c82a.js +0 -33
- package/dist/collection/components/atoms/link/link.css +0 -175
- package/dist/collection/components/atoms/states/button.states.js +0 -31
- package/dist/collection/components/molecules/accordion/accordion.css +0 -127
- package/dist/collection/components/molecules/alert/alert.css +0 -191
- package/dist/collection/components/molecules/alert/types.js +0 -23
- package/dist/collection/components/molecules/checkbox/checkbox-lite.js +0 -236
- package/dist/collection/components/molecules/expansion-panel/expansion-panel.css +0 -238
- package/dist/collection/components/molecules/input/input.css +0 -365
- package/dist/collection/components/molecules/input/input2.js +0 -918
- package/dist/collection/components/molecules/result/result.css +0 -164
- package/dist/collection/components/molecules/result/types.js +0 -22
- package/dist/collection/components/molecules/search/search.css +0 -365
- package/dist/collection/components/molecules/states/alert.states.js +0 -25
- package/dist/collection/components/molecules/switch/switch.css +0 -434
- package/dist/collection/components/molecules/textarea/textarea.css +0 -365
- package/dist/collection/components/molecules/textarea/types.js +0 -13
- package/dist/collection/global/components/_checkbox.css +0 -378
- package/dist/components/bcm-checkbox-lite.js +0 -10
- package/dist/components/bcm-input-2.js +0 -225
- package/dist/components/checkbox-lite.js +0 -97
- package/dist/components/input-template.js +0 -90
- package/dist/components/validators.js +0 -35
- package/dist/esm/bcm-input-2.entry.js +0 -149
- package/dist/esm/bcm-popover.entry.js +0 -226
- package/dist/esm/index-7e71bbc8.js +0 -191
- package/dist/esm/types-6f06fa1a.js +0 -19
- package/dist/esm/validators-c067048c.js +0 -31
- package/dist/types/components/atoms/states/button.states.d.ts +0 -7
- package/dist/types/components/molecules/alert/types.d.ts +0 -25
- package/dist/types/components/molecules/checkbox/checkbox-lite.d.ts +0 -14
- package/dist/types/components/molecules/input/input2.d.ts +0 -64
- package/dist/types/components/molecules/result/types.d.ts +0 -19
- package/dist/types/components/molecules/states/alert.states.d.ts +0 -7
- package/dist/types/components/molecules/textarea/types.d.ts +0 -9
- /package/dist/collection/components/{third-parts/rc-picker → organism/date}/date.js +0 -0
- /package/dist/types/components/molecules/{checkbox/group.d.ts → checkbox-group/checkbox-group.d.ts} +0 -0
- /package/dist/types/components/{third-parts/rc-picker → organism/date}/date.d.ts +0 -0
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Built with Stencil
|
|
3
|
+
* Copyright (c) Bromcom.
|
|
4
|
+
*/
|
|
5
|
+
import { tv } from "tailwind-variants";
|
|
6
|
+
export const buttonStyle = tv({
|
|
7
|
+
slots: {
|
|
8
|
+
base: "",
|
|
9
|
+
hostStyle: "bcm-button bcm-ui-element bcm-ui-action tw-w-fit tw-relative tw-inline-block",
|
|
10
|
+
containerStyle: ["bcm-button__container tw-button-reset", "tw-font-medium tw-no-underline", "tw-flex tw-items-center tw-justify-center tw-gap-2", "tw-rounded-[--bcm-button-radius] tw-border tw-border-solid"],
|
|
11
|
+
iconStyle: "",
|
|
12
|
+
textStyle: "empty:tw-hidden tw-flex tw-items-center tw-justify-center tw-gap-2",
|
|
13
|
+
},
|
|
14
|
+
variants: {
|
|
15
|
+
size: {
|
|
16
|
+
small: {
|
|
17
|
+
containerStyle: ["bcm-button__container-size-small", "tw-text-size-4 tw-py-px tw-px-2", "tw-min-h-6"],
|
|
18
|
+
},
|
|
19
|
+
medium: {
|
|
20
|
+
containerStyle: ["bcm-button__container-size-medium", "tw-text-size-5 tw-py-0.5 tw-px-3", "tw-min-h-8"],
|
|
21
|
+
},
|
|
22
|
+
large: {
|
|
23
|
+
containerStyle: ["bcm-button__container-size-large", "tw-text-size-6 tw-py-1 tw-px-3", "tw-min-h-10"],
|
|
24
|
+
},
|
|
25
|
+
},
|
|
26
|
+
kind: {
|
|
27
|
+
solid: {
|
|
28
|
+
containerStyle: "bcm-button__container-kind-solid",
|
|
29
|
+
},
|
|
30
|
+
ghost: {
|
|
31
|
+
containerStyle: "bcm-button__container-kind-ghost",
|
|
32
|
+
},
|
|
33
|
+
link: {
|
|
34
|
+
containerStyle: ["bcm-button__container-kind-link"],
|
|
35
|
+
},
|
|
36
|
+
outline: {
|
|
37
|
+
containerStyle: "bcm-button__container-kind-outline",
|
|
38
|
+
},
|
|
39
|
+
},
|
|
40
|
+
fullWidth: {
|
|
41
|
+
true: {
|
|
42
|
+
containerStyle: "full-width tw-w-full",
|
|
43
|
+
hostStyle: "full-width tw-w-full",
|
|
44
|
+
},
|
|
45
|
+
},
|
|
46
|
+
checked: {
|
|
47
|
+
true: {
|
|
48
|
+
containerStyle: "checked !tw-bg-[--bcm-button-bg-active]",
|
|
49
|
+
},
|
|
50
|
+
},
|
|
51
|
+
disabled: {
|
|
52
|
+
true: {
|
|
53
|
+
containerStyle: "disabled tw-cursor-not-allowed",
|
|
54
|
+
},
|
|
55
|
+
false: {
|
|
56
|
+
containerStyle: [
|
|
57
|
+
"tw-cursor-pointer",
|
|
58
|
+
"tw-bg-[--bcm-button-bg] tw-text-[--bcm-button-text] tw-border-[--bcm-button-border]",
|
|
59
|
+
"hover:tw-bg-[--bcm-button-bg-hover] hover:tw-text-[--bcm-button-text-hover] hover:tw-border-[--bcm-button-border-hover]",
|
|
60
|
+
"active:tw-bg-[--bcm-button-bg-active] active:tw-text-[--bcm-button-text-active] active:tw-border-[--bcm-button-border-active]",
|
|
61
|
+
"focus-visible:tw-ring",
|
|
62
|
+
],
|
|
63
|
+
},
|
|
64
|
+
},
|
|
65
|
+
},
|
|
66
|
+
compoundVariants: [
|
|
67
|
+
{
|
|
68
|
+
disabled: true,
|
|
69
|
+
kind: ["solid", "ghost"],
|
|
70
|
+
class: {
|
|
71
|
+
containerStyle: "tw-bg-color-disabled tw-text-color-disabled tw-border-color-disabled",
|
|
72
|
+
},
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
disabled: true,
|
|
76
|
+
kind: ["link"],
|
|
77
|
+
class: {
|
|
78
|
+
containerStyle: "tw-text-color-disabled tw-border-transparent tw-bg-transparent",
|
|
79
|
+
},
|
|
80
|
+
},
|
|
81
|
+
],
|
|
82
|
+
defaultVariants: {
|
|
83
|
+
size: "medium",
|
|
84
|
+
kind: "solid",
|
|
85
|
+
fullWidth: false,
|
|
86
|
+
checked: false,
|
|
87
|
+
disabled: false,
|
|
88
|
+
},
|
|
89
|
+
});
|
|
@@ -4,9 +4,8 @@
|
|
|
4
4
|
*/
|
|
5
5
|
import { Generate } from "@bcm/helpers";
|
|
6
6
|
import { Bcm } from "@bcm/model";
|
|
7
|
-
import { CaptionTemplate
|
|
7
|
+
import { CaptionTemplate } from "@bcm/template";
|
|
8
8
|
import { Host, h } from "@stencil/core";
|
|
9
|
-
import cs from "classnames";
|
|
10
9
|
export class BcmChipGroup {
|
|
11
10
|
constructor() {
|
|
12
11
|
this._id = Generate.UID();
|
|
@@ -95,20 +94,9 @@ export class BcmChipGroup {
|
|
|
95
94
|
}
|
|
96
95
|
render() {
|
|
97
96
|
const { label, required, noCaption, captionType, captionError, caption } = this;
|
|
98
|
-
|
|
99
|
-
return (h(Host, { class: hostClasses }, label && (h("div", null, h(LabelTemplate, { type: captionType, value: label, required: required }))), h("div", { class: "tw-flex tw-flex-wrap tw-gap-1" }, h("slot", null)), h(CaptionTemplate, { noCaption: noCaption, captionType: captionType, captionError: captionError, caption: caption })));
|
|
97
|
+
return (h(Host, { class: "bcm-chip-group [&_.bcm-chip]:tw-cursor-pointer" }, label && h("bcm-label", { type: captionType, value: label, required: required }), h("div", { class: "tw-flex tw-flex-wrap tw-gap-1" }, h("slot", null)), h(CaptionTemplate, { noCaption: noCaption, captionType: captionType, captionError: captionError, caption: caption })));
|
|
100
98
|
}
|
|
101
99
|
static get is() { return "bcm-chip-group"; }
|
|
102
|
-
static get originalStyleUrls() {
|
|
103
|
-
return {
|
|
104
|
-
"$": ["chip-group.scss"]
|
|
105
|
-
};
|
|
106
|
-
}
|
|
107
|
-
static get styleUrls() {
|
|
108
|
-
return {
|
|
109
|
-
"$": ["chip-group.css"]
|
|
110
|
-
};
|
|
111
|
-
}
|
|
112
100
|
static get properties() {
|
|
113
101
|
return {
|
|
114
102
|
"_id": {
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
@import url("https://fonts.googleapis.com/css?family=Roboto:400,500");
|
|
2
|
-
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@200;400;500;600&display=swap");
|
|
3
2
|
.size-1 {
|
|
4
3
|
font-size: 12px;
|
|
5
4
|
line-height: 20px;
|
|
@@ -123,90 +122,15 @@
|
|
|
123
122
|
margin-right: 8px;
|
|
124
123
|
}
|
|
125
124
|
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
--bcm-chip-
|
|
132
|
-
--bcm-chip-
|
|
133
|
-
--bcm-chip-
|
|
134
|
-
--bcm-chip-
|
|
135
|
-
--bcm-chip-
|
|
136
|
-
--bcm-chip-
|
|
137
|
-
--bcm-chip-background-color-hover: var(--bcm-new-ds-color-slate-200);
|
|
138
|
-
--bcm-chip-background-color-focus: var(--bcm-new-ds-color-slate-300);
|
|
139
|
-
--bcm-chip-background-color-active: var(--bcm-new-ds-color-slate-400);
|
|
140
|
-
--bcm-chip-background-color-disabled: var(--bcm-new-ds-color-slate-100);
|
|
141
|
-
display: inline-flex;
|
|
142
|
-
justify-content: center;
|
|
143
|
-
align-items: center;
|
|
144
|
-
width: fit-content;
|
|
145
|
-
height: fit-content;
|
|
146
|
-
font-family: "Inter", sans-serif;
|
|
147
|
-
font-size: 14px;
|
|
148
|
-
line-height: calc(14px + 8px);
|
|
149
|
-
font-weight: 400;
|
|
150
|
-
padding: 0 8px;
|
|
151
|
-
gap: 4px;
|
|
152
|
-
color: var(--bcm-chip-color);
|
|
153
|
-
background-color: var(--bcm-chip-background-color);
|
|
154
|
-
border-radius: 100px;
|
|
155
|
-
transition: background-color 0.1s ease-in-out;
|
|
156
|
-
outline: none;
|
|
157
|
-
}
|
|
158
|
-
.bcm-chip:not(.bcm-chip--disabled):hover {
|
|
159
|
-
background-color: var(--bcm-chip-background-color-hover);
|
|
160
|
-
}
|
|
161
|
-
.bcm-chip:not(.bcm-chip--disabled):focus {
|
|
162
|
-
background-color: var(--bcm-chip-background-color-focus);
|
|
163
|
-
color: var(--bcm-chip-color-focus);
|
|
164
|
-
}
|
|
165
|
-
.bcm-chip:not(.bcm-chip--disabled):active {
|
|
166
|
-
background-color: var(--bcm-chip-background-color-active);
|
|
167
|
-
color: var(--bcm-chip-color-active);
|
|
168
|
-
}
|
|
169
|
-
.bcm-chip--disabled {
|
|
170
|
-
color: var(--bcm-chip-color-disabled);
|
|
171
|
-
background-color: var(--bcm-chip-background-color-disabled);
|
|
172
|
-
}
|
|
173
|
-
.bcm-chip--avatar {
|
|
174
|
-
padding-left: 2px;
|
|
175
|
-
}
|
|
176
|
-
.bcm-chip__type-dismissable-icon:hover {
|
|
177
|
-
cursor: pointer;
|
|
178
|
-
color: var(--bcm-chip-color-active);
|
|
179
|
-
}
|
|
180
|
-
.bcm-chip__size-small {
|
|
181
|
-
font-size: 10px;
|
|
182
|
-
line-height: calc(10px + 8px);
|
|
183
|
-
}
|
|
184
|
-
.bcm-chip__size-small .bcm-avatar {
|
|
185
|
-
width: 14px;
|
|
186
|
-
height: 14px;
|
|
187
|
-
}
|
|
188
|
-
.bcm-chip__size-small .bcm-chip--selected-icon {
|
|
189
|
-
width: 8px;
|
|
190
|
-
}
|
|
191
|
-
.bcm-chip__size-medium {
|
|
192
|
-
font-size: 12px;
|
|
193
|
-
line-height: calc(12px + 8px);
|
|
194
|
-
}
|
|
195
|
-
.bcm-chip__size-medium .bcm-avatar {
|
|
196
|
-
width: 16px;
|
|
197
|
-
height: 16px;
|
|
198
|
-
}
|
|
199
|
-
.bcm-chip__size-medium .bcm-chip--selected-icon {
|
|
200
|
-
width: 10px;
|
|
201
|
-
}
|
|
202
|
-
.bcm-chip__size-large {
|
|
203
|
-
font-size: 14px;
|
|
204
|
-
line-height: calc(14px + 8px);
|
|
205
|
-
}
|
|
206
|
-
.bcm-chip__size-large .bcm-avatar {
|
|
207
|
-
width: 18px;
|
|
208
|
-
height: 18px;
|
|
209
|
-
}
|
|
210
|
-
.bcm-chip__size-large .bcm-chip--selected-icon {
|
|
211
|
-
width: 12px;
|
|
125
|
+
:root {
|
|
126
|
+
--bcm-chip-text: var(--bcm-ui-color-text-default);
|
|
127
|
+
--bcm-chip-text-hover: var(--bcm-ui-color-text-default-hover);
|
|
128
|
+
--bcm-chip-text-active: var(--bcm-ui-color-text-default-active);
|
|
129
|
+
--bcm-chip-bg: var(--bcm-ui-color-background-default-default);
|
|
130
|
+
--bcm-chip-bg-hover: var(--bcm-ui-color-background-default-hover);
|
|
131
|
+
--bcm-chip-bg-active: var(--bcm-ui-color-background-default-active);
|
|
132
|
+
--bcm-chip-border: var(--bcm-ui-color-background-default-default);
|
|
133
|
+
--bcm-chip-border-hover: var(--bcm-ui-color-background-default-hover);
|
|
134
|
+
--bcm-chip-border-active: var(--bcm-ui-color-background-default-active);
|
|
135
|
+
--bcm-chip-radius: var(--bcm-ui-radius);
|
|
212
136
|
}
|
|
@@ -2,15 +2,16 @@
|
|
|
2
2
|
* Built with Stencil
|
|
3
3
|
* Copyright (c) Bromcom.
|
|
4
4
|
*/
|
|
5
|
-
import {
|
|
6
|
-
import
|
|
7
|
-
import { ColorHelper } from "../../../helper/color-helper";
|
|
5
|
+
import { Bcm } from "@bcm/model";
|
|
6
|
+
import { Host, h } from "@stencil/core";
|
|
8
7
|
import { Generate } from "../../../helper/generate";
|
|
8
|
+
import { chipStyle } from "./chip.style";
|
|
9
9
|
export class BcmChip {
|
|
10
10
|
constructor() {
|
|
11
11
|
this._id = Generate.UID();
|
|
12
12
|
this.type = "default";
|
|
13
|
-
this.
|
|
13
|
+
this.kind = "filled";
|
|
14
|
+
this.size = Bcm.Size.medium;
|
|
14
15
|
this.avatar = undefined;
|
|
15
16
|
this.icon = undefined;
|
|
16
17
|
this.disabled = undefined;
|
|
@@ -19,24 +20,6 @@ export class BcmChip {
|
|
|
19
20
|
this.value = undefined;
|
|
20
21
|
this.data = [];
|
|
21
22
|
}
|
|
22
|
-
// @ts-ignore
|
|
23
|
-
setColor() {
|
|
24
|
-
if (!this.color && !this.selected)
|
|
25
|
-
return;
|
|
26
|
-
const color = this.selected ? "indigo" : this.color; // Important: Find a solution for this in V3! ( selected ? this.color : "indigo" )
|
|
27
|
-
return {
|
|
28
|
-
"--bcm-chip-color": ColorHelper.dsColor(color + "-700"),
|
|
29
|
-
"--bcm-chip-color-hover": ColorHelper.dsColor(color + "-700"),
|
|
30
|
-
"--bcm-chip-color-focus": ColorHelper.dsColor(color + "-700"),
|
|
31
|
-
"--bcm-chip-color-active": ColorHelper.dsColor(color + "-700"),
|
|
32
|
-
"--bcm-chip-color-disabled": ColorHelper.dsColor("slate" + "-300"),
|
|
33
|
-
"--bcm-chip-background-color": ColorHelper.dsColor(color + "-100"),
|
|
34
|
-
"--bcm-chip-background-color-hover": ColorHelper.dsColor(color + "-200"),
|
|
35
|
-
"--bcm-chip-background-color-focus": ColorHelper.dsColor(color + "-300"),
|
|
36
|
-
"--bcm-chip-background-color-active": ColorHelper.dsColor(color + "-200"),
|
|
37
|
-
"--bcm-chip-background-color-disabled": ColorHelper.dsColor("slate" + "-100"),
|
|
38
|
-
};
|
|
39
|
-
}
|
|
40
23
|
handleDismiss(e) {
|
|
41
24
|
e.stopPropagation();
|
|
42
25
|
e.preventDefault();
|
|
@@ -48,7 +31,6 @@ export class BcmChip {
|
|
|
48
31
|
this.bcmChipAddable.emit(this.el);
|
|
49
32
|
}
|
|
50
33
|
listSelectedItems(e) {
|
|
51
|
-
// To be added to v3
|
|
52
34
|
e.stopPropagation();
|
|
53
35
|
e.preventDefault();
|
|
54
36
|
if (e.detail) {
|
|
@@ -58,14 +40,48 @@ export class BcmChip {
|
|
|
58
40
|
}
|
|
59
41
|
}
|
|
60
42
|
render() {
|
|
61
|
-
const { type, size, avatar, disabled, color } = this;
|
|
62
|
-
const
|
|
63
|
-
|
|
64
|
-
|
|
43
|
+
const { type, size, avatar, disabled, color, kind, selected } = this;
|
|
44
|
+
const { hostStyle, avatarStyle, actionStyle } = chipStyle({
|
|
45
|
+
size,
|
|
46
|
+
disabled,
|
|
47
|
+
type,
|
|
48
|
+
kind,
|
|
49
|
+
avatar: avatar ? true : false,
|
|
65
50
|
});
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
51
|
+
const tones = {
|
|
52
|
+
filled: {
|
|
53
|
+
"700": ["text"],
|
|
54
|
+
"800": ["text-hover"],
|
|
55
|
+
"900": ["text-active"],
|
|
56
|
+
"100": ["bg", "border"],
|
|
57
|
+
"200": ["bg-hover", "border-hover"],
|
|
58
|
+
"300": ["bg-active", "border-active"],
|
|
59
|
+
},
|
|
60
|
+
outline: {
|
|
61
|
+
"700": ["text"],
|
|
62
|
+
"800": ["text-hover"],
|
|
63
|
+
"900": ["text-active"],
|
|
64
|
+
"transparent": ["bg"],
|
|
65
|
+
"200": ["bg-hover"],
|
|
66
|
+
"300": ["bg-active", "border", "border-hover", "border-active"],
|
|
67
|
+
},
|
|
68
|
+
text: {
|
|
69
|
+
"700": ["text"],
|
|
70
|
+
"800": ["text-hover"],
|
|
71
|
+
"900": ["text-active"],
|
|
72
|
+
"transparent": ["bg", "border"],
|
|
73
|
+
"200": ["bg-hover", "border-hover"],
|
|
74
|
+
"300": ["bg-active", "border-active"],
|
|
75
|
+
},
|
|
76
|
+
};
|
|
77
|
+
const dc = Generate.getTwColor({
|
|
78
|
+
color: selected ? "indigo" : color || "slate",
|
|
79
|
+
tones: tones[kind],
|
|
80
|
+
variable: `--bcm-chip`,
|
|
81
|
+
});
|
|
82
|
+
const style = Object.assign({}, dc);
|
|
83
|
+
return (h(Host, { class: hostStyle(), tabindex: "0", disabled: disabled, style: style, onClick: e => this.bcmChipSelect.emit(e) }, selected && h("i", { class: "fal fa-check" }), avatar && h("bcm-avatar", Object.assign({ class: avatarStyle() }, (color && { color }), (avatar && { image: avatar }))), type === "addable" && (h("div", { class: actionStyle(), onClick: e => this.handleAddable(e), title: "Add button" }, h("i", { class: "far fa-plus" }))), h("slot", null), type === "dismissable" && (h("div", { class: actionStyle(), onClick: e => this.handleDismiss(e), title: "Dismiss button" }, h("i", { class: "fal fa-times" }))), this.data &&
|
|
84
|
+
this.data.length > 0 && (h("bcm-list", { "onBcm-change": e => this.listSelectedItems(e), id: this._id + "-list", data: this.data, linkedComponent: this._id, searchable: true, highlight: true }))));
|
|
69
85
|
}
|
|
70
86
|
static get is() { return "bcm-chip"; }
|
|
71
87
|
static get originalStyleUrls() {
|
|
@@ -82,7 +98,7 @@ export class BcmChip {
|
|
|
82
98
|
return {
|
|
83
99
|
"_id": {
|
|
84
100
|
"type": "string",
|
|
85
|
-
"mutable":
|
|
101
|
+
"mutable": false,
|
|
86
102
|
"complexType": {
|
|
87
103
|
"original": "string",
|
|
88
104
|
"resolved": "string",
|
|
@@ -100,10 +116,10 @@ export class BcmChip {
|
|
|
100
116
|
},
|
|
101
117
|
"type": {
|
|
102
118
|
"type": "string",
|
|
103
|
-
"mutable":
|
|
119
|
+
"mutable": false,
|
|
104
120
|
"complexType": {
|
|
105
|
-
"original": "\"default\" | \"dismissable\" | \"addable\"
|
|
106
|
-
"resolved": "\"addable\" | \"
|
|
121
|
+
"original": "\"default\" | \"dismissable\" | \"addable\"",
|
|
122
|
+
"resolved": "\"addable\" | \"default\" | \"dismissable\"",
|
|
107
123
|
"references": {}
|
|
108
124
|
},
|
|
109
125
|
"required": false,
|
|
@@ -116,13 +132,36 @@ export class BcmChip {
|
|
|
116
132
|
"reflect": false,
|
|
117
133
|
"defaultValue": "\"default\""
|
|
118
134
|
},
|
|
135
|
+
"kind": {
|
|
136
|
+
"type": "string",
|
|
137
|
+
"mutable": false,
|
|
138
|
+
"complexType": {
|
|
139
|
+
"original": "\"filled\" | \"outline\" | \"text\"",
|
|
140
|
+
"resolved": "\"filled\" | \"outline\" | \"text\"",
|
|
141
|
+
"references": {}
|
|
142
|
+
},
|
|
143
|
+
"required": false,
|
|
144
|
+
"optional": false,
|
|
145
|
+
"docs": {
|
|
146
|
+
"tags": [],
|
|
147
|
+
"text": ""
|
|
148
|
+
},
|
|
149
|
+
"attribute": "kind",
|
|
150
|
+
"reflect": false,
|
|
151
|
+
"defaultValue": "\"filled\""
|
|
152
|
+
},
|
|
119
153
|
"size": {
|
|
120
154
|
"type": "string",
|
|
121
|
-
"mutable":
|
|
155
|
+
"mutable": false,
|
|
122
156
|
"complexType": {
|
|
123
|
-
"original": "
|
|
157
|
+
"original": "SizeTypes",
|
|
124
158
|
"resolved": "\"large\" | \"medium\" | \"small\"",
|
|
125
|
-
"references": {
|
|
159
|
+
"references": {
|
|
160
|
+
"SizeTypes": {
|
|
161
|
+
"location": "import",
|
|
162
|
+
"path": "@bcm/model"
|
|
163
|
+
}
|
|
164
|
+
}
|
|
126
165
|
},
|
|
127
166
|
"required": false,
|
|
128
167
|
"optional": false,
|
|
@@ -132,11 +171,11 @@ export class BcmChip {
|
|
|
132
171
|
},
|
|
133
172
|
"attribute": "size",
|
|
134
173
|
"reflect": false,
|
|
135
|
-
"defaultValue": "
|
|
174
|
+
"defaultValue": "Bcm.Size.medium"
|
|
136
175
|
},
|
|
137
176
|
"avatar": {
|
|
138
177
|
"type": "any",
|
|
139
|
-
"mutable":
|
|
178
|
+
"mutable": false,
|
|
140
179
|
"complexType": {
|
|
141
180
|
"original": "any",
|
|
142
181
|
"resolved": "any",
|
|
@@ -153,7 +192,7 @@ export class BcmChip {
|
|
|
153
192
|
},
|
|
154
193
|
"icon": {
|
|
155
194
|
"type": "any",
|
|
156
|
-
"mutable":
|
|
195
|
+
"mutable": false,
|
|
157
196
|
"complexType": {
|
|
158
197
|
"original": "any",
|
|
159
198
|
"resolved": "any",
|
|
@@ -170,7 +209,7 @@ export class BcmChip {
|
|
|
170
209
|
},
|
|
171
210
|
"disabled": {
|
|
172
211
|
"type": "boolean",
|
|
173
|
-
"mutable":
|
|
212
|
+
"mutable": false,
|
|
174
213
|
"complexType": {
|
|
175
214
|
"original": "false",
|
|
176
215
|
"resolved": "boolean",
|
|
@@ -187,7 +226,7 @@ export class BcmChip {
|
|
|
187
226
|
},
|
|
188
227
|
"color": {
|
|
189
228
|
"type": "any",
|
|
190
|
-
"mutable":
|
|
229
|
+
"mutable": false,
|
|
191
230
|
"complexType": {
|
|
192
231
|
"original": "any",
|
|
193
232
|
"resolved": "any",
|
|
@@ -204,7 +243,7 @@ export class BcmChip {
|
|
|
204
243
|
},
|
|
205
244
|
"selected": {
|
|
206
245
|
"type": "boolean",
|
|
207
|
-
"mutable":
|
|
246
|
+
"mutable": false,
|
|
208
247
|
"complexType": {
|
|
209
248
|
"original": "boolean",
|
|
210
249
|
"resolved": "boolean",
|
|
@@ -222,7 +261,7 @@ export class BcmChip {
|
|
|
222
261
|
},
|
|
223
262
|
"value": {
|
|
224
263
|
"type": "string",
|
|
225
|
-
"mutable":
|
|
264
|
+
"mutable": false,
|
|
226
265
|
"complexType": {
|
|
227
266
|
"original": "string",
|
|
228
267
|
"resolved": "string",
|
|
@@ -239,7 +278,7 @@ export class BcmChip {
|
|
|
239
278
|
},
|
|
240
279
|
"data": {
|
|
241
280
|
"type": "any",
|
|
242
|
-
"mutable":
|
|
281
|
+
"mutable": false,
|
|
243
282
|
"complexType": {
|
|
244
283
|
"original": "any",
|
|
245
284
|
"resolved": "any",
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Built with Stencil
|
|
3
|
+
* Copyright (c) Bromcom.
|
|
4
|
+
*/
|
|
5
|
+
import { tv } from "tailwind-variants";
|
|
6
|
+
export const chipStyle = tv({
|
|
7
|
+
slots: {
|
|
8
|
+
base: "",
|
|
9
|
+
hostStyle: ["bcm-chip bcm-ui-element bcm-ui-action tw-w-fit", "tw-inline-flex tw-items-center tw-gap-1 tw-px-2", "tw-rounded-[--bcm-chip-radius] tw-border tw-border-solid", "tw-outline-none"],
|
|
10
|
+
avatarStyle: "",
|
|
11
|
+
actionStyle: "",
|
|
12
|
+
},
|
|
13
|
+
variants: {
|
|
14
|
+
size: {
|
|
15
|
+
small: {
|
|
16
|
+
hostStyle: "bcm-chip__size-small tw-text-size-3 tw-leading-none tw-min-h-4",
|
|
17
|
+
avatarStyle: "!tw-w-3 !tw-h-3",
|
|
18
|
+
},
|
|
19
|
+
medium: {
|
|
20
|
+
hostStyle: "bcm-chip__size-medium tw-text-size-4 tw-py-0.5 tw-leading-none tw-min-h-6",
|
|
21
|
+
avatarStyle: "!tw-w-4 !tw-h-4",
|
|
22
|
+
},
|
|
23
|
+
large: {
|
|
24
|
+
hostStyle: "bcm-chip__size-large tw-text-size-5 tw-py-1 tw-leading-none tw-min-h-8",
|
|
25
|
+
avatarStyle: "!tw-w-6 !tw-h-6",
|
|
26
|
+
},
|
|
27
|
+
},
|
|
28
|
+
kind: {
|
|
29
|
+
filled: {
|
|
30
|
+
hostStyle: "bcm-chip__kind-filled",
|
|
31
|
+
},
|
|
32
|
+
outline: {
|
|
33
|
+
hostStyle: "bcm-chip__kind-outline",
|
|
34
|
+
},
|
|
35
|
+
text: {
|
|
36
|
+
hostStyle: "bcm-chip__kind-text",
|
|
37
|
+
},
|
|
38
|
+
},
|
|
39
|
+
type: {
|
|
40
|
+
default: {
|
|
41
|
+
hostStyle: "bcm-chip__type-default ",
|
|
42
|
+
},
|
|
43
|
+
addable: {
|
|
44
|
+
hostStyle: "bcm-chip__type-addable",
|
|
45
|
+
},
|
|
46
|
+
dismissable: {
|
|
47
|
+
hostStyle: "bcm-chip__type-dismissable",
|
|
48
|
+
},
|
|
49
|
+
},
|
|
50
|
+
avatar: {
|
|
51
|
+
true: {
|
|
52
|
+
hostStyle: "bcm-chip--avatar",
|
|
53
|
+
avatarStyle: "!-tw-ml-1",
|
|
54
|
+
},
|
|
55
|
+
false: {},
|
|
56
|
+
},
|
|
57
|
+
disabled: {
|
|
58
|
+
true: {
|
|
59
|
+
hostStyle: "bcm-chip--disabled disabled tw-cursor-not-allowed",
|
|
60
|
+
},
|
|
61
|
+
false: {
|
|
62
|
+
hostStyle: [
|
|
63
|
+
"tw-bg-[--bcm-chip-bg] tw-text-[--bcm-chip-text] tw-border-[--bcm-chip-border]",
|
|
64
|
+
"hover:tw-bg-[--bcm-chip-bg-hover] hover:tw-border-[--bcm-chip-border-hover]",
|
|
65
|
+
"active:tw-bg-[--bcm-chip-bg-active] active:tw-border-[--bcm-chip-border-active]",
|
|
66
|
+
"focus-visible:tw-ring",
|
|
67
|
+
],
|
|
68
|
+
actionStyle: [
|
|
69
|
+
"tw-cursor-pointer",
|
|
70
|
+
"hover:tw-text-[--bcm-chip-text-hover]",
|
|
71
|
+
"active:tw-text-[--bcm-chip-text-active]",
|
|
72
|
+
],
|
|
73
|
+
},
|
|
74
|
+
},
|
|
75
|
+
},
|
|
76
|
+
compoundVariants: [
|
|
77
|
+
{
|
|
78
|
+
disabled: true,
|
|
79
|
+
kind: ["filled", "outline"],
|
|
80
|
+
class: {
|
|
81
|
+
hostStyle: "tw-bg-color-disabled tw-text-color-disabled tw-border-color-disabled",
|
|
82
|
+
},
|
|
83
|
+
},
|
|
84
|
+
{
|
|
85
|
+
disabled: true,
|
|
86
|
+
kind: ["text"],
|
|
87
|
+
class: {
|
|
88
|
+
hostStyle: "tw-text-color-disabled tw-border-transparent tw-bg-transparent",
|
|
89
|
+
},
|
|
90
|
+
},
|
|
91
|
+
],
|
|
92
|
+
defaultVariants: {
|
|
93
|
+
size: "medium",
|
|
94
|
+
disabled: false,
|
|
95
|
+
type: "default",
|
|
96
|
+
avatar: false,
|
|
97
|
+
kind: "filled",
|
|
98
|
+
},
|
|
99
|
+
});
|
|
@@ -2,55 +2,24 @@
|
|
|
2
2
|
* Built with Stencil
|
|
3
3
|
* Copyright (c) Bromcom.
|
|
4
4
|
*/
|
|
5
|
-
import {
|
|
6
|
-
import
|
|
7
|
-
import
|
|
5
|
+
import { Host, h } from "@stencil/core";
|
|
6
|
+
import Bcm from "../../../models/bcm";
|
|
7
|
+
import { dividerStyle } from "./divider.style";
|
|
8
8
|
export class BcmDivider {
|
|
9
9
|
constructor() {
|
|
10
|
-
this.hidden = false;
|
|
11
10
|
this.direction = Bcm.Direction.horizontal;
|
|
12
11
|
}
|
|
13
12
|
render() {
|
|
14
|
-
const {
|
|
15
|
-
const
|
|
16
|
-
|
|
17
|
-
});
|
|
18
|
-
return (h(Host, { class: hostClasses }, h("span", { hidden: true }, h("slot", null))));
|
|
13
|
+
const { direction } = this;
|
|
14
|
+
const { base } = dividerStyle({ direction });
|
|
15
|
+
return h(Host, { class: base() });
|
|
19
16
|
}
|
|
20
17
|
static get is() { return "bcm-divider"; }
|
|
21
|
-
static get originalStyleUrls() {
|
|
22
|
-
return {
|
|
23
|
-
"$": ["divider.scss"]
|
|
24
|
-
};
|
|
25
|
-
}
|
|
26
|
-
static get styleUrls() {
|
|
27
|
-
return {
|
|
28
|
-
"$": ["divider.css"]
|
|
29
|
-
};
|
|
30
|
-
}
|
|
31
18
|
static get properties() {
|
|
32
19
|
return {
|
|
33
|
-
"hidden": {
|
|
34
|
-
"type": "boolean",
|
|
35
|
-
"mutable": true,
|
|
36
|
-
"complexType": {
|
|
37
|
-
"original": "boolean",
|
|
38
|
-
"resolved": "boolean",
|
|
39
|
-
"references": {}
|
|
40
|
-
},
|
|
41
|
-
"required": false,
|
|
42
|
-
"optional": false,
|
|
43
|
-
"docs": {
|
|
44
|
-
"tags": [],
|
|
45
|
-
"text": ""
|
|
46
|
-
},
|
|
47
|
-
"attribute": "hidden",
|
|
48
|
-
"reflect": false,
|
|
49
|
-
"defaultValue": "false"
|
|
50
|
-
},
|
|
51
20
|
"direction": {
|
|
52
21
|
"type": "string",
|
|
53
|
-
"mutable":
|
|
22
|
+
"mutable": false,
|
|
54
23
|
"complexType": {
|
|
55
24
|
"original": "DirectionTypes",
|
|
56
25
|
"resolved": "\"horizontal\" | \"vertical\"",
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Built with Stencil
|
|
3
|
+
* Copyright (c) Bromcom.
|
|
4
|
+
*/
|
|
5
|
+
import { tv } from "tailwind-variants";
|
|
6
|
+
export const dividerStyle = tv({
|
|
7
|
+
slots: {
|
|
8
|
+
base: "bcm-divider bcm-ui-element bcm-ui-divider tw-block tw-border-color-default",
|
|
9
|
+
},
|
|
10
|
+
variants: {
|
|
11
|
+
direction: {
|
|
12
|
+
horizontal: "bcm-divider__direction-horizontal tw-border-b tw-w-full tw-h-px tw-my-1",
|
|
13
|
+
vertical: "bcm-divider__direction-vertical tw-border-l tw-h-full tw-w-px tw-mx-1",
|
|
14
|
+
},
|
|
15
|
+
},
|
|
16
|
+
defaultVariants: {
|
|
17
|
+
direction: "horizontal",
|
|
18
|
+
},
|
|
19
|
+
});
|