sellmate-design-system-react 9.0.0-beta.7 → 9.0.0-beta.70
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.
- package/AGENTS.md +1873 -250
- package/README.md +76 -24
- package/dist/components/SAccountListBox/AccountListBoxPortal.d.ts +31 -0
- package/dist/components/SAccountListBox/README.md +86 -0
- package/dist/components/SAccountListBox/SAccountListBox.d.ts +79 -0
- package/dist/components/SAccountListBox/SystemMenuPortal.d.ts +58 -0
- package/dist/components/SAccountListBox/accountListBox.config.d.ts +64 -0
- package/dist/components/SAccountListBox/index.d.ts +2 -0
- package/dist/components/SActionModal/README.md +1 -0
- package/dist/components/SActionModal/SActionModal.d.ts +9 -1
- package/dist/components/SBadge/README.md +27 -0
- package/dist/components/SBadge/SBadge.d.ts +1 -1
- package/dist/components/SBarChart/README.md +122 -0
- package/dist/components/SBarChart/SBarChart.d.ts +99 -0
- package/dist/components/SBarChart/barChart.config.d.ts +85 -0
- package/dist/components/SBarChart/index.d.ts +2 -0
- package/dist/components/SBarcodeInput/README.md +13 -4
- package/dist/components/SBarcodeInput/SBarcodeInput.d.ts +18 -3
- package/dist/components/SButton/README.md +40 -0
- package/dist/components/SCalendar/README.md +13 -0
- package/dist/components/SCalendarBoard/CalendarDayCard.d.ts +53 -0
- package/dist/components/SCalendarBoard/CalendarDayEventListBox.d.ts +26 -0
- package/dist/components/SCalendarBoard/CalendarEventButton.d.ts +20 -0
- package/dist/components/SCalendarBoard/CalendarMoreButton.d.ts +18 -0
- package/dist/components/SCalendarBoard/README.md +148 -0
- package/dist/components/SCalendarBoard/SCalendarBoard.d.ts +83 -0
- package/dist/components/SCalendarBoard/calendar-board-layout.d.ts +59 -0
- package/dist/components/SCalendarBoard/calendarBoard.config.d.ts +38 -0
- package/dist/components/SCalendarBoard/index.d.ts +3 -0
- package/dist/components/SCalendarBoard/types.d.ts +40 -0
- package/dist/components/SCallout/README.md +17 -1
- package/dist/components/SCallout/SCallout.d.ts +14 -4
- package/dist/components/SCard/README.md +17 -0
- package/dist/components/SCard/SCard.d.ts +26 -2
- package/dist/components/SChatAttachedFile/README.md +33 -0
- package/dist/components/SChatAttachedFile/SChatAttachedFile.d.ts +13 -0
- package/dist/components/SChatAttachedFile/chatAttachedFile.config.d.ts +23 -0
- package/dist/components/SChatAttachedFile/index.d.ts +2 -0
- package/dist/components/SChatFile/README.md +33 -0
- package/dist/components/SChatFile/SChatFile.d.ts +37 -0
- package/dist/components/SChatFile/chatFile.config.d.ts +56 -0
- package/dist/components/SChatFile/index.d.ts +2 -0
- package/dist/components/SChatInput/README.md +44 -0
- package/dist/components/SChatInput/SChatInput.d.ts +60 -0
- package/dist/components/SChatInput/index.d.ts +1 -0
- package/dist/components/SChatMessage/README.md +86 -0
- package/dist/components/SChatMessage/SChatMessage.d.ts +123 -0
- package/dist/components/SChatMessage/index.d.ts +1 -0
- package/dist/components/SChatSystemMessage/README.md +12 -0
- package/dist/components/SChatSystemMessage/SChatSystemMessage.d.ts +18 -0
- package/dist/components/SChatSystemMessage/index.d.ts +1 -0
- package/dist/components/SCheckbox/README.md +8 -0
- package/dist/components/SChip/README.md +25 -0
- package/dist/components/SChip/SChip.d.ts +8 -0
- package/dist/components/SChip/index.d.ts +1 -1
- package/dist/components/SChipFilter/README.md +369 -14
- package/dist/components/SChipFilter/SChipFilter.d.ts +169 -60
- package/dist/components/SChipFilter/index.d.ts +1 -1
- package/dist/components/SChipInput/README.md +17 -2
- package/dist/components/SChipInput/SChipInput.d.ts +16 -3
- package/dist/components/SChipInput/index.d.ts +1 -1
- package/dist/components/SCircleProgress/README.md +8 -0
- package/dist/components/SConfirmModal/README.md +13 -4
- package/dist/components/SConfirmModal/SConfirmModal.d.ts +46 -9
- package/dist/components/SContextAlert/README.md +52 -0
- package/dist/components/SContextAlert/SContextAlert.d.ts +51 -0
- package/dist/components/SContextAlert/contextAlert.config.d.ts +22 -0
- package/dist/components/SContextAlert/index.d.ts +2 -0
- package/dist/components/SDatePicker/README.md +21 -2
- package/dist/components/SDatePicker/SDatePicker.d.ts +35 -5
- package/dist/components/SDateRangePicker/README.md +21 -4
- package/dist/components/SDateRangePicker/SDateRangePicker.d.ts +37 -7
- package/dist/components/SDivider/README.md +7 -0
- package/dist/components/SDivider/SDivider.d.ts +11 -0
- package/dist/components/SDonutChart/README.md +105 -0
- package/dist/components/SDonutChart/SDonutChart.d.ts +82 -0
- package/dist/components/SDonutChart/index.d.ts +1 -0
- package/dist/components/SDraggableItem/README.md +37 -0
- package/dist/components/SDraggableItem/SDraggableItem.d.ts +2 -0
- package/dist/components/SDraggableItem/index.d.ts +1 -1
- package/dist/components/SDraggableList/README.md +33 -3
- package/dist/components/SDraggableList/SDraggableList.d.ts +18 -3
- package/dist/components/SDraggableList/index.d.ts +1 -1
- package/dist/components/SDrawer/README.md +8 -0
- package/dist/components/SDropdownButton/README.md +19 -0
- package/dist/components/SEditor/EditorBody.d.ts +36 -0
- package/dist/components/SEditor/EditorToolbar.d.ts +93 -0
- package/dist/components/SEditor/README.md +204 -0
- package/dist/components/SEditor/SEditor.d.ts +121 -0
- package/dist/components/SEditor/editor-icons.d.ts +63 -0
- package/dist/components/SEditor/editor.config.d.ts +119 -0
- package/dist/components/SEditor/index.d.ts +8 -0
- package/dist/components/SEditor/tiptap-api.d.ts +29 -0
- package/dist/components/SEditor/use-is-mobile.d.ts +14 -0
- package/dist/components/SExpansionItem/README.md +36 -0
- package/dist/components/SExpansionItem/index.d.ts +1 -1
- package/dist/components/SField/README.md +36 -5
- package/dist/components/SField/SField.d.ts +33 -8
- package/dist/components/SField/index.d.ts +1 -1
- package/dist/components/SFilePicker/README.md +19 -4
- package/dist/components/SFilePicker/SFilePicker.d.ts +19 -6
- package/dist/components/SFooter/README.md +44 -0
- package/dist/components/SFooter/SFooter.d.ts +29 -13
- package/dist/components/SFooter/index.d.ts +1 -1
- package/dist/components/SForm/README.md +12 -1
- package/dist/components/SForm/SForm.d.ts +2 -2
- package/dist/components/SGhostButton/README.md +28 -4
- package/dist/components/SGhostButton/SGhostButton.d.ts +4 -1
- package/dist/components/SGnb/README.md +97 -7
- package/dist/components/SGnb/SGnb.d.ts +94 -10
- package/dist/components/SGnb/gnb.config.d.ts +18 -5
- package/dist/components/SGnb/index.d.ts +1 -1
- package/dist/components/SGnbSystem/README.md +186 -0
- package/dist/components/SGnbSystem/SGnbSystem.d.ts +179 -0
- package/dist/components/SGnbSystem/gnbSystem.config.d.ts +122 -0
- package/dist/components/SGnbSystem/index.d.ts +2 -0
- package/dist/components/SGuide/README.md +16 -1
- package/dist/components/SGuide/SGuide.d.ts +5 -2
- package/dist/components/SIcon/README.md +20 -0
- package/dist/components/SIcon/SIcon.d.ts +1 -1
- package/dist/components/SIcon/icons.gen.d.ts +20 -1
- package/dist/components/SImage/README.md +23 -1
- package/dist/components/SImage/SImage.d.ts +11 -8
- package/dist/components/SInput/README.md +7 -4
- package/dist/components/SInput/SInput.d.ts +13 -5
- package/dist/components/SKeyValueTable/README.md +88 -0
- package/dist/components/SKeyValueTable/SKeyValueTable.d.ts +30 -3
- package/dist/components/SKeyValueTable/index.d.ts +1 -1
- package/dist/components/SLauncherListBox/README.md +81 -0
- package/dist/components/SLauncherListBox/SLauncherListBox.d.ts +67 -0
- package/dist/components/SLauncherListBox/index.d.ts +2 -0
- package/dist/components/SLauncherListBox/launcherListBox.config.d.ts +118 -0
- package/dist/components/SLayout/README.md +22 -1
- package/dist/components/SLayout/SLayout.d.ts +6 -2
- package/dist/components/SLayout/index.d.ts +1 -1
- package/dist/components/SLineChart/README.md +131 -0
- package/dist/components/SLineChart/SLineChart.d.ts +110 -0
- package/dist/components/SLineChart/index.d.ts +1 -0
- package/dist/components/SLineChart/lineChart.config.d.ts +95 -0
- package/dist/components/SLinearProgress/README.md +15 -0
- package/dist/components/SLinearProgress/SLinearProgress.d.ts +3 -0
- package/dist/components/SLinearProgress/index.d.ts +1 -1
- package/dist/components/SList/README.md +15 -2
- package/dist/components/SList/SList.d.ts +7 -3
- package/dist/components/SList/index.d.ts +1 -1
- package/dist/components/SListItem/README.md +41 -0
- package/dist/components/SListItem/index.d.ts +1 -1
- package/dist/components/SLoadingContainer/index.d.ts +1 -1
- package/dist/components/SLoadingContainer/loading.d.ts +41 -6
- package/dist/components/SLoadingModal/README.md +10 -2
- package/dist/components/SLoadingModal/SLoadingModal.d.ts +4 -4
- package/dist/components/SLoadingModal/index.d.ts +1 -1
- package/dist/components/SLoginCard/README.md +37 -0
- package/dist/components/SLoginCard/SLoginCard.d.ts +39 -0
- package/dist/components/SLoginCard/index.d.ts +1 -0
- package/dist/components/SLogo/README.md +54 -0
- package/dist/components/SLogo/SLogo.d.ts +47 -0
- package/dist/components/SLogo/index.d.ts +2 -0
- package/dist/components/SLogo/logo.config.d.ts +14 -0
- package/dist/components/SLogo/sellmate-wordmark.d.ts +20 -0
- package/dist/components/SMeatballButton/README.md +67 -0
- package/dist/components/SMeatballButton/SMeatballButton.d.ts +36 -0
- package/dist/components/SMeatballButton/index.d.ts +1 -0
- package/dist/components/SModal/README.md +15 -5
- package/dist/components/SModal/SModal.d.ts +1 -1
- package/dist/components/SNumberInput/README.md +18 -8
- package/dist/components/SNumberInput/SNumberInput.d.ts +42 -7
- package/dist/components/SPage/README.md +105 -5
- package/dist/components/SPage/SPage.d.ts +34 -10
- package/dist/components/SPage/SPageHeader.d.ts +31 -13
- package/dist/components/SPage/index.d.ts +2 -2
- package/dist/components/SPage/page-column.d.ts +34 -0
- package/dist/components/SPage/page-width.d.ts +23 -0
- package/dist/components/SPage/page.config.d.ts +26 -0
- package/dist/components/SPieChart/README.md +93 -0
- package/dist/components/SPieChart/SPieChart.d.ts +73 -0
- package/dist/components/SPieChart/index.d.ts +1 -0
- package/dist/components/SPopover/README.md +15 -0
- package/dist/components/SPopup/README.md +26 -2
- package/dist/components/SPopup/SPopup.d.ts +13 -10
- package/dist/components/SPopup/index.d.ts +1 -1
- package/dist/components/SPortal/README.md +20 -0
- package/dist/components/SRadio/README.md +20 -0
- package/dist/components/SRadioButton/README.md +18 -0
- package/dist/components/SRadioButton/SRadioButton.d.ts +1 -1
- package/dist/components/SRadioCard/README.md +78 -0
- package/dist/components/SRadioCard/SRadioCard.d.ts +29 -0
- package/dist/components/SRadioCard/SRadioCardGroup.d.ts +36 -0
- package/dist/components/SRadioCard/index.d.ts +2 -0
- package/dist/components/SScrollArea/README.md +28 -0
- package/dist/components/SScrollArea/SScrollArea.d.ts +17 -0
- package/dist/components/SSearchInput/README.md +63 -0
- package/dist/components/SSearchInput/SSearchInput.d.ts +52 -0
- package/dist/components/SSearchInput/index.d.ts +1 -0
- package/dist/components/SSectionHeaderCard/README.md +38 -0
- package/dist/components/SSectionHeaderCard/SSectionHeaderCard.d.ts +19 -0
- package/dist/components/SSelect/README.md +38 -11
- package/dist/components/SSelect/SSelect.d.ts +80 -9
- package/dist/components/SSelect/select.config.d.ts +15 -0
- package/dist/components/SSplitter/README.md +17 -2
- package/dist/components/SSplitter/SSplitter.d.ts +7 -3
- package/dist/components/SStepper/README.md +26 -0
- package/dist/components/SSwitch/README.md +13 -1
- package/dist/components/SSwitch/SSwitch.d.ts +1 -3
- package/dist/components/SSystemActionButton/README.md +246 -0
- package/dist/components/SSystemActionButton/SSystemActionButton.d.ts +167 -0
- package/dist/components/SSystemActionButton/index.d.ts +2 -0
- package/dist/components/SSystemActionButton/systemActionButton.config.d.ts +93 -0
- package/dist/components/STable/README.md +116 -11
- package/dist/components/STable/STable.d.ts +243 -23
- package/dist/components/STable/index.d.ts +1 -1
- package/dist/components/STableBar/README.md +1 -0
- package/dist/components/STableBar/STableBar.d.ts +8 -1
- package/dist/components/STabs/README.md +13 -2
- package/dist/components/STabs/STabs.d.ts +3 -5
- package/dist/components/STabs/index.d.ts +1 -1
- package/dist/components/STabs/tabs.config.d.ts +3 -4
- package/dist/components/STag/README.md +55 -0
- package/dist/components/STag/STag.d.ts +3 -1
- package/dist/components/STag/tag.config.d.ts +1 -1
- package/dist/components/STextLink/README.md +19 -1
- package/dist/components/STextLink/STextLink.d.ts +5 -1
- package/dist/components/STextarea/README.md +11 -5
- package/dist/components/STextarea/STextarea.d.ts +42 -6
- package/dist/components/STimePicker/README.md +18 -2
- package/dist/components/STimePicker/STimePicker.d.ts +29 -6
- package/dist/components/STimePicker/timepicker.config.d.ts +4 -2
- package/dist/components/STimeRangePicker/README.md +30 -2
- package/dist/components/STimeRangePicker/STimeRangePicker.d.ts +28 -6
- package/dist/components/SToast/README.md +25 -1
- package/dist/components/SToast/SToast.d.ts +2 -2
- package/dist/components/SToggle/README.md +8 -0
- package/dist/components/SToggle/index.d.ts +1 -1
- package/dist/components/STooltip/README.md +25 -1
- package/dist/components/STooltip/STooltip.d.ts +1 -1
- package/dist/components/STree/README.md +42 -4
- package/dist/components/STree/STree.d.ts +18 -6
- package/dist/components/STree/STree.examples.d.ts +2 -0
- package/dist/docs/Gallery.d.ts +9 -0
- package/dist/docs/RecipeGallery.d.ts +13 -0
- package/dist/docs/gallery-previews.d.ts +24 -0
- package/dist/fonts/LICENSE.txt +94 -0
- package/dist/fonts/woff2-dynamic-subset/PretendardVariable.subset.0.woff2 +0 -0
- package/dist/fonts/woff2-dynamic-subset/PretendardVariable.subset.1.woff2 +0 -0
- package/dist/fonts/woff2-dynamic-subset/PretendardVariable.subset.10.woff2 +0 -0
- package/dist/fonts/woff2-dynamic-subset/PretendardVariable.subset.11.woff2 +0 -0
- package/dist/fonts/woff2-dynamic-subset/PretendardVariable.subset.12.woff2 +0 -0
- package/dist/fonts/woff2-dynamic-subset/PretendardVariable.subset.13.woff2 +0 -0
- package/dist/fonts/woff2-dynamic-subset/PretendardVariable.subset.14.woff2 +0 -0
- package/dist/fonts/woff2-dynamic-subset/PretendardVariable.subset.15.woff2 +0 -0
- package/dist/fonts/woff2-dynamic-subset/PretendardVariable.subset.16.woff2 +0 -0
- package/dist/fonts/woff2-dynamic-subset/PretendardVariable.subset.17.woff2 +0 -0
- package/dist/fonts/woff2-dynamic-subset/PretendardVariable.subset.18.woff2 +0 -0
- package/dist/fonts/woff2-dynamic-subset/PretendardVariable.subset.19.woff2 +0 -0
- package/dist/fonts/woff2-dynamic-subset/PretendardVariable.subset.2.woff2 +0 -0
- package/dist/fonts/woff2-dynamic-subset/PretendardVariable.subset.20.woff2 +0 -0
- package/dist/fonts/woff2-dynamic-subset/PretendardVariable.subset.21.woff2 +0 -0
- package/dist/fonts/woff2-dynamic-subset/PretendardVariable.subset.22.woff2 +0 -0
- package/dist/fonts/woff2-dynamic-subset/PretendardVariable.subset.23.woff2 +0 -0
- package/dist/fonts/woff2-dynamic-subset/PretendardVariable.subset.24.woff2 +0 -0
- package/dist/fonts/woff2-dynamic-subset/PretendardVariable.subset.25.woff2 +0 -0
- package/dist/fonts/woff2-dynamic-subset/PretendardVariable.subset.26.woff2 +0 -0
- package/dist/fonts/woff2-dynamic-subset/PretendardVariable.subset.27.woff2 +0 -0
- package/dist/fonts/woff2-dynamic-subset/PretendardVariable.subset.28.woff2 +0 -0
- package/dist/fonts/woff2-dynamic-subset/PretendardVariable.subset.29.woff2 +0 -0
- package/dist/fonts/woff2-dynamic-subset/PretendardVariable.subset.3.woff2 +0 -0
- package/dist/fonts/woff2-dynamic-subset/PretendardVariable.subset.30.woff2 +0 -0
- package/dist/fonts/woff2-dynamic-subset/PretendardVariable.subset.31.woff2 +0 -0
- package/dist/fonts/woff2-dynamic-subset/PretendardVariable.subset.32.woff2 +0 -0
- package/dist/fonts/woff2-dynamic-subset/PretendardVariable.subset.33.woff2 +0 -0
- package/dist/fonts/woff2-dynamic-subset/PretendardVariable.subset.34.woff2 +0 -0
- package/dist/fonts/woff2-dynamic-subset/PretendardVariable.subset.35.woff2 +0 -0
- package/dist/fonts/woff2-dynamic-subset/PretendardVariable.subset.36.woff2 +0 -0
- package/dist/fonts/woff2-dynamic-subset/PretendardVariable.subset.37.woff2 +0 -0
- package/dist/fonts/woff2-dynamic-subset/PretendardVariable.subset.38.woff2 +0 -0
- package/dist/fonts/woff2-dynamic-subset/PretendardVariable.subset.39.woff2 +0 -0
- package/dist/fonts/woff2-dynamic-subset/PretendardVariable.subset.4.woff2 +0 -0
- package/dist/fonts/woff2-dynamic-subset/PretendardVariable.subset.40.woff2 +0 -0
- package/dist/fonts/woff2-dynamic-subset/PretendardVariable.subset.41.woff2 +0 -0
- package/dist/fonts/woff2-dynamic-subset/PretendardVariable.subset.42.woff2 +0 -0
- package/dist/fonts/woff2-dynamic-subset/PretendardVariable.subset.43.woff2 +0 -0
- package/dist/fonts/woff2-dynamic-subset/PretendardVariable.subset.44.woff2 +0 -0
- package/dist/fonts/woff2-dynamic-subset/PretendardVariable.subset.45.woff2 +0 -0
- package/dist/fonts/woff2-dynamic-subset/PretendardVariable.subset.46.woff2 +0 -0
- package/dist/fonts/woff2-dynamic-subset/PretendardVariable.subset.47.woff2 +0 -0
- package/dist/fonts/woff2-dynamic-subset/PretendardVariable.subset.48.woff2 +0 -0
- package/dist/fonts/woff2-dynamic-subset/PretendardVariable.subset.49.woff2 +0 -0
- package/dist/fonts/woff2-dynamic-subset/PretendardVariable.subset.5.woff2 +0 -0
- package/dist/fonts/woff2-dynamic-subset/PretendardVariable.subset.50.woff2 +0 -0
- package/dist/fonts/woff2-dynamic-subset/PretendardVariable.subset.51.woff2 +0 -0
- package/dist/fonts/woff2-dynamic-subset/PretendardVariable.subset.52.woff2 +0 -0
- package/dist/fonts/woff2-dynamic-subset/PretendardVariable.subset.53.woff2 +0 -0
- package/dist/fonts/woff2-dynamic-subset/PretendardVariable.subset.54.woff2 +0 -0
- package/dist/fonts/woff2-dynamic-subset/PretendardVariable.subset.55.woff2 +0 -0
- package/dist/fonts/woff2-dynamic-subset/PretendardVariable.subset.56.woff2 +0 -0
- package/dist/fonts/woff2-dynamic-subset/PretendardVariable.subset.57.woff2 +0 -0
- package/dist/fonts/woff2-dynamic-subset/PretendardVariable.subset.58.woff2 +0 -0
- package/dist/fonts/woff2-dynamic-subset/PretendardVariable.subset.59.woff2 +0 -0
- package/dist/fonts/woff2-dynamic-subset/PretendardVariable.subset.6.woff2 +0 -0
- package/dist/fonts/woff2-dynamic-subset/PretendardVariable.subset.60.woff2 +0 -0
- package/dist/fonts/woff2-dynamic-subset/PretendardVariable.subset.61.woff2 +0 -0
- package/dist/fonts/woff2-dynamic-subset/PretendardVariable.subset.62.woff2 +0 -0
- package/dist/fonts/woff2-dynamic-subset/PretendardVariable.subset.63.woff2 +0 -0
- package/dist/fonts/woff2-dynamic-subset/PretendardVariable.subset.64.woff2 +0 -0
- package/dist/fonts/woff2-dynamic-subset/PretendardVariable.subset.65.woff2 +0 -0
- package/dist/fonts/woff2-dynamic-subset/PretendardVariable.subset.66.woff2 +0 -0
- package/dist/fonts/woff2-dynamic-subset/PretendardVariable.subset.67.woff2 +0 -0
- package/dist/fonts/woff2-dynamic-subset/PretendardVariable.subset.68.woff2 +0 -0
- package/dist/fonts/woff2-dynamic-subset/PretendardVariable.subset.69.woff2 +0 -0
- package/dist/fonts/woff2-dynamic-subset/PretendardVariable.subset.7.woff2 +0 -0
- package/dist/fonts/woff2-dynamic-subset/PretendardVariable.subset.70.woff2 +0 -0
- package/dist/fonts/woff2-dynamic-subset/PretendardVariable.subset.71.woff2 +0 -0
- package/dist/fonts/woff2-dynamic-subset/PretendardVariable.subset.72.woff2 +0 -0
- package/dist/fonts/woff2-dynamic-subset/PretendardVariable.subset.73.woff2 +0 -0
- package/dist/fonts/woff2-dynamic-subset/PretendardVariable.subset.74.woff2 +0 -0
- package/dist/fonts/woff2-dynamic-subset/PretendardVariable.subset.75.woff2 +0 -0
- package/dist/fonts/woff2-dynamic-subset/PretendardVariable.subset.76.woff2 +0 -0
- package/dist/fonts/woff2-dynamic-subset/PretendardVariable.subset.77.woff2 +0 -0
- package/dist/fonts/woff2-dynamic-subset/PretendardVariable.subset.78.woff2 +0 -0
- package/dist/fonts/woff2-dynamic-subset/PretendardVariable.subset.79.woff2 +0 -0
- package/dist/fonts/woff2-dynamic-subset/PretendardVariable.subset.8.woff2 +0 -0
- package/dist/fonts/woff2-dynamic-subset/PretendardVariable.subset.80.woff2 +0 -0
- package/dist/fonts/woff2-dynamic-subset/PretendardVariable.subset.81.woff2 +0 -0
- package/dist/fonts/woff2-dynamic-subset/PretendardVariable.subset.82.woff2 +0 -0
- package/dist/fonts/woff2-dynamic-subset/PretendardVariable.subset.83.woff2 +0 -0
- package/dist/fonts/woff2-dynamic-subset/PretendardVariable.subset.84.woff2 +0 -0
- package/dist/fonts/woff2-dynamic-subset/PretendardVariable.subset.85.woff2 +0 -0
- package/dist/fonts/woff2-dynamic-subset/PretendardVariable.subset.86.woff2 +0 -0
- package/dist/fonts/woff2-dynamic-subset/PretendardVariable.subset.87.woff2 +0 -0
- package/dist/fonts/woff2-dynamic-subset/PretendardVariable.subset.88.woff2 +0 -0
- package/dist/fonts/woff2-dynamic-subset/PretendardVariable.subset.89.woff2 +0 -0
- package/dist/fonts/woff2-dynamic-subset/PretendardVariable.subset.9.woff2 +0 -0
- package/dist/fonts/woff2-dynamic-subset/PretendardVariable.subset.90.woff2 +0 -0
- package/dist/fonts/woff2-dynamic-subset/PretendardVariable.subset.91.woff2 +0 -0
- package/dist/index.cjs +20559 -10373
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +22 -0
- package/dist/index.js +20482 -10372
- package/dist/index.js.map +1 -1
- package/dist/lib/chart/cartesian.d.ts +56 -0
- package/dist/lib/chart/frame.d.ts +21 -0
- package/dist/lib/chart/hover-dim.d.ts +19 -0
- package/dist/lib/chart/legend.d.ts +21 -0
- package/dist/lib/chart/palette.d.ts +28 -0
- package/dist/lib/chart/radial.d.ts +99 -0
- package/dist/lib/chart/scale.d.ts +26 -0
- package/dist/lib/chart/tooltip.d.ts +60 -0
- package/dist/lib/chart/types.d.ts +29 -0
- package/dist/lib/chart/use-element-size.d.ts +39 -0
- package/dist/lib/date.d.ts +2 -1
- package/dist/lib/depth-filter.d.ts +27 -0
- package/dist/lib/doc-sections.d.ts +35 -0
- package/dist/lib/dropdown-menu.d.ts +19 -0
- package/dist/lib/field-width.d.ts +31 -0
- package/dist/lib/floating-height.d.ts +15 -0
- package/dist/lib/global-overlay.d.ts +5 -0
- package/dist/lib/hover-preview.d.ts +32 -0
- package/dist/lib/inert.d.ts +11 -0
- package/dist/lib/overlay-scrollbar.d.ts +32 -0
- package/dist/lib/row-metrics.d.ts +61 -0
- package/dist/lib/story-docs.d.ts +19 -3
- package/dist/llms-full.txt +5901 -550
- package/dist/llms.txt +1915 -267
- package/dist/playground/categories.d.ts +19 -0
- package/dist/pretendard.css +937 -0
- package/dist/recipes/AppShell.d.ts +21 -0
- package/dist/recipes/ExcelFilePopupPage.d.ts +5 -0
- package/dist/recipes/LoginPage.d.ts +6 -0
- package/dist/recipes/ProductCreatePage.d.ts +1 -0
- package/dist/recipes/ProductCreateSectionsPage.d.ts +5 -0
- package/dist/recipes/ProductDetailInlineEditPage.d.ts +9 -0
- package/dist/recipes/ProductDetailPage.d.ts +1 -0
- package/dist/recipes/ProductListChipFilterPage.d.ts +1 -0
- package/dist/recipes/ProductListPage.d.ts +1 -0
- package/dist/recipes/TransferOrderPopupPage.d.ts +2 -0
- package/dist/recipes/api.d.ts +91 -0
- package/dist/recipes/recipe-story.d.ts +33 -0
- package/dist/recipes/router.d.ts +9 -0
- package/dist/styles.css +3328 -273
- package/dist/theme.css +571 -33
- package/eslint/index.mjs +9 -0
- package/eslint/lib/table-column.mjs +26 -0
- package/eslint/rules/divider-vertical-height.mjs +137 -0
- package/eslint/rules/field-width-grade.mjs +27 -10
- package/eslint/rules/table-column-width.mjs +110 -0
- package/eslint/scale.gen.mjs +6 -3
- package/package.json +17 -3
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
import type { SIconName } from '../SIcon';
|
|
2
|
+
import type { STagColor } from '../STag';
|
|
3
|
+
/**
|
|
4
|
+
* 패널 고정 폭(px, 시안 — 전용 토큰 없음).
|
|
5
|
+
* 담기는 것은 서비스 로고 한 줄이라 내용 폭을 따르면 로고 길이에 따라 패널이 출렁인다.
|
|
6
|
+
*/
|
|
7
|
+
export declare const LAUNCHER_LIST_BOX_WIDTH = 320;
|
|
8
|
+
/**
|
|
9
|
+
* 로고 글리프 높이(px, 시안 — 전용 토큰 없음).
|
|
10
|
+
* 로고 줄 높이(20px = 위아래 여백 4 + 이 값)에서 여백을 뺀 나머지이고, 그 20px 이 태그(STag xs)
|
|
11
|
+
* 높이와 같아 로고와 태그가 한 줄에 나란히 선다.
|
|
12
|
+
*/
|
|
13
|
+
export declare const LAUNCHER_LIST_BOX_LOGO_HEIGHT = 12;
|
|
14
|
+
/**
|
|
15
|
+
* 워드마크 ↔ 서비스 표기 간격(px, 시안 — 전용 토큰 없음).
|
|
16
|
+
* 토큰의 `logo.gap` 은 [워드마크+표기] 묶음과 태그 사이의 간격이라 여기 쓸 값이 아니다.
|
|
17
|
+
*/
|
|
18
|
+
export declare const LAUNCHER_LIST_BOX_LOGO_SERVICE_GAP = 8;
|
|
19
|
+
/**
|
|
20
|
+
* hover 때 줄 오른쪽 끝에 나타나는 아이콘 — "여기서 다른 서비스로 옮겨 간다"는 표시.
|
|
21
|
+
* 크기·색은 토큰이 정하지만 **어떤 글리프인지는 토큰에 없어** 뜻이 가장 가까운 것을 골랐다.
|
|
22
|
+
* TODO(디자인): 시안의 글리프를 확인해 확정한다.
|
|
23
|
+
*/
|
|
24
|
+
export declare const LAUNCHER_LIST_BOX_TRAILING_ICON: SIconName;
|
|
25
|
+
/**
|
|
26
|
+
* 런처에 설 수 있는 서비스 — **목록의 순서이기도 하다.**
|
|
27
|
+
* 앱이 넘긴 순서가 아니라 이 순서로 선다: 같은 런처가 앱마다 다른 순서로 뜨면 사용자가 매번 다시 찾는다.
|
|
28
|
+
*/
|
|
29
|
+
export declare const LAUNCHER_SERVICES: readonly ["sellmate", "wms", "account", "crm"];
|
|
30
|
+
export type SLauncherService = (typeof LAUNCHER_SERVICES)[number];
|
|
31
|
+
/** 카탈로그 한 줄 — 그 서비스가 런처에서 갖는 고정된 모습 */
|
|
32
|
+
export interface SLauncherServiceEntry {
|
|
33
|
+
/**
|
|
34
|
+
* 워드마크 오른쪽에 잇는 서비스 표기(`WMS` · `Account` · `CRM`). 셀메이트 본체처럼 표기가
|
|
35
|
+
* 없는 서비스는 비운다 — 워드마크만 선다.
|
|
36
|
+
*/
|
|
37
|
+
mark?: string;
|
|
38
|
+
/** 로고 아래 줄에 적히는 서비스 이름 */
|
|
39
|
+
name: string;
|
|
40
|
+
/**
|
|
41
|
+
* 상태 태그(`출시예정`·`NEW` 등). **앱이 붙이거나 지울 수 없다** — 같은 서비스가 앱마다
|
|
42
|
+
* 다른 문구를 달면 그 문구를 사용자가 믿을 수 없게 된다.
|
|
43
|
+
*/
|
|
44
|
+
tag?: string;
|
|
45
|
+
/** 태그 색. 비우면 `'grey'` */
|
|
46
|
+
tagColor?: STagColor;
|
|
47
|
+
/** 태그 라벨 왼쪽 아이콘 */
|
|
48
|
+
tagIcon?: SIconName;
|
|
49
|
+
/** 아직 아무도 못 쓰는 서비스(출시 전). 계약 여부처럼 앱마다 갈리는 것은 여기 적지 않는다 */
|
|
50
|
+
disabled?: boolean;
|
|
51
|
+
}
|
|
52
|
+
/**
|
|
53
|
+
* 서비스 카탈로그 — **런처에 서는 각 서비스의 모습은 여기가 정한다.**
|
|
54
|
+
*
|
|
55
|
+
* 앱은 서비스 키와 갈 주소만 넘긴다. 표기·이름·태그를 앱이 넘기게 하면 같은 서비스가 앱마다 다른
|
|
56
|
+
* 이름으로 서고(`셀메이트 어카운트` / `Account` / `어카운트`), 한쪽을 고쳐도 나머지는 그대로 남는다.
|
|
57
|
+
*
|
|
58
|
+
* **주소는 여기 없다.** 앱마다 QA·실서버 주소가 다르므로 갈 곳은 앱이 `href` 로 넘긴다.
|
|
59
|
+
*
|
|
60
|
+
* 서비스가 늘거나 이름·상태가 바뀌면 이 표를 고치고 릴리스한다 — 소비 앱은 고칠 것이 없다.
|
|
61
|
+
*/
|
|
62
|
+
export declare const LAUNCHER_SERVICE_CATALOG: Record<SLauncherService, SLauncherServiceEntry>;
|
|
63
|
+
/** 치수·색 — 전용 토큰이 없는 자리만 위 상수를 쓴다 */
|
|
64
|
+
export declare const LAUNCHER_LIST_BOX_LAYOUT: {
|
|
65
|
+
/** 패널 배경 */
|
|
66
|
+
readonly bg: string;
|
|
67
|
+
/** 패널 라운드 */
|
|
68
|
+
readonly radius: string;
|
|
69
|
+
/** 패널 상하좌우 여백 */
|
|
70
|
+
readonly padding: string;
|
|
71
|
+
/**
|
|
72
|
+
* 패널 그림자.
|
|
73
|
+
* 토큰(`component.gnb.launcher.listBox.shadow` = `{shadow.floating}`)은 값이 배열이라
|
|
74
|
+
* `--cmp-*` 로 나오지 않는다 — 생성기가 스칼라만 내보내기 때문이다. 그래서 그 별칭이
|
|
75
|
+
* 가리키는 스케일 토큰을 직접 쓴다(같은 값이다).
|
|
76
|
+
*/
|
|
77
|
+
readonly shadow: "var(--shadow-floating)";
|
|
78
|
+
/** 줄 왼쪽 여백 */
|
|
79
|
+
readonly itemPaddingLeft: string;
|
|
80
|
+
/** 줄 오른쪽 여백 — 왼쪽보다 좁다(오른쪽 끝은 hover 아이콘 자리다) */
|
|
81
|
+
readonly itemPaddingRight: string;
|
|
82
|
+
/** 줄 상하 여백 */
|
|
83
|
+
readonly itemPaddingY: string;
|
|
84
|
+
/** 줄 안의 [로고·이름 묶음] ↔ [hover 아이콘] 간격 */
|
|
85
|
+
readonly itemGap: string;
|
|
86
|
+
/** 줄 라운드 */
|
|
87
|
+
readonly itemRadius: string;
|
|
88
|
+
/** 줄 배경 */
|
|
89
|
+
readonly itemBg: string;
|
|
90
|
+
/** 줄 hover 배경 */
|
|
91
|
+
readonly itemBgHover: string;
|
|
92
|
+
/** 서비스 이름 글자색 */
|
|
93
|
+
readonly nameColor: string;
|
|
94
|
+
/** 서비스 이름 hover 글자색 */
|
|
95
|
+
readonly nameColorHover: string;
|
|
96
|
+
/** 로고 줄의 위아래 여백 */
|
|
97
|
+
readonly logoPaddingY: string;
|
|
98
|
+
/** [워드마크 + 서비스 표기] ↔ 태그 간격 */
|
|
99
|
+
readonly logoTagGap: string;
|
|
100
|
+
/** 워드마크 ↔ 서비스 표기 간격 */
|
|
101
|
+
readonly logoServiceGap: "8px";
|
|
102
|
+
/** hover 아이콘 크기 */
|
|
103
|
+
readonly trailingIconSize: string;
|
|
104
|
+
/** hover 아이콘 색 */
|
|
105
|
+
readonly trailingIconColor: string;
|
|
106
|
+
/**
|
|
107
|
+
* 아직 못 쓰는 서비스의 이름 글자색.
|
|
108
|
+
* 런처 한 벌에 비활성 색이 없어(시안에 disabled 상태 토큰이 없다) 시맨틱 토큰을 쓴다.
|
|
109
|
+
*/
|
|
110
|
+
readonly nameDisabledColor: string;
|
|
111
|
+
/**
|
|
112
|
+
* 아직 못 쓰는 서비스의 로고 색 — 워드마크와, 글자로 온 서비스 표기에 함께 건다.
|
|
113
|
+
* 둘 다 색만 갈아끼우면 되므로 그래픽 마크에 거는 필터(회색화)를 태우지 않는다 — 태우면
|
|
114
|
+
* 밝은 accentLight 가 워드마크보다 더 옅어져 둘이 따로 논다. 로고는 글자가 아니라 그림에
|
|
115
|
+
* 가까우므로 글자색(disabled-text)이 아니라 아이콘 비활성색을 쓴다.
|
|
116
|
+
*/
|
|
117
|
+
readonly logoDisabledColor: string;
|
|
118
|
+
};
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
|------|------|---------|-------------|
|
|
11
11
|
| `type?` | `SLayoutType` | `'box'` | 메뉴 스타일: box(라운드) / belt(풀폭 행). 자식 SGnb 가 이 값을 따른다. |
|
|
12
12
|
| `header?` | `SLayoutHeader` | `'fix'` | 레이아웃 구조: fix(가로 분할) / full(풀폭 상단바). 자식 SGnb·SPage 가 이 값을 따른다. |
|
|
13
|
-
| `
|
|
13
|
+
| `showRail?` | `boolean` | `false` | GNB 좌측 레일 사용 여부. 자식 SGnb 가 이 값을 따르고, 그만큼 넓어진 컬럼 폭을 되올린다. 레일에 children 없는 아이템이 있으면 SGnb 가 full 상단바를 요구하고, 이 레이아웃도 그에 맞춰 full 그리드로 선다. |
|
|
14
14
|
| `folded?` | `boolean` | — | GNB 접힘 상태 (controlled) |
|
|
15
15
|
| `defaultFolded?` | `boolean` | `false` | GNB 초기 접힘 상태 (uncontrolled) |
|
|
16
16
|
|
|
@@ -20,6 +20,22 @@
|
|
|
20
20
|
|-------|------|-------------|
|
|
21
21
|
| `onFoldedChange` | `(folded: boolean) => void` | 접힘 상태 변경 |
|
|
22
22
|
|
|
23
|
+
## Types
|
|
24
|
+
|
|
25
|
+
### SLayoutType
|
|
26
|
+
|
|
27
|
+
```ts
|
|
28
|
+
/** 메뉴 스타일: box(라운드) / belt(풀폭 행) — 자식 SGnb 의 메뉴 모양 */
|
|
29
|
+
export type SLayoutType = SGnbType;
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
### SLayoutHeader
|
|
33
|
+
|
|
34
|
+
```ts
|
|
35
|
+
/** 레이아웃 구조: fix(좌측 GNB + 페이지 가로 분할) / full(풀폭 상단바 + 아래에 메뉴|페이지) */
|
|
36
|
+
export type SLayoutHeader = SGnbHeader;
|
|
37
|
+
```
|
|
38
|
+
|
|
23
39
|
## Dependencies
|
|
24
40
|
|
|
25
41
|
### Used by
|
|
@@ -27,10 +43,15 @@
|
|
|
27
43
|
- [SGnb](../SGnb)
|
|
28
44
|
- [SPage](../SPage)
|
|
29
45
|
|
|
46
|
+
### Depends on
|
|
47
|
+
|
|
48
|
+
- [SPage](../SPage)
|
|
49
|
+
|
|
30
50
|
### Graph
|
|
31
51
|
|
|
32
52
|
```mermaid
|
|
33
53
|
graph TD;
|
|
54
|
+
SLayout --> SPage
|
|
34
55
|
SGnb --> SLayout
|
|
35
56
|
SPage --> SLayout
|
|
36
57
|
style SLayout fill:#f9f,stroke:#333,stroke-width:4px
|
|
@@ -42,7 +42,7 @@ export interface SLayoutContextValue {
|
|
|
42
42
|
*/
|
|
43
43
|
header: SLayoutHeader;
|
|
44
44
|
/** GNB 좌측 레일 사용 여부 — 자식 SGnb 가 따른다 */
|
|
45
|
-
|
|
45
|
+
showRail: boolean;
|
|
46
46
|
/** GNB 접힘 상태 */
|
|
47
47
|
folded: boolean;
|
|
48
48
|
/** 접힘 상태 변경 */
|
|
@@ -81,7 +81,7 @@ export interface SLayoutProps extends HTMLAttributes<HTMLDivElement> {
|
|
|
81
81
|
* GNB 좌측 레일 사용 여부. 자식 SGnb 가 이 값을 따르고, 그만큼 넓어진 컬럼 폭을 되올린다.
|
|
82
82
|
* 레일에 children 없는 아이템이 있으면 SGnb 가 full 상단바를 요구하고, 이 레이아웃도 그에 맞춰 full 그리드로 선다.
|
|
83
83
|
*/
|
|
84
|
-
|
|
84
|
+
showRail?: boolean;
|
|
85
85
|
/** GNB 접힘 상태 (controlled) */
|
|
86
86
|
folded?: boolean;
|
|
87
87
|
/** GNB 초기 접힘 상태 (uncontrolled) */
|
|
@@ -106,5 +106,9 @@ export interface SLayoutProps extends HTMLAttributes<HTMLDivElement> {
|
|
|
106
106
|
* "header header" ← 전폭 상단바 (1행, 높이 = 등록된 topHeight)
|
|
107
107
|
* "nav page" ← 메뉴 열(등록된 columnWidth) | 페이지
|
|
108
108
|
* 접으면 nav 열을 0 으로 접어 페이지가 전폭을 쓴다.
|
|
109
|
+
*
|
|
110
|
+
* 자식 순서는 `SGnb` → (선택) `SPageHeader` → `SPage` 다. `SPageHeader` 를 두면 **그 자식부터 뒤가**
|
|
111
|
+
* 하나의 페이지 열로 묶여(page-column.tsx) 헤더가 페이지 위에 고정되고, 그 아래에서만 스크롤이 일어난다.
|
|
112
|
+
* 헤더를 두지 않으면 아무것도 감싸지 않는다 — `SPage` 가 예전처럼 프레임의 자식으로 남는다.
|
|
109
113
|
*/
|
|
110
114
|
export declare const SLayout: import("react").ForwardRefExoticComponent<SLayoutProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { SLayout, SLayoutContext, SLAYOUT_MIN_WIDTH, useSLayout, type SLayoutProps, type SLayoutType, type SLayoutHeader, type SLayoutContextValue, } from './SLayout';
|
|
1
|
+
export { SLayout, SLayoutContext, SLAYOUT_MIN_WIDTH, useSLayout, type SLayoutProps, type SLayoutType, type SLayoutHeader, type SLayoutNavState, type SLayoutContextValue, } from './SLayout';
|
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
# SLineChart
|
|
2
|
+
|
|
3
|
+
> 자동 생성 문서 — `npm run docs:gen`. 소스: 각 컴포넌트의 Props/Handle 인터페이스 + import 의존성.
|
|
4
|
+
|
|
5
|
+
### SLineChart
|
|
6
|
+
|
|
7
|
+
#### Props
|
|
8
|
+
|
|
9
|
+
| Prop | Type | Default | Description |
|
|
10
|
+
|------|------|---------|-------------|
|
|
11
|
+
| `categories` | `string[]` | — | 가로축에 놓일 항목 이름 |
|
|
12
|
+
| `series` | `SLineChartSeries[]` | — | 계열 목록. 각 `data` 는 `categories` 와 같은 순서다 |
|
|
13
|
+
| `title?` | `string` | — | 차트 제목 — 왼쪽 위에 놓인다 |
|
|
14
|
+
| `unit?` | `string` | — | 단위 — 오른쪽 위에 "단위 : " 를 붙여 놓는다 |
|
|
15
|
+
| `curve?` | `SLineChartCurve` | `'linear'` | 점을 잇는 방식. `smooth` 는 값을 넘어가 부풀지 않는 곡선이다 |
|
|
16
|
+
| `lineStyle?` | `SLineChartLineStyle` | `'solid'` | 선 모양. `dashed` 는 차트의 모든 선을 점선으로 그린다 |
|
|
17
|
+
| `area?` | `boolean` | `false` | 선 아래를 계열 색으로 채운다. 크기의 변화를 함께 보여줄 때 쓴다 |
|
|
18
|
+
| `stacked?` | `boolean` | `false` | 계열을 겹쳐 그리는 대신 **아래 계열 위에 쌓는다**. 전체의 크기와 그 안의 구성을 함께 볼 때 쓴다 — 맨 위 선이 곧 합계다. 툴팁은 쌓기 전 각 계열의 값을 보여준다 |
|
|
19
|
+
| `palette?` | `SLineChartPalette` | `'default'` | 색 팔레트. `custom` 일 때만 `colors` 를 본다 |
|
|
20
|
+
| `colors?` | `SLineChartColor[]` | — | `palette='custom'` 에서 쓸 색 이름을 계열 순서대로. 계열보다 짧으면 앞에서부터 순환한다 |
|
|
21
|
+
| `max?` | `number` | — | 값 축의 최댓값. 주지 않으면 데이터에서 읽기 좋은 값으로 정한다 |
|
|
22
|
+
| `tickCount?` | `number` | `8` | 값 축 눈금 개수 |
|
|
23
|
+
| `showPoint?` | `boolean` | `true` | 데이터 지점마다 점을 찍는다. 꺼도 짚은 항목의 점은 뜬다 |
|
|
24
|
+
| `showValueLabel?` | `boolean` | `false` | 점마다 값을 적는다. 기본은 끔 — 선 그래프는 항목이 많은 데이터에 쓰는 일이 잦아 숫자가 서로 붙는다. 항목이 대여섯 개 안쪽일 때만 켠다 |
|
|
25
|
+
| `showLegend?` | `boolean` | `true` | 범례를 보인다 |
|
|
26
|
+
| `legendPosition?` | `SLineChartLegendPosition` | `'top'` | 범례 위치 |
|
|
27
|
+
| `showTooltip?` | `boolean` | `true` | 항목에 마우스를 올리면 값 상자를 띄운다 |
|
|
28
|
+
| `formatValue?` | `(value: number) => string` | `defaultFormat` | 값 표시 형식 |
|
|
29
|
+
| `height?` | `number \| string` | — | 차트 높이. **아래 축 텍스트까지 포함한 값**이다 — 그림은 그만큼 줄어든다 |
|
|
30
|
+
| `tooltipFooter?` | `(category: SLineChartTooltipCategory) => ReactNode` | — | 툴팁의 값 아래에 덧붙일 내용. 짚은 항목을 받아 그린다 — 계열 값만으로 모자란 맥락 (합계, 전월 대비 등)을 적는다. 툴팁은 누를 수 없으므로 버튼·링크는 넣지 않는다 |
|
|
31
|
+
| `className?` | `string` | — | |
|
|
32
|
+
| `style?` | `CSSProperties` | — | |
|
|
33
|
+
|
|
34
|
+
#### Events
|
|
35
|
+
|
|
36
|
+
| Event | Type | Description |
|
|
37
|
+
|-------|------|-------------|
|
|
38
|
+
| `onPointClick` | `(point: SLineChartPoint) => void` | 점을 눌렀을 때 |
|
|
39
|
+
|
|
40
|
+
## Types
|
|
41
|
+
|
|
42
|
+
### SLineChartSeries
|
|
43
|
+
|
|
44
|
+
```ts
|
|
45
|
+
/** 한 계열 — 선 하나, 범례 한 줄에 대응한다. */
|
|
46
|
+
export interface SLineChartSeries {
|
|
47
|
+
/** 범례·툴팁에 표시할 이름 */
|
|
48
|
+
name: string;
|
|
49
|
+
/** `categories` 와 같은 순서의 값. 빠진 자리(`null`·짧은 배열)에서는 선이 끊긴다 */
|
|
50
|
+
data: (number | null)[];
|
|
51
|
+
}
|
|
52
|
+
```
|
|
53
|
+
|
|
54
|
+
### SLineChartCurve
|
|
55
|
+
|
|
56
|
+
```ts
|
|
57
|
+
/** 점과 점을 잇는 방식. */
|
|
58
|
+
export type SLineChartCurve = 'linear' | 'smooth';
|
|
59
|
+
```
|
|
60
|
+
|
|
61
|
+
### SLineChartLineStyle
|
|
62
|
+
|
|
63
|
+
```ts
|
|
64
|
+
/** 선 모양. `dashed` 는 차트의 모든 선에 적용된다 — 일부 계열만 점선으로 구분하려면 쓰지 않는다 */
|
|
65
|
+
export type SLineChartLineStyle = 'solid' | 'dashed';
|
|
66
|
+
```
|
|
67
|
+
|
|
68
|
+
### SLineChartPalette
|
|
69
|
+
|
|
70
|
+
```ts
|
|
71
|
+
/**
|
|
72
|
+
* 색 팔레트.
|
|
73
|
+
* - `default` 파랑 한 색. 계열이 하나거나 색으로 나눌 것이 없을 때
|
|
74
|
+
* - `multi` 서로 무관한 항목(11색)을 순서대로
|
|
75
|
+
* - `gradation` 한 지표의 단계(6색)를 진한 쪽부터 순서대로
|
|
76
|
+
* - `custom` `colors` 로 고른 색을 순서대로
|
|
77
|
+
*/
|
|
78
|
+
export type SLineChartPalette = 'default' | 'multi' | 'gradation' | 'custom';
|
|
79
|
+
```
|
|
80
|
+
|
|
81
|
+
### SLineChartColor
|
|
82
|
+
|
|
83
|
+
```ts
|
|
84
|
+
/**
|
|
85
|
+
* `palette='custom'` 에서 고를 수 있는 색 이름.
|
|
86
|
+
* positive=늘어남 · negative=줄어듦 · neutral=변화 없음 을 뜻하므로 뜻에 맞게 고른다.
|
|
87
|
+
*/
|
|
88
|
+
export type SLineChartColor =
|
|
89
|
+
| 'positivePrimary'
|
|
90
|
+
| 'positiveSecondary'
|
|
91
|
+
| 'negativePrimary'
|
|
92
|
+
| 'negativeSecondary'
|
|
93
|
+
| 'neutralPrimary'
|
|
94
|
+
| 'neutralSecondary';
|
|
95
|
+
```
|
|
96
|
+
|
|
97
|
+
### SLineChartLegendPosition
|
|
98
|
+
|
|
99
|
+
```ts
|
|
100
|
+
/** 범례 위치. */
|
|
101
|
+
export type SLineChartLegendPosition = 'top' | 'bottom';
|
|
102
|
+
```
|
|
103
|
+
|
|
104
|
+
### SLineChartPoint
|
|
105
|
+
|
|
106
|
+
```ts
|
|
107
|
+
/** 툴팁·클릭이 가리키는 지점. */
|
|
108
|
+
export interface SLineChartPoint {
|
|
109
|
+
/** 계열 인덱스 */
|
|
110
|
+
seriesIndex: number;
|
|
111
|
+
/** 카테고리 인덱스 */
|
|
112
|
+
categoryIndex: number;
|
|
113
|
+
/** 그 지점의 값. 누적이어도 **그 계열이 제 몫으로 가진 값**이다 */
|
|
114
|
+
value: number;
|
|
115
|
+
}
|
|
116
|
+
```
|
|
117
|
+
|
|
118
|
+
### SLineChartTooltipCategory
|
|
119
|
+
|
|
120
|
+
```ts
|
|
121
|
+
/** 툴팁 하단(`tooltipFooter`)이 받는 짚은 항목. */
|
|
122
|
+
export interface SLineChartTooltipCategory {
|
|
123
|
+
/** 카테고리 인덱스 */
|
|
124
|
+
categoryIndex: number;
|
|
125
|
+
/** 카테고리 이름 */
|
|
126
|
+
name: string;
|
|
127
|
+
/** 툴팁에 값이 뜬 지점들 — 값이 없는 계열은 빠진다. 누적이어도 각 계열이 제 몫으로 가진 값이다 */
|
|
128
|
+
points: SLineChartPoint[];
|
|
129
|
+
}
|
|
130
|
+
```
|
|
131
|
+
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
import { type CSSProperties, type ReactNode } from 'react';
|
|
2
|
+
/** 점과 점을 잇는 방식. */
|
|
3
|
+
export type SLineChartCurve = 'linear' | 'smooth';
|
|
4
|
+
/** 선 모양. `dashed` 는 차트의 모든 선에 적용된다 — 일부 계열만 점선으로 구분하려면 쓰지 않는다 */
|
|
5
|
+
export type SLineChartLineStyle = 'solid' | 'dashed';
|
|
6
|
+
/** 범례 위치. */
|
|
7
|
+
export type SLineChartLegendPosition = 'top' | 'bottom';
|
|
8
|
+
/**
|
|
9
|
+
* 색 팔레트.
|
|
10
|
+
* - `default` 파랑 한 색. 계열이 하나거나 색으로 나눌 것이 없을 때
|
|
11
|
+
* - `multi` 서로 무관한 항목(11색)을 순서대로
|
|
12
|
+
* - `gradation` 한 지표의 단계(6색)를 진한 쪽부터 순서대로
|
|
13
|
+
* - `custom` `colors` 로 고른 색을 순서대로
|
|
14
|
+
*/
|
|
15
|
+
export type SLineChartPalette = 'default' | 'multi' | 'gradation' | 'custom';
|
|
16
|
+
/**
|
|
17
|
+
* `palette='custom'` 에서 고를 수 있는 색 이름.
|
|
18
|
+
* positive=늘어남 · negative=줄어듦 · neutral=변화 없음 을 뜻하므로 뜻에 맞게 고른다.
|
|
19
|
+
*/
|
|
20
|
+
export type SLineChartColor = 'positivePrimary' | 'positiveSecondary' | 'negativePrimary' | 'negativeSecondary' | 'neutralPrimary' | 'neutralSecondary';
|
|
21
|
+
/** 툴팁·클릭이 가리키는 지점. */
|
|
22
|
+
export interface SLineChartPoint {
|
|
23
|
+
/** 계열 인덱스 */
|
|
24
|
+
seriesIndex: number;
|
|
25
|
+
/** 카테고리 인덱스 */
|
|
26
|
+
categoryIndex: number;
|
|
27
|
+
/** 그 지점의 값. 누적이어도 **그 계열이 제 몫으로 가진 값**이다 */
|
|
28
|
+
value: number;
|
|
29
|
+
}
|
|
30
|
+
/** 툴팁 하단(`tooltipFooter`)이 받는 짚은 항목. */
|
|
31
|
+
export interface SLineChartTooltipCategory {
|
|
32
|
+
/** 카테고리 인덱스 */
|
|
33
|
+
categoryIndex: number;
|
|
34
|
+
/** 카테고리 이름 */
|
|
35
|
+
name: string;
|
|
36
|
+
/** 툴팁에 값이 뜬 지점들 — 값이 없는 계열은 빠진다. 누적이어도 각 계열이 제 몫으로 가진 값이다 */
|
|
37
|
+
points: SLineChartPoint[];
|
|
38
|
+
}
|
|
39
|
+
/** 한 계열 — 선 하나, 범례 한 줄에 대응한다. */
|
|
40
|
+
export interface SLineChartSeries {
|
|
41
|
+
/** 범례·툴팁에 표시할 이름 */
|
|
42
|
+
name: string;
|
|
43
|
+
/** `categories` 와 같은 순서의 값. 빠진 자리(`null`·짧은 배열)에서는 선이 끊긴다 */
|
|
44
|
+
data: (number | null)[];
|
|
45
|
+
}
|
|
46
|
+
export interface SLineChartProps {
|
|
47
|
+
/** 가로축에 놓일 항목 이름 */
|
|
48
|
+
categories: string[];
|
|
49
|
+
/** 계열 목록. 각 `data` 는 `categories` 와 같은 순서다 */
|
|
50
|
+
series: SLineChartSeries[];
|
|
51
|
+
/** 차트 제목 — 왼쪽 위에 놓인다 */
|
|
52
|
+
title?: string;
|
|
53
|
+
/** 단위 — 오른쪽 위에 "단위 : " 를 붙여 놓는다 */
|
|
54
|
+
unit?: string;
|
|
55
|
+
/** 점을 잇는 방식. `smooth` 는 값을 넘어가 부풀지 않는 곡선이다 */
|
|
56
|
+
curve?: SLineChartCurve;
|
|
57
|
+
/** 선 모양. `dashed` 는 차트의 모든 선을 점선으로 그린다 */
|
|
58
|
+
lineStyle?: SLineChartLineStyle;
|
|
59
|
+
/** 선 아래를 계열 색으로 채운다. 크기의 변화를 함께 보여줄 때 쓴다 */
|
|
60
|
+
area?: boolean;
|
|
61
|
+
/**
|
|
62
|
+
* 계열을 겹쳐 그리는 대신 **아래 계열 위에 쌓는다**. 전체의 크기와 그 안의 구성을
|
|
63
|
+
* 함께 볼 때 쓴다 — 맨 위 선이 곧 합계다. 툴팁은 쌓기 전 각 계열의 값을 보여준다
|
|
64
|
+
*/
|
|
65
|
+
stacked?: boolean;
|
|
66
|
+
/** 색 팔레트. `custom` 일 때만 `colors` 를 본다 */
|
|
67
|
+
palette?: SLineChartPalette;
|
|
68
|
+
/** `palette='custom'` 에서 쓸 색 이름을 계열 순서대로. 계열보다 짧으면 앞에서부터 순환한다 */
|
|
69
|
+
colors?: SLineChartColor[];
|
|
70
|
+
/** 값 축의 최댓값. 주지 않으면 데이터에서 읽기 좋은 값으로 정한다 */
|
|
71
|
+
max?: number;
|
|
72
|
+
/** 값 축 눈금 개수 */
|
|
73
|
+
tickCount?: number;
|
|
74
|
+
/** 데이터 지점마다 점을 찍는다. 꺼도 짚은 항목의 점은 뜬다 */
|
|
75
|
+
showPoint?: boolean;
|
|
76
|
+
/**
|
|
77
|
+
* 점마다 값을 적는다. 기본은 끔 — 선 그래프는 항목이 많은 데이터에 쓰는 일이 잦아
|
|
78
|
+
* 숫자가 서로 붙는다. 항목이 대여섯 개 안쪽일 때만 켠다
|
|
79
|
+
*/
|
|
80
|
+
showValueLabel?: boolean;
|
|
81
|
+
/** 범례를 보인다 */
|
|
82
|
+
showLegend?: boolean;
|
|
83
|
+
/** 범례 위치 */
|
|
84
|
+
legendPosition?: SLineChartLegendPosition;
|
|
85
|
+
/** 항목에 마우스를 올리면 값 상자를 띄운다 */
|
|
86
|
+
showTooltip?: boolean;
|
|
87
|
+
/** 값 표시 형식 */
|
|
88
|
+
formatValue?: (value: number) => string;
|
|
89
|
+
/** 차트 높이. **아래 축 텍스트까지 포함한 값**이다 — 그림은 그만큼 줄어든다 */
|
|
90
|
+
height?: number | string;
|
|
91
|
+
/** 점을 눌렀을 때 */
|
|
92
|
+
onPointClick?: (point: SLineChartPoint) => void;
|
|
93
|
+
/**
|
|
94
|
+
* 툴팁의 값 아래에 덧붙일 내용. 짚은 항목을 받아 그린다 — 계열 값만으로 모자란 맥락
|
|
95
|
+
* (합계, 전월 대비 등)을 적는다. 툴팁은 누를 수 없으므로 버튼·링크는 넣지 않는다
|
|
96
|
+
*/
|
|
97
|
+
tooltipFooter?: (category: SLineChartTooltipCategory) => ReactNode;
|
|
98
|
+
className?: string;
|
|
99
|
+
style?: CSSProperties;
|
|
100
|
+
}
|
|
101
|
+
/**
|
|
102
|
+
* SLineChart — 꺾은선 그래프.
|
|
103
|
+
*
|
|
104
|
+
* 항목의 순서에 뜻이 있을 때(기간별 추이) 쓴다. 순서가 없는 항목끼리 크기를 견주는
|
|
105
|
+
* 것이 목적이면 `SBarChart` 가 맞다 — 선은 "이어진다" 는 뜻을 덤으로 얹는다.
|
|
106
|
+
*
|
|
107
|
+
* 값 축은 막대 차트와 마찬가지로 **항상 0 을 포함한다.** 0 을 잘라 확대하면 같은 데이터가
|
|
108
|
+
* 훨씬 가파른 변화로 보인다.
|
|
109
|
+
*/
|
|
110
|
+
export declare const SLineChart: import("react").ForwardRefExoticComponent<SLineChartProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { SLineChart, type SLineChartProps, type SLineChartSeries, type SLineChartPoint, type SLineChartTooltipCategory, type SLineChartCurve, type SLineChartPalette, type SLineChartColor, type SLineChartLegendPosition, } from './SLineChart';
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* SLineChart 의 치수·색 상수와 선·영역 경로 계산.
|
|
3
|
+
*
|
|
4
|
+
* 선·점 고유의 값은 `chart.line.*` 토큰이 정한다. 두 차트가 공유하는 것
|
|
5
|
+
* (눈금·격자·툴팁·범례·팔레트·값 라벨)은 새로 정하지 않고 바 차트와 `lib/chart` 에서
|
|
6
|
+
* 그대로 가져온다 — 같은 데이터를 막대에서 선으로 바꿨을 때 눈금이 어긋나면 두 차트를
|
|
7
|
+
* 견줄 수 없다. 단 항목 축 양끝 여백(`AXIS_EDGE_PADDING`)은 쓰지 않는다 — 선은
|
|
8
|
+
* 첫·마지막 점이 그림 양끝에 선다.
|
|
9
|
+
*
|
|
10
|
+
* **점의 치수는 토큰을 `var()` 로 넘기지 못하고 숫자로 베껴 둔다.** 점 자리가 툴팁이
|
|
11
|
+
* 비켜설 거리·값 라벨의 높이·스크롤 컨테이너의 여유 폭을 정하는 데 쓰여, 그리기 전에
|
|
12
|
+
* JS 가 그 수를 알아야 하기 때문이다. 막대의 `BAR_RADIUS` 와 같은 규칙으로, 각 상수에
|
|
13
|
+
* 어느 토큰을 베꼈는지 적어 둔다. 색·불투명도처럼 그리기만 하는 것은 토큰을 직접 참조한다.
|
|
14
|
+
*
|
|
15
|
+
* **토큰 이름이 `bar` 로 시작하는 것을 그대로 쓰는 자리가 남아 있다** — 짚은 항목의
|
|
16
|
+
* 바탕(`--cmp-chart-barContainer-*`)이 그렇다. 이름만 막대 것이고 뜻은 "짚은 항목의
|
|
17
|
+
* 바탕" 이라, 선 차트에서 값을 따로 정하면 같은 자리가 차트마다 달라진다.
|
|
18
|
+
*
|
|
19
|
+
* 값 라벨의 색·타이포는 `chart.dataLabel.*` 로 막대 밖으로 나와 이제 공용 토큰이다.
|
|
20
|
+
*/
|
|
21
|
+
/** 선 두께 — 토큰 `chart.line.width`. SVG 표현 속성은 `var()` 를 못 풀어 `style` 로 넘긴다. */
|
|
22
|
+
export declare const LINE_WIDTH = "var(--cmp-chart-line-width)";
|
|
23
|
+
/**
|
|
24
|
+
* 선의 불투명도 — 토큰 `chart.line.opacity`.
|
|
25
|
+
*
|
|
26
|
+
* 선은 한 겹 물러나 있고 점이 앞에 선다. 차트 공용 기본값(`chart.opacity.default`)이
|
|
27
|
+
* "라인 제외" 라고 못박은 것도 이 때문이다 — 선만 다른 값을 쓴다. 짚었을 때도 그대로다:
|
|
28
|
+
* 선이 진해지면 굵기 탓에 짚지 않은 이웃 계열까지 덮는다.
|
|
29
|
+
*/
|
|
30
|
+
export declare const LINE_OPACITY = "var(--cmp-chart-line-opacity)";
|
|
31
|
+
/**
|
|
32
|
+
* 점선 패턴(SVG `stroke-dasharray`, px) — dash 11·gap 11.
|
|
33
|
+
*
|
|
34
|
+
* `chart.line.*` 에 점선 토큰이 없어 시안 SVG 실측값을 그대로 옮긴다(선 두께 4px 기준
|
|
35
|
+
* dash:gap = 1:1). 토큰이 아니므로 두께가 바뀌면 이 값도 함께 검토해야 한다.
|
|
36
|
+
*/
|
|
37
|
+
export declare const LINE_DASH = "11 11";
|
|
38
|
+
/** 점의 반지름(px) — 토큰 `chart.line.point.size.default`(지름 10)의 절반. */
|
|
39
|
+
export declare const POINT_RADIUS = 5;
|
|
40
|
+
/** 짚은 항목의 점 — 토큰 `chart.line.point.size.hover`(지름 12)의 절반. 색은 그대로고 커지기만 한다. */
|
|
41
|
+
export declare const POINT_HOVER_RADIUS = 6;
|
|
42
|
+
/**
|
|
43
|
+
* 짚은 점을 감싸는 바탕 원의 반지름(px) — 토큰 `chart.line.point.size.bg`(지름 24)의 절반.
|
|
44
|
+
*
|
|
45
|
+
* 계열 색을 옅게 깐 원이다(`chart.line.point.opacity.bg`). 점 둘레를 비우는 것이 아니라
|
|
46
|
+
* **점보다 넓은 같은 색 자리**를 만들어, 계열이 여럿이어도 어느 선의 점을 짚었는지가 색으로 읽힌다.
|
|
47
|
+
*/
|
|
48
|
+
export declare const POINT_HALO_RADIUS = 12;
|
|
49
|
+
export declare const POINT_HALO_OPACITY = "var(--cmp-chart-line-point-opacity-bg)";
|
|
50
|
+
/**
|
|
51
|
+
* 짚은 점이 실제로 차지하는 반지름 — 바탕 원까지다. 툴팁이 이만큼 비켜서고,
|
|
52
|
+
* 양끝 점이 잘리지 않게 스크롤 컨테이너도 이만큼 넓어진다.
|
|
53
|
+
*/
|
|
54
|
+
export declare const POINT_HOVER_EXTENT = 12;
|
|
55
|
+
/**
|
|
56
|
+
* 항목 하나가 가져야 할 최소 폭(px).
|
|
57
|
+
*
|
|
58
|
+
* 막대 차트의 최소 band(여백 8 + 막대 24 + 여백 8)와 같은 값이다 — 같은 데이터에서
|
|
59
|
+
* 두 차트의 스크롤 시점이 같아야 한다. 이보다 좁아지면 점이 서로 붙고 항목 이름이
|
|
60
|
+
* 겹치므로, 좁히는 대신 가로로 스크롤한다.
|
|
61
|
+
*/
|
|
62
|
+
export declare const BAND_MIN = 40;
|
|
63
|
+
/** 점과 값 라벨 사이 간격(px) — 토큰 `chart.line.point.gap`. 막대(6)와 달리 선은 4 다. */
|
|
64
|
+
export declare const VALUE_LABEL_GAP = 4;
|
|
65
|
+
/**
|
|
66
|
+
* 영역 채움의 불투명도 — 선 바로 아래가 가장 진하고 바닥으로 갈수록 옅어진다.
|
|
67
|
+
*
|
|
68
|
+
* 선은 또렷하게 두고 영역만 물리는 값이다. 세로 그라데이션이라 채움이 바닥에서 거의
|
|
69
|
+
* 사라져, 계열이 여럿일 때 채움끼리 겹쳐 색이 탁해지는 것도 덜하다. 그래도 겹쳐 그리는
|
|
70
|
+
* 것 자체의 한계는 남으므로, 계열이 많으면 `area` 를 끄거나 `stacked` 로 쌓는다.
|
|
71
|
+
*
|
|
72
|
+
* 위·아래 값은 `chart.line.area.gradation.start|end` 가 정한다.
|
|
73
|
+
*/
|
|
74
|
+
export declare const AREA_OPACITY_TOP = "var(--cmp-chart-line-area-gradation-start)";
|
|
75
|
+
export declare const AREA_OPACITY_BOTTOM = "var(--cmp-chart-line-area-gradation-end)";
|
|
76
|
+
export declare const LINE_DATA_LABEL_COLOR = "var(--cmp-chart-dataLabel-color-default)";
|
|
77
|
+
/** 값 라벨의 타이포 — 짚은 항목만 굵고 크게 뜬다(막대 차트와 같은 규칙). */
|
|
78
|
+
export declare const LINE_DATA_LABEL_TYPO = "typo-body-sm-medium";
|
|
79
|
+
export declare const LINE_DATA_LABEL_TYPO_HOVER = "typo-body-md-bold";
|
|
80
|
+
/** 그림 좌표계의 한 점(px). */
|
|
81
|
+
export interface ChartPoint {
|
|
82
|
+
x: number;
|
|
83
|
+
y: number;
|
|
84
|
+
}
|
|
85
|
+
/**
|
|
86
|
+
* 이어진 점들을 지나는 선. 점이 하나뿐이면 그릴 선이 없다(점만 남는다).
|
|
87
|
+
*/
|
|
88
|
+
export declare function linePath(points: ChartPoint[], smooth: boolean): string;
|
|
89
|
+
/**
|
|
90
|
+
* 위 선과 아래 선 사이를 채우는 영역.
|
|
91
|
+
*
|
|
92
|
+
* 아래 선을 **역순으로** 이어 닫는다. 곡선일 때 아래 선도 같은 방식으로 휘어야 하므로
|
|
93
|
+
* 직선으로 질러가지 않고 다시 보간한다 — 안 그러면 채움이 곡선 아래로 삐져나온다.
|
|
94
|
+
*/
|
|
95
|
+
export declare function areaPath(top: ChartPoint[], bottom: ChartPoint[], smooth: boolean): string;
|
|
@@ -10,8 +10,23 @@
|
|
|
10
10
|
|------|------|---------|-------------|
|
|
11
11
|
| `value?` | `number` | `0` | 진행률 (0–100) |
|
|
12
12
|
| `type?` | `SLinearProgressType` | `'primary'` | 색상 타입 |
|
|
13
|
+
| `size?` | `SLinearProgressSize` | `'sm'` | 바 높이. xs 는 바 안에 퍼센트 텍스트를 넣지 않는다 |
|
|
13
14
|
| `indeterminate?` | `boolean` | `false` | 진행률 없이 무한 애니메이션 |
|
|
14
15
|
| `label?` | `string` | — | 하단 레이블 |
|
|
15
16
|
| `className?` | `string` | — | |
|
|
16
17
|
| `style?` | `CSSProperties` | — | |
|
|
17
18
|
|
|
19
|
+
## Types
|
|
20
|
+
|
|
21
|
+
### SLinearProgressType
|
|
22
|
+
|
|
23
|
+
```ts
|
|
24
|
+
export type SLinearProgressType = 'primary' | 'error' | 'complete';
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
### SLinearProgressSize
|
|
28
|
+
|
|
29
|
+
```ts
|
|
30
|
+
export type SLinearProgressSize = 'xs' | 'sm' | 'md';
|
|
31
|
+
```
|
|
32
|
+
|
|
@@ -1,10 +1,13 @@
|
|
|
1
1
|
import { type CSSProperties } from 'react';
|
|
2
2
|
export type SLinearProgressType = 'primary' | 'error' | 'complete';
|
|
3
|
+
export type SLinearProgressSize = 'xs' | 'sm' | 'md';
|
|
3
4
|
export interface SLinearProgressProps {
|
|
4
5
|
/** 진행률 (0–100) */
|
|
5
6
|
value?: number;
|
|
6
7
|
/** 색상 타입 */
|
|
7
8
|
type?: SLinearProgressType;
|
|
9
|
+
/** 바 높이. xs 는 바 안에 퍼센트 텍스트를 넣지 않는다 */
|
|
10
|
+
size?: SLinearProgressSize;
|
|
8
11
|
/** 진행률 없이 무한 애니메이션 */
|
|
9
12
|
indeterminate?: boolean;
|
|
10
13
|
/** 하단 레이블 */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { SLinearProgress, type SLinearProgressProps, type SLinearProgressType, } from './SLinearProgress';
|
|
1
|
+
export { SLinearProgress, type SLinearProgressProps, type SLinearProgressType, type SLinearProgressSize, } from './SLinearProgress';
|
|
@@ -9,8 +9,16 @@
|
|
|
9
9
|
| Prop | Type | Default | Description |
|
|
10
10
|
|------|------|---------|-------------|
|
|
11
11
|
| `children?` | `ReactNode` | — | 리스트 컨테이너 내부에 렌더링할 내용 |
|
|
12
|
-
| `
|
|
13
|
-
| `
|
|
12
|
+
| `gap?` | `boolean` | `false` | 리스트 아이템 사이 gap 토큰 적용 여부 |
|
|
13
|
+
| `padding?` | `SListPadding` | `'none'` | 컨테이너 안쪽 여백. 기본은 `none` — 목록이 담긴 면이 이미 여백을 쥔 경우가 많다. 목록이 배경 위에 직접 얹혀 스스로 여백을 쥐어야 할 때만 `default`. |
|
|
14
|
+
|
|
15
|
+
## Types
|
|
16
|
+
|
|
17
|
+
### SListPadding
|
|
18
|
+
|
|
19
|
+
```ts
|
|
20
|
+
export type SListPadding = 'default' | 'none';
|
|
21
|
+
```
|
|
14
22
|
|
|
15
23
|
## Dependencies
|
|
16
24
|
|
|
@@ -19,10 +27,15 @@
|
|
|
19
27
|
- [SDraggableList](../SDraggableList)
|
|
20
28
|
- [SExpansionList](../SExpansionList)
|
|
21
29
|
|
|
30
|
+
### Depends on
|
|
31
|
+
|
|
32
|
+
- [SDivider](../SDivider)
|
|
33
|
+
|
|
22
34
|
### Graph
|
|
23
35
|
|
|
24
36
|
```mermaid
|
|
25
37
|
graph TD;
|
|
38
|
+
SList --> SDivider
|
|
26
39
|
SDraggableList --> SList
|
|
27
40
|
SExpansionList --> SList
|
|
28
41
|
style SList fill:#f9f,stroke:#333,stroke-width:4px
|
|
@@ -1,10 +1,14 @@
|
|
|
1
1
|
import { type HTMLAttributes, type ReactNode } from 'react';
|
|
2
|
+
export type SListPadding = 'default' | 'none';
|
|
2
3
|
export interface SListProps extends HTMLAttributes<HTMLDivElement> {
|
|
3
4
|
/** 리스트 컨테이너 내부에 렌더링할 내용 */
|
|
4
5
|
children?: ReactNode;
|
|
5
6
|
/** 리스트 아이템 사이 gap 토큰 적용 여부 */
|
|
6
|
-
|
|
7
|
-
/**
|
|
8
|
-
|
|
7
|
+
gap?: boolean;
|
|
8
|
+
/**
|
|
9
|
+
* 컨테이너 안쪽 여백. 기본은 `none` — 목록이 담긴 면이 이미 여백을 쥔 경우가 많다.
|
|
10
|
+
* 목록이 배경 위에 직접 얹혀 스스로 여백을 쥐어야 할 때만 `default`.
|
|
11
|
+
*/
|
|
12
|
+
padding?: SListPadding;
|
|
9
13
|
}
|
|
10
14
|
export declare const SList: import("react").ForwardRefExoticComponent<SListProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { SList, type SListProps } from './SList';
|
|
1
|
+
export { SList, type SListPadding, type SListProps } from './SList';
|