@sellmate/design-system 1.27.1 → 1.28.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 (317) hide show
  1. package/dist/cjs/component.listBox-MHAv4Yy7.js +15 -0
  2. package/dist/cjs/{component.listItem-Bnh0r_CA.js → component.listItem-cAO_ppOz.js} +0 -7
  3. package/dist/cjs/{component.table-BrI3b--h.js → component.table-POXY492T.js} +5 -4
  4. package/dist/cjs/design-system.cjs.js +2 -2
  5. package/dist/cjs/{index-DsYLSqCp.js → index-D12oddge.js} +1 -1
  6. package/dist/cjs/loader.cjs.js +2 -2
  7. package/dist/cjs/sd-action-modal.cjs.entry.js +1 -1
  8. package/dist/cjs/sd-badge.cjs.entry.js +1 -1
  9. package/dist/cjs/sd-barcode-input.cjs.entry.js +1 -1
  10. package/dist/cjs/sd-button_2.cjs.entry.js +1 -1
  11. package/dist/cjs/sd-calendar_2.cjs.entry.js +1 -1
  12. package/dist/cjs/sd-callout.cjs.entry.js +1 -1
  13. package/dist/cjs/sd-card.cjs.entry.js +1 -1
  14. package/dist/cjs/sd-checkbox.cjs.entry.js +2 -3
  15. package/dist/cjs/sd-chip-input.cjs.entry.js +4 -3
  16. package/dist/cjs/sd-chip.cjs.entry.js +1 -1
  17. package/dist/cjs/sd-circle-progress.cjs.entry.js +5 -3
  18. package/dist/cjs/sd-confirm-modal_2.cjs.entry.js +6 -3
  19. package/dist/cjs/sd-date-box.cjs.entry.js +1 -1
  20. package/dist/cjs/sd-date-picker_7.cjs.entry.js +68 -15
  21. package/dist/cjs/sd-date-range-picker-calendar.cjs.entry.js +1 -1
  22. package/dist/cjs/sd-divider.cjs.entry.js +1 -1
  23. package/dist/cjs/sd-dropdown-button.cjs.entry.js +1 -1
  24. package/dist/cjs/sd-field_3.cjs.entry.js +6 -6
  25. package/dist/cjs/sd-form.cjs.entry.js +1 -1
  26. package/dist/cjs/sd-ghost-button_3.cjs.entry.js +2 -3
  27. package/dist/cjs/sd-guide.cjs.entry.js +4 -9
  28. package/dist/cjs/sd-key-value-table.cjs.entry.js +2 -2
  29. package/dist/cjs/sd-linear-progress.cjs.entry.js +2 -2
  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_4.cjs.entry.js +14 -12
  33. package/dist/cjs/sd-popover.cjs.entry.js +2 -2
  34. package/dist/cjs/sd-popup.cjs.entry.js +2 -2
  35. package/dist/cjs/sd-radio-button.cjs.entry.js +1 -1
  36. package/dist/cjs/sd-radio.cjs.entry.js +2 -3
  37. package/dist/cjs/sd-select-list-item_2.cjs.entry.js +10 -9
  38. package/dist/cjs/{sd-select.config-C9Ohe1QA.js → sd-select.config-omyxekRa.js} +3 -2
  39. package/dist/cjs/sd-select_3.cjs.entry.js +12 -11
  40. package/dist/cjs/sd-switch.cjs.entry.js +2 -2
  41. package/dist/cjs/sd-table.cjs.entry.js +9 -9
  42. package/dist/cjs/{sd-table.config-DzC55sap.js → sd-table.config-DFy_S4bc.js} +5 -4
  43. package/dist/cjs/sd-tabs.cjs.entry.js +2 -2
  44. package/dist/cjs/sd-td.cjs.entry.js +2 -2
  45. package/dist/cjs/sd-text-link.cjs.entry.js +1 -1
  46. package/dist/cjs/sd-toast-container.cjs.entry.js +2 -2
  47. package/dist/cjs/sd-toast.cjs.entry.js +3 -3
  48. package/dist/cjs/sd-toggle.cjs.entry.js +2 -2
  49. package/dist/cjs/{tooltipArrow-FLiD3ceS.js → tooltipArrow-Dda4ik0V.js} +1 -1
  50. package/dist/collection/components/sd-circle-progress/sd-circle-progress.css +12 -0
  51. package/dist/collection/components/sd-circle-progress/sd-circle-progress.js +23 -1
  52. package/dist/collection/components/sd-file-picker/sd-file-picker.config.js +9 -0
  53. package/dist/collection/components/sd-file-picker/sd-file-picker.css +18 -0
  54. package/dist/collection/components/sd-file-picker/sd-file-picker.js +73 -7
  55. package/dist/collection/components/sd-floating-portal/sd-floating-portal.css +1 -1
  56. package/dist/collection/components/sd-floating-portal/sd-floating-portal.js +1 -1
  57. package/dist/collection/components/sd-guide/sd-guide.config.js +0 -1
  58. package/dist/collection/components/sd-guide/sd-guide.css +0 -3
  59. package/dist/collection/components/sd-guide/sd-guide.js +2 -3
  60. package/dist/collection/components/sd-input/sd-input.js +2 -2
  61. package/dist/collection/components/sd-linear-progress/sd-linear-progress.js +1 -1
  62. package/dist/collection/components/sd-loading-container/sd-loading-container.js +2 -2
  63. package/dist/collection/components/sd-loading-modal/sd-loading-modal.css +7 -0
  64. package/dist/collection/components/sd-loading-modal/sd-loading-modal.js +18 -1
  65. package/dist/collection/components/sd-number-input/sd-number-input.js +4 -4
  66. package/dist/collection/components/sd-pagination/sd-pagination.js +3 -3
  67. package/dist/collection/components/sd-popup/sd-popup.js +1 -1
  68. package/dist/collection/components/sd-radio-group/sd-radio-group.css +2 -2
  69. package/dist/collection/components/sd-select/sd-select-list-item/sd-select-list-item.js +2 -2
  70. package/dist/collection/components/sd-select/sd-select-list-item-search/sd-select-list-item-search.js +4 -4
  71. package/dist/collection/components/sd-select/sd-select-listbox/sd-select-listbox.js +2 -2
  72. package/dist/collection/components/sd-select/sd-select-trigger/sd-select-trigger.js +2 -2
  73. package/dist/collection/components/sd-select/sd-select.js +4 -4
  74. package/dist/collection/components/sd-switch/sd-switch.js +1 -1
  75. package/dist/collection/components/sd-table/sd-table.config.js +4 -3
  76. package/dist/collection/components/sd-table/sd-table.js +6 -6
  77. package/dist/collection/components/sd-table/sd-tbody/sd-tbody.js +2 -2
  78. package/dist/collection/components/sd-table/sd-td/sd-td.js +1 -1
  79. package/dist/collection/components/sd-table/sd-thead/sd-thead.js +3 -3
  80. package/dist/collection/components/sd-table/sd-tr/sd-tr.js +3 -1
  81. package/dist/collection/components/sd-tabs/sd-tabs.js +1 -1
  82. package/dist/collection/components/sd-textarea/sd-textarea.js +1 -1
  83. package/dist/collection/components/sd-toast/sd-toast.js +2 -2
  84. package/dist/collection/components/sd-toast-container/sd-toast-container.js +1 -1
  85. package/dist/collection/components/sd-toggle/sd-toggle.js +1 -1
  86. package/dist/collection/components/sd-tooltip/sd-tooltip.js +2 -2
  87. package/dist/components/index.js +1 -1
  88. package/dist/components/{p-BaRjXqSM.js → p-1i6Q61TF.js} +1 -1
  89. package/dist/components/p-4S0_Ykmo.js +1 -0
  90. package/dist/components/p-5pkzwl5N.js +1 -0
  91. package/dist/components/{p-BxphFsxh.js → p-B-pJW3nY.js} +1 -1
  92. package/dist/components/{p-CIPPETF-.js → p-B2pYDEK7.js} +1 -1
  93. package/dist/components/{p-DTb2c83G.js → p-B3HYnTGx.js} +1 -1
  94. package/dist/components/{p-BHNytAtJ.js → p-B6ezDhRg.js} +1 -1
  95. package/dist/components/{p-DsQQFJ8o.js → p-BAVsc1Ml.js} +1 -1
  96. package/dist/components/{p-PvltLPHp.js → p-BCxePXvg.js} +1 -1
  97. package/dist/components/{p-BV4cnHWn.js → p-BE6ymp9E.js} +1 -1
  98. package/dist/components/{p-BU1H7ElF.js → p-BKV1WAFb.js} +1 -1
  99. package/dist/components/{p-Bk6aI8rL.js → p-BNHhtZUf.js} +1 -1
  100. package/dist/components/{p-DVq9oE_p.js → p-BQ4Okfcm.js} +1 -1
  101. package/dist/components/{p-CmK45nj3.js → p-BSxleKw8.js} +1 -1
  102. package/dist/components/{p-CJcs7kNH.js → p-BUgGuigd.js} +1 -1
  103. package/dist/components/{p-BOJALVxB.js → p-BWHQn4fD.js} +1 -1
  104. package/dist/components/{p-BQqXWtI6.js → p-BZXgIBUG.js} +1 -1
  105. package/dist/components/p-Bgxca9o5.js +1 -0
  106. package/dist/components/{p-DT-e9J59.js → p-BnI9HUOv.js} +1 -1
  107. package/dist/components/{p-Du_Yc-lW.js → p-BuADVB78.js} +1 -1
  108. package/dist/components/{p-BFy8txYj.js → p-Bxb7TcZh.js} +1 -1
  109. package/dist/components/p-C0tnN4yn.js +1 -0
  110. package/dist/components/{p-DnxEeX9I.js → p-CHHlQceE.js} +1 -1
  111. package/dist/components/{p--AZbwi7P.js → p-CMvHDxR5.js} +1 -1
  112. package/dist/components/{p-DkaajrxX.js → p-CSh-DcM7.js} +1 -1
  113. package/dist/components/{p-DMrzTImA.js → p-CTDPl65u.js} +1 -1
  114. package/dist/components/p-Cf62Nvrx.js +1 -0
  115. package/dist/components/{p-SROa9QCy.js → p-ClD0nx1l.js} +1 -1
  116. package/dist/components/{p-Cok_EW_N.js → p-DNbbdJIc.js} +1 -1
  117. package/dist/components/p-DbPS61bp.js +1 -0
  118. package/dist/components/p-DckXBMgo.js +1 -0
  119. package/dist/components/p-DlJaYVWf.js +1 -0
  120. package/dist/components/p-DmAnTwUx.js +1 -0
  121. package/dist/components/{p-hP1aeMuZ.js → p-E8OA_psS.js} +1 -1
  122. package/dist/components/{p-D7XGOtx0.js → p-IDlLs_KA.js} +1 -1
  123. package/dist/components/p-PFLrdhQj.js +1 -0
  124. package/dist/components/{p-CvSPsoRb.js → p-l9RiSWRc.js} +1 -1
  125. package/dist/components/{p-CwwJD-NF.js → p-paSLRXAR.js} +1 -1
  126. package/dist/components/{p-Dy6LmOzw.js → p-pwGA4sDj.js} +1 -1
  127. package/dist/components/{p-DYp8I4VH.js → p-vtuEYpc6.js} +1 -1
  128. package/dist/components/p-x9AWBHPy.js +1 -0
  129. package/dist/components/{p-DeXLIS7e.js → p-yxZBh03f.js} +1 -1
  130. package/dist/components/sd-action-modal.js +1 -1
  131. package/dist/components/sd-badge.js +1 -1
  132. package/dist/components/sd-barcode-input.js +1 -1
  133. package/dist/components/sd-button.js +1 -1
  134. package/dist/components/sd-calendar.js +1 -1
  135. package/dist/components/sd-callout.js +1 -1
  136. package/dist/components/sd-card.js +1 -1
  137. package/dist/components/sd-checkbox.js +1 -1
  138. package/dist/components/sd-chip-input.js +1 -1
  139. package/dist/components/sd-chip.js +1 -1
  140. package/dist/components/sd-circle-progress.js +1 -1
  141. package/dist/components/sd-confirm-modal.js +1 -1
  142. package/dist/components/sd-date-box.js +1 -1
  143. package/dist/components/sd-date-picker-trigger.js +1 -1
  144. package/dist/components/sd-date-picker.js +1 -1
  145. package/dist/components/sd-date-range-picker-calendar.js +1 -1
  146. package/dist/components/sd-date-range-picker.js +1 -1
  147. package/dist/components/sd-divider.js +1 -1
  148. package/dist/components/sd-dropdown-button.js +1 -1
  149. package/dist/components/sd-field.js +1 -1
  150. package/dist/components/sd-file-picker.js +1 -1
  151. package/dist/components/sd-floating-portal.js +1 -1
  152. package/dist/components/sd-form.js +1 -1
  153. package/dist/components/sd-ghost-button.js +1 -1
  154. package/dist/components/sd-guide.js +1 -1
  155. package/dist/components/sd-icon.js +1 -1
  156. package/dist/components/sd-input.js +1 -1
  157. package/dist/components/sd-key-value-table.js +1 -1
  158. package/dist/components/sd-linear-progress.js +1 -1
  159. package/dist/components/sd-loading-container.js +1 -1
  160. package/dist/components/sd-loading-modal.js +1 -1
  161. package/dist/components/sd-modal-container.js +1 -1
  162. package/dist/components/sd-number-input.js +1 -1
  163. package/dist/components/sd-pagination.js +1 -1
  164. package/dist/components/sd-popover.js +1 -1
  165. package/dist/components/sd-popup.js +1 -1
  166. package/dist/components/sd-portal.js +1 -1
  167. package/dist/components/sd-radio-button.js +1 -1
  168. package/dist/components/sd-radio-group.js +1 -1
  169. package/dist/components/sd-radio.js +1 -1
  170. package/dist/components/sd-select-list-item-search.js +1 -1
  171. package/dist/components/sd-select-list-item.js +1 -1
  172. package/dist/components/sd-select-listbox.js +1 -1
  173. package/dist/components/sd-select-trigger.js +1 -1
  174. package/dist/components/sd-select.js +1 -1
  175. package/dist/components/sd-switch.js +1 -1
  176. package/dist/components/sd-table.js +1 -1
  177. package/dist/components/sd-tabs.js +1 -1
  178. package/dist/components/sd-tag.js +1 -1
  179. package/dist/components/sd-tbody.js +1 -1
  180. package/dist/components/sd-td.js +1 -1
  181. package/dist/components/sd-text-link.js +1 -1
  182. package/dist/components/sd-textarea.js +1 -1
  183. package/dist/components/sd-thead.js +1 -1
  184. package/dist/components/sd-toast-container.js +1 -1
  185. package/dist/components/sd-toast.js +1 -1
  186. package/dist/components/sd-toggle.js +1 -1
  187. package/dist/components/sd-tooltip.js +1 -1
  188. package/dist/components/sd-tr.js +1 -1
  189. package/dist/design-system/design-system.css +1 -1
  190. package/dist/design-system/design-system.esm.js +1 -1
  191. package/dist/design-system/p-0048de73.entry.js +1 -0
  192. package/dist/design-system/{p-9603971e.entry.js → p-071e73e0.entry.js} +1 -1
  193. package/dist/design-system/{p-7540f591.entry.js → p-0b8c86c3.entry.js} +1 -1
  194. package/dist/design-system/{p-07755193.entry.js → p-1230b51b.entry.js} +1 -1
  195. package/dist/design-system/p-20f69606.entry.js +1 -0
  196. package/dist/design-system/{p-947dcc28.entry.js → p-2553bb1f.entry.js} +1 -1
  197. package/dist/design-system/{p-b86a69ce.entry.js → p-26f2f4c2.entry.js} +1 -1
  198. package/dist/design-system/{p-edfb5c83.entry.js → p-27197194.entry.js} +1 -1
  199. package/dist/design-system/{p-8ac340db.entry.js → p-287d8016.entry.js} +1 -1
  200. package/dist/design-system/p-3b3a46cd.entry.js +1 -0
  201. package/dist/design-system/{p-a4e1dd8c.entry.js → p-4970f1ff.entry.js} +1 -1
  202. package/dist/design-system/p-4S0_Ykmo.js +1 -0
  203. package/dist/design-system/{p-5aa5aec3.entry.js → p-5687ed0c.entry.js} +1 -1
  204. package/dist/design-system/{p-06b56059.entry.js → p-58ec51db.entry.js} +1 -1
  205. package/dist/design-system/{p-d790fbb8.entry.js → p-5c8f4d9c.entry.js} +1 -1
  206. package/dist/design-system/p-5pkzwl5N.js +1 -0
  207. package/dist/design-system/{p-dfa16f49.entry.js → p-61f5d5ea.entry.js} +1 -1
  208. package/dist/design-system/{p-55c8ce37.entry.js → p-67f19734.entry.js} +1 -1
  209. package/dist/design-system/{p-5142cd06.entry.js → p-70608fec.entry.js} +1 -1
  210. package/dist/design-system/{p-26297c6e.entry.js → p-750a9112.entry.js} +1 -1
  211. package/dist/design-system/{p-cb0cbcb0.entry.js → p-75726e20.entry.js} +1 -1
  212. package/dist/design-system/{p-9825e76c.entry.js → p-7abf62f3.entry.js} +1 -1
  213. package/dist/design-system/{p-5f5f2fbe.entry.js → p-7ae27a26.entry.js} +1 -1
  214. package/dist/design-system/p-84d0181b.entry.js +1 -0
  215. package/dist/design-system/{p-49b1636a.entry.js → p-91f7be74.entry.js} +1 -1
  216. package/dist/design-system/p-94d6b7b4.entry.js +1 -0
  217. package/dist/design-system/{p-80abdfe7.entry.js → p-9b21773a.entry.js} +1 -1
  218. package/dist/design-system/{p-dae6914d.entry.js → p-9c0bca09.entry.js} +1 -1
  219. package/dist/design-system/{p-B-LOf2aM.js → p-CRWmn35N.js} +1 -1
  220. package/dist/design-system/p-Cf62Nvrx.js +1 -0
  221. package/dist/design-system/p-CuAh9n2o.js +1 -0
  222. package/dist/design-system/p-DDNBPrZh.js +2 -0
  223. package/dist/design-system/p-DlJaYVWf.js +1 -0
  224. package/dist/design-system/{p-6aec5853.entry.js → p-a12d7362.entry.js} +1 -1
  225. package/dist/design-system/{p-459a408f.entry.js → p-a938ffee.entry.js} +1 -1
  226. package/dist/design-system/{p-270c8529.entry.js → p-b831eded.entry.js} +1 -1
  227. package/dist/design-system/{p-e63bf0e1.entry.js → p-bab692c6.entry.js} +1 -1
  228. package/dist/design-system/{p-8c1a9374.entry.js → p-bbd24816.entry.js} +1 -1
  229. package/dist/design-system/{p-b9387621.entry.js → p-c5502585.entry.js} +1 -1
  230. package/dist/design-system/p-c81898a0.entry.js +1 -0
  231. package/dist/design-system/{p-9c0d3011.entry.js → p-d4e2f412.entry.js} +1 -1
  232. package/dist/design-system/{p-839e6b5a.entry.js → p-d6b3d78b.entry.js} +1 -1
  233. package/dist/design-system/{p-761c008c.entry.js → p-d7e302af.entry.js} +1 -1
  234. package/dist/design-system/{p-ff9ccbf6.entry.js → p-dbfa3931.entry.js} +1 -1
  235. package/dist/design-system/{p-fd671afe.entry.js → p-f16985c9.entry.js} +1 -1
  236. package/dist/design-system/{p-5f1dae23.entry.js → p-fa967329.entry.js} +1 -1
  237. package/dist/design-system/{p-ddb9a2c4.entry.js → p-fbeed0e4.entry.js} +1 -1
  238. package/dist/esm/component.listBox-DlJaYVWf.js +13 -0
  239. package/dist/esm/{component.listItem-U8VaRj9c.js → component.listItem-4S0_Ykmo.js} +1 -7
  240. package/dist/esm/{component.table-D9tQwTWy.js → component.table-5pkzwl5N.js} +5 -4
  241. package/dist/esm/design-system.js +3 -3
  242. package/dist/esm/{index-BZg-6aSz.js → index-DDNBPrZh.js} +1 -1
  243. package/dist/esm/loader.js +3 -3
  244. package/dist/esm/sd-action-modal.entry.js +1 -1
  245. package/dist/esm/sd-badge.entry.js +1 -1
  246. package/dist/esm/sd-barcode-input.entry.js +1 -1
  247. package/dist/esm/sd-button_2.entry.js +1 -1
  248. package/dist/esm/sd-calendar_2.entry.js +1 -1
  249. package/dist/esm/sd-callout.entry.js +1 -1
  250. package/dist/esm/sd-card.entry.js +1 -1
  251. package/dist/esm/sd-checkbox.entry.js +2 -3
  252. package/dist/esm/sd-chip-input.entry.js +3 -2
  253. package/dist/esm/sd-chip.entry.js +1 -1
  254. package/dist/esm/sd-circle-progress.entry.js +5 -3
  255. package/dist/esm/sd-confirm-modal_2.entry.js +6 -3
  256. package/dist/esm/sd-date-box.entry.js +1 -1
  257. package/dist/esm/sd-date-picker_7.entry.js +68 -15
  258. package/dist/esm/sd-date-range-picker-calendar.entry.js +1 -1
  259. package/dist/esm/sd-divider.entry.js +1 -1
  260. package/dist/esm/sd-dropdown-button.entry.js +1 -1
  261. package/dist/esm/sd-field_3.entry.js +6 -6
  262. package/dist/esm/sd-form.entry.js +1 -1
  263. package/dist/esm/sd-ghost-button_3.entry.js +2 -3
  264. package/dist/esm/sd-guide.entry.js +4 -9
  265. package/dist/esm/sd-key-value-table.entry.js +2 -2
  266. package/dist/esm/sd-linear-progress.entry.js +2 -2
  267. package/dist/esm/sd-loading-container.entry.js +3 -3
  268. package/dist/esm/sd-modal-container.entry.js +1 -1
  269. package/dist/esm/sd-pagination_4.entry.js +14 -12
  270. package/dist/esm/sd-popover.entry.js +2 -2
  271. package/dist/esm/sd-popup.entry.js +2 -2
  272. package/dist/esm/sd-radio-button.entry.js +1 -1
  273. package/dist/esm/sd-radio.entry.js +2 -3
  274. package/dist/esm/sd-select-list-item_2.entry.js +10 -9
  275. package/dist/esm/{sd-select.config-D6ktrl7E.js → sd-select.config-CeHGlqOT.js} +2 -1
  276. package/dist/esm/sd-select_3.entry.js +12 -11
  277. package/dist/esm/sd-switch.entry.js +2 -2
  278. package/dist/esm/{sd-table.config-BbIWNUE2.js → sd-table.config-DmOBlnsM.js} +5 -4
  279. package/dist/esm/sd-table.entry.js +9 -9
  280. package/dist/esm/sd-tabs.entry.js +2 -2
  281. package/dist/esm/sd-td.entry.js +2 -2
  282. package/dist/esm/sd-text-link.entry.js +1 -1
  283. package/dist/esm/sd-toast-container.entry.js +2 -2
  284. package/dist/esm/sd-toast.entry.js +3 -3
  285. package/dist/esm/sd-toggle.entry.js +2 -2
  286. package/dist/esm/{tooltipArrow-BAi-pktU.js → tooltipArrow-blL0aWPE.js} +1 -1
  287. package/dist/types/components/sd-circle-progress/sd-circle-progress.d.ts +2 -0
  288. package/dist/types/components/sd-file-picker/sd-file-picker.config.d.ts +6 -0
  289. package/dist/types/components/sd-file-picker/sd-file-picker.d.ts +10 -0
  290. package/dist/types/components/sd-guide/sd-guide.config.d.ts +0 -1
  291. package/dist/types/components/sd-loading-modal/sd-loading-modal.d.ts +2 -0
  292. package/dist/types/components/sd-table/sd-table.config.d.ts +1 -0
  293. package/dist/types/components.d.ts +27 -0
  294. package/hydrate/index.js +151 -88
  295. package/hydrate/index.mjs +151 -88
  296. package/package.json +1 -1
  297. package/dist/components/p-BXcizROm.js +0 -1
  298. package/dist/components/p-BZdgdRXJ.js +0 -1
  299. package/dist/components/p-CV5LiFKt.js +0 -1
  300. package/dist/components/p-CiTn4ZiI.js +0 -1
  301. package/dist/components/p-D9tQwTWy.js +0 -1
  302. package/dist/components/p-DmC83_E9.js +0 -1
  303. package/dist/components/p-DvvGi4J_.js +0 -1
  304. package/dist/components/p-NeXvaRu7.js +0 -1
  305. package/dist/components/p-U8VaRj9c.js +0 -1
  306. package/dist/components/p-jwusYvH0.js +0 -1
  307. package/dist/design-system/p-147e0413.entry.js +0 -1
  308. package/dist/design-system/p-51c7839c.entry.js +0 -1
  309. package/dist/design-system/p-65285327.entry.js +0 -1
  310. package/dist/design-system/p-BXcizROm.js +0 -1
  311. package/dist/design-system/p-BZg-6aSz.js +0 -2
  312. package/dist/design-system/p-CAFz8W8_.js +0 -1
  313. package/dist/design-system/p-D9tQwTWy.js +0 -1
  314. package/dist/design-system/p-U8VaRj9c.js +0 -1
  315. package/dist/design-system/p-b84f5550.entry.js +0 -1
  316. package/dist/design-system/p-efc55114.entry.js +0 -1
  317. package/dist/design-system/p-fe2b853f.entry.js +0 -1
@@ -1 +0,0 @@
1
- import{r as t,c as e,a as s,h as i}from"./p-BZg-6aSz.js";import{n as r}from"./p-CCwNgVmC.js";import{c as h,S as o,f as l,i as n,e as c,E as a,L as d,a as u,b as g,d as p}from"./p-CAFz8W8_.js";import{s as f}from"./p-BE4tnQ2Z.js";import"./p-U8VaRj9c.js";const b=class{constructor(s){t(this,s),this.update=e(this,"sdUpdate",7),this.dropDownShow=e(this,"sdDropDownShow",7)}static VIEWPORT_PADDING=20;static PORTAL_OFFSET_Y=4;static CLOSE_ANIMATION_DURATION=150;get el(){return s(this)}type="default";value=null;options=[];placeholder="선택";dropdownWidth="";maxDropdownWidth="640px";dropdownHeight="260px";disabled=!1;label="";labelWidth="";addonLabel="";addonAlign="start";error=!1;hint="";errorMessage="";rules=[];icon=void 0;labelTooltip="";labelTooltipProps=null;emitValue=!1;width="";useSearch=!1;allSelectedLabel="전체";useSelectAll=!1;isOpen=!1;isAnimatingOut=!1;triggerWidth="200px";resolvedDropdownHeight="260px";resolvedMaxDropdownWidth="640px";focused=!1;hovered=!1;update;dropDownShow;async sdFocus(){this.disabled||await(this.triggerComponentRef?.sdFocus())}async sdOpen(){await new Promise((t=>setTimeout(t,0))),this.disabled||this.isOpen||(this.prepareDropdownGeometry(),this.closeAnimationTimer&&clearTimeout(this.closeAnimationTimer),this.isAnimatingOut=!1,this.isOpen=!0)}triggerRef;triggerComponentRef;closeAnimationTimer;name=r();triggerHasFocus=!1;watchIsOpen(t){this.syncFocusedState(t),this.dropDownShow.emit({isOpen:t})}get isMulti(){return"multi"===this.type||"multi_depth"===this.type}get displayText(){if(this.isMulti){if(!Array.isArray(this.value)||0===this.value.length)return"";const t=this.getNonDisabledLeaves(this.options),e=this.getSelectedOptions();if(t.length>0&&t.every((t=>e.some((e=>e.value===t.value)))))return this.allSelectedLabel??"전체";const s=this.flattenOptions(this.options);return this.value.map((t=>{if(null!=t&&"object"==typeof t){const e=t;return e.label??s.find((t=>t.value===e.value))?.label??""}return s.find((e=>e.value===t))?.label??""})).filter(Boolean).join(", ")}if(null==this.value)return"";if(!this.emitValue&&"object"==typeof this.value&&!Array.isArray(this.value))return this.value.label??"";const t=this.flattenOptions(this.options);return t.find((t=>t.value===this.value))?.label??""}flattenOptions(t){return t.flatMap((t=>t.children?this.flattenOptions(t.children):[t]))}getNonDisabledLeaves(t){return t.flatMap((t=>t.disabled?[]:t.children?this.getNonDisabledLeaves(t.children):[t]))}getSelectedOptions(){const t=this.value;return null!=t&&Array.isArray(t)?this.emitValue?t.map((t=>this.findOriginalOption(t,this.options))).filter((t=>!!t)):t:[]}toMultiValue(t){return this.emitValue?t.map((t=>t.value)):t}parsePixelValue(t,e){const s=Number.parseFloat(t);return Number.isFinite(s)?s:e}updateDropdownViewportConstraints(){if(!this.triggerRef)return;const t=this.triggerRef.getBoundingClientRect(),e=b.VIEWPORT_PADDING,s=b.PORTAL_OFFSET_Y,i=this.parsePixelValue(this.dropdownHeight,260),r=this.parsePixelValue(this.maxDropdownWidth,640),h=Math.max(window.innerHeight-t.bottom-e-s,0),o=Math.max(t.top-e-s,0),l=Math.max(h,o),n=Math.max(window.innerWidth-2*e,0);this.resolvedDropdownHeight=`${Math.min(i,l)}px`,this.resolvedMaxDropdownWidth=`${Math.min(r,n)}px`}handleViewportResize=()=>{this.isOpen&&this.updateDropdownViewportConstraints()};findOriginalOption(t,e){for(const s of e){if(s.value===t)return s;if(s.children){const e=this.findOriginalOption(t,s.children);if(e)return e}}}closeDropdown(){this.isOpen&&(this.isOpen=!1,this.isAnimatingOut=!0,this.closeAnimationTimer&&clearTimeout(this.closeAnimationTimer),this.closeAnimationTimer=setTimeout((()=>{this.isAnimatingOut=!1}),b.CLOSE_ANIMATION_DURATION))}prepareDropdownGeometry(){this.triggerRef&&(this.triggerWidth=`${this.triggerRef.offsetWidth}px`),this.updateDropdownViewportConstraints()}syncFocusedState(t=this.isOpen){this.focused=t||this.triggerHasFocus}handleTriggerFocus=()=>{this.triggerHasFocus=!0,this.syncFocusedState()};handleTriggerBlur=()=>{this.triggerHasFocus=!1,this.syncFocusedState()};handleTriggerClick=()=>{this.isOpen?this.closeDropdown():(this.prepareDropdownGeometry(),this.closeAnimationTimer&&clearTimeout(this.closeAnimationTimer),this.isAnimatingOut=!1,this.isOpen=!0)};emitUpdate(t){this.update.emit(t)}handleOptionSelect=t=>{const{option:e,leaves:s}=t;if(this.isMulti)this.handleMultiSelect(e,s);else{this.closeDropdown(),this.value=this.emitValue?e.value:e;const t=this.value;requestAnimationFrame((()=>{this.emitUpdate(t)}))}};handleMultiSelect(t,e){const s=this.getSelectedOptions();let i;if(t.children)if(e.every((t=>s.some((e=>e.value===t.value))))){const t=new Set(e.map((t=>t.value)));i=s.filter((e=>!t.has(e.value)))}else{const t=new Set(s.map((t=>t.value))),r=e.filter((e=>!t.has(e.value)));i=[...s,...r]}else i=s.some((e=>e.value===t.value))?s.filter((e=>e.value!==t.value)):[...s,t];this.value=this.toMultiValue(i),this.emitUpdate(this.value)}connectedCallback(){window.addEventListener("resize",this.handleViewportResize)}disconnectedCallback(){window.removeEventListener("resize",this.handleViewportResize),this.closeAnimationTimer&&clearTimeout(this.closeAnimationTimer)}render(){const t={open:this.isOpen,parentRef:this.triggerRef,viewportPadding:b.VIEWPORT_PADDING,onSdClose:()=>{this.closeDropdown()}};return i("sd-field",{key:"426e5777a976da591726108e8a19c27822151c34",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:()=>{this.hovered=!0},onMouseLeave:()=>{this.hovered=!1}},i("div",{key:"2e47d100a63bd6445f452701409cf05efabb30e0",class:"sd-select",ref:t=>{this.triggerRef=t}},i("sd-select-trigger",{key:"65763371f56bae558f927189931b567e5ca73df6",ref:t=>{this.triggerComponentRef=t},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)&&i("sd-portal",{key:"98518c875649c8e38c15565d9bfccf9c0b0eeb9a",...t},i("sd-select-listbox",{key:"be8e2c814bd30a57ee20b0a0b378f3809ffef26a",type:this.type,options:this.options,value:this.value,emitValue:this.emitValue,useSearch:this.useSearch,useSelectAll:this.useSelectAll,triggerWidth:this.dropdownWidth||this.triggerWidth,maxWidth:this.resolvedMaxDropdownWidth,maxHeight:this.resolvedDropdownHeight,onSdOptionSelect:t=>this.handleOptionSelect(t.detail)})))}static get watchers(){return{isOpen:[{watchIsOpen:0}]}}};b.style="sd-select{display:inline-flex}sd-select sd-portal{display:none}sd-select .sd-select{position:relative;width:100%;height:100%}";const x=class{constructor(s){t(this,s),this.optionSelect=e(this,"sdOptionSelect",7)}type="default";options=[];value=null;emitValue=!1;useSearch=!1;useSelectAll=!1;triggerWidth="200px";maxWidth="640px";maxHeight="260px";searchKeyword="";isScrolled=!1;focusedIndex=-1;optionSelect;listEl;lastScrolledIndex=-1;keydownAttached=!1;suppressHover=!1;get isDepth(){return"default_depth"===this.type||"multi_depth"===this.type}get isMulti(){return"multi"===this.type||"multi_depth"===this.type}static SELECT_ALL_OPTION={value:"__select_all__",label:"전체"};get showSelectAll(){return this.useSelectAll&&this.isMulti&&this.getAllNonDisabledLeaves().length>0}getAllNonDisabledLeaves(){const t=e=>e.flatMap((e=>e.disabled?[]:e.children?t(e.children):[e]));return t(this.options)}get selectAllState(){if(!this.showSelectAll)return!1;const t=this.getAllNonDisabledLeaves();if(0===t.length)return!1;const e=this.getSelectedValues(),s=t.filter((t=>e.has(t.value))).length;return 0!==s&&(s===t.length||null)}get showSearch(){return!!this.useSearch&&(this.isDepth?h(this.options):this.options.length)>=o}get filteredOptions(){if(null==this.searchKeyword||""===this.searchKeyword)return this.options;if(this.isDepth)return l(this.options,this.searchKeyword);const t=this.searchKeyword.toLowerCase();return this.options.filter((e=>{const s=n(e.label)?c(e.label):e.label;return null!=s&&s.toLowerCase().includes(t)}))}get isEmpty(){return this.isDepth?0===h(this.filteredOptions)&&0===this.filteredOptions.length:0===this.filteredOptions.length}getSelectedValues(){return null!=this.value&&Array.isArray(this.value)?this.emitValue?new Set(this.value):new Set(this.value.map((t=>t.value))):new Set}isOptionSelected(t){return this.isMulti?this.getSelectedValues().has(t.value):this.emitValue||null==this.value||"object"!=typeof this.value||Array.isArray(this.value)?this.value===t.value:this.value.value===t.value}getGroupSelectionState(t){if(!this.isMulti||!t.children)return!1;const e=this.getSelectedValues();if(0===e.size)return!1;const s=this.collectVisibleLeaves(t);if(0===s.length)return!1;const i=s.filter((t=>e.has(t.value))).length;return 0!==i&&(i===s.length||null)}getCountInfo(t){if(!this.isMulti||!t.children)return;const e=this.getSelectedValues(),s=this.collectVisibleLeaves(t);return{selected:s.filter((t=>e.has(t.value))).length,total:s.length}}findOriginalOption(t,e){for(const s of e){if(s.value===t)return s;if(s.children){const e=this.findOriginalOption(t,s.children);if(e)return e}}}collectLeaves(t){return t.children?t.children.flatMap((t=>this.collectLeaves(t))):[t]}collectVisibleLeaves(t){if(t.disabled)return[];if(!t.children)return[t];if(0===t.children.length){const e=this.findOriginalOption(t.value,this.options);return e?this.collectLeaves(e).filter((t=>!t.disabled)):[]}return t.children.flatMap((t=>this.collectVisibleLeaves(t)))}get navigableOptions(){const t=[];this.showSelectAll&&t.push(x.SELECT_ALL_OPTION);const e=s=>{for(const i of s){const s=!!i.children;(!s||this.isMulti)&&!i.disabled&&t.push(i),s&&i.children&&i.children.length>0&&e(i.children)}};return e(this.filteredOptions),t}isSelectAllOption(t){return this.showSelectAll&&t.value===x.SELECT_ALL_OPTION.value}emitSelectAll(){if(!this.showSelectAll)return;const t=this.getAllNonDisabledLeaves();this.optionSelect.emit({option:{...x.SELECT_ALL_OPTION,children:t},leaves:t})}handleSelectAllClick=t=>{t.stopPropagation(),this.emitSelectAll()};isOptionFocused(t){if(this.focusedIndex<0)return!1;const e=this.navigableOptions[this.focusedIndex];return null!=e&&e.value===t.value}resetFocusOnFilter(){this.focusedIndex=this.navigableOptions.length>0?0:-1,this.suppressHover&&(document.removeEventListener("mousemove",this.releaseHoverSuppress,!0),this.suppressHover=!1)}handleSearchFilter=t=>{this.searchKeyword=t.detail};handleScroll=t=>{this.isScrolled=t.target.scrollTop>0};emitOptionSelect(t){this.optionSelect.emit({option:t,leaves:this.collectVisibleLeaves(t)})}handleOptionClick=t=>{t.stopPropagation(),this.emitOptionSelect(t.detail)};handleOptionHover=t=>{if(this.suppressHover)return;const e=this.navigableOptions.findIndex((e=>e.value===t.value));e>=0&&(this.focusedIndex=e)};releaseHoverSuppress=()=>{this.suppressHover=!1,document.removeEventListener("mousemove",this.releaseHoverSuppress,!0)};handleKeyDown=t=>{const e=this.navigableOptions;if("ArrowDown"===t.key){if(0===e.length)return;t.preventDefault(),t.stopPropagation(),this.focusedIndex=this.focusedIndex<0?0:(this.focusedIndex+1)%e.length,this.beginHoverSuppression()}else if("ArrowUp"===t.key){if(0===e.length)return;t.preventDefault(),t.stopPropagation(),this.focusedIndex=this.focusedIndex<=0?e.length-1:this.focusedIndex-1,this.beginHoverSuppression()}else if("Enter"===t.key){if(this.focusedIndex<0||this.focusedIndex>=e.length)return;t.preventDefault(),t.stopPropagation();const s=e[this.focusedIndex];this.isSelectAllOption(s)?this.emitSelectAll():this.emitOptionSelect(s)}};beginHoverSuppression(){this.suppressHover||(this.suppressHover=!0,document.addEventListener("mousemove",this.releaseHoverSuppress,!0))}scrollFocusedIntoView(){const t=this.listEl,e=t?.querySelector(".sd-select-list-item--focused");if(!t||!e)return;const s=t.getBoundingClientRect(),i=e.getBoundingClientRect();i.top<s.top?t.scrollTop+=i.top-s.top:i.bottom>s.bottom&&(t.scrollTop+=i.bottom-s.bottom)}connectedCallback(){this.keydownAttached||(document.addEventListener("keydown",this.handleKeyDown,!0),this.keydownAttached=!0)}disconnectedCallback(){this.keydownAttached&&(document.removeEventListener("keydown",this.handleKeyDown,!0),this.keydownAttached=!1),this.suppressHover&&(document.removeEventListener("mousemove",this.releaseHoverSuppress,!0),this.suppressHover=!1)}componentDidRender(){this.focusedIndex!==this.lastScrolledIndex&&(this.lastScrolledIndex=this.focusedIndex,this.focusedIndex>=0&&this.scrollFocusedIntoView())}renderOptions(t,e=1){return t.map((t=>{const s=!!t.children;return[i("sd-select-list-item",{option:t,depth:e,isSelected:s?this.getGroupSelectionState(t):this.isOptionSelected(t),isFocused:this.isOptionFocused(t),useCheckbox:this.isMulti,countInfo:this.getCountInfo(t),onSdListItemClick:this.handleOptionClick,onMouseEnter:()=>this.handleOptionHover(t)}),s&&t.children?this.renderOptions(t.children,e+1):null]}))}render(){return i("div",{key:"0e322ab6384a37b9ea83883e8012799f157ec833",class:"sd-select-listbox",style:{"--listbox-trigger-width":this.triggerWidth??"200px","--listbox-max-width":this.maxWidth??"640px","--listbox-max-height":this.maxHeight??"260px","--listbox-radius":`${d.radius}px`}},this.showSearch&&i("sd-select-list-item-search",{key:"12d35a6ab654d4ce0cf504c0d1b1b6e4cc7eac78",isScrolled:this.isScrolled,onSdSearchFilter:this.handleSearchFilter}),i("div",{key:"ba99682e9c486fe0efa02a888166a06a600c189e",class:"sd-select-listbox__list",onScroll:this.handleScroll,ref:t=>{this.listEl=t}},this.showSelectAll&&i("sd-select-list-item",{key:"8f66c32cc3f8287d04ad7081e71903ccb4467b4f",option:x.SELECT_ALL_OPTION,depth:1,isSelected:this.selectAllState,isFocused:this.isOptionFocused(x.SELECT_ALL_OPTION),useCheckbox:!0,onSdListItemClick:this.handleSelectAllClick,onMouseEnter:()=>this.handleOptionHover(x.SELECT_ALL_OPTION)}),this.isEmpty?i("div",{class:"sd-select-listbox__empty"},a):this.isDepth?this.renderOptions(this.filteredOptions):this.filteredOptions.map((t=>i("sd-select-list-item",{option:t,depth:1,isSelected:this.isOptionSelected(t),isFocused:this.isOptionFocused(t),useCheckbox:this.isMulti,onSdListItemClick:this.handleOptionClick,onMouseEnter:()=>this.handleOptionHover(t)})))))}static get watchers(){return{searchKeyword:[{resetFocusOnFilter:0}]}}};x.style=":host{display:block}:host .sd-select-listbox{display:flex;flex-direction:column;width:var(--listbox-trigger-width);max-width:var(--listbox-max-width);max-height:var(--listbox-max-height);border-radius:var(--listbox-radius);background:white;box-shadow:2px 2px 12px 2px rgba(0, 0, 0, 0.1);overflow:hidden;outline:none}:host .sd-select-listbox__list{flex:1;min-height:0;overflow-y:auto;padding-bottom:0}:host .sd-select-listbox__list::-webkit-scrollbar{opacity:0;width:8px;background:#E5E5E5}:host .sd-select-listbox__list::-webkit-scrollbar:horizontal{height:8px}:host .sd-select-listbox__list::-webkit-scrollbar-thumb{height:80px;background-color:#CCCCCC;border-radius:4px}:host .sd-select-listbox__list::-webkit-scrollbar-track{background-color:#E5E5E5}:host .sd-select-listbox__empty{padding:12px;text-align:center;font-size:12px;line-height:20px;color:#888888}";const m=class{constructor(s){t(this,s),this.triggerClick=e(this,"sdTriggerClick",7),this.triggerFocus=e(this,"sdTriggerFocus",7),this.triggerBlur=e(this,"sdTriggerBlur",7)}displayText="";placeholder="선택";disabled=!1;isOpen=!1;triggerClick;triggerFocus;triggerBlur;triggerEl;async sdFocus(){this.disabled||this.triggerEl?.focus()}handleClick=()=>{this.disabled||this.triggerClick.emit()};handleFocus=()=>{this.triggerFocus.emit()};handleBlur=()=>{this.triggerBlur.emit()};render(){const t=""!==this.displayText;return i("div",{key:"a261a38ab844572d693bdb736e8c6c5df8b2b0c6",ref:t=>{this.triggerEl=t},role:"button","aria-haspopup":"listbox","aria-expanded":this.isOpen?"true":"false",tabindex:this.disabled?-1:0,class:{"sd-select-trigger":!0,"sd-select-trigger--open":this.isOpen,"sd-select-trigger--disabled":this.disabled},style:{"--trigger-padding-x":`${p.paddingX}px`,"--trigger-gap":`${p.gap}px`,"--trigger-font-size":`${g.fontSize}px`,"--trigger-line-height":`${g.lineHeight}px`,"--trigger-font-weight":g.fontWeight,"--trigger-color":this.disabled?u.text.disabled:t?u.text.default:u.icon.default,"--trigger-icon-color":this.disabled?u.icon.disabled:u.icon.default},onClick:this.handleClick,onKeyDown:t=>{"Enter"!==t.key&&" "!==t.key||(t.preventDefault(),this.handleClick())},onFocus:this.handleFocus,onBlur:this.handleBlur},i("div",{key:"c8255f624c101fa984d7dc081231f0ce957f8707",class:"sd-select-trigger__content"},t&&n(this.displayText)?i("span",{class:"sd-select-trigger__text",ref:t=>t&&(t.innerHTML=f(this.displayText))}):i("span",{class:"sd-select-trigger__text"},t?this.displayText:this.placeholder??"선택"),i("sd-icon",{key:"bf2145a098a31eba8a5210eb265fb252b84c9e0b",name:"chevronDown",size:12,color:"var(--trigger-icon-color)",class:{"sd-select-trigger__icon":!0,"sd-select-trigger__icon--open":this.isOpen}})))}};m.style="sd-select-trigger{display:block;width:100%;height:100%}sd-select-trigger .sd-select-trigger{display:flex;width:100%;height:100%;cursor:pointer;user-select:none;overflow:hidden;border-radius:3px}sd-select-trigger .sd-select-trigger--disabled{cursor:not-allowed}sd-select-trigger .sd-select-trigger__content{display:flex;align-items:center;gap:var(--trigger-gap);flex:1;padding:0 var(--trigger-padding-x);min-width:0}sd-select-trigger .sd-select-trigger__text{flex:1;font-size:var(--trigger-font-size);line-height:var(--trigger-line-height);font-weight:var(--trigger-font-weight);color:var(--trigger-color);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}sd-select-trigger .sd-select-trigger__icon{flex-shrink:0;transition:transform 0.2s ease}sd-select-trigger .sd-select-trigger__icon--open{transform:rotate(180deg)}";export{b as sd_select,x as sd_select_listbox,m as sd_select_trigger}
@@ -1 +0,0 @@
1
- import{r as t,a as e,h as i}from"./p-BZg-6aSz.js";import{s as d}from"./p-BJfiMC9H.js";import{s as o}from"./p-BE4tnQ2Z.js";const{button:n,contents:s}={button:{height:"28",paddingX:"12",radius:"9999",gap:"6",typography:{fontSize:"12",fontWeight:"500",lineHeight:"20"},icon:{default:"#00973C",active:"#FFFFFF"},border:{width:"1",default:"#E1E1E1"},bg:{default:"#FFFFFF",tip:"#00973C",notion:"#1F8AE1"},text:{default:"#222222",active:"#FFFFFF"}},contents:{paddingX:"24",paddingY:"20",gap:"12",title:{gap:"8"},row:{gap:"8"},body:{gap:"2"},typography:{title:{fontWeight:"700",fontSize:"16",lineHeight:"26"},body:{fontWeight:"400",fontSize:"12",lineHeight:"20"},color:"#222222"},icon:"#00973C",radius:"8"}},u=d.color.fg.primary,g={button:{height:`${n.height}px`,paddingX:`${n.paddingX}px`,radius:`${n.radius}px`,gap:`${n.gap}px`,fontSize:`${n.typography.fontSize}px`,fontWeight:n.typography.fontWeight,lineHeight:`${n.typography.lineHeight}px`,iconColorDefault:n.icon.default,iconColorActive:n.icon.active,iconColorNotion:u,borderWidth:`${n.border.width}px`,borderColor:n.border.default,bgDefault:n.bg.default,bgTip:n.bg.tip,bgNotion:n.bg.notion,textDefault:n.text.default,textActive:n.text.active},contents:{paddingX:`${s.paddingX}px`,paddingY:`${s.paddingY}px`,gap:`${s.gap}px`,rowGap:`${s.row.gap}px`,bodyGap:`${s.body.gap}px`,titleGap:`${s.title.gap}px`,radius:`${s.radius}px`,iconColor:s.icon,iconColorNotion:u,titleFontSize:`${s.typography.title.fontSize}px`,titleFontWeight:s.typography.title.fontWeight,titleLineHeight:`${s.typography.title.lineHeight}px`,bodyFontSize:`${s.typography.body.fontSize}px`,bodyFontWeight:s.typography.body.fontWeight,bodyLineHeight:`${s.typography.body.lineHeight}px`,textColor:s.typography.color}},a={tip:"활용 TIP",notion:"사용법 안내"},r={tip:"helpOutline",notion:"notion"},p=class{constructor(e){t(this,e)}get el(){return e(this)}type="tip";label="";message="";url="";popupTitle="";popupWidth;popupShow=!1;guideRef;handleClickGuide=()=>{"notion"!==this.type?this.popupShow=!this.popupShow:""!==this.url&&window.open(this.url,"_blank","noopener,noreferrer")};closeDropdown=()=>{this.popupShow=!1};get guideStyle(){const{button:t,contents:e}=g;return{"--sd-guide-button-height":t.height,"--sd-guide-button-padding-x":t.paddingX,"--sd-guide-button-radius":t.radius,"--sd-guide-button-gap":t.gap,"--sd-guide-button-font-size":t.fontSize,"--sd-guide-button-font-weight":t.fontWeight,"--sd-guide-button-line-height":t.lineHeight,"--sd-guide-button-border-width":t.borderWidth,"--sd-guide-button-border-color":t.borderColor,"--sd-guide-button-bg-default":t.bgDefault,"--sd-guide-button-bg-tip":t.bgTip,"--sd-guide-button-bg-notion":t.bgNotion,"--sd-guide-button-text-default":t.textDefault,"--sd-guide-button-text-active":t.textActive,"--sd-guide-button-icon-color-default":t.iconColorDefault,"--sd-guide-button-icon-color-active":t.iconColorActive,"--sd-guide-button-icon-color-notion":t.iconColorNotion,"--sd-guide-contents-padding-x":e.paddingX,"--sd-guide-contents-padding-y":e.paddingY,"--sd-guide-contents-gap":e.gap,"--sd-guide-contents-row-gap":e.rowGap,"--sd-guide-contents-body-gap":e.bodyGap,"--sd-guide-contents-title-gap":e.titleGap,"--sd-guide-contents-radius":e.radius,"--sd-guide-contents-title-font-size":e.titleFontSize,"--sd-guide-contents-title-font-weight":e.titleFontWeight,"--sd-guide-contents-title-line-height":e.titleLineHeight,"--sd-guide-contents-body-font-size":e.bodyFontSize,"--sd-guide-contents-body-font-weight":e.bodyFontWeight,"--sd-guide-contents-body-line-height":e.bodyLineHeight,"--sd-guide-contents-text-color":e.textColor}}render(){const{contents:t}=g,e=this.popupShow,d=a[this.type??"tip"],o=r[this.type??"tip"],n="notion"===(this.type??"tip")?t.iconColorNotion:t.iconColor,s=["sd-guide__button",`sd-guide__button--type-${this.type??"tip"}`];return e&&s.push("sd-guide__button--active"),i("div",{key:"d89a517d78a8f9624c94d320291e5a4b5bd0715d",class:"sd-guide",style:this.guideStyle},i("sd-button",{key:"6e959f0f5fd6f816fd1cef4545852b860d30de85",ref:t=>this.guideRef=t,class:s.join(" "),name:e?"primary_sm":"neutral_outline_sm",label:this.label||d,icon:o,onSdClick:this.handleClickGuide}),this.popupShow&&i("sd-portal",{key:"a837cababa5504400293729ad28e4dcd2450eeec",open:this.popupShow,parentRef:this.guideRef,onSdClose:this.closeDropdown,offset:[0,4]},i("div",{key:"61dd3c574495f85021495d80865e162999368f9c",class:"sd-guide__popup",style:{...this.guideStyle,width:null!=this.popupWidth?this.popupWidth+"px":"426px"}},i("sd-ghost-button",{key:"dbf8aebd1be4b5286bf726d22e0a5f80c29e867f",class:"sd-guide__popup__close",icon:"close",ariaLabel:"close",size:"sm",onSdClick:this.closeDropdown}),i("div",{key:"5a08fa823bb8839e654d7bb2ba027df2dc68b85b",class:"sd-guide__popup__header"},i("sd-icon",{key:"1dda43d100b4f5f3b7fa81115a1ac4bfbd584a51",name:o,size:24,color:n}),i("h3",{key:"cfe6342f44f4e1355397ed94d6db74807f917548",class:"sd-guide__popup__title"},this.popupTitle||d)),i("ul",{key:"9acc2f507ed3d3d6f1fda27a9e5cf66dcc2f619d",class:"sd-guide__popup__list"},this.renderListItem(this.message)))))}renderListItem(t,e=0){const i=[];if(Array.isArray(t)){const d=t.map((t=>this.renderListItem(t,e+1)));i.push(...d.flat())}else i.push(this.renderLi(t,e));return i}renderLi=(t,e)=>i("li",{class:`sd-guide__popup__list__item sd-guide__popup__list__item--depth-${e}`},i("p",{innerHTML:o(t)}))};p.style='@charset "UTF-8";sd-guide{display:inline-flex;align-items:center;height:fit-content;width:fit-content}.sd-guide{display:inline-flex;align-items:center;height:fit-content;width:fit-content}.sd-guide .sd-guide__button .sd-button{min-height:var(--sd-guide-button-height);padding:0 var(--sd-guide-button-padding-x);border-radius:var(--sd-guide-button-radius);border:var(--sd-guide-button-border-width) solid var(--sd-guide-button-border-color);background:var(--sd-guide-button-bg-default);color:var(--sd-guide-button-text-default) !important;transition:none;display:flex;align-items:center;gap:var(--sd-guide-button-gap);--sd-button-bg-hover:var(--sd-guide-button-bg-default);--sd-button-current-icon:var(--sd-guide-button-icon-color-default)}.sd-guide .sd-guide__button .sd-button .sd-button__content{color:var(--sd-guide-button-text-default) !important;gap:var(--sd-guide-button-gap)}.sd-guide .sd-guide__button .sd-button .sd-button__content .sd-button__label{margin-left:0;color:var(--sd-guide-button-text-default) !important;font-size:var(--sd-guide-button-font-size);font-weight:var(--sd-guide-button-font-weight);line-height:var(--sd-guide-button-line-height)}.sd-guide .sd-guide__button--type-notion .sd-button{--sd-button-current-icon:var(--sd-guide-button-icon-color-notion)}.sd-guide .sd-guide__button--active .sd-button{color:var(--sd-guide-button-text-active) !important;--sd-button-current-icon:var(--sd-guide-button-icon-color-active)}.sd-guide .sd-guide__button--active .sd-button .sd-button__content{color:var(--sd-guide-button-text-active) !important}.sd-guide .sd-guide__button--active .sd-button .sd-button__content .sd-button__label{color:var(--sd-guide-button-text-active) !important}.sd-guide .sd-guide__button--type-tip.sd-guide__button--active .sd-button{background:var(--sd-guide-button-bg-tip);border-color:var(--sd-guide-button-bg-tip);--sd-button-bg-hover:var(--sd-guide-button-bg-tip)}.sd-guide .sd-guide__button--type-notion.sd-guide__button--active .sd-button{background:var(--sd-guide-button-bg-notion);border-color:var(--sd-guide-button-bg-notion);--sd-button-bg-hover:var(--sd-guide-button-bg-notion)}.sd-guide__popup{position:relative;padding:var(--sd-guide-contents-padding-y) var(--sd-guide-contents-padding-x);border-radius:var(--sd-guide-contents-radius);box-shadow:4px 4px 24px 4px rgba(0, 0, 0, 0.1);background:white}.sd-guide__popup>.sd-guide__popup__close{position:absolute;top:12px;right:12px}.sd-guide__popup__header{display:flex;align-items:center;gap:var(--sd-guide-contents-title-gap);margin-bottom:var(--sd-guide-contents-gap)}.sd-guide__popup__header .sd-guide__popup__title{margin-top:0;margin-bottom:0;font-size:var(--sd-guide-contents-title-font-size);font-weight:var(--sd-guide-contents-title-font-weight);line-height:var(--sd-guide-contents-title-line-height);color:var(--sd-guide-contents-text-color)}.sd-guide__popup__list{width:100%;padding:0;margin:0}.sd-guide__popup__list__item{display:flex;width:100%;align-items:start;list-style:none;color:var(--sd-guide-contents-text-color);font-size:var(--sd-guide-contents-body-font-size);font-weight:var(--sd-guide-contents-body-font-weight);line-height:var(--sd-guide-contents-body-line-height)}.sd-guide__popup__list__item p{width:100%;padding:0;margin:0;word-wrap:break-word;word-break:break-word;white-space:normal;overflow-wrap:break-word;min-width:0}.sd-guide__popup__list__item::before{display:block;content:"-";width:6px;color:var(--sd-guide-contents-text-color);font-size:var(--sd-guide-contents-body-font-size);font-weight:var(--sd-guide-contents-body-font-weight);line-height:var(--sd-guide-contents-body-line-height);margin-left:10px;margin-right:12px;flex-shrink:0}.sd-guide__popup__list__item--depth-1:not(:first-child){margin-top:var(--sd-guide-contents-row-gap)}.sd-guide__popup__list__item--depth-2{margin-top:var(--sd-guide-contents-body-gap)}.sd-guide__popup__list__item--depth-2::before{content:"•"}.sd-guide__popup__list__item--depth-2{padding-left:26px}';export{p as sd_guide}