@otto-de/b2b-core-components 1.23.4 → 1.26.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/b2b-core-components/b2b-core-components.esm.js +1 -1
- package/dist/b2b-core-components/p-01a5c813.entry.js +1 -0
- package/dist/b2b-core-components/{p-9c055a4e.entry.js → p-02b5dcb1.entry.js} +1 -1
- package/dist/b2b-core-components/{p-1cbf75dd.entry.js → p-10e9a961.entry.js} +1 -1
- package/dist/b2b-core-components/{p-ec4f82b1.entry.js → p-150f78f4.entry.js} +1 -1
- package/dist/b2b-core-components/{p-ae71a78f.entry.js → p-201b438d.entry.js} +1 -1
- package/dist/b2b-core-components/p-225e561a.entry.js +1 -0
- package/dist/b2b-core-components/{p-96968c24.entry.js → p-3e50a85d.entry.js} +1 -1
- package/dist/b2b-core-components/{p-8967cc6c.entry.js → p-40c31c85.entry.js} +1 -1
- package/dist/b2b-core-components/{p-9a6c243e.entry.js → p-45e19c6e.entry.js} +1 -1
- package/dist/b2b-core-components/p-4d96ee04.entry.js +1 -0
- package/dist/b2b-core-components/p-51dab4f2.entry.js +1 -0
- package/dist/b2b-core-components/p-5c576b32.entry.js +1 -0
- package/dist/b2b-core-components/{p-4cfb4131.entry.js → p-71f1d9a1.entry.js} +1 -1
- package/dist/b2b-core-components/{p-a033a6b5.entry.js → p-8c3b4f01.entry.js} +1 -1
- package/dist/b2b-core-components/{p-44d5a9d3.entry.js → p-900f47c2.entry.js} +1 -1
- package/dist/b2b-core-components/{p-25fa6d92.entry.js → p-99060fad.entry.js} +1 -1
- package/dist/b2b-core-components/p-9e3d9908.entry.js +1 -0
- package/dist/b2b-core-components/{p-47081742.entry.js → p-a6dec156.entry.js} +1 -1
- package/dist/b2b-core-components/{p-c1135326.entry.js → p-b98f7c3c.entry.js} +1 -1
- package/dist/b2b-core-components/p-b9cc3f9f.entry.js +1 -0
- package/dist/b2b-core-components/{p-928e7db4.entry.js → p-c69df063.entry.js} +1 -1
- package/dist/b2b-core-components/{p-2a80fb82.entry.js → p-c8838f46.entry.js} +1 -1
- package/dist/b2b-core-components/p-e73552ea.entry.js +1 -0
- package/dist/b2b-core-components/{p-921e7a37.entry.js → p-ee371752.entry.js} +1 -1
- package/dist/b2b-core-components/{p-3caed6e8.entry.js → p-ef0bbdd1.entry.js} +1 -1
- package/dist/b2b-core-components/p-f31cc91d.entry.js +1 -0
- package/dist/cjs/b2b-background-box.cjs.entry.js +5 -5
- package/dist/cjs/b2b-button_2.cjs.entry.js +1 -1
- package/dist/cjs/b2b-core-components.cjs.js +1 -1
- package/dist/cjs/b2b-date-picker.cjs.entry.js +2 -1
- package/dist/cjs/b2b-dropdown.cjs.entry.js +12 -3
- package/dist/cjs/b2b-grid-row.cjs.entry.js +65 -11
- package/dist/cjs/b2b-input-group_2.cjs.entry.js +1 -1
- package/dist/cjs/b2b-input_2.cjs.entry.js +27 -6
- package/dist/cjs/b2b-multiselect-dropdown.cjs.entry.js +4 -4
- package/dist/cjs/b2b-shimmer.cjs.entry.js +27 -0
- package/dist/cjs/b2b-snackbar.cjs.entry.js +5 -4
- 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 +4 -0
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/collection/collection-manifest.json +1 -0
- package/dist/collection/components/alert/alert.css +2 -2
- package/dist/collection/components/alert/alert.stories.js +1 -2
- package/dist/collection/components/anchor/anchor.css +2 -2
- package/dist/collection/components/background-box/background-box.css +6 -6
- package/dist/collection/components/background-box/background-box.e2e.js +3 -3
- package/dist/collection/components/background-box/background-box.js +7 -7
- package/dist/collection/components/background-box/background-box.spec.js +3 -3
- package/dist/collection/components/background-box/background-box.stories.js +18 -18
- package/dist/collection/components/breadcrumb/breadcrumb.css +2 -2
- package/dist/collection/components/button/button.css +2 -2
- package/dist/collection/components/button/button.stories.js +79 -79
- package/dist/collection/components/card/card.css +2 -2
- package/dist/collection/components/checkbox/checkbox.css +2 -2
- package/dist/collection/components/checkbox-group/checkbox-group.css +2 -2
- package/dist/collection/components/chip/chip.css +2 -2
- package/dist/collection/components/chip/chip.stories.js +15 -15
- package/dist/collection/components/date-picker/date-picker-days-header.css +2 -2
- package/dist/collection/components/date-picker/date-picker-days.css +2 -2
- package/dist/collection/components/date-picker/date-picker-header.css +2 -2
- package/dist/collection/components/date-picker/date-picker-months.css +2 -2
- package/dist/collection/components/date-picker/date-picker-years.css +2 -2
- package/dist/collection/components/date-picker/date-picker.css +2 -2
- package/dist/collection/components/date-picker/date-picker.js +20 -1
- package/dist/collection/components/date-picker/date-picker.stories.js +4 -1
- package/dist/collection/components/dropdown/dropdown.css +4 -4
- package/dist/collection/components/dropdown/dropdown.js +47 -2
- package/dist/collection/components/flyout-menu/flyout-menu-option.css +2 -2
- package/dist/collection/components/flyout-menu/flyout-menu.css +2 -2
- package/dist/collection/components/flyout-menu/flyout-menu.stories.js +44 -44
- package/dist/collection/components/grid/grid.stories.js +151 -148
- package/dist/collection/components/grid/row.js +65 -11
- 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-100/icon-100.stories.js +5 -5
- package/dist/collection/components/icon-50/icon-50.css +2 -2
- package/dist/collection/components/icon-50/icon-50.stories.js +4 -4
- package/dist/collection/components/input/input.css +3 -3
- package/dist/collection/components/input/input.e2e.js +28 -0
- package/dist/collection/components/input/input.js +26 -5
- package/dist/collection/components/input/input.stories.js +75 -55
- package/dist/collection/components/input-group/input-group.css +3 -3
- package/dist/collection/components/input-list/input-list.css +2 -2
- package/dist/collection/components/input-list/input-list.stories.js +50 -50
- package/dist/collection/components/label/label.css +2 -2
- package/dist/collection/components/modal/modal.css +2 -2
- package/dist/collection/components/modal/modal.stories.js +1 -1
- package/dist/collection/components/multiselect-dropdown/multiselect-dropdown.css +2 -2
- package/dist/collection/components/multiselect-dropdown/multiselect-dropdown.js +4 -4
- package/dist/collection/components/multiselect-dropdown/multiselect-dropdown.stories.js +19 -19
- package/dist/collection/components/pagination/pagination.css +2 -2
- package/dist/collection/components/paragraph/paragraph.css +2 -2
- package/dist/collection/components/paragraph/paragraph.stories.js +82 -78
- package/dist/collection/components/progress-bar/progress-bar.css +2 -2
- package/dist/collection/components/progress-bar/progress-bar.stories.js +4 -4
- package/dist/collection/components/radio/radio.css +2 -2
- package/dist/collection/components/radio-group/radio-group.css +2 -2
- package/dist/collection/components/required-separator/required-separator.css +2 -2
- package/dist/collection/components/rounded-icon/rounded-icon.css +2 -2
- package/dist/collection/components/scrollable-container/scrollable-container.css +2 -2
- package/dist/collection/components/separator/separator.css +2 -2
- package/dist/collection/components/shimmer/shimmer.css +242 -0
- package/dist/collection/components/shimmer/shimmer.e2e.js +18 -0
- package/dist/collection/components/shimmer/shimmer.js +82 -0
- package/dist/collection/components/shimmer/shimmer.spec.js +35 -0
- package/dist/collection/components/shimmer/shimmer.stories.js +38 -0
- package/dist/collection/components/snackbar/snackbar.css +2 -2
- package/dist/collection/components/snackbar/snackbar.js +22 -4
- package/dist/collection/components/snackbar/snackbar.stories.js +10 -2
- 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.e2e.js +2 -1
- package/dist/collection/components/table/table.js +2 -2
- package/dist/collection/components/table/table.stories.js +157 -157
- 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-chip/toggle-chip.stories.js +14 -2
- 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/toggle-switch/toggle-switch.stories.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/components/b2b-background-box.js +6 -6
- package/dist/components/b2b-date-picker.js +23 -15
- package/dist/components/b2b-dropdown.js +14 -3
- package/dist/components/b2b-grid-row.js +65 -11
- package/dist/components/b2b-multiselect-dropdown.js +4 -4
- package/dist/components/b2b-shimmer.d.ts +11 -0
- package/dist/components/b2b-shimmer.js +45 -0
- package/dist/components/b2b-snackbar.js +7 -5
- 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/input-group.js +1 -1
- package/dist/components/input.js +27 -6
- 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 +39 -2
- package/dist/esm/b2b-background-box.entry.js +5 -5
- package/dist/esm/b2b-button_2.entry.js +1 -1
- package/dist/esm/b2b-core-components.js +1 -1
- package/dist/esm/b2b-date-picker.entry.js +2 -1
- package/dist/esm/b2b-dropdown.entry.js +12 -3
- package/dist/esm/b2b-grid-row.entry.js +65 -11
- package/dist/esm/b2b-input-group_2.entry.js +1 -1
- package/dist/esm/b2b-input_2.entry.js +27 -6
- package/dist/esm/b2b-multiselect-dropdown.entry.js +4 -4
- package/dist/esm/b2b-shimmer.entry.js +23 -0
- package/dist/esm/b2b-snackbar.entry.js +5 -4
- 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 +4 -0
- package/dist/esm/loader.js +1 -1
- package/dist/types/components/background-box/background-box.d.ts +2 -2
- package/dist/types/components/background-box/background-box.stories.d.ts +1 -1
- package/dist/types/components/button/button.stories.d.ts +2 -2
- package/dist/types/components/date-picker/date-picker.d.ts +2 -0
- package/dist/types/components/dropdown/dropdown.d.ts +4 -0
- package/dist/types/components/grid/row.d.ts +3 -0
- package/dist/types/components/icon/icon.stories.d.ts +3 -3
- package/dist/types/components/input/input.d.ts +4 -0
- package/dist/types/components/input/input.stories.d.ts +1 -0
- package/dist/types/components/shimmer/shimmer.d.ts +9 -0
- package/dist/types/components/shimmer/shimmer.stories.d.ts +5 -0
- package/dist/types/components/snackbar/snackbar.d.ts +2 -0
- package/dist/types/components/snackbar/snackbar.stories.d.ts +1 -0
- package/dist/types/components/toggle-chip/toggle-chip.stories.d.ts +3 -2
- package/dist/types/components.d.ts +73 -4
- package/dist/web-types.json +82 -3
- package/package.json +21 -16
- package/dist/b2b-core-components/p-191b7d0b.entry.js +0 -1
- package/dist/b2b-core-components/p-333969c9.entry.js +0 -1
- package/dist/b2b-core-components/p-339dd3ba.entry.js +0 -1
- package/dist/b2b-core-components/p-56293400.entry.js +0 -1
- package/dist/b2b-core-components/p-95d3519f.entry.js +0 -1
- package/dist/b2b-core-components/p-992dd377.entry.js +0 -1
- package/dist/b2b-core-components/p-be5c3d5d.entry.js +0 -1
- package/dist/b2b-core-components/p-fdfdc92d.entry.js +0 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Do not edit directly
|
|
3
|
-
* Generated on
|
|
3
|
+
* Generated on Thu, 20 Mar 2025 06:20:36 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 Thu, 20 Mar 2025 06:20:36 GMT
|
|
127
127
|
*/
|
|
128
128
|
:root [data-theme="dark"] {
|
|
129
129
|
--b2b-size-200: 5rem; /* 80px */
|
|
@@ -20,28 +20,28 @@ const meta = {
|
|
|
20
20
|
render: (_a) => {
|
|
21
21
|
var args = __rest(_a, []);
|
|
22
22
|
return html ` <div style="margin-left: 100px">
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
23
|
+
<b2b-flyout-menu>
|
|
24
|
+
<b2b-icon-100
|
|
25
|
+
icon="b2b_icon-ellipsis"
|
|
26
|
+
slot="trigger"
|
|
27
|
+
clickable
|
|
28
|
+
focusable></b2b-icon-100>
|
|
29
|
+
<b2b-flyout-menu-option
|
|
30
|
+
slot="option"
|
|
31
|
+
option="Delete"
|
|
32
|
+
disabled="${args.disabled}">
|
|
33
|
+
</b2b-flyout-menu-option>
|
|
34
|
+
<b2b-flyout-menu-option
|
|
35
|
+
slot="option"
|
|
36
|
+
option="Pause"
|
|
37
|
+
separator="${args.separator}">
|
|
38
|
+
</b2b-flyout-menu-option>
|
|
39
|
+
<b2b-flyout-menu-option slot="option" option="Copy">
|
|
40
|
+
</b2b-flyout-menu-option>
|
|
41
|
+
<b2b-flyout-menu-option slot="option" option="Share">
|
|
42
|
+
</b2b-flyout-menu-option>
|
|
43
|
+
</b2b-flyout-menu>
|
|
44
|
+
</div>`;
|
|
45
45
|
},
|
|
46
46
|
};
|
|
47
47
|
export default meta;
|
|
@@ -63,27 +63,27 @@ export const AllStates = {
|
|
|
63
63
|
render: (_a) => {
|
|
64
64
|
var args = __rest(_a, []);
|
|
65
65
|
return html ` <div style="margin-left: 100px">
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
66
|
+
<b2b-flyout-menu opened="true">
|
|
67
|
+
<b2b-icon-100
|
|
68
|
+
icon="b2b_icon-ellipsis"
|
|
69
|
+
slot="trigger"
|
|
70
|
+
clickable
|
|
71
|
+
focusable></b2b-icon-100>
|
|
72
|
+
<b2b-flyout-menu-option
|
|
73
|
+
slot="option"
|
|
74
|
+
option="Delete"
|
|
75
|
+
disabled="${args.disabled}">
|
|
76
|
+
</b2b-flyout-menu-option>
|
|
77
|
+
<b2b-flyout-menu-option
|
|
78
|
+
slot="option"
|
|
79
|
+
option="Pause"
|
|
80
|
+
separator="${args.separator}">
|
|
81
|
+
</b2b-flyout-menu-option>
|
|
82
|
+
<b2b-flyout-menu-option slot="option" option="Copy">
|
|
83
|
+
</b2b-flyout-menu-option>
|
|
84
|
+
<b2b-flyout-menu-option slot="option" option="Share">
|
|
85
|
+
</b2b-flyout-menu-option>
|
|
86
|
+
</b2b-flyout-menu>
|
|
87
|
+
</div>`;
|
|
88
88
|
},
|
|
89
89
|
};
|
|
@@ -34,49 +34,50 @@ export const story010Grid = {
|
|
|
34
34
|
render: (_a) => {
|
|
35
35
|
var args = __rest(_a, []);
|
|
36
36
|
return html ` <b2b-grid margin="${args.margin}">
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
37
|
+
<b2b-grid-row
|
|
38
|
+
justify="${args.justify}"
|
|
39
|
+
row-gap="${args.rowGap}"
|
|
40
|
+
column-gap="${args.columnGap}">
|
|
41
|
+
<b2b-grid-col span="6" text-align="${args.textAlign}"
|
|
42
|
+
><div style="${gridBoxStyles}">
|
|
43
|
+
<h4>Column 1-6 of 12</h4>
|
|
44
|
+
<p>
|
|
45
|
+
Lorem ipsum dolor sit amet, consectetur adipiscing elit.
|
|
46
|
+
Suspendisse massa urna, accumsan id viverra et, mollis sit amet
|
|
47
|
+
sem. Cras congue ex ac arcu pellentesque, eu vestibulum sem
|
|
48
|
+
tempor. Curabitur consequat massa sed nulla lacinia, vitae
|
|
49
|
+
scelerisque ante egestas. Praesent et diam quis diam posuere
|
|
50
|
+
egestas. Duis feugiat lorem non nisl consectetur, sed fringilla
|
|
51
|
+
odio semper.
|
|
52
|
+
</p>
|
|
53
|
+
</div></b2b-grid-col
|
|
54
|
+
>
|
|
55
|
+
<b2b-grid-col
|
|
56
|
+
><div style="${gridBoxStyles}">
|
|
57
|
+
<h4>Column 7 of 12</h4>
|
|
58
|
+
<p>I grow to fill up all available space</p>
|
|
59
|
+
</div></b2b-grid-col
|
|
60
|
+
>
|
|
61
|
+
<b2b-grid-col
|
|
62
|
+
><div style="${gridBoxStyles}">
|
|
63
|
+
<h4>Column 8 of 12</h4>
|
|
64
|
+
<p>I grow to fill up all available space</p>
|
|
65
|
+
</div></b2b-grid-col
|
|
66
|
+
>
|
|
67
|
+
<b2b-grid-col
|
|
68
|
+
><div style="${gridBoxStyles}">
|
|
69
|
+
<h4>Column 9 of 12</h4>
|
|
70
|
+
<p>I grow to fill up all available space</p>
|
|
71
|
+
</div></b2b-grid-col
|
|
72
|
+
>
|
|
73
|
+
<b2b-grid-col span="3"
|
|
74
|
+
><div style="${gridBoxStyles}">
|
|
75
|
+
<h4>Column 10-12 of 12</h4>
|
|
76
|
+
<p>Resize me by changing the span attribute in the args table.</p>
|
|
77
|
+
</div></b2b-grid-col
|
|
78
|
+
>
|
|
79
|
+
</b2b-grid-row>
|
|
80
|
+
</b2b-grid>`;
|
|
80
81
|
},
|
|
81
82
|
};
|
|
82
83
|
export const story020AlignItems = {
|
|
@@ -92,43 +93,43 @@ export const story020AlignItems = {
|
|
|
92
93
|
render: (_a) => {
|
|
93
94
|
var args = __rest(_a, []);
|
|
94
95
|
return html `<b2b-grid
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
96
|
+
><b2b-grid-row
|
|
97
|
+
align-items="${args.alignItems}"
|
|
98
|
+
justify="${args.justify}"
|
|
99
|
+
row-gap="${args.rowGap}"
|
|
100
|
+
column-gap="${args.columnGap}">
|
|
101
|
+
<b2b-grid-col span="2"
|
|
102
|
+
><div style="${gridBoxSmallStyles}">
|
|
103
|
+
<h4>Column 1-2 of 12</h4>
|
|
104
|
+
</div></b2b-grid-col
|
|
105
|
+
>
|
|
106
|
+
<b2b-grid-col span="2"
|
|
107
|
+
><div style="${gridBoxStyles}">
|
|
108
|
+
<h4>Column 3-4 of 12</h4>
|
|
109
|
+
</div></b2b-grid-col
|
|
110
|
+
>
|
|
111
|
+
<b2b-grid-col span="2"
|
|
112
|
+
><div style="${gridBoxSmallStyles}">
|
|
113
|
+
<h4>Column 5-6 of 12</h4>
|
|
114
|
+
</div></b2b-grid-col
|
|
115
|
+
>
|
|
116
|
+
<b2b-grid-col span="2"
|
|
117
|
+
><div style="${gridBoxStyles}">
|
|
118
|
+
<h4>Column 7-8 of 12</h4>
|
|
119
|
+
</div></b2b-grid-col
|
|
120
|
+
>
|
|
121
|
+
<b2b-grid-col span="2"
|
|
122
|
+
><div style="${gridBoxSmallStyles}">
|
|
123
|
+
<h4>Column 9-10 of 12</h4>
|
|
124
|
+
</div></b2b-grid-col
|
|
125
|
+
>
|
|
126
|
+
<b2b-grid-col span="2"
|
|
127
|
+
><div style="${gridBoxStyles}">
|
|
128
|
+
<h4>Column 11-12 of 12</h4>
|
|
129
|
+
</div></b2b-grid-col
|
|
130
|
+
>
|
|
131
|
+
</b2b-grid-row></b2b-grid
|
|
132
|
+
>`;
|
|
132
133
|
},
|
|
133
134
|
};
|
|
134
135
|
export const story030TextAlign = {
|
|
@@ -144,40 +145,41 @@ export const story030TextAlign = {
|
|
|
144
145
|
render: (_a) => {
|
|
145
146
|
var args = __rest(_a, []);
|
|
146
147
|
return html `<b2b-grid margin="${args.margin}">
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
148
|
+
<b2b-grid-row
|
|
149
|
+
justify="${args.justify}"
|
|
150
|
+
row-gap="${args.rowGap}"
|
|
151
|
+
column-gap="${args.columnGap}">
|
|
152
|
+
<b2b-grid-col span="6" text-align="${args.textAlign}"
|
|
153
|
+
><div style="${gridBoxStyles}">
|
|
154
|
+
<h4>Column 1-6 of 12</h4>
|
|
155
|
+
<p>
|
|
156
|
+
Lorem ipsum dolor sit amet, consectetur adipiscing elit.
|
|
157
|
+
Suspendisse massa urna, accumsan id viverra et, mollis sit amet
|
|
158
|
+
sem. Cras congue ex ac arcu pellentesque, eu vestibulum sem
|
|
159
|
+
tempor. Curabitur consequat massa sed nulla lacinia, vitae
|
|
160
|
+
scelerisque ante egestas. Praesent et diam quis diam posuere
|
|
161
|
+
egestas. Duis feugiat lorem non nisl consectetur, sed fringilla
|
|
162
|
+
odio semper.
|
|
163
|
+
</p>
|
|
164
|
+
</div></b2b-grid-col
|
|
165
|
+
>
|
|
166
|
+
<b2b-grid-col span="2"
|
|
167
|
+
><div style="${gridBoxStyles}">
|
|
168
|
+
<h4>Column 7-8 of 12</h4>
|
|
169
|
+
</div></b2b-grid-col
|
|
170
|
+
>
|
|
171
|
+
<b2b-grid-col span="2"
|
|
172
|
+
><div style="${gridBoxStyles}">
|
|
173
|
+
<h4>Column 9-10 of 12</h4>
|
|
174
|
+
</div></b2b-grid-col
|
|
175
|
+
>
|
|
176
|
+
<b2b-grid-col span="2"
|
|
177
|
+
><div style="${gridBoxStyles}">
|
|
178
|
+
<h4>Column 11-12 of 12</h4>
|
|
179
|
+
</div></b2b-grid-col
|
|
180
|
+
></b2b-grid-row
|
|
181
|
+
></b2b-grid
|
|
182
|
+
>`;
|
|
181
183
|
},
|
|
182
184
|
};
|
|
183
185
|
export const story040Justify = {
|
|
@@ -193,39 +195,40 @@ export const story040Justify = {
|
|
|
193
195
|
render: (_a) => {
|
|
194
196
|
var args = __rest(_a, []);
|
|
195
197
|
return html `<b2b-grid margin="${args.margin}">
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
198
|
+
<b2b-grid-row
|
|
199
|
+
justify="${args.justify}"
|
|
200
|
+
row-gap="${args.rowGap}"
|
|
201
|
+
column-gap="${args.columnGap}">
|
|
202
|
+
<b2b-grid-col span="6" text-align="${args.textAlign}"
|
|
203
|
+
><div style="${gridBoxStyles}">
|
|
204
|
+
<h4>Column 1-6 of 12</h4>
|
|
205
|
+
<p>
|
|
206
|
+
Lorem ipsum dolor sit amet, consectetur adipiscing elit.
|
|
207
|
+
Suspendisse massa urna, accumsan id viverra et, mollis sit amet
|
|
208
|
+
sem. Cras congue ex ac arcu pellentesque, eu vestibulum sem
|
|
209
|
+
tempor. Curabitur consequat massa sed nulla lacinia, vitae
|
|
210
|
+
scelerisque ante egestas. Praesent et diam quis diam posuere
|
|
211
|
+
egestas. Duis feugiat lorem non nisl consectetur, sed fringilla
|
|
212
|
+
odio semper.
|
|
213
|
+
</p>
|
|
214
|
+
</div></b2b-grid-col
|
|
215
|
+
>
|
|
216
|
+
<b2b-grid-col span="2"
|
|
217
|
+
><div style="${gridBoxStyles}">
|
|
218
|
+
<h4>Column 7-8 of 12</h4>
|
|
219
|
+
</div></b2b-grid-col
|
|
220
|
+
>
|
|
221
|
+
<b2b-grid-col span="2"
|
|
222
|
+
><div style="${gridBoxStyles}">
|
|
223
|
+
<h4>Column 9-10 of 12</h4>
|
|
224
|
+
</div></b2b-grid-col
|
|
225
|
+
>
|
|
226
|
+
<b2b-grid-col span="2"
|
|
227
|
+
><div style="${gridBoxStyles}">
|
|
228
|
+
<h4>Column 11-12 of 12</h4>
|
|
229
|
+
</div></b2b-grid-col
|
|
230
|
+
></b2b-grid-row
|
|
231
|
+
></b2b-grid
|
|
232
|
+
>`;
|
|
230
233
|
},
|
|
231
234
|
};
|
|
@@ -9,36 +9,90 @@ export class B2bGridRowComponent {
|
|
|
9
9
|
componentDidLoad() {
|
|
10
10
|
this.adjustColumnFlex();
|
|
11
11
|
}
|
|
12
|
+
calculateRowsAndsSpaceForColumnsWithSpan(columns, currentRowTotal, rows, currentRow) {
|
|
13
|
+
columns.forEach(column => {
|
|
14
|
+
let span = parseInt(column.getAttribute('span'), 10);
|
|
15
|
+
if (currentRowTotal + span > 12) {
|
|
16
|
+
rows.push(currentRow);
|
|
17
|
+
currentRow = [];
|
|
18
|
+
currentRowTotal = 0;
|
|
19
|
+
}
|
|
20
|
+
currentRow.push(column);
|
|
21
|
+
currentRowTotal += span;
|
|
22
|
+
});
|
|
23
|
+
if (currentRow.length > 0) {
|
|
24
|
+
rows.push(currentRow);
|
|
25
|
+
}
|
|
26
|
+
}
|
|
12
27
|
adjustColumnFlex() {
|
|
13
28
|
const columns = this.hostElement.querySelectorAll(':scope > b2b-grid-col');
|
|
14
29
|
let totalSpan = 0;
|
|
15
30
|
let columnsWithoutSpan = [];
|
|
31
|
+
let columnsWithSpan = [];
|
|
16
32
|
columns.forEach((column) => {
|
|
17
33
|
const span = column.getAttribute('span');
|
|
18
34
|
if (span) {
|
|
19
35
|
totalSpan += parseInt(span, 10);
|
|
36
|
+
columnsWithSpan.push(column);
|
|
20
37
|
}
|
|
21
38
|
else {
|
|
22
39
|
columnsWithoutSpan.push(column);
|
|
23
40
|
}
|
|
24
41
|
});
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
columnsWithoutSpan.forEach(column => {
|
|
28
|
-
column.style.width = '100%';
|
|
29
|
-
});
|
|
42
|
+
if (totalSpan > 12 && columnsWithoutSpan.length === 0) {
|
|
43
|
+
this.handleOverflowingColumns(columnsWithSpan);
|
|
30
44
|
return;
|
|
31
45
|
}
|
|
32
46
|
if (columnsWithoutSpan.length > 0) {
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
47
|
+
this.handleRowsWithColumnsWithoutSpan(columnsWithoutSpan, columnsWithSpan, totalSpan);
|
|
48
|
+
return;
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
handleOverflowingColumns(columns) {
|
|
52
|
+
let rows = [];
|
|
53
|
+
let currentRow = [];
|
|
54
|
+
let currentRowTotal = 0;
|
|
55
|
+
this.calculateRowsAndsSpaceForColumnsWithSpan(columns, currentRowTotal, rows, currentRow);
|
|
56
|
+
rows.forEach(row => {
|
|
57
|
+
row.forEach(column => {
|
|
58
|
+
let span = parseInt(column.getAttribute('span'), 10);
|
|
59
|
+
let widthPercentage = (span / 12) * 100;
|
|
60
|
+
column.style.flex = `0 0 calc(${widthPercentage}% - ${this.columnGap}px)`;
|
|
61
|
+
column.style.maxWidth = `calc(${widthPercentage}% - ${this.columnGap}px)`;
|
|
37
62
|
});
|
|
63
|
+
});
|
|
64
|
+
}
|
|
65
|
+
handleRowsWithColumnsWithoutSpan(columnsWithoutSpan, columnsWithSpan, totalSpan) {
|
|
66
|
+
let remainingSpan = 12 - totalSpan <= 0 ? 12 : 12 - totalSpan;
|
|
67
|
+
let rows = [];
|
|
68
|
+
let currentRow = [];
|
|
69
|
+
let currentRowTotal = 0;
|
|
70
|
+
this.calculateRowsAndsSpaceForColumnsWithSpan(columnsWithSpan, currentRowTotal, rows, currentRow);
|
|
71
|
+
columnsWithoutSpan.forEach(column => {
|
|
72
|
+
let spanPerColumn = Math.max(1, Math.floor(remainingSpan / columnsWithoutSpan.length));
|
|
73
|
+
if (currentRowTotal + spanPerColumn > 12) {
|
|
74
|
+
rows.push(currentRow);
|
|
75
|
+
currentRow = [];
|
|
76
|
+
currentRowTotal = 0;
|
|
77
|
+
}
|
|
78
|
+
column.setAttribute('span', spanPerColumn.toString());
|
|
79
|
+
currentRow.push(column);
|
|
80
|
+
currentRowTotal += spanPerColumn;
|
|
81
|
+
});
|
|
82
|
+
if (currentRow.length > 0) {
|
|
83
|
+
rows.push(currentRow);
|
|
38
84
|
}
|
|
85
|
+
rows.forEach(row => {
|
|
86
|
+
row.forEach(column => {
|
|
87
|
+
let span = parseInt(column.getAttribute('span'), 10) || 1;
|
|
88
|
+
let widthPercentage = (span / 12) * 100;
|
|
89
|
+
column.style.flex = `0 0 calc(${widthPercentage}% - ${this.columnGap}px)`;
|
|
90
|
+
column.style.maxWidth = `calc(${widthPercentage}% - ${this.columnGap}px)`;
|
|
91
|
+
});
|
|
92
|
+
});
|
|
39
93
|
}
|
|
40
94
|
render() {
|
|
41
|
-
return (h(Host, { key: '
|
|
95
|
+
return (h(Host, { key: '348d0627a954387d90980e420931f2609973f9ab', style: {
|
|
42
96
|
['justify-content']: `${this.justify}`,
|
|
43
97
|
['gap']: `${this.columnGap}px`,
|
|
44
98
|
['margin']: `${this.rowGap}px 0`,
|
|
@@ -46,7 +100,7 @@ export class B2bGridRowComponent {
|
|
|
46
100
|
['display']: 'flex',
|
|
47
101
|
['flex-wrap']: 'wrap',
|
|
48
102
|
['box-sizing']: 'border-box',
|
|
49
|
-
} }, h("slot", { key: '
|
|
103
|
+
} }, h("slot", { key: '6c2fd302ccf7be951dbcf14b548e8f7c83ea542e' })));
|
|
50
104
|
}
|
|
51
105
|
static get is() { return "b2b-grid-row"; }
|
|
52
106
|
static get encapsulation() { return "shadow"; }
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Do not edit directly
|
|
3
|
-
* Generated on
|
|
3
|
+
* Generated on Thu, 20 Mar 2025 06:20:36 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 Thu, 20 Mar 2025 06:20:36 GMT
|
|
127
127
|
*/
|
|
128
128
|
:root [data-theme="dark"] {
|
|
129
129
|
--b2b-size-200: 5rem; /* 80px */
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Do not edit directly
|
|
3
|
-
* Generated on
|
|
3
|
+
* Generated on Thu, 20 Mar 2025 06:20:36 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 Thu, 20 Mar 2025 06:20:36 GMT
|
|
127
127
|
*/
|
|
128
128
|
:root [data-theme="dark"] {
|
|
129
129
|
--b2b-size-200: 5rem; /* 80px */
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Do not edit directly
|
|
3
|
-
* Generated on
|
|
3
|
+
* Generated on Thu, 20 Mar 2025 06:20:36 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 Thu, 20 Mar 2025 06:20:36 GMT
|
|
127
127
|
*/
|
|
128
128
|
:root [data-theme="dark"] {
|
|
129
129
|
--b2b-size-200: 5rem; /* 80px */
|
|
@@ -33,11 +33,11 @@ const meta = {
|
|
|
33
33
|
render: (_a) => {
|
|
34
34
|
var args = __rest(_a, []);
|
|
35
35
|
return html `<b2b-icon-100
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
36
|
+
icon="${args.icon}"
|
|
37
|
+
color="${args.color}"
|
|
38
|
+
size="${args.size}"
|
|
39
|
+
clickable="${args.clickable}"
|
|
40
|
+
focusable="${args.focusable}"></b2b-icon-100>`;
|
|
41
41
|
},
|
|
42
42
|
};
|
|
43
43
|
export default meta;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Do not edit directly
|
|
3
|
-
* Generated on
|
|
3
|
+
* Generated on Thu, 20 Mar 2025 06:20:36 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 Thu, 20 Mar 2025 06:20:36 GMT
|
|
127
127
|
*/
|
|
128
128
|
:root [data-theme="dark"] {
|
|
129
129
|
--b2b-size-200: 5rem; /* 80px */
|