@t3q-ui/design-system 1.66.2 → 1.66.3
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/CHANGELOG.md +8 -0
- package/README.md +16 -0
- package/dist/components/_internal/cancelIcon.cjs +66 -0
- package/dist/components/_internal/cancelIcon.cjs.map +1 -0
- package/dist/components/_internal/cancelIcon.js +49 -0
- package/dist/components/_internal/cancelIcon.js.map +1 -0
- package/dist/components/_internal/floatingLabelOutline.cjs +118 -0
- package/dist/components/_internal/floatingLabelOutline.cjs.map +1 -0
- package/dist/components/_internal/floatingLabelOutline.js +118 -0
- package/dist/components/_internal/floatingLabelOutline.js.map +1 -0
- package/dist/components/_internal/labelPass.cjs +37 -0
- package/dist/components/_internal/labelPass.cjs.map +1 -0
- package/dist/components/_internal/labelPass.js +20 -0
- package/dist/components/_internal/labelPass.js.map +1 -0
- package/dist/components/_internal/useCopy.cjs +55 -0
- package/dist/components/_internal/useCopy.cjs.map +1 -0
- package/dist/components/_internal/useCopy.js +55 -0
- package/dist/components/_internal/useCopy.js.map +1 -0
- package/dist/components/_internal/useRestoreFocusToOpener.cjs +41 -0
- package/dist/components/_internal/useRestoreFocusToOpener.cjs.map +1 -0
- package/dist/components/_internal/useRestoreFocusToOpener.js +41 -0
- package/dist/components/_internal/useRestoreFocusToOpener.js.map +1 -0
- package/dist/components/accordion.cjs +115 -0
- package/dist/components/accordion.cjs.map +1 -0
- package/dist/components/accordion.js +97 -0
- package/dist/components/accordion.js.map +1 -0
- package/dist/components/agGridTable/context.cjs +20 -0
- package/dist/components/agGridTable/context.cjs.map +1 -0
- package/dist/components/agGridTable/context.js +20 -0
- package/dist/components/agGridTable/context.js.map +1 -0
- package/dist/components/agGridTable/helpers.ts/getSortedColumnState.cjs +13 -0
- package/dist/components/agGridTable/helpers.ts/getSortedColumnState.cjs.map +1 -0
- package/dist/components/agGridTable/helpers.ts/getSortedColumnState.js +13 -0
- package/dist/components/agGridTable/helpers.ts/getSortedColumnState.js.map +1 -0
- package/dist/components/agGridTable/index.cjs +539 -0
- package/dist/components/agGridTable/index.cjs.map +1 -0
- package/dist/components/agGridTable/index.js +539 -0
- package/dist/components/agGridTable/index.js.map +1 -0
- package/dist/components/agGridTable/localeText.cjs +581 -0
- package/dist/components/agGridTable/localeText.cjs.map +1 -0
- package/dist/components/agGridTable/localeText.js +581 -0
- package/dist/components/agGridTable/localeText.js.map +1 -0
- package/dist/components/alert.cjs +80 -0
- package/dist/components/alert.cjs.map +1 -0
- package/dist/components/alert.js +80 -0
- package/dist/components/alert.js.map +1 -0
- package/dist/components/alertDialog.cjs +160 -0
- package/dist/components/alertDialog.cjs.map +1 -0
- package/dist/components/alertDialog.js +142 -0
- package/dist/components/alertDialog.js.map +1 -0
- package/dist/components/badge.cjs +107 -0
- package/dist/components/badge.cjs.map +1 -0
- package/dist/components/badge.js +90 -0
- package/dist/components/badge.js.map +1 -0
- package/dist/components/breadcrumb.cjs +197 -0
- package/dist/components/breadcrumb.cjs.map +1 -0
- package/dist/components/breadcrumb.js +180 -0
- package/dist/components/breadcrumb.js.map +1 -0
- package/dist/components/button.cjs +198 -0
- package/dist/components/button.cjs.map +1 -0
- package/dist/components/button.js +181 -0
- package/dist/components/button.js.map +1 -0
- package/dist/components/calendar.cjs +386 -0
- package/dist/components/calendar.cjs.map +1 -0
- package/dist/components/calendar.js +369 -0
- package/dist/components/calendar.js.map +1 -0
- package/dist/components/card.cjs +92 -0
- package/dist/components/card.cjs.map +1 -0
- package/dist/components/card.js +92 -0
- package/dist/components/card.js.map +1 -0
- package/dist/components/chatComposer.cjs +196 -0
- package/dist/components/chatComposer.cjs.map +1 -0
- package/dist/components/chatComposer.js +179 -0
- package/dist/components/chatComposer.js.map +1 -0
- package/dist/components/chatHistory.cjs +333 -0
- package/dist/components/chatHistory.cjs.map +1 -0
- package/dist/components/chatHistory.js +316 -0
- package/dist/components/chatHistory.js.map +1 -0
- package/dist/components/chatMessage.cjs +203 -0
- package/dist/components/chatMessage.cjs.map +1 -0
- package/dist/components/chatMessage.js +186 -0
- package/dist/components/chatMessage.js.map +1 -0
- package/dist/components/checkbox.cjs +174 -0
- package/dist/components/checkbox.cjs.map +1 -0
- package/dist/components/checkbox.js +156 -0
- package/dist/components/checkbox.js.map +1 -0
- package/dist/components/checkboxSection.cjs +170 -0
- package/dist/components/checkboxSection.cjs.map +1 -0
- package/dist/components/checkboxSection.js +153 -0
- package/dist/components/checkboxSection.js.map +1 -0
- package/dist/components/columnFilter/ColumnFilter.cjs +421 -0
- package/dist/components/columnFilter/ColumnFilter.cjs.map +1 -0
- package/dist/components/columnFilter/ColumnFilter.js +404 -0
- package/dist/components/columnFilter/ColumnFilter.js.map +1 -0
- package/dist/components/columnFilter/ColumnFilterInput.cjs +788 -0
- package/dist/components/columnFilter/ColumnFilterInput.cjs.map +1 -0
- package/dist/components/columnFilter/ColumnFilterInput.js +771 -0
- package/dist/components/columnFilter/ColumnFilterInput.js.map +1 -0
- package/dist/components/columnFilter/ColumnFilterPopover.cjs +745 -0
- package/dist/components/columnFilter/ColumnFilterPopover.cjs.map +1 -0
- package/dist/components/columnFilter/ColumnFilterPopover.js +728 -0
- package/dist/components/columnFilter/ColumnFilterPopover.js.map +1 -0
- package/dist/components/columnFilter/ColumnFilterTag.cjs +175 -0
- package/dist/components/columnFilter/ColumnFilterTag.cjs.map +1 -0
- package/dist/components/columnFilter/ColumnFilterTag.js +158 -0
- package/dist/components/columnFilter/ColumnFilterTag.js.map +1 -0
- package/dist/components/columnFilter/types.cjs +57 -0
- package/dist/components/columnFilter/types.cjs.map +1 -0
- package/dist/components/columnFilter/types.js +57 -0
- package/dist/components/columnFilter/types.js.map +1 -0
- package/dist/components/columnVisibilityFilter.cjs +119 -0
- package/dist/components/columnVisibilityFilter.cjs.map +1 -0
- package/dist/components/columnVisibilityFilter.js +119 -0
- package/dist/components/columnVisibilityFilter.js.map +1 -0
- package/dist/components/command.cjs +165 -0
- package/dist/components/command.cjs.map +1 -0
- package/dist/components/command.js +148 -0
- package/dist/components/command.js.map +1 -0
- package/dist/components/datePicker.cjs +350 -0
- package/dist/components/datePicker.cjs.map +1 -0
- package/dist/components/datePicker.js +333 -0
- package/dist/components/datePicker.js.map +1 -0
- package/dist/components/datePresets.cjs +314 -0
- package/dist/components/datePresets.cjs.map +1 -0
- package/dist/components/datePresets.js +314 -0
- package/dist/components/datePresets.js.map +1 -0
- package/dist/components/dialog.cjs +182 -0
- package/dist/components/dialog.cjs.map +1 -0
- package/dist/components/dialog.js +164 -0
- package/dist/components/dialog.js.map +1 -0
- package/dist/components/drawer.cjs +184 -0
- package/dist/components/drawer.cjs.map +1 -0
- package/dist/components/drawer.js +166 -0
- package/dist/components/drawer.js.map +1 -0
- package/dist/components/dropdownMenu.cjs +177 -0
- package/dist/components/dropdownMenu.cjs.map +1 -0
- package/dist/components/dropdownMenu.js +159 -0
- package/dist/components/dropdownMenu.js.map +1 -0
- package/dist/components/emptyBoxIllustration.cjs +119 -0
- package/dist/components/emptyBoxIllustration.cjs.map +1 -0
- package/dist/components/emptyBoxIllustration.js +102 -0
- package/dist/components/emptyBoxIllustration.js.map +1 -0
- package/dist/components/eventList.cjs +49 -0
- package/dist/components/eventList.cjs.map +1 -0
- package/dist/components/eventList.js +49 -0
- package/dist/components/eventList.js.map +1 -0
- package/dist/components/form.cjs +260 -0
- package/dist/components/form.cjs.map +1 -0
- package/dist/components/form.js +243 -0
- package/dist/components/form.js.map +1 -0
- package/dist/components/iconButton.cjs +77 -0
- package/dist/components/iconButton.cjs.map +1 -0
- package/dist/components/iconButton.js +60 -0
- package/dist/components/iconButton.js.map +1 -0
- package/dist/components/iconSelect/icons.json.cjs +13 -0
- package/dist/components/iconSelect/icons.json.cjs.map +1 -0
- package/dist/components/iconSelect/icons.json.js +13 -0
- package/dist/components/iconSelect/icons.json.js.map +1 -0
- package/dist/components/iconSelect/index.cjs +170 -0
- package/dist/components/iconSelect/index.cjs.map +1 -0
- package/dist/components/iconSelect/index.js +170 -0
- package/dist/components/iconSelect/index.js.map +1 -0
- package/dist/components/label.cjs +30 -0
- package/dist/components/label.cjs.map +1 -0
- package/dist/components/label.js +13 -0
- package/dist/components/label.js.map +1 -0
- package/dist/components/lucideIcon.cjs +42 -0
- package/dist/components/lucideIcon.cjs.map +1 -0
- package/dist/components/lucideIcon.js +25 -0
- package/dist/components/lucideIcon.js.map +1 -0
- package/dist/components/metaItem.cjs +100 -0
- package/dist/components/metaItem.cjs.map +1 -0
- package/dist/components/metaItem.js +100 -0
- package/dist/components/metaItem.js.map +1 -0
- package/dist/components/multiSelect/multiSelect.cjs +125 -0
- package/dist/components/multiSelect/multiSelect.cjs.map +1 -0
- package/dist/components/multiSelect/multiSelect.js +107 -0
- package/dist/components/multiSelect/multiSelect.js.map +1 -0
- package/dist/components/multiSelect/multiSelectContent.cjs +119 -0
- package/dist/components/multiSelect/multiSelectContent.cjs.map +1 -0
- package/dist/components/multiSelect/multiSelectContent.js +101 -0
- package/dist/components/multiSelect/multiSelectContent.js.map +1 -0
- package/dist/components/multiSelect/multiSelectContext.cjs +32 -0
- package/dist/components/multiSelect/multiSelectContext.cjs.map +1 -0
- package/dist/components/multiSelect/multiSelectContext.js +15 -0
- package/dist/components/multiSelect/multiSelectContext.js.map +1 -0
- package/dist/components/multiSelect/multiSelectEmpty.cjs +47 -0
- package/dist/components/multiSelect/multiSelectEmpty.cjs.map +1 -0
- package/dist/components/multiSelect/multiSelectEmpty.js +30 -0
- package/dist/components/multiSelect/multiSelectEmpty.js.map +1 -0
- package/dist/components/multiSelect/multiSelectGroup.cjs +47 -0
- package/dist/components/multiSelect/multiSelectGroup.cjs.map +1 -0
- package/dist/components/multiSelect/multiSelectGroup.js +30 -0
- package/dist/components/multiSelect/multiSelectGroup.js.map +1 -0
- package/dist/components/multiSelect/multiSelectInput.cjs +73 -0
- package/dist/components/multiSelect/multiSelectInput.cjs.map +1 -0
- package/dist/components/multiSelect/multiSelectInput.js +56 -0
- package/dist/components/multiSelect/multiSelectInput.js.map +1 -0
- package/dist/components/multiSelect/multiSelectItem.cjs +129 -0
- package/dist/components/multiSelect/multiSelectItem.cjs.map +1 -0
- package/dist/components/multiSelect/multiSelectItem.js +112 -0
- package/dist/components/multiSelect/multiSelectItem.js.map +1 -0
- package/dist/components/multiSelect/multiSelectLoading.cjs +52 -0
- package/dist/components/multiSelect/multiSelectLoading.cjs.map +1 -0
- package/dist/components/multiSelect/multiSelectLoading.js +35 -0
- package/dist/components/multiSelect/multiSelectLoading.js.map +1 -0
- package/dist/components/multiSelect/multiSelectSeparator.cjs +42 -0
- package/dist/components/multiSelect/multiSelectSeparator.cjs.map +1 -0
- package/dist/components/multiSelect/multiSelectSeparator.js +25 -0
- package/dist/components/multiSelect/multiSelectSeparator.js.map +1 -0
- package/dist/components/multiSelect/multiSelectTrigger.cjs +306 -0
- package/dist/components/multiSelect/multiSelectTrigger.cjs.map +1 -0
- package/dist/components/multiSelect/multiSelectTrigger.js +288 -0
- package/dist/components/multiSelect/multiSelectTrigger.js.map +1 -0
- package/dist/components/pageHeader.cjs +161 -0
- package/dist/components/pageHeader.cjs.map +1 -0
- package/dist/components/pageHeader.js +161 -0
- package/dist/components/pageHeader.js.map +1 -0
- package/dist/components/pageHeaderRefreshButton.cjs +59 -0
- package/dist/components/pageHeaderRefreshButton.cjs.map +1 -0
- package/dist/components/pageHeaderRefreshButton.js +59 -0
- package/dist/components/pageHeaderRefreshButton.js.map +1 -0
- package/dist/components/pagination.cjs +264 -0
- package/dist/components/pagination.cjs.map +1 -0
- package/dist/components/pagination.js +247 -0
- package/dist/components/pagination.js.map +1 -0
- package/dist/components/panel.cjs +76 -0
- package/dist/components/panel.cjs.map +1 -0
- package/dist/components/panel.js +59 -0
- package/dist/components/panel.js.map +1 -0
- package/dist/components/parameterTable/ParameterTable.cjs +932 -0
- package/dist/components/parameterTable/ParameterTable.cjs.map +1 -0
- package/dist/components/parameterTable/ParameterTable.js +915 -0
- package/dist/components/parameterTable/ParameterTable.js.map +1 -0
- package/dist/components/parameterTable/ParameterTableRow.cjs +209 -0
- package/dist/components/parameterTable/ParameterTableRow.cjs.map +1 -0
- package/dist/components/parameterTable/ParameterTableRow.js +192 -0
- package/dist/components/parameterTable/ParameterTableRow.js.map +1 -0
- package/dist/components/parameterTable/cellSelection/clipboard.cjs +165 -0
- package/dist/components/parameterTable/cellSelection/clipboard.cjs.map +1 -0
- package/dist/components/parameterTable/cellSelection/clipboard.js +165 -0
- package/dist/components/parameterTable/cellSelection/clipboard.js.map +1 -0
- package/dist/components/parameterTable/cellSelection/types.cjs +20 -0
- package/dist/components/parameterTable/cellSelection/types.cjs.map +1 -0
- package/dist/components/parameterTable/cellSelection/types.js +20 -0
- package/dist/components/parameterTable/cellSelection/types.js.map +1 -0
- package/dist/components/parameterTable/types.cjs +15 -0
- package/dist/components/parameterTable/types.cjs.map +1 -0
- package/dist/components/parameterTable/types.js +15 -0
- package/dist/components/parameterTable/types.js.map +1 -0
- package/dist/components/popover.cjs +53 -0
- package/dist/components/popover.cjs.map +1 -0
- package/dist/components/popover.js +35 -0
- package/dist/components/popover.js.map +1 -0
- package/dist/components/progress.cjs +63 -0
- package/dist/components/progress.cjs.map +1 -0
- package/dist/components/progress.js +46 -0
- package/dist/components/progress.js.map +1 -0
- package/dist/components/radio.cjs +35 -0
- package/dist/components/radio.cjs.map +1 -0
- package/dist/components/radio.js +35 -0
- package/dist/components/radio.js.map +1 -0
- package/dist/components/radioGroup.cjs +73 -0
- package/dist/components/radioGroup.cjs.map +1 -0
- package/dist/components/radioGroup.js +56 -0
- package/dist/components/radioGroup.js.map +1 -0
- package/dist/components/radioSection.cjs +169 -0
- package/dist/components/radioSection.cjs.map +1 -0
- package/dist/components/radioSection.js +151 -0
- package/dist/components/radioSection.js.map +1 -0
- package/dist/components/range/range.cjs +132 -0
- package/dist/components/range/range.cjs.map +1 -0
- package/dist/components/range/range.js +115 -0
- package/dist/components/range/range.js.map +1 -0
- package/dist/components/range/rangeSlider.cjs +113 -0
- package/dist/components/range/rangeSlider.cjs.map +1 -0
- package/dist/components/range/rangeSlider.js +95 -0
- package/dist/components/range/rangeSlider.js.map +1 -0
- package/dist/components/range/ticks.cjs +90 -0
- package/dist/components/range/ticks.cjs.map +1 -0
- package/dist/components/range/ticks.js +90 -0
- package/dist/components/range/ticks.js.map +1 -0
- package/dist/components/range/useNumberInput.cjs +58 -0
- package/dist/components/range/useNumberInput.cjs.map +1 -0
- package/dist/components/range/useNumberInput.js +41 -0
- package/dist/components/range/useNumberInput.js.map +1 -0
- package/dist/components/range/useRangeValue.cjs +83 -0
- package/dist/components/range/useRangeValue.cjs.map +1 -0
- package/dist/components/range/useRangeValue.js +66 -0
- package/dist/components/range/useRangeValue.js.map +1 -0
- package/dist/components/select/select.cjs +86 -0
- package/dist/components/select/select.cjs.map +1 -0
- package/dist/components/select/select.js +68 -0
- package/dist/components/select/select.js.map +1 -0
- package/dist/components/select/selectContent.cjs +121 -0
- package/dist/components/select/selectContent.cjs.map +1 -0
- package/dist/components/select/selectContent.js +103 -0
- package/dist/components/select/selectContent.js.map +1 -0
- package/dist/components/select/selectContext.cjs +32 -0
- package/dist/components/select/selectContext.cjs.map +1 -0
- package/dist/components/select/selectContext.js +15 -0
- package/dist/components/select/selectContext.js.map +1 -0
- package/dist/components/select/selectEmpty.cjs +51 -0
- package/dist/components/select/selectEmpty.cjs.map +1 -0
- package/dist/components/select/selectEmpty.js +34 -0
- package/dist/components/select/selectEmpty.js.map +1 -0
- package/dist/components/select/selectGroup.cjs +47 -0
- package/dist/components/select/selectGroup.cjs.map +1 -0
- package/dist/components/select/selectGroup.js +30 -0
- package/dist/components/select/selectGroup.js.map +1 -0
- package/dist/components/select/selectInput.cjs +73 -0
- package/dist/components/select/selectInput.cjs.map +1 -0
- package/dist/components/select/selectInput.js +56 -0
- package/dist/components/select/selectInput.js.map +1 -0
- package/dist/components/select/selectItem.cjs +93 -0
- package/dist/components/select/selectItem.cjs.map +1 -0
- package/dist/components/select/selectItem.js +76 -0
- package/dist/components/select/selectItem.js.map +1 -0
- package/dist/components/select/selectItemContent.cjs +36 -0
- package/dist/components/select/selectItemContent.cjs.map +1 -0
- package/dist/components/select/selectItemContent.js +36 -0
- package/dist/components/select/selectItemContent.js.map +1 -0
- package/dist/components/select/selectLoading.cjs +52 -0
- package/dist/components/select/selectLoading.cjs.map +1 -0
- package/dist/components/select/selectLoading.js +35 -0
- package/dist/components/select/selectLoading.js.map +1 -0
- package/dist/components/select/selectRadioGroup.cjs +45 -0
- package/dist/components/select/selectRadioGroup.cjs.map +1 -0
- package/dist/components/select/selectRadioGroup.js +28 -0
- package/dist/components/select/selectRadioGroup.js.map +1 -0
- package/dist/components/select/selectRadioItem.cjs +113 -0
- package/dist/components/select/selectRadioItem.cjs.map +1 -0
- package/dist/components/select/selectRadioItem.js +96 -0
- package/dist/components/select/selectRadioItem.js.map +1 -0
- package/dist/components/select/selectSeparator.cjs +42 -0
- package/dist/components/select/selectSeparator.cjs.map +1 -0
- package/dist/components/select/selectSeparator.js +25 -0
- package/dist/components/select/selectSeparator.js.map +1 -0
- package/dist/components/select/selectTrigger.cjs +187 -0
- package/dist/components/select/selectTrigger.cjs.map +1 -0
- package/dist/components/select/selectTrigger.js +169 -0
- package/dist/components/select/selectTrigger.js.map +1 -0
- package/dist/components/select/selectValue.cjs +16 -0
- package/dist/components/select/selectValue.cjs.map +1 -0
- package/dist/components/select/selectValue.js +16 -0
- package/dist/components/select/selectValue.js.map +1 -0
- package/dist/components/separator.cjs +42 -0
- package/dist/components/separator.cjs.map +1 -0
- package/dist/components/separator.js +24 -0
- package/dist/components/separator.js.map +1 -0
- package/dist/components/sidebar/index.cjs +404 -0
- package/dist/components/sidebar/index.cjs.map +1 -0
- package/dist/components/sidebar/index.js +387 -0
- package/dist/components/sidebar/index.js.map +1 -0
- package/dist/components/skeleton/index.cjs +10 -0
- package/dist/components/skeleton/index.cjs.map +1 -0
- package/dist/components/skeleton/index.js +10 -0
- package/dist/components/skeleton/index.js.map +1 -0
- package/dist/components/skeleton/table.cjs +80 -0
- package/dist/components/skeleton/table.cjs.map +1 -0
- package/dist/components/skeleton/table.js +80 -0
- package/dist/components/skeleton/table.js.map +1 -0
- package/dist/components/spinner/index.cjs +103 -0
- package/dist/components/spinner/index.cjs.map +1 -0
- package/dist/components/spinner/index.js +103 -0
- package/dist/components/spinner/index.js.map +1 -0
- package/dist/components/spinner/spinner.json.cjs +40 -0
- package/dist/components/spinner/spinner.json.cjs.map +1 -0
- package/dist/components/spinner/spinner.json.js +40 -0
- package/dist/components/spinner/spinner.json.js.map +1 -0
- package/dist/components/stack/index.cjs +65 -0
- package/dist/components/stack/index.cjs.map +1 -0
- package/dist/components/stack/index.js +65 -0
- package/dist/components/stack/index.js.map +1 -0
- package/dist/components/switch.cjs +106 -0
- package/dist/components/switch.cjs.map +1 -0
- package/dist/components/switch.js +88 -0
- package/dist/components/switch.js.map +1 -0
- package/dist/components/switchSection.cjs +84 -0
- package/dist/components/switchSection.cjs.map +1 -0
- package/dist/components/switchSection.js +67 -0
- package/dist/components/switchSection.js.map +1 -0
- package/dist/components/table.cjs +268 -0
- package/dist/components/table.cjs.map +1 -0
- package/dist/{chunk-DWF6AFPQ.js → components/table.js} +37 -195
- package/dist/components/table.js.map +1 -0
- package/dist/components/tableFilter.cjs +423 -0
- package/dist/components/tableFilter.cjs.map +1 -0
- package/dist/components/tableFilter.js +423 -0
- package/dist/components/tableFilter.js.map +1 -0
- package/dist/components/tableFilterParts.cjs +232 -0
- package/dist/components/tableFilterParts.cjs.map +1 -0
- package/dist/components/tableFilterParts.js +215 -0
- package/dist/components/tableFilterParts.js.map +1 -0
- package/dist/components/tabs.cjs +133 -0
- package/dist/components/tabs.cjs.map +1 -0
- package/dist/components/tabs.js +115 -0
- package/dist/components/tabs.js.map +1 -0
- package/dist/components/tag.cjs +237 -0
- package/dist/components/tag.cjs.map +1 -0
- package/dist/components/tag.js +237 -0
- package/dist/components/tag.js.map +1 -0
- package/dist/components/textArea.cjs +223 -0
- package/dist/components/textArea.cjs.map +1 -0
- package/dist/components/textArea.js +206 -0
- package/dist/components/textArea.js.map +1 -0
- package/dist/components/textField.cjs +257 -0
- package/dist/components/textField.cjs.map +1 -0
- package/dist/components/textField.js +240 -0
- package/dist/components/textField.js.map +1 -0
- package/dist/components/themeProvider.cjs +106 -0
- package/dist/components/themeProvider.cjs.map +1 -0
- package/dist/components/themeProvider.js +89 -0
- package/dist/components/themeProvider.js.map +1 -0
- package/dist/components/timePicker.cjs +495 -0
- package/dist/components/timePicker.cjs.map +1 -0
- package/dist/components/timePicker.js +478 -0
- package/dist/components/timePicker.js.map +1 -0
- package/dist/components/toast.cjs +57 -0
- package/dist/components/toast.cjs.map +1 -0
- package/dist/components/toast.js +57 -0
- package/dist/components/toast.js.map +1 -0
- package/dist/components/toggleGroup.cjs +85 -0
- package/dist/components/toggleGroup.cjs.map +1 -0
- package/dist/components/toggleGroup.js +67 -0
- package/dist/components/toggleGroup.js.map +1 -0
- package/dist/components/tooltip.cjs +69 -0
- package/dist/components/tooltip.cjs.map +1 -0
- package/dist/components/tooltip.js +51 -0
- package/dist/components/tooltip.js.map +1 -0
- package/dist/design-system.css +536 -0
- package/dist/hooks/useFloatingLabel.cjs +82 -0
- package/dist/hooks/useFloatingLabel.cjs.map +1 -0
- package/dist/hooks/useFloatingLabel.js +65 -0
- package/dist/hooks/useFloatingLabel.js.map +1 -0
- package/dist/index.cjs +356 -10367
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +353 -9673
- package/dist/index.js.map +1 -1
- package/dist/markdown/highlight.cjs +229 -0
- package/dist/markdown/highlight.cjs.map +1 -0
- package/dist/markdown/highlight.js +207 -0
- package/dist/markdown/highlight.js.map +1 -0
- package/dist/markdown/index.cjs +5 -445
- package/dist/markdown/index.cjs.map +1 -1
- package/dist/markdown/index.js +4 -437
- package/dist/markdown/index.js.map +1 -1
- package/dist/markdown/markdown.cjs +246 -0
- package/dist/markdown/markdown.cjs.map +1 -0
- package/dist/markdown/markdown.js +246 -0
- package/dist/markdown/markdown.js.map +1 -0
- package/dist/patterns/chatPage.cjs +356 -0
- package/dist/patterns/chatPage.cjs.map +1 -0
- package/dist/patterns/chatPage.js +356 -0
- package/dist/patterns/chatPage.js.map +1 -0
- package/dist/patterns/chatPanel.cjs +44 -0
- package/dist/patterns/chatPanel.cjs.map +1 -0
- package/dist/patterns/chatPanel.js +44 -0
- package/dist/patterns/chatPanel.js.map +1 -0
- package/dist/patterns/chatShell.cjs +321 -0
- package/dist/patterns/chatShell.cjs.map +1 -0
- package/dist/patterns/chatShell.js +321 -0
- package/dist/patterns/chatShell.js.map +1 -0
- package/dist/patterns/dashboardLayout.cjs +158 -0
- package/dist/patterns/dashboardLayout.cjs.map +1 -0
- package/dist/patterns/dashboardLayout.js +158 -0
- package/dist/patterns/dashboardLayout.js.map +1 -0
- package/dist/patterns/detailPage.cjs +144 -0
- package/dist/patterns/detailPage.cjs.map +1 -0
- package/dist/patterns/detailPage.js +144 -0
- package/dist/patterns/detailPage.js.map +1 -0
- package/dist/patterns/formDialog.cjs +58 -0
- package/dist/patterns/formDialog.cjs.map +1 -0
- package/dist/patterns/formDialog.js +58 -0
- package/dist/patterns/formDialog.js.map +1 -0
- package/dist/patterns/formDrawer.cjs +61 -0
- package/dist/patterns/formDrawer.cjs.map +1 -0
- package/dist/patterns/formDrawer.js +61 -0
- package/dist/patterns/formDrawer.js.map +1 -0
- package/dist/patterns/formPage.cjs +124 -0
- package/dist/patterns/formPage.cjs.map +1 -0
- package/dist/patterns/formPage.js +124 -0
- package/dist/patterns/formPage.js.map +1 -0
- package/dist/patterns/formShell.cjs +58 -0
- package/dist/patterns/formShell.cjs.map +1 -0
- package/dist/patterns/formShell.js +58 -0
- package/dist/patterns/formShell.js.map +1 -0
- package/dist/patterns/index.cjs +25 -1571
- package/dist/patterns/index.cjs.map +1 -1
- package/dist/patterns/index.js +24 -1556
- package/dist/patterns/index.js.map +1 -1
- package/dist/patterns/listPage.cjs +241 -0
- package/dist/patterns/listPage.cjs.map +1 -0
- package/dist/patterns/listPage.js +241 -0
- package/dist/patterns/listPage.js.map +1 -0
- package/dist/patterns/listPageRules.cjs +46 -0
- package/dist/patterns/listPageRules.cjs.map +1 -0
- package/dist/patterns/listPageRules.js +46 -0
- package/dist/patterns/listPageRules.js.map +1 -0
- package/dist/patterns/states.cjs +93 -0
- package/dist/patterns/states.cjs.map +1 -0
- package/dist/patterns/states.js +93 -0
- package/dist/patterns/states.js.map +1 -0
- package/dist/utils/cn.cjs +41 -0
- package/dist/utils/cn.cjs.map +1 -0
- package/dist/utils/cn.js +41 -0
- package/dist/utils/cn.js.map +1 -0
- package/dist/utils/columnWidths.cjs +37 -0
- package/dist/utils/columnWidths.cjs.map +1 -0
- package/dist/utils/columnWidths.js +37 -0
- package/dist/utils/columnWidths.js.map +1 -0
- package/dist/utils/message.cjs +11 -0
- package/dist/utils/message.cjs.map +1 -0
- package/dist/utils/message.js +11 -0
- package/dist/utils/message.js.map +1 -0
- package/dist/utils/sanitizeUserText.cjs +10 -0
- package/dist/utils/sanitizeUserText.cjs.map +1 -0
- package/dist/utils/sanitizeUserText.js +10 -0
- package/dist/utils/sanitizeUserText.js.map +1 -0
- package/dist/utils/word.cjs +14 -0
- package/dist/utils/word.cjs.map +1 -0
- package/dist/utils/word.js +14 -0
- package/dist/utils/word.js.map +1 -0
- package/package.json +3 -3
- package/dist/chunk-6YLIVCCY.js +0 -5671
- package/dist/chunk-6YLIVCCY.js.map +0 -1
- package/dist/chunk-DWF6AFPQ.js.map +0 -1
- package/dist/chunk-KDMSA5J3.cjs +0 -5831
- package/dist/chunk-KDMSA5J3.cjs.map +0 -1
- package/dist/chunk-OQOBPYZT.cjs +0 -443
- package/dist/chunk-OQOBPYZT.cjs.map +0 -1
- package/dist/index.css +0 -347
- package/dist/index.css.map +0 -1
- package/dist/patterns/index.css +0 -268
- package/dist/patterns/index.css.map +0 -1
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
"use strict";
|
|
3
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
4
|
+
const jsxRuntime = require("react/jsx-runtime");
|
|
5
|
+
const React = require("react");
|
|
6
|
+
const cn = require("../utils/cn.cjs");
|
|
7
|
+
function _interopNamespaceDefault(e) {
|
|
8
|
+
const n = Object.create(null, { [Symbol.toStringTag]: { value: "Module" } });
|
|
9
|
+
if (e) {
|
|
10
|
+
for (const k in e) {
|
|
11
|
+
if (k !== "default") {
|
|
12
|
+
const d = Object.getOwnPropertyDescriptor(e, k);
|
|
13
|
+
Object.defineProperty(n, k, d.get ? d : {
|
|
14
|
+
enumerable: true,
|
|
15
|
+
get: () => e[k]
|
|
16
|
+
});
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
n.default = e;
|
|
21
|
+
return Object.freeze(n);
|
|
22
|
+
}
|
|
23
|
+
const React__namespace = /* @__PURE__ */ _interopNamespaceDefault(React);
|
|
24
|
+
const EmptyBoxIllustration = React__namespace.forwardRef(
|
|
25
|
+
({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsxs(
|
|
26
|
+
"svg",
|
|
27
|
+
{
|
|
28
|
+
ref,
|
|
29
|
+
width: "110",
|
|
30
|
+
height: "81",
|
|
31
|
+
viewBox: "0 0 110 81",
|
|
32
|
+
fill: "none",
|
|
33
|
+
"aria-hidden": "true",
|
|
34
|
+
focusable: "false",
|
|
35
|
+
className: cn.cn("shrink-0 text-sys-text-subtler", className),
|
|
36
|
+
...props,
|
|
37
|
+
children: [
|
|
38
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
39
|
+
"path",
|
|
40
|
+
{
|
|
41
|
+
d: "M1.55091 22.2887C0.694367 20.8214 1.37735 19.6318 3.0764 19.6318H39.8091C41.5081 19.6318 43.5799 20.8214 44.4364 22.2887L55 40.3852H12.1145L1.55091 22.2887Z",
|
|
42
|
+
className: "fill-primary10"
|
|
43
|
+
}
|
|
44
|
+
),
|
|
45
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
46
|
+
"path",
|
|
47
|
+
{
|
|
48
|
+
d: "M39.4248 7.0527C29.698 8.46843 22.5682 14.7206 23.4998 21.0174C24.1651 25.5135 28.761 28.815 34.8759 29.8212C38.8785 35.0171 44.6939 37.349 42.0205 34.1458C40.8408 32.7322 40.7157 31.3203 41.1314 30.0456C41.6829 29.9991 42.2394 29.9376 42.7994 29.8561C52.5264 28.4404 59.6562 22.1873 58.7243 15.8905C57.7923 9.59377 49.1517 5.63697 39.4248 7.0527Z",
|
|
49
|
+
className: "fill-current"
|
|
50
|
+
}
|
|
51
|
+
),
|
|
52
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
53
|
+
"ellipse",
|
|
54
|
+
{
|
|
55
|
+
cx: "1.60448",
|
|
56
|
+
cy: "1.58788",
|
|
57
|
+
rx: "1.60448",
|
|
58
|
+
ry: "1.58788",
|
|
59
|
+
transform: "matrix(-0.989573 0.144031 0.14639 0.989227 49.8203 15.77)",
|
|
60
|
+
className: "fill-sys-background"
|
|
61
|
+
}
|
|
62
|
+
),
|
|
63
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
64
|
+
"ellipse",
|
|
65
|
+
{
|
|
66
|
+
cx: "1.60448",
|
|
67
|
+
cy: "1.58788",
|
|
68
|
+
rx: "1.60448",
|
|
69
|
+
ry: "1.58788",
|
|
70
|
+
transform: "matrix(-0.989573 0.144031 0.14639 0.989227 42.8682 16.769)",
|
|
71
|
+
className: "fill-sys-background"
|
|
72
|
+
}
|
|
73
|
+
),
|
|
74
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
75
|
+
"ellipse",
|
|
76
|
+
{
|
|
77
|
+
cx: "1.60448",
|
|
78
|
+
cy: "1.58788",
|
|
79
|
+
rx: "1.60448",
|
|
80
|
+
ry: "1.58788",
|
|
81
|
+
transform: "matrix(-0.989573 0.144031 0.14639 0.989227 35.916 17.7686)",
|
|
82
|
+
className: "fill-sys-background"
|
|
83
|
+
}
|
|
84
|
+
),
|
|
85
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
86
|
+
"path",
|
|
87
|
+
{
|
|
88
|
+
d: "M12.1143 40.2407H54.9997V80.5002H18.2671C14.869 80.5002 12.1143 77.7455 12.1143 74.3474V40.2407Z",
|
|
89
|
+
className: "fill-sys-background"
|
|
90
|
+
}
|
|
91
|
+
),
|
|
92
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
93
|
+
"path",
|
|
94
|
+
{
|
|
95
|
+
d: "M12.1143 40.2407H54.9997V80.5002H18.2671C14.869 80.5002 12.1143 77.7455 12.1143 74.3474V40.2407Z",
|
|
96
|
+
className: "fill-primary20 opacity-16"
|
|
97
|
+
}
|
|
98
|
+
),
|
|
99
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
100
|
+
"path",
|
|
101
|
+
{
|
|
102
|
+
d: "M108.449 22.2882C109.306 20.8209 108.623 19.6313 106.924 19.6313H70.1909C68.4919 19.6313 66.4201 20.8209 65.5636 22.2882L55 40.3847H97.8855L108.449 22.2882Z",
|
|
103
|
+
className: "fill-primary20"
|
|
104
|
+
}
|
|
105
|
+
),
|
|
106
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
107
|
+
"path",
|
|
108
|
+
{
|
|
109
|
+
d: "M55 40.2407H97.8855V74.3474C97.8855 77.7455 95.1308 80.5002 91.7327 80.5002H55V40.2407Z",
|
|
110
|
+
className: "fill-primary20 opacity-50"
|
|
111
|
+
}
|
|
112
|
+
)
|
|
113
|
+
]
|
|
114
|
+
}
|
|
115
|
+
)
|
|
116
|
+
);
|
|
117
|
+
EmptyBoxIllustration.displayName = "EmptyBoxIllustration";
|
|
118
|
+
exports.EmptyBoxIllustration = EmptyBoxIllustration;
|
|
119
|
+
//# sourceMappingURL=emptyBoxIllustration.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"emptyBoxIllustration.cjs","sources":["../../src/components/emptyBoxIllustration.tsx"],"sourcesContent":["import * as React from 'react'\n\nimport { cn } from '../utils/cn'\n\n/**\n * 빈 상태 일러스트. dl-ui-v3 의 `empty_box.svg`(사용자 정보 화면의 빈 패널)를 토큰 색으로 옮겨 라이트·다크 테마를 따른다.\n *\n * 언제 쓰나: EmptyState 의 기본 그림(목록·상세·대시보드의 \"없음\" 상자). 소비 앱의 빈 패널(dl-ui-v3 `CEmptyBox`)도 이것으로 대체한다.\n * 언제 안 쓰나: 오류 안내(→ ErrorState 의 경고 아이콘), 로딩(→ LoadingState), 표 안의 한 줄 빈 결과(ListPage 는 문장만 쓴다).\n * 대신/함께: 색은 `fill-primary10/20`·`fill-sys-background`·`fill-current`(종이 = `text-sys-text-subtler`, 원본의 grayscale60) 로 토큰을 따르므로 `className` 으로는 크기·여백만 바꾼다(기본 110×81). 장식이라 `aria-hidden`.\n */\nconst EmptyBoxIllustration = React.forwardRef<SVGSVGElement, React.SVGProps<SVGSVGElement>>(\n ({ className, ...props }, ref) => (\n <svg\n ref={ref}\n width='110'\n height='81'\n viewBox='0 0 110 81'\n fill='none'\n aria-hidden='true'\n focusable='false'\n className={cn('shrink-0 text-sys-text-subtler', className)}\n {...props}\n >\n {/* 왼쪽 덮개 — 연한 주조색 */}\n <path\n d='M1.55091 22.2887C0.694367 20.8214 1.37735 19.6318 3.0764 19.6318H39.8091C41.5081 19.6318 43.5799 20.8214 44.4364 22.2887L55 40.3852H12.1145L1.55091 22.2887Z'\n className='fill-primary10'\n />\n {/* 구겨진 종이 — 글자 보조색(currentColor) */}\n <path\n d='M39.4248 7.0527C29.698 8.46843 22.5682 14.7206 23.4998 21.0174C24.1651 25.5135 28.761 28.815 34.8759 29.8212C38.8785 35.0171 44.6939 37.349 42.0205 34.1458C40.8408 32.7322 40.7157 31.3203 41.1314 30.0456C41.6829 29.9991 42.2394 29.9376 42.7994 29.8561C52.5264 28.4404 59.6562 22.1873 58.7243 15.8905C57.7923 9.59377 49.1517 5.63697 39.4248 7.0527Z'\n className='fill-current'\n />\n {/* 종이의 점 3개 — 바탕색으로 뚫린 것처럼 */}\n <ellipse\n cx='1.60448'\n cy='1.58788'\n rx='1.60448'\n ry='1.58788'\n transform='matrix(-0.989573 0.144031 0.14639 0.989227 49.8203 15.77)'\n className='fill-sys-background'\n />\n <ellipse\n cx='1.60448'\n cy='1.58788'\n rx='1.60448'\n ry='1.58788'\n transform='matrix(-0.989573 0.144031 0.14639 0.989227 42.8682 16.769)'\n className='fill-sys-background'\n />\n <ellipse\n cx='1.60448'\n cy='1.58788'\n rx='1.60448'\n ry='1.58788'\n transform='matrix(-0.989573 0.144031 0.14639 0.989227 35.916 17.7686)'\n className='fill-sys-background'\n />\n {/* 상자 앞면 — 바탕색 위에 주조색 16% */}\n <path\n d='M12.1143 40.2407H54.9997V80.5002H18.2671C14.869 80.5002 12.1143 77.7455 12.1143 74.3474V40.2407Z'\n className='fill-sys-background'\n />\n <path\n d='M12.1143 40.2407H54.9997V80.5002H18.2671C14.869 80.5002 12.1143 77.7455 12.1143 74.3474V40.2407Z'\n className='fill-primary20 opacity-16'\n />\n {/* 오른쪽 덮개 — 주조색 */}\n <path\n d='M108.449 22.2882C109.306 20.8209 108.623 19.6313 106.924 19.6313H70.1909C68.4919 19.6313 66.4201 20.8209 65.5636 22.2882L55 40.3847H97.8855L108.449 22.2882Z'\n className='fill-primary20'\n />\n {/* 상자 오른쪽 면 — 주조색 50% */}\n <path\n d='M55 40.2407H97.8855V74.3474C97.8855 77.7455 95.1308 80.5002 91.7327 80.5002H55V40.2407Z'\n className='fill-primary20 opacity-50'\n />\n </svg>\n ),\n)\nEmptyBoxIllustration.displayName = 'EmptyBoxIllustration'\n\nexport { EmptyBoxIllustration }\n"],"names":["React","jsxs","cn","jsx"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AAWA,MAAM,uBAAuBA,iBAAM;AAAA,EACjC,CAAC,EAAE,WAAW,GAAG,MAAA,GAAS,QACxBC,2BAAAA;AAAAA,IAAC;AAAA,IAAA;AAAA,MACC;AAAA,MACA,OAAM;AAAA,MACN,QAAO;AAAA,MACP,SAAQ;AAAA,MACR,MAAK;AAAA,MACL,eAAY;AAAA,MACZ,WAAU;AAAA,MACV,WAAWC,GAAAA,GAAG,kCAAkC,SAAS;AAAA,MACxD,GAAG;AAAA,MAGJ,UAAA;AAAA,QAAAC,2BAAAA;AAAAA,UAAC;AAAA,UAAA;AAAA,YACC,GAAE;AAAA,YACF,WAAU;AAAA,UAAA;AAAA,QAAA;AAAA,QAGZA,2BAAAA;AAAAA,UAAC;AAAA,UAAA;AAAA,YACC,GAAE;AAAA,YACF,WAAU;AAAA,UAAA;AAAA,QAAA;AAAA,QAGZA,2BAAAA;AAAAA,UAAC;AAAA,UAAA;AAAA,YACC,IAAG;AAAA,YACH,IAAG;AAAA,YACH,IAAG;AAAA,YACH,IAAG;AAAA,YACH,WAAU;AAAA,YACV,WAAU;AAAA,UAAA;AAAA,QAAA;AAAA,QAEZA,2BAAAA;AAAAA,UAAC;AAAA,UAAA;AAAA,YACC,IAAG;AAAA,YACH,IAAG;AAAA,YACH,IAAG;AAAA,YACH,IAAG;AAAA,YACH,WAAU;AAAA,YACV,WAAU;AAAA,UAAA;AAAA,QAAA;AAAA,QAEZA,2BAAAA;AAAAA,UAAC;AAAA,UAAA;AAAA,YACC,IAAG;AAAA,YACH,IAAG;AAAA,YACH,IAAG;AAAA,YACH,IAAG;AAAA,YACH,WAAU;AAAA,YACV,WAAU;AAAA,UAAA;AAAA,QAAA;AAAA,QAGZA,2BAAAA;AAAAA,UAAC;AAAA,UAAA;AAAA,YACC,GAAE;AAAA,YACF,WAAU;AAAA,UAAA;AAAA,QAAA;AAAA,QAEZA,2BAAAA;AAAAA,UAAC;AAAA,UAAA;AAAA,YACC,GAAE;AAAA,YACF,WAAU;AAAA,UAAA;AAAA,QAAA;AAAA,QAGZA,2BAAAA;AAAAA,UAAC;AAAA,UAAA;AAAA,YACC,GAAE;AAAA,YACF,WAAU;AAAA,UAAA;AAAA,QAAA;AAAA,QAGZA,2BAAAA;AAAAA,UAAC;AAAA,UAAA;AAAA,YACC,GAAE;AAAA,YACF,WAAU;AAAA,UAAA;AAAA,QAAA;AAAA,MACZ;AAAA,IAAA;AAAA,EAAA;AAGN;AACA,qBAAqB,cAAc;;"}
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsxs, jsx } from "react/jsx-runtime";
|
|
3
|
+
import * as React from "react";
|
|
4
|
+
import { cn } from "../utils/cn.js";
|
|
5
|
+
const EmptyBoxIllustration = React.forwardRef(
|
|
6
|
+
({ className, ...props }, ref) => /* @__PURE__ */ jsxs(
|
|
7
|
+
"svg",
|
|
8
|
+
{
|
|
9
|
+
ref,
|
|
10
|
+
width: "110",
|
|
11
|
+
height: "81",
|
|
12
|
+
viewBox: "0 0 110 81",
|
|
13
|
+
fill: "none",
|
|
14
|
+
"aria-hidden": "true",
|
|
15
|
+
focusable: "false",
|
|
16
|
+
className: cn("shrink-0 text-sys-text-subtler", className),
|
|
17
|
+
...props,
|
|
18
|
+
children: [
|
|
19
|
+
/* @__PURE__ */ jsx(
|
|
20
|
+
"path",
|
|
21
|
+
{
|
|
22
|
+
d: "M1.55091 22.2887C0.694367 20.8214 1.37735 19.6318 3.0764 19.6318H39.8091C41.5081 19.6318 43.5799 20.8214 44.4364 22.2887L55 40.3852H12.1145L1.55091 22.2887Z",
|
|
23
|
+
className: "fill-primary10"
|
|
24
|
+
}
|
|
25
|
+
),
|
|
26
|
+
/* @__PURE__ */ jsx(
|
|
27
|
+
"path",
|
|
28
|
+
{
|
|
29
|
+
d: "M39.4248 7.0527C29.698 8.46843 22.5682 14.7206 23.4998 21.0174C24.1651 25.5135 28.761 28.815 34.8759 29.8212C38.8785 35.0171 44.6939 37.349 42.0205 34.1458C40.8408 32.7322 40.7157 31.3203 41.1314 30.0456C41.6829 29.9991 42.2394 29.9376 42.7994 29.8561C52.5264 28.4404 59.6562 22.1873 58.7243 15.8905C57.7923 9.59377 49.1517 5.63697 39.4248 7.0527Z",
|
|
30
|
+
className: "fill-current"
|
|
31
|
+
}
|
|
32
|
+
),
|
|
33
|
+
/* @__PURE__ */ jsx(
|
|
34
|
+
"ellipse",
|
|
35
|
+
{
|
|
36
|
+
cx: "1.60448",
|
|
37
|
+
cy: "1.58788",
|
|
38
|
+
rx: "1.60448",
|
|
39
|
+
ry: "1.58788",
|
|
40
|
+
transform: "matrix(-0.989573 0.144031 0.14639 0.989227 49.8203 15.77)",
|
|
41
|
+
className: "fill-sys-background"
|
|
42
|
+
}
|
|
43
|
+
),
|
|
44
|
+
/* @__PURE__ */ jsx(
|
|
45
|
+
"ellipse",
|
|
46
|
+
{
|
|
47
|
+
cx: "1.60448",
|
|
48
|
+
cy: "1.58788",
|
|
49
|
+
rx: "1.60448",
|
|
50
|
+
ry: "1.58788",
|
|
51
|
+
transform: "matrix(-0.989573 0.144031 0.14639 0.989227 42.8682 16.769)",
|
|
52
|
+
className: "fill-sys-background"
|
|
53
|
+
}
|
|
54
|
+
),
|
|
55
|
+
/* @__PURE__ */ jsx(
|
|
56
|
+
"ellipse",
|
|
57
|
+
{
|
|
58
|
+
cx: "1.60448",
|
|
59
|
+
cy: "1.58788",
|
|
60
|
+
rx: "1.60448",
|
|
61
|
+
ry: "1.58788",
|
|
62
|
+
transform: "matrix(-0.989573 0.144031 0.14639 0.989227 35.916 17.7686)",
|
|
63
|
+
className: "fill-sys-background"
|
|
64
|
+
}
|
|
65
|
+
),
|
|
66
|
+
/* @__PURE__ */ jsx(
|
|
67
|
+
"path",
|
|
68
|
+
{
|
|
69
|
+
d: "M12.1143 40.2407H54.9997V80.5002H18.2671C14.869 80.5002 12.1143 77.7455 12.1143 74.3474V40.2407Z",
|
|
70
|
+
className: "fill-sys-background"
|
|
71
|
+
}
|
|
72
|
+
),
|
|
73
|
+
/* @__PURE__ */ jsx(
|
|
74
|
+
"path",
|
|
75
|
+
{
|
|
76
|
+
d: "M12.1143 40.2407H54.9997V80.5002H18.2671C14.869 80.5002 12.1143 77.7455 12.1143 74.3474V40.2407Z",
|
|
77
|
+
className: "fill-primary20 opacity-16"
|
|
78
|
+
}
|
|
79
|
+
),
|
|
80
|
+
/* @__PURE__ */ jsx(
|
|
81
|
+
"path",
|
|
82
|
+
{
|
|
83
|
+
d: "M108.449 22.2882C109.306 20.8209 108.623 19.6313 106.924 19.6313H70.1909C68.4919 19.6313 66.4201 20.8209 65.5636 22.2882L55 40.3847H97.8855L108.449 22.2882Z",
|
|
84
|
+
className: "fill-primary20"
|
|
85
|
+
}
|
|
86
|
+
),
|
|
87
|
+
/* @__PURE__ */ jsx(
|
|
88
|
+
"path",
|
|
89
|
+
{
|
|
90
|
+
d: "M55 40.2407H97.8855V74.3474C97.8855 77.7455 95.1308 80.5002 91.7327 80.5002H55V40.2407Z",
|
|
91
|
+
className: "fill-primary20 opacity-50"
|
|
92
|
+
}
|
|
93
|
+
)
|
|
94
|
+
]
|
|
95
|
+
}
|
|
96
|
+
)
|
|
97
|
+
);
|
|
98
|
+
EmptyBoxIllustration.displayName = "EmptyBoxIllustration";
|
|
99
|
+
export {
|
|
100
|
+
EmptyBoxIllustration
|
|
101
|
+
};
|
|
102
|
+
//# sourceMappingURL=emptyBoxIllustration.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"emptyBoxIllustration.js","sources":["../../src/components/emptyBoxIllustration.tsx"],"sourcesContent":["import * as React from 'react'\n\nimport { cn } from '../utils/cn'\n\n/**\n * 빈 상태 일러스트. dl-ui-v3 의 `empty_box.svg`(사용자 정보 화면의 빈 패널)를 토큰 색으로 옮겨 라이트·다크 테마를 따른다.\n *\n * 언제 쓰나: EmptyState 의 기본 그림(목록·상세·대시보드의 \"없음\" 상자). 소비 앱의 빈 패널(dl-ui-v3 `CEmptyBox`)도 이것으로 대체한다.\n * 언제 안 쓰나: 오류 안내(→ ErrorState 의 경고 아이콘), 로딩(→ LoadingState), 표 안의 한 줄 빈 결과(ListPage 는 문장만 쓴다).\n * 대신/함께: 색은 `fill-primary10/20`·`fill-sys-background`·`fill-current`(종이 = `text-sys-text-subtler`, 원본의 grayscale60) 로 토큰을 따르므로 `className` 으로는 크기·여백만 바꾼다(기본 110×81). 장식이라 `aria-hidden`.\n */\nconst EmptyBoxIllustration = React.forwardRef<SVGSVGElement, React.SVGProps<SVGSVGElement>>(\n ({ className, ...props }, ref) => (\n <svg\n ref={ref}\n width='110'\n height='81'\n viewBox='0 0 110 81'\n fill='none'\n aria-hidden='true'\n focusable='false'\n className={cn('shrink-0 text-sys-text-subtler', className)}\n {...props}\n >\n {/* 왼쪽 덮개 — 연한 주조색 */}\n <path\n d='M1.55091 22.2887C0.694367 20.8214 1.37735 19.6318 3.0764 19.6318H39.8091C41.5081 19.6318 43.5799 20.8214 44.4364 22.2887L55 40.3852H12.1145L1.55091 22.2887Z'\n className='fill-primary10'\n />\n {/* 구겨진 종이 — 글자 보조색(currentColor) */}\n <path\n d='M39.4248 7.0527C29.698 8.46843 22.5682 14.7206 23.4998 21.0174C24.1651 25.5135 28.761 28.815 34.8759 29.8212C38.8785 35.0171 44.6939 37.349 42.0205 34.1458C40.8408 32.7322 40.7157 31.3203 41.1314 30.0456C41.6829 29.9991 42.2394 29.9376 42.7994 29.8561C52.5264 28.4404 59.6562 22.1873 58.7243 15.8905C57.7923 9.59377 49.1517 5.63697 39.4248 7.0527Z'\n className='fill-current'\n />\n {/* 종이의 점 3개 — 바탕색으로 뚫린 것처럼 */}\n <ellipse\n cx='1.60448'\n cy='1.58788'\n rx='1.60448'\n ry='1.58788'\n transform='matrix(-0.989573 0.144031 0.14639 0.989227 49.8203 15.77)'\n className='fill-sys-background'\n />\n <ellipse\n cx='1.60448'\n cy='1.58788'\n rx='1.60448'\n ry='1.58788'\n transform='matrix(-0.989573 0.144031 0.14639 0.989227 42.8682 16.769)'\n className='fill-sys-background'\n />\n <ellipse\n cx='1.60448'\n cy='1.58788'\n rx='1.60448'\n ry='1.58788'\n transform='matrix(-0.989573 0.144031 0.14639 0.989227 35.916 17.7686)'\n className='fill-sys-background'\n />\n {/* 상자 앞면 — 바탕색 위에 주조색 16% */}\n <path\n d='M12.1143 40.2407H54.9997V80.5002H18.2671C14.869 80.5002 12.1143 77.7455 12.1143 74.3474V40.2407Z'\n className='fill-sys-background'\n />\n <path\n d='M12.1143 40.2407H54.9997V80.5002H18.2671C14.869 80.5002 12.1143 77.7455 12.1143 74.3474V40.2407Z'\n className='fill-primary20 opacity-16'\n />\n {/* 오른쪽 덮개 — 주조색 */}\n <path\n d='M108.449 22.2882C109.306 20.8209 108.623 19.6313 106.924 19.6313H70.1909C68.4919 19.6313 66.4201 20.8209 65.5636 22.2882L55 40.3847H97.8855L108.449 22.2882Z'\n className='fill-primary20'\n />\n {/* 상자 오른쪽 면 — 주조색 50% */}\n <path\n d='M55 40.2407H97.8855V74.3474C97.8855 77.7455 95.1308 80.5002 91.7327 80.5002H55V40.2407Z'\n className='fill-primary20 opacity-50'\n />\n </svg>\n ),\n)\nEmptyBoxIllustration.displayName = 'EmptyBoxIllustration'\n\nexport { EmptyBoxIllustration }\n"],"names":[],"mappings":";;;;AAWA,MAAM,uBAAuB,MAAM;AAAA,EACjC,CAAC,EAAE,WAAW,GAAG,MAAA,GAAS,QACxB;AAAA,IAAC;AAAA,IAAA;AAAA,MACC;AAAA,MACA,OAAM;AAAA,MACN,QAAO;AAAA,MACP,SAAQ;AAAA,MACR,MAAK;AAAA,MACL,eAAY;AAAA,MACZ,WAAU;AAAA,MACV,WAAW,GAAG,kCAAkC,SAAS;AAAA,MACxD,GAAG;AAAA,MAGJ,UAAA;AAAA,QAAA;AAAA,UAAC;AAAA,UAAA;AAAA,YACC,GAAE;AAAA,YACF,WAAU;AAAA,UAAA;AAAA,QAAA;AAAA,QAGZ;AAAA,UAAC;AAAA,UAAA;AAAA,YACC,GAAE;AAAA,YACF,WAAU;AAAA,UAAA;AAAA,QAAA;AAAA,QAGZ;AAAA,UAAC;AAAA,UAAA;AAAA,YACC,IAAG;AAAA,YACH,IAAG;AAAA,YACH,IAAG;AAAA,YACH,IAAG;AAAA,YACH,WAAU;AAAA,YACV,WAAU;AAAA,UAAA;AAAA,QAAA;AAAA,QAEZ;AAAA,UAAC;AAAA,UAAA;AAAA,YACC,IAAG;AAAA,YACH,IAAG;AAAA,YACH,IAAG;AAAA,YACH,IAAG;AAAA,YACH,WAAU;AAAA,YACV,WAAU;AAAA,UAAA;AAAA,QAAA;AAAA,QAEZ;AAAA,UAAC;AAAA,UAAA;AAAA,YACC,IAAG;AAAA,YACH,IAAG;AAAA,YACH,IAAG;AAAA,YACH,IAAG;AAAA,YACH,WAAU;AAAA,YACV,WAAU;AAAA,UAAA;AAAA,QAAA;AAAA,QAGZ;AAAA,UAAC;AAAA,UAAA;AAAA,YACC,GAAE;AAAA,YACF,WAAU;AAAA,UAAA;AAAA,QAAA;AAAA,QAEZ;AAAA,UAAC;AAAA,UAAA;AAAA,YACC,GAAE;AAAA,YACF,WAAU;AAAA,UAAA;AAAA,QAAA;AAAA,QAGZ;AAAA,UAAC;AAAA,UAAA;AAAA,YACC,GAAE;AAAA,YACF,WAAU;AAAA,UAAA;AAAA,QAAA;AAAA,QAGZ;AAAA,UAAC;AAAA,UAAA;AAAA,YACC,GAAE;AAAA,YACF,WAAU;AAAA,UAAA;AAAA,QAAA;AAAA,MACZ;AAAA,IAAA;AAAA,EAAA;AAGN;AACA,qBAAqB,cAAc;"}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
"use strict";
|
|
3
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
4
|
+
const jsxRuntime = require("react/jsx-runtime");
|
|
5
|
+
const cn = require("../utils/cn.cjs");
|
|
6
|
+
const badge = require("./badge.cjs");
|
|
7
|
+
const LEVEL = {
|
|
8
|
+
info: { variant: "info", bar: "border-info30", label: "정보" },
|
|
9
|
+
success: { variant: "success", bar: "border-success30", label: "성공" },
|
|
10
|
+
warning: { variant: "warning", bar: "border-warning30", label: "경고" },
|
|
11
|
+
error: { variant: "danger", bar: "border-danger30", label: "오류" }
|
|
12
|
+
};
|
|
13
|
+
function EventList({
|
|
14
|
+
items,
|
|
15
|
+
emptyText = "최근 이벤트가 없습니다.",
|
|
16
|
+
levelLabels,
|
|
17
|
+
className,
|
|
18
|
+
...props
|
|
19
|
+
}) {
|
|
20
|
+
if (!items.length)
|
|
21
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
22
|
+
"p",
|
|
23
|
+
{
|
|
24
|
+
role: "status",
|
|
25
|
+
className: cn.cn("py-[16px] text-center text-base-regular text-sys-text-subtle", className),
|
|
26
|
+
children: emptyText
|
|
27
|
+
}
|
|
28
|
+
);
|
|
29
|
+
return /* @__PURE__ */ jsxRuntime.jsx("ul", { className: cn.cn("flex w-full flex-col gap-[4px]", className), ...props, children: items.map((item) => {
|
|
30
|
+
const level = LEVEL[item.level];
|
|
31
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
32
|
+
"li",
|
|
33
|
+
{
|
|
34
|
+
className: cn.cn(
|
|
35
|
+
"flex items-start gap-[12px] border-l-[2px] py-[8px] pl-[12px]",
|
|
36
|
+
level.bar
|
|
37
|
+
),
|
|
38
|
+
children: [
|
|
39
|
+
/* @__PURE__ */ jsxRuntime.jsx(badge.Badge, { variant: level.variant, className: "shrink-0", children: levelLabels?.[item.level] ?? level.label }),
|
|
40
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "shrink-0 text-small-regular text-sys-text-subtler", children: item.time }),
|
|
41
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "min-w-0 flex-1 text-base-regular text-sys-text-main", children: item.message })
|
|
42
|
+
]
|
|
43
|
+
},
|
|
44
|
+
item.id
|
|
45
|
+
);
|
|
46
|
+
}) });
|
|
47
|
+
}
|
|
48
|
+
exports.EventList = EventList;
|
|
49
|
+
//# sourceMappingURL=eventList.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"eventList.cjs","sources":["../../src/components/eventList.tsx"],"sourcesContent":["import type { HTMLAttributes, ReactNode } from 'react'\n\nimport { cn } from '../utils/cn'\nimport { Badge } from './badge'\n\nexport type EventLevel = 'info' | 'success' | 'warning' | 'error'\n\nexport type EventListItem = {\n /** 항목 key */\n id: string\n /** 발생 시각. 소비 앱이 포맷해 넘긴다 (예: \"3분 전\", \"10. 12. 09:28\") */\n time: ReactNode\n /** 레벨. 왼쪽 색 띠와 Badge 색을 정한다 */\n level: EventLevel\n /** 내용 한 줄 */\n message: ReactNode\n}\n\nexport type EventListProps = Omit<HTMLAttributes<HTMLUListElement>, 'children'> & {\n /** 최신순으로 정렬해 넘긴다 */\n items: EventListItem[]\n /** 항목이 없을 때 문구. 기본 \"최근 이벤트가 없습니다.\" */\n emptyText?: ReactNode\n /** 레벨 Badge 글자. 기본 정보·성공·경고·오류 */\n levelLabels?: Partial<Record<EventLevel, ReactNode>>\n}\n\nconst LEVEL = {\n info: { variant: 'info', bar: 'border-info30', label: '정보' },\n success: { variant: 'success', bar: 'border-success30', label: '성공' },\n warning: { variant: 'warning', bar: 'border-warning30', label: '경고' },\n error: { variant: 'danger', bar: 'border-danger30', label: '오류' },\n} as const\n\n/**\n * 최근 이벤트·활동 목록. 항목마다 왼쪽 레벨 색 띠 → 레벨 Badge → 시각 → 메시지 한 줄.\n *\n * 언제 쓰나: 대시보드·상세 화면의 \"최근 이벤트/활동\" 섹션처럼 최신순 몇 개(보통 5~10개)를 한눈에 보여 줄 때. 레벨(info·success·warning·error)을 색 띠와 Badge 로 구분한다.\n * 언제 안 쓰나: 검색·필터·페이지네이션이 필요한 로그(→ ListPage·AgGridTable), 단계가 있는 진행 상황(→ 소비 앱의 스텝 표시), 사용자가 답해야 하는 알림(→ Alert·Toast).\n * 대신/함께: 시각은 소비 앱이 포맷해 `time` 에 넘긴다. 항목이 없으면 `emptyText` 를 status 로 보여 준다. 레벨 → 색은 고정이고 `className` 으로 색을 바꾸지 않는다.\n */\nexport function EventList({\n items,\n emptyText = '최근 이벤트가 없습니다.',\n levelLabels,\n className,\n ...props\n}: EventListProps) {\n if (!items.length)\n return (\n <p\n role='status'\n className={cn('py-[16px] text-center text-base-regular text-sys-text-subtle', className)}\n >\n {emptyText}\n </p>\n )\n return (\n <ul className={cn('flex w-full flex-col gap-[4px]', className)} {...props}>\n {items.map((item) => {\n const level = LEVEL[item.level]\n return (\n <li\n key={item.id}\n className={cn(\n 'flex items-start gap-[12px] border-l-[2px] py-[8px] pl-[12px]',\n level.bar,\n )}\n >\n <Badge variant={level.variant} className='shrink-0'>\n {levelLabels?.[item.level] ?? level.label}\n </Badge>\n <span className='shrink-0 text-small-regular text-sys-text-subtler'>{item.time}</span>\n <span className='min-w-0 flex-1 text-base-regular text-sys-text-main'>\n {item.message}\n </span>\n </li>\n )\n })}\n </ul>\n )\n}\n"],"names":["jsx","cn","jsxs","Badge"],"mappings":";;;;;;AA2BA,MAAM,QAAQ;AAAA,EACZ,MAAM,EAAE,SAAS,QAAQ,KAAK,iBAAiB,OAAO,KAAA;AAAA,EACtD,SAAS,EAAE,SAAS,WAAW,KAAK,oBAAoB,OAAO,KAAA;AAAA,EAC/D,SAAS,EAAE,SAAS,WAAW,KAAK,oBAAoB,OAAO,KAAA;AAAA,EAC/D,OAAO,EAAE,SAAS,UAAU,KAAK,mBAAmB,OAAO,KAAA;AAC7D;AASO,SAAS,UAAU;AAAA,EACxB;AAAA,EACA,YAAY;AAAA,EACZ;AAAA,EACA;AAAA,EACA,GAAG;AACL,GAAmB;AACjB,MAAI,CAAC,MAAM;AACT,WACEA,2BAAAA;AAAAA,MAAC;AAAA,MAAA;AAAA,QACC,MAAK;AAAA,QACL,WAAWC,GAAAA,GAAG,gEAAgE,SAAS;AAAA,QAEtF,UAAA;AAAA,MAAA;AAAA,IAAA;AAGP,SACED,2BAAAA,IAAC,MAAA,EAAG,WAAWC,GAAAA,GAAG,kCAAkC,SAAS,GAAI,GAAG,OACjE,UAAA,MAAM,IAAI,CAAC,SAAS;AACnB,UAAM,QAAQ,MAAM,KAAK,KAAK;AAC9B,WACEC,2BAAAA;AAAAA,MAAC;AAAA,MAAA;AAAA,QAEC,WAAWD,GAAAA;AAAAA,UACT;AAAA,UACA,MAAM;AAAA,QAAA;AAAA,QAGR,UAAA;AAAA,UAAAD,2BAAAA,IAACG,MAAAA,OAAA,EAAM,SAAS,MAAM,SAAS,WAAU,YACtC,UAAA,cAAc,KAAK,KAAK,KAAK,MAAM,MAAA,CACtC;AAAA,UACAH,2BAAAA,IAAC,QAAA,EAAK,WAAU,qDAAqD,eAAK,MAAK;AAAA,UAC/EA,2BAAAA,IAAC,QAAA,EAAK,WAAU,uDACb,eAAK,QAAA,CACR;AAAA,QAAA;AAAA,MAAA;AAAA,MAZK,KAAK;AAAA,IAAA;AAAA,EAehB,CAAC,EAAA,CACH;AAEJ;;"}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
3
|
+
import { cn } from "../utils/cn.js";
|
|
4
|
+
import { Badge } from "./badge.js";
|
|
5
|
+
const LEVEL = {
|
|
6
|
+
info: { variant: "info", bar: "border-info30", label: "정보" },
|
|
7
|
+
success: { variant: "success", bar: "border-success30", label: "성공" },
|
|
8
|
+
warning: { variant: "warning", bar: "border-warning30", label: "경고" },
|
|
9
|
+
error: { variant: "danger", bar: "border-danger30", label: "오류" }
|
|
10
|
+
};
|
|
11
|
+
function EventList({
|
|
12
|
+
items,
|
|
13
|
+
emptyText = "최근 이벤트가 없습니다.",
|
|
14
|
+
levelLabels,
|
|
15
|
+
className,
|
|
16
|
+
...props
|
|
17
|
+
}) {
|
|
18
|
+
if (!items.length)
|
|
19
|
+
return /* @__PURE__ */ jsx(
|
|
20
|
+
"p",
|
|
21
|
+
{
|
|
22
|
+
role: "status",
|
|
23
|
+
className: cn("py-[16px] text-center text-base-regular text-sys-text-subtle", className),
|
|
24
|
+
children: emptyText
|
|
25
|
+
}
|
|
26
|
+
);
|
|
27
|
+
return /* @__PURE__ */ jsx("ul", { className: cn("flex w-full flex-col gap-[4px]", className), ...props, children: items.map((item) => {
|
|
28
|
+
const level = LEVEL[item.level];
|
|
29
|
+
return /* @__PURE__ */ jsxs(
|
|
30
|
+
"li",
|
|
31
|
+
{
|
|
32
|
+
className: cn(
|
|
33
|
+
"flex items-start gap-[12px] border-l-[2px] py-[8px] pl-[12px]",
|
|
34
|
+
level.bar
|
|
35
|
+
),
|
|
36
|
+
children: [
|
|
37
|
+
/* @__PURE__ */ jsx(Badge, { variant: level.variant, className: "shrink-0", children: levelLabels?.[item.level] ?? level.label }),
|
|
38
|
+
/* @__PURE__ */ jsx("span", { className: "shrink-0 text-small-regular text-sys-text-subtler", children: item.time }),
|
|
39
|
+
/* @__PURE__ */ jsx("span", { className: "min-w-0 flex-1 text-base-regular text-sys-text-main", children: item.message })
|
|
40
|
+
]
|
|
41
|
+
},
|
|
42
|
+
item.id
|
|
43
|
+
);
|
|
44
|
+
}) });
|
|
45
|
+
}
|
|
46
|
+
export {
|
|
47
|
+
EventList
|
|
48
|
+
};
|
|
49
|
+
//# sourceMappingURL=eventList.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"eventList.js","sources":["../../src/components/eventList.tsx"],"sourcesContent":["import type { HTMLAttributes, ReactNode } from 'react'\n\nimport { cn } from '../utils/cn'\nimport { Badge } from './badge'\n\nexport type EventLevel = 'info' | 'success' | 'warning' | 'error'\n\nexport type EventListItem = {\n /** 항목 key */\n id: string\n /** 발생 시각. 소비 앱이 포맷해 넘긴다 (예: \"3분 전\", \"10. 12. 09:28\") */\n time: ReactNode\n /** 레벨. 왼쪽 색 띠와 Badge 색을 정한다 */\n level: EventLevel\n /** 내용 한 줄 */\n message: ReactNode\n}\n\nexport type EventListProps = Omit<HTMLAttributes<HTMLUListElement>, 'children'> & {\n /** 최신순으로 정렬해 넘긴다 */\n items: EventListItem[]\n /** 항목이 없을 때 문구. 기본 \"최근 이벤트가 없습니다.\" */\n emptyText?: ReactNode\n /** 레벨 Badge 글자. 기본 정보·성공·경고·오류 */\n levelLabels?: Partial<Record<EventLevel, ReactNode>>\n}\n\nconst LEVEL = {\n info: { variant: 'info', bar: 'border-info30', label: '정보' },\n success: { variant: 'success', bar: 'border-success30', label: '성공' },\n warning: { variant: 'warning', bar: 'border-warning30', label: '경고' },\n error: { variant: 'danger', bar: 'border-danger30', label: '오류' },\n} as const\n\n/**\n * 최근 이벤트·활동 목록. 항목마다 왼쪽 레벨 색 띠 → 레벨 Badge → 시각 → 메시지 한 줄.\n *\n * 언제 쓰나: 대시보드·상세 화면의 \"최근 이벤트/활동\" 섹션처럼 최신순 몇 개(보통 5~10개)를 한눈에 보여 줄 때. 레벨(info·success·warning·error)을 색 띠와 Badge 로 구분한다.\n * 언제 안 쓰나: 검색·필터·페이지네이션이 필요한 로그(→ ListPage·AgGridTable), 단계가 있는 진행 상황(→ 소비 앱의 스텝 표시), 사용자가 답해야 하는 알림(→ Alert·Toast).\n * 대신/함께: 시각은 소비 앱이 포맷해 `time` 에 넘긴다. 항목이 없으면 `emptyText` 를 status 로 보여 준다. 레벨 → 색은 고정이고 `className` 으로 색을 바꾸지 않는다.\n */\nexport function EventList({\n items,\n emptyText = '최근 이벤트가 없습니다.',\n levelLabels,\n className,\n ...props\n}: EventListProps) {\n if (!items.length)\n return (\n <p\n role='status'\n className={cn('py-[16px] text-center text-base-regular text-sys-text-subtle', className)}\n >\n {emptyText}\n </p>\n )\n return (\n <ul className={cn('flex w-full flex-col gap-[4px]', className)} {...props}>\n {items.map((item) => {\n const level = LEVEL[item.level]\n return (\n <li\n key={item.id}\n className={cn(\n 'flex items-start gap-[12px] border-l-[2px] py-[8px] pl-[12px]',\n level.bar,\n )}\n >\n <Badge variant={level.variant} className='shrink-0'>\n {levelLabels?.[item.level] ?? level.label}\n </Badge>\n <span className='shrink-0 text-small-regular text-sys-text-subtler'>{item.time}</span>\n <span className='min-w-0 flex-1 text-base-regular text-sys-text-main'>\n {item.message}\n </span>\n </li>\n )\n })}\n </ul>\n )\n}\n"],"names":[],"mappings":";;;;AA2BA,MAAM,QAAQ;AAAA,EACZ,MAAM,EAAE,SAAS,QAAQ,KAAK,iBAAiB,OAAO,KAAA;AAAA,EACtD,SAAS,EAAE,SAAS,WAAW,KAAK,oBAAoB,OAAO,KAAA;AAAA,EAC/D,SAAS,EAAE,SAAS,WAAW,KAAK,oBAAoB,OAAO,KAAA;AAAA,EAC/D,OAAO,EAAE,SAAS,UAAU,KAAK,mBAAmB,OAAO,KAAA;AAC7D;AASO,SAAS,UAAU;AAAA,EACxB;AAAA,EACA,YAAY;AAAA,EACZ;AAAA,EACA;AAAA,EACA,GAAG;AACL,GAAmB;AACjB,MAAI,CAAC,MAAM;AACT,WACE;AAAA,MAAC;AAAA,MAAA;AAAA,QACC,MAAK;AAAA,QACL,WAAW,GAAG,gEAAgE,SAAS;AAAA,QAEtF,UAAA;AAAA,MAAA;AAAA,IAAA;AAGP,SACE,oBAAC,MAAA,EAAG,WAAW,GAAG,kCAAkC,SAAS,GAAI,GAAG,OACjE,UAAA,MAAM,IAAI,CAAC,SAAS;AACnB,UAAM,QAAQ,MAAM,KAAK,KAAK;AAC9B,WACE;AAAA,MAAC;AAAA,MAAA;AAAA,QAEC,WAAW;AAAA,UACT;AAAA,UACA,MAAM;AAAA,QAAA;AAAA,QAGR,UAAA;AAAA,UAAA,oBAAC,OAAA,EAAM,SAAS,MAAM,SAAS,WAAU,YACtC,UAAA,cAAc,KAAK,KAAK,KAAK,MAAM,MAAA,CACtC;AAAA,UACA,oBAAC,QAAA,EAAK,WAAU,qDAAqD,eAAK,MAAK;AAAA,UAC/E,oBAAC,QAAA,EAAK,WAAU,uDACb,eAAK,QAAA,CACR;AAAA,QAAA;AAAA,MAAA;AAAA,MAZK,KAAK;AAAA,IAAA;AAAA,EAehB,CAAC,EAAA,CACH;AAEJ;"}
|
|
@@ -0,0 +1,260 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
"use strict";
|
|
3
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
4
|
+
const jsxRuntime = require("react/jsx-runtime");
|
|
5
|
+
const React = require("react");
|
|
6
|
+
const reactHookForm = require("react-hook-form");
|
|
7
|
+
const reactSlot = require("@radix-ui/react-slot");
|
|
8
|
+
const classVarianceAuthority = require("class-variance-authority");
|
|
9
|
+
const lucide = require("lucide-react");
|
|
10
|
+
const cn = require("../utils/cn.cjs");
|
|
11
|
+
const index = require("./stack/index.cjs");
|
|
12
|
+
function _interopNamespaceDefault(e) {
|
|
13
|
+
const n = Object.create(null, { [Symbol.toStringTag]: { value: "Module" } });
|
|
14
|
+
if (e) {
|
|
15
|
+
for (const k in e) {
|
|
16
|
+
if (k !== "default") {
|
|
17
|
+
const d = Object.getOwnPropertyDescriptor(e, k);
|
|
18
|
+
Object.defineProperty(n, k, d.get ? d : {
|
|
19
|
+
enumerable: true,
|
|
20
|
+
get: () => e[k]
|
|
21
|
+
});
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
n.default = e;
|
|
26
|
+
return Object.freeze(n);
|
|
27
|
+
}
|
|
28
|
+
const React__namespace = /* @__PURE__ */ _interopNamespaceDefault(React);
|
|
29
|
+
const Form = reactHookForm.FormProvider;
|
|
30
|
+
const FormFieldContext = React__namespace.createContext({});
|
|
31
|
+
const FormField = ({
|
|
32
|
+
...props
|
|
33
|
+
}) => {
|
|
34
|
+
return /* @__PURE__ */ jsxRuntime.jsx(FormFieldContext.Provider, { value: { name: props.name }, children: /* @__PURE__ */ jsxRuntime.jsx(reactHookForm.Controller, { ...props }) });
|
|
35
|
+
};
|
|
36
|
+
const useFormField = () => {
|
|
37
|
+
const fieldContext = React__namespace.useContext(FormFieldContext);
|
|
38
|
+
const itemContext = React__namespace.useContext(FormItemContext);
|
|
39
|
+
const { getFieldState, formState } = reactHookForm.useFormContext();
|
|
40
|
+
const fieldState = getFieldState(fieldContext.name, formState);
|
|
41
|
+
if (!fieldContext) {
|
|
42
|
+
throw new Error("useFormField should be used within <FormField>");
|
|
43
|
+
}
|
|
44
|
+
const { id } = itemContext;
|
|
45
|
+
return {
|
|
46
|
+
id,
|
|
47
|
+
name: fieldContext.name,
|
|
48
|
+
formItemId: `${id}-form-item`,
|
|
49
|
+
formDescriptionId: `${id}-form-item-description`,
|
|
50
|
+
formMessageId: `${id}-form-item-message`,
|
|
51
|
+
...fieldState
|
|
52
|
+
};
|
|
53
|
+
};
|
|
54
|
+
const FormItemContext = React__namespace.createContext({});
|
|
55
|
+
const FormItem = React__namespace.forwardRef(
|
|
56
|
+
({ className, ...props }, ref) => {
|
|
57
|
+
const id = React__namespace.useId();
|
|
58
|
+
return /* @__PURE__ */ jsxRuntime.jsx(FormItemContext.Provider, { value: { id }, children: /* @__PURE__ */ jsxRuntime.jsx("div", { ref, className: cn.cn("space-y-[4px]", className), ...props }) });
|
|
59
|
+
}
|
|
60
|
+
);
|
|
61
|
+
FormItem.displayName = "FormItem";
|
|
62
|
+
const FormLabel = React__namespace.forwardRef(({ className, required, ...props }, ref) => {
|
|
63
|
+
const { error, formItemId } = useFormField();
|
|
64
|
+
if (required) {
|
|
65
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(index.Stack, { direction: "row", justifyContent: "start", children: [
|
|
66
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
67
|
+
"label",
|
|
68
|
+
{
|
|
69
|
+
ref,
|
|
70
|
+
className: cn.cn(
|
|
71
|
+
error && "text-destructive",
|
|
72
|
+
"inline-block text-sys-text-subtle text-base-medium",
|
|
73
|
+
className
|
|
74
|
+
),
|
|
75
|
+
htmlFor: formItemId,
|
|
76
|
+
...props
|
|
77
|
+
}
|
|
78
|
+
),
|
|
79
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-base-medium text-danger30", children: "*" })
|
|
80
|
+
] });
|
|
81
|
+
}
|
|
82
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
83
|
+
"label",
|
|
84
|
+
{
|
|
85
|
+
ref,
|
|
86
|
+
className: cn.cn(
|
|
87
|
+
error && "text-destructive",
|
|
88
|
+
"inline-block text-sys-text-subtle text-base-medium",
|
|
89
|
+
className
|
|
90
|
+
),
|
|
91
|
+
htmlFor: formItemId,
|
|
92
|
+
...props
|
|
93
|
+
}
|
|
94
|
+
);
|
|
95
|
+
});
|
|
96
|
+
FormLabel.displayName = "FormLabel";
|
|
97
|
+
const FormControlContext = React__namespace.createContext(null);
|
|
98
|
+
const useFormControlContext = () => React__namespace.useContext(FormControlContext);
|
|
99
|
+
const formControlVariants = classVarianceAuthority.cva("", {
|
|
100
|
+
variants: {
|
|
101
|
+
maxWidth: {
|
|
102
|
+
default: "max-w-[var(--max-w-form-control)]",
|
|
103
|
+
narrow: "max-w-[var(--max-w-form-control-narrow)]",
|
|
104
|
+
full: ""
|
|
105
|
+
}
|
|
106
|
+
},
|
|
107
|
+
defaultVariants: {
|
|
108
|
+
maxWidth: "default"
|
|
109
|
+
}
|
|
110
|
+
});
|
|
111
|
+
const FormControl = React__namespace.forwardRef(({ className, maxWidth, ...props }, ref) => {
|
|
112
|
+
const { error, formItemId, formDescriptionId, formMessageId } = useFormField();
|
|
113
|
+
const isInvalid = !!error;
|
|
114
|
+
return /* @__PURE__ */ jsxRuntime.jsx(FormControlContext.Provider, { value: { isInvalid }, children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
115
|
+
reactSlot.Slot,
|
|
116
|
+
{
|
|
117
|
+
ref,
|
|
118
|
+
id: formItemId,
|
|
119
|
+
className: cn.cn(formControlVariants({ maxWidth }), className),
|
|
120
|
+
"aria-describedby": !error ? `${formDescriptionId}` : `${formDescriptionId} ${formMessageId}`,
|
|
121
|
+
"aria-invalid": isInvalid,
|
|
122
|
+
...props
|
|
123
|
+
}
|
|
124
|
+
) });
|
|
125
|
+
});
|
|
126
|
+
FormControl.displayName = "FormControl";
|
|
127
|
+
const FormDescription = React__namespace.forwardRef(
|
|
128
|
+
({ className, icon = true, ...props }, ref) => {
|
|
129
|
+
const { formDescriptionId, error } = useFormField();
|
|
130
|
+
if (error) return null;
|
|
131
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(index.Stack, { spacing: 5, className: "pt-[2px]", children: [
|
|
132
|
+
icon ? /* @__PURE__ */ jsxRuntime.jsx(lucide.Info, { size: 16, "aria-hidden": true, className: "text-sys-text-subtle" }) : null,
|
|
133
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
134
|
+
"p",
|
|
135
|
+
{
|
|
136
|
+
ref,
|
|
137
|
+
id: formDescriptionId,
|
|
138
|
+
className: cn.cn("text-small-regular text-sys-text-subtle", className),
|
|
139
|
+
...props
|
|
140
|
+
}
|
|
141
|
+
)
|
|
142
|
+
] });
|
|
143
|
+
}
|
|
144
|
+
);
|
|
145
|
+
FormDescription.displayName = "FormDescription";
|
|
146
|
+
const FormMessage = React__namespace.forwardRef(({ className, children, ...props }, ref) => {
|
|
147
|
+
const { error, formMessageId } = useFormField();
|
|
148
|
+
const body = error ? String(error?.message ?? "") : children;
|
|
149
|
+
if (!body) {
|
|
150
|
+
return null;
|
|
151
|
+
}
|
|
152
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(index.Stack, { spacing: 5, className: "pt-[2px]", children: [
|
|
153
|
+
/* @__PURE__ */ jsxRuntime.jsx(lucide.TriangleAlert, { size: 16, className: "text-danger30" }),
|
|
154
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
155
|
+
"p",
|
|
156
|
+
{
|
|
157
|
+
ref,
|
|
158
|
+
id: formMessageId,
|
|
159
|
+
className: cn.cn("text-small-regular text-danger30", className),
|
|
160
|
+
...props,
|
|
161
|
+
children: body
|
|
162
|
+
}
|
|
163
|
+
)
|
|
164
|
+
] });
|
|
165
|
+
});
|
|
166
|
+
FormMessage.displayName = "FormMessage";
|
|
167
|
+
const FormValidMessage = React__namespace.forwardRef(({ className, children, ...props }, ref) => {
|
|
168
|
+
if (!children) {
|
|
169
|
+
return null;
|
|
170
|
+
}
|
|
171
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(index.Stack, { spacing: 5, className: "pt-[2px]", children: [
|
|
172
|
+
/* @__PURE__ */ jsxRuntime.jsx(lucide.Check, { size: 16, className: "text-success30" }),
|
|
173
|
+
/* @__PURE__ */ jsxRuntime.jsx("p", { ref, className: cn.cn("text-small-regular text-success30", className), ...props, children })
|
|
174
|
+
] });
|
|
175
|
+
});
|
|
176
|
+
FormValidMessage.displayName = "FormValidMessage";
|
|
177
|
+
const FormHeader = React__namespace.forwardRef(
|
|
178
|
+
({ className, title, description, children, ...props }, ref) => {
|
|
179
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
180
|
+
"div",
|
|
181
|
+
{
|
|
182
|
+
ref,
|
|
183
|
+
className: cn.cn("flex flex-col gap-[2px] items-start w-full", className),
|
|
184
|
+
...props,
|
|
185
|
+
children: [
|
|
186
|
+
title && /* @__PURE__ */ jsxRuntime.jsx("h2", { className: "text-h4 text-sys-text-main w-full", children: title }),
|
|
187
|
+
description && /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-base-regular text-sys-text-main", children: description }),
|
|
188
|
+
children
|
|
189
|
+
]
|
|
190
|
+
}
|
|
191
|
+
);
|
|
192
|
+
}
|
|
193
|
+
);
|
|
194
|
+
FormHeader.displayName = "FormHeader";
|
|
195
|
+
const FormSectionLevelContext = React__namespace.createContext(3);
|
|
196
|
+
const FormSection = React__namespace.forwardRef(
|
|
197
|
+
({ className, title, level, children, ...props }, ref) => {
|
|
198
|
+
const contextLevel = React__namespace.useContext(FormSectionLevelContext);
|
|
199
|
+
const Heading = (level ?? contextLevel) === 2 ? "h2" : "h3";
|
|
200
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
201
|
+
"div",
|
|
202
|
+
{
|
|
203
|
+
ref,
|
|
204
|
+
className: cn.cn(
|
|
205
|
+
// 섹션 사이 간격 48px 를 구분선 위아래 24px 씩으로 나눈다 (2026-10-13: 앞 섹션의 설명 글줄이 선에 붙어 있었다)
|
|
206
|
+
// 필드 사이 16(한 묶음 안) — 섹션 사이 48(pt-24+pb-24)과 구분되는 단계. 2026-10-17 8차 D2
|
|
207
|
+
"flex flex-col gap-[16px] w-full pt-[24px]",
|
|
208
|
+
// 부모 컨테이너 안에서 자기가 첫 자식이면 (= FormHeader 같은 형제가 앞에 없으면)
|
|
209
|
+
// 16px 의 상단 여백만 둔다 (컨테이너 상단 과공백 방지). FormHeader 가 앞에 있으면 :first-child 가 아니므로 pt-[24px] + 선.
|
|
210
|
+
"first:pt-[16px]",
|
|
211
|
+
// 마지막 섹션 아래에는 여백이 없다 (푸터 버튼 줄이 자기 간격을 가진다)
|
|
212
|
+
"[&:not(:last-child)]:pb-[24px]",
|
|
213
|
+
// 섹션 사이에 연한 가로 구분선 (2026-10-12 블라인드 평가: 구획이 없으면 "제목뿐" 으로 읽혔다). 첫 섹션 위에는 없다
|
|
214
|
+
"[&:not(:first-child)]:border-t [&:not(:first-child)]:border-sys-divider-subtle",
|
|
215
|
+
className
|
|
216
|
+
),
|
|
217
|
+
...props,
|
|
218
|
+
children: [
|
|
219
|
+
title && /* @__PURE__ */ jsxRuntime.jsx(Heading, { className: "text-h4 text-sys-text-main w-full", children: title }),
|
|
220
|
+
children
|
|
221
|
+
]
|
|
222
|
+
}
|
|
223
|
+
);
|
|
224
|
+
}
|
|
225
|
+
);
|
|
226
|
+
FormSection.displayName = "FormSection";
|
|
227
|
+
const formFooterVariants = classVarianceAuthority.cva("flex flex-col justify-end overflow-clip pt-[48px] w-full", {
|
|
228
|
+
variants: {
|
|
229
|
+
align: {
|
|
230
|
+
start: "items-start",
|
|
231
|
+
end: "items-end",
|
|
232
|
+
center: "items-center",
|
|
233
|
+
stretch: "items-stretch"
|
|
234
|
+
}
|
|
235
|
+
},
|
|
236
|
+
defaultVariants: {
|
|
237
|
+
align: "end"
|
|
238
|
+
}
|
|
239
|
+
});
|
|
240
|
+
const FormFooter = React__namespace.forwardRef(
|
|
241
|
+
({ className, align, children, ...props }, ref) => {
|
|
242
|
+
return /* @__PURE__ */ jsxRuntime.jsx("div", { ref, className: cn.cn(formFooterVariants({ align }), className), ...props, children });
|
|
243
|
+
}
|
|
244
|
+
);
|
|
245
|
+
FormFooter.displayName = "FormFooter";
|
|
246
|
+
exports.Form = Form;
|
|
247
|
+
exports.FormControl = FormControl;
|
|
248
|
+
exports.FormDescription = FormDescription;
|
|
249
|
+
exports.FormField = FormField;
|
|
250
|
+
exports.FormFooter = FormFooter;
|
|
251
|
+
exports.FormHeader = FormHeader;
|
|
252
|
+
exports.FormItem = FormItem;
|
|
253
|
+
exports.FormLabel = FormLabel;
|
|
254
|
+
exports.FormMessage = FormMessage;
|
|
255
|
+
exports.FormSection = FormSection;
|
|
256
|
+
exports.FormSectionLevelContext = FormSectionLevelContext;
|
|
257
|
+
exports.FormValidMessage = FormValidMessage;
|
|
258
|
+
exports.useFormControlContext = useFormControlContext;
|
|
259
|
+
exports.useFormField = useFormField;
|
|
260
|
+
//# sourceMappingURL=form.cjs.map
|