@otto-de/b2b-core-components 1.22.0 → 1.23.1
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/b2b-core-components/b2b-core-components.css +1 -1
- package/dist/b2b-core-components/b2b-core-components.esm.js +1 -1
- package/dist/b2b-core-components/p-01aea1a4.entry.js +1 -0
- package/dist/b2b-core-components/p-0f5b8f0f.entry.js +1 -0
- package/dist/b2b-core-components/p-191b7d0b.entry.js +1 -0
- package/dist/b2b-core-components/p-1ac1ed23.entry.js +1 -0
- package/dist/b2b-core-components/p-1cbf75dd.entry.js +1 -0
- package/dist/b2b-core-components/p-247b295d.entry.js +1 -0
- package/dist/b2b-core-components/p-25fa6d92.entry.js +1 -0
- package/dist/b2b-core-components/p-2610db01.entry.js +1 -0
- package/dist/b2b-core-components/p-28674643.entry.js +1 -0
- package/dist/b2b-core-components/p-2a80fb82.entry.js +1 -0
- package/dist/b2b-core-components/p-30dce961.entry.js +1 -0
- package/dist/b2b-core-components/p-333969c9.entry.js +1 -0
- package/dist/b2b-core-components/p-339dd3ba.entry.js +1 -0
- package/dist/b2b-core-components/p-371efcb7.entry.js +1 -0
- package/dist/b2b-core-components/{p-928ab618.entry.js → p-37cdfc83.entry.js} +1 -1
- package/dist/b2b-core-components/p-3caed6e8.entry.js +1 -0
- package/dist/b2b-core-components/p-438ab795.entry.js +1 -0
- package/dist/b2b-core-components/p-44d5a9d3.entry.js +1 -0
- package/dist/b2b-core-components/p-47081742.entry.js +1 -0
- package/dist/b2b-core-components/{p-ffff2d15.entry.js → p-48d75dc1.entry.js} +1 -1
- package/dist/b2b-core-components/p-4cfb4131.entry.js +1 -0
- package/dist/b2b-core-components/p-56293400.entry.js +1 -0
- package/dist/b2b-core-components/p-572f9f64.entry.js +1 -0
- package/dist/b2b-core-components/p-74c0757b.entry.js +1 -0
- package/dist/b2b-core-components/p-8967cc6c.entry.js +1 -0
- package/dist/b2b-core-components/p-8fa70a00.entry.js +1 -0
- package/dist/b2b-core-components/{p-ef01f7b2.entry.js → p-921e7a37.entry.js} +1 -1
- package/dist/b2b-core-components/p-925553cd.entry.js +1 -0
- package/dist/b2b-core-components/p-928e7db4.entry.js +1 -0
- package/dist/b2b-core-components/p-95570f8e.entry.js +1 -0
- package/dist/b2b-core-components/p-95d3519f.entry.js +1 -0
- package/dist/b2b-core-components/p-96968c24.entry.js +1 -0
- package/dist/b2b-core-components/p-96bde9dd.entry.js +1 -0
- package/dist/b2b-core-components/p-992dd377.entry.js +1 -0
- package/dist/b2b-core-components/p-9a6c243e.entry.js +1 -0
- package/dist/b2b-core-components/p-9c055a4e.entry.js +1 -0
- package/dist/b2b-core-components/p-9de02b91.entry.js +1 -0
- package/dist/b2b-core-components/p-a033a6b5.entry.js +1 -0
- package/dist/b2b-core-components/p-a0ab40f0.entry.js +1 -0
- package/dist/b2b-core-components/p-ae71a78f.entry.js +1 -0
- package/dist/b2b-core-components/p-b6916793.entry.js +1 -0
- package/dist/b2b-core-components/p-bf8db809.entry.js +1 -0
- package/dist/b2b-core-components/p-c1135326.entry.js +1 -0
- package/dist/b2b-core-components/p-c3d76d28.entry.js +1 -0
- package/dist/b2b-core-components/{p-212fa6a0.entry.js → p-cab7c805.entry.js} +1 -1
- package/dist/b2b-core-components/p-cc0ad9b7.entry.js +1 -0
- package/dist/b2b-core-components/p-d56a8c1a.entry.js +1 -0
- package/dist/b2b-core-components/p-d895f199.entry.js +1 -0
- package/dist/b2b-core-components/p-e4359302.entry.js +1 -0
- package/dist/b2b-core-components/p-ec4f82b1.entry.js +1 -0
- package/dist/b2b-core-components/p-f6bd827c.entry.js +1 -0
- package/dist/b2b-core-components/p-fbd31067.entry.js +1 -0
- package/dist/b2b-core-components/p-fdfdc92d.entry.js +1 -0
- package/dist/cjs/b2b-alert.cjs.entry.js +4 -4
- package/dist/cjs/b2b-anchor.cjs.entry.js +1 -1
- package/dist/cjs/b2b-background-box.cjs.entry.js +11 -3
- package/dist/cjs/b2b-breadcrumb-item.cjs.entry.js +1 -1
- package/dist/cjs/b2b-breadcrumb.cjs.entry.js +1 -1
- package/dist/cjs/b2b-button_2.cjs.entry.js +5 -5
- package/dist/cjs/b2b-card.cjs.entry.js +1 -1
- package/dist/cjs/b2b-checkbox-group.cjs.entry.js +1 -1
- package/dist/cjs/b2b-checkbox.cjs.entry.js +1 -1
- package/dist/cjs/b2b-chip-component_2.cjs.entry.js +2 -2
- package/dist/cjs/b2b-core-components.cjs.js +1 -1
- package/dist/cjs/b2b-date-picker-days_5.cjs.entry.js +9 -9
- package/dist/cjs/b2b-date-picker.cjs.entry.js +3 -3
- package/dist/cjs/b2b-dropdown.cjs.entry.js +1 -1
- package/dist/cjs/b2b-flyout-menu-option.cjs.entry.js +1 -1
- package/dist/cjs/b2b-flyout-menu.cjs.entry.js +1 -1
- package/dist/cjs/b2b-grid-col.cjs.entry.js +7 -18
- package/dist/cjs/b2b-grid-row.cjs.entry.js +33 -2
- package/dist/cjs/b2b-headline.cjs.entry.js +1 -1
- package/dist/cjs/b2b-icon-100.cjs.entry.js +1 -1
- package/dist/cjs/b2b-icon-50.cjs.entry.js +1 -1
- package/dist/cjs/b2b-icon.cjs.entry.js +1 -1
- package/dist/cjs/b2b-input-group_2.cjs.entry.js +3 -3
- package/dist/cjs/b2b-input_2.cjs.entry.js +9 -6
- package/dist/cjs/b2b-label.cjs.entry.js +1 -1
- package/dist/cjs/b2b-modal.cjs.entry.js +2 -2
- package/dist/cjs/b2b-multiselect-dropdown.cjs.entry.js +3 -3
- package/dist/cjs/b2b-pagination.cjs.entry.js +1 -1
- package/dist/cjs/b2b-paragraph.cjs.entry.js +1 -1
- package/dist/cjs/b2b-progress-bar.cjs.entry.js +1 -1
- package/dist/cjs/b2b-radio-button.cjs.entry.js +1 -1
- package/dist/cjs/b2b-radio-group.cjs.entry.js +1 -1
- package/dist/cjs/b2b-required-separator.cjs.entry.js +1 -1
- package/dist/cjs/b2b-rounded-icon.cjs.entry.js +1 -1
- package/dist/cjs/b2b-scrollable-container.cjs.entry.js +1 -1
- package/dist/cjs/b2b-search.cjs.entry.js +1 -1
- package/dist/cjs/b2b-separator.cjs.entry.js +1 -1
- package/dist/cjs/b2b-snackbar.cjs.entry.js +111 -0
- package/dist/cjs/b2b-tab-group.cjs.entry.js +1 -1
- package/dist/cjs/b2b-tab-panel.cjs.entry.js +2 -2
- package/dist/cjs/b2b-tab.cjs.entry.js +3 -3
- package/dist/cjs/b2b-table-cell_2.cjs.entry.js +5 -5
- package/dist/cjs/b2b-table-row.cjs.entry.js +7 -17
- package/dist/cjs/b2b-table-rowgroup.cjs.entry.js +3 -3
- package/dist/cjs/b2b-table.cjs.entry.js +3 -3
- package/dist/cjs/b2b-textarea.cjs.entry.js +3 -3
- package/dist/cjs/b2b-toggle-button.cjs.entry.js +4 -4
- package/dist/cjs/b2b-toggle-chip.cjs.entry.js +6 -7
- package/dist/cjs/b2b-toggle-group.cjs.entry.js +3 -3
- package/dist/cjs/b2b-toggle-switch.cjs.entry.js +5 -5
- package/dist/cjs/b2b-tooltip.cjs.entry.js +4 -4
- package/dist/cjs/b2b-wizard-icon.cjs.entry.js +3 -3
- package/dist/cjs/b2b-wizard-step.cjs.entry.js +3 -3
- package/dist/cjs/b2b-wizard.cjs.entry.js +2 -2
- package/dist/cjs/index-668808fd.js +8 -4
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/collection/collection-manifest.json +1 -0
- package/dist/collection/components/alert/alert.css +6 -4
- package/dist/collection/components/alert/alert.e2e.js +2 -2
- package/dist/collection/components/alert/alert.js +3 -3
- package/dist/collection/components/anchor/anchor.css +6 -4
- package/dist/collection/components/background-box/background-box.css +18 -4
- package/dist/collection/components/background-box/background-box.e2e.js +26 -0
- package/dist/collection/components/background-box/background-box.js +82 -2
- package/dist/collection/components/background-box/background-box.spec.js +19 -0
- package/dist/collection/components/background-box/background-box.stories.js +16 -2
- package/dist/collection/components/breadcrumb/breadcrumb.css +6 -4
- package/dist/collection/components/button/button.css +6 -4
- package/dist/collection/components/button/button.e2e.js +2 -2
- package/dist/collection/components/button/button.js +2 -2
- package/dist/collection/components/button/button.stories.js +3 -3
- package/dist/collection/components/card/card.css +6 -4
- package/dist/collection/components/checkbox/checkbox.css +6 -4
- package/dist/collection/components/checkbox-group/checkbox-group.css +6 -4
- package/dist/collection/components/chip/chip.css +6 -4
- package/dist/collection/components/date-picker/date-picker-days-header.css +6 -4
- package/dist/collection/components/date-picker/date-picker-days.css +8 -6
- package/dist/collection/components/date-picker/date-picker-header.css +9 -7
- package/dist/collection/components/date-picker/date-picker-header.js +4 -4
- package/dist/collection/components/date-picker/date-picker-months.css +7 -5
- package/dist/collection/components/date-picker/date-picker-years.css +7 -5
- package/dist/collection/components/date-picker/date-picker.css +6 -4
- package/dist/collection/components/date-picker/date-picker.js +2 -2
- package/dist/collection/components/date-picker/date-picker.stories.js +9 -9
- package/dist/collection/components/dropdown/dropdown.css +6 -4
- package/dist/collection/components/flyout-menu/flyout-menu-option.css +7 -5
- package/dist/collection/components/flyout-menu/flyout-menu.css +7 -5
- package/dist/collection/components/flyout-menu/flyout-menu.e2e.js +6 -6
- package/dist/collection/components/flyout-menu/flyout-menu.stories.js +4 -4
- package/dist/collection/components/grid/column.js +7 -18
- package/dist/collection/components/grid/grid.stories.js +223 -222
- package/dist/collection/components/grid/row.js +33 -2
- package/dist/collection/components/headline/headline.css +6 -4
- package/dist/collection/components/icon/icon.css +6 -4
- package/dist/collection/components/icon-100/icon-100.css +6 -4
- package/dist/collection/components/icon-50/icon-50.css +6 -4
- package/dist/collection/components/input/input.css +6 -4
- package/dist/collection/components/input/input.e2e.js +10 -0
- package/dist/collection/components/input/input.js +7 -4
- package/dist/collection/components/input/input.stories.js +22 -2
- package/dist/collection/components/input-group/input-group.css +6 -4
- package/dist/collection/components/input-group/input-group.e2e.js +1 -1
- package/dist/collection/components/input-group/input-group.stories.js +1 -1
- package/dist/collection/components/input-list/input-list.css +8 -6
- package/dist/collection/components/input-list/input-list.e2e.js +6 -6
- package/dist/collection/components/input-list/input-list.js +1 -1
- package/dist/collection/components/label/label.css +6 -4
- package/dist/collection/components/modal/modal.css +7 -5
- package/dist/collection/components/modal/modal.e2e.js +2 -2
- package/dist/collection/components/modal/modal.js +1 -1
- package/dist/collection/components/multiselect-dropdown/multiselect-dropdown.css +6 -4
- package/dist/collection/components/multiselect-dropdown/multiselect-dropdown.js +2 -2
- package/dist/collection/components/multiselect-dropdown/multiselect-option/multiselect-option.css +1 -1
- package/dist/collection/components/pagination/pagination.css +6 -4
- package/dist/collection/components/paragraph/paragraph.css +6 -4
- package/dist/collection/components/progress-bar/progress-bar.css +6 -4
- package/dist/collection/components/radio/radio.css +6 -4
- package/dist/collection/components/radio-group/radio-group.css +6 -4
- package/dist/collection/components/required-separator/required-separator.css +6 -4
- package/dist/collection/components/rounded-icon/rounded-icon.css +6 -4
- package/dist/collection/components/rounded-icon/rounded-icon.stories.js +1 -1
- package/dist/collection/components/scrollable-container/scrollable-container.css +6 -4
- package/dist/collection/components/search/search.js +1 -1
- package/dist/collection/components/search/search.stories.js +1 -1
- package/dist/collection/components/separator/separator.css +6 -4
- package/dist/collection/components/snackbar/snackbar.css +337 -0
- package/dist/collection/components/snackbar/snackbar.e2e.js +63 -0
- package/dist/collection/components/snackbar/snackbar.js +273 -0
- package/dist/collection/components/snackbar/snackbar.stories.js +89 -0
- package/dist/collection/components/spinner/spinner.css +6 -4
- package/dist/collection/components/spinner/spinner.js +1 -1
- package/dist/collection/components/tab/tab.css +6 -4
- package/dist/collection/components/tab/tab.js +2 -2
- package/dist/collection/components/tab-group/tab-group.js +1 -1
- package/dist/collection/components/tab-group/tab-group.stories.js +1 -1
- package/dist/collection/components/tab-panel/tab-panel.css +6 -4
- package/dist/collection/components/tab-panel/tab-panel.js +1 -1
- package/dist/collection/components/table/table-cell/table-cell.css +6 -4
- package/dist/collection/components/table/table-cell/table-cell.js +2 -2
- package/dist/collection/components/table/table-header/table-header.css +6 -4
- package/dist/collection/components/table/table-header/table-header.js +1 -1
- package/dist/collection/components/table/table-row/table-row.css +10 -8
- package/dist/collection/components/table/table-row/table-row.js +6 -16
- package/dist/collection/components/table/table-rowgroup/table-rowgroup.css +6 -4
- package/dist/collection/components/table/table-rowgroup/table-rowgroup.js +2 -2
- package/dist/collection/components/table/table.css +6 -4
- package/dist/collection/components/table/table.js +2 -2
- package/dist/collection/components/textarea/textarea.css +6 -4
- package/dist/collection/components/textarea/textarea.js +2 -2
- package/dist/collection/components/toggle-button/toggle-button.css +6 -4
- package/dist/collection/components/toggle-button/toggle-button.js +3 -3
- package/dist/collection/components/toggle-chip/toggle-chip.css +37 -20
- package/dist/collection/components/toggle-chip/toggle-chip.js +5 -24
- package/dist/collection/components/toggle-chip/toggle-chip.stories.js +51 -0
- package/dist/collection/components/toggle-group/toggle-group.css +6 -4
- package/dist/collection/components/toggle-group/toggle-group.js +2 -2
- package/dist/collection/components/toggle-switch/toggle-switch.css +6 -4
- package/dist/collection/components/toggle-switch/toggle-switch.js +4 -4
- package/dist/collection/components/tooltip/tooltip.css +6 -4
- package/dist/collection/components/tooltip/tooltip.js +3 -3
- package/dist/collection/components/tooltip/tooltip.stories.js +3 -3
- package/dist/collection/components/wizard/wizard-step.js +2 -2
- package/dist/collection/components/wizard/wizard.css +6 -4
- package/dist/collection/components/wizard/wizard.js +1 -1
- package/dist/collection/components/wizard-icon/wizard-icon.css +6 -4
- package/dist/collection/components/wizard-icon/wizard-icon.js +2 -2
- package/dist/components/b2b-alert.js +7 -7
- package/dist/components/b2b-anchor.js +1 -1
- package/dist/components/b2b-background-box.js +16 -4
- package/dist/components/b2b-breadcrumb-item.js +1 -1
- package/dist/components/b2b-breadcrumb.js +1 -1
- package/dist/components/b2b-card.js +1 -1
- package/dist/components/b2b-checkbox-group.js +1 -1
- package/dist/components/b2b-date-picker.js +6 -6
- package/dist/components/b2b-dropdown.js +1 -1
- package/dist/components/b2b-flyout-menu-option.js +1 -1
- package/dist/components/b2b-flyout-menu.js +1 -1
- package/dist/components/b2b-grid-col.js +7 -18
- package/dist/components/b2b-grid-row.js +33 -2
- package/dist/components/b2b-icon-100.js +1 -411
- package/dist/components/b2b-icon-50.js +1 -1
- package/dist/components/b2b-icon.js +444 -1
- package/dist/components/b2b-label.js +1 -1
- package/dist/components/b2b-modal.js +5 -5
- package/dist/components/b2b-multiselect-dropdown.js +6 -6
- package/dist/components/b2b-pagination.js +1 -1
- package/dist/components/b2b-paragraph.js +1 -1
- package/dist/components/b2b-progress-bar.js +1 -1
- package/dist/components/b2b-radio-button.js +1 -1
- package/dist/components/b2b-radio-group.js +1 -1
- package/dist/components/b2b-required-separator.js +1 -1
- package/dist/components/b2b-scrollable-container.js +1 -1
- package/dist/components/b2b-search.js +4 -4
- package/dist/components/b2b-snackbar.d.ts +11 -0
- package/dist/components/b2b-snackbar.js +141 -0
- package/dist/components/b2b-tab-group.js +1 -1
- package/dist/components/b2b-tab-panel.js +2 -2
- package/dist/components/b2b-tab.js +3 -3
- package/dist/components/b2b-table-row.js +10 -20
- package/dist/components/b2b-table-rowgroup.js +3 -3
- package/dist/components/b2b-table.js +3 -3
- package/dist/components/b2b-textarea.js +3 -3
- package/dist/components/b2b-toggle-button.js +4 -4
- package/dist/components/b2b-toggle-chip.js +6 -8
- package/dist/components/b2b-toggle-group.js +3 -3
- package/dist/components/b2b-toggle-switch.js +5 -5
- package/dist/components/b2b-tooltip.js +4 -4
- package/dist/components/b2b-wizard-step.js +6 -6
- package/dist/components/b2b-wizard.js +2 -2
- package/dist/components/button.js +3 -3
- package/dist/components/checkbox.js +1 -1
- package/dist/components/chip.js +1 -1
- package/dist/components/date-picker-days-header.js +1 -1
- package/dist/components/date-picker-days.js +1 -1
- package/dist/components/date-picker-header.js +8 -8
- package/dist/components/date-picker-months.js +1 -1
- package/dist/components/date-picker-years.js +1 -1
- package/dist/components/headline.js +1 -1
- package/dist/components/{icon.js → icon-100.js} +23 -56
- package/dist/components/input-group.js +1 -1
- package/dist/components/input-list-option.js +1 -1
- package/dist/components/input-list.js +5 -5
- package/dist/components/input.js +8 -5
- package/dist/components/multiselect-option.js +1 -1
- package/dist/components/rounded-icon.js +1 -1
- package/dist/components/separator.js +1 -1
- package/dist/components/spinner.js +2 -2
- package/dist/components/table-cell.js +3 -3
- package/dist/components/table-header.js +2 -2
- package/dist/components/wizard-icon.js +6 -6
- package/dist/custom-elements.json +99 -12
- package/dist/esm/b2b-alert.entry.js +4 -4
- package/dist/esm/b2b-anchor.entry.js +1 -1
- package/dist/esm/b2b-background-box.entry.js +11 -3
- package/dist/esm/b2b-breadcrumb-item.entry.js +1 -1
- package/dist/esm/b2b-breadcrumb.entry.js +1 -1
- package/dist/esm/b2b-button_2.entry.js +5 -5
- package/dist/esm/b2b-card.entry.js +1 -1
- package/dist/esm/b2b-checkbox-group.entry.js +1 -1
- package/dist/esm/b2b-checkbox.entry.js +1 -1
- package/dist/esm/b2b-chip-component_2.entry.js +2 -2
- package/dist/esm/b2b-core-components.js +1 -1
- package/dist/esm/b2b-date-picker-days_5.entry.js +9 -9
- package/dist/esm/b2b-date-picker.entry.js +3 -3
- package/dist/esm/b2b-dropdown.entry.js +1 -1
- package/dist/esm/b2b-flyout-menu-option.entry.js +1 -1
- package/dist/esm/b2b-flyout-menu.entry.js +1 -1
- package/dist/esm/b2b-grid-col.entry.js +7 -18
- package/dist/esm/b2b-grid-row.entry.js +33 -2
- package/dist/esm/b2b-headline.entry.js +1 -1
- package/dist/esm/b2b-icon-100.entry.js +1 -1
- package/dist/esm/b2b-icon-50.entry.js +1 -1
- package/dist/esm/b2b-icon.entry.js +1 -1
- package/dist/esm/b2b-input-group_2.entry.js +3 -3
- package/dist/esm/b2b-input_2.entry.js +9 -6
- package/dist/esm/b2b-label.entry.js +1 -1
- package/dist/esm/b2b-modal.entry.js +2 -2
- package/dist/esm/b2b-multiselect-dropdown.entry.js +3 -3
- package/dist/esm/b2b-pagination.entry.js +1 -1
- package/dist/esm/b2b-paragraph.entry.js +1 -1
- package/dist/esm/b2b-progress-bar.entry.js +1 -1
- package/dist/esm/b2b-radio-button.entry.js +1 -1
- package/dist/esm/b2b-radio-group.entry.js +1 -1
- package/dist/esm/b2b-required-separator.entry.js +1 -1
- package/dist/esm/b2b-rounded-icon.entry.js +1 -1
- package/dist/esm/b2b-scrollable-container.entry.js +1 -1
- package/dist/esm/b2b-search.entry.js +1 -1
- package/dist/esm/b2b-separator.entry.js +1 -1
- package/dist/esm/b2b-snackbar.entry.js +107 -0
- package/dist/esm/b2b-tab-group.entry.js +1 -1
- package/dist/esm/b2b-tab-panel.entry.js +2 -2
- package/dist/esm/b2b-tab.entry.js +3 -3
- package/dist/esm/b2b-table-cell_2.entry.js +5 -5
- package/dist/esm/b2b-table-row.entry.js +7 -17
- package/dist/esm/b2b-table-rowgroup.entry.js +3 -3
- package/dist/esm/b2b-table.entry.js +3 -3
- package/dist/esm/b2b-textarea.entry.js +3 -3
- package/dist/esm/b2b-toggle-button.entry.js +4 -4
- package/dist/esm/b2b-toggle-chip.entry.js +6 -7
- package/dist/esm/b2b-toggle-group.entry.js +3 -3
- package/dist/esm/b2b-toggle-switch.entry.js +5 -5
- package/dist/esm/b2b-tooltip.entry.js +4 -4
- package/dist/esm/b2b-wizard-icon.entry.js +3 -3
- package/dist/esm/b2b-wizard-step.entry.js +3 -3
- package/dist/esm/b2b-wizard.entry.js +2 -2
- package/dist/esm/index-ab9eb36d.js +8 -4
- package/dist/esm/loader.js +1 -1
- package/dist/types/components/background-box/background-box.d.ts +8 -0
- package/dist/types/components/background-box/background-box.stories.d.ts +1 -0
- package/dist/types/components/grid/grid.stories.d.ts +8 -7
- package/dist/types/components/grid/row.d.ts +2 -0
- package/dist/types/components/input/input.d.ts +2 -0
- package/dist/types/components/input/input.stories.d.ts +1 -0
- package/dist/types/components/snackbar/snackbar.d.ts +36 -0
- package/dist/types/components/snackbar/snackbar.stories.d.ts +9 -0
- package/dist/types/components/table/table-row/table-row.d.ts +0 -2
- package/dist/types/components/toggle-chip/toggle-chip.d.ts +0 -2
- package/dist/types/components/toggle-chip/toggle-chip.stories.d.ts +8 -0
- package/dist/types/components/tooltip/tooltip.stories.d.ts +2 -2
- package/dist/types/components.d.ts +125 -8
- package/dist/web-types.json +143 -11
- package/package.json +2 -2
- package/dist/b2b-core-components/p-01c05f0c.entry.js +0 -1
- package/dist/b2b-core-components/p-029da6d8.entry.js +0 -1
- package/dist/b2b-core-components/p-05ad52a3.entry.js +0 -1
- package/dist/b2b-core-components/p-078a9f04.entry.js +0 -1
- package/dist/b2b-core-components/p-15988a15.entry.js +0 -1
- package/dist/b2b-core-components/p-1930be42.entry.js +0 -1
- package/dist/b2b-core-components/p-19b5503c.entry.js +0 -1
- package/dist/b2b-core-components/p-1c048a27.entry.js +0 -1
- package/dist/b2b-core-components/p-20d53606.entry.js +0 -1
- package/dist/b2b-core-components/p-228e1449.entry.js +0 -1
- package/dist/b2b-core-components/p-232acfe1.entry.js +0 -1
- package/dist/b2b-core-components/p-271d44a7.entry.js +0 -1
- package/dist/b2b-core-components/p-296f824d.entry.js +0 -1
- package/dist/b2b-core-components/p-2bab8c7f.entry.js +0 -1
- package/dist/b2b-core-components/p-2c8f2fa9.entry.js +0 -1
- package/dist/b2b-core-components/p-3665d675.entry.js +0 -1
- package/dist/b2b-core-components/p-3ef45a4b.entry.js +0 -1
- package/dist/b2b-core-components/p-3ffba273.entry.js +0 -1
- package/dist/b2b-core-components/p-48e693a5.entry.js +0 -1
- package/dist/b2b-core-components/p-5958af69.entry.js +0 -1
- package/dist/b2b-core-components/p-5a7e3db7.entry.js +0 -1
- package/dist/b2b-core-components/p-6e031b32.entry.js +0 -1
- package/dist/b2b-core-components/p-6f3a6904.entry.js +0 -1
- package/dist/b2b-core-components/p-7264f359.entry.js +0 -1
- package/dist/b2b-core-components/p-744e8fc3.entry.js +0 -1
- package/dist/b2b-core-components/p-752d38c8.entry.js +0 -1
- package/dist/b2b-core-components/p-7afbfa3b.entry.js +0 -1
- package/dist/b2b-core-components/p-7e59c92f.entry.js +0 -1
- package/dist/b2b-core-components/p-88c0c97c.entry.js +0 -1
- package/dist/b2b-core-components/p-92a809de.entry.js +0 -1
- package/dist/b2b-core-components/p-94f80a44.entry.js +0 -1
- package/dist/b2b-core-components/p-9f453acb.entry.js +0 -1
- package/dist/b2b-core-components/p-a37ad232.entry.js +0 -1
- package/dist/b2b-core-components/p-ad0df2f2.entry.js +0 -1
- package/dist/b2b-core-components/p-b03d197a.entry.js +0 -1
- package/dist/b2b-core-components/p-b045e097.entry.js +0 -1
- package/dist/b2b-core-components/p-b368015e.entry.js +0 -1
- package/dist/b2b-core-components/p-c03d0533.entry.js +0 -1
- package/dist/b2b-core-components/p-c10ee62f.entry.js +0 -1
- package/dist/b2b-core-components/p-c365567c.entry.js +0 -1
- package/dist/b2b-core-components/p-c97990e8.entry.js +0 -1
- package/dist/b2b-core-components/p-cad3574a.entry.js +0 -1
- package/dist/b2b-core-components/p-cd520262.entry.js +0 -1
- package/dist/b2b-core-components/p-d0035d7d.entry.js +0 -1
- package/dist/b2b-core-components/p-d3a04423.entry.js +0 -1
- package/dist/b2b-core-components/p-db67d6f7.entry.js +0 -1
- package/dist/b2b-core-components/p-f1287a36.entry.js +0 -1
- package/dist/b2b-core-components/p-f8f280fc.entry.js +0 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Do not edit directly
|
|
3
|
-
* Generated on Thu,
|
|
3
|
+
* Generated on Thu, 20 Feb 2025 15:47:48 GMT
|
|
4
4
|
*/
|
|
5
5
|
:root, :host {
|
|
6
6
|
--b2b-size-200: 5rem; /* 80px */
|
|
@@ -35,7 +35,8 @@
|
|
|
35
35
|
--b2b-color-table-selected-default: #cce9ff;
|
|
36
36
|
--b2b-color-background-overlay-transparent-40: rgba(34, 34, 34, 0.25);
|
|
37
37
|
--b2b-color-background-overlay-transparent-80: rgba(34, 34, 34, 0.5);
|
|
38
|
-
--b2b-color-hover: #
|
|
38
|
+
--b2b-color-hover-black: #3b3b3b;
|
|
39
|
+
--b2b-color-hover-default: #e6f4ff;
|
|
39
40
|
--b2b-color-info-100: #003264;
|
|
40
41
|
--b2b-color-info-50: #ccd6e0;
|
|
41
42
|
--b2b-color-success-100: #326400;
|
|
@@ -122,7 +123,7 @@
|
|
|
122
123
|
}
|
|
123
124
|
/**
|
|
124
125
|
* Do not edit directly
|
|
125
|
-
* Generated on Thu,
|
|
126
|
+
* Generated on Thu, 20 Feb 2025 15:47:48 GMT
|
|
126
127
|
*/
|
|
127
128
|
:root [data-theme="dark"] {
|
|
128
129
|
--b2b-size-200: 5rem; /* 80px */
|
|
@@ -153,7 +154,8 @@
|
|
|
153
154
|
--b2b-font-weight-normal: 500;
|
|
154
155
|
--b2b-font-weight-thin: 100;
|
|
155
156
|
--b2b-font-family-default: OttoSans, Arial, Helvetica, sans-serif;
|
|
156
|
-
--b2b-color-hover: #
|
|
157
|
+
--b2b-color-hover-black: #3b3b3b;
|
|
158
|
+
--b2b-color-hover-default: #e6f4ff;
|
|
157
159
|
--b2b-color-info-100: #003264;
|
|
158
160
|
--b2b-color-info-50: #ccd6e0;
|
|
159
161
|
--b2b-color-success-100: #326400;
|
|
@@ -247,10 +249,10 @@
|
|
|
247
249
|
background-color: inherit;
|
|
248
250
|
}
|
|
249
251
|
:host(.b2b-table-row--highlight:hover) {
|
|
250
|
-
background-color: var(--b2b-color-hover);
|
|
252
|
+
background-color: var(--b2b-color-hover-default);
|
|
251
253
|
}
|
|
252
254
|
:host(.b2b-table-row--highlight:hover) ::slotted(*) {
|
|
253
|
-
--b2b-table-cell-text-expand-bg: var(--b2b-color-hover);
|
|
255
|
+
--b2b-table-cell-text-expand-bg: var(--b2b-color-hover-default);
|
|
254
256
|
}
|
|
255
257
|
:host(.b2b-table-row--color-selected:hover) {
|
|
256
258
|
background-color: var(--b2b-color-table-selected-default);
|
|
@@ -259,10 +261,10 @@
|
|
|
259
261
|
--b2b-table-cell-text-expand-bg: var(--b2b-color-table-selected-default);
|
|
260
262
|
}
|
|
261
263
|
:host(.b2b-table-row--color-group:hover) {
|
|
262
|
-
background-color: var(--b2b-color-hover);
|
|
264
|
+
background-color: var(--b2b-color-hover-default);
|
|
263
265
|
}
|
|
264
266
|
:host(.b2b-table-row--color-group:hover) ::slotted(*) {
|
|
265
|
-
--b2b-table-cell-text-expand-bg: var(--b2b-color-hover);
|
|
267
|
+
--b2b-table-cell-text-expand-bg: var(--b2b-color-hover-default);
|
|
266
268
|
}
|
|
267
269
|
.b2b-table-row__control-cell--checkbox {
|
|
268
270
|
flex: 0 0 var(--b2b-size-40);
|
|
@@ -4,7 +4,6 @@ import { isFirstRow } from "../utils";
|
|
|
4
4
|
export class TableRowComponent {
|
|
5
5
|
constructor() {
|
|
6
6
|
this.parentRowGroup = null;
|
|
7
|
-
this.observer = null;
|
|
8
7
|
this.toggleOpen = () => {
|
|
9
8
|
this.isOpen = !this.isOpen;
|
|
10
9
|
this.b2bOpen.emit(this.isOpen);
|
|
@@ -55,7 +54,7 @@ export class TableRowComponent {
|
|
|
55
54
|
return (h("b2b-table-cell", null, h("button", { onClick: this.toggleOpen, class: {
|
|
56
55
|
'b2b-table-row__accordion-icon': true,
|
|
57
56
|
'b2b-table-row__accordion-icon--open': this.isOpen,
|
|
58
|
-
} }, h("b2b-icon", { icon: "b2b_icon-arrow-right", clickable: true }))));
|
|
57
|
+
} }, h("b2b-icon-100", { icon: "b2b_icon-arrow-right", clickable: true }))));
|
|
59
58
|
}
|
|
60
59
|
return (h("b2b-table-cell", { class: "b2b-table-row__control-cell--accordion" }));
|
|
61
60
|
}
|
|
@@ -99,33 +98,24 @@ export class TableRowComponent {
|
|
|
99
98
|
}
|
|
100
99
|
this.findParentAndObserve();
|
|
101
100
|
}
|
|
102
|
-
disconnectedCallback() {
|
|
103
|
-
if (this.observer !== undefined && this.observer !== null) {
|
|
104
|
-
this.observer.disconnect();
|
|
105
|
-
this.observer = null;
|
|
106
|
-
}
|
|
107
|
-
}
|
|
108
101
|
findParentAndObserve() {
|
|
102
|
+
var _a;
|
|
109
103
|
this.parentRowGroup = this.hostElement.closest('b2b-table-rowgroup');
|
|
110
104
|
if (this.parentRowGroup !== undefined && this.parentRowGroup !== null) {
|
|
111
|
-
this.
|
|
112
|
-
|
|
113
|
-
this.isAccordionValue =
|
|
114
|
-
((_a = this.parentRowGroup) === null || _a === void 0 ? void 0 : _a.hasAttribute('accordion')) || false;
|
|
115
|
-
});
|
|
116
|
-
this.observer.observe(this.parentRowGroup, { attributes: true });
|
|
105
|
+
this.isAccordionValue =
|
|
106
|
+
((_a = this.parentRowGroup) === null || _a === void 0 ? void 0 : _a.hasAttribute('accordion')) || false;
|
|
117
107
|
}
|
|
118
108
|
else {
|
|
119
109
|
console.warn('Parent b2b-table-rowgroup not found!');
|
|
120
110
|
}
|
|
121
111
|
}
|
|
122
112
|
render() {
|
|
123
|
-
return (h(Host, { key: '
|
|
113
|
+
return (h(Host, { key: '46eb2abeb36b2127b2b29d97052cc0ed562267de', class: {
|
|
124
114
|
'b2b-table-row': true,
|
|
125
115
|
['b2b-table-row--colspan']: this.size === TableSizes.COLSPAN,
|
|
126
116
|
['b2b-table-row--highlight']: this.highlight,
|
|
127
117
|
[`b2b-table-row--color-${this.getRowColor()}`]: true,
|
|
128
|
-
}, role: "row" }, this.getAccordionColumns(), this.getCheckbox(), h("slot", { key: '
|
|
118
|
+
}, role: "row" }, this.getAccordionColumns(), this.getCheckbox(), h("slot", { key: 'caa67e57aee33113c108fe561722c9a72ba5fa3a' })));
|
|
129
119
|
}
|
|
130
120
|
static get is() { return "b2b-table-row"; }
|
|
131
121
|
static get encapsulation() { return "shadow"; }
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Do not edit directly
|
|
3
|
-
* Generated on Thu,
|
|
3
|
+
* Generated on Thu, 20 Feb 2025 15:47:48 GMT
|
|
4
4
|
*/
|
|
5
5
|
:root, :host {
|
|
6
6
|
--b2b-size-200: 5rem; /* 80px */
|
|
@@ -35,7 +35,8 @@
|
|
|
35
35
|
--b2b-color-table-selected-default: #cce9ff;
|
|
36
36
|
--b2b-color-background-overlay-transparent-40: rgba(34, 34, 34, 0.25);
|
|
37
37
|
--b2b-color-background-overlay-transparent-80: rgba(34, 34, 34, 0.5);
|
|
38
|
-
--b2b-color-hover: #
|
|
38
|
+
--b2b-color-hover-black: #3b3b3b;
|
|
39
|
+
--b2b-color-hover-default: #e6f4ff;
|
|
39
40
|
--b2b-color-info-100: #003264;
|
|
40
41
|
--b2b-color-info-50: #ccd6e0;
|
|
41
42
|
--b2b-color-success-100: #326400;
|
|
@@ -122,7 +123,7 @@
|
|
|
122
123
|
}
|
|
123
124
|
/**
|
|
124
125
|
* Do not edit directly
|
|
125
|
-
* Generated on Thu,
|
|
126
|
+
* Generated on Thu, 20 Feb 2025 15:47:48 GMT
|
|
126
127
|
*/
|
|
127
128
|
:root [data-theme="dark"] {
|
|
128
129
|
--b2b-size-200: 5rem; /* 80px */
|
|
@@ -153,7 +154,8 @@
|
|
|
153
154
|
--b2b-font-weight-normal: 500;
|
|
154
155
|
--b2b-font-weight-thin: 100;
|
|
155
156
|
--b2b-font-family-default: OttoSans, Arial, Helvetica, sans-serif;
|
|
156
|
-
--b2b-color-hover: #
|
|
157
|
+
--b2b-color-hover-black: #3b3b3b;
|
|
158
|
+
--b2b-color-hover-default: #e6f4ff;
|
|
157
159
|
--b2b-color-info-100: #003264;
|
|
158
160
|
--b2b-color-info-50: #ccd6e0;
|
|
159
161
|
--b2b-color-success-100: #326400;
|
|
@@ -113,11 +113,11 @@ export class TableRowgroupComponent {
|
|
|
113
113
|
this.makeHeaderRowNotSelectable();
|
|
114
114
|
}
|
|
115
115
|
render() {
|
|
116
|
-
return (h(Host, { key: '
|
|
116
|
+
return (h(Host, { key: 'b6d9983c2e9079720ebc3deebeda438af99697b4', class: {
|
|
117
117
|
['b2b-table-rowgroup__' + this.type]: true,
|
|
118
118
|
'b2b-table-rowgroup--fixed': this.fixed,
|
|
119
119
|
'b2b-table-rowgroup--colspan': this.size === TableSizes.COLSPAN,
|
|
120
|
-
}, role: "rowgroup" }, h("slot", { key: '
|
|
120
|
+
}, role: "rowgroup" }, h("slot", { key: '646cea0eb0a5845920ebcf6155466c714173d728' })));
|
|
121
121
|
}
|
|
122
122
|
static get is() { return "b2b-table-rowgroup"; }
|
|
123
123
|
static get encapsulation() { return "shadow"; }
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Do not edit directly
|
|
3
|
-
* Generated on Thu,
|
|
3
|
+
* Generated on Thu, 20 Feb 2025 15:47:48 GMT
|
|
4
4
|
*/
|
|
5
5
|
:root, :host {
|
|
6
6
|
--b2b-size-200: 5rem; /* 80px */
|
|
@@ -35,7 +35,8 @@
|
|
|
35
35
|
--b2b-color-table-selected-default: #cce9ff;
|
|
36
36
|
--b2b-color-background-overlay-transparent-40: rgba(34, 34, 34, 0.25);
|
|
37
37
|
--b2b-color-background-overlay-transparent-80: rgba(34, 34, 34, 0.5);
|
|
38
|
-
--b2b-color-hover: #
|
|
38
|
+
--b2b-color-hover-black: #3b3b3b;
|
|
39
|
+
--b2b-color-hover-default: #e6f4ff;
|
|
39
40
|
--b2b-color-info-100: #003264;
|
|
40
41
|
--b2b-color-info-50: #ccd6e0;
|
|
41
42
|
--b2b-color-success-100: #326400;
|
|
@@ -122,7 +123,7 @@
|
|
|
122
123
|
}
|
|
123
124
|
/**
|
|
124
125
|
* Do not edit directly
|
|
125
|
-
* Generated on Thu,
|
|
126
|
+
* Generated on Thu, 20 Feb 2025 15:47:48 GMT
|
|
126
127
|
*/
|
|
127
128
|
:root [data-theme="dark"] {
|
|
128
129
|
--b2b-size-200: 5rem; /* 80px */
|
|
@@ -153,7 +154,8 @@
|
|
|
153
154
|
--b2b-font-weight-normal: 500;
|
|
154
155
|
--b2b-font-weight-thin: 100;
|
|
155
156
|
--b2b-font-family-default: OttoSans, Arial, Helvetica, sans-serif;
|
|
156
|
-
--b2b-color-hover: #
|
|
157
|
+
--b2b-color-hover-black: #3b3b3b;
|
|
158
|
+
--b2b-color-hover-default: #e6f4ff;
|
|
157
159
|
--b2b-color-info-100: #003264;
|
|
158
160
|
--b2b-color-info-50: #ccd6e0;
|
|
159
161
|
--b2b-color-success-100: #326400;
|
|
@@ -60,9 +60,9 @@ export class TableComponent {
|
|
|
60
60
|
}
|
|
61
61
|
}
|
|
62
62
|
render() {
|
|
63
|
-
return (h(Host, { key: '
|
|
63
|
+
return (h(Host, { key: '7963f5d1f9e2ff75a7f5778af3a9384669d15b59', class: {
|
|
64
64
|
['b2b-table--' + this.size]: true,
|
|
65
|
-
}, role: "table" }, h("slot", { key: '
|
|
65
|
+
}, role: "table" }, h("slot", { key: '2ce636704650a87c6143dcc780f2d91f1ea129e7' })));
|
|
66
66
|
}
|
|
67
67
|
static get is() { return "b2b-table"; }
|
|
68
68
|
static get encapsulation() { return "shadow"; }
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Do not edit directly
|
|
3
|
-
* Generated on Thu,
|
|
3
|
+
* Generated on Thu, 20 Feb 2025 15:47:48 GMT
|
|
4
4
|
*/
|
|
5
5
|
:root, :host {
|
|
6
6
|
--b2b-size-200: 5rem; /* 80px */
|
|
@@ -35,7 +35,8 @@
|
|
|
35
35
|
--b2b-color-table-selected-default: #cce9ff;
|
|
36
36
|
--b2b-color-background-overlay-transparent-40: rgba(34, 34, 34, 0.25);
|
|
37
37
|
--b2b-color-background-overlay-transparent-80: rgba(34, 34, 34, 0.5);
|
|
38
|
-
--b2b-color-hover: #
|
|
38
|
+
--b2b-color-hover-black: #3b3b3b;
|
|
39
|
+
--b2b-color-hover-default: #e6f4ff;
|
|
39
40
|
--b2b-color-info-100: #003264;
|
|
40
41
|
--b2b-color-info-50: #ccd6e0;
|
|
41
42
|
--b2b-color-success-100: #326400;
|
|
@@ -122,7 +123,7 @@
|
|
|
122
123
|
}
|
|
123
124
|
/**
|
|
124
125
|
* Do not edit directly
|
|
125
|
-
* Generated on Thu,
|
|
126
|
+
* Generated on Thu, 20 Feb 2025 15:47:48 GMT
|
|
126
127
|
*/
|
|
127
128
|
:root [data-theme="dark"] {
|
|
128
129
|
--b2b-size-200: 5rem; /* 80px */
|
|
@@ -153,7 +154,8 @@
|
|
|
153
154
|
--b2b-font-weight-normal: 500;
|
|
154
155
|
--b2b-font-weight-thin: 100;
|
|
155
156
|
--b2b-font-family-default: OttoSans, Arial, Helvetica, sans-serif;
|
|
156
|
-
--b2b-color-hover: #
|
|
157
|
+
--b2b-color-hover-black: #3b3b3b;
|
|
158
|
+
--b2b-color-hover-default: #e6f4ff;
|
|
157
159
|
--b2b-color-info-100: #003264;
|
|
158
160
|
--b2b-color-info-50: #ccd6e0;
|
|
159
161
|
--b2b-color-success-100: #326400;
|
|
@@ -45,10 +45,10 @@ export class B2BTextareaComponent {
|
|
|
45
45
|
}
|
|
46
46
|
}
|
|
47
47
|
render() {
|
|
48
|
-
return (h(Host, { key: '
|
|
48
|
+
return (h(Host, { key: '26d30adb79084035eb1f1088a019df8f3bb80cff', class: {
|
|
49
49
|
'b2b-textarea': true,
|
|
50
50
|
'b2b-textarea--error': this.invalid && !this.disabled,
|
|
51
|
-
} }, this.label && (h("b2b-input-label", { id: this.name, required: this.required }, this.label)), h("textarea", { key: '
|
|
51
|
+
} }, this.label && (h("b2b-input-label", { id: this.name, required: this.required }, this.label)), h("textarea", { key: 'd18a50e22a0995e14560bb8d2977dbcf8e602629', class: "textarea-input", "aria-labelledby": this.name, style: Object.assign({ height: this.height }, (Boolean(this.resize) && { resize: this.resize })), value: this.value, name: this.name, placeholder: this.placeholder, disabled: this.disabled, autoFocus: this.autofocus, onFocus: this.onFocus, onBlur: this.onBlur, onInput: this.onInput, maxLength: this.maxLength }), (this.hint !== undefined && !this.invalid) ||
|
|
52
52
|
(this.hint !== undefined && this.disabled) ? (h("span", null, this.hint)) : (''), this.error !== undefined && this.invalid && !this.disabled ? (h("span", null, this.error)) : ('')));
|
|
53
53
|
}
|
|
54
54
|
static get is() { return "b2b-textarea"; }
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Do not edit directly
|
|
3
|
-
* Generated on Thu,
|
|
3
|
+
* Generated on Thu, 20 Feb 2025 15:47:48 GMT
|
|
4
4
|
*/
|
|
5
5
|
:root, :host {
|
|
6
6
|
--b2b-size-200: 5rem; /* 80px */
|
|
@@ -35,7 +35,8 @@
|
|
|
35
35
|
--b2b-color-table-selected-default: #cce9ff;
|
|
36
36
|
--b2b-color-background-overlay-transparent-40: rgba(34, 34, 34, 0.25);
|
|
37
37
|
--b2b-color-background-overlay-transparent-80: rgba(34, 34, 34, 0.5);
|
|
38
|
-
--b2b-color-hover: #
|
|
38
|
+
--b2b-color-hover-black: #3b3b3b;
|
|
39
|
+
--b2b-color-hover-default: #e6f4ff;
|
|
39
40
|
--b2b-color-info-100: #003264;
|
|
40
41
|
--b2b-color-info-50: #ccd6e0;
|
|
41
42
|
--b2b-color-success-100: #326400;
|
|
@@ -122,7 +123,7 @@
|
|
|
122
123
|
}
|
|
123
124
|
/**
|
|
124
125
|
* Do not edit directly
|
|
125
|
-
* Generated on Thu,
|
|
126
|
+
* Generated on Thu, 20 Feb 2025 15:47:48 GMT
|
|
126
127
|
*/
|
|
127
128
|
:root [data-theme="dark"] {
|
|
128
129
|
--b2b-size-200: 5rem; /* 80px */
|
|
@@ -153,7 +154,8 @@
|
|
|
153
154
|
--b2b-font-weight-normal: 500;
|
|
154
155
|
--b2b-font-weight-thin: 100;
|
|
155
156
|
--b2b-font-family-default: OttoSans, Arial, Helvetica, sans-serif;
|
|
156
|
-
--b2b-color-hover: #
|
|
157
|
+
--b2b-color-hover-black: #3b3b3b;
|
|
158
|
+
--b2b-color-hover-default: #e6f4ff;
|
|
157
159
|
--b2b-color-info-100: #003264;
|
|
158
160
|
--b2b-color-info-50: #ccd6e0;
|
|
159
161
|
--b2b-color-success-100: #326400;
|
|
@@ -31,13 +31,13 @@ export class B2bToggleButtonComponent {
|
|
|
31
31
|
return Array.from(document.querySelectorAll(`b2b-toggle-button[name="${this.name}"]`)).filter((toggle) => toggle.value !== this.value);
|
|
32
32
|
}
|
|
33
33
|
render() {
|
|
34
|
-
return (h(Host, { key: '
|
|
34
|
+
return (h(Host, { key: '5ec7f55c330552dc5b3859504c8a4afc2f151146', onClick: this.onClick }, h("span", { key: '5cfbea13b4535886ea2404aa42e6bc830a149b3c', class: {
|
|
35
35
|
'b2b-toggle-button': true,
|
|
36
36
|
'b2b-toggle-button--disabled': this.disabled,
|
|
37
|
-
} }, h("input", { key: '
|
|
37
|
+
} }, h("input", { key: 'a88084cc44b80abb06e653afca8c7737f67baf4b', tabindex: 0, class: {
|
|
38
38
|
'b2b-toggle-button__input': true,
|
|
39
39
|
'b2b-toggle-button__input--disabled': this.disabled,
|
|
40
|
-
}, "aria-labelledby": this.name, type: "radio", checked: this.checked && !this.disabled, disabled: this.disabled, name: this.name, value: this.value }), h("label", { key: '
|
|
40
|
+
}, "aria-labelledby": this.name, type: "radio", checked: this.checked && !this.disabled, disabled: this.disabled, name: this.name, value: this.value }), h("label", { key: 'a5654d8a5c5c9845a7f07fc7dbf994e99a560d82', id: this.name, tabindex: -1, class: {
|
|
41
41
|
'b2b-toggle-button__label': true,
|
|
42
42
|
'b2b-toggle-button__label--disabled': this.disabled,
|
|
43
43
|
'b2b-toggle-button__label--checked': this.checked && !this.disabled,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Do not edit directly
|
|
3
|
-
* Generated on Thu,
|
|
3
|
+
* Generated on Thu, 20 Feb 2025 15:47:48 GMT
|
|
4
4
|
*/
|
|
5
5
|
:root, :host {
|
|
6
6
|
--b2b-size-200: 5rem; /* 80px */
|
|
@@ -35,7 +35,8 @@
|
|
|
35
35
|
--b2b-color-table-selected-default: #cce9ff;
|
|
36
36
|
--b2b-color-background-overlay-transparent-40: rgba(34, 34, 34, 0.25);
|
|
37
37
|
--b2b-color-background-overlay-transparent-80: rgba(34, 34, 34, 0.5);
|
|
38
|
-
--b2b-color-hover: #
|
|
38
|
+
--b2b-color-hover-black: #3b3b3b;
|
|
39
|
+
--b2b-color-hover-default: #e6f4ff;
|
|
39
40
|
--b2b-color-info-100: #003264;
|
|
40
41
|
--b2b-color-info-50: #ccd6e0;
|
|
41
42
|
--b2b-color-success-100: #326400;
|
|
@@ -122,7 +123,7 @@
|
|
|
122
123
|
}
|
|
123
124
|
/**
|
|
124
125
|
* Do not edit directly
|
|
125
|
-
* Generated on Thu,
|
|
126
|
+
* Generated on Thu, 20 Feb 2025 15:47:48 GMT
|
|
126
127
|
*/
|
|
127
128
|
:root [data-theme="dark"] {
|
|
128
129
|
--b2b-size-200: 5rem; /* 80px */
|
|
@@ -153,7 +154,8 @@
|
|
|
153
154
|
--b2b-font-weight-normal: 500;
|
|
154
155
|
--b2b-font-weight-thin: 100;
|
|
155
156
|
--b2b-font-family-default: OttoSans, Arial, Helvetica, sans-serif;
|
|
156
|
-
--b2b-color-hover: #
|
|
157
|
+
--b2b-color-hover-black: #3b3b3b;
|
|
158
|
+
--b2b-color-hover-default: #e6f4ff;
|
|
157
159
|
--b2b-color-info-100: #003264;
|
|
158
160
|
--b2b-color-info-50: #ccd6e0;
|
|
159
161
|
--b2b-color-success-100: #326400;
|
|
@@ -219,6 +221,9 @@
|
|
|
219
221
|
font-size: var(--b2b-size-copy-100);
|
|
220
222
|
line-height: var(--b2b-size-copy-line-height-100);
|
|
221
223
|
display: inline-block;
|
|
224
|
+
min-width: var(--b2b-size-90);
|
|
225
|
+
min-height: var(--b2b-size-80);
|
|
226
|
+
max-height: var(--b2b-size-80);
|
|
222
227
|
}
|
|
223
228
|
:host .b2b-toggle-chip__input {
|
|
224
229
|
border: 0;
|
|
@@ -235,39 +240,51 @@
|
|
|
235
240
|
}
|
|
236
241
|
:host .b2b-toggle-chip__label {
|
|
237
242
|
display: inline-block;
|
|
238
|
-
|
|
243
|
+
border: 1px solid var(--b2b-color-grey-200);
|
|
244
|
+
padding: var(--b2b-size-15) var(--b2b-size-30) 5px var(--b2b-size-30);
|
|
239
245
|
border-radius: var(--b2b-size-50);
|
|
240
246
|
color: var(--b2b-color-black-100);
|
|
247
|
+
background-color: var(--b2b-color-white-100);
|
|
241
248
|
}
|
|
242
249
|
:host .b2b-toggle-chip__label:hover {
|
|
243
|
-
background-color: var(--b2b-color-hover);
|
|
250
|
+
background-color: var(--b2b-color-hover-default);
|
|
244
251
|
color: var(--b2b-color-black-100);
|
|
245
252
|
cursor: pointer;
|
|
246
253
|
transition: all 0.3s ease;
|
|
247
254
|
}
|
|
248
|
-
:host .b2b-toggle-chip__label
|
|
249
|
-
background-color:
|
|
250
|
-
|
|
251
|
-
:
|
|
252
|
-
background-color: var(--b2b-color-white-100);
|
|
253
|
-
}
|
|
254
|
-
:host .b2b-toggle-chip__label--white.b2b-toggle-chip__label--disabled {
|
|
255
|
-
background-color: var(--b2b-color-white-100);
|
|
256
|
-
}
|
|
257
|
-
:host .b2b-toggle-chip__label--white.b2b-toggle-chip__label--disabled:hover {
|
|
258
|
-
background-color: var(--b2b-color-white-100);
|
|
255
|
+
:host .b2b-toggle-chip__label:active {
|
|
256
|
+
background-color: #d4e0eb;
|
|
257
|
+
color: var(--b2b-color-black-100);
|
|
258
|
+
transition: all 0.3s ease;
|
|
259
259
|
}
|
|
260
260
|
:host .b2b-toggle-chip__label--active {
|
|
261
261
|
color: var(--b2b-color-white-100);
|
|
262
262
|
background-color: var(--b2b-color-black-100);
|
|
263
|
+
border: 1px solid var(--b2b-color-black-100);
|
|
264
|
+
}
|
|
265
|
+
:host .b2b-toggle-chip__label--active:hover {
|
|
266
|
+
cursor: pointer;
|
|
267
|
+
background-color: var(--b2b-color-hover-black);
|
|
268
|
+
border: 1px solid var(--b2b-color-hover-black);
|
|
269
|
+
color: var(--b2b-color-grey-100);
|
|
263
270
|
}
|
|
264
271
|
:host .b2b-toggle-chip__label--disabled {
|
|
265
|
-
background-color: var(--b2b-color-grey-
|
|
266
|
-
color: var(--b2b-color-grey-
|
|
272
|
+
background-color: var(--b2b-color-grey-25);
|
|
273
|
+
color: var(--b2b-color-grey-200);
|
|
267
274
|
user-select: none;
|
|
268
275
|
}
|
|
269
276
|
:host .b2b-toggle-chip__label--disabled:hover {
|
|
270
277
|
cursor: default;
|
|
271
|
-
background-color: var(--b2b-color-grey-
|
|
278
|
+
background-color: var(--b2b-color-grey-25);
|
|
279
|
+
color: var(--b2b-color-grey-200);
|
|
280
|
+
}
|
|
281
|
+
:host .b2b-toggle-chip__label--active-disabled {
|
|
282
|
+
background-color: var(--b2b-color-black-100);
|
|
283
|
+
border: 1px solid var(--b2b-color-black-100);
|
|
284
|
+
color: var(--b2b-color-grey-300);
|
|
285
|
+
}
|
|
286
|
+
:host .b2b-toggle-chip__label--active-disabled:hover {
|
|
287
|
+
cursor: default;
|
|
288
|
+
background-color: var(--b2b-color-black-100);
|
|
272
289
|
color: var(--b2b-color-grey-300);
|
|
273
290
|
}
|
|
@@ -28,20 +28,19 @@ export class B2BToggleChipComponent {
|
|
|
28
28
|
this.label = undefined;
|
|
29
29
|
this.value = undefined;
|
|
30
30
|
this.name = undefined;
|
|
31
|
-
this.variant = 'grey';
|
|
32
31
|
this.active = false;
|
|
33
32
|
this.disabled = false;
|
|
34
33
|
}
|
|
35
34
|
render() {
|
|
36
|
-
return (h(Host, { key: '
|
|
35
|
+
return (h(Host, { key: '78c0600467fcbdd43c4709fc8637a845fa0aecc5' }, h("span", { key: 'ee2a356bfe8190eea0e846be6a9a98364b154b2f', onClick: this.onClick, onKeyDown: this.onKeyDown, class: {
|
|
37
36
|
'b2b-toggle-chip': true,
|
|
38
|
-
} }, h("input", { key: '
|
|
37
|
+
} }, h("input", { key: '8836fc2cb5439d0567ad554c1e265eabed3aa3df', "aria-labelledby": this.name, tabindex: this.disabled ? -1 : 0, class: {
|
|
39
38
|
'b2b-toggle-chip__input': true,
|
|
40
|
-
}, type: "checkbox", checked: this.active && !this.disabled, disabled: this.disabled, name: this.name, value: this.value }), h("label", { key: '
|
|
39
|
+
}, type: "checkbox", checked: this.active && !this.disabled, disabled: this.disabled, name: this.name, value: this.value }), h("label", { key: '52a41c7c1427677ec00818be4c2fdb55bb6f69b1', id: this.name, tabIndex: -1, class: {
|
|
41
40
|
'b2b-toggle-chip__label': true,
|
|
42
|
-
|
|
43
|
-
'b2b-toggle-chip__label--active': this.active,
|
|
41
|
+
'b2b-toggle-chip__label--active': this.active && !this.disabled,
|
|
44
42
|
'b2b-toggle-chip__label--disabled': this.disabled,
|
|
43
|
+
'b2b-toggle-chip__label--active-disabled': this.active && this.disabled,
|
|
45
44
|
} }, this.label))));
|
|
46
45
|
}
|
|
47
46
|
static get is() { return "b2b-toggle-chip"; }
|
|
@@ -109,24 +108,6 @@ export class B2BToggleChipComponent {
|
|
|
109
108
|
"attribute": "name",
|
|
110
109
|
"reflect": true
|
|
111
110
|
},
|
|
112
|
-
"variant": {
|
|
113
|
-
"type": "string",
|
|
114
|
-
"mutable": false,
|
|
115
|
-
"complexType": {
|
|
116
|
-
"original": "'grey' | 'white'",
|
|
117
|
-
"resolved": "\"grey\" | \"white\"",
|
|
118
|
-
"references": {}
|
|
119
|
-
},
|
|
120
|
-
"required": false,
|
|
121
|
-
"optional": false,
|
|
122
|
-
"docs": {
|
|
123
|
-
"tags": [],
|
|
124
|
-
"text": "The color scheme of the toggle button. Use white for grey backgrounds and grey for white backgrounds. Per default, it is grey"
|
|
125
|
-
},
|
|
126
|
-
"attribute": "variant",
|
|
127
|
-
"reflect": false,
|
|
128
|
-
"defaultValue": "'grey'"
|
|
129
|
-
},
|
|
130
111
|
"active": {
|
|
131
112
|
"type": "boolean",
|
|
132
113
|
"mutable": true,
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
2
|
+
var t = {};
|
|
3
|
+
for (var p in s)
|
|
4
|
+
if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
5
|
+
t[p] = s[p];
|
|
6
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
7
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
8
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
9
|
+
t[p[i]] = s[p[i]];
|
|
10
|
+
}
|
|
11
|
+
return t;
|
|
12
|
+
};
|
|
13
|
+
import { html } from "lit-html";
|
|
14
|
+
import { getArgTypes } from "../../docs/config/utils";
|
|
15
|
+
const meta = {
|
|
16
|
+
title: 'Components/Interaction/Toggle Chip',
|
|
17
|
+
component: 'b2b-toggle-chip',
|
|
18
|
+
args: {
|
|
19
|
+
label: 'B2B Design System',
|
|
20
|
+
name: 'Toggle Chip',
|
|
21
|
+
active: false,
|
|
22
|
+
disabled: false,
|
|
23
|
+
},
|
|
24
|
+
argTypes: getArgTypes('b2b-toggle-chip'),
|
|
25
|
+
render: (_a) => {
|
|
26
|
+
var args = __rest(_a, []);
|
|
27
|
+
return html ` <b2b-toggle-chip
|
|
28
|
+
label="${args.label}"
|
|
29
|
+
name="${args.name}"
|
|
30
|
+
active="${args.active}""
|
|
31
|
+
disabled="${args.disabled}">
|
|
32
|
+
</b2b-toggle-chip>`;
|
|
33
|
+
},
|
|
34
|
+
};
|
|
35
|
+
export default meta;
|
|
36
|
+
export const story010Default = {
|
|
37
|
+
name: 'Default Toggle Chip',
|
|
38
|
+
args: Object.assign({}, meta.args),
|
|
39
|
+
};
|
|
40
|
+
export const story020Disabled = {
|
|
41
|
+
name: 'Toggle Chip Disabled',
|
|
42
|
+
args: Object.assign(Object.assign({}, meta.args), { disabled: true }),
|
|
43
|
+
};
|
|
44
|
+
export const story030Active = {
|
|
45
|
+
name: 'Toggle Chip Active',
|
|
46
|
+
args: Object.assign(Object.assign({}, meta.args), { active: true }),
|
|
47
|
+
};
|
|
48
|
+
export const story040ActiveDisabled = {
|
|
49
|
+
name: 'Toggle Chip Active Disabled',
|
|
50
|
+
args: Object.assign(Object.assign({}, meta.args), { active: true, disabled: true }),
|
|
51
|
+
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Do not edit directly
|
|
3
|
-
* Generated on Thu,
|
|
3
|
+
* Generated on Thu, 20 Feb 2025 15:47:48 GMT
|
|
4
4
|
*/
|
|
5
5
|
:root, :host {
|
|
6
6
|
--b2b-size-200: 5rem; /* 80px */
|
|
@@ -35,7 +35,8 @@
|
|
|
35
35
|
--b2b-color-table-selected-default: #cce9ff;
|
|
36
36
|
--b2b-color-background-overlay-transparent-40: rgba(34, 34, 34, 0.25);
|
|
37
37
|
--b2b-color-background-overlay-transparent-80: rgba(34, 34, 34, 0.5);
|
|
38
|
-
--b2b-color-hover: #
|
|
38
|
+
--b2b-color-hover-black: #3b3b3b;
|
|
39
|
+
--b2b-color-hover-default: #e6f4ff;
|
|
39
40
|
--b2b-color-info-100: #003264;
|
|
40
41
|
--b2b-color-info-50: #ccd6e0;
|
|
41
42
|
--b2b-color-success-100: #326400;
|
|
@@ -122,7 +123,7 @@
|
|
|
122
123
|
}
|
|
123
124
|
/**
|
|
124
125
|
* Do not edit directly
|
|
125
|
-
* Generated on Thu,
|
|
126
|
+
* Generated on Thu, 20 Feb 2025 15:47:48 GMT
|
|
126
127
|
*/
|
|
127
128
|
:root [data-theme="dark"] {
|
|
128
129
|
--b2b-size-200: 5rem; /* 80px */
|
|
@@ -153,7 +154,8 @@
|
|
|
153
154
|
--b2b-font-weight-normal: 500;
|
|
154
155
|
--b2b-font-weight-thin: 100;
|
|
155
156
|
--b2b-font-family-default: OttoSans, Arial, Helvetica, sans-serif;
|
|
156
|
-
--b2b-color-hover: #
|
|
157
|
+
--b2b-color-hover-black: #3b3b3b;
|
|
158
|
+
--b2b-color-hover-default: #e6f4ff;
|
|
157
159
|
--b2b-color-info-100: #003264;
|
|
158
160
|
--b2b-color-info-50: #ccd6e0;
|
|
159
161
|
--b2b-color-success-100: #326400;
|
|
@@ -45,10 +45,10 @@ export class B2BToggleGroup {
|
|
|
45
45
|
}
|
|
46
46
|
}
|
|
47
47
|
render() {
|
|
48
|
-
return (h(Host, { key: '
|
|
48
|
+
return (h(Host, { key: 'f17d4a01c930847672fe6aa60b50544c3a0fa829' }, h("div", { key: 'd1250e694f9b225886136bd116a4cbd297a1fea5', class: {
|
|
49
49
|
'b2b-toggle-group': true,
|
|
50
50
|
'b2b-toggle-group--disabled': this.disabled,
|
|
51
|
-
} }, h("fieldset", { key: '
|
|
51
|
+
} }, h("fieldset", { key: '819b848ed5b3b50bfe840dcdb4caf9a7520f58be' }, h("slot", { key: '6918c86adb990d6300b2327510a27a830d4eab52' })))));
|
|
52
52
|
}
|
|
53
53
|
static get is() { return "b2b-toggle-group"; }
|
|
54
54
|
static get encapsulation() { return "shadow"; }
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Do not edit directly
|
|
3
|
-
* Generated on Thu,
|
|
3
|
+
* Generated on Thu, 20 Feb 2025 15:47:48 GMT
|
|
4
4
|
*/
|
|
5
5
|
:root, :host {
|
|
6
6
|
--b2b-size-200: 5rem; /* 80px */
|
|
@@ -35,7 +35,8 @@
|
|
|
35
35
|
--b2b-color-table-selected-default: #cce9ff;
|
|
36
36
|
--b2b-color-background-overlay-transparent-40: rgba(34, 34, 34, 0.25);
|
|
37
37
|
--b2b-color-background-overlay-transparent-80: rgba(34, 34, 34, 0.5);
|
|
38
|
-
--b2b-color-hover: #
|
|
38
|
+
--b2b-color-hover-black: #3b3b3b;
|
|
39
|
+
--b2b-color-hover-default: #e6f4ff;
|
|
39
40
|
--b2b-color-info-100: #003264;
|
|
40
41
|
--b2b-color-info-50: #ccd6e0;
|
|
41
42
|
--b2b-color-success-100: #326400;
|
|
@@ -122,7 +123,7 @@
|
|
|
122
123
|
}
|
|
123
124
|
/**
|
|
124
125
|
* Do not edit directly
|
|
125
|
-
* Generated on Thu,
|
|
126
|
+
* Generated on Thu, 20 Feb 2025 15:47:48 GMT
|
|
126
127
|
*/
|
|
127
128
|
:root [data-theme="dark"] {
|
|
128
129
|
--b2b-size-200: 5rem; /* 80px */
|
|
@@ -153,7 +154,8 @@
|
|
|
153
154
|
--b2b-font-weight-normal: 500;
|
|
154
155
|
--b2b-font-weight-thin: 100;
|
|
155
156
|
--b2b-font-family-default: OttoSans, Arial, Helvetica, sans-serif;
|
|
156
|
-
--b2b-color-hover: #
|
|
157
|
+
--b2b-color-hover-black: #3b3b3b;
|
|
158
|
+
--b2b-color-hover-default: #e6f4ff;
|
|
157
159
|
--b2b-color-info-100: #003264;
|
|
158
160
|
--b2b-color-info-50: #ccd6e0;
|
|
159
161
|
--b2b-color-success-100: #326400;
|
|
@@ -38,17 +38,17 @@ export class B2bToggleSwitchComponent {
|
|
|
38
38
|
render() {
|
|
39
39
|
// workaround for purgecss as safelist doesn't work
|
|
40
40
|
const isLeft = this.labelPosition === 'left';
|
|
41
|
-
return (h(Host, { key: '
|
|
41
|
+
return (h(Host, { key: '3d95bcb03fb1131b2b2775db6e8d82de9f2c5297' }, h("div", { key: '4e665cdbb2d1364a4bd9e641745d510237a4f4c8', class: {
|
|
42
42
|
'b2b-toggle': true,
|
|
43
43
|
'b2b-toggle--disabled': this.disabled,
|
|
44
44
|
'b2b-toggle--checked': this.state,
|
|
45
|
-
} }, h("div", { key: '
|
|
45
|
+
} }, h("div", { key: '285501a0a3904058e06477c07ddbc6032c49ac1c', class: {
|
|
46
46
|
'b2b-toggle__label': true,
|
|
47
47
|
'b2b-toggle__label--left': isLeft,
|
|
48
|
-
} }, h("span", { key: '
|
|
48
|
+
} }, h("span", { key: '6f4699424b4a5e23c9de5577b0026f6ab0eb964f', class: "b2b-toggle__switch", role: "switch", tabIndex: 0, onKeyDown: this.onKeyDown, onClick: this.onClick }, h("svg", { key: 'ef46344c874f4b5f2cf998dcbf0b496180024cd4', class: {
|
|
49
49
|
'b2b-toggle__icon': true,
|
|
50
50
|
'b2b-toggle__icon--show': this.state,
|
|
51
|
-
}, xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 30 30" }, h("path", { key: '
|
|
51
|
+
}, xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 30 30" }, h("path", { key: '56833837842c26dfeb46ed3429f4ccf1e48477f7', d: "M11.798 25.082c-.341 0-.681-.13-.942-.389l-7.132-7.115a1.334 1.334 0 0 1 1.884-1.888l6.19 6.175L26.391 7.307a1.334 1.334 0 0 1 1.884 1.888L12.74 24.693c-.26.259-.601.389-.942.389z" }))), this.label && (h("span", { class: {
|
|
52
52
|
'b2b-toggle__text': true,
|
|
53
53
|
'b2b-toggle__text--left': isLeft,
|
|
54
54
|
} }, this.label))))));
|