@sellmate/design-system 1.0.49 → 1.0.50

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 (267) hide show
  1. package/dist/cjs/{component.button-BKa5OPya.js → component.button-DUsddONR.js} +15 -14
  2. package/dist/cjs/{component.modal-CtW5Gmy5.js → component.modal-DmQUWbve.js} +0 -4
  3. package/dist/cjs/{component.textinput-43trvZ5m.js → component.textinput-DIDZPtYE.js} +0 -3
  4. package/dist/cjs/design-system.cjs.js +1 -1
  5. package/dist/cjs/index.cjs.js +0 -5
  6. package/dist/cjs/loader.cjs.js +1 -1
  7. package/dist/cjs/{resolveColor-Di1RNekE.js → resolveColor-LhfOKtTZ.js} +2 -0
  8. package/dist/cjs/sd-action-modal.cjs.entry.js +2 -4
  9. package/dist/cjs/sd-barcode-input.cjs.entry.js +5 -7
  10. package/dist/cjs/{sd-button-v2.config-CQoTThio.js → sd-button-v2.config-B4___nhv.js} +5 -5
  11. package/dist/cjs/sd-button-v2_2.cjs.entry.js +3 -3
  12. package/dist/cjs/sd-button_4.cjs.entry.js +8 -8
  13. package/dist/cjs/sd-calendar.cjs.entry.js +1 -1
  14. package/dist/cjs/sd-confirm-modal.cjs.entry.js +4 -6
  15. package/dist/cjs/sd-dropdown-button.cjs.entry.js +17 -6
  16. package/dist/cjs/sd-file-picker.cjs.entry.js +5 -3
  17. package/dist/cjs/sd-ghost-button.cjs.entry.js +148 -0
  18. package/dist/cjs/sd-guide.cjs.entry.js +2 -2
  19. package/dist/cjs/sd-input_2.cjs.entry.js +7 -12
  20. package/dist/cjs/sd-loading-spinner_3.cjs.entry.js +4 -4
  21. package/dist/cjs/sd-number-input.cjs.entry.js +3 -3
  22. package/dist/cjs/sd-popover.cjs.entry.js +10 -10
  23. package/dist/cjs/sd-progress.cjs.entry.js +2 -2
  24. package/dist/cjs/sd-select-dropdown_2.cjs.entry.js +3 -3
  25. package/dist/cjs/sd-select-group.cjs.entry.js +1 -1
  26. package/dist/cjs/sd-select-multiple.cjs.entry.js +1 -1
  27. package/dist/cjs/sd-select-option-group.cjs.entry.js +3 -3
  28. package/dist/cjs/sd-select-v2-list-item_2.cjs.entry.js +5 -5
  29. package/dist/cjs/sd-select-v2-listbox_2.cjs.entry.js +3 -3
  30. package/dist/cjs/sd-select-v2.cjs.entry.js +3 -3
  31. package/dist/cjs/sd-tabs.cjs.entry.js +2 -3
  32. package/dist/cjs/sd-tag.cjs.entry.js +2 -2
  33. package/dist/cjs/sd-text-link.cjs.entry.js +3 -3
  34. package/dist/cjs/sd-textarea.cjs.entry.js +2 -2
  35. package/dist/cjs/sd-toast.cjs.entry.js +3 -3
  36. package/dist/collection/collection-manifest.json +1 -0
  37. package/dist/collection/components/sd-action-modal/sd-action-modal.config.js +0 -2
  38. package/dist/collection/components/sd-action-modal/sd-action-modal.js +2 -2
  39. package/dist/collection/components/sd-barcode-input/sd-barcode-input.config.js +0 -5
  40. package/dist/collection/components/sd-barcode-input/sd-barcode-input.css +8 -5
  41. package/dist/collection/components/sd-barcode-input/sd-barcode-input.js +4 -2
  42. package/dist/collection/components/sd-button/sd-button.js +5 -5
  43. package/dist/collection/components/sd-button-v2/sd-button-v2.config.js +4 -4
  44. package/dist/collection/components/sd-confirm-modal/sd-confirm-modal.config.js +0 -2
  45. package/dist/collection/components/sd-confirm-modal/sd-confirm-modal.css +2 -3
  46. package/dist/collection/components/sd-confirm-modal/sd-confirm-modal.js +3 -3
  47. package/dist/collection/components/sd-file-picker/sd-file-picker.js +5 -3
  48. package/dist/collection/components/sd-floating-portal/sd-floating-portal.css +0 -4
  49. package/dist/collection/components/sd-ghost-button/sd-ghost-button.config.js +37 -0
  50. package/dist/collection/components/sd-ghost-button/sd-ghost-button.css +43 -0
  51. package/dist/collection/components/sd-ghost-button/sd-ghost-button.js +205 -0
  52. package/dist/collection/components/sd-guide/sd-guide.js +2 -2
  53. package/dist/collection/components/sd-input/sd-input.config.js +0 -5
  54. package/dist/collection/components/sd-input/sd-input.css +0 -1
  55. package/dist/collection/components/sd-input/sd-input.js +3 -3
  56. package/dist/collection/components/sd-loading-spinner/sd-loading-spinner.js +1 -1
  57. package/dist/collection/components/sd-number-input/sd-number-input.js +3 -3
  58. package/dist/collection/components/sd-pagination/sd-pagination.js +2 -2
  59. package/dist/collection/components/sd-popover/sd-popover.js +11 -7
  60. package/dist/collection/components/sd-progress/sd-progress.js +2 -34
  61. package/dist/collection/components/sd-select/sd-select-dropdown/sd-select-dropdown.js +2 -2
  62. package/dist/collection/components/sd-select/sd-select-option/sd-select-option.js +1 -1
  63. package/dist/collection/components/sd-select/sd-select-search-input/sd-select-search-input.js +3 -3
  64. package/dist/collection/components/sd-select-group/sd-select-group.js +1 -1
  65. package/dist/collection/components/sd-select-multiple/sd-select-multiple.js +1 -1
  66. package/dist/collection/components/sd-select-multiple-group/sd-select-option-group/sd-select-option-group.js +3 -3
  67. package/dist/collection/components/sd-select-v2/sd-select-v2-list-item/sd-select-v2-list-item.js +2 -2
  68. package/dist/collection/components/sd-select-v2/sd-select-v2-list-item-search/sd-select-v2-list-item-search.js +3 -3
  69. package/dist/collection/components/sd-select-v2/sd-select-v2-listbox/sd-select-v2-listbox.js +1 -1
  70. package/dist/collection/components/sd-select-v2/sd-select-v2-trigger/sd-select-v2-trigger.js +2 -2
  71. package/dist/collection/components/sd-select-v2/sd-select-v2.js +3 -3
  72. package/dist/collection/components/sd-tabs/sd-tabs.js +2 -3
  73. package/dist/collection/components/sd-tag/sd-tag.js +2 -2
  74. package/dist/collection/components/sd-text-link/sd-text-link.js +3 -3
  75. package/dist/collection/components/sd-textarea/sd-textarea.js +2 -2
  76. package/dist/collection/components/sd-toast/sd-toast.css +0 -14
  77. package/dist/collection/components/sd-toast/sd-toast.js +2 -2
  78. package/dist/collection/index.js +0 -1
  79. package/dist/components/index.js +1 -1
  80. package/dist/components/{p-BBYig1zV.js → p-9cpjtLyu.js} +1 -1
  81. package/dist/components/p-AFiQTtI8.js +1 -0
  82. package/dist/components/p-B2f7Cose.js +1 -0
  83. package/dist/components/{p-BYaBx4Ar.js → p-B9ODOaHR.js} +1 -1
  84. package/dist/components/{p-uWsY9w9i.js → p-BDddwnsY.js} +1 -1
  85. package/dist/components/{p-CbjDAdZ_.js → p-BGovA1BG.js} +1 -1
  86. package/dist/components/p-BSD19ZXd.js +1 -0
  87. package/dist/components/{p-DqwiOEb3.js → p-BWpdlAkY.js} +1 -1
  88. package/dist/components/p-BcM38Hvd.js +1 -0
  89. package/dist/components/{p-CUy8ulXZ.js → p-BkGwQ37a.js} +1 -1
  90. package/dist/components/p-BlIVa7pk.js +1 -0
  91. package/dist/components/{p-CdoxVzYC.js → p-Bm5vdtK6.js} +1 -1
  92. package/dist/components/p-BxPyZJaz.js +1 -0
  93. package/dist/components/p-C-ITXCaO.js +1 -0
  94. package/dist/components/{p-DAWMGK_A.js → p-C6dJGijx.js} +1 -1
  95. package/dist/components/{p-C0ptbo29.js → p-CID8dmhm.js} +1 -1
  96. package/dist/components/{p-ZoQO0p2E.js → p-CMIQp1d_.js} +1 -1
  97. package/dist/components/{p-B6NYLHOZ.js → p-CSCkf9FA.js} +1 -1
  98. package/dist/components/p-CS_IUXhu.js +1 -0
  99. package/dist/components/{p-Dl7yIIDW.js → p-CuKx-cil.js} +1 -1
  100. package/dist/components/{p-BeZsmobQ.js → p-CzJDdzv9.js} +1 -1
  101. package/dist/components/{p-By4ufaS3.js → p-D3hfkcth.js} +1 -1
  102. package/dist/components/p-DVFkk4Uh.js +1 -0
  103. package/dist/components/{p-DJScHgLW.js → p-DYzmoNdd.js} +1 -1
  104. package/dist/components/{p-BeIOWDKk.js → p-DgH5_0xH.js} +1 -1
  105. package/dist/components/p-Do9_zPoB.js +1 -0
  106. package/dist/components/{p-DhKZT8lW.js → p-Dpm7Otkw.js} +1 -1
  107. package/dist/components/p-mO5GcwI3.js +1 -0
  108. package/dist/components/{p-DdjivpAF.js → p-z1GAfC0Y.js} +1 -1
  109. package/dist/components/sd-action-modal.js +1 -1
  110. package/dist/components/sd-barcode-input.js +1 -1
  111. package/dist/components/sd-button-v2.js +1 -1
  112. package/dist/components/sd-button.js +1 -1
  113. package/dist/components/sd-calendar.js +1 -1
  114. package/dist/components/sd-checkbox.js +1 -1
  115. package/dist/components/sd-confirm-modal.js +1 -1
  116. package/dist/components/sd-date-picker.js +1 -1
  117. package/dist/components/sd-date-range-picker.js +1 -1
  118. package/dist/components/sd-dropdown-button.js +1 -1
  119. package/dist/components/sd-field.js +1 -1
  120. package/dist/components/sd-file-picker.js +1 -1
  121. package/dist/components/sd-floating-portal.js +1 -1
  122. package/dist/components/sd-ghost-button.d.ts +11 -0
  123. package/dist/components/sd-ghost-button.js +1 -0
  124. package/dist/components/sd-guide.js +1 -1
  125. package/dist/components/sd-icon.js +1 -1
  126. package/dist/components/sd-input.js +1 -1
  127. package/dist/components/sd-loading-spinner.js +1 -1
  128. package/dist/components/sd-modal-container.js +1 -1
  129. package/dist/components/sd-number-input.js +1 -1
  130. package/dist/components/sd-pagination.js +1 -1
  131. package/dist/components/sd-popover.js +1 -1
  132. package/dist/components/sd-progress.js +1 -1
  133. package/dist/components/sd-select-dropdown.js +1 -1
  134. package/dist/components/sd-select-group.js +1 -1
  135. package/dist/components/sd-select-multiple-group.js +1 -1
  136. package/dist/components/sd-select-multiple.js +1 -1
  137. package/dist/components/sd-select-option-group.js +1 -1
  138. package/dist/components/sd-select-option.js +1 -1
  139. package/dist/components/sd-select-search-input.js +1 -1
  140. package/dist/components/sd-select-v2-list-item-search.js +1 -1
  141. package/dist/components/sd-select-v2-list-item.js +1 -1
  142. package/dist/components/sd-select-v2-listbox.js +1 -1
  143. package/dist/components/sd-select-v2-trigger.js +1 -1
  144. package/dist/components/sd-select-v2.js +1 -1
  145. package/dist/components/sd-select.js +1 -1
  146. package/dist/components/sd-table.js +1 -1
  147. package/dist/components/sd-tabs.js +1 -1
  148. package/dist/components/sd-tag.js +1 -1
  149. package/dist/components/sd-text-link.js +1 -1
  150. package/dist/components/sd-textarea.js +1 -1
  151. package/dist/components/sd-toast-container.js +1 -1
  152. package/dist/components/sd-toast.js +1 -1
  153. package/dist/components/sd-tooltip.js +1 -1
  154. package/dist/design-system/design-system.css +1 -1
  155. package/dist/design-system/design-system.esm.js +1 -1
  156. package/dist/design-system/index.esm.js +1 -1
  157. package/dist/design-system/{p-19b18e4c.entry.js → p-075c1811.entry.js} +1 -1
  158. package/dist/design-system/{p-4e9abae8.entry.js → p-28f46b43.entry.js} +1 -1
  159. package/dist/design-system/{p-d4da5815.entry.js → p-3046d095.entry.js} +1 -1
  160. package/dist/design-system/p-3165d54b.entry.js +1 -0
  161. package/dist/design-system/{p-e58e5fa2.entry.js → p-3a507d25.entry.js} +1 -1
  162. package/dist/design-system/{p-d659e98e.entry.js → p-426c7f12.entry.js} +1 -1
  163. package/dist/design-system/p-45f6bd30.entry.js +1 -0
  164. package/dist/design-system/{p-0e0992bf.entry.js → p-49611410.entry.js} +1 -1
  165. package/dist/design-system/p-513306a1.entry.js +1 -0
  166. package/dist/design-system/p-559d6c56.entry.js +1 -0
  167. package/dist/design-system/{p-fd2e0035.entry.js → p-57e3132f.entry.js} +1 -1
  168. package/dist/design-system/p-5ce6b4e1.entry.js +1 -0
  169. package/dist/design-system/p-6a0fe603.entry.js +1 -0
  170. package/dist/design-system/{p-ee25a675.entry.js → p-7b14c068.entry.js} +1 -1
  171. package/dist/design-system/p-8b11f4f1.entry.js +1 -0
  172. package/dist/design-system/p-9d5d578e.entry.js +1 -0
  173. package/dist/design-system/{p-CbjDAdZ_.js → p-BGovA1BG.js} +1 -1
  174. package/dist/design-system/p-BcM38Hvd.js +1 -0
  175. package/dist/design-system/p-BxPyZJaz.js +1 -0
  176. package/dist/design-system/p-a589cab8.entry.js +1 -0
  177. package/dist/design-system/{p-4d904e5a.entry.js → p-a6946300.entry.js} +1 -1
  178. package/dist/design-system/{p-e8cb12b7.entry.js → p-ae21d6ba.entry.js} +1 -1
  179. package/dist/design-system/{p-ef654bbe.entry.js → p-d2db1b44.entry.js} +1 -1
  180. package/dist/design-system/p-d47fdd44.entry.js +1 -0
  181. package/dist/design-system/{p-53326ad6.entry.js → p-d83673a2.entry.js} +1 -1
  182. package/dist/design-system/{p-07a3c3fc.entry.js → p-d87aa2ec.entry.js} +1 -1
  183. package/dist/design-system/{p-DzagopqQ.js → p-ePjRdqmD.js} +1 -1
  184. package/dist/design-system/p-f193b3b9.entry.js +1 -0
  185. package/dist/design-system/{p-de02d3b8.entry.js → p-f23038d4.entry.js} +1 -1
  186. package/dist/design-system/{p-242c605c.entry.js → p-f496bd56.entry.js} +1 -1
  187. package/dist/design-system/{p-19e62a3d.entry.js → p-fc2dc308.entry.js} +1 -1
  188. package/dist/design-system/p-mO5GcwI3.js +1 -0
  189. package/dist/esm/{component.button-DwYSoCyW.js → component.button-BcM38Hvd.js} +15 -14
  190. package/dist/esm/{component.modal-rGbM8XR_.js → component.modal-mO5GcwI3.js} +0 -4
  191. package/dist/esm/{component.textinput-CbjDAdZ_.js → component.textinput-BGovA1BG.js} +0 -3
  192. package/dist/esm/design-system.js +1 -1
  193. package/dist/esm/index.js +1 -5
  194. package/dist/esm/loader.js +1 -1
  195. package/dist/esm/{resolveColor-CquSJNHV.js → resolveColor-BxPyZJaz.js} +2 -0
  196. package/dist/esm/sd-action-modal.entry.js +2 -4
  197. package/dist/esm/sd-barcode-input.entry.js +5 -7
  198. package/dist/esm/{sd-button-v2.config-B4Fmn4Ju.js → sd-button-v2.config-C7s1j4_P.js} +5 -5
  199. package/dist/esm/sd-button-v2_2.entry.js +3 -3
  200. package/dist/esm/sd-button_4.entry.js +8 -8
  201. package/dist/esm/sd-calendar.entry.js +1 -1
  202. package/dist/esm/sd-confirm-modal.entry.js +4 -6
  203. package/dist/esm/sd-dropdown-button.entry.js +14 -3
  204. package/dist/esm/sd-file-picker.entry.js +5 -3
  205. package/dist/esm/sd-ghost-button.entry.js +146 -0
  206. package/dist/esm/sd-guide.entry.js +2 -2
  207. package/dist/esm/sd-input_2.entry.js +7 -12
  208. package/dist/esm/sd-loading-spinner_3.entry.js +4 -4
  209. package/dist/esm/sd-number-input.entry.js +3 -3
  210. package/dist/esm/sd-popover.entry.js +10 -10
  211. package/dist/esm/sd-progress.entry.js +2 -2
  212. package/dist/esm/sd-select-dropdown_2.entry.js +3 -3
  213. package/dist/esm/sd-select-group.entry.js +1 -1
  214. package/dist/esm/sd-select-multiple.entry.js +1 -1
  215. package/dist/esm/sd-select-option-group.entry.js +3 -3
  216. package/dist/esm/sd-select-v2-list-item_2.entry.js +5 -5
  217. package/dist/esm/sd-select-v2-listbox_2.entry.js +3 -3
  218. package/dist/esm/sd-select-v2.entry.js +3 -3
  219. package/dist/esm/sd-tabs.entry.js +2 -3
  220. package/dist/esm/sd-tag.entry.js +2 -2
  221. package/dist/esm/sd-text-link.entry.js +3 -3
  222. package/dist/esm/sd-textarea.entry.js +2 -2
  223. package/dist/esm/sd-toast.entry.js +3 -3
  224. package/dist/types/components/sd-action-modal/sd-action-modal.config.d.ts +0 -2
  225. package/dist/types/components/sd-barcode-input/sd-barcode-input.config.d.ts +0 -4
  226. package/dist/types/components/sd-confirm-modal/sd-confirm-modal.config.d.ts +0 -2
  227. package/dist/types/components/sd-ghost-button/sd-ghost-button.config.d.ts +12 -0
  228. package/dist/types/components/sd-ghost-button/sd-ghost-button.d.ts +15 -0
  229. package/dist/types/components/sd-input/sd-input.config.d.ts +0 -4
  230. package/dist/types/components.d.ts +76 -4
  231. package/dist/types/index.d.ts +0 -1
  232. package/hydrate/index.js +284 -143
  233. package/hydrate/index.mjs +284 -143
  234. package/package.json +1 -1
  235. package/dist/cjs/system-lN7yOMPF.js +0 -20
  236. package/dist/collection/components/event-management.js +0 -19
  237. package/dist/collection/styles/fonts/fontBase64.js +0 -141910
  238. package/dist/collection/utils/utils.js +0 -3
  239. package/dist/components/p-7tPcjtqM.js +0 -1
  240. package/dist/components/p-B09D2cZD.js +0 -1
  241. package/dist/components/p-C3XBhNH9.js +0 -1
  242. package/dist/components/p-CS6ohqwt.js +0 -1
  243. package/dist/components/p-CquSJNHV.js +0 -1
  244. package/dist/components/p-DE3qbfEZ.js +0 -1
  245. package/dist/components/p-DeTDTmN7.js +0 -1
  246. package/dist/components/p-Du3VqeNP.js +0 -1
  247. package/dist/components/p-DwYSoCyW.js +0 -1
  248. package/dist/components/p-poQ9yAeD.js +0 -1
  249. package/dist/components/p-rGbM8XR_.js +0 -1
  250. package/dist/design-system/p-021e4171.entry.js +0 -1
  251. package/dist/design-system/p-127445af.entry.js +0 -1
  252. package/dist/design-system/p-14d1d9d7.entry.js +0 -1
  253. package/dist/design-system/p-498d333c.entry.js +0 -1
  254. package/dist/design-system/p-7a029f03.entry.js +0 -1
  255. package/dist/design-system/p-CS6ohqwt.js +0 -1
  256. package/dist/design-system/p-CquSJNHV.js +0 -1
  257. package/dist/design-system/p-DwYSoCyW.js +0 -1
  258. package/dist/design-system/p-ade2ed02.entry.js +0 -1
  259. package/dist/design-system/p-aeed9b29.entry.js +0 -1
  260. package/dist/design-system/p-b5d8e54d.entry.js +0 -1
  261. package/dist/design-system/p-bddf2246.entry.js +0 -1
  262. package/dist/design-system/p-d93c6ea8.entry.js +0 -1
  263. package/dist/design-system/p-rGbM8XR_.js +0 -1
  264. package/dist/esm/system-CS6ohqwt.js +0 -18
  265. package/dist/types/components/event-management.d.ts +0 -6
  266. package/dist/types/styles/fonts/fontBase64.d.ts +0 -3
  267. package/dist/types/utils/utils.d.ts +0 -1
@@ -206,13 +206,13 @@ export class SdSelectV2 {
206
206
  this.closeDropdown();
207
207
  },
208
208
  };
209
- return (h("sd-field", { key: '94a50bd86ecb1fdaab2e5edd816f123f985bb5e1', name: this.fieldName || this.internalName, label: this.label, addonLabel: this.addonLabel, hint: this.hint, errorMessage: this.errorMessage, width: this.width, rules: this.rules, error: this.error, disabled: this.disabled, focused: this.focused, hovered: this.hovered, icon: this.icon, labelTooltip: this.labelTooltip, labelTooltipProps: this.labelTooltipProps, onMouseEnter: () => {
209
+ return (h("sd-field", { key: '4a2253174ec791043f98ecca8703670b8423beaf', name: this.fieldName || this.internalName, label: this.label, addonLabel: this.addonLabel, hint: this.hint, errorMessage: this.errorMessage, width: this.width, rules: this.rules, error: this.error, disabled: this.disabled, focused: this.focused, hovered: this.hovered, icon: this.icon, labelTooltip: this.labelTooltip, labelTooltipProps: this.labelTooltipProps, onMouseEnter: () => {
210
210
  this.hovered = true;
211
211
  }, onMouseLeave: () => {
212
212
  this.hovered = false;
213
- } }, h("div", { key: '6986034ffd38602b111724ea998199d88bbed270', class: "sd-select-v2", ref: el => {
213
+ } }, h("div", { key: 'a1cf728f0d8f133ed5766c5f9adb3a955e8927ca', class: "sd-select-v2", ref: el => {
214
214
  this.triggerRef = el;
215
- } }, h("sd-select-v2-trigger", { key: '3af08facaebc0ec5b99ced0bb93cf8daea3367cb', displayText: this.displayText, placeholder: this.placeholder, disabled: this.disabled, isOpen: this.isOpen, onSdTriggerClick: this.handleTriggerClick })), (this.isOpen || this.isAnimatingOut) && (h("sd-portal", { key: '6fa4284cdd6d69d02a93e2e18423a7029122e58f', ...portalProps }, h("sd-select-v2-listbox", { key: '323f811ace6ee59c1d7b15ae7fa497a49b1d2f17', name: this.name, options: this.options, value: this.value, emitValue: this.emitValue, triggerWidth: this.triggerWidth, maxWidth: this.resolvedMaxDropdownWidth, maxHeight: this.resolvedDropdownHeight, onSdOptionSelect: event => this.handleOptionSelect(event.detail) })))));
215
+ } }, h("sd-select-v2-trigger", { key: 'b939f8fe711b253b00a094a9c60f4f67892b166f', displayText: this.displayText, placeholder: this.placeholder, disabled: this.disabled, isOpen: this.isOpen, onSdTriggerClick: this.handleTriggerClick })), (this.isOpen || this.isAnimatingOut) && (h("sd-portal", { key: '9a50037ca13cd754f820d6f2f6052f9c4928feb7', ...portalProps }, h("sd-select-v2-listbox", { key: 'e6e5b14376647bf4204bab2b65f6468b85b768c1', name: this.name, options: this.options, value: this.value, emitValue: this.emitValue, triggerWidth: this.triggerWidth, maxWidth: this.resolvedMaxDropdownWidth, maxHeight: this.resolvedDropdownHeight, onSdOptionSelect: event => this.handleOptionSelect(event.detail) })))));
216
216
  }
217
217
  static get is() { return "sd-select-v2"; }
218
218
  static get originalStyleUrls() {
@@ -14,7 +14,6 @@ export class SdTabs {
14
14
  this.value = newValue;
15
15
  }
16
16
  handleTabClick = (tabValue) => {
17
- this.value = tabValue;
18
17
  this.value = tabValue;
19
18
  this.update.emit(tabValue);
20
19
  };
@@ -40,9 +39,9 @@ export class SdTabs {
40
39
  return `square_${this.size}_${color}`;
41
40
  }
42
41
  render() {
43
- return (h("div", { key: 'c179db82ee130f4ccbdca7cb1af7b156ad174df8', class: this.getContainerClasses() }, this.tabs.map((tab, index) => {
42
+ return (h("div", { key: '74a25ee4311c84e79f4918b884385f27d6af6313', class: this.getContainerClasses() }, this.tabs.map((tab, index) => {
44
43
  const badgeName = this.getBadgeName(tab);
45
- return (h("div", { key: `tab-${index}`, class: this.getTabClasses(tab), "aria-label": tab.label || 'tab', onClick: () => this.handleTabClick(tab.value) }, h("span", { "data-label": tab.label, class: "sd-tabs__label" }, tab.label), tab.badge && (h("sd-tag", { name: badgeName, label: tab.badge.toString() }))));
44
+ return (h("div", { key: `tab-${index}`, class: this.getTabClasses(tab), "aria-label": tab.label || 'tab', onClick: () => this.handleTabClick(tab.value) }, h("span", { "data-label": tab.label, class: "sd-tabs__label" }, tab.label), tab.badge && h("sd-tag", { name: badgeName, label: tab.badge.toString() })));
46
45
  })));
47
46
  }
48
47
  static get is() { return "sd-tabs"; }
@@ -19,7 +19,7 @@ export class SdTag {
19
19
  render() {
20
20
  const config = this.resolvedConfig;
21
21
  const iconNode = this.renderIcon(config.icon, config.iconSize);
22
- return (h("span", { key: 'e2ea10f2795e7cb481108903609785d490046539', class: "sd-tag", style: {
22
+ return (h("span", { key: '1cfaeb97f648f8929cdaf6bd5650e400f47cb207', class: "sd-tag", style: {
23
23
  '--sd-tag-background': config.background,
24
24
  '--sd-tag-content': config.content,
25
25
  '--sd-tag-height': config.height,
@@ -29,7 +29,7 @@ export class SdTag {
29
29
  '--sd-tag-font-weight': config.fontWeight,
30
30
  '--sd-tag-line-height': config.lineHeight,
31
31
  '--sd-tag-radius': config.radius,
32
- }, "aria-label": this.label || 'tag' }, this.icon && this.isLeft && iconNode, h("span", { key: '129b9791f345e368de9d19afef62f740435dd07f', class: "sd-tag__label" }, this.label), this.icon && !this.isLeft && iconNode));
32
+ }, "aria-label": this.label || 'tag' }, this.icon && this.isLeft && iconNode, h("span", { key: 'c858d07e4b33f9d142a7d2719399374c37785fe3', class: "sd-tag__label" }, this.label), this.icon && !this.isLeft && iconNode));
33
33
  }
34
34
  static get is() { return "sd-tag"; }
35
35
  static get originalStyleUrls() {
@@ -30,16 +30,16 @@ export class SdTextLink {
30
30
  '--sd-text-link-text-decoration': typo.textDecoration,
31
31
  '--sd-text-link-color': contentColor,
32
32
  };
33
- return (h("span", { key: 'e93a2744e49a267f4b775793e0e18f0c223a03dd', class: {
33
+ return (h("span", { key: '518661e48081a4c128667608ebda9a1dca1b19c0', class: {
34
34
  'sd-text-link': true,
35
35
  'sd-text-link--disabled': this.disabled,
36
- }, style: cssVars, onClick: this.handleClick }, this.icon && (h("sd-icon", { key: '3f39510caef0cec81ba23340e25f920389886b69', name: this.icon, size: TEXT_LINK_LAYOUT.iconSize, color: iconColor, class: "sd-text-link__icon" })), h("span", { key: 'ad0cac3fda5be82e5f0d2d9e7822b2bf82d2d4ee', class: "sd-text-link__label" }, this.label), this.useArrow && (h("span", { key: '2ecdfdb83f62468ff36f6da1b96caf53b2302bbf', class: "sd-text-link__arrow", style: {
36
+ }, style: cssVars, onClick: this.handleClick }, this.icon && (h("sd-icon", { key: 'b73b19f38036987ab312e8ce9960280fa863a44e', name: this.icon, size: TEXT_LINK_LAYOUT.iconSize, color: iconColor, class: "sd-text-link__icon" })), h("span", { key: 'a61877f0c9740259fa81344b41f43de50d76d582', class: "sd-text-link__label" }, this.label), this.useArrow && (h("span", { key: '2887c482820bff0dcbd3e753f979b242b765e5b9', class: "sd-text-link__arrow", style: {
37
37
  width: `${TEXT_LINK_LAYOUT.arrowFrame}px`,
38
38
  height: `${TEXT_LINK_LAYOUT.arrowFrame}px`,
39
39
  display: 'inline-flex',
40
40
  alignItems: 'center',
41
41
  justifyContent: 'center',
42
- } }, h("sd-icon", { key: '92140c5c4fffc70af27894cd4f1a6bab80e6f64c', name: "chevronRight", size: TEXT_LINK_LAYOUT.arrowIconSize, color: arrowColor })))));
42
+ } }, h("sd-icon", { key: 'da303224cde569553d8eca8e6215761640ea2470', name: "chevronRight", size: TEXT_LINK_LAYOUT.arrowIconSize, color: arrowColor })))));
43
43
  }
44
44
  static get is() { return "sd-text-link"; }
45
45
  static get originalStyleUrls() {
@@ -75,10 +75,10 @@ export class SdTextarea {
75
75
  }
76
76
  render() {
77
77
  const maxLengthCounter = this.getMaxLengthCounter();
78
- return (h("div", { key: '623b3d8085c36cc4ea9de4e5b7c775d1a83eb73c', class: {
78
+ return (h("div", { key: 'cd47db7305c089848a3385932945a99cd3932ebb', class: {
79
79
  'sd-textarea': true,
80
80
  [this.getTextareaStatus()]: true,
81
- }, onMouseEnter: () => (this.hovered = true), onMouseLeave: () => (this.hovered = false) }, h("div", { key: '9947ecb8ddaede40977ab421603ac987853617f6', class: "sd-textarea__content" }, h("textarea", { key: '8373ccc78b85abf84b09af3953b15a145bf5e747', name: this.name, ref: el => (this.nativeEl = el), class: `sd-textarea__native ${this.textareaClass}`, value: this.internalValue || '', placeholder: this.placeholder, disabled: this.disabled, autofocus: this.autoFocus, maxLength: this.maxLength, onInput: this.handleInput.bind(this), onFocus: event => this.handleFocus('focus', event), onBlur: event => this.handleFocus('blur', event) })), this.hasFooter() && (h("div", { key: '7392aabb95444be4f95605c6d342dcf68c2b09e2', class: "sd-textarea__footer" }, this.helpText !== undefined && h("span", { key: '0ace2ab4995f183184d6f1ed9f4c2ee77f30614c', class: "sd-textarea__help-text" }, this.helpText), maxLengthCounter !== null && h("span", { key: '6b029c0b183d80ad3c838ef666ce2461679b3ce2', class: "sd-textarea__counter" }, maxLengthCounter)))));
81
+ }, onMouseEnter: () => (this.hovered = true), onMouseLeave: () => (this.hovered = false) }, h("div", { key: '2768eed1797ecc42e3e9d7a15416f93fa8eb211f', class: "sd-textarea__content" }, h("textarea", { key: '91af1337c1209d9798728912a7eae52acf02b6ca', name: this.name, ref: el => (this.nativeEl = el), class: `sd-textarea__native ${this.textareaClass}`, value: this.internalValue || '', placeholder: this.placeholder, disabled: this.disabled, autofocus: this.autoFocus, maxLength: this.maxLength, onInput: this.handleInput.bind(this), onFocus: event => this.handleFocus('focus', event), onBlur: event => this.handleFocus('blur', event) })), this.hasFooter() && (h("div", { key: '9d4e2e72a87beb9e95009c8824165f136e2b194c', class: "sd-textarea__footer" }, this.helpText !== undefined && h("span", { key: 'e420045dbb4cd253125594ea7230818281aa920f', class: "sd-textarea__help-text" }, this.helpText), maxLengthCounter !== null && h("span", { key: '3658f7f91c21e301f0fe5b69226a6380d500fbca', class: "sd-textarea__counter" }, maxLengthCounter)))));
82
82
  }
83
83
  static get is() { return "sd-textarea"; }
84
84
  static get originalStyleUrls() {
@@ -49,19 +49,5 @@ sd-toast .sd-toast__button button {
49
49
  color: var(--button-text-color, inherit) !important;
50
50
  }
51
51
  sd-toast .sd-toast__close {
52
- display: flex;
53
- align-items: center;
54
- justify-content: center;
55
- padding: 4px;
56
- background-color: transparent;
57
- border: none;
58
- cursor: pointer;
59
- transition: opacity 0.2s ease;
60
52
  flex-shrink: 0;
61
- }
62
- sd-toast .sd-toast__close:hover {
63
- opacity: 0.7;
64
- }
65
- sd-toast .sd-toast__close:active {
66
- opacity: 0.5;
67
53
  }
@@ -11,10 +11,10 @@ export class SdToast {
11
11
  render() {
12
12
  const typeConfig = TOAST_TYPE_CONFIG[this.type] ?? TOAST_TYPE_CONFIG.default;
13
13
  const iconSize = Number(TOAST_LAYOUT.iconSize);
14
- return (h("div", { key: '02f7aaf208dabe0d4ed07816038379c865073296', style: {
14
+ return (h("div", { key: '9f9332b868ad1ae09854a6eeb7dc0935d412147c', style: {
15
15
  '--sd-toast-bg': typeConfig.bg,
16
16
  '--sd-toast-text': typeConfig.content,
17
- } }, h("div", { key: 'b6273da0052dc663dc97c71705b8378ce9f73922', class: "sd-toast", role: "status", "aria-live": "polite", "aria-atomic": "true" }, this.icon && (h("div", { key: '569b0afaeade5d5ec41218e1927a247df6beffc1', class: "sd-toast__icon" }, h("sd-icon", { key: 'b7e2113a36f3af91adaadbe1f87c39cef37c01fd', name: this.icon, size: iconSize, color: typeConfig.content }))), h("div", { key: 'af6e8c9e5db30cbf5a1be3f0958470101935dde2', class: "sd-toast__content" }, h("span", { key: 'f6459b3d086f7675b37e922f9f4bc8ae6a257197', class: "sd-toast__message" }, this.message)), this.link && (h("a", { key: 'd3c000b69d039850b65c35836c0246d91290c111', href: this.link, class: "sd-toast__link", target: "_blank", rel: "noopener noreferrer" }, this.linkLabel || this.link)), this.useClose && (h("button", { key: 'c9d75b733730fe6af6aa49b3780d1c9a894b7408', type: "button", class: "sd-toast__close", onClick: () => this.close.emit(), "aria-label": "Close", title: "Close" }, h("sd-icon", { key: '170643bc8fecd2f275202d28f2873ddb71918bbc', name: "close", size: iconSize, color: typeConfig.content }))))));
17
+ } }, h("div", { key: '762ac3406fd9d98dc4583244de6744f1e2c6eec6', class: "sd-toast", role: "status", "aria-live": "polite", "aria-atomic": "true" }, this.icon && (h("div", { key: '8f7f2ce05c5e0f26b5d4af17284cc67ae35c9677', class: "sd-toast__icon" }, h("sd-icon", { key: '456de7bdf8b1ed1c11ec35d73b7b78ee7fd2c9d8', name: this.icon, size: iconSize, color: typeConfig.content }))), h("div", { key: 'a4feb91f9a79023413f01f79e2012dc9f9af0d3b', class: "sd-toast__content" }, h("span", { key: '091acd520b42f2cd2d0ae199ea540ce9d3a3f59f', class: "sd-toast__message" }, this.message)), this.link && (h("a", { key: 'f1738019a27b9f6f98c17183c7acdcbee9f6e00e', href: this.link, class: "sd-toast__link", target: "_blank", rel: "noopener noreferrer" }, this.linkLabel || this.link)), this.useClose && (h("sd-ghost-button", { key: '8cfb8c54a20d71fdc17f9bf8ba5fe6d6ce028ed3', class: "sd-toast__close", icon: "close", ariaLabel: "close", size: "xs", onClick: () => this.close.emit() })))));
18
18
  }
19
19
  static get is() { return "sd-toast"; }
20
20
  static get originalStyleUrls() {
@@ -7,6 +7,5 @@
7
7
  * DO NOT use this file to export your components. Instead, use the recommended approaches
8
8
  * to consume components of this package as outlined in the `README.md`.
9
9
  */
10
- export { format } from './utils/utils';
11
10
  export { sdToast } from './utils/toast';
12
11
  export { sdModal } from './utils/modal';
@@ -1 +1 @@
1
- export{g as getAssetPath,r as render,s as setAssetPath,a as setNonce,b as setPlatformOptions}from"./p-B1vJXa29.js";function t(t,n,e){return(t||"")+(n?" "+n:"")+(e?" "+e:"")}let n=null;function e(t,n){n&&(n.position&&t.setAttribute("position",n.position),null!=n.maxVisible&&t.setAttribute("max-visible",n.maxVisible+""),null!=n.defaultDuration&&t.setAttribute("default-duration",n.defaultDuration+""),null!=n.zIndex&&t.setAttribute("z-index",n.zIndex+""))}function o(t){return n&&document.body.contains(n)?(e(n,t),n):(n=document.createElement("sd-toast-container"),e(n,t),document.body.appendChild(n),n)}function i(t){return"function"==typeof t.create?Promise.resolve():new Promise((n=>{const e=()=>{"function"==typeof t.create?n():requestAnimationFrame(e)};requestAnimationFrame(e)}))}const u={async create(t,n,e){const{globalOptions:s,...r}=e??{},a=o(s);return await i(a),a.create({message:t,type:n,...r})},async dismiss(t){if(n)return await i(n),n.dismiss(t)},async dismissAll(){if(n)return await i(n),n.dismissAll()},configure(t){o(t)}},c="sd-modal-container";class d{modalId;okFn;cancelFn;closeFn;dismissedFn;containerRef;pendingActions=[];constructor(t,n){this.modalId=t,this.containerRef=n}onOk(t){return this.okFn=t,this}onCancel(t){return this.cancelFn=t,this}onClose(t){return this.closeFn=t,this}onDismissed(t){return this.dismissedFn=t,this}update(t){return this.runOrQueue((()=>{this.containerRef.update?.(this.modalId,t)})),this}_triggerOk(){this.okFn?.()}_triggerCancel(){this.cancelFn?.()}_triggerClose(){this.closeFn?.()}_triggerDismissed(){this.dismissedFn?.()}_setId(t){this.modalId=t;const n=[...this.pendingActions];this.pendingActions=[],n.forEach((t=>t()))}runOrQueue(t){this.modalId?t():this.pendingActions.push(t)}}let l=null;function m(t,n){n&&null!=n.zIndex&&t.style.setProperty("--sd-modal-container-z-index",n.zIndex+"")}function f(t){return function(){if("undefined"==typeof window||"undefined"==typeof document||"undefined"==typeof customElements)throw Error("[sdModal] Browser APIs are unavailable. Use `sdModal` only on the client.")}(),function(){if(!customElements.get(c))throw Error("[sdModal] `sd-modal-container` is not registered. Call `defineCustomElements(window)` before using `sdModal`.")}(),l&&document.body.contains(l)?(m(l,t),l):(l=document.createElement(c),m(l,t),document.body.appendChild(l),l)}async function h(t){if(await customElements.whenDefined(c),"function"==typeof t.open)return Promise.resolve();throw Error("[sdModal] `sd-modal-container` is registered but not ready to open dialogs.")}const p={confirm(t){const n=f(),e=new d("",n);return h(n).then((async()=>{const s=await n.open(t,e);e._setId(s)})),e},create(t){const{component:n,persist:e}=t,s=f(),o=new d("",s),i={persistent:e};return h(s).then((async()=>{const t=await s.createCustom(n,i,o);o._setId(t)})),o},configure(t){f(t)}};export{t as format,p as sdModal,u as sdToast}
1
+ export{g as getAssetPath,r as render,s as setAssetPath,a as setNonce,b as setPlatformOptions}from"./p-B1vJXa29.js";let t=null;function n(t,n){n&&(n.position&&t.setAttribute("position",n.position),null!=n.maxVisible&&t.setAttribute("max-visible",n.maxVisible+""),null!=n.defaultDuration&&t.setAttribute("default-duration",n.defaultDuration+""),null!=n.zIndex&&t.setAttribute("z-index",n.zIndex+""))}function e(e){return t&&document.body.contains(t)?(n(t,e),t):(t=document.createElement("sd-toast-container"),n(t,e),document.body.appendChild(t),t)}function o(t){return"function"==typeof t.create?Promise.resolve():new Promise((n=>{const e=()=>{"function"==typeof t.create?n():requestAnimationFrame(e)};requestAnimationFrame(e)}))}const i={async create(t,n,s){const{globalOptions:i,...r}=s??{},a=e(i);return await o(a),a.create({message:t,type:n,...r})},async dismiss(n){if(t)return await o(t),t.dismiss(n)},async dismissAll(){if(t)return await o(t),t.dismissAll()},configure(t){e(t)}},c="sd-modal-container";class u{modalId;okFn;cancelFn;closeFn;dismissedFn;containerRef;pendingActions=[];constructor(t,n){this.modalId=t,this.containerRef=n}onOk(t){return this.okFn=t,this}onCancel(t){return this.cancelFn=t,this}onClose(t){return this.closeFn=t,this}onDismissed(t){return this.dismissedFn=t,this}update(t){return this.runOrQueue((()=>{this.containerRef.update?.(this.modalId,t)})),this}_triggerOk(){this.okFn?.()}_triggerCancel(){this.cancelFn?.()}_triggerClose(){this.closeFn?.()}_triggerDismissed(){this.dismissedFn?.()}_setId(t){this.modalId=t;const n=[...this.pendingActions];this.pendingActions=[],n.forEach((t=>t()))}runOrQueue(t){this.modalId?t():this.pendingActions.push(t)}}let d=null;function l(t,n){n&&null!=n.zIndex&&t.style.setProperty("--sd-modal-container-z-index",n.zIndex+"")}function m(t){return function(){if("undefined"==typeof window||"undefined"==typeof document||"undefined"==typeof customElements)throw Error("[sdModal] Browser APIs are unavailable. Use `sdModal` only on the client.")}(),function(){if(!customElements.get(c))throw Error("[sdModal] `sd-modal-container` is not registered. Call `defineCustomElements(window)` before using `sdModal`.")}(),d&&document.body.contains(d)?(l(d,t),d):(d=document.createElement(c),l(d,t),document.body.appendChild(d),d)}async function f(t){if(await customElements.whenDefined(c),"function"==typeof t.open)return Promise.resolve();throw Error("[sdModal] `sd-modal-container` is registered but not ready to open dialogs.")}const h={confirm(t){const n=m(),e=new u("",n);return f(n).then((async()=>{const s=await n.open(t,e);e._setId(s)})),e},create(t){const{component:n,persist:e}=t,s=m(),o=new u("",s),i={persistent:e};return f(s).then((async()=>{const t=await s.createCustom(n,i,o);o._setId(t)})),o},configure(t){m(t)}};export{h as sdModal,i as sdToast}