sellmate-design-system-react 9.0.0-beta.0 → 9.0.0-beta.100
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/AGENTS.md +4263 -286
- package/README.md +126 -15
- package/bin/sellmate-ds.mjs +91 -59
- 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 +123 -0
- package/dist/components/SBarChart/SBarChart.d.ts +106 -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 +16 -4
- package/dist/components/SBarcodeInput/SBarcodeInput.d.ts +25 -3
- package/dist/components/SButton/README.md +76 -3
- package/dist/components/SButton/SButton.d.ts +29 -5
- package/dist/components/SButton/button.config.d.ts +22 -13
- package/dist/components/SButton/index.d.ts +1 -1
- 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 +52 -0
- package/dist/components/SChatInput/SChatInput.d.ts +127 -0
- package/dist/components/SChatInput/index.d.ts +1 -0
- package/dist/components/SChatMessage/README.md +87 -0
- package/dist/components/SChatMessage/SChatMessage.d.ts +135 -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 +11 -0
- package/dist/components/SCheckbox/SCheckbox.d.ts +9 -1
- 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 -11
- package/dist/components/SChipFilter/SChipFilter.d.ts +175 -59
- package/dist/components/SChipFilter/index.d.ts +1 -1
- package/dist/components/SChipInput/README.md +22 -3
- package/dist/components/SChipInput/SChipInput.d.ts +53 -3
- package/dist/components/SChipInput/index.d.ts +1 -1
- package/dist/components/SCircleProgress/README.md +15 -1
- package/dist/components/SCircleProgress/SCircleProgress.d.ts +16 -2
- 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 +63 -4
- package/dist/components/SDatePicker/SDatePicker.d.ts +84 -6
- package/dist/components/SDatePicker/index.d.ts +1 -1
- package/dist/components/SDateRangePicker/README.md +23 -4
- package/dist/components/SDateRangePicker/SDateRangePicker.d.ts +52 -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 +30 -1
- package/dist/components/SDropdownButton/SDropdownButton.d.ts +3 -1
- package/dist/components/SDropdownButton/index.d.ts +1 -1
- package/dist/components/SEditor/EditorBody.d.ts +48 -0
- package/dist/components/SEditor/EditorToolbar.d.ts +93 -0
- package/dist/components/SEditor/README.md +207 -0
- package/dist/components/SEditor/SEditor.d.ts +128 -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 +39 -2
- package/dist/components/SExpansionItem/SExpansionItem.d.ts +18 -2
- package/dist/components/SExpansionItem/index.d.ts +1 -1
- package/dist/components/SField/README.md +40 -4
- package/dist/components/SField/SField.d.ts +69 -6
- package/dist/components/SField/index.d.ts +1 -1
- package/dist/components/SFilePicker/README.md +20 -4
- package/dist/components/SFilePicker/SFilePicker.d.ts +26 -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 +34 -1
- package/dist/components/SGhostButton/SGhostButton.d.ts +22 -4
- package/dist/components/SGnb/README.md +109 -8
- package/dist/components/SGnb/SGnb.d.ts +112 -11
- package/dist/components/SGnb/gnb.config.d.ts +24 -5
- package/dist/components/SGnb/index.d.ts +1 -1
- package/dist/components/SGnbSystem/README.md +190 -0
- package/dist/components/SGnbSystem/SGnbSystem.d.ts +179 -0
- package/dist/components/SGnbSystem/gnbSystem.config.d.ts +124 -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 +27 -1
- package/dist/components/SIcon/SIcon.d.ts +2 -2
- package/dist/components/SIcon/icons.gen.d.ts +20 -1
- package/dist/components/SImage/README.md +66 -0
- package/dist/components/SImage/SImage.d.ts +44 -0
- package/dist/components/SImage/index.d.ts +1 -0
- package/dist/components/SInput/README.md +10 -4
- package/dist/components/SInput/SInput.d.ts +17 -5
- package/dist/components/SKeyValueTable/README.md +89 -0
- package/dist/components/SKeyValueTable/SKeyValueTable.d.ts +37 -3
- package/dist/components/SKeyValueTable/index.d.ts +1 -1
- package/dist/components/SLauncherListBox/README.md +82 -0
- package/dist/components/SLauncherListBox/SLauncherListBox.d.ts +80 -0
- package/dist/components/SLauncherListBox/index.d.ts +2 -0
- package/dist/components/SLauncherListBox/launcherListBox.config.d.ts +149 -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 +132 -0
- package/dist/components/SLineChart/SLineChart.d.ts +115 -0
- package/dist/components/SLineChart/index.d.ts +1 -0
- package/dist/components/SLineChart/lineChart.config.d.ts +94 -0
- package/dist/components/SLinearProgress/README.md +16 -1
- package/dist/components/SLinearProgress/SLinearProgress.d.ts +11 -2
- package/dist/components/SLinearProgress/index.d.ts +1 -1
- package/dist/components/SList/README.md +15 -3
- package/dist/components/SList/SList.d.ts +7 -5
- package/dist/components/SList/index.d.ts +1 -1
- package/dist/components/SListItem/README.md +43 -2
- package/dist/components/SListItem/SListItem.d.ts +12 -2
- 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 +12 -4
- 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 +43 -0
- package/dist/components/SLoginCard/index.d.ts +1 -0
- package/dist/components/SLogo/README.md +103 -0
- package/dist/components/SLogo/SLogo.d.ts +72 -0
- package/dist/components/SLogo/index.d.ts +2 -0
- package/dist/components/SLogo/logo.config.d.ts +29 -0
- package/dist/components/SLogo/logos.d.ts +16 -0
- package/dist/components/SMeatballButton/README.md +69 -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 +21 -8
- package/dist/components/SNumberInput/SNumberInput.d.ts +49 -7
- package/dist/components/SPage/README.md +107 -5
- package/dist/components/SPage/SPage.d.ts +50 -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 +34 -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 +27 -0
- package/dist/components/SRadioButton/SRadioButton.d.ts +17 -3
- package/dist/components/SRadioCard/README.md +81 -0
- package/dist/components/SRadioCard/SRadioCard.d.ts +34 -0
- package/dist/components/SRadioCard/SRadioCardGroup.d.ts +38 -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 +45 -20
- package/dist/components/SSectionHeaderCard/SSectionHeaderCard.d.ts +40 -14
- package/dist/components/SSectionHeaderCard/index.d.ts +1 -1
- package/dist/components/SSelect/README.md +70 -9
- package/dist/components/SSelect/SSelect.d.ts +159 -17
- package/dist/components/SSelect/index.d.ts +1 -1
- package/dist/components/SSelect/select.config.d.ts +51 -4
- package/dist/components/SSkeleton/README.md +67 -0
- package/dist/components/SSkeleton/SSkeleton.d.ts +43 -0
- package/dist/components/SSkeleton/index.d.ts +2 -0
- package/dist/components/SSkeleton/skeleton.config.d.ts +24 -0
- package/dist/components/SSlider/README.md +86 -0
- package/dist/components/SSlider/SSlider.d.ts +149 -0
- package/dist/components/SSlider/index.d.ts +1 -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/SStepper/stepper.config.d.ts +9 -3
- 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 +157 -20
- package/dist/components/STable/STable.d.ts +380 -47
- 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 +4 -10
- package/dist/components/STag/README.md +63 -0
- package/dist/components/STag/STag.d.ts +3 -1
- package/dist/components/STag/tag.config.d.ts +11 -10
- package/dist/components/STextLink/README.md +21 -1
- package/dist/components/STextLink/STextLink.d.ts +5 -1
- package/dist/components/STextarea/README.md +12 -5
- package/dist/components/STextarea/STextarea.d.ts +49 -6
- package/dist/components/STimePicker/README.md +20 -3
- package/dist/components/STimePicker/STimePicker.d.ts +37 -11
- package/dist/components/STimePicker/TimeListbox.d.ts +21 -0
- package/dist/components/STimePicker/timepicker.config.d.ts +10 -0
- package/dist/components/STimeRangePicker/README.md +33 -4
- package/dist/components/STimeRangePicker/STimeRangePicker.d.ts +40 -7
- package/dist/components/STimeline/README.md +41 -0
- package/dist/components/STimeline/STimeline.d.ts +27 -0
- package/dist/components/STimeline/index.d.ts +1 -0
- package/dist/components/SToast/README.md +25 -1
- package/dist/components/SToast/SToast.d.ts +2 -2
- package/dist/components/SToggle/README.md +9 -0
- package/dist/components/SToggle/SToggle.d.ts +4 -1
- package/dist/components/SToggle/index.d.ts +1 -1
- package/dist/components/STooltip/README.md +27 -1
- package/dist/components/STooltip/STooltip.d.ts +1 -1
- package/dist/components/STree/README.md +46 -4
- package/dist/components/STree/STree.d.ts +25 -7
- package/dist/components/STree/STree.examples.d.ts +2 -0
- package/dist/components/STree/index.d.ts +1 -1
- package/dist/components/STreeTable/README.md +49 -0
- package/dist/components/STreeTable/STreeTable.d.ts +70 -0
- package/dist/components/STreeTable/STreeTable.examples.d.ts +39 -0
- package/dist/components/STreeTable/index.d.ts +1 -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 +24511 -10545
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +27 -0
- package/dist/index.js +24419 -10550
- package/dist/index.js.map +1 -1
- package/dist/lib/autofill.d.ts +3 -5
- package/dist/lib/chart/cartesian.d.ts +54 -0
- package/dist/lib/chart/category-labels.d.ts +37 -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 +42 -0
- package/dist/lib/date.d.ts +11 -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/list-box-item.d.ts +16 -0
- package/dist/lib/mode-listbox.d.ts +10 -0
- package/dist/lib/overlay-scrollbar.d.ts +32 -0
- package/dist/lib/row-metrics.d.ts +61 -0
- package/dist/lib/row-motion.d.ts +56 -0
- package/dist/lib/scrollbar.d.ts +1 -2
- package/dist/lib/story-docs.d.ts +19 -3
- package/dist/lib/tree-row.d.ts +103 -0
- package/dist/lib/truncated-value-tooltip.d.ts +18 -0
- package/dist/llms-full.txt +9156 -896
- package/dist/llms.txt +4311 -303
- 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/CategoryManagePage.d.ts +1 -0
- package/dist/recipes/ConsultConsolePage.d.ts +1 -0
- package/dist/recipes/ExcelFilePopupPage.d.ts +5 -0
- package/dist/recipes/LoginPage.d.ts +6 -0
- package/dist/recipes/ProductBulkUploadPage.d.ts +1 -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/ProductOverlayPage.d.ts +1 -0
- package/dist/recipes/SalesDashboardPage.d.ts +1 -0
- package/dist/recipes/SettingsPage.d.ts +1 -0
- package/dist/recipes/StoreSetupPage.d.ts +1 -0
- package/dist/recipes/TransferOrderPopupPage.d.ts +2 -0
- package/dist/recipes/api.d.ts +220 -0
- package/dist/recipes/recipe-story.d.ts +33 -0
- package/dist/recipes/router.d.ts +9 -0
- package/dist/styles.css +4264 -362
- package/dist/theme.css +812 -64
- package/eslint/index.mjs +45 -31
- package/eslint/lib/class-names.mjs +23 -25
- package/eslint/lib/table-column.mjs +34 -8
- package/eslint/rules/component-group-gap.mjs +32 -30
- package/eslint/rules/divider-vertical-height.mjs +137 -0
- package/eslint/rules/field-width-grade.d.mts +41 -0
- package/eslint/rules/field-width-grade.mjs +311 -0
- package/eslint/rules/no-arbitrary-class.mjs +63 -20
- package/eslint/rules/no-off-scale-spacing.mjs +61 -41
- package/eslint/rules/no-raw-html-control.mjs +38 -36
- package/eslint/rules/prefer-typo-preset.mjs +23 -17
- package/eslint/rules/require-locale-number.mjs +14 -19
- package/eslint/rules/table-column-width.mjs +114 -0
- package/eslint/rules/table-numeric-align.mjs +14 -14
- package/eslint/scale.gen.mjs +6 -3
- package/package.json +27 -6
|
@@ -0,0 +1,149 @@
|
|
|
1
|
+
import { type CSSProperties, type ReactElement, type RefAttributes } from 'react';
|
|
2
|
+
import { type SFieldSize, type SFieldStatus, type SFieldLabelPosition } from '../SField';
|
|
3
|
+
import { type SIconName } from '../SIcon';
|
|
4
|
+
import { type STooltipProps } from '../STooltip';
|
|
5
|
+
import { type SColor } from '../../lib/color';
|
|
6
|
+
import { type Rule } from '../../lib/form';
|
|
7
|
+
import { type SFieldWidth } from '../../lib/field-width';
|
|
8
|
+
/** 단일 값은 `number`, 범위는 `[시작, 끝]` */
|
|
9
|
+
export type SSliderValue = number | [number, number];
|
|
10
|
+
/** 값 말풍선을 언제 보일지 */
|
|
11
|
+
export type SSliderShowValue = 'none' | 'drag' | 'always';
|
|
12
|
+
/** 눈금 하나 */
|
|
13
|
+
export interface SSliderMark {
|
|
14
|
+
/** 눈금 위치 값 (`min`~`max`) */
|
|
15
|
+
value: number;
|
|
16
|
+
/** 눈금 아래 라벨. 없으면 점만 찍힌다 */
|
|
17
|
+
label?: string;
|
|
18
|
+
}
|
|
19
|
+
export interface SSliderProps<V extends SSliderValue = number> {
|
|
20
|
+
/**
|
|
21
|
+
* 값 (제어). **`number` 면 단일, `[시작, 끝]` 이면 범위 슬라이더**가 된다 —
|
|
22
|
+
* 손잡이 개수와 `onValueChange` 가 돌려주는 모양이 이 값을 따른다.
|
|
23
|
+
* 범위는 두 손잡이가 서로를 넘어가지 않는다.
|
|
24
|
+
*/
|
|
25
|
+
value?: V;
|
|
26
|
+
/** 값 변경 (sdUpdate) — 드래그 중 매 step 마다 호출된다 */
|
|
27
|
+
onValueChange?: (value: V) => void;
|
|
28
|
+
/**
|
|
29
|
+
* 조작이 끝났을 때 한 번 호출된다 (포인터를 놓을 때, 키보드로 한 칸 움직일 때).
|
|
30
|
+
* 값을 서버에 보내거나 목록을 다시 불러오는 등 **매 step 마다 하면 안 되는 일**은 여기서 한다.
|
|
31
|
+
*/
|
|
32
|
+
onValueCommit?: (value: V) => void;
|
|
33
|
+
/** 최솟값 */
|
|
34
|
+
min?: number;
|
|
35
|
+
/** 최댓값 */
|
|
36
|
+
max?: number;
|
|
37
|
+
/** 한 칸 크기. 값은 `min` 에서 이 간격으로만 움직인다 */
|
|
38
|
+
step?: number;
|
|
39
|
+
/**
|
|
40
|
+
* 눈금. `true` 면 `step` 마다 점을 찍고, 배열이면 그 위치에만 찍는다(라벨을 함께 줄 수 있다).
|
|
41
|
+
* 고를 수 있는 값이 몇 개 안 될 때 어디서 멈추는지 보여 주는 용도다 —
|
|
42
|
+
* `step` 이 촘촘하면 `true` 대신 배열로 대표 위치만 준다.
|
|
43
|
+
*/
|
|
44
|
+
marks?: boolean | SSliderMark[];
|
|
45
|
+
/**
|
|
46
|
+
* 값 말풍선 표시 시점.
|
|
47
|
+
* - `drag` — 드래그·키보드 조작 중, 손잡이에 마우스를 올렸을 때만 보인다
|
|
48
|
+
* - `always` — 늘 보인다. 값을 숫자로 따로 보여 주지 않는 자리에서 쓴다
|
|
49
|
+
* - `none` — 보이지 않는다. 옆에 값을 따로 적어 둘 때 쓴다
|
|
50
|
+
*
|
|
51
|
+
* `none` 이 아니면 말풍선 자리만큼 위쪽 공간을 미리 잡아 두어, 나타날 때 레이아웃이 밀리지 않는다.
|
|
52
|
+
*/
|
|
53
|
+
showValue?: SSliderShowValue;
|
|
54
|
+
/** 말풍선·스크린리더에 읽히는 값 표기 (예: `v => \`${v}%\``) */
|
|
55
|
+
formatValue?: (value: number) => string;
|
|
56
|
+
/**
|
|
57
|
+
* 크기 — 다른 필드와 나란히 놓일 때 라벨과 높이를 맞추는 등급이다. 슬라이더 모양 자체는 같다.
|
|
58
|
+
*
|
|
59
|
+
* @nodemo SField 에서 내려오는 공통 필드 옵션이다 — 같은 데모를 컨트롤마다 복제하지 않고
|
|
60
|
+
* 대표 컨트롤 `SInput` 과 `SField` 에 한 번 둔다 (scripts/check-docs-coverage.mjs 머리말).
|
|
61
|
+
*/
|
|
62
|
+
size?: SFieldSize;
|
|
63
|
+
/** 유효성 규칙 — 조작이 끝날 때(`onValueCommit` 시점)와 SForm 제출 시 검증 */
|
|
64
|
+
rules?: Rule[];
|
|
65
|
+
/** 폼 연동용 name */
|
|
66
|
+
name?: string;
|
|
67
|
+
/**
|
|
68
|
+
* 필드 상태 ('default' | 'pass' | 'error')
|
|
69
|
+
*
|
|
70
|
+
* @nodemo SField 에서 내려오는 공통 필드 옵션이다 — 같은 데모를 컨트롤마다 복제하지 않고
|
|
71
|
+
* 대표 컨트롤 `SInput` 과 `SField` 에 한 번 둔다 (scripts/check-docs-coverage.mjs 머리말).
|
|
72
|
+
*/
|
|
73
|
+
status?: SFieldStatus;
|
|
74
|
+
/** 레이블 텍스트. 손잡이의 접근성 이름으로도 쓰인다 */
|
|
75
|
+
label?: string;
|
|
76
|
+
/**
|
|
77
|
+
* 레이블 위치 — `top` 이면 라벨이 컨트롤 위에 선다 (SField 로 그대로 넘어간다).
|
|
78
|
+
*
|
|
79
|
+
* @nodemo SField 에서 내려오는 공통 필드 옵션이다 — 같은 데모를 컨트롤마다 복제하지 않고
|
|
80
|
+
* 대표 컨트롤 `SInput` 과 `SField` 에 한 번 둔다 (scripts/check-docs-coverage.mjs 머리말).
|
|
81
|
+
*/
|
|
82
|
+
labelPosition?: SFieldLabelPosition;
|
|
83
|
+
/**
|
|
84
|
+
* 보조 레이블 — 레이블 오른쪽 같은 줄에 붙는다 (SField 로 그대로 넘어간다).
|
|
85
|
+
*
|
|
86
|
+
* @nodemo SField 에서 내려오는 공통 필드 옵션이다 — 같은 데모를 컨트롤마다 복제하지 않고
|
|
87
|
+
* 대표 컨트롤 `SInput` 과 `SField` 에 한 번 둔다 (scripts/check-docs-coverage.mjs 머리말).
|
|
88
|
+
*/
|
|
89
|
+
subLabel?: string;
|
|
90
|
+
/**
|
|
91
|
+
* 레이블 너비 (숫자=px)
|
|
92
|
+
*
|
|
93
|
+
* @nodemo SField 에서 내려오는 공통 필드 옵션이다 — 같은 데모를 컨트롤마다 복제하지 않고
|
|
94
|
+
* 대표 컨트롤 `SInput` 과 `SField` 에 한 번 둔다 (scripts/check-docs-coverage.mjs 머리말).
|
|
95
|
+
*/
|
|
96
|
+
labelWidth?: number | string;
|
|
97
|
+
/**
|
|
98
|
+
* 레이블 영역 아이콘
|
|
99
|
+
*
|
|
100
|
+
* @nodemo SField 에서 내려오는 공통 필드 옵션이다 — 같은 데모를 컨트롤마다 복제하지 않고
|
|
101
|
+
* 대표 컨트롤 `SInput` 과 `SField` 에 한 번 둔다 (scripts/check-docs-coverage.mjs 머리말).
|
|
102
|
+
*/
|
|
103
|
+
icon?: SIconName;
|
|
104
|
+
/**
|
|
105
|
+
* 레이블 영역 아이콘 색상
|
|
106
|
+
*
|
|
107
|
+
* @nodemo SField 에서 내려오는 공통 필드 옵션이다 — 같은 데모를 컨트롤마다 복제하지 않고
|
|
108
|
+
* 대표 컨트롤 `SInput` 과 `SField` 에 한 번 둔다 (scripts/check-docs-coverage.mjs 머리말).
|
|
109
|
+
*/
|
|
110
|
+
iconColor?: SColor;
|
|
111
|
+
/**
|
|
112
|
+
* 레이블 툴팁 텍스트
|
|
113
|
+
*
|
|
114
|
+
* @nodemo SField 에서 내려오는 공통 필드 옵션이다 — 같은 데모를 컨트롤마다 복제하지 않고
|
|
115
|
+
* 대표 컨트롤 `SInput` 과 `SField` 에 한 번 둔다 (scripts/check-docs-coverage.mjs 머리말).
|
|
116
|
+
*/
|
|
117
|
+
labelTooltip?: string;
|
|
118
|
+
/**
|
|
119
|
+
* 레이블 툴팁 상세 옵션
|
|
120
|
+
*
|
|
121
|
+
* @nodemo SField 에서 내려오는 공통 필드 옵션이다 — 같은 데모를 컨트롤마다 복제하지 않고
|
|
122
|
+
* 대표 컨트롤 `SInput` 과 `SField` 에 한 번 둔다 (scripts/check-docs-coverage.mjs 머리말).
|
|
123
|
+
*/
|
|
124
|
+
labelTooltipProps?: Partial<STooltipProps>;
|
|
125
|
+
/** 하단 힌트 */
|
|
126
|
+
hint?: string;
|
|
127
|
+
/** 에러 상태 */
|
|
128
|
+
error?: boolean;
|
|
129
|
+
/** 에러 메시지 */
|
|
130
|
+
errorMessage?: string;
|
|
131
|
+
/**
|
|
132
|
+
* 컨트롤 너비 — 폭 등급 · 숫자=px · CSS 길이. 기본은 부모 폭을 채운다.
|
|
133
|
+
*
|
|
134
|
+
* @nodemo SField 에서 내려오는 공통 필드 옵션이다 — 같은 데모를 컨트롤마다 복제하지 않고
|
|
135
|
+
* 대표 컨트롤 `SInput` 과 `SField` 에 한 번 둔다 (scripts/check-docs-coverage.mjs 머리말).
|
|
136
|
+
*/
|
|
137
|
+
width?: SFieldWidth;
|
|
138
|
+
/** 비활성 — 조작·포커스가 모두 막힌다 */
|
|
139
|
+
disabled?: boolean;
|
|
140
|
+
/** 읽기 전용 — 값은 그대로 보이고 키보드 포커스는 받지만 값이 바뀌지 않는다 */
|
|
141
|
+
readOnly?: boolean;
|
|
142
|
+
className?: string;
|
|
143
|
+
style?: CSSProperties;
|
|
144
|
+
}
|
|
145
|
+
/**
|
|
146
|
+
* SSlider — 끌어서 수치 하나 또는 범위를 고르는 필드 (Radix Slider 기반).
|
|
147
|
+
* SField 를 테두리 없이 두르고, 라벨·힌트·에러·SForm 검증은 다른 필드와 같게 동작한다.
|
|
148
|
+
*/
|
|
149
|
+
export declare const SSlider: <V extends SSliderValue = number>(props: SSliderProps<V> & RefAttributes<HTMLDivElement>) => ReactElement;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { SSlider, type SSliderProps, type SSliderValue, type SSliderShowValue, type SSliderMark, } from './SSlider';
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
| `defaultValue?` | `number` | — | 첫 패널 초기 크기. uncontrolled. 기본은 '%' 면 50, 'px' 면 240 |
|
|
13
13
|
| `unit?` | `SSplitterUnit` | `'%'` | 모델·limits 를 읽는 단위 |
|
|
14
14
|
| `limits?` | `readonly [number, number]` | — | [최소, 최대]. 생략하면 '%' 는 [10, 90], 'px' 는 [50, Infinity] |
|
|
15
|
-
| `
|
|
15
|
+
| `updateWhileDragging?` | `boolean` | `false` | 드래그하는 동안에도 `onValueChange` 를 계속 보낸다. 기본은 놓는 순간 한 번만 — 미리보기는 컴포넌트가 내부에서 그리므로, 값을 저장하는 쪽이 프레임마다 불릴 이유가 없다. 패널 크기에 맞춰 밖의 무언가를 실시간으로 다시 그려야 할 때만 켠다. |
|
|
16
16
|
| `vertical?` | `boolean` | `false` | true면 패널을 위아래로 쌓는다 (Quasar q-splitter 의 horizontal 에 해당) |
|
|
17
17
|
| `disabled?` | `boolean` | `false` | true면 크기를 바꿀 수 없다. 커서도 구분선도 나오지 않는다 |
|
|
18
18
|
| `dividerClassName?` | `string` | — | 구분선에 얹을 클래스 |
|
|
@@ -23,5 +23,20 @@
|
|
|
23
23
|
|
|
24
24
|
| Event | Type | Description |
|
|
25
25
|
|-------|------|-------------|
|
|
26
|
-
| `onValueChange` | `(value: number) => void` | 크기가 확정될 때.
|
|
26
|
+
| `onValueChange` | `(value: number) => void` | 크기가 확정될 때. `updateWhileDragging` 이 아니면 드래그를 놓는 순간 한 번만 온다 |
|
|
27
|
+
|
|
28
|
+
## Types
|
|
29
|
+
|
|
30
|
+
### SSplitterUnit
|
|
31
|
+
|
|
32
|
+
```ts
|
|
33
|
+
/** 모델·limits 를 읽는 단위. Quasar QSplitter 의 `unit` 과 같다. */
|
|
34
|
+
export type SSplitterUnit = (typeof SSPLITTER_UNITS)[number];
|
|
35
|
+
```
|
|
36
|
+
|
|
37
|
+
### SSPLITTER_UNITS
|
|
38
|
+
|
|
39
|
+
```ts
|
|
40
|
+
export const SSPLITTER_UNITS = ['%', 'px'] as const;
|
|
41
|
+
```
|
|
27
42
|
|
|
@@ -7,14 +7,18 @@ export interface SSplitterProps extends Omit<HTMLAttributes<HTMLDivElement>, 'de
|
|
|
7
7
|
value?: number;
|
|
8
8
|
/** 첫 패널 초기 크기. uncontrolled. 기본은 '%' 면 50, 'px' 면 240 */
|
|
9
9
|
defaultValue?: number;
|
|
10
|
-
/** 크기가 확정될 때.
|
|
10
|
+
/** 크기가 확정될 때. `updateWhileDragging` 이 아니면 드래그를 놓는 순간 한 번만 온다 */
|
|
11
11
|
onValueChange?: (value: number) => void;
|
|
12
12
|
/** 모델·limits 를 읽는 단위 */
|
|
13
13
|
unit?: SSplitterUnit;
|
|
14
14
|
/** [최소, 최대]. 생략하면 '%' 는 [10, 90], 'px' 는 [50, Infinity] */
|
|
15
15
|
limits?: readonly [number, number];
|
|
16
|
-
/**
|
|
17
|
-
|
|
16
|
+
/**
|
|
17
|
+
* 드래그하는 동안에도 `onValueChange` 를 계속 보낸다. 기본은 놓는 순간 한 번만 —
|
|
18
|
+
* 미리보기는 컴포넌트가 내부에서 그리므로, 값을 저장하는 쪽이 프레임마다 불릴 이유가 없다.
|
|
19
|
+
* 패널 크기에 맞춰 밖의 무언가를 실시간으로 다시 그려야 할 때만 켠다.
|
|
20
|
+
*/
|
|
21
|
+
updateWhileDragging?: boolean;
|
|
18
22
|
/** true면 패널을 위아래로 쌓는다 (Quasar q-splitter 의 horizontal 에 해당) */
|
|
19
23
|
vertical?: boolean;
|
|
20
24
|
/** true면 크기를 바꿀 수 없다. 커서도 구분선도 나오지 않는다 */
|
|
@@ -30,6 +30,32 @@
|
|
|
30
30
|
| `showItemTooltip` | `() => void` | error 아이템 중 첫 번째에 툴팁을 연다. error 아이템이 없으면 아무 일도 일어나지 않는다. |
|
|
31
31
|
| `hideItemTooltip` | `() => void` | 열려있는 커스텀 툴팁을 닫는다. 활성 단계(value prop)가 바뀌면 별도 호출 없이도 자동으로 닫힌다. |
|
|
32
32
|
|
|
33
|
+
## Types
|
|
34
|
+
|
|
35
|
+
### SStepperItem
|
|
36
|
+
|
|
37
|
+
```ts
|
|
38
|
+
export type SStepperItem = {
|
|
39
|
+
label: string;
|
|
40
|
+
value?: string;
|
|
41
|
+
group?: string;
|
|
42
|
+
completed?: boolean;
|
|
43
|
+
error?: boolean;
|
|
44
|
+
};
|
|
45
|
+
```
|
|
46
|
+
|
|
47
|
+
### SStepperSize
|
|
48
|
+
|
|
49
|
+
```ts
|
|
50
|
+
export type SStepperSize = (typeof STEPPER_SIZES)[number];
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
### STEPPER_SIZES
|
|
54
|
+
|
|
55
|
+
```ts
|
|
56
|
+
export const STEPPER_SIZES = ['sm', 'lg'] as const;
|
|
57
|
+
```
|
|
58
|
+
|
|
33
59
|
## Dependencies
|
|
34
60
|
|
|
35
61
|
### Depends on
|
|
@@ -9,10 +9,14 @@ export type SStepperItem = {
|
|
|
9
9
|
};
|
|
10
10
|
export declare const STEPPER_SIZE_CONFIG: Record<SStepperSize, {
|
|
11
11
|
sequenceSize: string;
|
|
12
|
+
/** 루트에 거는 글자 크기 — 시퀀스 배지와 typoActive 가 없는 진행 중 타이틀이 상속한다 */
|
|
12
13
|
fontSize: string;
|
|
13
14
|
lineHeight: string;
|
|
15
|
+
/** 기본·완료 타이틀 타이포 (stepper.<size>.typography.default) */
|
|
16
|
+
typoDefault: string;
|
|
17
|
+
/** 진행 중 타이틀 타이포 (stepper.<size>.typography.active). null 이면 fontWeightActive 로 그린다 */
|
|
18
|
+
typoActive: string | null;
|
|
14
19
|
fontWeightActive: number;
|
|
15
|
-
fontWeightDefault: number;
|
|
16
20
|
}>;
|
|
17
21
|
export declare const STEPPER_LAYOUT: {
|
|
18
22
|
containerGap: string;
|
|
@@ -52,14 +56,15 @@ export declare const STEPPER_HORIZONTAL_COMPLETED_COLORS: {
|
|
|
52
56
|
text: string;
|
|
53
57
|
};
|
|
54
58
|
export declare const STEPPER_VERTICAL_LAYOUT: {
|
|
59
|
+
/** 세로형 폭. 대응 토큰이 없어 디자인 값을 그대로 쓴다(stepper.vertical 에 width 가 없음). */
|
|
55
60
|
width: string;
|
|
56
61
|
itemGap: string;
|
|
57
62
|
itemPaddingX: string;
|
|
58
63
|
itemPaddingY: string;
|
|
59
64
|
titlePaddingTop: string;
|
|
60
65
|
titlePaddingBottom: string;
|
|
61
|
-
|
|
62
|
-
|
|
66
|
+
/** 구간 제목 타이포 — stepper.vertical.title.typography (= heading.xxs) */
|
|
67
|
+
titleTypo: string;
|
|
63
68
|
accentStripeWidth: string;
|
|
64
69
|
accentStripeColor: string;
|
|
65
70
|
};
|
|
@@ -69,6 +74,7 @@ export declare const STEPPER_VERTICAL_COLORS: {
|
|
|
69
74
|
hover: string;
|
|
70
75
|
selected: string;
|
|
71
76
|
};
|
|
77
|
+
titleBg: string;
|
|
72
78
|
titleText: string;
|
|
73
79
|
textDefault: string;
|
|
74
80
|
textCompleted: string;
|
|
@@ -11,7 +11,6 @@
|
|
|
11
11
|
| `value?` | `boolean` | `false` | on/off 상태 |
|
|
12
12
|
| `leftLabel?` | `string` | — | 스위치 좌측 라벨 |
|
|
13
13
|
| `rightLabel?` | `string` | — | 스위치 우측 라벨 |
|
|
14
|
-
| `label?` | `string` | — | |
|
|
15
14
|
| `disabled?` | `boolean` | `false` | 비활성 |
|
|
16
15
|
| `className?` | `string` | — | |
|
|
17
16
|
| `style?` | `CSSProperties` | — | |
|
|
@@ -22,3 +21,16 @@
|
|
|
22
21
|
|-------|------|-------------|
|
|
23
22
|
| `onValueChange` | `(value: boolean) => void` | 변경 (sdUpdate) |
|
|
24
23
|
|
|
24
|
+
## Dependencies
|
|
25
|
+
|
|
26
|
+
### Used by
|
|
27
|
+
|
|
28
|
+
- [SKeyValueTable](../SKeyValueTable)
|
|
29
|
+
|
|
30
|
+
### Graph
|
|
31
|
+
|
|
32
|
+
```mermaid
|
|
33
|
+
graph TD;
|
|
34
|
+
SKeyValueTable --> SSwitch
|
|
35
|
+
style SSwitch fill:#f9f,stroke:#333,stroke-width:4px
|
|
36
|
+
```
|
|
@@ -6,8 +6,6 @@ export interface SSwitchProps {
|
|
|
6
6
|
leftLabel?: string;
|
|
7
7
|
/** 스위치 우측 라벨 */
|
|
8
8
|
rightLabel?: string;
|
|
9
|
-
/** @deprecated `rightLabel` 사용. 우측 라벨(하위호환) */
|
|
10
|
-
label?: string;
|
|
11
9
|
/** 비활성 */
|
|
12
10
|
disabled?: boolean;
|
|
13
11
|
/** 변경 (sdUpdate) */
|
|
@@ -16,4 +14,4 @@ export interface SSwitchProps {
|
|
|
16
14
|
style?: CSSProperties;
|
|
17
15
|
}
|
|
18
16
|
/** SSwitch — sd-switch 포팅 (Radix SSwitch). 32×20 트랙, 16 노브. 좌/우 라벨 지원. */
|
|
19
|
-
export declare function SSwitch({ value, leftLabel, rightLabel,
|
|
17
|
+
export declare function SSwitch({ value, leftLabel, rightLabel, disabled, onValueChange, className, style, }: SSwitchProps): import("react").JSX.Element;
|
|
@@ -0,0 +1,246 @@
|
|
|
1
|
+
# SSystemActionButton
|
|
2
|
+
|
|
3
|
+
> 자동 생성 문서 — `npm run docs:gen`. 소스: 각 컴포넌트의 Props/Handle 인터페이스 + import 의존성.
|
|
4
|
+
|
|
5
|
+
### SSystemActionButtonAccount
|
|
6
|
+
|
|
7
|
+
#### Props
|
|
8
|
+
|
|
9
|
+
| Prop | Type | Default | Description |
|
|
10
|
+
|------|------|---------|-------------|
|
|
11
|
+
| `type` | `'account'` | — | 계정 행 |
|
|
12
|
+
| `label?` | `string` | — | 라벨 텍스트 |
|
|
13
|
+
| `option` | `SSystemActionButtonAccountOption` | — | 누르면 뜨는 계정 리스트박스. **필수다** — 계정 행은 늘 이 패널의 트리거이고, 눌러도 아무것도 뜨지 않는 계정 행은 없다. 아이콘은 `user` 로 고정이라 여기서 받지 않는다. |
|
|
14
|
+
|
|
15
|
+
### SSystemActionButtonBase
|
|
16
|
+
|
|
17
|
+
#### Props
|
|
18
|
+
|
|
19
|
+
| Prop | Type | Default | Description |
|
|
20
|
+
|------|------|---------|-------------|
|
|
21
|
+
| `color?` | `SSystemActionButtonColor` | — | 색상(놓이는 표면). light = 흰 면, dark = 오션블루 면, darker = 네이비 면. 기본 `'light'` |
|
|
22
|
+
| `disabled?` | `boolean` | — | 비활성 여부. 기본 `false` |
|
|
23
|
+
|
|
24
|
+
### SSystemActionButton
|
|
25
|
+
|
|
26
|
+
#### Props
|
|
27
|
+
|
|
28
|
+
| Prop | Type | Default | Description |
|
|
29
|
+
|------|------|---------|-------------|
|
|
30
|
+
| `type` | `'account' \| 'select' \| 'switch' \| 'subSelect' \| 'status'` | — | 계정 행 |
|
|
31
|
+
| `label?` | `string` | — | 라벨 텍스트 |
|
|
32
|
+
| `option?` | `<union 5종>` | — | 누르면 뜨는 계정 리스트박스. **필수다** — 계정 행은 늘 이 패널의 트리거이고, 눌러도 아무것도 뜨지 않는 계정 행은 없다. 아이콘은 `user` 로 고정이라 여기서 받지 않는다. |
|
|
33
|
+
|
|
34
|
+
### SSystemActionButtonSelect
|
|
35
|
+
|
|
36
|
+
#### Props
|
|
37
|
+
|
|
38
|
+
| Prop | Type | Default | Description |
|
|
39
|
+
|------|------|---------|-------------|
|
|
40
|
+
| `type` | `'select'` | — | 화살표만 붙는 행 |
|
|
41
|
+
| `label?` | `string` | — | 라벨 텍스트 |
|
|
42
|
+
| `option?` | `SSystemActionButtonIconOption` | — | 선행 아이콘. 아이콘 없이 라벨만 두는 행이면 통째로 생략한다 |
|
|
43
|
+
|
|
44
|
+
### SSystemActionButtonStatus
|
|
45
|
+
|
|
46
|
+
#### Props
|
|
47
|
+
|
|
48
|
+
| Prop | Type | Default | Description |
|
|
49
|
+
|------|------|---------|-------------|
|
|
50
|
+
| `type` | `'status'` | — | 라벨 자리에 상태 태그가 들어가는 행 |
|
|
51
|
+
| `label?` | `never` | — | 태그가 라벨 자리를 차지하므로 받지 않는다 |
|
|
52
|
+
| `option` | `SSystemActionButtonStatusOption` | — | 상태 태그 + 고를 목록. **필수다** — 상태 행은 늘 그 상태를 바꾸는 메뉴의 트리거다. |
|
|
53
|
+
|
|
54
|
+
### SSystemActionButtonSubSelect
|
|
55
|
+
|
|
56
|
+
#### Props
|
|
57
|
+
|
|
58
|
+
| Prop | Type | Default | Description |
|
|
59
|
+
|------|------|---------|-------------|
|
|
60
|
+
| `type` | `'subSelect'` | — | 우측에 지금 선택된 값이 붙는 행 |
|
|
61
|
+
| `label?` | `string` | — | 라벨 텍스트 |
|
|
62
|
+
| `option` | `SSystemActionButtonSubSelectOption` | — | 선행 아이콘 + 우측 값 + 고를 목록 |
|
|
63
|
+
|
|
64
|
+
### SSystemActionButtonSwitch
|
|
65
|
+
|
|
66
|
+
#### Props
|
|
67
|
+
|
|
68
|
+
| Prop | Type | Default | Description |
|
|
69
|
+
|------|------|---------|-------------|
|
|
70
|
+
| `type` | `'switch'` | — | 우측에 보조 조작 문구가 붙는 행 |
|
|
71
|
+
| `label?` | `string` | — | 라벨 텍스트 |
|
|
72
|
+
| `option?` | `SSystemActionButtonTextOption` | — | 선행 아이콘 + 우측 액션 텍스트. 둘 다 두지 않으면 통째로 생략한다 |
|
|
73
|
+
|
|
74
|
+
### SSystemActionButtonText
|
|
75
|
+
|
|
76
|
+
#### Props
|
|
77
|
+
|
|
78
|
+
| Prop | Type | Default | Description |
|
|
79
|
+
|------|------|---------|-------------|
|
|
80
|
+
| `type` | `'switch' \| 'subSelect'` | — | 우측에 보조 조작 문구가 붙는 행 |
|
|
81
|
+
| `label?` | `string` | — | 라벨 텍스트 |
|
|
82
|
+
| `option?` | `SSystemActionButtonTextOption \| SSystemActionButtonSubSelectOption` | — | 선행 아이콘 + 우측 액션 텍스트. 둘 다 두지 않으면 통째로 생략한다 |
|
|
83
|
+
|
|
84
|
+
## Types
|
|
85
|
+
|
|
86
|
+
### SSystemActionButtonAccountOption
|
|
87
|
+
|
|
88
|
+
```ts
|
|
89
|
+
/**
|
|
90
|
+
* `account` 타입의 option — 행을 눌렀을 때 뜨는 계정 리스트박스.
|
|
91
|
+
* 내용(이메일·이름·권한·행들)은 `SAccountListBox` 와 같다.
|
|
92
|
+
*
|
|
93
|
+
* **뜨는 자리는 받지 않는다.** 계정 행이 놓인 자리가 정한다 — 판이면 행 위로 · 왼쪽 끝에 맞춰,
|
|
94
|
+
* 전폭 상단바면 행 아래로 · 오른쪽 끝에 맞춰 펼친다(시안). 화면마다 고를 값이 아니라,
|
|
95
|
+
* prop 으로 열면 같은 계정 행이 앱마다 다른 방향으로 뜬다.
|
|
96
|
+
*/
|
|
97
|
+
export interface SSystemActionButtonAccountOption extends SAccountListBoxContent {
|
|
98
|
+
/**
|
|
99
|
+
* 리스트박스 열림 상태를 밖에서 쥔다(controlled). 주지 않으면 버튼이 스스로 여닫는다.
|
|
100
|
+
* 행을 담은 쪽이 닫아야 하는 자리가 있어 열어 둔 통로다 — 리스트박스는 SPortal 로 떠 있어
|
|
101
|
+
* 트리거가 화면에서 빠져도(GNB 를 접으면 메뉴 컬럼이 미끄러져 나간다) 따라 사라지지 않는다.
|
|
102
|
+
*/
|
|
103
|
+
open?: boolean;
|
|
104
|
+
/** 리스트박스 열림/닫힘 변경 */
|
|
105
|
+
onOpenChange?: (open: boolean) => void;
|
|
106
|
+
}
|
|
107
|
+
```
|
|
108
|
+
|
|
109
|
+
### SSystemActionButtonColor
|
|
110
|
+
|
|
111
|
+
```ts
|
|
112
|
+
export type SSystemActionButtonColor = (typeof SYSTEM_ACTION_BUTTON_COLORS)[number];
|
|
113
|
+
```
|
|
114
|
+
|
|
115
|
+
### SSystemActionButtonIconOption
|
|
116
|
+
|
|
117
|
+
```ts
|
|
118
|
+
/** 선행 아이콘만 받는 타입(`select`)의 option */
|
|
119
|
+
export interface SSystemActionButtonIconOption {
|
|
120
|
+
/** 선행 아이콘명. 주지 않으면 아이콘 프레임 없이 라벨부터 시작한다 */
|
|
121
|
+
icon?: SIconName;
|
|
122
|
+
}
|
|
123
|
+
```
|
|
124
|
+
|
|
125
|
+
### SSystemActionButtonStatusOption
|
|
126
|
+
|
|
127
|
+
```ts
|
|
128
|
+
/**
|
|
129
|
+
* `status` 타입의 option — 라벨 자리에 들어가는 상태 태그 + 고를 목록.
|
|
130
|
+
*
|
|
131
|
+
* `options` 는 **필수다** — 상태 행은 늘 그 상태를 바꾸는 메뉴의 트리거이고, 지금 상태(`value`)에
|
|
132
|
+
* 해당하는 칸의 색·이름이 곧 태그가 된다. 보여주기만 하는 상태 줄이 필요하면 이 버튼이 아니라
|
|
133
|
+
* `STag` 를 쓴다.
|
|
134
|
+
*/
|
|
135
|
+
export interface SSystemActionButtonStatusOption {
|
|
136
|
+
/** 지금 상태. `options` 에서 같은 `value` 를 찾아 그 색·이름으로 태그를 그린다 */
|
|
137
|
+
value?: string;
|
|
138
|
+
/** 고를 수 있는 상태. **필수다** — 이 목록이 행 오른쪽으로 펼쳐진다 */
|
|
139
|
+
options: SSystemActionButtonStatusMenuOption[];
|
|
140
|
+
/** 메뉴에서 상태를 고름. 고르면 메뉴가 닫힌다 */
|
|
141
|
+
onChange?: (value: string) => void;
|
|
142
|
+
}
|
|
143
|
+
```
|
|
144
|
+
|
|
145
|
+
### SSystemActionButtonSubSelectOption
|
|
146
|
+
|
|
147
|
+
```ts
|
|
148
|
+
/**
|
|
149
|
+
* `subSelect` 타입의 option — 지금 값 + 고를 목록.
|
|
150
|
+
*
|
|
151
|
+
* `options` 는 **필수다** — `subSelect` 는 "지금 값이 적혀 있고 눌러서 바꾸는 행"이라, 눌러도
|
|
152
|
+
* 아무것도 뜨지 않으면 그것은 `select`(눌러 들어가는 행)이지 `subSelect` 가 아니다.
|
|
153
|
+
*/
|
|
154
|
+
export interface SSystemActionButtonSubSelectOption extends SSystemActionButtonIconOption {
|
|
155
|
+
/**
|
|
156
|
+
* 선행 아이콘. `select` · `switch` 와 달리 **필수다** — 우측이 지금 값에 쓰이는 행이라
|
|
157
|
+
* 라벨 왼쪽까지 비면 무엇에 대한 값인지 가리키는 것이 라벨 글자 하나뿐이 된다.
|
|
158
|
+
*/
|
|
159
|
+
icon: SIconName;
|
|
160
|
+
/**
|
|
161
|
+
* 지금 값. `options` 에서 같은 `value` 를 찾아 우측에 그 `label` 로 적는다
|
|
162
|
+
* (못 찾으면 `value` 가 그대로 남는다).
|
|
163
|
+
*/
|
|
164
|
+
value?: string;
|
|
165
|
+
/** 고를 수 있는 값. **필수다** — 이 목록이 행 오른쪽으로 펼쳐진다 */
|
|
166
|
+
options: SSystemActionButtonMenuOption[];
|
|
167
|
+
/** 메뉴에서 값을 고름. 고르면 메뉴가 닫힌다 */
|
|
168
|
+
onChange?: (value: string) => void;
|
|
169
|
+
}
|
|
170
|
+
```
|
|
171
|
+
|
|
172
|
+
### SSystemActionButtonTextOption
|
|
173
|
+
|
|
174
|
+
```ts
|
|
175
|
+
/** 우측 액션 텍스트까지 받는 타입(`switch`)의 option */
|
|
176
|
+
export interface SSystemActionButtonTextOption extends SSystemActionButtonIconOption {
|
|
177
|
+
/** 우측 액션 텍스트 */
|
|
178
|
+
text?: string;
|
|
179
|
+
}
|
|
180
|
+
```
|
|
181
|
+
|
|
182
|
+
### SYSTEM_ACTION_BUTTON_COLORS
|
|
183
|
+
|
|
184
|
+
```ts
|
|
185
|
+
/**
|
|
186
|
+
* SSystemActionButton 설정.
|
|
187
|
+
*
|
|
188
|
+
* 토큰은 GNB system 패널 한 벌(`--cmp-gnb-system-*`)을 그대로 쓴다.
|
|
189
|
+
* 행 공통(높이·라운드·아이콘 프레임·라벨) → --cmp-gnb-system-item-*
|
|
190
|
+
* 색(color 축) light / dark / darker → --cmp-gnb-system-item-<color>-*
|
|
191
|
+
* 우측 액션(패딩·간격·아이콘·텍스트색) → --cmp-gnb-system-actionButton-*
|
|
192
|
+
*
|
|
193
|
+
* 타이포그래피는 CSS 변수가 아니라 `.typo-*` 프리셋으로 나온다.
|
|
194
|
+
* item.label → typo-body-sm-semibold (12/600/20)
|
|
195
|
+
* actionButton.switch → typo-field-sm-default (12/400/20)
|
|
196
|
+
* actionButton.selectData → typo-control-xs-medium (12/500/20)
|
|
197
|
+
*/
|
|
198
|
+
|
|
199
|
+
/** 색상(표면). light = 흰 면, dark = 오션블루 면, darker = 네이비 면 */
|
|
200
|
+
export const SYSTEM_ACTION_BUTTON_COLORS = ['light', 'dark', 'darker'] as const;
|
|
201
|
+
```
|
|
202
|
+
|
|
203
|
+
### SSystemActionButtonStatusMenuOption
|
|
204
|
+
|
|
205
|
+
```ts
|
|
206
|
+
/** 상태 메뉴의 한 칸 — 점과 글자가 그 상태의 색으로 함께 물든다 */
|
|
207
|
+
export interface SSystemActionButtonStatusMenuOption extends SSystemActionButtonMenuOption {
|
|
208
|
+
/** 상태 색. 기본 `'blue'` */
|
|
209
|
+
color?: STagColor;
|
|
210
|
+
}
|
|
211
|
+
```
|
|
212
|
+
|
|
213
|
+
### SSystemActionButtonMenuOption
|
|
214
|
+
|
|
215
|
+
```ts
|
|
216
|
+
/** 값 고르기 메뉴의 한 칸 */
|
|
217
|
+
export interface SSystemActionButtonMenuOption {
|
|
218
|
+
/** 값. `option.value` 와 맞춰 지금 값을 가린다 */
|
|
219
|
+
value: string;
|
|
220
|
+
/** 화면에 적히는 이름 */
|
|
221
|
+
label: string;
|
|
222
|
+
}
|
|
223
|
+
```
|
|
224
|
+
|
|
225
|
+
## Dependencies
|
|
226
|
+
|
|
227
|
+
### Used by
|
|
228
|
+
|
|
229
|
+
- [SGnbSystem](../SGnbSystem)
|
|
230
|
+
|
|
231
|
+
### Depends on
|
|
232
|
+
|
|
233
|
+
- [SAccountListBox](../SAccountListBox)
|
|
234
|
+
- [SIcon](../SIcon)
|
|
235
|
+
- [STag](../STag)
|
|
236
|
+
|
|
237
|
+
### Graph
|
|
238
|
+
|
|
239
|
+
```mermaid
|
|
240
|
+
graph TD;
|
|
241
|
+
SSystemActionButton --> SAccountListBox
|
|
242
|
+
SSystemActionButton --> SIcon
|
|
243
|
+
SSystemActionButton --> STag
|
|
244
|
+
SGnbSystem --> SSystemActionButton
|
|
245
|
+
style SSystemActionButton fill:#f9f,stroke:#333,stroke-width:4px
|
|
246
|
+
```
|