@scania/tegel 1.14.0 → 1.15.0-table-issue-beta.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 (69) hide show
  1. package/dist/cjs/loader.cjs.js +1 -1
  2. package/dist/cjs/tds-card.cjs.entry.js +5 -4
  3. package/dist/cjs/tds-inline-tab.cjs.entry.js +1 -1
  4. package/dist/cjs/tds-inline-tabs.cjs.entry.js +10 -3
  5. package/dist/cjs/tds-navigation-tab.cjs.entry.js +1 -1
  6. package/dist/cjs/tds-navigation-tabs.cjs.entry.js +14 -5
  7. package/dist/cjs/tds-table-body.cjs.entry.js +5 -2
  8. package/dist/cjs/tds-table-footer.cjs.entry.js +9 -2
  9. package/dist/cjs/tds-table-toolbar.cjs.entry.js +9 -2
  10. package/dist/cjs/tds-table.cjs.entry.js +10 -3
  11. package/dist/cjs/tegel.cjs.js +1 -1
  12. package/dist/collection/components/card/card.css +24 -0
  13. package/dist/collection/components/card/card.js +22 -3
  14. package/dist/collection/components/side-menu/side-menu.js +3 -3
  15. package/dist/collection/components/stepper/stepper.js +1 -1
  16. package/dist/collection/components/table/table/table.js +11 -4
  17. package/dist/collection/components/table/table-body/table-body.js +5 -2
  18. package/dist/collection/components/table/table-footer/table-footer.js +9 -2
  19. package/dist/collection/components/table/table-toolbar/table-toolbar.js +9 -2
  20. package/dist/collection/components/tabs/inline-tabs/inline-tab/inline-tab.css +0 -4
  21. package/dist/collection/components/tabs/inline-tabs/inline-tabs.css +1 -0
  22. package/dist/collection/components/tabs/inline-tabs/inline-tabs.js +27 -2
  23. package/dist/collection/components/tabs/navigation-tabs/navigation-tab/navigation-tab.css +0 -4
  24. package/dist/collection/components/tabs/navigation-tabs/navigation-tabs.css +1 -0
  25. package/dist/collection/components/tabs/navigation-tabs/navigation-tabs.js +31 -4
  26. package/dist/components/tds-card.js +6 -4
  27. package/dist/components/tds-inline-tab.js +1 -1
  28. package/dist/components/tds-inline-tabs.js +11 -3
  29. package/dist/components/tds-navigation-tab.js +1 -1
  30. package/dist/components/tds-navigation-tabs.js +15 -5
  31. package/dist/components/tds-table-body.js +5 -2
  32. package/dist/components/tds-table-footer.js +9 -2
  33. package/dist/components/tds-table-toolbar.js +9 -2
  34. package/dist/components/tds-table.js +10 -3
  35. package/dist/esm/loader.js +1 -1
  36. package/dist/esm/tds-card.entry.js +5 -4
  37. package/dist/esm/tds-inline-tab.entry.js +1 -1
  38. package/dist/esm/tds-inline-tabs.entry.js +10 -3
  39. package/dist/esm/tds-navigation-tab.entry.js +1 -1
  40. package/dist/esm/tds-navigation-tabs.entry.js +14 -5
  41. package/dist/esm/tds-table-body.entry.js +5 -2
  42. package/dist/esm/tds-table-footer.entry.js +9 -2
  43. package/dist/esm/tds-table-toolbar.entry.js +9 -2
  44. package/dist/esm/tds-table.entry.js +10 -3
  45. package/dist/esm/tegel.js +1 -1
  46. package/dist/tegel/p-08642415.entry.js +1 -0
  47. package/dist/tegel/p-6b04a919.entry.js +1 -0
  48. package/dist/tegel/{p-80edba0f.entry.js → p-7c75d8d3.entry.js} +1 -1
  49. package/dist/tegel/p-c1f8f523.entry.js +1 -0
  50. package/dist/tegel/{p-a2548553.entry.js → p-c7b2773d.entry.js} +1 -1
  51. package/dist/tegel/p-d1cbe5be.entry.js +1 -0
  52. package/dist/tegel/p-e1842d99.entry.js +1 -0
  53. package/dist/tegel/p-e7fac8ad.entry.js +1 -0
  54. package/dist/tegel/{p-56dfd78a.entry.js → p-f3f1f357.entry.js} +1 -1
  55. package/dist/tegel/tegel.esm.js +1 -1
  56. package/dist/types/components/card/card.d.ts +1 -0
  57. package/dist/types/components/table/table/table.d.ts +1 -0
  58. package/dist/types/components/table/table-footer/table-footer.d.ts +1 -0
  59. package/dist/types/components/table/table-toolbar/table-toolbar.d.ts +1 -0
  60. package/dist/types/components/tabs/inline-tabs/inline-tabs.d.ts +3 -0
  61. package/dist/types/components/tabs/navigation-tabs/navigation-tabs.d.ts +3 -0
  62. package/dist/types/components.d.ts +18 -0
  63. package/package.json +1 -9
  64. package/dist/tegel/p-631dde03.entry.js +0 -1
  65. package/dist/tegel/p-ac09f8d4.entry.js +0 -1
  66. package/dist/tegel/p-ada411aa.entry.js +0 -1
  67. package/dist/tegel/p-b8593b29.entry.js +0 -1
  68. package/dist/tegel/p-c22c761c.entry.js +0 -1
  69. package/dist/tegel/p-e6a5dda4.entry.js +0 -1
@@ -90,4 +90,28 @@ button:focus-visible {
90
90
  }
91
91
  button:active {
92
92
  box-shadow: var(--tds-card-box-pressed);
93
+ }
94
+
95
+ .below-header-stretch,
96
+ .above-header-stretch {
97
+ display: flex;
98
+ flex-direction: column;
99
+ }
100
+ .below-header-stretch .stretch,
101
+ .above-header-stretch .stretch {
102
+ display: flex;
103
+ flex-direction: column;
104
+ flex-grow: 1;
105
+ width: 100%;
106
+ }
107
+ .below-header-stretch .card-body,
108
+ .above-header-stretch .card-body {
109
+ display: flex;
110
+ flex-direction: column;
111
+ flex-grow: 1;
112
+ }
113
+ .below-header-stretch .card-body slot[name=body]::slotted(*),
114
+ .above-header-stretch .card-body slot[name=body]::slotted(*) {
115
+ max-width: unset;
116
+ flex-grow: 1;
93
117
  }
@@ -26,7 +26,7 @@ export class TdsCard {
26
26
  const usesBodySlot = hasSlot('body', this.host);
27
27
  const usesBodyImageSlot = hasSlot('body-image', this.host);
28
28
  const usesActionsSlot = hasSlot('actions', this.host);
29
- return (h("div", null, this.imagePlacement === 'below-header' && this.getCardHeader(), h("div", { class: `card-body` }, usesBodyImageSlot && h("slot", { name: "body-image" }), this.bodyImg && h("img", { class: "card-body-img", src: this.bodyImg, alt: this.bodyImgAlt }), this.imagePlacement === 'above-header' && this.getCardHeader(), this.bodyDivider && h("tds-divider", null), usesBodySlot && h("slot", { name: "body" })), usesActionsSlot && h("slot", { name: `actions` })));
29
+ return (h("div", { class: this.stretch && 'stretch' }, this.imagePlacement === 'below-header' && this.getCardHeader(), h("div", { class: `card-body` }, usesBodyImageSlot && h("slot", { name: "body-image" }), this.bodyImg && h("img", { class: "card-body-img", src: this.bodyImg, alt: this.bodyImgAlt }), this.imagePlacement === 'above-header' && this.getCardHeader(), this.bodyDivider && h("tds-divider", null), usesBodySlot && h("slot", { name: "body" })), usesActionsSlot && h("slot", { name: `actions` })));
30
30
  };
31
31
  this.modeVariant = null;
32
32
  this.imagePlacement = 'below-header';
@@ -36,14 +36,15 @@ export class TdsCard {
36
36
  this.bodyImgAlt = undefined;
37
37
  this.bodyDivider = false;
38
38
  this.clickable = false;
39
+ this.stretch = false;
39
40
  this.cardId = generateUniqueId();
40
41
  }
41
42
  render() {
42
- return (h(Host, { key: '485eb954899e2f559dfa9c231d275c1cecd7791f', class: this.modeVariant && `tds-mode-variant-${this.modeVariant}` }, this.clickable ? (h("button", { class: `card ${this.clickable ? 'clickable' : ''} ${this.imagePlacement}`, onClick: () => {
43
+ return (h(Host, { key: 'd777b6ef9815b43c55749ff8a03ef5d8cb21cf74', class: this.modeVariant && `tds-mode-variant-${this.modeVariant}` }, this.clickable ? (h("button", { class: `card ${this.clickable ? 'clickable' : ''} ${this.stretch ? `${this.imagePlacement}-stretch` : this.imagePlacement}`, onClick: () => {
43
44
  if (this.clickable) {
44
45
  this.handleClick();
45
46
  }
46
- } }, this.getCardContent())) : (h("div", { class: `card ${this.clickable ? 'clickable' : ''} ${this.imagePlacement}` }, this.getCardContent()))));
47
+ } }, this.getCardContent())) : (h("div", { class: `card ${this.clickable ? 'clickable' : ''} ${this.stretch ? `${this.imagePlacement}-stretch` : this.imagePlacement}` }, this.getCardContent()))));
47
48
  }
48
49
  static get is() { return "tds-card"; }
49
50
  static get encapsulation() { return "shadow"; }
@@ -199,6 +200,24 @@ export class TdsCard {
199
200
  "reflect": false,
200
201
  "defaultValue": "false"
201
202
  },
203
+ "stretch": {
204
+ "type": "boolean",
205
+ "mutable": false,
206
+ "complexType": {
207
+ "original": "boolean",
208
+ "resolved": "boolean",
209
+ "references": {}
210
+ },
211
+ "required": false,
212
+ "optional": false,
213
+ "docs": {
214
+ "tags": [],
215
+ "text": ""
216
+ },
217
+ "attribute": "stretch",
218
+ "reflect": false,
219
+ "defaultValue": "false"
220
+ },
202
221
  "cardId": {
203
222
  "type": "string",
204
223
  "mutable": false,
@@ -163,7 +163,7 @@ export class TdsSideMenu {
163
163
  "references": {
164
164
  "CollapseEvent": {
165
165
  "location": "local",
166
- "path": "/home/runner/work/tegel/tegel/packages/core/src/components/side-menu/side-menu.tsx",
166
+ "path": "/Users/charles.krook/Umain/tegel/packages/core/src/components/side-menu/side-menu.tsx",
167
167
  "id": "src/components/side-menu/side-menu.tsx::CollapseEvent"
168
168
  }
169
169
  }
@@ -187,7 +187,7 @@ export class TdsSideMenu {
187
187
  "references": {
188
188
  "CollapseEvent": {
189
189
  "location": "local",
190
- "path": "/home/runner/work/tegel/tegel/packages/core/src/components/side-menu/side-menu.tsx",
190
+ "path": "/Users/charles.krook/Umain/tegel/packages/core/src/components/side-menu/side-menu.tsx",
191
191
  "id": "src/components/side-menu/side-menu.tsx::CollapseEvent"
192
192
  }
193
193
  }
@@ -211,7 +211,7 @@ export class TdsSideMenu {
211
211
  "references": {
212
212
  "InternalTdsSideMenuPropChange": {
213
213
  "location": "local",
214
- "path": "/home/runner/work/tegel/tegel/packages/core/src/components/side-menu/side-menu.tsx",
214
+ "path": "/Users/charles.krook/Umain/tegel/packages/core/src/components/side-menu/side-menu.tsx",
215
215
  "id": "src/components/side-menu/side-menu.tsx::InternalTdsSideMenuPropChange"
216
216
  }
217
217
  }
@@ -173,7 +173,7 @@ export class TdsStepper {
173
173
  "references": {
174
174
  "InternalTdsStepperPropChange": {
175
175
  "location": "local",
176
- "path": "/home/runner/work/tegel/tegel/packages/core/src/components/stepper/stepper.tsx",
176
+ "path": "/Users/charles.krook/Umain/tegel/packages/core/src/components/stepper/stepper.tsx",
177
177
  "id": "src/components/stepper/stepper.tsx::InternalTdsStepperPropChange"
178
178
  }
179
179
  }
@@ -48,6 +48,13 @@ export class TdsTable {
48
48
  });
49
49
  return selectedRowsData;
50
50
  }
51
+ getStyles() {
52
+ const styles = {};
53
+ if (this.horizontalScrollWidth) {
54
+ styles.width = `${this.horizontalScrollWidth}px`;
55
+ }
56
+ return styles;
57
+ }
51
58
  multiselectChanged(newValue) {
52
59
  this.emitInternalTdsPropChange('multiselect', newValue);
53
60
  }
@@ -78,11 +85,11 @@ export class TdsTable {
78
85
  }
79
86
  }
80
87
  render() {
81
- return (h(Host, { key: 'da929268a984ca0e81843132b2fafd6c79bec3b3', class: {
88
+ return (h(Host, { key: '580c1c90c9f4556b16037c3200ae739a891bea88', class: {
82
89
  'tds-table--responsive': this.responsive,
83
90
  'tds-mode-variant-primary': this.modeVariant === 'primary',
84
91
  'tds-mode-variant-secondary': this.modeVariant === 'secondary',
85
- } }, h("table", { key: '2ba662d97bc834a7a0d6d71338fc7c322bc15741', style: this.horizontalScrollWidth ? { width: this.horizontalScrollWidth } : {}, class: {
92
+ } }, h("table", { key: 'f2e9d248c5e93e6d83cfcd74408f99ed54c1ae95', style: this.getStyles(), class: {
86
93
  'tds-table': true,
87
94
  'tds-table--compact': this.compactDesign,
88
95
  'tds-table--divider': this.verticalDividers,
@@ -93,7 +100,7 @@ export class TdsTable {
93
100
  'tds-table--horizontal-scroll-toolbar-compact': this.enableHorizontalScrollToolbarDesign && this.compactDesign,
94
101
  'tds-table--horizontal-scroll-footer': this.enableHorizontalScrollFooterDesign && !this.compactDesign,
95
102
  'tds-table--horizontal-scroll-footer-compact': this.enableHorizontalScrollFooterDesign && this.compactDesign,
96
- } }, h("slot", { key: 'c95e71aeaac2f4378d440bb23ff890c9c4a76fdf' }))));
103
+ } }, h("slot", { key: '74edfe5bc755d4a7880b1368452f2906ebc5346a' }))));
97
104
  }
98
105
  static get is() { return "tds-table"; }
99
106
  static get encapsulation() { return "shadow"; }
@@ -298,7 +305,7 @@ export class TdsTable {
298
305
  "references": {
299
306
  "InternalTdsTablePropChange": {
300
307
  "location": "local",
301
- "path": "/home/runner/work/tegel/tegel/packages/core/src/components/table/table/table.tsx",
308
+ "path": "/Users/charles.krook/Umain/tegel/packages/core/src/components/table/table/table.tsx",
302
309
  "id": "src/components/table/table/table.tsx::InternalTdsTablePropChange"
303
310
  }
304
311
  }
@@ -45,7 +45,10 @@ export class TdsTableBody {
45
45
  });
46
46
  }
47
47
  componentWillRender() {
48
- const headerColumnsNo = this.host.parentElement.querySelector('tds-table-header').children.length;
48
+ const headerElement = this.host.parentElement.querySelector('tds-table-header');
49
+ const headerColumnsNo = headerElement
50
+ ? this.host.parentElement.querySelector('tds-table-header').children.length
51
+ : 0;
49
52
  // multiselect and expended features requires one extra column for controls...
50
53
  if (this.multiselect || this.expandableRows) {
51
54
  this.columnsNumber = headerColumnsNo + 1;
@@ -55,7 +58,7 @@ export class TdsTableBody {
55
58
  }
56
59
  }
57
60
  render() {
58
- return (h(Host, { key: '891bbd417703b240531383d54d5644cf39462573', "data-selected-rows": this.multiselectArrayJSON }, h("slot", { key: '409bc90e7c6d49588a7ec1796cfbad734c333c40' })));
61
+ return (h(Host, { key: '5f7031a5167cd4bf867bb7813cf9fabb8c9405b9', "data-selected-rows": this.multiselectArrayJSON }, h("slot", { key: 'ccc4113754dec3e5b5da2447867de906d009dd93' })));
59
62
  }
60
63
  static get is() { return "tds-table-body"; }
61
64
  static get originalStyleUrls() {
@@ -93,11 +93,18 @@ export class TdsTableFooter {
93
93
  });
94
94
  this.storeLastCorrectValue(this.paginationValue);
95
95
  }
96
+ getStyles() {
97
+ const styles = {};
98
+ if (this.horizontalScrollWidth) {
99
+ styles.width = `${this.horizontalScrollWidth}px`;
100
+ }
101
+ return styles;
102
+ }
96
103
  render() {
97
- return (h(Host, { key: 'fe6221e5dd2ec57e63afefc5e45c0b3f5ad85d8f', class: {
104
+ return (h(Host, { key: '0d611bd3d31ce4dd1a7238784aa6aa6ab29d2abd', class: {
98
105
  'tds-table--compact': this.compactDesign,
99
106
  'footer__horizontal-scroll': !!this.horizontalScrollWidth,
100
- }, style: this.horizontalScrollWidth ? { width: this.horizontalScrollWidth } : {} }, h("tr", { key: '6f6bfca5e7719084b2c4564b86806f6eb7867601', class: "tds-table__footer-row" }, h("td", { key: '2c4389dfa2c028798246a5c4d8b9bdcc05a780f2', class: "tds-table__footer-cell", colSpan: this.columnsNumber }, this.pagination && (h("div", { key: '0831e596963e20222feee940fb7d7d489f832b5e', class: "tds-table__pagination" }, h("div", { key: '1129e67d9b69b06a1fadde589f9ad37a1bd9fcca', class: "tds-table__row-selector" }), h("div", { key: '81e685df813d615027470d4c84c468bb2c5fccca', class: "tds-table__page-selector" }, h("input", { key: '4b116837ae02fcbf6b51b940587ae6159d40f5cb', ref: (element) => (this.inputElement = element), class: "tds-table__page-selector-input", type: "number", min: "1", max: this.pages, value: this.paginationValue, pattern: "[0-9]+", dir: "ltr", onChange: (event) => this.paginationInputChange(event), onAnimationEnd: removeShakeAnimation }), h("p", { key: '927af4715b33f50679aef3ec5eccc5fd4044add7', class: "tds-table__footer-text" }, "of ", h("span", { key: '2d89421fbbbb0828623465f39edc506b9bfa82da' }, this.pages), " pages"), h("button", { key: '37916d812b7b4510b088b382f48b2d9f04d212b2', type: "button", class: "tds-table__footer-btn", disabled: this.paginationValue <= 1, onClick: () => this.previousPage() }, h("tds-icon", { key: 'd89ac980f4c48fe6c14610f27ccc05e43994631e', name: "chevron_left", size: "20px" })), h("button", { key: '246b17fc6ff26e3830d5a359a4a5de844bc93a1b', type: "button", class: "tds-table__footer-btn", disabled: this.paginationValue >= this.pages, onClick: () => this.nextPage() }, h("tds-icon", { key: '6fa3441ed75b484974e50ee41ea1444bea7c30e2', name: "chevron_right", size: "20px" })))))))));
107
+ }, style: this.getStyles() }, h("tr", { key: 'cb4fc7ffecfa791f08a3da4a167459ccfb32e782', class: "tds-table__footer-row" }, h("td", { key: 'bf7388bc8aa26313cadba5333dc587d431a29867', class: "tds-table__footer-cell", colSpan: this.columnsNumber }, this.pagination && (h("div", { key: 'ace766078c85f047034ac614712dc58b6dc7b540', class: "tds-table__pagination" }, h("div", { key: '0ef2c3c300bab7595773b65aa40da1399af4b7b8', class: "tds-table__row-selector" }), h("div", { key: '3fe2283dcbfd64fb54bd8faa9bd269dac22e81d8', class: "tds-table__page-selector" }, h("input", { key: '84295a91900f676742795c975f1706d4fbe196f6', ref: (element) => (this.inputElement = element), class: "tds-table__page-selector-input", type: "number", min: "1", max: this.pages, value: this.paginationValue, pattern: "[0-9]+", dir: "ltr", onChange: (event) => this.paginationInputChange(event), onAnimationEnd: removeShakeAnimation }), h("p", { key: '88c7d7d7cfe66f2431b44c9ed38ebee5771f54b7', class: "tds-table__footer-text" }, "of ", h("span", { key: '42cf669a05c6e0e86a56aa568f2623c562bf83f6' }, this.pages), " pages"), h("button", { key: '3f022e45c6ca31ce542854c5e659349ab54b372a', type: "button", class: "tds-table__footer-btn", disabled: this.paginationValue <= 1, onClick: () => this.previousPage() }, h("tds-icon", { key: '253b1cb33d4038ce03ff8fdb0bad30ba46ab0c13', name: "chevron_left", size: "20px" })), h("button", { key: 'ad21b63c30fc638372c89bb366be77df419bf532', type: "button", class: "tds-table__footer-btn", disabled: this.paginationValue >= this.pages, onClick: () => this.nextPage() }, h("tds-icon", { key: '58a640745984554b8c7cba3ce07130063299223e', name: "chevron_right", size: "20px" })))))))));
101
108
  }
102
109
  static get is() { return "tds-table-footer"; }
103
110
  static get encapsulation() { return "shadow"; }
@@ -55,11 +55,18 @@ export class TdsTableToolbar {
55
55
  tdsTableSearchBar.classList.remove('tds-table__searchbar--active');
56
56
  }
57
57
  }
58
+ getStyles() {
59
+ const styles = {};
60
+ if (this.horizontalScrollWidth) {
61
+ styles.width = `${this.horizontalScrollWidth}px`;
62
+ }
63
+ return styles;
64
+ }
58
65
  render() {
59
- return (h(Host, { key: '9c864dc219ed17a50a4d84881c676e05b3e0ef92', class: {
66
+ return (h(Host, { key: '7f94e84dc631768fb7fba68846408c049959eee7', class: {
60
67
  'tds-table--compact': this.compactDesign,
61
68
  'toolbar__horizontal-scroll': !!this.horizontalScrollWidth,
62
- }, style: this.horizontalScrollWidth ? { width: this.horizontalScrollWidth } : {} }, h("div", { key: '035b5a5396344e3d682fb5370a4e1c0484045579', class: "tds-table__upper-bar-flex" }, h("caption", { key: 'f1f5ba362eda8a0ae25fb63c89a25fe3606365c9', class: "tds-table__title" }, this.tableTitle), h("div", { key: 'b94a83cf81e1aaa06d1b29a4e9207c99bccbbbbc', class: "tds-table__actionbar" }, this.filter && (h("div", { key: '358798e484d1892acb6a4e7e3b30702002ba860d', class: "tds-table__searchbar" }, h("input", { key: 'f062bf19e13e312ee9089324bdfc6d4e2e9a1db4', class: "tds-table__searchbar-input", type: "text", onKeyUp: (event) => this.handleSearch(event) }), h("span", { key: '9e874b39910b2d32b0a3193b14e01ed5f681b928', class: "tds-table__searchbar-icon" }, h("tds-icon", { key: '38d5a1b800d849b66a0c35d01d496fc4708f53c2', name: "search", size: "20px" })))), h("slot", { key: 'f362385a5719c51dbce2b213774b6397ede8714b', name: "end" })))));
69
+ }, style: this.getStyles() }, h("div", { key: 'ecbf925fcd58dd77de40fd4b15c0a57c07b8a1c0', class: "tds-table__upper-bar-flex" }, h("caption", { key: 'd2f230c4944590897ac220fc2c35cd72008b8f4c', class: "tds-table__title" }, this.tableTitle), h("div", { key: 'd75faf41e03bd19b1e268e85c884298c75d74450', class: "tds-table__actionbar" }, this.filter && (h("div", { key: '7b098f02923e9580e1c8852dfcca11d4c21c75bd', class: "tds-table__searchbar" }, h("input", { key: 'c9d76e665ef26e197a7dad1e9ac83a0095ad66e9', class: "tds-table__searchbar-input", type: "text", onKeyUp: (event) => this.handleSearch(event) }), h("span", { key: '1af8c1344e160cd494eeafc43c4f2422f7119d83', class: "tds-table__searchbar-icon" }, h("tds-icon", { key: '9c85fc3e817afcf7b548f2f851f3ce0970f82c00', name: "search", size: "20px" })))), h("slot", { key: 'ff6e2d21cc06fa5981e7814040d6d79581f8d974', name: "end" })))));
63
70
  }
64
71
  static get is() { return "tds-table-toolbar"; }
65
72
  static get encapsulation() { return "shadow"; }
@@ -81,10 +81,6 @@
81
81
  outline: none;
82
82
  }
83
83
 
84
- :host(.first) {
85
- margin-left: 32px;
86
- }
87
-
88
84
  :host(.last) {
89
85
  margin-right: 32px;
90
86
  }
@@ -24,6 +24,7 @@
24
24
  width: 100%;
25
25
  overflow-x: scroll;
26
26
  scrollbar-width: none;
27
+ gap: 16px;
27
28
  }
28
29
  :host .wrapper::-webkit-scrollbar {
29
30
  display: none;
@@ -60,6 +60,7 @@ export class TdsInlineTabs {
60
60
  this.modeVariant = 'primary';
61
61
  this.defaultSelectedIndex = 0;
62
62
  this.selectedIndex = undefined;
63
+ this.leftPadding = 32;
63
64
  this.showLeftScroll = false;
64
65
  this.showRightScroll = false;
65
66
  }
@@ -139,12 +140,18 @@ export class TdsInlineTabs {
139
140
  this.showRightScroll = false;
140
141
  }
141
142
  }
143
+ applyCustomLeftPadding() {
144
+ if (this.navWrapperElement) {
145
+ this.navWrapperElement.style.paddingLeft = `${this.leftPadding}px`;
146
+ }
147
+ }
142
148
  handleSlotChange() {
143
149
  this.initializeTabs();
144
150
  this.addEventListenerToTabs();
145
151
  this.initializeSelectedTab();
146
152
  this.updateScrollButtons();
147
153
  this.addResizeObserver();
154
+ this.applyCustomLeftPadding(); // Apply custom left padding to the wrapper
148
155
  }
149
156
  connectedCallback() {
150
157
  this.initializeTabs();
@@ -160,9 +167,9 @@ export class TdsInlineTabs {
160
167
  this.removeEventListenerFromTabs();
161
168
  }
162
169
  render() {
163
- return (h(Host, { key: 'fdf1cc28637a8bd207c84aba91f60d145acd10c9', role: "list", class: `${this.modeVariant ? `tds-mode-variant-${this.modeVariant}` : ''}` }, h("div", { key: '068e21bac127323f56d858abf59c1f905a4ee315', class: "wrapper", ref: (el) => {
170
+ return (h(Host, { key: '20c44d2457fe1115cf322182f0a69e84b9a65107', role: "list", class: `${this.modeVariant ? `tds-mode-variant-${this.modeVariant}` : ''}` }, h("div", { key: '3d4aa2b1ed18f1f8f481eda3d21473d8bfbc195e', class: "wrapper", ref: (el) => {
164
171
  this.navWrapperElement = el;
165
- } }, h("button", { key: '646917420741478a9492cec16c066833d3e3266e', class: `scroll-left-button ${this.showLeftScroll ? 'show' : ''}`, onClick: () => this.scrollLeft(), disabled: !this.showLeftScroll }, h("tds-icon", { key: '939eb79ed238163057dcc8316f6efdec89262ff8', name: "chevron_left", size: "20px" })), h("slot", { key: 'f3306035cce33e3efb3e89ab4650c3781703f9e5', onSlotchange: () => this.handleSlotChange() }), h("button", { key: '6b2023939d94eb9f9822e25fd4facce715fdf227', class: `scroll-right-button ${this.showRightScroll ? 'show' : ''}`, onClick: () => this.scrollRight(), disabled: !this.showRightScroll }, h("tds-icon", { key: '0b2626c78903ce14239891aa667a61ed913097ac', name: "chevron_right", size: "20px" })))));
172
+ }, style: { paddingLeft: `${this.leftPadding}px` } }, h("button", { key: 'af53b300c3420a52fd2cad793ca9acb333e71478', class: `scroll-left-button ${this.showLeftScroll ? 'show' : ''}`, onClick: () => this.scrollLeft(), disabled: !this.showLeftScroll }, h("tds-icon", { key: 'd21f7a30e597d429eccedcaa8569e7dc7170c145', name: "chevron_left", size: "20px" })), h("slot", { key: '39e1b21aa75fa86850827f87f5793292d01a97c7', onSlotchange: () => this.handleSlotChange() }), h("button", { key: '8848014869eb92505d97f15cc3f8f2234dadc9c5', class: `scroll-right-button ${this.showRightScroll ? 'show' : ''}`, onClick: () => this.scrollRight(), disabled: !this.showRightScroll }, h("tds-icon", { key: '130a7c2c926b312491f735dac63b67e91a632058', name: "chevron_right", size: "20px" })))));
166
173
  }
167
174
  static get is() { return "tds-inline-tabs"; }
168
175
  static get encapsulation() { return "shadow"; }
@@ -230,6 +237,24 @@ export class TdsInlineTabs {
230
237
  },
231
238
  "attribute": "selected-index",
232
239
  "reflect": true
240
+ },
241
+ "leftPadding": {
242
+ "type": "number",
243
+ "mutable": false,
244
+ "complexType": {
245
+ "original": "number",
246
+ "resolved": "number",
247
+ "references": {}
248
+ },
249
+ "required": false,
250
+ "optional": false,
251
+ "docs": {
252
+ "tags": [],
253
+ "text": "Custom left padding value for the wrapper element."
254
+ },
255
+ "attribute": "left-padding",
256
+ "reflect": true,
257
+ "defaultValue": "32"
233
258
  }
234
259
  };
235
260
  }
@@ -80,10 +80,6 @@
80
80
  outline: none;
81
81
  }
82
82
 
83
- :host(.first) {
84
- margin-left: 32px;
85
- }
86
-
87
83
  :host(.last) {
88
84
  margin-right: 32px;
89
85
  }
@@ -24,6 +24,7 @@
24
24
  width: 100%;
25
25
  overflow-x: scroll;
26
26
  scrollbar-width: none;
27
+ gap: 16px;
27
28
  }
28
29
  :host .wrapper::-webkit-scrollbar {
29
30
  display: none;
@@ -60,6 +60,7 @@ export class TdsNavigationTabs {
60
60
  this.modeVariant = 'primary';
61
61
  this.defaultSelectedIndex = 0;
62
62
  this.selectedIndex = undefined;
63
+ this.leftPadding = 32;
63
64
  this.showLeftScroll = false;
64
65
  this.showRightScroll = false;
65
66
  }
@@ -112,8 +113,10 @@ export class TdsNavigationTabs {
112
113
  child.classList.remove('last');
113
114
  child.classList.remove('first');
114
115
  });
115
- this.children[0].classList.add('first');
116
- this.children[this.children.length - 1].classList.add('last');
116
+ if (this.children.length > 0) {
117
+ this.children[0].classList.add('first');
118
+ this.children[this.children.length - 1].classList.add('last');
119
+ }
117
120
  }
118
121
  initializeSelectedTab() {
119
122
  if (this.selectedIndex === undefined) {
@@ -137,12 +140,18 @@ export class TdsNavigationTabs {
137
140
  this.showRightScroll = false;
138
141
  }
139
142
  }
143
+ applyCustomLeftPadding() {
144
+ if (this.navWrapperElement) {
145
+ this.navWrapperElement.style.paddingLeft = `${this.leftPadding}px`;
146
+ }
147
+ }
140
148
  handleSlotChange() {
141
149
  this.initializeTabs();
142
150
  this.addEventListenerToTabs();
143
151
  this.initializeSelectedTab();
144
152
  this.updateScrollButtons();
145
153
  this.addResizeObserver();
154
+ this.applyCustomLeftPadding(); // Apply custom left padding to the wrapper
146
155
  }
147
156
  connectedCallback() {
148
157
  this.initializeTabs();
@@ -158,9 +167,9 @@ export class TdsNavigationTabs {
158
167
  this.removeEventListenerFromTabs();
159
168
  }
160
169
  render() {
161
- return (h(Host, { key: 'eaf7fd47f5f4132d7920d5deafb659828cab01e9', role: "list", class: `${this.modeVariant ? `tds-mode-variant-${this.modeVariant}` : ''}` }, h("div", { key: '1fe0e2f45e6cf32175a3ef6c556aa63ba3b46b97', class: "wrapper", ref: (el) => {
170
+ return (h(Host, { key: 'fbb3223e9c88c43d51773210c5599cc644fc8df5', role: "list", class: `${this.modeVariant ? `tds-mode-variant-${this.modeVariant}` : ''}` }, h("div", { key: 'dbcd27f8adba0b6ef38071346bf38eba6dcaedd1', class: "wrapper", ref: (el) => {
162
171
  this.navWrapperElement = el;
163
- } }, h("button", { key: 'fa71abb901a1c6ab70dde90d759d9aa537a72ec2', class: `scroll-left-button ${this.showLeftScroll ? 'show' : ''}`, onClick: () => this.scrollLeft(), disabled: !this.showLeftScroll }, h("tds-icon", { key: '0aff4668869fa761e03e8c81ed054561787beb49', name: "chevron_left", size: "20px" })), h("slot", { key: '169f8b9eb18a33fb4fc739863eaf4a730e066c83', onSlotchange: () => this.handleSlotChange() }), h("button", { key: '9c9757d3c818191ce5aec5bbd64699c04dfc07db', class: `scroll-right-button ${this.showRightScroll ? 'show' : ''}`, onClick: () => this.scrollRight(), disabled: !this.showRightScroll }, h("tds-icon", { key: 'e38ac8674d9e3e4aeaa67bd888cd411002353634', name: "chevron_right", size: "20px" })))));
172
+ }, style: { paddingLeft: `${this.leftPadding}px` } }, h("button", { key: 'afdac4d596a8b9ea1de0fc483eda96d487ad17ed', class: `scroll-left-button ${this.showLeftScroll ? 'show' : ''}`, onClick: () => this.scrollLeft(), disabled: !this.showLeftScroll }, h("tds-icon", { key: '1ff5064f5bd2b5ba26e0e28b7d3beeae892a2a67', name: "chevron_left", size: "20px" })), h("slot", { key: 'bfcf00b43116a1c03507a5d93bd0bafc2a987eb7', onSlotchange: () => this.handleSlotChange() }), h("button", { key: 'af4361d7dc949762577e3d74162bfa768f6dfa89', class: `scroll-right-button ${this.showRightScroll ? 'show' : ''}`, onClick: () => this.scrollRight(), disabled: !this.showRightScroll }, h("tds-icon", { key: '7ffa8829a1b2ae8f408aa1bab6770f27726fb1c1', name: "chevron_right", size: "20px" })))));
164
173
  }
165
174
  static get is() { return "tds-navigation-tabs"; }
166
175
  static get encapsulation() { return "shadow"; }
@@ -228,6 +237,24 @@ export class TdsNavigationTabs {
228
237
  },
229
238
  "attribute": "selected-index",
230
239
  "reflect": true
240
+ },
241
+ "leftPadding": {
242
+ "type": "number",
243
+ "mutable": false,
244
+ "complexType": {
245
+ "original": "number",
246
+ "resolved": "number",
247
+ "references": {}
248
+ },
249
+ "required": false,
250
+ "optional": false,
251
+ "docs": {
252
+ "tags": [],
253
+ "text": "Custom left padding value for the wrapper element."
254
+ },
255
+ "attribute": "left-padding",
256
+ "reflect": true,
257
+ "defaultValue": "32"
231
258
  }
232
259
  };
233
260
  }
@@ -3,7 +3,7 @@ import { g as generateUniqueId } from './p-11648030.js';
3
3
  import { h as hasSlot } from './p-ae110fc2.js';
4
4
  import { d as defineCustomElement$2 } from './p-e46088d9.js';
5
5
 
6
- const cardCss = ".card{box-sizing:border-box;box-shadow:var(--tds-card-box);background-color:var(--tds-card-background);display:block;border-radius:4px;overflow:hidden}.card *{box-sizing:border-box}.card.clickable:hover{box-shadow:var(--tds-card-box-hover);cursor:pointer}.card .card-header{font:var(--tds-headline-06);letter-spacing:var(--tds-headline-06-ls);padding:16px;display:flex;align-items:center}.card .card-header slot[name=thumbnail]::slotted(*){width:36px;height:36px;border-radius:100%;margin-right:16px}.card .card-header .card-top-header{padding-left:16px;display:flex;flex-direction:column}.card .card-header .card-top-header.no-header-img{padding-left:0}.card .card-header.below{padding-top:16px}.card .header-subheader{display:flex;flex-direction:column;gap:4px}.card .header-subheader .header,.card .header-subheader slot[name=header]{color:var(--tds-card-headline)}.card .header-subheader .subheader,.card .header-subheader slot[name=subheader]{color:var(--tds-card-sub-headline)}.card .card-body-img{width:100%}.card .tds-divider{margin:16px 16px 0;background-color:var(--tds-card-divider);height:1px}.card .card-body{display:block;word-wrap:break-word}.card slot[name=body]::slotted(*){font:var(--tds-detail-03) !important;letter-spacing:var(--tds-detail-03-ls) !important;color:var(--tds-card-body-color);padding:0 16px;margin-bottom:16px;margin-top:16px;max-width:336px}.card slot[name=actions]::slotted(*){display:flex;padding:16px;color:var(--tds-card-icon-color)}button{width:100%;border:none;text-align:left;padding:0}button:focus-visible{outline:2px solid var(--tds-blue-400);outline-offset:-2px}button:active{box-shadow:var(--tds-card-box-pressed)}";
6
+ const cardCss = ".card{box-sizing:border-box;box-shadow:var(--tds-card-box);background-color:var(--tds-card-background);display:block;border-radius:4px;overflow:hidden}.card *{box-sizing:border-box}.card.clickable:hover{box-shadow:var(--tds-card-box-hover);cursor:pointer}.card .card-header{font:var(--tds-headline-06);letter-spacing:var(--tds-headline-06-ls);padding:16px;display:flex;align-items:center}.card .card-header slot[name=thumbnail]::slotted(*){width:36px;height:36px;border-radius:100%;margin-right:16px}.card .card-header .card-top-header{padding-left:16px;display:flex;flex-direction:column}.card .card-header .card-top-header.no-header-img{padding-left:0}.card .card-header.below{padding-top:16px}.card .header-subheader{display:flex;flex-direction:column;gap:4px}.card .header-subheader .header,.card .header-subheader slot[name=header]{color:var(--tds-card-headline)}.card .header-subheader .subheader,.card .header-subheader slot[name=subheader]{color:var(--tds-card-sub-headline)}.card .card-body-img{width:100%}.card .tds-divider{margin:16px 16px 0;background-color:var(--tds-card-divider);height:1px}.card .card-body{display:block;word-wrap:break-word}.card slot[name=body]::slotted(*){font:var(--tds-detail-03) !important;letter-spacing:var(--tds-detail-03-ls) !important;color:var(--tds-card-body-color);padding:0 16px;margin-bottom:16px;margin-top:16px;max-width:336px}.card slot[name=actions]::slotted(*){display:flex;padding:16px;color:var(--tds-card-icon-color)}button{width:100%;border:none;text-align:left;padding:0}button:focus-visible{outline:2px solid var(--tds-blue-400);outline-offset:-2px}button:active{box-shadow:var(--tds-card-box-pressed)}.below-header-stretch,.above-header-stretch{display:flex;flex-direction:column}.below-header-stretch .stretch,.above-header-stretch .stretch{display:flex;flex-direction:column;flex-grow:1;width:100%}.below-header-stretch .card-body,.above-header-stretch .card-body{display:flex;flex-direction:column;flex-grow:1}.below-header-stretch .card-body slot[name=body]::slotted(*),.above-header-stretch .card-body slot[name=body]::slotted(*){max-width:unset;flex-grow:1}";
7
7
  const TdsCardStyle0 = cardCss;
8
8
 
9
9
  const TdsCard$1 = /*@__PURE__*/ proxyCustomElement(class TdsCard extends H {
@@ -27,7 +27,7 @@ const TdsCard$1 = /*@__PURE__*/ proxyCustomElement(class TdsCard extends H {
27
27
  const usesBodySlot = hasSlot('body', this.host);
28
28
  const usesBodyImageSlot = hasSlot('body-image', this.host);
29
29
  const usesActionsSlot = hasSlot('actions', this.host);
30
- return (h("div", null, this.imagePlacement === 'below-header' && this.getCardHeader(), h("div", { class: `card-body` }, usesBodyImageSlot && h("slot", { name: "body-image" }), this.bodyImg && h("img", { class: "card-body-img", src: this.bodyImg, alt: this.bodyImgAlt }), this.imagePlacement === 'above-header' && this.getCardHeader(), this.bodyDivider && h("tds-divider", null), usesBodySlot && h("slot", { name: "body" })), usesActionsSlot && h("slot", { name: `actions` })));
30
+ return (h("div", { class: this.stretch && 'stretch' }, this.imagePlacement === 'below-header' && this.getCardHeader(), h("div", { class: `card-body` }, usesBodyImageSlot && h("slot", { name: "body-image" }), this.bodyImg && h("img", { class: "card-body-img", src: this.bodyImg, alt: this.bodyImgAlt }), this.imagePlacement === 'above-header' && this.getCardHeader(), this.bodyDivider && h("tds-divider", null), usesBodySlot && h("slot", { name: "body" })), usesActionsSlot && h("slot", { name: `actions` })));
31
31
  };
32
32
  this.modeVariant = null;
33
33
  this.imagePlacement = 'below-header';
@@ -37,14 +37,15 @@ const TdsCard$1 = /*@__PURE__*/ proxyCustomElement(class TdsCard extends H {
37
37
  this.bodyImgAlt = undefined;
38
38
  this.bodyDivider = false;
39
39
  this.clickable = false;
40
+ this.stretch = false;
40
41
  this.cardId = generateUniqueId();
41
42
  }
42
43
  render() {
43
- return (h(Host, { key: '485eb954899e2f559dfa9c231d275c1cecd7791f', class: this.modeVariant && `tds-mode-variant-${this.modeVariant}` }, this.clickable ? (h("button", { class: `card ${this.clickable ? 'clickable' : ''} ${this.imagePlacement}`, onClick: () => {
44
+ return (h(Host, { key: 'd777b6ef9815b43c55749ff8a03ef5d8cb21cf74', class: this.modeVariant && `tds-mode-variant-${this.modeVariant}` }, this.clickable ? (h("button", { class: `card ${this.clickable ? 'clickable' : ''} ${this.stretch ? `${this.imagePlacement}-stretch` : this.imagePlacement}`, onClick: () => {
44
45
  if (this.clickable) {
45
46
  this.handleClick();
46
47
  }
47
- } }, this.getCardContent())) : (h("div", { class: `card ${this.clickable ? 'clickable' : ''} ${this.imagePlacement}` }, this.getCardContent()))));
48
+ } }, this.getCardContent())) : (h("div", { class: `card ${this.clickable ? 'clickable' : ''} ${this.stretch ? `${this.imagePlacement}-stretch` : this.imagePlacement}` }, this.getCardContent()))));
48
49
  }
49
50
  get host() { return this; }
50
51
  static get style() { return TdsCardStyle0; }
@@ -57,6 +58,7 @@ const TdsCard$1 = /*@__PURE__*/ proxyCustomElement(class TdsCard extends H {
57
58
  "bodyImgAlt": [1, "body-img-alt"],
58
59
  "bodyDivider": [4, "body-divider"],
59
60
  "clickable": [4],
61
+ "stretch": [4],
60
62
  "cardId": [1, "card-id"]
61
63
  }]);
62
64
  function defineCustomElement$1() {
@@ -1,6 +1,6 @@
1
1
  import { p as proxyCustomElement, H, h, c as Host } from './p-28ef5186.js';
2
2
 
3
- const inlineTabCss = ":host{box-sizing:border-box;display:block;position:relative}:host *{box-sizing:border-box}:host ::slotted(*){all:unset;font:var(--tds-headline-07) !important;letter-spacing:var(--tds-headline-07-ls) !important;color:var(--tds-navigation-tabs-tab-color);text-decoration:none;display:block;position:relative;transition:color 0.15s ease-in-out 0s;white-space:nowrap;background-color:transparent;border:0;width:100%;padding:20px 4px}:host ::slotted(*:focus-visible)::before{content:\"\";position:absolute;left:0;right:0;top:20px;bottom:20px;outline:2px solid var(--tds-blue-400)}:host .inline-tab-item:not(.selected)::after{width:0%;transition:width 0.15s ease-in-out 0s}:host .inline-tab-item{position:relative;margin-right:32px}:host .inline-tab-item:hover{cursor:pointer}:host .inline-tab-item:hover::after{width:100%}:host .inline-tab-item::after{content:\" \";position:absolute;bottom:0;right:0;left:0;margin-left:auto;width:0%;margin-right:auto;height:2px;background-color:var(--tds-inline-tabs-tab-indicator-background-hover);z-index:1}:host .selected ::slotted(*){color:var(--tds-inline-tabs-tab-color-selected)}:host .selected::after{width:100%;background-color:var(--tds-inline-tabs-tab-indicator-background-active)}:host .disabled{color:var(--tds-inline-tabs-tab-color-disabled)}:host .disabled ::slotted(*){opacity:var(--tds-inline-tabs-tab-color-opacity-disabled)}:host .disabled::after{content:none}:host .disabled ::slotted(*:hover){cursor:not-allowed}:host .disabled ::slotted(*:focus-visible){outline:none}:host(.first){margin-left:32px}:host(.last){margin-right:32px}";
3
+ const inlineTabCss = ":host{box-sizing:border-box;display:block;position:relative}:host *{box-sizing:border-box}:host ::slotted(*){all:unset;font:var(--tds-headline-07) !important;letter-spacing:var(--tds-headline-07-ls) !important;color:var(--tds-navigation-tabs-tab-color);text-decoration:none;display:block;position:relative;transition:color 0.15s ease-in-out 0s;white-space:nowrap;background-color:transparent;border:0;width:100%;padding:20px 4px}:host ::slotted(*:focus-visible)::before{content:\"\";position:absolute;left:0;right:0;top:20px;bottom:20px;outline:2px solid var(--tds-blue-400)}:host .inline-tab-item:not(.selected)::after{width:0%;transition:width 0.15s ease-in-out 0s}:host .inline-tab-item{position:relative;margin-right:32px}:host .inline-tab-item:hover{cursor:pointer}:host .inline-tab-item:hover::after{width:100%}:host .inline-tab-item::after{content:\" \";position:absolute;bottom:0;right:0;left:0;margin-left:auto;width:0%;margin-right:auto;height:2px;background-color:var(--tds-inline-tabs-tab-indicator-background-hover);z-index:1}:host .selected ::slotted(*){color:var(--tds-inline-tabs-tab-color-selected)}:host .selected::after{width:100%;background-color:var(--tds-inline-tabs-tab-indicator-background-active)}:host .disabled{color:var(--tds-inline-tabs-tab-color-disabled)}:host .disabled ::slotted(*){opacity:var(--tds-inline-tabs-tab-color-opacity-disabled)}:host .disabled::after{content:none}:host .disabled ::slotted(*:hover){cursor:not-allowed}:host .disabled ::slotted(*:focus-visible){outline:none}:host(.last){margin-right:32px}";
4
4
  const TdsInlineTabStyle0 = inlineTabCss;
5
5
 
6
6
  const TdsInlineTab$1 = /*@__PURE__*/ proxyCustomElement(class TdsInlineTab extends H {
@@ -1,7 +1,7 @@
1
1
  import { p as proxyCustomElement, H, d as createEvent, h, c as Host } from './p-28ef5186.js';
2
2
  import { d as defineCustomElement$2 } from './p-3e74be57.js';
3
3
 
4
- const inlineTabsCss = ":host{box-sizing:border-box;display:flex;background-color:var(--tds-inline-tabs-background);position:relative}:host *{box-sizing:border-box}:host::after{content:\" \";display:block;border-bottom:1px solid var(--tds-inline-tabs-horizontal-divider-background);opacity:var(--tds-inline-tabs-horizontal-divider-opacity);left:0;right:0;bottom:0;position:absolute}:host .wrapper{display:flex;flex-wrap:nowrap;white-space:nowrap;width:100%;overflow-x:scroll;scrollbar-width:none}:host .wrapper::-webkit-scrollbar{display:none}:host .scroll-right-button{right:0;z-index:1}:host .scroll-left-button{left:0;z-index:1}:host .scroll-right-button,:host .scroll-left-button{color:var(--tds-folder-tabs-scroll-btn-color);cursor:pointer;border:0;width:0;background-color:var(--tds-inline-tabs-scroll-btn-background);display:none;justify-content:center;align-items:center;opacity:0;pointer-events:none;position:sticky}:host .scroll-right-button.show,:host .scroll-left-button.show{min-width:48px;display:block;opacity:1;pointer-events:all}:host .scroll-right-button:hover,:host .scroll-left-button:hover{background-color:var(--tds-folder-tabs-scroll-btn-background-hover)}:host .scroll-right-button:active,:host .scroll-left-button:active{background-color:var(--tds-folder-tabs-scroll-btn-background-active)}:host .scroll-right-button:focus,:host .scroll-left-button:focus{outline:2px solid var(--tds-blue-400);outline-offset:-2px}:host .scroll-right-button svg,:host .scroll-left-button svg{fill:var(--tds-folder-tabs-scroll-btn-color)}";
4
+ const inlineTabsCss = ":host{box-sizing:border-box;display:flex;background-color:var(--tds-inline-tabs-background);position:relative}:host *{box-sizing:border-box}:host::after{content:\" \";display:block;border-bottom:1px solid var(--tds-inline-tabs-horizontal-divider-background);opacity:var(--tds-inline-tabs-horizontal-divider-opacity);left:0;right:0;bottom:0;position:absolute}:host .wrapper{display:flex;flex-wrap:nowrap;white-space:nowrap;width:100%;overflow-x:scroll;scrollbar-width:none;gap:16px}:host .wrapper::-webkit-scrollbar{display:none}:host .scroll-right-button{right:0;z-index:1}:host .scroll-left-button{left:0;z-index:1}:host .scroll-right-button,:host .scroll-left-button{color:var(--tds-folder-tabs-scroll-btn-color);cursor:pointer;border:0;width:0;background-color:var(--tds-inline-tabs-scroll-btn-background);display:none;justify-content:center;align-items:center;opacity:0;pointer-events:none;position:sticky}:host .scroll-right-button.show,:host .scroll-left-button.show{min-width:48px;display:block;opacity:1;pointer-events:all}:host .scroll-right-button:hover,:host .scroll-left-button:hover{background-color:var(--tds-folder-tabs-scroll-btn-background-hover)}:host .scroll-right-button:active,:host .scroll-left-button:active{background-color:var(--tds-folder-tabs-scroll-btn-background-active)}:host .scroll-right-button:focus,:host .scroll-left-button:focus{outline:2px solid var(--tds-blue-400);outline-offset:-2px}:host .scroll-right-button svg,:host .scroll-left-button svg{fill:var(--tds-folder-tabs-scroll-btn-color)}";
5
5
  const TdsInlineTabsStyle0 = inlineTabsCss;
6
6
 
7
7
  const TdsInlineTabs$1 = /*@__PURE__*/ proxyCustomElement(class TdsInlineTabs extends H {
@@ -66,6 +66,7 @@ const TdsInlineTabs$1 = /*@__PURE__*/ proxyCustomElement(class TdsInlineTabs ext
66
66
  this.modeVariant = 'primary';
67
67
  this.defaultSelectedIndex = 0;
68
68
  this.selectedIndex = undefined;
69
+ this.leftPadding = 32;
69
70
  this.showLeftScroll = false;
70
71
  this.showRightScroll = false;
71
72
  }
@@ -145,12 +146,18 @@ const TdsInlineTabs$1 = /*@__PURE__*/ proxyCustomElement(class TdsInlineTabs ext
145
146
  this.showRightScroll = false;
146
147
  }
147
148
  }
149
+ applyCustomLeftPadding() {
150
+ if (this.navWrapperElement) {
151
+ this.navWrapperElement.style.paddingLeft = `${this.leftPadding}px`;
152
+ }
153
+ }
148
154
  handleSlotChange() {
149
155
  this.initializeTabs();
150
156
  this.addEventListenerToTabs();
151
157
  this.initializeSelectedTab();
152
158
  this.updateScrollButtons();
153
159
  this.addResizeObserver();
160
+ this.applyCustomLeftPadding(); // Apply custom left padding to the wrapper
154
161
  }
155
162
  connectedCallback() {
156
163
  this.initializeTabs();
@@ -166,9 +173,9 @@ const TdsInlineTabs$1 = /*@__PURE__*/ proxyCustomElement(class TdsInlineTabs ext
166
173
  this.removeEventListenerFromTabs();
167
174
  }
168
175
  render() {
169
- return (h(Host, { key: 'fdf1cc28637a8bd207c84aba91f60d145acd10c9', role: "list", class: `${this.modeVariant ? `tds-mode-variant-${this.modeVariant}` : ''}` }, h("div", { key: '068e21bac127323f56d858abf59c1f905a4ee315', class: "wrapper", ref: (el) => {
176
+ return (h(Host, { key: '20c44d2457fe1115cf322182f0a69e84b9a65107', role: "list", class: `${this.modeVariant ? `tds-mode-variant-${this.modeVariant}` : ''}` }, h("div", { key: '3d4aa2b1ed18f1f8f481eda3d21473d8bfbc195e', class: "wrapper", ref: (el) => {
170
177
  this.navWrapperElement = el;
171
- } }, h("button", { key: '646917420741478a9492cec16c066833d3e3266e', class: `scroll-left-button ${this.showLeftScroll ? 'show' : ''}`, onClick: () => this.scrollLeft(), disabled: !this.showLeftScroll }, h("tds-icon", { key: '939eb79ed238163057dcc8316f6efdec89262ff8', name: "chevron_left", size: "20px" })), h("slot", { key: 'f3306035cce33e3efb3e89ab4650c3781703f9e5', onSlotchange: () => this.handleSlotChange() }), h("button", { key: '6b2023939d94eb9f9822e25fd4facce715fdf227', class: `scroll-right-button ${this.showRightScroll ? 'show' : ''}`, onClick: () => this.scrollRight(), disabled: !this.showRightScroll }, h("tds-icon", { key: '0b2626c78903ce14239891aa667a61ed913097ac', name: "chevron_right", size: "20px" })))));
178
+ }, style: { paddingLeft: `${this.leftPadding}px` } }, h("button", { key: 'af53b300c3420a52fd2cad793ca9acb333e71478', class: `scroll-left-button ${this.showLeftScroll ? 'show' : ''}`, onClick: () => this.scrollLeft(), disabled: !this.showLeftScroll }, h("tds-icon", { key: 'd21f7a30e597d429eccedcaa8569e7dc7170c145', name: "chevron_left", size: "20px" })), h("slot", { key: '39e1b21aa75fa86850827f87f5793292d01a97c7', onSlotchange: () => this.handleSlotChange() }), h("button", { key: '8848014869eb92505d97f15cc3f8f2234dadc9c5', class: `scroll-right-button ${this.showRightScroll ? 'show' : ''}`, onClick: () => this.scrollRight(), disabled: !this.showRightScroll }, h("tds-icon", { key: '130a7c2c926b312491f735dac63b67e91a632058', name: "chevron_right", size: "20px" })))));
172
179
  }
173
180
  get host() { return this; }
174
181
  static get watchers() { return {
@@ -179,6 +186,7 @@ const TdsInlineTabs$1 = /*@__PURE__*/ proxyCustomElement(class TdsInlineTabs ext
179
186
  "modeVariant": [1, "mode-variant"],
180
187
  "defaultSelectedIndex": [2, "default-selected-index"],
181
188
  "selectedIndex": [514, "selected-index"],
189
+ "leftPadding": [514, "left-padding"],
182
190
  "showLeftScroll": [32],
183
191
  "showRightScroll": [32],
184
192
  "selectTab": [64],
@@ -1,6 +1,6 @@
1
1
  import { p as proxyCustomElement, H, h, c as Host } from './p-28ef5186.js';
2
2
 
3
- const navigationTabCss = ":host{box-sizing:border-box;display:block}:host *{box-sizing:border-box}:host ::slotted(*){all:unset;font:var(--tds-headline-07) !important;letter-spacing:var(--tds-headline-07-ls) !important;color:var(--tds-navigation-tabs-tab-color) !important;text-decoration:none;display:block;position:relative;transition:color 0.15s ease-in-out 0s;white-space:nowrap;background-color:transparent;border:0;width:100%;padding:26px 4px}:host ::slotted(*:focus-visible)::before{content:\"\";position:absolute;left:0;right:0;top:26px;bottom:26px;outline:2px solid var(--tds-blue-400)}:host .navigation-tab-item:not(.selected)::after{width:0%;transition:width 0.15s ease-in-out 0s}:host .navigation-tab-item{position:relative;margin-right:32px}:host .navigation-tab-item:hover{cursor:pointer}:host .navigation-tab-item:hover::after{width:100%}:host .navigation-tab-item::after{content:\" \";position:absolute;bottom:0;right:0;left:0;margin-left:auto;width:0%;margin-right:auto;height:2px;background-color:var(--tds-navigation-tabs-tab-indicator-background-hover);z-index:1}:host .selected ::slotted(*){color:var(--tds-navigation-tabs-tab-color-selected)}:host .selected::after{width:100%;background-color:var(--tds-navigation-tabs-tab-indicator-background-active)}:host .disabled{color:var(--tds-navigation-tabs-tab-color-disabled)}:host .disabled ::slotted(*){opacity:var(--tds-navigation-tabs-tab-color-opacity-disabled)}:host .disabled::after{content:none}:host .disabled ::slotted(*:hover){cursor:not-allowed}:host .disabled ::slotted(*:focus-visible){outline:none}:host(.first){margin-left:32px}:host(.last){margin-right:32px}";
3
+ const navigationTabCss = ":host{box-sizing:border-box;display:block}:host *{box-sizing:border-box}:host ::slotted(*){all:unset;font:var(--tds-headline-07) !important;letter-spacing:var(--tds-headline-07-ls) !important;color:var(--tds-navigation-tabs-tab-color) !important;text-decoration:none;display:block;position:relative;transition:color 0.15s ease-in-out 0s;white-space:nowrap;background-color:transparent;border:0;width:100%;padding:26px 4px}:host ::slotted(*:focus-visible)::before{content:\"\";position:absolute;left:0;right:0;top:26px;bottom:26px;outline:2px solid var(--tds-blue-400)}:host .navigation-tab-item:not(.selected)::after{width:0%;transition:width 0.15s ease-in-out 0s}:host .navigation-tab-item{position:relative;margin-right:32px}:host .navigation-tab-item:hover{cursor:pointer}:host .navigation-tab-item:hover::after{width:100%}:host .navigation-tab-item::after{content:\" \";position:absolute;bottom:0;right:0;left:0;margin-left:auto;width:0%;margin-right:auto;height:2px;background-color:var(--tds-navigation-tabs-tab-indicator-background-hover);z-index:1}:host .selected ::slotted(*){color:var(--tds-navigation-tabs-tab-color-selected)}:host .selected::after{width:100%;background-color:var(--tds-navigation-tabs-tab-indicator-background-active)}:host .disabled{color:var(--tds-navigation-tabs-tab-color-disabled)}:host .disabled ::slotted(*){opacity:var(--tds-navigation-tabs-tab-color-opacity-disabled)}:host .disabled::after{content:none}:host .disabled ::slotted(*:hover){cursor:not-allowed}:host .disabled ::slotted(*:focus-visible){outline:none}:host(.last){margin-right:32px}";
4
4
  const TdsNavigationTabStyle0 = navigationTabCss;
5
5
 
6
6
  const TdsNavigationTab$1 = /*@__PURE__*/ proxyCustomElement(class TdsNavigationTab extends H {