@sellmate/design-system 1.0.78 → 1.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (464) hide show
  1. package/dist/cjs/component.table-B7brIpIQ.js +56 -0
  2. package/dist/cjs/design-system.cjs.js +2 -2
  3. package/dist/cjs/{index--F2wGuAi.js → index-BlxrCRYi.js} +1 -1
  4. package/dist/cjs/index.cjs.js +4 -4
  5. package/dist/cjs/loader.cjs.js +2 -2
  6. package/dist/cjs/{resolveColor-LhfOKtTZ.js → resolveColor-B0hzQNLG.js} +2 -2
  7. package/dist/cjs/sd-action-modal.cjs.entry.js +3 -3
  8. package/dist/cjs/sd-badge.cjs.entry.js +2 -3
  9. package/dist/cjs/sd-barcode-input.cjs.entry.js +3 -3
  10. package/dist/cjs/{sd-button-v2.config-CnqCQQMi.js → sd-button.config-DH08UNfl.js} +114 -28
  11. package/dist/cjs/{sd-button-v2_2.cjs.entry.js → sd-button_2.cjs.entry.js} +101 -85
  12. package/dist/cjs/sd-calendar.cjs.entry.js +15 -15
  13. package/dist/cjs/sd-card.cjs.entry.js +2 -2
  14. package/dist/cjs/sd-checkbox.cjs.entry.js +4 -4
  15. package/dist/cjs/sd-chip.cjs.entry.js +2 -2
  16. package/dist/cjs/sd-circle-progress.cjs.entry.js +3 -3
  17. package/dist/cjs/sd-confirm-modal_2.cjs.entry.js +19 -11
  18. package/dist/cjs/sd-date-box.cjs.entry.js +4 -4
  19. package/dist/cjs/{sd-date-picker-calendar.cjs.entry.js → sd-date-picker-calendar_2.cjs.entry.js} +51 -3
  20. package/dist/cjs/{sd-date-picker.config-CRgCT5dn.js → sd-date-picker.config-CjvrFpYK.js} +1 -2
  21. package/dist/cjs/sd-date-picker_7.cjs.entry.js +1230 -0
  22. package/dist/cjs/sd-date-range-picker-calendar.cjs.entry.js +3 -3
  23. package/dist/cjs/sd-dropdown-button.cjs.entry.js +28 -27
  24. package/dist/cjs/{sd-button_4.cjs.entry.js → sd-field_3.cjs.entry.js} +26 -82
  25. package/dist/cjs/sd-form.cjs.entry.js +2 -2
  26. package/dist/cjs/sd-ghost-button.cjs.entry.js +12 -10
  27. package/dist/cjs/sd-guide.cjs.entry.js +9 -9
  28. package/dist/cjs/sd-key-value-table.cjs.entry.js +230 -0
  29. package/dist/cjs/sd-linear-progress.cjs.entry.js +3 -3
  30. package/dist/cjs/sd-loading-container.cjs.entry.js +3 -3
  31. package/dist/cjs/sd-modal-container.cjs.entry.js +1 -1
  32. package/dist/cjs/{sd-pagination_5.cjs.entry.js → sd-pagination_4.cjs.entry.js} +34 -296
  33. package/dist/cjs/sd-popover.cjs.entry.js +17 -10
  34. package/dist/cjs/sd-popup.cjs.entry.js +112 -0
  35. package/dist/cjs/sd-portal.cjs.entry.js +2 -2
  36. package/dist/cjs/sd-radio-button.cjs.entry.js +4 -4
  37. package/dist/cjs/sd-radio.cjs.entry.js +2 -2
  38. package/dist/cjs/sd-select-list-item_2.cjs.entry.js +155 -0
  39. package/dist/cjs/sd-select.config-B19ptCT2.js +178 -0
  40. package/dist/cjs/{sd-select-list-item_4.cjs.entry.js → sd-select_3.cjs.entry.js} +286 -318
  41. package/dist/cjs/sd-switch.cjs.entry.js +2 -2
  42. package/dist/cjs/sd-table.cjs.entry.js +40 -23
  43. package/dist/cjs/sd-table.config-CDyioyE2.js +65 -0
  44. package/dist/cjs/sd-tabs.cjs.entry.js +2 -2
  45. package/dist/cjs/sd-tag.cjs.entry.js +49 -14
  46. package/dist/cjs/sd-td.cjs.entry.js +2 -2
  47. package/dist/cjs/sd-text-link.cjs.entry.js +8 -5
  48. package/dist/cjs/sd-toast-container.cjs.entry.js +5 -5
  49. package/dist/cjs/sd-toast.cjs.entry.js +35 -5
  50. package/dist/cjs/sd-toggle.cjs.entry.js +2 -2
  51. package/dist/cjs/{system-DpTN1vBC.js → system-VmZRYp6V.js} +4 -2
  52. package/dist/cjs/{tooltipArrow-D1-wcNm1.js → tooltipArrow-N6nQ1QT-.js} +1 -1
  53. package/dist/collection/collection-manifest.json +4 -3
  54. package/dist/collection/components/assets/CheckboxCheck.js +5 -0
  55. package/dist/collection/components/assets/CheckboxIndeterminate.js +5 -0
  56. package/dist/collection/components/assets/index.js +4 -0
  57. package/dist/collection/components/sd-action-modal/sd-action-modal.css +1 -1
  58. package/dist/collection/components/sd-action-modal/sd-action-modal.js +7 -7
  59. package/dist/collection/components/sd-badge/sd-badge.config.js +10 -1
  60. package/dist/collection/components/sd-badge/sd-badge.js +1 -22
  61. package/dist/collection/components/sd-barcode-input/sd-barcode-input.js +4 -4
  62. package/dist/collection/components/{sd-button-v2/sd-button-v2.config.js → sd-button/sd-button.config.js} +1 -1
  63. package/dist/collection/components/sd-button/sd-button.css +47 -93
  64. package/dist/collection/components/sd-button/sd-button.js +99 -173
  65. package/dist/collection/components/sd-calendar/sd-calendar.js +14 -14
  66. package/dist/collection/components/sd-card/sd-card.js +1 -1
  67. package/dist/collection/components/sd-checkbox/sd-checkbox.js +3 -3
  68. package/dist/collection/components/sd-chip/sd-chip.js +1 -1
  69. package/dist/collection/components/sd-circle-progress/sd-circle-progress.js +1 -1
  70. package/dist/collection/components/sd-confirm-modal/sd-confirm-modal.js +13 -8
  71. package/dist/collection/components/sd-date-box/sd-date-box.js +3 -3
  72. package/dist/collection/components/sd-date-picker/sd-date-picker-calendar/sd-date-picker-calendar.js +1 -1
  73. package/dist/collection/components/sd-date-picker/sd-date-picker-trigger/sd-date-picker-trigger.css +1 -1
  74. package/dist/collection/components/sd-date-picker/sd-date-picker-trigger/sd-date-picker-trigger.js +7 -5
  75. package/dist/collection/components/sd-date-picker/sd-date-picker.js +4 -4
  76. package/dist/collection/components/sd-date-range-picker/sd-date-range-picker-calendar/sd-date-range-picker-calendar.js +1 -1
  77. package/dist/collection/components/sd-date-range-picker/sd-date-range-picker.js +4 -4
  78. package/dist/collection/components/sd-dropdown-button/sd-dropdown-button.config.js +1 -1
  79. package/dist/collection/components/sd-dropdown-button/sd-dropdown-button.js +13 -11
  80. package/dist/collection/components/sd-field/sd-field.css +6 -2
  81. package/dist/collection/components/sd-field/sd-field.js +30 -5
  82. package/dist/collection/components/sd-file-picker/sd-file-picker.js +4 -4
  83. package/dist/collection/components/sd-floating-portal/sd-floating-portal.css +1 -3
  84. package/dist/collection/components/sd-floating-portal/sd-floating-portal.js +3 -3
  85. package/dist/collection/components/sd-form/sd-form.js +1 -1
  86. package/dist/collection/components/sd-ghost-button/sd-ghost-button.js +12 -10
  87. package/dist/collection/components/sd-guide/sd-guide.css +8 -172
  88. package/dist/collection/components/sd-guide/sd-guide.js +6 -4
  89. package/dist/collection/components/sd-icon/sd-icon.js +4 -4
  90. package/dist/collection/components/sd-input/sd-input.css +4 -2
  91. package/dist/collection/components/sd-input/sd-input.js +5 -5
  92. package/dist/collection/components/sd-key-value-table/sd-key-value-table.config.js +36 -0
  93. package/dist/collection/components/sd-key-value-table/sd-key-value-table.css +119 -0
  94. package/dist/collection/components/sd-key-value-table/sd-key-value-table.js +301 -0
  95. package/dist/collection/components/sd-linear-progress/sd-linear-progress.js +1 -1
  96. package/dist/collection/components/sd-loading-container/sd-loading-container.js +2 -2
  97. package/dist/collection/components/sd-loading-modal/sd-loading-modal.js +6 -3
  98. package/dist/collection/components/sd-number-input/sd-number-input.css +7 -0
  99. package/dist/collection/components/sd-number-input/sd-number-input.js +6 -3
  100. package/dist/collection/components/sd-pagination/sd-pagination.js +3 -3
  101. package/dist/collection/components/sd-popover/sd-popover.js +128 -35
  102. package/dist/collection/components/sd-popup/sd-popup.config.js +34 -0
  103. package/dist/collection/components/sd-popup/sd-popup.css +73 -0
  104. package/dist/collection/components/sd-popup/sd-popup.js +163 -0
  105. package/dist/collection/components/sd-portal/sd-portal.js +1 -1
  106. package/dist/collection/components/sd-radio/sd-radio.js +1 -1
  107. package/dist/collection/components/sd-radio-button/sd-radio-button.js +3 -3
  108. package/dist/collection/components/sd-radio-group/sd-radio-group.js +2 -2
  109. package/dist/collection/components/sd-select/sd-select-list-item/sd-select-list-item.js +2 -2
  110. package/dist/collection/components/sd-select/sd-select-list-item-search/sd-select-list-item-search.css +4 -4
  111. package/dist/collection/components/sd-select/sd-select-list-item-search/sd-select-list-item-search.js +4 -4
  112. package/dist/collection/components/sd-select/sd-select-listbox/sd-select-listbox.js +5 -5
  113. package/dist/collection/components/sd-select/sd-select-trigger/sd-select-trigger.js +2 -2
  114. package/dist/collection/components/sd-select/sd-select.js +5 -5
  115. package/dist/collection/components/sd-switch/sd-switch.js +1 -1
  116. package/dist/collection/components/sd-table/sd-table.config.js +2 -2
  117. package/dist/collection/components/sd-table/sd-table.css +8 -8
  118. package/dist/collection/components/sd-table/sd-table.js +54 -18
  119. package/dist/collection/components/sd-table/sd-tbody/sd-tbody.js +2 -2
  120. package/dist/collection/components/sd-table/sd-td/sd-td.js +1 -1
  121. package/dist/collection/components/sd-table/sd-thead/sd-thead.js +3 -3
  122. package/dist/collection/components/sd-table/sd-tr/sd-tr.css +4 -0
  123. package/dist/collection/components/sd-table/sd-tr/sd-tr.js +21 -3
  124. package/dist/collection/components/sd-tabs/sd-tabs.js +1 -1
  125. package/dist/collection/components/sd-tag/sd-tag.config.js +40 -8
  126. package/dist/collection/components/sd-tag/sd-tag.js +9 -6
  127. package/dist/collection/components/sd-text-link/sd-text-link.css +1 -0
  128. package/dist/collection/components/sd-text-link/sd-text-link.js +5 -4
  129. package/dist/collection/components/sd-textarea/sd-textarea.css +3 -0
  130. package/dist/collection/components/sd-textarea/sd-textarea.js +2 -2
  131. package/dist/collection/components/sd-toast/sd-toast.config.js +14 -0
  132. package/dist/collection/components/sd-toast/sd-toast.css +3 -5
  133. package/dist/collection/components/sd-toast/sd-toast.js +52 -5
  134. package/dist/collection/components/sd-toast-container/sd-toast-container.js +4 -4
  135. package/dist/collection/components/sd-toggle/sd-toggle.js +1 -1
  136. package/dist/collection/components/sd-tooltip/sd-tooltip.js +77 -30
  137. package/dist/collection/utils/color/resolveColor.js +2 -2
  138. package/dist/collection/utils/dropdown-manager.js +1 -1
  139. package/dist/collection/utils/toast.js +4 -4
  140. package/dist/components/index.js +1 -1
  141. package/dist/components/p--t9jBTYS.js +1 -0
  142. package/dist/components/p-At6nBeyO.js +1 -0
  143. package/dist/components/p-B1MabGRR.js +1 -0
  144. package/dist/components/{p-CeVMl_M9.js → p-B73VhbYi.js} +1 -1
  145. package/dist/components/p-BDQQllAo.js +1 -0
  146. package/dist/components/p-BDr27lvk.js +1 -0
  147. package/dist/components/p-BPsOJlCP.js +1 -0
  148. package/dist/components/p-BQ6at17Y.js +1 -0
  149. package/dist/components/p-BW_sBt7X.js +1 -0
  150. package/dist/components/p-BX3TJuQY.js +1 -0
  151. package/dist/components/p-BeK8amzx.js +1 -0
  152. package/dist/components/{p-Bvq0Vpln.js → p-BfkuCNCI.js} +1 -1
  153. package/dist/components/p-Bm_T3qE0.js +1 -0
  154. package/dist/components/{p-DegvQLTF.js → p-BnzK4uU4.js} +1 -1
  155. package/dist/components/{p-q0VWISKA.js → p-BqkJ0rZv.js} +1 -1
  156. package/dist/components/p-C4PmGpW8.js +1 -0
  157. package/dist/components/{p-Nvx13YlG.js → p-C9CszVFl.js} +1 -1
  158. package/dist/components/p-CGBnxqG2.js +1 -0
  159. package/dist/components/p-CGQWERwE.js +1 -0
  160. package/dist/components/{p-DkJqVXpD.js → p-CT3dfy3K.js} +1 -1
  161. package/dist/components/p-CZmKBmKx.js +1 -0
  162. package/dist/components/p-CnarDyZi.js +1 -0
  163. package/dist/components/p-Cr2ghUra.js +1 -0
  164. package/dist/components/{p-BStczlLa.js → p-Cspm6LxP.js} +1 -1
  165. package/dist/components/p-Cx3jXw9J.js +1 -0
  166. package/dist/components/{p-Dcc2Vm6z.js → p-D5TRyquv.js} +1 -1
  167. package/dist/components/p-D8WAP9T3.js +1 -0
  168. package/dist/components/p-DG-4Ifco.js +1 -0
  169. package/dist/components/{p-TwGlKfsC.js → p-DG45uNxd.js} +1 -1
  170. package/dist/components/p-DdLntfiw.js +1 -0
  171. package/dist/components/{p-BJsHakU2.js → p-DfXAgw0E.js} +1 -1
  172. package/dist/components/p-Dr1AMbBj.js +1 -0
  173. package/dist/components/p-GBlVDmy4.js +1 -0
  174. package/dist/components/p-MMkRcTBd.js +1 -0
  175. package/dist/components/p-MQTl8fGT.js +1 -0
  176. package/dist/components/p-ZstG0XdT.js +1 -0
  177. package/dist/components/p-h7eBUL4i.js +1 -0
  178. package/dist/components/p-lyB7zSp-.js +1 -0
  179. package/dist/components/{p-D1DpOp6M.js → p-oIM6jNZe.js} +1 -1
  180. package/dist/components/p-oKHZl8yu.js +1 -0
  181. package/dist/components/p-ofkgu5aS.js +1 -0
  182. package/dist/components/sd-action-modal.js +1 -1
  183. package/dist/components/sd-badge.js +1 -1
  184. package/dist/components/sd-barcode-input.js +1 -1
  185. package/dist/components/sd-button.js +1 -1
  186. package/dist/components/sd-calendar.js +1 -1
  187. package/dist/components/sd-card.js +1 -1
  188. package/dist/components/sd-checkbox.js +1 -1
  189. package/dist/components/sd-chip.js +1 -1
  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-key-value-table.d.ts +11 -0
  208. package/dist/components/sd-key-value-table.js +1 -0
  209. package/dist/components/sd-linear-progress.js +1 -1
  210. package/dist/components/sd-loading-container.js +1 -1
  211. package/dist/components/sd-loading-modal.js +1 -1
  212. package/dist/components/sd-modal-container.js +1 -1
  213. package/dist/components/sd-number-input.js +1 -1
  214. package/dist/components/sd-pagination.js +1 -1
  215. package/dist/components/sd-popover.js +1 -1
  216. package/dist/components/{sd-button-v2.d.ts → sd-popup.d.ts} +4 -4
  217. package/dist/components/sd-popup.js +1 -0
  218. package/dist/components/sd-portal.js +1 -1
  219. package/dist/components/sd-radio-button.js +1 -1
  220. package/dist/components/sd-radio-group.js +1 -1
  221. package/dist/components/sd-radio.js +1 -1
  222. package/dist/components/sd-select-list-item-search.js +1 -1
  223. package/dist/components/sd-select-list-item.js +1 -1
  224. package/dist/components/sd-select-listbox.js +1 -1
  225. package/dist/components/sd-select-trigger.js +1 -1
  226. package/dist/components/sd-select.js +1 -1
  227. package/dist/components/sd-switch.js +1 -1
  228. package/dist/components/sd-table.js +1 -1
  229. package/dist/components/sd-tabs.js +1 -1
  230. package/dist/components/sd-tag.js +1 -1
  231. package/dist/components/sd-tbody.js +1 -1
  232. package/dist/components/sd-td.js +1 -1
  233. package/dist/components/sd-text-link.js +1 -1
  234. package/dist/components/sd-textarea.js +1 -1
  235. package/dist/components/sd-thead.js +1 -1
  236. package/dist/components/sd-toast-container.js +1 -1
  237. package/dist/components/sd-toast.js +1 -1
  238. package/dist/components/sd-toggle.js +1 -1
  239. package/dist/components/sd-tooltip.js +1 -1
  240. package/dist/components/sd-tr.js +1 -1
  241. package/dist/design-system/design-system.css +1 -1
  242. package/dist/design-system/design-system.esm.js +1 -1
  243. package/dist/design-system/index.esm.js +1 -1
  244. package/dist/design-system/p-02289728.entry.js +1 -0
  245. package/dist/design-system/p-17d66d85.entry.js +1 -0
  246. package/dist/design-system/p-18466728.entry.js +1 -0
  247. package/dist/design-system/p-1bb86d69.entry.js +1 -0
  248. package/dist/design-system/p-20a50702.entry.js +1 -0
  249. package/dist/design-system/p-21874054.entry.js +1 -0
  250. package/dist/design-system/p-282cbefa.entry.js +1 -0
  251. package/dist/design-system/p-29ed11e5.entry.js +1 -0
  252. package/dist/design-system/p-328fae12.entry.js +1 -0
  253. package/dist/design-system/p-35dce399.entry.js +1 -0
  254. package/dist/design-system/{p-1cf87e87.entry.js → p-39ff56b4.entry.js} +1 -1
  255. package/dist/design-system/p-3cb712a6.entry.js +1 -0
  256. package/dist/design-system/{p-f522c91d.entry.js → p-4e2953eb.entry.js} +1 -1
  257. package/dist/design-system/p-7610153d.entry.js +1 -0
  258. package/dist/design-system/{p-25a08e98.entry.js → p-7722ddeb.entry.js} +1 -1
  259. package/dist/design-system/{p-6bfe3612.entry.js → p-7882e388.entry.js} +1 -1
  260. package/dist/design-system/p-7bfa0cf9.entry.js +1 -0
  261. package/dist/design-system/p-824ecfb5.entry.js +1 -0
  262. package/dist/design-system/p-9a04b341.entry.js +1 -0
  263. package/dist/design-system/p-BDjErF_K.js +1 -0
  264. package/dist/design-system/p-BQ6at17Y.js +1 -0
  265. package/dist/design-system/p-CGQWERwE.js +1 -0
  266. package/dist/design-system/p-CLCoul8o.js +2 -0
  267. package/dist/design-system/{p-BxPyZJaz.js → p-Ce0cmS4R.js} +1 -1
  268. package/dist/design-system/p-CxOCk_ge.js +1 -0
  269. package/dist/design-system/{p-DnCBBIoq.js → p-Dmf0PYdM.js} +1 -1
  270. package/dist/design-system/p-GBlVDmy4.js +1 -0
  271. package/dist/design-system/{p-455dccf5.entry.js → p-a7a0ca14.entry.js} +1 -1
  272. package/dist/design-system/{p-f44786a9.entry.js → p-a942dfbe.entry.js} +1 -1
  273. package/dist/design-system/p-b04b22c6.entry.js +1 -0
  274. package/dist/design-system/p-b1bb0d72.entry.js +1 -0
  275. package/dist/design-system/{p-ead3e688.entry.js → p-b6ca4461.entry.js} +1 -1
  276. package/dist/design-system/p-b96c694c.entry.js +1 -0
  277. package/dist/design-system/p-baed13e4.entry.js +1 -0
  278. package/dist/design-system/{p-045bc426.entry.js → p-bd45e65d.entry.js} +1 -1
  279. package/dist/design-system/p-bf4156d8.entry.js +1 -0
  280. package/dist/design-system/{p-e5cebccd.entry.js → p-c0f60b00.entry.js} +1 -1
  281. package/dist/design-system/p-c228c2c7.entry.js +1 -0
  282. package/dist/design-system/p-cbda9194.entry.js +1 -0
  283. package/dist/design-system/{p-fe9cef6a.entry.js → p-cd8e4dd6.entry.js} +1 -1
  284. package/dist/design-system/p-cf382479.entry.js +1 -0
  285. package/dist/design-system/p-d0de34fd.entry.js +1 -0
  286. package/dist/design-system/p-d78fbe16.entry.js +1 -0
  287. package/dist/design-system/p-e1c0a3c9.entry.js +1 -0
  288. package/dist/design-system/{p-797517b5.entry.js → p-f3cfff78.entry.js} +1 -1
  289. package/dist/design-system/{p-3f7bc660.entry.js → p-f5576a0d.entry.js} +1 -1
  290. package/dist/design-system/p-f60cc7be.entry.js +1 -0
  291. package/dist/design-system/{p-33bc3176.entry.js → p-feeb0cc5.entry.js} +1 -1
  292. package/dist/esm/component.table-BQ6at17Y.js +54 -0
  293. package/dist/esm/design-system.js +3 -3
  294. package/dist/esm/{index-Cnwbjz1F.js → index-CLCoul8o.js} +1 -1
  295. package/dist/esm/index.js +4 -4
  296. package/dist/esm/loader.js +3 -3
  297. package/dist/esm/{resolveColor-BxPyZJaz.js → resolveColor-Ce0cmS4R.js} +2 -2
  298. package/dist/esm/sd-action-modal.entry.js +3 -3
  299. package/dist/esm/sd-badge.entry.js +2 -3
  300. package/dist/esm/sd-barcode-input.entry.js +3 -3
  301. package/dist/esm/{sd-button-v2.config-CV4xelxV.js → sd-button.config-BDjErF_K.js} +88 -3
  302. package/dist/esm/{sd-button-v2_2.entry.js → sd-button_2.entry.js} +101 -85
  303. package/dist/esm/sd-calendar.entry.js +15 -15
  304. package/dist/esm/sd-card.entry.js +2 -2
  305. package/dist/esm/sd-checkbox.entry.js +4 -4
  306. package/dist/esm/sd-chip.entry.js +2 -2
  307. package/dist/esm/sd-circle-progress.entry.js +3 -3
  308. package/dist/esm/sd-confirm-modal_2.entry.js +19 -11
  309. package/dist/esm/sd-date-box.entry.js +4 -4
  310. package/dist/esm/{sd-date-picker-calendar.entry.js → sd-date-picker-calendar_2.entry.js} +51 -4
  311. package/dist/esm/{sd-date-picker.config-C2fDbE9d.js → sd-date-picker.config-B6cqMQaM.js} +1 -2
  312. package/dist/esm/sd-date-picker_7.entry.js +1222 -0
  313. package/dist/esm/sd-date-range-picker-calendar.entry.js +3 -3
  314. package/dist/esm/sd-dropdown-button.entry.js +15 -14
  315. package/dist/esm/{sd-button_4.entry.js → sd-field_3.entry.js} +27 -82
  316. package/dist/esm/sd-form.entry.js +2 -2
  317. package/dist/esm/sd-ghost-button.entry.js +12 -10
  318. package/dist/esm/sd-guide.entry.js +9 -9
  319. package/dist/esm/sd-key-value-table.entry.js +228 -0
  320. package/dist/esm/sd-linear-progress.entry.js +3 -3
  321. package/dist/esm/sd-loading-container.entry.js +3 -3
  322. package/dist/esm/sd-modal-container.entry.js +1 -1
  323. package/dist/esm/{sd-pagination_5.entry.js → sd-pagination_4.entry.js} +35 -296
  324. package/dist/esm/sd-popover.entry.js +17 -10
  325. package/dist/esm/sd-popup.entry.js +110 -0
  326. package/dist/esm/sd-portal.entry.js +2 -2
  327. package/dist/esm/sd-radio-button.entry.js +4 -4
  328. package/dist/esm/sd-radio.entry.js +2 -2
  329. package/dist/esm/sd-select-list-item_2.entry.js +152 -0
  330. package/dist/esm/sd-select.config-CxOCk_ge.js +165 -0
  331. package/dist/esm/{sd-select-list-item_4.entry.js → sd-select_3.entry.js} +271 -302
  332. package/dist/esm/sd-switch.entry.js +2 -2
  333. package/dist/esm/{sd-table.config-Bj-EEo7N.js → sd-table.config-0Te8GLCI.js} +4 -44
  334. package/dist/esm/sd-table.entry.js +40 -23
  335. package/dist/esm/sd-tabs.entry.js +2 -2
  336. package/dist/esm/sd-tag.entry.js +49 -14
  337. package/dist/esm/sd-td.entry.js +2 -2
  338. package/dist/esm/sd-text-link.entry.js +8 -5
  339. package/dist/esm/sd-toast-container.entry.js +5 -5
  340. package/dist/esm/sd-toast.entry.js +35 -5
  341. package/dist/esm/sd-toggle.entry.js +2 -2
  342. package/dist/esm/{system-CZ4ltUOw.js → system-GBlVDmy4.js} +4 -2
  343. package/dist/esm/{tooltipArrow-D8sr81Xw.js → tooltipArrow-Bc-yw2nt.js} +1 -1
  344. package/dist/types/components/assets/CheckboxCheck.d.ts +1 -0
  345. package/dist/types/components/assets/CheckboxIndeterminate.d.ts +1 -0
  346. package/dist/types/components/assets/index.d.ts +2 -0
  347. package/dist/types/components/sd-action-modal/sd-action-modal.d.ts +2 -2
  348. package/dist/types/components/sd-badge/sd-badge.d.ts +0 -1
  349. package/dist/types/components/{sd-button-v2/sd-button-v2.config.d.ts → sd-button/sd-button.config.d.ts} +9 -15
  350. package/dist/types/components/sd-button/sd-button.d.ts +11 -13
  351. package/dist/types/components/sd-confirm-modal/sd-confirm-modal.config.d.ts +3 -3
  352. package/dist/types/components/sd-confirm-modal/sd-confirm-modal.d.ts +2 -1
  353. package/dist/types/components/sd-dropdown-button/sd-dropdown-button.config.d.ts +3 -3
  354. package/dist/types/components/sd-dropdown-button/sd-dropdown-button.d.ts +1 -0
  355. package/dist/types/components/sd-field/sd-field.d.ts +1 -0
  356. package/dist/types/components/sd-key-value-table/sd-key-value-table.config.d.ts +105 -0
  357. package/dist/types/components/sd-key-value-table/sd-key-value-table.d.ts +38 -0
  358. package/dist/types/components/sd-loading-modal/sd-loading-modal.config.d.ts +2 -2
  359. package/dist/types/components/sd-loading-modal/sd-loading-modal.d.ts +1 -0
  360. package/dist/types/components/sd-modal-container/sd-modal-container.config.d.ts +1 -1
  361. package/dist/types/components/sd-popover/sd-popover.d.ts +16 -10
  362. package/dist/types/components/sd-popup/sd-popup.config.d.ts +30 -0
  363. package/dist/types/components/sd-popup/sd-popup.d.ts +11 -0
  364. package/dist/types/components/sd-table/sd-table.d.ts +2 -0
  365. package/dist/types/components/sd-table/sd-tr/sd-tr.d.ts +2 -0
  366. package/dist/types/components/sd-tag/sd-tag.d.ts +1 -0
  367. package/dist/types/components/sd-toast/sd-toast.config.d.ts +5 -1
  368. package/dist/types/components/sd-toast/sd-toast.d.ts +2 -0
  369. package/dist/types/components/sd-toast-container/sd-toast-container.config.d.ts +2 -0
  370. package/dist/types/components/sd-tooltip/sd-tooltip.config.d.ts +2 -13
  371. package/dist/types/components/sd-tooltip/sd-tooltip.d.ts +6 -4
  372. package/dist/types/components.d.ts +237 -184
  373. package/dist/types/index.d.ts +1 -1
  374. package/dist/types/types/form.d.ts +1 -1
  375. package/dist/types/types/global.d.ts +14 -13
  376. package/dist/types/utils/toast.d.ts +1 -1
  377. package/hydrate/index.js +5182 -4738
  378. package/hydrate/index.mjs +5182 -4738
  379. package/package.json +111 -97
  380. package/readme.md +13 -7
  381. package/dist/cjs/component.button-cqV-iCG5.js +0 -90
  382. package/dist/cjs/sd-date-picker-trigger.cjs.entry.js +0 -51
  383. package/dist/cjs/sd-date-picker.cjs.entry.js +0 -117
  384. package/dist/cjs/sd-date-range-picker.cjs.entry.js +0 -123
  385. package/dist/cjs/sd-file-picker.cjs.entry.js +0 -244
  386. package/dist/cjs/sd-input.cjs.entry.js +0 -175
  387. package/dist/cjs/sd-number-input.cjs.entry.js +0 -409
  388. package/dist/cjs/sd-radio-group.cjs.entry.js +0 -46
  389. package/dist/cjs/sd-table.config-Cb0Ot3C6.js +0 -105
  390. package/dist/cjs/sd-textarea.cjs.entry.js +0 -146
  391. package/dist/collection/components/sd-button-v2/sd-button-v2.css +0 -125
  392. package/dist/collection/components/sd-button-v2/sd-button-v2.js +0 -273
  393. package/dist/components/p-B1XBwjCW.js +0 -1
  394. package/dist/components/p-B8jXOXtJ.js +0 -1
  395. package/dist/components/p-BE6TxbtX.js +0 -1
  396. package/dist/components/p-BcMNA89i.js +0 -1
  397. package/dist/components/p-BheX6lAy.js +0 -1
  398. package/dist/components/p-BmYM7-4v.js +0 -1
  399. package/dist/components/p-BppjYHF6.js +0 -1
  400. package/dist/components/p-BwWDMpJc.js +0 -1
  401. package/dist/components/p-C-kw2p2a.js +0 -1
  402. package/dist/components/p-C5qZtNLl.js +0 -1
  403. package/dist/components/p-C7DajKYn.js +0 -1
  404. package/dist/components/p-CZ4ltUOw.js +0 -1
  405. package/dist/components/p-D3gjBBCU.js +0 -1
  406. package/dist/components/p-DC-6inj0.js +0 -1
  407. package/dist/components/p-DRF0He-x.js +0 -1
  408. package/dist/components/p-Dey-lS6x.js +0 -1
  409. package/dist/components/p-DfH_fO01.js +0 -1
  410. package/dist/components/p-DngV3MT1.js +0 -1
  411. package/dist/components/p-EbjZr2OA.js +0 -1
  412. package/dist/components/p-LwWOleLJ.js +0 -1
  413. package/dist/components/p-ZMpCZhXP.js +0 -1
  414. package/dist/components/p-dNJIFthT.js +0 -1
  415. package/dist/components/p-xnLvZ-xn.js +0 -1
  416. package/dist/components/sd-button-v2.js +0 -1
  417. package/dist/design-system/p-0356c195.entry.js +0 -1
  418. package/dist/design-system/p-12dfd239.entry.js +0 -1
  419. package/dist/design-system/p-16d3a485.entry.js +0 -1
  420. package/dist/design-system/p-1706ed6f.entry.js +0 -1
  421. package/dist/design-system/p-182548f7.entry.js +0 -1
  422. package/dist/design-system/p-1a79edce.entry.js +0 -1
  423. package/dist/design-system/p-2812b9ce.entry.js +0 -1
  424. package/dist/design-system/p-38f661ea.entry.js +0 -1
  425. package/dist/design-system/p-429dab5c.entry.js +0 -1
  426. package/dist/design-system/p-59313838.entry.js +0 -1
  427. package/dist/design-system/p-6af01ab0.entry.js +0 -1
  428. package/dist/design-system/p-70d4903f.entry.js +0 -1
  429. package/dist/design-system/p-767e99f9.entry.js +0 -1
  430. package/dist/design-system/p-7c370335.entry.js +0 -1
  431. package/dist/design-system/p-7fe8be6a.entry.js +0 -1
  432. package/dist/design-system/p-83b262dc.entry.js +0 -1
  433. package/dist/design-system/p-881adaa5.entry.js +0 -1
  434. package/dist/design-system/p-88d7303c.entry.js +0 -1
  435. package/dist/design-system/p-8a601e0f.entry.js +0 -1
  436. package/dist/design-system/p-B1XBwjCW.js +0 -1
  437. package/dist/design-system/p-BsrEibf7.js +0 -1
  438. package/dist/design-system/p-C5qZtNLl.js +0 -1
  439. package/dist/design-system/p-CZ4ltUOw.js +0 -1
  440. package/dist/design-system/p-Cnwbjz1F.js +0 -2
  441. package/dist/design-system/p-a82be987.entry.js +0 -1
  442. package/dist/design-system/p-b917c82a.entry.js +0 -1
  443. package/dist/design-system/p-b9f00eef.entry.js +0 -1
  444. package/dist/design-system/p-bcb53788.entry.js +0 -1
  445. package/dist/design-system/p-c24344ac.entry.js +0 -1
  446. package/dist/design-system/p-d76192bd.entry.js +0 -1
  447. package/dist/design-system/p-d9d8c51b.entry.js +0 -1
  448. package/dist/design-system/p-de67937d.entry.js +0 -1
  449. package/dist/design-system/p-ea5e6c2c.entry.js +0 -1
  450. package/dist/design-system/p-eeb1cac2.entry.js +0 -1
  451. package/dist/design-system/p-f1a74359.entry.js +0 -1
  452. package/dist/design-system/p-f69c7539.entry.js +0 -1
  453. package/dist/esm/component.button-B1XBwjCW.js +0 -88
  454. package/dist/esm/sd-date-picker-trigger.entry.js +0 -49
  455. package/dist/esm/sd-date-picker.entry.js +0 -115
  456. package/dist/esm/sd-date-range-picker.entry.js +0 -121
  457. package/dist/esm/sd-file-picker.entry.js +0 -242
  458. package/dist/esm/sd-input.entry.js +0 -173
  459. package/dist/esm/sd-number-input.entry.js +0 -407
  460. package/dist/esm/sd-radio-group.entry.js +0 -44
  461. package/dist/esm/sd-textarea.entry.js +0 -144
  462. package/dist/types/components/sd-button-v2/sd-button-v2.d.ts +0 -19
  463. /package/dist/components/{p-C2fDbE9d.js → p-B6cqMQaM.js} +0 -0
  464. /package/dist/design-system/{p-C2fDbE9d.js → p-B6cqMQaM.js} +0 -0
@@ -1,8 +1,8 @@
1
- import { r as registerInstance, c as createEvent, h, F as Fragment, a as getElement, H as Host } from './index-Cnwbjz1F.js';
2
- import { n as nanoid } from './index-CCwNgVmC.js';
1
+ import { r as registerInstance, c as createEvent, h, F as Fragment, a as getElement, H as Host } from './index-CLCoul8o.js';
3
2
  import { T as TABLE_ID_ATTR } from './constants-sZMi_32I.js';
4
- import { r as resolveTableIconColor, c as resolveSortIconName, a as TABLE_BORDER, d as TABLE_HEADER_RESIZING_BAR, e as TABLE_HEADER_TYPOGRAPHY, f as TABLE_HEADER_COLORS, g as TABLE_HEADER_LAYOUT, T as TABLE_BODY_TYPOGRAPHY, h as TABLE_BODY_LAYOUT } from './sd-table.config-Bj-EEo7N.js';
5
- import './system-CZ4ltUOw.js';
3
+ import { r as resolveTableIconColor, c as resolveSortIconName, a as TABLE_BORDER, d as TABLE_HEADER_RESIZING_BAR, e as TABLE_HEADER_TYPOGRAPHY, f as TABLE_HEADER_COLORS, g as TABLE_HEADER_LAYOUT, T as TABLE_BODY_TYPOGRAPHY, h as TABLE_BODY_LAYOUT } from './sd-table.config-0Te8GLCI.js';
4
+ import './component.table-BQ6at17Y.js';
5
+ import './system-GBlVDmy4.js';
6
6
 
7
7
  const pagination = {
8
8
  height: "24",
@@ -152,296 +152,17 @@ const SdPagination = class {
152
152
  '--sd-pagination-bg-selected': PAGINATION_COLORS.bgSelected,
153
153
  '--sd-pagination-item-width': `${this.buttonWidth}px`,
154
154
  };
155
- return (h("div", { key: 'e648886fbec4723b7be767d9e1bfc04004cca234', class: {
155
+ return (h("div", { key: '0a99cc2b09de2f2a893fe88eaee535dc2f39505d', class: {
156
156
  'sd-pagination': true,
157
157
  'sd-pagination--simple': this.simple,
158
- }, style: cssVars }, h("div", { key: '43ff8b8f6682c4d2b70c5085a6d3199de1d01596', class: "sd-pagination__group sd-pagination__group--prev" }, this.renderPrevButtons()), this.simple ? (h("div", { class: "sd-pagination__info" }, h("span", { class: "sd-pagination__current" }, this.currentPage), h("span", { class: "sd-pagination__divider" }, "/"), h("span", { class: "sd-pagination__last" }, this.lastPage))) : (h("div", { class: "sd-pagination__numbers" }, this.pageNumbers.map(n => (h("button", { type: "button", "aria-current": this.currentPage === n ? 'page' : undefined, class: {
158
+ }, style: cssVars }, h("div", { key: 'ba4e726a23e572c788c8c68689e656a07f21f46e', class: "sd-pagination__group sd-pagination__group--prev" }, this.renderPrevButtons()), this.simple ? (h("div", { class: "sd-pagination__info" }, h("span", { class: "sd-pagination__current" }, this.currentPage), h("span", { class: "sd-pagination__divider" }, "/"), h("span", { class: "sd-pagination__last" }, this.lastPage))) : (h("div", { class: "sd-pagination__numbers" }, this.pageNumbers.map(n => (h("button", { type: "button", "aria-current": this.currentPage === n ? 'page' : undefined, class: {
159
159
  'sd-pagination__item': true,
160
160
  'sd-pagination__item--selected': this.currentPage === n,
161
- }, onClick: () => this.handlePageChange(n) }, n))))), h("div", { key: '1975d14028485438a728b23d717abfcde8722fcf', class: "sd-pagination__group sd-pagination__group--next" }, this.renderNextButtons())));
161
+ }, onClick: () => this.handlePageChange(n) }, n))))), h("div", { key: 'e3276583ab382b988ac2961e8c67c431d5c4495e', class: "sd-pagination__group sd-pagination__group--next" }, this.renderNextButtons())));
162
162
  }
163
163
  };
164
164
  SdPagination.style = sdPaginationCss();
165
165
 
166
- const sdSelectCss = () => `sd-select{display:inline-flex}sd-select sd-portal{display:none}sd-select .sd-select{position:relative;width:100%;height:100%}`;
167
-
168
- const SdSelect = class {
169
- constructor(hostRef) {
170
- registerInstance(this, hostRef);
171
- this.update = createEvent(this, "sdUpdate", 7);
172
- this.dropDownShow = createEvent(this, "sdDropDownShow", 7);
173
- }
174
- static VIEWPORT_PADDING = 20;
175
- static PORTAL_OFFSET_Y = 4;
176
- static CLOSE_ANIMATION_DURATION = 150;
177
- get el() { return getElement(this); }
178
- type = 'default';
179
- value = null;
180
- options = [];
181
- placeholder = '선택';
182
- maxDropdownWidth = '640px';
183
- dropdownHeight = '260px';
184
- disabled = false;
185
- label = '';
186
- labelWidth = '';
187
- addonLabel = '';
188
- addonAlign = 'start';
189
- error = false;
190
- hint = '';
191
- errorMessage = '';
192
- rules = [];
193
- icon = undefined;
194
- labelTooltip = '';
195
- labelTooltipProps = null;
196
- emitValue = false;
197
- width = '';
198
- useSearch = false;
199
- allSelectedLabel = '전체';
200
- useSelectAll = false;
201
- isOpen = false;
202
- isAnimatingOut = false;
203
- triggerWidth = '200px';
204
- resolvedDropdownHeight = '260px';
205
- resolvedMaxDropdownWidth = '640px';
206
- focused = false;
207
- hovered = false;
208
- update;
209
- dropDownShow;
210
- async sdFocus() {
211
- if (this.disabled)
212
- return;
213
- await this.triggerComponentRef?.sdFocus();
214
- }
215
- async sdOpen() {
216
- // sdFocus 직후 호출 시 트리거 ref/레이아웃이 안정될 때까지 한 틱 대기
217
- await new Promise(resolve => setTimeout(resolve, 0));
218
- if (this.disabled || this.isOpen)
219
- return;
220
- this.prepareDropdownGeometry();
221
- if (this.closeAnimationTimer)
222
- clearTimeout(this.closeAnimationTimer);
223
- this.isAnimatingOut = false;
224
- this.isOpen = true;
225
- }
226
- triggerRef;
227
- triggerComponentRef;
228
- closeAnimationTimer;
229
- name = nanoid();
230
- triggerHasFocus = false;
231
- watchIsOpen(newValue) {
232
- this.syncFocusedState(newValue);
233
- this.dropDownShow.emit({ isOpen: newValue });
234
- }
235
- get isMulti() {
236
- return this.type === 'multi' || this.type === 'multi_depth';
237
- }
238
- get displayText() {
239
- if (this.isMulti) {
240
- if (!Array.isArray(this.value) || this.value.length === 0)
241
- return '';
242
- const nonDisabledLeaves = this.getNonDisabledLeaves(this.options);
243
- const selected = this.getSelectedOptions();
244
- const allSelected = nonDisabledLeaves.length > 0 &&
245
- nonDisabledLeaves.every(leaf => selected.some(s => s.value === leaf.value));
246
- if (allSelected)
247
- return this.allSelectedLabel ?? '전체';
248
- const flat = this.flattenOptions(this.options);
249
- return this.value
250
- .map(item => {
251
- if (item != null && typeof item === 'object') {
252
- const opt = item;
253
- return opt.label ?? flat.find(o => o.value === opt.value)?.label ?? '';
254
- }
255
- return flat.find(o => o.value === item)?.label ?? '';
256
- })
257
- .filter(Boolean)
258
- .join(', ');
259
- }
260
- if (this.value == null)
261
- return '';
262
- if (!this.emitValue && typeof this.value === 'object' && !Array.isArray(this.value)) {
263
- return this.value.label ?? '';
264
- }
265
- const flat = this.flattenOptions(this.options);
266
- const found = flat.find(o => o.value === this.value);
267
- return found?.label ?? '';
268
- }
269
- flattenOptions(options) {
270
- return options.flatMap(o => (o.children ? this.flattenOptions(o.children) : [o]));
271
- }
272
- getNonDisabledLeaves(options) {
273
- return options.flatMap(o => {
274
- if (o.disabled)
275
- return [];
276
- if (o.children)
277
- return this.getNonDisabledLeaves(o.children);
278
- return [o];
279
- });
280
- }
281
- getSelectedOptions() {
282
- const val = this.value;
283
- if (!val || !Array.isArray(val))
284
- return [];
285
- if (this.emitValue) {
286
- return val
287
- .map(v => this.findOriginalOption(v, this.options))
288
- .filter((o) => !!o);
289
- }
290
- return val;
291
- }
292
- toMultiValue(options) {
293
- return this.emitValue ? options.map(o => o.value) : options;
294
- }
295
- parsePixelValue(value, fallback) {
296
- const parsed = Number.parseFloat(value);
297
- return Number.isFinite(parsed) ? parsed : fallback;
298
- }
299
- updateDropdownViewportConstraints() {
300
- if (!this.triggerRef)
301
- return;
302
- const triggerRect = this.triggerRef.getBoundingClientRect();
303
- const viewportPadding = SdSelect.VIEWPORT_PADDING;
304
- const offsetY = SdSelect.PORTAL_OFFSET_Y;
305
- const preferredHeight = this.parsePixelValue(this.dropdownHeight, 260);
306
- const preferredWidth = this.parsePixelValue(this.maxDropdownWidth, 640);
307
- const availableBelow = Math.max(window.innerHeight - triggerRect.bottom - viewportPadding - offsetY, 0);
308
- const availableAbove = Math.max(triggerRect.top - viewportPadding - offsetY, 0);
309
- const availableHeight = Math.max(availableBelow, availableAbove);
310
- const availableWidth = Math.max(window.innerWidth - viewportPadding * 2, 0);
311
- this.resolvedDropdownHeight = `${Math.min(preferredHeight, availableHeight)}px`;
312
- this.resolvedMaxDropdownWidth = `${Math.min(preferredWidth, availableWidth)}px`;
313
- }
314
- handleViewportResize = () => {
315
- if (!this.isOpen)
316
- return;
317
- this.updateDropdownViewportConstraints();
318
- };
319
- findOriginalOption(value, options) {
320
- for (const opt of options) {
321
- if (opt.value === value)
322
- return opt;
323
- if (opt.children) {
324
- const found = this.findOriginalOption(value, opt.children);
325
- if (found)
326
- return found;
327
- }
328
- }
329
- return undefined;
330
- }
331
- closeDropdown() {
332
- if (!this.isOpen)
333
- return;
334
- this.isOpen = false;
335
- this.isAnimatingOut = true;
336
- if (this.closeAnimationTimer)
337
- clearTimeout(this.closeAnimationTimer);
338
- this.closeAnimationTimer = setTimeout(() => {
339
- this.isAnimatingOut = false;
340
- }, SdSelect.CLOSE_ANIMATION_DURATION);
341
- }
342
- prepareDropdownGeometry() {
343
- if (this.triggerRef) {
344
- this.triggerWidth = `${this.triggerRef.offsetWidth}px`;
345
- }
346
- this.updateDropdownViewportConstraints();
347
- }
348
- syncFocusedState(isOpen = this.isOpen) {
349
- this.focused = isOpen || this.triggerHasFocus;
350
- }
351
- handleTriggerFocus = () => {
352
- this.triggerHasFocus = true;
353
- this.syncFocusedState();
354
- };
355
- handleTriggerBlur = () => {
356
- this.triggerHasFocus = false;
357
- this.syncFocusedState();
358
- };
359
- handleTriggerClick = () => {
360
- if (this.isOpen) {
361
- this.closeDropdown();
362
- return;
363
- }
364
- this.prepareDropdownGeometry();
365
- if (this.closeAnimationTimer)
366
- clearTimeout(this.closeAnimationTimer);
367
- this.isAnimatingOut = false;
368
- this.isOpen = true;
369
- };
370
- emitUpdate(value) {
371
- this.update.emit(value);
372
- }
373
- handleOptionSelect = (detail) => {
374
- const { option, leaves } = detail;
375
- if (this.isMulti) {
376
- this.handleMultiSelect(option, leaves);
377
- }
378
- else {
379
- this.closeDropdown();
380
- this.value = this.emitValue ? option.value : option;
381
- const nextValue = this.value;
382
- requestAnimationFrame(() => {
383
- this.emitUpdate(nextValue);
384
- });
385
- }
386
- };
387
- handleMultiSelect(option, leaves) {
388
- const selected = this.getSelectedOptions();
389
- const isGroup = !!option.children;
390
- let newSelected;
391
- if (isGroup) {
392
- const allSelected = leaves.every(l => selected.some(s => s.value === l.value));
393
- if (allSelected) {
394
- const leafValues = new Set(leaves.map(l => l.value));
395
- newSelected = selected.filter(s => !leafValues.has(s.value));
396
- }
397
- else {
398
- const existing = new Set(selected.map(s => s.value));
399
- const toAdd = leaves.filter(l => !existing.has(l.value));
400
- newSelected = [...selected, ...toAdd];
401
- }
402
- }
403
- else {
404
- const exists = selected.some(s => s.value === option.value);
405
- newSelected = exists ? selected.filter(s => s.value !== option.value) : [...selected, option];
406
- }
407
- this.value = this.toMultiValue(newSelected);
408
- this.emitUpdate(this.value);
409
- }
410
- connectedCallback() {
411
- window.addEventListener('resize', this.handleViewportResize);
412
- }
413
- disconnectedCallback() {
414
- window.removeEventListener('resize', this.handleViewportResize);
415
- if (this.closeAnimationTimer)
416
- clearTimeout(this.closeAnimationTimer);
417
- }
418
- render() {
419
- const portalProps = {
420
- open: this.isOpen,
421
- parentRef: this.triggerRef,
422
- viewportPadding: SdSelect.VIEWPORT_PADDING,
423
- onSdClose: () => {
424
- this.closeDropdown();
425
- },
426
- };
427
- return (h("sd-field", { key: '76625e332090d20e2f66159bba5ee1b9a11320a6', name: this.name, label: this.label, labelWidth: this.labelWidth, addonLabel: this.addonLabel, addonAlign: this.addonAlign, hint: this.hint, errorMessage: this.errorMessage, width: this.width, rules: this.rules, error: this.error, disabled: this.disabled, focused: this.focused, hovered: this.hovered, icon: this.icon, labelTooltip: this.labelTooltip, labelTooltipProps: this.labelTooltipProps, onMouseEnter: () => {
428
- this.hovered = true;
429
- }, onMouseLeave: () => {
430
- this.hovered = false;
431
- } }, h("div", { key: '8a0ae8a5e05459128409dbe21779f5e3d91b3a04', class: "sd-select", ref: el => {
432
- this.triggerRef = el;
433
- } }, h("sd-select-trigger", { key: '6b47231914655a8e197e3b38cd8e37c5214efc17', ref: el => {
434
- this.triggerComponentRef = el;
435
- }, displayText: this.displayText, placeholder: this.placeholder, disabled: this.disabled, isOpen: this.isOpen, onSdTriggerClick: this.handleTriggerClick, onSdTriggerFocus: this.handleTriggerFocus, onSdTriggerBlur: this.handleTriggerBlur })), (this.isOpen || this.isAnimatingOut) && (h("sd-portal", { key: 'eaed402d276cc94a1324ede9cbf09bc436f8a1db', ...portalProps }, h("sd-select-listbox", { key: 'a96f75e06d974c8fd88ac72f083fe4b0ef424a0b', type: this.type, options: this.options, value: this.value, emitValue: this.emitValue, useSearch: this.useSearch, useSelectAll: this.useSelectAll, triggerWidth: this.triggerWidth, maxWidth: this.resolvedMaxDropdownWidth, maxHeight: this.resolvedDropdownHeight, onSdOptionSelect: event => this.handleOptionSelect(event.detail) })))));
436
- }
437
- static get watchers() { return {
438
- "isOpen": [{
439
- "watchIsOpen": 0
440
- }]
441
- }; }
442
- };
443
- SdSelect.style = sdSelectCss();
444
-
445
166
  const sdTbodyCss = () => `:host{display:contents}:host *{box-sizing:border-box}.tbody{display:table-row-group}`;
446
167
 
447
168
  const SdTbody = class {
@@ -492,9 +213,9 @@ const SdTbody = class {
492
213
  }
493
214
  }
494
215
  render() {
495
- return (h(Host, { key: 'e474bc09fdec9d48d978ec87620b161220b5236c', slot: `${this.tableId}-body` }, h("tbody", { key: 'c74261b3f30c43e8ac8c3bdea1180f17bfc7dbc8', class: { tbody: true } }, [
216
+ return (h(Host, { key: 'f0dacb28bae712e8f4d65bad00846da9db593307', slot: `${this.tableId}-body` }, h("tbody", { key: 'aec7d2277e617f1c186163d214e94559793b764c', class: { tbody: true } }, [
496
217
  this.topSpacerHeight > 0 && (h("tr", { key: "spacer-top", class: "tbody__spacer", style: { height: `${this.topSpacerHeight}px`, display: 'block' } })),
497
- h("slot", { key: 'f686e7e8fa81e725a32592a58267d0b5cd7551e6' }),
218
+ h("slot", { key: '2c428e3624ac949ee201edfd02b5e8f0bcea2e48' }),
498
219
  this.bottomSpacerHeight > 0 && (h("tr", { key: "spacer-bottom", class: "tbody__spacer", style: { height: `${this.bottomSpacerHeight}px`, display: 'block' } })),
499
220
  ])));
500
221
  }
@@ -663,16 +384,16 @@ const SdThead = class {
663
384
  '--table-border-color': TABLE_BORDER.color,
664
385
  '--table-border-width': `${TABLE_BORDER.width}px`,
665
386
  };
666
- return (h(Host, { key: 'c4468056cc20a78516e61bccaf4d11c098e83ec6', slot: `${this.tableId}-head`, style: headStyle }, h("thead", { key: 'a9befd1728baf2104bfb9132557d5c5c0eb49748', class: {
387
+ return (h(Host, { key: '99d8d19dcc65b811d323e21041421b2d57da9f91', slot: `${this.tableId}-head`, style: headStyle }, h("thead", { key: '7614b6726ec13e857b6b8654925b0ba3c89fba64', class: {
667
388
  'thead': true,
668
389
  'thead--sticky': this._stickyHeader,
669
- } }, h("tr", { key: 'da786d82d4896b6124becf42f634bcc5b0a6ffb7', class: "tr" }, this._selectable && (h("th", { key: 'b257c5475b7e528fbfc52ea85031a4c49bed7b36', class: {
390
+ } }, h("tr", { key: '68a615e7779947c1ee8cc26027c5bcded545e4d3', class: "tr" }, this._selectable && (h("th", { key: 'd3bc4512a24652ee156104a0fd9891504ce314dd', class: {
670
391
  'th': true,
671
392
  'th--selected': true,
672
393
  'sticky-left': true,
673
394
  'sticky-left-edge': stickyLeftCount === 0,
674
395
  'is-scrolled-left': stickyLeftCount === 0 && this._scrolledLeft,
675
- }, style: { '--sticky-left-offset': '0px' } }, h("sd-checkbox", { key: '6624026c1811c809eeb5131518ddb8c11f66b541', value: this.getIsAllChecked(), disabled: !safeRows.length, onSdUpdate: (e) => this.handleSelectAll(e.detail) }))), stickyLeftCols.map((col, idx) => (h("th", { key: col.name, class: {
396
+ }, style: { '--sticky-left-offset': '0px' } }, h("sd-checkbox", { key: 'de8f9b201aca60acbbb28a3233e964100109a92b', value: this.getIsAllChecked(), disabled: !safeRows.length, onSdUpdate: (e) => this.handleSelectAll(e.detail) }))), stickyLeftCols.map((col, idx) => (h("th", { key: col.name, class: {
676
397
  'th': true,
677
398
  [`${col.thClass}`]: Boolean(col.thClass),
678
399
  'sticky-left': true,
@@ -703,7 +424,7 @@ const SdThead = class {
703
424
  };
704
425
  SdThead.style = sdTheadCss();
705
426
 
706
- const sdTrCss = () => `sd-tr{display:contents}sd-tr *{box-sizing:border-box}.tr{display:table-row}.tr:hover .td{background-color:#F9F9F9}.tr--no-hover:hover .td{background-color:white}.td{display:table-cell;height:var(--table-body-height, 44px);padding:0 var(--table-body-padding-x, 16px);border-bottom:var(--table-border-width, 1px) solid var(--table-border-color, #E1E1E1);background:white;vertical-align:middle;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;word-break:keep-all}.td--left{text-align:left}.td--center{text-align:center}.td--right{text-align:right}.td--selected{position:relative;width:52px !important;max-width:52px !important;min-width:52px !important;padding:0 10px 0 24px;text-align:left}.td--selected sd-checkbox label{position:relative}.td--selected sd-checkbox label:before{content:"";position:absolute;inset:-6px}.td.sticky-left{position:sticky;background-color:white;z-index:100 !important;left:var(--sticky-left-offset, 0)}.td.sticky-right{position:sticky;background-color:white;z-index:100 !important;right:var(--sticky-right-offset, 0)}.td.sticky-left-edge:after{content:"";position:absolute;top:0;left:100%;right:-20px;width:20px;height:100%;z-index:101 !important;box-shadow:inset 12px 0 20px -25px;opacity:0;pointer-events:none;transition:opacity 0.2s}.td.sticky-right-edge:after{content:"";position:absolute;top:0;left:-20px;width:20px;height:100%;z-index:101 !important;box-shadow:inset -12px 0 20px -25px;opacity:0;pointer-events:none;transition:opacity 0.2s}.td.sticky-left-edge.is-scrolled-left{overflow:visible}.td.sticky-left-edge.is-scrolled-left:after{opacity:1}.td.sticky-right-edge.is-scrolled-right{overflow:visible}.td.sticky-right-edge.is-scrolled-right:after{opacity:1}.tr:hover .td.sticky-left,.tr:hover .td.sticky-right{background-color:#F9F9F9}.tr--no-hover:hover .td.sticky-left,.tr--no-hover:hover .td.sticky-right{background-color:white}`;
427
+ const sdTrCss = () => `sd-tr{display:contents}sd-tr *{box-sizing:border-box}.tr{display:table-row}.tr:hover .td{background-color:#F9F9F9}.tr--no-hover:hover .td{background-color:white}.td{display:table-cell;height:var(--table-body-height, 44px);padding:0 var(--table-body-padding-x, 16px);border-bottom:var(--table-border-width, 1px) solid var(--table-border-color, #E1E1E1);background:white;vertical-align:middle;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;word-break:keep-all}.td--left{text-align:left}.td--center{text-align:center}.td--right{text-align:right}.td--selected{position:relative;width:52px !important;max-width:52px !important;min-width:52px !important;padding:0 10px 0 24px;text-align:left}.td--selected sd-checkbox label{position:relative}.td--selected sd-checkbox label:before{content:"";position:absolute;inset:-6px}.td.sticky-left{position:sticky;background-color:white;z-index:100 !important;left:var(--sticky-left-offset, 0)}.td.sticky-right{position:sticky;background-color:white;z-index:100 !important;right:var(--sticky-right-offset, 0)}.td.sticky-left-edge:after{content:"";position:absolute;top:0;left:100%;right:-20px;width:20px;height:100%;z-index:101 !important;box-shadow:inset 12px 0 20px -25px;opacity:0;pointer-events:none;transition:opacity 0.2s}.td.sticky-right-edge:after{content:"";position:absolute;top:0;left:-20px;width:20px;height:100%;z-index:101 !important;box-shadow:inset -12px 0 20px -25px;opacity:0;pointer-events:none;transition:opacity 0.2s}.td.sticky-left-edge.is-scrolled-left{overflow:visible}.td.sticky-left-edge.is-scrolled-left:after{opacity:1}.td.sticky-right-edge.is-scrolled-right{overflow:visible}.td.sticky-right-edge.is-scrolled-right:after{opacity:1}.tr:hover .td.sticky-left,.tr:hover .td.sticky-right{background-color:#F9F9F9}.tr--no-hover:hover .td.sticky-left,.tr--no-hover:hover .td.sticky-right{background-color:white}.td.td--last-row{border-bottom:none}`;
707
428
 
708
429
  const SdTr = class {
709
430
  constructor(hostRef) {
@@ -851,6 +572,20 @@ const SdTr = class {
851
572
  const fieldName = typeof col.field === 'string' ? col.field : col.name;
852
573
  return this.tableEl.getCellClassSync(this.rowKey, fieldName);
853
574
  }
575
+ isVisualLastRow(col) {
576
+ if (!this.tableEl?.isVisualLastRowSync)
577
+ return false;
578
+ const fieldName = typeof col.field === 'string' ? col.field : col.name;
579
+ return this.tableEl.isVisualLastRowSync(this.rowKey, fieldName);
580
+ }
581
+ // selectable td는 column 정보가 없으므로 빈 field로 평가한다.
582
+ // 해당 위치는 rowspan을 등록할 수 없으므로 spanRegistry에 매칭이 없고,
583
+ // 결과적으로 "내 row 자체가 시각적 마지막인지"가 판정된다.
584
+ isVisualLastRowForSelfRow() {
585
+ if (!this.tableEl?.isVisualLastRowSync)
586
+ return false;
587
+ return this.tableEl.isVisualLastRowSync(this.rowKey, '');
588
+ }
854
589
  render() {
855
590
  const stickyLeftCount = this._stickyColumn.left || 0;
856
591
  const stickyRightCount = this._stickyColumn.right || 0;
@@ -870,13 +605,14 @@ const SdTr = class {
870
605
  '--table-border-color': TABLE_BORDER.color,
871
606
  '--table-border-width': `${TABLE_BORDER.width}px`,
872
607
  };
873
- return (h(Host, { key: '5ed784dad3eb187430efe30ed0bc0f153bf57f23', style: rowStyle }, h("tr", { key: 'bcdc07139fce88788a598ced264f3aad503882fe', class: { 'tr': true, 'tr--no-hover': hasRowspan } }, this._selectable && (h("td", { key: '0b2b516a0d2b57beb7bb37ea3ab2c34836cc772c', class: {
608
+ return (h(Host, { key: '30e4127b281770d12fab9e9cfd2cdf667eff8790', style: rowStyle }, h("tr", { key: '1072ce3f1b296e2278b7fc92a44d32da223ef119', class: { 'tr': true, 'tr--no-hover': hasRowspan } }, this._selectable && (h("td", { key: '4e3a37a320df97378a1ed311c0a7b8f744bd26bc', class: {
874
609
  'td': true,
875
610
  'td--selected': true,
611
+ 'td--last-row': this.isVisualLastRowForSelfRow(),
876
612
  'sticky-left': true,
877
613
  'sticky-left-edge': stickyLeftCount === 0,
878
614
  'is-scrolled-left': stickyLeftCount === 0 && this._scrolledLeft,
879
- }, style: { '--sticky-left-offset': '0px' } }, h("sd-checkbox", { key: '3fb6dc05e2b0e75bd70ff5b9631330ce2348bd22', value: this.isSelected(), onSdUpdate: () => this.handleSelect() }))), stickyLeftCols.map((col, idx) => {
615
+ }, style: { '--sticky-left-offset': '0px' } }, h("sd-checkbox", { key: 'b1a775462c4869f75480908bccd428714c63c257', value: this.isSelected(), onSdUpdate: () => this.handleSelect() }))), stickyLeftCols.map((col, idx) => {
880
616
  if (this.isCovered(idx))
881
617
  return null;
882
618
  const span = this.getSpanFor(col);
@@ -884,6 +620,7 @@ const SdTr = class {
884
620
  return (h("td", { key: col.name, rowSpan: span?.rowspan, colSpan: span?.colspan, class: {
885
621
  'td': true,
886
622
  [`td--${col.align || 'left'}`]: true,
623
+ 'td--last-row': this.isVisualLastRow(col),
887
624
  'sticky-left': true,
888
625
  'sticky-left-edge': idx === stickyLeftCount - 1,
889
626
  'is-scrolled-left': idx === stickyLeftCount - 1 && this._scrolledLeft,
@@ -898,8 +635,9 @@ const SdTr = class {
898
635
  const span = this.getSpanFor(col);
899
636
  const sdCellClass = this.getCellClassFor(col);
900
637
  return (h("td", { key: col.name, rowSpan: span?.rowspan, colSpan: span?.colspan, class: {
901
- td: true,
638
+ 'td': true,
902
639
  [`td--${col.align || 'left'}`]: true,
640
+ 'td--last-row': this.isVisualLastRow(col),
903
641
  [`${col.tdClass}`]: Boolean(col.tdClass),
904
642
  [`${sdCellClass}`]: Boolean(sdCellClass),
905
643
  }, style: this.getStickyStyle(actualColIdx) }, h("slot", { name: `${this.tableId}-${fieldName}-${this.rowKey}` }, h("span", null, this.getCellValue(col)))));
@@ -913,6 +651,7 @@ const SdTr = class {
913
651
  return (h("td", { key: col.name, rowSpan: span?.rowspan, colSpan: span?.colspan, class: {
914
652
  'td': true,
915
653
  [`td--${col.align || 'left'}`]: true,
654
+ 'td--last-row': this.isVisualLastRow(col),
916
655
  'sticky-right': true,
917
656
  'sticky-right-edge': relativeIdx === 0,
918
657
  'is-scrolled-right': relativeIdx === 0 && this._scrolledRight,
@@ -924,4 +663,4 @@ const SdTr = class {
924
663
  };
925
664
  SdTr.style = sdTrCss();
926
665
 
927
- export { SdPagination as sd_pagination, SdSelect as sd_select, SdTbody as sd_tbody, SdThead as sd_thead, SdTr as sd_tr };
666
+ export { SdPagination as sd_pagination, SdTbody as sd_tbody, SdThead as sd_thead, SdTr as sd_tr };
@@ -1,5 +1,5 @@
1
- import { r as registerInstance, c as createEvent, a as getElement, h, F as Fragment } from './index-Cnwbjz1F.js';
2
- import { T as TooltipArrow } from './tooltipArrow-D8sr81Xw.js';
1
+ import { r as registerInstance, c as createEvent, a as getElement, h, F as Fragment } from './index-CLCoul8o.js';
2
+ import { T as TooltipArrow } from './tooltipArrow-Bc-yw2nt.js';
3
3
 
4
4
  const popover = {
5
5
  bg: "#07284A"};
@@ -21,11 +21,15 @@ const SdPopover = class {
21
21
  icon = 'helpOutline';
22
22
  iconSize = 12;
23
23
  label = '';
24
- buttonSize = 'sm';
25
- buttonVariant = 'primary';
24
+ name = 'primary_sm';
25
+ rightIcon;
26
+ ariaLabel = '';
27
+ disabled = false;
28
+ type = 'button';
26
29
  menuTitle;
27
30
  messages = [];
28
- buttons = [];
31
+ leftLink;
32
+ button;
29
33
  menuClass = '';
30
34
  useClose = false;
31
35
  showChange;
@@ -54,19 +58,22 @@ const SdPopover = class {
54
58
  const color = this.color ?? '#01BB4B';
55
59
  const icon = this.icon ?? 'helpOutline';
56
60
  const iconSize = this.iconSize ?? 12;
57
- const buttonSize = this.buttonSize ?? 'sm';
58
- const buttonVariant = this.buttonVariant ?? 'primary';
59
61
  const menuClass = this.menuClass ?? '';
60
62
  const messages = Array.isArray(this.messages) ? this.messages : [];
61
- const buttons = Array.isArray(this.buttons) ? this.buttons : [];
62
- return (h(Fragment, { key: 'e576deaacba9395c5aeb76fd13baa0dc1e908d38' }, this.label ? (h("sd-button", { ref: el => (this.buttonEl = el), label: this.label, icon: icon, size: buttonSize, color: color, variant: buttonVariant, class: "sd-popover", onSdClick: () => this.setShow(!this.show) })) : (h("sd-icon", { ref: el => (this.buttonEl = el), name: icon, size: iconSize, color: color, class: "sd-popover", onClick: () => this.setShow(!this.show) })), this.show && (h("sd-floating-portal", { key: '7520067b46527c22108292a659dd7e8fba85397c', parentRef: this.buttonEl, onSdClose: this.handleClose, placement: placement, offset: this.popoverOffset }, h("div", { key: 'ba48632dd93359851bd87f4d55f2341653b0caab', class: {
63
+ const leftLink = this.leftLink;
64
+ const button = this.button;
65
+ const hasFooter = !!leftLink || !!button;
66
+ return (h(Fragment, { key: '15b78d688d095fb15d5e6188dc848593bfec842e' }, this.label ? (h("sd-button", { ref: el => (this.buttonEl = el), name: this.name ?? 'primary_sm', label: this.label, icon: icon, rightIcon: this.rightIcon, ariaLabel: this.ariaLabel, disabled: this.disabled, type: this.type ?? 'button', class: "sd-popover", onSdClick: () => this.setShow(!this.show) })) : (h("sd-icon", { ref: el => (this.buttonEl = el), name: icon, size: iconSize, color: color, class: "sd-popover", onClick: () => this.setShow(!this.show) })), this.show && (h("sd-floating-portal", { key: '5075327dce1fda289492edbeefe2e9af38fdaab0', parentRef: this.buttonEl, onSdClose: this.handleClose, placement: placement, offset: this.popoverOffset }, h("div", { key: 'd28e998f464c40d49935013521663801aead6771', class: {
63
67
  'sd-floating-menu': true,
64
68
  'sd-floating-menu--popover': true,
65
69
  [`sd-floating-menu--${placement}`]: true,
66
70
  [menuClass]: !!menuClass,
67
71
  }, style: {
68
72
  '--sd-floating-bg': popoverTokens.popover.bg,
69
- } }, h("i", { key: 'fce80e5bc6f49f5dbc1772f910eae0fb9bc09a6b', class: `sd-floating-menu__arrow sd-floating-menu__arrow--${placement}` }, h(TooltipArrow, { key: '32aaa3b00f7ac77d47fd2bc3c968a7a4c20102c6' })), h("div", { key: '29b3240126412070466acee7ee1d061d235ba51e', class: "sd-floating-menu__content" }, this.menuTitle && h("div", { key: '6cb5cf4531f573e93146a552b34831dc04851661', class: "sd-floating-menu__title" }, this.menuTitle), messages.length > 0 && (h("div", { key: 'ba15bb4efc4af37dd89b0da61539f516cc31a2f3', class: "sd-floating-menu__messages" }, messages.map((message, i) => (h("div", { key: `msg-${i}` }, message))))), buttons.length > 0 && (h("div", { key: '2656545909634d8c54e9d34155e699041b5512f5', class: `sd-floating-menu__buttons sd-floating-menu__buttons--${buttons.length}` }, buttons.map((button, i) => (h("sd-button", { key: `btn-${i}`, ...button })))))), this.useClose && (h("sd-ghost-button", { key: '315bf10dde1b7cde5727beb101a1a1ad07966138', class: "sd-floating-menu__close-button", icon: "close", ariaLabel: "close", size: "xs", onClick: this.handleClose })))))));
73
+ } }, h("i", { key: 'aa98412939b7717c204fe7a76da9b61a6505a01a', class: `sd-floating-menu__arrow sd-floating-menu__arrow--${placement}` }, h(TooltipArrow, { key: '54b1a1fc5b88600737830668c3da39082cc895e7' })), h("div", { key: 'a7968d363c8e77954093bf550d6904009f8b792b', class: "sd-floating-menu__content" }, this.menuTitle && h("div", { key: 'b995c6df0d035a7a1162ec6dd3b4803897ed9b3e', class: "sd-floating-menu__title" }, this.menuTitle), messages.length > 0 && (h("div", { key: '2ee4971691688a24842b083e561b4e9e818aed88', class: "sd-floating-menu__messages" }, messages.map((message, i) => (h("div", { key: `msg-${i}` }, message))))), hasFooter && (h("div", { key: '4cbb44218d763af841b1e6bfbdd754b23d22c9e2', class: {
74
+ 'sd-floating-menu__buttons': true,
75
+ 'sd-floating-menu__buttons--with-link': !!leftLink,
76
+ } }, leftLink && (h("sd-text-link", { key: '67c6e9daf13cb294f30fdf1f848e92ba22cd3512', class: "sd-floating-menu__left-link", label: leftLink.label, icon: leftLink.icon ?? '', iconColor: leftLink.iconColor ?? '', useArrow: !!leftLink.useArrow, underline: !!leftLink.underline, disabled: !!leftLink.disabled, onSdClick: leftLink.onClick })), button && (h("sd-button", { key: '5328f1adcdc680d1bc97910a1b519298ced3b325', name: button.name ?? 'secondary_xs', label: button.label, icon: button.icon, rightIcon: button.rightIcon, ariaLabel: button.ariaLabel, disabled: button.disabled, type: button.type, onSdClick: button.onClick }))))), this.useClose && (h("sd-ghost-button", { key: '3e05ed8da4298a26d52045ad87fa5be42d6f6f02', class: "sd-floating-menu__close-button", icon: "close", ariaLabel: "close", size: "xs", onClick: this.handleClose })))))));
70
77
  }
71
78
  };
72
79
  SdPopover.style = sdPopoverCss();
@@ -0,0 +1,110 @@
1
+ import { r as registerInstance, c as createEvent, h } from './index-CLCoul8o.js';
2
+
3
+ const popup$1 = {
4
+ header: {
5
+ bg: {
6
+ "default": "#07284A",
7
+ inverse: "#FFFFFF"
8
+ },
9
+ title: {
10
+ "default": "#FFFFFF",
11
+ inverse: "#004290"
12
+ },
13
+ typography: {
14
+ 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",
15
+ fontWeight: "700",
16
+ fontSize: "18",
17
+ lineHeight: "30"}
18
+ },
19
+ footer: {
20
+ bg: "#FFFFFF",
21
+ paddingX: "20",
22
+ paddingY: "8",
23
+ gap: "16"
24
+ },
25
+ bg: "#EEEEEE"
26
+ };
27
+ var popupTokens = {
28
+ popup: popup$1
29
+ };
30
+
31
+ const { popup } = popupTokens;
32
+ const POPUP_LAYOUT = {
33
+ bodyBg: popup.bg,
34
+ };
35
+ const POPUP_HEADER = {
36
+ bg: {
37
+ default: popup.header.bg.default,
38
+ light: popup.header.bg.inverse,
39
+ },
40
+ titleColor: {
41
+ default: popup.header.title.default,
42
+ light: popup.header.title.inverse,
43
+ },
44
+ fontFamily: popup.header.typography.fontFamily,
45
+ fontWeight: popup.header.typography.fontWeight,
46
+ fontSize: Number(popup.header.typography.fontSize),
47
+ lineHeight: Number(popup.header.typography.lineHeight),
48
+ // TODO: 토큰 반영 후 교체
49
+ height: 50,
50
+ paddingX: 16,
51
+ paddingY: 10,
52
+ };
53
+ const POPUP_FOOTER = {
54
+ bg: popup.footer.bg,
55
+ paddingX: Number(popup.footer.paddingX),
56
+ paddingY: Number(popup.footer.paddingY),
57
+ gap: Number(popup.footer.gap),
58
+ // TODO: 토큰 반영 후 교체
59
+ height: 52,
60
+ slotHeight: 36,
61
+ // TODO: shadow/spread/md 토큰 반영 후 교체
62
+ shadow: '0 -2px 8px 0 rgba(0, 0, 0, 0.08)',
63
+ };
64
+
65
+ const sdPopupCss = () => `sd-popup{display:block;width:100%;height:100%}sd-popup .sd-popup{display:flex;flex-direction:column;width:100%;height:100%;background:var(--sd-popup-bg);overflow:hidden;box-sizing:border-box}sd-popup .sd-popup__header{display:flex;align-items:center;justify-content:center;flex-shrink:0;width:100%;height:var(--sd-popup-header-height);padding:var(--sd-popup-header-padding-y) var(--sd-popup-header-padding-x);background:var(--sd-popup-header-bg);box-sizing:border-box}sd-popup .sd-popup__title{margin:0;color:var(--sd-popup-header-title-color);font-family:var(--sd-popup-header-font-family);font-weight:var(--sd-popup-header-font-weight);font-size:var(--sd-popup-header-font-size);line-height:var(--sd-popup-header-line-height);text-align:center;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}sd-popup .sd-popup__body{flex:1 1 auto;min-height:0;overflow:auto}sd-popup .sd-popup__footer{display:flex;align-items:center;flex-shrink:0;width:100%;height:var(--sd-popup-footer-height);padding:var(--sd-popup-footer-padding-y) var(--sd-popup-footer-padding-x);gap:var(--sd-popup-footer-gap);background:var(--sd-popup-footer-bg);box-shadow:var(--sd-popup-footer-shadow);box-sizing:border-box;position:relative;z-index:1}sd-popup .sd-popup__footer-slot{display:flex;align-items:center;height:var(--sd-popup-footer-slot-height)}sd-popup .sd-popup__footer-slot--left{justify-content:flex-start;flex:1 1 auto;min-width:0}sd-popup .sd-popup__footer-slot:empty{display:none}sd-popup .sd-popup__submit{flex-shrink:0;margin-left:auto}`;
66
+
67
+ const DEFAULT_SUBMIT_BUTTON_PROPS = {
68
+ name: 'primary_md',
69
+ label: '확인',
70
+ };
71
+ const SdPopup = class {
72
+ constructor(hostRef) {
73
+ registerInstance(this, hostRef);
74
+ this.submit = createEvent(this, "sdSubmit", 7);
75
+ }
76
+ popupTitle = '';
77
+ type = 'default';
78
+ useFooter = true;
79
+ submitButtonProps;
80
+ submit;
81
+ render() {
82
+ const cssVars = {
83
+ '--sd-popup-bg': POPUP_LAYOUT.bodyBg,
84
+ '--sd-popup-header-bg': POPUP_HEADER.bg[this.type],
85
+ '--sd-popup-header-title-color': POPUP_HEADER.titleColor[this.type],
86
+ '--sd-popup-header-font-family': POPUP_HEADER.fontFamily,
87
+ '--sd-popup-header-font-weight': POPUP_HEADER.fontWeight,
88
+ '--sd-popup-header-font-size': `${POPUP_HEADER.fontSize}px`,
89
+ '--sd-popup-header-line-height': `${POPUP_HEADER.lineHeight}px`,
90
+ '--sd-popup-header-height': `${POPUP_HEADER.height}px`,
91
+ '--sd-popup-header-padding-x': `${POPUP_HEADER.paddingX}px`,
92
+ '--sd-popup-header-padding-y': `${POPUP_HEADER.paddingY}px`,
93
+ '--sd-popup-footer-bg': POPUP_FOOTER.bg,
94
+ '--sd-popup-footer-padding-x': `${POPUP_FOOTER.paddingX}px`,
95
+ '--sd-popup-footer-padding-y': `${POPUP_FOOTER.paddingY}px`,
96
+ '--sd-popup-footer-gap': `${POPUP_FOOTER.gap}px`,
97
+ '--sd-popup-footer-height': `${POPUP_FOOTER.height}px`,
98
+ '--sd-popup-footer-slot-height': `${POPUP_FOOTER.slotHeight}px`,
99
+ '--sd-popup-footer-shadow': POPUP_FOOTER.shadow,
100
+ };
101
+ const submitButtonProps = {
102
+ ...DEFAULT_SUBMIT_BUTTON_PROPS,
103
+ ...this.submitButtonProps,
104
+ };
105
+ return (h("div", { key: '15e86848fe487b9df5b09a91e5319b35d7332a6e', class: `sd-popup sd-popup--${this.type}`, style: cssVars }, h("header", { key: 'd8281c73a80fe5a4b8ce3ca219e967932b0ec1d3', class: "sd-popup__header" }, h("h2", { key: '31031d3988bae465e023cc94713fb39ef9299250', class: "sd-popup__title" }, this.popupTitle)), h("div", { key: 'dfa941b0dc100b55fc08ab8cb9fce2835aaa62a5', class: "sd-popup__body" }, h("slot", { key: 'd7532a39c61746e8f517973e6fd4f7f3ac10fae0' })), this.useFooter && (h("footer", { key: 'aacedcc4c2f2e4336449bc0fbafc9f67d70cc763', class: "sd-popup__footer" }, h("div", { key: '8f093e0a8c24b03fa28e872b025cb159006d3449', class: "sd-popup__footer-slot sd-popup__footer-slot--left" }, h("slot", { key: '11e2cd175c7ae3151408ca7e564df0a37d6eebb5', name: "footer-left" })), h("sd-button", { key: '49b98d39181bd30392b7388dc7acc66caaca6038', ...submitButtonProps, class: "sd-popup__submit", onSdClick: () => this.submit.emit() })))));
106
+ }
107
+ };
108
+ SdPopup.style = sdPopupCss();
109
+
110
+ export { SdPopup as sd_popup };
@@ -1,4 +1,4 @@
1
- import { r as registerInstance, c as createEvent, a as getElement, h } from './index-Cnwbjz1F.js';
1
+ import { r as registerInstance, c as createEvent, a as getElement, h } from './index-CLCoul8o.js';
2
2
 
3
3
  const SdPortal = class {
4
4
  constructor(hostRef) {
@@ -225,7 +225,7 @@ const SdPortal = class {
225
225
  this.close.emit();
226
226
  }
227
227
  render() {
228
- return h("slot", { key: '28858d6833d8ff7f86295f7e445d51ffc84db99a' });
228
+ return h("slot", { key: 'c85555f533743f29615e77c1834e8f0fefae7dc7' });
229
229
  }
230
230
  static get watchers() { return {
231
231
  "open": [{
@@ -1,4 +1,4 @@
1
- import { r as registerInstance, c as createEvent, h } from './index-Cnwbjz1F.js';
1
+ import { r as registerInstance, c as createEvent, h } from './index-CLCoul8o.js';
2
2
 
3
3
  const radioButton = {
4
4
  xs: {
@@ -138,7 +138,7 @@ const SdRadioButton = class {
138
138
  return classes.join(' ');
139
139
  }
140
140
  getGroupClasses() {
141
- const classes = ['sd-radio-button', `sd-radio-button--${this.size}`];
141
+ const classes = ['sd-radio-button', `sd-radio-button--${this.size ?? 'sm'}`];
142
142
  return classes.join(' ');
143
143
  }
144
144
  _groupName;
@@ -149,7 +149,7 @@ const SdRadioButton = class {
149
149
  return this._groupName;
150
150
  }
151
151
  render() {
152
- const sizeTokens = RADIO_BUTTON_SIZES[this.size];
152
+ const sizeTokens = RADIO_BUTTON_SIZES[this.size ?? 'sm'] ?? RADIO_BUTTON_SIZES.sm;
153
153
  const cssVars = {
154
154
  '--sd-radio-button-height': `${sizeTokens.height}px`,
155
155
  '--sd-radio-button-padding-x': `${sizeTokens.paddingX}px`,
@@ -173,7 +173,7 @@ const SdRadioButton = class {
173
173
  '--sd-radio-button-content-select': RADIO_BUTTON_COLORS.content.select,
174
174
  '--sd-radio-button-content-disabled': RADIO_BUTTON_COLORS.content.disabled,
175
175
  };
176
- return (h("div", { key: 'fbc0246d9cf615956121295e29bf8c702ee73edc', class: this.getGroupClasses(), style: cssVars, role: "radiogroup", "aria-disabled": this.disabled.toString() }, this.options.map(option => {
176
+ return (h("div", { key: 'fc1cfe14f2e71092496b241f3b4efa42a1ed878c', class: this.getGroupClasses(), style: cssVars, role: "radiogroup", "aria-disabled": this.disabled.toString() }, this.options.map(option => {
177
177
  const isSelected = this.isOptionSelected(option);
178
178
  const isDisabled = this.isOptionDisabled(option);
179
179
  return (h("label", { key: `radio-${option.value}`, class: this.getButtonClasses(option), "aria-label": option.label || 'radio option', "data-label": option.label }, h("input", { type: "radio", name: this.groupName, value: option.value.toString(), checked: isSelected, disabled: isDisabled, onInput: () => this.handleRadioChange(option.value, option.disabled) }), option.label && h("span", { class: "sd-radio-button__label" }, option.label)));