@otto-de/b2b-core-components 1.36.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/b2b-core-components/b2b-core-components.esm.js +1 -1
- package/dist/b2b-core-components/p-19a043a8.entry.js +1 -0
- package/dist/b2b-core-components/{p-0f0fcb25.entry.js → p-3628e4cb.entry.js} +1 -1
- package/dist/b2b-core-components/{p-1a232e86.entry.js → p-9cbda7b3.entry.js} +1 -1
- package/dist/b2b-core-components/{p-703da47c.entry.js → p-c9a10980.entry.js} +1 -1
- package/dist/b2b-core-components/{p-a95ed002.entry.js → p-ceab4af0.entry.js} +1 -1
- package/dist/b2b-core-components/{p-fdb7d12c.entry.js → p-e143cad0.entry.js} +1 -1
- package/dist/b2b-core-components/{p-98ee5fd5.entry.js → p-f32e783e.entry.js} +1 -1
- package/dist/cjs/b2b-checkbox.cjs.entry.js +1 -1
- package/dist/cjs/b2b-core-components.cjs.js +1 -1
- package/dist/cjs/b2b-dropdown.cjs.entry.js +9 -4
- package/dist/cjs/b2b-flyout-menu.cjs.entry.js +1 -1
- package/dist/cjs/b2b-input-group_2.cjs.entry.js +1 -1
- package/dist/cjs/b2b-input-list-option.cjs.entry.js +1 -1
- package/dist/cjs/b2b-pagination.cjs.entry.js +1 -1
- package/dist/cjs/b2b-table-rowgroup.cjs.entry.js +4 -3
- package/dist/cjs/loader.cjs.js +1 -1
- 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.css +3 -3
- 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.e2e.js +22 -3
- package/dist/collection/components/dropdown/dropdown.js +27 -4
- package/dist/collection/components/dropdown/dropdown.stories.js +17 -10
- package/dist/collection/components/flyout-menu/flyout-menu.css +5 -3
- 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.css +5 -3
- 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.css +5 -3
- 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-rowgroup/table-rowgroup.js +4 -3
- 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/components/b2b-dropdown.js +10 -4
- package/dist/components/b2b-flyout-menu.js +1 -1
- package/dist/components/b2b-pagination.js +1 -1
- package/dist/components/b2b-table-rowgroup.js +4 -3
- package/dist/components/checkbox.js +1 -1
- package/dist/components/input-list-option.js +1 -1
- package/dist/components/input-list.js +1 -1
- package/dist/custom-elements.json +5 -1
- package/dist/esm/b2b-checkbox.entry.js +1 -1
- package/dist/esm/b2b-core-components.js +1 -1
- package/dist/esm/b2b-dropdown.entry.js +9 -4
- package/dist/esm/b2b-flyout-menu.entry.js +1 -1
- package/dist/esm/b2b-input-group_2.entry.js +1 -1
- package/dist/esm/b2b-input-list-option.entry.js +1 -1
- package/dist/esm/b2b-pagination.entry.js +1 -1
- package/dist/esm/b2b-table-rowgroup.entry.js +4 -3
- package/dist/esm/loader.js +1 -1
- package/dist/types/components/dropdown/dropdown.d.ts +2 -0
- package/dist/types/components/dropdown/dropdown.stories.d.ts +1 -0
- package/dist/types/components/shimmer/shimmer.d.ts +1 -1
- package/dist/types/components.d.ts +10 -2
- package/dist/web-types.json +12 -2
- package/package.json +2 -2
- package/dist/b2b-core-components/p-470378e2.entry.js +0 -1
|
@@ -1,21 +1,24 @@
|
|
|
1
1
|
import { userEvent } from "@storybook/test";
|
|
2
2
|
import { html } from "lit-html";
|
|
3
3
|
import { getArgTypes } from "../../docs/config/utils";
|
|
4
|
-
const Template = ({ label = 'Favorite Fruit', required, name, disabled, invalid, hint, error, search, selected = false, }) => {
|
|
4
|
+
const Template = ({ label = 'Favorite Fruit', required, name, disabled, invalid, hint, error, search, clear, selected = false, }) => {
|
|
5
5
|
return html `<b2b-dropdown
|
|
6
|
-
label
|
|
7
|
-
name
|
|
8
|
-
error
|
|
9
|
-
hint
|
|
10
|
-
disabled
|
|
11
|
-
invalid
|
|
12
|
-
required
|
|
13
|
-
search
|
|
6
|
+
label=${label}
|
|
7
|
+
name=${name}
|
|
8
|
+
error=${error}
|
|
9
|
+
hint=${hint}
|
|
10
|
+
disabled=${disabled}
|
|
11
|
+
invalid=${invalid}
|
|
12
|
+
required=${required}
|
|
13
|
+
search=${search}
|
|
14
|
+
clear=${clear}>
|
|
14
15
|
<option value="strawberry">Strawberry</option>
|
|
15
16
|
<option value="orange">Orange</option>
|
|
16
17
|
<option value="banana">Banana</option>
|
|
17
18
|
${selected
|
|
18
|
-
? html `<option value="pineapple" selected="true">
|
|
19
|
+
? html `<option value="pineapple" selected="true" clear="true">
|
|
20
|
+
Pineapple
|
|
21
|
+
</option>`
|
|
19
22
|
: html `<option value="pineapple">Pineapple</option>`}
|
|
20
23
|
<option value="grapes">Grapes</option>
|
|
21
24
|
<option value="watermelon">Watermelon</option>
|
|
@@ -35,6 +38,7 @@ const defaultArgs = {
|
|
|
35
38
|
hint: 'Pick one',
|
|
36
39
|
error: 'Not that one!',
|
|
37
40
|
search: false,
|
|
41
|
+
clear: false,
|
|
38
42
|
};
|
|
39
43
|
export const story010Default = Template.bind({});
|
|
40
44
|
story010Default.args = Object.assign({}, defaultArgs);
|
|
@@ -62,6 +66,9 @@ story050Selected.play = async ({ canvasElement }) => {
|
|
|
62
66
|
export const story060Search = Template.bind({});
|
|
63
67
|
story060Search.args = Object.assign(Object.assign({}, defaultArgs), { search: true });
|
|
64
68
|
story060Search.storyName = 'Search';
|
|
69
|
+
export const story070Clear = Template.bind({});
|
|
70
|
+
story070Clear.args = Object.assign(Object.assign({}, defaultArgs), { selected: true, clear: true });
|
|
71
|
+
story070Clear.storyName = 'Clear';
|
|
65
72
|
const dropdownArgs = getArgTypes('b2b-dropdown');
|
|
66
73
|
export default {
|
|
67
74
|
title: 'Components/Form/Dropdown',
|
|
@@ -232,9 +232,6 @@
|
|
|
232
232
|
.b2b-flyout-menu {
|
|
233
233
|
position: relative;
|
|
234
234
|
display: inline !important;
|
|
235
|
-
/* this is a workaround to force purgecss to include the overwrites of
|
|
236
|
-
the variables --b2b-border-right and --b2b-border-radius
|
|
237
|
-
*/
|
|
238
235
|
}
|
|
239
236
|
.b2b-flyout-menu__trigger {
|
|
240
237
|
cursor: pointer;
|
|
@@ -282,6 +279,11 @@
|
|
|
282
279
|
transform: translateX(3px) translateY(3px) rotate(45deg);
|
|
283
280
|
width: 0.875rem;
|
|
284
281
|
}
|
|
282
|
+
.b2b-flyout-menu {
|
|
283
|
+
/* this is a workaround to force purgecss to include the overwrites of
|
|
284
|
+
the variables --b2b-border-right and --b2b-border-radius
|
|
285
|
+
*/
|
|
286
|
+
}
|
|
285
287
|
.b2b-flyout-menu .purge-css-include-variables {
|
|
286
288
|
border-radius: var(--b2b-border-radius);
|
|
287
289
|
border-right: var(--b2b-border-right);
|
|
@@ -29,12 +29,12 @@ const meta = {
|
|
|
29
29
|
<b2b-flyout-menu-option
|
|
30
30
|
slot="option"
|
|
31
31
|
option="Delete"
|
|
32
|
-
disabled
|
|
32
|
+
disabled=${args.disabled}>
|
|
33
33
|
</b2b-flyout-menu-option>
|
|
34
34
|
<b2b-flyout-menu-option
|
|
35
35
|
slot="option"
|
|
36
36
|
option="Pause"
|
|
37
|
-
separator
|
|
37
|
+
separator=${args.separator}>
|
|
38
38
|
</b2b-flyout-menu-option>
|
|
39
39
|
<b2b-flyout-menu-option slot="option" option="Copy">
|
|
40
40
|
</b2b-flyout-menu-option>
|
|
@@ -72,12 +72,12 @@ export const AllStates = {
|
|
|
72
72
|
<b2b-flyout-menu-option
|
|
73
73
|
slot="option"
|
|
74
74
|
option="Delete"
|
|
75
|
-
disabled
|
|
75
|
+
disabled=${args.disabled}>
|
|
76
76
|
</b2b-flyout-menu-option>
|
|
77
77
|
<b2b-flyout-menu-option
|
|
78
78
|
slot="option"
|
|
79
79
|
option="Pause"
|
|
80
|
-
separator
|
|
80
|
+
separator=${args.separator}>
|
|
81
81
|
</b2b-flyout-menu-option>
|
|
82
82
|
<b2b-flyout-menu-option slot="option" option="Copy">
|
|
83
83
|
</b2b-flyout-menu-option>
|
|
@@ -33,13 +33,13 @@ export const story010Grid = {
|
|
|
33
33
|
},
|
|
34
34
|
render: (_a) => {
|
|
35
35
|
var args = __rest(_a, []);
|
|
36
|
-
return html ` <b2b-grid margin
|
|
36
|
+
return html ` <b2b-grid margin=${args.margin}>
|
|
37
37
|
<b2b-grid-row
|
|
38
|
-
justify
|
|
39
|
-
row-gap
|
|
40
|
-
column-gap
|
|
41
|
-
<b2b-grid-col span="6" text-align
|
|
42
|
-
><div style
|
|
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
43
|
<h4>Column 1-6 of 12</h4>
|
|
44
44
|
<p>
|
|
45
45
|
Lorem ipsum dolor sit amet, consectetur adipiscing elit.
|
|
@@ -53,25 +53,25 @@ export const story010Grid = {
|
|
|
53
53
|
</div></b2b-grid-col
|
|
54
54
|
>
|
|
55
55
|
<b2b-grid-col
|
|
56
|
-
><div style
|
|
56
|
+
><div style=${gridBoxStyles}>
|
|
57
57
|
<h4>Column 7 of 12</h4>
|
|
58
58
|
<p>I grow to fill up all available space</p>
|
|
59
59
|
</div></b2b-grid-col
|
|
60
60
|
>
|
|
61
61
|
<b2b-grid-col
|
|
62
|
-
><div style
|
|
62
|
+
><div style=${gridBoxStyles}>
|
|
63
63
|
<h4>Column 8 of 12</h4>
|
|
64
64
|
<p>I grow to fill up all available space</p>
|
|
65
65
|
</div></b2b-grid-col
|
|
66
66
|
>
|
|
67
67
|
<b2b-grid-col
|
|
68
|
-
><div style
|
|
68
|
+
><div style=${gridBoxStyles}>
|
|
69
69
|
<h4>Column 9 of 12</h4>
|
|
70
70
|
<p>I grow to fill up all available space</p>
|
|
71
71
|
</div></b2b-grid-col
|
|
72
72
|
>
|
|
73
73
|
<b2b-grid-col span="3"
|
|
74
|
-
><div style
|
|
74
|
+
><div style=${gridBoxStyles}>
|
|
75
75
|
<h4>Column 10-12 of 12</h4>
|
|
76
76
|
<p>Resize me by changing the span attribute in the args table.</p>
|
|
77
77
|
</div></b2b-grid-col
|
|
@@ -94,37 +94,37 @@ export const story020AlignItems = {
|
|
|
94
94
|
var args = __rest(_a, []);
|
|
95
95
|
return html `<b2b-grid
|
|
96
96
|
><b2b-grid-row
|
|
97
|
-
align-items
|
|
98
|
-
justify
|
|
99
|
-
row-gap
|
|
100
|
-
column-gap
|
|
97
|
+
align-items=${args.alignItems}
|
|
98
|
+
justify=${args.justify}
|
|
99
|
+
row-gap=${args.rowGap}
|
|
100
|
+
column-gap=${args.columnGap}>
|
|
101
101
|
<b2b-grid-col span="2"
|
|
102
|
-
><div style
|
|
102
|
+
><div style=${gridBoxSmallStyles}>
|
|
103
103
|
<h4>Column 1-2 of 12</h4>
|
|
104
104
|
</div></b2b-grid-col
|
|
105
105
|
>
|
|
106
106
|
<b2b-grid-col span="2"
|
|
107
|
-
><div style
|
|
107
|
+
><div style=${gridBoxStyles}>
|
|
108
108
|
<h4>Column 3-4 of 12</h4>
|
|
109
109
|
</div></b2b-grid-col
|
|
110
110
|
>
|
|
111
111
|
<b2b-grid-col span="2"
|
|
112
|
-
><div style
|
|
112
|
+
><div style=${gridBoxSmallStyles}>
|
|
113
113
|
<h4>Column 5-6 of 12</h4>
|
|
114
114
|
</div></b2b-grid-col
|
|
115
115
|
>
|
|
116
116
|
<b2b-grid-col span="2"
|
|
117
|
-
><div style
|
|
117
|
+
><div style=${gridBoxStyles}>
|
|
118
118
|
<h4>Column 7-8 of 12</h4>
|
|
119
119
|
</div></b2b-grid-col
|
|
120
120
|
>
|
|
121
121
|
<b2b-grid-col span="2"
|
|
122
|
-
><div style
|
|
122
|
+
><div style=${gridBoxSmallStyles}>
|
|
123
123
|
<h4>Column 9-10 of 12</h4>
|
|
124
124
|
</div></b2b-grid-col
|
|
125
125
|
>
|
|
126
126
|
<b2b-grid-col span="2"
|
|
127
|
-
><div style
|
|
127
|
+
><div style=${gridBoxStyles}>
|
|
128
128
|
<h4>Column 11-12 of 12</h4>
|
|
129
129
|
</div></b2b-grid-col
|
|
130
130
|
>
|
|
@@ -144,13 +144,13 @@ export const story030TextAlign = {
|
|
|
144
144
|
},
|
|
145
145
|
render: (_a) => {
|
|
146
146
|
var args = __rest(_a, []);
|
|
147
|
-
return html `<b2b-grid margin
|
|
147
|
+
return html `<b2b-grid margin=${args.margin}>
|
|
148
148
|
<b2b-grid-row
|
|
149
|
-
justify
|
|
150
|
-
row-gap
|
|
151
|
-
column-gap
|
|
152
|
-
<b2b-grid-col span="6" text-align
|
|
153
|
-
><div style
|
|
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
154
|
<h4>Column 1-6 of 12</h4>
|
|
155
155
|
<p>
|
|
156
156
|
Lorem ipsum dolor sit amet, consectetur adipiscing elit.
|
|
@@ -164,17 +164,17 @@ export const story030TextAlign = {
|
|
|
164
164
|
</div></b2b-grid-col
|
|
165
165
|
>
|
|
166
166
|
<b2b-grid-col span="2"
|
|
167
|
-
><div style
|
|
167
|
+
><div style=${gridBoxStyles}>
|
|
168
168
|
<h4>Column 7-8 of 12</h4>
|
|
169
169
|
</div></b2b-grid-col
|
|
170
170
|
>
|
|
171
171
|
<b2b-grid-col span="2"
|
|
172
|
-
><div style
|
|
172
|
+
><div style=${gridBoxStyles}>
|
|
173
173
|
<h4>Column 9-10 of 12</h4>
|
|
174
174
|
</div></b2b-grid-col
|
|
175
175
|
>
|
|
176
176
|
<b2b-grid-col span="2"
|
|
177
|
-
><div style
|
|
177
|
+
><div style=${gridBoxStyles}>
|
|
178
178
|
<h4>Column 11-12 of 12</h4>
|
|
179
179
|
</div></b2b-grid-col
|
|
180
180
|
></b2b-grid-row
|
|
@@ -194,13 +194,13 @@ export const story040Justify = {
|
|
|
194
194
|
},
|
|
195
195
|
render: (_a) => {
|
|
196
196
|
var args = __rest(_a, []);
|
|
197
|
-
return html `<b2b-grid margin
|
|
197
|
+
return html `<b2b-grid margin=${args.margin}>
|
|
198
198
|
<b2b-grid-row
|
|
199
|
-
justify
|
|
200
|
-
row-gap
|
|
201
|
-
column-gap
|
|
202
|
-
<b2b-grid-col span="6" text-align
|
|
203
|
-
><div style
|
|
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
204
|
<h4>Column 1-6 of 12</h4>
|
|
205
205
|
<p>
|
|
206
206
|
Lorem ipsum dolor sit amet, consectetur adipiscing elit.
|
|
@@ -214,17 +214,17 @@ export const story040Justify = {
|
|
|
214
214
|
</div></b2b-grid-col
|
|
215
215
|
>
|
|
216
216
|
<b2b-grid-col span="2"
|
|
217
|
-
><div style
|
|
217
|
+
><div style=${gridBoxStyles}>
|
|
218
218
|
<h4>Column 7-8 of 12</h4>
|
|
219
219
|
</div></b2b-grid-col
|
|
220
220
|
>
|
|
221
221
|
<b2b-grid-col span="2"
|
|
222
|
-
><div style
|
|
222
|
+
><div style=${gridBoxStyles}>
|
|
223
223
|
<h4>Column 9-10 of 12</h4>
|
|
224
224
|
</div></b2b-grid-col
|
|
225
225
|
>
|
|
226
226
|
<b2b-grid-col span="2"
|
|
227
|
-
><div style
|
|
227
|
+
><div style=${gridBoxStyles}>
|
|
228
228
|
<h4>Column 11-12 of 12</h4>
|
|
229
229
|
</div></b2b-grid-col
|
|
230
230
|
></b2b-grid-row
|
|
@@ -1,10 +1,7 @@
|
|
|
1
1
|
import { html } from "lit-html";
|
|
2
2
|
import { getArgTypes } from "../../docs/config/utils";
|
|
3
3
|
const template = ({ size, align, slot, noMargin }) => {
|
|
4
|
-
return html `<b2b-headline
|
|
5
|
-
size="${size}"
|
|
6
|
-
align="${align}"
|
|
7
|
-
no-margin="${noMargin}">
|
|
4
|
+
return html `<b2b-headline size=${size} align=${align} no-margin=${noMargin}>
|
|
8
5
|
${slot}
|
|
9
6
|
</b2b-headline>`;
|
|
10
7
|
};
|
|
@@ -3,10 +3,7 @@ import { getArgTypes } from "../../docs/config/utils";
|
|
|
3
3
|
import { iconTypes } from "./types";
|
|
4
4
|
import "./../../global/icon.stories.scss";
|
|
5
5
|
const Template = ({ icon, color, variant }) => {
|
|
6
|
-
return html `<b2b-icon
|
|
7
|
-
icon="${icon}"
|
|
8
|
-
color="${color}"
|
|
9
|
-
variant="${variant}" />`;
|
|
6
|
+
return html `<b2b-icon icon=${icon} color=${color} variant=${variant} />`;
|
|
10
7
|
};
|
|
11
8
|
const defaultArgs = {
|
|
12
9
|
icon: 'b2b_icon-edit',
|
|
@@ -29,7 +26,7 @@ story030Inverse.parameters = {
|
|
|
29
26
|
};
|
|
30
27
|
export const story035Inherit = ({ icon, color, variant }) => {
|
|
31
28
|
return html ` <div style="color: red;">
|
|
32
|
-
<b2b-icon icon
|
|
29
|
+
<b2b-icon icon=${icon} color=${color} variant=${variant} />
|
|
33
30
|
</div>`;
|
|
34
31
|
};
|
|
35
32
|
story035Inherit.args = Object.assign(Object.assign({}, defaultArgs), { color: 'inherit' });
|
|
@@ -46,9 +43,9 @@ export const story070AllIcons = ({ color, variant }) => {
|
|
|
46
43
|
return html `
|
|
47
44
|
<div class="icon-container">
|
|
48
45
|
<b2b-icon
|
|
49
|
-
icon
|
|
50
|
-
color
|
|
51
|
-
variant
|
|
46
|
+
icon=${icon}
|
|
47
|
+
color=${color || defaultArgs.color}
|
|
48
|
+
variant=${variant || 100}></b2b-icon>
|
|
52
49
|
<p>${icon}</p>
|
|
53
50
|
</div>
|
|
54
51
|
`;
|
|
@@ -33,11 +33,11 @@ const meta = {
|
|
|
33
33
|
render: (_a) => {
|
|
34
34
|
var args = __rest(_a, []);
|
|
35
35
|
return html `<b2b-icon-100
|
|
36
|
-
icon
|
|
37
|
-
color
|
|
38
|
-
size
|
|
39
|
-
clickable
|
|
40
|
-
focusable
|
|
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;
|
|
@@ -62,11 +62,11 @@ export const Inherit = {
|
|
|
62
62
|
render: ({ icon, color, size, clickable, focusable }) => {
|
|
63
63
|
return html ` <div style="color: red;">
|
|
64
64
|
<b2b-icon-100
|
|
65
|
-
icon
|
|
66
|
-
color
|
|
67
|
-
size
|
|
68
|
-
clickable
|
|
69
|
-
focusable
|
|
65
|
+
icon=${icon}
|
|
66
|
+
color=${color}
|
|
67
|
+
size=${size}
|
|
68
|
+
clickable=${clickable}
|
|
69
|
+
focusable=${focusable}>
|
|
70
70
|
</b2b-icon-100>
|
|
71
71
|
</div>`;
|
|
72
72
|
},
|
|
@@ -75,7 +75,7 @@ export const Inherit = {
|
|
|
75
75
|
const renderAllIcons = () => {
|
|
76
76
|
const icons = iconTypes.map(icon => {
|
|
77
77
|
return html ` <div class="icon-container">
|
|
78
|
-
<b2b-icon-100 icon
|
|
78
|
+
<b2b-icon-100 icon=${icon}></b2b-icon-100>
|
|
79
79
|
<p>${icon}</p>
|
|
80
80
|
</div>`;
|
|
81
81
|
});
|
|
@@ -32,10 +32,10 @@ const meta = {
|
|
|
32
32
|
render: (_a) => {
|
|
33
33
|
var args = __rest(_a, []);
|
|
34
34
|
return html `<b2b-icon-50
|
|
35
|
-
icon
|
|
36
|
-
color
|
|
37
|
-
clickable
|
|
38
|
-
focusable
|
|
35
|
+
icon=${args.icon}
|
|
36
|
+
color=${args.color}
|
|
37
|
+
clickable=${args.clickable}
|
|
38
|
+
focusable=${args.focusable}></b2b-icon-50>`;
|
|
39
39
|
},
|
|
40
40
|
};
|
|
41
41
|
export default meta;
|
|
@@ -57,10 +57,10 @@ export const Inherit = {
|
|
|
57
57
|
render: ({ icon, color, clickable, focusable }) => {
|
|
58
58
|
return html ` <div style="color: red;">
|
|
59
59
|
<b2b-icon-50
|
|
60
|
-
icon
|
|
61
|
-
color
|
|
62
|
-
clickable
|
|
63
|
-
focusable
|
|
60
|
+
icon=${icon}
|
|
61
|
+
color=${color}
|
|
62
|
+
clickable=${clickable}
|
|
63
|
+
focusable=${focusable}>
|
|
64
64
|
</b2b-icon-50>
|
|
65
65
|
</div>`;
|
|
66
66
|
},
|
|
@@ -69,7 +69,7 @@ export const Inherit = {
|
|
|
69
69
|
const renderAllIcons = () => {
|
|
70
70
|
const icons = iconTypes.map(icon => {
|
|
71
71
|
return html ` <div class="icon-container">
|
|
72
|
-
<b2b-icon-50 icon
|
|
72
|
+
<b2b-icon-50 icon=${icon}></b2b-icon-50>
|
|
73
73
|
<p>${icon}</p>
|
|
74
74
|
</div>`;
|
|
75
75
|
});
|
|
@@ -33,17 +33,17 @@ const meta = {
|
|
|
33
33
|
var args = __rest(_a, []);
|
|
34
34
|
return html `<div style="width: 400px;">
|
|
35
35
|
<b2b-input
|
|
36
|
-
label
|
|
37
|
-
required
|
|
38
|
-
type
|
|
39
|
-
disabled
|
|
40
|
-
placeholder
|
|
41
|
-
value
|
|
42
|
-
hint
|
|
43
|
-
error
|
|
44
|
-
autofocus
|
|
36
|
+
label=${args.label}
|
|
37
|
+
required=${args.required}
|
|
38
|
+
type=${args.defaultType}
|
|
39
|
+
disabled=${args.disabled}
|
|
40
|
+
placeholder=${args.placeholder}
|
|
41
|
+
value=${args.value}
|
|
42
|
+
hint=${args.hint}
|
|
43
|
+
error=${args.error}
|
|
44
|
+
autofocus=${args.autofocus}
|
|
45
45
|
invalid=${args.invalid}
|
|
46
|
-
input-text-align
|
|
46
|
+
input-text-align=${args.inputTextAlign}></b2b-input>
|
|
47
47
|
</div>`;
|
|
48
48
|
},
|
|
49
49
|
};
|
|
@@ -72,15 +72,15 @@ export const Prefix = {
|
|
|
72
72
|
var args = __rest(_a, []);
|
|
73
73
|
return html `<div style="width: 400px;">
|
|
74
74
|
<b2b-input
|
|
75
|
-
label
|
|
76
|
-
required
|
|
77
|
-
type
|
|
78
|
-
disabled
|
|
79
|
-
placeholder
|
|
80
|
-
value
|
|
81
|
-
hint
|
|
82
|
-
error
|
|
83
|
-
autofocus
|
|
75
|
+
label=${args.label}
|
|
76
|
+
required=${args.required}
|
|
77
|
+
type=${args.type}
|
|
78
|
+
disabled=${args.disabled}
|
|
79
|
+
placeholder=${args.placeholder}
|
|
80
|
+
value=${args.value}
|
|
81
|
+
hint=${args.hint}
|
|
82
|
+
error=${args.error}
|
|
83
|
+
autofocus=${args.autofocus}
|
|
84
84
|
invalid=${args.invalid}
|
|
85
85
|
><span slot="start">Registration Number</span></b2b-input
|
|
86
86
|
>
|
|
@@ -114,15 +114,15 @@ export const PrefixAndSuffix = {
|
|
|
114
114
|
var args = __rest(_a, []);
|
|
115
115
|
return html `<div style="width: 400px;">
|
|
116
116
|
<b2b-input
|
|
117
|
-
label
|
|
118
|
-
required
|
|
119
|
-
type
|
|
120
|
-
disabled
|
|
121
|
-
placeholder
|
|
122
|
-
value
|
|
123
|
-
hint
|
|
124
|
-
error
|
|
125
|
-
autofocus
|
|
117
|
+
label=${args.label}
|
|
118
|
+
required=${args.required}
|
|
119
|
+
type=${args.type}
|
|
120
|
+
disabled=${args.disabled}
|
|
121
|
+
placeholder=${args.placeholder}
|
|
122
|
+
value=${args.value}
|
|
123
|
+
hint=${args.hint}
|
|
124
|
+
error=${args.error}
|
|
125
|
+
autofocus=${args.autofocus}
|
|
126
126
|
invalid=${args.invalid}>
|
|
127
127
|
<b2b-icon-100 icon="b2b_icon-search" slot="start"></b2b-icon-100
|
|
128
128
|
><span slot="end">Registration Number</span></b2b-input
|
|
@@ -136,14 +136,14 @@ export const Label = {
|
|
|
136
136
|
var args = __rest(_a, []);
|
|
137
137
|
return html `<div style="width: 400px;">
|
|
138
138
|
<b2b-input
|
|
139
|
-
required
|
|
140
|
-
type
|
|
141
|
-
disabled
|
|
142
|
-
placeholder
|
|
143
|
-
value
|
|
144
|
-
hint
|
|
145
|
-
error
|
|
146
|
-
autofocus
|
|
139
|
+
required=${args.required}
|
|
140
|
+
type=${args.type}
|
|
141
|
+
disabled=${args.disabled}
|
|
142
|
+
placeholder=${args.placeholder}
|
|
143
|
+
value=${args.value}
|
|
144
|
+
hint=${args.hint}
|
|
145
|
+
error=${args.error}
|
|
146
|
+
autofocus=${args.autofocus}
|
|
147
147
|
invalid=${args.invalid}
|
|
148
148
|
><span slot="label">Custom label</span></b2b-input
|
|
149
149
|
>
|
|
@@ -156,14 +156,14 @@ export const HintSlot = {
|
|
|
156
156
|
var args = __rest(_a, []);
|
|
157
157
|
return html `<div style="width: 400px;">
|
|
158
158
|
<b2b-input
|
|
159
|
-
label
|
|
160
|
-
required
|
|
161
|
-
type
|
|
162
|
-
disabled
|
|
163
|
-
placeholder
|
|
164
|
-
value
|
|
165
|
-
error
|
|
166
|
-
autofocus
|
|
159
|
+
label=${args.label}
|
|
160
|
+
required=${args.required}
|
|
161
|
+
type=${args.type}
|
|
162
|
+
disabled=${args.disabled}
|
|
163
|
+
placeholder=${args.placeholder}
|
|
164
|
+
value=${args.value}
|
|
165
|
+
error=${args.error}
|
|
166
|
+
autofocus=${args.autofocus}
|
|
167
167
|
invalid=${args.invalid}
|
|
168
168
|
><span slot="hint">Custom hint</span></b2b-input
|
|
169
169
|
>
|
|
@@ -4,10 +4,10 @@ const Template = ({ invalid, disabled, error, hint, additionalSlot, }) => {
|
|
|
4
4
|
return additionalSlot
|
|
5
5
|
? html ` <div style="width: 380px">
|
|
6
6
|
<b2b-input-group
|
|
7
|
-
invalid
|
|
8
|
-
disabled
|
|
9
|
-
error
|
|
10
|
-
hint
|
|
7
|
+
invalid=${invalid}
|
|
8
|
+
disabled=${disabled}
|
|
9
|
+
error=${error}
|
|
10
|
+
hint=${hint}>
|
|
11
11
|
<b2b-input slot="start" label="Search Term"></b2b-input>
|
|
12
12
|
<b2b-dropdown style="width: 90px;">
|
|
13
13
|
<option value="one">€</option>
|
|
@@ -237,9 +237,6 @@
|
|
|
237
237
|
display: flex;
|
|
238
238
|
flex-direction: column;
|
|
239
239
|
min-width: 7rem;
|
|
240
|
-
/* this is a workaround to force purgecss to include the overwrites of
|
|
241
|
-
the variables --b2b-border-right and --b2b-border-radius
|
|
242
|
-
*/
|
|
243
240
|
}
|
|
244
241
|
.b2b-input-list.b2b-input-list__options-on b2b-input {
|
|
245
242
|
--b2b-border-radius: var(--b2b-size-border-no-radius-bottom);
|
|
@@ -300,6 +297,11 @@
|
|
|
300
297
|
.b2b-input-list b2b-icon-100 {
|
|
301
298
|
--b2b-icon-cursor: pointer;
|
|
302
299
|
}
|
|
300
|
+
.b2b-input-list {
|
|
301
|
+
/* this is a workaround to force purgecss to include the overwrites of
|
|
302
|
+
the variables --b2b-border-right and --b2b-border-radius
|
|
303
|
+
*/
|
|
304
|
+
}
|
|
303
305
|
.b2b-input-list .purge-css-include-variables {
|
|
304
306
|
border-radius: var(--b2b-border-radius);
|
|
305
307
|
border-right: var(--b2b-border-right);
|
|
@@ -29,10 +29,10 @@ const meta = {
|
|
|
29
29
|
return html `<div style="height: 130px; width: 300px">
|
|
30
30
|
<b2b-input-list
|
|
31
31
|
data-testid="element"
|
|
32
|
-
label
|
|
33
|
-
required
|
|
34
|
-
placeholder
|
|
35
|
-
disabled
|
|
32
|
+
label=${args.label}
|
|
33
|
+
required=${args.required}
|
|
34
|
+
placeholder=${args.placeholder}
|
|
35
|
+
disabled=${args.disabled}
|
|
36
36
|
.optionsList=${args.optionsList}></b2b-input-list>
|
|
37
37
|
</div>`;
|
|
38
38
|
},
|
|
@@ -60,10 +60,10 @@ export const CustomList = {
|
|
|
60
60
|
return html `<div style="height: 130px; width: 300px">
|
|
61
61
|
<b2b-input-list
|
|
62
62
|
data-testid="element"
|
|
63
|
-
label
|
|
64
|
-
required
|
|
65
|
-
placeholder
|
|
66
|
-
disabled
|
|
63
|
+
label=${args.label}
|
|
64
|
+
required=${args.required}
|
|
65
|
+
placeholder=${args.placeholder}
|
|
66
|
+
disabled=${args.disabled}
|
|
67
67
|
.optionsList=${args.optionsList}
|
|
68
68
|
><ul>
|
|
69
69
|
<li>Option 1</li>
|
|
@@ -90,11 +90,11 @@ export const disabledWithSelectedOption = {
|
|
|
90
90
|
return html `<div style="height: 130px; width: 300px">
|
|
91
91
|
<b2b-input-list
|
|
92
92
|
data-testid="element"
|
|
93
|
-
label
|
|
94
|
-
value
|
|
95
|
-
required
|
|
96
|
-
placeholder
|
|
97
|
-
disabled
|
|
93
|
+
label=${args.label}
|
|
94
|
+
value=${args.optionsList[0]}
|
|
95
|
+
required=${args.required}
|
|
96
|
+
placeholder=${args.placeholder}
|
|
97
|
+
disabled=${args.disabled}
|
|
98
98
|
.optionsList=${args.optionsList}
|
|
99
99
|
><ul>
|
|
100
100
|
<li>Option 1</li>
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { html } from "lit-html";
|
|
2
2
|
import { getArgTypes } from "../../docs/config/utils";
|
|
3
3
|
const Template = ({ type }) => {
|
|
4
|
-
return html `<b2b-label type
|
|
4
|
+
return html `<b2b-label type=${type}>Label</b2b-label>`;
|
|
5
5
|
};
|
|
6
6
|
const defaultArgs = {
|
|
7
7
|
type: 'neutral',
|
|
@@ -22,11 +22,11 @@ const Template = ({ opened, variant, heading, backdropDismiss, escDismiss, conte
|
|
|
22
22
|
<b2b-modal
|
|
23
23
|
@b2b-close=${closeModal}
|
|
24
24
|
id="modal"
|
|
25
|
-
opened
|
|
26
|
-
variant
|
|
27
|
-
heading
|
|
28
|
-
backdrop-dismiss
|
|
29
|
-
esc-dismiss
|
|
25
|
+
opened=${opened}
|
|
26
|
+
variant=${variant}
|
|
27
|
+
heading=${heading}
|
|
28
|
+
backdrop-dismiss=${backdropDismiss}
|
|
29
|
+
esc-dismiss=${escDismiss}>
|
|
30
30
|
<b2b-icon-100 slot="header-icon" icon="b2b_icon-info"></b2b-icon-100>
|
|
31
31
|
<div>${content}</div>
|
|
32
32
|
<b2b-paragraph slot="footer-left">* Left Slot</b2b-paragraph>
|