@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
|
@@ -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
|
|
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 */
|
|
@@ -45,10 +45,10 @@ export class B2BTextareaComponent {
|
|
|
45
45
|
}
|
|
46
46
|
}
|
|
47
47
|
render() {
|
|
48
|
-
return (h(Host, { key: '
|
|
48
|
+
return (h(Host, { key: 'dd2881928405f65eb0e6e142c4241a0f985053bc', class: {
|
|
49
49
|
'b2b-textarea': true,
|
|
50
50
|
'b2b-textarea--error': this.invalid && !this.disabled,
|
|
51
|
-
} }, this.label && (h("b2b-input-label", { id: this.name, required: this.required }, this.label)), h("textarea", { key: '
|
|
51
|
+
} }, this.label && (h("b2b-input-label", { id: this.name, required: this.required }, this.label)), h("textarea", { key: '05a53ba78cef9e2558226d99a04eefeed3b1a549', class: "textarea-input", "aria-labelledby": this.name, style: Object.assign({ height: this.height }, (Boolean(this.resize) && { resize: this.resize })), value: this.value, name: this.name, placeholder: this.placeholder, disabled: this.disabled, autoFocus: this.autofocus, onFocus: this.onFocus, onBlur: this.onBlur, onInput: this.onInput, maxLength: this.maxLength }), (this.hint !== undefined && !this.invalid) ||
|
|
52
52
|
(this.hint !== undefined && this.disabled) ? (h("span", null, this.hint)) : (''), this.error !== undefined && this.invalid && !this.disabled ? (h("span", null, this.error)) : ('')));
|
|
53
53
|
}
|
|
54
54
|
static get is() { return "b2b-textarea"; }
|
|
@@ -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 */
|
|
@@ -31,13 +31,13 @@ export class B2bToggleButtonComponent {
|
|
|
31
31
|
return Array.from(document.querySelectorAll(`b2b-toggle-button[name="${this.name}"]`)).filter((toggle) => toggle.value !== this.value);
|
|
32
32
|
}
|
|
33
33
|
render() {
|
|
34
|
-
return (h(Host, { key: '
|
|
34
|
+
return (h(Host, { key: '255ef8569e3f8ef1bb9bbb5c48a423dbadcb2f72', onClick: this.onClick }, h("span", { key: '1511b7dc188f7e9285d4d443500b8b0551c7956d', class: {
|
|
35
35
|
'b2b-toggle-button': true,
|
|
36
36
|
'b2b-toggle-button--disabled': this.disabled,
|
|
37
|
-
} }, h("input", { key: '
|
|
37
|
+
} }, h("input", { key: '0cfccff92c1470e2d3e62ee9c09bed049e5ba2f6', tabindex: 0, class: {
|
|
38
38
|
'b2b-toggle-button__input': true,
|
|
39
39
|
'b2b-toggle-button__input--disabled': this.disabled,
|
|
40
|
-
}, "aria-labelledby": this.name, type: "radio", checked: this.checked && !this.disabled, disabled: this.disabled, name: this.name, value: this.value }), h("label", { key: '
|
|
40
|
+
}, "aria-labelledby": this.name, type: "radio", checked: this.checked && !this.disabled, disabled: this.disabled, name: this.name, value: this.value }), h("label", { key: 'f99e5fce510f5979b5281b24616000d80f80c457', id: this.name, tabindex: -1, class: {
|
|
41
41
|
'b2b-toggle-button__label': true,
|
|
42
42
|
'b2b-toggle-button__label--disabled': this.disabled,
|
|
43
43
|
'b2b-toggle-button__label--checked': this.checked && !this.disabled,
|
|
@@ -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 */
|
|
@@ -32,11 +32,11 @@ export class B2BToggleChipComponent {
|
|
|
32
32
|
this.disabled = false;
|
|
33
33
|
}
|
|
34
34
|
render() {
|
|
35
|
-
return (h(Host, { key: '
|
|
35
|
+
return (h(Host, { key: '3eed467bbc6068073c8bd601115fc54b3b6f3fe0' }, h("span", { key: '4a94f8cb72a4f129df07b39c0676b7a51b309d77', onClick: this.onClick, onKeyDown: this.onKeyDown, class: {
|
|
36
36
|
'b2b-toggle-chip': true,
|
|
37
|
-
} }, h("input", { key: '
|
|
37
|
+
} }, h("input", { key: '38d66b138ffc4215fe22d430c3c396f09c763a86', "aria-labelledby": this.name, tabindex: this.disabled ? -1 : 0, class: {
|
|
38
38
|
'b2b-toggle-chip__input': true,
|
|
39
|
-
}, type: "checkbox", checked: this.active && !this.disabled, disabled: this.disabled, name: this.name, value: this.value }), h("label", { key: '
|
|
39
|
+
}, type: "checkbox", checked: this.active && !this.disabled, disabled: this.disabled, name: this.name, value: this.value }), h("label", { key: '3b29bd1cfb6d0387715d8d151f024dc369071a47', id: this.name, tabIndex: -1, class: {
|
|
40
40
|
'b2b-toggle-chip__label': true,
|
|
41
41
|
'b2b-toggle-chip__label--active': this.active && !this.disabled,
|
|
42
42
|
'b2b-toggle-chip__label--disabled': this.disabled,
|
|
@@ -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
|
|
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 */
|
|
@@ -45,10 +45,10 @@ export class B2BToggleGroup {
|
|
|
45
45
|
}
|
|
46
46
|
}
|
|
47
47
|
render() {
|
|
48
|
-
return (h(Host, { key: '
|
|
48
|
+
return (h(Host, { key: '2736df48eff433ad9040e2cad8668b1a08e97c25' }, h("div", { key: '32c10360a73e3c901d4b244ed9584290365b70b1', class: {
|
|
49
49
|
'b2b-toggle-group': true,
|
|
50
50
|
'b2b-toggle-group--disabled': this.disabled,
|
|
51
|
-
} }, h("fieldset", { key: '
|
|
51
|
+
} }, h("fieldset", { key: '053f62bdb8a5293b2c5e9f8e55686181726f6870' }, h("slot", { key: 'a25c46e0def62b2bf31228e350eaf2d78580b661' })))));
|
|
52
52
|
}
|
|
53
53
|
static get is() { return "b2b-toggle-group"; }
|
|
54
54
|
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 */
|
|
@@ -38,17 +38,17 @@ export class B2bToggleSwitchComponent {
|
|
|
38
38
|
render() {
|
|
39
39
|
// workaround for purgecss as safelist doesn't work
|
|
40
40
|
const isLeft = this.labelPosition === 'left';
|
|
41
|
-
return (h(Host, { key: '
|
|
41
|
+
return (h(Host, { key: '75acfc0ca73754d89f4fb2400de58c4684177bb1' }, h("div", { key: '8c3ba099e53c97877391b19cbf75f6e2a767cc8b', class: {
|
|
42
42
|
'b2b-toggle': true,
|
|
43
43
|
'b2b-toggle--disabled': this.disabled,
|
|
44
44
|
'b2b-toggle--checked': this.state,
|
|
45
|
-
} }, h("div", { key: '
|
|
45
|
+
} }, h("div", { key: '400f2c983e0583087e6d44d10885bfd433128bea', class: {
|
|
46
46
|
'b2b-toggle__label': true,
|
|
47
47
|
'b2b-toggle__label--left': isLeft,
|
|
48
|
-
} }, h("span", { key: '
|
|
48
|
+
} }, h("span", { key: 'fc8a40bc9e89a506482df840f6ded6d9417e3424', class: "b2b-toggle__switch", role: "switch", tabIndex: 0, onKeyDown: this.onKeyDown, onClick: this.onClick }, h("svg", { key: 'b8dc5e77008cd4c50b2add85696367e9911b1a49', class: {
|
|
49
49
|
'b2b-toggle__icon': true,
|
|
50
50
|
'b2b-toggle__icon--show': this.state,
|
|
51
|
-
}, xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 30 30" }, h("path", { key: '
|
|
51
|
+
}, xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 30 30" }, h("path", { key: '5f858db03eccfcd5b5c93f1d0fd4cfbb502b49e5', d: "M11.798 25.082c-.341 0-.681-.13-.942-.389l-7.132-7.115a1.334 1.334 0 0 1 1.884-1.888l6.19 6.175L26.391 7.307a1.334 1.334 0 0 1 1.884 1.888L12.74 24.693c-.26.259-.601.389-.942.389z" }))), this.label && (h("span", { class: {
|
|
52
52
|
'b2b-toggle__text': true,
|
|
53
53
|
'b2b-toggle__text--left': isLeft,
|
|
54
54
|
} }, this.label))))));
|
|
@@ -25,10 +25,10 @@ const meta = {
|
|
|
25
25
|
render: (_a) => {
|
|
26
26
|
var args = __rest(_a, []);
|
|
27
27
|
return html `<b2b-toggle-switch
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
28
|
+
label="${args.label}"
|
|
29
|
+
disabled="${args.disabled}"
|
|
30
|
+
label-position="${args.labelPosition}"
|
|
31
|
+
state="${args.state}" />`;
|
|
32
32
|
},
|
|
33
33
|
};
|
|
34
34
|
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 */
|
|
@@ -59,13 +59,13 @@ export class B2BTooltipComponent {
|
|
|
59
59
|
}
|
|
60
60
|
}
|
|
61
61
|
render() {
|
|
62
|
-
return (h(Host, { key: '
|
|
62
|
+
return (h(Host, { key: 'f9a6137367e0fba411d1fa120da93e9285c17e3b', onMouseEnter: this.onMouseEnter, onMouseLeave: this.onMouseLeave }, h("span", { key: '22bee575f4c47158cd075c9797ac98c647839d36', class: {
|
|
63
63
|
[`b2b-tooltip--${this.position}`]: true,
|
|
64
64
|
'b2b-tooltip__trigger': true,
|
|
65
|
-
} }, h("slot", { key: '
|
|
65
|
+
} }, h("slot", { key: '1cf6cc406c9aa2e214e8243f24ebebd1c740b971' }), h("div", { key: 'ef39ce548f77cc800583a378a604fd63cab6abfe', class: {
|
|
66
66
|
'b2b-tooltip__content': true,
|
|
67
67
|
'b2b-tooltip--visible': this.opened,
|
|
68
|
-
} }, h("slot", { key: '
|
|
68
|
+
} }, h("slot", { key: '19d707e1d91109773e22aec89fece5604b9f54df', name: "content" }, this.content)))));
|
|
69
69
|
}
|
|
70
70
|
static get is() { return "b2b-tooltip"; }
|
|
71
71
|
static get encapsulation() { return "shadow"; }
|