@otto-de/b2b-core-components 1.19.0 → 1.21.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/b2b-core-components/b2b-core-components.esm.js +1 -1
- package/dist/b2b-core-components/icons-100/b2b_icon-chatbot.svg +2 -20
- package/dist/b2b-core-components/icons-50/b2b_icon-arrow-down.svg +2 -1
- package/dist/b2b-core-components/icons-50/b2b_icon-arrow-left.svg +2 -1
- package/dist/b2b-core-components/icons-50/b2b_icon-arrow-right.svg +2 -1
- package/dist/b2b-core-components/icons-50/b2b_icon-arrow-up.svg +2 -1
- package/dist/b2b-core-components/icons-50/b2b_icon-basket.svg +3 -2
- package/dist/b2b-core-components/icons-50/b2b_icon-check.svg +2 -1
- package/dist/b2b-core-components/icons-50/b2b_icon-close.svg +2 -1
- package/dist/b2b-core-components/icons-50/b2b_icon-delete.svg +5 -4
- package/dist/b2b-core-components/icons-50/b2b_icon-error-hint.svg +2 -1
- package/dist/b2b-core-components/icons-50/b2b_icon-filter.svg +4 -3
- package/dist/b2b-core-components/icons-50/b2b_icon-info-hint.svg +2 -1
- package/dist/b2b-core-components/icons-50/b2b_icon-info.svg +2 -1
- package/dist/b2b-core-components/icons-50/b2b_icon-leaving-page.svg +3 -2
- package/dist/b2b-core-components/icons-50/b2b_icon-minus.svg +2 -1
- package/dist/b2b-core-components/icons-50/b2b_icon-pin.svg +3 -2
- package/dist/b2b-core-components/icons-50/b2b_icon-plus.svg +2 -1
- package/dist/b2b-core-components/icons-50/b2b_icon-question-hint.svg +2 -1
- package/dist/b2b-core-components/icons-50/b2b_icon-question.svg +2 -1
- package/dist/b2b-core-components/icons-50/b2b_icon-rating-empty.svg +2 -1
- package/dist/b2b-core-components/icons-50/b2b_icon-rating-filled.svg +2 -1
- package/dist/b2b-core-components/icons-50/b2b_icon-rating-half.svg +2 -1
- package/dist/b2b-core-components/icons-50/b2b_icon-refresh.svg +2 -1
- package/dist/b2b-core-components/icons-50/b2b_icon-reply.svg +2 -1
- package/dist/b2b-core-components/icons-50/b2b_icon-smiley-positive.svg +5 -4
- package/dist/b2b-core-components/icons-50/b2b_icon-sort-ascending.svg +2 -1
- package/dist/b2b-core-components/icons-50/b2b_icon-sort-descending.svg +2 -1
- package/dist/b2b-core-components/icons-50/b2b_icon-sort.svg +6 -5
- package/dist/b2b-core-components/icons-50/b2b_icon-success-hint.svg +2 -1
- package/dist/b2b-core-components/icons-50/b2b_icon-trend-down.svg +2 -1
- package/dist/b2b-core-components/icons-50/b2b_icon-trend-up.svg +2 -1
- package/dist/b2b-core-components/icons-50/b2b_icon-warning-hint.svg +2 -1
- package/dist/b2b-core-components/icons-50/b2b_icon-wishlist-active.svg +2 -1
- package/dist/b2b-core-components/icons-50/b2b_icon-wishlist.svg +2 -1
- package/dist/b2b-core-components/p-0dc06432.entry.js +1 -0
- package/dist/b2b-core-components/{p-bcb7e042.entry.js → p-0f2249e0.entry.js} +1 -1
- package/dist/b2b-core-components/{p-1135d0ce.entry.js → p-11e5143c.entry.js} +1 -1
- package/dist/b2b-core-components/{p-6847b3bf.entry.js → p-1525a056.entry.js} +1 -1
- package/dist/b2b-core-components/{p-64a2aebd.entry.js → p-15a24ba4.entry.js} +1 -1
- package/dist/b2b-core-components/p-164d8803.entry.js +1 -0
- package/dist/b2b-core-components/p-19392020.js +1 -0
- package/dist/b2b-core-components/p-1b7201e1.entry.js +1 -0
- package/dist/b2b-core-components/{p-189f3e25.entry.js → p-1c048a27.entry.js} +1 -1
- package/dist/b2b-core-components/{p-e9537c12.entry.js → p-1e8416a3.entry.js} +1 -1
- package/dist/b2b-core-components/{p-171722c3.entry.js → p-2b214797.entry.js} +1 -1
- package/dist/b2b-core-components/p-2bab8c7f.entry.js +1 -0
- package/dist/b2b-core-components/{p-c33bc1a2.entry.js → p-2de83995.entry.js} +1 -1
- package/dist/b2b-core-components/{p-4e7ad473.entry.js → p-33ba40ee.entry.js} +1 -1
- package/dist/b2b-core-components/{p-7128c388.entry.js → p-3665d675.entry.js} +1 -1
- package/dist/b2b-core-components/p-376ba9ef.entry.js +1 -0
- package/dist/b2b-core-components/{p-35dca1b0.entry.js → p-57d487e2.entry.js} +1 -1
- package/dist/b2b-core-components/p-6e031b32.entry.js +1 -0
- package/dist/b2b-core-components/{p-d4ab2a73.entry.js → p-72e23a4e.entry.js} +1 -1
- package/dist/b2b-core-components/{p-ae0d9209.entry.js → p-799b194b.entry.js} +1 -1
- package/dist/b2b-core-components/{p-39651255.entry.js → p-7b711ed3.entry.js} +1 -1
- package/dist/b2b-core-components/{p-54d15111.entry.js → p-869095a0.entry.js} +1 -1
- package/dist/b2b-core-components/{p-31df26eb.entry.js → p-8fc792f9.entry.js} +1 -1
- package/dist/b2b-core-components/p-947f2e2c.entry.js +1 -0
- package/dist/b2b-core-components/{p-0e7e3e44.entry.js → p-9a0a4a74.entry.js} +1 -1
- package/dist/b2b-core-components/p-9fc53916.entry.js +1 -0
- package/dist/b2b-core-components/p-a0c1c775.entry.js +1 -0
- package/dist/b2b-core-components/{p-30d6787c.entry.js → p-a155219a.entry.js} +1 -1
- package/dist/b2b-core-components/{p-e350e4ab.entry.js → p-acc7ae99.entry.js} +1 -1
- package/dist/b2b-core-components/p-c03d0533.entry.js +1 -0
- package/dist/b2b-core-components/{p-1887174e.entry.js → p-d42c90d1.entry.js} +1 -1
- package/dist/b2b-core-components/p-e1d7f335.entry.js +1 -0
- package/dist/b2b-core-components/{p-758ff932.entry.js → p-f6fa3212.entry.js} +1 -1
- package/dist/cjs/b2b-alert.cjs.entry.js +1 -1
- package/dist/cjs/b2b-anchor.cjs.entry.js +7 -3
- package/dist/cjs/b2b-breadcrumb-item.cjs.entry.js +1 -1
- package/dist/cjs/b2b-breadcrumb.cjs.entry.js +8 -3
- package/dist/cjs/b2b-button_2.cjs.entry.js +1 -1
- package/dist/cjs/b2b-checkbox.cjs.entry.js +1 -1
- package/dist/cjs/b2b-core-components.cjs.js +1 -1
- package/dist/cjs/b2b-date-picker.cjs.entry.js +8 -9
- package/dist/cjs/b2b-modal.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 +5 -2
- package/dist/cjs/b2b-required-separator.cjs.entry.js +1 -1
- package/dist/cjs/b2b-rounded-icon.cjs.entry.js +4 -4
- 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-tab-group.cjs.entry.js +1 -1
- package/dist/cjs/b2b-tab-panel.cjs.entry.js +1 -1
- package/dist/cjs/b2b-tab.cjs.entry.js +2 -2
- package/dist/cjs/b2b-table-cell_2.cjs.entry.js +21 -22
- package/dist/cjs/b2b-table-row.cjs.entry.js +27 -20
- package/dist/cjs/b2b-table-rowgroup.cjs.entry.js +10 -27
- package/dist/cjs/b2b-table.cjs.entry.js +5 -6
- package/dist/cjs/b2b-textarea.cjs.entry.js +2 -2
- package/dist/cjs/b2b-toggle-button.cjs.entry.js +3 -3
- package/dist/cjs/b2b-toggle-chip.cjs.entry.js +3 -3
- package/dist/cjs/b2b-toggle-group.cjs.entry.js +2 -2
- package/dist/cjs/b2b-toggle-switch.cjs.entry.js +4 -4
- package/dist/cjs/b2b-tooltip.cjs.entry.js +3 -3
- package/dist/cjs/b2b-wizard-icon.cjs.entry.js +1 -1
- package/dist/cjs/b2b-wizard-step.cjs.entry.js +2 -2
- package/dist/cjs/b2b-wizard.cjs.entry.js +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{utils-41f7ffa8.js → utils-499e9db5.js} +43 -0
- package/dist/collection/components/alert/alert.css +2 -2
- package/dist/collection/components/alert/alert.e2e.js +2 -2
- package/dist/collection/components/alert/alert.js +2 -2
- package/dist/collection/components/anchor/anchor.css +16 -7
- package/dist/collection/components/anchor/anchor.js +42 -2
- package/dist/collection/components/anchor/anchor.spec.js +8 -8
- package/dist/collection/components/anchor/anchor.stories.js +22 -2
- package/dist/collection/components/background-box/background-box.css +2 -2
- package/dist/collection/components/breadcrumb/breadcrumb.css +13 -11
- package/dist/collection/components/breadcrumb/breadcrumb.js +47 -2
- package/dist/collection/components/breadcrumb/breadcrumb.stories.js +15 -6
- package/dist/collection/components/button/button.css +2 -2
- package/dist/collection/components/card/card.css +2 -2
- package/dist/collection/components/checkbox/checkbox.css +2 -2
- package/dist/collection/components/checkbox/checkbox.js +1 -1
- package/dist/collection/components/checkbox/checkbox.stories.js +1 -0
- package/dist/collection/components/checkbox-group/checkbox-group.css +2 -2
- package/dist/collection/components/chip/chip.css +2 -2
- package/dist/collection/components/date-picker/date-picker-days-header.css +2 -2
- package/dist/collection/components/date-picker/date-picker-days.css +2 -2
- package/dist/collection/components/date-picker/date-picker-header.css +2 -2
- package/dist/collection/components/date-picker/date-picker-months.css +2 -2
- package/dist/collection/components/date-picker/date-picker-years.css +2 -2
- package/dist/collection/components/date-picker/date-picker.css +4 -4
- package/dist/collection/components/date-picker/date-picker.js +7 -8
- package/dist/collection/components/dropdown/dropdown.css +2 -2
- package/dist/collection/components/flyout-menu/flyout-menu-option.css +2 -2
- package/dist/collection/components/flyout-menu/flyout-menu.css +2 -2
- package/dist/collection/components/headline/headline.css +2 -2
- package/dist/collection/components/headline/headline.stories.js +9 -2
- package/dist/collection/components/icon/icon.css +2 -2
- package/dist/collection/components/icon-100/icon-100.css +2 -2
- package/dist/collection/components/icon-100/icons-100/b2b_icon-chatbot.svg +2 -20
- package/dist/collection/components/icon-50/icon-50.css +2 -2
- package/dist/collection/components/icon-50/icons-50/b2b_icon-arrow-down.svg +2 -1
- package/dist/collection/components/icon-50/icons-50/b2b_icon-arrow-left.svg +2 -1
- package/dist/collection/components/icon-50/icons-50/b2b_icon-arrow-right.svg +2 -1
- package/dist/collection/components/icon-50/icons-50/b2b_icon-arrow-up.svg +2 -1
- package/dist/collection/components/icon-50/icons-50/b2b_icon-basket.svg +3 -2
- package/dist/collection/components/icon-50/icons-50/b2b_icon-check.svg +2 -1
- package/dist/collection/components/icon-50/icons-50/b2b_icon-close.svg +2 -1
- package/dist/collection/components/icon-50/icons-50/b2b_icon-delete.svg +5 -4
- package/dist/collection/components/icon-50/icons-50/b2b_icon-error-hint.svg +2 -1
- package/dist/collection/components/icon-50/icons-50/b2b_icon-filter.svg +4 -3
- package/dist/collection/components/icon-50/icons-50/b2b_icon-info-hint.svg +2 -1
- package/dist/collection/components/icon-50/icons-50/b2b_icon-info.svg +2 -1
- package/dist/collection/components/icon-50/icons-50/b2b_icon-leaving-page.svg +3 -2
- package/dist/collection/components/icon-50/icons-50/b2b_icon-minus.svg +2 -1
- package/dist/collection/components/icon-50/icons-50/b2b_icon-pin.svg +3 -2
- package/dist/collection/components/icon-50/icons-50/b2b_icon-plus.svg +2 -1
- package/dist/collection/components/icon-50/icons-50/b2b_icon-question-hint.svg +2 -1
- package/dist/collection/components/icon-50/icons-50/b2b_icon-question.svg +2 -1
- package/dist/collection/components/icon-50/icons-50/b2b_icon-rating-empty.svg +2 -1
- package/dist/collection/components/icon-50/icons-50/b2b_icon-rating-filled.svg +2 -1
- package/dist/collection/components/icon-50/icons-50/b2b_icon-rating-half.svg +2 -1
- package/dist/collection/components/icon-50/icons-50/b2b_icon-refresh.svg +2 -1
- package/dist/collection/components/icon-50/icons-50/b2b_icon-reply.svg +2 -1
- package/dist/collection/components/icon-50/icons-50/b2b_icon-smiley-positive.svg +5 -4
- package/dist/collection/components/icon-50/icons-50/b2b_icon-sort-ascending.svg +2 -1
- package/dist/collection/components/icon-50/icons-50/b2b_icon-sort-descending.svg +2 -1
- package/dist/collection/components/icon-50/icons-50/b2b_icon-sort.svg +6 -5
- package/dist/collection/components/icon-50/icons-50/b2b_icon-success-hint.svg +2 -1
- package/dist/collection/components/icon-50/icons-50/b2b_icon-trend-down.svg +2 -1
- package/dist/collection/components/icon-50/icons-50/b2b_icon-trend-up.svg +2 -1
- package/dist/collection/components/icon-50/icons-50/b2b_icon-warning-hint.svg +2 -1
- package/dist/collection/components/icon-50/icons-50/b2b_icon-wishlist-active.svg +2 -1
- package/dist/collection/components/icon-50/icons-50/b2b_icon-wishlist.svg +2 -1
- package/dist/collection/components/input/input.css +2 -2
- package/dist/collection/components/input-group/input-group.css +2 -2
- package/dist/collection/components/input-list/input-list.css +2 -2
- package/dist/collection/components/label/label.css +2 -2
- package/dist/collection/components/modal/modal.css +3 -3
- package/dist/collection/components/multiselect-dropdown/multiselect-dropdown.css +2 -2
- package/dist/collection/components/pagination/pagination.css +2 -2
- package/dist/collection/components/paragraph/paragraph.css +2 -2
- package/dist/collection/components/paragraph/paragraph.stories.js +1 -1
- package/dist/collection/components/progress-bar/progress-bar.css +5 -2
- package/dist/collection/components/radio/radio.css +2 -2
- package/dist/collection/components/radio/radio.e2e.js +8 -0
- package/dist/collection/components/radio/radio.js +1 -1
- package/dist/collection/components/radio/radio.stories.js +7 -0
- package/dist/collection/components/radio-group/radio-group.css +2 -2
- package/dist/collection/components/radio-group/radio-group.e2e.js +11 -0
- package/dist/collection/components/radio-group/radio-group.js +5 -2
- package/dist/collection/components/radio-group/radio-group.stories.js +15 -0
- package/dist/collection/components/required-separator/required-separator.css +2 -2
- package/dist/collection/components/required-separator/required-separator.js +1 -1
- package/dist/collection/components/rounded-icon/rounded-icon.css +2 -2
- package/dist/collection/components/rounded-icon/rounded-icon.js +4 -4
- package/dist/collection/components/scrollable-container/scrollable-container.css +2 -2
- package/dist/collection/components/scrollable-container/scrollable-container.js +1 -1
- package/dist/collection/components/search/search.js +1 -1
- package/dist/collection/components/separator/separator.css +2 -2
- package/dist/collection/components/separator/separator.js +1 -1
- package/dist/collection/components/spinner/spinner.css +2 -2
- package/dist/collection/components/spinner/spinner.js +1 -1
- package/dist/collection/components/tab/tab.css +2 -2
- 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-panel/tab-panel.css +2 -2
- package/dist/collection/components/tab-panel/tab-panel.js +1 -1
- package/dist/collection/components/table/table-cell/table-cell.css +2 -2
- package/dist/collection/components/table/table-cell/table-cell.js +2 -2
- package/dist/collection/components/table/table-header/table-header.css +2 -2
- package/dist/collection/components/table/table-header/table-header.js +1 -1
- package/dist/collection/components/table/table-row/table-row.css +2 -2
- package/dist/collection/components/table/table-row/table-row.js +25 -43
- package/dist/collection/components/table/table-rowgroup/table-rowgroup.css +2 -2
- package/dist/collection/components/table/table-rowgroup/table-rowgroup.js +6 -22
- package/dist/collection/components/table/table.css +2 -2
- package/dist/collection/components/table/table.e2e.js +5 -5
- package/dist/collection/components/table/table.js +2 -2
- package/dist/collection/components/table/utils.js +5 -0
- package/dist/collection/components/textarea/textarea.css +2 -2
- package/dist/collection/components/textarea/textarea.js +2 -2
- package/dist/collection/components/toggle-button/toggle-button.css +2 -2
- package/dist/collection/components/toggle-button/toggle-button.js +3 -3
- package/dist/collection/components/toggle-chip/toggle-chip.css +2 -2
- package/dist/collection/components/toggle-chip/toggle-chip.js +3 -3
- package/dist/collection/components/toggle-group/toggle-group.css +2 -2
- package/dist/collection/components/toggle-group/toggle-group.js +2 -2
- package/dist/collection/components/toggle-switch/toggle-switch.css +2 -2
- package/dist/collection/components/toggle-switch/toggle-switch.js +4 -4
- package/dist/collection/components/tooltip/tooltip.css +2 -2
- package/dist/collection/components/tooltip/tooltip.js +3 -3
- package/dist/collection/components/wizard/wizard-step.js +2 -2
- package/dist/collection/components/wizard/wizard.css +2 -2
- package/dist/collection/components/wizard/wizard.js +1 -1
- package/dist/collection/components/wizard-icon/wizard-icon.css +2 -2
- package/dist/collection/components/wizard-icon/wizard-icon.js +1 -1
- package/dist/collection/utils/types/table.types.js +0 -5
- package/dist/components/b2b-alert.js +1 -1
- package/dist/components/b2b-anchor.js +10 -4
- package/dist/components/b2b-breadcrumb-item.js +1 -1
- package/dist/components/b2b-breadcrumb.js +12 -4
- package/dist/components/b2b-date-picker.js +8 -9
- package/dist/components/b2b-modal.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 +5 -2
- package/dist/components/b2b-required-separator.js +1 -1
- package/dist/components/b2b-scrollable-container.js +1 -1
- package/dist/components/b2b-search.js +1 -1
- package/dist/components/b2b-tab-group.js +1 -1
- package/dist/components/b2b-tab-panel.js +1 -1
- package/dist/components/b2b-tab.js +2 -2
- package/dist/components/b2b-table-row.js +24 -18
- package/dist/components/b2b-table-rowgroup.js +5 -21
- package/dist/components/b2b-table.js +2 -2
- package/dist/components/b2b-textarea.js +2 -2
- package/dist/components/b2b-toggle-button.js +3 -3
- package/dist/components/b2b-toggle-chip.js +3 -3
- package/dist/components/b2b-toggle-group.js +2 -2
- package/dist/components/b2b-toggle-switch.js +4 -4
- package/dist/components/b2b-tooltip.js +3 -3
- package/dist/components/b2b-wizard-step.js +2 -2
- package/dist/components/b2b-wizard.js +1 -1
- package/dist/components/checkbox.js +1 -1
- package/dist/components/rounded-icon.js +4 -4
- package/dist/components/separator.js +1 -1
- package/dist/components/spinner.js +1 -1
- package/dist/components/table-cell.js +2 -2
- package/dist/components/table-header.js +1 -1
- package/dist/components/utils.js +6 -6
- package/dist/components/wizard-icon.js +1 -1
- package/dist/custom-elements.json +26 -1
- package/dist/esm/b2b-alert.entry.js +1 -1
- package/dist/esm/b2b-anchor.entry.js +7 -3
- package/dist/esm/b2b-breadcrumb-item.entry.js +1 -1
- package/dist/esm/b2b-breadcrumb.entry.js +8 -3
- package/dist/esm/b2b-button_2.entry.js +1 -1
- package/dist/esm/b2b-checkbox.entry.js +1 -1
- package/dist/esm/b2b-core-components.js +1 -1
- package/dist/esm/b2b-date-picker.entry.js +8 -9
- package/dist/esm/b2b-modal.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 +5 -2
- package/dist/esm/b2b-required-separator.entry.js +1 -1
- package/dist/esm/b2b-rounded-icon.entry.js +4 -4
- 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-tab-group.entry.js +1 -1
- package/dist/esm/b2b-tab-panel.entry.js +1 -1
- package/dist/esm/b2b-tab.entry.js +2 -2
- package/dist/esm/b2b-table-cell_2.entry.js +4 -5
- package/dist/esm/b2b-table-row.entry.js +24 -17
- package/dist/esm/b2b-table-rowgroup.entry.js +5 -22
- package/dist/esm/b2b-table.entry.js +3 -4
- package/dist/esm/b2b-textarea.entry.js +2 -2
- package/dist/esm/b2b-toggle-button.entry.js +3 -3
- package/dist/esm/b2b-toggle-chip.entry.js +3 -3
- package/dist/esm/b2b-toggle-group.entry.js +2 -2
- package/dist/esm/b2b-toggle-switch.entry.js +4 -4
- package/dist/esm/b2b-tooltip.entry.js +3 -3
- package/dist/esm/b2b-wizard-icon.entry.js +1 -1
- package/dist/esm/b2b-wizard-step.entry.js +2 -2
- package/dist/esm/b2b-wizard.entry.js +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/esm/{utils-71968b12.js → utils-868299de.js} +37 -1
- package/dist/types/components/anchor/anchor.d.ts +4 -0
- package/dist/types/components/anchor/anchor.stories.d.ts +3 -1
- package/dist/types/components/breadcrumb/breadcrumb.d.ts +4 -0
- package/dist/types/components/breadcrumb/breadcrumb.stories.d.ts +1 -0
- package/dist/types/components/headline/headline.stories.d.ts +1 -0
- package/dist/types/components/radio/radio.stories.d.ts +2 -1
- package/dist/types/components/radio-group/radio-group.d.ts +2 -0
- package/dist/types/components/radio-group/radio-group.stories.d.ts +2 -1
- package/dist/types/components/table/table-row/table-row.d.ts +3 -3
- package/dist/types/components/table/table-rowgroup/table-rowgroup.d.ts +0 -1
- package/dist/types/components/table/utils.d.ts +1 -0
- package/dist/types/components.d.ts +34 -3
- package/dist/types/utils/types/table.types.d.ts +0 -6
- package/dist/web-types.json +44 -3
- package/package.json +2 -2
- package/dist/b2b-core-components/p-062b3042.entry.js +0 -1
- package/dist/b2b-core-components/p-0af31837.entry.js +0 -1
- package/dist/b2b-core-components/p-21cd256f.entry.js +0 -1
- package/dist/b2b-core-components/p-2c60a909.entry.js +0 -1
- package/dist/b2b-core-components/p-2d3de3a7.entry.js +0 -1
- package/dist/b2b-core-components/p-39254a15.entry.js +0 -1
- package/dist/b2b-core-components/p-6148866a.entry.js +0 -1
- package/dist/b2b-core-components/p-6f17d047.entry.js +0 -1
- package/dist/b2b-core-components/p-baa99f00.entry.js +0 -1
- package/dist/b2b-core-components/p-bff69403.js +0 -1
- package/dist/b2b-core-components/p-d3f86dfe.entry.js +0 -1
- package/dist/b2b-core-components/p-d6400aa5.js +0 -1
- package/dist/b2b-core-components/p-df71f2a8.entry.js +0 -1
- package/dist/cjs/table.types-5df665b6.js +0 -45
- package/dist/esm/table.types-083a173a.js +0 -37
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { proxyCustomElement, HTMLElement, createEvent, h, Host } from '@stencil/core/internal/client';
|
|
2
|
-
import {
|
|
2
|
+
import { i as isFirstRow, b as TableColourOptions, T as TableSizes } from './utils.js';
|
|
3
3
|
import { d as defineCustomElement$6 } from './checkbox.js';
|
|
4
4
|
import { d as defineCustomElement$5 } from './icon.js';
|
|
5
5
|
import { d as defineCustomElement$4 } from './input-label.js';
|
|
@@ -31,8 +31,11 @@ const TableRowComponent = /*@__PURE__*/ proxyCustomElement(class TableRowCompone
|
|
|
31
31
|
});
|
|
32
32
|
};
|
|
33
33
|
this.getRowColor = () => {
|
|
34
|
-
if (this.
|
|
34
|
+
if (this.isAccordion() &&
|
|
35
|
+
isFirstRow(this.hostElement) &&
|
|
36
|
+
!this.isHeader()) {
|
|
35
37
|
return TableColourOptions.GROUP;
|
|
38
|
+
}
|
|
36
39
|
return this.color;
|
|
37
40
|
};
|
|
38
41
|
/** Only needs to be added if we control the state of the selection. */
|
|
@@ -43,8 +46,14 @@ const TableRowComponent = /*@__PURE__*/ proxyCustomElement(class TableRowCompone
|
|
|
43
46
|
this.getParentRowGroup = () => {
|
|
44
47
|
return this.hostElement.closest('b2b-table-rowgroup');
|
|
45
48
|
};
|
|
49
|
+
this.isAccordion = () => {
|
|
50
|
+
return this.getParentRowGroup().hasAttribute('accordion');
|
|
51
|
+
};
|
|
52
|
+
this.isHeader = () => {
|
|
53
|
+
return this.getParentRowGroup().type === 'header';
|
|
54
|
+
};
|
|
46
55
|
this.getCheckbox = () => {
|
|
47
|
-
|
|
56
|
+
const parent = this.getParentRowGroup();
|
|
48
57
|
if (this.shouldAddCheckbox()) {
|
|
49
58
|
if (parent.type === 'header') {
|
|
50
59
|
return (h("b2b-table-header", { class: "b2b-table-row__control-cell--checkbox" }, h("b2b-checkbox", { standalone: true, checked: this.checked, indeterminate: this.indeterminate })));
|
|
@@ -55,23 +64,21 @@ const TableRowComponent = /*@__PURE__*/ proxyCustomElement(class TableRowCompone
|
|
|
55
64
|
}
|
|
56
65
|
};
|
|
57
66
|
this.getAccordionColumns = () => {
|
|
58
|
-
if (this.
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
'b2b-table-row__accordion-icon': true,
|
|
65
|
-
'b2b-table-row__accordion-icon--open': this.isOpen,
|
|
66
|
-
} }, h("b2b-icon", { icon: "b2b_icon-arrow-right", clickable: true }))));
|
|
67
|
-
case TableAccordionRowTypes.CHILD:
|
|
68
|
-
return (h("b2b-table-cell", { class: "b2b-table-row__control-cell--accordion" }));
|
|
67
|
+
if (this.isAccordion() && !this.isHeader()) {
|
|
68
|
+
if (isFirstRow(this.hostElement)) {
|
|
69
|
+
return (h("b2b-table-cell", null, h("button", { onClick: this.toggleOpen, class: {
|
|
70
|
+
'b2b-table-row__accordion-icon': true,
|
|
71
|
+
'b2b-table-row__accordion-icon--open': this.isOpen,
|
|
72
|
+
} }, h("b2b-icon", { icon: "b2b_icon-arrow-right", clickable: true }))));
|
|
69
73
|
}
|
|
74
|
+
return (h("b2b-table-cell", { class: "b2b-table-row__control-cell--accordion" }));
|
|
75
|
+
}
|
|
76
|
+
else if (this.isAccordion() && this.isHeader()) {
|
|
77
|
+
return (h("b2b-table-header", { class: "b2b-table-row__control-cell--accordion" }));
|
|
70
78
|
}
|
|
71
79
|
};
|
|
72
80
|
this.highlight = true;
|
|
73
81
|
this.color = 'default';
|
|
74
|
-
this.accordionType = undefined;
|
|
75
82
|
this.selectable = undefined;
|
|
76
83
|
this.size = undefined;
|
|
77
84
|
this.value = undefined;
|
|
@@ -105,19 +112,18 @@ const TableRowComponent = /*@__PURE__*/ proxyCustomElement(class TableRowCompone
|
|
|
105
112
|
}
|
|
106
113
|
}
|
|
107
114
|
render() {
|
|
108
|
-
return (h(Host, { key: '
|
|
115
|
+
return (h(Host, { key: 'f92b4349e74b6f9f4ff5da3661a268c0554cacf1', class: {
|
|
109
116
|
'b2b-table-row': true,
|
|
110
117
|
['b2b-table-row--colspan']: this.size === TableSizes.COLSPAN,
|
|
111
118
|
['b2b-table-row--highlight']: this.highlight,
|
|
112
119
|
[`b2b-table-row--color-${this.getRowColor()}`]: true,
|
|
113
|
-
}, role: "row" }, this.getAccordionColumns(), this.getCheckbox(), h("slot", { key: '
|
|
120
|
+
}, role: "row" }, this.getAccordionColumns(), this.getCheckbox(), h("slot", { key: '08f7b690c3b0a7ae8e8083254b9a975989306e57' })));
|
|
114
121
|
}
|
|
115
122
|
get hostElement() { return this; }
|
|
116
123
|
static get style() { return B2bTableRowStyle0; }
|
|
117
124
|
}, [1, "b2b-table-row", {
|
|
118
125
|
"highlight": [4],
|
|
119
126
|
"color": [1],
|
|
120
|
-
"accordionType": [1, "accordion-type"],
|
|
121
127
|
"selectable": [4],
|
|
122
128
|
"size": [1],
|
|
123
129
|
"value": [1],
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { proxyCustomElement, HTMLElement, createEvent, h, Host } from '@stencil/core/internal/client';
|
|
2
|
-
import {
|
|
2
|
+
import { i as isFirstRow, g as getAllRows, c as getFirstRow, d as getRemainingRows, T as TableSizes, e as TableRowgroupTypes, u as updateCheckboxState } from './utils.js';
|
|
3
3
|
|
|
4
4
|
const tableRowgroupCss = ":root,:host{--b2b-size-200:5rem;--b2b-size-160:4rem;--b2b-size-150:3.75rem;--b2b-size-140:3.5rem;--b2b-size-120:3rem;--b2b-size-100:2.5rem;--b2b-size-90:2.25rem;--b2b-size-80:2rem;--b2b-size-70:1.75rem;--b2b-size-60:1.5rem;--b2b-size-55:1.375rem;--b2b-size-53:1.3125rem;--b2b-size-50:1.25rem;--b2b-size-45:1.125rem;--b2b-size-40:1rem;--b2b-size-35:0.875rem;--b2b-size-30:0.75rem;--b2b-size-25:0.625rem;--b2b-size-20:0.5rem;--b2b-size-15:0.375rem;--b2b-size-10:0.25rem;--b2b-size-7:0.1875rem;--b2b-size-5:0.125rem;--b2b-size-1:0.0625rem;--b2b-font-weight-bold:700;--b2b-font-weight-normal:500;--b2b-font-weight-thin:100;--b2b-font-family-default:OttoSans, Arial, Helvetica, sans-serif;--b2b-color-table-expand-hover:#e6f4ff;--b2b-color-table-selected-default:#cce9ff;--b2b-color-background-overlay-transparent-40:rgba(34, 34, 34, 0.25);--b2b-color-background-overlay-transparent-80:rgba(34, 34, 34, 0.5);--b2b-color-hover:#e6f4ff;--b2b-color-info-100:#003264;--b2b-color-info-50:#ccd6e0;--b2b-color-success-100:#326400;--b2b-color-success-50:#d6e0cc;--b2b-color-warning-100:#ffb432;--b2b-color-warning-50:#ffd998;--b2b-color-error-100:#e6344b;--b2b-color-primary:#d4021d;--b2b-color-red-250:#850012;--b2b-color-red-200:#bb0004;--b2b-color-red-150:#e6344b;--b2b-color-red-100:#d4021d;--b2b-color-red-50:#ffdde3;--b2b-color-grey-400:#777777;--b2b-color-grey-300:#9e9e9e;--b2b-color-grey-250:#b1b1b1;--b2b-color-grey-200:#c4c4c4;--b2b-color-grey-150:#d5d5d5;--b2b-color-grey-100:#e6e6e6;--b2b-color-grey-50:#eeeeee;--b2b-color-grey-25:#f6f6f6;--b2b-color-white-100:#ffffff;--b2b-color-black-100:#222222;--b2b-color-black-50:#333333;--b2b-size-headline-line-height-400:var(--b2b-size-60);--b2b-size-headline-line-height-200:var(--b2b-size-60);--b2b-size-headline-line-height-100:var(--b2b-size-60);--b2b-size-headline-400:var(--b2b-size-60);--b2b-size-headline-200:var(--b2b-size-45);--b2b-size-headline-100:var(--b2b-size-40);--b2b-size-copy-line-height-300:var(--b2b-size-90);--b2b-size-copy-line-height-200:var(--b2b-size-60);--b2b-size-copy-line-height-125:var(--b2b-size-60);--b2b-size-copy-line-height-100:var(--b2b-size-53);--b2b-size-copy-line-height-75:var(--b2b-size-45);--b2b-size-copy-line-height-50:var(--b2b-size-40);--b2b-size-copy-300:var(--b2b-size-60);--b2b-size-copy-200:var(--b2b-size-45);--b2b-size-copy-125:var(--b2b-size-40);--b2b-size-copy-100:var(--b2b-size-35);--b2b-size-copy-50:var(--b2b-size-30);--b2b-size-border-no-radius-bottom:var(--b2b-size-7) var(--b2b-size-7) 0 0;--b2b-size-border-no-radius-top:0 0 var(--b2b-size-7) var(--b2b-size-7);--b2b-size-border-no-radius-right:var(--b2b-size-7) 0 0 var(--b2b-size-7);--b2b-size-border-no-radius-left:0 var(--b2b-size-7) var(--b2b-size-7) 0;--b2b-size-border-radius-100:var(--b2b-size-7);--b2b-size-border-width-150:var(--b2b-size-10);--b2b-size-border-width-100:var(--b2b-size-5);--b2b-size-border-width-50:var(--b2b-size-1);--b2b-size-padding-175:var(--b2b-size-80);--b2b-size-padding-150:var(--b2b-size-60);--b2b-size-padding-100:var(--b2b-size-40);--b2b-size-padding-50:var(--b2b-size-20);--b2b-size-space-300:var(--b2b-size-200);--b2b-size-space-250:var(--b2b-size-160);--b2b-size-space-200:var(--b2b-size-100);--b2b-size-space-175:var(--b2b-size-80);--b2b-size-space-150:var(--b2b-size-60);--b2b-size-space-100:var(--b2b-size-40);--b2b-size-space-75:var(--b2b-size-30);--b2b-size-space-50:var(--b2b-size-20);--b2b-size-space-25:var(--b2b-size-10);--b2b-size-icon-400:var(--b2b-size-120);--b2b-size-icon-200:var(--b2b-size-80);--b2b-size-icon-100:var(--b2b-size-60);--b2b-size-icon-50:var(--b2b-size-40);--b2b-color-table-expand-default:var(--b2b-color-grey-25);--b2b-color-icon-inverted:var(--b2b-color-white-100);--b2b-color-icon-secondary:var(--b2b-color-grey-400);--b2b-color-icon-default:var(--b2b-color-black-100);--b2b-color-headline-inverted:var(--b2b-color-white-100);--b2b-color-headline-default:var(--b2b-color-black-100);--b2b-color-headline-title:var(--b2b-color-red-100);--b2b-color-copy-overlay:var(--b2b-color-white-100);--b2b-color-copy-inverted:var(--b2b-color-white-100);--b2b-color-copy-secondary:var(--b2b-color-grey-400);--b2b-color-copy-default:var(--b2b-color-black-100);--b2b-color-border-100:var(--b2b-color-grey-200);--b2b-color-background-overlay:var(--b2b-color-black-100);--b2b-color-background-card:var(--b2b-color-white-100);--b2b-color-background-box:var(--b2b-color-white-100);--b2b-color-background-page:var(--b2b-color-grey-25);--b2b-color-error-50:var(--b2b-color-red-50)}:root [data-theme=\"dark\"]{--b2b-size-200:5rem;--b2b-size-160:4rem;--b2b-size-150:3.75rem;--b2b-size-140:3.5rem;--b2b-size-120:3rem;--b2b-size-100:2.5rem;--b2b-size-90:2.25rem;--b2b-size-80:2rem;--b2b-size-70:1.75rem;--b2b-size-60:1.5rem;--b2b-size-55:1.375rem;--b2b-size-53:1.3125rem;--b2b-size-50:1.25rem;--b2b-size-45:1.125rem;--b2b-size-40:1rem;--b2b-size-35:0.875rem;--b2b-size-30:0.75rem;--b2b-size-25:0.625rem;--b2b-size-20:0.5rem;--b2b-size-15:0.375rem;--b2b-size-10:0.25rem;--b2b-size-7:0.1875rem;--b2b-size-5:0.125rem;--b2b-size-1:0.0625rem;--b2b-font-weight-bold:700;--b2b-font-weight-normal:500;--b2b-font-weight-thin:100;--b2b-font-family-default:OttoSans, Arial, Helvetica, sans-serif;--b2b-color-hover:#e6f4ff;--b2b-color-info-100:#003264;--b2b-color-info-50:#ccd6e0;--b2b-color-success-100:#326400;--b2b-color-success-50:#d6e0cc;--b2b-color-warning-100:#ffb432;--b2b-color-warning-50:#ffd998;--b2b-color-error-100:#e6344b;--b2b-color-primary:#d4021d;--b2b-color-red-250:#850012;--b2b-color-red-200:#bb0004;--b2b-color-red-150:#e6344b;--b2b-color-red-100:#d4021d;--b2b-color-red-50:#ffdde3;--b2b-color-grey-400:#777777;--b2b-color-grey-300:#9e9e9e;--b2b-color-grey-250:#b1b1b1;--b2b-color-grey-200:#c4c4c4;--b2b-color-grey-150:#d5d5d5;--b2b-color-grey-100:#e6e6e6;--b2b-color-grey-50:#eeeeee;--b2b-color-grey-25:#f6f6f6;--b2b-color-white-100:#ffffff;--b2b-color-black-100:#222222;--b2b-color-black-50:#333333;--b2b-color-icon-inverted:var(--b2b-color-black-100);--b2b-color-icon-secondary:var(--b2b-color-grey-400);--b2b-color-icon-default:var(--b2b-color-white-100);--b2b-color-headline-inverted:var(--b2b-color-black-100);--b2b-color-headline-default:var(--b2b-color-white-100);--b2b-color-headline-title:var(--b2b-color-red-50);--b2b-color-copy-inverted:var(--b2b-color-black-100);--b2b-color-copy-secondary:var(--b2b-color-grey-100);--b2b-color-copy-default:var(--b2b-color-white-100);--b2b-color-border-100:var(--b2b-color-white-100);--b2b-color-background-page:var(--b2b-color-grey-100);--b2b-color-background-card:var(--b2b-color-black-50);--b2b-color-background-box:var(--b2b-color-black-50);--b2b-color-error-50:var(--b2b-color-red-50)}@font-face{font-family:OttoSans;src:url(\"https://pattern-library.portal.otto.market/static/assets/fonts/otto-sans.ttf\");font-weight:normal;font-style:normal}@font-face{font-family:OttoSans;src:url(\"https://pattern-library.portal.otto.market/static/assets/fonts/otto-sans-bold.woff\") format(\"woff\"), url(\"https://pattern-library.portal.otto.market/static/assets/fonts/otto-sans-bold.ttf\") format(\"truetype\");font-weight:bold;font-style:normal}@font-face{font-family:OttoSans;src:url(\"https://pattern-library.portal.otto.market/static/assets/fonts/otto-sans-thin.woff\") format(\"woff\"), url(\"https://pattern-library.portal.otto.market/static/assets/fonts/otto-sans-thin.ttf\") format(\"truetype\");font-weight:100;font-style:normal}@font-face{font-family:ObcIcons;src:url(\"https://pattern-library.portal.otto.market/static/assets/fonts/obc-icons.woff\")}:host{display:table-row-group}:host(.b2b-table-rowgroup__header){display:table-header-group}:host(.b2b-table-rowgroup--fixed){position:sticky;top:0;z-index:2;background-color:var(--b2b-color-white-100)}:host(.b2b-table-rowgroup--colspan){display:block}";
|
|
5
5
|
const B2bTableRowgroupStyle0 = tableRowgroupCss;
|
|
@@ -12,7 +12,7 @@ const TableRowgroupComponent = /*@__PURE__*/ proxyCustomElement(class TableRowgr
|
|
|
12
12
|
this.b2bSelect = createEvent(this, "b2b-group-selected", 7);
|
|
13
13
|
this.toggleSelectAll = (event, children) => {
|
|
14
14
|
this.toggleList(children, event);
|
|
15
|
-
const rows = children.filter(child => child
|
|
15
|
+
const rows = children.filter(child => !isFirstRow(child));
|
|
16
16
|
this.selectedValues = [...rows]
|
|
17
17
|
.filter(child => child.checked)
|
|
18
18
|
.map(child => child.value);
|
|
@@ -20,20 +20,6 @@ const TableRowgroupComponent = /*@__PURE__*/ proxyCustomElement(class TableRowgr
|
|
|
20
20
|
this.toggleList = (list, event) => {
|
|
21
21
|
list.forEach(child => ((child.checked = event.detail.checked), (child.indeterminate = false)));
|
|
22
22
|
};
|
|
23
|
-
this.addAccordionControlColumn = () => {
|
|
24
|
-
const firstRow = getFirstRow(this.host);
|
|
25
|
-
if (this.type === TableRowgroupTypes.HEADER) {
|
|
26
|
-
firstRow && (firstRow.accordionType = TableAccordionRowTypes.HEADER);
|
|
27
|
-
}
|
|
28
|
-
else {
|
|
29
|
-
firstRow && (firstRow.accordionType = TableAccordionRowTypes.PARENT);
|
|
30
|
-
}
|
|
31
|
-
const children = getRemainingRows(this.host);
|
|
32
|
-
children &&
|
|
33
|
-
children.forEach(child => {
|
|
34
|
-
child.accordionType = TableAccordionRowTypes.CHILD;
|
|
35
|
-
});
|
|
36
|
-
};
|
|
37
23
|
this.addCheckboxColumn = () => {
|
|
38
24
|
const children = getAllRows(this.host);
|
|
39
25
|
children.forEach(child => (child.selectable = true));
|
|
@@ -91,8 +77,7 @@ const TableRowgroupComponent = /*@__PURE__*/ proxyCustomElement(class TableRowgr
|
|
|
91
77
|
const target = event.target;
|
|
92
78
|
const table = this.host.closest('b2b-table');
|
|
93
79
|
const parentValue = (_a = getFirstRow(this.host).value) !== null && _a !== void 0 ? _a : 'header';
|
|
94
|
-
if (this.accordion &&
|
|
95
|
-
target.accordionType === TableAccordionRowTypes.PARENT) {
|
|
80
|
+
if (this.accordion && isFirstRow(target) && parentValue != 'header') {
|
|
96
81
|
const children = getRemainingRows(this.host);
|
|
97
82
|
this.toggleSelectAll(event, children);
|
|
98
83
|
}
|
|
@@ -125,7 +110,6 @@ const TableRowgroupComponent = /*@__PURE__*/ proxyCustomElement(class TableRowgr
|
|
|
125
110
|
}
|
|
126
111
|
componentWillLoad() {
|
|
127
112
|
if (this.accordion) {
|
|
128
|
-
this.addAccordionControlColumn();
|
|
129
113
|
this.toggleInitialVisibility();
|
|
130
114
|
}
|
|
131
115
|
if (this.selectable) {
|
|
@@ -136,11 +120,11 @@ const TableRowgroupComponent = /*@__PURE__*/ proxyCustomElement(class TableRowgr
|
|
|
136
120
|
this.makeHeaderRowNotSelectable();
|
|
137
121
|
}
|
|
138
122
|
render() {
|
|
139
|
-
return (h(Host, { key: '
|
|
123
|
+
return (h(Host, { key: '4dd4d9fe40cbb15bbbdd8aeff90d31372da60cdd', class: {
|
|
140
124
|
['b2b-table-rowgroup__' + this.type]: true,
|
|
141
125
|
'b2b-table-rowgroup--fixed': this.fixed,
|
|
142
126
|
'b2b-table-rowgroup--colspan': this.size === TableSizes.COLSPAN,
|
|
143
|
-
}, role: "rowgroup" }, h("slot", { key: '
|
|
127
|
+
}, role: "rowgroup" }, h("slot", { key: 'd4492ca4f42bde66052ed61c9d3bfebc74e790e7' })));
|
|
144
128
|
}
|
|
145
129
|
get host() { return this; }
|
|
146
130
|
static get style() { return B2bTableRowgroupStyle0; }
|
|
@@ -67,9 +67,9 @@ const TableComponent = /*@__PURE__*/ proxyCustomElement(class TableComponent ext
|
|
|
67
67
|
}
|
|
68
68
|
}
|
|
69
69
|
render() {
|
|
70
|
-
return (h(Host, { key: '
|
|
70
|
+
return (h(Host, { key: '70f900f2160167e3f808c9c432cfa3bb134624c0', class: {
|
|
71
71
|
['b2b-table--' + this.size]: true,
|
|
72
|
-
}, role: "table" }, h("slot", { key: '
|
|
72
|
+
}, role: "table" }, h("slot", { key: 'c0b35190bb004dd3332e3b2bb856e30a1adee829' })));
|
|
73
73
|
}
|
|
74
74
|
get host() { return this; }
|
|
75
75
|
static get style() { return B2bTableStyle0; }
|
|
@@ -53,10 +53,10 @@ const B2BTextareaComponent = /*@__PURE__*/ proxyCustomElement(class B2BTextareaC
|
|
|
53
53
|
}
|
|
54
54
|
}
|
|
55
55
|
render() {
|
|
56
|
-
return (h(Host, { key: '
|
|
56
|
+
return (h(Host, { key: 'adf829a538a8234008981a3f1a56d5f370b859ec', class: {
|
|
57
57
|
'b2b-textarea': true,
|
|
58
58
|
'b2b-textarea--error': this.invalid && !this.disabled,
|
|
59
|
-
} }, this.label && (h("b2b-input-label", { id: this.name, required: this.required }, this.label)), h("textarea", { key: '
|
|
59
|
+
} }, this.label && (h("b2b-input-label", { id: this.name, required: this.required }, this.label)), h("textarea", { key: 'c64d67fb1eb2a7552643815f10b139d34a7a46bd', 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) ||
|
|
60
60
|
(this.hint !== undefined && this.disabled) ? (h("span", null, this.hint)) : (''), this.error !== undefined && this.invalid && !this.disabled ? (h("span", null, this.error)) : ('')));
|
|
61
61
|
}
|
|
62
62
|
get hostElement() { return this; }
|
|
@@ -39,13 +39,13 @@ const B2bToggleButtonComponent = /*@__PURE__*/ proxyCustomElement(class B2bToggl
|
|
|
39
39
|
return Array.from(document.querySelectorAll(`b2b-toggle-button[name="${this.name}"]`)).filter((toggle) => toggle.value !== this.value);
|
|
40
40
|
}
|
|
41
41
|
render() {
|
|
42
|
-
return (h(Host, { key: '
|
|
42
|
+
return (h(Host, { key: '72a27c904d091619da19fb5dab2da588326688df', onClick: this.onClick }, h("span", { key: '165c0254153fa4a3bff6d76f58f844830344f8c2', class: {
|
|
43
43
|
'b2b-toggle-button': true,
|
|
44
44
|
'b2b-toggle-button--disabled': this.disabled,
|
|
45
|
-
} }, h("input", { key: '
|
|
45
|
+
} }, h("input", { key: '0d6ee278d5db9f360e7ab466daeaebced17063e6', tabindex: 0, class: {
|
|
46
46
|
'b2b-toggle-button__input': true,
|
|
47
47
|
'b2b-toggle-button__input--disabled': this.disabled,
|
|
48
|
-
}, "aria-labelledby": this.name, type: "radio", checked: this.checked && !this.disabled, disabled: this.disabled, name: this.name, value: this.value }), h("label", { key: '
|
|
48
|
+
}, "aria-labelledby": this.name, type: "radio", checked: this.checked && !this.disabled, disabled: this.disabled, name: this.name, value: this.value }), h("label", { key: 'f073f01258465886c9fe70e99692ffee84db38bc', id: this.name, tabindex: -1, class: {
|
|
49
49
|
'b2b-toggle-button__label': true,
|
|
50
50
|
'b2b-toggle-button__label--disabled': this.disabled,
|
|
51
51
|
'b2b-toggle-button__label--checked': this.checked && !this.disabled,
|
|
@@ -41,11 +41,11 @@ const B2BToggleChipComponent = /*@__PURE__*/ proxyCustomElement(class B2BToggleC
|
|
|
41
41
|
this.disabled = false;
|
|
42
42
|
}
|
|
43
43
|
render() {
|
|
44
|
-
return (h(Host, { key: '
|
|
44
|
+
return (h(Host, { key: '521c77d6f300a1e0a3f978a6645c37f7ca3a7aeb' }, h("span", { key: '73ee23bfcf46564a32afac2892479830c25b81b8', onClick: this.onClick, onKeyDown: this.onKeyDown, class: {
|
|
45
45
|
'b2b-toggle-chip': true,
|
|
46
|
-
} }, h("input", { key: '
|
|
46
|
+
} }, h("input", { key: '1b0fa2b361fc41d011e7d71d56dc48c614cc478a', "aria-labelledby": this.name, tabindex: this.disabled ? -1 : 0, class: {
|
|
47
47
|
'b2b-toggle-chip__input': true,
|
|
48
|
-
}, type: "checkbox", checked: this.active && !this.disabled, disabled: this.disabled, name: this.name, value: this.value }), h("label", { key: '
|
|
48
|
+
}, type: "checkbox", checked: this.active && !this.disabled, disabled: this.disabled, name: this.name, value: this.value }), h("label", { key: '6de8f234f543595ab2995854c1f995ce1c724f8b', id: this.name, tabIndex: -1, class: {
|
|
49
49
|
'b2b-toggle-chip__label': true,
|
|
50
50
|
[`b2b-toggle-chip__label--${this.variant}`]: true,
|
|
51
51
|
'b2b-toggle-chip__label--active': this.active,
|
|
@@ -53,10 +53,10 @@ const B2BToggleGroup = /*@__PURE__*/ proxyCustomElement(class B2BToggleGroup ext
|
|
|
53
53
|
}
|
|
54
54
|
}
|
|
55
55
|
render() {
|
|
56
|
-
return (h(Host, { key: '
|
|
56
|
+
return (h(Host, { key: 'e81f98de29ab06594da8b9e19e68f4ec9f3c878f' }, h("div", { key: 'a590585c94ab40ea54abd08031ab9b1482bc4a78', class: {
|
|
57
57
|
'b2b-toggle-group': true,
|
|
58
58
|
'b2b-toggle-group--disabled': this.disabled,
|
|
59
|
-
} }, h("fieldset", { key: '
|
|
59
|
+
} }, h("fieldset", { key: 'f8a20fb30c7b5fd958171f91a2219a2efbd7a5ca' }, h("slot", { key: '3e0bc10d09053d008a9d771721c57463ce437e27' })))));
|
|
60
60
|
}
|
|
61
61
|
get host() { return this; }
|
|
62
62
|
static get watchers() { return {
|
|
@@ -46,17 +46,17 @@ const B2bToggleSwitchComponent = /*@__PURE__*/ proxyCustomElement(class B2bToggl
|
|
|
46
46
|
render() {
|
|
47
47
|
// workaround for purgecss as safelist doesn't work
|
|
48
48
|
const isLeft = this.labelPosition === 'left';
|
|
49
|
-
return (h(Host, { key: '
|
|
49
|
+
return (h(Host, { key: 'ead51ac66423aad33f3714724dd943f76c9a5a2d' }, h("div", { key: 'bd253f3dac1128d188d1fcee84fd35c1dcb07a2d', class: {
|
|
50
50
|
'b2b-toggle': true,
|
|
51
51
|
'b2b-toggle--disabled': this.disabled,
|
|
52
52
|
'b2b-toggle--checked': this.state,
|
|
53
|
-
} }, h("div", { key: '
|
|
53
|
+
} }, h("div", { key: '69f605ce7363e4aa7aa89b0783721ae30c8897ca', class: {
|
|
54
54
|
'b2b-toggle__label': true,
|
|
55
55
|
'b2b-toggle__label--left': isLeft,
|
|
56
|
-
} }, h("span", { key: '
|
|
56
|
+
} }, h("span", { key: 'b52b3852d95df99a32aa095532d7fe6897e7b638', class: "b2b-toggle__switch", role: "switch", tabIndex: 0, onKeyDown: this.onKeyDown, onClick: this.onClick }, h("svg", { key: 'c8752f6668e05da681f6682e604441fdac6b1365', class: {
|
|
57
57
|
'b2b-toggle__icon': true,
|
|
58
58
|
'b2b-toggle__icon--show': this.state,
|
|
59
|
-
}, xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 30 30" }, h("path", { key: '
|
|
59
|
+
}, xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 30 30" }, h("path", { key: '09d63539b5f10f54089658ea44fa081bbd3fceb7', 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: {
|
|
60
60
|
'b2b-toggle__text': true,
|
|
61
61
|
'b2b-toggle__text--left': isLeft,
|
|
62
62
|
} }, this.label))))));
|
|
@@ -60,13 +60,13 @@ const B2BTooltipComponent = /*@__PURE__*/ proxyCustomElement(class B2BTooltipCom
|
|
|
60
60
|
}
|
|
61
61
|
}
|
|
62
62
|
render() {
|
|
63
|
-
return (h(Host, { key: '
|
|
63
|
+
return (h(Host, { key: '85d4ea6d00cc0a1cb3f411e2ea2d57f064ba114d', onMouseEnter: this.onMouseEnter, onMouseLeave: this.onMouseLeave }, h("span", { key: '8503ac0f0638dd3501a62741a9cb668bd08a4c55', class: {
|
|
64
64
|
[`b2b-tooltip--${this.position}`]: true,
|
|
65
65
|
'b2b-tooltip__trigger': true,
|
|
66
|
-
} }, h("slot", { key: '
|
|
66
|
+
} }, h("slot", { key: '009c743af15c9ebc54bdf6dee620f15e43e306ee' }), h("div", { key: '7b655965e432651456d26f147fef251bdd505cce', class: {
|
|
67
67
|
'b2b-tooltip__content': true,
|
|
68
68
|
'b2b-tooltip--visible': this.opened,
|
|
69
|
-
} }, h("slot", { key: '
|
|
69
|
+
} }, h("slot", { key: 'f653061d233472af5731448814e16872c189c4c9', name: "content" }, this.content)))));
|
|
70
70
|
}
|
|
71
71
|
get host() { return this; }
|
|
72
72
|
static get watchers() { return {
|
|
@@ -17,10 +17,10 @@ const WizardStepComponent = /*@__PURE__*/ proxyCustomElement(class WizardStepCom
|
|
|
17
17
|
this.checkIcon = true;
|
|
18
18
|
}
|
|
19
19
|
render() {
|
|
20
|
-
return (h(Host, { key: '
|
|
20
|
+
return (h(Host, { key: '549e0e7ff5030f4a5fc472e046f65fbe964f89cf' }, h("div", { key: 'a2f9dd5665eb063c5c51df700765509dca2c1616', class: "b2b_wizard__step" }, h("b2b-wizard-icon", { key: 'cdd5ed4aa979be3b2f878c7f735afc11fa2936bd', step: this.step, state: this.state, checkIcon: this.checkIcon }), h("div", { key: '84c4d7608daf542354ca707881730de8a3c65783', class: {
|
|
21
21
|
'b2b_wizard__step__label': true,
|
|
22
22
|
'b2b_wizard__step__label--default': this.state === WizardStatus.DEFAULT,
|
|
23
|
-
} }, h("slot", { key: '
|
|
23
|
+
} }, h("slot", { key: '00837facfab31ae121002e62277c0bc907161bf6' })))));
|
|
24
24
|
}
|
|
25
25
|
static get style() { return B2bWizardStepStyle0; }
|
|
26
26
|
}, [1, "b2b-wizard-step", {
|
|
@@ -51,7 +51,7 @@ const WizardComponent = /*@__PURE__*/ proxyCustomElement(class WizardComponent e
|
|
|
51
51
|
this.setStepsState();
|
|
52
52
|
}
|
|
53
53
|
render() {
|
|
54
|
-
return (h(Host, { key: '
|
|
54
|
+
return (h(Host, { key: '82f36879396d38b9423200ba7a73601b327335b8' }, h("div", { key: '83b2827e4c284420456b76c4b39c683851992731', class: "b2b_wizard" }, h("slot", { key: 'b88f8ab6a5831168bd5ab9b6f0e2c4cc9cabccec' }))));
|
|
55
55
|
}
|
|
56
56
|
get host() { return this; }
|
|
57
57
|
static get style() { return B2bWizardStyle0; }
|
|
@@ -83,7 +83,7 @@ const CheckboxComponent = /*@__PURE__*/ proxyCustomElement(class CheckboxCompone
|
|
|
83
83
|
'b2b-checkbox--checked': this.checked,
|
|
84
84
|
'b2b-checkbox--standalone': this.standalone,
|
|
85
85
|
'b2b-checkbox--indeterminate': this.indeterminate,
|
|
86
|
-
} }, h("div", { key: '
|
|
86
|
+
} }, h("div", { key: 'dab97157c87fbc3a9599355113b930039afeb1d0', class: "b2b-checkbox__items" }, this.renderIcon(), h("input", { key: '253f9206dc69ce6c404c7e4b3c260da6772d2786', class: "b2b-checkbox__input", "aria-labelledby": this.name, type: "checkbox", name: this.name, id: this.name, value: this.value, checked: this.checked, disabled: this.disabled || this.groupDisabled, onFocus: this.onFocus, onBlur: this.onBlur }), !this.standalone && (h("b2b-input-label", { id: this.name, required: this.required, disabled: this.disabled }, h("slot", { name: "label" }, this.label)))), (this.hint !== undefined && !this.invalid) ||
|
|
87
87
|
(this.hint !== undefined && this.disabled) ? (h("span", null, this.hint)) : (''), this.error !== undefined && this.invalid && !this.disabled ? (h("span", null, this.error)) : (''))));
|
|
88
88
|
}
|
|
89
89
|
get hostElement() { return this; }
|
|
@@ -13,16 +13,16 @@ const RoundedIconComponent = /*@__PURE__*/ proxyCustomElement(class RoundedIconC
|
|
|
13
13
|
this.contentColor = 'var(--b2b-color-copy-default)';
|
|
14
14
|
}
|
|
15
15
|
render() {
|
|
16
|
-
return (h(Host, { key: '
|
|
16
|
+
return (h(Host, { key: 'b2542f30738b99706e264260504902e148af170f' }, h("div", { key: '01d1b4b8118a1754fe85354eb47dfb78a778b1f6', style: {
|
|
17
17
|
['background-color']: this.color,
|
|
18
18
|
['border']: `1px solid ${this.borderColor || this.color}`,
|
|
19
19
|
}, class: {
|
|
20
20
|
'b2b-rounded-icon': true,
|
|
21
|
-
} }, h("div", { key: '
|
|
21
|
+
} }, h("div", { key: '3e319fcf7d1acc4c3a534c26f6106717a8d57fdf', style: {
|
|
22
22
|
['color']: this.contentColor,
|
|
23
|
-
} }, h("slot", { key: '
|
|
23
|
+
} }, h("slot", { key: '1f14bca3fb6fe8dc92d6cadc173f5b470a425db6', name: "icon" })), h("div", { key: '2e07fb2694f642788c09361a9aaa7c6f768107cc', style: {
|
|
24
24
|
['color']: this.contentColor,
|
|
25
|
-
} }, h("slot", { key: '
|
|
25
|
+
} }, h("slot", { key: 'c84e59d64323d19ff2a2a3245d6db424f8135bc6', name: "text" })))));
|
|
26
26
|
}
|
|
27
27
|
static get style() { return B2bRoundedIconStyle0; }
|
|
28
28
|
}, [1, "b2b-rounded-icon", {
|
|
@@ -11,7 +11,7 @@ const B2bSeparatorComponent = /*@__PURE__*/ proxyCustomElement(class B2bSeparato
|
|
|
11
11
|
this.alignment = 'horizontal';
|
|
12
12
|
}
|
|
13
13
|
render() {
|
|
14
|
-
return (h(Host, { key: '
|
|
14
|
+
return (h(Host, { key: '5d26a4636a4e167729ce76edfd20d64ae6f49c07' }, h("div", { key: 'e3f04f51c3a3a32fee947b109095aa682b64df49', class: {
|
|
15
15
|
[`b2b-separator--${this.alignment}`]: true,
|
|
16
16
|
} })));
|
|
17
17
|
}
|
|
@@ -12,7 +12,7 @@ const SpinnerComponent = /*@__PURE__*/ proxyCustomElement(class SpinnerComponent
|
|
|
12
12
|
this.color = 'primary';
|
|
13
13
|
}
|
|
14
14
|
render() {
|
|
15
|
-
return (h("div", { key: '
|
|
15
|
+
return (h("div", { key: '4260cc2e742b9d3a77fc1739f7de248ee70ffd69', class: {
|
|
16
16
|
'b2b-spinner': true,
|
|
17
17
|
['b2b-spinner--size-' + this.size]: true,
|
|
18
18
|
['b2b-spinner--color-' + this.color]: true,
|
|
@@ -42,14 +42,14 @@ const TableCellComponent = /*@__PURE__*/ proxyCustomElement(class TableCellCompo
|
|
|
42
42
|
}
|
|
43
43
|
}
|
|
44
44
|
render() {
|
|
45
|
-
return (h(Host, { key: '
|
|
45
|
+
return (h(Host, { key: '571ec5bc494057bfbe9c9146da086bb6a192f298', onMouseEnter: this.addExpandStyles, onMouseLeave: this.removeExpandStyles, class: {
|
|
46
46
|
'b2b-table-cell': true,
|
|
47
47
|
['b2b-table-cell--colspan']: this.size === TableSizes.COLSPAN,
|
|
48
48
|
['b2b-table-cell--ellipsis']: this.useTextEllipsis,
|
|
49
49
|
['b2b-table-cell--' + this.align]: true,
|
|
50
50
|
['b2b-table-cell--divider']: this.divider,
|
|
51
51
|
[`b2b-table-cell-color-${this.color}`]: true,
|
|
52
|
-
}, role: "cell" }, h("slot", { key: '
|
|
52
|
+
}, role: "cell" }, h("slot", { key: '10385f497f0061d09b227b88456205bac24f272f' })));
|
|
53
53
|
}
|
|
54
54
|
get host() { return this; }
|
|
55
55
|
static get style() { return B2bTableCellStyle0; }
|
|
@@ -77,7 +77,7 @@ const TableHeaderComponent = /*@__PURE__*/ proxyCustomElement(class TableHeaderC
|
|
|
77
77
|
this.setIconPlacement();
|
|
78
78
|
}
|
|
79
79
|
render() {
|
|
80
|
-
return (h(Host, { key: '
|
|
80
|
+
return (h(Host, { key: '34f96e3a7c5c36cafadb463a72f1acec6550d367', class: {
|
|
81
81
|
[`b2b-table-header--${this.sortDirection && this.iconAlign}`]: true,
|
|
82
82
|
'b2b-table-header--divider': this.divider,
|
|
83
83
|
[`b2b-table-header--${this.size}`]: true,
|
package/dist/components/utils.js
CHANGED
|
@@ -23,11 +23,6 @@ const TableSortDirections = {
|
|
|
23
23
|
ASC: 'ascending',
|
|
24
24
|
DESC: 'descending',
|
|
25
25
|
};
|
|
26
|
-
const TableAccordionRowTypes = {
|
|
27
|
-
PARENT: 'parent',
|
|
28
|
-
CHILD: 'child',
|
|
29
|
-
HEADER: 'header',
|
|
30
|
-
};
|
|
31
26
|
const TableColourOptions = {
|
|
32
27
|
DEFAULT: 'default',
|
|
33
28
|
SELECTED: 'selected',
|
|
@@ -66,5 +61,10 @@ function getFirstRow(hostEl) {
|
|
|
66
61
|
return firstRow;
|
|
67
62
|
}
|
|
68
63
|
}
|
|
64
|
+
function isFirstRow(el) {
|
|
65
|
+
// attr is nullable so
|
|
66
|
+
// eslint-disable-next-line @stencil-community/strict-boolean-conditions
|
|
67
|
+
return el.previousElementSibling ? false : true;
|
|
68
|
+
}
|
|
69
69
|
|
|
70
|
-
export { ContentAlignment as C, SortIconAlignment as S, TableSizes as T, TableSortDirections as a,
|
|
70
|
+
export { ContentAlignment as C, SortIconAlignment as S, TableSizes as T, TableSortDirections as a, TableColourOptions as b, getFirstRow as c, getRemainingRows as d, TableRowgroupTypes as e, getAllRows as g, isFirstRow as i, setFlexBase as s, updateCheckboxState as u };
|
|
@@ -16,7 +16,7 @@ const WizardIconComponent = /*@__PURE__*/ proxyCustomElement(class WizardIconCom
|
|
|
16
16
|
this.checkIcon = true;
|
|
17
17
|
}
|
|
18
18
|
render() {
|
|
19
|
-
return (h(Host, { key: '
|
|
19
|
+
return (h(Host, { key: '5c3ab4531997f298489cef25f5b4cee243588e74' }, h("div", { key: '9b212fbab1c0dcb54787c39da4081f1f911b7d85', class: {
|
|
20
20
|
'b2b-wizard-icon': true,
|
|
21
21
|
} }, this.state === WizardStatus.COMPLETED && (h("b2b-rounded-icon", { color: "var(--b2b-color-success-50)", "content-color": "var(--b2b-color-success-100)" }, this.checkIcon ? (h("b2b-icon", { slot: "icon", icon: "b2b_icon-check" })) : (h("span", { slot: "text" }, this.step)))), this.state === WizardStatus.PENDING && (h("b2b-rounded-icon", { color: "var(--b2b-color-icon-default)", "content-color": "var(--b2b-color-icon-inverted)" }, h("span", { slot: "text" }, this.step))), this.state === WizardStatus.DISABLED && (h("b2b-rounded-icon", { color: "var(--b2b-color-grey-100)", "content-color": "var(--b2b-color-grey-400)" }, h("span", { slot: "text" }, this.step))), this.state === WizardStatus.DEFAULT && (h("b2b-rounded-icon", { color: "transparent", "border-color": "var(--b2b-color-icon-secondary)", "content-color": "var(--b2b-color-icon-secondary)" }, h("span", { slot: "text" }, this.step))))));
|
|
22
22
|
}
|
|
@@ -63,6 +63,18 @@
|
|
|
63
63
|
"name": "download",
|
|
64
64
|
"description": "If set to true, the browser will attempt to donwload and save the URL instead of opening it. The name of the created file\ndefaults to the URL string, but can be changed by the user."
|
|
65
65
|
},
|
|
66
|
+
{
|
|
67
|
+
"name": "hover-color",
|
|
68
|
+
"description": "The hoverColor of the link. Per default, it is set to b2b-color-red-100. If specified as inherit, it is inherited from the parent element.",
|
|
69
|
+
"values": [
|
|
70
|
+
{
|
|
71
|
+
"name": "default"
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
"name": "inherit"
|
|
75
|
+
}
|
|
76
|
+
]
|
|
77
|
+
},
|
|
66
78
|
{
|
|
67
79
|
"name": "href",
|
|
68
80
|
"description": "The URL or URL fragment the anchor points to. This is required."
|
|
@@ -96,6 +108,10 @@
|
|
|
96
108
|
"name": "top"
|
|
97
109
|
}
|
|
98
110
|
]
|
|
111
|
+
},
|
|
112
|
+
{
|
|
113
|
+
"name": "underline-text",
|
|
114
|
+
"description": "The underlineText of the link. If set to false, the link text will not be underlined."
|
|
99
115
|
}
|
|
100
116
|
]
|
|
101
117
|
},
|
|
@@ -122,7 +138,16 @@
|
|
|
122
138
|
"kind": "markdown",
|
|
123
139
|
"value": ""
|
|
124
140
|
},
|
|
125
|
-
"attributes": [
|
|
141
|
+
"attributes": [
|
|
142
|
+
{
|
|
143
|
+
"name": "padding-bottom",
|
|
144
|
+
"description": "Padding for the bottom of the breadcrumb component"
|
|
145
|
+
},
|
|
146
|
+
{
|
|
147
|
+
"name": "padding-top",
|
|
148
|
+
"description": "Padding for the top of the breadcrumb component"
|
|
149
|
+
}
|
|
150
|
+
]
|
|
126
151
|
},
|
|
127
152
|
{
|
|
128
153
|
"name": "b2b-breadcrumb-item",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { r as registerInstance, h, H as Host } from './index-ab9eb36d.js';
|
|
2
2
|
|
|
3
|
-
const anchorCss = ":root,:host{--b2b-size-200:5rem;--b2b-size-160:4rem;--b2b-size-150:3.75rem;--b2b-size-140:3.5rem;--b2b-size-120:3rem;--b2b-size-100:2.5rem;--b2b-size-90:2.25rem;--b2b-size-80:2rem;--b2b-size-70:1.75rem;--b2b-size-60:1.5rem;--b2b-size-55:1.375rem;--b2b-size-53:1.3125rem;--b2b-size-50:1.25rem;--b2b-size-45:1.125rem;--b2b-size-40:1rem;--b2b-size-35:0.875rem;--b2b-size-30:0.75rem;--b2b-size-25:0.625rem;--b2b-size-20:0.5rem;--b2b-size-15:0.375rem;--b2b-size-10:0.25rem;--b2b-size-7:0.1875rem;--b2b-size-5:0.125rem;--b2b-size-1:0.0625rem;--b2b-font-weight-bold:700;--b2b-font-weight-normal:500;--b2b-font-weight-thin:100;--b2b-font-family-default:OttoSans, Arial, Helvetica, sans-serif;--b2b-color-table-expand-hover:#e6f4ff;--b2b-color-table-selected-default:#cce9ff;--b2b-color-background-overlay-transparent-40:rgba(34, 34, 34, 0.25);--b2b-color-background-overlay-transparent-80:rgba(34, 34, 34, 0.5);--b2b-color-hover:#e6f4ff;--b2b-color-info-100:#003264;--b2b-color-info-50:#ccd6e0;--b2b-color-success-100:#326400;--b2b-color-success-50:#d6e0cc;--b2b-color-warning-100:#ffb432;--b2b-color-warning-50:#ffd998;--b2b-color-error-100:#e6344b;--b2b-color-primary:#d4021d;--b2b-color-red-250:#850012;--b2b-color-red-200:#bb0004;--b2b-color-red-150:#e6344b;--b2b-color-red-100:#d4021d;--b2b-color-red-50:#ffdde3;--b2b-color-grey-400:#777777;--b2b-color-grey-300:#9e9e9e;--b2b-color-grey-250:#b1b1b1;--b2b-color-grey-200:#c4c4c4;--b2b-color-grey-150:#d5d5d5;--b2b-color-grey-100:#e6e6e6;--b2b-color-grey-50:#eeeeee;--b2b-color-grey-25:#f6f6f6;--b2b-color-white-100:#ffffff;--b2b-color-black-100:#222222;--b2b-color-black-50:#333333;--b2b-size-headline-line-height-400:var(--b2b-size-60);--b2b-size-headline-line-height-200:var(--b2b-size-60);--b2b-size-headline-line-height-100:var(--b2b-size-60);--b2b-size-headline-400:var(--b2b-size-60);--b2b-size-headline-200:var(--b2b-size-45);--b2b-size-headline-100:var(--b2b-size-40);--b2b-size-copy-line-height-300:var(--b2b-size-90);--b2b-size-copy-line-height-200:var(--b2b-size-60);--b2b-size-copy-line-height-125:var(--b2b-size-60);--b2b-size-copy-line-height-100:var(--b2b-size-53);--b2b-size-copy-line-height-75:var(--b2b-size-45);--b2b-size-copy-line-height-50:var(--b2b-size-40);--b2b-size-copy-300:var(--b2b-size-60);--b2b-size-copy-200:var(--b2b-size-45);--b2b-size-copy-125:var(--b2b-size-40);--b2b-size-copy-100:var(--b2b-size-35);--b2b-size-copy-50:var(--b2b-size-30);--b2b-size-border-no-radius-bottom:var(--b2b-size-7) var(--b2b-size-7) 0 0;--b2b-size-border-no-radius-top:0 0 var(--b2b-size-7) var(--b2b-size-7);--b2b-size-border-no-radius-right:var(--b2b-size-7) 0 0 var(--b2b-size-7);--b2b-size-border-no-radius-left:0 var(--b2b-size-7) var(--b2b-size-7) 0;--b2b-size-border-radius-100:var(--b2b-size-7);--b2b-size-border-width-150:var(--b2b-size-10);--b2b-size-border-width-100:var(--b2b-size-5);--b2b-size-border-width-50:var(--b2b-size-1);--b2b-size-padding-175:var(--b2b-size-80);--b2b-size-padding-150:var(--b2b-size-60);--b2b-size-padding-100:var(--b2b-size-40);--b2b-size-padding-50:var(--b2b-size-20);--b2b-size-space-300:var(--b2b-size-200);--b2b-size-space-250:var(--b2b-size-160);--b2b-size-space-200:var(--b2b-size-100);--b2b-size-space-175:var(--b2b-size-80);--b2b-size-space-150:var(--b2b-size-60);--b2b-size-space-100:var(--b2b-size-40);--b2b-size-space-75:var(--b2b-size-30);--b2b-size-space-50:var(--b2b-size-20);--b2b-size-space-25:var(--b2b-size-10);--b2b-size-icon-400:var(--b2b-size-120);--b2b-size-icon-200:var(--b2b-size-80);--b2b-size-icon-100:var(--b2b-size-60);--b2b-size-icon-50:var(--b2b-size-40);--b2b-color-table-expand-default:var(--b2b-color-grey-25);--b2b-color-icon-inverted:var(--b2b-color-white-100);--b2b-color-icon-secondary:var(--b2b-color-grey-400);--b2b-color-icon-default:var(--b2b-color-black-100);--b2b-color-headline-inverted:var(--b2b-color-white-100);--b2b-color-headline-default:var(--b2b-color-black-100);--b2b-color-headline-title:var(--b2b-color-red-100);--b2b-color-copy-overlay:var(--b2b-color-white-100);--b2b-color-copy-inverted:var(--b2b-color-white-100);--b2b-color-copy-secondary:var(--b2b-color-grey-400);--b2b-color-copy-default:var(--b2b-color-black-100);--b2b-color-border-100:var(--b2b-color-grey-200);--b2b-color-background-overlay:var(--b2b-color-black-100);--b2b-color-background-card:var(--b2b-color-white-100);--b2b-color-background-box:var(--b2b-color-white-100);--b2b-color-background-page:var(--b2b-color-grey-25);--b2b-color-error-50:var(--b2b-color-red-50)}:root [data-theme=\"dark\"]{--b2b-size-200:5rem;--b2b-size-160:4rem;--b2b-size-150:3.75rem;--b2b-size-140:3.5rem;--b2b-size-120:3rem;--b2b-size-100:2.5rem;--b2b-size-90:2.25rem;--b2b-size-80:2rem;--b2b-size-70:1.75rem;--b2b-size-60:1.5rem;--b2b-size-55:1.375rem;--b2b-size-53:1.3125rem;--b2b-size-50:1.25rem;--b2b-size-45:1.125rem;--b2b-size-40:1rem;--b2b-size-35:0.875rem;--b2b-size-30:0.75rem;--b2b-size-25:0.625rem;--b2b-size-20:0.5rem;--b2b-size-15:0.375rem;--b2b-size-10:0.25rem;--b2b-size-7:0.1875rem;--b2b-size-5:0.125rem;--b2b-size-1:0.0625rem;--b2b-font-weight-bold:700;--b2b-font-weight-normal:500;--b2b-font-weight-thin:100;--b2b-font-family-default:OttoSans, Arial, Helvetica, sans-serif;--b2b-color-hover:#e6f4ff;--b2b-color-info-100:#003264;--b2b-color-info-50:#ccd6e0;--b2b-color-success-100:#326400;--b2b-color-success-50:#d6e0cc;--b2b-color-warning-100:#ffb432;--b2b-color-warning-50:#ffd998;--b2b-color-error-100:#e6344b;--b2b-color-primary:#d4021d;--b2b-color-red-250:#850012;--b2b-color-red-200:#bb0004;--b2b-color-red-150:#e6344b;--b2b-color-red-100:#d4021d;--b2b-color-red-50:#ffdde3;--b2b-color-grey-400:#777777;--b2b-color-grey-300:#9e9e9e;--b2b-color-grey-250:#b1b1b1;--b2b-color-grey-200:#c4c4c4;--b2b-color-grey-150:#d5d5d5;--b2b-color-grey-100:#e6e6e6;--b2b-color-grey-50:#eeeeee;--b2b-color-grey-25:#f6f6f6;--b2b-color-white-100:#ffffff;--b2b-color-black-100:#222222;--b2b-color-black-50:#333333;--b2b-color-icon-inverted:var(--b2b-color-black-100);--b2b-color-icon-secondary:var(--b2b-color-grey-400);--b2b-color-icon-default:var(--b2b-color-white-100);--b2b-color-headline-inverted:var(--b2b-color-black-100);--b2b-color-headline-default:var(--b2b-color-white-100);--b2b-color-headline-title:var(--b2b-color-red-50);--b2b-color-copy-inverted:var(--b2b-color-black-100);--b2b-color-copy-secondary:var(--b2b-color-grey-100);--b2b-color-copy-default:var(--b2b-color-white-100);--b2b-color-border-100:var(--b2b-color-white-100);--b2b-color-background-page:var(--b2b-color-grey-100);--b2b-color-background-card:var(--b2b-color-black-50);--b2b-color-background-box:var(--b2b-color-black-50);--b2b-color-error-50:var(--b2b-color-red-50)}@font-face{font-family:OttoSans;src:url(\"https://pattern-library.portal.otto.market/static/assets/fonts/otto-sans.ttf\");font-weight:normal;font-style:normal}@font-face{font-family:OttoSans;src:url(\"https://pattern-library.portal.otto.market/static/assets/fonts/otto-sans-bold.woff\") format(\"woff\"), url(\"https://pattern-library.portal.otto.market/static/assets/fonts/otto-sans-bold.ttf\") format(\"truetype\");font-weight:bold;font-style:normal}@font-face{font-family:OttoSans;src:url(\"https://pattern-library.portal.otto.market/static/assets/fonts/otto-sans-thin.woff\") format(\"woff\"), url(\"https://pattern-library.portal.otto.market/static/assets/fonts/otto-sans-thin.ttf\") format(\"truetype\");font-weight:100;font-style:normal}@font-face{font-family:ObcIcons;src:url(\"https://pattern-library.portal.otto.market/static/assets/fonts/obc-icons.woff\")}:host{z-index:0;width:fit-content;height:fit-content;position:relative}:host .b2b-anchor{font-family:var(--b2b-font-family-default);color:var(--b2b-color-copy-default);
|
|
3
|
+
const anchorCss = ":root,:host{--b2b-size-200:5rem;--b2b-size-160:4rem;--b2b-size-150:3.75rem;--b2b-size-140:3.5rem;--b2b-size-120:3rem;--b2b-size-100:2.5rem;--b2b-size-90:2.25rem;--b2b-size-80:2rem;--b2b-size-70:1.75rem;--b2b-size-60:1.5rem;--b2b-size-55:1.375rem;--b2b-size-53:1.3125rem;--b2b-size-50:1.25rem;--b2b-size-45:1.125rem;--b2b-size-40:1rem;--b2b-size-35:0.875rem;--b2b-size-30:0.75rem;--b2b-size-25:0.625rem;--b2b-size-20:0.5rem;--b2b-size-15:0.375rem;--b2b-size-10:0.25rem;--b2b-size-7:0.1875rem;--b2b-size-5:0.125rem;--b2b-size-1:0.0625rem;--b2b-font-weight-bold:700;--b2b-font-weight-normal:500;--b2b-font-weight-thin:100;--b2b-font-family-default:OttoSans, Arial, Helvetica, sans-serif;--b2b-color-table-expand-hover:#e6f4ff;--b2b-color-table-selected-default:#cce9ff;--b2b-color-background-overlay-transparent-40:rgba(34, 34, 34, 0.25);--b2b-color-background-overlay-transparent-80:rgba(34, 34, 34, 0.5);--b2b-color-hover:#e6f4ff;--b2b-color-info-100:#003264;--b2b-color-info-50:#ccd6e0;--b2b-color-success-100:#326400;--b2b-color-success-50:#d6e0cc;--b2b-color-warning-100:#ffb432;--b2b-color-warning-50:#ffd998;--b2b-color-error-100:#e6344b;--b2b-color-primary:#d4021d;--b2b-color-red-250:#850012;--b2b-color-red-200:#bb0004;--b2b-color-red-150:#e6344b;--b2b-color-red-100:#d4021d;--b2b-color-red-50:#ffdde3;--b2b-color-grey-400:#777777;--b2b-color-grey-300:#9e9e9e;--b2b-color-grey-250:#b1b1b1;--b2b-color-grey-200:#c4c4c4;--b2b-color-grey-150:#d5d5d5;--b2b-color-grey-100:#e6e6e6;--b2b-color-grey-50:#eeeeee;--b2b-color-grey-25:#f6f6f6;--b2b-color-white-100:#ffffff;--b2b-color-black-100:#222222;--b2b-color-black-50:#333333;--b2b-size-headline-line-height-400:var(--b2b-size-60);--b2b-size-headline-line-height-200:var(--b2b-size-60);--b2b-size-headline-line-height-100:var(--b2b-size-60);--b2b-size-headline-400:var(--b2b-size-60);--b2b-size-headline-200:var(--b2b-size-45);--b2b-size-headline-100:var(--b2b-size-40);--b2b-size-copy-line-height-300:var(--b2b-size-90);--b2b-size-copy-line-height-200:var(--b2b-size-60);--b2b-size-copy-line-height-125:var(--b2b-size-60);--b2b-size-copy-line-height-100:var(--b2b-size-53);--b2b-size-copy-line-height-75:var(--b2b-size-45);--b2b-size-copy-line-height-50:var(--b2b-size-40);--b2b-size-copy-300:var(--b2b-size-60);--b2b-size-copy-200:var(--b2b-size-45);--b2b-size-copy-125:var(--b2b-size-40);--b2b-size-copy-100:var(--b2b-size-35);--b2b-size-copy-50:var(--b2b-size-30);--b2b-size-border-no-radius-bottom:var(--b2b-size-7) var(--b2b-size-7) 0 0;--b2b-size-border-no-radius-top:0 0 var(--b2b-size-7) var(--b2b-size-7);--b2b-size-border-no-radius-right:var(--b2b-size-7) 0 0 var(--b2b-size-7);--b2b-size-border-no-radius-left:0 var(--b2b-size-7) var(--b2b-size-7) 0;--b2b-size-border-radius-100:var(--b2b-size-7);--b2b-size-border-width-150:var(--b2b-size-10);--b2b-size-border-width-100:var(--b2b-size-5);--b2b-size-border-width-50:var(--b2b-size-1);--b2b-size-padding-175:var(--b2b-size-80);--b2b-size-padding-150:var(--b2b-size-60);--b2b-size-padding-100:var(--b2b-size-40);--b2b-size-padding-50:var(--b2b-size-20);--b2b-size-space-300:var(--b2b-size-200);--b2b-size-space-250:var(--b2b-size-160);--b2b-size-space-200:var(--b2b-size-100);--b2b-size-space-175:var(--b2b-size-80);--b2b-size-space-150:var(--b2b-size-60);--b2b-size-space-100:var(--b2b-size-40);--b2b-size-space-75:var(--b2b-size-30);--b2b-size-space-50:var(--b2b-size-20);--b2b-size-space-25:var(--b2b-size-10);--b2b-size-icon-400:var(--b2b-size-120);--b2b-size-icon-200:var(--b2b-size-80);--b2b-size-icon-100:var(--b2b-size-60);--b2b-size-icon-50:var(--b2b-size-40);--b2b-color-table-expand-default:var(--b2b-color-grey-25);--b2b-color-icon-inverted:var(--b2b-color-white-100);--b2b-color-icon-secondary:var(--b2b-color-grey-400);--b2b-color-icon-default:var(--b2b-color-black-100);--b2b-color-headline-inverted:var(--b2b-color-white-100);--b2b-color-headline-default:var(--b2b-color-black-100);--b2b-color-headline-title:var(--b2b-color-red-100);--b2b-color-copy-overlay:var(--b2b-color-white-100);--b2b-color-copy-inverted:var(--b2b-color-white-100);--b2b-color-copy-secondary:var(--b2b-color-grey-400);--b2b-color-copy-default:var(--b2b-color-black-100);--b2b-color-border-100:var(--b2b-color-grey-200);--b2b-color-background-overlay:var(--b2b-color-black-100);--b2b-color-background-card:var(--b2b-color-white-100);--b2b-color-background-box:var(--b2b-color-white-100);--b2b-color-background-page:var(--b2b-color-grey-25);--b2b-color-error-50:var(--b2b-color-red-50)}:root [data-theme=\"dark\"]{--b2b-size-200:5rem;--b2b-size-160:4rem;--b2b-size-150:3.75rem;--b2b-size-140:3.5rem;--b2b-size-120:3rem;--b2b-size-100:2.5rem;--b2b-size-90:2.25rem;--b2b-size-80:2rem;--b2b-size-70:1.75rem;--b2b-size-60:1.5rem;--b2b-size-55:1.375rem;--b2b-size-53:1.3125rem;--b2b-size-50:1.25rem;--b2b-size-45:1.125rem;--b2b-size-40:1rem;--b2b-size-35:0.875rem;--b2b-size-30:0.75rem;--b2b-size-25:0.625rem;--b2b-size-20:0.5rem;--b2b-size-15:0.375rem;--b2b-size-10:0.25rem;--b2b-size-7:0.1875rem;--b2b-size-5:0.125rem;--b2b-size-1:0.0625rem;--b2b-font-weight-bold:700;--b2b-font-weight-normal:500;--b2b-font-weight-thin:100;--b2b-font-family-default:OttoSans, Arial, Helvetica, sans-serif;--b2b-color-hover:#e6f4ff;--b2b-color-info-100:#003264;--b2b-color-info-50:#ccd6e0;--b2b-color-success-100:#326400;--b2b-color-success-50:#d6e0cc;--b2b-color-warning-100:#ffb432;--b2b-color-warning-50:#ffd998;--b2b-color-error-100:#e6344b;--b2b-color-primary:#d4021d;--b2b-color-red-250:#850012;--b2b-color-red-200:#bb0004;--b2b-color-red-150:#e6344b;--b2b-color-red-100:#d4021d;--b2b-color-red-50:#ffdde3;--b2b-color-grey-400:#777777;--b2b-color-grey-300:#9e9e9e;--b2b-color-grey-250:#b1b1b1;--b2b-color-grey-200:#c4c4c4;--b2b-color-grey-150:#d5d5d5;--b2b-color-grey-100:#e6e6e6;--b2b-color-grey-50:#eeeeee;--b2b-color-grey-25:#f6f6f6;--b2b-color-white-100:#ffffff;--b2b-color-black-100:#222222;--b2b-color-black-50:#333333;--b2b-color-icon-inverted:var(--b2b-color-black-100);--b2b-color-icon-secondary:var(--b2b-color-grey-400);--b2b-color-icon-default:var(--b2b-color-white-100);--b2b-color-headline-inverted:var(--b2b-color-black-100);--b2b-color-headline-default:var(--b2b-color-white-100);--b2b-color-headline-title:var(--b2b-color-red-50);--b2b-color-copy-inverted:var(--b2b-color-black-100);--b2b-color-copy-secondary:var(--b2b-color-grey-100);--b2b-color-copy-default:var(--b2b-color-white-100);--b2b-color-border-100:var(--b2b-color-white-100);--b2b-color-background-page:var(--b2b-color-grey-100);--b2b-color-background-card:var(--b2b-color-black-50);--b2b-color-background-box:var(--b2b-color-black-50);--b2b-color-error-50:var(--b2b-color-red-50)}@font-face{font-family:OttoSans;src:url(\"https://pattern-library.portal.otto.market/static/assets/fonts/otto-sans.ttf\");font-weight:normal;font-style:normal}@font-face{font-family:OttoSans;src:url(\"https://pattern-library.portal.otto.market/static/assets/fonts/otto-sans-bold.woff\") format(\"woff\"), url(\"https://pattern-library.portal.otto.market/static/assets/fonts/otto-sans-bold.ttf\") format(\"truetype\");font-weight:bold;font-style:normal}@font-face{font-family:OttoSans;src:url(\"https://pattern-library.portal.otto.market/static/assets/fonts/otto-sans-thin.woff\") format(\"woff\"), url(\"https://pattern-library.portal.otto.market/static/assets/fonts/otto-sans-thin.ttf\") format(\"truetype\");font-weight:100;font-style:normal}@font-face{font-family:ObcIcons;src:url(\"https://pattern-library.portal.otto.market/static/assets/fonts/obc-icons.woff\")}:host{z-index:0;width:fit-content;height:fit-content;position:relative}:host .b2b-anchor{font-family:var(--b2b-font-family-default);color:var(--b2b-color-copy-default);transition:all 0.3s ease;z-index:1001;position:relative}:host .b2b-anchor--100{font-size:var(--b2b-size-copy-100)}:host .b2b-anchor--inherit{font-size:inherit}:host .b2b-anchor-hover--default:hover{color:var(--b2b-color-red-100);cursor:pointer}:host .b2b-anchor-hover--inherit:hover{color:inherit;cursor:pointer}:host .b2b-anchor--underline-text{text-decoration:underline}:host .b2b-anchor:not(.b2b-anchor--underline-text){text-decoration:none}";
|
|
4
4
|
const B2bAnchorStyle0 = anchorCss;
|
|
5
5
|
|
|
6
6
|
const AnchorComponent = class {
|
|
@@ -10,12 +10,16 @@ const AnchorComponent = class {
|
|
|
10
10
|
this.download = null;
|
|
11
11
|
this.target = 'self';
|
|
12
12
|
this.size = 'inherit';
|
|
13
|
+
this.hoverColor = 'default';
|
|
14
|
+
this.underlineText = true;
|
|
13
15
|
}
|
|
14
16
|
render() {
|
|
15
|
-
return (h(Host, { key: '
|
|
17
|
+
return (h(Host, { key: '60d94771fa6bf9cf9d8e688ecd7eba179a8e28a3' }, h("a", { key: 'f18239735b64a33cf80167e98a8cec01c0b42fb3', href: this.href, download: this.download, target: `_${this.target}`, class: {
|
|
16
18
|
'b2b-anchor': true,
|
|
17
19
|
[`b2b-anchor--${this.size}`]: true,
|
|
18
|
-
|
|
20
|
+
[`b2b-anchor-hover--${this.hoverColor}`]: true,
|
|
21
|
+
'b2b-anchor--underline-text': this.underlineText,
|
|
22
|
+
} }, h("slot", { key: '9bc35228a2265b620e8e32adf9ea8040cf259192' }))));
|
|
19
23
|
}
|
|
20
24
|
};
|
|
21
25
|
AnchorComponent.style = B2bAnchorStyle0;
|