sellmate-design-system-react 9.0.0-beta.0 → 9.0.0-beta.100

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 (443) hide show
  1. package/AGENTS.md +4263 -286
  2. package/README.md +126 -15
  3. package/bin/sellmate-ds.mjs +91 -59
  4. package/dist/components/SAccountListBox/AccountListBoxPortal.d.ts +31 -0
  5. package/dist/components/SAccountListBox/README.md +86 -0
  6. package/dist/components/SAccountListBox/SAccountListBox.d.ts +79 -0
  7. package/dist/components/SAccountListBox/SystemMenuPortal.d.ts +58 -0
  8. package/dist/components/SAccountListBox/accountListBox.config.d.ts +64 -0
  9. package/dist/components/SAccountListBox/index.d.ts +2 -0
  10. package/dist/components/SActionModal/README.md +1 -0
  11. package/dist/components/SActionModal/SActionModal.d.ts +9 -1
  12. package/dist/components/SBadge/README.md +27 -0
  13. package/dist/components/SBadge/SBadge.d.ts +1 -1
  14. package/dist/components/SBarChart/README.md +123 -0
  15. package/dist/components/SBarChart/SBarChart.d.ts +106 -0
  16. package/dist/components/SBarChart/barChart.config.d.ts +85 -0
  17. package/dist/components/SBarChart/index.d.ts +2 -0
  18. package/dist/components/SBarcodeInput/README.md +16 -4
  19. package/dist/components/SBarcodeInput/SBarcodeInput.d.ts +25 -3
  20. package/dist/components/SButton/README.md +76 -3
  21. package/dist/components/SButton/SButton.d.ts +29 -5
  22. package/dist/components/SButton/button.config.d.ts +22 -13
  23. package/dist/components/SButton/index.d.ts +1 -1
  24. package/dist/components/SCalendar/README.md +13 -0
  25. package/dist/components/SCalendarBoard/CalendarDayCard.d.ts +53 -0
  26. package/dist/components/SCalendarBoard/CalendarDayEventListBox.d.ts +26 -0
  27. package/dist/components/SCalendarBoard/CalendarEventButton.d.ts +20 -0
  28. package/dist/components/SCalendarBoard/CalendarMoreButton.d.ts +18 -0
  29. package/dist/components/SCalendarBoard/README.md +148 -0
  30. package/dist/components/SCalendarBoard/SCalendarBoard.d.ts +83 -0
  31. package/dist/components/SCalendarBoard/calendar-board-layout.d.ts +59 -0
  32. package/dist/components/SCalendarBoard/calendarBoard.config.d.ts +38 -0
  33. package/dist/components/SCalendarBoard/index.d.ts +3 -0
  34. package/dist/components/SCalendarBoard/types.d.ts +40 -0
  35. package/dist/components/SCallout/README.md +17 -1
  36. package/dist/components/SCallout/SCallout.d.ts +14 -4
  37. package/dist/components/SCard/README.md +17 -0
  38. package/dist/components/SCard/SCard.d.ts +26 -2
  39. package/dist/components/SChatAttachedFile/README.md +33 -0
  40. package/dist/components/SChatAttachedFile/SChatAttachedFile.d.ts +13 -0
  41. package/dist/components/SChatAttachedFile/chatAttachedFile.config.d.ts +23 -0
  42. package/dist/components/SChatAttachedFile/index.d.ts +2 -0
  43. package/dist/components/SChatFile/README.md +33 -0
  44. package/dist/components/SChatFile/SChatFile.d.ts +37 -0
  45. package/dist/components/SChatFile/chatFile.config.d.ts +56 -0
  46. package/dist/components/SChatFile/index.d.ts +2 -0
  47. package/dist/components/SChatInput/README.md +52 -0
  48. package/dist/components/SChatInput/SChatInput.d.ts +127 -0
  49. package/dist/components/SChatInput/index.d.ts +1 -0
  50. package/dist/components/SChatMessage/README.md +87 -0
  51. package/dist/components/SChatMessage/SChatMessage.d.ts +135 -0
  52. package/dist/components/SChatMessage/index.d.ts +1 -0
  53. package/dist/components/SChatSystemMessage/README.md +12 -0
  54. package/dist/components/SChatSystemMessage/SChatSystemMessage.d.ts +18 -0
  55. package/dist/components/SChatSystemMessage/index.d.ts +1 -0
  56. package/dist/components/SCheckbox/README.md +11 -0
  57. package/dist/components/SCheckbox/SCheckbox.d.ts +9 -1
  58. package/dist/components/SChip/README.md +25 -0
  59. package/dist/components/SChip/SChip.d.ts +8 -0
  60. package/dist/components/SChip/index.d.ts +1 -1
  61. package/dist/components/SChipFilter/README.md +369 -11
  62. package/dist/components/SChipFilter/SChipFilter.d.ts +175 -59
  63. package/dist/components/SChipFilter/index.d.ts +1 -1
  64. package/dist/components/SChipInput/README.md +22 -3
  65. package/dist/components/SChipInput/SChipInput.d.ts +53 -3
  66. package/dist/components/SChipInput/index.d.ts +1 -1
  67. package/dist/components/SCircleProgress/README.md +15 -1
  68. package/dist/components/SCircleProgress/SCircleProgress.d.ts +16 -2
  69. package/dist/components/SConfirmModal/README.md +13 -4
  70. package/dist/components/SConfirmModal/SConfirmModal.d.ts +46 -9
  71. package/dist/components/SContextAlert/README.md +52 -0
  72. package/dist/components/SContextAlert/SContextAlert.d.ts +51 -0
  73. package/dist/components/SContextAlert/contextAlert.config.d.ts +22 -0
  74. package/dist/components/SContextAlert/index.d.ts +2 -0
  75. package/dist/components/SDatePicker/README.md +63 -4
  76. package/dist/components/SDatePicker/SDatePicker.d.ts +84 -6
  77. package/dist/components/SDatePicker/index.d.ts +1 -1
  78. package/dist/components/SDateRangePicker/README.md +23 -4
  79. package/dist/components/SDateRangePicker/SDateRangePicker.d.ts +52 -7
  80. package/dist/components/SDivider/README.md +7 -0
  81. package/dist/components/SDivider/SDivider.d.ts +11 -0
  82. package/dist/components/SDonutChart/README.md +105 -0
  83. package/dist/components/SDonutChart/SDonutChart.d.ts +82 -0
  84. package/dist/components/SDonutChart/index.d.ts +1 -0
  85. package/dist/components/SDraggableItem/README.md +37 -0
  86. package/dist/components/SDraggableItem/SDraggableItem.d.ts +2 -0
  87. package/dist/components/SDraggableItem/index.d.ts +1 -1
  88. package/dist/components/SDraggableList/README.md +33 -3
  89. package/dist/components/SDraggableList/SDraggableList.d.ts +18 -3
  90. package/dist/components/SDraggableList/index.d.ts +1 -1
  91. package/dist/components/SDrawer/README.md +8 -0
  92. package/dist/components/SDropdownButton/README.md +30 -1
  93. package/dist/components/SDropdownButton/SDropdownButton.d.ts +3 -1
  94. package/dist/components/SDropdownButton/index.d.ts +1 -1
  95. package/dist/components/SEditor/EditorBody.d.ts +48 -0
  96. package/dist/components/SEditor/EditorToolbar.d.ts +93 -0
  97. package/dist/components/SEditor/README.md +207 -0
  98. package/dist/components/SEditor/SEditor.d.ts +128 -0
  99. package/dist/components/SEditor/editor-icons.d.ts +63 -0
  100. package/dist/components/SEditor/editor.config.d.ts +119 -0
  101. package/dist/components/SEditor/index.d.ts +8 -0
  102. package/dist/components/SEditor/tiptap-api.d.ts +29 -0
  103. package/dist/components/SEditor/use-is-mobile.d.ts +14 -0
  104. package/dist/components/SExpansionItem/README.md +39 -2
  105. package/dist/components/SExpansionItem/SExpansionItem.d.ts +18 -2
  106. package/dist/components/SExpansionItem/index.d.ts +1 -1
  107. package/dist/components/SField/README.md +40 -4
  108. package/dist/components/SField/SField.d.ts +69 -6
  109. package/dist/components/SField/index.d.ts +1 -1
  110. package/dist/components/SFilePicker/README.md +20 -4
  111. package/dist/components/SFilePicker/SFilePicker.d.ts +26 -6
  112. package/dist/components/SFooter/README.md +44 -0
  113. package/dist/components/SFooter/SFooter.d.ts +29 -13
  114. package/dist/components/SFooter/index.d.ts +1 -1
  115. package/dist/components/SForm/README.md +12 -1
  116. package/dist/components/SForm/SForm.d.ts +2 -2
  117. package/dist/components/SGhostButton/README.md +34 -1
  118. package/dist/components/SGhostButton/SGhostButton.d.ts +22 -4
  119. package/dist/components/SGnb/README.md +109 -8
  120. package/dist/components/SGnb/SGnb.d.ts +112 -11
  121. package/dist/components/SGnb/gnb.config.d.ts +24 -5
  122. package/dist/components/SGnb/index.d.ts +1 -1
  123. package/dist/components/SGnbSystem/README.md +190 -0
  124. package/dist/components/SGnbSystem/SGnbSystem.d.ts +179 -0
  125. package/dist/components/SGnbSystem/gnbSystem.config.d.ts +124 -0
  126. package/dist/components/SGnbSystem/index.d.ts +2 -0
  127. package/dist/components/SGuide/README.md +16 -1
  128. package/dist/components/SGuide/SGuide.d.ts +5 -2
  129. package/dist/components/SIcon/README.md +27 -1
  130. package/dist/components/SIcon/SIcon.d.ts +2 -2
  131. package/dist/components/SIcon/icons.gen.d.ts +20 -1
  132. package/dist/components/SImage/README.md +66 -0
  133. package/dist/components/SImage/SImage.d.ts +44 -0
  134. package/dist/components/SImage/index.d.ts +1 -0
  135. package/dist/components/SInput/README.md +10 -4
  136. package/dist/components/SInput/SInput.d.ts +17 -5
  137. package/dist/components/SKeyValueTable/README.md +89 -0
  138. package/dist/components/SKeyValueTable/SKeyValueTable.d.ts +37 -3
  139. package/dist/components/SKeyValueTable/index.d.ts +1 -1
  140. package/dist/components/SLauncherListBox/README.md +82 -0
  141. package/dist/components/SLauncherListBox/SLauncherListBox.d.ts +80 -0
  142. package/dist/components/SLauncherListBox/index.d.ts +2 -0
  143. package/dist/components/SLauncherListBox/launcherListBox.config.d.ts +149 -0
  144. package/dist/components/SLayout/README.md +22 -1
  145. package/dist/components/SLayout/SLayout.d.ts +6 -2
  146. package/dist/components/SLayout/index.d.ts +1 -1
  147. package/dist/components/SLineChart/README.md +132 -0
  148. package/dist/components/SLineChart/SLineChart.d.ts +115 -0
  149. package/dist/components/SLineChart/index.d.ts +1 -0
  150. package/dist/components/SLineChart/lineChart.config.d.ts +94 -0
  151. package/dist/components/SLinearProgress/README.md +16 -1
  152. package/dist/components/SLinearProgress/SLinearProgress.d.ts +11 -2
  153. package/dist/components/SLinearProgress/index.d.ts +1 -1
  154. package/dist/components/SList/README.md +15 -3
  155. package/dist/components/SList/SList.d.ts +7 -5
  156. package/dist/components/SList/index.d.ts +1 -1
  157. package/dist/components/SListItem/README.md +43 -2
  158. package/dist/components/SListItem/SListItem.d.ts +12 -2
  159. package/dist/components/SListItem/index.d.ts +1 -1
  160. package/dist/components/SLoadingContainer/index.d.ts +1 -1
  161. package/dist/components/SLoadingContainer/loading.d.ts +41 -6
  162. package/dist/components/SLoadingModal/README.md +12 -4
  163. package/dist/components/SLoadingModal/SLoadingModal.d.ts +4 -4
  164. package/dist/components/SLoadingModal/index.d.ts +1 -1
  165. package/dist/components/SLoginCard/README.md +37 -0
  166. package/dist/components/SLoginCard/SLoginCard.d.ts +43 -0
  167. package/dist/components/SLoginCard/index.d.ts +1 -0
  168. package/dist/components/SLogo/README.md +103 -0
  169. package/dist/components/SLogo/SLogo.d.ts +72 -0
  170. package/dist/components/SLogo/index.d.ts +2 -0
  171. package/dist/components/SLogo/logo.config.d.ts +29 -0
  172. package/dist/components/SLogo/logos.d.ts +16 -0
  173. package/dist/components/SMeatballButton/README.md +69 -0
  174. package/dist/components/SMeatballButton/SMeatballButton.d.ts +36 -0
  175. package/dist/components/SMeatballButton/index.d.ts +1 -0
  176. package/dist/components/SModal/README.md +15 -5
  177. package/dist/components/SModal/SModal.d.ts +1 -1
  178. package/dist/components/SNumberInput/README.md +21 -8
  179. package/dist/components/SNumberInput/SNumberInput.d.ts +49 -7
  180. package/dist/components/SPage/README.md +107 -5
  181. package/dist/components/SPage/SPage.d.ts +50 -10
  182. package/dist/components/SPage/SPageHeader.d.ts +31 -13
  183. package/dist/components/SPage/index.d.ts +2 -2
  184. package/dist/components/SPage/page-column.d.ts +34 -0
  185. package/dist/components/SPage/page-width.d.ts +23 -0
  186. package/dist/components/SPage/page.config.d.ts +34 -0
  187. package/dist/components/SPieChart/README.md +93 -0
  188. package/dist/components/SPieChart/SPieChart.d.ts +73 -0
  189. package/dist/components/SPieChart/index.d.ts +1 -0
  190. package/dist/components/SPopover/README.md +15 -0
  191. package/dist/components/SPopup/README.md +26 -2
  192. package/dist/components/SPopup/SPopup.d.ts +13 -10
  193. package/dist/components/SPopup/index.d.ts +1 -1
  194. package/dist/components/SPortal/README.md +20 -0
  195. package/dist/components/SRadio/README.md +20 -0
  196. package/dist/components/SRadioButton/README.md +27 -0
  197. package/dist/components/SRadioButton/SRadioButton.d.ts +17 -3
  198. package/dist/components/SRadioCard/README.md +81 -0
  199. package/dist/components/SRadioCard/SRadioCard.d.ts +34 -0
  200. package/dist/components/SRadioCard/SRadioCardGroup.d.ts +38 -0
  201. package/dist/components/SRadioCard/index.d.ts +2 -0
  202. package/dist/components/SScrollArea/README.md +28 -0
  203. package/dist/components/SScrollArea/SScrollArea.d.ts +17 -0
  204. package/dist/components/SSearchInput/README.md +63 -0
  205. package/dist/components/SSearchInput/SSearchInput.d.ts +52 -0
  206. package/dist/components/SSearchInput/index.d.ts +1 -0
  207. package/dist/components/SSectionHeaderCard/README.md +45 -20
  208. package/dist/components/SSectionHeaderCard/SSectionHeaderCard.d.ts +40 -14
  209. package/dist/components/SSectionHeaderCard/index.d.ts +1 -1
  210. package/dist/components/SSelect/README.md +70 -9
  211. package/dist/components/SSelect/SSelect.d.ts +159 -17
  212. package/dist/components/SSelect/index.d.ts +1 -1
  213. package/dist/components/SSelect/select.config.d.ts +51 -4
  214. package/dist/components/SSkeleton/README.md +67 -0
  215. package/dist/components/SSkeleton/SSkeleton.d.ts +43 -0
  216. package/dist/components/SSkeleton/index.d.ts +2 -0
  217. package/dist/components/SSkeleton/skeleton.config.d.ts +24 -0
  218. package/dist/components/SSlider/README.md +86 -0
  219. package/dist/components/SSlider/SSlider.d.ts +149 -0
  220. package/dist/components/SSlider/index.d.ts +1 -0
  221. package/dist/components/SSplitter/README.md +17 -2
  222. package/dist/components/SSplitter/SSplitter.d.ts +7 -3
  223. package/dist/components/SStepper/README.md +26 -0
  224. package/dist/components/SStepper/stepper.config.d.ts +9 -3
  225. package/dist/components/SSwitch/README.md +13 -1
  226. package/dist/components/SSwitch/SSwitch.d.ts +1 -3
  227. package/dist/components/SSystemActionButton/README.md +246 -0
  228. package/dist/components/SSystemActionButton/SSystemActionButton.d.ts +167 -0
  229. package/dist/components/SSystemActionButton/index.d.ts +2 -0
  230. package/dist/components/SSystemActionButton/systemActionButton.config.d.ts +93 -0
  231. package/dist/components/STable/README.md +157 -20
  232. package/dist/components/STable/STable.d.ts +380 -47
  233. package/dist/components/STable/index.d.ts +1 -1
  234. package/dist/components/STableBar/README.md +1 -0
  235. package/dist/components/STableBar/STableBar.d.ts +8 -1
  236. package/dist/components/STabs/README.md +13 -2
  237. package/dist/components/STabs/STabs.d.ts +3 -5
  238. package/dist/components/STabs/index.d.ts +1 -1
  239. package/dist/components/STabs/tabs.config.d.ts +4 -10
  240. package/dist/components/STag/README.md +63 -0
  241. package/dist/components/STag/STag.d.ts +3 -1
  242. package/dist/components/STag/tag.config.d.ts +11 -10
  243. package/dist/components/STextLink/README.md +21 -1
  244. package/dist/components/STextLink/STextLink.d.ts +5 -1
  245. package/dist/components/STextarea/README.md +12 -5
  246. package/dist/components/STextarea/STextarea.d.ts +49 -6
  247. package/dist/components/STimePicker/README.md +20 -3
  248. package/dist/components/STimePicker/STimePicker.d.ts +37 -11
  249. package/dist/components/STimePicker/TimeListbox.d.ts +21 -0
  250. package/dist/components/STimePicker/timepicker.config.d.ts +10 -0
  251. package/dist/components/STimeRangePicker/README.md +33 -4
  252. package/dist/components/STimeRangePicker/STimeRangePicker.d.ts +40 -7
  253. package/dist/components/STimeline/README.md +41 -0
  254. package/dist/components/STimeline/STimeline.d.ts +27 -0
  255. package/dist/components/STimeline/index.d.ts +1 -0
  256. package/dist/components/SToast/README.md +25 -1
  257. package/dist/components/SToast/SToast.d.ts +2 -2
  258. package/dist/components/SToggle/README.md +9 -0
  259. package/dist/components/SToggle/SToggle.d.ts +4 -1
  260. package/dist/components/SToggle/index.d.ts +1 -1
  261. package/dist/components/STooltip/README.md +27 -1
  262. package/dist/components/STooltip/STooltip.d.ts +1 -1
  263. package/dist/components/STree/README.md +46 -4
  264. package/dist/components/STree/STree.d.ts +25 -7
  265. package/dist/components/STree/STree.examples.d.ts +2 -0
  266. package/dist/components/STree/index.d.ts +1 -1
  267. package/dist/components/STreeTable/README.md +49 -0
  268. package/dist/components/STreeTable/STreeTable.d.ts +70 -0
  269. package/dist/components/STreeTable/STreeTable.examples.d.ts +39 -0
  270. package/dist/components/STreeTable/index.d.ts +1 -0
  271. package/dist/docs/Gallery.d.ts +9 -0
  272. package/dist/docs/RecipeGallery.d.ts +13 -0
  273. package/dist/docs/gallery-previews.d.ts +24 -0
  274. package/dist/fonts/LICENSE.txt +94 -0
  275. package/dist/fonts/woff2-dynamic-subset/PretendardVariable.subset.0.woff2 +0 -0
  276. package/dist/fonts/woff2-dynamic-subset/PretendardVariable.subset.1.woff2 +0 -0
  277. package/dist/fonts/woff2-dynamic-subset/PretendardVariable.subset.10.woff2 +0 -0
  278. package/dist/fonts/woff2-dynamic-subset/PretendardVariable.subset.11.woff2 +0 -0
  279. package/dist/fonts/woff2-dynamic-subset/PretendardVariable.subset.12.woff2 +0 -0
  280. package/dist/fonts/woff2-dynamic-subset/PretendardVariable.subset.13.woff2 +0 -0
  281. package/dist/fonts/woff2-dynamic-subset/PretendardVariable.subset.14.woff2 +0 -0
  282. package/dist/fonts/woff2-dynamic-subset/PretendardVariable.subset.15.woff2 +0 -0
  283. package/dist/fonts/woff2-dynamic-subset/PretendardVariable.subset.16.woff2 +0 -0
  284. package/dist/fonts/woff2-dynamic-subset/PretendardVariable.subset.17.woff2 +0 -0
  285. package/dist/fonts/woff2-dynamic-subset/PretendardVariable.subset.18.woff2 +0 -0
  286. package/dist/fonts/woff2-dynamic-subset/PretendardVariable.subset.19.woff2 +0 -0
  287. package/dist/fonts/woff2-dynamic-subset/PretendardVariable.subset.2.woff2 +0 -0
  288. package/dist/fonts/woff2-dynamic-subset/PretendardVariable.subset.20.woff2 +0 -0
  289. package/dist/fonts/woff2-dynamic-subset/PretendardVariable.subset.21.woff2 +0 -0
  290. package/dist/fonts/woff2-dynamic-subset/PretendardVariable.subset.22.woff2 +0 -0
  291. package/dist/fonts/woff2-dynamic-subset/PretendardVariable.subset.23.woff2 +0 -0
  292. package/dist/fonts/woff2-dynamic-subset/PretendardVariable.subset.24.woff2 +0 -0
  293. package/dist/fonts/woff2-dynamic-subset/PretendardVariable.subset.25.woff2 +0 -0
  294. package/dist/fonts/woff2-dynamic-subset/PretendardVariable.subset.26.woff2 +0 -0
  295. package/dist/fonts/woff2-dynamic-subset/PretendardVariable.subset.27.woff2 +0 -0
  296. package/dist/fonts/woff2-dynamic-subset/PretendardVariable.subset.28.woff2 +0 -0
  297. package/dist/fonts/woff2-dynamic-subset/PretendardVariable.subset.29.woff2 +0 -0
  298. package/dist/fonts/woff2-dynamic-subset/PretendardVariable.subset.3.woff2 +0 -0
  299. package/dist/fonts/woff2-dynamic-subset/PretendardVariable.subset.30.woff2 +0 -0
  300. package/dist/fonts/woff2-dynamic-subset/PretendardVariable.subset.31.woff2 +0 -0
  301. package/dist/fonts/woff2-dynamic-subset/PretendardVariable.subset.32.woff2 +0 -0
  302. package/dist/fonts/woff2-dynamic-subset/PretendardVariable.subset.33.woff2 +0 -0
  303. package/dist/fonts/woff2-dynamic-subset/PretendardVariable.subset.34.woff2 +0 -0
  304. package/dist/fonts/woff2-dynamic-subset/PretendardVariable.subset.35.woff2 +0 -0
  305. package/dist/fonts/woff2-dynamic-subset/PretendardVariable.subset.36.woff2 +0 -0
  306. package/dist/fonts/woff2-dynamic-subset/PretendardVariable.subset.37.woff2 +0 -0
  307. package/dist/fonts/woff2-dynamic-subset/PretendardVariable.subset.38.woff2 +0 -0
  308. package/dist/fonts/woff2-dynamic-subset/PretendardVariable.subset.39.woff2 +0 -0
  309. package/dist/fonts/woff2-dynamic-subset/PretendardVariable.subset.4.woff2 +0 -0
  310. package/dist/fonts/woff2-dynamic-subset/PretendardVariable.subset.40.woff2 +0 -0
  311. package/dist/fonts/woff2-dynamic-subset/PretendardVariable.subset.41.woff2 +0 -0
  312. package/dist/fonts/woff2-dynamic-subset/PretendardVariable.subset.42.woff2 +0 -0
  313. package/dist/fonts/woff2-dynamic-subset/PretendardVariable.subset.43.woff2 +0 -0
  314. package/dist/fonts/woff2-dynamic-subset/PretendardVariable.subset.44.woff2 +0 -0
  315. package/dist/fonts/woff2-dynamic-subset/PretendardVariable.subset.45.woff2 +0 -0
  316. package/dist/fonts/woff2-dynamic-subset/PretendardVariable.subset.46.woff2 +0 -0
  317. package/dist/fonts/woff2-dynamic-subset/PretendardVariable.subset.47.woff2 +0 -0
  318. package/dist/fonts/woff2-dynamic-subset/PretendardVariable.subset.48.woff2 +0 -0
  319. package/dist/fonts/woff2-dynamic-subset/PretendardVariable.subset.49.woff2 +0 -0
  320. package/dist/fonts/woff2-dynamic-subset/PretendardVariable.subset.5.woff2 +0 -0
  321. package/dist/fonts/woff2-dynamic-subset/PretendardVariable.subset.50.woff2 +0 -0
  322. package/dist/fonts/woff2-dynamic-subset/PretendardVariable.subset.51.woff2 +0 -0
  323. package/dist/fonts/woff2-dynamic-subset/PretendardVariable.subset.52.woff2 +0 -0
  324. package/dist/fonts/woff2-dynamic-subset/PretendardVariable.subset.53.woff2 +0 -0
  325. package/dist/fonts/woff2-dynamic-subset/PretendardVariable.subset.54.woff2 +0 -0
  326. package/dist/fonts/woff2-dynamic-subset/PretendardVariable.subset.55.woff2 +0 -0
  327. package/dist/fonts/woff2-dynamic-subset/PretendardVariable.subset.56.woff2 +0 -0
  328. package/dist/fonts/woff2-dynamic-subset/PretendardVariable.subset.57.woff2 +0 -0
  329. package/dist/fonts/woff2-dynamic-subset/PretendardVariable.subset.58.woff2 +0 -0
  330. package/dist/fonts/woff2-dynamic-subset/PretendardVariable.subset.59.woff2 +0 -0
  331. package/dist/fonts/woff2-dynamic-subset/PretendardVariable.subset.6.woff2 +0 -0
  332. package/dist/fonts/woff2-dynamic-subset/PretendardVariable.subset.60.woff2 +0 -0
  333. package/dist/fonts/woff2-dynamic-subset/PretendardVariable.subset.61.woff2 +0 -0
  334. package/dist/fonts/woff2-dynamic-subset/PretendardVariable.subset.62.woff2 +0 -0
  335. package/dist/fonts/woff2-dynamic-subset/PretendardVariable.subset.63.woff2 +0 -0
  336. package/dist/fonts/woff2-dynamic-subset/PretendardVariable.subset.64.woff2 +0 -0
  337. package/dist/fonts/woff2-dynamic-subset/PretendardVariable.subset.65.woff2 +0 -0
  338. package/dist/fonts/woff2-dynamic-subset/PretendardVariable.subset.66.woff2 +0 -0
  339. package/dist/fonts/woff2-dynamic-subset/PretendardVariable.subset.67.woff2 +0 -0
  340. package/dist/fonts/woff2-dynamic-subset/PretendardVariable.subset.68.woff2 +0 -0
  341. package/dist/fonts/woff2-dynamic-subset/PretendardVariable.subset.69.woff2 +0 -0
  342. package/dist/fonts/woff2-dynamic-subset/PretendardVariable.subset.7.woff2 +0 -0
  343. package/dist/fonts/woff2-dynamic-subset/PretendardVariable.subset.70.woff2 +0 -0
  344. package/dist/fonts/woff2-dynamic-subset/PretendardVariable.subset.71.woff2 +0 -0
  345. package/dist/fonts/woff2-dynamic-subset/PretendardVariable.subset.72.woff2 +0 -0
  346. package/dist/fonts/woff2-dynamic-subset/PretendardVariable.subset.73.woff2 +0 -0
  347. package/dist/fonts/woff2-dynamic-subset/PretendardVariable.subset.74.woff2 +0 -0
  348. package/dist/fonts/woff2-dynamic-subset/PretendardVariable.subset.75.woff2 +0 -0
  349. package/dist/fonts/woff2-dynamic-subset/PretendardVariable.subset.76.woff2 +0 -0
  350. package/dist/fonts/woff2-dynamic-subset/PretendardVariable.subset.77.woff2 +0 -0
  351. package/dist/fonts/woff2-dynamic-subset/PretendardVariable.subset.78.woff2 +0 -0
  352. package/dist/fonts/woff2-dynamic-subset/PretendardVariable.subset.79.woff2 +0 -0
  353. package/dist/fonts/woff2-dynamic-subset/PretendardVariable.subset.8.woff2 +0 -0
  354. package/dist/fonts/woff2-dynamic-subset/PretendardVariable.subset.80.woff2 +0 -0
  355. package/dist/fonts/woff2-dynamic-subset/PretendardVariable.subset.81.woff2 +0 -0
  356. package/dist/fonts/woff2-dynamic-subset/PretendardVariable.subset.82.woff2 +0 -0
  357. package/dist/fonts/woff2-dynamic-subset/PretendardVariable.subset.83.woff2 +0 -0
  358. package/dist/fonts/woff2-dynamic-subset/PretendardVariable.subset.84.woff2 +0 -0
  359. package/dist/fonts/woff2-dynamic-subset/PretendardVariable.subset.85.woff2 +0 -0
  360. package/dist/fonts/woff2-dynamic-subset/PretendardVariable.subset.86.woff2 +0 -0
  361. package/dist/fonts/woff2-dynamic-subset/PretendardVariable.subset.87.woff2 +0 -0
  362. package/dist/fonts/woff2-dynamic-subset/PretendardVariable.subset.88.woff2 +0 -0
  363. package/dist/fonts/woff2-dynamic-subset/PretendardVariable.subset.89.woff2 +0 -0
  364. package/dist/fonts/woff2-dynamic-subset/PretendardVariable.subset.9.woff2 +0 -0
  365. package/dist/fonts/woff2-dynamic-subset/PretendardVariable.subset.90.woff2 +0 -0
  366. package/dist/fonts/woff2-dynamic-subset/PretendardVariable.subset.91.woff2 +0 -0
  367. package/dist/index.cjs +24511 -10545
  368. package/dist/index.cjs.map +1 -1
  369. package/dist/index.d.ts +27 -0
  370. package/dist/index.js +24419 -10550
  371. package/dist/index.js.map +1 -1
  372. package/dist/lib/autofill.d.ts +3 -5
  373. package/dist/lib/chart/cartesian.d.ts +54 -0
  374. package/dist/lib/chart/category-labels.d.ts +37 -0
  375. package/dist/lib/chart/frame.d.ts +21 -0
  376. package/dist/lib/chart/hover-dim.d.ts +19 -0
  377. package/dist/lib/chart/legend.d.ts +21 -0
  378. package/dist/lib/chart/palette.d.ts +28 -0
  379. package/dist/lib/chart/radial.d.ts +99 -0
  380. package/dist/lib/chart/scale.d.ts +26 -0
  381. package/dist/lib/chart/tooltip.d.ts +60 -0
  382. package/dist/lib/chart/types.d.ts +29 -0
  383. package/dist/lib/chart/use-element-size.d.ts +42 -0
  384. package/dist/lib/date.d.ts +11 -1
  385. package/dist/lib/depth-filter.d.ts +27 -0
  386. package/dist/lib/doc-sections.d.ts +35 -0
  387. package/dist/lib/dropdown-menu.d.ts +19 -0
  388. package/dist/lib/field-width.d.ts +31 -0
  389. package/dist/lib/floating-height.d.ts +15 -0
  390. package/dist/lib/global-overlay.d.ts +5 -0
  391. package/dist/lib/hover-preview.d.ts +32 -0
  392. package/dist/lib/inert.d.ts +11 -0
  393. package/dist/lib/list-box-item.d.ts +16 -0
  394. package/dist/lib/mode-listbox.d.ts +10 -0
  395. package/dist/lib/overlay-scrollbar.d.ts +32 -0
  396. package/dist/lib/row-metrics.d.ts +61 -0
  397. package/dist/lib/row-motion.d.ts +56 -0
  398. package/dist/lib/scrollbar.d.ts +1 -2
  399. package/dist/lib/story-docs.d.ts +19 -3
  400. package/dist/lib/tree-row.d.ts +103 -0
  401. package/dist/lib/truncated-value-tooltip.d.ts +18 -0
  402. package/dist/llms-full.txt +9156 -896
  403. package/dist/llms.txt +4311 -303
  404. package/dist/playground/categories.d.ts +19 -0
  405. package/dist/pretendard.css +937 -0
  406. package/dist/recipes/AppShell.d.ts +21 -0
  407. package/dist/recipes/CategoryManagePage.d.ts +1 -0
  408. package/dist/recipes/ConsultConsolePage.d.ts +1 -0
  409. package/dist/recipes/ExcelFilePopupPage.d.ts +5 -0
  410. package/dist/recipes/LoginPage.d.ts +6 -0
  411. package/dist/recipes/ProductBulkUploadPage.d.ts +1 -0
  412. package/dist/recipes/ProductCreatePage.d.ts +1 -0
  413. package/dist/recipes/ProductCreateSectionsPage.d.ts +5 -0
  414. package/dist/recipes/ProductDetailInlineEditPage.d.ts +9 -0
  415. package/dist/recipes/ProductDetailPage.d.ts +1 -0
  416. package/dist/recipes/ProductListChipFilterPage.d.ts +1 -0
  417. package/dist/recipes/ProductListPage.d.ts +1 -0
  418. package/dist/recipes/ProductOverlayPage.d.ts +1 -0
  419. package/dist/recipes/SalesDashboardPage.d.ts +1 -0
  420. package/dist/recipes/SettingsPage.d.ts +1 -0
  421. package/dist/recipes/StoreSetupPage.d.ts +1 -0
  422. package/dist/recipes/TransferOrderPopupPage.d.ts +2 -0
  423. package/dist/recipes/api.d.ts +220 -0
  424. package/dist/recipes/recipe-story.d.ts +33 -0
  425. package/dist/recipes/router.d.ts +9 -0
  426. package/dist/styles.css +4264 -362
  427. package/dist/theme.css +812 -64
  428. package/eslint/index.mjs +45 -31
  429. package/eslint/lib/class-names.mjs +23 -25
  430. package/eslint/lib/table-column.mjs +34 -8
  431. package/eslint/rules/component-group-gap.mjs +32 -30
  432. package/eslint/rules/divider-vertical-height.mjs +137 -0
  433. package/eslint/rules/field-width-grade.d.mts +41 -0
  434. package/eslint/rules/field-width-grade.mjs +311 -0
  435. package/eslint/rules/no-arbitrary-class.mjs +63 -20
  436. package/eslint/rules/no-off-scale-spacing.mjs +61 -41
  437. package/eslint/rules/no-raw-html-control.mjs +38 -36
  438. package/eslint/rules/prefer-typo-preset.mjs +23 -17
  439. package/eslint/rules/require-locale-number.mjs +14 -19
  440. package/eslint/rules/table-column-width.mjs +114 -0
  441. package/eslint/rules/table-numeric-align.mjs +14 -14
  442. package/eslint/scale.gen.mjs +6 -3
  443. package/package.json +27 -6
@@ -1,55 +1,179 @@
1
- import { type CSSProperties } from 'react';
1
+ import { type CSSProperties, type ForwardedRef, type ReactElement } from 'react';
2
2
  import { type Rule } from '../../lib/form';
3
- import { type SFieldAddonAlign } from '../SField';
3
+ import { type SFieldAddonAlign, type SFieldLabelPosition, type SFieldSize } from '../SField';
4
4
  import { type SIconName } from '../SIcon';
5
5
  import { type SColor } from '../../lib/color';
6
6
  import { type STooltipProps } from '../STooltip';
7
- import { type SSelectOption, type SSelectType } from './select.config';
8
- export type { SSelectOption, SSelectType } from './select.config';
7
+ import { type SSelectOption, type SSelectType, type SSelectValueDisplay } from './select.config';
8
+ import { type SFieldWidth } from '../../lib/field-width';
9
+ export type { SSelectOption, SSelectType, SSelectValueDisplay } from './select.config';
9
10
  export interface SSelectHandle {
10
- /** 트리거 버튼에 포커스 (sdFocus) */
11
+ /** 트리거(combobox)에 포커스 (sdFocus) */
11
12
  focus: () => void;
12
13
  /** 드롭다운 열기 (sdOpen) */
13
14
  open: () => void;
14
15
  }
15
- export interface SSelectProps {
16
- /** 선택 값. multi 타입이면 배열. emitValue=false(기본) 라운드트립을 위해 SSelectOption 객체도 허용 */
16
+ /**
17
+ * `onValueChange` 로 오는 값의 기본 타입.
18
+ *
19
+ * 실제 모양은 `type`(단일/multi)과 `valueAsPrimitive`(옵션 객체/원시값)의 조합으로 정해져 한 타입으로
20
+ * 적을 수 없다. 화면이 안다면 `<SSelect<string> valueAsPrimitive … />` 처럼 넘겨 좁힌다 — 넘기지 않은
21
+ * 기존 코드는 이 기본값으로 예전처럼 동작한다.
22
+ */
23
+ export type SSelectChangeValue = any;
24
+ export interface SSelectProps<TValue extends SSelectChangeValue = SSelectChangeValue> {
25
+ /** 선택 값. multi 타입이면 배열. 기본(valueAsPrimitive=false) 라운드트립을 위해 SSelectOption 객체도 허용 */
17
26
  value?: (string | number | SSelectOption) | (string | number | SSelectOption)[] | null;
18
- /** 값 변경 (sdUpdate). emitValue=false(기본)면 SSelectOption(들), true면 원시값 */
19
- onValueChange?: (value: any) => void;
27
+ /** 값 변경. 기본은 SSelectOption(들)이 오고, `valueAsPrimitive` 면 원시값이 온다 */
28
+ onValueChange?: (value: TValue) => void;
20
29
  /** 열림/닫힘 변경 (sdDropDownShow) */
21
30
  onOpenChange?: (open: boolean) => void;
22
- /** true면 SSelectOption 대신 원시값(string|number) 방출 */
23
- emitValue?: boolean;
31
+ /**
32
+ * `value`·`onValueChange` 가 옵션 객체 대신 원시값(string|number)을 주고받는다.
33
+ *
34
+ * **기본값 `false`(옵션 객체)는 유지한다** — 원본(sd-select) 호환 때문이고, 뒤집으면 이 값을
35
+ * 주지 않던 화면이 조용히 다른 모양의 값을 받게 되어 타입으로도 잡히지 않는다.
36
+ *
37
+ * 새로 쓰는 화면은 켜는 쪽이 다루기 쉽다 — 서버로 보내는 것도, 폼 상태에 담는 것도
38
+ * 결국 값 하나이기 때문이다.
39
+ */
40
+ valueAsPrimitive?: boolean;
24
41
  /** 폼 연동용 name 속성 */
25
42
  name?: string;
26
43
  /** 옵션 목록 (children으로 계층 표현) */
27
44
  options?: SSelectOption[];
28
- /** 타입: default | multi | default_depth | multi_depth */
45
+ /**
46
+ * 타입 — 단일/다중 선택과 계층을 어떻게 보여주는지를 정한다.
47
+ * - `default` · `multi`: 평평한 목록
48
+ * - `default_depth` · `multi_depth`: 계층을 늘 펼친 그룹 헤더로 보여준다.
49
+ * `default_depth` 의 그룹은 고를 수 없고, `multi_depth` 의 그룹 체크박스는 하위 리프를 한꺼번에 토글한다.
50
+ * - `tree` · `multi_tree`: 계층을 접고 펼 수 있는 트리로 보여준다. 처음에는 접혀 있고, 열 때 선택값을 품은
51
+ * 그룹만 펼친다. 검색 중에는 걸린 줄이 보이도록 전부 펼친다.
52
+ * `tree` 는 그룹(부모)도 값으로 고를 수 있다. `multi_tree` 의 그룹 체크박스는 하위 리프를 한꺼번에
53
+ * 토글하고, 방출값에는 리프만 담긴다(`multi_depth` 와 같다).
54
+ * 키보드 → 는 그룹을 펼치거나(펼쳐져 있으면 첫 자식으로 들어가고), ← 는 접거나 부모 줄로 올라간다.
55
+ * 검색 입력에 포커스가 있으면 커서가 그 방향 끝에 닿아 있을 때만 트리 조작으로 쓴다.
56
+ * 그룹의 `disabled` 는 선택만 막고 접고 펴기는 그대로 된다. `tree` 는 하위가 전부 비활성이어도 그룹을 고를 수 있다
57
+ * (그룹까지 막으려면 그룹에 `disabled` 를 직접 준다).
58
+ * 드롭다운 안의 줄은 `STree` 와 같은 모양(연결선·화살표·체크박스·라벨 타이포)으로 그린다.
59
+ */
29
60
  type?: SSelectType;
61
+ /**
62
+ * 트리거에 선택값을 보여주는 방식.
63
+ * - `text`: 선택 라벨을 쉼표로 이어 한 줄로 보여준다. 넘치면 말줄임한다.
64
+ * - `chip`: 선택값마다 칩을 낸다. 칩의 × 를 누르면 그 값만 선택에서 빠지고, 드롭다운은 열리지 않는다.
65
+ * 칩이 한 줄을 넘으면 줄바꿈하고 트리거가 그만큼 높아진다.
66
+ *
67
+ * `chip` 은 `multi`·`multi_depth`·`multi_tree` 에서만 동작한다. 단일 선택 type 에서는 무시하고 `text` 로 보여준다.
68
+ * 전체 선택이면 칩 대신 `allSelectedLabel` 을 보여준다.
69
+ * `multi_depth`·`multi_tree` 에서 그룹의 하위 리프를 전부 고르면 리프 칩 대신 그룹명 칩 하나로 묶고,
70
+ * 그 칩의 × 는 그룹의 리프를 한꺼번에 뺀다.
71
+ * 비활성(select 자체나 해당 옵션)인 칩에는 × 를 내지 않는다.
72
+ */
73
+ valueDisplay?: SSelectValueDisplay;
30
74
  /** 검색 입력 사용 */
31
- useSearch?: boolean;
75
+ showSearch?: boolean;
32
76
  /** 전체선택 옵션 사용 (multi 전용) */
33
- useSelectAll?: boolean;
77
+ showSelectAll?: boolean;
34
78
  /** 전체선택 레이블 */
35
79
  allSelectedLabel?: string;
36
80
  /** placeholder */
37
81
  placeholder?: string;
38
82
  /** 비활성 */
39
83
  disabled?: boolean;
84
+ /**
85
+ * 선택값 지우기(×) 버튼 노출. 선택값이 있고 비활성이 아닐 때만 나타나며,
86
+ * 누르면 드롭다운을 열지 않고 값만 비운다.
87
+ */
88
+ clearable?: boolean;
40
89
  /** 에러 상태 */
41
90
  error?: boolean;
42
91
  /** 유효성 규칙 — 닫힐 때 자동 검증 */
43
92
  rules?: Rule[];
44
93
  /** 레이블 툴팁 상세 옵션 */
45
94
  labelTooltipProps?: Partial<STooltipProps>;
46
- /** 드롭다운 최대 높이 */
95
+ /** 드롭다운 최대 높이. 기본 640px — 창이 이보다 작으면 창 안에 남는 만큼까지만 채워진다 */
47
96
  dropdownHeight?: string;
48
97
  /** 드롭다운 너비 (없으면 트리거 너비). 창보다 넓게 줘도 창 폭까지만 벌어진다. */
49
98
  dropdownWidth?: string;
50
99
  /** 드롭다운 최대 너비. 창이 이보다 좁으면 창 폭이 상한이 된다. */
51
100
  maxDropdownWidth?: string;
101
+ /**
102
+ * 화면 위·아래로 더 그려둘 여유 행 수 — 빠르게 스크롤할 때 빈 칸이 보이지 않게 한다.
103
+ *
104
+ * 목록은 **언제나 보이는 범위만 렌더한다**(끄는 prop 은 없다). 그래서 여는 비용이 옵션
105
+ * 수와 무관하고, 이 값만이 DOM 에 남는 행 수를 정한다 — 한 화면 분량 + 앞뒤로 이만큼.
106
+ */
107
+ virtualBuffer?: number;
108
+ /**
109
+ * 목록 끝이 가까워지면 부른다 — 다음 페이지를 받아 `options` 뒤에 이어붙이라는 신호다.
110
+ * `hasMore` 가 `false` 이거나 `loading` 중이면 부르지 않고, 같은 목록 길이로 두 번 부르지 않는다.
111
+ *
112
+ * **`options` 는 갈아끼우지 말고 이어붙인다.** depth 타입이면 이미 있는 그룹의 `children`
113
+ * 에 이어야 한다 — 같은 그룹을 새 항목으로 또 밀어 넣으면 목록에 같은 헤더가 두 번 뜬다.
114
+ *
115
+ * 아직 받지 않은 옵션은 라벨을 알 수 없다. 그래서 이 prop 을 쓰는 화면은
116
+ * `valueAsPrimitive` 를 켜지 않는 편이 안전하다 — 기본값(옵션 객체)이면 선택값이 라벨을
117
+ * 함께 들고 다녀서, 그 옵션이 목록에서 사라져도 트리거에 이름이 그대로 남는다.
118
+ */
119
+ onReachEnd?: () => void;
120
+ /**
121
+ * 목록 끝에서 이만큼 행이 남았을 때 `onReachEnd` 를 부른다 — 스크롤이 바닥에 닿기 전에 미리 받아 둔다.
122
+ *
123
+ * **한 페이지 크기보다 충분히 작게 잡는다.** 한 페이지가 드롭다운을 채우고도 이 문턱만큼
124
+ * 남기지 못하면, 페이지가 도착하는 족족 다음 페이지를 다시 청하게 된다 — 사용자가 스크롤을
125
+ * 하지 않아도 목록 전체를 받아 오므로 페이징을 한 의미가 사라진다.
126
+ * (한 페이지 50개 · 드롭다운에 20행이 보인다면 남는 것은 30행이므로, 문턱은 그보다 작아야 한다)
127
+ */
128
+ reachEndThreshold?: number;
129
+ /** 더 받아올 페이지가 남았는가. `false` 면 `onReachEnd` 를 더 부르지 않는다 */
130
+ hasMore?: boolean;
131
+ /**
132
+ * 옵션을 받는 중 — 트리거의 펼침 아이콘 자리에 스피너를, 드롭다운 하단에 로딩 행을 낸다.
133
+ * 첫 조회(옵션이 아직 없을 때)든 다음 페이지든 같은 prop 이고, 그동안 `onReachEnd` 를 다시 부르지 않는다.
134
+ *
135
+ * 로딩 중에도 열 수 있다 — 서버 검색·페이징은 열린 채로 로딩을 오가므로, 열기를 막으면
136
+ * 닫았다 다시 연 사용자에게 클릭이 먹지 않는 고장으로 보인다. 받는 중에는 "표시할 항목이
137
+ * 없습니다."를 내지 않는다.
138
+ *
139
+ * 비활성이면 트리거 스피너를 내지 않는다 — 열 수 없는데 스피너가 돌면 "기다리면 열린다"로 읽힌다.
140
+ */
141
+ loading?: boolean;
142
+ /**
143
+ * 검색을 서버로 넘긴다 — 내부 필터링을 하지 않고 `options` 를 받은 그대로 보여준다.
144
+ * `onSearchChange` 로 온 검색어에 맞는 목록을 소비 앱이 다시 내려줘야 한다.
145
+ *
146
+ * 켜면 검색바가 옵션 수와 무관하게 항상 나온다 — 검색 결과가 줄었다고 검색바가 사라지면
147
+ * 검색어를 지울 수단이 없어지기 때문이다.
148
+ */
149
+ serverSearch?: boolean;
150
+ /** 검색어 변경. `serverSearch` 면 `searchDebounce` 만큼 묶어서 온다 */
151
+ onSearchChange?: (query: string) => void;
152
+ /** `serverSearch` 에서 검색어를 서버로 넘기기 전 기다리는 시간(ms) */
153
+ searchDebounce?: number;
52
154
  label?: string;
155
+ /**
156
+ * 스크린리더용 접근성 레이블. **`label` 이 없을 때만 준다** — 표의 셀이나 필터 줄처럼 라벨 글자 없이
157
+ * 서는 셀렉트는 이것이 없으면 고른 값만 읽혀 무엇을 고르는 칸인지 알 수 없다. 라벨처럼 고른 값 앞에
158
+ * 이어 읽힌다("정렬 최신순").
159
+ *
160
+ * `label` 이 있으면 그 글자가 이미 이름이 되므로 이 값은 쓰지 않는다.
161
+ */
162
+ ariaLabel?: string;
163
+ /**
164
+ * 레이블 위치 — `top` 이면 라벨이 컨트롤 위에 선다 (SField 로 그대로 넘어간다).
165
+ *
166
+ * @nodemo SField 에서 내려오는 공통 필드 옵션이다 — 같은 데모를 컨트롤마다 복제하지 않고
167
+ * 대표 컨트롤 `SInput` 과 `SField` 에 한 번 둔다 (scripts/check-docs-coverage.mjs 머리말).
168
+ */
169
+ labelPosition?: SFieldLabelPosition;
170
+ /**
171
+ * 보조 레이블 — 레이블 오른쪽 같은 줄에 붙는다 (SField 로 그대로 넘어간다).
172
+ *
173
+ * @nodemo SField 에서 내려오는 공통 필드 옵션이다 — 같은 데모를 컨트롤마다 복제하지 않고
174
+ * 대표 컨트롤 `SInput` 과 `SField` 에 한 번 둔다 (scripts/check-docs-coverage.mjs 머리말).
175
+ */
176
+ subLabel?: string;
53
177
  labelWidth?: number | string;
54
178
  /** 레이블 영역 아이콘 */
55
179
  icon?: SIconName;
@@ -62,8 +186,26 @@ export interface SSelectProps {
62
186
  addonAlign?: SFieldAddonAlign;
63
187
  hint?: string;
64
188
  errorMessage?: string;
65
- width?: number | string;
189
+ /**
190
+ * 컨트롤 너비 — 폭 등급(`'xs' | 'sm' | 'md' | 'lg' | 'xl'`) · 숫자=px · CSS 길이.
191
+ * 등급은 `--cmp-field-width-*` 토큰으로 풀리므로 토큰이 바뀌면 화면이 따라간다.
192
+ * 값 길이에 상한이 없으면 `"100%"` 로 두어 행 전체를 쓴다.
193
+ * 셀렉트는 `maxLength` 개념이 없어 목록 최장값을 담는 등급으로 고른다.
194
+ */
195
+ width?: SFieldWidth;
196
+ /**
197
+ * 트리거 크기 (기본값 `'sm'`). 높이·패딩·간격·글자 크기를 `--cmp-select-{size}-*` 토큰으로 바꾼다.
198
+ * 드롭다운 목록은 크기와 무관하게 같다.
199
+ * `valueDisplay="chip"` 이면 `md` 는 SChip 과 같은 칩을, `sm` 은 28px 트리거에 맞춘 낮은 칩을 낸다.
200
+ */
201
+ size?: SFieldSize;
66
202
  className?: string;
67
203
  style?: CSSProperties;
68
204
  }
69
- export declare const SSelect: import("react").ForwardRefExoticComponent<SSelectProps & import("react").RefAttributes<SSelectHandle>>;
205
+ /**
206
+ * 값 타입을 받는 제네릭 컴포넌트로 내보낸다 — `forwardRef` 는 타입 파라미터를 지워 버리므로
207
+ * 바깥 시그니처만 다시 씌운다(STable·SDraggableList 와 같은 방식).
208
+ */
209
+ export declare const SSelect: <TValue extends SSelectChangeValue = SSelectChangeValue>(props: SSelectProps<TValue> & {
210
+ ref?: ForwardedRef<SSelectHandle>;
211
+ }) => ReactElement | null;
@@ -1 +1 @@
1
- export { SSelect, type SSelectHandle, type SSelectProps, type SSelectOption, type SSelectType, } from './SSelect';
1
+ export { SSelect, type SSelectHandle, type SSelectProps, type SSelectChangeValue, type SSelectOption, type SSelectType, type SSelectValueDisplay, } from './SSelect';
@@ -4,18 +4,26 @@ export interface SSelectOption {
4
4
  disabled?: boolean;
5
5
  children?: SSelectOption[];
6
6
  }
7
- export type SSelectType = 'default' | 'multi' | 'default_depth' | 'multi_depth';
7
+ export type SSelectType = 'default' | 'multi' | 'default_depth' | 'multi_depth' | 'tree' | 'multi_tree';
8
+ /** 트리거에 선택값을 보여주는 방식 — 쉼표로 이은 텍스트 | 값마다 칩 */
9
+ export type SSelectValueDisplay = 'text' | 'chip';
8
10
  export interface FlatOption {
9
11
  value: string;
10
12
  label: string;
11
13
  disabled: boolean;
12
14
  depth: number;
13
- /** children 을 가진 그룹(비선택) 노드 */
15
+ /** children 을 가진 그룹 노드 — 그 자체가 값이 되는 것은 `tree` 타입뿐이다 */
14
16
  isGroup: boolean;
15
17
  raw: string | number;
16
18
  }
17
- /** 트리 옵션을 depth 정보를 유지한 평탄 리스트로 변환. */
18
- export declare function flattenOptions(options: SSelectOption[], depth?: number): FlatOption[];
19
+ /**
20
+ * 트리 옵션을 depth 정보를 유지한 평탄 리스트로 변환.
21
+ *
22
+ * @param inheritDisabled 하위가 전부 비활성인 그룹을 비활성으로 칠 것인가. 그룹이 값이 아닌 타입에서는
23
+ * 고를 것이 없는 그룹이라 잠그는 게 맞지만, 그룹 자체가 값인 `tree` 에서는 자식이 막혔다고 그룹까지
24
+ * 고를 수 없게 되면 안 된다 — 그때는 그룹에 직접 준 `disabled` 만 본다.
25
+ */
26
+ export declare function flattenOptions(options: SSelectOption[], depth?: number, inheritDisabled?: boolean): FlatOption[];
19
27
  /** 선택 가능한(비그룹) 옵션만 */
20
28
  export declare const selectableOptions: (flat: FlatOption[]) => FlatOption[];
21
29
  /**
@@ -25,7 +33,46 @@ export declare const selectableOptions: (flat: FlatOption[]) => FlatOption[];
25
33
  * (multi_depth 부모 체크박스의 상태/카운트/토글 계산에 사용)
26
34
  */
27
35
  export declare function collectGroupLeafValues(flat: FlatOption[], groupIndex: number): string[];
36
+ /**
37
+ * 트리 타입에서 접힌 그룹의 자손을 걷어내고 화면에 남는 줄만 돌려준다.
38
+ * `sourceIndex[i]` 는 남은 i 번째 줄이 입력 `rows` 에서 몇 번째였는가 — 접힌 그룹의 하위 리프는
39
+ * 화면에 없어도 그룹 체크박스가 세야 하므로, 그 계산은 입력 `rows` 기준으로 한다.
40
+ */
41
+ export declare function visibleTreeRows(rows: FlatOption[], isExpanded: (group: FlatOption) => boolean): {
42
+ rows: FlatOption[];
43
+ sourceIndex: number[];
44
+ };
45
+ /**
46
+ * 트리 줄마다의 자리 정보 — 화면에 남은 줄(접힘·검색 반영 뒤) 기준이다.
47
+ * - `isLast`·`ancestorLast`: 연결선용. 자기가 같은 부모 아래 마지막 줄인가, 조상(depth 1 부터 부모까지)이
48
+ * 각자 마지막 줄인가. STree 가 재귀로 내려가며 넘기는 값과 같은 모양을 펴진 목록에서 구한다.
49
+ * - `posInSet`·`setSize`: 같은 부모 아래 몇 번째 / 형제가 모두 몇 개. 가상 스크롤로 일부 줄만 DOM 에
50
+ * 있어도 보조기기가 창 안 줄을 트리 전부로 읽지 않게 `aria-posinset`·`aria-setsize` 로 알린다.
51
+ */
52
+ export declare function treeLineInfo(rows: FlatOption[]): {
53
+ isLast: boolean;
54
+ ancestorLast: boolean[];
55
+ posInSet: number;
56
+ setSize: number;
57
+ }[];
58
+ /** 선택값을 품은 그룹들의 value — 트리를 열 때 고른 항목이 보이도록 펼쳐 둘 그룹이다 */
59
+ export declare function ancestorGroupValues(flat: FlatOption[], selected: Set<string>): Set<string>;
28
60
  /** 라벨에 HTML 태그가 있는지 (원본 isHtmlLabel) */
29
61
  export declare const isHtmlLabel: (label: string) => boolean;
30
62
  /** HTML 라벨에서 태그를 제거한 텍스트 (검색 매칭용, 원본 extractText) */
31
63
  export declare const extractText: (html: string) => string;
64
+ /**
65
+ * 아직 한 번도 그려지지 않은 행의 **추정** 높이(px). 리프 옵션은 세로 패딩 4px + 행간 20px
66
+ * 이라 보통 이 값이지만, 그룹 헤더나 큰 글씨가 섞인 라벨은 다르다 — 화면에 나온 행은
67
+ * 실측으로 덮이므로(`lib/row-metrics.ts`) 이 값은 처음 스크롤바 길이를 잡는 출발점일 뿐이다.
68
+ */
69
+ export declare const OPTION_ROW_HEIGHT = 28;
70
+ /**
71
+ * 화면 위·아래로 더 그려둘 기본 여유 행 수.
72
+ * 640px 드롭다운이 20행 남짓 보이므로, 앞뒤 10행이면 한 화면을 굴리는 동안 빈 칸이 보이지 않는다.
73
+ */
74
+ export declare const DEFAULT_VIRTUAL_BUFFER = 10;
75
+ /** 목록 끝에서 이만큼 행이 남았을 때 다음 페이지를 청하는 기본값 */
76
+ export declare const DEFAULT_REACH_END_THRESHOLD = 10;
77
+ /** `serverSearch` 에서 검색어를 서버로 넘기기 전 기다리는 기본 시간(ms) */
78
+ export declare const DEFAULT_SEARCH_DEBOUNCE = 300;
@@ -0,0 +1,67 @@
1
+ # SSkeleton
2
+
3
+ > 자동 생성 문서 — `npm run docs:gen`. 소스: 각 컴포넌트의 Props/Handle 인터페이스 + import 의존성.
4
+
5
+ ### SSkeleton
6
+
7
+ #### Props
8
+
9
+ | Prop | Type | Default | Description |
10
+ |------|------|---------|-------------|
11
+ | `type?` | `SSkeletonType` | `'rect'` | 자리표시 모양 - `rect`: 사각형. 폭은 부모를, 높이는 한 줄 높이를 따른다 — 이미지·카드 영역은 `height` 를 준다 - `circle`: 원형(아바타 등) - `text`: 텍스트 한 줄. 부모 타이포의 line-height 를 따르고 세로로 절반만 칠한다 - `button`·`input`·`tag`·`checkbox`·`radio`·`switch`: 해당 컴포넌트 기본 size 의 크기·모서리 |
12
+ | `mode?` | `SSkeletonMode` | `'light'` | 놓이는 바탕의 밝기 - `light`: 흰 면·회색 면 위. 바탕보다 짙은 반투명 회색 - `dark`: 어두운 면 위. 바탕보다 밝은 반투명 회색 |
13
+ | `animation?` | `SSkeletonAnimation` | `'wave'` | 로딩 애니메이션 - `wave`: 하이라이트 띠가 왼쪽에서 오른쪽으로 지나간다 - `pulse`: 크기가 숨쉬듯 줄었다 커진다. 블록 전체가 움직이므로 아바타처럼 작은 모양에만 쓴다 - `fade`: 투명도가 숨쉬듯 바뀐다 - `none`: 애니메이션 없음 OS 의 동작 줄이기 설정이 켜져 있으면 어떤 값이든 멈춘다. |
14
+ | `animationSpeed?` | `number` | `1500` | 애니메이션 한 주기 (ms) |
15
+ | `square?` | `boolean` | `false` | 모서리를 각지게 |
16
+ | `size?` | `string \| number` | — | 가로·세로를 한 번에 지정. `width`·`height` 가 있으면 그쪽이 우선한다. 숫자는 px |
17
+ | `width?` | `string \| number` | — | 폭. 숫자는 px |
18
+ | `height?` | `string \| number` | — | 높이. 숫자는 px |
19
+
20
+ ## Types
21
+
22
+ ### SSkeletonType
23
+
24
+ ```ts
25
+ export type SSkeletonType = (typeof SKELETON_TYPES)[number];
26
+ ```
27
+
28
+ ### SSkeletonMode
29
+
30
+ ```ts
31
+ export type SSkeletonMode = (typeof SKELETON_MODES)[number];
32
+ ```
33
+
34
+ ### SSkeletonAnimation
35
+
36
+ ```ts
37
+ export type SSkeletonAnimation = (typeof SKELETON_ANIMATIONS)[number];
38
+ ```
39
+
40
+ ### SKELETON_TYPES
41
+
42
+ ```ts
43
+ export const SKELETON_TYPES = [
44
+ 'rect',
45
+ 'circle',
46
+ 'text',
47
+ 'button',
48
+ 'input',
49
+ 'tag',
50
+ 'checkbox',
51
+ 'radio',
52
+ 'switch',
53
+ ] as const;
54
+ ```
55
+
56
+ ### SKELETON_MODES
57
+
58
+ ```ts
59
+ export const SKELETON_MODES = ['light', 'dark'] as const;
60
+ ```
61
+
62
+ ### SKELETON_ANIMATIONS
63
+
64
+ ```ts
65
+ export const SKELETON_ANIMATIONS = ['wave', 'pulse', 'fade', 'none'] as const;
66
+ ```
67
+
@@ -0,0 +1,43 @@
1
+ import { type HTMLAttributes } from 'react';
2
+ import { type SSkeletonAnimation, type SSkeletonMode, type SSkeletonType } from './skeleton.config';
3
+ export interface SSkeletonProps extends HTMLAttributes<HTMLDivElement> {
4
+ /**
5
+ * 자리표시 모양
6
+ * - `rect`: 사각형. 폭은 부모를, 높이는 한 줄 높이를 따른다 — 이미지·카드 영역은 `height` 를 준다
7
+ * - `circle`: 원형(아바타 등)
8
+ * - `text`: 텍스트 한 줄. 부모 타이포의 line-height 를 따르고 세로로 절반만 칠한다
9
+ * - `button`·`input`·`tag`·`checkbox`·`radio`·`switch`: 해당 컴포넌트 기본 size 의 크기·모서리
10
+ */
11
+ type?: SSkeletonType;
12
+ /**
13
+ * 놓이는 바탕의 밝기
14
+ * - `light`: 흰 면·회색 면 위. 바탕보다 짙은 반투명 회색
15
+ * - `dark`: 어두운 면 위. 바탕보다 밝은 반투명 회색
16
+ */
17
+ mode?: SSkeletonMode;
18
+ /**
19
+ * 로딩 애니메이션
20
+ * - `wave`: 하이라이트 띠가 왼쪽에서 오른쪽으로 지나간다
21
+ * - `pulse`: 크기가 숨쉬듯 줄었다 커진다. 블록 전체가 움직이므로 아바타처럼 작은 모양에만 쓴다
22
+ * - `fade`: 투명도가 숨쉬듯 바뀐다
23
+ * - `none`: 애니메이션 없음
24
+ *
25
+ * OS 의 동작 줄이기 설정이 켜져 있으면 어떤 값이든 멈춘다.
26
+ */
27
+ animation?: SSkeletonAnimation;
28
+ /** 애니메이션 한 주기 (ms) */
29
+ animationSpeed?: number;
30
+ /** 모서리를 각지게 */
31
+ square?: boolean;
32
+ /** 가로·세로를 한 번에 지정. `width`·`height` 가 있으면 그쪽이 우선한다. 숫자는 px */
33
+ size?: string | number;
34
+ /** 폭. 숫자는 px */
35
+ width?: string | number;
36
+ /** 높이. 숫자는 px */
37
+ height?: string | number;
38
+ }
39
+ /**
40
+ * SSkeleton — 데이터가 오기 전 콘텐츠 자리를 같은 모양으로 채워 두는 자리표시. Quasar QSkeleton 모티브.
41
+ * 장식이라 보조기기에는 숨긴다(`aria-hidden`). 로딩 중이라는 사실은 감싸는 영역에 `aria-busy` 로 알린다.
42
+ */
43
+ export declare const SSkeleton: import("react").ForwardRefExoticComponent<SSkeletonProps & import("react").RefAttributes<HTMLDivElement>>;
@@ -0,0 +1,2 @@
1
+ export { SSkeleton, type SSkeletonProps } from './SSkeleton';
2
+ export { SKELETON_TYPES, SKELETON_ANIMATIONS, SKELETON_MODES, SKELETON_TYPE_CONFIG, type SSkeletonType, type SSkeletonAnimation, type SSkeletonMode, } from './skeleton.config';
@@ -0,0 +1,24 @@
1
+ export declare const SKELETON_TYPES: readonly ["rect", "circle", "text", "button", "input", "tag", "checkbox", "radio", "switch"];
2
+ export type SSkeletonType = (typeof SKELETON_TYPES)[number];
3
+ export declare const SKELETON_ANIMATIONS: readonly ["wave", "pulse", "fade", "none"];
4
+ export type SSkeletonAnimation = (typeof SKELETON_ANIMATIONS)[number];
5
+ export declare const SKELETON_MODES: readonly ["light", "dark"];
6
+ export type SSkeletonMode = (typeof SKELETON_MODES)[number];
7
+ /**
8
+ * type 별 기본 크기·모서리. 값이 없는 축은 내용(공백 한 글자)과 부모 폭을 따른다.
9
+ * DS 모양(button·input…)은 해당 컴포넌트의 **기본 size** 토큰을 그대로 가리켜
10
+ * 토큰이 바뀌어도 실제 컴포넌트와 어긋나지 않는다. 폭은 토큰이 없어 Quasar 기본값을 따른다.
11
+ */
12
+ export declare const SKELETON_TYPE_CONFIG: Record<SSkeletonType, {
13
+ width?: string;
14
+ height?: string;
15
+ radius: string;
16
+ }>;
17
+ /**
18
+ * mode 별 색. 배경색을 반투명(`cmp-skeleton-opacity`)으로 깔아 흰 면·회색 면 어디서든 바탕보다 한 단계 짙게(dark 는 밝게) 보인다.
19
+ * 밝은 면(light)에는 어두운 색(`bg-dark`)을, 어두운 면(dark)에는 밝은 색(`bg-light`)을 쓴다 — Quasar 의 검정·흰색 반투명과 같은 축.
20
+ */
21
+ export declare const SKELETON_COLORS: Record<SSkeletonMode, {
22
+ bg: string;
23
+ wave: string;
24
+ }>;
@@ -0,0 +1,86 @@
1
+ # SSlider
2
+
3
+ > 자동 생성 문서 — `npm run docs:gen`. 소스: 각 컴포넌트의 Props/Handle 인터페이스 + import 의존성.
4
+
5
+ ### SSlider
6
+
7
+ #### Props
8
+
9
+ | Prop | Type | Default | Description |
10
+ |------|------|---------|-------------|
11
+ | `value?` | `V` | — | 값 (제어). **`number` 면 단일, `[시작, 끝]` 이면 범위 슬라이더**가 된다 — 손잡이 개수와 `onValueChange` 가 돌려주는 모양이 이 값을 따른다. 범위는 두 손잡이가 서로를 넘어가지 않는다. |
12
+ | `min?` | `number` | `0` | 최솟값 |
13
+ | `max?` | `number` | `100` | 최댓값 |
14
+ | `step?` | `number` | `1` | 한 칸 크기. 값은 `min` 에서 이 간격으로만 움직인다 |
15
+ | `marks?` | `boolean \| SSliderMark[]` | — | 눈금. `true` 면 `step` 마다 점을 찍고, 배열이면 그 위치에만 찍는다(라벨을 함께 줄 수 있다). 고를 수 있는 값이 몇 개 안 될 때 어디서 멈추는지 보여 주는 용도다 — `step` 이 촘촘하면 `true` 대신 배열로 대표 위치만 준다. |
16
+ | `showValue?` | `SSliderShowValue` | `'drag'` | 값 말풍선 표시 시점. - `drag` — 드래그·키보드 조작 중, 손잡이에 마우스를 올렸을 때만 보인다 - `always` — 늘 보인다. 값을 숫자로 따로 보여 주지 않는 자리에서 쓴다 - `none` — 보이지 않는다. 옆에 값을 따로 적어 둘 때 쓴다 `none` 이 아니면 말풍선 자리만큼 위쪽 공간을 미리 잡아 두어, 나타날 때 레이아웃이 밀리지 않는다. |
17
+ | `formatValue?` | `(value: number) => string` | `String` | 말풍선·스크린리더에 읽히는 값 표기 (예: `v => \`${v}%\``) |
18
+ | `size?` | `SFieldSize` | `'sm'` | 크기 — 다른 필드와 나란히 놓일 때 라벨과 높이를 맞추는 등급이다. 슬라이더 모양 자체는 같다. |
19
+ | `rules?` | `Rule[]` | — | 유효성 규칙 — 조작이 끝날 때(`onValueCommit` 시점)와 SForm 제출 시 검증 |
20
+ | `name?` | `string` | — | 폼 연동용 name |
21
+ | `status?` | `SFieldStatus` | — | 필드 상태 ('default' | 'pass' | 'error') |
22
+ | `label?` | `string` | — | 레이블 텍스트. 손잡이의 접근성 이름으로도 쓰인다 |
23
+ | `labelPosition?` | `SFieldLabelPosition` | — | 레이블 위치 — `top` 이면 라벨이 컨트롤 위에 선다 (SField 로 그대로 넘어간다). |
24
+ | `subLabel?` | `string` | — | 보조 레이블 — 레이블 오른쪽 같은 줄에 붙는다 (SField 로 그대로 넘어간다). |
25
+ | `labelWidth?` | `number \| string` | — | 레이블 너비 (숫자=px) |
26
+ | `icon?` | `SIconName` | — | 레이블 영역 아이콘 |
27
+ | `iconColor?` | `SColor` | — | 레이블 영역 아이콘 색상 |
28
+ | `labelTooltip?` | `string` | — | 레이블 툴팁 텍스트 |
29
+ | `labelTooltipProps?` | `Partial<STooltipProps>` | — | 레이블 툴팁 상세 옵션 |
30
+ | `hint?` | `string` | — | 하단 힌트 |
31
+ | `error?` | `boolean` | — | 에러 상태 |
32
+ | `errorMessage?` | `string` | — | 에러 메시지 |
33
+ | `width?` | `SFieldWidth` | — | 컨트롤 너비 — 폭 등급 · 숫자=px · CSS 길이. 기본은 부모 폭을 채운다. |
34
+ | `disabled?` | `boolean` | `false` | 비활성 — 조작·포커스가 모두 막힌다 |
35
+ | `readOnly?` | `boolean` | `false` | 읽기 전용 — 값은 그대로 보이고 키보드 포커스는 받지만 값이 바뀌지 않는다 |
36
+ | `className?` | `string` | — | |
37
+ | `style?` | `CSSProperties` | — | |
38
+
39
+ #### Events
40
+
41
+ | Event | Type | Description |
42
+ |-------|------|-------------|
43
+ | `onValueChange` | `(value: V) => void` | 값 변경 (sdUpdate) — 드래그 중 매 step 마다 호출된다 |
44
+ | `onValueCommit` | `(value: V) => void` | 조작이 끝났을 때 한 번 호출된다 (포인터를 놓을 때, 키보드로 한 칸 움직일 때). 값을 서버에 보내거나 목록을 다시 불러오는 등 **매 step 마다 하면 안 되는 일**은 여기서 한다. |
45
+
46
+ ## Types
47
+
48
+ ### SSliderValue
49
+
50
+ ```ts
51
+ /** 단일 값은 `number`, 범위는 `[시작, 끝]` */
52
+ export type SSliderValue = number | [number, number];
53
+ ```
54
+
55
+ ### SSliderMark
56
+
57
+ ```ts
58
+ /** 눈금 하나 */
59
+ export interface SSliderMark {
60
+ /** 눈금 위치 값 (`min`~`max`) */
61
+ value: number;
62
+ /** 눈금 아래 라벨. 없으면 점만 찍힌다 */
63
+ label?: string;
64
+ }
65
+ ```
66
+
67
+ ### SSliderShowValue
68
+
69
+ ```ts
70
+ /** 값 말풍선을 언제 보일지 */
71
+ export type SSliderShowValue = 'none' | 'drag' | 'always';
72
+ ```
73
+
74
+ ## Dependencies
75
+
76
+ ### Depends on
77
+
78
+ - [SField](../SField)
79
+
80
+ ### Graph
81
+
82
+ ```mermaid
83
+ graph TD;
84
+ SSlider --> SField
85
+ style SSlider fill:#f9f,stroke:#333,stroke-width:4px
86
+ ```