sellmate-design-system-react 9.0.0-beta.7 โ†’ 9.0.0-beta.71

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 (388) hide show
  1. package/AGENTS.md +1873 -250
  2. package/README.md +76 -24
  3. package/dist/components/SAccountListBox/AccountListBoxPortal.d.ts +31 -0
  4. package/dist/components/SAccountListBox/README.md +86 -0
  5. package/dist/components/SAccountListBox/SAccountListBox.d.ts +79 -0
  6. package/dist/components/SAccountListBox/SystemMenuPortal.d.ts +58 -0
  7. package/dist/components/SAccountListBox/accountListBox.config.d.ts +64 -0
  8. package/dist/components/SAccountListBox/index.d.ts +2 -0
  9. package/dist/components/SActionModal/README.md +1 -0
  10. package/dist/components/SActionModal/SActionModal.d.ts +9 -1
  11. package/dist/components/SBadge/README.md +27 -0
  12. package/dist/components/SBadge/SBadge.d.ts +1 -1
  13. package/dist/components/SBarChart/README.md +122 -0
  14. package/dist/components/SBarChart/SBarChart.d.ts +99 -0
  15. package/dist/components/SBarChart/barChart.config.d.ts +85 -0
  16. package/dist/components/SBarChart/index.d.ts +2 -0
  17. package/dist/components/SBarcodeInput/README.md +13 -4
  18. package/dist/components/SBarcodeInput/SBarcodeInput.d.ts +18 -3
  19. package/dist/components/SButton/README.md +40 -0
  20. package/dist/components/SCalendar/README.md +13 -0
  21. package/dist/components/SCalendarBoard/CalendarDayCard.d.ts +53 -0
  22. package/dist/components/SCalendarBoard/CalendarDayEventListBox.d.ts +26 -0
  23. package/dist/components/SCalendarBoard/CalendarEventButton.d.ts +20 -0
  24. package/dist/components/SCalendarBoard/CalendarMoreButton.d.ts +18 -0
  25. package/dist/components/SCalendarBoard/README.md +148 -0
  26. package/dist/components/SCalendarBoard/SCalendarBoard.d.ts +83 -0
  27. package/dist/components/SCalendarBoard/calendar-board-layout.d.ts +59 -0
  28. package/dist/components/SCalendarBoard/calendarBoard.config.d.ts +38 -0
  29. package/dist/components/SCalendarBoard/index.d.ts +3 -0
  30. package/dist/components/SCalendarBoard/types.d.ts +40 -0
  31. package/dist/components/SCallout/README.md +17 -1
  32. package/dist/components/SCallout/SCallout.d.ts +14 -4
  33. package/dist/components/SCard/README.md +17 -0
  34. package/dist/components/SCard/SCard.d.ts +26 -2
  35. package/dist/components/SChatAttachedFile/README.md +33 -0
  36. package/dist/components/SChatAttachedFile/SChatAttachedFile.d.ts +13 -0
  37. package/dist/components/SChatAttachedFile/chatAttachedFile.config.d.ts +23 -0
  38. package/dist/components/SChatAttachedFile/index.d.ts +2 -0
  39. package/dist/components/SChatFile/README.md +33 -0
  40. package/dist/components/SChatFile/SChatFile.d.ts +37 -0
  41. package/dist/components/SChatFile/chatFile.config.d.ts +56 -0
  42. package/dist/components/SChatFile/index.d.ts +2 -0
  43. package/dist/components/SChatInput/README.md +44 -0
  44. package/dist/components/SChatInput/SChatInput.d.ts +60 -0
  45. package/dist/components/SChatInput/index.d.ts +1 -0
  46. package/dist/components/SChatMessage/README.md +86 -0
  47. package/dist/components/SChatMessage/SChatMessage.d.ts +123 -0
  48. package/dist/components/SChatMessage/index.d.ts +1 -0
  49. package/dist/components/SChatSystemMessage/README.md +12 -0
  50. package/dist/components/SChatSystemMessage/SChatSystemMessage.d.ts +18 -0
  51. package/dist/components/SChatSystemMessage/index.d.ts +1 -0
  52. package/dist/components/SCheckbox/README.md +8 -0
  53. package/dist/components/SChip/README.md +25 -0
  54. package/dist/components/SChip/SChip.d.ts +8 -0
  55. package/dist/components/SChip/index.d.ts +1 -1
  56. package/dist/components/SChipFilter/README.md +369 -14
  57. package/dist/components/SChipFilter/SChipFilter.d.ts +169 -60
  58. package/dist/components/SChipFilter/index.d.ts +1 -1
  59. package/dist/components/SChipInput/README.md +17 -2
  60. package/dist/components/SChipInput/SChipInput.d.ts +16 -3
  61. package/dist/components/SChipInput/index.d.ts +1 -1
  62. package/dist/components/SCircleProgress/README.md +8 -0
  63. package/dist/components/SConfirmModal/README.md +13 -4
  64. package/dist/components/SConfirmModal/SConfirmModal.d.ts +46 -9
  65. package/dist/components/SContextAlert/README.md +52 -0
  66. package/dist/components/SContextAlert/SContextAlert.d.ts +51 -0
  67. package/dist/components/SContextAlert/contextAlert.config.d.ts +22 -0
  68. package/dist/components/SContextAlert/index.d.ts +2 -0
  69. package/dist/components/SDatePicker/README.md +21 -2
  70. package/dist/components/SDatePicker/SDatePicker.d.ts +35 -5
  71. package/dist/components/SDateRangePicker/README.md +21 -4
  72. package/dist/components/SDateRangePicker/SDateRangePicker.d.ts +37 -7
  73. package/dist/components/SDivider/README.md +7 -0
  74. package/dist/components/SDivider/SDivider.d.ts +11 -0
  75. package/dist/components/SDonutChart/README.md +105 -0
  76. package/dist/components/SDonutChart/SDonutChart.d.ts +82 -0
  77. package/dist/components/SDonutChart/index.d.ts +1 -0
  78. package/dist/components/SDraggableItem/README.md +37 -0
  79. package/dist/components/SDraggableItem/SDraggableItem.d.ts +2 -0
  80. package/dist/components/SDraggableItem/index.d.ts +1 -1
  81. package/dist/components/SDraggableList/README.md +33 -3
  82. package/dist/components/SDraggableList/SDraggableList.d.ts +18 -3
  83. package/dist/components/SDraggableList/index.d.ts +1 -1
  84. package/dist/components/SDrawer/README.md +8 -0
  85. package/dist/components/SDropdownButton/README.md +19 -0
  86. package/dist/components/SEditor/EditorBody.d.ts +36 -0
  87. package/dist/components/SEditor/EditorToolbar.d.ts +93 -0
  88. package/dist/components/SEditor/README.md +204 -0
  89. package/dist/components/SEditor/SEditor.d.ts +121 -0
  90. package/dist/components/SEditor/editor-icons.d.ts +63 -0
  91. package/dist/components/SEditor/editor.config.d.ts +119 -0
  92. package/dist/components/SEditor/index.d.ts +8 -0
  93. package/dist/components/SEditor/tiptap-api.d.ts +29 -0
  94. package/dist/components/SEditor/use-is-mobile.d.ts +14 -0
  95. package/dist/components/SExpansionItem/README.md +36 -0
  96. package/dist/components/SExpansionItem/index.d.ts +1 -1
  97. package/dist/components/SField/README.md +36 -5
  98. package/dist/components/SField/SField.d.ts +33 -8
  99. package/dist/components/SField/index.d.ts +1 -1
  100. package/dist/components/SFilePicker/README.md +19 -4
  101. package/dist/components/SFilePicker/SFilePicker.d.ts +19 -6
  102. package/dist/components/SFooter/README.md +44 -0
  103. package/dist/components/SFooter/SFooter.d.ts +29 -13
  104. package/dist/components/SFooter/index.d.ts +1 -1
  105. package/dist/components/SForm/README.md +12 -1
  106. package/dist/components/SForm/SForm.d.ts +2 -2
  107. package/dist/components/SGhostButton/README.md +28 -4
  108. package/dist/components/SGhostButton/SGhostButton.d.ts +4 -1
  109. package/dist/components/SGnb/README.md +97 -7
  110. package/dist/components/SGnb/SGnb.d.ts +94 -10
  111. package/dist/components/SGnb/gnb.config.d.ts +18 -5
  112. package/dist/components/SGnb/index.d.ts +1 -1
  113. package/dist/components/SGnbSystem/README.md +186 -0
  114. package/dist/components/SGnbSystem/SGnbSystem.d.ts +179 -0
  115. package/dist/components/SGnbSystem/gnbSystem.config.d.ts +122 -0
  116. package/dist/components/SGnbSystem/index.d.ts +2 -0
  117. package/dist/components/SGuide/README.md +16 -1
  118. package/dist/components/SGuide/SGuide.d.ts +5 -2
  119. package/dist/components/SIcon/README.md +20 -0
  120. package/dist/components/SIcon/SIcon.d.ts +1 -1
  121. package/dist/components/SIcon/icons.gen.d.ts +20 -1
  122. package/dist/components/SImage/README.md +23 -1
  123. package/dist/components/SImage/SImage.d.ts +11 -8
  124. package/dist/components/SInput/README.md +7 -4
  125. package/dist/components/SInput/SInput.d.ts +13 -5
  126. package/dist/components/SKeyValueTable/README.md +88 -0
  127. package/dist/components/SKeyValueTable/SKeyValueTable.d.ts +30 -3
  128. package/dist/components/SKeyValueTable/index.d.ts +1 -1
  129. package/dist/components/SLauncherListBox/README.md +81 -0
  130. package/dist/components/SLauncherListBox/SLauncherListBox.d.ts +67 -0
  131. package/dist/components/SLauncherListBox/index.d.ts +2 -0
  132. package/dist/components/SLauncherListBox/launcherListBox.config.d.ts +118 -0
  133. package/dist/components/SLayout/README.md +22 -1
  134. package/dist/components/SLayout/SLayout.d.ts +6 -2
  135. package/dist/components/SLayout/index.d.ts +1 -1
  136. package/dist/components/SLineChart/README.md +131 -0
  137. package/dist/components/SLineChart/SLineChart.d.ts +110 -0
  138. package/dist/components/SLineChart/index.d.ts +1 -0
  139. package/dist/components/SLineChart/lineChart.config.d.ts +95 -0
  140. package/dist/components/SLinearProgress/README.md +15 -0
  141. package/dist/components/SLinearProgress/SLinearProgress.d.ts +3 -0
  142. package/dist/components/SLinearProgress/index.d.ts +1 -1
  143. package/dist/components/SList/README.md +15 -2
  144. package/dist/components/SList/SList.d.ts +7 -3
  145. package/dist/components/SList/index.d.ts +1 -1
  146. package/dist/components/SListItem/README.md +41 -0
  147. package/dist/components/SListItem/index.d.ts +1 -1
  148. package/dist/components/SLoadingContainer/index.d.ts +1 -1
  149. package/dist/components/SLoadingContainer/loading.d.ts +41 -6
  150. package/dist/components/SLoadingModal/README.md +10 -2
  151. package/dist/components/SLoadingModal/SLoadingModal.d.ts +4 -4
  152. package/dist/components/SLoadingModal/index.d.ts +1 -1
  153. package/dist/components/SLoginCard/README.md +37 -0
  154. package/dist/components/SLoginCard/SLoginCard.d.ts +39 -0
  155. package/dist/components/SLoginCard/index.d.ts +1 -0
  156. package/dist/components/SLogo/README.md +54 -0
  157. package/dist/components/SLogo/SLogo.d.ts +47 -0
  158. package/dist/components/SLogo/index.d.ts +2 -0
  159. package/dist/components/SLogo/logo.config.d.ts +14 -0
  160. package/dist/components/SLogo/sellmate-wordmark.d.ts +20 -0
  161. package/dist/components/SMeatballButton/README.md +67 -0
  162. package/dist/components/SMeatballButton/SMeatballButton.d.ts +36 -0
  163. package/dist/components/SMeatballButton/index.d.ts +1 -0
  164. package/dist/components/SModal/README.md +15 -5
  165. package/dist/components/SModal/SModal.d.ts +1 -1
  166. package/dist/components/SNumberInput/README.md +18 -8
  167. package/dist/components/SNumberInput/SNumberInput.d.ts +42 -7
  168. package/dist/components/SPage/README.md +105 -5
  169. package/dist/components/SPage/SPage.d.ts +34 -10
  170. package/dist/components/SPage/SPageHeader.d.ts +31 -13
  171. package/dist/components/SPage/index.d.ts +2 -2
  172. package/dist/components/SPage/page-column.d.ts +34 -0
  173. package/dist/components/SPage/page-width.d.ts +23 -0
  174. package/dist/components/SPage/page.config.d.ts +26 -0
  175. package/dist/components/SPieChart/README.md +93 -0
  176. package/dist/components/SPieChart/SPieChart.d.ts +73 -0
  177. package/dist/components/SPieChart/index.d.ts +1 -0
  178. package/dist/components/SPopover/README.md +15 -0
  179. package/dist/components/SPopup/README.md +26 -2
  180. package/dist/components/SPopup/SPopup.d.ts +13 -10
  181. package/dist/components/SPopup/index.d.ts +1 -1
  182. package/dist/components/SPortal/README.md +20 -0
  183. package/dist/components/SRadio/README.md +20 -0
  184. package/dist/components/SRadioButton/README.md +18 -0
  185. package/dist/components/SRadioButton/SRadioButton.d.ts +1 -1
  186. package/dist/components/SRadioCard/README.md +78 -0
  187. package/dist/components/SRadioCard/SRadioCard.d.ts +29 -0
  188. package/dist/components/SRadioCard/SRadioCardGroup.d.ts +36 -0
  189. package/dist/components/SRadioCard/index.d.ts +2 -0
  190. package/dist/components/SScrollArea/README.md +28 -0
  191. package/dist/components/SScrollArea/SScrollArea.d.ts +17 -0
  192. package/dist/components/SSearchInput/README.md +63 -0
  193. package/dist/components/SSearchInput/SSearchInput.d.ts +52 -0
  194. package/dist/components/SSearchInput/index.d.ts +1 -0
  195. package/dist/components/SSectionHeaderCard/README.md +38 -0
  196. package/dist/components/SSectionHeaderCard/SSectionHeaderCard.d.ts +19 -0
  197. package/dist/components/SSelect/README.md +38 -11
  198. package/dist/components/SSelect/SSelect.d.ts +80 -9
  199. package/dist/components/SSelect/select.config.d.ts +15 -0
  200. package/dist/components/SSplitter/README.md +17 -2
  201. package/dist/components/SSplitter/SSplitter.d.ts +7 -3
  202. package/dist/components/SStepper/README.md +26 -0
  203. package/dist/components/SSwitch/README.md +13 -1
  204. package/dist/components/SSwitch/SSwitch.d.ts +1 -3
  205. package/dist/components/SSystemActionButton/README.md +246 -0
  206. package/dist/components/SSystemActionButton/SSystemActionButton.d.ts +167 -0
  207. package/dist/components/SSystemActionButton/index.d.ts +2 -0
  208. package/dist/components/SSystemActionButton/systemActionButton.config.d.ts +93 -0
  209. package/dist/components/STable/README.md +116 -11
  210. package/dist/components/STable/STable.d.ts +243 -23
  211. package/dist/components/STable/index.d.ts +1 -1
  212. package/dist/components/STableBar/README.md +1 -0
  213. package/dist/components/STableBar/STableBar.d.ts +8 -1
  214. package/dist/components/STabs/README.md +13 -2
  215. package/dist/components/STabs/STabs.d.ts +3 -5
  216. package/dist/components/STabs/index.d.ts +1 -1
  217. package/dist/components/STabs/tabs.config.d.ts +3 -4
  218. package/dist/components/STag/README.md +55 -0
  219. package/dist/components/STag/STag.d.ts +3 -1
  220. package/dist/components/STag/tag.config.d.ts +1 -1
  221. package/dist/components/STextLink/README.md +19 -1
  222. package/dist/components/STextLink/STextLink.d.ts +5 -1
  223. package/dist/components/STextarea/README.md +11 -5
  224. package/dist/components/STextarea/STextarea.d.ts +42 -6
  225. package/dist/components/STimePicker/README.md +18 -2
  226. package/dist/components/STimePicker/STimePicker.d.ts +29 -6
  227. package/dist/components/STimePicker/timepicker.config.d.ts +4 -2
  228. package/dist/components/STimeRangePicker/README.md +30 -2
  229. package/dist/components/STimeRangePicker/STimeRangePicker.d.ts +28 -6
  230. package/dist/components/SToast/README.md +25 -1
  231. package/dist/components/SToast/SToast.d.ts +2 -2
  232. package/dist/components/SToggle/README.md +8 -0
  233. package/dist/components/SToggle/index.d.ts +1 -1
  234. package/dist/components/STooltip/README.md +25 -1
  235. package/dist/components/STooltip/STooltip.d.ts +1 -1
  236. package/dist/components/STree/README.md +42 -4
  237. package/dist/components/STree/STree.d.ts +18 -6
  238. package/dist/components/STree/STree.examples.d.ts +2 -0
  239. package/dist/docs/Gallery.d.ts +9 -0
  240. package/dist/docs/RecipeGallery.d.ts +13 -0
  241. package/dist/docs/gallery-previews.d.ts +24 -0
  242. package/dist/fonts/LICENSE.txt +94 -0
  243. package/dist/fonts/woff2-dynamic-subset/PretendardVariable.subset.0.woff2 +0 -0
  244. package/dist/fonts/woff2-dynamic-subset/PretendardVariable.subset.1.woff2 +0 -0
  245. package/dist/fonts/woff2-dynamic-subset/PretendardVariable.subset.10.woff2 +0 -0
  246. package/dist/fonts/woff2-dynamic-subset/PretendardVariable.subset.11.woff2 +0 -0
  247. package/dist/fonts/woff2-dynamic-subset/PretendardVariable.subset.12.woff2 +0 -0
  248. package/dist/fonts/woff2-dynamic-subset/PretendardVariable.subset.13.woff2 +0 -0
  249. package/dist/fonts/woff2-dynamic-subset/PretendardVariable.subset.14.woff2 +0 -0
  250. package/dist/fonts/woff2-dynamic-subset/PretendardVariable.subset.15.woff2 +0 -0
  251. package/dist/fonts/woff2-dynamic-subset/PretendardVariable.subset.16.woff2 +0 -0
  252. package/dist/fonts/woff2-dynamic-subset/PretendardVariable.subset.17.woff2 +0 -0
  253. package/dist/fonts/woff2-dynamic-subset/PretendardVariable.subset.18.woff2 +0 -0
  254. package/dist/fonts/woff2-dynamic-subset/PretendardVariable.subset.19.woff2 +0 -0
  255. package/dist/fonts/woff2-dynamic-subset/PretendardVariable.subset.2.woff2 +0 -0
  256. package/dist/fonts/woff2-dynamic-subset/PretendardVariable.subset.20.woff2 +0 -0
  257. package/dist/fonts/woff2-dynamic-subset/PretendardVariable.subset.21.woff2 +0 -0
  258. package/dist/fonts/woff2-dynamic-subset/PretendardVariable.subset.22.woff2 +0 -0
  259. package/dist/fonts/woff2-dynamic-subset/PretendardVariable.subset.23.woff2 +0 -0
  260. package/dist/fonts/woff2-dynamic-subset/PretendardVariable.subset.24.woff2 +0 -0
  261. package/dist/fonts/woff2-dynamic-subset/PretendardVariable.subset.25.woff2 +0 -0
  262. package/dist/fonts/woff2-dynamic-subset/PretendardVariable.subset.26.woff2 +0 -0
  263. package/dist/fonts/woff2-dynamic-subset/PretendardVariable.subset.27.woff2 +0 -0
  264. package/dist/fonts/woff2-dynamic-subset/PretendardVariable.subset.28.woff2 +0 -0
  265. package/dist/fonts/woff2-dynamic-subset/PretendardVariable.subset.29.woff2 +0 -0
  266. package/dist/fonts/woff2-dynamic-subset/PretendardVariable.subset.3.woff2 +0 -0
  267. package/dist/fonts/woff2-dynamic-subset/PretendardVariable.subset.30.woff2 +0 -0
  268. package/dist/fonts/woff2-dynamic-subset/PretendardVariable.subset.31.woff2 +0 -0
  269. package/dist/fonts/woff2-dynamic-subset/PretendardVariable.subset.32.woff2 +0 -0
  270. package/dist/fonts/woff2-dynamic-subset/PretendardVariable.subset.33.woff2 +0 -0
  271. package/dist/fonts/woff2-dynamic-subset/PretendardVariable.subset.34.woff2 +0 -0
  272. package/dist/fonts/woff2-dynamic-subset/PretendardVariable.subset.35.woff2 +0 -0
  273. package/dist/fonts/woff2-dynamic-subset/PretendardVariable.subset.36.woff2 +0 -0
  274. package/dist/fonts/woff2-dynamic-subset/PretendardVariable.subset.37.woff2 +0 -0
  275. package/dist/fonts/woff2-dynamic-subset/PretendardVariable.subset.38.woff2 +0 -0
  276. package/dist/fonts/woff2-dynamic-subset/PretendardVariable.subset.39.woff2 +0 -0
  277. package/dist/fonts/woff2-dynamic-subset/PretendardVariable.subset.4.woff2 +0 -0
  278. package/dist/fonts/woff2-dynamic-subset/PretendardVariable.subset.40.woff2 +0 -0
  279. package/dist/fonts/woff2-dynamic-subset/PretendardVariable.subset.41.woff2 +0 -0
  280. package/dist/fonts/woff2-dynamic-subset/PretendardVariable.subset.42.woff2 +0 -0
  281. package/dist/fonts/woff2-dynamic-subset/PretendardVariable.subset.43.woff2 +0 -0
  282. package/dist/fonts/woff2-dynamic-subset/PretendardVariable.subset.44.woff2 +0 -0
  283. package/dist/fonts/woff2-dynamic-subset/PretendardVariable.subset.45.woff2 +0 -0
  284. package/dist/fonts/woff2-dynamic-subset/PretendardVariable.subset.46.woff2 +0 -0
  285. package/dist/fonts/woff2-dynamic-subset/PretendardVariable.subset.47.woff2 +0 -0
  286. package/dist/fonts/woff2-dynamic-subset/PretendardVariable.subset.48.woff2 +0 -0
  287. package/dist/fonts/woff2-dynamic-subset/PretendardVariable.subset.49.woff2 +0 -0
  288. package/dist/fonts/woff2-dynamic-subset/PretendardVariable.subset.5.woff2 +0 -0
  289. package/dist/fonts/woff2-dynamic-subset/PretendardVariable.subset.50.woff2 +0 -0
  290. package/dist/fonts/woff2-dynamic-subset/PretendardVariable.subset.51.woff2 +0 -0
  291. package/dist/fonts/woff2-dynamic-subset/PretendardVariable.subset.52.woff2 +0 -0
  292. package/dist/fonts/woff2-dynamic-subset/PretendardVariable.subset.53.woff2 +0 -0
  293. package/dist/fonts/woff2-dynamic-subset/PretendardVariable.subset.54.woff2 +0 -0
  294. package/dist/fonts/woff2-dynamic-subset/PretendardVariable.subset.55.woff2 +0 -0
  295. package/dist/fonts/woff2-dynamic-subset/PretendardVariable.subset.56.woff2 +0 -0
  296. package/dist/fonts/woff2-dynamic-subset/PretendardVariable.subset.57.woff2 +0 -0
  297. package/dist/fonts/woff2-dynamic-subset/PretendardVariable.subset.58.woff2 +0 -0
  298. package/dist/fonts/woff2-dynamic-subset/PretendardVariable.subset.59.woff2 +0 -0
  299. package/dist/fonts/woff2-dynamic-subset/PretendardVariable.subset.6.woff2 +0 -0
  300. package/dist/fonts/woff2-dynamic-subset/PretendardVariable.subset.60.woff2 +0 -0
  301. package/dist/fonts/woff2-dynamic-subset/PretendardVariable.subset.61.woff2 +0 -0
  302. package/dist/fonts/woff2-dynamic-subset/PretendardVariable.subset.62.woff2 +0 -0
  303. package/dist/fonts/woff2-dynamic-subset/PretendardVariable.subset.63.woff2 +0 -0
  304. package/dist/fonts/woff2-dynamic-subset/PretendardVariable.subset.64.woff2 +0 -0
  305. package/dist/fonts/woff2-dynamic-subset/PretendardVariable.subset.65.woff2 +0 -0
  306. package/dist/fonts/woff2-dynamic-subset/PretendardVariable.subset.66.woff2 +0 -0
  307. package/dist/fonts/woff2-dynamic-subset/PretendardVariable.subset.67.woff2 +0 -0
  308. package/dist/fonts/woff2-dynamic-subset/PretendardVariable.subset.68.woff2 +0 -0
  309. package/dist/fonts/woff2-dynamic-subset/PretendardVariable.subset.69.woff2 +0 -0
  310. package/dist/fonts/woff2-dynamic-subset/PretendardVariable.subset.7.woff2 +0 -0
  311. package/dist/fonts/woff2-dynamic-subset/PretendardVariable.subset.70.woff2 +0 -0
  312. package/dist/fonts/woff2-dynamic-subset/PretendardVariable.subset.71.woff2 +0 -0
  313. package/dist/fonts/woff2-dynamic-subset/PretendardVariable.subset.72.woff2 +0 -0
  314. package/dist/fonts/woff2-dynamic-subset/PretendardVariable.subset.73.woff2 +0 -0
  315. package/dist/fonts/woff2-dynamic-subset/PretendardVariable.subset.74.woff2 +0 -0
  316. package/dist/fonts/woff2-dynamic-subset/PretendardVariable.subset.75.woff2 +0 -0
  317. package/dist/fonts/woff2-dynamic-subset/PretendardVariable.subset.76.woff2 +0 -0
  318. package/dist/fonts/woff2-dynamic-subset/PretendardVariable.subset.77.woff2 +0 -0
  319. package/dist/fonts/woff2-dynamic-subset/PretendardVariable.subset.78.woff2 +0 -0
  320. package/dist/fonts/woff2-dynamic-subset/PretendardVariable.subset.79.woff2 +0 -0
  321. package/dist/fonts/woff2-dynamic-subset/PretendardVariable.subset.8.woff2 +0 -0
  322. package/dist/fonts/woff2-dynamic-subset/PretendardVariable.subset.80.woff2 +0 -0
  323. package/dist/fonts/woff2-dynamic-subset/PretendardVariable.subset.81.woff2 +0 -0
  324. package/dist/fonts/woff2-dynamic-subset/PretendardVariable.subset.82.woff2 +0 -0
  325. package/dist/fonts/woff2-dynamic-subset/PretendardVariable.subset.83.woff2 +0 -0
  326. package/dist/fonts/woff2-dynamic-subset/PretendardVariable.subset.84.woff2 +0 -0
  327. package/dist/fonts/woff2-dynamic-subset/PretendardVariable.subset.85.woff2 +0 -0
  328. package/dist/fonts/woff2-dynamic-subset/PretendardVariable.subset.86.woff2 +0 -0
  329. package/dist/fonts/woff2-dynamic-subset/PretendardVariable.subset.87.woff2 +0 -0
  330. package/dist/fonts/woff2-dynamic-subset/PretendardVariable.subset.88.woff2 +0 -0
  331. package/dist/fonts/woff2-dynamic-subset/PretendardVariable.subset.89.woff2 +0 -0
  332. package/dist/fonts/woff2-dynamic-subset/PretendardVariable.subset.9.woff2 +0 -0
  333. package/dist/fonts/woff2-dynamic-subset/PretendardVariable.subset.90.woff2 +0 -0
  334. package/dist/fonts/woff2-dynamic-subset/PretendardVariable.subset.91.woff2 +0 -0
  335. package/dist/index.cjs +20593 -10374
  336. package/dist/index.cjs.map +1 -1
  337. package/dist/index.d.ts +22 -0
  338. package/dist/index.js +20517 -10374
  339. package/dist/index.js.map +1 -1
  340. package/dist/lib/chart/cartesian.d.ts +56 -0
  341. package/dist/lib/chart/frame.d.ts +21 -0
  342. package/dist/lib/chart/hover-dim.d.ts +19 -0
  343. package/dist/lib/chart/legend.d.ts +21 -0
  344. package/dist/lib/chart/palette.d.ts +28 -0
  345. package/dist/lib/chart/radial.d.ts +99 -0
  346. package/dist/lib/chart/scale.d.ts +26 -0
  347. package/dist/lib/chart/tooltip.d.ts +60 -0
  348. package/dist/lib/chart/types.d.ts +29 -0
  349. package/dist/lib/chart/use-element-size.d.ts +39 -0
  350. package/dist/lib/date.d.ts +2 -1
  351. package/dist/lib/depth-filter.d.ts +27 -0
  352. package/dist/lib/doc-sections.d.ts +35 -0
  353. package/dist/lib/dropdown-menu.d.ts +19 -0
  354. package/dist/lib/field-width.d.ts +31 -0
  355. package/dist/lib/floating-height.d.ts +15 -0
  356. package/dist/lib/global-overlay.d.ts +5 -0
  357. package/dist/lib/hover-preview.d.ts +32 -0
  358. package/dist/lib/inert.d.ts +11 -0
  359. package/dist/lib/overlay-scrollbar.d.ts +32 -0
  360. package/dist/lib/row-metrics.d.ts +61 -0
  361. package/dist/lib/story-docs.d.ts +19 -3
  362. package/dist/llms-full.txt +5904 -550
  363. package/dist/llms.txt +1918 -267
  364. package/dist/playground/categories.d.ts +19 -0
  365. package/dist/pretendard.css +937 -0
  366. package/dist/recipes/AppShell.d.ts +21 -0
  367. package/dist/recipes/ExcelFilePopupPage.d.ts +5 -0
  368. package/dist/recipes/LoginPage.d.ts +6 -0
  369. package/dist/recipes/ProductCreatePage.d.ts +1 -0
  370. package/dist/recipes/ProductCreateSectionsPage.d.ts +5 -0
  371. package/dist/recipes/ProductDetailInlineEditPage.d.ts +9 -0
  372. package/dist/recipes/ProductDetailPage.d.ts +1 -0
  373. package/dist/recipes/ProductListChipFilterPage.d.ts +1 -0
  374. package/dist/recipes/ProductListPage.d.ts +1 -0
  375. package/dist/recipes/TransferOrderPopupPage.d.ts +2 -0
  376. package/dist/recipes/api.d.ts +91 -0
  377. package/dist/recipes/recipe-story.d.ts +33 -0
  378. package/dist/recipes/router.d.ts +9 -0
  379. package/dist/styles.css +3331 -258
  380. package/dist/theme.css +589 -33
  381. package/eslint/index.mjs +9 -0
  382. package/eslint/lib/table-column.mjs +26 -0
  383. package/eslint/rules/divider-vertical-height.mjs +137 -0
  384. package/eslint/rules/field-width-grade.mjs +27 -10
  385. package/eslint/rules/prefer-typo-preset.mjs +1 -1
  386. package/eslint/rules/table-column-width.mjs +110 -0
  387. package/eslint/scale.gen.mjs +6 -3
  388. package/package.json +17 -3
@@ -0,0 +1,119 @@
1
+ import type { CSSProperties } from 'react';
2
+ import type { SColor } from '../../lib/color';
3
+ /** ํˆด๋ฐ”์— ๋†“์„ ์ˆ˜ ์žˆ๋Š” ํ•ญ๋ชฉ. `'|'` ๋Š” ๊ตฌ๋ถ„์„ ์ด๋‹ค. */
4
+ export declare const SEDITOR_TOOLBAR_ITEMS: readonly ["heading", "fontSize", "bold", "italic", "underline", "strike", "code", "color", "alignLeft", "alignCenter", "alignRight", "alignJustify", "bulletList", "orderedList", "taskList", "list", "blockquote", "codeBlock", "horizontalRule", "link", "image", "table", "undo", "redo"];
5
+ export type SEditorToolbarAction = (typeof SEDITOR_TOOLBAR_ITEMS)[number];
6
+ export type SEditorToolbarItem = SEditorToolbarAction | '|';
7
+ /**
8
+ * ๊ธฐ๋ณธ ํˆด๋ฐ” โ€” ์“ธ ์ˆ˜ ์žˆ๋Š” ๊ฒƒ์„ **๋ชจ๋‘** ๋ณด์ธ๋‹ค. ์ˆœ์„œ๋Š” tiptap Simple Editor ํ…œํ”Œ๋ฆฟ์„ ๋”ฐ๋ฅธ๋‹ค.
9
+ *
10
+ * ์ด๋ ฅ โ†’ ๋ธ”๋ก(์ œ๋ชฉยท๊ธ€์ž ํฌ๊ธฐยท๋ชฉ๋กยท์ธ์šฉยท์ฝ”๋“œ๋ธ”๋ก) โ†’ ์„œ์‹ โ†’ ์ •๋ ฌ โ†’ ์‚ฝ์ž….
11
+ *
12
+ * ๋น ์ง„ ๊ฒƒ์€ `bulletList`ยท`orderedList`ยท`taskList` ๋ฟ์ธ๋ฐ, ์ด ์…‹์€ `list` ๋“œ๋กญ๋‹ค์šด ํ•˜๋‚˜๋กœ
13
+ * ์ด๋ฏธ ๋“ค์–ด์™€ ์žˆ๋‹ค โ€” ํ•จ๊ป˜ ๋†“์œผ๋ฉด ๊ฐ™์€ ๋ช…๋ น์ด ํˆด๋ฐ”์— ๋‘ ๋ฒˆ ๋‚˜์˜จ๋‹ค. ๋ชฉ๋ก์„ ๋“œ๋กญ๋‹ค์šด์ด ์•„๋‹ˆ๋ผ
14
+ * ๋ฒ„ํŠผ ์…‹์œผ๋กœ ํŽผ์น˜๊ณ  ์‹ถ์€ ํ™”๋ฉด๋งŒ `toolbar` ๋กœ ์ง์ ‘ ์กฐํ•ฉํ•œ๋‹ค.
15
+ *
16
+ * `image` ๋Š” `onImageUpload` ๋ฅผ ๋ฐ›์•˜์„ ๋•Œ๋งŒ ๊ทธ๋ ค์ง„๋‹ค (ํ›…์ด ์—†์œผ๋ฉด ์ €์žฅํ•  ๊ณณ์ด ์—†๋‹ค).
17
+ */
18
+ export declare const SEDITOR_DEFAULT_TOOLBAR: SEditorToolbarItem[];
19
+ /**
20
+ * ๊ฐ„๋‹จ ํˆด๋ฐ” (`simple`) โ€” **๊ธ€์ž์— ๊ฑฐ๋Š” ์„œ์‹๋งŒ** ๋‚จ๊ธด๋‹ค.
21
+ *
22
+ * ๋ชฉ๋กยท์ •๋ ฌยท์ธ์šฉยท์ฝ”๋“œยท๋งํฌยท์ด๋ฏธ์ง€ยท๊ตฌ๋ถ„์„ ์ฒ˜๋Ÿผ **๊ธ€์˜ ๊ตฌ์กฐ๋ฅผ ๋ฐ”๊พธ๋Š”** ํ•ญ๋ชฉ์„ ๋บ€ ๊ตฌ์„ฑ์ด๋‹ค.
23
+ * ๋ฐ›์€ ๊ธ€์ด ๋‹ค์‹œ ํ™”๋ฉด์— ๊ทธ๋ ค์งˆ ๋•Œ ๋ฌธ๋‹จ ๊ตฌ์กฐ๊นŒ์ง€ ์ž‘์„ฑ์ž๋ฅผ ๋”ฐ๋ผ๊ฐ€๋ฉด ๊ณค๋ž€ํ•œ ์ž๋ฆฌ โ€” ์ข์€ ์นธ์—
24
+ * ๋†“์ธ ๋ฉ”๋ชจยท์‚ฌ์œ ยท์งง์€ ์•ˆ๋‚ด๋ฌธ โ€” ๋ฅผ ์œ„ํ•œ ๊ฒƒ์ด๋‹ค.
25
+ *
26
+ * ์ œ๋ชฉยท๊ธ€์ž ํฌ๊ธฐ๋Š” ๋‚จ๊ธด๋‹ค. ๋‘˜ ๋‹ค ๊ธ€์˜ ๋ผˆ๋Œ€๊ฐ€ ์•„๋‹ˆ๋ผ **๊ธ€์ž์˜ ํฌ๊ธฐ**๋ฅผ ์ •ํ•˜๋Š” ํ•ญ๋ชฉ์ด๋ผ
27
+ * ๊ฐ•์กฐ๋ฅผ ๊ฑฐ๋Š” ๋ฐ ์“ฐ์ด๊ณ , ์ด๊ฒƒ๊นŒ์ง€ ๋นผ๋ฉด ๋‚จ๋Š” ๊ฒƒ์ด ๊ตต๊ฒŒยท์ƒ‰๋ฟ์ด๋ผ `STextarea` ์™€ ๋‹ค๋ฅผ ๋ฐ” ์—†๋‹ค.
28
+ */
29
+ export declare const SEDITOR_SIMPLE_TOOLBAR: SEditorToolbarItem[];
30
+ /**
31
+ * ๊ธฐ๋ณธ ๋ฒ„๋ธ” ๋ฉ”๋‰ด โ€” ๊ธ€์„ ์„ ํƒํ–ˆ์„ ๋•Œ ๊ทธ ์œ„์— ๋œจ๋Š” ํŒ์˜ ๊ตฌ์„ฑ.
32
+ *
33
+ * tiptap Simple Editor ์—๋Š” ๋ฒ„๋ธ” ๋ฉ”๋‰ด๊ฐ€ ์—†๋‹ค. ๊ทธ๋ž˜์„œ ๊ตฌ์„ฑ์€ ํ…œํ”Œ๋ฆฟ ํˆด๋ฐ”์˜ **์„œ์‹ ๋ฌถ์Œ**์„
34
+ * ๊ทธ๋Œ€๋กœ ๊ฐ€์ ธ์™”๋‹ค โ€” ์„ ํƒํ•œ ๊ธ€์— ๋ฐ”๋กœ ๊ฑธ ์ˆ˜ ์žˆ๋Š” ๊ฒƒ๋งŒ ๋‚จ๊ธฐ๊ณ  ๋ธ”๋ก(์ œ๋ชฉยท๋ชฉ๋กยท์ธ์šฉ)ยท์ •๋ ฌยท
35
+ * ์‚ฝ์ž…์€ ๋บ๋‹ค. ๊ทธ๊ฒƒ๋“ค์€ ์ปค์„œ๋งŒ ์žˆ์–ด๋„ ๋˜๋ฏ€๋กœ ๋ง‰๋Œ€์—์„œ ๋ˆ„๋ฅด๋Š” ํŽธ์ด ๋‚ซ๋‹ค.
36
+ *
37
+ * ํŒ์€ ์„ ํƒ ์˜์—ญ ์œ„์— ๋œจ๋Š” ํ•œ ์ค„์ด๋ผ ์ค„๋ฐ”๊ฟˆํ•˜์ง€ ์•Š๋Š”๋‹ค โ€” ํ•ญ๋ชฉ์„ ๋Š˜๋ฆด ๋•Œ ํญ์„ ํ•จ๊ป˜ ๋ณธ๋‹ค.
38
+ */
39
+ export declare const SEDITOR_DEFAULT_BUBBLE_MENU: SEditorToolbarItem[];
40
+ /**
41
+ * ๊ฐ„๋‹จ ๋ชจ๋“œ(`simple`)์˜ ๋ฒ„๋ธ” ๋ฉ”๋‰ด โ€” ๋ง‰๋Œ€์™€ ๊ฐ™์€ ๋ฒ”์œ„๋กœ ๋งž์ถ˜๋‹ค.
42
+ *
43
+ * ๋ง‰๋Œ€์—์„œ ๋งํฌยท์ฝ”๋“œ๋ฅผ ๋บ๋Š”๋ฐ ํŒ์—๋Š” ๋‚จ์•„ ์žˆ์œผ๋ฉด ๊ฐ„๋‹จ ๋ชจ๋“œ๊ฐ€ ์•„๋ฌด๊ฒƒ๋„ ๋ง‰์ง€ ๋ชปํ•œ๋‹ค.
44
+ * ์„ ํƒํ•œ ๊ธ€์— ๊ฑธ ์ˆ˜ ์žˆ๋Š” ๊ฒƒ์€ ๋‘ ๊ณณ์ด ๊ฐ™์•„์•ผ ํ•œ๋‹ค.
45
+ */
46
+ export declare const SEDITOR_SIMPLE_BUBBLE_MENU: SEditorToolbarItem[];
47
+ /** ์ œ๋ชฉ ๋‹จ๊ณ„ โ€” ๋ณธ๋ฌธ 12px ์œ„๋กœ 14 / 16 / 18 (DS ํƒ€์ดํฌ heading smยทmdยทlg) */
48
+ export declare const SEDITOR_HEADING_LEVELS: readonly [1, 2, 3];
49
+ export type SEditorHeadingLevel = (typeof SEDITOR_HEADING_LEVELS)[number];
50
+ export declare const SEDITOR_HEADING_LABELS: Record<SEditorHeadingLevel | 0, string>;
51
+ /**
52
+ * ๊ธ€์ž ํฌ๊ธฐ ์„ ํƒ์ง€ (px) โ€” ์›Œ๋“œํ”„๋กœ์„ธ์„œ์˜ ๋ˆˆ๊ธˆ๊ณผ ๊ฐ™์€ ๋‹จ๊ณ„๋‹ค.
53
+ *
54
+ * ํ™”๋ฉด์˜ ๋ณธ๋ฌธ ๋ฆฌ๋“ฌ์€ DS ํƒ€์ดํฌ ์Šค์ผ€์ผ(`--text-*`)์ด ์žก๋Š”๋‹ค. ์ด ๋ชฉ๋ก์€ ๊ทธ ๋ฆฌ๋“ฌ์ด ์•„๋‹ˆ๋ผ
55
+ * **์ž‘์„ฑ์ž๊ฐ€ ๊ธ€ ์•ˆ์—์„œ ์ง์ ‘ ํฌ๊ธฐ๋ฅผ ์ง€์ •ํ•  ๋•Œ** ์“ฐ๋Š” ๋ˆˆ๊ธˆ์ด๋ผ ํ›จ์”ฌ ๋„“๋‹ค โ€” 24 ์ด์ƒ์€ ์•ˆ๋‚ด๋ฌธ
56
+ * ํ‘œ์ง€ยทํ–‰์‚ฌ ๋ฐฐ๋„ˆ์ฒ˜๋Ÿผ ๋ณธ๋ฌธ์ด ์•„๋‹Œ ๊ธ€์„ ์œ„ํ•œ ๊ฒƒ์ด๋‹ค.
57
+ *
58
+ * **๋ˆˆ๊ธˆ์„ ์ขํžˆ๋Š” prop ์€ ์—†๋‹ค** โ€” ํ™”๋ฉด๋งˆ๋‹ค ๊ณ ๋ฅผ ์ˆ˜ ์žˆ๋Š” ํฌ๊ธฐ๊ฐ€ ๋‹ค๋ฅด๋ฉด ๊ฐ™์€ ๊ธ€์ด ์–ด๋””์—
59
+ * ๋ถ™๋А๋ƒ์— ๋”ฐ๋ผ ๋‹ค๋ฅด๊ฒŒ ๋ณด์ธ๋‹ค. ์ž‘์„ฑ์ž๊ฐ€ ๋ฆฌ๋“ฌ(AGENTS.md ยง2-1: ๋ณธ๋ฌธ 12px)์„ ๋ฒ—์–ด๋‚˜๋ฉด ๊ณค๋ž€ํ•œ
60
+ * ์ž๋ฆฌ๋ผ๋ฉด ์• ์ดˆ์— `SEditor` ๊ฐ€ ์•„๋‹ˆ๋ผ `STextarea` ๊ฐ€ ๋งž๋Š” ์ž๋ฆฌ์ธ์ง€ ๋จผ์ € ๋ณธ๋‹ค.
61
+ */
62
+ export declare const SEDITOR_FONT_SIZES: readonly [8, 9, 10, 11, 12, 14, 16, 18, 24, 30, 36, 48, 60, 72];
63
+ /**
64
+ * ํฌ๊ธฐ๋ฅผ ์ง€์ •ํ•˜์ง€ ์•Š์€ ๋ฌธ๋‹จ์ด ์‹ค์ œ๋กœ ๋ณด์ด๋Š” ํฌ๊ธฐ โ€” ๋“œ๋กญ๋‹ค์šด์˜ `๊ธฐ๋ณธ` ํ•ญ๋ชฉ์ด ๋˜๋Œ๋ฆฌ๋Š” ์ž๋ฆฌ๋‹ค.
65
+ * ์ œ๋ชฉ(h1~h3)์€ ์ž๊ธฐ ํฌ๊ธฐ๋ฅผ ๋”ฐ๋กœ ๊ฐ€์ง€๋ฏ€๋กœ ์ด ๊ฐ’๊ณผ ๋ฌด๊ด€ํ•˜๋‹ค.
66
+ */
67
+ export declare const SEDITOR_DEFAULT_FONT_SIZE = 12;
68
+ export interface SEditorColorOption {
69
+ /** ํŒ”๋ ˆํŠธ ์นธ์˜ ์ ‘๊ทผ์„ฑ ๋ ˆ์ด๋ธ”ยทํˆดํŒ */
70
+ label: string;
71
+ /** ํŒ”๋ ˆํŠธ ํ‚ค(`red_75` โ€ฆ) ๋˜๋Š” CSS ์ƒ‰์ƒ ๋ฌธ์ž์—ด */
72
+ color: SColor;
73
+ }
74
+ /**
75
+ * ๊ธ€์ž์ƒ‰ ํŒ”๋ ˆํŠธ โ€” ์—ญํ•  ํ† ํฐ(`--color-fg-*`)์„ ๊ทธ๋Œ€๋กœ ์“ด๋‹ค. ๋ฐ”๊พธ๋Š” prop ์€ ์—†๋‹ค.
76
+ *
77
+ * ์ €์žฅ๋˜๋Š” HTML ์— `style="color: var(--color-fg-danger)"` ํ˜•ํƒœ๋กœ ๋‚จ์œผ๋ฏ€๋กœ ํ† ํฐ์ด ๋ฐ”๋€Œ๋ฉด
78
+ * ์ด๋ฏธ ์ €์žฅ๋œ ๊ธ€๋„ ๋”ฐ๋ผ๊ฐ„๋‹ค. ๋Œ€์‹  **DS `theme.css` ๊ฐ€ ์—†๋Š” ํ™˜๊ฒฝ(๋ฉ”์ผ ๋ณธ๋ฌธ ๋“ฑ)์œผ๋กœ ๊ทธ๋Œ€๋กœ
79
+ * ๋‚ด๋ณด๋‚ด๋ฉด ์ƒ‰์ด ํ’€๋ฆฐ๋‹ค** โ€” ๊ทธ๋Ÿฐ ๋ฐ˜์ถœ์ด ํ•„์š”ํ•˜๋ฉด ๋‚ด๋ณด๋‚ด๋Š” ์ชฝ์—์„œ ํ† ํฐ์„ ์‹ค์ œ ์ƒ‰์œผ๋กœ ํ‘ผ๋‹ค.
80
+ */
81
+ export declare const SEDITOR_DEFAULT_COLORS: SEditorColorOption[];
82
+ /**
83
+ * ProseMirror ๊ฐ€ ๋งŒ๋“œ๋Š” ์š”์†Œ์— ๋ถ™๋Š” ํด๋ž˜์Šค โ€” ์ž์‹ ์„ ํƒ์ž์˜ ๊ธฐ์ค€์ ์ด ๋œ๋‹ค.
84
+ *
85
+ * **์•„๋ž˜ `SEDITOR_CONTENT_CLASS` ์—์„œ๋Š” ์ด ์ƒ์ˆ˜๋ฅผ ๋ผ์›Œ ๋„ฃ์ง€ ๋ง๊ณ  ์ด๋ฆ„์„ ๊ทธ๋Œ€๋กœ ์ ๋Š”๋‹ค.**
86
+ * Tailwind ๋Š” ์†Œ์Šค๋ฅผ ๊ธ€์ž๋กœ ํ›‘์„ ๋ฟ ์ฝ”๋“œ๋ฅผ ๋Œ๋ ค ๋ณด์ง€ ์•Š์•„ `` `[&_.${TASK_LIST_CLASS}]:pl-0` ``
87
+ * ๊ฐ™์€ ๋ฌธ์ž์—ด์—์„œ๋Š” ํด๋ž˜์Šค ํ›„๋ณด๋ฅผ ์ฐพ์ง€ ๋ชปํ•˜๊ณ , ๊ทธ ๊ทœ์น™์ด ํ†ต์งธ๋กœ CSS ์—์„œ ๋น ์ง„๋‹ค โ€” ํ™”๋ฉด์—๋Š”
88
+ * ์•„๋ฌด ์—๋Ÿฌ ์—†์ด ์Šคํƒ€์ผ๋งŒ ์‚ฌ๋ผ์ง„๋‹ค (ํ‘œ ํ…Œ๋‘๋ฆฌ๊ฐ€ ํ†ต์งธ๋กœ ์—†๋˜ ์‹ค์ œ ์‚ฌ๊ณ ).
89
+ */
90
+ export declare const TASK_LIST_CLASS = "sd-editor-task-list";
91
+ export declare const TASK_ITEM_CLASS = "sd-editor-task-item";
92
+ export declare const IMAGE_CLASS = "sd-editor-image";
93
+ export declare const TABLE_CLASS = "sd-editor-table";
94
+ export declare const TABLE_ROW_CLASS = "sd-editor-table-row";
95
+ export declare const TABLE_HEADER_CLASS = "sd-editor-table-header";
96
+ export declare const TABLE_CELL_CLASS = "sd-editor-table-cell";
97
+ export interface SEditorExtensionOptions {
98
+ /** ๋นˆ ๋ฌธ์„œ์— ๋ณด์ผ ๋ฌธ๊ตฌ๋ฅผ ๊ทธ๋•Œ๊ทธ๋•Œ ์ฝ์–ด ์˜ค๋Š” ๊ฒŒํ„ฐ */
99
+ getPlaceholder: () => string;
100
+ }
101
+ /**
102
+ * ํŽธ์ง‘ ์˜์—ญ ์•ˆ์ชฝ ์„œ์‹ ์Šคํƒ€์ผ.
103
+ *
104
+ * ProseMirror ๊ฐ€ ๋งŒ๋“œ๋Š” ์ž์‹ ์š”์†Œ(h1ยทulยทblockquote โ€ฆ)๋Š” JSX ์— ์—†์–ด ํด๋ž˜์Šค๋ฅผ ๋‹ฌ ์ˆ˜ ์—†๊ณ ,
105
+ * Tailwind preflight ๊ฐ€ ๋ชฉ๋กยท์ œ๋ชฉ์˜ ๊ธฐ๋ณธ ์Šคํƒ€์ผ์„ ์ง€์›Œ ๋ฒ„๋ฆฐ๋‹ค. ์ด ํŒจํ‚ค์ง€์—๋Š” ์ปดํฌ๋„ŒํŠธ CSS
106
+ * ํŒŒ์ผ์ด ์—†์œผ๋ฏ€๋กœ arbitrary variant ๋กœ ์ž์‹ ์„ ํƒ์ž๋ฅผ ์ง์ ‘ ์“ด๋‹ค.
107
+ */
108
+ export declare const SEDITOR_CONTENT_CLASS: string;
109
+ export interface SEditorContentStyleOptions {
110
+ minHeight?: number | string;
111
+ maxHeight?: number | string;
112
+ disabled?: boolean;
113
+ }
114
+ /**
115
+ * ํŽธ์ง‘ ์˜์—ญ(๊ทธ๋ฆฌ๊ณ  ์—”์ง„์„ ๋ถˆ๋Ÿฌ์˜ค๋Š” ๋™์•ˆ ๊ทธ ์ž๋ฆฌ๋ฅผ ๋Œ€์‹ ํ•˜๋Š” ๋นˆ ์˜์—ญ)์˜ ์ƒ์žยทํƒ€์ดํฌ.
116
+ *
117
+ * ๋‘ ๊ณณ์ด ๊ฐ™์€ ๊ฐ’์„ ์จ์•ผ ๋กœ๋”ฉ์ด ๋๋‚˜๋Š” ์ˆœ๊ฐ„ ๊ธ€์ด ํŠ€์ง€ ์•Š๋Š”๋‹ค.
118
+ */
119
+ export declare const editorContentStyle: ({ minHeight, maxHeight, disabled, }: SEditorContentStyleOptions) => CSSProperties;
@@ -0,0 +1,8 @@
1
+ export { SEditor, type SEditorProps, type SEditorHandle } from './SEditor';
2
+ /**
3
+ * ์—ฌ๊ธฐ ๋‚จ์€ ๊ฒƒ์€ **์ €์žฅ๋œ HTML ์ด ์–ด๋–ป๊ฒŒ ๋ณด์ด๋Š”์ง€**๋ฅผ ์•Œ๋ ค ์ฃผ๋Š” ๊ฐ’๋ฟ์ด๋‹ค โ€” ์ฝ๊ธฐ ํ™”๋ฉด์„
4
+ * ์ง์ ‘ ๊ทธ๋ฆด ๋•Œ ์“ด๋‹ค. ํˆด๋ฐ” ๊ตฌ์„ฑ(`SEDITOR_*_TOOLBAR`ยท`SEditorToolbarItem` โ€ฆ)ยท๊ธ€์ž์ƒ‰
5
+ * ํŒ”๋ ˆํŠธยท๊ธ€์ž ํฌ๊ธฐ ๋ˆˆ๊ธˆ์ฒ˜๋Ÿผ **์—๋””ํ„ฐ์— ๋„˜๊ธฐ๋˜ ๊ฐ’**์€ ๊ทธ๊ฒƒ์„ ๋ฐ”๊พธ๋Š” prop ์ด ๋ชจ๋‘ ์—†์–ด์ ธ
6
+ * ๋‚ด๋ณด๋‚ด์ง€ ์•Š๋Š”๋‹ค. ํˆด๋ฐ” ๊ตฌ์„ฑ์€ `simple` ๋กœ๋งŒ ๊ณ ๋ฅธ๋‹ค.
7
+ */
8
+ export { SEDITOR_HEADING_LEVELS, SEDITOR_HEADING_LABELS, SEDITOR_DEFAULT_FONT_SIZE, type SEditorHeadingLevel, } from './editor.config';
@@ -0,0 +1,29 @@
1
+ import type { AnyExtension } from '@tiptap/core';
2
+ import { type SEditorExtensionOptions } from './editor.config';
3
+ type TiptapReact = typeof import('@tiptap/react');
4
+ type TiptapMenus = typeof import('@tiptap/react/menus');
5
+ /** ๋™์ ์œผ๋กœ ๋ถˆ๋Ÿฌ์˜จ tiptap โ€” ์ด ๊ฐ์ฒด๋ฅผ ๊ฑฐ์น˜์ง€ ์•Š๊ณ ๋Š” ์—๋””ํ„ฐ ์ฝ”๋“œ๊ฐ€ tiptap ์„ ๋งŒ์ง€์ง€ ์•Š๋Š”๋‹ค. */
6
+ export interface TiptapApi {
7
+ useEditor: TiptapReact['useEditor'];
8
+ useEditorState: TiptapReact['useEditorState'];
9
+ EditorContent: TiptapReact['EditorContent'];
10
+ /** ์„ ํƒ ์˜์—ญ ์œ„์— ๋œจ๋Š” ํŒ โ€” ์ž๋ฆฌ๋Š” floating-ui ๊ฐ€ ์žก๋Š”๋‹ค */
11
+ BubbleMenu: TiptapMenus['BubbleMenu'];
12
+ /** tiptap ํ™•์žฅ ๊ตฌ์„ฑ โ€” ์•„๋ž˜ createExtensions ์ฃผ์„ ์ฐธ๊ณ  */
13
+ createExtensions: (options: SEditorExtensionOptions) => AnyExtension[];
14
+ }
15
+ /**
16
+ * tiptap ์„ ๋ถˆ๋Ÿฌ์˜จ๋‹ค (์ด๋ฏธ ๋ถˆ๋Ÿฌ์™”์œผ๋ฉด ๊ฐ™์€ ์•ฝ์†์„ ๋Œ๋ ค์ค€๋‹ค).
17
+ *
18
+ * ์‹คํŒจํ•˜๋ฉด ์บ์‹œ๋ฅผ ๋น„์›Œ ๋‹ค์Œ ๋งˆ์šดํŠธ๊ฐ€ ๋‹ค์‹œ ์‹œ๋„ํ•˜๊ฒŒ ํ•œ๋‹ค โ€” ์ž ๊น์˜ ๋„คํŠธ์›Œํฌ ๋ฌธ์ œ๋กœ
19
+ * ๊ทธ ์„ธ์…˜ ๋‚ด๋‚ด ์—๋””ํ„ฐ๊ฐ€ ๋œจ์ง€ ์•Š๋Š” ์ผ์„ ๋ง‰๋Š”๋‹ค.
20
+ */
21
+ export declare const loadTiptapApi: () => Promise<TiptapApi>;
22
+ /**
23
+ * ๋ถˆ๋Ÿฌ์˜จ tiptap. ์•„์ง ์ค€๋น„๋˜์ง€ ์•Š์•˜์œผ๋ฉด `null`.
24
+ *
25
+ * ๋‘ ๋ฒˆ์งธ ๋งˆ์šดํŠธ๋ถ€ํ„ฐ๋Š” ์ฒซ ๋ Œ๋”์— ๋ฐ”๋กœ ๊ฐ’์ด ์žˆ์–ด ๋นˆ ์ž๋ฆฌ๊ฐ€ ๋ณด์ด์ง€ ์•Š๋Š”๋‹ค.
26
+ * ์„œ๋ฒ„ ๋ Œ๋”์—์„œ๋Š” ์–ธ์ œ๋‚˜ `null` ์ด๋ผ ํ•˜์ด๋“œ๋ ˆ์ด์…˜์ด ์–ด๊ธ‹๋‚˜์ง€ ์•Š๋Š”๋‹ค.
27
+ */
28
+ export declare const useTiptapApi: () => TiptapApi | null;
29
+ export {};
@@ -0,0 +1,14 @@
1
+ /**
2
+ * ์ข์€ ํ™”๋ฉด์ธ๊ฐ€ (SEditor ์ „์šฉ โ€” ๋‹ค๋ฅธ ์ปดํฌ๋„ŒํŠธ์—์„œ import ํ•˜์ง€ ์•Š๋Š”๋‹ค).
3
+ *
4
+ * ์ด DS ์—๋Š” ๋ธŒ๋ ˆ์ดํฌํฌ์ธํŠธ ๊ฐœ๋…์ด ์—†๋‹ค. ์—ฌ๊ธฐ์— ํ•„์š”ํ•œ ์ด์œ ๋Š” ํ•˜๋‚˜๋ฟ์ด๋ผ์„œ โ€” ์†๊ฐ€๋ฝ์œผ๋กœ
5
+ * ์“ฐ๋Š” ์ข์€ ํ™”๋ฉด์—์„œ๋Š” ํˆด๋ฐ” ์œ„์— ๋œจ๋Š” ํŒ์˜ค๋ฒ„(๊ธ€์ž์ƒ‰ ํŒ”๋ ˆํŠธยท๋งํฌ ์ž…๋ ฅ)๊ฐ€ ํ™”๋ฉด ๋ฐ–์œผ๋กœ
6
+ * ๋ฐ€๋ฆฌ๊ฑฐ๋‚˜ ์†Œํ”„ํŠธ ํ‚ค๋ณด๋“œ์— ๊ฐ€๋ฆฐ๋‹ค โ€” ๊ณต์šฉ `lib/` ๋กœ ์˜ฌ๋ฆฌ์ง€ ์•Š๊ณ  ์ด ํด๋”์— ๋‘”๋‹ค. ๋‚˜์ค‘์—
7
+ * DS ์ฐจ์›์˜ ๋ธŒ๋ ˆ์ดํฌํฌ์ธํŠธ๊ฐ€ ์ƒ๊ธฐ๋ฉด ๊ทธ๊ฑธ๋กœ ๊ฐˆ์•„๋ผ์šด๋‹ค.
8
+ *
9
+ * **๋ทฐํฌํŠธ ํญ**์„ ๋ณธ๋‹ค. ํ•„๋“œ ์ž์‹ ์˜ ํญ์ด ์•„๋‹ˆ๋‹ค โ€” ๋„“์€ ํ™”๋ฉด์—์„œ ์ข์€ ์นธ์— ๋†“์ธ ์—๋””ํ„ฐ๋Š”
10
+ * ํŒ์˜ค๋ฒ„๋ฅผ ๋„์šธ ์ž๋ฆฌ๊ฐ€ ์˜†์— ์–ผ๋งˆ๋“ ์ง€ ์žˆ์œผ๋ฏ€๋กœ ํ•˜์œ„ ๋ทฐ๋กœ ๋ฐ”๊ฟ€ ์ด์œ ๊ฐ€ ์—†๋‹ค.
11
+ *
12
+ * ์„œ๋ฒ„ ๋ Œ๋”์™€ ์ฒซ ๋ Œ๋”์—์„œ๋Š” ์–ธ์ œ๋‚˜ `false` ๋‹ค (ํ•˜์ด๋“œ๋ ˆ์ด์…˜์ด ์–ด๊ธ‹๋‚˜์ง€ ์•Š๊ฒŒ).
13
+ */
14
+ export declare const useIsMobile: () => boolean;
@@ -31,6 +31,42 @@
31
31
  |-------|------|-------------|
32
32
  | `onToggle` | `(expanded: boolean, event: MouseEvent<HTMLButtonElement>) => void` | |
33
33
 
34
+ ## Types
35
+
36
+ ### SExpansionItemSupportingTextPosition
37
+
38
+ ```ts
39
+ export type SExpansionItemSupportingTextPosition = 'right' | 'bottom';
40
+ ```
41
+
42
+ ### SExpansionItemRenderProp
43
+
44
+ ```ts
45
+ export type SExpansionItemRenderProp = (state: SExpansionItemRenderState) => ReactNode;
46
+ ```
47
+
48
+ ### SExpansionItemInteraction
49
+
50
+ ```ts
51
+ export type SExpansionItemInteraction = 'chevron';
52
+ ```
53
+
54
+ ### SExpansionItemSize
55
+
56
+ ```ts
57
+ export type SExpansionItemSize = 'sm' | 'md';
58
+ ```
59
+
60
+ ### SExpansionItemRenderState
61
+
62
+ ```ts
63
+ export interface SExpansionItemRenderState {
64
+ expanded: boolean;
65
+ selected: boolean;
66
+ disabled: boolean;
67
+ }
68
+ ```
69
+
34
70
  ## Dependencies
35
71
 
36
72
  ### Used by
@@ -1 +1 @@
1
- export { SExpansionItem, type SExpansionItemProps, type SExpansionItemRenderProp, type SExpansionItemRenderState, type SExpansionItemSupportingTextPosition, } from './SExpansionItem';
1
+ export { SExpansionItem, type SExpansionItemInteraction, type SExpansionItemProps, type SExpansionItemRenderProp, type SExpansionItemRenderState, type SExpansionItemSize, type SExpansionItemSupportingTextPosition, } from './SExpansionItem';
@@ -14,6 +14,7 @@
14
14
  | `iconColor?` | `SColor` | โ€” | ๋ ˆ์ด๋ธ” ์˜์—ญ ์•„์ด์ฝ˜ ์ƒ‰์ƒ. ๋ฏธ์ง€์ • ์‹œ currentColor ์ƒ์† |
15
15
  | `labelTooltip?` | `string` | `''` | ๋ ˆ์ด๋ธ” ํˆดํŒ ํ…์ŠคํŠธ |
16
16
  | `labelTooltipProps?` | `Partial<STooltipProps>` | โ€” | ๋ ˆ์ด๋ธ” ํˆดํŒ ์ƒ์„ธ ์˜ต์…˜ (SdTooltipProps ๋Œ€์‘) |
17
+ | `labelPosition?` | `SFieldLabelPosition` | `'left'` | ๋ ˆ์ด๋ธ”์„ ์ปจํŠธ๋กค **์™ผ์ชฝ**์— ๋‘˜์ง€ **์œ„**์— ๋‘˜์ง€. ๊ธฐ๋ณธ์€ `left` โ€” ์ด ์„œ๋น„์Šค์˜ ํผ์€ ๋ผ๋ฒจ ์—ด์„ ์„ธ๋กœ๋กœ ๋งž์ถฐ ์ฝ๋Š”๋‹ค. ๋ผ๋ฒจ์ด ๊ธธ๊ฑฐ๋‚˜ ์ปจํŠธ๋กค์ด ์ข์•„ ํ•œ ์ค„์— ๊ฐ™์ด ์„ธ์šฐ๊ธฐ ์–ด๋ ค์šธ ๋•Œ(๋ชจ๋‹ฌ ์•ˆ์˜ ํผ, ํ•œ ์ค„์งœ๋ฆฌ ์นธ) `top` ์„ ์“ด๋‹ค. **ํ•œ ํผ ์•ˆ์—์„œ๋Š” ์„ž์ง€ ์•Š๋Š”๋‹ค** โ€” ๋ผ๋ฒจ ์‹œ์ž‘์ ์ด ํ–‰๋งˆ๋‹ค ์–ด๊ธ‹๋‚˜ ์„ธ๋กœ ์ •๋ ฌ์ด ๊นจ์ง„๋‹ค. `top` ์ด๋ฉด ๋ผ๋ฒจ๊ณผ ์ปจํŠธ๋กค ์‚ฌ์ด ๊ฐ„๊ฒฉ์€ `--sys-space-field-vertical-gap` ์ด ์ •ํ•œ๋‹ค (smยทmd ๊ตฌ๋ถ„ ์—†์ด ๊ณ ์ •). ๋ผ๋ฒจ์„ ์ค„ ์„ธ์šฐ๋Š” ์žฅ์น˜์ธ `labelWidth`ยท`labelHeight` ๋Š” ์œ„์— ์„  ๋ผ๋ฒจ์—๋Š” ๋œป์ด ์—†์–ด ๋ฌด์‹œ๋œ๋‹ค โ€” `addonLabel` ์˜ ํญ์—๋Š” ๊ทธ๋Œ€๋กœ ์ ์šฉ๋œ๋‹ค. |
17
18
  | `labelWidth?` | `number \| string` | โ€” | ๋ ˆ์ด๋ธ”/์–ด๋“œ์˜จ ๋ ˆ์ด๋ธ” ๋„ˆ๋น„ (์ˆซ์ž=px). labelยทaddonLabel ํญ์— ๊ณตํ†ต ์ ์šฉ |
18
19
  | `labelHeight?` | `number \| string` | โ€” | ๋ ˆ์ด๋ธ” ๋ฐ•์Šค ๋†’์ด (์ˆซ์ž=px). ๋ฏธ์ง€์ • ์‹œ size๋ณ„ ๊ธฐ๋ณธ๊ฐ’ ์‚ฌ์šฉ. ์ปจํŠธ๋กค ๋ฐ•์Šค๊ฐ€ ๊ธฐ๋ณธ ํ•„๋“œ ๋†’์ด๋ณด๋‹ค ํฐ ๊ฒฝ์šฐ(multiline ๋“ฑ) ์ฒซ ํ–‰์— ์„ธ๋กœ ์ค‘์•™ ์ •๋ ฌ์„ ๋งž์ถ”๊ธฐ ์œ„ํ•ด ์ปจํŠธ๋กค ๋ฐ•์Šค ๋†’์ด๋ฅผ ๋„˜๊ฒจ๋ฐ›๋Š”๋‹ค. |
19
20
  | `size?` | `SFieldSize` | `'sm'` | ํ•„๋“œ ํฌ๊ธฐ |
@@ -22,15 +23,15 @@
22
23
  | `error?` | `boolean` | `false` | ์—๋Ÿฌ ์ƒํƒœ |
23
24
  | `errorMessage?` | `string` | `''` | ์—๋Ÿฌ ๋ฉ”์‹œ์ง€ |
24
25
  | `status?` | `SFieldStatus` | โ€” | ํ•„๋“œ ์ƒํƒœ โ€” 'error' | 'pass' | 'default'. 'pass'๋ฉด ์ดˆ๋ก ํ…Œ๋‘๋ฆฌ |
25
- | `focused?` | `boolean` | `false` | ํฌ์ปค์Šค ์ƒํƒœ (์ œ์–ด/๋ฐ˜์˜) |
26
- | `hovered?` | `boolean` | `false` | ํ˜ธ๋ฒ„ ์ƒํƒœ (์ œ์–ด/๋ฐ˜์˜) |
26
+ | `focused?` | `boolean` | `false` | ํฌ์ปค์Šค ์ƒํƒœ๋ฅผ ๋ฐ–์—์„œ ์ง€์ •ํ•œ๋‹ค. ํ•„๋“œ๋ฅผ ๊ฐ์‹ผ ์ชฝ์ด ํฌ์ปค์Šค๋ฅผ ์ฅ๊ณ  ์žˆ์–ด(์ปค์Šคํ…€ ํŠธ๋ฆฌ๊ฑฐยท๋ณตํ•ฉ ์ปจํŠธ๋กค) ํ•„๋“œ ์ž์‹ ์€ `:focus-within` ์ด ๊ฑธ๋ฆฌ์ง€ ์•Š์„ ๋•Œ ์“ด๋‹ค. ์ผœ๋ฉด ๊ฐ•์กฐ ํ…Œ๋‘๋ฆฌยท๋ง์ด error/pass ๋ณด๋‹ค ์šฐ์„ ํ•œ๋‹ค. |
27
+ | `hovered?` | `boolean` | `false` | ํ˜ธ๋ฒ„ ์ƒํƒœ๋ฅผ ๋ฐ–์—์„œ ์ง€์ •ํ•œ๋‹ค. `focused` ์™€ ๊ฐ™์€ ์ด์œ ๋กœ ์“ฐ๋ฉฐ, ๊ฐ•์กฐ๋„ ๊ฐ™๋‹ค โ€” ์‹ค์ œ `:hover` ์™€ ๊ตฌ๋ถ„๋˜์ง€ ์•Š๋Š” ๋ชจ์–‘์ด์–ด์•ผ ๋ฐ–์—์„œ ํ‰๋‚ด ๋‚ธ ๊ฒƒ์ด ํ‹ฐ๊ฐ€ ๋‚˜์ง€ ์•Š๋Š”๋‹ค. |
27
28
  | `rules?` | `Rule[]` | โ€” | ์œ ํšจ์„ฑ ๊ทœ์น™ (๊ฒ€์ฆ์€ ์ปจํŠธ๋กค์—์„œ ์ˆ˜ํ–‰, API ํŒจ๋ฆฌํ‹ฐ) |
28
29
  | `hint?` | `string` | `''` | ํ•˜๋‹จ ํžŒํŠธ |
29
30
  | `disabled?` | `boolean` | `false` | ๋น„ํ™œ์„ฑ |
30
31
  | `readOnly?` | `boolean` | `false` | ์ฝ๊ธฐ ์ „์šฉ (ํšŒ์ƒ‰ ๋ฐฐ๊ฒฝ) |
31
- | `width?` | `number \| string` | โ€” | ์ปจํŠธ๋กค ๋„ˆ๋น„ (์ˆซ์ž=px). ์ง€์ •ํ•˜๋ฉด ํ•„๋“œ๊ฐ€ ๋ถ€๋ชจ ํญ์„ ๋‹ค ๋จน์ง€ ์•Š๊ณ  (๋ ˆ์ด๋ธ” + width) ๋งŒํผ๋งŒ ์ฐจ์ง€ํ•œ๋‹ค. ๋‹ค๋ฅธ ์š”์†Œ์™€ ๋‚˜๋ž€ํžˆ ๋†“์œผ๋ ค๋ฉด ๋ถ€๋ชจ๋ฅผ flex ๋กœ ๋‘๋ฉด ๋œ๋‹ค. |
32
- | `minWidth?` | `number \| string` | โ€” | ์ปจํŠธ๋กค ์ตœ์†Œ ๋„ˆ๋น„ (์ˆซ์ž=px). ํ•˜ํ•œ์„ ๋งŒ ์ง€์ •ํ•˜๋ฉฐ ํ•„๋“œ๋Š” ๊ณ„์† ๋ถ€๋ชจ ํญ์„ ์ฑ„์šด๋‹ค |
33
- | `maxWidth?` | `number \| string` | โ€” | ์ปจํŠธ๋กค ์ตœ๋Œ€ ๋„ˆ๋น„ (์ˆซ์ž=px). ์ƒํ•œ์„ ๋งŒ ์ง€์ •ํ•˜๋ฉฐ ํ•„๋“œ๋Š” ๊ทธ ์•„๋ž˜์—์„œ ๋ถ€๋ชจ ํญ์„ ์ฑ„์šด๋‹ค. `width` ์™€ ๋‹ฌ๋ฆฌ hug ๋กœ ์ „ํ™˜ํ•˜์ง€ ์•Š๋Š”๋‹ค โ€” ๋ถ€๋ชจ๊ฐ€ ์ข์œผ๋ฉด ๊ฐ™์ด ์ข์•„์ง€๊ณ , ๋„“์–ด๋„ ์—ฌ๊ธฐ์„œ ๋ฉˆ์ถ˜๋‹ค. ๊ฐ’ ๊ธธ์ด๊ฐ€ ์ •ํ•ด์ง„ ์ปจํŠธ๋กค(๋‚ ์งœยท์‹œ๊ฐ„)์ด `width="100%"` ๋ฅผ ๋ฐ›์•„ ํ–‰ ์ „์ฒด๋กœ ๋Š˜์–ด๋‚˜๋Š” ๊ฒƒ์„ ๋ง‰๋Š” ๋ฐ ์“ด๋‹ค. **๋ผ๋ฒจ์€ ์ƒํ•œ์— ๋“ค์–ด๊ฐ€์ง€ ์•Š๋Š”๋‹ค** โ€” ๋ผ๋ฒจ์€ ์ปจํŠธ๋กค์˜ ํ˜•์ œ๋ผ ์ด ์ƒํ•œ ๋ฐ–์ด๋‹ค. `addonLabel` ์€ ํ…Œ๋‘๋ฆฌ ๋ฐ•์Šค ์•ˆ์ด๋ผ ์ƒํ•œ์„ ๋‚˜๋ˆ  ๋จน์œผ๋ฏ€๋กœ, `labelWidth`(= addon ํญ)๋งŒํผ ์ƒํ•œ์„ ์ž๋™์œผ๋กœ ๋Š˜๋ฆฐ๋‹ค. addon ์ด ์žˆ๋Š”๋ฐ `labelWidth` ๊ฐ€ ์—†์œผ๋ฉด ํญ์„ ์•Œ ์ˆ˜ ์—†์–ด ์ƒํ•œ์„ ๊ฑธ์ง€ ์•Š๋Š”๋‹ค โ€” ์ปจํŠธ๋กค์ด ์ž˜๋ฆฌ๋Š” ๊ฒƒ๋ณด๋‹ค ๋„“์€ ํŽธ์ด ๋‚ซ๋‹ค. |
32
+ | `width?` | `SFieldWidth` | โ€” | ์ปจํŠธ๋กค ๋„ˆ๋น„. ์ง€์ •ํ•˜๋ฉด ํ•„๋“œ๊ฐ€ ๋ถ€๋ชจ ํญ์„ ๋‹ค ๋จน์ง€ ์•Š๊ณ  (๋ ˆ์ด๋ธ” + width) ๋งŒํผ๋งŒ ์ฐจ์ง€ํ•œ๋‹ค. ๋‹ค๋ฅธ ์š”์†Œ์™€ ๋‚˜๋ž€ํžˆ ๋†“์œผ๋ ค๋ฉด ๋ถ€๋ชจ๋ฅผ flex ๋กœ ๋‘๋ฉด ๋œ๋‹ค. **ํญ ๋“ฑ๊ธ‰(`'xs' | 'sm' | 'md' | 'lg' | 'xl'`)์œผ๋กœ ์ค€๋‹ค** โ€” `--cmp-field-width-*` ํ† ํฐ์œผ๋กœ ํ’€๋ฆฌ๋ฏ€๋กœ ํ† ํฐ์ด ๋ฐ”๋€Œ๋ฉด ํ™”๋ฉด์ด ๋”ฐ๋ผ๊ฐ„๋‹ค. ๋“ฑ๊ธ‰์€ `maxLength`(= ์Šคํ‚ค๋งˆ ์ƒํ•œ)๋กœ ๊ณ ๋ฅด๊ณ , ์ƒํ•œ์ด `xl` ์„ ๋„˜๊ฑฐ๋‚˜ ์ƒํ•œ์ด ์—†์œผ๋ฉด `"100%"` ๋กœ ๋‘”๋‹ค. (`sellmate/field-width-grade` ๊ฐ€ ๊ฒ€์‚ฌํ•œ๋‹ค) ์ˆซ์ž๋Š” px, ๊ทธ ๋ฐ–์˜ ๋ฌธ์ž์—ด์€ CSS ๊ธธ์ด ๊ทธ๋Œ€๋กœ๋‹ค. |
33
+ | `minWidth?` | `SFieldWidth` | โ€” | ์ปจํŠธ๋กค ์ตœ์†Œ ๋„ˆ๋น„ (๋“ฑ๊ธ‰ ยท ์ˆซ์ž=px ยท CSS ๊ธธ์ด). ํ•˜ํ•œ์„ ๋งŒ ์ง€์ •ํ•˜๋ฉฐ ํ•„๋“œ๋Š” ๊ณ„์† ๋ถ€๋ชจ ํญ์„ ์ฑ„์šด๋‹ค |
34
+ | `maxWidth?` | `SFieldWidth` | โ€” | ์ปจํŠธ๋กค ์ตœ๋Œ€ ๋„ˆ๋น„ (๋“ฑ๊ธ‰ ยท ์ˆซ์ž=px ยท CSS ๊ธธ์ด). ์ƒํ•œ์„ ๋งŒ ์ง€์ •ํ•˜๋ฉฐ ํ•„๋“œ๋Š” ๊ทธ ์•„๋ž˜์—์„œ ๋ถ€๋ชจ ํญ์„ ์ฑ„์šด๋‹ค. `width` ์™€ ๋‹ฌ๋ฆฌ hug ๋กœ ์ „ํ™˜ํ•˜์ง€ ์•Š๋Š”๋‹ค โ€” ๋ถ€๋ชจ๊ฐ€ ์ข์œผ๋ฉด ๊ฐ™์ด ์ข์•„์ง€๊ณ , ๋„“์–ด๋„ ์—ฌ๊ธฐ์„œ ๋ฉˆ์ถ˜๋‹ค. ๊ฐ’ ๊ธธ์ด๊ฐ€ ์ •ํ•ด์ง„ ์ปจํŠธ๋กค(๋‚ ์งœยท์‹œ๊ฐ„)์ด `width="100%"` ๋ฅผ ๋ฐ›์•„ ํ–‰ ์ „์ฒด๋กœ ๋Š˜์–ด๋‚˜๋Š” ๊ฒƒ์„ ๋ง‰๋Š” ๋ฐ ์“ด๋‹ค. **๋ผ๋ฒจ์€ ์ƒํ•œ์— ๋“ค์–ด๊ฐ€์ง€ ์•Š๋Š”๋‹ค** โ€” ๋ผ๋ฒจ์€ ์ปจํŠธ๋กค์˜ ํ˜•์ œ๋ผ ์ด ์ƒํ•œ ๋ฐ–์ด๋‹ค. `addonLabel` ์€ ํ…Œ๋‘๋ฆฌ ๋ฐ•์Šค ์•ˆ์ด๋ผ ์ƒํ•œ์„ ๋‚˜๋ˆ  ๋จน์œผ๋ฏ€๋กœ, `labelWidth`(= addon ํญ)๋งŒํผ ์ƒํ•œ์„ ์ž๋™์œผ๋กœ ๋Š˜๋ฆฐ๋‹ค. addon ์ด ์žˆ๋Š”๋ฐ `labelWidth` ๊ฐ€ ์—†์œผ๋ฉด ํญ์„ ์•Œ ์ˆ˜ ์—†์–ด ์ƒํ•œ์„ ๊ฑธ์ง€ ์•Š๋Š”๋‹ค โ€” ์ปจํŠธ๋กค์ด ์ž˜๋ฆฌ๋Š” ๊ฒƒ๋ณด๋‹ค ๋„“์€ ํŽธ์ด ๋‚ซ๋‹ค. |
34
35
  | `multiline?` | `boolean` | `false` | ๋ฉ€ํ‹ฐ๋ผ์ธ(textarea) โ€” ์ปจํŠธ๋กค ๋†’์ด๋ฅผ ๊ณ ์ •ํ•˜์ง€ ์•Š๊ณ  min-height๋งŒ ์ ์šฉ |
35
36
  | `borderless?` | `boolean` | `false` | ํ…Œ๋‘๋ฆฌ ๋ฐ•์Šค ์ œ๊ฑฐ (inline ์ปจํŠธ๋กค์šฉ) โ€” border/๋ฐฐ๊ฒฝ/hoverยทfocus ๊ฐ•์กฐ๋งŒ ์‚ฌ๋ผ์ง€๊ณ  labelยทhintยทerrorMessage ๋“ฑ ๋‚˜๋จธ์ง€ ํ•„๋“œ ๊ตฌ์„ฑ์€ ๊ทธ๋Œ€๋กœ ๋™์ž‘ํ•œ๋‹ค. |
36
37
  | `children?` | `ReactNode` | โ€” | ์‹ค์ œ ์ปจํŠธ๋กค (input/select ๋“ฑ) โ€” ํ…Œ๋‘๋ฆฌ ์—†์ด ๋ Œ๋”, ํ…Œ๋‘๋ฆฌ๋Š” SField๊ฐ€ ์ œ๊ณต |
@@ -50,6 +51,32 @@
50
51
  |--------|------|-------------|
51
52
  | `focus` | `() => void` | ๋‚ด๋ถ€ ์ปจํŠธ๋กค์— ํฌ์ปค์Šคํ•˜๊ณ  ํ•„๋“œ๋ฅผ ํ™”๋ฉด์— ์Šคํฌ๋กคํ•ฉ๋‹ˆ๋‹ค. |
52
53
 
54
+ ## Types
55
+
56
+ ### SFieldLabelPosition
57
+
58
+ ```ts
59
+ export type SFieldLabelPosition = 'left' | 'top';
60
+ ```
61
+
62
+ ### SFieldSize
63
+
64
+ ```ts
65
+ export type SFieldSize = 'sm' | 'md';
66
+ ```
67
+
68
+ ### SFieldAddonAlign
69
+
70
+ ```ts
71
+ export type SFieldAddonAlign = 'start' | 'center' | 'end';
72
+ ```
73
+
74
+ ### SFieldStatus
75
+
76
+ ```ts
77
+ export type SFieldStatus = 'default' | 'pass' | 'error';
78
+ ```
79
+
53
80
  ## Dependencies
54
81
 
55
82
  ### Used by
@@ -58,9 +85,11 @@
58
85
  - [SChipInput](../SChipInput)
59
86
  - [SDatePicker](../SDatePicker)
60
87
  - [SDateRangePicker](../SDateRangePicker)
88
+ - [SEditor](../SEditor)
61
89
  - [SFilePicker](../SFilePicker)
62
90
  - [SInput](../SInput)
63
91
  - [SNumberInput](../SNumberInput)
92
+ - [SSearchInput](../SSearchInput)
64
93
  - [SSelect](../SSelect)
65
94
  - [STextarea](../STextarea)
66
95
  - [STimePicker](../STimePicker)
@@ -81,9 +110,11 @@ graph TD;
81
110
  SChipInput --> SField
82
111
  SDatePicker --> SField
83
112
  SDateRangePicker --> SField
113
+ SEditor --> SField
84
114
  SFilePicker --> SField
85
115
  SInput --> SField
86
116
  SNumberInput --> SField
117
+ SSearchInput --> SField
87
118
  SSelect --> SField
88
119
  STextarea --> SField
89
120
  STimePicker --> SField
@@ -3,9 +3,11 @@ import { type SIconName } from '../SIcon';
3
3
  import { type STooltipProps } from '../STooltip';
4
4
  import { type SColor } from '../../lib/color';
5
5
  import { type Rule } from '../../lib/form';
6
+ import { type SFieldWidth } from '../../lib/field-width';
6
7
  export type SFieldSize = 'sm' | 'md';
7
8
  export type SFieldAddonAlign = 'start' | 'center' | 'end';
8
9
  export type SFieldStatus = 'default' | 'pass' | 'error';
10
+ export type SFieldLabelPosition = 'left' | 'top';
9
11
  /** ref๋กœ ๋…ธ์ถœ๋˜๋Š” UX ๋ฉ”์„œ๋“œ (sd-field @Method sdFocus ๋Œ€์‘) */
10
12
  export interface SFieldHandle {
11
13
  /** ๋‚ด๋ถ€ ์ปจํŠธ๋กค์— ํฌ์ปค์Šคํ•˜๊ณ  ํ•„๋“œ๋ฅผ ํ™”๋ฉด์— ์Šคํฌ๋กคํ•ฉ๋‹ˆ๋‹ค. */
@@ -24,6 +26,18 @@ export interface SFieldProps {
24
26
  labelTooltip?: string;
25
27
  /** ๋ ˆ์ด๋ธ” ํˆดํŒ ์ƒ์„ธ ์˜ต์…˜ (SdTooltipProps ๋Œ€์‘) */
26
28
  labelTooltipProps?: Partial<STooltipProps>;
29
+ /**
30
+ * ๋ ˆ์ด๋ธ”์„ ์ปจํŠธ๋กค **์™ผ์ชฝ**์— ๋‘˜์ง€ **์œ„**์— ๋‘˜์ง€.
31
+ *
32
+ * ๊ธฐ๋ณธ์€ `left` โ€” ์ด ์„œ๋น„์Šค์˜ ํผ์€ ๋ผ๋ฒจ ์—ด์„ ์„ธ๋กœ๋กœ ๋งž์ถฐ ์ฝ๋Š”๋‹ค. ๋ผ๋ฒจ์ด ๊ธธ๊ฑฐ๋‚˜ ์ปจํŠธ๋กค์ด
33
+ * ์ข์•„ ํ•œ ์ค„์— ๊ฐ™์ด ์„ธ์šฐ๊ธฐ ์–ด๋ ค์šธ ๋•Œ(๋ชจ๋‹ฌ ์•ˆ์˜ ํผ, ํ•œ ์ค„์งœ๋ฆฌ ์นธ) `top` ์„ ์“ด๋‹ค.
34
+ * **ํ•œ ํผ ์•ˆ์—์„œ๋Š” ์„ž์ง€ ์•Š๋Š”๋‹ค** โ€” ๋ผ๋ฒจ ์‹œ์ž‘์ ์ด ํ–‰๋งˆ๋‹ค ์–ด๊ธ‹๋‚˜ ์„ธ๋กœ ์ •๋ ฌ์ด ๊นจ์ง„๋‹ค.
35
+ *
36
+ * `top` ์ด๋ฉด ๋ผ๋ฒจ๊ณผ ์ปจํŠธ๋กค ์‚ฌ์ด ๊ฐ„๊ฒฉ์€ `--sys-space-field-vertical-gap` ์ด ์ •ํ•œ๋‹ค
37
+ * (smยทmd ๊ตฌ๋ถ„ ์—†์ด ๊ณ ์ •). ๋ผ๋ฒจ์„ ์ค„ ์„ธ์šฐ๋Š” ์žฅ์น˜์ธ `labelWidth`ยท`labelHeight` ๋Š”
38
+ * ์œ„์— ์„  ๋ผ๋ฒจ์—๋Š” ๋œป์ด ์—†์–ด ๋ฌด์‹œ๋œ๋‹ค โ€” `addonLabel` ์˜ ํญ์—๋Š” ๊ทธ๋Œ€๋กœ ์ ์šฉ๋œ๋‹ค.
39
+ */
40
+ labelPosition?: SFieldLabelPosition;
27
41
  /** ๋ ˆ์ด๋ธ”/์–ด๋“œ์˜จ ๋ ˆ์ด๋ธ” ๋„ˆ๋น„ (์ˆซ์ž=px). labelยทaddonLabel ํญ์— ๊ณตํ†ต ์ ์šฉ */
28
42
  labelWidth?: number | string;
29
43
  /**
@@ -44,9 +58,15 @@ export interface SFieldProps {
44
58
  errorMessage?: string;
45
59
  /** ํ•„๋“œ ์ƒํƒœ โ€” 'error' | 'pass' | 'default'. 'pass'๋ฉด ์ดˆ๋ก ํ…Œ๋‘๋ฆฌ */
46
60
  status?: SFieldStatus;
47
- /** ํฌ์ปค์Šค ์ƒํƒœ (์ œ์–ด/๋ฐ˜์˜) */
61
+ /**
62
+ * ํฌ์ปค์Šค ์ƒํƒœ๋ฅผ ๋ฐ–์—์„œ ์ง€์ •ํ•œ๋‹ค. ํ•„๋“œ๋ฅผ ๊ฐ์‹ผ ์ชฝ์ด ํฌ์ปค์Šค๋ฅผ ์ฅ๊ณ  ์žˆ์–ด(์ปค์Šคํ…€ ํŠธ๋ฆฌ๊ฑฐยท๋ณตํ•ฉ ์ปจํŠธ๋กค)
63
+ * ํ•„๋“œ ์ž์‹ ์€ `:focus-within` ์ด ๊ฑธ๋ฆฌ์ง€ ์•Š์„ ๋•Œ ์“ด๋‹ค. ์ผœ๋ฉด ๊ฐ•์กฐ ํ…Œ๋‘๋ฆฌยท๋ง์ด error/pass ๋ณด๋‹ค ์šฐ์„ ํ•œ๋‹ค.
64
+ */
48
65
  focused?: boolean;
49
- /** ํ˜ธ๋ฒ„ ์ƒํƒœ (์ œ์–ด/๋ฐ˜์˜) */
66
+ /**
67
+ * ํ˜ธ๋ฒ„ ์ƒํƒœ๋ฅผ ๋ฐ–์—์„œ ์ง€์ •ํ•œ๋‹ค. `focused` ์™€ ๊ฐ™์€ ์ด์œ ๋กœ ์“ฐ๋ฉฐ, ๊ฐ•์กฐ๋„ ๊ฐ™๋‹ค โ€”
68
+ * ์‹ค์ œ `:hover` ์™€ ๊ตฌ๋ถ„๋˜์ง€ ์•Š๋Š” ๋ชจ์–‘์ด์–ด์•ผ ๋ฐ–์—์„œ ํ‰๋‚ด ๋‚ธ ๊ฒƒ์ด ํ‹ฐ๊ฐ€ ๋‚˜์ง€ ์•Š๋Š”๋‹ค.
69
+ */
50
70
  hovered?: boolean;
51
71
  /** ์œ ํšจ์„ฑ ๊ทœ์น™ (๊ฒ€์ฆ์€ ์ปจํŠธ๋กค์—์„œ ์ˆ˜ํ–‰, API ํŒจ๋ฆฌํ‹ฐ) */
52
72
  rules?: Rule[];
@@ -57,14 +77,19 @@ export interface SFieldProps {
57
77
  /** ์ฝ๊ธฐ ์ „์šฉ (ํšŒ์ƒ‰ ๋ฐฐ๊ฒฝ) */
58
78
  readOnly?: boolean;
59
79
  /**
60
- * ์ปจํŠธ๋กค ๋„ˆ๋น„ (์ˆซ์ž=px). ์ง€์ •ํ•˜๋ฉด ํ•„๋“œ๊ฐ€ ๋ถ€๋ชจ ํญ์„ ๋‹ค ๋จน์ง€ ์•Š๊ณ  (๋ ˆ์ด๋ธ” + width) ๋งŒํผ๋งŒ ์ฐจ์ง€ํ•œ๋‹ค.
80
+ * ์ปจํŠธ๋กค ๋„ˆ๋น„. ์ง€์ •ํ•˜๋ฉด ํ•„๋“œ๊ฐ€ ๋ถ€๋ชจ ํญ์„ ๋‹ค ๋จน์ง€ ์•Š๊ณ  (๋ ˆ์ด๋ธ” + width) ๋งŒํผ๋งŒ ์ฐจ์ง€ํ•œ๋‹ค.
61
81
  * ๋‹ค๋ฅธ ์š”์†Œ์™€ ๋‚˜๋ž€ํžˆ ๋†“์œผ๋ ค๋ฉด ๋ถ€๋ชจ๋ฅผ flex ๋กœ ๋‘๋ฉด ๋œ๋‹ค.
82
+ *
83
+ * **ํญ ๋“ฑ๊ธ‰(`'xs' | 'sm' | 'md' | 'lg' | 'xl'`)์œผ๋กœ ์ค€๋‹ค** โ€” `--cmp-field-width-*` ํ† ํฐ์œผ๋กœ ํ’€๋ฆฌ๋ฏ€๋กœ
84
+ * ํ† ํฐ์ด ๋ฐ”๋€Œ๋ฉด ํ™”๋ฉด์ด ๋”ฐ๋ผ๊ฐ„๋‹ค. ๋“ฑ๊ธ‰์€ `maxLength`(= ์Šคํ‚ค๋งˆ ์ƒํ•œ)๋กœ ๊ณ ๋ฅด๊ณ , ์ƒํ•œ์ด `xl` ์„
85
+ * ๋„˜๊ฑฐ๋‚˜ ์ƒํ•œ์ด ์—†์œผ๋ฉด `"100%"` ๋กœ ๋‘”๋‹ค. (`sellmate/field-width-grade` ๊ฐ€ ๊ฒ€์‚ฌํ•œ๋‹ค)
86
+ * ์ˆซ์ž๋Š” px, ๊ทธ ๋ฐ–์˜ ๋ฌธ์ž์—ด์€ CSS ๊ธธ์ด ๊ทธ๋Œ€๋กœ๋‹ค.
62
87
  */
63
- width?: number | string;
64
- /** ์ปจํŠธ๋กค ์ตœ์†Œ ๋„ˆ๋น„ (์ˆซ์ž=px). ํ•˜ํ•œ์„ ๋งŒ ์ง€์ •ํ•˜๋ฉฐ ํ•„๋“œ๋Š” ๊ณ„์† ๋ถ€๋ชจ ํญ์„ ์ฑ„์šด๋‹ค */
65
- minWidth?: number | string;
88
+ width?: SFieldWidth;
89
+ /** ์ปจํŠธ๋กค ์ตœ์†Œ ๋„ˆ๋น„ (๋“ฑ๊ธ‰ ยท ์ˆซ์ž=px ยท CSS ๊ธธ์ด). ํ•˜ํ•œ์„ ๋งŒ ์ง€์ •ํ•˜๋ฉฐ ํ•„๋“œ๋Š” ๊ณ„์† ๋ถ€๋ชจ ํญ์„ ์ฑ„์šด๋‹ค */
90
+ minWidth?: SFieldWidth;
66
91
  /**
67
- * ์ปจํŠธ๋กค ์ตœ๋Œ€ ๋„ˆ๋น„ (์ˆซ์ž=px). ์ƒํ•œ์„ ๋งŒ ์ง€์ •ํ•˜๋ฉฐ ํ•„๋“œ๋Š” ๊ทธ ์•„๋ž˜์—์„œ ๋ถ€๋ชจ ํญ์„ ์ฑ„์šด๋‹ค.
92
+ * ์ปจํŠธ๋กค ์ตœ๋Œ€ ๋„ˆ๋น„ (๋“ฑ๊ธ‰ ยท ์ˆซ์ž=px ยท CSS ๊ธธ์ด). ์ƒํ•œ์„ ๋งŒ ์ง€์ •ํ•˜๋ฉฐ ํ•„๋“œ๋Š” ๊ทธ ์•„๋ž˜์—์„œ ๋ถ€๋ชจ ํญ์„ ์ฑ„์šด๋‹ค.
68
93
  *
69
94
  * `width` ์™€ ๋‹ฌ๋ฆฌ hug ๋กœ ์ „ํ™˜ํ•˜์ง€ ์•Š๋Š”๋‹ค โ€” ๋ถ€๋ชจ๊ฐ€ ์ข์œผ๋ฉด ๊ฐ™์ด ์ข์•„์ง€๊ณ , ๋„“์–ด๋„ ์—ฌ๊ธฐ์„œ ๋ฉˆ์ถ˜๋‹ค.
70
95
  * ๊ฐ’ ๊ธธ์ด๊ฐ€ ์ •ํ•ด์ง„ ์ปจํŠธ๋กค(๋‚ ์งœยท์‹œ๊ฐ„)์ด `width="100%"` ๋ฅผ ๋ฐ›์•„ ํ–‰ ์ „์ฒด๋กœ ๋Š˜์–ด๋‚˜๋Š” ๊ฒƒ์„ ๋ง‰๋Š” ๋ฐ ์“ด๋‹ค.
@@ -74,7 +99,7 @@ export interface SFieldProps {
74
99
  * ์ƒํ•œ์„ ์ž๋™์œผ๋กœ ๋Š˜๋ฆฐ๋‹ค. addon ์ด ์žˆ๋Š”๋ฐ `labelWidth` ๊ฐ€ ์—†์œผ๋ฉด ํญ์„ ์•Œ ์ˆ˜ ์—†์–ด ์ƒํ•œ์„
75
100
  * ๊ฑธ์ง€ ์•Š๋Š”๋‹ค โ€” ์ปจํŠธ๋กค์ด ์ž˜๋ฆฌ๋Š” ๊ฒƒ๋ณด๋‹ค ๋„“์€ ํŽธ์ด ๋‚ซ๋‹ค.
76
101
  */
77
- maxWidth?: number | string;
102
+ maxWidth?: SFieldWidth;
78
103
  /** ๋ฉ€ํ‹ฐ๋ผ์ธ(textarea) โ€” ์ปจํŠธ๋กค ๋†’์ด๋ฅผ ๊ณ ์ •ํ•˜์ง€ ์•Š๊ณ  min-height๋งŒ ์ ์šฉ */
79
104
  multiline?: boolean;
80
105
  /**
@@ -1 +1 @@
1
- export { SField, type SFieldHandle, type SFieldProps, type SFieldSize, type SFieldAddonAlign, type SFieldStatus, } from './SField';
1
+ export { SField, type SFieldHandle, type SFieldProps, type SFieldSize, type SFieldAddonAlign, type SFieldStatus, type SFieldLabelPosition, } from './SField';
@@ -11,11 +11,11 @@
11
11
  | `value?` | `SFilePickerValue` | `null` | |
12
12
  | `placeholder?` | `string` | `'Click to upload'` | |
13
13
  | `disabled?` | `boolean` | `false` | |
14
- | `focused?` | `boolean` | `false` | ํฌ์ปค์Šค ์ƒํƒœ ์—ฌ๋ถ€ |
15
- | `hovered?` | `boolean` | `false` | ํ˜ธ๋ฒ„ ์ƒํƒœ ์—ฌ๋ถ€ |
14
+ | `focused?` | `boolean` | `false` | ํฌ์ปค์Šค ์ƒํƒœ๋ฅผ ๋ฐ–์—์„œ ์ง€์ •ํ•œ๋‹ค โ€” ๊ฐ•์กฐ ํ…Œ๋‘๋ฆฌยท๋ง์ด ์ฆ‰์‹œ ๊ฑธ๋ฆฐ๋‹ค (SField ๋กœ ๊ทธ๋Œ€๋กœ ๋„˜์–ด๊ฐ„๋‹ค) |
15
+ | `hovered?` | `boolean` | `false` | ํ˜ธ๋ฒ„ ์ƒํƒœ๋ฅผ ๋ฐ–์—์„œ ์ง€์ •ํ•œ๋‹ค โ€” ๊ฐ•์กฐ๋Š” `focused` ์™€ ๊ฐ™๋‹ค (SField ๋กœ ๊ทธ๋Œ€๋กœ ๋„˜์–ด๊ฐ„๋‹ค) |
16
16
  | `inline?` | `boolean` | `false` | ์ธ๋ผ์ธ ํ‘œ์‹œ โ€” SField ํ…Œ๋‘๋ฆฌ ๋ฐ•์Šค๋งŒ ์‚ฌ๋ผ์ง€๊ณ  label/rules/hint ๋Š” ๊ทธ๋Œ€๋กœ ๋™์ž‘ |
17
17
  | `multiple?` | `boolean` | `false` | |
18
- | `useMultipleListBox?` | `boolean` | `false` | multiple ํŒŒ์ผ ๋ชฉ๋ก์„ ํ•„๋“œ ์•„๋ž˜ ์นฉ ๋Œ€์‹ , caret(โ–ผ) ํด๋ฆญ ์‹œ ์—ด๋ฆฌ๋Š” ๋ฆฌ์ŠคํŠธ๋ฐ•์Šค ์นด๋“œ๋กœ ํ‘œ์‹œ (๋ฐ”๊นฅ ํด๋ฆญ ์‹œ ๋‹ซํž˜) |
18
+ | `showMultipleListBox?` | `boolean` | `false` | multiple ํŒŒ์ผ ๋ชฉ๋ก์„ ํ•„๋“œ ์•„๋ž˜ ์นฉ ๋Œ€์‹ , caret(โ–ผ) ํด๋ฆญ ์‹œ ์—ด๋ฆฌ๋Š” ๋ฆฌ์ŠคํŠธ๋ฐ•์Šค ์นด๋“œ๋กœ ํ‘œ์‹œ (๋ฐ”๊นฅ ํด๋ฆญ ์‹œ ๋‹ซํž˜) |
19
19
  | `accept?` | `string` | โ€” | |
20
20
  | `maxFileSize?` | `number \| string` | โ€” | |
21
21
  | `maxTotalSize?` | `number \| string` | โ€” | |
@@ -25,6 +25,7 @@
25
25
  | `status?` | `SFieldStatus` | โ€” | |
26
26
  | `size?` | `SFieldSize` | `'sm'` | |
27
27
  | `label?` | `string` | โ€” | |
28
+ | `labelPosition?` | `SFieldLabelPosition` | โ€” | ๋ ˆ์ด๋ธ” ์œ„์น˜ โ€” `top` ์ด๋ฉด ๋ผ๋ฒจ์ด ์ปจํŠธ๋กค ์œ„์— ์„ ๋‹ค (SField ๋กœ ๊ทธ๋Œ€๋กœ ๋„˜์–ด๊ฐ„๋‹ค). |
28
29
  | `labelWidth?` | `number \| string` | โ€” | |
29
30
  | `icon?` | `SIconName` | โ€” | |
30
31
  | `iconColor?` | `SColor` | โ€” | |
@@ -35,7 +36,7 @@
35
36
  | `hint?` | `string` | โ€” | |
36
37
  | `error?` | `boolean` | โ€” | |
37
38
  | `errorMessage?` | `string` | โ€” | |
38
- | `width?` | `number \| string` | โ€” | |
39
+ | `width?` | `SFieldWidth` | โ€” | ์ปจํŠธ๋กค ๋„ˆ๋น„ โ€” ํญ ๋“ฑ๊ธ‰(`'xs' | 'sm' | 'md' | 'lg' | 'xl'`) ยท ์ˆซ์ž=px ยท CSS ๊ธธ์ด. ๋“ฑ๊ธ‰์€ `--cmp-field-width-*` ํ† ํฐ์œผ๋กœ ํ’€๋ฆฌ๋ฏ€๋กœ ํ† ํฐ์ด ๋ฐ”๋€Œ๋ฉด ํ™”๋ฉด์ด ๋”ฐ๋ผ๊ฐ„๋‹ค. ๊ฐ’ ๊ธธ์ด์— ์ƒํ•œ์ด ์—†์œผ๋ฉด `"100%"` ๋กœ ๋‘์–ด ํ–‰ ์ „์ฒด๋ฅผ ์“ด๋‹ค. |
39
40
  | `className?` | `string` | โ€” | |
40
41
  | `style?` | `CSSProperties` | โ€” | |
41
42
 
@@ -46,6 +47,20 @@
46
47
  | `onValueChange` | `(value: SFilePickerValue) => void` | ํŒŒ์ผ ๋ณ€๊ฒฝ (sdUpdate) |
47
48
  | `onReject` | `(detail: { files: File[]; reason: SFilePickerRejectReason }) => void` | ์ œํ•œ ์ดˆ๊ณผ ๊ฑฐ๋ถ€ (sdReject) |
48
49
 
50
+ ## Types
51
+
52
+ ### SFilePickerValue
53
+
54
+ ```ts
55
+ export type SFilePickerValue = File[] | File | null;
56
+ ```
57
+
58
+ ### SFilePickerRejectReason
59
+
60
+ ```ts
61
+ export type SFilePickerRejectReason = 'max-file-size' | 'max-total-size' | 'max-files';
62
+ ```
63
+
49
64
  ## Dependencies
50
65
 
51
66
  ### Used by
@@ -1,9 +1,10 @@
1
1
  import { type CSSProperties } from 'react';
2
- import { type SFieldSize, type SFieldAddonAlign, type SFieldStatus } from '../SField';
2
+ import { type SFieldSize, type SFieldAddonAlign, type SFieldStatus, type SFieldLabelPosition } from '../SField';
3
3
  import { type SIconName } from '../SIcon';
4
4
  import { type SColor } from '../../lib/color';
5
5
  import { type Rule } from '../../lib/form';
6
6
  import { type STooltipProps } from '../STooltip';
7
+ import { type SFieldWidth } from '../../lib/field-width';
7
8
  export type SFilePickerValue = File[] | File | null;
8
9
  export type SFilePickerRejectReason = 'max-file-size' | 'max-total-size' | 'max-files';
9
10
  export interface SFilePickerProps {
@@ -17,15 +18,15 @@ export interface SFilePickerProps {
17
18
  }) => void;
18
19
  placeholder?: string;
19
20
  disabled?: boolean;
20
- /** ํฌ์ปค์Šค ์ƒํƒœ ์—ฌ๋ถ€ */
21
+ /** ํฌ์ปค์Šค ์ƒํƒœ๋ฅผ ๋ฐ–์—์„œ ์ง€์ •ํ•œ๋‹ค โ€” ๊ฐ•์กฐ ํ…Œ๋‘๋ฆฌยท๋ง์ด ์ฆ‰์‹œ ๊ฑธ๋ฆฐ๋‹ค (SField ๋กœ ๊ทธ๋Œ€๋กœ ๋„˜์–ด๊ฐ„๋‹ค) */
21
22
  focused?: boolean;
22
- /** ํ˜ธ๋ฒ„ ์ƒํƒœ ์—ฌ๋ถ€ */
23
+ /** ํ˜ธ๋ฒ„ ์ƒํƒœ๋ฅผ ๋ฐ–์—์„œ ์ง€์ •ํ•œ๋‹ค โ€” ๊ฐ•์กฐ๋Š” `focused` ์™€ ๊ฐ™๋‹ค (SField ๋กœ ๊ทธ๋Œ€๋กœ ๋„˜์–ด๊ฐ„๋‹ค) */
23
24
  hovered?: boolean;
24
25
  /** ์ธ๋ผ์ธ ํ‘œ์‹œ โ€” SField ํ…Œ๋‘๋ฆฌ ๋ฐ•์Šค๋งŒ ์‚ฌ๋ผ์ง€๊ณ  label/rules/hint ๋Š” ๊ทธ๋Œ€๋กœ ๋™์ž‘ */
25
26
  inline?: boolean;
26
27
  multiple?: boolean;
27
28
  /** multiple ํŒŒ์ผ ๋ชฉ๋ก์„ ํ•„๋“œ ์•„๋ž˜ ์นฉ ๋Œ€์‹ , caret(โ–ผ) ํด๋ฆญ ์‹œ ์—ด๋ฆฌ๋Š” ๋ฆฌ์ŠคํŠธ๋ฐ•์Šค ์นด๋“œ๋กœ ํ‘œ์‹œ (๋ฐ”๊นฅ ํด๋ฆญ ์‹œ ๋‹ซํž˜) */
28
- useMultipleListBox?: boolean;
29
+ showMultipleListBox?: boolean;
29
30
  accept?: string;
30
31
  maxFileSize?: number | string;
31
32
  maxTotalSize?: number | string;
@@ -35,6 +36,13 @@ export interface SFilePickerProps {
35
36
  status?: SFieldStatus;
36
37
  size?: SFieldSize;
37
38
  label?: string;
39
+ /**
40
+ * ๋ ˆ์ด๋ธ” ์œ„์น˜ โ€” `top` ์ด๋ฉด ๋ผ๋ฒจ์ด ์ปจํŠธ๋กค ์œ„์— ์„ ๋‹ค (SField ๋กœ ๊ทธ๋Œ€๋กœ ๋„˜์–ด๊ฐ„๋‹ค).
41
+ *
42
+ * @nodemo SField ์—์„œ ๋‚ด๋ ค์˜ค๋Š” ๊ณตํ†ต ํ•„๋“œ ์˜ต์…˜์ด๋‹ค โ€” ๊ฐ™์€ ๋ฐ๋ชจ๋ฅผ ์ปจํŠธ๋กค๋งˆ๋‹ค ๋ณต์ œํ•˜์ง€ ์•Š๊ณ 
43
+ * ๋Œ€ํ‘œ ์ปจํŠธ๋กค `SInput` ๊ณผ `SField` ์— ํ•œ ๋ฒˆ ๋‘”๋‹ค (scripts/check-docs-coverage.mjs ๋จธ๋ฆฌ๋ง).
44
+ */
45
+ labelPosition?: SFieldLabelPosition;
38
46
  labelWidth?: number | string;
39
47
  icon?: SIconName;
40
48
  iconColor?: SColor;
@@ -45,9 +53,14 @@ export interface SFilePickerProps {
45
53
  hint?: string;
46
54
  error?: boolean;
47
55
  errorMessage?: string;
48
- width?: number | string;
56
+ /**
57
+ * ์ปจํŠธ๋กค ๋„ˆ๋น„ โ€” ํญ ๋“ฑ๊ธ‰(`'xs' | 'sm' | 'md' | 'lg' | 'xl'`) ยท ์ˆซ์ž=px ยท CSS ๊ธธ์ด.
58
+ * ๋“ฑ๊ธ‰์€ `--cmp-field-width-*` ํ† ํฐ์œผ๋กœ ํ’€๋ฆฌ๋ฏ€๋กœ ํ† ํฐ์ด ๋ฐ”๋€Œ๋ฉด ํ™”๋ฉด์ด ๋”ฐ๋ผ๊ฐ„๋‹ค.
59
+ * ๊ฐ’ ๊ธธ์ด์— ์ƒํ•œ์ด ์—†์œผ๋ฉด `"100%"` ๋กœ ๋‘์–ด ํ–‰ ์ „์ฒด๋ฅผ ์“ด๋‹ค.
60
+ */
61
+ width?: SFieldWidth;
49
62
  className?: string;
50
63
  style?: CSSProperties;
51
64
  }
52
65
  /** SFilePicker โ€” sd-file-picker ํฌํŒ…. ๋‹จ์ผ/๋‹ค์ค‘ ํŒŒ์ผ + ํฌ๊ธฐยท๊ฐœ์ˆ˜ ๊ฒ€์ฆ + ์นฉ ๋ชฉ๋ก. */
53
- export declare function SFilePicker({ value, onValueChange, onReject, placeholder, disabled, focused, hovered, inline, multiple, useMultipleListBox, accept, maxFileSize, maxTotalSize, maxFiles, name, rules, status, size, label, labelWidth, icon, iconColor, labelTooltip, labelTooltipProps, addonLabel, addonAlign, hint, error, errorMessage, width, className, style, }: SFilePickerProps): import("react").JSX.Element;
66
+ export declare function SFilePicker({ value, onValueChange, onReject, placeholder, disabled, focused, hovered, inline, multiple, showMultipleListBox, accept, maxFileSize, maxTotalSize, maxFiles, name, rules, status, size, label, labelPosition, labelWidth, icon, iconColor, labelTooltip, labelTooltipProps, addonLabel, addonAlign, hint, error, errorMessage, width, className, style, }: SFilePickerProps): import("react").JSX.Element;
@@ -9,6 +9,7 @@
9
9
  | Prop | Type | Default | Description |
10
10
  |------|------|---------|-------------|
11
11
  | `bg?` | `SFooterBg` | `'white'` | ๋ฐฐ๊ฒฝ์ƒ‰ |
12
+ | `size?` | `SFooterSize` | `'md'` | ํฌ๊ธฐ. ๊ธฐ๋ณธ์€ `md` โ€” ์˜ค๋ฒ„๋ ˆ์ด ํ•˜๋‹จ ์•ก์…˜ ์˜์—ญ์˜ ํฌ๊ธฐ๋‹ค |
12
13
  | `left?` | `ReactNode` | โ€” | footer ์ขŒ์ธก slot |
13
14
  | `children?` | `ReactNode` | โ€” | footer ์ขŒ์ธก slot. left์™€ ํ•จ๊ป˜ ์“ฐ๋ฉด left ๋’ค์— ๋ Œ๋”๋œ๋‹ค |
14
15
  | `button?` | `SFooterButton` | โ€” | ์šฐ์ธก ๊ธฐ๋ณธ ์•ก์…˜ ๋ฒ„ํŠผ |
@@ -16,13 +17,54 @@
16
17
  | `leftClassName?` | `string` | โ€” | |
17
18
  | `style?` | `CSSProperties` | โ€” | |
18
19
 
20
+ ## Types
21
+
22
+ ### SFooterBg
23
+
24
+ ```ts
25
+ export type SFooterBg = 'white' | 'grey';
26
+ ```
27
+
28
+ ### SFooterSize
29
+
30
+ ```ts
31
+ /**
32
+ * footer ํฌ๊ธฐ. ๋ฒ„ํŠผ ํฌ๊ธฐ๊ฐ€ ์—ฌ๊ธฐ์— ๋”ธ๋ ค ์˜จ๋‹ค โ€” `md` ๋Š” `SButton size="md"`, `sm` ์€ `"sm"`.
33
+ *
34
+ * ๋ฒ„ํŠผ ํฌ๊ธฐ๋ฅผ ๋”ฐ๋กœ ๋ฐ›์ง€ ์•Š๊ณ  footer ์ž์ฒด๋ฅผ ๋ถ„๊ธฐํ•˜๋Š” ์ด์œ : ํฌ๊ธฐ๋ฅผ ์ •ํ•˜๋Š” ๊ฒƒ์€ ๋ฒ„ํŠผ์ด ์•„๋‹ˆ๋ผ
35
+ * **๋ฒ„ํŠผ์ด ๋†“์ธ ์ž๋ฆฌ**์ด๊ธฐ ๋•Œ๋ฌธ์ด๋‹ค (AGENTS.md ยง3-5-2). ์ขŒ์ธก ์Šฌ๋กฏ ๋ฒ„ํŠผ๊นŒ์ง€ ํ•œ ๋ฒŒ๋กœ ๋งž์ถฐ์•ผ
36
+ * ํ•˜๋Š”๋ฐ, ์šฐ์ธก ๋ฒ„ํŠผ๋งŒ ํฌ๊ธฐ๋ฅผ ๋ฐ›์œผ๋ฉด ์ขŒ์šฐ๊ฐ€ ์–ด๊ธ‹๋‚œ footer ๋ฅผ ๋งŒ๋“ค ๊ธธ์ด ์—ด๋ฆฐ๋‹ค.
37
+ */
38
+ export type SFooterSize = 'sm' | 'md';
39
+ ```
40
+
41
+ ### SFooterButton
42
+
43
+ ```ts
44
+ /**
45
+ * footer ์šฐ์ธก ๊ธฐ๋ณธ ์•ก์…˜ ๋ฒ„ํŠผ ์„ค์ • โ€” `SButton` ์˜ prop ์„ ๊ทธ๋Œ€๋กœ ๋ฐ›๋Š”๋‹ค.
46
+ *
47
+ * ๊ณจ๋ผ ๋‹ด์€ ๋ถ€๋ถ„์ง‘ํ•ฉ์œผ๋กœ ๋‘์ง€ ์•Š๋Š” ์ด์œ : `SButton` ์— prop ์ด ๋Š˜ ๋•Œ๋งˆ๋‹ค ์ด ๋ชฉ๋ก๋งŒ ์กฐ์šฉํžˆ
48
+ * ๋’ค์ฒ˜์ ธ, ์•„์ด์ฝ˜ ํ•˜๋‚˜ ๋ถ™์ด๋ ค ํ•ด๋„ footer ์—์„œ๋Š” ๊ธธ์ด ์—†๋Š” ์ƒํƒœ๊ฐ€ ๋œ๋‹ค.
49
+ *
50
+ * **`size` ๋งŒ ๋บ€๋‹ค.** ๋ฒ„ํŠผ ํฌ๊ธฐ๋Š” ๋†“์ด๋Š” ์œ„์น˜๊ฐ€ ์ •ํ•˜๋ฏ€๋กœ footer ์˜ `size` ๊ฐ€ ์ •ํ•œ๋‹ค
51
+ * (AGENTS.md ยง3-5-2) โ€” ๋ฒ„ํŠผ์ด ์ž๊ธฐ ํฌ๊ธฐ๋ฅผ ๋”ฐ๋กœ ์ฃผ์žฅํ•  ์ž๋ฆฌ๊ฐ€ ์•„๋‹ˆ๋‹ค.
52
+ *
53
+ * `label`ยท`color` ๋Š” ์ฃผ์ง€ ์•Š์œผ๋ฉด footer ๊ฐ€ ์ฃผ ์•ก์…˜ ๊ธฐ๋ณธ๊ฐ’(`'ํ™•์ธ'`ยท`'primary'`)์œผ๋กœ ์žก๋Š”๋‹ค.
54
+ * ํŒŒ๊ดด์  ์•ก์…˜์ด๋ผ `danger` ๊ฐ€ ํ•„์š”ํ•œ ๊ฒฝ์šฐ๋Š” ์—ด์–ด ๋‘”๋‹ค (ยง3-5-3).
55
+ */
56
+ export type SFooterButton = Omit<SButtonProps, 'size'>;
57
+ ```
58
+
19
59
  ## Dependencies
20
60
 
21
61
  ### Used by
22
62
 
23
63
  - [SActionModal](../SActionModal)
64
+ - [SCard](../SCard)
24
65
  - [SDrawer](../SDrawer)
25
66
  - [SPopup](../SPopup)
67
+ - [SSectionHeaderCard](../SSectionHeaderCard)
26
68
 
27
69
  ### Depends on
28
70
 
@@ -34,7 +76,9 @@
34
76
  graph TD;
35
77
  SFooter --> SButton
36
78
  SActionModal --> SFooter
79
+ SCard --> SFooter
37
80
  SDrawer --> SFooter
38
81
  SPopup --> SFooter
82
+ SSectionHeaderCard --> SFooter
39
83
  style SFooter fill:#f9f,stroke:#333,stroke-width:4px
40
84
  ```
@@ -1,21 +1,36 @@
1
1
  import { type CSSProperties, type ReactNode } from 'react';
2
- import { type SButtonColor, type SButtonSize } from '../SButton';
2
+ import { type SButtonProps } from '../SButton';
3
3
  export type SFooterBg = 'white' | 'grey';
4
- export interface SFooterButton {
5
- label?: string;
6
- color?: SButtonColor;
7
- outline?: boolean;
8
- size?: SButtonSize;
9
- disabled?: boolean;
10
- onClick?: () => void;
11
- }
4
+ /**
5
+ * footer ํฌ๊ธฐ. ๋ฒ„ํŠผ ํฌ๊ธฐ๊ฐ€ ์—ฌ๊ธฐ์— ๋”ธ๋ ค ์˜จ๋‹ค โ€” `md` ๋Š” `SButton size="md"`, `sm` ์€ `"sm"`.
6
+ *
7
+ * ๋ฒ„ํŠผ ํฌ๊ธฐ๋ฅผ ๋”ฐ๋กœ ๋ฐ›์ง€ ์•Š๊ณ  footer ์ž์ฒด๋ฅผ ๋ถ„๊ธฐํ•˜๋Š” ์ด์œ : ํฌ๊ธฐ๋ฅผ ์ •ํ•˜๋Š” ๊ฒƒ์€ ๋ฒ„ํŠผ์ด ์•„๋‹ˆ๋ผ
8
+ * **๋ฒ„ํŠผ์ด ๋†“์ธ ์ž๋ฆฌ**์ด๊ธฐ ๋•Œ๋ฌธ์ด๋‹ค (AGENTS.md ยง3-5-2). ์ขŒ์ธก ์Šฌ๋กฏ ๋ฒ„ํŠผ๊นŒ์ง€ ํ•œ ๋ฒŒ๋กœ ๋งž์ถฐ์•ผ
9
+ * ํ•˜๋Š”๋ฐ, ์šฐ์ธก ๋ฒ„ํŠผ๋งŒ ํฌ๊ธฐ๋ฅผ ๋ฐ›์œผ๋ฉด ์ขŒ์šฐ๊ฐ€ ์–ด๊ธ‹๋‚œ footer ๋ฅผ ๋งŒ๋“ค ๊ธธ์ด ์—ด๋ฆฐ๋‹ค.
10
+ */
11
+ export type SFooterSize = 'sm' | 'md';
12
+ /**
13
+ * footer ์šฐ์ธก ๊ธฐ๋ณธ ์•ก์…˜ ๋ฒ„ํŠผ ์„ค์ • โ€” `SButton` ์˜ prop ์„ ๊ทธ๋Œ€๋กœ ๋ฐ›๋Š”๋‹ค.
14
+ *
15
+ * ๊ณจ๋ผ ๋‹ด์€ ๋ถ€๋ถ„์ง‘ํ•ฉ์œผ๋กœ ๋‘์ง€ ์•Š๋Š” ์ด์œ : `SButton` ์— prop ์ด ๋Š˜ ๋•Œ๋งˆ๋‹ค ์ด ๋ชฉ๋ก๋งŒ ์กฐ์šฉํžˆ
16
+ * ๋’ค์ฒ˜์ ธ, ์•„์ด์ฝ˜ ํ•˜๋‚˜ ๋ถ™์ด๋ ค ํ•ด๋„ footer ์—์„œ๋Š” ๊ธธ์ด ์—†๋Š” ์ƒํƒœ๊ฐ€ ๋œ๋‹ค.
17
+ *
18
+ * **`size` ๋งŒ ๋บ€๋‹ค.** ๋ฒ„ํŠผ ํฌ๊ธฐ๋Š” ๋†“์ด๋Š” ์œ„์น˜๊ฐ€ ์ •ํ•˜๋ฏ€๋กœ footer ์˜ `size` ๊ฐ€ ์ •ํ•œ๋‹ค
19
+ * (AGENTS.md ยง3-5-2) โ€” ๋ฒ„ํŠผ์ด ์ž๊ธฐ ํฌ๊ธฐ๋ฅผ ๋”ฐ๋กœ ์ฃผ์žฅํ•  ์ž๋ฆฌ๊ฐ€ ์•„๋‹ˆ๋‹ค.
20
+ *
21
+ * `label`ยท`color` ๋Š” ์ฃผ์ง€ ์•Š์œผ๋ฉด footer ๊ฐ€ ์ฃผ ์•ก์…˜ ๊ธฐ๋ณธ๊ฐ’(`'ํ™•์ธ'`ยท`'primary'`)์œผ๋กœ ์žก๋Š”๋‹ค.
22
+ * ํŒŒ๊ดด์  ์•ก์…˜์ด๋ผ `danger` ๊ฐ€ ํ•„์š”ํ•œ ๊ฒฝ์šฐ๋Š” ์—ด์–ด ๋‘”๋‹ค (ยง3-5-3).
23
+ */
24
+ export type SFooterButton = Omit<SButtonProps, 'size'>;
12
25
  /**
13
26
  * @internal
14
- * ๋ชจ๋‹ฌยท๋“œ๋กœ์–ดยทํŒ์—… ํ•˜๋‹จ ์˜์—ญ ๊ณตํ†ต props.
27
+ * ๋ชจ๋‹ฌยท๋“œ๋กœ์–ดยทํŒ์—…ยท์นด๋“œ ํ•˜๋‹จ ์˜์—ญ ๊ณตํ†ต props.
15
28
  */
16
29
  export interface SFooterProps {
17
30
  /** ๋ฐฐ๊ฒฝ์ƒ‰ */
18
31
  bg?: SFooterBg;
32
+ /** ํฌ๊ธฐ. ๊ธฐ๋ณธ์€ `md` โ€” ์˜ค๋ฒ„๋ ˆ์ด ํ•˜๋‹จ ์•ก์…˜ ์˜์—ญ์˜ ํฌ๊ธฐ๋‹ค */
33
+ size?: SFooterSize;
19
34
  /** footer ์ขŒ์ธก slot */
20
35
  left?: ReactNode;
21
36
  /** footer ์ขŒ์ธก slot. left์™€ ํ•จ๊ป˜ ์“ฐ๋ฉด left ๋’ค์— ๋ Œ๋”๋œ๋‹ค */
@@ -27,10 +42,11 @@ export interface SFooterProps {
27
42
  style?: CSSProperties;
28
43
  }
29
44
  /**
30
- * SFooter โ€” overlay ๊ณ„์—ด ๋‚ด๋ถ€ ์ „์šฉ footer.
45
+ * SFooter โ€” ์˜ค๋ฒ„๋ ˆ์ดยท์นด๋“œ ๋‚ด๋ถ€ ์ „์šฉ footer.
31
46
  *
32
47
  * @internal
33
- * SActionModal/SConfirmModal/SDrawer/SPopup ์˜ ํ•˜๋‹จ ์•ก์…˜ ์˜์—ญ๋งŒ ๊ณตํ†ตํ™”ํ•œ๋‹ค.
48
+ * SActionModal/SConfirmModal/SDrawer/SPopup ๊ณผ SCard/SSectionHeaderCard ์˜ ํ•˜๋‹จ ์•ก์…˜ ์˜์—ญ๋งŒ
49
+ * ๊ณตํ†ตํ™”ํ•œ๋‹ค. ์†Œ๋น„์ž๋Š” ํ˜ธ์ŠคํŠธ ์ปดํฌ๋„ŒํŠธ์˜ `footerLeft`ยท`button` prop ์œผ๋กœ๋งŒ ๋‹ฟ๋Š”๋‹ค โ€”
34
50
  * ํŒจํ‚ค์ง€ public export ์— ์ถ”๊ฐ€ํ•˜์ง€ ๋ง ๊ฒƒ.
35
51
  */
36
- export declare function SFooter({ bg, left, button, children, className, leftClassName, style, }: SFooterProps): import("react").JSX.Element;
52
+ export declare function SFooter({ bg, size, left, button, children, className, leftClassName, style, }: SFooterProps): import("react").JSX.Element;