@otto-de/b2b-core-components 1.4.0 → 1.6.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.css +1 -1
- package/dist/b2b-core-components/b2b-core-components.esm.js +1 -1
- package/dist/b2b-core-components/p-01fd54a1.entry.js +1 -0
- package/dist/b2b-core-components/p-04fc18cd.entry.js +1 -0
- package/dist/b2b-core-components/p-06aa96a8.entry.js +1 -0
- package/dist/b2b-core-components/p-077217b3.entry.js +1 -0
- package/dist/b2b-core-components/p-0965b990.entry.js +1 -0
- package/dist/b2b-core-components/p-0beabdb4.entry.js +1 -0
- package/dist/b2b-core-components/p-163466cf.entry.js +1 -0
- package/dist/b2b-core-components/{p-c2bcf0a8.entry.js → p-197c1a6d.entry.js} +1 -1
- package/dist/b2b-core-components/p-1d007eea.entry.js +1 -0
- package/dist/b2b-core-components/{p-400b3111.entry.js → p-1e2752b2.entry.js} +1 -1
- package/dist/b2b-core-components/p-2328144b.entry.js +1 -0
- package/dist/b2b-core-components/{p-9184036b.entry.js → p-2ad8bdb6.entry.js} +1 -1
- package/dist/b2b-core-components/p-2d01e68a.entry.js +1 -0
- package/dist/b2b-core-components/{p-34f6555e.entry.js → p-3c0671ef.entry.js} +1 -1
- package/dist/b2b-core-components/p-42e7f397.entry.js +1 -0
- package/dist/b2b-core-components/p-44ccd8f4.entry.js +1 -0
- package/dist/b2b-core-components/p-542a358a.entry.js +1 -0
- package/dist/b2b-core-components/p-54fd68eb.entry.js +1 -0
- package/dist/b2b-core-components/p-60badad5.entry.js +1 -0
- package/dist/b2b-core-components/p-6140304e.entry.js +1 -0
- package/dist/b2b-core-components/{p-f0aa5e83.entry.js → p-681d6880.entry.js} +1 -1
- package/dist/b2b-core-components/p-8ad1bb92.entry.js +1 -0
- package/dist/b2b-core-components/p-90a3ffed.entry.js +1 -0
- package/dist/b2b-core-components/p-97ef9805.entry.js +1 -0
- package/dist/b2b-core-components/{p-48d4d224.entry.js → p-a50ea33f.entry.js} +1 -1
- package/dist/b2b-core-components/p-b3ccfc58.entry.js +1 -0
- package/dist/b2b-core-components/p-b6a8a06f.entry.js +1 -0
- package/dist/b2b-core-components/p-b8049234.entry.js +1 -0
- package/dist/b2b-core-components/p-bb5e7c53.js +1 -0
- package/dist/b2b-core-components/p-c294dd0c.entry.js +1 -0
- package/dist/b2b-core-components/p-d07210e2.entry.js +1 -0
- package/dist/b2b-core-components/p-d7bb8aa1.entry.js +1 -0
- package/dist/b2b-core-components/p-d83c2084.entry.js +1 -0
- package/dist/b2b-core-components/p-db7d2ec3.entry.js +1 -0
- package/dist/b2b-core-components/{p-9facba86.entry.js → p-dd79ab5b.entry.js} +1 -1
- package/dist/b2b-core-components/p-e5b78075.entry.js +1 -0
- package/dist/b2b-core-components/p-e811411a.entry.js +1 -0
- package/dist/b2b-core-components/p-f190bf79.entry.js +1 -0
- package/dist/b2b-core-components/p-f24515bf.entry.js +1 -0
- package/dist/b2b-core-components/p-f3ce95bf.js +2 -0
- package/dist/b2b-core-components/p-f7e9f889.entry.js +1 -0
- package/dist/cjs/b2b-alert.cjs.entry.js +4 -4
- package/dist/cjs/b2b-anchor.cjs.entry.js +2 -2
- package/dist/cjs/b2b-button_2.cjs.entry.js +13 -9
- package/dist/cjs/b2b-card.cjs.entry.js +2 -2
- package/dist/cjs/b2b-checkbox-group.cjs.entry.js +7 -5
- package/dist/cjs/b2b-checkbox_3.cjs.entry.js +206 -0
- package/dist/cjs/b2b-core-components.cjs.js +3 -3
- package/dist/cjs/b2b-dropdown.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-headline.cjs.entry.js +2 -2
- package/dist/cjs/b2b-icon.cjs.entry.js +4 -4
- package/dist/cjs/b2b-input-group_2.cjs.entry.js +12 -9
- package/dist/cjs/b2b-input-label.cjs.entry.js +1 -1
- package/dist/cjs/b2b-input_2.cjs.entry.js +8 -7
- package/dist/cjs/b2b-label.cjs.entry.js +2 -2
- package/dist/cjs/b2b-modal.cjs.entry.js +5 -5
- package/dist/cjs/b2b-pagination.cjs.entry.js +5 -5
- package/dist/cjs/b2b-paragraph.cjs.entry.js +5 -5
- 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 +3 -3
- package/dist/cjs/b2b-rounded-icon.cjs.entry.js +4 -2
- package/dist/cjs/b2b-scrollable-container.cjs.entry.js +2 -2
- package/dist/cjs/b2b-search.cjs.entry.js +6 -1
- package/dist/cjs/b2b-separator.cjs.entry.js +2 -2
- package/dist/cjs/b2b-tab-group.cjs.entry.js +1 -1
- package/dist/cjs/b2b-tab-panel.cjs.entry.js +2 -2
- package/dist/cjs/b2b-tab.cjs.entry.js +2 -2
- package/dist/cjs/b2b-table-row.cjs.entry.js +78 -23
- package/dist/cjs/b2b-table-rowgroup.cjs.entry.js +87 -26
- package/dist/cjs/b2b-table.cjs.entry.js +13 -13
- package/dist/cjs/b2b-textarea.cjs.entry.js +2 -2
- package/dist/cjs/b2b-toggle-button.cjs.entry.js +7 -7
- package/dist/cjs/b2b-toggle-group.cjs.entry.js +3 -3
- package/dist/cjs/b2b-tooltip.cjs.entry.js +4 -4
- package/dist/cjs/b2b-wizard-icon.cjs.entry.js +6 -4
- package/dist/cjs/b2b-wizard-step.cjs.entry.js +26 -0
- package/dist/cjs/b2b-wizard.cjs.entry.js +61 -0
- package/dist/cjs/{index-496aa5dd.js → index-04e07a00.js} +100 -35
- package/dist/cjs/loader.cjs.js +3 -3
- package/dist/cjs/{types-ef85a0bf.js → table.types-00c8228a.js} +4 -4
- package/dist/cjs/wizard.types-690c64bb.js +10 -0
- package/dist/collection/collection-manifest.json +4 -2
- package/dist/collection/components/alert/alert.css +8 -9
- package/dist/collection/components/alert/alert.e2e.js +67 -0
- package/dist/collection/components/alert/alert.js +2 -2
- package/dist/collection/components/anchor/anchor.css +3 -4
- package/dist/collection/components/anchor/anchor.spec.js +68 -0
- package/dist/collection/components/button/button.css +36 -41
- package/dist/collection/components/button/button.e2e.js +80 -0
- package/dist/collection/components/button/button.js +31 -6
- package/dist/collection/components/card/card.css +3 -4
- package/dist/collection/components/card/card.e2e.js +110 -0
- package/dist/collection/components/card/card.spec.js +32 -0
- package/dist/collection/components/checkbox/checkbox.css +36 -16
- package/dist/collection/components/checkbox/checkbox.e2e.js +30 -0
- package/dist/collection/components/checkbox/checkbox.js +81 -6
- package/dist/collection/components/checkbox/checkbox.spec.js +45 -0
- package/dist/collection/components/checkbox-group/checkbox-group.css +7 -8
- package/dist/collection/components/checkbox-group/checkbox-group.e2e.js +78 -0
- package/dist/collection/components/checkbox-group/checkbox-group.js +5 -3
- package/dist/collection/components/checkbox-group/checkbox-group.spec.js +38 -0
- package/dist/collection/components/dropdown/dropdown.css +9 -10
- package/dist/collection/components/dropdown/dropdown.e2e.js +48 -0
- package/dist/collection/components/dropdown/dropdown.js +1 -1
- package/dist/collection/components/dropdown/dropdown.spec.js +52 -0
- package/dist/collection/components/grid/grid.e2e.js +17 -0
- package/dist/collection/components/grid/row.js +1 -1
- package/dist/collection/components/headline/headline.css +3 -4
- package/dist/collection/components/headline/headline.e2e.js +13 -0
- package/dist/collection/components/headline/headline.spec.js +67 -0
- package/dist/collection/components/icon/icon.css +10 -11
- package/dist/collection/components/icon/icon.js +2 -2
- package/dist/collection/components/icon/icon.spec.js +21 -0
- package/dist/collection/components/input/input.css +16 -17
- package/dist/collection/components/input/input.e2e.js +43 -0
- package/dist/collection/components/input/input.js +26 -4
- package/dist/collection/components/input/input.spec.js +45 -0
- package/dist/collection/components/input-group/input-group.css +6 -7
- package/dist/collection/components/input-group/input-group.e2e.js +76 -0
- package/dist/collection/components/input-group/input-group.js +6 -4
- package/dist/collection/components/input-group/input-group.spec.js +56 -0
- package/dist/collection/components/input-label/input-label.e2e.js +10 -0
- package/dist/collection/components/input-list/input-list.css +8 -9
- package/dist/collection/components/input-list/input-list.e2e.js +227 -0
- package/dist/collection/components/input-list/input-list.js +24 -2
- package/dist/collection/components/label/label.css +4 -5
- package/dist/collection/components/label/label.e2e.js +17 -0
- package/dist/collection/components/label/label.spec.js +58 -0
- package/dist/collection/components/modal/modal.css +14 -20
- package/dist/collection/components/modal/modal.e2e.js +115 -0
- package/dist/collection/components/modal/modal.js +3 -3
- package/dist/collection/components/pagination/pagination.css +8 -9
- package/dist/collection/components/pagination/pagination.e2e.js +256 -0
- package/dist/collection/components/pagination/pagination.js +3 -3
- package/dist/collection/components/pagination/pagination.spec.js +104 -0
- package/dist/collection/components/paragraph/paragraph.css +11 -12
- package/dist/collection/components/paragraph/paragraph.e2e.js +13 -0
- package/dist/collection/components/paragraph/paragraph.js +3 -3
- package/dist/collection/components/radio/radio.css +4 -5
- package/dist/collection/components/radio/radio.e2e.js +36 -0
- package/dist/collection/components/radio/radio.spec.js +38 -0
- package/dist/collection/components/radio-group/radio-group.css +4 -5
- package/dist/collection/components/radio-group/radio-group.e2e.js +71 -0
- package/dist/collection/components/radio-group/radio-group.spec.js +31 -0
- package/dist/collection/components/required-separator/required-separator.css +5 -6
- package/dist/collection/components/required-separator/required-separator.e2e.js +17 -0
- package/dist/collection/components/required-separator/required-separator.js +1 -1
- package/dist/collection/components/rounded-icon/rounded-icon.css +4 -5
- package/dist/collection/components/rounded-icon/rounded-icon.js +19 -0
- package/dist/collection/components/scrollable-container/scrollable-container.css +3 -4
- package/dist/collection/components/search/search.e2e.js +97 -0
- package/dist/collection/components/search/search.js +14 -0
- package/dist/collection/components/separator/separator.css +3 -4
- package/dist/collection/components/separator/separator.e2e.js +22 -0
- package/dist/collection/components/spinner/spinner.css +3 -4
- package/dist/collection/components/spinner/spinner.e2e.js +12 -0
- package/dist/collection/components/spinner/spinner.spec.js +41 -0
- package/dist/collection/components/tab/tab.css +3 -4
- package/dist/collection/components/tab/tab.e2e.js +35 -0
- package/dist/collection/components/tab/tab.spec.js +31 -0
- package/dist/collection/components/tab-group/tab-group.e2e.js +98 -0
- package/dist/collection/components/tab-panel/tab-panel.css +3 -4
- package/dist/collection/components/tab-panel/tab-panel.e2e.js +12 -0
- package/dist/collection/components/tab-panel/tab-panel.spec.js +10 -0
- package/dist/collection/components/table/stories.data.js +6 -6
- package/dist/collection/components/table/table-cell/table-cell.css +3 -4
- package/dist/collection/components/table/table-cell/table-cell.js +4 -4
- package/dist/collection/components/table/table-header/table-header.css +18 -19
- package/dist/collection/components/table/table-header/table-header.js +7 -7
- package/dist/collection/components/table/table-row/table-row.css +4 -5
- package/dist/collection/components/table/table-row/table-row.js +187 -28
- package/dist/collection/components/table/table-rowgroup/table-rowgroup.css +4 -5
- package/dist/collection/components/table/table-rowgroup/table-rowgroup.js +119 -24
- package/dist/collection/components/table/table.css +3 -4
- package/dist/collection/components/table/table.e2e.js +370 -0
- package/dist/collection/components/table/table.js +10 -10
- package/dist/collection/components/table/table.stories.js +17 -8
- package/dist/collection/components/table/utils.js +18 -0
- package/dist/collection/components/textarea/textarea.css +4 -5
- package/dist/collection/components/textarea/textarea.e2e.js +91 -0
- package/dist/collection/components/toggle-button/toggle-button.css +10 -11
- package/dist/collection/components/toggle-button/toggle-button.e2e.js +44 -0
- package/dist/collection/components/toggle-button/toggle-button.js +5 -5
- package/dist/collection/components/toggle-group/toggle-group.css +4 -5
- package/dist/collection/components/toggle-group/toggle-group.e2e.js +65 -0
- package/dist/collection/components/toggle-group/toggle-group.js +1 -1
- package/dist/collection/components/tooltip/tooltip.css +16 -17
- package/dist/collection/components/tooltip/tooltip.e2e.js +64 -0
- package/dist/collection/components/tooltip/tooltip.js +2 -2
- package/dist/collection/components/wizard/wizard-step.js +95 -0
- package/dist/collection/components/wizard/wizard.css +240 -0
- package/dist/collection/components/wizard/wizard.e2e.js +149 -0
- package/dist/collection/components/wizard/wizard.js +125 -0
- package/dist/collection/components/wizard/wizard.stories.js +44 -0
- package/dist/collection/components/wizard-icon/wizard-icon.css +3 -4
- package/dist/collection/components/wizard-icon/wizard-icon.js +38 -8
- package/dist/collection/components/wizard-icon/wizard-icon.stories.js +14 -3
- package/dist/collection/docs/config/replace-prop-controls.spec.js +32 -0
- package/dist/collection/{components/table/types.js → utils/types/table.types.js} +7 -3
- package/dist/collection/utils/types/wizard.types.js +6 -0
- package/dist/collection/utils/utils.spec.js +15 -0
- package/dist/components/b2b-alert.js +4 -4
- package/dist/components/b2b-anchor.js +2 -2
- package/dist/components/b2b-card.js +2 -2
- package/dist/components/b2b-checkbox-group.js +7 -5
- package/dist/components/b2b-checkbox.js +1 -99
- package/dist/components/b2b-dropdown.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-label.js +2 -2
- package/dist/components/b2b-modal.js +5 -5
- package/dist/components/b2b-pagination.js +5 -5
- package/dist/components/b2b-paragraph.js +5 -5
- 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 +3 -3
- package/dist/components/b2b-scrollable-container.js +2 -2
- package/dist/components/b2b-search.js +7 -2
- package/dist/components/b2b-tab-group.js +1 -1
- package/dist/components/b2b-tab-panel.js +2 -2
- package/dist/components/b2b-tab.js +2 -2
- package/dist/components/b2b-table-row.js +97 -26
- package/dist/components/b2b-table-rowgroup.js +91 -27
- package/dist/components/b2b-table.js +11 -11
- package/dist/components/b2b-textarea.js +2 -2
- package/dist/components/b2b-toggle-button.js +7 -7
- package/dist/components/b2b-toggle-group.js +3 -3
- package/dist/components/b2b-tooltip.js +4 -4
- package/dist/components/b2b-wizard-icon.js +1 -47
- package/dist/components/b2b-wizard-step.d.ts +11 -0
- package/dist/components/b2b-wizard-step.js +62 -0
- package/dist/components/b2b-wizard.d.ts +11 -0
- package/dist/components/b2b-wizard.js +79 -0
- package/dist/components/button.js +13 -8
- package/dist/components/checkbox.js +123 -0
- package/dist/components/headline.js +2 -2
- package/dist/components/icon.js +4 -4
- package/dist/components/input-group.js +8 -6
- package/dist/components/input-label.js +1 -1
- package/dist/components/input-list-option.js +2 -2
- package/dist/components/input-list.js +6 -4
- package/dist/components/input.js +8 -6
- package/dist/components/rounded-icon.js +5 -2
- package/dist/components/separator.js +2 -2
- package/dist/components/spinner.js +2 -2
- package/dist/components/table-cell.js +3 -3
- package/dist/components/table-header.js +7 -7
- package/dist/components/{types.js → table.types.js} +4 -4
- package/dist/components/wizard-icon.js +52 -0
- package/dist/components/wizard.types.js +8 -0
- package/dist/custom-elements.json +132 -13
- package/dist/esm/b2b-alert.entry.js +4 -4
- package/dist/esm/b2b-anchor.entry.js +2 -2
- package/dist/esm/b2b-button_2.entry.js +13 -9
- package/dist/esm/b2b-card.entry.js +2 -2
- package/dist/esm/b2b-checkbox-group.entry.js +7 -5
- package/dist/esm/b2b-checkbox_3.entry.js +200 -0
- package/dist/esm/b2b-core-components.js +4 -4
- package/dist/esm/b2b-dropdown.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-headline.entry.js +2 -2
- package/dist/esm/b2b-icon.entry.js +4 -4
- package/dist/esm/b2b-input-group_2.entry.js +12 -9
- package/dist/esm/b2b-input-label.entry.js +1 -1
- package/dist/esm/b2b-input_2.entry.js +8 -7
- package/dist/esm/b2b-label.entry.js +2 -2
- package/dist/esm/b2b-modal.entry.js +5 -5
- package/dist/esm/b2b-pagination.entry.js +5 -5
- package/dist/esm/b2b-paragraph.entry.js +5 -5
- 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 +3 -3
- package/dist/esm/b2b-rounded-icon.entry.js +4 -2
- package/dist/esm/b2b-scrollable-container.entry.js +2 -2
- package/dist/esm/b2b-search.entry.js +6 -1
- package/dist/esm/b2b-separator.entry.js +2 -2
- package/dist/esm/b2b-tab-group.entry.js +1 -1
- package/dist/esm/b2b-tab-panel.entry.js +2 -2
- package/dist/esm/b2b-tab.entry.js +2 -2
- package/dist/esm/b2b-table-row.entry.js +77 -22
- package/dist/esm/b2b-table-rowgroup.entry.js +85 -24
- package/dist/esm/b2b-table.entry.js +11 -11
- package/dist/esm/b2b-textarea.entry.js +2 -2
- package/dist/esm/b2b-toggle-button.entry.js +7 -7
- package/dist/esm/b2b-toggle-group.entry.js +3 -3
- package/dist/esm/b2b-tooltip.entry.js +4 -4
- package/dist/esm/b2b-wizard-icon.entry.js +6 -4
- package/dist/esm/b2b-wizard-step.entry.js +22 -0
- package/dist/esm/b2b-wizard.entry.js +57 -0
- package/dist/esm/{index-026605c2.js → index-dfdbf4b9.js} +100 -35
- package/dist/esm/loader.js +4 -4
- package/dist/esm/{types-5aa59787.js → table.types-dd829d83.js} +4 -4
- package/dist/esm/wizard.types-2a03b8e0.js +8 -0
- package/dist/types/components/alert/alert.stories.d.ts +1 -1
- package/dist/types/components/anchor/anchor.stories.d.ts +1 -1
- package/dist/types/components/button/button.d.ts +2 -0
- package/dist/types/components/button/button.stories.d.ts +1 -1
- package/dist/types/components/card/card.stories.d.ts +1 -1
- package/dist/types/components/checkbox/checkbox.d.ts +8 -1
- package/dist/types/components/checkbox/checkbox.stories.d.ts +1 -1
- package/dist/types/components/checkbox-group/checkbox-group.stories.d.ts +1 -1
- package/dist/types/components/dropdown/dropdown.stories.d.ts +1 -1
- package/dist/types/components/grid/grid.stories.d.ts +1 -1
- package/dist/types/components/headline/headline.stories.d.ts +1 -1
- package/dist/types/components/icon/icon.stories.d.ts +1 -1
- package/dist/types/components/input/input.d.ts +2 -0
- package/dist/types/components/input/input.stories.d.ts +1 -1
- package/dist/types/components/input-group/input-group.stories.d.ts +1 -1
- package/dist/types/components/input-list/input-list.d.ts +2 -0
- package/dist/types/components/input-list/input-list.stories.d.ts +1 -1
- package/dist/types/components/label/label.stories.d.ts +1 -1
- package/dist/types/components/modal/modal.stories.d.ts +1 -1
- package/dist/types/components/pagination/pagination.stories.d.ts +1 -1
- package/dist/types/components/paragraph/paragraph.stories.d.ts +1 -1
- package/dist/types/components/radio/radio.stories.d.ts +1 -1
- package/dist/types/components/radio-group/radio-group.stories.d.ts +1 -1
- package/dist/types/components/required-separator/required-separator.stories.d.ts +1 -1
- package/dist/types/components/rounded-icon/rounded-icon.d.ts +4 -0
- package/dist/types/components/rounded-icon/rounded-icon.stories.d.ts +1 -1
- package/dist/types/components/scrollable-container/scrollable-container.stories.d.ts +1 -1
- package/dist/types/components/search/search.d.ts +1 -0
- package/dist/types/components/search/search.stories.d.ts +1 -1
- package/dist/types/components/separator/separator.stories.d.ts +1 -1
- package/dist/types/components/spinner/spinner.stories.d.ts +1 -1
- package/dist/types/components/tab-group/tab-group.stories.d.ts +1 -1
- package/dist/types/components/table/table-cell/table-cell.d.ts +1 -1
- package/dist/types/components/table/table-header/table-header.d.ts +1 -1
- package/dist/types/components/table/table-row/table-row.d.ts +23 -7
- package/dist/types/components/table/table-rowgroup/table-rowgroup.d.ts +13 -3
- package/dist/types/components/table/table.d.ts +2 -2
- package/dist/types/components/table/table.stories.d.ts +2 -1
- package/dist/types/components/table/utils.d.ts +4 -0
- package/dist/types/components/textarea/textarea.stories.d.ts +1 -1
- package/dist/types/components/toggle-group/toggle-group.stories.d.ts +1 -1
- package/dist/types/components/tooltip/tooltip.stories.d.ts +1 -1
- package/dist/types/components/wizard/wizard-step.d.ts +11 -0
- package/dist/types/components/wizard/wizard.d.ts +19 -0
- package/dist/types/components/wizard/wizard.stories.d.ts +5 -0
- package/dist/types/components/wizard-icon/wizard-icon.d.ts +6 -2
- package/dist/types/components/wizard-icon/wizard-icon.stories.d.ts +3 -1
- package/dist/types/components.d.ts +167 -13
- package/dist/types/docs/tokens/color.stories.d.ts +1 -1
- package/dist/types/docs/tokens/font.stories.d.ts +1 -1
- package/dist/types/docs/tokens/size.stories.d.ts +1 -1
- package/dist/types/stencil-public-runtime.d.ts +3 -0
- package/dist/types/utils/interfaces/content.interface.d.ts +4 -0
- package/dist/types/utils/interfaces/form.interface.d.ts +1 -0
- package/dist/types/{components/table/types.d.ts → utils/types/table.types.d.ts} +7 -2
- package/dist/types/utils/types/wizard.types.d.ts +8 -0
- package/dist/web-types.json +184 -9
- package/loader/index.d.ts +1 -1
- package/package.json +5 -5
- package/dist/b2b-core-components/p-08a50b6c.entry.js +0 -1
- package/dist/b2b-core-components/p-10414c0b.entry.js +0 -1
- package/dist/b2b-core-components/p-144a3c59.entry.js +0 -1
- package/dist/b2b-core-components/p-1493f7df.entry.js +0 -1
- package/dist/b2b-core-components/p-14f1b674.entry.js +0 -1
- package/dist/b2b-core-components/p-15a499b0.entry.js +0 -1
- package/dist/b2b-core-components/p-22dab2b4.entry.js +0 -1
- package/dist/b2b-core-components/p-4b25559c.entry.js +0 -1
- package/dist/b2b-core-components/p-515eb49e.entry.js +0 -1
- package/dist/b2b-core-components/p-541ffefb.entry.js +0 -1
- package/dist/b2b-core-components/p-5572aab3.entry.js +0 -1
- package/dist/b2b-core-components/p-5c316460.entry.js +0 -1
- package/dist/b2b-core-components/p-686d6598.entry.js +0 -1
- package/dist/b2b-core-components/p-6e0e6acc.entry.js +0 -1
- package/dist/b2b-core-components/p-6e3b27cd.entry.js +0 -1
- package/dist/b2b-core-components/p-7af1b977.entry.js +0 -1
- package/dist/b2b-core-components/p-7ca9b704.entry.js +0 -1
- package/dist/b2b-core-components/p-81a52d1a.entry.js +0 -1
- package/dist/b2b-core-components/p-8970ae74.entry.js +0 -1
- package/dist/b2b-core-components/p-925e40af.entry.js +0 -1
- package/dist/b2b-core-components/p-965ae161.entry.js +0 -1
- package/dist/b2b-core-components/p-99f8cf34.entry.js +0 -1
- package/dist/b2b-core-components/p-a6248754.entry.js +0 -1
- package/dist/b2b-core-components/p-a7417890.js +0 -2
- package/dist/b2b-core-components/p-b6e0a6ea.entry.js +0 -1
- package/dist/b2b-core-components/p-ba74cde5.entry.js +0 -1
- package/dist/b2b-core-components/p-bf4c58dc.entry.js +0 -1
- package/dist/b2b-core-components/p-d6ce3259.entry.js +0 -1
- package/dist/b2b-core-components/p-da6a1f55.entry.js +0 -1
- package/dist/b2b-core-components/p-f0c565ef.entry.js +0 -1
- package/dist/b2b-core-components/p-fc639b29.entry.js +0 -1
- package/dist/b2b-core-components/p-ff49e330.entry.js +0 -1
- package/dist/cjs/b2b-checkbox.cjs.entry.js +0 -74
- package/dist/cjs/b2b-table-cell_2.cjs.entry.js +0 -119
- package/dist/esm/b2b-checkbox.entry.js +0 -70
- package/dist/esm/b2b-table-cell_2.entry.js +0 -114
- /package/dist/b2b-core-components/{p-4130f1ae.js → p-34eb99cb.js} +0 -0
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import { r as registerInstance, h, H as Host, g as getElement } from './index-dfdbf4b9.js';
|
|
2
|
+
import { W as WizardStatus } from './wizard.types-2a03b8e0.js';
|
|
3
|
+
|
|
4
|
+
const wizardCss = ":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:400;--b2b-font-weight-thin:100;--b2b-font-family-default:OttoSans, Arial, Helvetica, sans-serif;--b2b-color-table-expand-hover:#e6f4ff;--b2b-color-table-selected-hover:#e6f4ff;--b2b-color-table-selected-default:#cce9ff;--b2b-color-table-hover:#e6f4ff;--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-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-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-45);--b2b-size-headline-line-height-100:var(--b2b-size-40);--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:400;--b2b-font-weight-thin:100;--b2b-font-family-default:OttoSans, Arial, Helvetica, sans-serif;--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-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 .b2b_wizard{display:flex;flex-wrap:wrap}.b2b_wizard__step{display:flex;align-items:center;gap:var(--b2b-size-space-50);padding:var(--b2b-size-space-50) 0}.b2b_wizard__step__label--default{color:var(--b2b-color-icon-secondary)}::slotted(b2b-wizard-step:not(:last-of-type)){display:flex;align-items:center}::slotted(b2b-wizard-step:not(:last-of-type))::after{content:\" \";flex-grow:1;height:1px;min-width:var(--b2b-size-space-175);margin:0 var(--b2b-size-space-75) 0 var(--b2b-size-space-75);background:var(--b2b-color-icon-default)}";
|
|
5
|
+
|
|
6
|
+
const WizardComponent = class {
|
|
7
|
+
constructor(hostRef) {
|
|
8
|
+
registerInstance(this, hostRef);
|
|
9
|
+
this.MAX_STEP_AMOUNT = 6;
|
|
10
|
+
this.getChildSteps = () => {
|
|
11
|
+
return Array.from(this.host.querySelectorAll('b2b-wizard-step'));
|
|
12
|
+
};
|
|
13
|
+
this.setStepsState = () => {
|
|
14
|
+
const steps = this.getChildSteps();
|
|
15
|
+
steps.map((step, index) => {
|
|
16
|
+
step.state = this.getStepState(index + 1);
|
|
17
|
+
step.step = (index + 1).toString();
|
|
18
|
+
step.checkIcon = this.checkIcon;
|
|
19
|
+
});
|
|
20
|
+
};
|
|
21
|
+
this.getStepState = (step) => {
|
|
22
|
+
const currentStep = Number(this.activeStep);
|
|
23
|
+
if (currentStep == step) {
|
|
24
|
+
return WizardStatus.PENDING;
|
|
25
|
+
}
|
|
26
|
+
else if (step < currentStep || currentStep === 0) {
|
|
27
|
+
return WizardStatus.COMPLETED;
|
|
28
|
+
}
|
|
29
|
+
else {
|
|
30
|
+
return WizardStatus.DEFAULT;
|
|
31
|
+
}
|
|
32
|
+
};
|
|
33
|
+
this.activeStep = '1';
|
|
34
|
+
this.custom = false;
|
|
35
|
+
this.checkIcon = true;
|
|
36
|
+
}
|
|
37
|
+
componentWillLoad() {
|
|
38
|
+
const steps = this.getChildSteps();
|
|
39
|
+
if (Number(this.activeStep) > steps.length) {
|
|
40
|
+
console.error('B2B WIZARD: Active step is higher than total steps.');
|
|
41
|
+
}
|
|
42
|
+
if (steps.length > this.MAX_STEP_AMOUNT) {
|
|
43
|
+
console.warn(`B2B WIZARD: Please don't use more than ${this.MAX_STEP_AMOUNT} steps. If more needed get in touch with the B2B design team`);
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
componentWillRender() {
|
|
47
|
+
if (!this.custom)
|
|
48
|
+
this.setStepsState();
|
|
49
|
+
}
|
|
50
|
+
render() {
|
|
51
|
+
return (h(Host, null, h("div", { class: "b2b_wizard" }, h("slot", null))));
|
|
52
|
+
}
|
|
53
|
+
get host() { return getElement(this); }
|
|
54
|
+
};
|
|
55
|
+
WizardComponent.style = wizardCss;
|
|
56
|
+
|
|
57
|
+
export { WizardComponent as b2b_wizard };
|
|
@@ -771,16 +771,17 @@ const addVnodes = (parentElm, before, parentVNode, vnodes, startIdx, endIdx) =>
|
|
|
771
771
|
* @param vnodes a list of virtual DOM nodes to remove
|
|
772
772
|
* @param startIdx the index at which to start removing nodes (inclusive)
|
|
773
773
|
* @param endIdx the index at which to stop removing nodes (inclusive)
|
|
774
|
-
* @param vnode a VNode
|
|
775
|
-
* @param elm an element
|
|
776
774
|
*/
|
|
777
|
-
const removeVnodes = (vnodes, startIdx, endIdx
|
|
778
|
-
for (
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
elm
|
|
775
|
+
const removeVnodes = (vnodes, startIdx, endIdx) => {
|
|
776
|
+
for (let index = startIdx; index <= endIdx; ++index) {
|
|
777
|
+
const vnode = vnodes[index];
|
|
778
|
+
if (vnode) {
|
|
779
|
+
const elm = vnode.$elm$;
|
|
780
|
+
nullifyVNodeRefs(vnode);
|
|
781
|
+
if (elm) {
|
|
782
|
+
// remove the vnode's element from the dom
|
|
783
|
+
elm.remove();
|
|
784
|
+
}
|
|
784
785
|
}
|
|
785
786
|
}
|
|
786
787
|
};
|
|
@@ -1039,10 +1040,17 @@ const patch = (oldVNode, newVNode) => {
|
|
|
1039
1040
|
elm.data = text;
|
|
1040
1041
|
}
|
|
1041
1042
|
};
|
|
1042
|
-
|
|
1043
|
+
/**
|
|
1044
|
+
* 'Nullify' any VDom `ref` callbacks on a VDom node or its children by
|
|
1045
|
+
* calling them with `null`. This signals that the DOM element corresponding to
|
|
1046
|
+
* the VDom node has been removed from the DOM.
|
|
1047
|
+
*
|
|
1048
|
+
* @param vNode a virtual DOM node
|
|
1049
|
+
*/
|
|
1050
|
+
const nullifyVNodeRefs = (vNode) => {
|
|
1043
1051
|
{
|
|
1044
1052
|
vNode.$attrs$ && vNode.$attrs$.ref && vNode.$attrs$.ref(null);
|
|
1045
|
-
vNode.$children$ && vNode.$children$.map(
|
|
1053
|
+
vNode.$children$ && vNode.$children$.map(nullifyVNodeRefs);
|
|
1046
1054
|
}
|
|
1047
1055
|
};
|
|
1048
1056
|
/**
|
|
@@ -1097,30 +1105,86 @@ const scheduleUpdate = (hostRef, isInitialLoad) => {
|
|
|
1097
1105
|
const dispatch = () => dispatchHooks(hostRef, isInitialLoad);
|
|
1098
1106
|
return writeTask(dispatch) ;
|
|
1099
1107
|
};
|
|
1108
|
+
/**
|
|
1109
|
+
* Dispatch initial-render and update lifecycle hooks, enqueuing calls to
|
|
1110
|
+
* component lifecycle methods like `componentWillLoad` as well as
|
|
1111
|
+
* {@link updateComponent}, which will kick off the virtual DOM re-render.
|
|
1112
|
+
*
|
|
1113
|
+
* @param hostRef a reference to a host DOM node
|
|
1114
|
+
* @param isInitialLoad whether we're on the initial load or not
|
|
1115
|
+
* @returns an empty Promise which is used to enqueue a series of operations for
|
|
1116
|
+
* the component
|
|
1117
|
+
*/
|
|
1100
1118
|
const dispatchHooks = (hostRef, isInitialLoad) => {
|
|
1101
1119
|
const endSchedule = createTime('scheduleUpdate', hostRef.$cmpMeta$.$tagName$);
|
|
1102
1120
|
const instance = hostRef.$lazyInstance$ ;
|
|
1103
|
-
|
|
1121
|
+
// We're going to use this variable together with `enqueue` to implement a
|
|
1122
|
+
// little promise-based queue. We start out with it `undefined`. When we add
|
|
1123
|
+
// the first function to the queue we'll set this variable to be that
|
|
1124
|
+
// function's return value. When we attempt to add subsequent values to the
|
|
1125
|
+
// queue we'll check that value and, if it was a `Promise`, we'll then chain
|
|
1126
|
+
// the new function off of that `Promise` using `.then()`. This will give our
|
|
1127
|
+
// queue two nice properties:
|
|
1128
|
+
//
|
|
1129
|
+
// 1. If all functions added to the queue are synchronous they'll be called
|
|
1130
|
+
// synchronously right away.
|
|
1131
|
+
// 2. If all functions added to the queue are asynchronous they'll all be
|
|
1132
|
+
// called in order after `dispatchHooks` exits.
|
|
1133
|
+
let maybePromise;
|
|
1104
1134
|
if (isInitialLoad) {
|
|
1105
1135
|
{
|
|
1106
1136
|
hostRef.$flags$ |= 256 /* HOST_FLAGS.isListenReady */;
|
|
1107
1137
|
if (hostRef.$queuedListeners$) {
|
|
1108
1138
|
hostRef.$queuedListeners$.map(([methodName, event]) => safeCall(instance, methodName, event));
|
|
1109
|
-
hostRef.$queuedListeners$ =
|
|
1139
|
+
hostRef.$queuedListeners$ = undefined;
|
|
1110
1140
|
}
|
|
1111
1141
|
}
|
|
1112
1142
|
{
|
|
1113
|
-
|
|
1143
|
+
// If `componentWillLoad` returns a `Promise` then we want to wait on
|
|
1144
|
+
// whatever's going on in that `Promise` before we launch into
|
|
1145
|
+
// rendering the component, doing other lifecycle stuff, etc. So
|
|
1146
|
+
// in that case we assign the returned promise to the variable we
|
|
1147
|
+
// declared above to hold a possible 'queueing' Promise
|
|
1148
|
+
maybePromise = safeCall(instance, 'componentWillLoad');
|
|
1114
1149
|
}
|
|
1115
1150
|
}
|
|
1116
1151
|
{
|
|
1117
|
-
|
|
1152
|
+
maybePromise = enqueue(maybePromise, () => safeCall(instance, 'componentWillRender'));
|
|
1118
1153
|
}
|
|
1119
1154
|
endSchedule();
|
|
1120
|
-
return
|
|
1155
|
+
return enqueue(maybePromise, () => updateComponent(hostRef, instance, isInitialLoad));
|
|
1121
1156
|
};
|
|
1157
|
+
/**
|
|
1158
|
+
* This function uses a Promise to implement a simple first-in, first-out queue
|
|
1159
|
+
* of functions to be called.
|
|
1160
|
+
*
|
|
1161
|
+
* The queue is ordered on the basis of the first argument. If it's
|
|
1162
|
+
* `undefined`, then nothing is on the queue yet, so the provided function can
|
|
1163
|
+
* be called synchronously (although note that this function may return a
|
|
1164
|
+
* `Promise`). The idea is that then the return value of that enqueueing
|
|
1165
|
+
* operation is kept around, so that if it was a `Promise` then subsequent
|
|
1166
|
+
* functions can be enqueued by calling this function again with that `Promise`
|
|
1167
|
+
* as the first argument.
|
|
1168
|
+
*
|
|
1169
|
+
* @param maybePromise either a `Promise` which should resolve before the next function is called or an 'empty' sentinel
|
|
1170
|
+
* @param fn a function to enqueue
|
|
1171
|
+
* @returns either a `Promise` or the return value of the provided function
|
|
1172
|
+
*/
|
|
1173
|
+
const enqueue = (maybePromise, fn) => isPromisey(maybePromise) ? maybePromise.then(fn) : fn();
|
|
1174
|
+
/**
|
|
1175
|
+
* Check that a value is a `Promise`. To check, we first see if the value is an
|
|
1176
|
+
* instance of the `Promise` global. In a few circumstances, in particular if
|
|
1177
|
+
* the global has been overwritten, this is could be misleading, so we also do
|
|
1178
|
+
* a little 'duck typing' check to see if the `.then` property of the value is
|
|
1179
|
+
* defined and a function.
|
|
1180
|
+
*
|
|
1181
|
+
* @param maybePromise it might be a promise!
|
|
1182
|
+
* @returns whether it is or not
|
|
1183
|
+
*/
|
|
1184
|
+
const isPromisey = (maybePromise) => maybePromise instanceof Promise ||
|
|
1185
|
+
(maybePromise && maybePromise.then && typeof maybePromise.then === 'function');
|
|
1122
1186
|
const updateComponent = async (hostRef, instance, isInitialLoad) => {
|
|
1123
|
-
|
|
1187
|
+
var _a;
|
|
1124
1188
|
const elm = hostRef.$hostElement$;
|
|
1125
1189
|
const endUpdate = createTime('update', hostRef.$cmpMeta$.$tagName$);
|
|
1126
1190
|
const rc = elm['s-rc'];
|
|
@@ -1142,7 +1206,7 @@ const updateComponent = async (hostRef, instance, isInitialLoad) => {
|
|
|
1142
1206
|
endRender();
|
|
1143
1207
|
endUpdate();
|
|
1144
1208
|
{
|
|
1145
|
-
const childrenPromises = elm['s-p'];
|
|
1209
|
+
const childrenPromises = (_a = elm['s-p']) !== null && _a !== void 0 ? _a : [];
|
|
1146
1210
|
const postUpdate = () => postUpdateComponent(hostRef);
|
|
1147
1211
|
if (childrenPromises.length === 0) {
|
|
1148
1212
|
postUpdate();
|
|
@@ -1246,9 +1310,6 @@ const safeCall = (instance, method, arg) => {
|
|
|
1246
1310
|
}
|
|
1247
1311
|
return undefined;
|
|
1248
1312
|
};
|
|
1249
|
-
const then = (promise, thenFn) => {
|
|
1250
|
-
return promise && promise.then ? promise.then(thenFn) : thenFn();
|
|
1251
|
-
};
|
|
1252
1313
|
const addHydratedFlag = (elm) => elm.classList.add('hydrated')
|
|
1253
1314
|
;
|
|
1254
1315
|
const getValue = (ref, propName) => getHostRef(ref).$instanceValues$.get(propName);
|
|
@@ -1412,9 +1473,9 @@ const proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
1412
1473
|
const initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId, Cstr) => {
|
|
1413
1474
|
// initializeComponent
|
|
1414
1475
|
if ((hostRef.$flags$ & 32 /* HOST_FLAGS.hasInitializedComponent */) === 0) {
|
|
1476
|
+
// Let the runtime know that the component has been initialized
|
|
1477
|
+
hostRef.$flags$ |= 32 /* HOST_FLAGS.hasInitializedComponent */;
|
|
1415
1478
|
{
|
|
1416
|
-
// we haven't initialized this element yet
|
|
1417
|
-
hostRef.$flags$ |= 32 /* HOST_FLAGS.hasInitializedComponent */;
|
|
1418
1479
|
// lazy loaded components
|
|
1419
1480
|
// request the component's implementation to be
|
|
1420
1481
|
// wired up with the host element
|
|
@@ -1775,10 +1836,6 @@ const loadModule = (cmpMeta, hostRef, hmrVersionId) => {
|
|
|
1775
1836
|
return import(
|
|
1776
1837
|
/* webpackMode: "lazy" */
|
|
1777
1838
|
'./b2b-card.entry.js').then(processMod, consoleError);
|
|
1778
|
-
case 'b2b-checkbox':
|
|
1779
|
-
return import(
|
|
1780
|
-
/* webpackMode: "lazy" */
|
|
1781
|
-
'./b2b-checkbox.entry.js').then(processMod, consoleError);
|
|
1782
1839
|
case 'b2b-checkbox-group':
|
|
1783
1840
|
return import(
|
|
1784
1841
|
/* webpackMode: "lazy" */
|
|
@@ -1875,10 +1932,18 @@ const loadModule = (cmpMeta, hostRef, hmrVersionId) => {
|
|
|
1875
1932
|
return import(
|
|
1876
1933
|
/* webpackMode: "lazy" */
|
|
1877
1934
|
'./b2b-tooltip.entry.js').then(processMod, consoleError);
|
|
1878
|
-
case 'b2b-wizard
|
|
1935
|
+
case 'b2b-wizard':
|
|
1879
1936
|
return import(
|
|
1880
1937
|
/* webpackMode: "lazy" */
|
|
1881
|
-
'./b2b-wizard
|
|
1938
|
+
'./b2b-wizard.entry.js').then(processMod, consoleError);
|
|
1939
|
+
case 'b2b-wizard-step':
|
|
1940
|
+
return import(
|
|
1941
|
+
/* webpackMode: "lazy" */
|
|
1942
|
+
'./b2b-wizard-step.entry.js').then(processMod, consoleError);
|
|
1943
|
+
case 'b2b-checkbox_3':
|
|
1944
|
+
return import(
|
|
1945
|
+
/* webpackMode: "lazy" */
|
|
1946
|
+
'./b2b-checkbox_3.entry.js').then(processMod, consoleError);
|
|
1882
1947
|
case 'b2b-headline':
|
|
1883
1948
|
return import(
|
|
1884
1949
|
/* webpackMode: "lazy" */
|
|
@@ -1887,14 +1952,10 @@ const loadModule = (cmpMeta, hostRef, hmrVersionId) => {
|
|
|
1887
1952
|
return import(
|
|
1888
1953
|
/* webpackMode: "lazy" */
|
|
1889
1954
|
'./b2b-input-group_2.entry.js').then(processMod, consoleError);
|
|
1890
|
-
case 'b2b-
|
|
1891
|
-
return import(
|
|
1892
|
-
/* webpackMode: "lazy" */
|
|
1893
|
-
'./b2b-rounded-icon.entry.js').then(processMod, consoleError);
|
|
1894
|
-
case 'b2b-table-cell_2':
|
|
1955
|
+
case 'b2b-wizard-icon':
|
|
1895
1956
|
return import(
|
|
1896
1957
|
/* webpackMode: "lazy" */
|
|
1897
|
-
'./b2b-
|
|
1958
|
+
'./b2b-wizard-icon.entry.js').then(processMod, consoleError);
|
|
1898
1959
|
case 'b2b-button_2':
|
|
1899
1960
|
return import(
|
|
1900
1961
|
/* webpackMode: "lazy" */
|
|
@@ -1903,6 +1964,10 @@ const loadModule = (cmpMeta, hostRef, hmrVersionId) => {
|
|
|
1903
1964
|
return import(
|
|
1904
1965
|
/* webpackMode: "lazy" */
|
|
1905
1966
|
'./b2b-input_2.entry.js').then(processMod, consoleError);
|
|
1967
|
+
case 'b2b-rounded-icon':
|
|
1968
|
+
return import(
|
|
1969
|
+
/* webpackMode: "lazy" */
|
|
1970
|
+
'./b2b-rounded-icon.entry.js').then(processMod, consoleError);
|
|
1906
1971
|
case 'b2b-separator':
|
|
1907
1972
|
return import(
|
|
1908
1973
|
/* webpackMode: "lazy" */
|
package/dist/esm/loader.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { p as promiseResolve, b as bootstrapLazy } from './index-
|
|
2
|
-
export { s as setNonce } from './index-
|
|
1
|
+
import { p as promiseResolve, b as bootstrapLazy } from './index-dfdbf4b9.js';
|
|
2
|
+
export { s as setNonce } from './index-dfdbf4b9.js';
|
|
3
3
|
|
|
4
4
|
/*
|
|
5
|
-
Stencil Client Patch Esm v3.
|
|
5
|
+
Stencil Client Patch Esm v3.4.2 | MIT Licensed | https://stenciljs.com
|
|
6
6
|
*/
|
|
7
7
|
const patchEsm = () => {
|
|
8
8
|
return promiseResolve();
|
|
@@ -11,7 +11,7 @@ const patchEsm = () => {
|
|
|
11
11
|
const defineCustomElements = (win, options) => {
|
|
12
12
|
if (typeof window === 'undefined') return Promise.resolve();
|
|
13
13
|
return patchEsm().then(() => {
|
|
14
|
-
return bootstrapLazy([["b2b-search",[[1,"b2b-search",{"placeholder":[1],"optionsList":[16],"value":[1537],"disabled":[516],"closed":[32]}]]],["b2b-table-row",[[1,"b2b-table-row",{"highlight":[4],"color":[1],"type":[1],"isOpen":[32],"toggleAccordion":[64]}]]],["b2b-modal",[[1,"b2b-modal",{"heading":[1],"opened":[1540],"backdropDismiss":[4,"backdrop-dismiss"],"escDismiss":[4,"esc-dismiss"],"variant":[1],"iconHover":[32],"isOpen":[32]},[[0,"keydown","handleKeypress"]]]]],["b2b-pagination",[[1,"b2b-pagination",{"totalPages":[2,"total-pages"],"activePage":[1538,"active-page"],"ariaLabelNextPage":[1,"aria-label-next-page"],"ariaLabelPreviousPage":[1,"aria-label-previous-page"]}]]],["b2b-
|
|
14
|
+
return bootstrapLazy([["b2b-search",[[1,"b2b-search",{"placeholder":[1],"optionsList":[16],"value":[1537],"disabled":[516],"closed":[32]},[[0,"keydown","handleKeyDown"]]]]],["b2b-table-row",[[1,"b2b-table-row",{"highlight":[4],"color":[1],"accordionType":[1,"accordion-type"],"selectable":[4],"value":[1],"indeterminate":[4],"checked":[1028],"isOpen":[32],"toggleAccordion":[64]},[[0,"b2b-change","toggleSelected"]]]]],["b2b-wizard-step",[[1,"b2b-wizard-step",{"state":[1],"step":[1],"checkIcon":[4,"check-icon"]}]]],["b2b-modal",[[1,"b2b-modal",{"heading":[1],"opened":[1540],"backdropDismiss":[4,"backdrop-dismiss"],"escDismiss":[4,"esc-dismiss"],"variant":[1],"iconHover":[32],"isOpen":[32]},[[0,"keydown","handleKeypress"]]]]],["b2b-pagination",[[1,"b2b-pagination",{"totalPages":[2,"total-pages"],"activePage":[1538,"active-page"],"ariaLabelNextPage":[1,"aria-label-next-page"],"ariaLabelPreviousPage":[1,"aria-label-previous-page"]}]]],["b2b-alert",[[1,"b2b-alert",{"type":[1],"size":[1],"opened":[1028],"hasCloseButton":[4,"has-close-button"],"customIcon":[4,"custom-icon"]}]]],["b2b-checkbox-group",[[1,"b2b-checkbox-group",{"label":[1],"required":[4],"disabled":[4],"invalid":[4],"alignment":[1],"hint":[1],"error":[1]},[[0,"b2b-change","handleCheckboxChange"]]]]],["b2b-dropdown",[[1,"b2b-dropdown",{"label":[1],"required":[516],"name":[513],"disabled":[516],"invalid":[516],"hint":[1],"error":[1]}]]],["b2b-radio-button",[[1,"b2b-radio-button",{"label":[1],"required":[516],"name":[513],"checked":[1540],"disabled":[516],"invalid":[4],"value":[513],"hint":[1],"error":[1]}]]],["b2b-radio-group",[[1,"b2b-radio-group",{"name":[1],"label":[1],"required":[4],"alignment":[1],"disabled":[516],"invalid":[516],"hint":[1],"error":[1],"currentValue":[32]},[[0,"b2b-change","handleRadioButtonChange"]]]]],["b2b-required-separator",[[1,"b2b-required-separator",{"label":[1]}]]],["b2b-tab-group",[[1,"b2b-tab-group",{"useRouter":[4,"use-router"]},[[0,"click","handleClick"],[0,"keydown","handleKeydown"]]]]],["b2b-textarea",[[1,"b2b-textarea",{"label":[1],"required":[516],"placeholder":[513],"disabled":[516],"invalid":[516],"autofocus":[516],"resize":[513],"hint":[1],"error":[1],"value":[1537],"name":[513],"maxLength":[514,"max-length"]}]]],["b2b-anchor",[[1,"b2b-anchor",{"href":[1],"download":[1],"target":[1],"size":[1]}]]],["b2b-card",[[1,"b2b-card",{"disabled":[4],"href":[1],"target":[1]},[[0,"click","onClick"],[0,"keydown","onKeyDown"]]]]],["b2b-grid",[[1,"b2b-grid",{"margin":[2]}]]],["b2b-grid-col",[[1,"b2b-grid-col",{"span":[514],"textAlign":[1,"text-align"]}]]],["b2b-grid-row",[[1,"b2b-grid-row",{"columnGap":[2,"column-gap"],"rowGap":[2,"row-gap"],"alignItems":[1,"align-items"],"justify":[1]}]]],["b2b-label",[[1,"b2b-label",{"type":[1]}]]],["b2b-paragraph",[[1,"b2b-paragraph",{"weight":[1],"size":[1],"align":[1]}]]],["b2b-scrollable-container",[[1,"b2b-scrollable-container"]]],["b2b-tab",[[1,"b2b-tab",{"selected":[516],"disabled":[4],"invalid":[4]}]]],["b2b-tab-panel",[[1,"b2b-tab-panel"]]],["b2b-table",[[1,"b2b-table",{"size":[1]},[[0,"b2b-change","onColumnSelected"]]]]],["b2b-table-rowgroup",[[1,"b2b-table-rowgroup",{"type":[1],"accordion":[4],"selectable":[4],"opened":[516],"selectedValues":[32],"indeterminate":[32]},[[0,"b2b-open","handleOpenChange"],[0,"b2b-row-selected","handleSelectedChange"]]]]],["b2b-toggle-button",[[1,"b2b-toggle-button",{"label":[1],"name":[513],"checked":[1540],"disabled":[516],"value":[513]}]]],["b2b-toggle-group",[[1,"b2b-toggle-group",{"name":[1],"disabled":[516],"currentValue":[32]},[[0,"b2b-change","handleToggleButtonChange"]]]]],["b2b-tooltip",[[1,"b2b-tooltip",{"position":[1],"content":[1],"trigger":[1],"opened":[1540]}]]],["b2b-wizard",[[1,"b2b-wizard",{"activeStep":[1,"active-step"],"custom":[4],"checkIcon":[4,"check-icon"]}]]],["b2b-wizard-icon",[[1,"b2b-wizard-icon",{"step":[1],"state":[1],"checkIcon":[4,"check-icon"]}]]],["b2b-headline",[[1,"b2b-headline",{"size":[1],"align":[1],"noMargin":[4,"no-margin"]}]]],["b2b-input-group_2",[[1,"b2b-input-list",{"label":[1],"required":[516],"placeholder":[513],"optionsList":[16],"value":[1537],"disabled":[516],"groupDisabled":[4,"group-disabled"],"hasOptionList":[32],"isElementFocused":[32]},[[0,"keydown","handleKeyDown"]]],[1,"b2b-input-group",{"invalid":[4],"disabled":[4],"error":[1],"hint":[1]}]]],["b2b-rounded-icon",[[1,"b2b-rounded-icon",{"color":[1],"borderColor":[1,"border-color"],"contentColor":[1,"content-color"]}]]],["b2b-separator",[[1,"b2b-separator",{"alignment":[1]}]]],["b2b-input-label",[[1,"b2b-input-label",{"required":[4],"disabled":[4]}]]],["b2b-checkbox_3",[[1,"b2b-checkbox",{"label":[1],"required":[516],"checked":[1540],"disabled":[516],"indeterminate":[1028],"error":[1],"hint":[1],"name":[513],"value":[520],"invalid":[4],"standalone":[4],"groupDisabled":[4,"group-disabled"]}],[1,"b2b-table-cell",{"textWrap":[516,"text-wrap"],"size":[1],"align":[1],"divider":[4],"color":[1],"useTextEllipsis":[32]}],[1,"b2b-table-header",{"divider":[4],"fixed":[4],"sortDirection":[1537,"sort-direction"],"sortId":[1,"sort-id"],"active":[32]}]]],["b2b-input_2",[[1,"b2b-input",{"label":[1],"required":[516],"type":[513],"disabled":[516],"invalid":[516],"placeholder":[513],"value":[1537],"name":[513],"hint":[1],"error":[1],"autofocus":[4],"groupDisabled":[4,"group-disabled"],"hasFocus":[32],"hasTextPrefix":[32],"hasTextSuffix":[32],"setFocus":[64],"clearInput":[64]}],[0,"b2b-input-list-option",{"option":[1]},[[0,"keydown","handleKeyDown"]]]]],["b2b-button_2",[[1,"b2b-button",{"variant":[1],"type":[1],"size":[1],"disabled":[516],"loading":[4],"active":[516],"href":[1],"target":[1],"download":[1],"groupDisabled":[4,"group-disabled"],"setFocus":[64]},[[2,"click","handleHostClick"]]],[1,"b2b-spinner",{"size":[1],"color":[1]}]]],["b2b-icon",[[1,"b2b-icon",{"icon":[1],"color":[1],"size":[1],"clickable":[4],"pathData":[32]}]]]], options);
|
|
15
15
|
});
|
|
16
16
|
};
|
|
17
17
|
|
|
@@ -17,15 +17,15 @@ const TableSortDirections = {
|
|
|
17
17
|
ASC: 'ascending',
|
|
18
18
|
DESC: 'descending',
|
|
19
19
|
};
|
|
20
|
-
const
|
|
20
|
+
const TableAccordionRowTypes = {
|
|
21
21
|
PARENT: 'parent',
|
|
22
22
|
CHILD: 'child',
|
|
23
|
-
HEADER: 'header'
|
|
23
|
+
HEADER: 'header',
|
|
24
24
|
};
|
|
25
25
|
const TableColourOptions = {
|
|
26
26
|
DEFAULT: 'default',
|
|
27
27
|
SELECTED: 'selected',
|
|
28
|
-
GROUP: 'group'
|
|
28
|
+
GROUP: 'group',
|
|
29
29
|
};
|
|
30
30
|
|
|
31
|
-
export { ContentAlignment as C, TableSizes as T, TableSortDirections as a,
|
|
31
|
+
export { ContentAlignment as C, TableSizes as T, TableSortDirections as a, TableAccordionRowTypes as b, TableColourOptions as c, TableRowgroupTypes as d };
|
|
@@ -4,5 +4,5 @@ export declare const story020Success: any;
|
|
|
4
4
|
export declare const story030Warning: any;
|
|
5
5
|
export declare const story040Error: any;
|
|
6
6
|
export declare const story050Small: any;
|
|
7
|
-
declare const _default: Meta
|
|
7
|
+
declare const _default: Meta;
|
|
8
8
|
export default _default;
|
|
@@ -2,5 +2,5 @@ import { Meta } from '@storybook/web-components';
|
|
|
2
2
|
export declare const story010Default: any;
|
|
3
3
|
export declare const story020Size100: any;
|
|
4
4
|
export declare const story030TargetBlank: any;
|
|
5
|
-
declare const _default: Meta
|
|
5
|
+
declare const _default: Meta;
|
|
6
6
|
export default _default;
|
|
@@ -19,6 +19,8 @@ export declare class ButtonComponent {
|
|
|
19
19
|
/** If set to true, the browser will attempt to donwload and save the URL instead of opening it. The name of the created file
|
|
20
20
|
* defaults to the URL string, but can be changed by the user. */
|
|
21
21
|
download?: string;
|
|
22
|
+
/** @internal Whether the parent input group is disabled. Per default, it is false. */
|
|
23
|
+
groupDisabled: boolean;
|
|
22
24
|
private focusableElement;
|
|
23
25
|
/** Manually set focus to button element */
|
|
24
26
|
setFocus(): Promise<void>;
|
|
@@ -8,5 +8,5 @@ export declare const story055IconStartPali: any;
|
|
|
8
8
|
export declare const story060IconSearch: any;
|
|
9
9
|
export declare const story070Disabled: any;
|
|
10
10
|
export declare const story080Anchor: any;
|
|
11
|
-
declare const _default: Meta
|
|
11
|
+
declare const _default: Meta;
|
|
12
12
|
export default _default;
|
|
@@ -2,5 +2,5 @@ import { Meta } from '@storybook/web-components';
|
|
|
2
2
|
export declare const story010Card: any;
|
|
3
3
|
export declare const story020DisabledCard: any;
|
|
4
4
|
export declare const story030LinkCard: any;
|
|
5
|
-
declare const _default: Meta
|
|
5
|
+
declare const _default: Meta;
|
|
6
6
|
export default _default;
|
|
@@ -3,13 +3,15 @@ import { CheckboxEventDetail } from '../../utils/interfaces/form.interface';
|
|
|
3
3
|
export declare class CheckboxComponent {
|
|
4
4
|
hostElement: HTMLB2bCheckboxElement;
|
|
5
5
|
/** The checkbox label. This attribute is required. */
|
|
6
|
-
label
|
|
6
|
+
label?: string;
|
|
7
7
|
/** Adds an asterisk at the end of the label to signify that the field is required. */
|
|
8
8
|
required: boolean;
|
|
9
9
|
/** Whether or not the checkbox is checked. Default value is false and can be set to true if the checkbox should come pre-checked. */
|
|
10
10
|
checked: boolean;
|
|
11
11
|
/** Whether or not the checkbox is disabled. The default value is false. */
|
|
12
12
|
disabled: boolean;
|
|
13
|
+
/** If used in combination with other checkboxes, this state indicates that some checkboxes are checked, but not all. Per default, it is false. */
|
|
14
|
+
indeterminate: boolean;
|
|
13
15
|
/** The error message. It is undefined by default. If a string is passed in, it will render the checkbox with error styles. */
|
|
14
16
|
error?: string;
|
|
15
17
|
/** The hint text belonging to the checkbox. It is undefined by default. If an error is specified, it will be shown instead of the hint. */
|
|
@@ -20,6 +22,10 @@ export declare class CheckboxComponent {
|
|
|
20
22
|
value?: any;
|
|
21
23
|
/** Whether or not the checkbox is rendered with error styles. Defaults to false. */
|
|
22
24
|
invalid?: boolean;
|
|
25
|
+
/** If true, renders a standalone inline checkbox with no label and hint/error. */
|
|
26
|
+
standalone: boolean;
|
|
27
|
+
/** @internal whether the parent checkbox-group is disabled. */
|
|
28
|
+
groupDisabled: boolean;
|
|
23
29
|
/** Emits whenever the checkbox receives focus. */
|
|
24
30
|
b2bFocus: EventEmitter<FocusEvent>;
|
|
25
31
|
/** Emits whenever the checkbox loses focus. */
|
|
@@ -32,5 +38,6 @@ export declare class CheckboxComponent {
|
|
|
32
38
|
private onFocus;
|
|
33
39
|
private onBlur;
|
|
34
40
|
private onClick;
|
|
41
|
+
private renderIcon;
|
|
35
42
|
render(): any;
|
|
36
43
|
}
|
|
@@ -5,5 +5,5 @@ export declare const story030Hint: any;
|
|
|
5
5
|
export declare const story040Error: any;
|
|
6
6
|
export declare const story050Disabled: any;
|
|
7
7
|
export declare const story060Required: any;
|
|
8
|
-
declare const _default: Meta
|
|
8
|
+
declare const _default: Meta;
|
|
9
9
|
export default _default;
|
|
@@ -5,5 +5,5 @@ export declare const story030Error: any;
|
|
|
5
5
|
export declare const story040Disabled: any;
|
|
6
6
|
export declare const story050Horizontal: any;
|
|
7
7
|
export declare const story060Required: any;
|
|
8
|
-
declare const _default: Meta
|
|
8
|
+
declare const _default: Meta;
|
|
9
9
|
export default _default;
|
|
@@ -3,5 +3,5 @@ export declare const story010Default: any;
|
|
|
3
3
|
export declare const story020Disabled: any;
|
|
4
4
|
export declare const story030Error: any;
|
|
5
5
|
export declare const story040Required: any;
|
|
6
|
-
declare const _default: Meta
|
|
6
|
+
declare const _default: Meta;
|
|
7
7
|
export default _default;
|
|
@@ -3,5 +3,5 @@ export declare const story010Grid: any;
|
|
|
3
3
|
export declare const story020AlignItems: any;
|
|
4
4
|
export declare const story030TextAlign: any;
|
|
5
5
|
export declare const story040Justify: any;
|
|
6
|
-
declare const _default: Meta
|
|
6
|
+
declare const _default: Meta;
|
|
7
7
|
export default _default;
|
|
@@ -4,5 +4,5 @@ export declare const story030Size200: any;
|
|
|
4
4
|
export declare const story040Size100: any;
|
|
5
5
|
export declare const story050Center: any;
|
|
6
6
|
export declare const story060Right: any;
|
|
7
|
-
declare const _default: Meta
|
|
7
|
+
declare const _default: Meta;
|
|
8
8
|
export default _default;
|
|
@@ -8,5 +8,5 @@ export declare const story040Size50: any;
|
|
|
8
8
|
export declare const story050Size100: any;
|
|
9
9
|
export declare const story060Size200: any;
|
|
10
10
|
export declare const story070AllIcons: Story;
|
|
11
|
-
declare const _default: Meta
|
|
11
|
+
declare const _default: Meta;
|
|
12
12
|
export default _default;
|
|
@@ -27,6 +27,8 @@ export declare class InputComponent {
|
|
|
27
27
|
error?: string;
|
|
28
28
|
/** When setting the autofocus to true, the input element will be focused when the page loads. */
|
|
29
29
|
autofocus: boolean;
|
|
30
|
+
/** @internal Whether the parent input group is disabled. Per default, it is false. */
|
|
31
|
+
groupDisabled: boolean;
|
|
30
32
|
/** Emits whenever the input receives focus. */
|
|
31
33
|
b2bFocus: EventEmitter<FocusEvent>;
|
|
32
34
|
/** Emits whenever the input loses focus. */
|
|
@@ -9,5 +9,5 @@ export declare const story060IconEnd: any;
|
|
|
9
9
|
export declare const story080Prefix: any;
|
|
10
10
|
export declare const story090PrefixSuffix: any;
|
|
11
11
|
export declare const story070AllArgs: any;
|
|
12
|
-
declare const _default: Meta
|
|
12
|
+
declare const _default: Meta;
|
|
13
13
|
export default _default;
|
|
@@ -3,5 +3,5 @@ export declare const story010Default: any;
|
|
|
3
3
|
export declare const story020Disabled: any;
|
|
4
4
|
export declare const story030Error: any;
|
|
5
5
|
export declare const story040Complex: any;
|
|
6
|
-
declare const _default: Meta
|
|
6
|
+
declare const _default: Meta;
|
|
7
7
|
export default _default;
|
|
@@ -14,6 +14,8 @@ export declare class InputListComponent {
|
|
|
14
14
|
value: string;
|
|
15
15
|
/** Whether or not the input is disabled. Default is false. */
|
|
16
16
|
disabled: boolean;
|
|
17
|
+
/** @internal Whether the parent input group is disabled. Per default, it is false. */
|
|
18
|
+
groupDisabled: boolean;
|
|
17
19
|
/** Emits when the user clicks the clear button. */
|
|
18
20
|
b2bClear: EventEmitter<InputClear>;
|
|
19
21
|
hasOptionList: boolean;
|
|
@@ -3,5 +3,5 @@ export declare const story010InputList: any;
|
|
|
3
3
|
export declare const story020InputListFocused: any;
|
|
4
4
|
export declare const story025InputListDisabled: any;
|
|
5
5
|
export declare const story030CustomList: any;
|
|
6
|
-
declare const _default: Meta
|
|
6
|
+
declare const _default: Meta;
|
|
7
7
|
export default _default;
|
|
@@ -4,5 +4,5 @@ export declare const story020Info: any;
|
|
|
4
4
|
export declare const story030Success: any;
|
|
5
5
|
export declare const story040Warning: any;
|
|
6
6
|
export declare const story050Error: any;
|
|
7
|
-
declare const _default: Meta
|
|
7
|
+
declare const _default: Meta;
|
|
8
8
|
export default _default;
|
|
@@ -3,5 +3,5 @@ export declare const story010BackdropDismiss: any;
|
|
|
3
3
|
export declare const story020EscDismiss: any;
|
|
4
4
|
export declare const story030Default: any;
|
|
5
5
|
export declare const story040Large: any;
|
|
6
|
-
declare const _default: Meta
|
|
6
|
+
declare const _default: Meta;
|
|
7
7
|
export default _default;
|
|
@@ -2,5 +2,5 @@ import { Meta } from '@storybook/web-components';
|
|
|
2
2
|
export declare const story010Pagination: any;
|
|
3
3
|
export declare const story020PaginationMiddle: any;
|
|
4
4
|
export declare const story010PaginationLast: any;
|
|
5
|
-
declare const _default: Meta
|
|
5
|
+
declare const _default: Meta;
|
|
6
6
|
export default _default;
|
|
@@ -5,5 +5,5 @@ export declare const story030Small: any;
|
|
|
5
5
|
export declare const story040Center: any;
|
|
6
6
|
export declare const story050Right: any;
|
|
7
7
|
export declare const story900Playground: any;
|
|
8
|
-
declare const _default: Meta
|
|
8
|
+
declare const _default: Meta;
|
|
9
9
|
export default _default;
|
|
@@ -4,5 +4,5 @@ export declare const story020Hint: any;
|
|
|
4
4
|
export declare const story030Error: any;
|
|
5
5
|
export declare const story040Disabled: any;
|
|
6
6
|
export declare const story050Required: any;
|
|
7
|
-
declare const _default: Meta
|
|
7
|
+
declare const _default: Meta;
|
|
8
8
|
export default _default;
|
|
@@ -5,5 +5,5 @@ export declare const story030Error: any;
|
|
|
5
5
|
export declare const story040Disabled: any;
|
|
6
6
|
export declare const story050Horizontal: any;
|
|
7
7
|
export declare const story060Required: any;
|
|
8
|
-
declare const _default: Meta
|
|
8
|
+
declare const _default: Meta;
|
|
9
9
|
export default _default;
|
|
@@ -3,6 +3,10 @@ export declare class RoundedIconComponent {
|
|
|
3
3
|
* Use any type including hex, rgb or css custom properties
|
|
4
4
|
* as long as you pass it as a string */
|
|
5
5
|
color: string;
|
|
6
|
+
/** The color of the border of the circle around the icon or text.
|
|
7
|
+
* Use any type including hex, rgb or css custom properties
|
|
8
|
+
* as long as you pass it as a string */
|
|
9
|
+
borderColor: string;
|
|
6
10
|
/** The color of the text or icon within the circle.
|
|
7
11
|
* Use any type including hex, rgb or css custom properties
|
|
8
12
|
* as long as you pass it as a string */
|