@sellmate/design-system 1.0.66 → 1.0.68

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 (408) hide show
  1. package/dist/cjs/{component.textinput-C4SsDjA1.js → component.textinput-BpXDeZPD.js} +3 -2
  2. package/dist/cjs/design-system.cjs.js +2 -2
  3. package/dist/cjs/{index-nsQP24mV.js → index-B2QvhbC3.js} +1 -1
  4. package/dist/cjs/index.cjs.js +36 -41
  5. package/dist/cjs/loader.cjs.js +2 -2
  6. package/dist/cjs/modal-stack-DucFLON7.js +112 -0
  7. package/dist/cjs/sd-action-modal.cjs.entry.js +2 -2
  8. package/dist/cjs/sd-badge.cjs.entry.js +2 -2
  9. package/dist/cjs/sd-barcode-input.cjs.entry.js +3 -3
  10. package/dist/cjs/sd-button-v2_2.cjs.entry.js +3 -3
  11. package/dist/cjs/sd-button_4.cjs.entry.js +22 -17
  12. package/dist/cjs/sd-calendar.cjs.entry.js +1 -1
  13. package/dist/cjs/sd-card.cjs.entry.js +2 -2
  14. package/dist/cjs/sd-checkbox.cjs.entry.js +1 -1
  15. package/dist/cjs/sd-chip.cjs.entry.js +312 -0
  16. package/dist/cjs/sd-circle-progress.cjs.entry.js +2 -2
  17. package/dist/cjs/sd-confirm-modal_2.cjs.entry.js +5 -4
  18. package/dist/cjs/sd-date-box.cjs.entry.js +1 -1
  19. package/dist/cjs/sd-date-picker-calendar.cjs.entry.js +2 -2
  20. package/dist/cjs/sd-date-picker-trigger.cjs.entry.js +3 -3
  21. package/dist/cjs/sd-date-picker.cjs.entry.js +3 -3
  22. package/dist/cjs/sd-date-range-picker-calendar.cjs.entry.js +2 -2
  23. package/dist/cjs/sd-date-range-picker.cjs.entry.js +1 -1
  24. package/dist/cjs/sd-dropdown-button.cjs.entry.js +8 -19
  25. package/dist/cjs/sd-file-picker.cjs.entry.js +3 -3
  26. package/dist/cjs/sd-form.cjs.entry.js +1 -1
  27. package/dist/cjs/sd-ghost-button.cjs.entry.js +6 -6
  28. package/dist/cjs/sd-guide.cjs.entry.js +167 -34
  29. package/dist/cjs/sd-input_2.cjs.entry.js +7 -7
  30. package/dist/cjs/sd-loading-container.cjs.entry.js +4 -4
  31. package/dist/cjs/sd-modal-container.cjs.entry.js +130 -151
  32. package/dist/cjs/sd-number-input.cjs.entry.js +4 -4
  33. package/dist/cjs/sd-pagination_2.cjs.entry.js +116 -42
  34. package/dist/cjs/sd-popover.cjs.entry.js +4 -4
  35. package/dist/cjs/sd-portal.cjs.entry.js +4 -4
  36. package/dist/cjs/sd-progress.cjs.entry.js +3 -3
  37. package/dist/cjs/sd-radio-button.cjs.entry.js +2 -2
  38. package/dist/cjs/sd-radio-group.cjs.entry.js +3 -3
  39. package/dist/cjs/sd-radio.cjs.entry.js +18 -27
  40. package/dist/cjs/sd-select-dropdown_2.cjs.entry.js +4 -4
  41. package/dist/cjs/sd-select-group.cjs.entry.js +2 -2
  42. package/dist/cjs/sd-select-multiple-group.cjs.entry.js +2 -2
  43. package/dist/cjs/sd-select-multiple.cjs.entry.js +2 -2
  44. package/dist/cjs/sd-select-option-group.cjs.entry.js +4 -4
  45. package/dist/cjs/sd-select-v2-list-item_4.cjs.entry.js +29 -24
  46. package/dist/cjs/sd-select.cjs.entry.js +2 -2
  47. package/dist/cjs/sd-switch.cjs.entry.js +2 -2
  48. package/dist/cjs/sd-table.cjs.entry.js +6 -6
  49. package/dist/cjs/sd-tabs.cjs.entry.js +2 -2
  50. package/dist/cjs/sd-tag.cjs.entry.js +3 -3
  51. package/dist/cjs/sd-tbody.cjs.entry.js +2 -2
  52. package/dist/cjs/sd-td.cjs.entry.js +2 -2
  53. package/dist/cjs/sd-text-link.cjs.entry.js +4 -4
  54. package/dist/cjs/sd-textarea.cjs.entry.js +3 -3
  55. package/dist/cjs/sd-thead.cjs.entry.js +4 -4
  56. package/dist/cjs/sd-toast-container.cjs.entry.js +3 -3
  57. package/dist/cjs/sd-toast.cjs.entry.js +3 -3
  58. package/dist/cjs/sd-toggle.cjs.entry.js +2 -2
  59. package/dist/cjs/sd-tr.cjs.entry.js +3 -3
  60. package/dist/cjs/system-C89o3A9Z.js +16 -0
  61. package/dist/cjs/table-test.cjs.entry.js +2 -2
  62. package/dist/cjs/{tooltipArrow-DhevfDPX.js → tooltipArrow-Xkv-p1bY.js} +1 -1
  63. package/dist/collection/collection-manifest.json +2 -1
  64. package/dist/collection/components/sd-action-modal/sd-action-modal.js +1 -1
  65. package/dist/collection/components/sd-badge/sd-badge.js +1 -1
  66. package/dist/collection/components/sd-barcode-input/sd-barcode-input.js +1 -1
  67. package/dist/collection/components/sd-button-v2/sd-button-v2.js +2 -2
  68. package/dist/collection/components/sd-card/sd-card.js +1 -1
  69. package/dist/collection/components/sd-chip/sd-chip.config.js +37 -0
  70. package/dist/collection/components/sd-chip/sd-chip.css +56 -0
  71. package/dist/collection/components/sd-chip/sd-chip.js +544 -0
  72. package/dist/collection/components/sd-circle-progress/sd-circle-progress.js +1 -1
  73. package/dist/collection/components/sd-confirm-modal/sd-confirm-modal.js +2 -2
  74. package/dist/collection/components/sd-date-picker/sd-date-picker-calendar/sd-date-picker-calendar.js +1 -1
  75. package/dist/collection/components/sd-date-picker/sd-date-picker-trigger/sd-date-picker-trigger.js +2 -2
  76. package/dist/collection/components/sd-date-picker/sd-date-picker.js +2 -2
  77. package/dist/collection/components/sd-date-range-picker/sd-date-range-picker-calendar/sd-date-range-picker-calendar.js +1 -1
  78. package/dist/collection/components/sd-dropdown-button/sd-dropdown-button.js +3 -3
  79. package/dist/collection/components/sd-field/sd-field.js +4 -4
  80. package/dist/collection/components/sd-file-picker/sd-file-picker.css +1 -1
  81. package/dist/collection/components/sd-file-picker/sd-file-picker.js +1 -1
  82. package/dist/collection/components/sd-floating-portal/sd-floating-portal.js +12 -8
  83. package/dist/collection/components/sd-ghost-button/sd-ghost-button.js +5 -5
  84. package/dist/collection/components/sd-guide/sd-guide.config.js +48 -0
  85. package/dist/collection/components/sd-guide/sd-guide.css +58 -29
  86. package/dist/collection/components/sd-guide/sd-guide.js +69 -40
  87. package/dist/collection/components/sd-input/sd-input.js +2 -2
  88. package/dist/collection/components/sd-loading-container/sd-loading-container.config.js +1 -1
  89. package/dist/collection/components/sd-loading-container/sd-loading-container.css +1 -1
  90. package/dist/collection/components/sd-loading-container/sd-loading-container.js +2 -2
  91. package/dist/collection/components/sd-loading-modal/sd-loading-modal.js +22 -1
  92. package/dist/collection/components/sd-modal-container/sd-modal-container.css +11 -10
  93. package/dist/collection/components/sd-modal-container/sd-modal-container.js +154 -160
  94. package/dist/collection/components/sd-number-input/sd-number-input.js +3 -3
  95. package/dist/collection/components/sd-pagination/sd-pagination.config.js +25 -0
  96. package/dist/collection/components/sd-pagination/sd-pagination.css +69 -53
  97. package/dist/collection/components/sd-pagination/sd-pagination.js +53 -37
  98. package/dist/collection/components/sd-popover/sd-popover.js +2 -2
  99. package/dist/collection/components/sd-portal/sd-portal.js +4 -4
  100. package/dist/collection/components/sd-progress/sd-progress.js +2 -2
  101. package/dist/collection/components/sd-radio/sd-radio.config.js +6 -5
  102. package/dist/collection/components/sd-radio/sd-radio.css +2 -2
  103. package/dist/collection/components/sd-radio/sd-radio.js +2 -1
  104. package/dist/collection/components/sd-radio-button/sd-radio-button.js +1 -1
  105. package/dist/collection/components/sd-radio-group/sd-radio-group.css +2 -2
  106. package/dist/collection/components/sd-radio-group/sd-radio-group.js +1 -1
  107. package/dist/collection/components/sd-select/sd-select-dropdown/sd-select-dropdown.js +2 -2
  108. package/dist/collection/components/sd-select/sd-select-option/sd-select-option.js +1 -1
  109. package/dist/collection/components/sd-select/sd-select-search-input/sd-select-search-input.js +3 -3
  110. package/dist/collection/components/sd-select/sd-select.js +1 -1
  111. package/dist/collection/components/sd-select-group/sd-select-group.js +1 -1
  112. package/dist/collection/components/sd-select-multiple/sd-select-multiple.js +1 -1
  113. package/dist/collection/components/sd-select-multiple-group/sd-select-multiple-group.js +1 -1
  114. package/dist/collection/components/sd-select-multiple-group/sd-select-option-group/sd-select-option-group.js +3 -3
  115. package/dist/collection/components/sd-select-v2/sd-select-v2-list-item/sd-select-v2-list-item.css +2 -2
  116. package/dist/collection/components/sd-select-v2/sd-select-v2-list-item/sd-select-v2-list-item.js +4 -2
  117. package/dist/collection/components/sd-select-v2/sd-select-v2-list-item-search/sd-select-v2-list-item-search.js +4 -4
  118. package/dist/collection/components/sd-select-v2/sd-select-v2-listbox/sd-select-v2-listbox.css +5 -5
  119. package/dist/collection/components/sd-select-v2/sd-select-v2-listbox/sd-select-v2-listbox.js +2 -2
  120. package/dist/collection/components/sd-select-v2/sd-select-v2-trigger/sd-select-v2-trigger.js +2 -2
  121. package/dist/collection/components/sd-select-v2/sd-select-v2.config.js +5 -4
  122. package/dist/collection/components/sd-select-v2/sd-select-v2.js +3 -3
  123. package/dist/collection/components/sd-switch/sd-switch.js +1 -1
  124. package/dist/collection/components/sd-table/sd-table.js +5 -5
  125. package/dist/collection/components/sd-table/sd-table.stories.helpers.js +146 -0
  126. package/dist/collection/components/sd-table/sd-tbody/sd-tbody.js +1 -1
  127. package/dist/collection/components/sd-table/sd-td/sd-td.js +1 -1
  128. package/dist/collection/components/sd-table/sd-thead/sd-thead.js +3 -3
  129. package/dist/collection/components/sd-table/sd-tr/sd-tr.js +2 -2
  130. package/dist/collection/components/sd-tabs/sd-tabs.js +1 -1
  131. package/dist/collection/components/sd-tag/sd-tag.js +2 -2
  132. package/dist/collection/components/sd-text-link/sd-text-link.js +3 -3
  133. package/dist/collection/components/sd-textarea/sd-textarea.js +1 -1
  134. package/dist/collection/components/sd-toast/sd-toast.js +2 -2
  135. package/dist/collection/components/sd-toast-container/sd-toast-container.config.js +1 -1
  136. package/dist/collection/components/sd-toast-container/sd-toast-container.js +1 -1
  137. package/dist/collection/components/sd-toggle/sd-toggle.js +1 -1
  138. package/dist/collection/components/sd-tooltip/sd-tooltip.js +2 -2
  139. package/dist/collection/components/table-test/table-test.js +1 -1
  140. package/dist/collection/utils/modal-stack.js +109 -0
  141. package/dist/collection/utils/modal.js +17 -23
  142. package/dist/components/index.js +1 -1
  143. package/dist/components/p-B1j9ZWLJ.js +1 -0
  144. package/dist/components/p-BBluw-CU.js +1 -0
  145. package/dist/components/{p-D9FDutsj.js → p-BFd54Imz.js} +1 -1
  146. package/dist/components/{p-BH3z_vB9.js → p-BPXQ6DXz.js} +1 -1
  147. package/dist/components/p-BaHpEtbz.js +1 -0
  148. package/dist/components/{p-B6RvTdqt.js → p-BlqLear7.js} +1 -1
  149. package/dist/components/{p-CJwbBrt5.js → p-ByhWX2NK.js} +1 -1
  150. package/dist/components/{p-puZ1xlrr.js → p-BylHC3lv.js} +1 -1
  151. package/dist/components/p-C-txBx-h.js +1 -0
  152. package/dist/components/p-C0VkfKIA.js +1 -0
  153. package/dist/components/p-C4uWhzoG.js +1 -0
  154. package/dist/components/{p-CAeSM6Ov.js → p-CEeNVTzW.js} +1 -1
  155. package/dist/components/{p-6cueWz-l.js → p-CLZ8NObl.js} +1 -1
  156. package/dist/components/{p-DRY8HJ-T.js → p-COM91Bya.js} +1 -1
  157. package/dist/components/p-CS62OEXf.js +1 -0
  158. package/dist/components/{p-CGXwtYAv.js → p-CX0V7awA.js} +1 -1
  159. package/dist/components/{p-C2r48NLP.js → p-Cb1M05mf.js} +1 -1
  160. package/dist/components/{p-Cpu_hXwN.js → p-Cj4NAUzE.js} +1 -1
  161. package/dist/components/{p-B6OgnOKC.js → p-CsPyZohK.js} +1 -1
  162. package/dist/components/{p-Bh548Ckv.js → p-CsVPC3FD.js} +1 -1
  163. package/dist/components/{p-BLC3AWW8.js → p-Csfk-CtX.js} +1 -1
  164. package/dist/components/{p-CRl8Anfr.js → p-CtrDZYN5.js} +1 -1
  165. package/dist/components/p-D21iKAp7.js +1 -0
  166. package/dist/components/{p-TMuoVuhE.js → p-D6C4-apu.js} +1 -1
  167. package/dist/components/{p-Cr_74QR7.js → p-DGPGMB_Z.js} +1 -1
  168. package/dist/components/{p-h6zSUtA2.js → p-DIro-Wat.js} +1 -1
  169. package/dist/components/{p-AKpbKrkW.js → p-DPCj-bFr.js} +1 -1
  170. package/dist/components/{p-fcZvjHk_.js → p-DQLyH3dr.js} +1 -1
  171. package/dist/components/p-DRVnqiWc.js +1 -0
  172. package/dist/components/{p-HsTw_qYU.js → p-DWW5xr6r.js} +1 -1
  173. package/dist/components/p-D_lyw4rN.js +1 -0
  174. package/dist/components/{p-DXtyg5eK.js → p-Diis5oCN.js} +1 -1
  175. package/dist/components/{p-BdsI1E5l.js → p-DlkxQ9Jn.js} +1 -1
  176. package/dist/components/{p-Cpg2hVm3.js → p-N_EbEY8s.js} +1 -1
  177. package/dist/components/{p-CpclstHV.js → p-T5BGXHZg.js} +1 -1
  178. package/dist/components/{p-CGssy8eb.js → p-YgnF5oje.js} +1 -1
  179. package/dist/components/{p-Cc7ZBscb.js → p-z9MoRjYX.js} +1 -1
  180. package/dist/components/sd-action-modal.js +1 -1
  181. package/dist/components/sd-badge.js +1 -1
  182. package/dist/components/sd-barcode-input.js +1 -1
  183. package/dist/components/sd-button-v2.js +1 -1
  184. package/dist/components/sd-button.js +1 -1
  185. package/dist/components/sd-calendar.js +1 -1
  186. package/dist/components/sd-card.js +1 -1
  187. package/dist/components/sd-checkbox.js +1 -1
  188. package/dist/components/sd-chip.d.ts +11 -0
  189. package/dist/components/sd-chip.js +1 -0
  190. package/dist/components/sd-circle-progress.js +1 -1
  191. package/dist/components/sd-confirm-modal.js +1 -1
  192. package/dist/components/sd-date-box.js +1 -1
  193. package/dist/components/sd-date-picker-calendar.js +1 -1
  194. package/dist/components/sd-date-picker-trigger.js +1 -1
  195. package/dist/components/sd-date-picker.js +1 -1
  196. package/dist/components/sd-date-range-picker-calendar.js +1 -1
  197. package/dist/components/sd-date-range-picker.js +1 -1
  198. package/dist/components/sd-dropdown-button.js +1 -1
  199. package/dist/components/sd-field.js +1 -1
  200. package/dist/components/sd-file-picker.js +1 -1
  201. package/dist/components/sd-floating-portal.js +1 -1
  202. package/dist/components/sd-form.js +1 -1
  203. package/dist/components/sd-ghost-button.js +1 -1
  204. package/dist/components/sd-guide.js +1 -1
  205. package/dist/components/sd-icon.js +1 -1
  206. package/dist/components/sd-input.js +1 -1
  207. package/dist/components/sd-loading-container.js +1 -1
  208. package/dist/components/sd-loading-modal.js +1 -1
  209. package/dist/components/sd-modal-container.js +1 -1
  210. package/dist/components/sd-number-input.js +1 -1
  211. package/dist/components/sd-pagination.js +1 -1
  212. package/dist/components/sd-popover.js +1 -1
  213. package/dist/components/sd-portal.js +1 -1
  214. package/dist/components/sd-progress.js +1 -1
  215. package/dist/components/sd-radio-button.js +1 -1
  216. package/dist/components/sd-radio-group.js +1 -1
  217. package/dist/components/sd-radio.js +1 -1
  218. package/dist/components/sd-select-dropdown.js +1 -1
  219. package/dist/components/sd-select-group.js +1 -1
  220. package/dist/components/sd-select-multiple-group.js +1 -1
  221. package/dist/components/sd-select-multiple.js +1 -1
  222. package/dist/components/sd-select-option-group.js +1 -1
  223. package/dist/components/sd-select-option.js +1 -1
  224. package/dist/components/sd-select-search-input.js +1 -1
  225. package/dist/components/sd-select-v2-list-item-search.js +1 -1
  226. package/dist/components/sd-select-v2-list-item.js +1 -1
  227. package/dist/components/sd-select-v2-listbox.js +1 -1
  228. package/dist/components/sd-select-v2-trigger.js +1 -1
  229. package/dist/components/sd-select-v2.js +1 -1
  230. package/dist/components/sd-select.js +1 -1
  231. package/dist/components/sd-switch.js +1 -1
  232. package/dist/components/sd-table.js +1 -1
  233. package/dist/components/sd-tabs.js +1 -1
  234. package/dist/components/sd-tag.js +1 -1
  235. package/dist/components/sd-tbody.js +1 -1
  236. package/dist/components/sd-td.js +1 -1
  237. package/dist/components/sd-text-link.js +1 -1
  238. package/dist/components/sd-textarea.js +1 -1
  239. package/dist/components/sd-thead.js +1 -1
  240. package/dist/components/sd-toast-container.js +1 -1
  241. package/dist/components/sd-toast.js +1 -1
  242. package/dist/components/sd-toggle.js +1 -1
  243. package/dist/components/sd-tooltip.js +1 -1
  244. package/dist/components/sd-tr.js +1 -1
  245. package/dist/components/table-test.js +1 -1
  246. package/dist/design-system/design-system.css +1 -1
  247. package/dist/design-system/design-system.esm.js +1 -1
  248. package/dist/design-system/index.esm.js +1 -1
  249. package/dist/design-system/{p-e5f71ec0.entry.js → p-002e10ac.entry.js} +1 -1
  250. package/dist/design-system/p-01ac7743.entry.js +1 -0
  251. package/dist/design-system/{p-f3d082c8.entry.js → p-07736d67.entry.js} +1 -1
  252. package/dist/design-system/p-0929f910.entry.js +1 -0
  253. package/dist/design-system/{p-867ec4ee.entry.js → p-0b216b11.entry.js} +1 -1
  254. package/dist/design-system/{p-4dcadde3.entry.js → p-0bffdbf4.entry.js} +1 -1
  255. package/dist/design-system/{p-05ce3449.entry.js → p-0c98676e.entry.js} +1 -1
  256. package/dist/design-system/{p-9dd3c6a7.entry.js → p-0d485537.entry.js} +1 -1
  257. package/dist/design-system/{p-ed61fe19.entry.js → p-16eae7ae.entry.js} +1 -1
  258. package/dist/design-system/{p-03099a57.entry.js → p-1a455448.entry.js} +1 -1
  259. package/dist/design-system/{p-3d341993.entry.js → p-1b8e63a6.entry.js} +1 -1
  260. package/dist/design-system/p-23c31074.entry.js +1 -0
  261. package/dist/design-system/{p-96b14db1.entry.js → p-23ff6bee.entry.js} +1 -1
  262. package/dist/design-system/{p-8d2328ae.entry.js → p-2a4b6bc7.entry.js} +1 -1
  263. package/dist/design-system/{p-b81e0493.entry.js → p-2a663b3b.entry.js} +1 -1
  264. package/dist/design-system/{p-53bc77f8.entry.js → p-308c2a72.entry.js} +1 -1
  265. package/dist/design-system/{p-010e4f47.entry.js → p-33713805.entry.js} +1 -1
  266. package/dist/design-system/p-35b29182.entry.js +1 -0
  267. package/dist/design-system/{p-2ae97b1c.entry.js → p-449e58ee.entry.js} +1 -1
  268. package/dist/design-system/{p-5a63febd.entry.js → p-48f1f9ff.entry.js} +1 -1
  269. package/dist/design-system/{p-a27718c1.entry.js → p-4d434794.entry.js} +1 -1
  270. package/dist/design-system/p-4de3b6b1.entry.js +1 -0
  271. package/dist/design-system/p-4f9f25a1.entry.js +1 -0
  272. package/dist/design-system/{p-84a329fb.entry.js → p-59aa62ff.entry.js} +1 -1
  273. package/dist/design-system/{p-363da5ff.entry.js → p-5a0b0a1b.entry.js} +1 -1
  274. package/dist/design-system/p-60ece09d.entry.js +1 -0
  275. package/dist/design-system/{p-b1fe12f8.entry.js → p-641c2f3d.entry.js} +1 -1
  276. package/dist/design-system/{p-04be87a4.entry.js → p-64a56a4e.entry.js} +1 -1
  277. package/dist/design-system/{p-b60ae063.entry.js → p-6b2f6efb.entry.js} +1 -1
  278. package/dist/design-system/{p-fd296c73.entry.js → p-6b478f5c.entry.js} +1 -1
  279. package/dist/design-system/{p-d8eb17a8.entry.js → p-6ca6dfaf.entry.js} +1 -1
  280. package/dist/design-system/{p-d04551be.entry.js → p-6ef2d08f.entry.js} +1 -1
  281. package/dist/design-system/{p-c4e68815.entry.js → p-703eee55.entry.js} +1 -1
  282. package/dist/design-system/p-75c5e31b.entry.js +1 -0
  283. package/dist/design-system/p-7dd8beba.entry.js +1 -0
  284. package/dist/design-system/{p-73acee07.entry.js → p-7ef0c428.entry.js} +1 -1
  285. package/dist/design-system/{p-6644c4a0.entry.js → p-8281dc36.entry.js} +1 -1
  286. package/dist/design-system/p-87222184.entry.js +1 -0
  287. package/dist/design-system/{p-a129711d.entry.js → p-8cd1b533.entry.js} +1 -1
  288. package/dist/design-system/{p-40495e05.entry.js → p-92a52f89.entry.js} +1 -1
  289. package/dist/design-system/{p-4a53d7b0.entry.js → p-95d96917.entry.js} +1 -1
  290. package/dist/design-system/{p-e33389b8.entry.js → p-9ecde011.entry.js} +1 -1
  291. package/dist/design-system/{p-e78faea6.entry.js → p-9f0fe1f6.entry.js} +1 -1
  292. package/dist/design-system/p-BGyJgVXm.js +2 -0
  293. package/dist/design-system/{p-CJwbBrt5.js → p-ByhWX2NK.js} +1 -1
  294. package/dist/design-system/p-C-txBx-h.js +1 -0
  295. package/dist/design-system/{p-COK6PVLC.js → p-C4tHYnB4.js} +1 -1
  296. package/dist/design-system/p-DRVnqiWc.js +1 -0
  297. package/dist/design-system/{p-3f79f1d1.entry.js → p-ade9319d.entry.js} +1 -1
  298. package/dist/design-system/{p-4128c17f.entry.js → p-aeadfb9c.entry.js} +1 -1
  299. package/dist/design-system/{p-b3279f07.entry.js → p-ca6b4d4a.entry.js} +1 -1
  300. package/dist/design-system/{p-0fbb6d92.entry.js → p-cdedac3c.entry.js} +1 -1
  301. package/dist/design-system/{p-09ba9dbc.entry.js → p-d43772c0.entry.js} +1 -1
  302. package/dist/design-system/{p-e0f9e5b5.entry.js → p-dfa716e0.entry.js} +1 -1
  303. package/dist/design-system/{p-d040ec6f.entry.js → p-e1288299.entry.js} +1 -1
  304. package/dist/design-system/{p-a983560d.entry.js → p-e1b307ee.entry.js} +1 -1
  305. package/dist/design-system/p-e3a1e677.entry.js +1 -0
  306. package/dist/design-system/p-ebc72b3f.entry.js +1 -0
  307. package/dist/design-system/{p-6c71d7b7.entry.js → p-fa888a37.entry.js} +1 -1
  308. package/dist/esm/{component.textinput-CJwbBrt5.js → component.textinput-ByhWX2NK.js} +3 -2
  309. package/dist/esm/design-system.js +3 -3
  310. package/dist/esm/{index-BqHL8W3c.js → index-BGyJgVXm.js} +1 -1
  311. package/dist/esm/index.js +36 -41
  312. package/dist/esm/loader.js +3 -3
  313. package/dist/esm/modal-stack-DRVnqiWc.js +105 -0
  314. package/dist/esm/sd-action-modal.entry.js +2 -2
  315. package/dist/esm/sd-badge.entry.js +2 -2
  316. package/dist/esm/sd-barcode-input.entry.js +3 -3
  317. package/dist/esm/sd-button-v2_2.entry.js +3 -3
  318. package/dist/esm/sd-button_4.entry.js +22 -17
  319. package/dist/esm/sd-calendar.entry.js +1 -1
  320. package/dist/esm/sd-card.entry.js +2 -2
  321. package/dist/esm/sd-checkbox.entry.js +1 -1
  322. package/dist/esm/sd-chip.entry.js +310 -0
  323. package/dist/esm/sd-circle-progress.entry.js +2 -2
  324. package/dist/esm/sd-confirm-modal_2.entry.js +5 -4
  325. package/dist/esm/sd-date-box.entry.js +1 -1
  326. package/dist/esm/sd-date-picker-calendar.entry.js +2 -2
  327. package/dist/esm/sd-date-picker-trigger.entry.js +3 -3
  328. package/dist/esm/sd-date-picker.entry.js +3 -3
  329. package/dist/esm/sd-date-range-picker-calendar.entry.js +2 -2
  330. package/dist/esm/sd-date-range-picker.entry.js +1 -1
  331. package/dist/esm/sd-dropdown-button.entry.js +5 -16
  332. package/dist/esm/sd-file-picker.entry.js +3 -3
  333. package/dist/esm/sd-form.entry.js +1 -1
  334. package/dist/esm/sd-ghost-button.entry.js +6 -6
  335. package/dist/esm/sd-guide.entry.js +167 -34
  336. package/dist/esm/sd-input_2.entry.js +7 -7
  337. package/dist/esm/sd-loading-container.entry.js +4 -4
  338. package/dist/esm/sd-modal-container.entry.js +130 -151
  339. package/dist/esm/sd-number-input.entry.js +4 -4
  340. package/dist/esm/sd-pagination_2.entry.js +116 -42
  341. package/dist/esm/sd-popover.entry.js +4 -4
  342. package/dist/esm/sd-portal.entry.js +4 -4
  343. package/dist/esm/sd-progress.entry.js +3 -3
  344. package/dist/esm/sd-radio-button.entry.js +2 -2
  345. package/dist/esm/sd-radio-group.entry.js +3 -3
  346. package/dist/esm/sd-radio.entry.js +18 -27
  347. package/dist/esm/sd-select-dropdown_2.entry.js +4 -4
  348. package/dist/esm/sd-select-group.entry.js +2 -2
  349. package/dist/esm/sd-select-multiple-group.entry.js +2 -2
  350. package/dist/esm/sd-select-multiple.entry.js +2 -2
  351. package/dist/esm/sd-select-option-group.entry.js +4 -4
  352. package/dist/esm/sd-select-v2-list-item_4.entry.js +29 -24
  353. package/dist/esm/sd-select.entry.js +2 -2
  354. package/dist/esm/sd-switch.entry.js +2 -2
  355. package/dist/esm/sd-table.entry.js +6 -6
  356. package/dist/esm/sd-tabs.entry.js +2 -2
  357. package/dist/esm/sd-tag.entry.js +3 -3
  358. package/dist/esm/sd-tbody.entry.js +2 -2
  359. package/dist/esm/sd-td.entry.js +2 -2
  360. package/dist/esm/sd-text-link.entry.js +4 -4
  361. package/dist/esm/sd-textarea.entry.js +3 -3
  362. package/dist/esm/sd-thead.entry.js +4 -4
  363. package/dist/esm/sd-toast-container.entry.js +3 -3
  364. package/dist/esm/sd-toast.entry.js +3 -3
  365. package/dist/esm/sd-toggle.entry.js +2 -2
  366. package/dist/esm/sd-tr.entry.js +3 -3
  367. package/dist/esm/system-C-txBx-h.js +14 -0
  368. package/dist/esm/table-test.entry.js +2 -2
  369. package/dist/esm/{tooltipArrow-BcsrQx1U.js → tooltipArrow-BAjP9_Hx.js} +1 -1
  370. package/dist/types/components/sd-chip/sd-chip.config.d.ts +36 -0
  371. package/dist/types/components/sd-chip/sd-chip.d.ts +47 -0
  372. package/dist/types/components/sd-guide/sd-guide.config.d.ts +44 -0
  373. package/dist/types/components/sd-guide/sd-guide.d.ts +3 -4
  374. package/dist/types/components/sd-loading-container/sd-loading-container.config.d.ts +1 -1
  375. package/dist/types/components/sd-loading-modal/sd-loading-modal.d.ts +1 -0
  376. package/dist/types/components/sd-modal-container/sd-modal-container.config.d.ts +1 -0
  377. package/dist/types/components/sd-modal-container/sd-modal-container.d.ts +12 -16
  378. package/dist/types/components/sd-pagination/sd-pagination.config.d.ts +23 -0
  379. package/dist/types/components/sd-pagination/sd-pagination.d.ts +3 -3
  380. package/dist/types/components/sd-radio/sd-radio.config.d.ts +1 -0
  381. package/dist/types/components/sd-select-v2/sd-select-v2.config.d.ts +2 -1
  382. package/dist/types/components/sd-table/sd-table.stories.helpers.d.ts +29 -0
  383. package/dist/types/components/sd-toast-container/sd-toast-container.config.d.ts +1 -1
  384. package/dist/types/components.d.ts +134 -16
  385. package/dist/types/utils/modal-stack.d.ts +17 -0
  386. package/hydrate/index.js +1004 -385
  387. package/hydrate/index.mjs +1004 -385
  388. package/package.json +1 -1
  389. package/dist/components/p-6LkBUj0w.js +0 -1
  390. package/dist/components/p-B1S4ybd6.js +0 -1
  391. package/dist/components/p-CU095QAR.js +0 -1
  392. package/dist/components/p-DBnszF5F.js +0 -1
  393. package/dist/components/p-DpsDTjcN.js +0 -1
  394. package/dist/components/p-DuYi4aqj.js +0 -1
  395. package/dist/components/p-VXLJLI30.js +0 -1
  396. package/dist/components/p-kZ5N_lFC.js +0 -1
  397. package/dist/design-system/p-12a03c88.entry.js +0 -1
  398. package/dist/design-system/p-15cda79c.entry.js +0 -1
  399. package/dist/design-system/p-2f64dd95.entry.js +0 -1
  400. package/dist/design-system/p-33e4ce64.entry.js +0 -1
  401. package/dist/design-system/p-7e09fdd5.entry.js +0 -1
  402. package/dist/design-system/p-8acf3b67.entry.js +0 -1
  403. package/dist/design-system/p-BqHL8W3c.js +0 -2
  404. package/dist/design-system/p-ae1800c0.entry.js +0 -1
  405. package/dist/design-system/p-b6e02544.entry.js +0 -1
  406. package/dist/design-system/p-cf1156cb.entry.js +0 -1
  407. package/dist/design-system/p-e1fdd540.entry.js +0 -1
  408. package/dist/design-system/p-f9b9204d.entry.js +0 -1
@@ -1,8 +1,9 @@
1
1
  'use strict';
2
2
 
3
- var index = require('./index-nsQP24mV.js');
3
+ var index = require('./index-B2QvhbC3.js');
4
+ var modalStack = require('./modal-stack-DucFLON7.js');
4
5
 
5
- const sdModalContainerCss = () => `sd-modal-container{display:block}sd-modal-container .sd-modal-container{position:fixed;inset:0;z-index:var(--sd-modal-container-z-index, 9999);display:flex;align-items:center;justify-content:center}sd-modal-container .sd-modal-container__backdrop{position:absolute;inset:0;background:rgba(0, 0, 0, 0.4);opacity:0;transition:opacity 0.3s ease-out}sd-modal-container .sd-modal-container__backdrop--visible{opacity:1}sd-modal-container .sd-modal-container__content{position:relative;z-index:1;display:grid;place-items:center}sd-modal-container .sd-modal-container__content>*{grid-row:1;grid-column:1}sd-modal-container .sd-modal-container__modal{opacity:0;transform:scale(0);transition:opacity 0.3s ease-out, transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1)}sd-modal-container .sd-modal-container__modal--visible{opacity:1;transform:scale(1)}sd-modal-container .sd-modal-container__modal--shake{animation:modal-shake 0.3s ease-out}@keyframes modal-shake{0%,100%{transform:scale(1)}25%{transform:scale(1.03)}50%{transform:scale(0.97)}75%{transform:scale(1.01)}}`;
6
+ const sdModalContainerCss = () => `sd-modal-container{display:block}sd-modal-container .sd-modal-container{position:fixed;inset:0;z-index:var(--sd-modal-container-z-index, 997);pointer-events:none}sd-modal-container .sd-modal-container__layer{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;pointer-events:none}sd-modal-container .sd-modal-container__backdrop{position:absolute;inset:0;background:rgba(0, 0, 0, 0.4);opacity:0;transition:opacity 0.3s ease-out;pointer-events:none}sd-modal-container .sd-modal-container__backdrop--visible{opacity:1;pointer-events:auto}sd-modal-container .sd-modal-container__modal{position:relative;z-index:1;opacity:0;transform:scale(0);pointer-events:auto;transition:opacity 0.3s ease-out, transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1)}sd-modal-container .sd-modal-container__modal--visible{opacity:1;transform:scale(1)}sd-modal-container .sd-modal-container__modal--shake{animation:modal-shake 0.3s ease-out}@keyframes modal-shake{0%,100%{transform:scale(1)}25%{transform:scale(1.03)}50%{transform:scale(0.97)}75%{transform:scale(1.01)}}`;
6
7
 
7
8
  let modalIdCounter = 0;
8
9
  const ANIMATION_DURATION = 350;
@@ -11,31 +12,21 @@ const SdModalContainer = class {
11
12
  index.registerInstance(this, hostRef);
12
13
  }
13
14
  get el() { return index.getElement(this); }
14
- entries = [];
15
+ autoRemove = false;
16
+ entry;
15
17
  isVisible = false;
16
- isBackdropVisible = false;
17
- contentRef;
18
- containerDismissTimerId;
19
- previousBodyOverflow = null;
20
- bodyScrollLocked = false;
21
- handleKeydown(e) {
22
- if (e.key === 'Escape') {
23
- const top = this.getTopEntry();
24
- if (!top)
25
- return;
26
- if (top.persistent) {
27
- this.shakeModal(top.modalEl);
28
- return;
29
- }
30
- this.dispatchClose(top.modalEl);
31
- }
32
- }
18
+ backdropVisible = false;
19
+ layerRef;
33
20
  async open(options, modalRef) {
34
21
  const id = `modal-${++modalIdCounter}`;
35
22
  const modalEl = this.createConfirmModal(id, options);
36
23
  this.attachModalEventListeners(id, modalEl);
37
- this.registerEntry(id, modalEl, modalRef, {
24
+ this.mountEntry({
25
+ id,
26
+ modalEl,
27
+ modalRef,
38
28
  persistent: !!options.persistent,
29
+ closing: false,
39
30
  });
40
31
  return id;
41
32
  }
@@ -43,8 +34,12 @@ const SdModalContainer = class {
43
34
  const id = `modal-${++modalIdCounter}`;
44
35
  const modalEl = this.createLoadingModal(id, options);
45
36
  this.attachLoadingModalEventListeners(id, modalEl);
46
- this.registerEntry(id, modalEl, modalRef, {
37
+ this.mountEntry({
38
+ id,
39
+ modalEl,
40
+ modalRef,
47
41
  persistent: !!options.persistent,
42
+ closing: false,
48
43
  });
49
44
  return id;
50
45
  }
@@ -53,70 +48,118 @@ const SdModalContainer = class {
53
48
  element.setAttribute('data-modal-id', id);
54
49
  element.classList.add('sd-modal-container__modal');
55
50
  this.attachModalEventListeners(id, element);
56
- this.registerEntry(id, element, modalRef, {
51
+ this.mountEntry({
52
+ id,
53
+ modalEl: element,
54
+ modalRef,
57
55
  persistent: !!options.persistent,
56
+ closing: false,
58
57
  });
59
58
  return id;
60
59
  }
61
- attachModalEventListeners(id, modalEl) {
62
- modalEl.addEventListener('sdOk', () => this.requestDismiss(id, 'confirm'));
63
- modalEl.addEventListener('sdCancel', () => this.requestDismiss(id, 'cancel'));
64
- modalEl.addEventListener('sdClose', () => this.requestDismiss(id, 'close'));
65
- }
66
- attachLoadingModalEventListeners(id, modalEl) {
67
- modalEl.addEventListener('sdClick', () => {
68
- const entry = (this.entries ?? []).find(item => item.id === id);
69
- entry?.modalRef._triggerClick?.();
70
- });
71
- }
72
- dispatchClose(modalEl) {
73
- modalEl.dispatchEvent(new CustomEvent('sdClose'));
74
- }
75
- registerEntry(id, modalEl, modalRef, meta) {
76
- if (this.containerDismissTimerId) {
77
- clearTimeout(this.containerDismissTimerId);
78
- this.containerDismissTimerId = undefined;
79
- }
80
- this.entries = [
81
- ...(this.entries ?? []),
82
- {
83
- id,
84
- modalEl,
85
- modalRef,
86
- persistent: meta.persistent,
87
- closing: false,
88
- },
89
- ];
90
- this.isVisible = true;
91
- this.setBodyScrollLock(true);
92
- requestAnimationFrame(() => {
93
- if (!this.contentRef)
94
- return;
95
- this.contentRef.appendChild(modalEl);
96
- this.waitForModalReady(modalEl).then(() => {
97
- requestAnimationFrame(() => {
98
- const currentEntry = (this.entries ?? []).find(item => item.id === id);
99
- if (!currentEntry || currentEntry.closing || !modalEl.isConnected)
100
- return;
101
- this.isBackdropVisible = true;
102
- modalEl.classList.add('sd-modal-container__modal--visible');
103
- });
60
+ componentDidRender() {
61
+ if (!this.entry || this.entry.closing || !this.layerRef)
62
+ return;
63
+ if (this.entry.modalEl.isConnected)
64
+ return;
65
+ const { id, modalEl } = this.entry;
66
+ this.layerRef.appendChild(modalEl);
67
+ this.waitForModalReady(modalEl).then(() => {
68
+ requestAnimationFrame(() => {
69
+ if (!this.entry || this.entry.id !== id || this.entry.closing || !modalEl.isConnected)
70
+ return;
71
+ this.backdropVisible = true;
72
+ modalEl.classList.add('sd-modal-container__modal--visible');
104
73
  });
105
74
  });
106
75
  }
76
+ disconnectedCallback() {
77
+ if (this.entry?.dismissTimerId)
78
+ clearTimeout(this.entry.dismissTimerId);
79
+ if (this.entry)
80
+ modalStack.unregisterModal(this.entry.id);
81
+ }
107
82
  async dismissById(id, reason) {
108
- this.requestDismiss(id, reason);
83
+ if (this.entry?.id !== id)
84
+ return;
85
+ this.requestDismiss(reason);
109
86
  }
110
87
  async update(id, props) {
111
- const entry = (this.entries ?? []).find(e => e.id === id);
112
- if (!entry || entry.closing)
88
+ if (!this.entry || this.entry.id !== id || this.entry.closing)
113
89
  return;
114
- const tag = entry.modalEl.tagName.toLowerCase();
90
+ const tag = this.entry.modalEl.tagName.toLowerCase();
115
91
  if (tag === 'sd-loading-modal') {
116
- this.applyLoadingProps(entry.modalEl, props);
92
+ this.applyLoadingProps(this.entry.modalEl, props);
93
+ return;
94
+ }
95
+ this.applyProps(this.entry.modalEl, props);
96
+ }
97
+ mountEntry(entry) {
98
+ if (this.entry) {
99
+ throw new Error('[sd-modal-container] This instance already manages an active modal.');
117
100
  }
118
- else {
119
- this.applyProps(entry.modalEl, props);
101
+ this.entry = entry;
102
+ this.backdropVisible = false;
103
+ this.isVisible = true;
104
+ modalStack.registerModal({
105
+ id: entry.id,
106
+ persistent: entry.persistent,
107
+ requestClose: () => this.dispatchClose(),
108
+ shake: () => this.shakeModal(entry.modalEl),
109
+ setZIndex: zIndex => {
110
+ this.el.style.setProperty('--sd-modal-container-z-index', String(zIndex));
111
+ },
112
+ });
113
+ }
114
+ attachModalEventListeners(_id, modalEl) {
115
+ modalEl.addEventListener('sdOk', () => this.requestDismiss('confirm'));
116
+ modalEl.addEventListener('sdCancel', () => this.requestDismiss('cancel'));
117
+ modalEl.addEventListener('sdClose', () => this.requestDismiss('close'));
118
+ }
119
+ attachLoadingModalEventListeners(_id, modalEl) {
120
+ modalEl.addEventListener('sdClick', () => {
121
+ this.entry?.modalRef._triggerClick?.();
122
+ });
123
+ }
124
+ dispatchClose() {
125
+ this.entry?.modalEl.dispatchEvent(new CustomEvent('sdClose'));
126
+ }
127
+ requestDismiss(reason) {
128
+ const currentEntry = this.entry;
129
+ if (!currentEntry || currentEntry.closing)
130
+ return;
131
+ currentEntry.modalEl.classList.remove('sd-modal-container__modal--visible');
132
+ const dismissTimerId = setTimeout(() => {
133
+ this.finalizeDismiss(currentEntry.id);
134
+ }, ANIMATION_DURATION);
135
+ modalStack.setModalInteractive(currentEntry.id, false);
136
+ this.entry = {
137
+ ...currentEntry,
138
+ closing: true,
139
+ dismissTimerId,
140
+ };
141
+ this.backdropVisible = false;
142
+ if (reason === 'confirm')
143
+ currentEntry.modalRef._triggerOk();
144
+ else if (reason === 'cancel')
145
+ currentEntry.modalRef._triggerCancel();
146
+ else if (reason === 'close')
147
+ currentEntry.modalRef._triggerClose();
148
+ }
149
+ finalizeDismiss(id) {
150
+ const currentEntry = this.entry;
151
+ if (!currentEntry || currentEntry.id !== id)
152
+ return;
153
+ if (currentEntry.dismissTimerId)
154
+ clearTimeout(currentEntry.dismissTimerId);
155
+ currentEntry.modalEl.remove();
156
+ modalStack.unregisterModal(id);
157
+ currentEntry.modalRef._triggerDismissed();
158
+ this.entry = undefined;
159
+ this.backdropVisible = false;
160
+ this.isVisible = false;
161
+ if (this.autoRemove) {
162
+ this.el.remove();
120
163
  }
121
164
  }
122
165
  createConfirmModal(id, options) {
@@ -138,6 +181,12 @@ const SdModalContainer = class {
138
181
  this.setAttr(el, 'state', options.state);
139
182
  if (this.hasOwnProp(options, 'message'))
140
183
  this.setAttr(el, 'message', options.message);
184
+ if (this.hasOwnProp(options, 'useButton')) {
185
+ if (options.useButton)
186
+ el.setAttribute('use-button', '');
187
+ else
188
+ el.removeAttribute('use-button');
189
+ }
141
190
  if (this.hasOwnProp(options, 'buttonLabel')) {
142
191
  this.setAttr(el, 'button-label', options.buttonLabel);
143
192
  }
@@ -178,14 +227,9 @@ const SdModalContainer = class {
178
227
  el.tagContents = options.tagContents;
179
228
  }
180
229
  handleBackdropClick = () => {
181
- const top = this.getTopEntry();
182
- if (!top)
230
+ if (!this.entry || !modalStack.isTopInteractiveModal(this.entry.id))
183
231
  return;
184
- if (top.persistent) {
185
- this.shakeModal(top.modalEl);
186
- return;
187
- }
188
- this.dispatchClose(top.modalEl);
232
+ modalStack.requestCloseForModal(this.entry.id);
189
233
  };
190
234
  shakeModal(modalEl) {
191
235
  const cls = 'sd-modal-container__modal--shake';
@@ -195,73 +239,6 @@ const SdModalContainer = class {
195
239
  modalEl.classList.add(cls);
196
240
  });
197
241
  }
198
- disconnectedCallback() {
199
- (this.entries ?? []).forEach(entry => {
200
- if (entry.dismissTimerId)
201
- clearTimeout(entry.dismissTimerId);
202
- });
203
- if (this.containerDismissTimerId)
204
- clearTimeout(this.containerDismissTimerId);
205
- this.setBodyScrollLock(false);
206
- }
207
- setBodyScrollLock(lock) {
208
- if (typeof document === 'undefined')
209
- return;
210
- if (lock === this.bodyScrollLocked)
211
- return;
212
- if (lock) {
213
- this.previousBodyOverflow = document.body.style.overflow || '';
214
- document.body.style.overflow = 'hidden';
215
- }
216
- else {
217
- document.body.style.overflow = this.previousBodyOverflow ?? '';
218
- this.previousBodyOverflow = null;
219
- }
220
- this.bodyScrollLocked = lock;
221
- }
222
- getTopEntry() {
223
- return [...(this.entries ?? [])].reverse().find(entry => !entry.closing);
224
- }
225
- requestDismiss(id, reason) {
226
- const entry = (this.entries ?? []).find(item => item.id === id);
227
- if (!entry || entry.closing)
228
- return;
229
- entry.modalEl.classList.remove('sd-modal-container__modal--visible');
230
- const remainingActive = (this.entries ?? []).filter(item => item.id !== id && !item.closing);
231
- if (remainingActive.length === 0) {
232
- this.isBackdropVisible = false;
233
- }
234
- const dismissTimerId = setTimeout(() => {
235
- this.finalizeDismiss(id);
236
- }, ANIMATION_DURATION);
237
- this.entries = (this.entries ?? []).map(item => item.id === id ? { ...item, closing: true, dismissTimerId } : item);
238
- if (reason === 'confirm')
239
- entry.modalRef._triggerOk();
240
- else if (reason === 'cancel')
241
- entry.modalRef._triggerCancel();
242
- else if (reason === 'close')
243
- entry.modalRef._triggerClose();
244
- }
245
- finalizeDismiss(id) {
246
- const entry = (this.entries ?? []).find(item => item.id === id);
247
- if (!entry)
248
- return;
249
- if (entry.dismissTimerId)
250
- clearTimeout(entry.dismissTimerId);
251
- entry.modalEl.remove();
252
- const nextEntries = (this.entries ?? []).filter(item => item.id !== id);
253
- this.entries = nextEntries;
254
- if (nextEntries.length === 0) {
255
- this.setBodyScrollLock(false);
256
- this.containerDismissTimerId = setTimeout(() => {
257
- if ((this.entries ?? []).length === 0) {
258
- this.isVisible = false;
259
- }
260
- this.containerDismissTimerId = undefined;
261
- }, ANIMATION_DURATION);
262
- }
263
- entry.modalRef._triggerDismissed();
264
- }
265
242
  waitForModalReady(modalEl) {
266
243
  const componentOnReady = modalEl.componentOnReady;
267
244
  if (typeof componentOnReady === 'function') {
@@ -282,12 +259,14 @@ const SdModalContainer = class {
282
259
  el.setAttribute(name, value);
283
260
  }
284
261
  render() {
285
- if (!this.isVisible)
262
+ if (!this.isVisible || !this.entry)
286
263
  return null;
287
- return (index.h("div", { class: "sd-modal-container" }, index.h("div", { class: {
264
+ return (index.h("div", { class: "sd-modal-container" }, index.h("div", { class: "sd-modal-container__layer", "data-modal-id": this.entry.id, ref: el => {
265
+ this.layerRef = el;
266
+ } }, index.h("div", { class: {
288
267
  'sd-modal-container__backdrop': true,
289
- 'sd-modal-container__backdrop--visible': this.isBackdropVisible,
290
- }, onClick: this.handleBackdropClick }), index.h("div", { class: "sd-modal-container__content", ref: el => { this.contentRef = el; } })));
268
+ 'sd-modal-container__backdrop--visible': this.backdropVisible,
269
+ }, onClick: this.handleBackdropClick }))));
291
270
  }
292
271
  };
293
272
  SdModalContainer.style = sdModalContainerCss();
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var index = require('./index-nsQP24mV.js');
3
+ var index = require('./index-B2QvhbC3.js');
4
4
  var index$1 = require('./index-BUvXpPc3.js');
5
5
 
6
6
  const numberInput = {
@@ -384,12 +384,12 @@ const SdNumberInput = class {
384
384
  '--sd-textinput-input-hint-typography-line-height': `${NUMBER_INPUT_HINT.typography.lineHeight}px`,
385
385
  '--sd-textinput-input-contents-gap': `${NUMBER_INPUT_CONTENTS_GAP}px`,
386
386
  };
387
- return (index.h("sd-field", { key: 'f81b01b27960130cbf6b37a29fc0ddc11750768e', name: this.name, label: this.label, labelWidth: this.labelWidth, 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, status: this.status, size: this.size, ref: el => (this.formField = el), onMouseEnter: () => (this.hovered = true), onMouseLeave: () => (this.hovered = false), style: cssVars }, index.h("div", { key: '0f9b5a0b966c7d51d5913c61a585ff789fa4973f', class: "sd-number-input__content" }, this.useButton && (index.h("button", { key: 'b037ee3062253bf229f9639dd04c7475657fabb6', type: "button", class: "sd-number-input__stepper sd-number-input__stepper--decrement", disabled: this.isDecrementDisabled(), onClick: this.handleDecrement, tabindex: -1 }, index.h("sd-icon", { key: '39a9f73a15008a481e758e663e027cd4f6454146', name: "minus", size: iconSize, color: this.isDecrementDisabled()
387
+ return (index.h("sd-field", { key: 'edb2eaf473ba53fa340e39a350624e0a9e8b566e', name: this.name, label: this.label, labelWidth: this.labelWidth, 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, status: this.status, size: this.size, ref: el => (this.formField = el), onMouseEnter: () => (this.hovered = true), onMouseLeave: () => (this.hovered = false), style: cssVars }, index.h("div", { key: '408b984ca5c7f3edaf0afe4c56fab2901824b2de', class: "sd-number-input__content" }, this.useButton && (index.h("button", { key: 'da29f621914cbb7cac4c83f55056f52ef918f7c7', type: "button", class: "sd-number-input__stepper sd-number-input__stepper--decrement", disabled: this.isDecrementDisabled(), onClick: this.handleDecrement, tabindex: -1 }, index.h("sd-icon", { key: 'a60c99bd949c2791608d269bc478b490dd4335e0', name: "minus", size: iconSize, color: this.isDecrementDisabled()
388
388
  ? NUMBER_INPUT_STEPPER.icon.disabled
389
- : NUMBER_INPUT_STEPPER.icon.default }))), this.inputPrefix && (index.h("span", { key: '050334ce25bb767e7f11dca886d4aeecaa1ed3dc', class: "sd-number-input__prefix" }, this.inputPrefix)), index.h("input", { key: 'a72697d136eeee52ef23fee6ee2017b6dd37e54c', 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: {
389
+ : NUMBER_INPUT_STEPPER.icon.default }))), this.inputPrefix && (index.h("span", { key: '3eae6cb2d277f3f830f7cb122b72cdcdedf57e10', class: "sd-number-input__prefix" }, this.inputPrefix)), index.h("input", { key: '19e42ab159a9df7721ca6ea5505d3a0aca2517c4', 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: {
390
390
  textAlign: this.useButton ? 'center' : 'right',
391
391
  ...this.inputStyle,
392
- } }), this.inputSuffix && (index.h("span", { key: '845202622b3377add18782d96d0af0c49caf95ec', class: "sd-number-input__suffix" }, this.inputSuffix)), this.useButton && (index.h("button", { key: '208c976c1b755bec0cd7efb5ceacb3e07dce3a7d', type: "button", class: "sd-number-input__stepper sd-number-input__stepper--increment", disabled: this.isIncrementDisabled(), onClick: this.handleIncrement, tabindex: -1 }, index.h("sd-icon", { key: 'fe9848c8f044d01378dc183a80d3f81eb56a67f9', name: "add", size: iconSize, color: this.isIncrementDisabled()
392
+ } }), this.inputSuffix && (index.h("span", { key: '5f9dc1e294a081cede120d9466d70910a9b1d6bb', class: "sd-number-input__suffix" }, this.inputSuffix)), this.useButton && (index.h("button", { key: '50d96dd2556071480b17210b8db307ab4082c92b', type: "button", class: "sd-number-input__stepper sd-number-input__stepper--increment", disabled: this.isIncrementDisabled(), onClick: this.handleIncrement, tabindex: -1 }, index.h("sd-icon", { key: '1821a77886ac9dc169c8e2697282e813a334df35', name: "add", size: iconSize, color: this.isIncrementDisabled()
393
393
  ? NUMBER_INPUT_STEPPER.icon.disabled
394
394
  : NUMBER_INPUT_STEPPER.icon.default }))))));
395
395
  }
@@ -1,18 +1,77 @@
1
1
  'use strict';
2
2
 
3
- var index = require('./index-nsQP24mV.js');
3
+ var index = require('./index-B2QvhbC3.js');
4
4
  var index$1 = require('./index-BUvXpPc3.js');
5
5
 
6
- const sdPaginationCss = () => `.sd-pagination{display:flex;flex-flow:row nowrap;align-items:center;justify-content:center;gap:8px;color:#555555;width:100%;font-size:12px}.sd-pagination .prepend-btns{display:flex;flex-flow:row nowrap;align-items:center;gap:8px;width:60px}.sd-pagination .prepend-btns button{width:26px;height:26px;border:0;background:none}.sd-pagination .prepend-btns button:hover{border:1px solid #006AC1;border-radius:14px}.sd-pagination .append-btns{display:flex;flex-flow:row nowrap;align-items:center;gap:8px;width:60px}.sd-pagination .append-btns button{width:26px;height:26px;border:0;background:none}.sd-pagination .append-btns button:hover{border:1px solid #006AC1;border-radius:14px}.sd-pagination .pagination-btn{display:flex;align-items:center;justify-content:center;border-radius:14px;outline:none;border:none;cursor:pointer;height:26px;color:#555555;width:var(--pagination-btn-width, 26px)}.sd-pagination .pagination-btn--selected{background-color:#006AC1;color:white}.sd-pagination .pagination-btn:hover{border:1px solid #006AC1}.sd-pagination--simple .pagination-info{line-height:26px;display:flex;flex-flow:row nowrap;align-items:center;gap:8px}.sd-pagination--simple .pagination-info .current-page,.sd-pagination--simple .pagination-info .last-page{padding:0 2px}`;
6
+ const pagination = {
7
+ height: "24",
8
+ paddingX: "6",
9
+ radius: "6",
10
+ gap: "12",
11
+ move: {
12
+ gap: "4"
13
+ },
14
+ icon: "12",
15
+ typography: {
16
+ "default": {
17
+ fontFamily: "Pretendard Variable, Pretendard, -apple-system, BlinkMacSystemFont, system-ui, Segoe UI, Apple SD Gothic Neo, Noto Sans KR, Malgun Gothic, Apple Color Emoji, Segoe UI Emoji, sans-serif",
18
+ fontSize: "12",
19
+ fontWeight: "500",
20
+ lineHeight: "20"},
21
+ selected: {
22
+ fontWeight: "700"}
23
+ },
24
+ item: {
25
+ bg: {
26
+ hover: "#EEEEEE",
27
+ selected: "#E6F1FF"
28
+ },
29
+ content: {
30
+ "default": "#555555",
31
+ hover: "#004290",
32
+ selected: "#004290"
33
+ }
34
+ }
35
+ };
36
+ var paginationTokens = {
37
+ pagination: pagination
38
+ };
7
39
 
8
- const BUTTON_WIDTH = {
9
- 1: 26,
10
- 2: 36,
11
- 3: 42,
12
- 4: 50,
13
- 5: 58,
40
+ const PAGINATION_LAYOUT = {
41
+ height: `${paginationTokens.pagination.height}px`,
42
+ paddingX: `${paginationTokens.pagination.paddingX}px`,
43
+ radius: `${paginationTokens.pagination.radius}px`,
44
+ gap: `${paginationTokens.pagination.gap}px`,
45
+ moveGap: `${paginationTokens.pagination.move.gap}px`,
46
+ iconSize: Number(paginationTokens.pagination.icon),
47
+ };
48
+ const PAGINATION_TYPOGRAPHY = {
49
+ fontFamily: paginationTokens.pagination.typography.default.fontFamily,
50
+ fontSize: `${paginationTokens.pagination.typography.default.fontSize}px`,
51
+ lineHeight: `${paginationTokens.pagination.typography.default.lineHeight}px`,
52
+ fontWeightDefault: paginationTokens.pagination.typography.default.fontWeight,
53
+ fontWeightSelected: paginationTokens.pagination.typography.selected.fontWeight,
14
54
  };
55
+ const PAGINATION_COLORS = {
56
+ contentDefault: paginationTokens.pagination.item.content.default,
57
+ contentHover: paginationTokens.pagination.item.content.hover,
58
+ contentSelected: paginationTokens.pagination.item.content.selected,
59
+ bgHover: paginationTokens.pagination.item.bg.hover,
60
+ bgSelected: paginationTokens.pagination.item.bg.selected,
61
+ // TODO: 토큰 반영 후 교체 — nav 화살표 색상은 현재 토큰에 없음
62
+ iconDefault: '#888888',
63
+ };
64
+
65
+ const sdPaginationCss = () => `sd-pagination{display:inline-flex}.sd-pagination{display:inline-flex;align-items:center;gap:var(--sd-pagination-gap);font-family:var(--sd-pagination-font-family)}.sd-pagination__group{display:inline-flex;align-items:center;gap:var(--sd-pagination-move-gap);min-width:calc(var(--sd-pagination-height) * 2 + var(--sd-pagination-move-gap))}.sd-pagination__group--prev{justify-content:flex-end}.sd-pagination__group--next{justify-content:flex-start}.sd-pagination__numbers{display:inline-flex;align-items:center;gap:var(--sd-pagination-move-gap)}.sd-pagination__nav{display:inline-flex;align-items:center;justify-content:center;width:var(--sd-pagination-height);height:var(--sd-pagination-height);padding:0;background:transparent;border:0;border-radius:var(--sd-pagination-radius);cursor:pointer;outline:none}.sd-pagination__nav:hover{background-color:var(--sd-pagination-bg-hover)}.sd-pagination__item{display:inline-flex;align-items:center;justify-content:center;width:var(--sd-pagination-item-width);height:var(--sd-pagination-height);padding:0 var(--sd-pagination-padding-x);background:transparent;border:0;border-radius:var(--sd-pagination-radius);color:var(--sd-pagination-content);font-size:var(--sd-pagination-font-size);font-weight:var(--sd-pagination-font-weight-default);line-height:var(--sd-pagination-line-height);cursor:pointer;outline:none;box-sizing:border-box}.sd-pagination__item:hover{background-color:var(--sd-pagination-bg-hover);color:var(--sd-pagination-content-hover)}.sd-pagination__item--selected{background-color:var(--sd-pagination-bg-selected);color:var(--sd-pagination-content-selected);font-weight:var(--sd-pagination-font-weight-selected);cursor:default}.sd-pagination__item--selected:hover{background-color:var(--sd-pagination-bg-selected);color:var(--sd-pagination-content-selected)}.sd-pagination__info{display:inline-flex;align-items:center;gap:var(--sd-pagination-move-gap);height:var(--sd-pagination-height);padding:0 var(--sd-pagination-padding-x);color:var(--sd-pagination-content);font-size:var(--sd-pagination-font-size);font-weight:var(--sd-pagination-font-weight-default);line-height:var(--sd-pagination-line-height)}.sd-pagination__current{color:var(--sd-pagination-content-selected);font-weight:var(--sd-pagination-font-weight-selected)}`;
66
+
15
67
  const PER_PAGE = 10;
68
+ const BUTTON_WIDTH = {
69
+ 1: 24,
70
+ 2: 34,
71
+ 3: 40,
72
+ 4: 48,
73
+ 5: 56,
74
+ };
16
75
  const SdPagination = class {
17
76
  constructor(hostRef) {
18
77
  index.registerInstance(this, hostRef);
@@ -22,13 +81,6 @@ const SdPagination = class {
22
81
  lastPage = 1;
23
82
  simple = false;
24
83
  pageChange;
25
- get paginationClasses() {
26
- const classes = ['sd-pagination'];
27
- if (this.simple) {
28
- classes.push('sd-pagination--simple');
29
- }
30
- return classes.join(' ');
31
- }
32
84
  get pageNumbers() {
33
85
  const start = Math.floor((this.currentPage - 1) / PER_PAGE) * PER_PAGE + 1;
34
86
  const end = Math.min(start + PER_PAGE - 1, this.lastPage);
@@ -39,51 +91,73 @@ const SdPagination = class {
39
91
  const maxPageLength = lastPageNum.toString().length;
40
92
  return BUTTON_WIDTH[maxPageLength] || BUTTON_WIDTH[1];
41
93
  }
42
- handlePageChange(page) {
94
+ get isFirstGroup() {
95
+ return this.currentPage <= PER_PAGE;
96
+ }
97
+ get isLastGroup() {
98
+ const startPageGroup = Math.floor((this.currentPage - 1) / PER_PAGE) * PER_PAGE + 1;
99
+ return startPageGroup + PER_PAGE - 1 >= this.lastPage;
100
+ }
101
+ handlePageChange = (page) => {
43
102
  if (page < 1 || page > this.lastPage)
44
103
  return;
45
104
  this.currentPage = page;
46
105
  this.pageChange.emit(page);
47
- }
48
- handleGroupChange(direction) {
106
+ };
107
+ handleGroupChange = (direction) => {
49
108
  const delta = direction === 'forward' ? PER_PAGE : -PER_PAGE;
50
109
  const newPage = Math.min(Math.max(this.currentPage + delta, 1), this.lastPage);
51
110
  this.handlePageChange(newPage);
52
- }
53
- get isFirstGroup() {
54
- return this.currentPage <= PER_PAGE;
55
- }
56
- get isLastGroup() {
57
- const startPageGroup = Math.floor((this.currentPage - 1) / PER_PAGE) * PER_PAGE + 1;
58
- return startPageGroup + PER_PAGE - 1 >= this.lastPage;
111
+ };
112
+ renderNavButton(iconName, ariaLabel, onClick) {
113
+ return (index.h("button", { type: "button", class: "sd-pagination__nav", "aria-label": ariaLabel, onClick: onClick }, index.h("sd-icon", { name: iconName, size: PAGINATION_LAYOUT.iconSize, color: PAGINATION_COLORS.iconDefault })));
59
114
  }
60
115
  renderPrevButtons() {
61
116
  if (this.simple) {
62
117
  if (this.currentPage <= 1)
63
118
  return null;
64
- return (index.h(index.Fragment, null, index.h("button", { "aria-label": "Go to first page", onClick: () => this.handlePageChange(1) }, index.h("sd-icon", { name: "chevronLeftEnd", size: "12", color: "#222222" })), index.h("button", { "aria-label": "Go to previous page", onClick: () => this.handlePageChange(this.currentPage - 1) }, index.h("sd-icon", { name: "arrowLeft", size: "12", color: "#222222" }))));
65
- }
66
- if (!this.isFirstGroup) {
67
- return (index.h(index.Fragment, null, index.h("button", { "aria-label": "Go to first page", onClick: () => this.handlePageChange(1) }, index.h("sd-icon", { name: "chevronLeftEnd", size: "12", color: "#222222" })), index.h("button", { "aria-label": "Go to previous page group", onClick: () => this.handleGroupChange('backward') }, index.h("sd-icon", { name: "arrowLeft", size: "12", color: "#222222" }))));
119
+ return (index.h(index.Fragment, null, this.renderNavButton('chevronLeftEnd', 'Go to first page', () => this.handlePageChange(1)), this.renderNavButton('chevronLeft', 'Go to previous page', () => this.handlePageChange(this.currentPage - 1))));
68
120
  }
121
+ if (this.isFirstGroup)
122
+ return null;
123
+ return (index.h(index.Fragment, null, this.renderNavButton('chevronLeftEnd', 'Go to first page', () => this.handlePageChange(1)), this.renderNavButton('chevronLeft', 'Go to previous page group', () => this.handleGroupChange('backward'))));
69
124
  }
70
125
  renderNextButtons() {
71
126
  if (this.simple) {
72
127
  if (this.currentPage >= this.lastPage)
73
128
  return null;
74
- return (index.h(index.Fragment, null, index.h("button", { "aria-label": "Go to next page", onClick: () => this.handlePageChange(this.currentPage + 1) }, index.h("sd-icon", { name: "arrowRight", size: "12", color: "#222222" })), index.h("button", { "aria-label": "Go to last page", onClick: () => this.handlePageChange(this.lastPage) }, index.h("sd-icon", { name: "chevronRightEnd", size: "12", color: "#222222" }))));
75
- }
76
- if (!this.isLastGroup) {
77
- return (index.h(index.Fragment, null, index.h("button", { "aria-label": "Go to next page group", onClick: () => this.handleGroupChange('forward') }, index.h("sd-icon", { name: "arrowRight", size: "12", color: "#222222" })), index.h("button", { "aria-label": "Go to last page", onClick: () => this.handlePageChange(this.lastPage) }, index.h("sd-icon", { name: "chevronRightEnd", size: "12", color: "#222222" }))));
129
+ return (index.h(index.Fragment, null, this.renderNavButton('chevronRight', 'Go to next page', () => this.handlePageChange(this.currentPage + 1)), this.renderNavButton('chevronRightEnd', 'Go to last page', () => this.handlePageChange(this.lastPage))));
78
130
  }
131
+ if (this.isLastGroup)
132
+ return null;
133
+ return (index.h(index.Fragment, null, this.renderNavButton('chevronRight', 'Go to next page group', () => this.handleGroupChange('forward')), this.renderNavButton('chevronRightEnd', 'Go to last page', () => this.handlePageChange(this.lastPage))));
79
134
  }
80
135
  render() {
81
- return (index.h("div", { key: '5136947eb1aa1539d240af359eec8763d708906b', class: this.paginationClasses }, index.h("div", { key: '3114f336a27b4f3bf6249fd82649b9d21831a57a', class: "prepend-btns" }, this.renderPrevButtons()), this.simple ? (index.h("div", { class: "pagination-info" }, index.h("span", { class: "current-page" }, this.currentPage), index.h("span", null, "/"), index.h("span", { class: "last-page" }, this.lastPage))) : (this.pageNumbers.map(n => (index.h("button", { type: "button", "aria-current": this.currentPage === n ? 'page' : undefined, class: {
82
- 'pagination-btn': true,
83
- 'pagination-btn--selected': this.currentPage === n,
84
- }, disabled: this.currentPage === n, style: {
85
- '--pagination-btn-width': `${this.buttonWidth}px`,
86
- }, onClick: () => this.handlePageChange(n) }, n)))), index.h("div", { key: 'a85d2e89389d2638e797873e18717d1079a8b156', class: "append-btns" }, this.renderNextButtons())));
136
+ const cssVars = {
137
+ '--sd-pagination-height': PAGINATION_LAYOUT.height,
138
+ '--sd-pagination-padding-x': PAGINATION_LAYOUT.paddingX,
139
+ '--sd-pagination-radius': PAGINATION_LAYOUT.radius,
140
+ '--sd-pagination-gap': PAGINATION_LAYOUT.gap,
141
+ '--sd-pagination-move-gap': PAGINATION_LAYOUT.moveGap,
142
+ '--sd-pagination-font-family': PAGINATION_TYPOGRAPHY.fontFamily,
143
+ '--sd-pagination-font-size': PAGINATION_TYPOGRAPHY.fontSize,
144
+ '--sd-pagination-line-height': PAGINATION_TYPOGRAPHY.lineHeight,
145
+ '--sd-pagination-font-weight-default': PAGINATION_TYPOGRAPHY.fontWeightDefault,
146
+ '--sd-pagination-font-weight-selected': PAGINATION_TYPOGRAPHY.fontWeightSelected,
147
+ '--sd-pagination-content': PAGINATION_COLORS.contentDefault,
148
+ '--sd-pagination-content-hover': PAGINATION_COLORS.contentHover,
149
+ '--sd-pagination-content-selected': PAGINATION_COLORS.contentSelected,
150
+ '--sd-pagination-bg-hover': PAGINATION_COLORS.bgHover,
151
+ '--sd-pagination-bg-selected': PAGINATION_COLORS.bgSelected,
152
+ '--sd-pagination-item-width': `${this.buttonWidth}px`,
153
+ };
154
+ return (index.h("div", { key: '1f6d3909c5c7f17701c405f058bf999020d9424e', class: {
155
+ 'sd-pagination': true,
156
+ 'sd-pagination--simple': this.simple,
157
+ }, style: cssVars }, index.h("div", { key: '9faaf4f1033e406ecaad7ed593a1610bb7002631', class: "sd-pagination__group sd-pagination__group--prev" }, this.renderPrevButtons()), this.simple ? (index.h("div", { class: "sd-pagination__info" }, index.h("span", { class: "sd-pagination__current" }, this.currentPage), index.h("span", { class: "sd-pagination__divider" }, "/"), index.h("span", { class: "sd-pagination__last" }, this.lastPage))) : (index.h("div", { class: "sd-pagination__numbers" }, this.pageNumbers.map(n => (index.h("button", { type: "button", "aria-current": this.currentPage === n ? 'page' : undefined, class: {
158
+ 'sd-pagination__item': true,
159
+ 'sd-pagination__item--selected': this.currentPage === n,
160
+ }, onClick: () => this.handlePageChange(n) }, n))))), index.h("div", { key: 'c8d21679938032bee223f6dfefff3a87dc5badec', class: "sd-pagination__group sd-pagination__group--next" }, this.renderNextButtons())));
87
161
  }
88
162
  };
89
163
  SdPagination.style = sdPaginationCss();
@@ -302,13 +376,13 @@ const SdSelectV2 = class {
302
376
  this.closeDropdown();
303
377
  },
304
378
  };
305
- return (index.h("sd-field", { key: 'c9f08598c8f9852ab4000f056621dfef238e16de', name: this.fieldName || this.internalName, label: this.label, labelWidth: this.labelWidth, 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: () => {
379
+ return (index.h("sd-field", { key: 'ffca1287cefaeedf867a6b86a752942a1c8d1703', name: this.fieldName || this.internalName, label: this.label, labelWidth: this.labelWidth, 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: () => {
306
380
  this.hovered = true;
307
381
  }, onMouseLeave: () => {
308
382
  this.hovered = false;
309
- } }, index.h("div", { key: '302103a425963e5d577b01ad179d5af82e6f30b1', class: "sd-select-v2", ref: el => {
383
+ } }, index.h("div", { key: 'f53f38543b165040eb48236e2a25e43b78444350', class: "sd-select-v2", ref: el => {
310
384
  this.triggerRef = el;
311
- } }, index.h("sd-select-v2-trigger", { key: 'a22bca400e5d10ee29e569da04d36b9291a1dade', displayText: this.displayText, placeholder: this.placeholder, disabled: this.disabled, isOpen: this.isOpen, onSdTriggerClick: this.handleTriggerClick })), (this.isOpen || this.isAnimatingOut) && (index.h("sd-portal", { key: '0df4ad35bb284298708a0c1e11ce0e3c28d16ed8', ...portalProps }, index.h("sd-select-v2-listbox", { key: '90c18612d553342be091a30e05194bab91407c76', 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) })))));
385
+ } }, index.h("sd-select-v2-trigger", { key: 'afd60ef0b492d9179318a5187565b45a58ef1ed5', displayText: this.displayText, placeholder: this.placeholder, disabled: this.disabled, isOpen: this.isOpen, onSdTriggerClick: this.handleTriggerClick })), (this.isOpen || this.isAnimatingOut) && (index.h("sd-portal", { key: 'e482c1fffc24e893fe1c04f136a116bac6c1b2e9', ...portalProps }, index.h("sd-select-v2-listbox", { key: 'c864fdef604eee7cea7c946de970e78b59e8b0da', 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) })))));
312
386
  }
313
387
  static get watchers() { return {
314
388
  "isOpen": [{
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
- var index = require('./index-nsQP24mV.js');
4
- var tooltipArrow = require('./tooltipArrow-DhevfDPX.js');
3
+ var index = require('./index-B2QvhbC3.js');
4
+ var tooltipArrow = require('./tooltipArrow-Xkv-p1bY.js');
5
5
 
6
6
  const popover = {
7
7
  bg: "#07284A"};
@@ -56,14 +56,14 @@ const SdPopover = class {
56
56
  this.showPopover = false;
57
57
  };
58
58
  render() {
59
- return (index.h(index.Fragment, { key: 'e953f3dfbc34a7e6b4eee3b90bd9344d4ef7d8a2' }, this.label ? (index.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) })) : (index.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 && (index.h("sd-floating-portal", { key: '23128c3d7b03a236026a1557c441ff1ddaae7033', parentRef: this.buttonEl, onSdClose: this.handleClose, placement: this.placement, offset: this.popoverOffset }, index.h("div", { key: '620f97e29104979fd203f943bb516ea31696d737', class: {
59
+ return (index.h(index.Fragment, { key: '32e3a11baabd4f4fc8c570311b99b2113e4ce3b0' }, this.label ? (index.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) })) : (index.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 && (index.h("sd-floating-portal", { key: '8139e72f293319e4d5ed3fe67d4f47a03743b437', parentRef: this.buttonEl, onSdClose: this.handleClose, placement: this.placement, offset: this.popoverOffset }, index.h("div", { key: 'fdb76f4a9a54be08fdf0d352ff389453840c4789', class: {
60
60
  'sd-floating-menu': true,
61
61
  'sd-floating-menu--popover': true,
62
62
  [`sd-floating-menu--${this.placement}`]: true,
63
63
  [this.menuClass]: !!this.menuClass,
64
64
  }, style: {
65
65
  '--sd-floating-bg': popoverTokens.popover.bg,
66
- } }, index.h("i", { key: '027cd73af66a6a5161361625502496f8c9183e9d', class: `sd-floating-menu__arrow sd-floating-menu__arrow--${this.placement}` }, index.h(tooltipArrow.TooltipArrow, { key: '0db7efc9eaaecd48af55f7b46fa1c90eb0027d86' })), index.h("div", { key: 'd007d9041093593b155df32d1f6420f401baf1fa', class: "sd-floating-menu__content" }, this.menuTitle && index.h("div", { key: '0746608da07343147896c59a9e8e27e15cd9fae2', class: "sd-floating-menu__title" }, this.menuTitle), this.messages.length > 0 && (index.h("div", { key: '76a1c19fe4871a7a0d5bd6fc2ee5228453aab5f2', class: "sd-floating-menu__messages" }, this.messages.map(message => (index.h("div", null, message))))), this.buttons.length > 0 && (index.h("div", { key: 'ccfdc3a653b9a6fb0ea8ffb8dcb538638ae83e33', class: `sd-floating-menu__buttons sd-floating-menu__buttons--${this.buttons.length}` }, this.buttons.map(button => (index.h("sd-button", { ...button })))))), this.useClose && (index.h("sd-ghost-button", { key: '6b53a200fdab5175b8346e1b916677a02a4ac0ad', class: "sd-floating-menu__close-button", icon: "close", ariaLabel: "close", size: "xs", onClick: () => this.handleClose() })))))));
66
+ } }, index.h("i", { key: '94cb19bdf7182cd311800ac4d3fdf49c61db75fb', class: `sd-floating-menu__arrow sd-floating-menu__arrow--${this.placement}` }, index.h(tooltipArrow.TooltipArrow, { key: '67394b2b751c485fc7198a10d54df2659c6f222b' })), index.h("div", { key: '1d6e143a931c24f28ef68afbfe7b84e73d3288db', class: "sd-floating-menu__content" }, this.menuTitle && index.h("div", { key: '33d47a87e6cab23131f360f7ea07809cec942ec0', class: "sd-floating-menu__title" }, this.menuTitle), this.messages.length > 0 && (index.h("div", { key: '28006b8958d1921eefa42c6282b8e735ae3e9367', class: "sd-floating-menu__messages" }, this.messages.map(message => (index.h("div", null, message))))), this.buttons.length > 0 && (index.h("div", { key: '574604775790aa49591848eb5f86ca0c6735558f', class: `sd-floating-menu__buttons sd-floating-menu__buttons--${this.buttons.length}` }, this.buttons.map(button => (index.h("sd-button", { ...button })))))), this.useClose && (index.h("sd-ghost-button", { key: '027260d65fc575f480ce23e081b8b80ac8a1daea', class: "sd-floating-menu__close-button", icon: "close", ariaLabel: "close", size: "xs", onClick: () => this.handleClose() })))))));
67
67
  }
68
68
  static get watchers() { return {
69
69
  "show": [{