@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.
Files changed (92) hide show
  1. package/dist/b2b-core-components/b2b-core-components.esm.js +1 -1
  2. package/dist/b2b-core-components/p-19a043a8.entry.js +1 -0
  3. package/dist/b2b-core-components/{p-0f0fcb25.entry.js → p-3628e4cb.entry.js} +1 -1
  4. package/dist/b2b-core-components/{p-1a232e86.entry.js → p-9cbda7b3.entry.js} +1 -1
  5. package/dist/b2b-core-components/{p-703da47c.entry.js → p-c9a10980.entry.js} +1 -1
  6. package/dist/b2b-core-components/{p-a95ed002.entry.js → p-ceab4af0.entry.js} +1 -1
  7. package/dist/b2b-core-components/{p-fdb7d12c.entry.js → p-e143cad0.entry.js} +1 -1
  8. package/dist/b2b-core-components/{p-98ee5fd5.entry.js → p-f32e783e.entry.js} +1 -1
  9. package/dist/cjs/b2b-checkbox.cjs.entry.js +1 -1
  10. package/dist/cjs/b2b-core-components.cjs.js +1 -1
  11. package/dist/cjs/b2b-dropdown.cjs.entry.js +9 -4
  12. package/dist/cjs/b2b-flyout-menu.cjs.entry.js +1 -1
  13. package/dist/cjs/b2b-input-group_2.cjs.entry.js +1 -1
  14. package/dist/cjs/b2b-input-list-option.cjs.entry.js +1 -1
  15. package/dist/cjs/b2b-pagination.cjs.entry.js +1 -1
  16. package/dist/cjs/b2b-table-rowgroup.cjs.entry.js +4 -3
  17. package/dist/cjs/loader.cjs.js +1 -1
  18. package/dist/collection/components/alert/alert.stories.js +5 -5
  19. package/dist/collection/components/anchor/anchor.stories.js +6 -6
  20. package/dist/collection/components/background-box/background-box.stories.js +6 -6
  21. package/dist/collection/components/breadcrumb/breadcrumb.stories.js +3 -5
  22. package/dist/collection/components/button/button.stories.js +41 -41
  23. package/dist/collection/components/card/card.stories.js +1 -1
  24. package/dist/collection/components/checkbox/checkbox.css +3 -3
  25. package/dist/collection/components/checkbox/checkbox.stories.js +9 -9
  26. package/dist/collection/components/checkbox-group/checkbox-group.stories.js +9 -9
  27. package/dist/collection/components/chip/chip.stories.js +13 -13
  28. package/dist/collection/components/custom-dropdown/custom-dropdown.stories.js +47 -47
  29. package/dist/collection/components/date-picker/date-picker.stories.js +2 -2
  30. package/dist/collection/components/dropdown/dropdown.e2e.js +22 -3
  31. package/dist/collection/components/dropdown/dropdown.js +27 -4
  32. package/dist/collection/components/dropdown/dropdown.stories.js +17 -10
  33. package/dist/collection/components/flyout-menu/flyout-menu.css +5 -3
  34. package/dist/collection/components/flyout-menu/flyout-menu.stories.js +4 -4
  35. package/dist/collection/components/grid/grid.stories.js +38 -38
  36. package/dist/collection/components/headline/headline.stories.js +1 -4
  37. package/dist/collection/components/icon/icon.stories.js +5 -8
  38. package/dist/collection/components/icon-100/icon-100.stories.js +11 -11
  39. package/dist/collection/components/icon-50/icon-50.stories.js +9 -9
  40. package/dist/collection/components/input/input.stories.js +44 -44
  41. package/dist/collection/components/input-group/input-group.stories.js +4 -4
  42. package/dist/collection/components/input-list/input-list.css +5 -3
  43. package/dist/collection/components/input-list/input-list.stories.js +13 -13
  44. package/dist/collection/components/label/label.stories.js +1 -1
  45. package/dist/collection/components/modal/modal.stories.js +5 -5
  46. package/dist/collection/components/pagination/pagination.css +5 -3
  47. package/dist/collection/components/pagination/pagination.stories.js +2 -2
  48. package/dist/collection/components/paragraph/paragraph.stories.js +18 -18
  49. package/dist/collection/components/progress-bar/progress-bar.stories.js +4 -4
  50. package/dist/collection/components/radio/radio.stories.js +9 -9
  51. package/dist/collection/components/radio-group/radio-group.stories.js +10 -10
  52. package/dist/collection/components/required-separator/required-separator.stories.js +1 -1
  53. package/dist/collection/components/rounded-icon/rounded-icon.stories.js +3 -3
  54. package/dist/collection/components/search/search.stories.js +2 -2
  55. package/dist/collection/components/separator/separator.stories.js +2 -2
  56. package/dist/collection/components/shimmer/shimmer.js +1 -1
  57. package/dist/collection/components/shimmer/shimmer.stories.js +4 -4
  58. package/dist/collection/components/snackbar/snackbar.stories.js +8 -8
  59. package/dist/collection/components/spinner/spinner.stories.js +1 -1
  60. package/dist/collection/components/tab-group/tab-group.stories.js +1 -1
  61. package/dist/collection/components/table/table-rowgroup/table-rowgroup.js +4 -3
  62. package/dist/collection/components/table/table.stories.js +35 -35
  63. package/dist/collection/components/textarea/textarea.stories.js +12 -12
  64. package/dist/collection/components/toggle-group/toggle-group.stories.js +6 -6
  65. package/dist/collection/components/toggle-switch/toggle-switch.stories.js +4 -4
  66. package/dist/collection/components/tooltip/tooltip.stories.js +8 -8
  67. package/dist/collection/components/wizard/wizard.stories.js +6 -6
  68. package/dist/collection/components/wizard-icon/wizard-icon.stories.js +1 -1
  69. package/dist/components/b2b-dropdown.js +10 -4
  70. package/dist/components/b2b-flyout-menu.js +1 -1
  71. package/dist/components/b2b-pagination.js +1 -1
  72. package/dist/components/b2b-table-rowgroup.js +4 -3
  73. package/dist/components/checkbox.js +1 -1
  74. package/dist/components/input-list-option.js +1 -1
  75. package/dist/components/input-list.js +1 -1
  76. package/dist/custom-elements.json +5 -1
  77. package/dist/esm/b2b-checkbox.entry.js +1 -1
  78. package/dist/esm/b2b-core-components.js +1 -1
  79. package/dist/esm/b2b-dropdown.entry.js +9 -4
  80. package/dist/esm/b2b-flyout-menu.entry.js +1 -1
  81. package/dist/esm/b2b-input-group_2.entry.js +1 -1
  82. package/dist/esm/b2b-input-list-option.entry.js +1 -1
  83. package/dist/esm/b2b-pagination.entry.js +1 -1
  84. package/dist/esm/b2b-table-rowgroup.entry.js +4 -3
  85. package/dist/esm/loader.js +1 -1
  86. package/dist/types/components/dropdown/dropdown.d.ts +2 -0
  87. package/dist/types/components/dropdown/dropdown.stories.d.ts +1 -0
  88. package/dist/types/components/shimmer/shimmer.d.ts +1 -1
  89. package/dist/types/components.d.ts +10 -2
  90. package/dist/web-types.json +12 -2
  91. package/package.json +2 -2
  92. package/dist/b2b-core-components/p-470378e2.entry.js +0 -1
@@ -234,9 +234,6 @@
234
234
  list-style: none;
235
235
  padding: 0;
236
236
  margin: 0;
237
- /* this is a workaround to force purgecss to include the overwrites of
238
- the variables --b2b-border-right and --b2b-border-radius
239
- */
240
237
  }
241
238
  .b2b-pagination li {
242
239
  transition: opacity 0.3s ease, visibility 0.3s ease;
@@ -258,6 +255,11 @@
258
255
  --b2b-border-right: 1px solid var(--b2b-button-secondary-border-color);
259
256
  --b2b-border-radius: var(--b2b-size-border-no-radius-left);
260
257
  }
258
+ .b2b-pagination {
259
+ /* this is a workaround to force purgecss to include the overwrites of
260
+ the variables --b2b-border-right and --b2b-border-radius
261
+ */
262
+ }
261
263
  .b2b-pagination .purge-css-include-variables {
262
264
  border-radius: var(--b2b-border-radius);
263
265
  border-right: var(--b2b-border-right);
@@ -2,8 +2,8 @@ import { getArgTypes } from "../../docs/config/utils";
2
2
  import { html } from "lit-html";
3
3
  const Template = ({ totalPages, activePage }) => {
4
4
  return html `<b2b-pagination
5
- total-pages="${totalPages}"
6
- active-page="${activePage}"></b2b-pagination>`;
5
+ total-pages=${totalPages}
6
+ active-page=${activePage}></b2b-pagination>`;
7
7
  };
8
8
  const defaultArgs = {
9
9
  totalPages: 10,
@@ -28,12 +28,12 @@ const meta = {
28
28
  render: (_a) => {
29
29
  var args = __rest(_a, []);
30
30
  return html `<b2b-paragraph
31
- weight="${args.weight}"
32
- size="${args.size}"
33
- align="${args.align}"
34
- margin="${args.margin}"
35
- variant="${args.variant}"
36
- display="${args.display}">
31
+ weight=${args.weight}
32
+ size=${args.size}
33
+ align=${args.align}
34
+ margin=${args.margin}
35
+ variant=${args.variant}
36
+ display=${args.display}>
37
37
  Far far away, behind the word mountains, far from the countries Vokalia
38
38
  and Consonantia, there live the blind texts. Separated they live in
39
39
  Bookmarksgrove right at the coast of the Semantics, a large language
@@ -75,12 +75,12 @@ export const DisplayInline = {
75
75
  render: (_a) => {
76
76
  var args = __rest(_a, []);
77
77
  return html `<b2b-paragraph
78
- weight="${args.weight}"
79
- size="${args.size}"
80
- align="${args.align}"
81
- margin="${args.margin}"
82
- variant="${args.variant}"
83
- display="${args.display}">
78
+ weight=${args.weight}
79
+ size=${args.size}
80
+ align=${args.align}
81
+ margin=${args.margin}
82
+ variant=${args.variant}
83
+ display=${args.display}>
84
84
  Far far away, behind the word mountains, far from the countries Vokalia
85
85
  and Consonantia, there live the blind texts. Separated they live in
86
86
  Bookmarksgrove right at the coast of the Semantics, a large language
@@ -114,12 +114,12 @@ export const DisplayInlineBlock = {
114
114
  render: (_a) => {
115
115
  var args = __rest(_a, []);
116
116
  return html `<b2b-paragraph
117
- weight="${args.weight}"
118
- size="${args.size}"
119
- align="${args.align}"
120
- margin="${args.margin}"
121
- variant="${args.variant}"
122
- display="${args.display}">
117
+ weight=${args.weight}
118
+ size=${args.size}
119
+ align=${args.align}
120
+ margin=${args.margin}
121
+ variant=${args.variant}
122
+ display=${args.display}>
123
123
  Far far away, behind the word mountains, far from the countries Vokalia
124
124
  and Consonantia, there live the blind texts. Separated they live in
125
125
  Bookmarksgrove right at the coast of the Semantics, a large language
@@ -25,10 +25,10 @@ const meta = {
25
25
  render: (_a) => {
26
26
  var args = __rest(_a, []);
27
27
  return html `<b2b-progress-bar
28
- progress="${args.progress}"
29
- label="${args.label}"
30
- label-type="${args.labelType}"
31
- label-position="${args.labelPosition}" />`;
28
+ progress=${args.progress}
29
+ label=${args.label}
30
+ label-type=${args.labelType}
31
+ label-position=${args.labelPosition} />`;
32
32
  },
33
33
  };
34
34
  export default meta;
@@ -2,15 +2,15 @@ import { getArgTypes } from "../../docs/config/utils";
2
2
  import { html } from "lit-html";
3
3
  const Template = ({ label, required, name, checked, disabled, invalid, value, hint, error, }) => {
4
4
  return html ` <b2b-radio-button
5
- label="${label}"
6
- required="${required}"
7
- name="${name}"
8
- checked="${checked}"
9
- value="${value}"
10
- invalid="${invalid}"
11
- disabled="${disabled}"
12
- hint="${hint}"
13
- error="${error}"></b2b-radio-button>`;
5
+ label=${label}
6
+ required=${required}
7
+ name=${name}
8
+ checked=${checked}
9
+ value=${value}
10
+ invalid=${invalid}
11
+ disabled=${disabled}
12
+ hint=${hint}
13
+ error=${error}></b2b-radio-button>`;
14
14
  };
15
15
  const defaultArgs = {
16
16
  label: 'Single Radio Button Label',
@@ -2,21 +2,21 @@ import { getArgTypes } from "../../docs/config/utils";
2
2
  import { html } from "lit-html";
3
3
  const Template = ({ label, required, name, disabled, invalid, alignment, hint, error, }) => {
4
4
  return html ` <b2b-radio-group
5
- label="${label}"
6
- required="${required}"
7
- name="${name}"
8
- disabled="${disabled}"
9
- invalid="${invalid}"
10
- alignment="${alignment}"
11
- hint="${hint}"
12
- error="${error}">
5
+ label=${label}
6
+ required=${required}
7
+ name=${name}
8
+ disabled=${disabled}
9
+ invalid=${invalid}
10
+ alignment=${alignment}
11
+ hint=${hint}
12
+ error=${error}>
13
13
  <b2b-radio-button
14
14
  label="Option 1"
15
- name="${name}"
15
+ name=${name}
16
16
  value="one"></b2b-radio-button>
17
17
  <b2b-radio-button
18
18
  label="Option 2"
19
- name="${name}"
19
+ name=${name}
20
20
  value="two"></b2b-radio-button>
21
21
  </b2b-radio-group>`;
22
22
  };
@@ -3,7 +3,7 @@ import { html } from "lit-html";
3
3
  const Template = ({ label }) => {
4
4
  return html `<div style="width: 400px">
5
5
  <b2b-input required="true" label="Name"></b2b-input
6
- ><br /><b2b-required-separator label="${label}"></b2b-required-separator>
6
+ ><br /><b2b-required-separator label=${label}></b2b-required-separator>
7
7
  </div>`;
8
8
  };
9
9
  const defaultArgs = {
@@ -2,8 +2,8 @@ import { getArgTypes } from "../../docs/config/utils";
2
2
  import { html } from "lit-html";
3
3
  const TemplateIcon = ({ color, contentColor, iconName }) => {
4
4
  return html `<div>
5
- <b2b-rounded-icon color="${color}" content-color="${contentColor}">
6
- <b2b-icon-100 slot="icon" icon="${iconName}"></b2b-icon-100>
5
+ <b2b-rounded-icon color=${color} content-color=${contentColor}>
6
+ <b2b-icon-100 slot="icon" icon=${iconName}></b2b-icon-100>
7
7
  </b2b-rounded-icon>
8
8
  </div>`;
9
9
  };
@@ -16,7 +16,7 @@ story010Icon.args = {
16
16
  story010Icon.storyName = 'Icon Content';
17
17
  const TemplateText = ({ color, contentColor, textContent }) => {
18
18
  return html `<div>
19
- <b2b-rounded-icon color="${color}" content-color="${contentColor}">
19
+ <b2b-rounded-icon color=${color} content-color=${contentColor}>
20
20
  <span slot="text">${textContent}</span>
21
21
  </b2b-rounded-icon>
22
22
  </div>`;
@@ -26,7 +26,7 @@ const Template = ({ placeholder, optionsList, disabled }) => {
26
26
  contenteditable
27
27
  data-testid="search-element"
28
28
  disabled=${disabled}
29
- placeholder="${placeholder}"
29
+ placeholder=${placeholder}
30
30
  .optionsList=${optionsList}
31
31
  @b2b-input=${onInput}></b2b-search>
32
32
  </div>`;
@@ -64,7 +64,7 @@ const CustomSearchTemplate = ({ placeholder, optionsList }) => {
64
64
  <b2b-input-group>
65
65
  <b2b-input-list
66
66
  slot="start"
67
- placeholder="${placeholder}"
67
+ placeholder=${placeholder}
68
68
  .optionsList=${optionsList}></b2b-input-list>
69
69
  <b2b-dropdown style="width: 50%" invalid error="an error">
70
70
  <option value="one">Option 1</option>
@@ -13,9 +13,9 @@ const Template = ({ alignment }) => {
13
13
  margin: `margin: 10px 0;`,
14
14
  width: null,
15
15
  };
16
- return html `<div style="${styles.display}">
16
+ return html `<div style=${styles.display}>
17
17
  <p style="${styles.margin} ${styles.width}">${content}</p>
18
- <b2b-separator alignment="${alignment}"></b2b-separator>
18
+ <b2b-separator alignment=${alignment}></b2b-separator>
19
19
  <p style="${styles.margin} ${styles.width}">${content}</p>
20
20
  </div>`;
21
21
  };
@@ -55,7 +55,7 @@ export class ShimmerComponent {
55
55
  "optional": false,
56
56
  "docs": {
57
57
  "tags": [],
58
- "text": "The width of the shimmer effect im px."
58
+ "text": "The width of the shimmer effect in px."
59
59
  },
60
60
  "attribute": "width",
61
61
  "reflect": false
@@ -24,10 +24,10 @@ const meta = {
24
24
  render: (_a) => {
25
25
  var args = __rest(_a, []);
26
26
  return html `<b2b-shimmer
27
- loading="${args.loading}"
28
- width="${args.width}"
29
- height="${args.height}">
30
- This is the mean content which takes a while to load.
27
+ loading=${args.loading}
28
+ width=${args.width}
29
+ height=${args.height}>
30
+ This is the main content, which takes a while to load.
31
31
  </b2b-shimmer>`;
32
32
  },
33
33
  };
@@ -45,14 +45,14 @@ const meta = {
45
45
  <hr />
46
46
  <b2b-snackbar
47
47
  @b2b-close=${hideSnackbar}
48
- description="${args.description}"
49
- type="${args.type}"
50
- opened="${args.opened}"
51
- timed="${args.timed}"
52
- duration="${args.duration}"
53
- has-action="${args.hasAction}"
54
- action-label="${args.actionLabel}"
55
- width="${args.width}"></b2b-snackbar>`;
48
+ description=${args.description}
49
+ type=${args.type}
50
+ opened=${args.opened}
51
+ timed=${args.timed}
52
+ duration=${args.duration}
53
+ has-action=${args.hasAction}
54
+ action-label=${args.actionLabel}
55
+ width=${args.width}></b2b-snackbar>`;
56
56
  },
57
57
  };
58
58
  export default meta;
@@ -1,7 +1,7 @@
1
1
  import { getArgTypes } from "../../docs/config/utils";
2
2
  import { html } from "lit-html";
3
3
  const Template = ({ size, color }) => {
4
- return html ` <b2b-spinner size="${size}" color="${color}"></b2b-spinner>`;
4
+ return html ` <b2b-spinner size=${size} color=${color}></b2b-spinner>`;
5
5
  };
6
6
  const defaultArgs = {
7
7
  size: '100',
@@ -1,7 +1,7 @@
1
1
  import { getArgTypes } from "../../docs/config/utils";
2
2
  import { html } from "lit-html";
3
3
  const Template = ({ useRouter }) => {
4
- return html ` <b2b-tab-group use-router="${useRouter}">
4
+ return html ` <b2b-tab-group use-router=${useRouter}>
5
5
  <b2b-tab slot="tab">First Tab</b2b-tab>
6
6
  <b2b-tab-panel slot="panel"
7
7
  ><div>
@@ -11,7 +11,8 @@ export class TableRowgroupComponent {
11
11
  .map(child => child.value);
12
12
  };
13
13
  this.toggleList = (list, event) => {
14
- list.forEach(child => ((child.checked = event.detail.checked), (child.indeterminate = false)));
14
+ list.forEach(child => ((child.checked = event.detail.checked),
15
+ (child.indeterminate = false)));
15
16
  };
16
17
  this.addCheckboxColumn = () => {
17
18
  const children = getAllRows(this.host);
@@ -113,11 +114,11 @@ export class TableRowgroupComponent {
113
114
  this.makeHeaderRowNotSelectable();
114
115
  }
115
116
  render() {
116
- return (h(Host, { key: 'dd7700f3b0b599cb74897935c5b3d1d07db2ca27', class: {
117
+ return (h(Host, { key: 'f2f488f6392f9b6f2ee3b766d7746dda4fde1764', class: {
117
118
  ['b2b-table-rowgroup__' + this.type]: true,
118
119
  'b2b-table-rowgroup--fixed': this.fixed,
119
120
  'b2b-table-rowgroup--colspan': this.size === TableSizes.COLSPAN,
120
- }, role: "rowgroup" }, h("slot", { key: '02bdd6d4032e89019bb04c80a4233cd2f4e2fabf' })));
121
+ }, role: "rowgroup" }, h("slot", { key: '7671fbb227a9d4e51e48a58eee682ed4bb8c8fe4' })));
121
122
  }
122
123
  static get is() { return "b2b-table-rowgroup"; }
123
124
  static get encapsulation() { return "shadow"; }
@@ -59,14 +59,14 @@ const meta = {
59
59
  <b2b-table-rowgroup type="body">
60
60
  ${repeat(args.data.rows, (row, index) => html `
61
61
  <b2b-table-row
62
- highlight="${args.highlight}"
62
+ highlight=${args.highlight}
63
63
  color=${index === 0 ? args.color : 'default'}>
64
64
  ${repeat(
65
65
  // @ts-ignore
66
66
  row, (cell, index) => html `<b2b-table-cell
67
67
  ?divider=${args.withDividers && index === 0}
68
- align="${args.align}"
69
- text-wrap="${args.textWrap}"
68
+ align=${args.align}
69
+ text-wrap=${args.textWrap}
70
70
  >${cell}</b2b-table-cell
71
71
  >`)}<b2b-table-cell
72
72
  ><b2b-button size="50">Action</b2b-button></b2b-table-cell
@@ -111,7 +111,7 @@ export const ScrollableTable = {
111
111
  var args = __rest(_a, []);
112
112
  return html `<b2b-scrollable-container
113
113
  style="width: ${args.parentWidth}; height: ${args.parentHeight};">
114
- <b2b-table size="${args.size}">
114
+ <b2b-table size=${args.size}>
115
115
  <b2b-table-rowgroup type="header">
116
116
  <b2b-table-row>
117
117
  ${args.data.columns.map((columnName, index) => {
@@ -127,12 +127,12 @@ export const ScrollableTable = {
127
127
  <b2b-table-rowgroup type="body">
128
128
  ${args.data.rows.map((row, index) => {
129
129
  return html `<b2b-table-row
130
- highlight="${args.highlight}"
130
+ highlight=${args.highlight}
131
131
  color=${index === 0 ? args.color : 'default'}>
132
132
  ${row.map((data, index) => html `<b2b-table-cell
133
133
  ?divider=${args.withDividers && index === 0}
134
- align="${args.align}"
135
- text-wrap="${args.textWrap}"
134
+ align=${args.align}
135
+ text-wrap=${args.textWrap}
136
136
  >${data}</b2b-table-cell
137
137
  >`)}
138
138
  </b2b-table-row>`;
@@ -148,12 +148,12 @@ const RenderSortableTable = (_a) => {
148
148
  <b2b-table-rowgroup type="body">
149
149
  ${args.data.rows.map((row, index) => {
150
150
  return html `<b2b-table-row
151
- highlight="${args.highlight}"
151
+ highlight=${args.highlight}
152
152
  color=${index === 0 ? args.color : 'default'}>
153
153
  ${row.map(data => html `<b2b-table-cell
154
154
  ?divider=${args.withDividers}
155
- align="${args.align}"
156
- text-wrap="${args.textWrap}"
155
+ align=${args.align}
156
+ text-wrap=${args.textWrap}
157
157
  >${data}</b2b-table-cell
158
158
  >`)}
159
159
  </b2b-table-row>`;
@@ -233,7 +233,7 @@ export const AccordionTable = {
233
233
  render: (_a) => {
234
234
  var args = __rest(_a, []);
235
235
  return html `<div>
236
- <b2b-table size="${args.size}">
236
+ <b2b-table size=${args.size}>
237
237
  <b2b-table-rowgroup type="header" accordion>
238
238
  <b2b-table-row>
239
239
  ${args.data.columns.map((columnName, index) => {
@@ -249,12 +249,12 @@ export const AccordionTable = {
249
249
  <b2b-table-rowgroup type="body" accordion>
250
250
  ${args.data.rows.map((row, index) => {
251
251
  return html `<b2b-table-row
252
- highlight="${args.highlight}"
252
+ highlight=${args.highlight}
253
253
  color=${index === 0 ? args.color : 'default'}>
254
254
  ${row.map(data => html `<b2b-table-cell
255
255
  ?divider=${args.withDividers}
256
- align="${args.align}"
257
- text-wrap="${args.textWrap}"
256
+ align=${args.align}
257
+ text-wrap=${args.textWrap}
258
258
  >${data}</b2b-table-cell
259
259
  >`)}
260
260
  <b2b-table-cell
@@ -266,12 +266,12 @@ export const AccordionTable = {
266
266
  <b2b-table-rowgroup type="body" accordion opened>
267
267
  ${args.data.rows.map((row, index) => {
268
268
  return html `<b2b-table-row
269
- highlight="${args.highlight}"
269
+ highlight=${args.highlight}
270
270
  color=${index === 0 ? args.color : 'default'}>
271
271
  ${row.map(data => html `<b2b-table-cell
272
272
  ?divider=${args.withDividers}
273
- align="${args.align}"
274
- text-wrap="${args.textWrap}"
273
+ align=${args.align}
274
+ text-wrap=${args.textWrap}
275
275
  >${data}</b2b-table-cell
276
276
  >`)}
277
277
  <b2b-table-cell
@@ -289,7 +289,7 @@ export const SelectableTable = {
289
289
  render: (_a) => {
290
290
  var args = __rest(_a, []);
291
291
  return html `<div>
292
- <b2b-table size="${args.size}">
292
+ <b2b-table size=${args.size}>
293
293
  <b2b-table-rowgroup type="header" accordion selectable>
294
294
  <b2b-table-row>
295
295
  ${args.data.columns.map((columnName, index) => {
@@ -305,12 +305,12 @@ export const SelectableTable = {
305
305
  <b2b-table-rowgroup type="body" accordion selectable>
306
306
  ${args.data.rows.map((row, index) => {
307
307
  return html `<b2b-table-row
308
- highlight="${args.highlight}"
308
+ highlight=${args.highlight}
309
309
  color=${index === 0 ? args.color : 'default'}>
310
310
  ${row.map(data => html `<b2b-table-cell
311
311
  ?divider=${args.withDividers}
312
- align="${args.align}"
313
- text-wrap="${args.textWrap}"
312
+ align=${args.align}
313
+ text-wrap=${args.textWrap}
314
314
  >${data}</b2b-table-cell
315
315
  >`)}
316
316
  <b2b-table-cell
@@ -322,12 +322,12 @@ export const SelectableTable = {
322
322
  <b2b-table-rowgroup type="body" accordion opened selectable>
323
323
  ${args.data.rows.map((row, index) => {
324
324
  return html `<b2b-table-row
325
- highlight="${args.highlight}"
325
+ highlight=${args.highlight}
326
326
  color=${index === 0 ? args.color : 'default'}>
327
327
  ${row.map(data => html `<b2b-table-cell
328
328
  ?divider=${args.withDividers}
329
- align="${args.align}"
330
- text-wrap="${args.textWrap}"
329
+ align=${args.align}
330
+ text-wrap=${args.textWrap}
331
331
  >${data}</b2b-table-cell
332
332
  >`)}
333
333
  <b2b-table-cell
@@ -345,42 +345,42 @@ export const ColspanTable = {
345
345
  render: (_a) => {
346
346
  var args = __rest(_a, []);
347
347
  return html `<div style="width: 500px">
348
- <b2b-table size="${args.size}">
349
- <b2b-table-rowgroup type="header" selectable="${args.selectable}">
348
+ <b2b-table size=${args.size}>
349
+ <b2b-table-rowgroup type="header" selectable=${args.selectable}>
350
350
  <b2b-table-row>
351
- <b2b-table-header divider="${args.withDividers}" colspan="2"
351
+ <b2b-table-header divider=${args.withDividers} colspan="2"
352
352
  >2 Columns</b2b-table-header
353
353
  >
354
- <b2b-table-header divider="${args.withDividers}"
354
+ <b2b-table-header divider=${args.withDividers}
355
355
  >1 Column</b2b-table-header
356
356
  >
357
357
  <b2b-table-header>1 Column</b2b-table-header>
358
358
  </b2b-table-row>
359
359
  </b2b-table-rowgroup>
360
- <b2b-table-rowgroup type="body" selectable="${args.selectable}">
360
+ <b2b-table-rowgroup type="body" selectable=${args.selectable}>
361
361
  <b2b-table-row>
362
- <b2b-table-cell divider="${args.withDividers}"
362
+ <b2b-table-cell divider=${args.withDividers}
363
363
  >1 Column</b2b-table-cell
364
364
  >
365
365
  <b2b-table-cell colspan="3">3 Columns</b2b-table-cell>
366
366
  </b2b-table-row>
367
367
  <b2b-table-row>
368
- <b2b-table-cell divider="${args.withDividers}"
368
+ <b2b-table-cell divider=${args.withDividers}
369
369
  >1 Column</b2b-table-cell
370
370
  >
371
- <b2b-table-cell divider="${args.withDividers}"
371
+ <b2b-table-cell divider=${args.withDividers}
372
372
  >1 Column</b2b-table-cell
373
373
  >
374
- <b2b-table-cell divider="${args.withDividers}"
374
+ <b2b-table-cell divider=${args.withDividers}
375
375
  >1 Column</b2b-table-cell
376
376
  >
377
377
  <b2b-table-cell>1 Column</b2b-table-cell>
378
378
  </b2b-table-row>
379
379
  <b2b-table-row>
380
- <b2b-table-cell divider="${args.withDividers}" colspan="2"
380
+ <b2b-table-cell divider=${args.withDividers} colspan="2"
381
381
  >2 Columns</b2b-table-cell
382
382
  >
383
- <b2b-table-cell divider="${args.withDividers}"
383
+ <b2b-table-cell divider=${args.withDividers}
384
384
  >1 Column</b2b-table-cell
385
385
  >
386
386
  <b2b-table-cell>1 Column</b2b-table-cell>
@@ -2,18 +2,18 @@ import { html } from "lit-html";
2
2
  import { getArgTypes } from "../../docs/config/utils";
3
3
  const Template = ({ label, required, placeholder, disabled, value, invalid, hint, error, autofocus, name, resize, height, }) => {
4
4
  return html `<b2b-textarea
5
- label="${label}"
6
- required="${required}"
7
- placeholder="${placeholder}"
8
- disabled="${disabled}"
9
- value="${value}"
10
- invalid="${invalid}"
11
- hint="${hint}"
12
- error="${error}"
13
- autofocus="${autofocus}"
14
- name="${name}"
15
- height="${height}"
16
- resize="${resize}"></b2b-textarea>`;
5
+ label=${label}
6
+ required=${required}
7
+ placeholder=${placeholder}
8
+ disabled=${disabled}
9
+ value=${value}
10
+ invalid=${invalid}
11
+ hint=${hint}
12
+ error=${error}
13
+ autofocus=${autofocus}
14
+ name=${name}
15
+ height=${height}
16
+ resize=${resize}></b2b-textarea>`;
17
17
  };
18
18
  const defaultArgs = {
19
19
  label: 'Textarea',
@@ -2,23 +2,23 @@ import { getArgTypes } from "../../docs/config/utils";
2
2
  import { html } from "lit-html";
3
3
  const Template = ({ name, disabled, singleDisabled }) => {
4
4
  return html `
5
- <b2b-toggle-group name="${name}" disabled="${disabled}">
5
+ <b2b-toggle-group name=${name} disabled=${disabled}>
6
6
  <b2b-toggle-button
7
- name="${name}"
7
+ name=${name}
8
8
  value="abcd"
9
9
  label="ABCD"></b2b-toggle-button>
10
10
  <b2b-toggle-button
11
- name="${name}"
11
+ name=${name}
12
12
  value="efgh"
13
13
  label="EFGH"></b2b-toggle-button>
14
14
  <b2b-toggle-button
15
- name="${name}"
15
+ name=${name}
16
16
  value="ijkl"
17
17
  label="IJKL"></b2b-toggle-button>
18
18
  <b2b-toggle-button
19
- name="${name}"
19
+ name=${name}
20
20
  value="mnop"
21
- disabled="${singleDisabled}"
21
+ disabled=${singleDisabled}
22
22
  label="MNOP"></b2b-toggle-button>
23
23
  </b2b-toggle-group>
24
24
  `;
@@ -25,10 +25,10 @@ export default {
25
25
  render: (_a) => {
26
26
  var args = __rest(_a, []);
27
27
  return html `<b2b-toggle-switch
28
- label="${args.label}"
29
- disabled="${args.disabled}"
30
- label-position="${args.labelPosition}"
31
- state="${args.state}" />`;
28
+ label=${args.label}
29
+ disabled=${args.disabled}
30
+ label-position=${args.labelPosition}
31
+ state=${args.state} />`;
32
32
  },
33
33
  };
34
34
  export const SwitchOn = {};
@@ -47,10 +47,10 @@ const meta = {
47
47
  <b2b-paragraph>
48
48
  I am some text with a tooltip
49
49
  <b2b-tooltip
50
- position="${args.position}"
51
- trigger="${args.trigger}"
52
- content="${args.content}"
53
- opened="${args.opened}"
50
+ position=${args.position}
51
+ trigger=${args.trigger}
52
+ content=${args.content}
53
+ opened=${args.opened}
54
54
  data-testid="trigger"
55
55
  >${markup}
56
56
  </b2b-tooltip>
@@ -67,10 +67,10 @@ export const FocusTooltip = Object.assign(Object.assign({}, meta), { render: arg
67
67
  <b2b-paragraph>
68
68
  I am some text with a tooltip
69
69
  <b2b-tooltip
70
- position="${args.position}"
71
- trigger="${args.trigger}"
72
- content="${args.content}"
73
- opened="${args.opened}"
70
+ position=${args.position}
71
+ trigger=${args.trigger}
72
+ content=${args.content}
73
+ opened=${args.opened}
74
74
  data-testid="trigger">
75
75
  ${focusTriggerMarkup}
76
76
  </b2b-tooltip>