@otto-de/b2b-core-components 1.24.0 → 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-225e561a.entry.js +1 -0
- 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-9e3d9908.entry.js +1 -0
- package/dist/b2b-core-components/p-b9cc3f9f.entry.js +1 -0
- package/dist/b2b-core-components/p-e73552ea.entry.js +1 -0
- package/dist/cjs/b2b-background-box.cjs.entry.js +5 -5
- 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-snackbar.cjs.entry.js +5 -4
- package/dist/cjs/loader.cjs.js +1 -1
- 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 +2 -2
- 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/tab/tab.css +2 -2
- package/dist/collection/components/tab-panel/tab-panel.css +2 -2
- package/dist/collection/components/table/table-cell/table-cell.css +2 -2
- package/dist/collection/components/table/table-header/table-header.css +2 -2
- package/dist/collection/components/table/table-row/table-row.css +2 -2
- package/dist/collection/components/table/table-rowgroup/table-rowgroup.css +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.stories.js +157 -157
- package/dist/collection/components/textarea/textarea.css +2 -2
- package/dist/collection/components/toggle-button/toggle-button.css +2 -2
- package/dist/collection/components/toggle-chip/toggle-chip.css +2 -2
- 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-switch/toggle-switch.css +2 -2
- 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/wizard/wizard.css +2 -2
- package/dist/collection/components/wizard-icon/wizard-icon.css +2 -2
- 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-snackbar.js +7 -5
- package/dist/components/input-group.js +1 -1
- package/dist/components/input.js +27 -6
- package/dist/custom-elements.json +18 -2
- package/dist/esm/b2b-background-box.entry.js +5 -5
- 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-snackbar.entry.js +5 -4
- 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/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 +36 -4
- package/dist/web-types.json +42 -3
- package/package.json +21 -16
- package/dist/b2b-core-components/p-191b7d0b.entry.js +0 -1
- package/dist/b2b-core-components/p-2b5b4472.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-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 Thu,
|
|
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 Thu,
|
|
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 Thu,
|
|
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 Thu,
|
|
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 Thu,
|
|
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 Thu,
|
|
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 Thu,
|
|
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 Thu,
|
|
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 Thu,
|
|
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 Thu,
|
|
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 Thu,
|
|
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 Thu,
|
|
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 Thu,
|
|
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 Thu,
|
|
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 Thu,
|
|
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 Thu,
|
|
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 */
|
|
@@ -2,7 +2,8 @@ import { newE2EPage } from "@stencil/core/testing";
|
|
|
2
2
|
describe('B2B-Table', () => {
|
|
3
3
|
let page;
|
|
4
4
|
beforeEach(async () => {
|
|
5
|
-
page = await newE2EPage(
|
|
5
|
+
page = await newE2EPage();
|
|
6
|
+
page.setDefaultTimeout(10000);
|
|
6
7
|
await page.setContent(`
|
|
7
8
|
<b2b-table size='equal'>
|
|
8
9
|
<b2b-table-rowgroup type='header'>
|
|
@@ -64,11 +64,11 @@ const meta = {
|
|
|
64
64
|
${repeat(
|
|
65
65
|
// @ts-ignore
|
|
66
66
|
row, (cell, index) => html `<b2b-table-cell
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
67
|
+
?divider=${args.withDividers && index === 0}
|
|
68
|
+
align="${args.align}"
|
|
69
|
+
text-wrap="${args.textWrap}"
|
|
70
|
+
>${cell}</b2b-table-cell
|
|
71
|
+
>`)}<b2b-table-cell
|
|
72
72
|
><b2b-button size="50">Action</b2b-button></b2b-table-cell
|
|
73
73
|
>
|
|
74
74
|
</b2b-table-row>
|
|
@@ -110,36 +110,36 @@ export const ScrollableTable = {
|
|
|
110
110
|
render: (_a) => {
|
|
111
111
|
var args = __rest(_a, []);
|
|
112
112
|
return html `<b2b-scrollable-container
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
113
|
+
style="width: ${args.parentWidth}; height: ${args.parentHeight};">
|
|
114
|
+
<b2b-table size="${args.size}">
|
|
115
|
+
<b2b-table-rowgroup type="header">
|
|
116
|
+
<b2b-table-row>
|
|
117
|
+
${args.data.columns.map((columnName, index) => {
|
|
118
118
|
return html ` <b2b-table-header
|
|
119
|
-
|
|
119
|
+
?divider=${args.withDividers &&
|
|
120
120
|
index !== args.data.columns.length - 1}
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
121
|
+
style=${`min-width: ${args.columnsWidth}`}
|
|
122
|
+
>${columnName}</b2b-table-header
|
|
123
|
+
>`;
|
|
124
124
|
})}
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
125
|
+
</b2b-table-row>
|
|
126
|
+
</b2b-table-rowgroup>
|
|
127
|
+
<b2b-table-rowgroup type="body">
|
|
128
|
+
${args.data.rows.map((row, index) => {
|
|
129
129
|
return html `<b2b-table-row
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
130
|
+
highlight="${args.highlight}"
|
|
131
|
+
color=${index === 0 ? args.color : 'default'}>
|
|
132
|
+
${row.map((data, index) => html `<b2b-table-cell
|
|
133
|
+
?divider=${args.withDividers && index === 0}
|
|
134
|
+
align="${args.align}"
|
|
135
|
+
text-wrap="${args.textWrap}"
|
|
136
|
+
>${data}</b2b-table-cell
|
|
137
|
+
>`)}
|
|
138
|
+
</b2b-table-row>`;
|
|
139
139
|
})}
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
140
|
+
</b2b-table-rowgroup>
|
|
141
|
+
</b2b-table>
|
|
142
|
+
</b2b-scrollable-container>`;
|
|
143
143
|
},
|
|
144
144
|
};
|
|
145
145
|
const RenderSortableTable = (_a) => {
|
|
@@ -233,55 +233,55 @@ export const AccordionTable = {
|
|
|
233
233
|
render: (_a) => {
|
|
234
234
|
var args = __rest(_a, []);
|
|
235
235
|
return html `<div>
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
236
|
+
<b2b-table size="${args.size}">
|
|
237
|
+
<b2b-table-rowgroup type="header" accordion>
|
|
238
|
+
<b2b-table-row>
|
|
239
|
+
${args.data.columns.map((columnName, index) => {
|
|
240
240
|
return html ` <b2b-table-header
|
|
241
|
-
|
|
241
|
+
?divider=${args.withDividers &&
|
|
242
242
|
index !== args.data.columns.length - 1}
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
243
|
+
style=${index === 0 ? `width: ${args.firstColumnWidth}` : ''}
|
|
244
|
+
>${columnName}</b2b-table-header
|
|
245
|
+
>`;
|
|
246
246
|
})}
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
247
|
+
</b2b-table-row>
|
|
248
|
+
</b2b-table-rowgroup>
|
|
249
|
+
<b2b-table-rowgroup type="body" accordion>
|
|
250
|
+
${args.data.rows.map((row, index) => {
|
|
251
251
|
return html `<b2b-table-row
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
252
|
+
highlight="${args.highlight}"
|
|
253
|
+
color=${index === 0 ? args.color : 'default'}>
|
|
254
|
+
${row.map(data => html `<b2b-table-cell
|
|
255
|
+
?divider=${args.withDividers}
|
|
256
|
+
align="${args.align}"
|
|
257
|
+
text-wrap="${args.textWrap}"
|
|
258
|
+
>${data}</b2b-table-cell
|
|
259
|
+
>`)}
|
|
260
|
+
<b2b-table-cell
|
|
261
|
+
><b2b-button size="50">Action</b2b-button></b2b-table-cell
|
|
262
|
+
>
|
|
263
|
+
</b2b-table-row>`;
|
|
264
264
|
})}
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
265
|
+
</b2b-table-rowgroup>
|
|
266
|
+
<b2b-table-rowgroup type="body" accordion opened>
|
|
267
|
+
${args.data.rows.map((row, index) => {
|
|
268
268
|
return html `<b2b-table-row
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
269
|
+
highlight="${args.highlight}"
|
|
270
|
+
color=${index === 0 ? args.color : 'default'}>
|
|
271
|
+
${row.map(data => html `<b2b-table-cell
|
|
272
|
+
?divider=${args.withDividers}
|
|
273
|
+
align="${args.align}"
|
|
274
|
+
text-wrap="${args.textWrap}"
|
|
275
|
+
>${data}</b2b-table-cell
|
|
276
|
+
>`)}
|
|
277
|
+
<b2b-table-cell
|
|
278
|
+
><b2b-button size="50">Action</b2b-button></b2b-table-cell
|
|
279
|
+
>
|
|
280
|
+
</b2b-table-row>`;
|
|
281
281
|
})}
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
282
|
+
</b2b-table-rowgroup>
|
|
283
|
+
</b2b-table>
|
|
284
|
+
</div>`;
|
|
285
285
|
},
|
|
286
286
|
};
|
|
287
287
|
export const SelectableTable = {
|
|
@@ -289,55 +289,55 @@ export const SelectableTable = {
|
|
|
289
289
|
render: (_a) => {
|
|
290
290
|
var args = __rest(_a, []);
|
|
291
291
|
return html `<div>
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
292
|
+
<b2b-table size="${args.size}">
|
|
293
|
+
<b2b-table-rowgroup type="header" accordion selectable>
|
|
294
|
+
<b2b-table-row>
|
|
295
|
+
${args.data.columns.map((columnName, index) => {
|
|
296
296
|
return html ` <b2b-table-header
|
|
297
|
-
|
|
297
|
+
?divider=${args.withDividers &&
|
|
298
298
|
index !== args.data.columns.length - 1}
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
299
|
+
style=${index === 0 ? `width: ${args.firstColumnWidth}` : ''}
|
|
300
|
+
>${columnName}</b2b-table-header
|
|
301
|
+
>`;
|
|
302
302
|
})}
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
303
|
+
</b2b-table-row>
|
|
304
|
+
</b2b-table-rowgroup>
|
|
305
|
+
<b2b-table-rowgroup type="body" accordion selectable>
|
|
306
|
+
${args.data.rows.map((row, index) => {
|
|
307
307
|
return html `<b2b-table-row
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
308
|
+
highlight="${args.highlight}"
|
|
309
|
+
color=${index === 0 ? args.color : 'default'}>
|
|
310
|
+
${row.map(data => html `<b2b-table-cell
|
|
311
|
+
?divider=${args.withDividers}
|
|
312
|
+
align="${args.align}"
|
|
313
|
+
text-wrap="${args.textWrap}"
|
|
314
|
+
>${data}</b2b-table-cell
|
|
315
|
+
>`)}
|
|
316
|
+
<b2b-table-cell
|
|
317
|
+
><b2b-button size="50">Action</b2b-button></b2b-table-cell
|
|
318
|
+
>
|
|
319
|
+
</b2b-table-row>`;
|
|
320
320
|
})}
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
321
|
+
</b2b-table-rowgroup>
|
|
322
|
+
<b2b-table-rowgroup type="body" accordion opened selectable>
|
|
323
|
+
${args.data.rows.map((row, index) => {
|
|
324
324
|
return html `<b2b-table-row
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
325
|
+
highlight="${args.highlight}"
|
|
326
|
+
color=${index === 0 ? args.color : 'default'}>
|
|
327
|
+
${row.map(data => html `<b2b-table-cell
|
|
328
|
+
?divider=${args.withDividers}
|
|
329
|
+
align="${args.align}"
|
|
330
|
+
text-wrap="${args.textWrap}"
|
|
331
|
+
>${data}</b2b-table-cell
|
|
332
|
+
>`)}
|
|
333
|
+
<b2b-table-cell
|
|
334
|
+
><b2b-button size="50">Action</b2b-button></b2b-table-cell
|
|
335
|
+
>
|
|
336
|
+
</b2b-table-row>`;
|
|
337
337
|
})}
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
338
|
+
</b2b-table-rowgroup>
|
|
339
|
+
</b2b-table>
|
|
340
|
+
</div>`;
|
|
341
341
|
},
|
|
342
342
|
};
|
|
343
343
|
export const ColspanTable = {
|
|
@@ -345,48 +345,48 @@ export const ColspanTable = {
|
|
|
345
345
|
render: (_a) => {
|
|
346
346
|
var args = __rest(_a, []);
|
|
347
347
|
return html `<div style="width: 500px">
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
348
|
+
<b2b-table size="${args.size}">
|
|
349
|
+
<b2b-table-rowgroup type="header" selectable="${args.selectable}">
|
|
350
|
+
<b2b-table-row>
|
|
351
|
+
<b2b-table-header divider="${args.withDividers}" colspan="2"
|
|
352
|
+
>2 Columns</b2b-table-header
|
|
353
|
+
>
|
|
354
|
+
<b2b-table-header divider="${args.withDividers}"
|
|
355
|
+
>1 Column</b2b-table-header
|
|
356
|
+
>
|
|
357
|
+
<b2b-table-header>1 Column</b2b-table-header>
|
|
358
|
+
</b2b-table-row>
|
|
359
|
+
</b2b-table-rowgroup>
|
|
360
|
+
<b2b-table-rowgroup type="body" selectable="${args.selectable}">
|
|
361
|
+
<b2b-table-row>
|
|
362
|
+
<b2b-table-cell divider="${args.withDividers}"
|
|
363
|
+
>1 Column</b2b-table-cell
|
|
364
|
+
>
|
|
365
|
+
<b2b-table-cell colspan="3">3 Columns</b2b-table-cell>
|
|
366
|
+
</b2b-table-row>
|
|
367
|
+
<b2b-table-row>
|
|
368
|
+
<b2b-table-cell divider="${args.withDividers}"
|
|
369
|
+
>1 Column</b2b-table-cell
|
|
370
|
+
>
|
|
371
|
+
<b2b-table-cell divider="${args.withDividers}"
|
|
372
|
+
>1 Column</b2b-table-cell
|
|
373
|
+
>
|
|
374
|
+
<b2b-table-cell divider="${args.withDividers}"
|
|
375
|
+
>1 Column</b2b-table-cell
|
|
376
|
+
>
|
|
377
|
+
<b2b-table-cell>1 Column</b2b-table-cell>
|
|
378
|
+
</b2b-table-row>
|
|
379
|
+
<b2b-table-row>
|
|
380
|
+
<b2b-table-cell divider="${args.withDividers}" colspan="2"
|
|
381
|
+
>2 Columns</b2b-table-cell
|
|
382
|
+
>
|
|
383
|
+
<b2b-table-cell divider="${args.withDividers}"
|
|
384
|
+
>1 Column</b2b-table-cell
|
|
385
|
+
>
|
|
386
|
+
<b2b-table-cell>1 Column</b2b-table-cell>
|
|
387
|
+
</b2b-table-row>
|
|
388
|
+
</b2b-table-rowgroup>
|
|
389
|
+
</b2b-table>
|
|
390
|
+
</div>`;
|
|
391
391
|
},
|
|
392
392
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Do not edit directly
|
|
3
|
-
* Generated on Thu,
|
|
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 Thu,
|
|
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 Thu,
|
|
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 Thu,
|
|
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 Thu,
|
|
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 Thu,
|
|
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 */
|
|
@@ -11,7 +11,6 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
11
11
|
return t;
|
|
12
12
|
};
|
|
13
13
|
import { html } from "lit-html";
|
|
14
|
-
import { getArgTypes } from "../../docs/config/utils";
|
|
15
14
|
const meta = {
|
|
16
15
|
title: 'Components/Interaction/Toggle Chip',
|
|
17
16
|
component: 'b2b-toggle-chip',
|
|
@@ -21,7 +20,20 @@ const meta = {
|
|
|
21
20
|
active: false,
|
|
22
21
|
disabled: false,
|
|
23
22
|
},
|
|
24
|
-
argTypes:
|
|
23
|
+
argTypes: {
|
|
24
|
+
label: {
|
|
25
|
+
control: 'text',
|
|
26
|
+
},
|
|
27
|
+
name: {
|
|
28
|
+
control: 'text',
|
|
29
|
+
},
|
|
30
|
+
active: {
|
|
31
|
+
control: 'boolean',
|
|
32
|
+
},
|
|
33
|
+
disabled: {
|
|
34
|
+
control: 'boolean',
|
|
35
|
+
},
|
|
36
|
+
},
|
|
25
37
|
render: (_a) => {
|
|
26
38
|
var args = __rest(_a, []);
|
|
27
39
|
return html ` <b2b-toggle-chip
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Do not edit directly
|
|
3
|
-
* Generated on Thu,
|
|
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 Thu,
|
|
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 Thu,
|
|
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 Thu,
|
|
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 */
|