@otto-de/b2b-core-components 1.10.1 → 1.11.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/README.md +1 -1
- package/dist/b2b-core-components/b2b-core-components.esm.js +1 -1
- package/dist/b2b-core-components/icons-50/b2b_icon-arrow-down.svg +3 -0
- package/dist/b2b-core-components/icons-50/b2b_icon-arrow-left.svg +3 -0
- package/dist/b2b-core-components/icons-50/b2b_icon-arrow-right.svg +3 -0
- package/dist/b2b-core-components/icons-50/b2b_icon-arrow-up.svg +3 -0
- package/dist/b2b-core-components/icons-50/b2b_icon-basket.svg +4 -0
- package/dist/b2b-core-components/icons-50/b2b_icon-check.svg +3 -0
- package/dist/b2b-core-components/icons-50/b2b_icon-close.svg +3 -0
- package/dist/b2b-core-components/icons-50/b2b_icon-delete.svg +6 -0
- package/dist/b2b-core-components/icons-50/b2b_icon-error-hint.svg +3 -0
- package/dist/b2b-core-components/icons-50/b2b_icon-filter.svg +5 -0
- package/dist/b2b-core-components/icons-50/b2b_icon-info-hint.svg +3 -0
- package/dist/b2b-core-components/icons-50/b2b_icon-info.svg +3 -0
- package/dist/b2b-core-components/icons-50/b2b_icon-leaving-page.svg +4 -0
- package/dist/b2b-core-components/icons-50/b2b_icon-minus.svg +3 -0
- package/dist/b2b-core-components/icons-50/b2b_icon-pin.svg +3 -0
- package/dist/b2b-core-components/icons-50/b2b_icon-plus.svg +3 -0
- package/dist/b2b-core-components/icons-50/b2b_icon-question-hint.svg +3 -0
- package/dist/b2b-core-components/icons-50/b2b_icon-question.svg +3 -0
- package/dist/b2b-core-components/icons-50/b2b_icon-rating-empty.svg +3 -0
- package/dist/b2b-core-components/icons-50/b2b_icon-rating-filled.svg +3 -0
- package/dist/b2b-core-components/icons-50/b2b_icon-rating-half.svg +3 -0
- package/dist/b2b-core-components/icons-50/b2b_icon-refresh.svg +3 -0
- package/dist/b2b-core-components/icons-50/b2b_icon-reply.svg +3 -0
- package/dist/b2b-core-components/icons-50/b2b_icon-smiley-positive.svg +13 -0
- package/dist/b2b-core-components/icons-50/b2b_icon-sort-ascending.svg +3 -0
- package/dist/b2b-core-components/icons-50/b2b_icon-sort-descending.svg +10 -0
- package/dist/b2b-core-components/icons-50/b2b_icon-sort.svg +7 -0
- package/dist/b2b-core-components/icons-50/b2b_icon-success-hint.svg +3 -0
- package/dist/b2b-core-components/icons-50/b2b_icon-trend-down.svg +3 -0
- package/dist/b2b-core-components/icons-50/b2b_icon-trend-up.svg +3 -0
- package/dist/b2b-core-components/icons-50/b2b_icon-warning-hint.svg +3 -0
- package/dist/b2b-core-components/icons-50/b2b_icon-wishlist-active.svg +3 -0
- package/dist/b2b-core-components/icons-50/b2b_icon-wishlist.svg +3 -0
- package/dist/b2b-core-components/p-0291eff0.entry.js +1 -0
- package/dist/b2b-core-components/p-1bc8e43e.entry.js +1 -0
- package/dist/b2b-core-components/{p-7a08679e.entry.js → p-1c0daedd.entry.js} +1 -1
- package/dist/b2b-core-components/p-2285568d.entry.js +1 -0
- package/dist/b2b-core-components/{p-25aaf272.entry.js → p-228d4489.entry.js} +1 -1
- package/dist/b2b-core-components/{p-c4f11f81.entry.js → p-2624f56d.entry.js} +1 -1
- package/dist/b2b-core-components/{p-ef0b67f7.entry.js → p-2667b51d.entry.js} +1 -1
- package/dist/b2b-core-components/{p-a4202aad.entry.js → p-287f83d5.entry.js} +1 -1
- package/dist/b2b-core-components/{p-b908127f.entry.js → p-29166e22.entry.js} +1 -1
- package/dist/b2b-core-components/{p-c09e03c7.entry.js → p-32b6b2c8.entry.js} +1 -1
- package/dist/b2b-core-components/{p-67ea769d.entry.js → p-339b7c3c.entry.js} +1 -1
- package/dist/b2b-core-components/p-3986736a.entry.js +1 -0
- package/dist/b2b-core-components/{p-3d4b228b.entry.js → p-3c776a9c.entry.js} +1 -1
- package/dist/b2b-core-components/{p-0ec7de22.entry.js → p-3d2bcff9.entry.js} +1 -1
- package/dist/b2b-core-components/p-3eceb872.entry.js +1 -0
- package/dist/b2b-core-components/{p-11da264c.entry.js → p-48466e2e.entry.js} +1 -1
- package/dist/b2b-core-components/{p-0bcf079c.entry.js → p-4b6d056b.entry.js} +1 -1
- package/dist/b2b-core-components/{p-925d9070.entry.js → p-567a827a.entry.js} +1 -1
- package/dist/b2b-core-components/p-61b2a6ad.js +1 -0
- package/dist/b2b-core-components/{p-f8a750e7.entry.js → p-65e497d7.entry.js} +1 -1
- package/dist/b2b-core-components/{p-f2b41fc6.entry.js → p-68350423.entry.js} +1 -1
- package/dist/b2b-core-components/{p-b3f85ec6.entry.js → p-68c54639.entry.js} +1 -1
- package/dist/b2b-core-components/{p-ad8b109e.entry.js → p-6a3ac673.entry.js} +1 -1
- package/dist/b2b-core-components/{p-387990be.entry.js → p-6e656e5c.entry.js} +1 -1
- package/dist/b2b-core-components/{p-38998a52.entry.js → p-7293eda0.entry.js} +1 -1
- package/dist/b2b-core-components/{p-8da7c951.entry.js → p-7788b868.entry.js} +1 -1
- package/dist/b2b-core-components/{p-5b15a55f.entry.js → p-7ae31329.entry.js} +1 -1
- package/dist/b2b-core-components/{p-cafd5cd3.entry.js → p-8455554d.entry.js} +1 -1
- package/dist/b2b-core-components/{p-90ff0cd1.entry.js → p-874c66d3.entry.js} +1 -1
- package/dist/b2b-core-components/{p-d06ef328.entry.js → p-90c700a4.entry.js} +1 -1
- package/dist/b2b-core-components/{p-6ff25e30.entry.js → p-91d82529.entry.js} +1 -1
- package/dist/b2b-core-components/p-93970b97.entry.js +1 -0
- package/dist/b2b-core-components/{p-0fd28783.entry.js → p-972ab127.entry.js} +1 -1
- package/dist/b2b-core-components/{p-8bb6c888.entry.js → p-9812490d.entry.js} +1 -1
- package/dist/b2b-core-components/{p-3a98c9c9.entry.js → p-9cf6d10b.entry.js} +1 -1
- package/dist/b2b-core-components/{p-fbdd6ae8.entry.js → p-a6bb2610.entry.js} +1 -1
- package/dist/b2b-core-components/{p-359ce83c.entry.js → p-b0cc9895.entry.js} +1 -1
- package/dist/b2b-core-components/p-b8ac302c.entry.js +1 -0
- package/dist/b2b-core-components/{p-4e5c008e.entry.js → p-bd14b3a6.entry.js} +1 -1
- package/dist/b2b-core-components/{p-02c3e38e.entry.js → p-cc6d221f.entry.js} +1 -1
- package/dist/b2b-core-components/{p-2d426936.entry.js → p-dc3d8d35.entry.js} +1 -1
- package/dist/b2b-core-components/{p-dc8a7a69.entry.js → p-de4857da.entry.js} +1 -1
- package/dist/b2b-core-components/{p-fdbe1232.entry.js → p-e1a20cd5.entry.js} +1 -1
- package/dist/b2b-core-components/{p-60d9ba88.entry.js → p-e355b702.entry.js} +1 -1
- package/dist/b2b-core-components/{p-ed36dfe2.entry.js → p-e94bd252.entry.js} +1 -1
- package/dist/b2b-core-components/{p-7b021a62.entry.js → p-f7288fb4.entry.js} +1 -1
- package/dist/b2b-core-components/{p-1fb6a6f8.entry.js → p-f8f38e9e.entry.js} +1 -1
- package/dist/b2b-core-components/{p-bcc6a797.entry.js → p-fb33d6df.entry.js} +1 -1
- package/dist/b2b-core-components/{p-2dd11d48.entry.js → p-ff16fd1a.entry.js} +1 -1
- package/dist/cjs/b2b-button_2.cjs.entry.js +1 -1
- package/dist/cjs/b2b-calendar-days_3.cjs.entry.js +228 -0
- package/dist/cjs/b2b-calendar.cjs.entry.js +113 -0
- package/dist/cjs/b2b-card.cjs.entry.js +2 -2
- package/dist/cjs/b2b-checkbox-group.cjs.entry.js +2 -2
- package/dist/cjs/b2b-checkbox.cjs.entry.js +2 -2
- package/dist/cjs/b2b-chip-component_2.cjs.entry.js +9 -5
- package/dist/cjs/b2b-core-components.cjs.js +1 -1
- package/dist/cjs/b2b-dropdown.cjs.entry.js +2 -2
- package/dist/cjs/b2b-flyout-menu-option.cjs.entry.js +1 -1
- package/dist/cjs/b2b-flyout-menu.cjs.entry.js +3 -3
- package/dist/cjs/b2b-grid-col.cjs.entry.js +1 -1
- package/dist/cjs/b2b-grid-row.cjs.entry.js +2 -2
- package/dist/cjs/b2b-grid.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 +94 -0
- 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-label.cjs.entry.js +2 -2
- package/dist/cjs/b2b-input_2.cjs.entry.js +4 -4
- package/dist/cjs/b2b-label.cjs.entry.js +2 -2
- 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 +2 -2
- package/dist/cjs/b2b-progress-bar.cjs.entry.js +3 -3
- package/dist/cjs/b2b-radio-button.cjs.entry.js +2 -2
- package/dist/cjs/b2b-radio-group.cjs.entry.js +2 -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 +3 -3
- package/dist/cjs/b2b-table-row.cjs.entry.js +2 -2
- package/dist/cjs/b2b-table-rowgroup.cjs.entry.js +2 -2
- package/dist/cjs/b2b-table.cjs.entry.js +2 -2
- 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/index-668808fd.js +16 -4
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{request-412d37bc.js → request-801c6ba1.js} +2 -2
- package/dist/collection/collection-manifest.json +5 -0
- package/dist/collection/components/alert/alert.css +2 -2
- package/dist/collection/components/anchor/anchor.css +2 -2
- package/dist/collection/components/breadcrumb/breadcrumb.css +2 -2
- package/dist/collection/components/button/button.css +2 -2
- package/dist/collection/components/calendar/calendar-days-header.css +233 -0
- package/dist/collection/components/calendar/calendar-days-header.js +29 -0
- package/dist/collection/components/calendar/calendar-days.css +261 -0
- package/dist/collection/components/calendar/calendar-days.js +333 -0
- package/dist/collection/components/calendar/calendar-header.css +283 -0
- package/dist/collection/components/calendar/calendar-header.e2e.js +22 -0
- package/dist/collection/components/calendar/calendar-header.js +111 -0
- package/dist/collection/components/calendar/calendar.css +264 -0
- package/dist/collection/components/calendar/calendar.e2e.js +60 -0
- package/dist/collection/components/calendar/calendar.js +245 -0
- package/dist/collection/components/calendar/calendar.stories.js +81 -0
- package/dist/collection/components/calendar/calendar.types.js +15 -0
- package/dist/collection/components/card/card.css +2 -2
- package/dist/collection/components/card/card.js +2 -2
- package/dist/collection/components/checkbox/checkbox.css +2 -2
- package/dist/collection/components/checkbox/checkbox.js +2 -2
- package/dist/collection/components/checkbox-group/checkbox-group.css +2 -2
- package/dist/collection/components/checkbox-group/checkbox-group.js +2 -2
- package/dist/collection/components/chip/chip.css +36 -3
- package/dist/collection/components/chip/chip.e2e.js +80 -0
- package/dist/collection/components/chip/chip.js +40 -2
- package/dist/collection/components/chip/chip.stories.js +92 -36
- package/dist/collection/components/dropdown/dropdown.css +2 -2
- package/dist/collection/components/dropdown/dropdown.js +2 -2
- package/dist/collection/components/flyout-menu/flyout-menu-option.js +1 -1
- package/dist/collection/components/flyout-menu/flyout-menu.css +2 -2
- package/dist/collection/components/flyout-menu/flyout-menu.js +3 -3
- package/dist/collection/components/grid/column.js +1 -1
- package/dist/collection/components/grid/grid.js +1 -1
- package/dist/collection/components/grid/row.js +2 -2
- package/dist/collection/components/headline/headline.css +2 -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-50/icon-50.css +244 -0
- package/dist/collection/components/icon-50/icon-50.e2e.js +32 -0
- package/dist/collection/components/icon-50/icon-50.js +150 -0
- package/dist/collection/components/icon-50/icon-50.stories.js +80 -0
- package/dist/collection/components/icon-50/icons-50/b2b_icon-arrow-down.svg +3 -0
- package/dist/collection/components/icon-50/icons-50/b2b_icon-arrow-left.svg +3 -0
- package/dist/collection/components/icon-50/icons-50/b2b_icon-arrow-right.svg +3 -0
- package/dist/collection/components/icon-50/icons-50/b2b_icon-arrow-up.svg +3 -0
- package/dist/collection/components/icon-50/icons-50/b2b_icon-basket.svg +4 -0
- package/dist/collection/components/icon-50/icons-50/b2b_icon-check.svg +3 -0
- package/dist/collection/components/icon-50/icons-50/b2b_icon-close.svg +3 -0
- package/dist/collection/components/icon-50/icons-50/b2b_icon-delete.svg +6 -0
- package/dist/collection/components/icon-50/icons-50/b2b_icon-error-hint.svg +3 -0
- package/dist/collection/components/icon-50/icons-50/b2b_icon-filter.svg +5 -0
- package/dist/collection/components/icon-50/icons-50/b2b_icon-info-hint.svg +3 -0
- package/dist/collection/components/icon-50/icons-50/b2b_icon-info.svg +3 -0
- package/dist/collection/components/icon-50/icons-50/b2b_icon-leaving-page.svg +4 -0
- package/dist/collection/components/icon-50/icons-50/b2b_icon-minus.svg +3 -0
- package/dist/collection/components/icon-50/icons-50/b2b_icon-pin.svg +3 -0
- package/dist/collection/components/icon-50/icons-50/b2b_icon-plus.svg +3 -0
- package/dist/collection/components/icon-50/icons-50/b2b_icon-question-hint.svg +3 -0
- package/dist/collection/components/icon-50/icons-50/b2b_icon-question.svg +3 -0
- package/dist/collection/components/icon-50/icons-50/b2b_icon-rating-empty.svg +3 -0
- package/dist/collection/components/icon-50/icons-50/b2b_icon-rating-filled.svg +3 -0
- package/dist/collection/components/icon-50/icons-50/b2b_icon-rating-half.svg +3 -0
- package/dist/collection/components/icon-50/icons-50/b2b_icon-refresh.svg +3 -0
- package/dist/collection/components/icon-50/icons-50/b2b_icon-reply.svg +3 -0
- package/dist/collection/components/icon-50/icons-50/b2b_icon-smiley-positive.svg +13 -0
- package/dist/collection/components/icon-50/icons-50/b2b_icon-sort-ascending.svg +3 -0
- package/dist/collection/components/icon-50/icons-50/b2b_icon-sort-descending.svg +10 -0
- package/dist/collection/components/icon-50/icons-50/b2b_icon-sort.svg +7 -0
- package/dist/collection/components/icon-50/icons-50/b2b_icon-success-hint.svg +3 -0
- package/dist/collection/components/icon-50/icons-50/b2b_icon-trend-down.svg +3 -0
- package/dist/collection/components/icon-50/icons-50/b2b_icon-trend-up.svg +3 -0
- package/dist/collection/components/icon-50/icons-50/b2b_icon-warning-hint.svg +3 -0
- package/dist/collection/components/icon-50/icons-50/b2b_icon-wishlist-active.svg +3 -0
- package/dist/collection/components/icon-50/icons-50/b2b_icon-wishlist.svg +3 -0
- package/dist/collection/components/icon-50/types.js +36 -0
- package/dist/collection/components/input/input.css +2 -2
- package/dist/collection/components/input/input.js +3 -3
- package/dist/collection/components/input-group/input-group.css +2 -2
- package/dist/collection/components/input-group/input-group.js +1 -1
- package/dist/collection/components/input-label/input-label.js +2 -2
- package/dist/collection/components/input-list/input-list-option.js +1 -1
- package/dist/collection/components/input-list/input-list.css +2 -2
- package/dist/collection/components/input-list/input-list.js +2 -2
- package/dist/collection/components/label/label.css +2 -2
- package/dist/collection/components/label/label.js +2 -2
- package/dist/collection/components/modal/modal.css +2 -2
- package/dist/collection/components/modal/modal.js +2 -2
- package/dist/collection/components/multiselect-dropdown/multiselect-dropdown.css +2 -2
- package/dist/collection/components/multiselect-dropdown/multiselect-dropdown.js +3 -3
- package/dist/collection/components/multiselect-dropdown/multiselect-option/multiselect-option.js +2 -2
- package/dist/collection/components/pagination/pagination.css +2 -2
- package/dist/collection/components/pagination/pagination.js +1 -1
- package/dist/collection/components/paragraph/paragraph.css +2 -2
- package/dist/collection/components/paragraph/paragraph.js +2 -2
- package/dist/collection/components/progress-bar/progress-bar.css +2 -2
- package/dist/collection/components/progress-bar/progress-bar.js +3 -3
- package/dist/collection/components/radio/radio.css +2 -2
- package/dist/collection/components/radio/radio.js +2 -2
- package/dist/collection/components/radio-group/radio-group.css +2 -2
- package/dist/collection/components/radio-group/radio-group.js +2 -2
- 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 +2 -2
- package/dist/collection/components/table/table-rowgroup/table-rowgroup.css +2 -2
- package/dist/collection/components/table/table-rowgroup/table-rowgroup.js +2 -2
- package/dist/collection/components/table/table.css +2 -2
- package/dist/collection/components/table/table.js +2 -2
- 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/icon/request.js +1 -1
- package/dist/collection/utils/resources.js +1 -1
- package/dist/components/b2b-calendar-days-header.d.ts +11 -0
- package/dist/components/b2b-calendar-days-header.js +6 -0
- package/dist/components/b2b-calendar-days.d.ts +11 -0
- package/dist/components/b2b-calendar-days.js +6 -0
- package/dist/components/b2b-calendar-header.d.ts +11 -0
- package/dist/components/b2b-calendar-header.js +6 -0
- package/dist/components/b2b-calendar.d.ts +11 -0
- package/dist/components/b2b-calendar.js +167 -0
- package/dist/components/b2b-card.js +2 -2
- package/dist/components/b2b-checkbox-group.js +2 -2
- package/dist/components/b2b-dropdown.js +2 -2
- package/dist/components/b2b-flyout-menu-option.js +1 -1
- package/dist/components/b2b-flyout-menu.js +3 -3
- package/dist/components/b2b-grid-col.js +1 -1
- package/dist/components/b2b-grid-row.js +2 -2
- package/dist/components/b2b-grid.js +1 -1
- package/dist/components/b2b-icon-50.d.ts +11 -0
- package/dist/components/b2b-icon-50.js +119 -0
- package/dist/components/b2b-label.js +2 -2
- package/dist/components/b2b-modal.js +2 -2
- package/dist/components/b2b-multiselect-dropdown.js +3 -3
- package/dist/components/b2b-pagination.js +1 -1
- package/dist/components/b2b-paragraph.js +2 -2
- package/dist/components/b2b-progress-bar.js +3 -3
- package/dist/components/b2b-radio-button.js +2 -2
- package/dist/components/b2b-radio-group.js +2 -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 +2 -2
- package/dist/components/b2b-table-rowgroup.js +2 -2
- 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/calendar-days-header.js +40 -0
- package/dist/components/calendar-days.js +186 -0
- package/dist/components/calendar-header.js +56 -0
- package/dist/components/calendar.types.js +17 -0
- package/dist/components/checkbox.js +2 -2
- package/dist/components/chip.js +9 -3
- package/dist/components/input-group.js +1 -1
- package/dist/components/input-label.js +2 -2
- package/dist/components/input-list-option.js +1 -1
- package/dist/components/input-list.js +2 -2
- package/dist/components/input.js +3 -3
- package/dist/components/multiselect-option.js +2 -2
- package/dist/components/request.js +2 -2
- 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/wizard-icon.js +1 -1
- package/dist/custom-elements.json +259 -0
- package/dist/esm/b2b-button_2.entry.js +1 -1
- package/dist/esm/b2b-calendar-days_3.entry.js +222 -0
- package/dist/esm/b2b-calendar.entry.js +109 -0
- package/dist/esm/b2b-card.entry.js +2 -2
- package/dist/esm/b2b-checkbox-group.entry.js +2 -2
- package/dist/esm/b2b-checkbox.entry.js +2 -2
- package/dist/esm/b2b-chip-component_2.entry.js +9 -5
- package/dist/esm/b2b-core-components.js +1 -1
- package/dist/esm/b2b-dropdown.entry.js +2 -2
- package/dist/esm/b2b-flyout-menu-option.entry.js +1 -1
- package/dist/esm/b2b-flyout-menu.entry.js +3 -3
- package/dist/esm/b2b-grid-col.entry.js +1 -1
- package/dist/esm/b2b-grid-row.entry.js +2 -2
- package/dist/esm/b2b-grid.entry.js +1 -1
- package/dist/esm/b2b-icon-100.entry.js +1 -1
- package/dist/esm/b2b-icon-50.entry.js +90 -0
- 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-label.entry.js +2 -2
- package/dist/esm/b2b-input_2.entry.js +4 -4
- package/dist/esm/b2b-label.entry.js +2 -2
- 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 +2 -2
- package/dist/esm/b2b-progress-bar.entry.js +3 -3
- package/dist/esm/b2b-radio-button.entry.js +2 -2
- package/dist/esm/b2b-radio-group.entry.js +2 -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 +3 -3
- package/dist/esm/b2b-table-row.entry.js +2 -2
- package/dist/esm/b2b-table-rowgroup.entry.js +2 -2
- package/dist/esm/b2b-table.entry.js +2 -2
- 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/index-ab9eb36d.js +16 -4
- package/dist/esm/loader.js +1 -1
- package/dist/esm/{request-9dfb5cd6.js → request-1d048f8a.js} +2 -2
- package/dist/scripts/stencil/generate-vue-web-types.js +1 -1
- package/dist/types/components/calendar/calendar-days-header.d.ts +5 -0
- package/dist/types/components/calendar/calendar-days.d.ts +34 -0
- package/dist/types/components/calendar/calendar-header.d.ts +14 -0
- package/dist/types/components/calendar/calendar.d.ts +31 -0
- package/dist/types/components/calendar/calendar.stories.d.ts +8 -0
- package/dist/types/components/calendar/calendar.types.d.ts +2 -0
- package/dist/types/components/chip/chip.d.ts +4 -0
- package/dist/types/components/chip/chip.stories.d.ts +16 -7
- package/dist/types/components/icon-50/icon-50.d.ts +16 -0
- package/dist/types/components/icon-50/icon-50.stories.d.ts +10 -0
- package/dist/types/components/icon-50/types.d.ts +2 -0
- package/dist/types/components.d.ts +282 -4
- package/dist/types/utils/interfaces/form.interface.d.ts +7 -0
- package/dist/types/utils/interfaces/interaction.interface.d.ts +3 -1
- package/dist/types/utils/resources.d.ts +1 -1
- package/dist/web-types.json +342 -56
- package/package.json +3 -3
- package/dist/b2b-core-components/p-2218987f.entry.js +0 -1
- package/dist/b2b-core-components/p-38626c78.entry.js +0 -1
- package/dist/b2b-core-components/p-7a0c1ada.entry.js +0 -1
- package/dist/b2b-core-components/p-a5825744.entry.js +0 -1
- package/dist/b2b-core-components/p-f4d4c269.js +0 -1
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
2
|
+
var t = {};
|
|
3
|
+
for (var p in s)
|
|
4
|
+
if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
5
|
+
t[p] = s[p];
|
|
6
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
7
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
8
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
9
|
+
t[p[i]] = s[p[i]];
|
|
10
|
+
}
|
|
11
|
+
return t;
|
|
12
|
+
};
|
|
13
|
+
import { html } from "lit-html";
|
|
14
|
+
import { getArgTypes } from "../../docs/config/utils";
|
|
15
|
+
import { userEvent } from "@storybook/testing-library";
|
|
16
|
+
const meta = {
|
|
17
|
+
title: 'Components/Interaction/Calendar',
|
|
18
|
+
component: 'b2b-calendar',
|
|
19
|
+
args: {
|
|
20
|
+
disablePastDates: false,
|
|
21
|
+
disableFutureDates: false,
|
|
22
|
+
disableWeekends: false,
|
|
23
|
+
label: 'Zeitraum auswählen',
|
|
24
|
+
},
|
|
25
|
+
argTypes: getArgTypes('b2b-calendar'),
|
|
26
|
+
render: (_a) => {
|
|
27
|
+
var args = __rest(_a, []);
|
|
28
|
+
return html ` <div style="margin-left: 100px">
|
|
29
|
+
<b2b-calendar
|
|
30
|
+
label=${args.label}
|
|
31
|
+
disable-past-dates=${args.disablePastDates}
|
|
32
|
+
disable-future-dates=${args.disableFutureDates}
|
|
33
|
+
disable-weekends=${args.disableWeekends}></b2b-calendar>
|
|
34
|
+
</div>`;
|
|
35
|
+
},
|
|
36
|
+
};
|
|
37
|
+
export default meta;
|
|
38
|
+
export const Default = {
|
|
39
|
+
args: Object.assign({}, meta.args),
|
|
40
|
+
play: async ({ canvasElement }) => {
|
|
41
|
+
setTimeout(async () => {
|
|
42
|
+
var _a;
|
|
43
|
+
const calendar = canvasElement.querySelector('b2b-calendar');
|
|
44
|
+
const b2bCalendarInputWrapper = (_a = calendar.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelector('.b2b-calendar-input-wrapper');
|
|
45
|
+
await userEvent.click(b2bCalendarInputWrapper);
|
|
46
|
+
}, 500);
|
|
47
|
+
},
|
|
48
|
+
};
|
|
49
|
+
export const DisablePastDates = {
|
|
50
|
+
args: Object.assign(Object.assign({}, meta.args), { disablePastDates: true }),
|
|
51
|
+
play: async ({ canvasElement }) => {
|
|
52
|
+
setTimeout(async () => {
|
|
53
|
+
var _a;
|
|
54
|
+
const calendar = canvasElement.querySelector('b2b-calendar');
|
|
55
|
+
const b2bCalendarInputWrapper = (_a = calendar.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelector('.b2b-calendar-input-wrapper');
|
|
56
|
+
await userEvent.click(b2bCalendarInputWrapper);
|
|
57
|
+
}, 500);
|
|
58
|
+
},
|
|
59
|
+
};
|
|
60
|
+
export const DisableFutureDates = {
|
|
61
|
+
args: Object.assign(Object.assign({}, meta.args), { disableFutureDates: true }),
|
|
62
|
+
play: async ({ canvasElement }) => {
|
|
63
|
+
setTimeout(async () => {
|
|
64
|
+
var _a;
|
|
65
|
+
const calendar = canvasElement.querySelector('b2b-calendar');
|
|
66
|
+
const b2bCalendarInputWrapper = (_a = calendar.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelector('.b2b-calendar-input-wrapper');
|
|
67
|
+
await userEvent.click(b2bCalendarInputWrapper);
|
|
68
|
+
}, 500);
|
|
69
|
+
},
|
|
70
|
+
};
|
|
71
|
+
export const DisableWeekends = {
|
|
72
|
+
args: Object.assign(Object.assign({}, meta.args), { disableWeekends: true }),
|
|
73
|
+
play: async ({ canvasElement }) => {
|
|
74
|
+
setTimeout(async () => {
|
|
75
|
+
var _a;
|
|
76
|
+
const calendar = canvasElement.querySelector('b2b-calendar');
|
|
77
|
+
const b2bCalendarInputWrapper = (_a = calendar.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelector('.b2b-calendar-input-wrapper');
|
|
78
|
+
await userEvent.click(b2bCalendarInputWrapper);
|
|
79
|
+
}, 500);
|
|
80
|
+
},
|
|
81
|
+
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Do not edit directly
|
|
3
|
-
* Generated on
|
|
3
|
+
* Generated on Tue, 18 Jun 2024 10:17:41 GMT
|
|
4
4
|
*/
|
|
5
5
|
:root, :host {
|
|
6
6
|
--b2b-size-200: 5rem; /* 80px */
|
|
@@ -123,7 +123,7 @@
|
|
|
123
123
|
}
|
|
124
124
|
/**
|
|
125
125
|
* Do not edit directly
|
|
126
|
-
* Generated on
|
|
126
|
+
* Generated on Tue, 18 Jun 2024 10:17:42 GMT
|
|
127
127
|
*/
|
|
128
128
|
:root [data-theme="dark"] {
|
|
129
129
|
--b2b-size-200: 5rem; /* 80px */
|
|
@@ -26,10 +26,10 @@ export class CardComponent {
|
|
|
26
26
|
return 0;
|
|
27
27
|
}
|
|
28
28
|
render() {
|
|
29
|
-
return (h(Host, { key: '
|
|
29
|
+
return (h(Host, { key: '6a39ac26f49ce2814abb2e2a5f0628d3af9e3ffb', tabIndex: this.getTabIndex(), "aria-disabled": this.disabled ? 'true' : null, class: {
|
|
30
30
|
'b2b-card': true,
|
|
31
31
|
'b2b-card--disabled': this.disabled,
|
|
32
|
-
} }, this.href != '' && h("a", { href: this.href, target: `_${this.target}` }), this.disabled && h("div", { class: "b2b-card--disabled-overlay" }), h("slot", { key: '
|
|
32
|
+
} }, this.href != '' && h("a", { href: this.href, target: `_${this.target}` }), this.disabled && h("div", { class: "b2b-card--disabled-overlay" }), h("slot", { key: '19775bd829936bbe3fa1aa8d58dde18f6d602228' })));
|
|
33
33
|
}
|
|
34
34
|
static get is() { return "b2b-card"; }
|
|
35
35
|
static get encapsulation() { return "shadow"; }
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Do not edit directly
|
|
3
|
-
* Generated on
|
|
3
|
+
* Generated on Tue, 18 Jun 2024 10:17:41 GMT
|
|
4
4
|
*/
|
|
5
5
|
:root, :host {
|
|
6
6
|
--b2b-size-200: 5rem; /* 80px */
|
|
@@ -123,7 +123,7 @@
|
|
|
123
123
|
}
|
|
124
124
|
/**
|
|
125
125
|
* Do not edit directly
|
|
126
|
-
* Generated on
|
|
126
|
+
* Generated on Tue, 18 Jun 2024 10:17:42 GMT
|
|
127
127
|
*/
|
|
128
128
|
:root [data-theme="dark"] {
|
|
129
129
|
--b2b-size-200: 5rem; /* 80px */
|
|
@@ -65,14 +65,14 @@ export class CheckboxComponent {
|
|
|
65
65
|
}
|
|
66
66
|
}
|
|
67
67
|
render() {
|
|
68
|
-
return (h(Host, { key: '
|
|
68
|
+
return (h(Host, { key: '15500c41147539bda4b3a5355fbaae206711172e', onClick: this.onClick }, h("div", { key: '285ad6cca81447d099870f0faec211d5cd7111de', class: {
|
|
69
69
|
'b2b-checkbox': true,
|
|
70
70
|
'b2b-checkbox--error': this.invalid && !this.disabled,
|
|
71
71
|
'b2b-checkbox--disabled': this.disabled || this.groupDisabled,
|
|
72
72
|
'b2b-checkbox--checked': this.checked,
|
|
73
73
|
'b2b-checkbox--standalone': this.standalone,
|
|
74
74
|
'b2b-checkbox--indeterminate': this.indeterminate,
|
|
75
|
-
} }, h("div", { key: '
|
|
75
|
+
} }, h("div", { key: '74319860db88f14c2f56b6e7ed4f5e797433dd5b', class: "b2b-checkbox-items" }, this.renderIcon(), h("input", { key: '68a6c2c855731d1e5887bc3cbac14d4ed51468c9', 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 }, this.label))), (this.hint !== undefined && !this.invalid) ||
|
|
76
76
|
(this.hint !== undefined && this.disabled) ? (h("span", null, this.hint)) : (''), this.error !== undefined && this.invalid && !this.disabled ? (h("span", null, this.error)) : (''))));
|
|
77
77
|
}
|
|
78
78
|
static get is() { return "b2b-checkbox"; }
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Do not edit directly
|
|
3
|
-
* Generated on
|
|
3
|
+
* Generated on Tue, 18 Jun 2024 10:17:41 GMT
|
|
4
4
|
*/
|
|
5
5
|
:root, :host {
|
|
6
6
|
--b2b-size-200: 5rem; /* 80px */
|
|
@@ -123,7 +123,7 @@
|
|
|
123
123
|
}
|
|
124
124
|
/**
|
|
125
125
|
* Do not edit directly
|
|
126
|
-
* Generated on
|
|
126
|
+
* Generated on Tue, 18 Jun 2024 10:17:42 GMT
|
|
127
127
|
*/
|
|
128
128
|
:root [data-theme="dark"] {
|
|
129
129
|
--b2b-size-200: 5rem; /* 80px */
|
|
@@ -65,11 +65,11 @@ export class CheckboxGroupComponent {
|
|
|
65
65
|
}
|
|
66
66
|
}
|
|
67
67
|
render() {
|
|
68
|
-
return (h(Host, { key: '
|
|
68
|
+
return (h(Host, { key: '3b6da1303cdfd1bdddbc1f31323e50986ac7b087' }, h("div", { key: 'c626a8341b17c86efd58e6c9da73b44257b8cd9a', class: {
|
|
69
69
|
'b2b-checkbox-group': true,
|
|
70
70
|
'b2b-checkbox-group--error': this.invalid && !this.disabled,
|
|
71
71
|
[`b2b-checkbox-group--${this.alignment}`]: true,
|
|
72
|
-
} }, this.label && (h("b2b-input-label", { required: this.required }, this.label)), h("fieldset", { key: '
|
|
72
|
+
} }, this.label && (h("b2b-input-label", { required: this.required }, this.label)), h("fieldset", { key: '881df0a66e9479f2eab63d0387fc4d4f4ee37295' }, h("div", { key: '936511055623583956fc980f62497cdc01a9dc21', class: "b2b-checkbox-group__options" }, h("slot", { key: 'd096cf78944f253e07d0b852c38db6c486681eb3' }))), (this.hint !== undefined && !this.invalid) ||
|
|
73
73
|
(this.hint !== undefined && this.disabled) ? (h("span", null, this.hint)) : (''), this.error !== undefined && this.invalid && !this.disabled ? (h("span", null, this.error)) : (''))));
|
|
74
74
|
}
|
|
75
75
|
static get is() { return "b2b-checkbox-group"; }
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Do not edit directly
|
|
3
|
-
* Generated on
|
|
3
|
+
* Generated on Tue, 18 Jun 2024 10:17:41 GMT
|
|
4
4
|
*/
|
|
5
5
|
:root, :host {
|
|
6
6
|
--b2b-size-200: 5rem; /* 80px */
|
|
@@ -123,7 +123,7 @@
|
|
|
123
123
|
}
|
|
124
124
|
/**
|
|
125
125
|
* Do not edit directly
|
|
126
|
-
* Generated on
|
|
126
|
+
* Generated on Tue, 18 Jun 2024 10:17:42 GMT
|
|
127
127
|
*/
|
|
128
128
|
:root [data-theme="dark"] {
|
|
129
129
|
--b2b-size-200: 5rem; /* 80px */
|
|
@@ -234,14 +234,47 @@
|
|
|
234
234
|
align-items: center;
|
|
235
235
|
cursor: default;
|
|
236
236
|
margin-left: var(--b2b-size-20);
|
|
237
|
+
color: var(--b2b-color-copy-default);
|
|
238
|
+
}
|
|
239
|
+
:host .b2b-chip--success {
|
|
240
|
+
height: var(--b2b-size-45);
|
|
241
|
+
background-color: var(--b2b-color-success-50);
|
|
242
|
+
border: var(--b2b-size-border-width-50) solid var(--b2b-color-success-100);
|
|
243
|
+
}
|
|
244
|
+
:host .b2b-chip--info {
|
|
245
|
+
height: var(--b2b-size-45);
|
|
246
|
+
background-color: var(--b2b-color-info-50);
|
|
247
|
+
border: var(--b2b-size-border-width-50) solid var(--b2b-color-info-100);
|
|
248
|
+
}
|
|
249
|
+
:host .b2b-chip--warn {
|
|
250
|
+
height: var(--b2b-size-45);
|
|
251
|
+
background-color: var(--b2b-color-warning-50);
|
|
252
|
+
border: var(--b2b-size-border-width-50) solid var(--b2b-color-warning-100);
|
|
253
|
+
}
|
|
254
|
+
:host .b2b-chip--error {
|
|
255
|
+
height: var(--b2b-size-45);
|
|
256
|
+
background-color: var(--b2b-color-error-50);
|
|
257
|
+
border: var(--b2b-size-border-width-50) solid var(--b2b-color-error-100);
|
|
237
258
|
}
|
|
238
259
|
:host .b2b-chip__label {
|
|
239
260
|
display: inline-block;
|
|
240
261
|
text-overflow: ellipsis;
|
|
241
262
|
overflow: hidden;
|
|
242
263
|
}
|
|
264
|
+
:host .b2b-chip__label--bold {
|
|
265
|
+
font-weight: bold;
|
|
266
|
+
}
|
|
267
|
+
:host .b2b-chip__label--italic {
|
|
268
|
+
font-style: italic;
|
|
269
|
+
}
|
|
270
|
+
:host .b2b-chip__label--underline {
|
|
271
|
+
text-decoration: underline;
|
|
272
|
+
}
|
|
273
|
+
:host .b2b-chip__label--strikethrough {
|
|
274
|
+
text-decoration: line-through;
|
|
275
|
+
}
|
|
243
276
|
:host .b2b-chip__label--close-button {
|
|
244
|
-
margin-right: var(--b2b-size-
|
|
277
|
+
margin-right: var(--b2b-size-5);
|
|
245
278
|
}
|
|
246
279
|
:host .b2b-chip__clearIcon {
|
|
247
280
|
display: flex;
|
|
@@ -8,6 +8,86 @@ describe('B2B-Chip-Component', () => {
|
|
|
8
8
|
expect(chip).not.toBeNull();
|
|
9
9
|
expect(clearIcon).not.toBeNull();
|
|
10
10
|
});
|
|
11
|
+
it('should render the chip component with success type', async () => {
|
|
12
|
+
const page = await newE2EPage();
|
|
13
|
+
await page.setContent(`<b2b-chip-component label="chip" type="success"></b2b-chip-component>`);
|
|
14
|
+
const chip = await page.find({ text: 'chip' });
|
|
15
|
+
const clearIcon = await page.find('b2b-chip-component >>> button.b2b-chip__clearIcon');
|
|
16
|
+
expect(chip).not.toBeNull();
|
|
17
|
+
expect(clearIcon).not.toBeNull();
|
|
18
|
+
const chipWrapper = await page.find('b2b-chip-component >>> .b2b-chip');
|
|
19
|
+
expect(chipWrapper).toHaveClass('b2b-chip--success');
|
|
20
|
+
});
|
|
21
|
+
it('should render the chip component with info type', async () => {
|
|
22
|
+
const page = await newE2EPage();
|
|
23
|
+
await page.setContent(`<b2b-chip-component label="chip" type="info"></b2b-chip-component>`);
|
|
24
|
+
const chip = await page.find({ text: 'chip' });
|
|
25
|
+
const clearIcon = await page.find('b2b-chip-component >>> button.b2b-chip__clearIcon');
|
|
26
|
+
expect(chip).not.toBeNull();
|
|
27
|
+
expect(clearIcon).not.toBeNull();
|
|
28
|
+
const chipWrapper = await page.find('b2b-chip-component >>> .b2b-chip');
|
|
29
|
+
expect(chipWrapper).toHaveClass('b2b-chip--info');
|
|
30
|
+
});
|
|
31
|
+
it('should render the chip component with warning type', async () => {
|
|
32
|
+
const page = await newE2EPage();
|
|
33
|
+
await page.setContent(`<b2b-chip-component label="chip" type="warn"></b2b-chip-component>`);
|
|
34
|
+
const chip = await page.find({ text: 'chip' });
|
|
35
|
+
const clearIcon = await page.find('b2b-chip-component >>> button.b2b-chip__clearIcon');
|
|
36
|
+
expect(chip).not.toBeNull();
|
|
37
|
+
expect(clearIcon).not.toBeNull();
|
|
38
|
+
const chipWrapper = await page.find('b2b-chip-component >>> .b2b-chip');
|
|
39
|
+
expect(chipWrapper).toHaveClass('b2b-chip--warn');
|
|
40
|
+
});
|
|
41
|
+
it('should render the chip component with error type', async () => {
|
|
42
|
+
const page = await newE2EPage();
|
|
43
|
+
await page.setContent(`<b2b-chip-component label="chip" type="error"></b2b-chip-component>`);
|
|
44
|
+
const chip = await page.find({ text: 'chip' });
|
|
45
|
+
const clearIcon = await page.find('b2b-chip-component >>> button.b2b-chip__clearIcon');
|
|
46
|
+
expect(chip).not.toBeNull();
|
|
47
|
+
expect(clearIcon).not.toBeNull();
|
|
48
|
+
const chipWrapper = await page.find('b2b-chip-component >>> .b2b-chip');
|
|
49
|
+
expect(chipWrapper).toHaveClass('b2b-chip--error');
|
|
50
|
+
});
|
|
51
|
+
it('should render the chip component with bold label', async () => {
|
|
52
|
+
const page = await newE2EPage();
|
|
53
|
+
await page.setContent(`<b2b-chip-component label="chip" label-style="bold"></b2b-chip-component>`);
|
|
54
|
+
const chip = await page.find({ text: 'chip' });
|
|
55
|
+
const clearIcon = await page.find('b2b-chip-component >>> button.b2b-chip__clearIcon');
|
|
56
|
+
expect(chip).not.toBeNull();
|
|
57
|
+
expect(clearIcon).not.toBeNull();
|
|
58
|
+
const label = await page.find('b2b-chip-component >>> .b2b-chip__label');
|
|
59
|
+
expect(label).toHaveClass('b2b-chip__label--bold');
|
|
60
|
+
});
|
|
61
|
+
it('should render the chip component with italic label', async () => {
|
|
62
|
+
const page = await newE2EPage();
|
|
63
|
+
await page.setContent(`<b2b-chip-component label="chip" label-style="italic"></b2b-chip-component>`);
|
|
64
|
+
const chip = await page.find({ text: 'chip' });
|
|
65
|
+
const clearIcon = await page.find('b2b-chip-component >>> button.b2b-chip__clearIcon');
|
|
66
|
+
expect(chip).not.toBeNull();
|
|
67
|
+
expect(clearIcon).not.toBeNull();
|
|
68
|
+
const label = await page.find('b2b-chip-component >>> .b2b-chip__label');
|
|
69
|
+
expect(label).toHaveClass('b2b-chip__label--italic');
|
|
70
|
+
});
|
|
71
|
+
it('should render the chip component with underlined label', async () => {
|
|
72
|
+
const page = await newE2EPage();
|
|
73
|
+
await page.setContent(`<b2b-chip-component label="chip" label-style="underline"></b2b-chip-component>`);
|
|
74
|
+
const chip = await page.find({ text: 'chip' });
|
|
75
|
+
const clearIcon = await page.find('b2b-chip-component >>> button.b2b-chip__clearIcon');
|
|
76
|
+
expect(chip).not.toBeNull();
|
|
77
|
+
expect(clearIcon).not.toBeNull();
|
|
78
|
+
const label = await page.find('b2b-chip-component >>> .b2b-chip__label');
|
|
79
|
+
expect(label).toHaveClass('b2b-chip__label--underline');
|
|
80
|
+
});
|
|
81
|
+
it('should render the chip component with strikethrough label', async () => {
|
|
82
|
+
const page = await newE2EPage();
|
|
83
|
+
await page.setContent(`<b2b-chip-component label="chip" label-style="strikethrough"></b2b-chip-component>`);
|
|
84
|
+
const chip = await page.find({ text: 'chip' });
|
|
85
|
+
const clearIcon = await page.find('b2b-chip-component >>> button.b2b-chip__clearIcon');
|
|
86
|
+
expect(chip).not.toBeNull();
|
|
87
|
+
expect(clearIcon).not.toBeNull();
|
|
88
|
+
const label = await page.find('b2b-chip-component >>> .b2b-chip__label');
|
|
89
|
+
expect(label).toHaveClass('b2b-chip__label--strikethrough');
|
|
90
|
+
});
|
|
11
91
|
it('should emit b2b-close event on clear icon click', async () => {
|
|
12
92
|
const page = await newE2EPage();
|
|
13
93
|
await page.setContent(`<b2b-chip-component label="chip"></b2b-chip-component>`);
|
|
@@ -15,16 +15,20 @@ export class B2bChipComponent {
|
|
|
15
15
|
};
|
|
16
16
|
this.clearIcon = (h("svg", { width: "12", height: "12", viewBox: "0 0 12 12", xmlns: "http://www.w3.org/2000/svg" }, h("path", { d: "M7.85352 3.14648C7.6582 2.95117 7.3418 2.95117 7.14648 3.14648L5.5 4.79297L3.85352 3.14648C3.6582 2.95117 3.3418 2.95117 3.14648 3.14648C2.95117 3.3418 2.95117 3.6582 3.14648 3.85352L4.79297 5.5L3.14648 7.14648C2.95117 7.3418 2.95117 7.6582 3.14648 7.85352C3.24414 7.95117 3.37207 8 3.5 8C3.62793 8 3.75586 7.95117 3.85352 7.85352L5.5 6.20703L7.14648 7.85352C7.24414 7.95117 7.37207 8 7.5 8C7.62793 8 7.75586 7.95117 7.85352 7.85352C8.04883 7.6582 8.04883 7.3418 7.85352 7.14648L6.20703 5.5L7.85352 3.85352C8.04883 3.6582 8.04883 3.3418 7.85352 3.14648ZM5.5 0C2.46729 0 0 2.46729 0 5.5C0 8.53271 2.46729 11 5.5 11C8.53271 11 11 8.53271 11 5.5C11 2.46729 8.53271 0 5.5 0ZM5.5 10C3.01855 10 1 7.98145 1 5.5C1 3.01855 3.01855 1 5.5 1C7.98145 1 10 3.01855 10 5.5C10 7.98145 7.98145 10 5.5 10Z" })));
|
|
17
17
|
this.label = undefined;
|
|
18
|
+
this.type = undefined;
|
|
19
|
+
this.labelStyle = undefined;
|
|
18
20
|
this.disabled = false;
|
|
19
21
|
this.hasCloseButton = true;
|
|
20
22
|
this.value = undefined;
|
|
21
23
|
}
|
|
22
24
|
render() {
|
|
23
|
-
return (h(Host, { key: '
|
|
25
|
+
return (h(Host, { key: '2d25f08431074055d7da97f361739e9dbcb19a01' }, h("div", { key: 'b852bebe68a3d80d7264f7212fe220f7ffd3232f', class: {
|
|
24
26
|
'b2b-chip': true,
|
|
27
|
+
[`b2b-chip--${this.type}`]: !this.disabled && this.type !== undefined,
|
|
25
28
|
'b2b-chip--disabled': this.disabled,
|
|
26
|
-
} }, h("span", { key: '
|
|
29
|
+
} }, h("span", { key: '4f5cc17ec7edfad96f8bf7fb2eb3d88368627ede', class: {
|
|
27
30
|
'b2b-chip__label': true,
|
|
31
|
+
[`b2b-chip__label--${this.labelStyle}`]: this.labelStyle !== undefined,
|
|
28
32
|
'b2b-chip__label--close-button': this.hasCloseButton,
|
|
29
33
|
} }, this.label), this.hasCloseButton && (h("button", { class: {
|
|
30
34
|
'b2b-chip__clearIcon': true,
|
|
@@ -62,6 +66,40 @@ export class B2bChipComponent {
|
|
|
62
66
|
"attribute": "label",
|
|
63
67
|
"reflect": false
|
|
64
68
|
},
|
|
69
|
+
"type": {
|
|
70
|
+
"type": "string",
|
|
71
|
+
"mutable": false,
|
|
72
|
+
"complexType": {
|
|
73
|
+
"original": "'success' | 'info' | 'warn' | 'error'",
|
|
74
|
+
"resolved": "\"error\" | \"info\" | \"success\" | \"warn\"",
|
|
75
|
+
"references": {}
|
|
76
|
+
},
|
|
77
|
+
"required": false,
|
|
78
|
+
"optional": true,
|
|
79
|
+
"docs": {
|
|
80
|
+
"tags": [],
|
|
81
|
+
"text": "The type of chip to represent states like success, info, warn and error. Uses default style if not set."
|
|
82
|
+
},
|
|
83
|
+
"attribute": "type",
|
|
84
|
+
"reflect": false
|
|
85
|
+
},
|
|
86
|
+
"labelStyle": {
|
|
87
|
+
"type": "string",
|
|
88
|
+
"mutable": false,
|
|
89
|
+
"complexType": {
|
|
90
|
+
"original": "'bold' | 'italic' | 'underline' | 'strikethrough'",
|
|
91
|
+
"resolved": "\"bold\" | \"italic\" | \"strikethrough\" | \"underline\"",
|
|
92
|
+
"references": {}
|
|
93
|
+
},
|
|
94
|
+
"required": false,
|
|
95
|
+
"optional": true,
|
|
96
|
+
"docs": {
|
|
97
|
+
"tags": [],
|
|
98
|
+
"text": "The style of the label which decorates the text in bold, italic, underline or strikethrough style. Uses default style if not set."
|
|
99
|
+
},
|
|
100
|
+
"attribute": "label-style",
|
|
101
|
+
"reflect": false
|
|
102
|
+
},
|
|
65
103
|
"disabled": {
|
|
66
104
|
"type": "boolean",
|
|
67
105
|
"mutable": false,
|
|
@@ -1,43 +1,99 @@
|
|
|
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
|
-
|
|
11
|
-
|
|
15
|
+
const meta = {
|
|
16
|
+
title: 'Components/Interaction/Chip',
|
|
17
|
+
component: 'b2b-chip-component',
|
|
18
|
+
args: {
|
|
19
|
+
label: 'Chip Label',
|
|
20
|
+
type: undefined,
|
|
21
|
+
labelStyle: undefined,
|
|
22
|
+
disabled: false,
|
|
23
|
+
value: '',
|
|
24
|
+
hasCloseButton: true,
|
|
25
|
+
},
|
|
26
|
+
argTypes: getArgTypes('b2b-chip-component'),
|
|
27
|
+
render: (_a) => {
|
|
28
|
+
var args = __rest(_a, []);
|
|
29
|
+
return html `<b2b-chip-component
|
|
30
|
+
label="${args.label}"
|
|
31
|
+
type="${args.type}"
|
|
32
|
+
label-style="${args.labelStyle}"
|
|
33
|
+
disabled="${args.disabled}"
|
|
34
|
+
value="${args.value}"
|
|
35
|
+
has-close-button="${args.hasCloseButton}" />`;
|
|
36
|
+
},
|
|
37
|
+
};
|
|
38
|
+
export default meta;
|
|
39
|
+
export const story010Default = {
|
|
40
|
+
name: 'Default',
|
|
41
|
+
args: Object.assign(Object.assign({}, meta.args), { label: 'Default Chip' }),
|
|
42
|
+
};
|
|
43
|
+
export const story020Disabled = {
|
|
44
|
+
name: 'Disabled',
|
|
45
|
+
args: Object.assign(Object.assign({}, meta.args), { label: 'Disabled Chip', disabled: true }),
|
|
46
|
+
};
|
|
47
|
+
export const story030WithoutButton = {
|
|
48
|
+
name: 'Without Button',
|
|
49
|
+
args: Object.assign(Object.assign({}, meta.args), { label: 'Chip without button', hasCloseButton: false }),
|
|
50
|
+
};
|
|
51
|
+
export const story040WithTruncatedText = {
|
|
52
|
+
name: 'Truncated Label',
|
|
53
|
+
args: Object.assign(Object.assign({}, meta.args), { label: 'Chip with truncated label' }),
|
|
54
|
+
render: (_a) => {
|
|
55
|
+
var args = __rest(_a, []);
|
|
56
|
+
return html `<div
|
|
12
57
|
style="width: 170px; border: 1px solid grey; border-radius: 3px; padding: 6px;">
|
|
13
58
|
<b2b-chip-component
|
|
14
|
-
label="${label}"
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
59
|
+
label="${args.label}"
|
|
60
|
+
type="${args.type}"
|
|
61
|
+
label-style="${args.labelStyle}"
|
|
62
|
+
disabled="${args.disabled}"
|
|
63
|
+
value="${args.value}"
|
|
64
|
+
has-close-button="${args.hasCloseButton}" />
|
|
18
65
|
</div>`;
|
|
66
|
+
},
|
|
19
67
|
};
|
|
20
|
-
const
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
export const
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
68
|
+
export const story050SuccessChip = {
|
|
69
|
+
name: 'Success Chip',
|
|
70
|
+
args: Object.assign(Object.assign({}, meta.args), { type: 'success', label: 'Chip with success type' }),
|
|
71
|
+
};
|
|
72
|
+
export const story051InfoChip = {
|
|
73
|
+
name: 'Info Chip',
|
|
74
|
+
args: Object.assign(Object.assign({}, meta.args), { type: 'info', label: 'Chip with info type' }),
|
|
75
|
+
};
|
|
76
|
+
export const story052WarningChip = {
|
|
77
|
+
name: 'Warning Chip',
|
|
78
|
+
args: Object.assign(Object.assign({}, meta.args), { type: 'warn', label: 'Chip with warning type' }),
|
|
79
|
+
};
|
|
80
|
+
export const story053ErrorChip = {
|
|
81
|
+
name: 'Error Chip',
|
|
82
|
+
args: Object.assign(Object.assign({}, meta.args), { type: 'error', label: 'Chip with error type' }),
|
|
83
|
+
};
|
|
84
|
+
export const story060BoldLabel = {
|
|
85
|
+
name: 'Bold Label',
|
|
86
|
+
args: Object.assign(Object.assign({}, meta.args), { labelStyle: 'bold', label: 'Chip with bold style' }),
|
|
87
|
+
};
|
|
88
|
+
export const story061ItalicLabel = {
|
|
89
|
+
name: 'Italic Label',
|
|
90
|
+
args: Object.assign(Object.assign({}, meta.args), { labelStyle: 'italic', label: 'Chip with italic style' }),
|
|
91
|
+
};
|
|
92
|
+
export const story062UnderlinedLabel = {
|
|
93
|
+
name: 'Underlined Label',
|
|
94
|
+
args: Object.assign(Object.assign({}, meta.args), { labelStyle: 'underline', label: 'Chip with underline style' }),
|
|
95
|
+
};
|
|
96
|
+
export const story063StrikethroughLabel = {
|
|
97
|
+
name: 'Strikethrough Label',
|
|
98
|
+
args: Object.assign(Object.assign({}, meta.args), { labelStyle: 'strikethrough', label: 'Chip with strikethrough style' }),
|
|
43
99
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Do not edit directly
|
|
3
|
-
* Generated on
|
|
3
|
+
* Generated on Tue, 18 Jun 2024 10:17:41 GMT
|
|
4
4
|
*/
|
|
5
5
|
:root, :host {
|
|
6
6
|
--b2b-size-200: 5rem; /* 80px */
|
|
@@ -123,7 +123,7 @@
|
|
|
123
123
|
}
|
|
124
124
|
/**
|
|
125
125
|
* Do not edit directly
|
|
126
|
-
* Generated on
|
|
126
|
+
* Generated on Tue, 18 Jun 2024 10:17:42 GMT
|
|
127
127
|
*/
|
|
128
128
|
:root [data-theme="dark"] {
|
|
129
129
|
--b2b-size-200: 5rem; /* 80px */
|
|
@@ -43,11 +43,11 @@ export class DropdownComponent {
|
|
|
43
43
|
selectElement.append(...options);
|
|
44
44
|
}
|
|
45
45
|
render() {
|
|
46
|
-
return (h(Host, { key: '
|
|
46
|
+
return (h(Host, { key: 'cb7a0a4bcc708257cada82f8ce45041b63d6baf1', class: {
|
|
47
47
|
'b2b-dropdown': true,
|
|
48
48
|
'b2b-dropdown--error': this.invalid && !this.disabled,
|
|
49
49
|
'b2b-dropdown--disabled': this.disabled,
|
|
50
|
-
} }, this.label && (h("b2b-input-label", { id: this.name, required: this.required }, this.label)), h("select", { key: '
|
|
50
|
+
} }, this.label && (h("b2b-input-label", { id: this.name, required: this.required }, this.label)), h("select", { key: '7b613f352cc3c501dd3ef917bfc25efc3006f69b', class: "b2b-dropdown__select", "aria-labelledby": this.name, name: this.name, disabled: this.disabled, onChange: this.onSelect, onFocus: this.onFocus, onBlur: this.onBlur }), (this.hint !== undefined && !this.invalid) ||
|
|
51
51
|
(this.hint !== undefined && this.disabled) ? (h("span", null, this.hint)) : (''), this.error !== undefined && this.invalid && !this.disabled ? (h("span", null, this.error)) : ('')));
|
|
52
52
|
}
|
|
53
53
|
static get is() { return "b2b-dropdown"; }
|
|
@@ -16,7 +16,7 @@ export class FlyoutMenuOptionComponent {
|
|
|
16
16
|
}
|
|
17
17
|
}
|
|
18
18
|
render() {
|
|
19
|
-
return (h(Host, { key: '
|
|
19
|
+
return (h(Host, { key: '9332072c4536e9dfbb55e451c0886179afb20c45', class: {
|
|
20
20
|
'b2b-flyout-menu__option': true,
|
|
21
21
|
'b2b-flyout-menu__option--disabled': this.disabled,
|
|
22
22
|
'b2b-flyout-menu__option--separator': this.separator,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Do not edit directly
|
|
3
|
-
* Generated on
|
|
3
|
+
* Generated on Tue, 18 Jun 2024 10:17:41 GMT
|
|
4
4
|
*/
|
|
5
5
|
:root, :host {
|
|
6
6
|
--b2b-size-200: 5rem; /* 80px */
|
|
@@ -123,7 +123,7 @@
|
|
|
123
123
|
}
|
|
124
124
|
/**
|
|
125
125
|
* Do not edit directly
|
|
126
|
-
* Generated on
|
|
126
|
+
* Generated on Tue, 18 Jun 2024 10:17:42 GMT
|
|
127
127
|
*/
|
|
128
128
|
:root [data-theme="dark"] {
|
|
129
129
|
--b2b-size-200: 5rem; /* 80px */
|
|
@@ -132,12 +132,12 @@ export class FlyoutMenuComponent {
|
|
|
132
132
|
options[index].focus();
|
|
133
133
|
}
|
|
134
134
|
render() {
|
|
135
|
-
return (h(Host, { key: '
|
|
135
|
+
return (h(Host, { key: '5f8927a6f6ace022337a745aa0c5c7de8c3b9ca1' }, h("div", { key: '339e2e53ef4b050b36e20f73a49a76eeb754d2a3', class: {
|
|
136
136
|
'b2b-flyout-menu': true,
|
|
137
|
-
} }, h("div", { key: '
|
|
137
|
+
} }, h("div", { key: '36815dbbd15e98a617b308491c8ad39e9fd81d0d', class: "b2b-flyout-menu__trigger" }, h("slot", { key: '68103d9c6c4d5ec094d2e15469177bbe6c11250f', name: "trigger" })), h("div", { key: '58777a87a708ebfa65dff39622cf4715b0a9bdd5', onFocusout: this.blurMenu, class: {
|
|
138
138
|
'b2b-flyout-menu__options__container': true,
|
|
139
139
|
'b2b-flyout-menu__options__container--on': this.opened,
|
|
140
|
-
} }, h("div", { key: '
|
|
140
|
+
} }, h("div", { key: '9b56d64c648a044faab165546c5aec1ea58d5d15', class: "b2b-flyout-menu__arrow" }), h("slot", { key: '15d2d1809c563ae2b89b76c3080dbf619e35cefd', name: "option" })))));
|
|
141
141
|
}
|
|
142
142
|
static get is() { return "b2b-flyout-menu"; }
|
|
143
143
|
static get encapsulation() { return "shadow"; }
|