@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
|
@@ -86,6 +86,7 @@ export class B2bDatePicker {
|
|
|
86
86
|
this.disableWeekends = undefined;
|
|
87
87
|
this.disableDates = [];
|
|
88
88
|
this.label = 'Zeitpunkt auswählen';
|
|
89
|
+
this.required = false;
|
|
89
90
|
this.preSelectedDate = undefined;
|
|
90
91
|
this.showHint = true;
|
|
91
92
|
this.width = 300;
|
|
@@ -325,7 +326,7 @@ export class B2bDatePicker {
|
|
|
325
326
|
render() {
|
|
326
327
|
if (!this.isWithWithinLimit())
|
|
327
328
|
return null;
|
|
328
|
-
return (h(Host, null, h("div", { class: "b2b-date-picker" }, h("
|
|
329
|
+
return (h(Host, null, h("div", { class: "b2b-date-picker" }, h("b2b-input-label", { id: this.label, required: this.required }, this.label), h("div", { style: { width: `${this.width}px` }, class: {
|
|
329
330
|
'b2b-date-picker-input-wrapper': true,
|
|
330
331
|
'b2b-date-picker-input-wrapper--focused': this.focused || this.showDatePicker,
|
|
331
332
|
'b2b-date-picker-input-wrapper--error': this.invalid,
|
|
@@ -468,6 +469,24 @@ export class B2bDatePicker {
|
|
|
468
469
|
"reflect": false,
|
|
469
470
|
"defaultValue": "'Zeitpunkt ausw\u00E4hlen'"
|
|
470
471
|
},
|
|
472
|
+
"required": {
|
|
473
|
+
"type": "boolean",
|
|
474
|
+
"mutable": false,
|
|
475
|
+
"complexType": {
|
|
476
|
+
"original": "boolean",
|
|
477
|
+
"resolved": "boolean",
|
|
478
|
+
"references": {}
|
|
479
|
+
},
|
|
480
|
+
"required": false,
|
|
481
|
+
"optional": false,
|
|
482
|
+
"docs": {
|
|
483
|
+
"tags": [],
|
|
484
|
+
"text": "Adds an asterisk at the end of the label to signify that the field is required."
|
|
485
|
+
},
|
|
486
|
+
"attribute": "required",
|
|
487
|
+
"reflect": true,
|
|
488
|
+
"defaultValue": "false"
|
|
489
|
+
},
|
|
471
490
|
"preSelectedDate": {
|
|
472
491
|
"type": "string",
|
|
473
492
|
"mutable": false,
|
|
@@ -12,11 +12,12 @@ 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
|
-
import { userEvent } from "@storybook/
|
|
15
|
+
import { userEvent } from "@storybook/test";
|
|
16
16
|
const meta = {
|
|
17
17
|
title: 'Components/Form/Date Picker',
|
|
18
18
|
component: 'b2b-date-picker',
|
|
19
19
|
args: {
|
|
20
|
+
required: false,
|
|
20
21
|
disablePastDates: false,
|
|
21
22
|
disableFutureDates: false,
|
|
22
23
|
disableWeekends: false,
|
|
@@ -39,6 +40,7 @@ const meta = {
|
|
|
39
40
|
return html ` <div style="margin-left: 2px">
|
|
40
41
|
<b2b-date-picker
|
|
41
42
|
label=${args.label}
|
|
43
|
+
required=${args.required}
|
|
42
44
|
disable-past-dates=${args.disablePastDates}
|
|
43
45
|
disable-future-dates=${args.disableFutureDates}
|
|
44
46
|
disable-weekends=${args.disableWeekends}
|
|
@@ -58,6 +60,7 @@ const meta = {
|
|
|
58
60
|
return html ` <div style="margin-left: 2px">
|
|
59
61
|
<b2b-date-picker
|
|
60
62
|
label=${args.label}
|
|
63
|
+
required=${args.required}
|
|
61
64
|
disable-past-dates=${args.disablePastDates}
|
|
62
65
|
disable-future-dates=${args.disableFutureDates}
|
|
63
66
|
disable-weekends=${args.disableWeekends}
|
|
@@ -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 */
|
|
@@ -241,7 +241,7 @@
|
|
|
241
241
|
border: 1px solid var(--b2b-color-grey-200);
|
|
242
242
|
border-right: var(--b2b-border-right);
|
|
243
243
|
border-radius: var(--b2b-border-radius);
|
|
244
|
-
padding: 7px
|
|
244
|
+
padding: 7px 10px 6px;
|
|
245
245
|
padding-right: calc(1.75rem + 6px);
|
|
246
246
|
height: var(--b2b-size-90);
|
|
247
247
|
line-height: var(--b2b-size-copy-line-height-100);
|
|
@@ -257,7 +257,7 @@
|
|
|
257
257
|
}
|
|
258
258
|
:host(.b2b-dropdown) b2b-input-label {
|
|
259
259
|
display: block;
|
|
260
|
-
margin-bottom: var(--b2b-size-
|
|
260
|
+
margin-bottom: var(--b2b-size-5);
|
|
261
261
|
}
|
|
262
262
|
:host(.b2b-dropdown) span {
|
|
263
263
|
display: block;
|
|
@@ -25,6 +25,8 @@ export class DropdownComponent {
|
|
|
25
25
|
this.label = undefined;
|
|
26
26
|
this.required = false;
|
|
27
27
|
this.name = undefined;
|
|
28
|
+
this.placeholder = 'Select an option...';
|
|
29
|
+
this.placeholderValue = '';
|
|
28
30
|
this.disabled = false;
|
|
29
31
|
this.invalid = false;
|
|
30
32
|
this.hint = undefined;
|
|
@@ -40,14 +42,21 @@ export class DropdownComponent {
|
|
|
40
42
|
componentDidRender() {
|
|
41
43
|
let options = this.hostElement.querySelectorAll('option');
|
|
42
44
|
const selectElement = this.getSelectElement();
|
|
45
|
+
selectElement.innerHTML = '';
|
|
46
|
+
const placeholderOption = document.createElement('option');
|
|
47
|
+
placeholderOption.value = this.placeholderValue;
|
|
48
|
+
placeholderOption.textContent = this.placeholder;
|
|
49
|
+
placeholderOption.disabled = true;
|
|
50
|
+
placeholderOption.selected = true;
|
|
51
|
+
selectElement.append(placeholderOption);
|
|
43
52
|
selectElement.append(...options);
|
|
44
53
|
}
|
|
45
54
|
render() {
|
|
46
|
-
return (h(Host, { key: '
|
|
55
|
+
return (h(Host, { key: '0bdbaf3576571cc9a44355e23db97e867a3bd19d', class: {
|
|
47
56
|
'b2b-dropdown': true,
|
|
48
57
|
'b2b-dropdown--error': this.invalid && !this.disabled,
|
|
49
58
|
'b2b-dropdown--disabled': this.disabled,
|
|
50
|
-
} }, this.label && (h("b2b-input-label", { id: this.name, required: this.required }, this.label)), h("select", { key: '
|
|
59
|
+
} }, this.label && (h("b2b-input-label", { id: this.name, required: this.required }, this.label)), h("select", { key: '7d53810ef3e04fcdd37d0383659057cfbdb0d72c', class: "b2b-dropdown__select", "aria-labelledby": this.name, name: this.name, disabled: this.disabled, onChange: this.onSelect, onFocus: this.onFocus, onBlur: this.onBlur }), (this.hint !== undefined && !this.invalid) ||
|
|
51
60
|
(this.hint !== undefined && this.disabled) ? (h("span", null, this.hint)) : (''), this.error !== undefined && this.invalid && !this.disabled ? (h("span", null, this.error)) : ('')));
|
|
52
61
|
}
|
|
53
62
|
static get is() { return "b2b-dropdown"; }
|
|
@@ -116,6 +125,42 @@ export class DropdownComponent {
|
|
|
116
125
|
"attribute": "name",
|
|
117
126
|
"reflect": true
|
|
118
127
|
},
|
|
128
|
+
"placeholder": {
|
|
129
|
+
"type": "string",
|
|
130
|
+
"mutable": false,
|
|
131
|
+
"complexType": {
|
|
132
|
+
"original": "string",
|
|
133
|
+
"resolved": "string",
|
|
134
|
+
"references": {}
|
|
135
|
+
},
|
|
136
|
+
"required": false,
|
|
137
|
+
"optional": false,
|
|
138
|
+
"docs": {
|
|
139
|
+
"tags": [],
|
|
140
|
+
"text": "Placeholder text for the dropdown."
|
|
141
|
+
},
|
|
142
|
+
"attribute": "placeholder",
|
|
143
|
+
"reflect": false,
|
|
144
|
+
"defaultValue": "'Select an option...'"
|
|
145
|
+
},
|
|
146
|
+
"placeholderValue": {
|
|
147
|
+
"type": "string",
|
|
148
|
+
"mutable": false,
|
|
149
|
+
"complexType": {
|
|
150
|
+
"original": "string",
|
|
151
|
+
"resolved": "string",
|
|
152
|
+
"references": {}
|
|
153
|
+
},
|
|
154
|
+
"required": false,
|
|
155
|
+
"optional": false,
|
|
156
|
+
"docs": {
|
|
157
|
+
"tags": [],
|
|
158
|
+
"text": "Value for the placeholder. Defaults to an empty string but can be customized."
|
|
159
|
+
},
|
|
160
|
+
"attribute": "placeholder-value",
|
|
161
|
+
"reflect": false,
|
|
162
|
+
"defaultValue": "''"
|
|
163
|
+
},
|
|
119
164
|
"disabled": {
|
|
120
165
|
"type": "boolean",
|
|
121
166
|
"mutable": false,
|
|
@@ -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 */
|
|
@@ -20,28 +20,28 @@ const meta = {
|
|
|
20
20
|
render: (_a) => {
|
|
21
21
|
var args = __rest(_a, []);
|
|
22
22
|
return html ` <div style="margin-left: 100px">
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
23
|
+
<b2b-flyout-menu>
|
|
24
|
+
<b2b-icon-100
|
|
25
|
+
icon="b2b_icon-ellipsis"
|
|
26
|
+
slot="trigger"
|
|
27
|
+
clickable
|
|
28
|
+
focusable></b2b-icon-100>
|
|
29
|
+
<b2b-flyout-menu-option
|
|
30
|
+
slot="option"
|
|
31
|
+
option="Delete"
|
|
32
|
+
disabled="${args.disabled}">
|
|
33
|
+
</b2b-flyout-menu-option>
|
|
34
|
+
<b2b-flyout-menu-option
|
|
35
|
+
slot="option"
|
|
36
|
+
option="Pause"
|
|
37
|
+
separator="${args.separator}">
|
|
38
|
+
</b2b-flyout-menu-option>
|
|
39
|
+
<b2b-flyout-menu-option slot="option" option="Copy">
|
|
40
|
+
</b2b-flyout-menu-option>
|
|
41
|
+
<b2b-flyout-menu-option slot="option" option="Share">
|
|
42
|
+
</b2b-flyout-menu-option>
|
|
43
|
+
</b2b-flyout-menu>
|
|
44
|
+
</div>`;
|
|
45
45
|
},
|
|
46
46
|
};
|
|
47
47
|
export default meta;
|
|
@@ -63,27 +63,27 @@ export const AllStates = {
|
|
|
63
63
|
render: (_a) => {
|
|
64
64
|
var args = __rest(_a, []);
|
|
65
65
|
return html ` <div style="margin-left: 100px">
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
66
|
+
<b2b-flyout-menu opened="true">
|
|
67
|
+
<b2b-icon-100
|
|
68
|
+
icon="b2b_icon-ellipsis"
|
|
69
|
+
slot="trigger"
|
|
70
|
+
clickable
|
|
71
|
+
focusable></b2b-icon-100>
|
|
72
|
+
<b2b-flyout-menu-option
|
|
73
|
+
slot="option"
|
|
74
|
+
option="Delete"
|
|
75
|
+
disabled="${args.disabled}">
|
|
76
|
+
</b2b-flyout-menu-option>
|
|
77
|
+
<b2b-flyout-menu-option
|
|
78
|
+
slot="option"
|
|
79
|
+
option="Pause"
|
|
80
|
+
separator="${args.separator}">
|
|
81
|
+
</b2b-flyout-menu-option>
|
|
82
|
+
<b2b-flyout-menu-option slot="option" option="Copy">
|
|
83
|
+
</b2b-flyout-menu-option>
|
|
84
|
+
<b2b-flyout-menu-option slot="option" option="Share">
|
|
85
|
+
</b2b-flyout-menu-option>
|
|
86
|
+
</b2b-flyout-menu>
|
|
87
|
+
</div>`;
|
|
88
88
|
},
|
|
89
89
|
};
|
|
@@ -34,49 +34,50 @@ export const story010Grid = {
|
|
|
34
34
|
render: (_a) => {
|
|
35
35
|
var args = __rest(_a, []);
|
|
36
36
|
return html ` <b2b-grid margin="${args.margin}">
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
37
|
+
<b2b-grid-row
|
|
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
|
+
<h4>Column 1-6 of 12</h4>
|
|
44
|
+
<p>
|
|
45
|
+
Lorem ipsum dolor sit amet, consectetur adipiscing elit.
|
|
46
|
+
Suspendisse massa urna, accumsan id viverra et, mollis sit amet
|
|
47
|
+
sem. Cras congue ex ac arcu pellentesque, eu vestibulum sem
|
|
48
|
+
tempor. Curabitur consequat massa sed nulla lacinia, vitae
|
|
49
|
+
scelerisque ante egestas. Praesent et diam quis diam posuere
|
|
50
|
+
egestas. Duis feugiat lorem non nisl consectetur, sed fringilla
|
|
51
|
+
odio semper.
|
|
52
|
+
</p>
|
|
53
|
+
</div></b2b-grid-col
|
|
54
|
+
>
|
|
55
|
+
<b2b-grid-col
|
|
56
|
+
><div style="${gridBoxStyles}">
|
|
57
|
+
<h4>Column 7 of 12</h4>
|
|
58
|
+
<p>I grow to fill up all available space</p>
|
|
59
|
+
</div></b2b-grid-col
|
|
60
|
+
>
|
|
61
|
+
<b2b-grid-col
|
|
62
|
+
><div style="${gridBoxStyles}">
|
|
63
|
+
<h4>Column 8 of 12</h4>
|
|
64
|
+
<p>I grow to fill up all available space</p>
|
|
65
|
+
</div></b2b-grid-col
|
|
66
|
+
>
|
|
67
|
+
<b2b-grid-col
|
|
68
|
+
><div style="${gridBoxStyles}">
|
|
69
|
+
<h4>Column 9 of 12</h4>
|
|
70
|
+
<p>I grow to fill up all available space</p>
|
|
71
|
+
</div></b2b-grid-col
|
|
72
|
+
>
|
|
73
|
+
<b2b-grid-col span="3"
|
|
74
|
+
><div style="${gridBoxStyles}">
|
|
75
|
+
<h4>Column 10-12 of 12</h4>
|
|
76
|
+
<p>Resize me by changing the span attribute in the args table.</p>
|
|
77
|
+
</div></b2b-grid-col
|
|
78
|
+
>
|
|
79
|
+
</b2b-grid-row>
|
|
80
|
+
</b2b-grid>`;
|
|
80
81
|
},
|
|
81
82
|
};
|
|
82
83
|
export const story020AlignItems = {
|
|
@@ -92,43 +93,43 @@ export const story020AlignItems = {
|
|
|
92
93
|
render: (_a) => {
|
|
93
94
|
var args = __rest(_a, []);
|
|
94
95
|
return html `<b2b-grid
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
96
|
+
><b2b-grid-row
|
|
97
|
+
align-items="${args.alignItems}"
|
|
98
|
+
justify="${args.justify}"
|
|
99
|
+
row-gap="${args.rowGap}"
|
|
100
|
+
column-gap="${args.columnGap}">
|
|
101
|
+
<b2b-grid-col span="2"
|
|
102
|
+
><div style="${gridBoxSmallStyles}">
|
|
103
|
+
<h4>Column 1-2 of 12</h4>
|
|
104
|
+
</div></b2b-grid-col
|
|
105
|
+
>
|
|
106
|
+
<b2b-grid-col span="2"
|
|
107
|
+
><div style="${gridBoxStyles}">
|
|
108
|
+
<h4>Column 3-4 of 12</h4>
|
|
109
|
+
</div></b2b-grid-col
|
|
110
|
+
>
|
|
111
|
+
<b2b-grid-col span="2"
|
|
112
|
+
><div style="${gridBoxSmallStyles}">
|
|
113
|
+
<h4>Column 5-6 of 12</h4>
|
|
114
|
+
</div></b2b-grid-col
|
|
115
|
+
>
|
|
116
|
+
<b2b-grid-col span="2"
|
|
117
|
+
><div style="${gridBoxStyles}">
|
|
118
|
+
<h4>Column 7-8 of 12</h4>
|
|
119
|
+
</div></b2b-grid-col
|
|
120
|
+
>
|
|
121
|
+
<b2b-grid-col span="2"
|
|
122
|
+
><div style="${gridBoxSmallStyles}">
|
|
123
|
+
<h4>Column 9-10 of 12</h4>
|
|
124
|
+
</div></b2b-grid-col
|
|
125
|
+
>
|
|
126
|
+
<b2b-grid-col span="2"
|
|
127
|
+
><div style="${gridBoxStyles}">
|
|
128
|
+
<h4>Column 11-12 of 12</h4>
|
|
129
|
+
</div></b2b-grid-col
|
|
130
|
+
>
|
|
131
|
+
</b2b-grid-row></b2b-grid
|
|
132
|
+
>`;
|
|
132
133
|
},
|
|
133
134
|
};
|
|
134
135
|
export const story030TextAlign = {
|
|
@@ -144,40 +145,41 @@ export const story030TextAlign = {
|
|
|
144
145
|
render: (_a) => {
|
|
145
146
|
var args = __rest(_a, []);
|
|
146
147
|
return html `<b2b-grid margin="${args.margin}">
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
148
|
+
<b2b-grid-row
|
|
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
|
+
<h4>Column 1-6 of 12</h4>
|
|
155
|
+
<p>
|
|
156
|
+
Lorem ipsum dolor sit amet, consectetur adipiscing elit.
|
|
157
|
+
Suspendisse massa urna, accumsan id viverra et, mollis sit amet
|
|
158
|
+
sem. Cras congue ex ac arcu pellentesque, eu vestibulum sem
|
|
159
|
+
tempor. Curabitur consequat massa sed nulla lacinia, vitae
|
|
160
|
+
scelerisque ante egestas. Praesent et diam quis diam posuere
|
|
161
|
+
egestas. Duis feugiat lorem non nisl consectetur, sed fringilla
|
|
162
|
+
odio semper.
|
|
163
|
+
</p>
|
|
164
|
+
</div></b2b-grid-col
|
|
165
|
+
>
|
|
166
|
+
<b2b-grid-col span="2"
|
|
167
|
+
><div style="${gridBoxStyles}">
|
|
168
|
+
<h4>Column 7-8 of 12</h4>
|
|
169
|
+
</div></b2b-grid-col
|
|
170
|
+
>
|
|
171
|
+
<b2b-grid-col span="2"
|
|
172
|
+
><div style="${gridBoxStyles}">
|
|
173
|
+
<h4>Column 9-10 of 12</h4>
|
|
174
|
+
</div></b2b-grid-col
|
|
175
|
+
>
|
|
176
|
+
<b2b-grid-col span="2"
|
|
177
|
+
><div style="${gridBoxStyles}">
|
|
178
|
+
<h4>Column 11-12 of 12</h4>
|
|
179
|
+
</div></b2b-grid-col
|
|
180
|
+
></b2b-grid-row
|
|
181
|
+
></b2b-grid
|
|
182
|
+
>`;
|
|
181
183
|
},
|
|
182
184
|
};
|
|
183
185
|
export const story040Justify = {
|
|
@@ -193,39 +195,40 @@ export const story040Justify = {
|
|
|
193
195
|
render: (_a) => {
|
|
194
196
|
var args = __rest(_a, []);
|
|
195
197
|
return html `<b2b-grid margin="${args.margin}">
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
198
|
+
<b2b-grid-row
|
|
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
|
+
<h4>Column 1-6 of 12</h4>
|
|
205
|
+
<p>
|
|
206
|
+
Lorem ipsum dolor sit amet, consectetur adipiscing elit.
|
|
207
|
+
Suspendisse massa urna, accumsan id viverra et, mollis sit amet
|
|
208
|
+
sem. Cras congue ex ac arcu pellentesque, eu vestibulum sem
|
|
209
|
+
tempor. Curabitur consequat massa sed nulla lacinia, vitae
|
|
210
|
+
scelerisque ante egestas. Praesent et diam quis diam posuere
|
|
211
|
+
egestas. Duis feugiat lorem non nisl consectetur, sed fringilla
|
|
212
|
+
odio semper.
|
|
213
|
+
</p>
|
|
214
|
+
</div></b2b-grid-col
|
|
215
|
+
>
|
|
216
|
+
<b2b-grid-col span="2"
|
|
217
|
+
><div style="${gridBoxStyles}">
|
|
218
|
+
<h4>Column 7-8 of 12</h4>
|
|
219
|
+
</div></b2b-grid-col
|
|
220
|
+
>
|
|
221
|
+
<b2b-grid-col span="2"
|
|
222
|
+
><div style="${gridBoxStyles}">
|
|
223
|
+
<h4>Column 9-10 of 12</h4>
|
|
224
|
+
</div></b2b-grid-col
|
|
225
|
+
>
|
|
226
|
+
<b2b-grid-col span="2"
|
|
227
|
+
><div style="${gridBoxStyles}">
|
|
228
|
+
<h4>Column 11-12 of 12</h4>
|
|
229
|
+
</div></b2b-grid-col
|
|
230
|
+
></b2b-grid-row
|
|
231
|
+
></b2b-grid
|
|
232
|
+
>`;
|
|
230
233
|
},
|
|
231
234
|
};
|