@sellmate/design-system 1.0.69 → 1.0.71

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 (213) hide show
  1. package/dist/cjs/design-system.cjs.js +1 -1
  2. package/dist/cjs/loader.cjs.js +1 -1
  3. package/dist/cjs/sd-action-modal.cjs.entry.js +1 -1
  4. package/dist/cjs/sd-badge.cjs.entry.js +1 -1
  5. package/dist/cjs/sd-barcode-input.cjs.entry.js +1 -1
  6. package/dist/cjs/sd-button-v2_2.cjs.entry.js +3 -3
  7. package/dist/cjs/sd-button_4.cjs.entry.js +10 -5
  8. package/dist/cjs/sd-card.cjs.entry.js +1 -1
  9. package/dist/cjs/sd-chip.cjs.entry.js +1 -1
  10. package/dist/cjs/sd-circle-progress.cjs.entry.js +1 -1
  11. package/dist/cjs/sd-confirm-modal_2.cjs.entry.js +3 -3
  12. package/dist/cjs/sd-date-picker-calendar.cjs.entry.js +1 -1
  13. package/dist/cjs/sd-date-picker-trigger.cjs.entry.js +2 -2
  14. package/dist/cjs/sd-date-picker.cjs.entry.js +2 -2
  15. package/dist/cjs/sd-date-range-picker-calendar.cjs.entry.js +1 -1
  16. package/dist/cjs/sd-dropdown-button.cjs.entry.js +3 -3
  17. package/dist/cjs/sd-ghost-button.cjs.entry.js +2 -2
  18. package/dist/cjs/sd-input_2.cjs.entry.js +2 -2
  19. package/dist/cjs/sd-loading-container.cjs.entry.js +2 -2
  20. package/dist/cjs/sd-number-input.cjs.entry.js +3 -3
  21. package/dist/cjs/sd-pagination_2.cjs.entry.js +61 -30
  22. package/dist/cjs/sd-popover.cjs.entry.js +23 -23
  23. package/dist/cjs/sd-portal.cjs.entry.js +1 -1
  24. package/dist/cjs/sd-radio-button.cjs.entry.js +1 -1
  25. package/dist/cjs/sd-radio-group.cjs.entry.js +1 -1
  26. package/dist/cjs/sd-radio.cjs.entry.js +1 -1
  27. package/dist/cjs/sd-select-multiple-group.cjs.entry.js +1 -1
  28. package/dist/cjs/sd-select-v2-list-item_4.cjs.entry.js +28 -4
  29. package/dist/cjs/sd-select.cjs.entry.js +1 -1
  30. package/dist/cjs/sd-tabs.cjs.entry.js +1 -1
  31. package/dist/cjs/table-test.cjs.entry.js +1 -1
  32. package/dist/collection/collection-manifest.json +1 -1
  33. package/dist/collection/components/sd-action-modal/sd-action-modal.js +1 -1
  34. package/dist/collection/components/sd-badge/sd-badge.js +1 -1
  35. package/dist/collection/components/sd-barcode-input/sd-barcode-input.js +1 -1
  36. package/dist/collection/components/sd-button-v2/sd-button-v2.js +3 -3
  37. package/dist/collection/components/sd-card/sd-card.js +1 -1
  38. package/dist/collection/components/sd-chip/sd-chip.js +1 -1
  39. package/dist/collection/components/sd-circle-progress/sd-circle-progress.js +1 -1
  40. package/dist/collection/components/sd-confirm-modal/sd-confirm-modal.js +2 -2
  41. package/dist/collection/components/sd-date-picker/sd-date-picker-calendar/sd-date-picker-calendar.js +1 -1
  42. package/dist/collection/components/sd-date-picker/sd-date-picker-trigger/sd-date-picker-trigger.js +2 -2
  43. package/dist/collection/components/sd-date-picker/sd-date-picker.js +2 -2
  44. package/dist/collection/components/sd-date-range-picker/sd-date-range-picker-calendar/sd-date-range-picker-calendar.js +1 -1
  45. package/dist/collection/components/sd-dropdown-button/sd-dropdown-button.js +3 -3
  46. package/dist/collection/components/sd-field/sd-field.js +4 -4
  47. package/dist/collection/components/sd-floating-portal/sd-floating-portal.js +12 -1
  48. package/dist/collection/components/sd-ghost-button/sd-ghost-button.js +2 -2
  49. package/dist/collection/components/sd-input/sd-input.js +2 -2
  50. package/dist/collection/components/sd-loading-container/sd-loading-container.js +2 -2
  51. package/dist/collection/components/sd-loading-modal/sd-loading-modal.js +1 -1
  52. package/dist/collection/components/sd-number-input/sd-number-input.js +3 -3
  53. package/dist/collection/components/sd-pagination/sd-pagination.css +0 -1
  54. package/dist/collection/components/sd-pagination/sd-pagination.js +3 -3
  55. package/dist/collection/components/sd-popover/sd-popover.js +49 -53
  56. package/dist/collection/components/sd-portal/sd-portal.js +1 -1
  57. package/dist/collection/components/sd-radio/sd-radio.js +1 -1
  58. package/dist/collection/components/sd-radio-button/sd-radio-button.js +1 -1
  59. package/dist/collection/components/sd-radio-group/sd-radio-group.js +1 -1
  60. package/dist/collection/components/sd-select/sd-select.js +1 -1
  61. package/dist/collection/components/sd-select-multiple-group/sd-select-multiple-group.js +1 -1
  62. package/dist/collection/components/sd-select-v2/sd-select-v2-listbox/sd-select-v2-listbox.js +8 -2
  63. package/dist/collection/components/sd-select-v2/sd-select-v2-trigger/sd-select-v2-trigger.js +69 -2
  64. package/dist/collection/components/sd-select-v2/sd-select-v2.js +96 -27
  65. package/dist/collection/components/sd-tabs/sd-tabs.js +1 -1
  66. package/dist/collection/components/table-test/table-test.js +1 -1
  67. package/dist/components/{p-z9MoRjYX.js → p-9HhG23Vy.js} +1 -1
  68. package/dist/components/{p-CEnwrYaY.js → p-B8XV0vD8.js} +1 -1
  69. package/dist/components/{p-DlkxQ9Jn.js → p-BLxwBD2G.js} +1 -1
  70. package/dist/components/{p-B1j9ZWLJ.js → p-BM9Fr6OX.js} +1 -1
  71. package/dist/components/{p-DoSEK0_q.js → p-BfG60atH.js} +1 -1
  72. package/dist/components/p-CU7IOtCw.js +1 -0
  73. package/dist/components/{p-DPCj-bFr.js → p-Cc3bTBBn.js} +1 -1
  74. package/dist/components/{p-CS62OEXf.js → p-CeHRQb7A.js} +1 -1
  75. package/dist/components/{p-D21iKAp7.js → p-CoOl8zeX.js} +1 -1
  76. package/dist/components/{p-D99-lhhk.js → p-CscUxW9p.js} +1 -1
  77. package/dist/components/p-CuiFB2yQ.js +1 -0
  78. package/dist/components/p-D1SaZEYh.js +1 -0
  79. package/dist/components/{p-BJshZele.js → p-DM5vbfxB.js} +1 -1
  80. package/dist/components/{p-T5BGXHZg.js → p-DWJ3CIKO.js} +1 -1
  81. package/dist/components/{p-BFd54Imz.js → p-D_XZAh9v.js} +1 -1
  82. package/dist/components/{p-CtrDZYN5.js → p-DboqT9Do.js} +1 -1
  83. package/dist/components/p-DkHyt3Dz.js +1 -0
  84. package/dist/components/{p-DIro-Wat.js → p-Dmk-f7qn.js} +1 -1
  85. package/dist/components/p-DpBU4AWy.js +1 -0
  86. package/dist/components/{p-BaHpEtbz.js → p-W6QlwGnP.js} +1 -1
  87. package/dist/components/p-r8kAA1Su.js +1 -0
  88. package/dist/components/sd-action-modal.js +1 -1
  89. package/dist/components/sd-badge.js +1 -1
  90. package/dist/components/sd-barcode-input.js +1 -1
  91. package/dist/components/sd-button-v2.js +1 -1
  92. package/dist/components/sd-card.js +1 -1
  93. package/dist/components/sd-chip.js +1 -1
  94. package/dist/components/sd-circle-progress.js +1 -1
  95. package/dist/components/sd-confirm-modal.js +1 -1
  96. package/dist/components/sd-date-picker-calendar.js +1 -1
  97. package/dist/components/sd-date-picker-trigger.js +1 -1
  98. package/dist/components/sd-date-picker.js +1 -1
  99. package/dist/components/sd-date-range-picker-calendar.js +1 -1
  100. package/dist/components/sd-date-range-picker.js +1 -1
  101. package/dist/components/sd-dropdown-button.js +1 -1
  102. package/dist/components/sd-field.js +1 -1
  103. package/dist/components/sd-file-picker.js +1 -1
  104. package/dist/components/sd-floating-portal.js +1 -1
  105. package/dist/components/sd-ghost-button.js +1 -1
  106. package/dist/components/sd-guide.js +1 -1
  107. package/dist/components/sd-input.js +1 -1
  108. package/dist/components/sd-loading-container.js +1 -1
  109. package/dist/components/sd-loading-modal.js +1 -1
  110. package/dist/components/sd-modal-container.js +1 -1
  111. package/dist/components/sd-number-input.js +1 -1
  112. package/dist/components/sd-pagination.js +1 -1
  113. package/dist/components/sd-popover.js +1 -1
  114. package/dist/components/sd-portal.js +1 -1
  115. package/dist/components/sd-radio-button.js +1 -1
  116. package/dist/components/sd-radio-group.js +1 -1
  117. package/dist/components/sd-radio.js +1 -1
  118. package/dist/components/sd-select-dropdown.js +1 -1
  119. package/dist/components/sd-select-group.js +1 -1
  120. package/dist/components/sd-select-multiple-group.js +1 -1
  121. package/dist/components/sd-select-multiple.js +1 -1
  122. package/dist/components/sd-select-search-input.js +1 -1
  123. package/dist/components/sd-select-v2-listbox.js +1 -1
  124. package/dist/components/sd-select-v2-trigger.js +1 -1
  125. package/dist/components/sd-select-v2.js +1 -1
  126. package/dist/components/sd-select.js +1 -1
  127. package/dist/components/sd-table.js +1 -1
  128. package/dist/components/sd-tabs.js +1 -1
  129. package/dist/components/sd-textarea.js +1 -1
  130. package/dist/components/sd-thead.js +1 -1
  131. package/dist/components/sd-toast-container.js +1 -1
  132. package/dist/components/sd-toast.js +1 -1
  133. package/dist/components/sd-tooltip.js +1 -1
  134. package/dist/components/table-test.js +1 -1
  135. package/dist/design-system/design-system.esm.js +1 -1
  136. package/dist/design-system/{p-1b8e63a6.entry.js → p-0967ef4b.entry.js} +1 -1
  137. package/dist/design-system/{p-449e58ee.entry.js → p-12f13678.entry.js} +1 -1
  138. package/dist/design-system/{p-23c31074.entry.js → p-132721ad.entry.js} +1 -1
  139. package/dist/design-system/{p-8cd1b533.entry.js → p-1af3c5c5.entry.js} +1 -1
  140. package/dist/design-system/{p-01ac7743.entry.js → p-2319b722.entry.js} +1 -1
  141. package/dist/design-system/{p-0d485537.entry.js → p-27165b31.entry.js} +1 -1
  142. package/dist/design-system/{p-4d434794.entry.js → p-3677b3ce.entry.js} +1 -1
  143. package/dist/design-system/p-38e8fe7c.entry.js +1 -0
  144. package/dist/design-system/{p-60ece09d.entry.js → p-3c64616c.entry.js} +1 -1
  145. package/dist/design-system/{p-b3d959b0.entry.js → p-4ba03850.entry.js} +1 -1
  146. package/dist/design-system/{p-71897864.entry.js → p-639d237f.entry.js} +1 -1
  147. package/dist/design-system/{p-35b29182.entry.js → p-7232731b.entry.js} +1 -1
  148. package/dist/design-system/{p-1389a68e.entry.js → p-7dc33db0.entry.js} +1 -1
  149. package/dist/design-system/{p-002e10ac.entry.js → p-8cb8444e.entry.js} +1 -1
  150. package/dist/design-system/p-8d65090b.entry.js +1 -0
  151. package/dist/design-system/{p-9f0fe1f6.entry.js → p-9960d880.entry.js} +1 -1
  152. package/dist/design-system/{p-92a52f89.entry.js → p-a4e85dba.entry.js} +1 -1
  153. package/dist/design-system/p-a70ca82b.entry.js +1 -0
  154. package/dist/design-system/{p-48f1f9ff.entry.js → p-a8e7406e.entry.js} +1 -1
  155. package/dist/design-system/{p-1a455448.entry.js → p-ac441e78.entry.js} +1 -1
  156. package/dist/design-system/{p-731429da.entry.js → p-b3b1f25d.entry.js} +1 -1
  157. package/dist/design-system/{p-609b3748.entry.js → p-beb8d3de.entry.js} +1 -1
  158. package/dist/design-system/{p-4f9f25a1.entry.js → p-c290c0e0.entry.js} +1 -1
  159. package/dist/design-system/{p-5442b4b4.entry.js → p-c62ad2f4.entry.js} +1 -1
  160. package/dist/design-system/{p-4de3b6b1.entry.js → p-c67ff78d.entry.js} +1 -1
  161. package/dist/design-system/{p-7dd8beba.entry.js → p-c68e37f2.entry.js} +1 -1
  162. package/dist/design-system/{p-6ef2d08f.entry.js → p-d8a48add.entry.js} +1 -1
  163. package/dist/design-system/{p-cdedac3c.entry.js → p-dc43ebf9.entry.js} +1 -1
  164. package/dist/design-system/{p-6b478f5c.entry.js → p-f6869087.entry.js} +1 -1
  165. package/dist/esm/design-system.js +1 -1
  166. package/dist/esm/loader.js +1 -1
  167. package/dist/esm/sd-action-modal.entry.js +1 -1
  168. package/dist/esm/sd-badge.entry.js +1 -1
  169. package/dist/esm/sd-barcode-input.entry.js +1 -1
  170. package/dist/esm/sd-button-v2_2.entry.js +3 -3
  171. package/dist/esm/sd-button_4.entry.js +10 -5
  172. package/dist/esm/sd-card.entry.js +1 -1
  173. package/dist/esm/sd-chip.entry.js +1 -1
  174. package/dist/esm/sd-circle-progress.entry.js +1 -1
  175. package/dist/esm/sd-confirm-modal_2.entry.js +3 -3
  176. package/dist/esm/sd-date-picker-calendar.entry.js +1 -1
  177. package/dist/esm/sd-date-picker-trigger.entry.js +2 -2
  178. package/dist/esm/sd-date-picker.entry.js +2 -2
  179. package/dist/esm/sd-date-range-picker-calendar.entry.js +1 -1
  180. package/dist/esm/sd-dropdown-button.entry.js +3 -3
  181. package/dist/esm/sd-ghost-button.entry.js +2 -2
  182. package/dist/esm/sd-input_2.entry.js +2 -2
  183. package/dist/esm/sd-loading-container.entry.js +2 -2
  184. package/dist/esm/sd-number-input.entry.js +3 -3
  185. package/dist/esm/sd-pagination_2.entry.js +61 -30
  186. package/dist/esm/sd-popover.entry.js +24 -24
  187. package/dist/esm/sd-portal.entry.js +1 -1
  188. package/dist/esm/sd-radio-button.entry.js +1 -1
  189. package/dist/esm/sd-radio-group.entry.js +1 -1
  190. package/dist/esm/sd-radio.entry.js +1 -1
  191. package/dist/esm/sd-select-multiple-group.entry.js +1 -1
  192. package/dist/esm/sd-select-v2-list-item_4.entry.js +28 -4
  193. package/dist/esm/sd-select.entry.js +1 -1
  194. package/dist/esm/sd-tabs.entry.js +1 -1
  195. package/dist/esm/table-test.entry.js +1 -1
  196. package/dist/types/components/sd-floating-portal/sd-floating-portal.d.ts +1 -0
  197. package/dist/types/components/sd-popover/sd-popover.d.ts +12 -8
  198. package/dist/types/components/sd-select-v2/sd-select-v2-listbox/sd-select-v2-listbox.d.ts +4 -0
  199. package/dist/types/components/sd-select-v2/sd-select-v2-trigger/sd-select-v2-trigger.d.ts +6 -0
  200. package/dist/types/components/sd-select-v2/sd-select-v2.d.ts +8 -0
  201. package/dist/types/components.d.ts +27 -15
  202. package/hydrate/index.js +169 -109
  203. package/hydrate/index.mjs +169 -109
  204. package/package.json +1 -1
  205. package/dist/components/p-Cb1M05mf.js +0 -1
  206. package/dist/components/p-CsPyZohK.js +0 -1
  207. package/dist/components/p-DGPGMB_Z.js +0 -1
  208. package/dist/components/p-D_lyw4rN.js +0 -1
  209. package/dist/components/p-Diis5oCN.js +0 -1
  210. package/dist/components/p-DukibDDA.js +0 -1
  211. package/dist/design-system/p-5a0b0a1b.entry.js +0 -1
  212. package/dist/design-system/p-87222184.entry.js +0 -1
  213. package/dist/design-system/p-a7ef7465.entry.js +0 -1
@@ -102,7 +102,7 @@ export class SdBarcodeInput {
102
102
  '--sd-system-radius-field-sm': `${sizeTokens.radius}px`,
103
103
  '--sd-system-color-field-bg-default': BARCODE_INPUT_COLORS.bg.barcode,
104
104
  };
105
- return (h("sd-field", { key: '876c4e2cd41e62cd5486b7dec5ca1b34d10704b9', name: this.name, label: this.label, labelWidth: this.labelWidth, addonLabel: this.addonLabel, addonAlign: this.addonAlign, hint: this.hint, errorMessage: this.errorMessage, width: this.width, rules: this.rules, error: this.error, disabled: this.disabled, focused: this.focused, hovered: this.hovered, status: this.status, size: this.size, icon: this.icon, labelTooltip: this.labelTooltip, labelTooltipProps: this.labelTooltipProps, ref: el => (this.formField = el), onMouseEnter: () => (this.hovered = true), onMouseLeave: () => (this.hovered = false), style: cssVars }, h("label", { key: 'e01920c2565e1f4487ccd516f864b9f68fa0cfd8', class: "sd-barcode-input__content" }, h("slot", { key: 'd7be8745d6b0f510a11c88e1ca629f78fbc77348', name: "prefix" }), h("input", { key: 'f214f2930fc54a0466a10ce295e46885352e0e88', name: this.name, ref: el => (this.nativeEl = el), class: `sd-barcode-input__native ${this.inputClass}`, type: "text", value: this.internalValue || '', placeholder: this.placeholder, disabled: this.disabled, readonly: this.readonly, autofocus: this.autoFocus, onInput: this.handleInput, onFocus: event => this.handleFocus('focus', event), onBlur: event => this.handleFocus('blur', event), style: this.inputStyle }), h("slot", { key: 'a226a2c7ec43951ab9f048f8da25542784233e65', name: "suffix" }), this.clearable && this.internalValue && (h("sd-ghost-button", { key: 'ff7f8853b43401f3bf4be051e69d8c459ca418aa', icon: "close", ariaLabel: "clear", size: "xxs", disabled: this.disabled, class: "sd-barcode-input__clear-icon", onClick: async () => {
105
+ return (h("sd-field", { key: '5e1e5e5ba201ea743fa83df03f7712d7141332e7', name: this.name, label: this.label, labelWidth: this.labelWidth, addonLabel: this.addonLabel, addonAlign: this.addonAlign, hint: this.hint, errorMessage: this.errorMessage, width: this.width, rules: this.rules, error: this.error, disabled: this.disabled, focused: this.focused, hovered: this.hovered, status: this.status, size: this.size, icon: this.icon, labelTooltip: this.labelTooltip, labelTooltipProps: this.labelTooltipProps, ref: el => (this.formField = el), onMouseEnter: () => (this.hovered = true), onMouseLeave: () => (this.hovered = false), style: cssVars }, h("label", { key: '4b8d82acd91c247b148d1b16f3b3c9d4e69c178f', class: "sd-barcode-input__content" }, h("slot", { key: '0fb54ff8ebca25f348f1fdbb7b29f5e391beea9e', name: "prefix" }), h("input", { key: '9c1e3fd1bfa35cc663838dc0dc737497525a8aa6', name: this.name, ref: el => (this.nativeEl = el), class: `sd-barcode-input__native ${this.inputClass}`, type: "text", value: this.internalValue || '', placeholder: this.placeholder, disabled: this.disabled, readonly: this.readonly, autofocus: this.autoFocus, onInput: this.handleInput, onFocus: event => this.handleFocus('focus', event), onBlur: event => this.handleFocus('blur', event), style: this.inputStyle }), h("slot", { key: '6e060c721546d34ce6137986ba7204df90a55f51', name: "suffix" }), this.clearable && this.internalValue && (h("sd-ghost-button", { key: 'ded4ca906d1f25bbc80a7ba8e090eb24f507bb09', icon: "close", ariaLabel: "clear", size: "xxs", disabled: this.disabled, class: "sd-barcode-input__clear-icon", onClick: async () => {
106
106
  if (this.disabled)
107
107
  return;
108
108
  this.internalValue = '';
@@ -60,15 +60,15 @@ export class SdButtonV2 {
60
60
  render() {
61
61
  const { config, preset } = this.resolvedConfig;
62
62
  const hasLabel = Boolean(this.label);
63
- const iconOnly = !this.label && (Boolean(this.icon) !== Boolean(this.rightIcon));
63
+ const iconOnly = !this.label && Boolean(this.icon) !== Boolean(this.rightIcon);
64
64
  const accessibleName = iconOnly && this.ariaLabel.trim() ? this.ariaLabel : undefined;
65
- return (h("button", { key: '61dde2ec51ac5099909d38a7420568bfd4fcde0b', class: this.getButtonClasses(preset, config.size, hasLabel, iconOnly), type: this.type, disabled: this.disabled, "aria-label": accessibleName, style: {
65
+ return (h("button", { key: '9e81a8201a521c9c1e14c2c0145607189b8c3838', class: this.getButtonClasses(preset, config.size, hasLabel, iconOnly), type: this.type, disabled: this.disabled, "aria-label": accessibleName, style: {
66
66
  '--sd-button-v2-bg': config.color,
67
67
  '--sd-button-v2-bg-hover': PRESET_HOVER_BACKGROUNDS[preset],
68
68
  '--sd-button-v2-border': PRESET_BORDER_COLORS[preset],
69
69
  '--sd-button-v2-content': PRESET_CONTENT_COLORS[preset],
70
70
  '--sd-button-v2-accent': BUTTON_FOCUS_RING_COLOR,
71
- }, onClick: this.handleClick }, h("span", { key: 'dc433a47ace0d074503a2c0e5c47c4c8bfa6cb8c', class: "sd-button-v2__content" }, this.icon && (h("sd-icon", { key: '95e941490d78f1950f9f7759112fb714f191a504', class: "sd-button-v2__icon", name: this.icon, size: BUTTON_ICON_SIZES[config.size], color: "var(--sd-button-v2-current-icon)" })), this.label && h("span", { key: 'c13f3fb5bec105d7737ef1f9db7dcd4ca93ce5be', class: "sd-button-v2__label" }, this.label), this.rightIcon && (h("sd-icon", { key: 'fb20dde72eaab014ae0e658477db228c23eddea3', class: "sd-button-v2__icon sd-button-v2__icon--right", name: this.rightIcon, size: BUTTON_ICON_SIZES[config.size], color: "var(--sd-button-v2-current-icon)" })))));
71
+ }, onClick: this.handleClick }, h("span", { key: '42d8b7f20ab0b3e8e32a18f2e8b2af9251558413', class: "sd-button-v2__content" }, this.icon && (h("sd-icon", { key: '8430b5aebe8c7d41bddf8378441d4182ee9ab344', class: "sd-button-v2__icon", name: this.icon, size: BUTTON_ICON_SIZES[config.size], color: "var(--sd-button-v2-current-icon)" })), this.label && h("span", { key: '7a1865fb4472fb1e567c2adeb6a30e09665b6250', class: "sd-button-v2__label" }, this.label), this.rightIcon && (h("sd-icon", { key: '51738c13c5e518cf0d864beb9c6cc680d0b5c867', class: "sd-button-v2__icon sd-button-v2__icon--right", name: this.rightIcon, size: BUTTON_ICON_SIZES[config.size], color: "var(--sd-button-v2-current-icon)" })))));
72
72
  }
73
73
  static get is() { return "sd-button-v2"; }
74
74
  static get originalStyleUrls() {
@@ -3,7 +3,7 @@ export class SdCard {
3
3
  bordered = false;
4
4
  sdClass = '';
5
5
  render() {
6
- return (h(Fragment, { key: 'ce09898d7396b093f0f292700d5d6bd8b6249ad3' }, h("div", { key: 'df584d42ecf16b8ea3618238fb58e77cb7e80d9e', class: `sd-card ${this.bordered ? 'sd-card--bordered' : ''} ${this.sdClass}` }, h("slot", { key: 'e031effb829371ca8c001bcc5596b4c9d01c8951' }))));
6
+ return (h(Fragment, { key: 'fa3c7ed4a6fb93200c9faacc1aef1db51ed3050f' }, h("div", { key: '2e82506370c7f6873793053248bf28c2b5fe42ce', class: `sd-card ${this.bordered ? 'sd-card--bordered' : ''} ${this.sdClass}` }, h("slot", { key: 'a725bee33ea056e6662485f72dcd08ae96acf03e' }))));
7
7
  }
8
8
  static get is() { return "sd-card"; }
9
9
  static get originalStyleUrls() {
@@ -205,7 +205,7 @@ export class SdChip {
205
205
  '--sd-chip-font-weight': typography.fontWeight,
206
206
  '--sd-chip-line-height': typography.lineHeight,
207
207
  };
208
- return (h("span", { key: 'ec814d57fb4032de1370e56d61cd51b6e831312a', class: {
208
+ return (h("span", { key: '70ea5743cf806c5d12f8559bdb12abb2adf2af30', class: {
209
209
  'sd-chip': true,
210
210
  [`sd-chip--${state}`]: true,
211
211
  'sd-chip--disabled': this.disabled,
@@ -22,7 +22,7 @@ export class SdCircleProgress {
22
22
  arcStyle.strokeDashoffset = '0';
23
23
  }
24
24
  const c = CIRCLE_PROGRESS_VIEWBOX_SIZE / 2;
25
- return (h(Host, { key: '50b598305810f4f91c5afb7ede87c60178e4e6df', style: hostStyle }, h("svg", { key: '7edcf8a57bf5589910d08a47b64179222ce9c03b', class: "sd-circle-progress", viewBox: `0 0 ${CIRCLE_PROGRESS_VIEWBOX_SIZE} ${CIRCLE_PROGRESS_VIEWBOX_SIZE}`, xmlns: "http://www.w3.org/2000/svg" }, h("circle", { key: '43810b096bdd644e4b09bfd770de6b0194afe3c8', class: "sd-circle-progress__track", cx: c, cy: c, r: CIRCLE_PROGRESS_RADIUS, fill: "none", "stroke-width": CIRCLE_PROGRESS_STROKE_WIDTH }), h("circle", { key: '701cfdd0eadabea530d3a9deada993a568f3fb19', class: "sd-circle-progress__arc", cx: c, cy: c, r: CIRCLE_PROGRESS_RADIUS, fill: "none", "stroke-width": CIRCLE_PROGRESS_STROKE_WIDTH, "stroke-linecap": "round", style: arcStyle }))));
25
+ return (h(Host, { key: 'ce120476470e03e49d5a50a0395bb21955163019', style: hostStyle }, h("svg", { key: 'ad0916ef87d9a04415d4712e3e84d44fcb8b40d7', class: "sd-circle-progress", viewBox: `0 0 ${CIRCLE_PROGRESS_VIEWBOX_SIZE} ${CIRCLE_PROGRESS_VIEWBOX_SIZE}`, xmlns: "http://www.w3.org/2000/svg" }, h("circle", { key: 'db230e486fe5bfd1325ddb4510558cadea09032f', class: "sd-circle-progress__track", cx: c, cy: c, r: CIRCLE_PROGRESS_RADIUS, fill: "none", "stroke-width": CIRCLE_PROGRESS_STROKE_WIDTH }), h("circle", { key: '9e1c53e5d6dc75c6e5c9a3b79b329847b17b10d6', class: "sd-circle-progress__arc", cx: c, cy: c, r: CIRCLE_PROGRESS_RADIUS, fill: "none", "stroke-width": CIRCLE_PROGRESS_STROKE_WIDTH, "stroke-linecap": "round", style: arcStyle }))));
26
26
  }
27
27
  static get is() { return "sd-circle-progress"; }
28
28
  static get originalStyleUrls() {
@@ -67,9 +67,9 @@ export class SdConfirmModal {
67
67
  render() {
68
68
  const iconName = CONFIRM_MODAL_ICON_MAP[this.type];
69
69
  const iconColor = CONFIRM_MODAL_ICON_COLOR[this.type];
70
- return (h("div", { key: '0ec5edeaef4920bb9193c225e5b39465e138eb25', class: "sd-confirm-modal" }, h("sd-ghost-button", { key: '78db09f415f399302048280a2d3eb6eb737c1d47', class: "sd-confirm-modal__close-button", icon: "close", ariaLabel: "close", onClick: () => this.close.emit() }), iconName && (h("sd-icon", { key: '30921f2c1fc59b7baa608c5b270f45cced3b4a69', class: "sd-confirm-modal__icon", name: iconName, size: TITLE_ICON_SIZE, color: iconColor })), h("h2", { key: 'fdb1fa855a980ccad41101de0b1b0fc87a8a503b', class: `sd-confirm-modal__title ${this.titleClass}` }, this.modalTitle), h("div", { key: 'e3539c1d7e82c957ba65e3d63e18e74108ed4ccc', class: "sd-confirm-modal__body" }, (this.topMessage ?? []).length > 0 && (h("div", { key: '010bb3a2918672714a664cc9afa561d82ea2af30', class: "sd-confirm-modal__message" }, (this.topMessage ?? []).map(msg => (h("p", { class: "sd-confirm-modal__message-text", innerHTML: msg }))))), this.showContentBox && (h("div", { key: '6501c456b1cac2fc14e62e8094c5996472eb10cc', class: "sd-confirm-modal__content-box" }, this.tagContents ? (h("div", { class: "sd-confirm-modal__custom-content", ref: el => {
70
+ return (h("div", { key: '527f7377ba0ccf59b2a212a885e05b0cfa3b3431', class: "sd-confirm-modal" }, h("sd-ghost-button", { key: '2423769fb6e746cf1e89a9d28a11cf7fc6d70ded', class: "sd-confirm-modal__close-button", icon: "close", ariaLabel: "close", onClick: () => this.close.emit() }), iconName && (h("sd-icon", { key: '44f12a1fc2b19cf55ac75011af503ae0bab3188d', class: "sd-confirm-modal__icon", name: iconName, size: TITLE_ICON_SIZE, color: iconColor })), h("h2", { key: '50406274eca8bd43fec1cdd50d8e348e2270d11c', class: `sd-confirm-modal__title ${this.titleClass}` }, this.modalTitle), h("div", { key: 'a320636aa68da78881583005d3a2d5af9252f566', class: "sd-confirm-modal__body" }, (this.topMessage ?? []).length > 0 && (h("div", { key: '6702a46ad0d3db59b1bda03e506515ba302dd292', class: "sd-confirm-modal__message" }, (this.topMessage ?? []).map(msg => (h("p", { class: "sd-confirm-modal__message-text", innerHTML: msg }))))), this.showContentBox && (h("div", { key: '1fa38c64b283b38a2b2dd58f772f1968c06be04d', class: "sd-confirm-modal__content-box" }, this.tagContents ? (h("div", { class: "sd-confirm-modal__custom-content", ref: el => {
71
71
  this.customContentRef = el;
72
- } })) : (h("slot", { onSlotchange: () => this.syncHasSlottedContent() }, this.tagLabel && h("sd-tag", { name: this.tagPreset, label: this.tagLabel }), this.slotLabel && (h("span", { class: "sd-confirm-modal__slot-label" }, this.slotLabel)))))), (this.bottomMessage ?? []).length > 0 && (h("div", { key: 'fb38b92bc7ee05ede36eab14d65062a0b6289762', class: "sd-confirm-modal__message" }, (this.bottomMessage ?? []).map(msg => (h("p", { class: "sd-confirm-modal__message-text", innerHTML: msg })))))), h("div", { key: '7834c5baf84a1537e511f77f1d2bb2c018b2e5df', class: "sd-confirm-modal__button" }, this.subButtonLabel && (h("sd-button-v2", { key: 'ca7a8fa074bde0339052adbacb52a60459e3da23', name: SUB_BUTTON_PRESET, label: this.subButtonLabel, onSdClick: () => this.cancel.emit() })), h("sd-button-v2", { key: '5e3238161e753a8ea2a0266d099ff03a89b63871', name: this.resolvedMainButton, label: this.mainButtonLabel, onSdClick: () => this.ok.emit() }))));
72
+ } })) : (h("slot", { onSlotchange: () => this.syncHasSlottedContent() }, this.tagLabel && h("sd-tag", { name: this.tagPreset, label: this.tagLabel }), this.slotLabel && (h("span", { class: "sd-confirm-modal__slot-label" }, this.slotLabel)))))), (this.bottomMessage ?? []).length > 0 && (h("div", { key: '217a024876abf99c9eddc7721a71ee7ce2f09308', class: "sd-confirm-modal__message" }, (this.bottomMessage ?? []).map(msg => (h("p", { class: "sd-confirm-modal__message-text", innerHTML: msg })))))), h("div", { key: '58b585e8a4481e12df904e764357d50c30896987', class: "sd-confirm-modal__button" }, this.subButtonLabel && (h("sd-button-v2", { key: 'd066d5deb7a6993fbc7ff38ad9015dc3148b3241', name: SUB_BUTTON_PRESET, label: this.subButtonLabel, onSdClick: () => this.cancel.emit() })), h("sd-button-v2", { key: '920e596824d7fadf478f520f1e7814f5ab27aa95', name: this.resolvedMainButton, label: this.mainButtonLabel, onSdClick: () => this.ok.emit() }))));
73
73
  }
74
74
  static get is() { return "sd-confirm-modal"; }
75
75
  static get originalStyleUrls() {
@@ -133,7 +133,7 @@ export class SdDatePickerCalendar {
133
133
  '--calendar-day-font-weight': CALENDAR_LAYOUT.day.fontWeight,
134
134
  '--calendar-day-bold-font-weight': CALENDAR_LAYOUT.day.boldFontWeight,
135
135
  };
136
- return (h("div", { key: 'd23c08b38605dad1e5b3266a7e1ad72e0aeb7eb9', class: "sd-date-picker-calendar", style: cssVars }, h("div", { key: '1c25bd19272e1e7f4e81601a0ffa13d7b882e4e4', class: "sd-date-picker-calendar__header" }, h("div", { key: 'aed9a7ff3282d363c61b49dde6b6e9d6131a456c', class: "sd-date-picker-calendar__nav-group" }, h("sd-ghost-button", { key: '68ae361b1cc4bfd9351b093aee6d4193f2ac5549', ariaLabel: "prevYear", size: "xxs", icon: "chevronLeft", onClick: this.goPrevYear }), h("span", { key: 'e17d9a962faf96e8b70b0890e59e4c2e5ca515b0', class: "sd-date-picker-calendar__label" }, this.currentYear), h("sd-ghost-button", { key: 'ab65ce4f9f64fcc9f4084c073a0a0625ceeb9f2d', ariaLabel: "nextYear", size: "xxs", icon: "chevronRight", onClick: this.goNextYear })), h("span", { key: 'a01cb1691e9f112efdd6fd632c7594aa082d7f9f', class: "sd-date-picker-calendar__divider", "aria-hidden": "true" }), h("div", { key: '577085a6007e5e2c6b291bbe0a27c0ff4ec4ca78', class: "sd-date-picker-calendar__nav-group sd-date-picker-calendar__nav-group-month" }, h("sd-ghost-button", { key: 'c6b51b60d1bcc06e537800c10946ac49639fcb2c', ariaLabel: "prevMonth", size: "xxs", icon: "chevronLeft", onClick: this.goPrevMonth }), h("span", { key: '836008030a0d66533ffba9392fee0234a9b0b425', class: "sd-date-picker-calendar__label sd-date-picker-calendar__label-month" }, this.currentMonth, "\uC6D4"), h("sd-ghost-button", { key: 'a602cb65934157c171201f01699aacf1eeee8a57', ariaLabel: "nextMonth", size: "xxs", icon: "chevronRight", onClick: this.goNextMonth }))), h("div", { key: '0c1a368d4e878b2942f2b37ddff47ac13262c580', class: "sd-date-picker-calendar__week" }, WEEK_LABELS.map(label => (h("span", { key: label, class: "sd-date-picker-calendar__week-cell" }, label)))), h("div", { key: '31cfa57cd8890a7cd70209c771598d6350009cc6', class: "sd-date-picker-calendar__grid" }, this.cells.map(cell => {
136
+ return (h("div", { key: '8b1562e7be35eefd8b05c66931f6288edc48d4f7', class: "sd-date-picker-calendar", style: cssVars }, h("div", { key: '0a5b4eeeb54eed144fcb89a2030fa33783e187e3', class: "sd-date-picker-calendar__header" }, h("div", { key: '9d522b1a52afba7f035f2898aaec7252340f8f57', class: "sd-date-picker-calendar__nav-group" }, h("sd-ghost-button", { key: '944e17391090faf35e68d39b2c8c8de04ef115e5', ariaLabel: "prevYear", size: "xxs", icon: "chevronLeft", onClick: this.goPrevYear }), h("span", { key: '2b708445cb919ecec6a72b9532a83d09c3324f77', class: "sd-date-picker-calendar__label" }, this.currentYear), h("sd-ghost-button", { key: '501f4ac1ba04fe55856f891b8738454abe358d6b', ariaLabel: "nextYear", size: "xxs", icon: "chevronRight", onClick: this.goNextYear })), h("span", { key: 'dff5ff19a16897c79ac85c887ebe358ecefb910b', class: "sd-date-picker-calendar__divider", "aria-hidden": "true" }), h("div", { key: 'cee819c90306c593e201aefcf278ecb6aeca2ee6', class: "sd-date-picker-calendar__nav-group sd-date-picker-calendar__nav-group-month" }, h("sd-ghost-button", { key: '73c2fddb26e26fed12218a8320dce522c5de1303', ariaLabel: "prevMonth", size: "xxs", icon: "chevronLeft", onClick: this.goPrevMonth }), h("span", { key: 'abaa67ebd52b3e906989b84ead4a74187da7a176', class: "sd-date-picker-calendar__label sd-date-picker-calendar__label-month" }, this.currentMonth, "\uC6D4"), h("sd-ghost-button", { key: 'e90263362f21b2521bea4e587f801fa2994a618d', ariaLabel: "nextMonth", size: "xxs", icon: "chevronRight", onClick: this.goNextMonth }))), h("div", { key: '6913c667bd423d5930f7c3b802b391e15c6522c9', class: "sd-date-picker-calendar__week" }, WEEK_LABELS.map(label => (h("span", { key: label, class: "sd-date-picker-calendar__week-cell" }, label)))), h("div", { key: '7c85954ecc18216ebab15f9249882f88965e6490', class: "sd-date-picker-calendar__grid" }, this.cells.map(cell => {
137
137
  const isSelected = cell.inCurrentMonth && !!this.value && this.value === cell.date;
138
138
  const isToday = cell.inCurrentMonth && today === cell.date;
139
139
  const isDisabled = cell.inCurrentMonth && this.isDisabled(cell.date);
@@ -31,10 +31,10 @@ export class SdDatePickerTrigger {
31
31
  ? DATEPICKER_COLORS.icon.disabled
32
32
  : DATEPICKER_COLORS.icon.default,
33
33
  };
34
- return (h("div", { key: 'ebe886b3df3b50c53d31081f6ad7e251721b5cb1', class: {
34
+ return (h("div", { key: 'b68ee54fcd6dc1fe5aa4e1f157ebd2f7603240c6', class: {
35
35
  'sd-date-picker-trigger': true,
36
36
  'sd-date-picker-trigger--disabled': this.disabled,
37
- }, style: cssVars, onClick: this.handleClick }, h("sd-icon", { key: '563d3bb0221d5ba17788e1fa1e970fd2d702a4fd', name: "date", size: Number(sizeTokens.iconSize), color: "var(--trigger-icon-color)", class: "sd-date-picker-trigger__icon" }), h("span", { key: '3bfc4c6671e70571a4b71a62cf0fd78f0297027f', class: "sd-date-picker-trigger__text" }, hasValue ? this.displayText : this.placeholder)));
37
+ }, style: cssVars, onClick: this.handleClick }, h("sd-icon", { key: '8cf46b98ab2f4839e631af68451185fd849ed45f', name: "date", size: Number(sizeTokens.iconSize), color: "var(--trigger-icon-color)", class: "sd-date-picker-trigger__icon" }), h("span", { key: '971afb2a5c045800ebdd96df579df362ccc950c6', class: "sd-date-picker-trigger__text" }, hasValue ? this.displayText : this.placeholder)));
38
38
  }
39
39
  static get is() { return "sd-date-picker-trigger"; }
40
40
  static get originalStyleUrls() {
@@ -93,9 +93,9 @@ export class SdDatePicker {
93
93
  '--sd-system-color-field-border-focus': DATEPICKER_COLORS.border.focus,
94
94
  '--sd-system-color-field-bg-default': DATEPICKER_COLORS.bg.default,
95
95
  };
96
- return (h("sd-field", { key: '1e0bdacf53850916778544e63ce11d5aab06eafc', name: this.fieldName || this.internalName, label: this.label, labelWidth: this.labelWidth, addonLabel: this.addonLabel, addonAlign: this.addonAlign, hint: this.hint, errorMessage: this.errorMessage, width: this.width, rules: this.rules, error: this.error, disabled: this.disabled, focused: this.focused, hovered: this.hovered, size: this.size, icon: this.icon, labelTooltip: this.labelTooltip, labelTooltipProps: this.labelTooltipProps, ref: el => (this.formField = el), onMouseEnter: () => (this.hovered = true), onMouseLeave: () => (this.hovered = false), style: cssVars }, h("div", { key: '63795f75a1b3723c2af166343dce5fd33afd5be2', class: "sd-date-picker", ref: el => {
96
+ return (h("sd-field", { key: 'b8a0f70ce797b4d28997c1870641077d9c067347', name: this.fieldName || this.internalName, label: this.label, labelWidth: this.labelWidth, addonLabel: this.addonLabel, addonAlign: this.addonAlign, hint: this.hint, errorMessage: this.errorMessage, width: this.width, rules: this.rules, error: this.error, disabled: this.disabled, focused: this.focused, hovered: this.hovered, size: this.size, icon: this.icon, labelTooltip: this.labelTooltip, labelTooltipProps: this.labelTooltipProps, ref: el => (this.formField = el), onMouseEnter: () => (this.hovered = true), onMouseLeave: () => (this.hovered = false), style: cssVars }, h("div", { key: 'fe9117f48031e5524e2c751586f4b584a015000c', class: "sd-date-picker", ref: el => {
97
97
  this.triggerRef = el;
98
- } }, h("sd-date-picker-trigger", { key: 'adea2cbad36285f546d3c29b66f2c74044427736', displayText: this.value ?? '', placeholder: this.placeholder, disabled: this.disabled, size: this.size, onSdTriggerClick: this.handleTriggerClick })), (this.isOpen || this.isAnimatingOut) && (h("sd-portal", { key: '4da6ec2a3644201b6579fc2e9838d03ef22b7e57', open: this.isOpen, parentRef: this.triggerRef, onSdClose: () => this.closeDropdown() }, h("sd-date-picker-calendar", { key: '4b7e3757b7232110ec9865346fcd68868ac68081', value: this.value, selectable: this.selectable, onSdSelect: this.handleSelect, onSdViewChange: this.handleViewChange })))));
98
+ } }, h("sd-date-picker-trigger", { key: 'd1bbcccf9de8b9aadb56291fdd2fa335af8c82dd', displayText: this.value ?? '', placeholder: this.placeholder, disabled: this.disabled, size: this.size, onSdTriggerClick: this.handleTriggerClick })), (this.isOpen || this.isAnimatingOut) && (h("sd-portal", { key: '37a5c22f48e077e943a3701d4d686a52c102459e', open: this.isOpen, parentRef: this.triggerRef, onSdClose: () => this.closeDropdown() }, h("sd-date-picker-calendar", { key: 'dcc2248ad0963fb924f85aad59a6b24d7f3c23d8', value: this.value, selectable: this.selectable, onSdSelect: this.handleSelect, onSdViewChange: this.handleViewChange })))));
99
99
  }
100
100
  static get is() { return "sd-date-picker"; }
101
101
  static get originalStyleUrls() {
@@ -239,7 +239,7 @@ export class SdDateRangePickerCalendar {
239
239
  '--range-panel-gap': `${RANGE_LAYOUT.panelGap}px`,
240
240
  '--range-divider': RANGE_LAYOUT.divider,
241
241
  };
242
- return (h(Fragment, { key: '595c17bc338f96117d87c5ac3c2b26895b9e5283' }, h("div", { key: '39ce76545cc612422ab5024a2838fbc9faabb9a8', class: "sd-date-range-picker-calendar", style: cssVars }, this.renderYearNav(), h("div", { key: '21764e31a3fbcfa8de22d1f243f5739fc02c38fd', class: "sd-date-range-picker-calendar__panels" }, this.renderPanel(this.currentYear, this.currentMonth, true), h("span", { key: '402ea75f3bf8b58d30c34238285eef7099118e28', class: "sd-date-range-picker-calendar__divider", "aria-hidden": "true" }), this.renderPanel(this.rightYear, this.rightMonth, false)))));
242
+ return (h(Fragment, { key: 'e925fa935f807e22b22a2f65b4af5b2568865781' }, h("div", { key: 'be601b16d179d91292b58c3b70ce6a4aa4f5e59a', class: "sd-date-range-picker-calendar", style: cssVars }, this.renderYearNav(), h("div", { key: 'e193b983a7eb75a227ea8e1d13839dcc9e875588', class: "sd-date-range-picker-calendar__panels" }, this.renderPanel(this.currentYear, this.currentMonth, true), h("span", { key: '6f2ea95c2fd490a46ac40f6a526ca028920bc564', class: "sd-date-range-picker-calendar__divider", "aria-hidden": "true" }), this.renderPanel(this.rightYear, this.rightMonth, false)))));
243
243
  }
244
244
  static get is() { return "sd-date-range-picker-calendar"; }
245
245
  static get originalStyleUrls() {
@@ -186,7 +186,7 @@ export class SdDropdownButton extends BaseDropdownEvent {
186
186
  }
187
187
  render() {
188
188
  const { config, preset } = this.resolvedConfig;
189
- return (h("div", { key: '5493b94262ecdd20a5fbb7ad2993dd473b1ae9e3', class: "sd-dropdown-button" }, h("button", { key: 'a64187dec0d84dce3532f8b3d7112ed6d6ae8e0d', type: "button", class: this.getTriggerClasses(preset, config.size, this.disabled, this.isOpen), disabled: this.disabled, "aria-haspopup": "menu", "aria-expanded": String(this.isOpen), onClick: this.toggleDropdown, ref: el => (this.triggerRef = el), style: {
189
+ return (h("div", { key: 'ce06d2b7e13cb234bb6e7393939d2ccd834801a5', class: "sd-dropdown-button" }, h("button", { key: '4bd3e86eec90698188a834eb35ff922dee7d1855', type: "button", class: this.getTriggerClasses(preset, config.size, this.disabled, this.isOpen), disabled: this.disabled, "aria-haspopup": "menu", "aria-expanded": String(this.isOpen), onClick: this.toggleDropdown, ref: el => (this.triggerRef = el), style: {
190
190
  '--sd-dropdown-button-bg': config.color,
191
191
  '--sd-dropdown-button-bg-hover': PRESET_HOVER_BACKGROUNDS[preset],
192
192
  '--sd-dropdown-button-border': PRESET_BORDER_COLORS[preset],
@@ -196,10 +196,10 @@ export class SdDropdownButton extends BaseDropdownEvent {
196
196
  '--sd-dropdown-button-disabled-bg': DROPDOWN_DISABLED_BACKGROUND,
197
197
  '--sd-dropdown-button-disabled-content': DROPDOWN_DISABLED_TEXT,
198
198
  '--sd-dropdown-button-disabled-border': DROPDOWN_DISABLED_BORDER,
199
- } }, h("span", { key: '71ed27650dcb1beb1cfa4864a6449ab190f04829', class: "sd-dropdown-button__trigger-label" }, this.label), h("span", { key: '6c34575c0587fb288165cf0e15db52ed6b3f50db', class: "sd-dropdown-button__trigger-divider", "aria-hidden": "true" }), h("span", { key: '0544b9d36657a80b5f51b9c1849d55ab7a7dbdc2', class: {
199
+ } }, h("span", { key: '2baea4f0777ec766625d4ae1fb14739aa61ca114', class: "sd-dropdown-button__trigger-label" }, this.label), h("span", { key: 'b37a94dd23d26a1444ddccc192b2a5ab2388bc64', class: "sd-dropdown-button__trigger-divider", "aria-hidden": "true" }), h("span", { key: 'b903ff916c3ae1ab189cd08877a57940e45d8aeb', class: {
200
200
  'sd-dropdown-button__trigger-icon': true,
201
201
  'sd-dropdown-button__trigger-icon--open': this.isOpen,
202
- }, "aria-hidden": "true" }, h("sd-icon", { key: 'cd73a4dffbe1fc31c76fea221cd080b455bb3131', name: "chevronDown", size: DROPDOWN_CHEVRON_ICON_SIZE[config.size], color: "var(--sd-dropdown-button-current-content)" }))), this.renderDropdown(preset)));
202
+ }, "aria-hidden": "true" }, h("sd-icon", { key: '2eac1eabd2677decb0c1cfe4f518a7da9aca60ff', name: "chevronDown", size: DROPDOWN_CHEVRON_ICON_SIZE[config.size], color: "var(--sd-dropdown-button-current-content)" }))), this.renderDropdown(preset)));
203
203
  }
204
204
  static get is() { return "sd-dropdown-button"; }
205
205
  static get originalStyleUrls() {
@@ -170,20 +170,20 @@ export class SdField {
170
170
  : {}),
171
171
  }
172
172
  : {};
173
- return (h("div", { key: '967c6e44e514001350f0ca7eedf97e12ec8bac89', class: {
173
+ return (h("div", { key: '1968d09203629bca596f6569720d532cae387654', class: {
174
174
  'sd-field': true,
175
175
  'sd-field--has-label': !!this.label,
176
176
  'sd-field--has-addon': !!addon,
177
177
  [this.fieldStatus]: !!this.fieldStatus,
178
- }, style: { ...sizeCssVars, ...labelCssVars, ...addonCssVars } }, h("div", { key: '238c06bb4ea963c5e7b1ee31dfc7f4b7f4b88af1', class: "sd-field__wrapper" }, this.renderLabel(this.label), h("div", { key: '2144211ec7096b3a36dab1bd494b633604fe942b', class: "sd-field__main", style: this.width
178
+ }, style: { ...sizeCssVars, ...labelCssVars, ...addonCssVars } }, h("div", { key: 'c373b7878033026747c8c4fa5d984d036d391cd8', class: "sd-field__wrapper" }, this.renderLabel(this.label), h("div", { key: 'd6a379920eded2abb88b9f9260108a32c80ca888', class: "sd-field__main", style: this.width
179
179
  ? {
180
180
  width: typeof this.width === 'number' ? `${this.width}px` : this.width,
181
181
  flex: 'none',
182
182
  }
183
- : {} }, h("div", { key: '8f5e0e010b5fe4ec60c6cae29a9a4510ba0f34a5', class: {
183
+ : {} }, h("div", { key: '25aa5a21fed7d1482629e1f0c07fc2e3b5440c3e', class: {
184
184
  'sd-field__control': true,
185
185
  'sd-field__control--has-addon': !!addon,
186
- } }, addon && h("div", { key: '853c73197999da0f753335a06e38aa850d0e9230', class: "sd-field__addon" }, addon), h("slot", { key: '7e6d1d965d83df16e6294d259d1e25b2fab864cd' })), this.errorMsg || this.errorMessage ? (h("div", { class: "sd-field__error-message" }, this.errorMsg || this.errorMessage)) : (this.hint && h("div", { class: "sd-field__hint" }, this.hint))))));
186
+ } }, addon && h("div", { key: 'e6b9edaaef227f202b8cd1b0f921dd3a07cbd296', class: "sd-field__addon" }, addon), h("slot", { key: 'ecee94ec7996f99738508165c58afd07eced9d24' })), this.errorMsg || this.errorMessage ? (h("div", { class: "sd-field__error-message" }, this.errorMsg || this.errorMessage)) : (this.hint && h("div", { class: "sd-field__hint" }, this.hint))))));
187
187
  }
188
188
  renderLabel(label) {
189
189
  if (!label)
@@ -147,8 +147,13 @@ export class SdFloatingPopover {
147
147
  return;
148
148
  this.close.emit();
149
149
  }
150
+ handleKeydown(e) {
151
+ if (e.key === 'Escape') {
152
+ this.close.emit();
153
+ }
154
+ }
150
155
  render() {
151
- return h("slot", { key: 'f463fadca5060ebc995d8115575404611b94fb11' });
156
+ return h("slot", { key: 'c10da1f592b785b1c7540ba76e9d1768abeb0c11' });
152
157
  }
153
158
  static get is() { return "sd-floating-portal"; }
154
159
  static get originalStyleUrls() {
@@ -335,6 +340,12 @@ export class SdFloatingPopover {
335
340
  "target": "window",
336
341
  "capture": false,
337
342
  "passive": false
343
+ }, {
344
+ "name": "keydown",
345
+ "method": "handleKeydown",
346
+ "target": "window",
347
+ "capture": false,
348
+ "passive": false
338
349
  }];
339
350
  }
340
351
  }
@@ -35,7 +35,7 @@ export class SdGhostButton {
35
35
  ? GHOST_BUTTON_DISABLED_COLORS[this.intent ?? 'default']
36
36
  : GHOST_BUTTON_CONTENT_COLORS[this.intent ?? 'default'];
37
37
  const accessibleName = this.ariaLabel.trim() || undefined;
38
- return (h("button", { key: '690151271d15b4a3e07b47021f368647cc9daf62', class: {
38
+ return (h("button", { key: '4d5159cb897b6c468380f18eba1eca218d24920e', class: {
39
39
  'sd-ghost-button': true,
40
40
  'sd-ghost-button--disabled': this.disabled,
41
41
  }, type: "button", disabled: this.disabled, "aria-label": accessibleName, style: {
@@ -44,7 +44,7 @@ export class SdGhostButton {
44
44
  '--sd-ghost-button-hover-bg': GHOST_BUTTON_HOVER_BG_COLORS[this.intent ?? 'default'],
45
45
  '--sd-ghost-button-hover-opacity': GHOST_BUTTON_HOVER_OPACITY,
46
46
  '--sd-ghost-button-accent': GHOST_BUTTON_FOCUS_RING_COLOR,
47
- }, onClick: this.handleClick }, h("sd-icon", { key: '9769fff9f694e7d1fa2cba94fa8e80498d0afe2e', name: this.icon, size: sizeConfig.icon, color: contentColor })));
47
+ }, onClick: this.handleClick }, h("sd-icon", { key: '0461580c901aea244a3d0e693fb94fd6354873ab', name: this.icon, size: sizeConfig.icon, color: contentColor })));
48
48
  }
49
49
  static get is() { return "sd-ghost-button"; }
50
50
  static get originalStyleUrls() {
@@ -112,12 +112,12 @@ export class SdInput {
112
112
  '--sd-system-size-field-sm-height': `${sizeTokens.height}px`,
113
113
  '--sd-system-radius-field-sm': `${sizeTokens.radius}px`,
114
114
  };
115
- return (h("sd-field", { key: '3b607f0075786647d48ce470d40745e4d5fdcdc1', name: this.name, label: this.label, labelWidth: this.labelWidth, addonLabel: this.addonLabel, addonAlign: this.addonAlign, hint: this.hint, errorMessage: this.errorMessage, width: this.width, rules: this.rules, error: this.error, disabled: this.disabled, focused: this.focused, hovered: this.hovered, status: this.status, size: this.size, icon: this.icon, labelTooltip: this.labelTooltip, labelTooltipProps: this.labelTooltipProps, ref: el => (this.formField = el), onMouseEnter: () => (this.hovered = true), onMouseLeave: () => (this.hovered = false), style: cssVars }, h("label", { key: '02902d50bbc3275860e814a5d354e83eeed72373', class: "sd-input__content" }, h("slot", { key: '4fb6e53a98853c67e847cdd38b8ddbb606e3f0a1', name: "prefix" }), h("input", { key: '291841a908b8502790f09833f1a30dc56f24ff52', name: this.name, ref: el => (this.nativeEl = el), class: `sd-input__native ${this.inputClass}`, type: this.type === 'password' && this.passwordVisible ? 'text' : this.type, value: this.internalValue || '', placeholder: this.placeholder, disabled: this.disabled, readonly: this.readonly, autofocus: this.autoFocus, autocomplete: this.autocomplete || undefined, maxlength: this.maxlength, minlength: this.minlength, inputmode: this.inputmode, enterkeyhint: this.enterkeyhint, spellcheck: this.spellcheck, onInput: this.handleInput, onFocus: event => this.handleFocus('focus', event), onBlur: event => this.handleFocus('blur', event), style: this.inputStyle }), h("slot", { key: '13e21f184a9dcee81a1b6d3c11b9137a0ac7203e', name: "suffix" }), this.clearable && this.internalValue && !this.disabled && (h("sd-ghost-button", { key: '4e708928b8465d6e8d5c1b6f4a983a9d8c1c8784', icon: "close", ariaLabel: "clear", size: "xxs", disabled: this.disabled, class: "sd-input__clear-icon", onClick: async () => {
115
+ return (h("sd-field", { key: '6270fb99043a06aa9a4c2ead77007e6c03adafef', name: this.name, label: this.label, labelWidth: this.labelWidth, addonLabel: this.addonLabel, addonAlign: this.addonAlign, hint: this.hint, errorMessage: this.errorMessage, width: this.width, rules: this.rules, error: this.error, disabled: this.disabled, focused: this.focused, hovered: this.hovered, status: this.status, size: this.size, icon: this.icon, labelTooltip: this.labelTooltip, labelTooltipProps: this.labelTooltipProps, ref: el => (this.formField = el), onMouseEnter: () => (this.hovered = true), onMouseLeave: () => (this.hovered = false), style: cssVars }, h("label", { key: 'aaef18c323710235b41d76b26a21380cadcc6e0f', class: "sd-input__content" }, h("slot", { key: 'fd5d5845acf9d5351dec5af84e09d91246de8a68', name: "prefix" }), h("input", { key: '8b4dd1eab6488a29daec6e6dde5238b319001d5b', name: this.name, ref: el => (this.nativeEl = el), class: `sd-input__native ${this.inputClass}`, type: this.type === 'password' && this.passwordVisible ? 'text' : this.type, value: this.internalValue || '', placeholder: this.placeholder, disabled: this.disabled, readonly: this.readonly, autofocus: this.autoFocus, autocomplete: this.autocomplete || undefined, maxlength: this.maxlength, minlength: this.minlength, inputmode: this.inputmode, enterkeyhint: this.enterkeyhint, spellcheck: this.spellcheck, onInput: this.handleInput, onFocus: event => this.handleFocus('focus', event), onBlur: event => this.handleFocus('blur', event), style: this.inputStyle }), h("slot", { key: '79918e68de3045b509a27d8567e095665040689b', name: "suffix" }), this.clearable && this.internalValue && !this.disabled && (h("sd-ghost-button", { key: 'f5358346a20830c1fef955a2bb6783156b251178', icon: "close", ariaLabel: "clear", size: "xxs", disabled: this.disabled, class: "sd-input__clear-icon", onClick: async () => {
116
116
  if (this.disabled)
117
117
  return;
118
118
  this.internalValue = '';
119
119
  await this.formField?.sdValidate();
120
- } })), this.type === 'password' && (h("sd-ghost-button", { key: 'cc87104d0c9ef69659041fe233b3e432b62ed0b8', icon: this.passwordVisible ? 'visibilityOn' : 'visibilityOff', ariaLabel: "visibility", size: "xxs", disabled: this.disabled, class: "sd-input__password-icon", onClick: () => {
120
+ } })), this.type === 'password' && (h("sd-ghost-button", { key: '77108ea21a4b9afc9e9051c98d4d49bcb571cffb', icon: this.passwordVisible ? 'visibilityOn' : 'visibilityOff', ariaLabel: "visibility", size: "xxs", disabled: this.disabled, class: "sd-input__password-icon", onClick: () => {
121
121
  if (this.disabled)
122
122
  return;
123
123
  this.passwordVisible = !this.passwordVisible;
@@ -10,10 +10,10 @@ export class SdLoadingContainer {
10
10
  this.visible = false;
11
11
  }
12
12
  render() {
13
- return (h("div", { key: '8236579ed01f703fb105576c2fd575b157b3aa76', class: {
13
+ return (h("div", { key: '7887102a2b03f911fad57784b3b45b12d2265ae2', class: {
14
14
  'sd-loading-container': true,
15
15
  'sd-loading-container--visible': this.visible,
16
- }, "aria-hidden": this.visible ? 'false' : 'true' }, h("div", { key: '176473a839add91a86d207544e9cc5862b13d04f', class: "sd-loading-container__backdrop" }), h("div", { key: '2776ed326caa6870a79b94079ff6e778ee560b02', class: "sd-loading-container__content" }, h("sd-circle-progress", { key: '6977bfd46e06e9c13492a15b5081c98446770de5', indeterminate: true, type: "inverse" }), this.message && (h("p", { key: '7cea458c498a4682b1d4d5f07e059ed8e4905df0', class: "sd-loading-container__message" }, this.message)))));
16
+ }, "aria-hidden": this.visible ? 'false' : 'true' }, h("div", { key: '0f815029574907643be52b50a6c8be8e66ced072', class: "sd-loading-container__backdrop" }), h("div", { key: '9ea0faf8ed4094b3fd93a6e29c55130d58b245fe', class: "sd-loading-container__content" }, h("sd-circle-progress", { key: '6e89faad35f282d91098c213879c0ecf8d05a5ed', indeterminate: true, type: "inverse" }), this.message && (h("p", { key: '05d3128ecf91a372a426a2508535c7789aff9bc1', class: "sd-loading-container__message" }, this.message)))));
17
17
  }
18
18
  static get is() { return "sd-loading-container"; }
19
19
  static get originalStyleUrls() {
@@ -42,7 +42,7 @@ export class SdLoadingModal {
42
42
  '--sd-loading-modal-width': this.toCssSize(this.width) ?? `${LOADING_MODAL_LAYOUT.minWidth}px`,
43
43
  '--sd-loading-modal-height': this.toCssSize(this.height) ?? `${LOADING_MODAL_LAYOUT.minHeight}px`,
44
44
  };
45
- return (h(Host, { key: '8ecd5db2ffde201dd0c7d3c58b1da6b85b5a4116', style: hostStyle }, h("div", { key: '61f79b16b22d5ab4bb4dca03f88568174cfcfb1f', class: "sd-loading-modal" }, h("div", { key: 'bc373cfebab5949bee9c024bd86ca92d8294ff7b', class: "sd-loading-modal__content" }, this.state === 'loading' ? (h("sd-circle-progress", { indeterminate: true })) : (h("sd-icon", { class: "sd-loading-modal__icon", name: "warningOutline", size: LOADING_MODAL_LAYOUT.contentSize, color: LOADING_MODAL_COLORS.errorIcon }))), h("p", { key: 'e9015b9c9813b1968c8ca7991d654761eb3ee9b3', class: "sd-loading-modal__message" }, this.resolvedMessage), this.useButton && (h("div", { key: '4ed941961611fe9533bd2b989c9b68ef6c7ca741', class: "sd-loading-modal__button" }, h("sd-button-v2", { key: '13f4c5ef5ad5285d846716e5dd72d9f2565c08f9', name: LOADING_MODAL_BUTTON_PRESET, label: this.resolvedButtonLabel, onSdClick: this.handleClick }))))));
45
+ return (h(Host, { key: 'd7e6e7d81ad63a6ddba6c4db9f49695be96b83f6', style: hostStyle }, h("div", { key: '96a50aa04c7cab1c8797b7a187504107e383182b', class: "sd-loading-modal" }, h("div", { key: '6741f7d180be2a7ffa4588aa73bf0b3831e3c869', class: "sd-loading-modal__content" }, this.state === 'loading' ? (h("sd-circle-progress", { indeterminate: true })) : (h("sd-icon", { class: "sd-loading-modal__icon", name: "warningOutline", size: LOADING_MODAL_LAYOUT.contentSize, color: LOADING_MODAL_COLORS.errorIcon }))), h("p", { key: 'cd7d922fc8c8cd51de0a49e106d78a5254c9c35e', class: "sd-loading-modal__message" }, this.resolvedMessage), this.useButton && (h("div", { key: '78a926af4940be80da984cf4e55e8dfee50d6c31', class: "sd-loading-modal__button" }, h("sd-button-v2", { key: 'a2e4ddf9b4b82fb6cecd9d859e6b95f8dd540137', name: LOADING_MODAL_BUTTON_PRESET, label: this.resolvedButtonLabel, onSdClick: this.handleClick }))))));
46
46
  }
47
47
  static get is() { return "sd-loading-modal"; }
48
48
  static get originalStyleUrls() {
@@ -272,12 +272,12 @@ export class SdNumberInput {
272
272
  '--sd-textinput-input-hint-typography-line-height': `${NUMBER_INPUT_HINT.typography.lineHeight}px`,
273
273
  '--sd-textinput-input-contents-gap': `${NUMBER_INPUT_CONTENTS_GAP}px`,
274
274
  };
275
- return (h("sd-field", { key: 'a9512622774c930c8b70b3d739a405e2434f22a7', name: this.name, label: this.label, labelWidth: this.labelWidth, addonLabel: this.addonLabel, addonAlign: this.addonAlign, hint: this.hint, errorMessage: this.errorMessage, width: this.width, rules: this.rules, error: this.error, disabled: this.disabled, focused: this.focused, hovered: this.hovered, status: this.status, size: this.size, ref: el => (this.formField = el), onMouseEnter: () => (this.hovered = true), onMouseLeave: () => (this.hovered = false), style: cssVars }, h("div", { key: 'f068ab7a042a97dfac7aaf160508757306dddc14', class: "sd-number-input__content" }, this.useButton && (h("button", { key: '37341e813e7902f07c2731c708e1aadc53411653', type: "button", class: "sd-number-input__stepper sd-number-input__stepper--decrement", disabled: this.isDecrementDisabled(), onClick: this.handleDecrement, tabindex: -1 }, h("sd-icon", { key: '740b2715518534b0ece5aa3b3f6dfd0dfafd6368', name: "minus", size: iconSize, color: this.isDecrementDisabled()
275
+ return (h("sd-field", { key: '85941d001afd73a10defb7f0728579ce0b8457b1', name: this.name, label: this.label, labelWidth: this.labelWidth, addonLabel: this.addonLabel, addonAlign: this.addonAlign, hint: this.hint, errorMessage: this.errorMessage, width: this.width, rules: this.rules, error: this.error, disabled: this.disabled, focused: this.focused, hovered: this.hovered, status: this.status, size: this.size, ref: el => (this.formField = el), onMouseEnter: () => (this.hovered = true), onMouseLeave: () => (this.hovered = false), style: cssVars }, h("div", { key: '565de4d4a79219bc8d6e9c8f4528ec93a655c376', class: "sd-number-input__content" }, this.useButton && (h("button", { key: 'fa27f209b09a03121eb89959164a4a349d525d9a', type: "button", class: "sd-number-input__stepper sd-number-input__stepper--decrement", disabled: this.isDecrementDisabled(), onClick: this.handleDecrement, tabindex: -1 }, h("sd-icon", { key: '7f4fe23f4b0eba4a06e0153338228710365ce57f', name: "minus", size: iconSize, color: this.isDecrementDisabled()
276
276
  ? NUMBER_INPUT_STEPPER.icon.disabled
277
- : NUMBER_INPUT_STEPPER.icon.default }))), this.inputPrefix && (h("span", { key: '9b16f311a1408dfc84124ec938a98b13635f6dc6', class: "sd-number-input__prefix" }, this.inputPrefix)), h("input", { key: '572e2a8a1d7283e3568a85ba6c1bd506c3ec4453', name: this.name, ref: el => (this.nativeEl = el), class: `sd-number-input__native ${this.inputClass}`, type: "text", inputMode: "numeric", value: this.displayValue, placeholder: this.placeholder, disabled: this.disabled, readonly: this.readonly, autofocus: this.autoFocus, onInput: this.handleInput, onKeyDown: this.handleKeyDown, onFocus: this.handleFocus, onBlur: this.handleBlur, style: {
277
+ : NUMBER_INPUT_STEPPER.icon.default }))), this.inputPrefix && (h("span", { key: '55a96b32e383cdf8d5b253336130460275373f41', class: "sd-number-input__prefix" }, this.inputPrefix)), h("input", { key: 'e25faa5af70d89ae0266bd9dbf35c72276885a9b', name: this.name, ref: el => (this.nativeEl = el), class: `sd-number-input__native ${this.inputClass}`, type: "text", inputMode: "numeric", value: this.displayValue, placeholder: this.placeholder, disabled: this.disabled, readonly: this.readonly, autofocus: this.autoFocus, onInput: this.handleInput, onKeyDown: this.handleKeyDown, onFocus: this.handleFocus, onBlur: this.handleBlur, style: {
278
278
  textAlign: this.useButton ? 'center' : 'right',
279
279
  ...this.inputStyle,
280
- } }), this.inputSuffix && (h("span", { key: '13a07217ee34c793669b061c240062805a40db60', class: "sd-number-input__suffix" }, this.inputSuffix)), this.useButton && (h("button", { key: 'c3557737be6cc5dc6c5ab171bcc078cf564fb2b0', type: "button", class: "sd-number-input__stepper sd-number-input__stepper--increment", disabled: this.isIncrementDisabled(), onClick: this.handleIncrement, tabindex: -1 }, h("sd-icon", { key: '530cf50331768df5be16639e46ce3f7f438ffe02', name: "add", size: iconSize, color: this.isIncrementDisabled()
280
+ } }), this.inputSuffix && (h("span", { key: '777730846e62dd03a9193cf582908a059789b329', class: "sd-number-input__suffix" }, this.inputSuffix)), this.useButton && (h("button", { key: 'ef8b471cb1d2cbd3a5b350ddbbf856e3bd104567', type: "button", class: "sd-number-input__stepper sd-number-input__stepper--increment", disabled: this.isIncrementDisabled(), onClick: this.handleIncrement, tabindex: -1 }, h("sd-icon", { key: 'e2440c5a4571b69dc0e91ab0b10dffdd8242b1d8', name: "add", size: iconSize, color: this.isIncrementDisabled()
281
281
  ? NUMBER_INPUT_STEPPER.icon.disabled
282
282
  : NUMBER_INPUT_STEPPER.icon.default }))))));
283
283
  }
@@ -67,7 +67,6 @@ sd-pagination {
67
67
  background-color: var(--sd-pagination-bg-selected);
68
68
  color: var(--sd-pagination-content-selected);
69
69
  font-weight: var(--sd-pagination-font-weight-selected);
70
- cursor: default;
71
70
  }
72
71
  .sd-pagination__item--selected:hover {
73
72
  background-color: var(--sd-pagination-bg-selected);
@@ -83,13 +83,13 @@ export class SdPagination {
83
83
  '--sd-pagination-bg-selected': PAGINATION_COLORS.bgSelected,
84
84
  '--sd-pagination-item-width': `${this.buttonWidth}px`,
85
85
  };
86
- return (h("div", { key: '1f6d3909c5c7f17701c405f058bf999020d9424e', class: {
86
+ return (h("div", { key: '2b9efc3a0340799a39e7bbfe6f3a270b7cc5f0c7', class: {
87
87
  'sd-pagination': true,
88
88
  'sd-pagination--simple': this.simple,
89
- }, style: cssVars }, h("div", { key: '9faaf4f1033e406ecaad7ed593a1610bb7002631', class: "sd-pagination__group sd-pagination__group--prev" }, this.renderPrevButtons()), this.simple ? (h("div", { class: "sd-pagination__info" }, h("span", { class: "sd-pagination__current" }, this.currentPage), h("span", { class: "sd-pagination__divider" }, "/"), h("span", { class: "sd-pagination__last" }, this.lastPage))) : (h("div", { class: "sd-pagination__numbers" }, this.pageNumbers.map(n => (h("button", { type: "button", "aria-current": this.currentPage === n ? 'page' : undefined, class: {
89
+ }, style: cssVars }, h("div", { key: 'af585a4e9ad2fc25e47cb42fdcc66850d6210fd1', class: "sd-pagination__group sd-pagination__group--prev" }, this.renderPrevButtons()), this.simple ? (h("div", { class: "sd-pagination__info" }, h("span", { class: "sd-pagination__current" }, this.currentPage), h("span", { class: "sd-pagination__divider" }, "/"), h("span", { class: "sd-pagination__last" }, this.lastPage))) : (h("div", { class: "sd-pagination__numbers" }, this.pageNumbers.map(n => (h("button", { type: "button", "aria-current": this.currentPage === n ? 'page' : undefined, class: {
90
90
  'sd-pagination__item': true,
91
91
  'sd-pagination__item--selected': this.currentPage === n,
92
- }, onClick: () => this.handlePageChange(n) }, n))))), h("div", { key: 'c8d21679938032bee223f6dfefff3a87dc5badec', class: "sd-pagination__group sd-pagination__group--next" }, this.renderNextButtons())));
92
+ }, onClick: () => this.handlePageChange(n) }, n))))), h("div", { key: '3128e19dee5f2d00fcc5603f96f323afaf2750d4', class: "sd-pagination__group sd-pagination__group--next" }, this.renderNextButtons())));
93
93
  }
94
94
  static get is() { return "sd-pagination"; }
95
95
  static get originalStyleUrls() {
@@ -15,20 +15,17 @@ export class SdPopover {
15
15
  messages = [];
16
16
  buttons = [];
17
17
  menuClass = '';
18
- noHover = true;
19
18
  useClose = false;
20
- showPopover = false;
21
- slotContent = '';
22
- watchShowHandler(newValue) {
23
- this.showPopover = newValue;
24
- }
25
- componentWillLoad() {
26
- this.showPopover = this.show;
27
- this.slotContent = this.el.innerHTML;
28
- }
19
+ showChange;
29
20
  buttonEl;
21
+ setShow = (next) => {
22
+ if (this.show === next)
23
+ return;
24
+ this.show = next;
25
+ this.showChange.emit(next);
26
+ };
30
27
  get popoverOffset() {
31
- switch (this.placement) {
28
+ switch (this.placement ?? 'bottom') {
32
29
  case 'top':
33
30
  return [0, -4];
34
31
  case 'bottom':
@@ -39,18 +36,25 @@ export class SdPopover {
39
36
  return [4, 0];
40
37
  }
41
38
  }
42
- handleClose = () => {
43
- this.showPopover = false;
44
- };
39
+ handleClose = () => this.setShow(false);
45
40
  render() {
46
- return (h(Fragment, { key: '32e3a11baabd4f4fc8c570311b99b2113e4ce3b0' }, this.label ? (h("sd-button", { ref: el => (this.buttonEl = el), label: this.label, icon: this.icon, size: this.buttonSize, color: this.color, variant: this.buttonVariant, class: "sd-popover", onSdClick: () => (this.showPopover = !this.showPopover) })) : (h("sd-icon", { ref: el => (this.buttonEl = el), name: this.icon, size: this.iconSize, color: this.color, class: "sd-popover", onClick: () => (this.showPopover = !this.showPopover) })), this.showPopover && (h("sd-floating-portal", { key: '8139e72f293319e4d5ed3fe67d4f47a03743b437', parentRef: this.buttonEl, onSdClose: this.handleClose, placement: this.placement, offset: this.popoverOffset }, h("div", { key: 'fdb76f4a9a54be08fdf0d352ff389453840c4789', class: {
41
+ const placement = this.placement ?? 'bottom';
42
+ const color = this.color ?? '#01BB4B';
43
+ const icon = this.icon ?? 'helpOutline';
44
+ const iconSize = this.iconSize ?? 12;
45
+ const buttonSize = this.buttonSize ?? 'sm';
46
+ const buttonVariant = this.buttonVariant ?? 'primary';
47
+ const menuClass = this.menuClass ?? '';
48
+ const messages = Array.isArray(this.messages) ? this.messages : [];
49
+ const buttons = Array.isArray(this.buttons) ? this.buttons : [];
50
+ return (h(Fragment, { key: 'e576deaacba9395c5aeb76fd13baa0dc1e908d38' }, this.label ? (h("sd-button", { ref: el => (this.buttonEl = el), label: this.label, icon: icon, size: buttonSize, color: color, variant: buttonVariant, class: "sd-popover", onSdClick: () => this.setShow(!this.show) })) : (h("sd-icon", { ref: el => (this.buttonEl = el), name: icon, size: iconSize, color: color, class: "sd-popover", onClick: () => this.setShow(!this.show) })), this.show && (h("sd-floating-portal", { key: '7520067b46527c22108292a659dd7e8fba85397c', parentRef: this.buttonEl, onSdClose: this.handleClose, placement: placement, offset: this.popoverOffset }, h("div", { key: 'ba48632dd93359851bd87f4d55f2341653b0caab', class: {
47
51
  'sd-floating-menu': true,
48
52
  'sd-floating-menu--popover': true,
49
- [`sd-floating-menu--${this.placement}`]: true,
50
- [this.menuClass]: !!this.menuClass,
53
+ [`sd-floating-menu--${placement}`]: true,
54
+ [menuClass]: !!menuClass,
51
55
  }, style: {
52
56
  '--sd-floating-bg': popoverTokens.popover.bg,
53
- } }, h("i", { key: '94cb19bdf7182cd311800ac4d3fdf49c61db75fb', class: `sd-floating-menu__arrow sd-floating-menu__arrow--${this.placement}` }, h(TooltipArrow, { key: '67394b2b751c485fc7198a10d54df2659c6f222b' })), h("div", { key: '1d6e143a931c24f28ef68afbfe7b84e73d3288db', class: "sd-floating-menu__content" }, this.menuTitle && h("div", { key: '33d47a87e6cab23131f360f7ea07809cec942ec0', class: "sd-floating-menu__title" }, this.menuTitle), this.messages.length > 0 && (h("div", { key: '28006b8958d1921eefa42c6282b8e735ae3e9367', class: "sd-floating-menu__messages" }, this.messages.map(message => (h("div", null, message))))), this.buttons.length > 0 && (h("div", { key: '574604775790aa49591848eb5f86ca0c6735558f', class: `sd-floating-menu__buttons sd-floating-menu__buttons--${this.buttons.length}` }, this.buttons.map(button => (h("sd-button", { ...button })))))), this.useClose && (h("sd-ghost-button", { key: '027260d65fc575f480ce23e081b8b80ac8a1daea', class: "sd-floating-menu__close-button", icon: "close", ariaLabel: "close", size: "xs", onClick: () => this.handleClose() })))))));
57
+ } }, h("i", { key: 'fce80e5bc6f49f5dbc1772f910eae0fb9bc09a6b', class: `sd-floating-menu__arrow sd-floating-menu__arrow--${placement}` }, h(TooltipArrow, { key: '32aaa3b00f7ac77d47fd2bc3c968a7a4c20102c6' })), h("div", { key: '29b3240126412070466acee7ee1d061d235ba51e', class: "sd-floating-menu__content" }, this.menuTitle && h("div", { key: '6cb5cf4531f573e93146a552b34831dc04851661', class: "sd-floating-menu__title" }, this.menuTitle), messages.length > 0 && (h("div", { key: 'ba15bb4efc4af37dd89b0da61539f516cc31a2f3', class: "sd-floating-menu__messages" }, messages.map((message, i) => (h("div", { key: `msg-${i}` }, message))))), buttons.length > 0 && (h("div", { key: '2656545909634d8c54e9d34155e699041b5512f5', class: `sd-floating-menu__buttons sd-floating-menu__buttons--${buttons.length}` }, buttons.map((button, i) => (h("sd-button", { key: `btn-${i}`, ...button })))))), this.useClose && (h("sd-ghost-button", { key: '315bf10dde1b7cde5727beb101a1a1ad07966138', class: "sd-floating-menu__close-button", icon: "close", ariaLabel: "close", size: "xs", onClick: this.handleClose })))))));
54
58
  }
55
59
  static get is() { return "sd-popover"; }
56
60
  static get originalStyleUrls() {
@@ -260,8 +264,8 @@ export class SdPopover {
260
264
  },
261
265
  "getter": false,
262
266
  "setter": false,
263
- "reflect": true,
264
- "attribute": "title"
267
+ "reflect": false,
268
+ "attribute": "menu-title"
265
269
  },
266
270
  "messages": {
267
271
  "type": "unknown",
@@ -285,9 +289,15 @@ export class SdPopover {
285
289
  "type": "unknown",
286
290
  "mutable": false,
287
291
  "complexType": {
288
- "original": "{\n [key: string]: any;\n }[]",
289
- "resolved": "{ [key: string]: any; }[]",
290
- "references": {}
292
+ "original": "PopoverButton[]",
293
+ "resolved": "PopoverButton[]",
294
+ "references": {
295
+ "PopoverButton": {
296
+ "location": "local",
297
+ "path": "/Users/meijing/Documents/sellmate/frontend/design-system/packages/stencil/src/components/sd-popover/sd-popover.tsx",
298
+ "id": "src/components/sd-popover/sd-popover.tsx::PopoverButton"
299
+ }
300
+ }
291
301
  },
292
302
  "required": false,
293
303
  "optional": false,
@@ -319,26 +329,6 @@ export class SdPopover {
319
329
  "attribute": "menu-class",
320
330
  "defaultValue": "''"
321
331
  },
322
- "noHover": {
323
- "type": "boolean",
324
- "mutable": false,
325
- "complexType": {
326
- "original": "boolean",
327
- "resolved": "boolean",
328
- "references": {}
329
- },
330
- "required": false,
331
- "optional": false,
332
- "docs": {
333
- "tags": [],
334
- "text": ""
335
- },
336
- "getter": false,
337
- "setter": false,
338
- "reflect": false,
339
- "attribute": "no-hover",
340
- "defaultValue": "true"
341
- },
342
332
  "useClose": {
343
333
  "type": "boolean",
344
334
  "mutable": false,
@@ -361,17 +351,23 @@ export class SdPopover {
361
351
  }
362
352
  };
363
353
  }
364
- static get states() {
365
- return {
366
- "showPopover": {},
367
- "slotContent": {}
368
- };
369
- }
370
- static get elementRef() { return "el"; }
371
- static get watchers() {
354
+ static get events() {
372
355
  return [{
373
- "propName": "show",
374
- "methodName": "watchShowHandler"
356
+ "method": "showChange",
357
+ "name": "sdShowChange",
358
+ "bubbles": true,
359
+ "cancelable": true,
360
+ "composed": true,
361
+ "docs": {
362
+ "tags": [],
363
+ "text": ""
364
+ },
365
+ "complexType": {
366
+ "original": "boolean",
367
+ "resolved": "boolean",
368
+ "references": {}
369
+ }
375
370
  }];
376
371
  }
372
+ static get elementRef() { return "el"; }
377
373
  }
@@ -220,7 +220,7 @@ export class SdPortal {
220
220
  this.close.emit();
221
221
  }
222
222
  render() {
223
- return h("slot", { key: '394cce939280a171c13e875eaead3fbdd0163d5b' });
223
+ return h("slot", { key: 'fa3033a01d6c8f6878c91367b9670206ab5c71d7' });
224
224
  }
225
225
  static get is() { return "sd-portal"; }
226
226
  static get properties() {
@@ -48,7 +48,7 @@ export class SdRadio {
48
48
  '--sd-radio-disabled-dot': RADIO_COLORS.disabled.dot,
49
49
  '--sd-radio-label-color': RADIO_COLORS.label,
50
50
  };
51
- return (h("label", { key: '2b7819249e5070a22b626530011db4a8e56194f1', class: this.radioClasses, style: cssVars, "aria-checked": this.isSelected ? 'true' : 'false', "aria-disabled": this.disabled ? 'true' : 'false' }, h("input", { key: '233699a7c3bc13708d43ca3719f61edf53836c83', type: "radio", name: String(this.val), value: String(this.val), checked: this.isSelected, disabled: this.disabled, "aria-label": this.label || String(this.val), onInput: this.handleRadioChange }), h("span", { key: 'eb665c5f8c6202b66b65b6b120f144970fba0a38', class: "sd-radio__circle" }), this.label && h("span", { key: '3d0db13e083bacb4cb7ace9129fcfcd61f18dfc7', class: "sd-radio__label" }, this.label)));
51
+ return (h("label", { key: '2b809f1f3ce39e6dd2429cf1c48a935500287614', class: this.radioClasses, style: cssVars, "aria-checked": this.isSelected ? 'true' : 'false', "aria-disabled": this.disabled ? 'true' : 'false' }, h("input", { key: '1f44ab44d741ef40152318ce6fd437bb091c3cfb', type: "radio", name: String(this.val), value: String(this.val), checked: this.isSelected, disabled: this.disabled, "aria-label": this.label || String(this.val), onInput: this.handleRadioChange }), h("span", { key: '941fddbb939a46afbe72c642d3b6f6f252f143f1', class: "sd-radio__circle" }), this.label && h("span", { key: 'e30139892e82b8da251525e3c717549a2b7522d0', class: "sd-radio__label" }, this.label)));
52
52
  }
53
53
  static get is() { return "sd-radio"; }
54
54
  static get originalStyleUrls() {
@@ -67,7 +67,7 @@ export class SdRadioButton {
67
67
  '--sd-radio-button-content-select': RADIO_BUTTON_COLORS.content.select,
68
68
  '--sd-radio-button-content-disabled': RADIO_BUTTON_COLORS.content.disabled,
69
69
  };
70
- return (h("div", { key: 'f4ac83797b2661b0c2a612674911cbb0e41350a6', class: this.getGroupClasses(), style: cssVars, role: "radiogroup", "aria-disabled": this.disabled.toString() }, this.options.map(option => {
70
+ return (h("div", { key: '67c8e7ad03fb6ee4cabd06591e3e11e5d38914f0', class: this.getGroupClasses(), style: cssVars, role: "radiogroup", "aria-disabled": this.disabled.toString() }, this.options.map(option => {
71
71
  const isSelected = this.isOptionSelected(option);
72
72
  const isDisabled = this.isOptionDisabled(option);
73
73
  return (h("label", { key: `radio-${option.value}`, class: this.getButtonClasses(option), "aria-label": option.label || 'radio option', "data-label": option.label }, h("input", { type: "radio", name: this.groupName, value: option.value.toString(), checked: isSelected, disabled: isDisabled, onInput: () => this.handleRadioChange(option.value, option.disabled) }), option.label && h("span", { class: "sd-radio-button__label" }, option.label)));
@@ -22,7 +22,7 @@ export class SdRadioGroup {
22
22
  return classes.join(' ');
23
23
  }
24
24
  render() {
25
- return (h("div", { key: '8b01aca15ce9452921f37ba648d2d47728b84f41', class: this.getGroupClasses(), role: "radiogroup" }, this.options.map(option => {
25
+ return (h("div", { key: '5f6559df018e48958103d0a84a0f074f81bd255a', class: this.getGroupClasses(), role: "radiogroup" }, this.options.map(option => {
26
26
  return (h("sd-radio", { key: `radio-${option.value}`, val: String(option.value), value: String(this.value), label: option.label, disabled: this.disabled || !!option.disabled, onSdUpdate: ({ detail }) => this.handleRadioChange(detail) }));
27
27
  })));
28
28
  }
@@ -143,7 +143,7 @@ export class SdSelect extends BaseDropdownEvent {
143
143
  }
144
144
  };
145
145
  render() {
146
- return (h("sd-field", { key: 'bef5ef042c37b3abb97f8f5eafaee24d232132b7', label: this.label, labelWidth: this.labelWidth, name: this.name, rules: this.rules, error: this.error, disabled: this.disabled, icon: this.icon, addonLabel: this.addonLabel, addonAlign: this.addonAlign, labelTooltip: this.labelTooltip, labelTooltipProps: this.labelTooltipProps, ref: el => (this.formField = el) }, h("div", { key: '9046ecdd771380312e7be3797ccac28d2315cfbe', class: {
146
+ return (h("sd-field", { key: '6939161d0edb5eabca307b3883e02a53a29e66c4', label: this.label, labelWidth: this.labelWidth, name: this.name, rules: this.rules, error: this.error, disabled: this.disabled, icon: this.icon, addonLabel: this.addonLabel, addonAlign: this.addonAlign, labelTooltip: this.labelTooltip, labelTooltipProps: this.labelTooltipProps, ref: el => (this.formField = el) }, h("div", { key: 'a57d17cb3ff775c724f3a6c13025c04e031de45f', class: {
147
147
  'sd-select': true,
148
148
  'sd-select--disabled': this.disabled,
149
149
  'sd-select--error': !!this.error,