@scania/tegel 1.30.0 → 1.31.1-asset-load-order-local-first.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 (132) hide show
  1. package/dist/cjs/loader.cjs.js +1 -1
  2. package/dist/cjs/tds-accordion-item.cjs.entry.js +25 -3
  3. package/dist/cjs/tds-button.cjs.entry.js +1 -1
  4. package/dist/cjs/tds-folder-tab.cjs.entry.js +2 -2
  5. package/dist/cjs/tds-folder-tabs.cjs.entry.js +2 -2
  6. package/dist/cjs/tds-footer.cjs.entry.js +1 -1
  7. package/dist/cjs/tds-header-brand-symbol.cjs.entry.js +1 -1
  8. package/dist/cjs/tds-inline-tab.cjs.entry.js +2 -2
  9. package/dist/cjs/tds-inline-tabs.cjs.entry.js +2 -2
  10. package/dist/cjs/tds-modal.cjs.entry.js +14 -4
  11. package/dist/cjs/tds-navigation-tab.cjs.entry.js +2 -2
  12. package/dist/cjs/tds-navigation-tabs.cjs.entry.js +4 -4
  13. package/dist/cjs/tds-popover-core.cjs.entry.js +1 -1
  14. package/dist/cjs/tds-table-toolbar.cjs.entry.js +3 -3
  15. package/dist/cjs/tds-text-field.cjs.entry.js +5 -5
  16. package/dist/cjs/tds-textarea.cjs.entry.js +4 -4
  17. package/dist/cjs/tds-toast.cjs.entry.js +3 -3
  18. package/dist/cjs/tds-toggle.cjs.entry.js +2 -2
  19. package/dist/cjs/tds-tooltip.cjs.entry.js +2 -2
  20. package/dist/cjs/tegel.cjs.js +1 -1
  21. package/dist/collection/assets/logos/scania-logotype.png +0 -0
  22. package/dist/collection/assets/logos/scania-logotype.svg +2355 -0
  23. package/dist/collection/assets/logos/scania-wordmark-white.png +0 -0
  24. package/dist/collection/assets/logos/scania-wordmark.png +0 -0
  25. package/dist/collection/assets/logos/scania-wordmark.svg +17 -0
  26. package/dist/collection/components/accordion/accordion-item/accordion-item.js +77 -4
  27. package/dist/collection/components/button/button.css +11 -11
  28. package/dist/collection/components/footer/footer.css +1 -1
  29. package/dist/collection/components/header/header-brand-symbol/header-brand-symbol.css +1 -1
  30. package/dist/collection/components/modal/modal.js +45 -4
  31. package/dist/collection/components/popover-core/tds-popover-core.css +0 -7476
  32. package/dist/collection/components/slider/slider-stories-setup.js +235 -0
  33. package/dist/collection/components/table/table-toolbar/table-toolbar.css +6 -1
  34. package/dist/collection/components/table/table-toolbar/table-toolbar.js +3 -2
  35. package/dist/collection/components/tabs/folder-tabs/folder-tab/folder-tab.js +2 -2
  36. package/dist/collection/components/tabs/folder-tabs/folder-tabs.js +2 -2
  37. package/dist/collection/components/tabs/inline-tabs/inline-tab/inline-tab.js +2 -2
  38. package/dist/collection/components/tabs/inline-tabs/inline-tabs.js +2 -2
  39. package/dist/collection/components/tabs/navigation-tabs/navigation-tab/navigation-tab.js +2 -2
  40. package/dist/collection/components/tabs/navigation-tabs/navigation-tabs.js +4 -4
  41. package/dist/collection/components/text-field/text-field.js +5 -5
  42. package/dist/collection/components/textarea/textarea.js +4 -4
  43. package/dist/collection/components/toast/toast.js +3 -3
  44. package/dist/collection/components/toggle/toggle.js +2 -2
  45. package/dist/collection/components/tooltip/tooltip.js +2 -2
  46. package/dist/collection/stories/formatHtmlPreview.js +10 -0
  47. package/dist/components/{p-a2dafd0e.js → p-9cee9d7f.js} +3 -3
  48. package/dist/components/p-d3866be7.js +2098 -0
  49. package/dist/components/{p-d4fa1832.js → p-df84759a.js} +1 -1
  50. package/dist/components/tds-accordion-item.js +30 -5
  51. package/dist/components/tds-button.js +1 -1
  52. package/dist/components/tds-folder-tab.js +2 -2
  53. package/dist/components/tds-folder-tabs.js +2 -2
  54. package/dist/components/tds-footer.js +1 -1
  55. package/dist/components/tds-header-brand-symbol.js +1 -1
  56. package/dist/components/tds-header-dropdown.js +2 -2
  57. package/dist/components/tds-header-launcher.js +2 -2
  58. package/dist/components/tds-inline-tab.js +2 -2
  59. package/dist/components/tds-inline-tabs.js +2 -2
  60. package/dist/components/tds-modal.js +15 -4
  61. package/dist/components/tds-navigation-tab.js +2 -2
  62. package/dist/components/tds-navigation-tabs.js +4 -4
  63. package/dist/components/tds-popover-canvas.js +1 -1
  64. package/dist/components/tds-popover-core.js +1 -1
  65. package/dist/components/tds-popover-menu.js +1 -1
  66. package/dist/components/tds-table-toolbar.js +3 -3
  67. package/dist/components/tds-text-field.js +5 -5
  68. package/dist/components/tds-textarea.js +6 -6
  69. package/dist/components/tds-toast.js +3 -3
  70. package/dist/components/tds-toggle.js +2 -2
  71. package/dist/components/tds-tooltip.js +1 -1
  72. package/dist/esm/loader.js +1 -1
  73. package/dist/esm/tds-accordion-item.entry.js +25 -3
  74. package/dist/esm/tds-button.entry.js +1 -1
  75. package/dist/esm/tds-folder-tab.entry.js +2 -2
  76. package/dist/esm/tds-folder-tabs.entry.js +2 -2
  77. package/dist/esm/tds-footer.entry.js +1 -1
  78. package/dist/esm/tds-header-brand-symbol.entry.js +1 -1
  79. package/dist/esm/tds-inline-tab.entry.js +2 -2
  80. package/dist/esm/tds-inline-tabs.entry.js +2 -2
  81. package/dist/esm/tds-modal.entry.js +14 -4
  82. package/dist/esm/tds-navigation-tab.entry.js +2 -2
  83. package/dist/esm/tds-navigation-tabs.entry.js +4 -4
  84. package/dist/esm/tds-popover-core.entry.js +1 -1
  85. package/dist/esm/tds-table-toolbar.entry.js +3 -3
  86. package/dist/esm/tds-text-field.entry.js +5 -5
  87. package/dist/esm/tds-textarea.entry.js +4 -4
  88. package/dist/esm/tds-toast.entry.js +3 -3
  89. package/dist/esm/tds-toggle.entry.js +2 -2
  90. package/dist/esm/tds-tooltip.entry.js +2 -2
  91. package/dist/esm/tegel.js +1 -1
  92. package/dist/tegel/assets/logos/scania-logotype.png +0 -0
  93. package/dist/tegel/assets/logos/scania-logotype.svg +2355 -0
  94. package/dist/tegel/assets/logos/scania-wordmark-white.png +0 -0
  95. package/dist/tegel/assets/logos/scania-wordmark.png +0 -0
  96. package/dist/tegel/assets/logos/scania-wordmark.svg +17 -0
  97. package/dist/tegel/p-0cac9ea6.entry.js +1 -0
  98. package/dist/tegel/{p-a1262f8f.entry.js → p-106e048d.entry.js} +1 -1
  99. package/dist/tegel/{p-2286d4c3.entry.js → p-10dfd194.entry.js} +1 -1
  100. package/dist/tegel/p-1297d40e.entry.js +1 -0
  101. package/dist/tegel/{p-0ca95c76.entry.js → p-212e1fff.entry.js} +1 -1
  102. package/dist/tegel/p-2b8e97e1.entry.js +1 -0
  103. package/dist/tegel/p-30c88c69.entry.js +1 -0
  104. package/dist/tegel/p-3a92d554.entry.js +1 -0
  105. package/dist/tegel/p-3e4707fb.entry.js +1 -0
  106. package/dist/tegel/{p-2774f177.entry.js → p-46b66490.entry.js} +1 -1
  107. package/dist/tegel/{p-1116da44.entry.js → p-52adc30c.entry.js} +1 -1
  108. package/dist/tegel/{p-87ba6285.entry.js → p-64be21db.entry.js} +1 -1
  109. package/dist/tegel/{p-d29a777f.entry.js → p-67b4b2cf.entry.js} +1 -1
  110. package/dist/tegel/{p-e7a452a8.entry.js → p-76faaf70.entry.js} +1 -1
  111. package/dist/tegel/{p-9d8bb017.entry.js → p-78823da3.entry.js} +1 -1
  112. package/dist/tegel/{p-6631ea34.entry.js → p-bb1d069f.entry.js} +1 -1
  113. package/dist/tegel/{p-051c9000.entry.js → p-c7b0253c.entry.js} +1 -1
  114. package/dist/tegel/p-cbe217bf.entry.js +1 -0
  115. package/dist/tegel/tegel.css +3 -3
  116. package/dist/tegel/tegel.esm.js +1 -1
  117. package/dist/types/components/accordion/accordion-item/accordion-item.d.ts +6 -0
  118. package/dist/types/components/modal/modal.d.ts +6 -2
  119. package/dist/types/components/slider/slider-stories-setup.d.ts +233 -0
  120. package/dist/types/components/table/table-toolbar/table-toolbar.d.ts +1 -0
  121. package/dist/types/components.d.ts +21 -0
  122. package/dist/types/stories/formatHtmlPreview.d.ts +2 -0
  123. package/package.json +6 -1
  124. package/scripts/copy-assets.mjs +32 -30
  125. package/dist/components/p-2e25c35b.js +0 -2098
  126. package/dist/tegel/p-0955d5fc.entry.js +0 -1
  127. package/dist/tegel/p-26e8f033.entry.js +0 -1
  128. package/dist/tegel/p-5ade1970.entry.js +0 -1
  129. package/dist/tegel/p-b6a4f459.entry.js +0 -1
  130. package/dist/tegel/p-c3d91dfa.entry.js +0 -1
  131. package/dist/tegel/p-d38039b3.entry.js +0 -1
  132. package/dist/tegel/p-d56f426f.entry.js +0 -1
@@ -0,0 +1,235 @@
1
+ import formatHtmlPreview from "../../stories/formatHtmlPreview";
2
+ import readme from "./readme.md";
3
+ import { ComponentsFolder } from "../../utils/constants";
4
+ export const SliderTitle = `${ComponentsFolder}/Slider`;
5
+ export const SliderArgTypes = ({ storyName }) => ({
6
+ min: {
7
+ name: 'Min. value',
8
+ description: 'Sets the minimum value for the slider.',
9
+ control: {
10
+ type: 'number',
11
+ },
12
+ table: {
13
+ defaultValue: { summary: 0 },
14
+ },
15
+ },
16
+ max: {
17
+ name: 'Max. value',
18
+ description: 'Sets the maximum value for the slider.',
19
+ control: {
20
+ type: 'number',
21
+ },
22
+ table: {
23
+ defaultValue: { summary: 100 },
24
+ },
25
+ },
26
+ initialValue: {
27
+ name: 'Initial value',
28
+ description: 'Sets the initial value for the slider.',
29
+ control: {
30
+ type: 'number',
31
+ },
32
+ table: {
33
+ defaultValue: { summary: 0 },
34
+ },
35
+ },
36
+ showLabel: {
37
+ name: 'Show label',
38
+ description: 'Toggles if the lable should be shown or hidden.',
39
+ control: {
40
+ type: 'boolean',
41
+ },
42
+ },
43
+ labelText: {
44
+ name: 'Label text',
45
+ description: 'Sets the text for the label.',
46
+ control: {
47
+ type: 'text',
48
+ },
49
+ if: { arg: 'showLabel', eq: true },
50
+ },
51
+ showTicks: {
52
+ name: 'Show ticks',
53
+ description: 'Toggles if ticks should be shown or hidden.',
54
+ control: {
55
+ type: 'boolean',
56
+ },
57
+ },
58
+ numTicks: {
59
+ name: 'Number of ticks',
60
+ description: 'Sets the number of ticks to be displayed.',
61
+ control: {
62
+ type: 'number',
63
+ },
64
+ if: { arg: 'showTicks', eq: true },
65
+ table: {
66
+ defaultValue: { summary: 0 },
67
+ },
68
+ },
69
+ showTickNumbers: {
70
+ name: 'Show tick numbers',
71
+ description: 'Toggles if tick numbers should be shown or hidden.',
72
+ control: {
73
+ type: 'boolean',
74
+ },
75
+ if: { arg: 'showTicks', eq: true },
76
+ table: {
77
+ defaultValue: { summary: false },
78
+ },
79
+ },
80
+ snapToTicks: {
81
+ name: 'Snap to ticks',
82
+ description: 'Snaps the thumb to the closest tick when dragging.',
83
+ control: {
84
+ type: 'boolean',
85
+ },
86
+ if: { arg: 'showTicks', eq: true },
87
+ table: {
88
+ defaultValue: { summary: false },
89
+ },
90
+ },
91
+ showTooltip: {
92
+ name: 'Show tooltip',
93
+ description: 'Toggles if the tooltip should be shown or hidden.',
94
+ control: {
95
+ type: 'boolean',
96
+ },
97
+ table: {
98
+ defaultValue: { summary: false },
99
+ },
100
+ },
101
+ showControls: {
102
+ name: 'Show controls (not compatible with input field)',
103
+ description: 'Toggles if controls should be shown or hidden.',
104
+ control: {
105
+ type: 'boolean',
106
+ },
107
+ table: {
108
+ defaultValue: { summary: false },
109
+ },
110
+ },
111
+ step: {
112
+ name: 'Step value',
113
+ description: 'Sets the value to increment/decrement with.',
114
+ control: {
115
+ type: 'number',
116
+ min: 0,
117
+ step: storyName === 'Decimal' ? 0.01 : undefined,
118
+ },
119
+ table: {
120
+ defaultValue: { summary: 1 },
121
+ },
122
+ },
123
+ showInput: {
124
+ name: 'Show value input field (not compatible with controls)',
125
+ description: 'Toggles if the values input field should be shown or hidden.',
126
+ control: {
127
+ type: 'boolean',
128
+ },
129
+ if: { arg: 'showControls', eq: false },
130
+ table: {
131
+ defaultValue: { summary: false },
132
+ },
133
+ },
134
+ thumbSize: {
135
+ name: 'Thumb size',
136
+ description: 'Switches between the large and small version of the thumb.',
137
+ control: {
138
+ type: 'radio',
139
+ },
140
+ options: ['Large', 'Small'],
141
+ table: {
142
+ defaultValue: { summary: 'lg' },
143
+ },
144
+ },
145
+ readonly: {
146
+ name: 'Read Only',
147
+ description: 'Puts the control in a read-only state.',
148
+ control: {
149
+ type: 'boolean',
150
+ },
151
+ table: {
152
+ defaultValue: { summary: false },
153
+ },
154
+ },
155
+ disabled: {
156
+ name: 'Disabled',
157
+ description: 'Disables the slider.',
158
+ control: {
159
+ type: 'boolean',
160
+ },
161
+ table: {
162
+ defaultValue: { summary: false },
163
+ },
164
+ },
165
+ });
166
+ export const SliderParameters = {
167
+ parameters: {
168
+ notes: readme,
169
+ design: [
170
+ {
171
+ name: 'Figma',
172
+ type: 'figma',
173
+ url: 'https://www.figma.com/file/d8bTgEx7h694MSesi2CTLF/Tegel-UI-Library?node-id=9649%3A20759&t=Ne6myqwca5m00de7-1',
174
+ },
175
+ {
176
+ name: 'Link',
177
+ type: 'link',
178
+ url: 'https://www.figma.com/file/d8bTgEx7h694MSesi2CTLF/Tegel-UI-Library?node-id=9649%3A20759&t=Ne6myqwca5m00de7-1',
179
+ },
180
+ ],
181
+ },
182
+ };
183
+ const sizeLookUp = {
184
+ Large: 'lg',
185
+ Small: 'sm',
186
+ };
187
+ export const SliderTemplate = ({ min, max, initialValue, showLabel, labelText, showTicks, numTicks, showTickNumbers, snapToTicks, showTooltip, showControls, step, showInput, thumbSize, readonly, disabled, }) => formatHtmlPreview(`
188
+ <!-- Style code below is just for demo purposes -->
189
+ <style>
190
+ .demo-wrapper {
191
+ max-width: 500px;
192
+ margin-left: 25px;
193
+ }
194
+ </style>
195
+
196
+ <div class="demo-wrapper">
197
+ <tds-slider
198
+ min="${min}"
199
+ max="${max}"
200
+ ${step ? `step="${step}"` : ''}
201
+ value="${initialValue}"
202
+ ${showTicks ? `ticks="${numTicks}"` : ''}
203
+ ${showTickNumbers ? 'show-tick-numbers' : ''}
204
+ ${snapToTicks ? 'snap' : ''}
205
+ ${showLabel ? `label="${labelText}"` : ''}
206
+ ${showTooltip ? 'tooltip' : ''}
207
+ ${showControls ? 'controls' : ''}
208
+ ${showInput ? 'input' : ''}
209
+ ${disabled ? 'disabled' : ''}
210
+ thumb-size="${sizeLookUp[thumbSize]}"
211
+ ${readonly ? 'read-only' : ''}
212
+ tds-read-only-aria-label="Read only"
213
+ >
214
+ </tds-slider>
215
+ </div>
216
+
217
+ <!-- Script tag for demo purposes -->
218
+ <script>
219
+ slider = document.querySelector('tds-slider');
220
+
221
+ function handleTdsChange(event) {
222
+ console.log('tdsChange event:', event);
223
+ }
224
+
225
+ slider.removeEventListener('tdsChange', handleTdsChange);
226
+ slider.addEventListener('tdsChange', handleTdsChange);
227
+
228
+ function handleTdsInput(event) {
229
+ console.log('tdsInput event:', event);
230
+ }
231
+
232
+ slider.removeEventListener('tdsInput', handleTdsInput);
233
+ slider.addEventListener('tdsInput', handleTdsInput);
234
+ </script>
235
+ `);
@@ -18,14 +18,19 @@
18
18
  display: flex;
19
19
  justify-content: space-between;
20
20
  }
21
+ :host .tds-table__actionbar-left {
22
+ display: flex;
23
+ }
21
24
  :host .tds-table__title {
22
25
  font: var(--tds-headline-07);
23
26
  letter-spacing: var(--tds-headline-07-ls);
24
27
  padding-top: var(--tds-spacing-element-16);
25
28
  text-align: left;
29
+ margin-right: var(--tds-spacing-element-8);
26
30
  }
27
31
  :host .tds-table__actionbar,
28
- :host slot[name=end]::slotted(*) {
32
+ :host slot[name=end]::slotted(*),
33
+ :host slot[name=start]::slotted(*) {
29
34
  display: flex;
30
35
  align-self: center;
31
36
  }
@@ -6,6 +6,7 @@ const relevantTableProps = [
6
6
  'horizontalScrollWidth',
7
7
  ];
8
8
  /**
9
+ * @slot start - Slot for the start (left side) of the Table Toolbar.
9
10
  * @slot end - Slot for the end (right side) of the Table Toolbar.
10
11
  */
11
12
  export class TdsTableToolbar {
@@ -67,10 +68,10 @@ export class TdsTableToolbar {
67
68
  return styles;
68
69
  }
69
70
  render() {
70
- return (h(Host, { key: '7ff5d6032f2ada9a95d5fa33286ad31940163dfc', class: {
71
+ return (h(Host, { key: '76acde1b3c55f421cedae9bf932f923813272fe3', class: {
71
72
  'tds-table--compact': this.compactDesign,
72
73
  'toolbar__horizontal-scroll': !!this.horizontalScrollWidth,
73
- }, style: this.getStyles(), "aria-labelledby": "table-toolbar-title" }, h("div", { key: '9975a508256b56731dd51f7687a16dff7994cf2a', class: "tds-table__upper-bar-flex" }, h("caption", { key: '997271d59b13fe9f88086e8bc5334d6412887fe8', id: "table-toolbar-title", class: "tds-table__title" }, this.tableTitle), h("div", { key: '6da0901c59e6e053cadfb540ded0e738e492f8ed', class: "tds-table__actionbar" }, this.filter && (h("div", { key: 'dfb2a778e959c5b26d42be07378b52c09c9f95d3', class: "tds-table__searchbar" }, h("input", { key: '13918cd96afb703cf71a0aeeb1dd3014a4cba665', class: "tds-table__searchbar-input", type: "text", onKeyUp: (event) => this.handleSearch(event), "aria-label": this.tdsSearchAriaLabel }), h("span", { key: 'a95553216a9a0c94fbd08c43ef44c95389a82f7e', class: "tds-table__searchbar-icon" }, h("tds-icon", { key: '6a9396e3f6f8508acb802e92b320b5c8f2cda517', name: "search", size: "20px" })))), h("slot", { key: '7cf66ff8283724f421e6bdc018cee62f4cd480b1', name: "end" })))));
74
+ }, style: this.getStyles(), "aria-labelledby": "table-toolbar-title" }, h("div", { key: 'e6fe2f411ebde77befeb99992b5157bba3651fbf', class: "tds-table__upper-bar-flex" }, h("div", { key: 'f61dc1de54a73c28a2ef10dcae2a5a629ae76c57', class: "tds-table__actionbar-left" }, this.tableTitle && (h("caption", { key: 'ca50269d08eab742cb759d371937739fd0a87eff', id: "table-toolbar-title", class: "tds-table__title" }, this.tableTitle)), h("slot", { key: '275b233ff233a9f90d936553fa31015f72f21899', name: "start" })), h("div", { key: 'd2ed2b7918e8f8d8e23c34bd8114ee1e69cdb681', class: "tds-table__actionbar" }, this.filter && (h("div", { key: 'cd0bd112e3ab6b31c96e10bc4b2eb32715766d58', class: "tds-table__searchbar" }, h("input", { key: '3dbcdf5394477fb55d41c2ee0ddcea1e50ffcd64', class: "tds-table__searchbar-input", type: "text", onKeyUp: (event) => this.handleSearch(event), "aria-label": this.tdsSearchAriaLabel }), h("span", { key: '0a34bfd7cd50c88604af01dfc9bef1adae7d8999', class: "tds-table__searchbar-icon" }, h("tds-icon", { key: '98a376c6db7d249e060dafffef18c9345730e25c', name: "search", size: "20px" })))), h("slot", { key: 'e4400d9ddb0f6435315569e1f64f34bc04d8054f', name: "end" })))));
74
75
  }
75
76
  static get is() { return "tds-table-toolbar"; }
76
77
  static get encapsulation() { return "shadow"; }
@@ -35,10 +35,10 @@ export class TdsFolderTab {
35
35
  }
36
36
  }
37
37
  render() {
38
- return (h(Host, { key: '3e036096f61107d381945ce7b9a4478668666d20', "aria-selected": this.selected }, h("div", { key: 'a99712b0487ea9102b4cd0afd3c079a0f52b7ce9', class: {
38
+ return (h(Host, { key: '19a42f7143a8f32130642bd50dd6817f871fdf20', "aria-selected": this.selected }, h("div", { key: '51bef3bebff5e13d7c949529919865780d8b33de', class: {
39
39
  selected: this.selected,
40
40
  disabled: this.disabled,
41
- }, style: { width: `${this.tabWidth}px` } }, h("slot", { key: 'eddb270a4d93a3fe824531bd86b769246545262e' }))));
41
+ }, style: { width: `${this.tabWidth}px` } }, h("slot", { key: '2b661d3518f047f7bd0e50a121987eb62c5d42e8' }))));
42
42
  }
43
43
  static get is() { return "tds-folder-tab"; }
44
44
  static get encapsulation() { return "shadow"; }
@@ -162,9 +162,9 @@ export class TdsFolderTabs {
162
162
  this.removeEventListenerFromTabs();
163
163
  }
164
164
  render() {
165
- return (h(Host, { key: '382b6b5286588f36ff98f20c1a6a76cc5f59aac0', role: "tablist", class: `${this.modeVariant ? `tds-mode-variant-${this.modeVariant}` : ''}` }, h("div", { key: 'd3118c3bb9e31de96eaabc91c78d125856c665d5', class: "wrapper", ref: (el) => {
165
+ return (h(Host, { key: 'c56bf987e23ade8b30cd2470ab1ed0f4273bd191', role: "tablist", class: `${this.modeVariant ? `tds-mode-variant-${this.modeVariant}` : ''}` }, h("div", { key: 'afab8a86427918d5ac4bbc17dd2a436a986df577', class: "wrapper", ref: (el) => {
166
166
  this.navWrapperElement = el;
167
- } }, h("button", { key: '26f0d1733a766f96de00328e041e06ecab13c1dc', "aria-label": this.tdsScrollLeftAriaLabel, class: `scroll-left-button ${this.showLeftScroll ? 'show' : ''}`, disabled: !this.showLeftScroll, onClick: () => this.scrollLeft() }, h("tds-icon", { key: '1e62e87833204ccfe40ffc52f29567dc75f3f9e0', name: "chevron_left", size: "20px" })), h("slot", { key: '7c33f235eed736380307d496d62da55223d7f90b', onSlotchange: () => this.handleSlotChange() }), h("button", { key: 'b2d3faaa0bc01f1385cf44e80e29f5445e928381', "aria-label": this.tdsScrollRightAriaLabel, class: `scroll-right-button ${this.showRightScroll ? 'show' : ''}`, disabled: !this.showRightScroll, onClick: () => this.scrollRight() }, h("tds-icon", { key: 'c04434dd18f0ae0c2b2e43b5dfd4ab4a5c317a25', name: "chevron_right", size: "20px" })))));
167
+ } }, h("button", { key: '0b82a953932e888d05478d82944c90768f97bb36', "aria-label": this.tdsScrollLeftAriaLabel, class: `scroll-left-button ${this.showLeftScroll ? 'show' : ''}`, disabled: !this.showLeftScroll, onClick: () => this.scrollLeft() }, h("tds-icon", { key: '50cd22c5be43ae452e0896b449570774c3ab0151', name: "chevron_left", size: "20px" })), h("slot", { key: '3cb17dddc8592241c467167b3a0028355f2b7d5e', onSlotchange: () => this.handleSlotChange() }), h("button", { key: '23c289b70d723b2d0705692835a510b8a650fcfa', "aria-label": this.tdsScrollRightAriaLabel, class: `scroll-right-button ${this.showRightScroll ? 'show' : ''}`, disabled: !this.showRightScroll, onClick: () => this.scrollRight() }, h("tds-icon", { key: 'fff2bfcbcf916d1b391aa25ee5f6fda3c8e63d23', name: "chevron_right", size: "20px" })))));
168
168
  }
169
169
  static get is() { return "tds-folder-tabs"; }
170
170
  static get encapsulation() { return "shadow"; }
@@ -30,11 +30,11 @@ export class TdsInlineTab {
30
30
  }
31
31
  }
32
32
  render() {
33
- return (h(Host, { key: 'fb0af4b885f31d9afa67f76bf3cf122f59876079', "aria-selected": this.selected }, h("div", { key: '624b7370a054f490575a9a2491eaa9277f4a77ba', class: {
33
+ return (h(Host, { key: '496b56fa31a50e26ceea5275e29873d030ea2937', "aria-selected": this.selected }, h("div", { key: 'c67bfb892ea721b1ad329e00453fe62dcf4681c0', class: {
34
34
  'inline-tab-item': true,
35
35
  'selected': this.selected,
36
36
  'disabled': this.disabled,
37
- } }, h("slot", { key: '0eadedfe560fe93faebf07a8f1a546ae022676d9' }))));
37
+ } }, h("slot", { key: 'bae7788e0625279f4eb82129da1256fbb7f1c95b' }))));
38
38
  }
39
39
  static get is() { return "tds-inline-tab"; }
40
40
  static get encapsulation() { return "shadow"; }
@@ -169,9 +169,9 @@ export class TdsInlineTabs {
169
169
  this.removeEventListenerFromTabs();
170
170
  }
171
171
  render() {
172
- return (h(Host, { key: 'ccd58f7b7b6bb4423fa45a6d6177386f5561e32a', role: "tablist", class: `${this.modeVariant ? `tds-mode-variant-${this.modeVariant}` : ''}` }, h("div", { key: '0369ce03c5cb29f24762b6b5bb3ba932f82a0869', class: "wrapper", ref: (el) => {
172
+ return (h(Host, { key: '9fa2d8cb54ac480fb5875432440506b0c12efaa5', role: "tablist", class: `${this.modeVariant ? `tds-mode-variant-${this.modeVariant}` : ''}` }, h("div", { key: 'aecb68d56088f84e271f3c829c84da4e732df9b8', class: "wrapper", ref: (el) => {
173
173
  this.navWrapperElement = el;
174
- }, style: { paddingLeft: `${this.leftPadding}px` } }, h("button", { key: 'f8cf277e9bb870d3b7d53bc3eff73806b61f0828', "aria-label": this.tdsScrollLeftAriaLabel, class: `scroll-left-button ${this.showLeftScroll ? 'show' : ''}`, onClick: () => this.scrollLeft(), disabled: !this.showLeftScroll }, h("tds-icon", { key: 'f72664b9b0f19b9a0c4ded16bd1be4b66594406a', name: "chevron_left", size: "20px" })), h("slot", { key: '1e2bc784f1148361bf04b34cbbdb62f3d3aad8af', onSlotchange: () => this.handleSlotChange() }), h("button", { key: 'b9d0e45c7d46a399081d561e496c5d1cc81132b0', "aria-label": this.tdsScrollRightAriaLabel, class: `scroll-right-button ${this.showRightScroll ? 'show' : ''}`, onClick: () => this.scrollRight(), disabled: !this.showRightScroll }, h("tds-icon", { key: '55bbe28b1524a0ac6a808b1fb41225263977005f', name: "chevron_right", size: "20px" })))));
174
+ }, style: { paddingLeft: `${this.leftPadding}px` } }, h("button", { key: '9b97d342cfe66209063b504b49480d587cd626d5', "aria-label": this.tdsScrollLeftAriaLabel, class: `scroll-left-button ${this.showLeftScroll ? 'show' : ''}`, onClick: () => this.scrollLeft(), disabled: !this.showLeftScroll }, h("tds-icon", { key: 'a447ce946eb5bc02a2527f210322aa76ca5ad5b8', name: "chevron_left", size: "20px" })), h("slot", { key: '1df34e68bbea35ef76de48e7b8fe96b3a8655792', onSlotchange: () => this.handleSlotChange() }), h("button", { key: '7c753dd66c173265c32a7b49197df12fbecc78d1', "aria-label": this.tdsScrollRightAriaLabel, class: `scroll-right-button ${this.showRightScroll ? 'show' : ''}`, onClick: () => this.scrollRight(), disabled: !this.showRightScroll }, h("tds-icon", { key: 'f76934b67470db5ff6ddb6fbae86f87fd3d0bdee', name: "chevron_right", size: "20px" })))));
175
175
  }
176
176
  static get is() { return "tds-inline-tabs"; }
177
177
  static get encapsulation() { return "shadow"; }
@@ -30,8 +30,8 @@ export class TdsNavigationTab {
30
30
  }
31
31
  }
32
32
  render() {
33
- return (h(Host, { key: '089ff23cbaa8ec219eb3771964a6843015b47378' }, h("div", { key: 'c75620addf322521de678bf4012c5c1dfdeb9464', class: `navigation-tab-item ${this.selected ? 'selected' : ''}
34
- ${this.disabled ? 'disabled' : ''}` }, h("slot", { key: 'f3bb65a7f8aad7adfc0ccb5d4bbc1c98c368978b' }))));
33
+ return (h(Host, { key: '28ba6f5bedc4f2a31e5011e37bf92d3b38fa8abe' }, h("div", { key: 'ac5aad203d8a13dc42a8f9e99b2ccdd7c784c9af', class: `navigation-tab-item ${this.selected ? 'selected' : ''}
34
+ ${this.disabled ? 'disabled' : ''}` }, h("slot", { key: 'da6292612753748f6cac68e0b282ecde642cb5b5' }))));
35
35
  }
36
36
  static get is() { return "tds-navigation-tab"; }
37
37
  static get encapsulation() { return "shadow"; }
@@ -169,15 +169,15 @@ export class TdsNavigationTabs {
169
169
  this.removeEventListenerFromTabs();
170
170
  }
171
171
  render() {
172
- return (h(Host, { key: '26d9458d689f9304aa6fb6a5b07f05079c715152', role: "tablist", class: { [`tds-mode-variant-${this.modeVariant}`]: this.modeVariant !== null } }, h("div", { key: '8b8568c45abe2952607764df75682a10864bf35e', class: "wrapper", ref: (el) => {
172
+ return (h(Host, { key: '2fc278cacc04614ca43b70f52b12f79b31227fbb', role: "tablist", class: { [`tds-mode-variant-${this.modeVariant}`]: this.modeVariant !== null } }, h("div", { key: '50357810903ea3bff83fde4478960de0866c7c15', class: "wrapper", ref: (el) => {
173
173
  this.navWrapperElement = el;
174
- }, style: { paddingLeft: `${this.leftPadding}px` } }, h("button", { key: '369338833a13937105bf4ebaf50a22b9cb5d618f', "aria-label": this.tdsScrollLeftAriaLabel, class: {
174
+ }, style: { paddingLeft: `${this.leftPadding}px` } }, h("button", { key: 'b5b05a2f9bce1618c71594cf388dc83efce98915', "aria-label": this.tdsScrollLeftAriaLabel, class: {
175
175
  'scroll-left-button': true,
176
176
  'show': this.showLeftScroll,
177
- }, onClick: () => this.scrollLeft(), disabled: !this.showLeftScroll }, h("tds-icon", { key: 'bea7b39e109ad4453065176b0e16e0d0595ba37a', name: "chevron_left", size: "20px" })), h("slot", { key: '5b82ca06921a3566ab7c1614d6e551e4332d8112', onSlotchange: () => this.handleSlotChange() }), h("button", { key: '50c111d8298d3715503b251d890c2a59f984c9fc', "aria-label": this.tdsScrollRightAriaLabel, class: {
177
+ }, onClick: () => this.scrollLeft(), disabled: !this.showLeftScroll }, h("tds-icon", { key: 'aad19852d36ff8e1642ba464f9618a57ff37169c', name: "chevron_left", size: "20px" })), h("slot", { key: '3dcf0d7e6900df33a69863868a3a48dcb4aa8141', onSlotchange: () => this.handleSlotChange() }), h("button", { key: '352539955226aecf92deb0c0db83c42a5b021e43', "aria-label": this.tdsScrollRightAriaLabel, class: {
178
178
  'scroll-right-button': true,
179
179
  'show': this.showRightScroll,
180
- }, onClick: () => this.scrollRight(), disabled: !this.showRightScroll }, h("tds-icon", { key: '9e7ba00a1c6e155dcb8f76a175411ee9d20fb669', name: "chevron_right", size: "20px" })))));
180
+ }, onClick: () => this.scrollRight(), disabled: !this.showRightScroll }, h("tds-icon", { key: '0e3fe531374dd82b6ee5de1a5a1bea4a38e03500', name: "chevron_right", size: "20px" })))));
181
181
  }
182
182
  static get is() { return "tds-navigation-tabs"; }
183
183
  static get encapsulation() { return "shadow"; }
@@ -76,7 +76,7 @@ export class TdsTextField {
76
76
  var _a;
77
77
  const usesPrefixSlot = hasSlot('prefix', this.host);
78
78
  const usesSuffixSlot = hasSlot('suffix', this.host);
79
- return (h("div", { key: '81cbb5cca60842e284e60630307f246b50650d79', class: {
79
+ return (h("div", { key: '985928ef59662762648f2d95d5decad2e3188e05', class: {
80
80
  'form-text-field': true,
81
81
  'form-text-field-nomin': this.noMinWidth,
82
82
  'text-field-focus': this.focusInput && !this.disabled,
@@ -94,12 +94,12 @@ export class TdsTextField {
94
94
  'form-text-field-sm': this.size === 'sm',
95
95
  'form-text-field-error': this.state === 'error',
96
96
  'form-text-field-success': this.state === 'success',
97
- } }, this.labelPosition === 'outside' && (h("div", { key: '57bc0784f18f9ed2c4fd31699832599ac73ceb32', class: "text-field-label-outside" }, h("label", { key: '8cadf1065d6556d6f9dc74b70d3c36b48db86e38', htmlFor: `text-field-input-element-${this.uuid}` }, this.label))), h("div", { key: 'd191fdf981ac742c4a95fa69202607f0c73606d7', onClick: () => this.textInput.focus(), class: "text-field-container" }, usesPrefixSlot && (h("div", { key: 'de76fcf2db999b9e21b33bf3554d22e4e7648574', class: {
97
+ } }, this.labelPosition === 'outside' && (h("div", { key: '7a409b43a1fee8b7b078abc5f96c925ab97bcedc', class: "text-field-label-outside" }, h("label", { key: 'c6bdaab4e6f81a95aa71a4e23a1f02fb1bcef9ec', htmlFor: `text-field-input-element-${this.uuid}` }, this.label))), h("div", { key: '945f7901a92850da22ab84c5fe77e2d97738aaa9', onClick: () => this.textInput.focus(), class: "text-field-container" }, usesPrefixSlot && (h("div", { key: '5d6cb2facb8ff90b7393409b769c2b5e5a860421', class: {
98
98
  'text-field-slot-wrap-prefix': true,
99
99
  'text-field-error': this.state === 'error',
100
100
  'text-field-success': this.state === 'success',
101
101
  'text-field-default': this.state === 'default',
102
- } }, h("slot", { key: 'ab87f5a55f1a7d94bbcb624bc1c4f864c0136cf8', name: "prefix" }))), h("div", { key: '7097450497a908bef52ab5d28966267c984f433d', class: "text-field-input-container" }, h("input", { key: 'f25d3c0ce37078cf018aa80cea8d5e055656f2c1', ref: (inputEl) => {
102
+ } }, h("slot", { key: 'b0f0e3ebb96dbd2af021150b68690af566db44b9', name: "prefix" }))), h("div", { key: 'c5b172ee6c561256ab930490113f406b88eae67c', class: "text-field-input-container" }, h("input", { key: '2e0a9070b41bde39a2a0f14b132f474692eb0e04', ref: (inputEl) => {
103
103
  this.textInput = inputEl;
104
104
  }, class: {
105
105
  'text-field-input': true,
@@ -114,13 +114,13 @@ export class TdsTextField {
114
114
  if (!this.readOnly) {
115
115
  this.handleBlur(event);
116
116
  }
117
- }, "aria-label": this.tdsAriaLabel ? this.tdsAriaLabel : this.label, "aria-describedby": `text-field-helper-element-${this.uuid}`, "aria-readonly": this.readOnly, id: `text-field-input-element-${this.uuid}` }), this.labelPosition === 'inside' && this.size !== 'sm' && (h("label", { key: '40a00f563ef4c62345a39d03937f0824ccef0c44', class: "text-field-label-inside", htmlFor: `text-field-input-element-${this.uuid}` }, this.label))), h("div", { key: 'b41eb0927e23dff6fd12a8304f7bff5a8b743a54', class: "text-field-bar" }), usesSuffixSlot && (h("div", { key: '0d26ee8cb9838ee91574119ae0e1febb06318c9c', class: {
117
+ }, "aria-label": this.tdsAriaLabel ? this.tdsAriaLabel : this.label, "aria-describedby": `text-field-helper-element-${this.uuid}`, "aria-readonly": this.readOnly, id: `text-field-input-element-${this.uuid}` }), this.labelPosition === 'inside' && this.size !== 'sm' && (h("label", { key: 'ffb3bbb84ab718c2259134f32ee6dd0eb348cb9f', class: "text-field-label-inside", htmlFor: `text-field-input-element-${this.uuid}` }, this.label))), h("div", { key: '166da0147311d28064b7e03bbefd1a0ee18db5ca', class: "text-field-bar" }), usesSuffixSlot && (h("div", { key: '4bb21d12957bf65d525931c88a5a89fff49d4eaf', class: {
118
118
  'text-field-slot-wrap-suffix': true,
119
119
  'text-field-error': this.state === 'error',
120
120
  'text-field-success': this.state === 'success',
121
121
  'text-field-default': this.state === 'default',
122
122
  'tds-u-display-none': this.readOnly,
123
- } }, h("slot", { key: '1af3d2006e55936a8afcce17ca9519b9bb9907c5', name: "suffix" }))), this.readOnly && !this.hideReadOnlyIcon && (h("span", { key: '89b9f9b62e50006f933ab36974f8d6c6e2dab9c8', class: "text-field-icon__readonly" }, h("tds-icon", { key: '44cc31f05988149991d58d090187e444b33ec62e', name: "edit_inactive", size: "20px" }))), h("span", { key: '73f3021a39c0a880224879356866cd214ccb225e', class: "text-field-icon__readonly-label" }, "This field is non-editable")), h("div", { key: 'c70487a997117103ec68ddbdf86d0ca9701f2202', "aria-live": "assertive" }, (this.helper || this.maxLength > 0) && (h("div", { key: 'dee32001897276fe40813ef0b29077d31a331b0d', class: "text-field-helper", id: `text-field-helper-element-${this.uuid}` }, this.state === 'error' && (h("div", { key: '31e68824fb88938e6c7fc3f9f80a84bce101a8f9', class: "text-field-helper-error-state" }, !this.readOnly && h("tds-icon", { key: '63e22a80312fdd7365a8aec9a5fcd7c8104c376a', name: "error", size: "16px" }), this.helper)), this.state !== 'error' && this.helper, !this.readOnly && this.maxLength > 0 && (h("span", { key: 'e31d5df19bbf0d8278f2f2dbc7d978d770378a89', class: {
123
+ } }, h("slot", { key: '7e67dbc8f4f67cb0c7d194e01e5787ae18ffab13', name: "suffix" }))), this.readOnly && !this.hideReadOnlyIcon && (h("span", { key: 'd213ec000d837cbd4b711468ef3cfa826cc65ac2', class: "text-field-icon__readonly" }, h("tds-icon", { key: '56b8b76a5771889f9f36ab683dcba6906bff42a6', name: "edit_inactive", size: "20px" }))), h("span", { key: '9e8fa95602a1ce5630f30947b59decc700c06c8b', class: "text-field-icon__readonly-label" }, "This field is non-editable")), h("div", { key: '9e8547e06a25e7da98ff977ac6be1b79d27e4151', "aria-live": "assertive" }, (this.helper || this.maxLength > 0) && (h("div", { key: 'daeea67a48a15d27785f31dfcb69fb75e31ab85b', class: "text-field-helper", id: `text-field-helper-element-${this.uuid}` }, this.state === 'error' && (h("div", { key: '974bad3f97b23d69a20130bf66b6c72ef47f68bc', class: "text-field-helper-error-state" }, !this.readOnly && h("tds-icon", { key: '687cad3cb0451a262f836089851e9a2e08f2c74e', name: "error", size: "16px" }), this.helper)), this.state !== 'error' && this.helper, !this.readOnly && this.maxLength > 0 && (h("span", { key: '431709fb793dde8845b20698e722a7c140bb32b6', class: {
124
124
  'text-field-textcounter-divider': true,
125
125
  'text-field-textcounter-disabled': this.disabled,
126
126
  } }, this.value === null ? 0 : (_a = this.value) === null || _a === void 0 ? void 0 : _a.length, " / ", this.maxLength)))))));
@@ -31,7 +31,7 @@ export class TdsTextarea {
31
31
  }
32
32
  // Data input event in value prop
33
33
  handleInput(event) {
34
- if (event.target instanceof HTMLInputElement) {
34
+ if (event.target instanceof HTMLTextAreaElement) {
35
35
  this.value = event.target.value;
36
36
  this.tdsInput.emit(event);
37
37
  }
@@ -58,7 +58,7 @@ export class TdsTextarea {
58
58
  }
59
59
  render() {
60
60
  var _a;
61
- return (h("div", { key: 'b0af8053153a8752a82d1b4f9a1f3c6e347ba4e5', class: {
61
+ return (h("div", { key: '1d9b2b46f64dfd4b65af35b266544c0164373c06', class: {
62
62
  'textarea-container': true,
63
63
  'textarea-label-inside': this.labelPosition === 'inside',
64
64
  'textarea-focus': this.focusInput,
@@ -68,7 +68,7 @@ export class TdsTextarea {
68
68
  'textarea-data': this.value !== '',
69
69
  [`textarea-${this.state}`]: this.state === 'error' || this.state === 'success',
70
70
  'no-min-width': this.noMinWidth,
71
- } }, this.labelPosition !== 'no-label' && (h("label", { key: 'e7acfb3ee16ae429ae5b530c678de7178cfadb37', htmlFor: `textarea-element-${this.uuid}`, class: 'textarea-label' }, this.label)), h("div", { key: '8e4a259a015dbb7d5f52eb890c0b1865c7d23c2a', class: "textarea-wrapper" }, h("textarea", { key: 'af0bf0fe69baa4c33c8d628a509ef2771d581728', id: `textarea-element-${this.uuid}`, class: 'textarea-input', ref: (inputEl) => {
71
+ } }, this.labelPosition !== 'no-label' && (h("label", { key: '971f3f72566f19851a28617e5c8a7889eb0acea8', htmlFor: `textarea-element-${this.uuid}`, class: 'textarea-label' }, this.label)), h("div", { key: 'c3d6ed6c8f842d7561aa254c54eee44f48ce4d63', class: "textarea-wrapper" }, h("textarea", { key: 'a9381e6a8546c7f318b171549352964e31fd305b', id: `textarea-element-${this.uuid}`, class: 'textarea-input', ref: (inputEl) => {
72
72
  this.textEl = inputEl;
73
73
  }, disabled: this.disabled, readonly: !this.disabled && this.readOnly, placeholder: this.placeholder, value: this.value, name: this.name, autofocus: this.autofocus, maxlength: this.maxLength, cols: this.cols, rows: this.rows, onFocus: (event) => {
74
74
  if (!this.readOnly) {
@@ -78,7 +78,7 @@ export class TdsTextarea {
78
78
  if (!this.readOnly) {
79
79
  this.handleBlur(event);
80
80
  }
81
- }, onInput: (event) => this.handleInput(event), onChange: (event) => this.handleChange(event), "aria-invalid": this.state === 'error' ? 'true' : 'false', "aria-readonly": this.readOnly ? 'true' : 'false', "aria-label": this.tdsAriaLabel ? this.tdsAriaLabel : this.label, "aria-describedby": `textarea-helper-element-${this.uuid}` }), h("span", { key: 'a4d4472cc29ceee2df18621253e4790298dab8e6', class: "textarea-resizer-icon" }, h("svg", { key: '086a281f3fec5590ddb8563ef1e65136d4b831d4', width: "12", height: "12", viewBox: "0 0 12 12", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, h("path", { key: '5d6935da052a1163db2d6526e2c419a9e7621b80', "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M11.8536 0.853553C12.0488 0.658291 12.0488 0.341709 11.8536 0.146447C11.6583 -0.0488155 11.3417 -0.0488155 11.1464 0.146447L0.146447 11.1464C-0.0488155 11.3417 -0.0488155 11.6583 0.146447 11.8536C0.341709 12.0488 0.658291 12.0488 0.853553 11.8536L11.8536 0.853553ZM11.8536 4.64645C12.0488 4.84171 12.0488 5.15829 11.8536 5.35355L5.35355 11.8536C5.15829 12.0488 4.84171 12.0488 4.64645 11.8536C4.45118 11.6583 4.45118 11.3417 4.64645 11.1464L11.1464 4.64645C11.3417 4.45118 11.6583 4.45118 11.8536 4.64645ZM11.8536 8.64645C12.0488 8.84171 12.0488 9.15829 11.8536 9.35355L9.35355 11.8536C9.15829 12.0488 8.84171 12.0488 8.64645 11.8536C8.45118 11.6583 8.45118 11.3417 8.64645 11.1464L11.1464 8.64645C11.3417 8.45118 11.6583 8.45118 11.8536 8.64645Z", fill: "currentColor" }))), !this.disabled && !this.hideReadOnlyIcon && this.readOnly && (h("span", { key: '9b6e37cfdb98c9dbc5207a7a615dda7bc53a12f9', class: "textarea-icon__readonly" }, h("tds-tooltip", { key: '847bf8835a69bb18cc248fc0a79fb63cd56cd4bc', placement: "top-end", text: "This field is non-editable", selector: "#readonly-tooltip" }), h("tds-icon", { key: 'fc952bfb4ded2a415d8877a02b42cc5ca852aa92', id: "readonly-tooltip", name: "edit_inactive", svgTitle: "inactive" })))), h("span", { key: '73ab74707b95ac4be6fe44da50fbd85034010c30', class: 'textarea-helper', "aria-live": "assertive", id: `textarea-helper-element-${this.uuid}` }, this.state === 'error' && !this.readOnly && h("tds-icon", { key: '0a51fe5b3ca770969ad7c42155c16ddf1349a215', name: "error", size: "16px" }), this.helper), this.maxLength > 0 && (h("div", { key: 'faaa8a3ea81472dc078084e25d6513b2633118b7', class: 'textarea-textcounter' }, this.value === null ? 0 : (_a = this.value) === null || _a === void 0 ? void 0 : _a.length, h("span", { key: '1a465fbeacf28fff5fa4bac5f6f03c94b01538e6', class: "textfield-textcounter-divider" }, " / "), " ", this.maxLength))));
81
+ }, onInput: (event) => this.handleInput(event), onChange: (event) => this.handleChange(event), "aria-invalid": this.state === 'error' ? 'true' : 'false', "aria-readonly": this.readOnly ? 'true' : 'false', "aria-label": this.tdsAriaLabel ? this.tdsAriaLabel : this.label, "aria-describedby": `textarea-helper-element-${this.uuid}` }), h("span", { key: '7252559ca80fb56ca1098d7c90c1519c3a77b402', class: "textarea-resizer-icon" }, h("svg", { key: '4402cced255cb35600747461cf2c4f2d42f7cca9', width: "12", height: "12", viewBox: "0 0 12 12", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, h("path", { key: '4387fb4738c677135fccd467856595908ba31632', "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M11.8536 0.853553C12.0488 0.658291 12.0488 0.341709 11.8536 0.146447C11.6583 -0.0488155 11.3417 -0.0488155 11.1464 0.146447L0.146447 11.1464C-0.0488155 11.3417 -0.0488155 11.6583 0.146447 11.8536C0.341709 12.0488 0.658291 12.0488 0.853553 11.8536L11.8536 0.853553ZM11.8536 4.64645C12.0488 4.84171 12.0488 5.15829 11.8536 5.35355L5.35355 11.8536C5.15829 12.0488 4.84171 12.0488 4.64645 11.8536C4.45118 11.6583 4.45118 11.3417 4.64645 11.1464L11.1464 4.64645C11.3417 4.45118 11.6583 4.45118 11.8536 4.64645ZM11.8536 8.64645C12.0488 8.84171 12.0488 9.15829 11.8536 9.35355L9.35355 11.8536C9.15829 12.0488 8.84171 12.0488 8.64645 11.8536C8.45118 11.6583 8.45118 11.3417 8.64645 11.1464L11.1464 8.64645C11.3417 8.45118 11.6583 8.45118 11.8536 8.64645Z", fill: "currentColor" }))), !this.disabled && !this.hideReadOnlyIcon && this.readOnly && (h("span", { key: 'dd0ec749e9e82f43c95d452fb79357b826ab5451', class: "textarea-icon__readonly" }, h("tds-tooltip", { key: '9606d2c2aa9f4916893dc0c25f0d076df308853a', placement: "top-end", text: "This field is non-editable", selector: "#readonly-tooltip" }), h("tds-icon", { key: '28812e6359ab9747156d2c75094bd26bdee32edf', id: "readonly-tooltip", name: "edit_inactive", svgTitle: "inactive" })))), h("span", { key: 'e17f24de9e69ff4a0a91dc2acaa1933edff86228', class: 'textarea-helper', "aria-live": "assertive", id: `textarea-helper-element-${this.uuid}` }, this.state === 'error' && this.helper && !this.readOnly && (h("tds-icon", { key: '7b2968586c351df3a6ced7da57ac53b256f4ac45', name: "error", size: "16px" })), this.helper), this.maxLength > 0 && (h("div", { key: 'ab34044bd4e96d1e98df40e7b6517bc2fcaa6140', class: 'textarea-textcounter' }, this.value === null ? 0 : (_a = this.value) === null || _a === void 0 ? void 0 : _a.length, h("span", { key: 'b515878f1e8427b79c242bfe3a13df505d6c7304', class: "textfield-textcounter-divider" }, " / "), " ", this.maxLength))));
82
82
  }
83
83
  static get is() { return "tds-textarea"; }
84
84
  static get encapsulation() { return "scoped"; }
@@ -65,12 +65,12 @@ export class TdsToast {
65
65
  const usesHeaderSlot = hasSlot('header', this.host);
66
66
  const usesSubheaderSlot = hasSlot('subheader', this.host);
67
67
  const usesActionsSlot = hasSlot('actions', this.host);
68
- return (h(Host, { key: 'b5f8ebf48f31ced7100681b06339ba896d6eca64', "aria-live": this.tdsAriaLive, toastRole: this.toastRole, "aria-describedby": this.host.getAttribute('aria-describedby'), class: {
68
+ return (h(Host, { key: '433c25165487688ff40c78a0455d30cedd08c76f', "aria-live": this.tdsAriaLive, toastRole: this.toastRole, "aria-describedby": this.host.getAttribute('aria-describedby'), class: {
69
69
  hide: this.hidden,
70
70
  show: !this.hidden,
71
- } }, h("div", { key: 'bd1e5c5c04b8aa66cb44241fb37711df0d797d28', class: `
71
+ } }, h("div", { key: '2734573a413d9cdf1a329675fe0e0db374243cbf', class: `
72
72
  wrapper
73
- ${this.variant}` }, h("tds-icon", { key: 'e721867b0ede3cd3d6a49a99fc4dc46c4c01cf87', name: this.getIconName(), size: "20px" }), h("div", { key: 'ce4c5f571cc0bbdfe3d4a2441c12c90dc6ab8e77', class: `content` }, h("div", { key: 'cc467598aaa1b4ab50aaf7df8418f694022218b3', class: "header-subheader" }, this.header && h("div", { key: '4137cfb232cad1d556f993db327c2b42c7e90dd0', class: "header" }, this.header), usesHeaderSlot && h("slot", { key: '7ad76e287a3665b7121dd26004d51814ab3d3db5', name: "header" }), this.subheader && h("div", { key: 'a1a9ba17a7a6e999e007044acc1b55de8a51035a', class: "subheader" }, this.subheader), usesSubheaderSlot && h("slot", { key: '3af9d0e5af167c99f6fb6cb11981493363f70540', name: "subheader" })), usesActionsSlot && (h("div", { key: 'e2b3985fb3d8d783240ea55cec9a9584578dcdc2', class: `toast-bottom ${usesSubheaderSlot || this.subheader ? 'subheader' : 'no-subheader'}` }, h("slot", { key: 'c473945ce0edad5796046764dfdc309680ce616c', name: "actions" })))), this.closable && (h("button", { key: 'de2ec72427df0c4c834a2397bdc3600130b780d7', id: "my-button", "aria-label": this.tdsCloseAriaLabel, onClick: this.handleClose, class: "close" }, h("tds-icon", { key: '5183e92381dc5ab139932599dd5e5163c640e7b6', name: "cross", size: "20px" }))))));
73
+ ${this.variant}` }, h("tds-icon", { key: '88d4ab6fd55d64c93ad3089c695d0fa4075208a6', name: this.getIconName(), size: "20px", svgTitle: this.getIconName() }), h("div", { key: '02de15f884420946530d2e04c330987f73c9ca44', class: `content` }, h("div", { key: '4eb8c6a13a7bb53313a18b47bfa8e2ab1211cdbc', class: "header-subheader" }, this.header && h("div", { key: '1b707e29cdd68a5cc73a2b694b8b93698cbac661', class: "header" }, this.header), usesHeaderSlot && h("slot", { key: 'ffe2b463f8fc6e4ca3b563d7a4ae55968cb4a478', name: "header" }), this.subheader && h("div", { key: '8164b591452e4a6f025f752951c678a15443fff9', class: "subheader" }, this.subheader), usesSubheaderSlot && h("slot", { key: '2bca8428e8eb128cf8c0f62b31a0da54ef555df3', name: "subheader" })), usesActionsSlot && (h("div", { key: 'de84bc19257b09127b861b357240509a7346f2e7', class: `toast-bottom ${usesSubheaderSlot || this.subheader ? 'subheader' : 'no-subheader'}` }, h("slot", { key: 'b85a46c5dc97dc7d3b95feb816145731887711fb', name: "actions" })))), this.closable && (h("button", { key: '69adb03d815ece9e50cf436957927c5dcd4d3ab8', id: "my-button", "aria-label": this.tdsCloseAriaLabel, onClick: this.handleClose, class: "close" }, h("tds-icon", { key: '9b4f062079caa32c5900202aaf1c2a7a5ef8e18c', name: "cross", size: "20px", svgTitle: "cross" }))))));
74
74
  }
75
75
  static get is() { return "tds-toast"; }
76
76
  static get encapsulation() { return "shadow"; }
@@ -38,10 +38,10 @@ export class TdsToggle {
38
38
  }
39
39
  }
40
40
  render() {
41
- return (h("div", { key: 'f1151ef33eaf8ee11761badb74dcb24916481ce1', class: "tds-toggle" }, this.headline && (h("div", { key: '848f0bf92aa6e21a7d84dea6d3cc41f3228cbb9b', class: {
41
+ return (h("div", { key: '01d3faf866451cf2e09694d614b1cca9defa1f69', class: "tds-toggle" }, this.headline && (h("div", { key: '2809bf2c3653c20ca6b93280b3391255b2285d8c', class: {
42
42
  'toggle-headline': true,
43
43
  'disabled': this.disabled,
44
- } }, this.headline)), h("input", { key: '25907b86ae6fe55dca60b1254a3901bb090a8d36', "aria-label": this.tdsAriaLabel, "aria-describedby": this.host.getAttribute('aria-describedby'), "aria-labelledby": this.host.getAttribute('aria-labelledby'), "aria-checked": this.checked, "aria-required": this.required, onChange: () => this.handleToggle(), class: `${this.size}`, checked: this.checked, disabled: this.disabled, required: this.required, type: "checkbox", name: this.name, id: this.toggleId, role: "switch" }), this.labelSlot && (h("label", { key: 'ef3c492d3d3c7bddc34c64bfcc568e47f17a2cd1', class: { disabled: this.disabled }, htmlFor: this.toggleId }, h("slot", { key: '339f355bbba7f3c18de4049df1d0a82d87884f44', name: "label" })))));
44
+ } }, this.headline)), h("input", { key: '52ab62b4d4c506ca74533ffafc68247accae612b', "aria-label": this.tdsAriaLabel, "aria-describedby": this.host.getAttribute('aria-describedby'), "aria-labelledby": this.host.getAttribute('aria-labelledby'), "aria-checked": this.checked, "aria-required": this.required, onChange: () => this.handleToggle(), class: `${this.size}`, checked: this.checked, disabled: this.disabled, required: this.required, type: "checkbox", name: this.name, id: this.toggleId, role: "switch" }), this.labelSlot && (h("label", { key: '73f43d7134ff9a9ecded6b8b153b1590014e2a80', class: { disabled: this.disabled }, htmlFor: this.toggleId }, h("slot", { key: 'efe7c2a3f76f9990a00b1156d66b78c0e26e6411', name: "label" })))));
45
45
  }
46
46
  static get is() { return "tds-toggle"; }
47
47
  static get encapsulation() { return "scoped"; }
@@ -58,7 +58,7 @@ export class TdsTooltip {
58
58
  }
59
59
  render() {
60
60
  var _a;
61
- return (h(Host, { key: 'c09e902febe788fe0f38d9abca24864bfbf59b2d', role: "tooltip", "aria-describedby": this.tdsAriaDescribedby, "aria-label": this.text }, h("tds-popover-core", Object.assign({ key: '2ae840c2abe03714f071034bda652265ef09fc9b' }, this.inheritedAttributes, { class: {
61
+ return (h(Host, { key: 'e7229ee89dea45931af9d12f04b2f31a9c0f7be2', role: "tooltip", "aria-describedby": this.tdsAriaDescribedby, "aria-label": this.text }, h("tds-popover-core", Object.assign({ key: 'e4b263f4414f6ce9d2e557fc5431040d718aff3c' }, this.inheritedAttributes, { class: {
62
62
  'tds-tooltip': true,
63
63
  [`tds-tooltip-${this.border}`]: true,
64
64
  [(_a = this.inheritedAttributes.class) !== null && _a !== void 0 ? _a : '']: true,
@@ -71,7 +71,7 @@ export class TdsTooltip {
71
71
  // @ts-ignore
72
72
  onInternalTdsClose: () => {
73
73
  this.show = false;
74
- }, defaultShow: this.defaultShow }), this.text, h("slot", { key: 'f0211f7e337709f4b8d0e8e4374c0ebd39635f25' }))));
74
+ }, defaultShow: this.defaultShow }), this.text, h("slot", { key: '41797812218d42837bb56b393a5e20c612cc51ad' }))));
75
75
  }
76
76
  static get is() { return "tds-tooltip"; }
77
77
  static get encapsulation() { return "scoped"; }
@@ -0,0 +1,10 @@
1
+ import prettier from "prettier/standalone";
2
+ import parserBabel from "prettier/parser-babel";
3
+ import parserHtml from "prettier/parser-html";
4
+ const prettierOptions = {
5
+ bracketSameLine: false,
6
+ htmlWhitespaceSensitivity: 'ignore',
7
+ printWidth: 100,
8
+ };
9
+ const formatHtmlPreview = (htmlStr) => prettier.format(htmlStr, Object.assign({ parser: 'html', plugins: [parserBabel, parserHtml] }, prettierOptions));
10
+ export default formatHtmlPreview;
@@ -1,6 +1,6 @@
1
1
  import { p as proxyCustomElement, H, h, c as Host } from './p-28ef5186.js';
2
2
  import { i as inheritAttributes } from './p-3fe9cbbf.js';
3
- import { d as defineCustomElement$1 } from './p-2e25c35b.js';
3
+ import { d as defineCustomElement$1 } from './p-d3866be7.js';
4
4
 
5
5
  const tooltipCss = ".sc-tds-tooltip-h{position:absolute}.tds-tooltip.sc-tds-tooltip{box-sizing:border-box;font:var(--tds-detail-05);letter-spacing:var(--tds-detail-05-ls);color:var(--tds-tooltip-color);background-color:var(--tds-tooltip-background);border-radius:4px;padding:8px;word-wrap:break-word;white-space:normal;max-width:192px;z-index:900;opacity:0;visibility:hidden;transition:opacity 200ms ease-in, visibility 200ms ease-in}.tds-tooltip.sc-tds-tooltip *.sc-tds-tooltip{box-sizing:border-box}.tds-tooltip.tds-tooltip-top-left.sc-tds-tooltip{border-radius:0 4px 4px}.tds-tooltip.tds-tooltip-top-right.sc-tds-tooltip{border-radius:4px 0 4px 4px}.tds-tooltip.tds-tooltip-bottom-right.sc-tds-tooltip{border-radius:4px 4px 0}.tds-tooltip.tds-tooltip-bottom-left.sc-tds-tooltip{border-radius:4px 4px 4px 0}.tds-tooltip-show.sc-tds-tooltip{opacity:1;visibility:visible}";
6
6
  const TdsTooltipStyle0 = tooltipCss;
@@ -62,7 +62,7 @@ const TdsTooltip = /*@__PURE__*/ proxyCustomElement(class TdsTooltip extends H {
62
62
  }
63
63
  render() {
64
64
  var _a;
65
- return (h(Host, { key: 'c09e902febe788fe0f38d9abca24864bfbf59b2d', role: "tooltip", "aria-describedby": this.tdsAriaDescribedby, "aria-label": this.text }, h("tds-popover-core", Object.assign({ key: '2ae840c2abe03714f071034bda652265ef09fc9b' }, this.inheritedAttributes, { class: {
65
+ return (h(Host, { key: 'e7229ee89dea45931af9d12f04b2f31a9c0f7be2', role: "tooltip", "aria-describedby": this.tdsAriaDescribedby, "aria-label": this.text }, h("tds-popover-core", Object.assign({ key: 'e4b263f4414f6ce9d2e557fc5431040d718aff3c' }, this.inheritedAttributes, { class: {
66
66
  'tds-tooltip': true,
67
67
  [`tds-tooltip-${this.border}`]: true,
68
68
  [(_a = this.inheritedAttributes.class) !== null && _a !== void 0 ? _a : '']: true,
@@ -75,7 +75,7 @@ const TdsTooltip = /*@__PURE__*/ proxyCustomElement(class TdsTooltip extends H {
75
75
  // @ts-ignore
76
76
  onInternalTdsClose: () => {
77
77
  this.show = false;
78
- }, defaultShow: this.defaultShow }), this.text, h("slot", { key: 'f0211f7e337709f4b8d0e8e4374c0ebd39635f25' }))));
78
+ }, defaultShow: this.defaultShow }), this.text, h("slot", { key: '41797812218d42837bb56b393a5e20c612cc51ad' }))));
79
79
  }
80
80
  get host() { return this; }
81
81
  static get style() { return TdsTooltipStyle0; }