sellmate-design-system-react 9.0.0-beta.7 โ 9.0.0-beta.71
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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 +20593 -10374
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +22 -0
- package/dist/index.js +20517 -10374
- 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 +5904 -550
- package/dist/llms.txt +1918 -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 +3331 -258
- package/dist/theme.css +589 -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/prefer-typo-preset.mjs +1 -1
- package/eslint/rules/table-column-width.mjs +110 -0
- package/eslint/scale.gen.mjs +6 -3
- package/package.json +17 -3
|
@@ -3,9 +3,15 @@ export type IconRenderProps = {
|
|
|
3
3
|
size?: number | string;
|
|
4
4
|
} & SVGProps<SVGSVGElement>;
|
|
5
5
|
export declare const ICONS: {
|
|
6
|
+
readonly account: (p: IconRenderProps) => import("react").JSX.Element;
|
|
6
7
|
readonly add: (p: IconRenderProps) => import("react").JSX.Element;
|
|
7
8
|
readonly alert: (p: IconRenderProps) => import("react").JSX.Element;
|
|
9
|
+
readonly alignCenter: (p: IconRenderProps) => import("react").JSX.Element;
|
|
8
10
|
readonly alignKorean: (p: IconRenderProps) => import("react").JSX.Element;
|
|
11
|
+
readonly alignLeft: (p: IconRenderProps) => import("react").JSX.Element;
|
|
12
|
+
readonly alignMiddle: (p: IconRenderProps) => import("react").JSX.Element;
|
|
13
|
+
readonly alignRight: (p: IconRenderProps) => import("react").JSX.Element;
|
|
14
|
+
readonly alignTop: (p: IconRenderProps) => import("react").JSX.Element;
|
|
9
15
|
readonly archive: (p: IconRenderProps) => import("react").JSX.Element;
|
|
10
16
|
readonly arrowDown: (p: IconRenderProps) => import("react").JSX.Element;
|
|
11
17
|
readonly arrowLeft: (p: IconRenderProps) => import("react").JSX.Element;
|
|
@@ -13,8 +19,10 @@ export declare const ICONS: {
|
|
|
13
19
|
readonly arrowUp: (p: IconRenderProps) => import("react").JSX.Element;
|
|
14
20
|
readonly asterisk: (p: IconRenderProps) => import("react").JSX.Element;
|
|
15
21
|
readonly attachFile: (p: IconRenderProps) => import("react").JSX.Element;
|
|
22
|
+
readonly back: (p: IconRenderProps) => import("react").JSX.Element;
|
|
16
23
|
readonly barcode: (p: IconRenderProps) => import("react").JSX.Element;
|
|
17
24
|
readonly bell: (p: IconRenderProps) => import("react").JSX.Element;
|
|
25
|
+
readonly bellRinging: (p: IconRenderProps) => import("react").JSX.Element;
|
|
18
26
|
readonly bill: (p: IconRenderProps) => import("react").JSX.Element;
|
|
19
27
|
readonly board: (p: IconRenderProps) => import("react").JSX.Element;
|
|
20
28
|
readonly box: (p: IconRenderProps) => import("react").JSX.Element;
|
|
@@ -25,6 +33,7 @@ export declare const ICONS: {
|
|
|
25
33
|
readonly caretLeft: (p: IconRenderProps) => import("react").JSX.Element;
|
|
26
34
|
readonly caretRight: (p: IconRenderProps) => import("react").JSX.Element;
|
|
27
35
|
readonly caretUp: (p: IconRenderProps) => import("react").JSX.Element;
|
|
36
|
+
readonly chat: (p: IconRenderProps) => import("react").JSX.Element;
|
|
28
37
|
readonly check: (p: IconRenderProps) => import("react").JSX.Element;
|
|
29
38
|
readonly checkFill: (p: IconRenderProps) => import("react").JSX.Element;
|
|
30
39
|
readonly checkOutline: (p: IconRenderProps) => import("react").JSX.Element;
|
|
@@ -39,28 +48,36 @@ export declare const ICONS: {
|
|
|
39
48
|
readonly clockFill: (p: IconRenderProps) => import("react").JSX.Element;
|
|
40
49
|
readonly clockOutline: (p: IconRenderProps) => import("react").JSX.Element;
|
|
41
50
|
readonly close: (p: IconRenderProps) => import("react").JSX.Element;
|
|
51
|
+
readonly company: (p: IconRenderProps) => import("react").JSX.Element;
|
|
52
|
+
readonly connect: (p: IconRenderProps) => import("react").JSX.Element;
|
|
42
53
|
readonly copy: (p: IconRenderProps) => import("react").JSX.Element;
|
|
54
|
+
readonly counsel: (p: IconRenderProps) => import("react").JSX.Element;
|
|
43
55
|
readonly coupon: (p: IconRenderProps) => import("react").JSX.Element;
|
|
44
56
|
readonly dashboard: (p: IconRenderProps) => import("react").JSX.Element;
|
|
45
57
|
readonly date: (p: IconRenderProps) => import("react").JSX.Element;
|
|
46
|
-
readonly delete: (p: IconRenderProps) => import("react").JSX.Element;
|
|
47
58
|
readonly dot: (p: IconRenderProps) => import("react").JSX.Element;
|
|
48
59
|
readonly download: (p: IconRenderProps) => import("react").JSX.Element;
|
|
49
60
|
readonly drag: (p: IconRenderProps) => import("react").JSX.Element;
|
|
50
61
|
readonly edit: (p: IconRenderProps) => import("react").JSX.Element;
|
|
51
62
|
readonly etc: (p: IconRenderProps) => import("react").JSX.Element;
|
|
52
63
|
readonly event: (p: IconRenderProps) => import("react").JSX.Element;
|
|
64
|
+
readonly focus: (p: IconRenderProps) => import("react").JSX.Element;
|
|
53
65
|
readonly global: (p: IconRenderProps) => import("react").JSX.Element;
|
|
54
66
|
readonly helpFill: (p: IconRenderProps) => import("react").JSX.Element;
|
|
55
67
|
readonly helpOutline: (p: IconRenderProps) => import("react").JSX.Element;
|
|
56
68
|
readonly history: (p: IconRenderProps) => import("react").JSX.Element;
|
|
69
|
+
readonly home: (p: IconRenderProps) => import("react").JSX.Element;
|
|
57
70
|
readonly image: (p: IconRenderProps) => import("react").JSX.Element;
|
|
58
71
|
readonly inline: (p: IconRenderProps) => import("react").JSX.Element;
|
|
59
72
|
readonly launcher: (p: IconRenderProps) => import("react").JSX.Element;
|
|
60
73
|
readonly leftRight: (p: IconRenderProps) => import("react").JSX.Element;
|
|
61
74
|
readonly line: (p: IconRenderProps) => import("react").JSX.Element;
|
|
75
|
+
readonly link: (p: IconRenderProps) => import("react").JSX.Element;
|
|
62
76
|
readonly location: (p: IconRenderProps) => import("react").JSX.Element;
|
|
63
77
|
readonly logout: (p: IconRenderProps) => import("react").JSX.Element;
|
|
78
|
+
readonly megaphone: (p: IconRenderProps) => import("react").JSX.Element;
|
|
79
|
+
readonly messageClose: (p: IconRenderProps) => import("react").JSX.Element;
|
|
80
|
+
readonly messageOpen: (p: IconRenderProps) => import("react").JSX.Element;
|
|
64
81
|
readonly minus: (p: IconRenderProps) => import("react").JSX.Element;
|
|
65
82
|
readonly monitor: (p: IconRenderProps) => import("react").JSX.Element;
|
|
66
83
|
readonly new: (p: IconRenderProps) => import("react").JSX.Element;
|
|
@@ -76,6 +93,7 @@ export declare const ICONS: {
|
|
|
76
93
|
readonly reset: (p: IconRenderProps) => import("react").JSX.Element;
|
|
77
94
|
readonly robot: (p: IconRenderProps) => import("react").JSX.Element;
|
|
78
95
|
readonly row: (p: IconRenderProps) => import("react").JSX.Element;
|
|
96
|
+
readonly rowDense: (p: IconRenderProps) => import("react").JSX.Element;
|
|
79
97
|
readonly save: (p: IconRenderProps) => import("react").JSX.Element;
|
|
80
98
|
readonly search: (p: IconRenderProps) => import("react").JSX.Element;
|
|
81
99
|
readonly send: (p: IconRenderProps) => import("react").JSX.Element;
|
|
@@ -84,6 +102,7 @@ export declare const ICONS: {
|
|
|
84
102
|
readonly shield: (p: IconRenderProps) => import("react").JSX.Element;
|
|
85
103
|
readonly sidebar: (p: IconRenderProps) => import("react").JSX.Element;
|
|
86
104
|
readonly star: (p: IconRenderProps) => import("react").JSX.Element;
|
|
105
|
+
readonly stop: (p: IconRenderProps) => import("react").JSX.Element;
|
|
87
106
|
readonly store: (p: IconRenderProps) => import("react").JSX.Element;
|
|
88
107
|
readonly synchronize: (p: IconRenderProps) => import("react").JSX.Element;
|
|
89
108
|
readonly thumbsDown: (p: IconRenderProps) => import("react").JSX.Element;
|
|
@@ -15,10 +15,13 @@
|
|
|
15
15
|
| `position?` | `string` | `'50% 50%'` | ์ด๋ฏธ์ง ์ ๋ ฌ ์์น (object-position) |
|
|
16
16
|
| `loading?` | `'lazy' \| 'eager'` | `'lazy'` | ๋ธ๋ผ์ฐ์ ๋ก๋ฉ ๋ฐฉ์ |
|
|
17
17
|
| `loadingShowDelay?` | `number` | `0` | ์คํผ๋๋ฅผ ๋์ฐ๊ธฐ๊น์ง ๊ธฐ๋ค๋ฆฌ๋ ์๊ฐ(ms). ์ด ์๊ฐ ์์ ๋ก๋๋๋ฉด ์คํผ๋๋ฅผ ์์ ๊ทธ๋ฆฌ์ง ์๋๋ค โ ์บ์๋ ์ด๋ฏธ์ง์์ ์คํผ๋๊ฐ ํ ํ๋ ์ ๋ฒ์ฉ์ด๋ ๊ฒ์ ๋ง๋๋ค. |
|
|
18
|
-
| `
|
|
18
|
+
| `showSpinner?` | `boolean` | `true` | ๋ก๋ฉ ์ค ์คํผ๋๋ฅผ ๊ทธ๋ฆด์ง. ๋๋ฉด `loadingSlot` ๋ ์์ ๋ ๋ก๋ฉ ํ์๊ฐ ์๋ฌด๊ฒ๋ ๋จ์ง ์๋๋ค. |
|
|
19
19
|
| `loadingSlot?` | `ReactNode` | โ | ๋ก๋ฉ ์ค ํ์๋ฅผ ์ง์ ์ง์ ํ๋ค (๊ธฐ๋ณธ: ์คํผ๋) |
|
|
20
20
|
| `errorSlot?` | `ReactNode` | โ | ์คํจยท๋น ์ํ ํ์๋ฅผ ์ง์ ์ง์ ํ๋ค (๊ธฐ๋ณธ: ๋น ์ด๋ฏธ์ง ์์ด์ฝ) |
|
|
21
21
|
| `imgProps?` | `ImgHTMLAttributes<HTMLImageElement>` | โ | ์์ชฝ `<img>` ๋ก ๋๊ธธ ๋ค์ดํฐ๋ธ ์์ฑ (srcSet ยท sizes ยท crossOrigin ยท draggable ๋ฑ) |
|
|
22
|
+
| `previewOnHover?` | `boolean` | `false` | ํธ๋ฒํ๋ฉด ํฐ ์ด๋ฏธ์ง๋ฅผ ํฌํธ๋ก ๋์ด๋ค. ์ธ๋ค์ผ์ด ์์ ๋ด์ฉ์ ์์๋ณผ ์ ์๋ ์๋ฆฌ์ ์ด๋ค |
|
|
23
|
+
| `previewSrc?` | `string` | โ | ๋ฏธ๋ฆฌ๋ณด๊ธฐ์ ๋์ธ ๊ฒฝ๋ก. ์๋ณธ URL ์ด ์ธ๋ค์ผ๊ณผ ๋ค๋ฅผ ๋ ์ค๋ค (๊ธฐ๋ณธ: `src` ์ ๊ฐ์ ๊ฒฝ๋ก) |
|
|
24
|
+
| `previewSize?` | `number` | `PREVIEW_MAX_SIZE` | ๋ฏธ๋ฆฌ๋ณด๊ธฐ ์์์ ํ ๋ณ(px). ์์๋ ์ ์ฌ๊ฐํ์ด๊ณ ์ด๋ฏธ์ง๋ `contain` ์ผ๋ก ๋ค์ด๊ฐ๋ค. **200px ์ด ์ํ์ด๋ผ ๋ ํฐ ๊ฐ์ ์ค๋ 200 ์ผ๋ก ์๋ฆฐ๋ค** โ ๋ฏธ๋ฆฌ๋ณด๊ธฐ๊ฐ ํ๋ฉด์ ๋ฎ์ง ์๊ฒ ํ๋ ๊ท๊ฒฉ์ด๋ค. |
|
|
22
25
|
|
|
23
26
|
#### Events
|
|
24
27
|
|
|
@@ -27,8 +30,26 @@
|
|
|
27
30
|
| `onLoad` | `(src: string) => void` | ๋ก๋ ์๋ฃ. ๋ก๋๋ src ๋ฅผ ๋๊ธด๋ค |
|
|
28
31
|
| `onError` | `(event: SyntheticEvent<HTMLImageElement>) => void` | ๋ก๋ ์คํจ |
|
|
29
32
|
|
|
33
|
+
## Types
|
|
34
|
+
|
|
35
|
+
### SImageFit
|
|
36
|
+
|
|
37
|
+
```ts
|
|
38
|
+
export type SImageFit = (typeof IMAGE_FITS)[number];
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
### IMAGE_FITS
|
|
42
|
+
|
|
43
|
+
```ts
|
|
44
|
+
export const IMAGE_FITS = ['cover', 'contain', 'fill', 'none', 'scale-down'] as const;
|
|
45
|
+
```
|
|
46
|
+
|
|
30
47
|
## Dependencies
|
|
31
48
|
|
|
49
|
+
### Used by
|
|
50
|
+
|
|
51
|
+
- [SChatMessage](../SChatMessage)
|
|
52
|
+
|
|
32
53
|
### Depends on
|
|
33
54
|
|
|
34
55
|
- [SCircleProgress](../SCircleProgress)
|
|
@@ -40,5 +61,6 @@
|
|
|
40
61
|
graph TD;
|
|
41
62
|
SImage --> SCircleProgress
|
|
42
63
|
SImage --> SIcon
|
|
64
|
+
SChatMessage --> SImage
|
|
43
65
|
style SImage fill:#f9f,stroke:#333,stroke-width:4px
|
|
44
66
|
```
|
|
@@ -19,23 +19,26 @@ export interface SImageProps extends Omit<HTMLAttributes<HTMLDivElement>, 'onLoa
|
|
|
19
19
|
* ์บ์๋ ์ด๋ฏธ์ง์์ ์คํผ๋๊ฐ ํ ํ๋ ์ ๋ฒ์ฉ์ด๋ ๊ฒ์ ๋ง๋๋ค.
|
|
20
20
|
*/
|
|
21
21
|
loadingShowDelay?: number;
|
|
22
|
-
/** ๋ก๋ฉ
|
|
23
|
-
|
|
22
|
+
/** ๋ก๋ฉ ์ค ์คํผ๋๋ฅผ ๊ทธ๋ฆด์ง. ๋๋ฉด `loadingSlot` ๋ ์์ ๋ ๋ก๋ฉ ํ์๊ฐ ์๋ฌด๊ฒ๋ ๋จ์ง ์๋๋ค. */
|
|
23
|
+
showSpinner?: boolean;
|
|
24
24
|
/** ๋ก๋ฉ ์ค ํ์๋ฅผ ์ง์ ์ง์ ํ๋ค (๊ธฐ๋ณธ: ์คํผ๋) */
|
|
25
25
|
loadingSlot?: ReactNode;
|
|
26
26
|
/** ์คํจยท๋น ์ํ ํ์๋ฅผ ์ง์ ์ง์ ํ๋ค (๊ธฐ๋ณธ: ๋น ์ด๋ฏธ์ง ์์ด์ฝ) */
|
|
27
27
|
errorSlot?: ReactNode;
|
|
28
28
|
/** ์์ชฝ `<img>` ๋ก ๋๊ธธ ๋ค์ดํฐ๋ธ ์์ฑ (srcSet ยท sizes ยท crossOrigin ยท draggable ๋ฑ) */
|
|
29
29
|
imgProps?: ImgHTMLAttributes<HTMLImageElement>;
|
|
30
|
+
/** ํธ๋ฒํ๋ฉด ํฐ ์ด๋ฏธ์ง๋ฅผ ํฌํธ๋ก ๋์ด๋ค. ์ธ๋ค์ผ์ด ์์ ๋ด์ฉ์ ์์๋ณผ ์ ์๋ ์๋ฆฌ์ ์ด๋ค */
|
|
31
|
+
previewOnHover?: boolean;
|
|
32
|
+
/** ๋ฏธ๋ฆฌ๋ณด๊ธฐ์ ๋์ธ ๊ฒฝ๋ก. ์๋ณธ URL ์ด ์ธ๋ค์ผ๊ณผ ๋ค๋ฅผ ๋ ์ค๋ค (๊ธฐ๋ณธ: `src` ์ ๊ฐ์ ๊ฒฝ๋ก) */
|
|
33
|
+
previewSrc?: string;
|
|
34
|
+
/**
|
|
35
|
+
* ๋ฏธ๋ฆฌ๋ณด๊ธฐ ์์์ ํ ๋ณ(px). ์์๋ ์ ์ฌ๊ฐํ์ด๊ณ ์ด๋ฏธ์ง๋ `contain` ์ผ๋ก ๋ค์ด๊ฐ๋ค.
|
|
36
|
+
* **200px ์ด ์ํ์ด๋ผ ๋ ํฐ ๊ฐ์ ์ค๋ 200 ์ผ๋ก ์๋ฆฐ๋ค** โ ๋ฏธ๋ฆฌ๋ณด๊ธฐ๊ฐ ํ๋ฉด์ ๋ฎ์ง ์๊ฒ ํ๋ ๊ท๊ฒฉ์ด๋ค.
|
|
37
|
+
*/
|
|
38
|
+
previewSize?: number;
|
|
30
39
|
/** ๋ก๋ ์๋ฃ. ๋ก๋๋ src ๋ฅผ ๋๊ธด๋ค */
|
|
31
40
|
onLoad?: (src: string) => void;
|
|
32
41
|
/** ๋ก๋ ์คํจ */
|
|
33
42
|
onError?: (event: SyntheticEvent<HTMLImageElement>) => void;
|
|
34
43
|
}
|
|
35
|
-
/**
|
|
36
|
-
* SImage โ ์ด๋ฏธ์ง ๋ก๋ฉยท์คํจ ์ํ๋ฅผ ์ค์ค๋ก ํํํ๋ ์ด๋ฏธ์ง ์์.
|
|
37
|
-
*
|
|
38
|
-
* ๋ก๋ฉ ์ค์๋ ์คํผ๋, `src` ๊ฐ ์๊ฑฐ๋ ๋ก๋์ ์คํจํ๋ฉด ๋น ์ด๋ฏธ์ง ์์ด์ฝ์ ์ปจํ
์ด๋ ๋์ด์
|
|
39
|
-
* ๋น๋กํ ํฌ๊ธฐ๋ก ๊ฐ์ด๋ฐ์ ๊ทธ๋ฆฐ๋ค.
|
|
40
|
-
*/
|
|
41
44
|
export declare const SImage: import("react").ForwardRefExoticComponent<SImageProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
@@ -18,11 +18,12 @@
|
|
|
18
18
|
| `clearable?` | `boolean` | `false` | ์ง์ฐ๊ธฐ ๋ฒํผ |
|
|
19
19
|
| `rules?` | `Rule[]` | โ | ์ ํจ์ฑ ๊ท์น โ blur ์ ์๋ ๊ฒ์ฆ |
|
|
20
20
|
| `status?` | `SFieldStatus` | โ | ํ๋ ์ํ ('default' | 'pass' | 'error') |
|
|
21
|
-
| `focused?` | `boolean` | โ | ํฌ์ปค์ค
|
|
22
|
-
| `hovered?` | `boolean` | โ | ํธ๋ฒ
|
|
23
|
-
| `
|
|
21
|
+
| `focused?` | `boolean` | โ | ํฌ์ปค์ค ์ํ๋ฅผ ๋ฐ์์ ์ง์ ํ๋ค โ ๊ฐ์กฐ ํ
๋๋ฆฌยท๋ง์ด ์ฆ์ ๊ฑธ๋ฆฐ๋ค (SField ๋ก ๊ทธ๋๋ก ๋์ด๊ฐ๋ค) |
|
|
22
|
+
| `hovered?` | `boolean` | โ | ํธ๋ฒ ์ํ๋ฅผ ๋ฐ์์ ์ง์ ํ๋ค โ ๊ฐ์กฐ๋ `focused` ์ ๊ฐ๋ค (SField ๋ก ๊ทธ๋๋ก ๋์ด๊ฐ๋ค) |
|
|
23
|
+
| `inputClassName?` | `string` | โ | ๋ด๋ถ input ์์ className |
|
|
24
24
|
| `inputStyle?` | `CSSProperties` | โ | ๋ด๋ถ input ์์ style |
|
|
25
25
|
| `label?` | `string` | โ | |
|
|
26
|
+
| `labelPosition?` | `SFieldLabelPosition` | โ | ๋ ์ด๋ธ ์์น โ `top` ์ด๋ฉด ๋ผ๋ฒจ์ด ์ปจํธ๋กค ์์ ์ ๋ค (SField ๋ก ๊ทธ๋๋ก ๋์ด๊ฐ๋ค) |
|
|
26
27
|
| `labelWidth?` | `number \| string` | โ | |
|
|
27
28
|
| `labelTooltip?` | `string` | โ | ๋ ์ด๋ธ ํดํ ํ
์คํธ |
|
|
28
29
|
| `labelTooltipProps?` | `Partial<STooltipProps>` | โ | ๋ ์ด๋ธ ํดํ ์์ธ ์ต์
|
|
|
@@ -31,7 +32,7 @@
|
|
|
31
32
|
| `errorMessage?` | `string` | โ | |
|
|
32
33
|
| `addonLabel?` | `string` | โ | |
|
|
33
34
|
| `addonAlign?` | `SFieldAddonAlign` | โ | ์ด๋์จ ์ ๋ ฌ |
|
|
34
|
-
| `width?` | `
|
|
35
|
+
| `width?` | `SFieldWidth` | โ | ์ปจํธ๋กค ๋๋น โ ํญ ๋ฑ๊ธ(`'xs' | 'sm' | 'md' | 'lg' | 'xl'`) ยท ์ซ์=px ยท CSS ๊ธธ์ด. ๋ฑ๊ธ์ `--cmp-field-width-*` ํ ํฐ์ผ๋ก ํ๋ฆฌ๋ฉฐ `maxLength`(= ์คํค๋ง ์ํ)๋ก ๊ณ ๋ฅธ๋ค. ์ํ์ด `xl` ์ ๋๊ฑฐ๋ ์ํ์ด ์์ผ๋ฉด `"100%"`. (`sellmate/field-width-grade` ๊ฐ ๊ฒ์ฌํ๋ค) |
|
|
35
36
|
| `disabled?` | `boolean` | `false` | |
|
|
36
37
|
| `readOnly?` | `boolean` | `false` | |
|
|
37
38
|
| `className?` | `string` | โ | |
|
|
@@ -48,6 +49,7 @@
|
|
|
48
49
|
|
|
49
50
|
### Used by
|
|
50
51
|
|
|
52
|
+
- [SEditor](../SEditor)
|
|
51
53
|
- [SKeyValueTable](../SKeyValueTable)
|
|
52
54
|
|
|
53
55
|
### Depends on
|
|
@@ -61,6 +63,7 @@
|
|
|
61
63
|
graph TD;
|
|
62
64
|
SInput --> SField
|
|
63
65
|
SInput --> SGhostButton
|
|
66
|
+
SEditor --> SInput
|
|
64
67
|
SKeyValueTable --> SInput
|
|
65
68
|
style SInput fill:#f9f,stroke:#333,stroke-width:4px
|
|
66
69
|
```
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { type InputHTMLAttributes, type CSSProperties, type ReactNode } from 'react';
|
|
2
|
-
import { type SFieldSize, type SFieldAddonAlign, type SFieldStatus } from '../SField';
|
|
2
|
+
import { type SFieldSize, type SFieldAddonAlign, type SFieldStatus, type SFieldLabelPosition } from '../SField';
|
|
3
3
|
import { type SIconName } from '../SIcon';
|
|
4
4
|
import { type SColor } from '../../lib/color';
|
|
5
5
|
import { type Rule } from '../../lib/form';
|
|
6
6
|
import { type STooltipProps } from '../STooltip';
|
|
7
|
+
import { type SFieldWidth } from '../../lib/field-width';
|
|
7
8
|
export interface SInputProps extends Omit<InputHTMLAttributes<HTMLInputElement>, 'size' | 'value' | 'onChange' | 'type' | 'prefix' | 'suffix'> {
|
|
8
9
|
/** ๊ฐ (์ ์ด) */
|
|
9
10
|
value?: string | number;
|
|
@@ -29,15 +30,17 @@ export interface SInputProps extends Omit<InputHTMLAttributes<HTMLInputElement>,
|
|
|
29
30
|
rules?: Rule[];
|
|
30
31
|
/** ํ๋ ์ํ ('default' | 'pass' | 'error') */
|
|
31
32
|
status?: SFieldStatus;
|
|
32
|
-
/** ํฌ์ปค์ค
|
|
33
|
+
/** ํฌ์ปค์ค ์ํ๋ฅผ ๋ฐ์์ ์ง์ ํ๋ค โ ๊ฐ์กฐ ํ
๋๋ฆฌยท๋ง์ด ์ฆ์ ๊ฑธ๋ฆฐ๋ค (SField ๋ก ๊ทธ๋๋ก ๋์ด๊ฐ๋ค) */
|
|
33
34
|
focused?: boolean;
|
|
34
|
-
/** ํธ๋ฒ
|
|
35
|
+
/** ํธ๋ฒ ์ํ๋ฅผ ๋ฐ์์ ์ง์ ํ๋ค โ ๊ฐ์กฐ๋ `focused` ์ ๊ฐ๋ค (SField ๋ก ๊ทธ๋๋ก ๋์ด๊ฐ๋ค) */
|
|
35
36
|
hovered?: boolean;
|
|
36
37
|
/** ๋ด๋ถ input ์์ className */
|
|
37
|
-
|
|
38
|
+
inputClassName?: string;
|
|
38
39
|
/** ๋ด๋ถ input ์์ style */
|
|
39
40
|
inputStyle?: CSSProperties;
|
|
40
41
|
label?: string;
|
|
42
|
+
/** ๋ ์ด๋ธ ์์น โ `top` ์ด๋ฉด ๋ผ๋ฒจ์ด ์ปจํธ๋กค ์์ ์ ๋ค (SField ๋ก ๊ทธ๋๋ก ๋์ด๊ฐ๋ค) */
|
|
43
|
+
labelPosition?: SFieldLabelPosition;
|
|
41
44
|
labelWidth?: number | string;
|
|
42
45
|
/** ๋ ์ด๋ธ ํดํ ํ
์คํธ */
|
|
43
46
|
labelTooltip?: string;
|
|
@@ -49,7 +52,12 @@ export interface SInputProps extends Omit<InputHTMLAttributes<HTMLInputElement>,
|
|
|
49
52
|
addonLabel?: string;
|
|
50
53
|
/** ์ด๋์จ ์ ๋ ฌ */
|
|
51
54
|
addonAlign?: SFieldAddonAlign;
|
|
52
|
-
|
|
55
|
+
/**
|
|
56
|
+
* ์ปจํธ๋กค ๋๋น โ ํญ ๋ฑ๊ธ(`'xs' | 'sm' | 'md' | 'lg' | 'xl'`) ยท ์ซ์=px ยท CSS ๊ธธ์ด.
|
|
57
|
+
* ๋ฑ๊ธ์ `--cmp-field-width-*` ํ ํฐ์ผ๋ก ํ๋ฆฌ๋ฉฐ `maxLength`(= ์คํค๋ง ์ํ)๋ก ๊ณ ๋ฅธ๋ค.
|
|
58
|
+
* ์ํ์ด `xl` ์ ๋๊ฑฐ๋ ์ํ์ด ์์ผ๋ฉด `"100%"`. (`sellmate/field-width-grade` ๊ฐ ๊ฒ์ฌํ๋ค)
|
|
59
|
+
*/
|
|
60
|
+
width?: SFieldWidth;
|
|
53
61
|
disabled?: boolean;
|
|
54
62
|
readOnly?: boolean;
|
|
55
63
|
className?: string;
|
|
@@ -10,9 +10,11 @@
|
|
|
10
10
|
|------|------|---------|-------------|
|
|
11
11
|
| `fields?` | `SKeyValueField[][]` | `[]` | 2์ฐจ์ ๋ฐฐ์ด. row โ [th|td] ํ๋๋ค |
|
|
12
12
|
| `values?` | `Record<string, unknown>` | `{}` | field name์ key๋ก ํ๋ ๊ฐ ๊ฐ์ฒด (`{ [name]: value }`). ์ง์ ์ ํด๋น field์ ๊ฐ์ผ๋ก ์ฌ์ฉ๋๋ฉฐ, field๋ณ `options.value`๋ณด๋ค ์ฐ์ ํฉ๋๋ค. `onChange`์ `detail.values`์ ํจ๊ป controlled ํจํด์ผ๋ก ์ฌ์ฉํฉ๋๋ค. |
|
|
13
|
+
| `dense?` | `boolean` | `false` | ํ์ ์ข๊ฒ ๊ทธ๋ฆฐ๋ค โ ์
์ ์ํ ํจ๋ฉ(8px โ 6px)๊ณผ ์ง์ด ๋๋ ์ต์ ๋์ด(44px โ 32px)๋ฅผ ํจ๊ป ๋ด๋ฆฐ๋ค. ํ ํ๋ฉด์ ํ์ด ๋ง์ ํ์ด๋ณด๊ธฐ๊ฐ ๋ชฉ์ ์ธ ์์ธ ์กฐํ ํ์ ์ด๋ค. ์ข์ฐ ํจ๋ฉ๊ณผ ๊ธ์ ํฌ๊ธฐ๋ ๊ทธ๋๋ก๋ค. **`STable` ๊ณผ ๋ฌ๋ฆฌ ๋ฐ๋ ํ ๊ธ์ด ๋ถ์ง ์๋ ๊ณ ์ ๊ฐ์ด๋ค** โ ์ค ๊ฐ ๊ทธ๋๋ก ๊ทธ๋ฆฐ๋ค. ์ฝ๊ธฐ ์ ์ฉ(`text`) ํ์์๋ง ์ค์ ๋ก ์ข์์ง๋ค: ํผ ํ๋ ํ์ ํ๋ ๋์ด๊ฐ ํ ๋์ด๋ฅผ ์ ํ๋ค |
|
|
13
14
|
| `search?` | `boolean` | `false` | ์ฐ์ธก ๊ฒ์ ํจ๋ |
|
|
14
15
|
| `radius?` | `'default' \| 'useTop' \| 'full'` | `'default'` | border-radius ์ ์ด |
|
|
15
16
|
| `bordered?` | `boolean` | `true` | ๋ฐ๊นฅ ํ
๋๋ฆฌ. ๊ธฐ๋ณธ์ `true`. `SSectionHeaderCard` ์ `padding="none"` ์์ ๋ฃ์ด ์นด๋ ๊ฐ์ฅ์๋ฆฌ๊น์ง ์ฑ์ธ ๋ `false` ๋ก ๋๋ค โ ์นด๋๊ฐ ์ด๋ฏธ ๋ฐ๊นฅ ํ
๋๋ฆฌ๋ฅผ ๊ทธ๋ฆฌ๋ฏ๋ก, ์ผ ๋๋ฉด 1px ๋ ๊ฐ๊ฐ ๋๋ํ ๋์ฌ ๊ทธ ๋ณ๋ง 2px ๋ก ๋ณด์ธ๋ค. |
|
|
17
|
+
| `fieldWidth?` | `'auto' \| 'fill'` | `'auto'` | ํ๋ ํญ ์ ์ฑ
โ **ํ ํ๋๊ฐ ํ ๋ฒ์ ์ ํ๋ค**. ํ๋๋ง๋ค ๋ฐ๋ก ์ ํ์ง ์๋๋ค. ํ๋ ๋ชจ๋ ์ปจํธ๋กค์ `width="100%"` ๋ฅผ ๋๊ธฐ์ง๋ง, ๊ฐ ๊ธธ์ด๋ฅผ ์๋ ์ปจํธ๋กค(๋ ์งยท๊ธฐ๊ฐ ํผ์ปค)์ ์๊ธฐ ์ํ์์ ๋ฉ์ถ๋ค. ๊ทธ๋์ ํ ํ์ ๊ทธ๋ฐ ํ๋๊ฐ ์์ด๋ฉด **์ผ์ชฝ ๋๋ง ๋ง๊ณ ์ค๋ฅธ์ชฝ ๋์ด ์ด๊ธ๋** ๋ณด์ธ๋ค. - `'auto'`(๊ธฐ๋ณธ) โ ์ปจํธ๋กค์ด ์๊ธฐ ํญ์ ์ ํ๋ค. ์ํ์ด ๊ทธ๋๋ก ์ด์ ์์ด ํญ์ด "์ด ์นธ์ ์ผ๋ง๋ ๊ธด ๊ฐ์ด ๋ค์ด๊ฐ๋๊ฐ" ๋ฅผ ์๋ ค์ค๋ค. ๋ฑ๋กยท์์ ํผ์ฒ๋ผ ์
๋ ฅ ๊ธธ์ด๋ฅผ ์ง์ํ๊ฒ ํ๋ ํธ์ด ๋์ ํ์ ์ด๋ค. - `'fill'` โ ๋ชจ๋ ์ปจํธ๋กค์ด ์
๋๊น์ง ์ฐฌ๋ค. ์
ํญ์ ์ด ์์ `tdColSpan` ์ด ์ ํ๋ฏ๋ก ์ค๋ฅธ์ชฝ ๋์ด ์ ์ ๋ก ๋ง๋๋ค. ์กฐํ ํํฐ์ฒ๋ผ ๊ฐ์ง๋ฐํจ์ด ์ฐ์ ์ธ ํ์ ์ด๋ค. ๋์ ํญ์ด ๊ฐ ๊ธธ์ด๋ฅผ ์๋ ค์ฃผ์ง ์๋๋ค โ ๋ ์ง ์นธ์ด ๋ฉ๋ชจ ์นธ๋งํผ ๋์ด์ง๋ค. ๊ฐ๋ณ ํ๋๋ง ์์ธ๋ก ๋๋ ค๋ฉด ๊ทธ ํ๋์ `options.maxWidth` ๋ฅผ ์ค๋ค โ ์ด ์ ์ฑ
๋ณด๋ค ์ฐ์ ํ๋ค. |
|
|
16
18
|
| `className?` | `string` | โ | |
|
|
17
19
|
| `style?` | `CSSProperties` | โ | |
|
|
18
20
|
|
|
@@ -23,6 +25,90 @@
|
|
|
23
25
|
| `onChange` | `(detail: SKeyValueChangeDetail) => void` | ๊ฐ ๋ณ๊ฒฝ (sdChange) |
|
|
24
26
|
| `onSearch` | `() => void` | ๊ฒ์ ํด๋ฆญ (sdSearch) |
|
|
25
27
|
|
|
28
|
+
## Types
|
|
29
|
+
|
|
30
|
+
### SKeyValueField
|
|
31
|
+
|
|
32
|
+
```ts
|
|
33
|
+
export type SKeyValueField = SKeyValueFieldBase & SKeyValueFieldByType;
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
### SKeyValueChangeDetail
|
|
37
|
+
|
|
38
|
+
```ts
|
|
39
|
+
/**
|
|
40
|
+
* `onChange` ์ฝ๋ฐฑ detail.
|
|
41
|
+
* ์ ๋ค๋ฆญ `V`์ ํผ ๊ฐ ํํ(`{ [name]: value }`)๋ฅผ ๋๊ธฐ๋ฉด `name`/`value`/`values`๊ฐ ์ ๋ฐํ๊ฒ ํ์ดํ๋ฉ๋๋ค.
|
|
42
|
+
* ๋ฏธ์ง์ ์ `value`๋ {@link SKeyValueFieldValue} ์ ๋์จ์ผ๋ก ์กํ๋๋ค.
|
|
43
|
+
*/
|
|
44
|
+
export interface SKeyValueChangeDetail<
|
|
45
|
+
V extends Record<string, SKeyValueFieldValue> = Record<string, SKeyValueFieldValue>,
|
|
46
|
+
> {
|
|
47
|
+
/** ๋ณ๊ฒฝ๋ field์ name */
|
|
48
|
+
name: Extract<keyof V, string>;
|
|
49
|
+
/** ๋ณ๊ฒฝ๋ field์ ์ ๊ฐ */
|
|
50
|
+
value: V[Extract<keyof V, string>];
|
|
51
|
+
/** ๋ณ๊ฒฝ์ด ๋ฐ์๋ ์ ์ฒด ๊ฐ ๊ฐ์ฒด (`{ [name]: value }`). controlled ํจํด์์ ๊ทธ๋๋ก ์ํ์ ๋ฐ์ํ๋ฉด ๋ฉ๋๋ค. */
|
|
52
|
+
values: V;
|
|
53
|
+
}
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
### SKeyValueFieldBase
|
|
57
|
+
|
|
58
|
+
```ts
|
|
59
|
+
/** field type๊ณผ ๋ฌด๊ดํ ๊ณตํต ์์ฑ (๋ ์ด์์ยท๋ ์ด๋ธยท์คํฌ ๋ฑ) */
|
|
60
|
+
export interface SKeyValueFieldBase {
|
|
61
|
+
name: string;
|
|
62
|
+
label?: string;
|
|
63
|
+
required?: boolean;
|
|
64
|
+
helpText?: string[];
|
|
65
|
+
hideTh?: boolean;
|
|
66
|
+
thRowSpan?: number;
|
|
67
|
+
thColSpan?: number;
|
|
68
|
+
tdRowSpan?: number;
|
|
69
|
+
tdColSpan?: number;
|
|
70
|
+
thWidth?: number | string;
|
|
71
|
+
thClass?: string;
|
|
72
|
+
tdClass?: string;
|
|
73
|
+
/** ์
์ปค์คํ
๋ ๋ (React ํ์ฅ). ์ง์ ์ type/options๋ ๋ฌด์๋๊ณ ์ด ๋
ธ๋๊ฐ ๊ทธ๋๋ก ๋ ๋๋ฉ๋๋ค. */
|
|
74
|
+
render?: ReactNode;
|
|
75
|
+
}
|
|
76
|
+
```
|
|
77
|
+
|
|
78
|
+
### SKeyValueFieldByType
|
|
79
|
+
|
|
80
|
+
```ts
|
|
81
|
+
/**
|
|
82
|
+
* `type`์ ๋ฐ๋ผ `options`๊ฐ ํด๋น ์ปดํฌ๋ํธ์ props๋ก ์ขํ์ง๋ discriminated union.
|
|
83
|
+
* `type` ์๋ต ์ `text`๋ก ๋์ํฉ๋๋ค.
|
|
84
|
+
*/
|
|
85
|
+
export type SKeyValueFieldByType =
|
|
86
|
+
| { type?: 'text'; options?: { value?: ReactNode } }
|
|
87
|
+
| { type: 'input'; options?: FieldOptions<SInputProps> }
|
|
88
|
+
| { type: 'textarea'; options?: FieldOptions<STextareaProps> }
|
|
89
|
+
| { type: 'number-input'; options?: FieldOptions<SNumberInputProps> }
|
|
90
|
+
| { type: 'select'; options?: FieldOptions<SSelectProps> }
|
|
91
|
+
| { type: 'radio'; options?: FieldOptions<SRadioGroupProps> }
|
|
92
|
+
| { type: 'checkbox'; options?: FieldOptions<SCheckboxProps> }
|
|
93
|
+
| { type: 'switch'; options?: FieldOptions<SSwitchProps> }
|
|
94
|
+
| { type: 'date-picker'; options?: FieldOptions<SDatePickerProps> }
|
|
95
|
+
| { type: 'date-range-picker'; options?: FieldOptions<SDateRangePickerProps> }
|
|
96
|
+
| { type: 'file-picker'; options?: FieldOptions<SFilePickerProps> };
|
|
97
|
+
```
|
|
98
|
+
|
|
99
|
+
### SKeyValueFieldValue
|
|
100
|
+
|
|
101
|
+
```ts
|
|
102
|
+
/**
|
|
103
|
+
* field type๋ณ `onChange`๋ก ์ฌ๋ผ์ค๋ ๊ฐ ํ์
.
|
|
104
|
+
* - `string`: input ยท textarea ยท select ยท radio ยท date-picker
|
|
105
|
+
* - `number`: number-input
|
|
106
|
+
* - `boolean`: checkbox ยท switch
|
|
107
|
+
* - `string[]`: date-range-picker
|
|
108
|
+
*/
|
|
109
|
+
export type SKeyValueFieldValue = string | number | boolean | string[];
|
|
110
|
+
```
|
|
111
|
+
|
|
26
112
|
## Dependencies
|
|
27
113
|
|
|
28
114
|
### Depends on
|
|
@@ -37,6 +123,7 @@
|
|
|
37
123
|
- [SNumberInput](../SNumberInput)
|
|
38
124
|
- [SRadio](../SRadio)
|
|
39
125
|
- [SSelect](../SSelect)
|
|
126
|
+
- [SSwitch](../SSwitch)
|
|
40
127
|
- [STextarea](../STextarea)
|
|
41
128
|
- [STooltip](../STooltip)
|
|
42
129
|
|
|
@@ -54,6 +141,7 @@ graph TD;
|
|
|
54
141
|
SKeyValueTable --> SNumberInput
|
|
55
142
|
SKeyValueTable --> SRadio
|
|
56
143
|
SKeyValueTable --> SSelect
|
|
144
|
+
SKeyValueTable --> SSwitch
|
|
57
145
|
SKeyValueTable --> STextarea
|
|
58
146
|
SKeyValueTable --> STooltip
|
|
59
147
|
style SKeyValueTable fill:#f9f,stroke:#333,stroke-width:4px
|
|
@@ -5,10 +5,11 @@ import { type SNumberInputProps } from '../SNumberInput';
|
|
|
5
5
|
import { type SSelectProps } from '../SSelect';
|
|
6
6
|
import { type SRadioGroupProps } from '../SRadio';
|
|
7
7
|
import { type SCheckboxProps } from '../SCheckbox';
|
|
8
|
+
import { type SSwitchProps } from '../SSwitch';
|
|
8
9
|
import { type SDatePickerProps } from '../SDatePicker';
|
|
9
10
|
import { type SDateRangePickerProps } from '../SDateRangePicker';
|
|
10
11
|
import { type SFilePickerProps } from '../SFilePicker';
|
|
11
|
-
export type SKeyValueFieldType = 'text' | 'input' | 'textarea' | 'number-input' | 'select' | 'radio' | 'checkbox' | 'date-picker' | 'date-range-picker' | 'file-picker';
|
|
12
|
+
export type SKeyValueFieldType = 'text' | 'input' | 'textarea' | 'number-input' | 'select' | 'radio' | 'checkbox' | 'switch' | 'date-picker' | 'date-range-picker' | 'file-picker';
|
|
12
13
|
/** field type๊ณผ ๋ฌด๊ดํ ๊ณตํต ์์ฑ (๋ ์ด์์ยท๋ ์ด๋ธยท์คํฌ ๋ฑ) */
|
|
13
14
|
export interface SKeyValueFieldBase {
|
|
14
15
|
name: string;
|
|
@@ -59,6 +60,9 @@ export type SKeyValueFieldByType = {
|
|
|
59
60
|
} | {
|
|
60
61
|
type: 'checkbox';
|
|
61
62
|
options?: FieldOptions<SCheckboxProps>;
|
|
63
|
+
} | {
|
|
64
|
+
type: 'switch';
|
|
65
|
+
options?: FieldOptions<SSwitchProps>;
|
|
62
66
|
} | {
|
|
63
67
|
type: 'date-picker';
|
|
64
68
|
options?: FieldOptions<SDatePickerProps>;
|
|
@@ -74,7 +78,7 @@ export type SKeyValueField = SKeyValueFieldBase & SKeyValueFieldByType;
|
|
|
74
78
|
* field type๋ณ `onChange`๋ก ์ฌ๋ผ์ค๋ ๊ฐ ํ์
.
|
|
75
79
|
* - `string`: input ยท textarea ยท select ยท radio ยท date-picker
|
|
76
80
|
* - `number`: number-input
|
|
77
|
-
* - `boolean`: checkbox
|
|
81
|
+
* - `boolean`: checkbox ยท switch
|
|
78
82
|
* - `string[]`: date-range-picker
|
|
79
83
|
*/
|
|
80
84
|
export type SKeyValueFieldValue = string | number | boolean | string[];
|
|
@@ -100,6 +104,13 @@ export interface SKeyValueTableProps {
|
|
|
100
104
|
* `onChange`์ `detail.values`์ ํจ๊ป controlled ํจํด์ผ๋ก ์ฌ์ฉํฉ๋๋ค.
|
|
101
105
|
*/
|
|
102
106
|
values?: Record<string, unknown>;
|
|
107
|
+
/**
|
|
108
|
+
* ํ์ ์ข๊ฒ ๊ทธ๋ฆฐ๋ค โ ์
์ ์ํ ํจ๋ฉ(8px โ 6px)๊ณผ ์ง์ด ๋๋ ์ต์ ๋์ด(44px โ 32px)๋ฅผ ํจ๊ป
|
|
109
|
+
* ๋ด๋ฆฐ๋ค. ํ ํ๋ฉด์ ํ์ด ๋ง์ ํ์ด๋ณด๊ธฐ๊ฐ ๋ชฉ์ ์ธ ์์ธ ์กฐํ ํ์ ์ด๋ค. ์ข์ฐ ํจ๋ฉ๊ณผ ๊ธ์ ํฌ๊ธฐ๋
|
|
110
|
+
* ๊ทธ๋๋ก๋ค. **`STable` ๊ณผ ๋ฌ๋ฆฌ ๋ฐ๋ ํ ๊ธ์ด ๋ถ์ง ์๋ ๊ณ ์ ๊ฐ์ด๋ค** โ ์ค ๊ฐ ๊ทธ๋๋ก ๊ทธ๋ฆฐ๋ค.
|
|
111
|
+
* ์ฝ๊ธฐ ์ ์ฉ(`text`) ํ์์๋ง ์ค์ ๋ก ์ข์์ง๋ค: ํผ ํ๋ ํ์ ํ๋ ๋์ด๊ฐ ํ ๋์ด๋ฅผ ์ ํ๋ค
|
|
112
|
+
*/
|
|
113
|
+
dense?: boolean;
|
|
103
114
|
/** ์ฐ์ธก ๊ฒ์ ํจ๋ */
|
|
104
115
|
search?: boolean;
|
|
105
116
|
/** border-radius ์ ์ด */
|
|
@@ -111,6 +122,22 @@ export interface SKeyValueTableProps {
|
|
|
111
122
|
* ์นด๋๊ฐ ์ด๋ฏธ ๋ฐ๊นฅ ํ
๋๋ฆฌ๋ฅผ ๊ทธ๋ฆฌ๋ฏ๋ก, ์ผ ๋๋ฉด 1px ๋ ๊ฐ๊ฐ ๋๋ํ ๋์ฌ ๊ทธ ๋ณ๋ง 2px ๋ก ๋ณด์ธ๋ค.
|
|
112
123
|
*/
|
|
113
124
|
bordered?: boolean;
|
|
125
|
+
/**
|
|
126
|
+
* ํ๋ ํญ ์ ์ฑ
โ **ํ ํ๋๊ฐ ํ ๋ฒ์ ์ ํ๋ค**. ํ๋๋ง๋ค ๋ฐ๋ก ์ ํ์ง ์๋๋ค.
|
|
127
|
+
*
|
|
128
|
+
* ํ๋ ๋ชจ๋ ์ปจํธ๋กค์ `width="100%"` ๋ฅผ ๋๊ธฐ์ง๋ง, ๊ฐ ๊ธธ์ด๋ฅผ ์๋ ์ปจํธ๋กค(๋ ์งยท๊ธฐ๊ฐ ํผ์ปค)์
|
|
129
|
+
* ์๊ธฐ ์ํ์์ ๋ฉ์ถ๋ค. ๊ทธ๋์ ํ ํ์ ๊ทธ๋ฐ ํ๋๊ฐ ์์ด๋ฉด **์ผ์ชฝ ๋๋ง ๋ง๊ณ ์ค๋ฅธ์ชฝ ๋์ด
|
|
130
|
+
* ์ด๊ธ๋** ๋ณด์ธ๋ค.
|
|
131
|
+
*
|
|
132
|
+
* - `'auto'`(๊ธฐ๋ณธ) โ ์ปจํธ๋กค์ด ์๊ธฐ ํญ์ ์ ํ๋ค. ์ํ์ด ๊ทธ๋๋ก ์ด์ ์์ด ํญ์ด "์ด ์นธ์ ์ผ๋ง๋ ๊ธด ๊ฐ์ด ๋ค์ด๊ฐ๋๊ฐ" ๋ฅผ
|
|
133
|
+
* ์๋ ค์ค๋ค. ๋ฑ๋กยท์์ ํผ์ฒ๋ผ ์
๋ ฅ ๊ธธ์ด๋ฅผ ์ง์ํ๊ฒ ํ๋ ํธ์ด ๋์ ํ์ ์ด๋ค.
|
|
134
|
+
* - `'fill'` โ ๋ชจ๋ ์ปจํธ๋กค์ด ์
๋๊น์ง ์ฐฌ๋ค. ์
ํญ์ ์ด ์์ `tdColSpan` ์ด ์ ํ๋ฏ๋ก ์ค๋ฅธ์ชฝ
|
|
135
|
+
* ๋์ด ์ ์ ๋ก ๋ง๋๋ค. ์กฐํ ํํฐ์ฒ๋ผ ๊ฐ์ง๋ฐํจ์ด ์ฐ์ ์ธ ํ์ ์ด๋ค. ๋์ ํญ์ด ๊ฐ ๊ธธ์ด๋ฅผ
|
|
136
|
+
* ์๋ ค์ฃผ์ง ์๋๋ค โ ๋ ์ง ์นธ์ด ๋ฉ๋ชจ ์นธ๋งํผ ๋์ด์ง๋ค.
|
|
137
|
+
*
|
|
138
|
+
* ๊ฐ๋ณ ํ๋๋ง ์์ธ๋ก ๋๋ ค๋ฉด ๊ทธ ํ๋์ `options.maxWidth` ๋ฅผ ์ค๋ค โ ์ด ์ ์ฑ
๋ณด๋ค ์ฐ์ ํ๋ค.
|
|
139
|
+
*/
|
|
140
|
+
fieldWidth?: 'auto' | 'fill';
|
|
114
141
|
/** ๊ฐ ๋ณ๊ฒฝ (sdChange) */
|
|
115
142
|
onChange?: (detail: SKeyValueChangeDetail) => void;
|
|
116
143
|
/** ๊ฒ์ ํด๋ฆญ (sdSearch) */
|
|
@@ -119,5 +146,5 @@ export interface SKeyValueTableProps {
|
|
|
119
146
|
style?: CSSProperties;
|
|
120
147
|
}
|
|
121
148
|
/** SKeyValueTable โ sd-key-value-table ํฌํ
. th/td ํผ ๋ ์ด์์ + ํ๋ ๋ ๋๋ฌ. */
|
|
122
|
-
export declare function SKeyValueTable({ fields, values, search, radius, bordered, onChange, onSearch, className, style, }: SKeyValueTableProps): import("react").JSX.Element | null;
|
|
149
|
+
export declare function SKeyValueTable({ fields, values, dense, search, radius, bordered, fieldWidth, onChange, onSearch, className, style, }: SKeyValueTableProps): import("react").JSX.Element | null;
|
|
123
150
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { SKeyValueTable, type SKeyValueTableProps, type SKeyValueField, type SKeyValueFieldType, type SKeyValueChangeDetail, } from './SKeyValueTable';
|
|
1
|
+
export { SKeyValueTable, type SKeyValueTableProps, type SKeyValueField, type SKeyValueFieldBase, type SKeyValueFieldByType, type SKeyValueFieldType, type SKeyValueFieldValue, type SKeyValueChangeDetail, } from './SKeyValueTable';
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
# SLauncherListBox
|
|
2
|
+
|
|
3
|
+
> ์๋ ์์ฑ ๋ฌธ์ โ `npm run docs:gen`. ์์ค: ๊ฐ ์ปดํฌ๋ํธ์ Props/Handle ์ธํฐํ์ด์ค + import ์์กด์ฑ.
|
|
4
|
+
|
|
5
|
+
### SLauncherListBox
|
|
6
|
+
|
|
7
|
+
#### Props
|
|
8
|
+
|
|
9
|
+
| Prop | Type | Default | Description |
|
|
10
|
+
|------|------|---------|-------------|
|
|
11
|
+
| `items?` | `SLauncherListBoxItem[]` | โ | ๋ชฉ๋ก์ ์ธ์ธ ์๋น์ค. ๋น์ด ์์ผ๋ฉด ์๋ฌด๊ฒ๋ ๋ ๋ํ์ง ์๋๋ค. **์์๋ ๋๊ธด ๋๋ก๊ฐ ์๋๋ผ ์นดํ๋ก๊ทธ ์์๋ค**(`LAUNCHER_SERVICES`) โ ๊ฐ์ ๋ฐ์ฒ๊ฐ ์ฑ๋ง๋ค ๋ค๋ฅธ ์์๋ก ๋จ๋ฉด ์ฌ์ฉ์๊ฐ ๋งค๋ฒ ๋ค์ ์ฐพ๋๋ค. ๊ฐ์ ์๋น์ค๋ฅผ ๋ ๋ฒ ๋๊ธฐ๋ฉด ์ฒ์ ๊ฒ๋ง ์ ๋ค. |
|
|
12
|
+
| `ariaLabel?` | `string` | โ | ๋ชฉ๋ก(ul)์ ์ ๊ทผ์ฑ ๋ ์ด๋ธ |
|
|
13
|
+
|
|
14
|
+
#### Events
|
|
15
|
+
|
|
16
|
+
| Event | Type | Description |
|
|
17
|
+
|-------|------|-------------|
|
|
18
|
+
| `onSelect` | `(service: SLauncherService) => void` | ์๋น์ค๋ฅผ ๊ณ ๋ฆ. **๊ฐ๋ ๊ฒ์ ์ด ์ฝ๋ฐฑ์ด ํ์ง ์๋๋ค** โ ์ค์ด ๋งํฌ๋ผ ๋ธ๋ผ์ฐ์ ๊ฐ `href` ๋ฅผ ์ ํญ์ผ๋ก ์ฐ๋ค. ๊ณ ๋ฅธ ๊ฒ์ ์ฑ์ด ์์์ผ ํ ๋๋ง(๊ธฐ๋กยท๋ชฉ๋ก ๋ซ๊ธฐ) ์ค๋ค. ๊ฐ ์ ์๋ ์ค(์ฃผ์๊ฐ ์๊ฑฐ๋ ์นดํ๋ก๊ทธ๊ฐ ์์ง ์ถ์ ์ ์ผ๋ก ๋ ์๋น์ค)์ ๋๋ฆฌ์ง ์์ผ๋ฏ๋ก ์ฌ๊ธฐ๋ก ์ค์ง ์๋๋ค. |
|
|
19
|
+
|
|
20
|
+
## Types
|
|
21
|
+
|
|
22
|
+
### SLauncherListBoxItem
|
|
23
|
+
|
|
24
|
+
```ts
|
|
25
|
+
/** ๋ฆฌ์คํธ๋ฐ์ค์ ํ ์ค โ ์ฎ๊ฒจ ๊ฐ ์ ์๋ ์๋น์ค ํ๋ */
|
|
26
|
+
export interface SLauncherListBoxItem {
|
|
27
|
+
/**
|
|
28
|
+
* ์ด๋ ์๋น์ค์ธ๊ฐ. **๋ก๊ณ ยทํ๊ธฐยท์ด๋ฆยท์ํ ํ๊ทธ๋ ์ด ํค ํ๋๋ก ์ ํด์ง๋ค** โ ์นดํ๋ก๊ทธ
|
|
29
|
+
* (`LAUNCHER_SERVICE_CATALOG`)๊ฐ ๋ค๊ณ ์์ผ๋ฏ๋ก ์ฑ์ด ๋๊ธฐ์ง ์๋๋ค.
|
|
30
|
+
*/
|
|
31
|
+
service: SLauncherService;
|
|
32
|
+
/**
|
|
33
|
+
* ์ ํญ์์ ์ด ์ฃผ์. **๋์์ธ ์์คํ
์ ์ฃผ์๋ฅผ ๋ค์ง ์๋๋ค** โ ์ฑ๋ง๋ค QAยท์ค์๋ฒ๊ฐ ๋ฌ๋ผ
|
|
34
|
+
* ์ฌ๊ธฐ์ ๊ด๋ฆฌํ ์ ์๋ค.
|
|
35
|
+
*
|
|
36
|
+
* **์ฃผ์๋ฅผ ์ฃผ๋ ๊ฒ์ด ๊ณง "๊ฐ ์ ์๋ค"๋ ๋ป์ด๋ค.** ๋น์ฐ๋ฉด ์ค์ ๋ชฉ๋ก์ ๋จ๋ ๋๋ฆฌ์ง ์๊ณ
|
|
37
|
+
* ๋ฌผ๋ฌ๋๋ค โ ์ง๊ธ ๋ณด๊ณ ์๋ ์๋น์ค๋ , ์ด ์ฑ์ด ๊ณ์ฝํ์ง ์์ ์๋น์ค๋ ๊ฐ ๊ณณ์ด ์๊ธฐ๋ ๊ฐ๋ค.
|
|
38
|
+
* ๋ชป ๊ฐ๋ ์ค์ ๋ง๋ ๋ณ๋์ prop ์ ์๋ค.
|
|
39
|
+
*/
|
|
40
|
+
href?: string;
|
|
41
|
+
}
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
### SLauncherService
|
|
45
|
+
|
|
46
|
+
```ts
|
|
47
|
+
export type SLauncherService = (typeof LAUNCHER_SERVICES)[number];
|
|
48
|
+
```
|
|
49
|
+
|
|
50
|
+
### LAUNCHER_SERVICES
|
|
51
|
+
|
|
52
|
+
```ts
|
|
53
|
+
/**
|
|
54
|
+
* ๋ฐ์ฒ์ ์ค ์ ์๋ ์๋น์ค โ **๋ชฉ๋ก์ ์์์ด๊ธฐ๋ ํ๋ค.**
|
|
55
|
+
* ์ฑ์ด ๋๊ธด ์์๊ฐ ์๋๋ผ ์ด ์์๋ก ์ ๋ค: ๊ฐ์ ๋ฐ์ฒ๊ฐ ์ฑ๋ง๋ค ๋ค๋ฅธ ์์๋ก ๋จ๋ฉด ์ฌ์ฉ์๊ฐ ๋งค๋ฒ ๋ค์ ์ฐพ๋๋ค.
|
|
56
|
+
*/
|
|
57
|
+
export const LAUNCHER_SERVICES = ['sellmate', 'wms', 'account', 'crm'] as const;
|
|
58
|
+
```
|
|
59
|
+
|
|
60
|
+
## Dependencies
|
|
61
|
+
|
|
62
|
+
### Used by
|
|
63
|
+
|
|
64
|
+
- [SGnb](../SGnb)
|
|
65
|
+
|
|
66
|
+
### Depends on
|
|
67
|
+
|
|
68
|
+
- [SIcon](../SIcon)
|
|
69
|
+
- [SLogo](../SLogo)
|
|
70
|
+
- [STag](../STag)
|
|
71
|
+
|
|
72
|
+
### Graph
|
|
73
|
+
|
|
74
|
+
```mermaid
|
|
75
|
+
graph TD;
|
|
76
|
+
SLauncherListBox --> SIcon
|
|
77
|
+
SLauncherListBox --> SLogo
|
|
78
|
+
SLauncherListBox --> STag
|
|
79
|
+
SGnb --> SLauncherListBox
|
|
80
|
+
style SLauncherListBox fill:#f9f,stroke:#333,stroke-width:4px
|
|
81
|
+
```
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import { type HTMLAttributes } from 'react';
|
|
2
|
+
import { type SLauncherService } from './launcherListBox.config';
|
|
3
|
+
/** ๋ฆฌ์คํธ๋ฐ์ค์ ํ ์ค โ ์ฎ๊ฒจ ๊ฐ ์ ์๋ ์๋น์ค ํ๋ */
|
|
4
|
+
export interface SLauncherListBoxItem {
|
|
5
|
+
/**
|
|
6
|
+
* ์ด๋ ์๋น์ค์ธ๊ฐ. **๋ก๊ณ ยทํ๊ธฐยท์ด๋ฆยท์ํ ํ๊ทธ๋ ์ด ํค ํ๋๋ก ์ ํด์ง๋ค** โ ์นดํ๋ก๊ทธ
|
|
7
|
+
* (`LAUNCHER_SERVICE_CATALOG`)๊ฐ ๋ค๊ณ ์์ผ๋ฏ๋ก ์ฑ์ด ๋๊ธฐ์ง ์๋๋ค.
|
|
8
|
+
*/
|
|
9
|
+
service: SLauncherService;
|
|
10
|
+
/**
|
|
11
|
+
* ์ ํญ์์ ์ด ์ฃผ์. **๋์์ธ ์์คํ
์ ์ฃผ์๋ฅผ ๋ค์ง ์๋๋ค** โ ์ฑ๋ง๋ค QAยท์ค์๋ฒ๊ฐ ๋ฌ๋ผ
|
|
12
|
+
* ์ฌ๊ธฐ์ ๊ด๋ฆฌํ ์ ์๋ค.
|
|
13
|
+
*
|
|
14
|
+
* **์ฃผ์๋ฅผ ์ฃผ๋ ๊ฒ์ด ๊ณง "๊ฐ ์ ์๋ค"๋ ๋ป์ด๋ค.** ๋น์ฐ๋ฉด ์ค์ ๋ชฉ๋ก์ ๋จ๋ ๋๋ฆฌ์ง ์๊ณ
|
|
15
|
+
* ๋ฌผ๋ฌ๋๋ค โ ์ง๊ธ ๋ณด๊ณ ์๋ ์๋น์ค๋ , ์ด ์ฑ์ด ๊ณ์ฝํ์ง ์์ ์๋น์ค๋ ๊ฐ ๊ณณ์ด ์๊ธฐ๋ ๊ฐ๋ค.
|
|
16
|
+
* ๋ชป ๊ฐ๋ ์ค์ ๋ง๋ ๋ณ๋์ prop ์ ์๋ค.
|
|
17
|
+
*/
|
|
18
|
+
href?: string;
|
|
19
|
+
}
|
|
20
|
+
export interface SLauncherListBoxProps extends Omit<HTMLAttributes<HTMLDivElement>, 'onSelect'> {
|
|
21
|
+
/**
|
|
22
|
+
* ๋ชฉ๋ก์ ์ธ์ธ ์๋น์ค. ๋น์ด ์์ผ๋ฉด ์๋ฌด๊ฒ๋ ๋ ๋ํ์ง ์๋๋ค.
|
|
23
|
+
*
|
|
24
|
+
* **์์๋ ๋๊ธด ๋๋ก๊ฐ ์๋๋ผ ์นดํ๋ก๊ทธ ์์๋ค**(`LAUNCHER_SERVICES`) โ ๊ฐ์ ๋ฐ์ฒ๊ฐ ์ฑ๋ง๋ค
|
|
25
|
+
* ๋ค๋ฅธ ์์๋ก ๋จ๋ฉด ์ฌ์ฉ์๊ฐ ๋งค๋ฒ ๋ค์ ์ฐพ๋๋ค. ๊ฐ์ ์๋น์ค๋ฅผ ๋ ๋ฒ ๋๊ธฐ๋ฉด ์ฒ์ ๊ฒ๋ง ์ ๋ค.
|
|
26
|
+
*/
|
|
27
|
+
items?: SLauncherListBoxItem[];
|
|
28
|
+
/**
|
|
29
|
+
* ์๋น์ค๋ฅผ ๊ณ ๋ฆ. **๊ฐ๋ ๊ฒ์ ์ด ์ฝ๋ฐฑ์ด ํ์ง ์๋๋ค** โ ์ค์ด ๋งํฌ๋ผ ๋ธ๋ผ์ฐ์ ๊ฐ `href` ๋ฅผ
|
|
30
|
+
* ์ ํญ์ผ๋ก ์ฐ๋ค. ๊ณ ๋ฅธ ๊ฒ์ ์ฑ์ด ์์์ผ ํ ๋๋ง(๊ธฐ๋กยท๋ชฉ๋ก ๋ซ๊ธฐ) ์ค๋ค.
|
|
31
|
+
*
|
|
32
|
+
* ๊ฐ ์ ์๋ ์ค(์ฃผ์๊ฐ ์๊ฑฐ๋ ์นดํ๋ก๊ทธ๊ฐ ์์ง ์ถ์ ์ ์ผ๋ก ๋ ์๋น์ค)์ ๋๋ฆฌ์ง ์์ผ๋ฏ๋ก
|
|
33
|
+
* ์ฌ๊ธฐ๋ก ์ค์ง ์๋๋ค.
|
|
34
|
+
*/
|
|
35
|
+
onSelect?: (service: SLauncherService) => void;
|
|
36
|
+
/** ๋ชฉ๋ก(ul)์ ์ ๊ทผ์ฑ ๋ ์ด๋ธ */
|
|
37
|
+
ariaLabel?: string;
|
|
38
|
+
}
|
|
39
|
+
/**
|
|
40
|
+
* SLauncherListBox โ GNB ์ ์ฑ๋ฐ์ฒ ๋ฒํผ์ ๋๋ ์ ๋ ๋จ๋ ์๋น์ค ๋ชฉ๋ก.
|
|
41
|
+
*
|
|
42
|
+
* ํ ์ค์ด ์๋น์ค ํ๋๋ค: ์์ ๋ธ๋๋ ๋ก๊ณ (+ ์ํ ํ๊ทธ), ์๋์ ํ๊ธ ์ด๋ฆ.
|
|
43
|
+
*
|
|
44
|
+
* **์ฑ์ด ๋๊ธฐ๋ ๊ฒ์ ์๋น์ค ํค์ ์ฃผ์ ๋๋ฟ์ด๋ค.** ๋ก๊ณ ยท์๋น์ค ํ๊ธฐยท์ด๋ฆยท์ํ ํ๊ทธ๋ ์นดํ๋ก๊ทธ
|
|
45
|
+
* (`LAUNCHER_SERVICE_CATALOG`)๊ฐ ์๋น์ค๋ง๋ค ํ ๋ชจ์ต์ผ๋ก ์ ํด ๋๋ฏ๋ก ์ฑ์ด ๋๊ธฐ์ง ์๋๋ค โ
|
|
46
|
+
* ๋๊ธฐ๊ฒ ํ๋ฉด ๊ฐ์ ์๋น์ค๊ฐ ์ฑ๋ง๋ค ๋ค๋ฅธ ์ด๋ฆยท์ยท๋ฌธ๊ตฌ๋ก ์ ๋ค.
|
|
47
|
+
*
|
|
48
|
+
* **์ฃผ์๋ ์นดํ๋ก๊ทธ์ ๋์ง ์๋๋ค.** ์ฑ๋ง๋ค QAยท์ค์๋ฒ ์ฃผ์๊ฐ ๋ฌ๋ผ ๋์์ธ ์์คํ
์ด ๊ด๋ฆฌํ ์ ์๋ค.
|
|
49
|
+
* ์ฑ์ด `href` ๋ก ๋๊ธฐ๋ฉด ์ค์ด ๋งํฌ๊ฐ ๋์ด **์ ํญ์์ ์ด๋ฆฐ๋ค** โ ๊ฐ์ด๋ฐ ํด๋ฆญยทโํด๋ฆญ๋ ๊ทธ๋๋ก ๋ฃ๋๋ค.
|
|
50
|
+
* **์ฃผ์๋ฅผ ์ฃผ๋ ๊ฒ์ด ๊ณง "๊ฐ ์ ์๋ค"๋ ๋ป์ด๋ค**: ์ฃผ์ง ์์ ์ค์ ๋๋ฆฌ์ง ์๋๋ค(์ง๊ธ ๋ณด๊ณ ์๋
|
|
51
|
+
* ์๋น์ค์ด๊ฑฐ๋ ์ด ์ฑ์ด ๊ณ์ฝํ์ง ์์ ์๋น์ค). ์ค์ ๋ง๋ ๋ณ๋์ prop ์ ์๋ค.
|
|
52
|
+
*
|
|
53
|
+
* **์ค์ ์น์ผ๋ฉด "์ฌ๊ธฐ์ ๋๊ฐ๋ค"๋ ๊ฒ์ด ๋๋ฌ๋๋ค** โ ๋ฐฐ๊ฒฝ์ด ์
์ ํ๋์ผ๋ก ๋ฌผ๋ค๊ณ ์ด๋ฆ์ด ํ ๋จ๊ณ
|
|
54
|
+
* ์งํด์ง๋ฉฐ, ์ค๋ฅธ์ชฝ ๋์ ํ์ด์ง ์ด๋ ์์ด์ฝ์ด ๋ ์ค๋ฅธ๋ค. ์์ด์ฝ ์๋ฆฌ๋ ๋ ๋น์ ๋๋ฏ๋ก ์น์๋ค ๋ ๋
|
|
55
|
+
* ๊ธ์๊ฐ ๋ฐ๋ฆฌ์ง ์๋๋ค.
|
|
56
|
+
*
|
|
57
|
+
* ๊ฐ ์ ์๋ ์ค์ ๋๋ฆฌ์ง ์๊ณ ๋ก๊ณ ๋ ์์ด ๋น ์ง๋ฉฐ ์ด๋ฆ์ ๋นํ์ฑ ๊ธ์์์ด ๋๋ค. **๋ชฉ๋ก์์ ๋นผ์ง
|
|
58
|
+
* ์๋ ๊ฒ์ด ๊ธฐ๋ณธ์ด๋ค**: ๊ทธ ์๋น์ค๊ฐ ์๋ค๋ ์ฌ์ค๊ณผ ์ง๊ธ์ ๋ชป ๊ฐ๋ค๋ ์ฌ์ค์ ํจ๊ป ์๋ฆฌ๋ ๊ฒ์ด ๋ฐ์ฒ์
|
|
59
|
+
* ์ผ์ด๋ค. ์ถ์ ์ ์ธ ์๋น์ค๋ ์นดํ๋ก๊ทธ๊ฐ `์ถ์์์ ` ํ๊ทธ์ ํจ๊ป ๋ง์ ๋๋ฏ๋ก ์ฑ์ด ํ ์ผ์ด ์๋ค.
|
|
60
|
+
*
|
|
61
|
+
* **์ด ์ปดํฌ๋ํธ๋ ํจ๋๋ง ๊ทธ๋ฆฐ๋ค.** ๋ฐ์ฒ ๋ฒํผ์ ๋ถ์ฌ ๋์ฐ๋ ๊ฒ์ `SGnb` ์ `launcher` ๊ฐ ๋งก์ผ๋ฏ๋ก
|
|
62
|
+
* (`launcher.items` ์ ์ด ๋ชฉ๋ก์ ๋๊ธด๋ค), ์ฑ์ด ์ง์ ํ์ค๋ฒ๋ฅผ ์กฐ๋ฆฝํ ์ผ์ ์๋ค.
|
|
63
|
+
*
|
|
64
|
+
* ํ ํฐ์ `--cmp-gnb-launcher-listBox-*`(ํจ๋) ยท `--cmp-gnb-launcher-button-*`(์ค).
|
|
65
|
+
* **์ค ๋์ด๋ ์์๊ฐ ์๋๋ผ ์ฌ๋ฐฑ์์ ๋์จ๋ค** โ ํ ํฐ์ด ๋ฐ๋๋ฉด ๋ฐ๋ผ ๋ฐ๋๋ค.
|
|
66
|
+
*/
|
|
67
|
+
export declare const SLauncherListBox: import("react").ForwardRefExoticComponent<SLauncherListBoxProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
export { SLauncherListBox, type SLauncherListBoxProps, type SLauncherListBoxItem, } from './SLauncherListBox';
|
|
2
|
+
export { LAUNCHER_LIST_BOX_LAYOUT, LAUNCHER_LIST_BOX_LOGO_HEIGHT, LAUNCHER_LIST_BOX_LOGO_SERVICE_GAP, LAUNCHER_LIST_BOX_TRAILING_ICON, LAUNCHER_LIST_BOX_WIDTH, LAUNCHER_SERVICES, LAUNCHER_SERVICE_CATALOG, type SLauncherService, type SLauncherServiceEntry, } from './launcherListBox.config';
|