@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,230 +1,231 @@
|
|
|
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
|
+
};
|
|
1
13
|
import { html } from "lit-html";
|
|
2
14
|
import { getArgTypes } from "../../docs/config/utils";
|
|
3
|
-
const
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
justify="${justify}"
|
|
11
|
-
row-gap="${rowGap}"
|
|
12
|
-
column-gap="${columnGap}">
|
|
13
|
-
<b2b-grid-col span="6" text-align="${textAlign}"
|
|
14
|
-
><div style="${gridBoxStyles}">
|
|
15
|
-
<h4>Column 1-6 of ${9 + Number(span)}</h4>
|
|
16
|
-
<p>
|
|
17
|
-
Lorem ipsum dolor sit amet, consectetur adipiscing elit.
|
|
18
|
-
Suspendisse massa urna, accumsan id viverra et, mollis sit amet
|
|
19
|
-
sem. Cras congue ex ac arcu pellentesque, eu vestibulum sem
|
|
20
|
-
tempor. Curabitur consequat massa sed nulla lacinia, vitae
|
|
21
|
-
scelerisque ante egestas. Praesent et diam quis diam posuere
|
|
22
|
-
egestas. Duis feugiat lorem non nisl consectetur, sed fringilla
|
|
23
|
-
odio semper.
|
|
24
|
-
</p>
|
|
25
|
-
</div></b2b-grid-col
|
|
26
|
-
>
|
|
27
|
-
<b2b-grid-col
|
|
28
|
-
><div style="${gridBoxStyles}">
|
|
29
|
-
<h4>Column 7 of ${9 + Number(span)}</h4>
|
|
30
|
-
<p>I grow to fill up all available space</p>
|
|
31
|
-
</div></b2b-grid-col
|
|
32
|
-
>
|
|
33
|
-
<b2b-grid-col
|
|
34
|
-
><div style="${gridBoxStyles}">
|
|
35
|
-
<h4>Column 8 of ${9 + Number(span)}</h4>
|
|
36
|
-
<p>I grow to fill up all available space</p>
|
|
37
|
-
</div></b2b-grid-col
|
|
38
|
-
>
|
|
39
|
-
<b2b-grid-col
|
|
40
|
-
><div style="${gridBoxStyles}">
|
|
41
|
-
<h4>Column 9 of ${9 + Number(span)}</h4>
|
|
42
|
-
<p>I grow to fill up all available space</p>
|
|
43
|
-
</div></b2b-grid-col
|
|
44
|
-
>
|
|
45
|
-
<b2b-grid-col span="${span}"
|
|
46
|
-
><div style="${gridBoxStyles}">
|
|
47
|
-
<h4>Column 10-${9 + Number(span)} of ${9 + Number(span)}</h4>
|
|
48
|
-
<p>Resize me by changing the span attribute in the args table.</p>
|
|
49
|
-
</div></b2b-grid-col
|
|
50
|
-
>
|
|
51
|
-
</b2b-grid-row>
|
|
52
|
-
</b2b-grid>`;
|
|
53
|
-
case '020AlignItems':
|
|
54
|
-
return html `<b2b-grid
|
|
55
|
-
><b2b-grid-row
|
|
56
|
-
align-items="${alignItems}"
|
|
57
|
-
justify="${justify}"
|
|
58
|
-
row-gap="${rowGap}"
|
|
59
|
-
column-gap="${columnGap}">
|
|
60
|
-
<b2b-grid-col
|
|
61
|
-
><div style="${gridBoxSmallStyles}">
|
|
62
|
-
<h4>Column 1 of 6</h4>
|
|
63
|
-
</div></b2b-grid-col
|
|
64
|
-
>
|
|
65
|
-
<b2b-grid-col
|
|
66
|
-
><div style="${gridBoxStyles}">
|
|
67
|
-
<h4>Column 2 of 6</h4>
|
|
68
|
-
</div></b2b-grid-col
|
|
69
|
-
>
|
|
70
|
-
<b2b-grid-col
|
|
71
|
-
><div style="${gridBoxSmallStyles}">
|
|
72
|
-
<h4>Column 3 of 6</h4>
|
|
73
|
-
</div></b2b-grid-col
|
|
74
|
-
>
|
|
75
|
-
<b2b-grid-col
|
|
76
|
-
><div style="${gridBoxStyles}">
|
|
77
|
-
<h4>Column 4 of 6</h4>
|
|
78
|
-
</div></b2b-grid-col
|
|
79
|
-
>
|
|
80
|
-
<b2b-grid-col
|
|
81
|
-
><div style="${gridBoxSmallStyles}">
|
|
82
|
-
<h4>Column 5 of 6</h4>
|
|
83
|
-
</div></b2b-grid-col
|
|
84
|
-
>
|
|
85
|
-
<b2b-grid-col
|
|
86
|
-
><div style="${gridBoxStyles}">
|
|
87
|
-
<h4>Column 6 of 6</h4>
|
|
88
|
-
</div></b2b-grid-col
|
|
89
|
-
>
|
|
90
|
-
</b2b-grid-row></b2b-grid
|
|
91
|
-
>`;
|
|
92
|
-
case '030TextAlign':
|
|
93
|
-
return html `<b2b-grid margin="${margin}">
|
|
94
|
-
<b2b-grid-row
|
|
95
|
-
justify="${justify}"
|
|
96
|
-
row-gap="${rowGap}"
|
|
97
|
-
column-gap="${columnGap}">
|
|
98
|
-
<b2b-grid-col span="6" text-align="${textAlign}"
|
|
99
|
-
><div style="${gridBoxStyles}">
|
|
100
|
-
<h4>Column 1-6 of 9</h4>
|
|
101
|
-
<p>
|
|
102
|
-
Lorem ipsum dolor sit amet, consectetur adipiscing elit.
|
|
103
|
-
Suspendisse massa urna, accumsan id viverra et, mollis sit amet
|
|
104
|
-
sem. Cras congue ex ac arcu pellentesque, eu vestibulum sem
|
|
105
|
-
tempor. Curabitur consequat massa sed nulla lacinia, vitae
|
|
106
|
-
scelerisque ante egestas. Praesent et diam quis diam posuere
|
|
107
|
-
egestas. Duis feugiat lorem non nisl consectetur, sed fringilla
|
|
108
|
-
odio semper.
|
|
109
|
-
</p>
|
|
110
|
-
</div></b2b-grid-col
|
|
111
|
-
>
|
|
112
|
-
<b2b-grid-col
|
|
113
|
-
><div style="${gridBoxStyles}">
|
|
114
|
-
<h4>Column 7 of 9</h4>
|
|
115
|
-
</div></b2b-grid-col
|
|
116
|
-
>
|
|
117
|
-
<b2b-grid-col
|
|
118
|
-
><div style="${gridBoxStyles}">
|
|
119
|
-
<h4>Column 8 of 9</h4>
|
|
120
|
-
</div></b2b-grid-col
|
|
121
|
-
>
|
|
122
|
-
<b2b-grid-col
|
|
123
|
-
><div style="${gridBoxStyles}">
|
|
124
|
-
<h4>Column 9 of 9</h4>
|
|
125
|
-
</div></b2b-grid-col
|
|
126
|
-
></b2b-grid-row
|
|
127
|
-
></b2b-grid
|
|
128
|
-
>`;
|
|
129
|
-
case '040Justify':
|
|
130
|
-
return html `<b2b-grid margin="${margin}">
|
|
131
|
-
<b2b-grid-row
|
|
132
|
-
justify="${justify}"
|
|
133
|
-
row-gap="${rowGap}"
|
|
134
|
-
column-gap="${columnGap}">
|
|
135
|
-
<b2b-grid-col span="6" text-align="${textAlign}"
|
|
136
|
-
><div style="${gridBoxStyles}">
|
|
137
|
-
<h4>Column 1-6 of 9</h4>
|
|
138
|
-
<p>
|
|
139
|
-
Lorem ipsum dolor sit amet, consectetur adipiscing elit.
|
|
140
|
-
Suspendisse massa urna, accumsan id viverra et, mollis sit amet
|
|
141
|
-
sem. Cras congue ex ac arcu pellentesque, eu vestibulum sem
|
|
142
|
-
tempor. Curabitur consequat massa sed nulla lacinia, vitae
|
|
143
|
-
scelerisque ante egestas. Praesent et diam quis diam posuere
|
|
144
|
-
egestas. Duis feugiat lorem non nisl consectetur, sed fringilla
|
|
145
|
-
odio semper.
|
|
146
|
-
</p>
|
|
147
|
-
</div></b2b-grid-col
|
|
148
|
-
>
|
|
149
|
-
<b2b-grid-col span="1"
|
|
150
|
-
><div style="${gridBoxStyles}">
|
|
151
|
-
<h4>Column 7 of 9</h4>
|
|
152
|
-
</div></b2b-grid-col
|
|
153
|
-
>
|
|
154
|
-
<b2b-grid-col span="1"
|
|
155
|
-
><div style="${gridBoxStyles}">
|
|
156
|
-
<h4>Column 8 of 9</h4>
|
|
157
|
-
</div></b2b-grid-col
|
|
158
|
-
>
|
|
159
|
-
<b2b-grid-col span="1"
|
|
160
|
-
><div style="${gridBoxStyles}">
|
|
161
|
-
<h4>Column 9 of 9</h4>
|
|
162
|
-
</div></b2b-grid-col
|
|
163
|
-
></b2b-grid-row
|
|
164
|
-
></b2b-grid
|
|
165
|
-
>`;
|
|
166
|
-
}
|
|
167
|
-
};
|
|
168
|
-
export const story010Grid = Template.bind({});
|
|
169
|
-
story010Grid.args = {
|
|
170
|
-
margin: 24,
|
|
171
|
-
alignItems: 'stretch',
|
|
172
|
-
columnGap: 24,
|
|
173
|
-
rowGap: 24,
|
|
174
|
-
justify: 'start',
|
|
175
|
-
span: '3',
|
|
176
|
-
textAlign: 'left',
|
|
177
|
-
storyName: '010Grid',
|
|
178
|
-
};
|
|
179
|
-
story010Grid.storyName = 'Resizable Columns';
|
|
180
|
-
export const story020AlignItems = Template.bind({});
|
|
181
|
-
story020AlignItems.args = {
|
|
182
|
-
margin: 24,
|
|
183
|
-
alignItems: 'center',
|
|
184
|
-
columnGap: 24,
|
|
185
|
-
rowGap: 24,
|
|
186
|
-
justify: 'center',
|
|
187
|
-
span: '3',
|
|
188
|
-
textAlign: 'left',
|
|
189
|
-
storyName: '020AlignItems',
|
|
15
|
+
const gridBoxStyles = `border: 1px solid #c4c4c4; padding: 1rem; background-color: #fff; height: 200px;`;
|
|
16
|
+
const gridBoxSmallStyles = `border: 1px solid #c4c4c4; padding: 1rem; background-color: #fff; height: 100px;`;
|
|
17
|
+
const meta = {
|
|
18
|
+
title: 'Components/Utilities/Grid',
|
|
19
|
+
component: 'b2b-grid',
|
|
20
|
+
args: {},
|
|
21
|
+
argTypes: getArgTypes('b2b-grid'),
|
|
190
22
|
};
|
|
191
|
-
|
|
192
|
-
export const
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
23
|
+
export default meta;
|
|
24
|
+
export const story010Grid = {
|
|
25
|
+
name: 'Resizable Columns',
|
|
26
|
+
args: {
|
|
27
|
+
margin: 24,
|
|
28
|
+
alignItems: 'stretch',
|
|
29
|
+
columnGap: 24,
|
|
30
|
+
rowGap: 24,
|
|
31
|
+
justify: 'start',
|
|
32
|
+
textAlign: 'left',
|
|
33
|
+
},
|
|
34
|
+
render: (_a) => {
|
|
35
|
+
var args = __rest(_a, []);
|
|
36
|
+
return html ` <b2b-grid margin="${args.margin}">
|
|
37
|
+
<b2b-grid-row
|
|
38
|
+
justify="${args.justify}"
|
|
39
|
+
row-gap="${args.rowGap}"
|
|
40
|
+
column-gap="${args.columnGap}">
|
|
41
|
+
<b2b-grid-col span="6" text-align="${args.textAlign}"
|
|
42
|
+
><div style="${gridBoxStyles}">
|
|
43
|
+
<h4>Column 1-6 of 12</h4>
|
|
44
|
+
<p>
|
|
45
|
+
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse
|
|
46
|
+
massa urna, accumsan id viverra et, mollis sit amet sem. Cras congue
|
|
47
|
+
ex ac arcu pellentesque, eu vestibulum sem tempor. Curabitur
|
|
48
|
+
consequat massa sed nulla lacinia, vitae scelerisque ante egestas.
|
|
49
|
+
Praesent et diam quis diam posuere egestas. Duis feugiat lorem non
|
|
50
|
+
nisl consectetur, sed fringilla odio semper.
|
|
51
|
+
</p>
|
|
52
|
+
</div></b2b-grid-col
|
|
53
|
+
>
|
|
54
|
+
<b2b-grid-col
|
|
55
|
+
><div style="${gridBoxStyles}">
|
|
56
|
+
<h4>Column 7 of 12</h4>
|
|
57
|
+
<p>I grow to fill up all available space</p>
|
|
58
|
+
</div></b2b-grid-col
|
|
59
|
+
>
|
|
60
|
+
<b2b-grid-col
|
|
61
|
+
><div style="${gridBoxStyles}">
|
|
62
|
+
<h4>Column 8 of 12</h4>
|
|
63
|
+
<p>I grow to fill up all available space</p>
|
|
64
|
+
</div></b2b-grid-col
|
|
65
|
+
>
|
|
66
|
+
<b2b-grid-col
|
|
67
|
+
><div style="${gridBoxStyles}">
|
|
68
|
+
<h4>Column 9 of 12</h4>
|
|
69
|
+
<p>I grow to fill up all available space</p>
|
|
70
|
+
</div></b2b-grid-col
|
|
71
|
+
>
|
|
72
|
+
<b2b-grid-col span="3"
|
|
73
|
+
><div style="${gridBoxStyles}">
|
|
74
|
+
<h4>Column 10-12 of 12</h4>
|
|
75
|
+
<p>Resize me by changing the span attribute in the args table.</p>
|
|
76
|
+
</div></b2b-grid-col
|
|
77
|
+
>
|
|
78
|
+
</b2b-grid-row>
|
|
79
|
+
</b2b-grid>`;
|
|
80
|
+
},
|
|
202
81
|
};
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
82
|
+
export const story020AlignItems = {
|
|
83
|
+
name: 'Align Items',
|
|
84
|
+
args: {
|
|
85
|
+
margin: 24,
|
|
86
|
+
alignItems: 'center',
|
|
87
|
+
columnGap: 24,
|
|
88
|
+
rowGap: 24,
|
|
89
|
+
justify: 'center',
|
|
90
|
+
textAlign: 'left',
|
|
91
|
+
},
|
|
92
|
+
render: (_a) => {
|
|
93
|
+
var args = __rest(_a, []);
|
|
94
|
+
return html `<b2b-grid
|
|
95
|
+
><b2b-grid-row
|
|
96
|
+
align-items="${args.alignItems}"
|
|
97
|
+
justify="${args.justify}"
|
|
98
|
+
row-gap="${args.rowGap}"
|
|
99
|
+
column-gap="${args.columnGap}">
|
|
100
|
+
<b2b-grid-col span="2"
|
|
101
|
+
><div style="${gridBoxSmallStyles}">
|
|
102
|
+
<h4>Column 1-2 of 12</h4>
|
|
103
|
+
</div></b2b-grid-col
|
|
104
|
+
>
|
|
105
|
+
<b2b-grid-col span="2"
|
|
106
|
+
><div style="${gridBoxStyles}">
|
|
107
|
+
<h4>Column 3-4 of 12</h4>
|
|
108
|
+
</div></b2b-grid-col
|
|
109
|
+
>
|
|
110
|
+
<b2b-grid-col span="2"
|
|
111
|
+
><div style="${gridBoxSmallStyles}">
|
|
112
|
+
<h4>Column 5-6 of 12</h4>
|
|
113
|
+
</div></b2b-grid-col
|
|
114
|
+
>
|
|
115
|
+
<b2b-grid-col span="2"
|
|
116
|
+
><div style="${gridBoxStyles}">
|
|
117
|
+
<h4>Column 7-8 of 12</h4>
|
|
118
|
+
</div></b2b-grid-col
|
|
119
|
+
>
|
|
120
|
+
<b2b-grid-col span="2"
|
|
121
|
+
><div style="${gridBoxSmallStyles}">
|
|
122
|
+
<h4>Column 9-10 of 12</h4>
|
|
123
|
+
</div></b2b-grid-col
|
|
124
|
+
>
|
|
125
|
+
<b2b-grid-col span="2"
|
|
126
|
+
><div style="${gridBoxStyles}">
|
|
127
|
+
<h4>Column 11-12 of 12</h4>
|
|
128
|
+
</div></b2b-grid-col
|
|
129
|
+
>
|
|
130
|
+
</b2b-grid-row></b2b-grid
|
|
131
|
+
>`;
|
|
132
|
+
},
|
|
214
133
|
};
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
134
|
+
export const story030TextAlign = {
|
|
135
|
+
name: 'Text Align',
|
|
136
|
+
args: {
|
|
137
|
+
margin: 24,
|
|
138
|
+
alignItems: 'stretch',
|
|
139
|
+
columnGap: 24,
|
|
140
|
+
rowGap: 24,
|
|
141
|
+
justify: 'end',
|
|
142
|
+
textAlign: 'left',
|
|
143
|
+
},
|
|
144
|
+
render: (_a) => {
|
|
145
|
+
var args = __rest(_a, []);
|
|
146
|
+
return html `<b2b-grid margin="${args.margin}">
|
|
147
|
+
<b2b-grid-row
|
|
148
|
+
justify="${args.justify}"
|
|
149
|
+
row-gap="${args.rowGap}"
|
|
150
|
+
column-gap="${args.columnGap}">
|
|
151
|
+
<b2b-grid-col span="6" text-align="${args.textAlign}"
|
|
152
|
+
><div style="${gridBoxStyles}">
|
|
153
|
+
<h4>Column 1-6 of 12</h4>
|
|
154
|
+
<p>
|
|
155
|
+
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse
|
|
156
|
+
massa urna, accumsan id viverra et, mollis sit amet sem. Cras congue
|
|
157
|
+
ex ac arcu pellentesque, eu vestibulum sem tempor. Curabitur
|
|
158
|
+
consequat massa sed nulla lacinia, vitae scelerisque ante egestas.
|
|
159
|
+
Praesent et diam quis diam posuere egestas. Duis feugiat lorem non
|
|
160
|
+
nisl consectetur, sed fringilla odio semper.
|
|
161
|
+
</p>
|
|
162
|
+
</div></b2b-grid-col
|
|
163
|
+
>
|
|
164
|
+
<b2b-grid-col span="2"
|
|
165
|
+
><div style="${gridBoxStyles}">
|
|
166
|
+
<h4>Column 7-8 of 12</h4>
|
|
167
|
+
</div></b2b-grid-col
|
|
168
|
+
>
|
|
169
|
+
<b2b-grid-col span="2"
|
|
170
|
+
><div style="${gridBoxStyles}">
|
|
171
|
+
<h4>Column 9-10 of 12</h4>
|
|
172
|
+
</div></b2b-grid-col
|
|
173
|
+
>
|
|
174
|
+
<b2b-grid-col span="2"
|
|
175
|
+
><div style="${gridBoxStyles}">
|
|
176
|
+
<h4>Column 11-12 of 12</h4>
|
|
177
|
+
</div></b2b-grid-col
|
|
178
|
+
></b2b-grid-row
|
|
179
|
+
></b2b-grid
|
|
180
|
+
>`;
|
|
181
|
+
},
|
|
222
182
|
};
|
|
223
|
-
export
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
183
|
+
export const story040Justify = {
|
|
184
|
+
name: 'Justify Content',
|
|
185
|
+
args: {
|
|
186
|
+
margin: 24,
|
|
187
|
+
alignItems: 'stretch',
|
|
188
|
+
columnGap: 24,
|
|
189
|
+
rowGap: 24,
|
|
190
|
+
justify: 'space-around',
|
|
191
|
+
textAlign: 'center',
|
|
192
|
+
},
|
|
193
|
+
render: (_a) => {
|
|
194
|
+
var args = __rest(_a, []);
|
|
195
|
+
return html `<b2b-grid margin="${args.margin}">
|
|
196
|
+
<b2b-grid-row
|
|
197
|
+
justify="${args.justify}"
|
|
198
|
+
row-gap="${args.rowGap}"
|
|
199
|
+
column-gap="${args.columnGap}">
|
|
200
|
+
<b2b-grid-col span="6" text-align="${args.textAlign}"
|
|
201
|
+
><div style="${gridBoxStyles}">
|
|
202
|
+
<h4>Column 1-6 of 12</h4>
|
|
203
|
+
<p>
|
|
204
|
+
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse
|
|
205
|
+
massa urna, accumsan id viverra et, mollis sit amet sem. Cras congue
|
|
206
|
+
ex ac arcu pellentesque, eu vestibulum sem tempor. Curabitur
|
|
207
|
+
consequat massa sed nulla lacinia, vitae scelerisque ante egestas.
|
|
208
|
+
Praesent et diam quis diam posuere egestas. Duis feugiat lorem non
|
|
209
|
+
nisl consectetur, sed fringilla odio semper.
|
|
210
|
+
</p>
|
|
211
|
+
</div></b2b-grid-col
|
|
212
|
+
>
|
|
213
|
+
<b2b-grid-col span="2"
|
|
214
|
+
><div style="${gridBoxStyles}">
|
|
215
|
+
<h4>Column 7-8 of 12</h4>
|
|
216
|
+
</div></b2b-grid-col
|
|
217
|
+
>
|
|
218
|
+
<b2b-grid-col span="2"
|
|
219
|
+
><div style="${gridBoxStyles}">
|
|
220
|
+
<h4>Column 9-10 of 12</h4>
|
|
221
|
+
</div></b2b-grid-col
|
|
222
|
+
>
|
|
223
|
+
<b2b-grid-col span="2"
|
|
224
|
+
><div style="${gridBoxStyles}">
|
|
225
|
+
<h4>Column 11-12 of 12</h4>
|
|
226
|
+
</div></b2b-grid-col
|
|
227
|
+
></b2b-grid-row
|
|
228
|
+
></b2b-grid
|
|
229
|
+
>`;
|
|
229
230
|
},
|
|
230
231
|
};
|
|
@@ -6,8 +6,39 @@ export class B2bGridRowComponent {
|
|
|
6
6
|
this.alignItems = 'stretch';
|
|
7
7
|
this.justify = 'start';
|
|
8
8
|
}
|
|
9
|
+
componentDidLoad() {
|
|
10
|
+
this.adjustColumnFlex();
|
|
11
|
+
}
|
|
12
|
+
adjustColumnFlex() {
|
|
13
|
+
const columns = this.hostElement.querySelectorAll('b2b-grid-col');
|
|
14
|
+
let totalSpan = 0;
|
|
15
|
+
let columnsWithoutSpan = [];
|
|
16
|
+
columns.forEach((column) => {
|
|
17
|
+
const span = column.getAttribute('span');
|
|
18
|
+
if (span) {
|
|
19
|
+
totalSpan += parseInt(span, 10);
|
|
20
|
+
}
|
|
21
|
+
else {
|
|
22
|
+
columnsWithoutSpan.push(column);
|
|
23
|
+
}
|
|
24
|
+
});
|
|
25
|
+
const remainingSpan = 12 - totalSpan;
|
|
26
|
+
if (remainingSpan == 12) {
|
|
27
|
+
if (columnsWithoutSpan.length > 0) {
|
|
28
|
+
columnsWithoutSpan.forEach(column => {
|
|
29
|
+
column.setAttribute('span', '1');
|
|
30
|
+
});
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
if (columnsWithoutSpan.length > 0) {
|
|
34
|
+
const flexPerColumn = ((remainingSpan / 12) * 100) / columnsWithoutSpan.length;
|
|
35
|
+
columnsWithoutSpan.forEach(column => {
|
|
36
|
+
column.style.flex = `${flexPerColumn}%`;
|
|
37
|
+
});
|
|
38
|
+
}
|
|
39
|
+
}
|
|
9
40
|
render() {
|
|
10
|
-
return (h(Host, { key: '
|
|
41
|
+
return (h(Host, { key: '76c179fe5253504e038b6ac11a8d528a1e5f1109', style: {
|
|
11
42
|
['justify-content']: `${this.justify}`,
|
|
12
43
|
['gap']: `${this.columnGap}px`,
|
|
13
44
|
['margin']: `${this.rowGap}px 0`,
|
|
@@ -15,7 +46,7 @@ export class B2bGridRowComponent {
|
|
|
15
46
|
['display']: 'flex',
|
|
16
47
|
['flex-wrap']: 'wrap',
|
|
17
48
|
['box-sizing']: 'border-box',
|
|
18
|
-
} }, h("slot", { key: '
|
|
49
|
+
} }, h("slot", { key: 'c4af8f5183e948a8d2115ad60cb6751c8a9d6595' })));
|
|
19
50
|
}
|
|
20
51
|
static get is() { return "b2b-grid-row"; }
|
|
21
52
|
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;
|
|
@@ -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;
|
|
@@ -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;
|
|
@@ -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;
|