@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
|
@@ -26,13 +26,13 @@ describe('B2B-Background-Box', () => {
|
|
|
26
26
|
const style = await element.getComputedStyle();
|
|
27
27
|
expect(style.padding).toBe('0px');
|
|
28
28
|
});
|
|
29
|
-
it('should set
|
|
29
|
+
it('should set max width', async () => {
|
|
30
30
|
page = await newE2EPage();
|
|
31
|
-
await page.setContent(`<b2b-background-box
|
|
31
|
+
await page.setContent(`<b2b-background-box max-width='true' no-padding='true'>Background box component</b2b-background-box>`);
|
|
32
32
|
const element = await page.find('b2b-background-box');
|
|
33
33
|
expect(element).toEqualText('Background box component');
|
|
34
34
|
const style = await element.getComputedStyle();
|
|
35
|
-
expect(style.
|
|
35
|
+
expect(style.maxWidth).toBe('1212px');
|
|
36
36
|
});
|
|
37
37
|
it('should remove specific borders when set to none', async () => {
|
|
38
38
|
page = await newE2EPage();
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { h, Host } from "@stencil/core";
|
|
2
2
|
export class BackgroundBoxComponent {
|
|
3
3
|
constructor() {
|
|
4
|
-
this.
|
|
4
|
+
this.maxWidth = false;
|
|
5
5
|
this.noPadding = false;
|
|
6
6
|
this.borderTop = 'default';
|
|
7
7
|
this.borderRight = 'default';
|
|
@@ -9,15 +9,15 @@ export class BackgroundBoxComponent {
|
|
|
9
9
|
this.borderLeft = 'default';
|
|
10
10
|
}
|
|
11
11
|
render() {
|
|
12
|
-
return (h(Host, { key: '
|
|
12
|
+
return (h(Host, { key: '3f5519f808f26a88fde93a7f933b11c9b3f96992', class: {
|
|
13
13
|
'b2b-background-box': true,
|
|
14
|
-
'b2b-background-box--
|
|
14
|
+
'b2b-background-box--max-width': this.maxWidth,
|
|
15
15
|
'b2b-background-box--no-padding': this.noPadding,
|
|
16
16
|
'b2b-background-box--hide-border-top': this.borderTop === 'none',
|
|
17
17
|
'b2b-background-box--hide-border-right': this.borderRight === 'none',
|
|
18
18
|
'b2b-background-box--hide-border-bottom': this.borderBottom === 'none',
|
|
19
19
|
'b2b-background-box--hide-border-left': this.borderLeft === 'none',
|
|
20
|
-
} }, h("slot", { key: '
|
|
20
|
+
} }, h("slot", { key: '35bd80fb92b66ab216db1cf86ce7817a9087fe19' })));
|
|
21
21
|
}
|
|
22
22
|
static get is() { return "b2b-background-box"; }
|
|
23
23
|
static get encapsulation() { return "shadow"; }
|
|
@@ -33,7 +33,7 @@ export class BackgroundBoxComponent {
|
|
|
33
33
|
}
|
|
34
34
|
static get properties() {
|
|
35
35
|
return {
|
|
36
|
-
"
|
|
36
|
+
"maxWidth": {
|
|
37
37
|
"type": "boolean",
|
|
38
38
|
"mutable": false,
|
|
39
39
|
"complexType": {
|
|
@@ -45,9 +45,9 @@ export class BackgroundBoxComponent {
|
|
|
45
45
|
"optional": false,
|
|
46
46
|
"docs": {
|
|
47
47
|
"tags": [],
|
|
48
|
-
"text": "
|
|
48
|
+
"text": "Sets max width to 1212px. Per default, it is false"
|
|
49
49
|
},
|
|
50
|
-
"attribute": "
|
|
50
|
+
"attribute": "max-width",
|
|
51
51
|
"reflect": false,
|
|
52
52
|
"defaultValue": "false"
|
|
53
53
|
},
|
|
@@ -15,13 +15,13 @@ it('should render the background box with default values', async () => {
|
|
|
15
15
|
</b2b-background-box>
|
|
16
16
|
`);
|
|
17
17
|
});
|
|
18
|
-
it('should render the background box with
|
|
18
|
+
it('should render the background box with max width', async () => {
|
|
19
19
|
const page = await newSpecPage({
|
|
20
20
|
components: [BackgroundBoxComponent],
|
|
21
|
-
template: () => (h("b2b-background-box", { "
|
|
21
|
+
template: () => (h("b2b-background-box", { "max-width": true }, "B2B Background Box")),
|
|
22
22
|
});
|
|
23
23
|
expect(page.root).toEqualHtml(`
|
|
24
|
-
<b2b-background-box class="b2b-background-box b2b-background-box--
|
|
24
|
+
<b2b-background-box class="b2b-background-box b2b-background-box--max-width" max-width="">
|
|
25
25
|
<mock:shadow-root>
|
|
26
26
|
<slot></slot>
|
|
27
27
|
</mock:shadow-root>
|
|
@@ -16,7 +16,7 @@ const meta = {
|
|
|
16
16
|
title: 'Components/Utilities/Background Box',
|
|
17
17
|
component: 'b2b-background-box',
|
|
18
18
|
args: {
|
|
19
|
-
|
|
19
|
+
maxWidth: false,
|
|
20
20
|
noPadding: false,
|
|
21
21
|
borderTop: 'default',
|
|
22
22
|
borderRight: 'default',
|
|
@@ -27,21 +27,21 @@ const meta = {
|
|
|
27
27
|
render: (_a) => {
|
|
28
28
|
var args = __rest(_a, []);
|
|
29
29
|
return html ` <b2b-background-box
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
30
|
+
max-width="${args.maxWidth}"
|
|
31
|
+
no-padding="${args.noPadding}"
|
|
32
|
+
border-top="${args.borderTop}"
|
|
33
|
+
border-right="${args.borderRight}"
|
|
34
|
+
border-bottom="${args.borderBottom}"
|
|
35
|
+
border-left="${args.borderLeft}">
|
|
36
|
+
<b2b-paragraph>
|
|
37
|
+
The BackgroundBox component adjusts its width and padding based on two
|
|
38
|
+
properties: maxWidth and noPadding. When maxWidth is true, it fills the
|
|
39
|
+
available width until 1212px. The noPadding property controls internal
|
|
40
|
+
spacing—if true, no padding is applied; if false, a default padding of
|
|
41
|
+
24px (1.5rem) is added. The height of the box depends on its internal
|
|
42
|
+
content.
|
|
43
|
+
</b2b-paragraph>
|
|
44
|
+
</b2b-background-box>`;
|
|
45
45
|
},
|
|
46
46
|
};
|
|
47
47
|
export default meta;
|
|
@@ -51,8 +51,8 @@ export const Default = {
|
|
|
51
51
|
export const BorderControl = {
|
|
52
52
|
args: Object.assign(Object.assign({}, meta.args), { borderTop: 'none' }),
|
|
53
53
|
};
|
|
54
|
-
export const
|
|
55
|
-
args: Object.assign(Object.assign({}, meta.args), {
|
|
54
|
+
export const MaxWidth = {
|
|
55
|
+
args: Object.assign(Object.assign({}, meta.args), { maxWidth: true }),
|
|
56
56
|
};
|
|
57
57
|
export const NoPadding = {
|
|
58
58
|
args: Object.assign(Object.assign({}, meta.args), { noPadding: true }),
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
@charset "UTF-8";
|
|
2
2
|
/**
|
|
3
3
|
* Do not edit directly
|
|
4
|
-
* Generated on Thu,
|
|
4
|
+
* Generated on Thu, 20 Mar 2025 06:20:36 GMT
|
|
5
5
|
*/
|
|
6
6
|
:root, :host {
|
|
7
7
|
--b2b-size-200: 5rem; /* 80px */
|
|
@@ -124,7 +124,7 @@
|
|
|
124
124
|
}
|
|
125
125
|
/**
|
|
126
126
|
* Do not edit directly
|
|
127
|
-
* Generated on Thu,
|
|
127
|
+
* Generated on Thu, 20 Mar 2025 06:20:36 GMT
|
|
128
128
|
*/
|
|
129
129
|
:root [data-theme="dark"] {
|
|
130
130
|
--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 */
|
|
@@ -12,7 +12,7 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
12
12
|
};
|
|
13
13
|
import { html } from "lit-html";
|
|
14
14
|
import { getArgTypes } from "../../docs/config/utils";
|
|
15
|
-
const
|
|
15
|
+
const button = {
|
|
16
16
|
title: 'Components/Interaction/Button',
|
|
17
17
|
component: 'b2b-button',
|
|
18
18
|
args: {
|
|
@@ -30,133 +30,133 @@ const meta = {
|
|
|
30
30
|
render: (_a) => {
|
|
31
31
|
var args = __rest(_a, []);
|
|
32
32
|
return html `<b2b-button
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
33
|
+
variant="${args.variant}"
|
|
34
|
+
size="${args.size}"
|
|
35
|
+
disabled="${args.disabled}"
|
|
36
|
+
loading="${args.loading}"
|
|
37
|
+
type="${args.type}">
|
|
38
|
+
${args.label}
|
|
39
|
+
</b2b-button>`;
|
|
40
40
|
},
|
|
41
41
|
};
|
|
42
|
-
export default
|
|
42
|
+
export default button;
|
|
43
43
|
export const Primary = {
|
|
44
|
-
args: Object.assign(Object.assign({},
|
|
44
|
+
args: Object.assign(Object.assign({}, button.args), { variant: 'primary', label: 'Primary' }),
|
|
45
45
|
};
|
|
46
46
|
export const Secondary = {
|
|
47
|
-
args: Object.assign(Object.assign({},
|
|
47
|
+
args: Object.assign(Object.assign({}, button.args), { label: 'Secondary' }),
|
|
48
48
|
};
|
|
49
49
|
export const Loading = {
|
|
50
|
-
args: Object.assign(Object.assign({},
|
|
50
|
+
args: Object.assign(Object.assign({}, button.args), { loading: true, label: 'Loading' }),
|
|
51
51
|
};
|
|
52
52
|
export const IconStart = {
|
|
53
|
-
args: Object.assign(Object.assign({},
|
|
53
|
+
args: Object.assign(Object.assign({}, button.args), { label: 'Icon Start' }),
|
|
54
54
|
render: (_a) => {
|
|
55
55
|
var args = __rest(_a, []);
|
|
56
56
|
return html `<b2b-button
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
57
|
+
variant="${args.variant}"
|
|
58
|
+
size="${args.size}"
|
|
59
|
+
disabled="${args.disabled}"
|
|
60
|
+
loading="${args.loading}"
|
|
61
|
+
type="${args.type}">
|
|
62
|
+
<b2b-icon-100 slot="start" icon="b2b_icon-check"></b2b-icon-100>
|
|
63
|
+
${args.label}
|
|
64
|
+
</b2b-button>`;
|
|
65
65
|
},
|
|
66
66
|
};
|
|
67
67
|
export const IconEnd = {
|
|
68
|
-
args: Object.assign(Object.assign({},
|
|
68
|
+
args: Object.assign(Object.assign({}, button.args), { label: 'Icon End' }),
|
|
69
69
|
render: (_a) => {
|
|
70
70
|
var args = __rest(_a, []);
|
|
71
71
|
return html `<b2b-button
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
72
|
+
variant="${args.variant}"
|
|
73
|
+
size="${args.size}"
|
|
74
|
+
disabled="${args.disabled}"
|
|
75
|
+
loading="${args.loading}"
|
|
76
|
+
type="${args.type}">
|
|
77
|
+
${args.label}
|
|
78
|
+
<b2b-icon-100 slot="end" icon="b2b_icon-check"></b2b-icon-100>
|
|
79
|
+
</b2b-button>`;
|
|
80
80
|
},
|
|
81
81
|
};
|
|
82
82
|
export const PaliIcon = {
|
|
83
|
-
args: Object.assign(Object.assign({},
|
|
83
|
+
args: Object.assign(Object.assign({}, button.args), { label: 'Icon from PaLi' }),
|
|
84
84
|
render: (_a) => {
|
|
85
85
|
var args = __rest(_a, []);
|
|
86
86
|
return html `<b2b-button
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
87
|
+
variant="${args.variant}"
|
|
88
|
+
size="${args.size}"
|
|
89
|
+
disabled="${args.disabled}"
|
|
90
|
+
loading="${args.loading}"
|
|
91
|
+
type="${args.type}">
|
|
92
|
+
<i slot="start" class="obc_icon-info"></i>
|
|
93
|
+
${args.label}
|
|
94
|
+
</b2b-button>`;
|
|
95
95
|
},
|
|
96
96
|
};
|
|
97
97
|
export const IconOnly = {
|
|
98
|
-
args: Object.assign({},
|
|
98
|
+
args: Object.assign({}, button.args),
|
|
99
99
|
render: (_a) => {
|
|
100
100
|
var args = __rest(_a, []);
|
|
101
101
|
return html `<b2b-button
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
102
|
+
variant="${args.variant}"
|
|
103
|
+
size="${args.size}"
|
|
104
|
+
disabled="${args.disabled}"
|
|
105
|
+
loading="${args.loading}"
|
|
106
|
+
type="${args.type}">
|
|
107
|
+
<b2b-icon-100 slot="end" icon="b2b_icon-search"></b2b-icon-100>
|
|
108
|
+
</b2b-button>`;
|
|
109
109
|
},
|
|
110
110
|
};
|
|
111
111
|
export const Disabled = {
|
|
112
|
-
args: Object.assign(Object.assign({},
|
|
112
|
+
args: Object.assign(Object.assign({}, button.args), { disabled: true, label: 'Disabled' }),
|
|
113
113
|
};
|
|
114
114
|
export const Anchor = {
|
|
115
|
-
args: Object.assign({},
|
|
115
|
+
args: Object.assign({}, button.args),
|
|
116
116
|
render: (_a) => {
|
|
117
117
|
var args = __rest(_a, []);
|
|
118
118
|
return html `<b2b-button
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
119
|
+
variant="${args.variant}"
|
|
120
|
+
size="${args.size}"
|
|
121
|
+
disabled="${args.disabled}"
|
|
122
|
+
loading="${args.loading}"
|
|
123
|
+
href="www.otto.de"
|
|
124
|
+
target="blank"
|
|
125
|
+
type="${args.type}">
|
|
126
|
+
Go to otto.de
|
|
127
|
+
</b2b-button>`;
|
|
128
128
|
},
|
|
129
129
|
};
|
|
130
130
|
export const DisabledAnchor = {
|
|
131
|
-
args: Object.assign(Object.assign({},
|
|
131
|
+
args: Object.assign(Object.assign({}, button.args), { disabled: true }),
|
|
132
132
|
render: (_a) => {
|
|
133
133
|
var args = __rest(_a, []);
|
|
134
134
|
return html `<b2b-button
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
135
|
+
variant="${args.variant}"
|
|
136
|
+
size="${args.size}"
|
|
137
|
+
disabled="${args.disabled}"
|
|
138
|
+
loading="${args.loading}"
|
|
139
|
+
href="www.otto.de"
|
|
140
|
+
target="blank"
|
|
141
|
+
type="${args.type}">
|
|
142
|
+
Go to otto.de
|
|
143
|
+
</b2b-button>`;
|
|
144
144
|
},
|
|
145
145
|
};
|
|
146
146
|
export const CustomWidth = {
|
|
147
|
-
args: Object.assign(Object.assign({},
|
|
147
|
+
args: Object.assign(Object.assign({}, button.args), { width: 'custom' }),
|
|
148
148
|
render: (_a) => {
|
|
149
149
|
var args = __rest(_a, []);
|
|
150
150
|
return html ` <b2b-button
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
151
|
+
class="docs-button-obc-overwrite"
|
|
152
|
+
style="width: 300px"
|
|
153
|
+
variant="${args.variant}"
|
|
154
|
+
size="${args.size}"
|
|
155
|
+
width="${args.width}"
|
|
156
|
+
disabled="${args.disabled}"
|
|
157
|
+
loading="${args.loading}"
|
|
158
|
+
type="${args.type}">
|
|
159
|
+
300px custom width
|
|
160
|
+
</b2b-button>`;
|
|
161
161
|
},
|
|
162
162
|
};
|
|
@@ -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 */
|
|
@@ -27,12 +27,12 @@ const meta = {
|
|
|
27
27
|
render: (_a) => {
|
|
28
28
|
var args = __rest(_a, []);
|
|
29
29
|
return html `<b2b-chip-component
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
30
|
+
label="${args.label}"
|
|
31
|
+
type="${args.type}"
|
|
32
|
+
label-style="${args.labelStyle}"
|
|
33
|
+
disabled="${args.disabled}"
|
|
34
|
+
value="${args.value}"
|
|
35
|
+
has-close-button="${args.hasCloseButton}" />`;
|
|
36
36
|
},
|
|
37
37
|
};
|
|
38
38
|
export default meta;
|
|
@@ -54,15 +54,15 @@ export const story040WithTruncatedText = {
|
|
|
54
54
|
render: (_a) => {
|
|
55
55
|
var args = __rest(_a, []);
|
|
56
56
|
return html `<div
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
57
|
+
style="width: 170px; border: 1px solid grey; border-radius: 3px; padding: 6px;">
|
|
58
|
+
<b2b-chip-component
|
|
59
|
+
label="${args.label}"
|
|
60
|
+
type="${args.type}"
|
|
61
|
+
label-style="${args.labelStyle}"
|
|
62
|
+
disabled="${args.disabled}"
|
|
63
|
+
value="${args.value}"
|
|
64
|
+
has-close-button="${args.hasCloseButton}" />
|
|
65
|
+
</div>`;
|
|
66
66
|
},
|
|
67
67
|
};
|
|
68
68
|
export const story050SuccessChip = {
|
|
@@ -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 */
|