@otto-de/b2b-core-components 1.37.0 → 1.37.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/collection/components/alert/alert.stories.js +5 -5
- package/dist/collection/components/anchor/anchor.stories.js +6 -6
- package/dist/collection/components/background-box/background-box.stories.js +6 -6
- package/dist/collection/components/breadcrumb/breadcrumb.stories.js +3 -5
- package/dist/collection/components/button/button.stories.js +41 -41
- package/dist/collection/components/card/card.stories.js +1 -1
- package/dist/collection/components/checkbox/checkbox.stories.js +9 -9
- package/dist/collection/components/checkbox-group/checkbox-group.stories.js +9 -9
- package/dist/collection/components/chip/chip.stories.js +13 -13
- package/dist/collection/components/custom-dropdown/custom-dropdown.stories.js +47 -47
- package/dist/collection/components/date-picker/date-picker.stories.js +2 -2
- package/dist/collection/components/dropdown/dropdown.stories.js +9 -9
- package/dist/collection/components/flyout-menu/flyout-menu.stories.js +4 -4
- package/dist/collection/components/grid/grid.stories.js +38 -38
- package/dist/collection/components/headline/headline.stories.js +1 -4
- package/dist/collection/components/icon/icon.stories.js +5 -8
- package/dist/collection/components/icon-100/icon-100.stories.js +11 -11
- package/dist/collection/components/icon-50/icon-50.stories.js +9 -9
- package/dist/collection/components/input/input.stories.js +44 -44
- package/dist/collection/components/input-group/input-group.stories.js +4 -4
- package/dist/collection/components/input-list/input-list.stories.js +13 -13
- package/dist/collection/components/label/label.stories.js +1 -1
- package/dist/collection/components/modal/modal.stories.js +5 -5
- package/dist/collection/components/pagination/pagination.stories.js +2 -2
- package/dist/collection/components/paragraph/paragraph.stories.js +18 -18
- package/dist/collection/components/progress-bar/progress-bar.stories.js +4 -4
- package/dist/collection/components/radio/radio.stories.js +9 -9
- package/dist/collection/components/radio-group/radio-group.stories.js +10 -10
- package/dist/collection/components/required-separator/required-separator.stories.js +1 -1
- package/dist/collection/components/rounded-icon/rounded-icon.stories.js +3 -3
- package/dist/collection/components/search/search.stories.js +2 -2
- package/dist/collection/components/separator/separator.stories.js +2 -2
- package/dist/collection/components/shimmer/shimmer.js +1 -1
- package/dist/collection/components/shimmer/shimmer.stories.js +4 -4
- package/dist/collection/components/snackbar/snackbar.stories.js +8 -8
- package/dist/collection/components/spinner/spinner.stories.js +1 -1
- package/dist/collection/components/tab-group/tab-group.stories.js +1 -1
- package/dist/collection/components/table/table.stories.js +35 -35
- package/dist/collection/components/textarea/textarea.stories.js +12 -12
- package/dist/collection/components/toggle-group/toggle-group.stories.js +6 -6
- package/dist/collection/components/toggle-switch/toggle-switch.stories.js +4 -4
- package/dist/collection/components/tooltip/tooltip.stories.js +8 -8
- package/dist/collection/components/wizard/wizard.stories.js +6 -6
- package/dist/collection/components/wizard-icon/wizard-icon.stories.js +1 -1
- package/dist/custom-elements.json +1 -1
- package/dist/types/components/shimmer/shimmer.d.ts +1 -1
- package/dist/types/components.d.ts +2 -2
- package/dist/web-types.json +2 -2
- package/package.json +2 -2
|
@@ -2,21 +2,21 @@ import { getArgTypes } from "../../docs/config/utils";
|
|
|
2
2
|
import { html } from "lit-html";
|
|
3
3
|
const Template = ({ label, required, name, disabled, invalid, alignment, hint, error, }) => {
|
|
4
4
|
return html ` <b2b-radio-group
|
|
5
|
-
label
|
|
6
|
-
required
|
|
7
|
-
name
|
|
8
|
-
disabled
|
|
9
|
-
invalid
|
|
10
|
-
alignment
|
|
11
|
-
hint
|
|
12
|
-
error
|
|
5
|
+
label=${label}
|
|
6
|
+
required=${required}
|
|
7
|
+
name=${name}
|
|
8
|
+
disabled=${disabled}
|
|
9
|
+
invalid=${invalid}
|
|
10
|
+
alignment=${alignment}
|
|
11
|
+
hint=${hint}
|
|
12
|
+
error=${error}>
|
|
13
13
|
<b2b-radio-button
|
|
14
14
|
label="Option 1"
|
|
15
|
-
name
|
|
15
|
+
name=${name}
|
|
16
16
|
value="one"></b2b-radio-button>
|
|
17
17
|
<b2b-radio-button
|
|
18
18
|
label="Option 2"
|
|
19
|
-
name
|
|
19
|
+
name=${name}
|
|
20
20
|
value="two"></b2b-radio-button>
|
|
21
21
|
</b2b-radio-group>`;
|
|
22
22
|
};
|
|
@@ -3,7 +3,7 @@ import { html } from "lit-html";
|
|
|
3
3
|
const Template = ({ label }) => {
|
|
4
4
|
return html `<div style="width: 400px">
|
|
5
5
|
<b2b-input required="true" label="Name"></b2b-input
|
|
6
|
-
><br /><b2b-required-separator label
|
|
6
|
+
><br /><b2b-required-separator label=${label}></b2b-required-separator>
|
|
7
7
|
</div>`;
|
|
8
8
|
};
|
|
9
9
|
const defaultArgs = {
|
|
@@ -2,8 +2,8 @@ import { getArgTypes } from "../../docs/config/utils";
|
|
|
2
2
|
import { html } from "lit-html";
|
|
3
3
|
const TemplateIcon = ({ color, contentColor, iconName }) => {
|
|
4
4
|
return html `<div>
|
|
5
|
-
<b2b-rounded-icon color
|
|
6
|
-
<b2b-icon-100 slot="icon" icon
|
|
5
|
+
<b2b-rounded-icon color=${color} content-color=${contentColor}>
|
|
6
|
+
<b2b-icon-100 slot="icon" icon=${iconName}></b2b-icon-100>
|
|
7
7
|
</b2b-rounded-icon>
|
|
8
8
|
</div>`;
|
|
9
9
|
};
|
|
@@ -16,7 +16,7 @@ story010Icon.args = {
|
|
|
16
16
|
story010Icon.storyName = 'Icon Content';
|
|
17
17
|
const TemplateText = ({ color, contentColor, textContent }) => {
|
|
18
18
|
return html `<div>
|
|
19
|
-
<b2b-rounded-icon color
|
|
19
|
+
<b2b-rounded-icon color=${color} content-color=${contentColor}>
|
|
20
20
|
<span slot="text">${textContent}</span>
|
|
21
21
|
</b2b-rounded-icon>
|
|
22
22
|
</div>`;
|
|
@@ -26,7 +26,7 @@ const Template = ({ placeholder, optionsList, disabled }) => {
|
|
|
26
26
|
contenteditable
|
|
27
27
|
data-testid="search-element"
|
|
28
28
|
disabled=${disabled}
|
|
29
|
-
placeholder
|
|
29
|
+
placeholder=${placeholder}
|
|
30
30
|
.optionsList=${optionsList}
|
|
31
31
|
@b2b-input=${onInput}></b2b-search>
|
|
32
32
|
</div>`;
|
|
@@ -64,7 +64,7 @@ const CustomSearchTemplate = ({ placeholder, optionsList }) => {
|
|
|
64
64
|
<b2b-input-group>
|
|
65
65
|
<b2b-input-list
|
|
66
66
|
slot="start"
|
|
67
|
-
placeholder
|
|
67
|
+
placeholder=${placeholder}
|
|
68
68
|
.optionsList=${optionsList}></b2b-input-list>
|
|
69
69
|
<b2b-dropdown style="width: 50%" invalid error="an error">
|
|
70
70
|
<option value="one">Option 1</option>
|
|
@@ -13,9 +13,9 @@ const Template = ({ alignment }) => {
|
|
|
13
13
|
margin: `margin: 10px 0;`,
|
|
14
14
|
width: null,
|
|
15
15
|
};
|
|
16
|
-
return html `<div style
|
|
16
|
+
return html `<div style=${styles.display}>
|
|
17
17
|
<p style="${styles.margin} ${styles.width}">${content}</p>
|
|
18
|
-
<b2b-separator alignment
|
|
18
|
+
<b2b-separator alignment=${alignment}></b2b-separator>
|
|
19
19
|
<p style="${styles.margin} ${styles.width}">${content}</p>
|
|
20
20
|
</div>`;
|
|
21
21
|
};
|
|
@@ -24,10 +24,10 @@ const meta = {
|
|
|
24
24
|
render: (_a) => {
|
|
25
25
|
var args = __rest(_a, []);
|
|
26
26
|
return html `<b2b-shimmer
|
|
27
|
-
loading
|
|
28
|
-
width
|
|
29
|
-
height
|
|
30
|
-
This is the
|
|
27
|
+
loading=${args.loading}
|
|
28
|
+
width=${args.width}
|
|
29
|
+
height=${args.height}>
|
|
30
|
+
This is the main content, which takes a while to load.
|
|
31
31
|
</b2b-shimmer>`;
|
|
32
32
|
},
|
|
33
33
|
};
|
|
@@ -45,14 +45,14 @@ const meta = {
|
|
|
45
45
|
<hr />
|
|
46
46
|
<b2b-snackbar
|
|
47
47
|
@b2b-close=${hideSnackbar}
|
|
48
|
-
description
|
|
49
|
-
type
|
|
50
|
-
opened
|
|
51
|
-
timed
|
|
52
|
-
duration
|
|
53
|
-
has-action
|
|
54
|
-
action-label
|
|
55
|
-
width
|
|
48
|
+
description=${args.description}
|
|
49
|
+
type=${args.type}
|
|
50
|
+
opened=${args.opened}
|
|
51
|
+
timed=${args.timed}
|
|
52
|
+
duration=${args.duration}
|
|
53
|
+
has-action=${args.hasAction}
|
|
54
|
+
action-label=${args.actionLabel}
|
|
55
|
+
width=${args.width}></b2b-snackbar>`;
|
|
56
56
|
},
|
|
57
57
|
};
|
|
58
58
|
export default meta;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { getArgTypes } from "../../docs/config/utils";
|
|
2
2
|
import { html } from "lit-html";
|
|
3
3
|
const Template = ({ size, color }) => {
|
|
4
|
-
return html ` <b2b-spinner size
|
|
4
|
+
return html ` <b2b-spinner size=${size} color=${color}></b2b-spinner>`;
|
|
5
5
|
};
|
|
6
6
|
const defaultArgs = {
|
|
7
7
|
size: '100',
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { getArgTypes } from "../../docs/config/utils";
|
|
2
2
|
import { html } from "lit-html";
|
|
3
3
|
const Template = ({ useRouter }) => {
|
|
4
|
-
return html ` <b2b-tab-group use-router
|
|
4
|
+
return html ` <b2b-tab-group use-router=${useRouter}>
|
|
5
5
|
<b2b-tab slot="tab">First Tab</b2b-tab>
|
|
6
6
|
<b2b-tab-panel slot="panel"
|
|
7
7
|
><div>
|
|
@@ -59,14 +59,14 @@ const meta = {
|
|
|
59
59
|
<b2b-table-rowgroup type="body">
|
|
60
60
|
${repeat(args.data.rows, (row, index) => html `
|
|
61
61
|
<b2b-table-row
|
|
62
|
-
highlight
|
|
62
|
+
highlight=${args.highlight}
|
|
63
63
|
color=${index === 0 ? args.color : 'default'}>
|
|
64
64
|
${repeat(
|
|
65
65
|
// @ts-ignore
|
|
66
66
|
row, (cell, index) => html `<b2b-table-cell
|
|
67
67
|
?divider=${args.withDividers && index === 0}
|
|
68
|
-
align
|
|
69
|
-
text-wrap
|
|
68
|
+
align=${args.align}
|
|
69
|
+
text-wrap=${args.textWrap}
|
|
70
70
|
>${cell}</b2b-table-cell
|
|
71
71
|
>`)}<b2b-table-cell
|
|
72
72
|
><b2b-button size="50">Action</b2b-button></b2b-table-cell
|
|
@@ -111,7 +111,7 @@ export const ScrollableTable = {
|
|
|
111
111
|
var args = __rest(_a, []);
|
|
112
112
|
return html `<b2b-scrollable-container
|
|
113
113
|
style="width: ${args.parentWidth}; height: ${args.parentHeight};">
|
|
114
|
-
<b2b-table size
|
|
114
|
+
<b2b-table size=${args.size}>
|
|
115
115
|
<b2b-table-rowgroup type="header">
|
|
116
116
|
<b2b-table-row>
|
|
117
117
|
${args.data.columns.map((columnName, index) => {
|
|
@@ -127,12 +127,12 @@ export const ScrollableTable = {
|
|
|
127
127
|
<b2b-table-rowgroup type="body">
|
|
128
128
|
${args.data.rows.map((row, index) => {
|
|
129
129
|
return html `<b2b-table-row
|
|
130
|
-
highlight
|
|
130
|
+
highlight=${args.highlight}
|
|
131
131
|
color=${index === 0 ? args.color : 'default'}>
|
|
132
132
|
${row.map((data, index) => html `<b2b-table-cell
|
|
133
133
|
?divider=${args.withDividers && index === 0}
|
|
134
|
-
align
|
|
135
|
-
text-wrap
|
|
134
|
+
align=${args.align}
|
|
135
|
+
text-wrap=${args.textWrap}
|
|
136
136
|
>${data}</b2b-table-cell
|
|
137
137
|
>`)}
|
|
138
138
|
</b2b-table-row>`;
|
|
@@ -148,12 +148,12 @@ const RenderSortableTable = (_a) => {
|
|
|
148
148
|
<b2b-table-rowgroup type="body">
|
|
149
149
|
${args.data.rows.map((row, index) => {
|
|
150
150
|
return html `<b2b-table-row
|
|
151
|
-
highlight
|
|
151
|
+
highlight=${args.highlight}
|
|
152
152
|
color=${index === 0 ? args.color : 'default'}>
|
|
153
153
|
${row.map(data => html `<b2b-table-cell
|
|
154
154
|
?divider=${args.withDividers}
|
|
155
|
-
align
|
|
156
|
-
text-wrap
|
|
155
|
+
align=${args.align}
|
|
156
|
+
text-wrap=${args.textWrap}
|
|
157
157
|
>${data}</b2b-table-cell
|
|
158
158
|
>`)}
|
|
159
159
|
</b2b-table-row>`;
|
|
@@ -233,7 +233,7 @@ export const AccordionTable = {
|
|
|
233
233
|
render: (_a) => {
|
|
234
234
|
var args = __rest(_a, []);
|
|
235
235
|
return html `<div>
|
|
236
|
-
<b2b-table size
|
|
236
|
+
<b2b-table size=${args.size}>
|
|
237
237
|
<b2b-table-rowgroup type="header" accordion>
|
|
238
238
|
<b2b-table-row>
|
|
239
239
|
${args.data.columns.map((columnName, index) => {
|
|
@@ -249,12 +249,12 @@ export const AccordionTable = {
|
|
|
249
249
|
<b2b-table-rowgroup type="body" accordion>
|
|
250
250
|
${args.data.rows.map((row, index) => {
|
|
251
251
|
return html `<b2b-table-row
|
|
252
|
-
highlight
|
|
252
|
+
highlight=${args.highlight}
|
|
253
253
|
color=${index === 0 ? args.color : 'default'}>
|
|
254
254
|
${row.map(data => html `<b2b-table-cell
|
|
255
255
|
?divider=${args.withDividers}
|
|
256
|
-
align
|
|
257
|
-
text-wrap
|
|
256
|
+
align=${args.align}
|
|
257
|
+
text-wrap=${args.textWrap}
|
|
258
258
|
>${data}</b2b-table-cell
|
|
259
259
|
>`)}
|
|
260
260
|
<b2b-table-cell
|
|
@@ -266,12 +266,12 @@ export const AccordionTable = {
|
|
|
266
266
|
<b2b-table-rowgroup type="body" accordion opened>
|
|
267
267
|
${args.data.rows.map((row, index) => {
|
|
268
268
|
return html `<b2b-table-row
|
|
269
|
-
highlight
|
|
269
|
+
highlight=${args.highlight}
|
|
270
270
|
color=${index === 0 ? args.color : 'default'}>
|
|
271
271
|
${row.map(data => html `<b2b-table-cell
|
|
272
272
|
?divider=${args.withDividers}
|
|
273
|
-
align
|
|
274
|
-
text-wrap
|
|
273
|
+
align=${args.align}
|
|
274
|
+
text-wrap=${args.textWrap}
|
|
275
275
|
>${data}</b2b-table-cell
|
|
276
276
|
>`)}
|
|
277
277
|
<b2b-table-cell
|
|
@@ -289,7 +289,7 @@ export const SelectableTable = {
|
|
|
289
289
|
render: (_a) => {
|
|
290
290
|
var args = __rest(_a, []);
|
|
291
291
|
return html `<div>
|
|
292
|
-
<b2b-table size
|
|
292
|
+
<b2b-table size=${args.size}>
|
|
293
293
|
<b2b-table-rowgroup type="header" accordion selectable>
|
|
294
294
|
<b2b-table-row>
|
|
295
295
|
${args.data.columns.map((columnName, index) => {
|
|
@@ -305,12 +305,12 @@ export const SelectableTable = {
|
|
|
305
305
|
<b2b-table-rowgroup type="body" accordion selectable>
|
|
306
306
|
${args.data.rows.map((row, index) => {
|
|
307
307
|
return html `<b2b-table-row
|
|
308
|
-
highlight
|
|
308
|
+
highlight=${args.highlight}
|
|
309
309
|
color=${index === 0 ? args.color : 'default'}>
|
|
310
310
|
${row.map(data => html `<b2b-table-cell
|
|
311
311
|
?divider=${args.withDividers}
|
|
312
|
-
align
|
|
313
|
-
text-wrap
|
|
312
|
+
align=${args.align}
|
|
313
|
+
text-wrap=${args.textWrap}
|
|
314
314
|
>${data}</b2b-table-cell
|
|
315
315
|
>`)}
|
|
316
316
|
<b2b-table-cell
|
|
@@ -322,12 +322,12 @@ export const SelectableTable = {
|
|
|
322
322
|
<b2b-table-rowgroup type="body" accordion opened selectable>
|
|
323
323
|
${args.data.rows.map((row, index) => {
|
|
324
324
|
return html `<b2b-table-row
|
|
325
|
-
highlight
|
|
325
|
+
highlight=${args.highlight}
|
|
326
326
|
color=${index === 0 ? args.color : 'default'}>
|
|
327
327
|
${row.map(data => html `<b2b-table-cell
|
|
328
328
|
?divider=${args.withDividers}
|
|
329
|
-
align
|
|
330
|
-
text-wrap
|
|
329
|
+
align=${args.align}
|
|
330
|
+
text-wrap=${args.textWrap}
|
|
331
331
|
>${data}</b2b-table-cell
|
|
332
332
|
>`)}
|
|
333
333
|
<b2b-table-cell
|
|
@@ -345,42 +345,42 @@ export const ColspanTable = {
|
|
|
345
345
|
render: (_a) => {
|
|
346
346
|
var args = __rest(_a, []);
|
|
347
347
|
return html `<div style="width: 500px">
|
|
348
|
-
<b2b-table size
|
|
349
|
-
<b2b-table-rowgroup type="header" selectable
|
|
348
|
+
<b2b-table size=${args.size}>
|
|
349
|
+
<b2b-table-rowgroup type="header" selectable=${args.selectable}>
|
|
350
350
|
<b2b-table-row>
|
|
351
|
-
<b2b-table-header divider
|
|
351
|
+
<b2b-table-header divider=${args.withDividers} colspan="2"
|
|
352
352
|
>2 Columns</b2b-table-header
|
|
353
353
|
>
|
|
354
|
-
<b2b-table-header divider
|
|
354
|
+
<b2b-table-header divider=${args.withDividers}
|
|
355
355
|
>1 Column</b2b-table-header
|
|
356
356
|
>
|
|
357
357
|
<b2b-table-header>1 Column</b2b-table-header>
|
|
358
358
|
</b2b-table-row>
|
|
359
359
|
</b2b-table-rowgroup>
|
|
360
|
-
<b2b-table-rowgroup type="body" selectable
|
|
360
|
+
<b2b-table-rowgroup type="body" selectable=${args.selectable}>
|
|
361
361
|
<b2b-table-row>
|
|
362
|
-
<b2b-table-cell divider
|
|
362
|
+
<b2b-table-cell divider=${args.withDividers}
|
|
363
363
|
>1 Column</b2b-table-cell
|
|
364
364
|
>
|
|
365
365
|
<b2b-table-cell colspan="3">3 Columns</b2b-table-cell>
|
|
366
366
|
</b2b-table-row>
|
|
367
367
|
<b2b-table-row>
|
|
368
|
-
<b2b-table-cell divider
|
|
368
|
+
<b2b-table-cell divider=${args.withDividers}
|
|
369
369
|
>1 Column</b2b-table-cell
|
|
370
370
|
>
|
|
371
|
-
<b2b-table-cell divider
|
|
371
|
+
<b2b-table-cell divider=${args.withDividers}
|
|
372
372
|
>1 Column</b2b-table-cell
|
|
373
373
|
>
|
|
374
|
-
<b2b-table-cell divider
|
|
374
|
+
<b2b-table-cell divider=${args.withDividers}
|
|
375
375
|
>1 Column</b2b-table-cell
|
|
376
376
|
>
|
|
377
377
|
<b2b-table-cell>1 Column</b2b-table-cell>
|
|
378
378
|
</b2b-table-row>
|
|
379
379
|
<b2b-table-row>
|
|
380
|
-
<b2b-table-cell divider
|
|
380
|
+
<b2b-table-cell divider=${args.withDividers} colspan="2"
|
|
381
381
|
>2 Columns</b2b-table-cell
|
|
382
382
|
>
|
|
383
|
-
<b2b-table-cell divider
|
|
383
|
+
<b2b-table-cell divider=${args.withDividers}
|
|
384
384
|
>1 Column</b2b-table-cell
|
|
385
385
|
>
|
|
386
386
|
<b2b-table-cell>1 Column</b2b-table-cell>
|
|
@@ -2,18 +2,18 @@ import { html } from "lit-html";
|
|
|
2
2
|
import { getArgTypes } from "../../docs/config/utils";
|
|
3
3
|
const Template = ({ label, required, placeholder, disabled, value, invalid, hint, error, autofocus, name, resize, height, }) => {
|
|
4
4
|
return html `<b2b-textarea
|
|
5
|
-
label
|
|
6
|
-
required
|
|
7
|
-
placeholder
|
|
8
|
-
disabled
|
|
9
|
-
value
|
|
10
|
-
invalid
|
|
11
|
-
hint
|
|
12
|
-
error
|
|
13
|
-
autofocus
|
|
14
|
-
name
|
|
15
|
-
height
|
|
16
|
-
resize
|
|
5
|
+
label=${label}
|
|
6
|
+
required=${required}
|
|
7
|
+
placeholder=${placeholder}
|
|
8
|
+
disabled=${disabled}
|
|
9
|
+
value=${value}
|
|
10
|
+
invalid=${invalid}
|
|
11
|
+
hint=${hint}
|
|
12
|
+
error=${error}
|
|
13
|
+
autofocus=${autofocus}
|
|
14
|
+
name=${name}
|
|
15
|
+
height=${height}
|
|
16
|
+
resize=${resize}></b2b-textarea>`;
|
|
17
17
|
};
|
|
18
18
|
const defaultArgs = {
|
|
19
19
|
label: 'Textarea',
|
|
@@ -2,23 +2,23 @@ import { getArgTypes } from "../../docs/config/utils";
|
|
|
2
2
|
import { html } from "lit-html";
|
|
3
3
|
const Template = ({ name, disabled, singleDisabled }) => {
|
|
4
4
|
return html `
|
|
5
|
-
<b2b-toggle-group name
|
|
5
|
+
<b2b-toggle-group name=${name} disabled=${disabled}>
|
|
6
6
|
<b2b-toggle-button
|
|
7
|
-
name
|
|
7
|
+
name=${name}
|
|
8
8
|
value="abcd"
|
|
9
9
|
label="ABCD"></b2b-toggle-button>
|
|
10
10
|
<b2b-toggle-button
|
|
11
|
-
name
|
|
11
|
+
name=${name}
|
|
12
12
|
value="efgh"
|
|
13
13
|
label="EFGH"></b2b-toggle-button>
|
|
14
14
|
<b2b-toggle-button
|
|
15
|
-
name
|
|
15
|
+
name=${name}
|
|
16
16
|
value="ijkl"
|
|
17
17
|
label="IJKL"></b2b-toggle-button>
|
|
18
18
|
<b2b-toggle-button
|
|
19
|
-
name
|
|
19
|
+
name=${name}
|
|
20
20
|
value="mnop"
|
|
21
|
-
disabled
|
|
21
|
+
disabled=${singleDisabled}
|
|
22
22
|
label="MNOP"></b2b-toggle-button>
|
|
23
23
|
</b2b-toggle-group>
|
|
24
24
|
`;
|
|
@@ -25,10 +25,10 @@ export default {
|
|
|
25
25
|
render: (_a) => {
|
|
26
26
|
var args = __rest(_a, []);
|
|
27
27
|
return html `<b2b-toggle-switch
|
|
28
|
-
label
|
|
29
|
-
disabled
|
|
30
|
-
label-position
|
|
31
|
-
state
|
|
28
|
+
label=${args.label}
|
|
29
|
+
disabled=${args.disabled}
|
|
30
|
+
label-position=${args.labelPosition}
|
|
31
|
+
state=${args.state} />`;
|
|
32
32
|
},
|
|
33
33
|
};
|
|
34
34
|
export const SwitchOn = {};
|
|
@@ -47,10 +47,10 @@ const meta = {
|
|
|
47
47
|
<b2b-paragraph>
|
|
48
48
|
I am some text with a tooltip
|
|
49
49
|
<b2b-tooltip
|
|
50
|
-
position
|
|
51
|
-
trigger
|
|
52
|
-
content
|
|
53
|
-
opened
|
|
50
|
+
position=${args.position}
|
|
51
|
+
trigger=${args.trigger}
|
|
52
|
+
content=${args.content}
|
|
53
|
+
opened=${args.opened}
|
|
54
54
|
data-testid="trigger"
|
|
55
55
|
>${markup}
|
|
56
56
|
</b2b-tooltip>
|
|
@@ -67,10 +67,10 @@ export const FocusTooltip = Object.assign(Object.assign({}, meta), { render: arg
|
|
|
67
67
|
<b2b-paragraph>
|
|
68
68
|
I am some text with a tooltip
|
|
69
69
|
<b2b-tooltip
|
|
70
|
-
position
|
|
71
|
-
trigger
|
|
72
|
-
content
|
|
73
|
-
opened
|
|
70
|
+
position=${args.position}
|
|
71
|
+
trigger=${args.trigger}
|
|
72
|
+
content=${args.content}
|
|
73
|
+
opened=${args.opened}
|
|
74
74
|
data-testid="trigger">
|
|
75
75
|
${focusTriggerMarkup}
|
|
76
76
|
</b2b-tooltip>
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { html } from "lit-html";
|
|
2
2
|
import { getArgTypes } from "../../docs/config/utils";
|
|
3
3
|
const Template = ({ activeStep, checkIcon }) => {
|
|
4
|
-
return html `<b2b-wizard active-step
|
|
4
|
+
return html `<b2b-wizard active-step=${activeStep} check-icon=${checkIcon}>
|
|
5
5
|
<b2b-wizard-step>Step 1</b2b-wizard-step>
|
|
6
6
|
<b2b-wizard-step>Step 2</b2b-wizard-step>
|
|
7
7
|
<b2b-wizard-step>Step 3</b2b-wizard-step>
|
|
@@ -13,15 +13,15 @@ story010Wizard.args = { activeStep: '2', checkIcon: true };
|
|
|
13
13
|
story010Wizard.storyName = 'Default';
|
|
14
14
|
const StatesTemplate = ({ step }) => {
|
|
15
15
|
return html `
|
|
16
|
-
<b2b-wizard-step step
|
|
17
|
-
<b2b-wizard-step step
|
|
16
|
+
<b2b-wizard-step step=${step} state="default">Default</b2b-wizard-step>
|
|
17
|
+
<b2b-wizard-step step=${step} state="completed"
|
|
18
18
|
>Completed with icon</b2b-wizard-step
|
|
19
19
|
>
|
|
20
|
-
<b2b-wizard-step step
|
|
20
|
+
<b2b-wizard-step step=${step} state="completed" check-icon="false"
|
|
21
21
|
>Completed with number</b2b-wizard-step
|
|
22
22
|
>
|
|
23
|
-
<b2b-wizard-step step
|
|
24
|
-
<b2b-wizard-step step
|
|
23
|
+
<b2b-wizard-step step=${step} state="pending">Pending</b2b-wizard-step>
|
|
24
|
+
<b2b-wizard-step step=${step} state="disabled">Disabled</b2b-wizard-step>
|
|
25
25
|
`;
|
|
26
26
|
};
|
|
27
27
|
export const story020WizardStates = StatesTemplate.bind({});
|
|
@@ -2,7 +2,7 @@ import { getArgTypes } from "../../docs/config/utils";
|
|
|
2
2
|
import { html } from "lit-html";
|
|
3
3
|
const TemplateIcon = ({ state, step, checkIcon }) => {
|
|
4
4
|
return html `<div>
|
|
5
|
-
<b2b-wizard-icon state
|
|
5
|
+
<b2b-wizard-icon state=${state} step=${step} check-icon=${checkIcon}>
|
|
6
6
|
</b2b-wizard-icon>
|
|
7
7
|
</div>`;
|
|
8
8
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export declare class ShimmerComponent {
|
|
2
2
|
/** Whether the shimmer effect is shown or not. */
|
|
3
3
|
loading: boolean;
|
|
4
|
-
/** The width of the shimmer effect
|
|
4
|
+
/** The width of the shimmer effect in px. */
|
|
5
5
|
width: number;
|
|
6
6
|
/** The height of the shimmer effect in px. */
|
|
7
7
|
height: number;
|
|
@@ -1206,7 +1206,7 @@ export namespace Components {
|
|
|
1206
1206
|
*/
|
|
1207
1207
|
"loading": boolean;
|
|
1208
1208
|
/**
|
|
1209
|
-
* The width of the shimmer effect
|
|
1209
|
+
* The width of the shimmer effect in px.
|
|
1210
1210
|
*/
|
|
1211
1211
|
"width": number;
|
|
1212
1212
|
}
|
|
@@ -4102,7 +4102,7 @@ declare namespace LocalJSX {
|
|
|
4102
4102
|
*/
|
|
4103
4103
|
"loading"?: boolean;
|
|
4104
4104
|
/**
|
|
4105
|
-
* The width of the shimmer effect
|
|
4105
|
+
* The width of the shimmer effect in px.
|
|
4106
4106
|
*/
|
|
4107
4107
|
"width"?: number;
|
|
4108
4108
|
}
|
package/dist/web-types.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"$schema": "http://json.schemastore.org/web-types",
|
|
3
3
|
"framework": "vue",
|
|
4
4
|
"name": "@otto-de/b2b-core-components",
|
|
5
|
-
"version": "1.
|
|
5
|
+
"version": "1.37.0",
|
|
6
6
|
"js-types-syntax": "typescript",
|
|
7
7
|
"description-markup": "markdown",
|
|
8
8
|
"contributions": {
|
|
@@ -3510,7 +3510,7 @@
|
|
|
3510
3510
|
},
|
|
3511
3511
|
{
|
|
3512
3512
|
"name": "width",
|
|
3513
|
-
"description": "The width of the shimmer effect
|
|
3513
|
+
"description": "The width of the shimmer effect in px.\r\nValues: number",
|
|
3514
3514
|
"required": false,
|
|
3515
3515
|
"value": {
|
|
3516
3516
|
"kind": "expression",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@otto-de/b2b-core-components",
|
|
3
|
-
"version": "1.37.
|
|
3
|
+
"version": "1.37.1",
|
|
4
4
|
"description": "Core components defined with Stencil",
|
|
5
5
|
"author": "Otto GmbH",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
"dependencies": {
|
|
44
44
|
"@eslint/eslintrc": "^3.3.0",
|
|
45
45
|
"@eslint/js": "^9.22.0",
|
|
46
|
-
"@otto-de/b2b-tokens": "1.37.
|
|
46
|
+
"@otto-de/b2b-tokens": "1.37.1",
|
|
47
47
|
"@stencil/core": "4.13.0",
|
|
48
48
|
"globals": "^16.0.0"
|
|
49
49
|
},
|