@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.
Files changed (146) hide show
  1. package/dist/b2b-core-components/b2b-core-components.esm.js +1 -1
  2. package/dist/b2b-core-components/p-01a5c813.entry.js +1 -0
  3. package/dist/b2b-core-components/p-225e561a.entry.js +1 -0
  4. package/dist/b2b-core-components/p-4d96ee04.entry.js +1 -0
  5. package/dist/b2b-core-components/p-51dab4f2.entry.js +1 -0
  6. package/dist/b2b-core-components/p-5c576b32.entry.js +1 -0
  7. package/dist/b2b-core-components/p-9e3d9908.entry.js +1 -0
  8. package/dist/b2b-core-components/p-b9cc3f9f.entry.js +1 -0
  9. package/dist/b2b-core-components/p-e73552ea.entry.js +1 -0
  10. package/dist/cjs/b2b-background-box.cjs.entry.js +5 -5
  11. package/dist/cjs/b2b-core-components.cjs.js +1 -1
  12. package/dist/cjs/b2b-date-picker.cjs.entry.js +2 -1
  13. package/dist/cjs/b2b-dropdown.cjs.entry.js +12 -3
  14. package/dist/cjs/b2b-grid-row.cjs.entry.js +65 -11
  15. package/dist/cjs/b2b-input-group_2.cjs.entry.js +1 -1
  16. package/dist/cjs/b2b-input_2.cjs.entry.js +27 -6
  17. package/dist/cjs/b2b-multiselect-dropdown.cjs.entry.js +4 -4
  18. package/dist/cjs/b2b-snackbar.cjs.entry.js +5 -4
  19. package/dist/cjs/loader.cjs.js +1 -1
  20. package/dist/collection/components/alert/alert.css +2 -2
  21. package/dist/collection/components/alert/alert.stories.js +1 -2
  22. package/dist/collection/components/anchor/anchor.css +2 -2
  23. package/dist/collection/components/background-box/background-box.css +6 -6
  24. package/dist/collection/components/background-box/background-box.e2e.js +3 -3
  25. package/dist/collection/components/background-box/background-box.js +7 -7
  26. package/dist/collection/components/background-box/background-box.spec.js +3 -3
  27. package/dist/collection/components/background-box/background-box.stories.js +18 -18
  28. package/dist/collection/components/breadcrumb/breadcrumb.css +2 -2
  29. package/dist/collection/components/button/button.css +2 -2
  30. package/dist/collection/components/button/button.stories.js +79 -79
  31. package/dist/collection/components/card/card.css +2 -2
  32. package/dist/collection/components/checkbox/checkbox.css +2 -2
  33. package/dist/collection/components/checkbox-group/checkbox-group.css +2 -2
  34. package/dist/collection/components/chip/chip.css +2 -2
  35. package/dist/collection/components/chip/chip.stories.js +15 -15
  36. package/dist/collection/components/date-picker/date-picker-days-header.css +2 -2
  37. package/dist/collection/components/date-picker/date-picker-days.css +2 -2
  38. package/dist/collection/components/date-picker/date-picker-header.css +2 -2
  39. package/dist/collection/components/date-picker/date-picker-months.css +2 -2
  40. package/dist/collection/components/date-picker/date-picker-years.css +2 -2
  41. package/dist/collection/components/date-picker/date-picker.css +2 -2
  42. package/dist/collection/components/date-picker/date-picker.js +20 -1
  43. package/dist/collection/components/date-picker/date-picker.stories.js +4 -1
  44. package/dist/collection/components/dropdown/dropdown.css +4 -4
  45. package/dist/collection/components/dropdown/dropdown.js +47 -2
  46. package/dist/collection/components/flyout-menu/flyout-menu-option.css +2 -2
  47. package/dist/collection/components/flyout-menu/flyout-menu.css +2 -2
  48. package/dist/collection/components/flyout-menu/flyout-menu.stories.js +44 -44
  49. package/dist/collection/components/grid/grid.stories.js +151 -148
  50. package/dist/collection/components/grid/row.js +65 -11
  51. package/dist/collection/components/headline/headline.css +2 -2
  52. package/dist/collection/components/icon/icon.css +2 -2
  53. package/dist/collection/components/icon-100/icon-100.css +2 -2
  54. package/dist/collection/components/icon-100/icon-100.stories.js +5 -5
  55. package/dist/collection/components/icon-50/icon-50.css +2 -2
  56. package/dist/collection/components/icon-50/icon-50.stories.js +4 -4
  57. package/dist/collection/components/input/input.css +3 -3
  58. package/dist/collection/components/input/input.e2e.js +28 -0
  59. package/dist/collection/components/input/input.js +26 -5
  60. package/dist/collection/components/input/input.stories.js +75 -55
  61. package/dist/collection/components/input-group/input-group.css +3 -3
  62. package/dist/collection/components/input-list/input-list.css +2 -2
  63. package/dist/collection/components/input-list/input-list.stories.js +50 -50
  64. package/dist/collection/components/label/label.css +2 -2
  65. package/dist/collection/components/modal/modal.css +2 -2
  66. package/dist/collection/components/modal/modal.stories.js +1 -1
  67. package/dist/collection/components/multiselect-dropdown/multiselect-dropdown.css +2 -2
  68. package/dist/collection/components/multiselect-dropdown/multiselect-dropdown.js +4 -4
  69. package/dist/collection/components/multiselect-dropdown/multiselect-dropdown.stories.js +19 -19
  70. package/dist/collection/components/pagination/pagination.css +2 -2
  71. package/dist/collection/components/paragraph/paragraph.css +2 -2
  72. package/dist/collection/components/paragraph/paragraph.stories.js +82 -78
  73. package/dist/collection/components/progress-bar/progress-bar.css +2 -2
  74. package/dist/collection/components/progress-bar/progress-bar.stories.js +4 -4
  75. package/dist/collection/components/radio/radio.css +2 -2
  76. package/dist/collection/components/radio-group/radio-group.css +2 -2
  77. package/dist/collection/components/required-separator/required-separator.css +2 -2
  78. package/dist/collection/components/rounded-icon/rounded-icon.css +2 -2
  79. package/dist/collection/components/scrollable-container/scrollable-container.css +2 -2
  80. package/dist/collection/components/separator/separator.css +2 -2
  81. package/dist/collection/components/shimmer/shimmer.css +2 -2
  82. package/dist/collection/components/snackbar/snackbar.css +2 -2
  83. package/dist/collection/components/snackbar/snackbar.js +22 -4
  84. package/dist/collection/components/snackbar/snackbar.stories.js +10 -2
  85. package/dist/collection/components/spinner/spinner.css +2 -2
  86. package/dist/collection/components/tab/tab.css +2 -2
  87. package/dist/collection/components/tab-panel/tab-panel.css +2 -2
  88. package/dist/collection/components/table/table-cell/table-cell.css +2 -2
  89. package/dist/collection/components/table/table-header/table-header.css +2 -2
  90. package/dist/collection/components/table/table-row/table-row.css +2 -2
  91. package/dist/collection/components/table/table-rowgroup/table-rowgroup.css +2 -2
  92. package/dist/collection/components/table/table.css +2 -2
  93. package/dist/collection/components/table/table.e2e.js +2 -1
  94. package/dist/collection/components/table/table.stories.js +157 -157
  95. package/dist/collection/components/textarea/textarea.css +2 -2
  96. package/dist/collection/components/toggle-button/toggle-button.css +2 -2
  97. package/dist/collection/components/toggle-chip/toggle-chip.css +2 -2
  98. package/dist/collection/components/toggle-chip/toggle-chip.stories.js +14 -2
  99. package/dist/collection/components/toggle-group/toggle-group.css +2 -2
  100. package/dist/collection/components/toggle-switch/toggle-switch.css +2 -2
  101. package/dist/collection/components/toggle-switch/toggle-switch.stories.js +4 -4
  102. package/dist/collection/components/tooltip/tooltip.css +2 -2
  103. package/dist/collection/components/wizard/wizard.css +2 -2
  104. package/dist/collection/components/wizard-icon/wizard-icon.css +2 -2
  105. package/dist/components/b2b-background-box.js +6 -6
  106. package/dist/components/b2b-date-picker.js +23 -15
  107. package/dist/components/b2b-dropdown.js +14 -3
  108. package/dist/components/b2b-grid-row.js +65 -11
  109. package/dist/components/b2b-multiselect-dropdown.js +4 -4
  110. package/dist/components/b2b-snackbar.js +7 -5
  111. package/dist/components/input-group.js +1 -1
  112. package/dist/components/input.js +27 -6
  113. package/dist/custom-elements.json +18 -2
  114. package/dist/esm/b2b-background-box.entry.js +5 -5
  115. package/dist/esm/b2b-core-components.js +1 -1
  116. package/dist/esm/b2b-date-picker.entry.js +2 -1
  117. package/dist/esm/b2b-dropdown.entry.js +12 -3
  118. package/dist/esm/b2b-grid-row.entry.js +65 -11
  119. package/dist/esm/b2b-input-group_2.entry.js +1 -1
  120. package/dist/esm/b2b-input_2.entry.js +27 -6
  121. package/dist/esm/b2b-multiselect-dropdown.entry.js +4 -4
  122. package/dist/esm/b2b-snackbar.entry.js +5 -4
  123. package/dist/esm/loader.js +1 -1
  124. package/dist/types/components/background-box/background-box.d.ts +2 -2
  125. package/dist/types/components/background-box/background-box.stories.d.ts +1 -1
  126. package/dist/types/components/button/button.stories.d.ts +2 -2
  127. package/dist/types/components/date-picker/date-picker.d.ts +2 -0
  128. package/dist/types/components/dropdown/dropdown.d.ts +4 -0
  129. package/dist/types/components/grid/row.d.ts +3 -0
  130. package/dist/types/components/icon/icon.stories.d.ts +3 -3
  131. package/dist/types/components/input/input.d.ts +4 -0
  132. package/dist/types/components/input/input.stories.d.ts +1 -0
  133. package/dist/types/components/snackbar/snackbar.d.ts +2 -0
  134. package/dist/types/components/snackbar/snackbar.stories.d.ts +1 -0
  135. package/dist/types/components/toggle-chip/toggle-chip.stories.d.ts +3 -2
  136. package/dist/types/components.d.ts +36 -4
  137. package/dist/web-types.json +42 -3
  138. package/package.json +21 -16
  139. package/dist/b2b-core-components/p-191b7d0b.entry.js +0 -1
  140. package/dist/b2b-core-components/p-2b5b4472.entry.js +0 -1
  141. package/dist/b2b-core-components/p-333969c9.entry.js +0 -1
  142. package/dist/b2b-core-components/p-339dd3ba.entry.js +0 -1
  143. package/dist/b2b-core-components/p-56293400.entry.js +0 -1
  144. package/dist/b2b-core-components/p-95d3519f.entry.js +0 -1
  145. package/dist/b2b-core-components/p-be5c3d5d.entry.js +0 -1
  146. 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("div", { class: "b2b-date-picker-label" }, this.label), h("div", { style: { width: `${this.width}px` }, class: {
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/testing-library";
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, 27 Feb 2025 06:22:03 GMT
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, 27 Feb 2025 06:22:03 GMT
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 11px 6px;
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-10);
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: 'e4eb8019f2b434acde4f3adbe597bb255e0cf872', class: {
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: '3a780ca3f170a59ef73f3e72d3668f9941812e9c', 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) ||
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, 27 Feb 2025 06:22:03 GMT
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, 27 Feb 2025 06:22:03 GMT
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, 27 Feb 2025 06:22:03 GMT
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, 27 Feb 2025 06:22:03 GMT
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
- <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>`;
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
- <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>`;
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
- <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. Suspendisse
46
- massa urna, accumsan id viverra et, mollis sit amet sem. Cras congue
47
- ex ac arcu pellentesque, eu vestibulum sem tempor. Curabitur
48
- consequat massa sed nulla lacinia, vitae scelerisque ante egestas.
49
- Praesent et diam quis diam posuere egestas. Duis feugiat lorem non
50
- nisl consectetur, sed fringilla odio semper.
51
- </p>
52
- </div></b2b-grid-col
53
- >
54
- <b2b-grid-col
55
- ><div style="${gridBoxStyles}">
56
- <h4>Column 7 of 12</h4>
57
- <p>I grow to fill up all available space</p>
58
- </div></b2b-grid-col
59
- >
60
- <b2b-grid-col
61
- ><div style="${gridBoxStyles}">
62
- <h4>Column 8 of 12</h4>
63
- <p>I grow to fill up all available space</p>
64
- </div></b2b-grid-col
65
- >
66
- <b2b-grid-col
67
- ><div style="${gridBoxStyles}">
68
- <h4>Column 9 of 12</h4>
69
- <p>I grow to fill up all available space</p>
70
- </div></b2b-grid-col
71
- >
72
- <b2b-grid-col span="3"
73
- ><div style="${gridBoxStyles}">
74
- <h4>Column 10-12 of 12</h4>
75
- <p>Resize me by changing the span attribute in the args table.</p>
76
- </div></b2b-grid-col
77
- >
78
- </b2b-grid-row>
79
- </b2b-grid>`;
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
- ><b2b-grid-row
96
- align-items="${args.alignItems}"
97
- justify="${args.justify}"
98
- row-gap="${args.rowGap}"
99
- column-gap="${args.columnGap}">
100
- <b2b-grid-col span="2"
101
- ><div style="${gridBoxSmallStyles}">
102
- <h4>Column 1-2 of 12</h4>
103
- </div></b2b-grid-col
104
- >
105
- <b2b-grid-col span="2"
106
- ><div style="${gridBoxStyles}">
107
- <h4>Column 3-4 of 12</h4>
108
- </div></b2b-grid-col
109
- >
110
- <b2b-grid-col span="2"
111
- ><div style="${gridBoxSmallStyles}">
112
- <h4>Column 5-6 of 12</h4>
113
- </div></b2b-grid-col
114
- >
115
- <b2b-grid-col span="2"
116
- ><div style="${gridBoxStyles}">
117
- <h4>Column 7-8 of 12</h4>
118
- </div></b2b-grid-col
119
- >
120
- <b2b-grid-col span="2"
121
- ><div style="${gridBoxSmallStyles}">
122
- <h4>Column 9-10 of 12</h4>
123
- </div></b2b-grid-col
124
- >
125
- <b2b-grid-col span="2"
126
- ><div style="${gridBoxStyles}">
127
- <h4>Column 11-12 of 12</h4>
128
- </div></b2b-grid-col
129
- >
130
- </b2b-grid-row></b2b-grid
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
- <b2b-grid-row
148
- justify="${args.justify}"
149
- row-gap="${args.rowGap}"
150
- column-gap="${args.columnGap}">
151
- <b2b-grid-col span="6" text-align="${args.textAlign}"
152
- ><div style="${gridBoxStyles}">
153
- <h4>Column 1-6 of 12</h4>
154
- <p>
155
- Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse
156
- massa urna, accumsan id viverra et, mollis sit amet sem. Cras congue
157
- ex ac arcu pellentesque, eu vestibulum sem tempor. Curabitur
158
- consequat massa sed nulla lacinia, vitae scelerisque ante egestas.
159
- Praesent et diam quis diam posuere egestas. Duis feugiat lorem non
160
- nisl consectetur, sed fringilla odio semper.
161
- </p>
162
- </div></b2b-grid-col
163
- >
164
- <b2b-grid-col span="2"
165
- ><div style="${gridBoxStyles}">
166
- <h4>Column 7-8 of 12</h4>
167
- </div></b2b-grid-col
168
- >
169
- <b2b-grid-col span="2"
170
- ><div style="${gridBoxStyles}">
171
- <h4>Column 9-10 of 12</h4>
172
- </div></b2b-grid-col
173
- >
174
- <b2b-grid-col span="2"
175
- ><div style="${gridBoxStyles}">
176
- <h4>Column 11-12 of 12</h4>
177
- </div></b2b-grid-col
178
- ></b2b-grid-row
179
- ></b2b-grid
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
- <b2b-grid-row
197
- justify="${args.justify}"
198
- row-gap="${args.rowGap}"
199
- column-gap="${args.columnGap}">
200
- <b2b-grid-col span="6" text-align="${args.textAlign}"
201
- ><div style="${gridBoxStyles}">
202
- <h4>Column 1-6 of 12</h4>
203
- <p>
204
- Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse
205
- massa urna, accumsan id viverra et, mollis sit amet sem. Cras congue
206
- ex ac arcu pellentesque, eu vestibulum sem tempor. Curabitur
207
- consequat massa sed nulla lacinia, vitae scelerisque ante egestas.
208
- Praesent et diam quis diam posuere egestas. Duis feugiat lorem non
209
- nisl consectetur, sed fringilla odio semper.
210
- </p>
211
- </div></b2b-grid-col
212
- >
213
- <b2b-grid-col span="2"
214
- ><div style="${gridBoxStyles}">
215
- <h4>Column 7-8 of 12</h4>
216
- </div></b2b-grid-col
217
- >
218
- <b2b-grid-col span="2"
219
- ><div style="${gridBoxStyles}">
220
- <h4>Column 9-10 of 12</h4>
221
- </div></b2b-grid-col
222
- >
223
- <b2b-grid-col span="2"
224
- ><div style="${gridBoxStyles}">
225
- <h4>Column 11-12 of 12</h4>
226
- </div></b2b-grid-col
227
- ></b2b-grid-row
228
- ></b2b-grid
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
  };