@hua-labs/ui 1.0.0 → 1.1.0-alpha.0.2
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/README.md +897 -210
- package/dist/ComponentLayout-BxCenSAm.d.mts +73 -0
- package/dist/advanced/dashboard.d.ts +7 -0
- package/dist/advanced/dashboard.d.ts.map +1 -0
- package/dist/advanced/motion.d.ts +2 -0
- package/dist/advanced/motion.d.ts.map +1 -0
- package/dist/advanced-dashboard.d.mts +4 -0
- package/dist/advanced-dashboard.js +2 -0
- package/dist/advanced-dashboard.js.map +1 -0
- package/dist/advanced-dashboard.mjs +2 -0
- package/dist/advanced-dashboard.mjs.map +1 -0
- package/dist/advanced-motion.d.mts +93 -0
- package/dist/advanced-motion.js +2 -0
- package/dist/advanced-motion.js.map +1 -0
- package/dist/advanced-motion.mjs +2 -0
- package/dist/advanced-motion.mjs.map +1 -0
- package/dist/advanced.d.mts +734 -0
- package/dist/advanced.d.ts +17 -0
- package/dist/advanced.d.ts.map +1 -0
- package/dist/advanced.js +2 -0
- package/dist/advanced.js.map +1 -0
- package/dist/advanced.mjs +2 -0
- package/dist/advanced.mjs.map +1 -0
- package/dist/chunk-627HOIRV.mjs +2 -0
- package/dist/chunk-627HOIRV.mjs.map +1 -0
- package/dist/chunk-ACEKLG37.mjs +2 -0
- package/dist/chunk-ACEKLG37.mjs.map +1 -0
- package/dist/chunk-E5PN4LUS.mjs +2 -0
- package/dist/chunk-E5PN4LUS.mjs.map +1 -0
- package/dist/chunk-KHEJZ3U4.mjs +2 -0
- package/dist/chunk-KHEJZ3U4.mjs.map +1 -0
- package/dist/chunk-MXGXBG63.mjs +2 -0
- package/dist/chunk-MXGXBG63.mjs.map +1 -0
- package/dist/chunk-R5KCFRYV.mjs +2 -0
- package/dist/chunk-R5KCFRYV.mjs.map +1 -0
- package/dist/chunk-UGSYQDR4.mjs +2 -0
- package/dist/chunk-UGSYQDR4.mjs.map +1 -0
- package/dist/chunk-UUHAXGMO.mjs +2 -0
- package/dist/chunk-UUHAXGMO.mjs.map +1 -0
- package/dist/chunk-VU264VFN.mjs +2 -0
- package/dist/chunk-VU264VFN.mjs.map +1 -0
- package/dist/chunk-ZFS4B5QT.mjs +2 -0
- package/dist/chunk-ZFS4B5QT.mjs.map +1 -0
- package/dist/components/Accordion.d.ts +109 -1
- package/dist/components/Accordion.d.ts.map +1 -1
- package/dist/components/Action.d.ts +68 -0
- package/dist/components/Action.d.ts.map +1 -0
- package/dist/components/ActionToolbar.d.ts +65 -0
- package/dist/components/ActionToolbar.d.ts.map +1 -0
- package/dist/components/Alert.d.ts +49 -0
- package/dist/components/Alert.d.ts.map +1 -1
- package/dist/components/Autocomplete.d.ts +88 -0
- package/dist/components/Autocomplete.d.ts.map +1 -0
- package/dist/components/Avatar.d.ts +71 -1
- package/dist/components/Avatar.d.ts.map +1 -1
- package/dist/components/Badge.d.ts +32 -2
- package/dist/components/Badge.d.ts.map +1 -1
- package/dist/components/Bookmark.d.ts +49 -0
- package/dist/components/Bookmark.d.ts.map +1 -0
- package/dist/components/BottomSheet.d.ts +91 -1
- package/dist/components/BottomSheet.d.ts.map +1 -1
- package/dist/components/Breadcrumb.d.ts +73 -14
- package/dist/components/Breadcrumb.d.ts.map +1 -1
- package/dist/components/Button.d.ts +82 -7
- package/dist/components/Button.d.ts.map +1 -1
- package/dist/components/Card.d.ts +122 -5
- package/dist/components/Card.d.ts.map +1 -1
- package/dist/components/ChatMessage.d.ts +67 -1
- package/dist/components/ChatMessage.d.ts.map +1 -1
- package/dist/components/Checkbox.d.ts +48 -2
- package/dist/components/Checkbox.d.ts.map +1 -1
- package/dist/components/Command.d.ts +82 -1
- package/dist/components/Command.d.ts.map +1 -1
- package/dist/components/ComponentLayout.d.ts +72 -0
- package/dist/components/ComponentLayout.d.ts.map +1 -0
- package/dist/components/ConfirmModal.d.ts +66 -1
- package/dist/components/ConfirmModal.d.ts.map +1 -1
- package/dist/components/Container.d.ts +39 -0
- package/dist/components/Container.d.ts.map +1 -1
- package/dist/components/ContextMenu.d.ts +51 -1
- package/dist/components/ContextMenu.d.ts.map +1 -1
- package/dist/components/DatePicker.d.ts +62 -0
- package/dist/components/DatePicker.d.ts.map +1 -0
- package/dist/components/Divider.d.ts +13 -3
- package/dist/components/Divider.d.ts.map +1 -1
- package/dist/components/Drawer.d.ts +103 -1
- package/dist/components/Drawer.d.ts.map +1 -1
- package/dist/components/Dropdown.d.ts +51 -1
- package/dist/components/Dropdown.d.ts.map +1 -1
- package/dist/components/EmotionAnalysis.d.ts +59 -1
- package/dist/components/EmotionAnalysis.d.ts.map +1 -1
- package/dist/components/EmotionButton.d.ts +35 -1
- package/dist/components/EmotionButton.d.ts.map +1 -1
- package/dist/components/EmotionMeter.d.ts +38 -2
- package/dist/components/EmotionMeter.d.ts.map +1 -1
- package/dist/components/EmotionSelector.d.ts +51 -1
- package/dist/components/EmotionSelector.d.ts.map +1 -1
- package/dist/components/FeatureCard.d.ts +61 -0
- package/dist/components/FeatureCard.d.ts.map +1 -0
- package/dist/components/Form.d.ts +114 -0
- package/dist/components/Form.d.ts.map +1 -0
- package/dist/components/Grid.d.ts +42 -1
- package/dist/components/Grid.d.ts.map +1 -1
- package/dist/components/HeroSection.d.ts +77 -0
- package/dist/components/HeroSection.d.ts.map +1 -0
- package/dist/components/Icon/Icon.d.ts +159 -0
- package/dist/components/Icon/Icon.d.ts.map +1 -0
- package/dist/components/Icon/IconProvider.d.ts +94 -0
- package/dist/components/Icon/IconProvider.d.ts.map +1 -0
- package/dist/components/Icon/icon-store.d.ts +21 -0
- package/dist/components/Icon/icon-store.d.ts.map +1 -0
- package/dist/components/Icon/index.d.ts +10 -0
- package/dist/components/Icon/index.d.ts.map +1 -0
- package/dist/components/InfoCard.d.ts +48 -0
- package/dist/components/InfoCard.d.ts.map +1 -0
- package/dist/components/Input.d.ts +40 -8
- package/dist/components/Input.d.ts.map +1 -1
- package/dist/components/Label.d.ts +50 -0
- package/dist/components/Label.d.ts.map +1 -0
- package/dist/components/LanguageToggle.d.ts +41 -1
- package/dist/components/LanguageToggle.d.ts.map +1 -1
- package/dist/components/Link.d.ts +52 -0
- package/dist/components/Link.d.ts.map +1 -0
- package/dist/components/LoadingSpinner.d.ts +44 -5
- package/dist/components/LoadingSpinner.d.ts.map +1 -1
- package/dist/components/Menu.d.ts +92 -1
- package/dist/components/Menu.d.ts.map +1 -1
- package/dist/components/Modal.d.ts +67 -5
- package/dist/components/Modal.d.ts.map +1 -1
- package/dist/components/Navigation.d.ts +72 -0
- package/dist/components/Navigation.d.ts.map +1 -0
- package/dist/components/PageNavigation.d.ts +48 -0
- package/dist/components/PageNavigation.d.ts.map +1 -0
- package/dist/components/PageTransition.d.ts +44 -1
- package/dist/components/PageTransition.d.ts.map +1 -1
- package/dist/components/Pagination.d.ts +52 -1
- package/dist/components/Pagination.d.ts.map +1 -1
- package/dist/components/Panel.d.ts +99 -0
- package/dist/components/Panel.d.ts.map +1 -0
- package/dist/components/Popover.d.ts +46 -1
- package/dist/components/Popover.d.ts.map +1 -1
- package/dist/components/Progress.d.ts +52 -3
- package/dist/components/Progress.d.ts.map +1 -1
- package/dist/components/Radio.d.ts +44 -2
- package/dist/components/Radio.d.ts.map +1 -1
- package/dist/components/ScrollArea.d.ts +53 -1
- package/dist/components/ScrollArea.d.ts.map +1 -1
- package/dist/components/ScrollIndicator.d.ts +43 -1
- package/dist/components/ScrollIndicator.d.ts.map +1 -1
- package/dist/components/ScrollProgress.d.ts +37 -0
- package/dist/components/ScrollProgress.d.ts.map +1 -1
- package/dist/components/ScrollToTop.d.ts +48 -11
- package/dist/components/ScrollToTop.d.ts.map +1 -1
- package/dist/components/SectionHeader.d.ts +42 -0
- package/dist/components/SectionHeader.d.ts.map +1 -0
- package/dist/components/Select.d.ts +59 -2
- package/dist/components/Select.d.ts.map +1 -1
- package/dist/components/Skeleton.d.ts +44 -1
- package/dist/components/Skeleton.d.ts.map +1 -1
- package/dist/components/Slider.d.ts +75 -0
- package/dist/components/Slider.d.ts.map +1 -0
- package/dist/components/Stack.d.ts +42 -1
- package/dist/components/Stack.d.ts.map +1 -1
- package/dist/components/StatsPanel.d.ts +72 -0
- package/dist/components/StatsPanel.d.ts.map +1 -0
- package/dist/components/Switch.d.ts +48 -2
- package/dist/components/Switch.d.ts.map +1 -1
- package/dist/components/Table.d.ts +206 -0
- package/dist/components/Table.d.ts.map +1 -0
- package/dist/components/Tabs.d.ts +123 -10
- package/dist/components/Tabs.d.ts.map +1 -1
- package/dist/components/Textarea.d.ts +48 -2
- package/dist/components/Textarea.d.ts.map +1 -1
- package/dist/components/ThemeProvider.d.ts +67 -2
- package/dist/components/ThemeProvider.d.ts.map +1 -1
- package/dist/components/ThemeToggle.d.ts +44 -0
- package/dist/components/ThemeToggle.d.ts.map +1 -1
- package/dist/components/Toast.d.ts +75 -1
- package/dist/components/Toast.d.ts.map +1 -1
- package/dist/components/Toggle.d.ts +62 -0
- package/dist/components/Toggle.d.ts.map +1 -0
- package/dist/components/Tooltip.d.ts +48 -1
- package/dist/components/Tooltip.d.ts.map +1 -1
- package/dist/components/Upload.d.ts +87 -0
- package/dist/components/Upload.d.ts.map +1 -0
- package/dist/components/advanced/AdvancedPageTransition.d.ts +25 -0
- package/dist/components/advanced/AdvancedPageTransition.d.ts.map +1 -0
- package/dist/components/advanced/index.d.ts +4 -0
- package/dist/components/advanced/index.d.ts.map +1 -0
- package/dist/components/advanced/usePageTransition.d.ts +33 -0
- package/dist/components/advanced/usePageTransition.d.ts.map +1 -0
- package/dist/components/advanced/usePageTransitionManager.d.ts +44 -0
- package/dist/components/advanced/usePageTransitionManager.d.ts.map +1 -0
- package/dist/components/dashboard/ActivityFeed.d.ts +87 -0
- package/dist/components/dashboard/ActivityFeed.d.ts.map +1 -0
- package/dist/components/dashboard/BarChart.d.ts +82 -0
- package/dist/components/dashboard/BarChart.d.ts.map +1 -0
- package/dist/components/dashboard/DashboardGrid.d.ts +44 -0
- package/dist/components/dashboard/DashboardGrid.d.ts.map +1 -0
- package/dist/components/dashboard/DashboardSidebar.d.ts +105 -0
- package/dist/components/dashboard/DashboardSidebar.d.ts.map +1 -0
- package/dist/components/dashboard/DashboardToolbar.d.ts +120 -0
- package/dist/components/dashboard/DashboardToolbar.d.ts.map +1 -0
- package/dist/components/dashboard/EmptyState.d.ts +61 -0
- package/dist/components/dashboard/EmptyState.d.ts.map +1 -0
- package/dist/components/dashboard/MembershipBadge.d.ts +45 -0
- package/dist/components/dashboard/MembershipBadge.d.ts.map +1 -0
- package/dist/components/dashboard/MerchantList.d.ts +98 -0
- package/dist/components/dashboard/MerchantList.d.ts.map +1 -0
- package/dist/components/dashboard/MetricCard.d.ts +75 -0
- package/dist/components/dashboard/MetricCard.d.ts.map +1 -0
- package/dist/components/dashboard/MiniBarChart.d.ts +60 -0
- package/dist/components/dashboard/MiniBarChart.d.ts.map +1 -0
- package/dist/components/dashboard/NotificationCard.d.ts +89 -0
- package/dist/components/dashboard/NotificationCard.d.ts.map +1 -0
- package/dist/components/dashboard/ProfileCard.d.ts +82 -0
- package/dist/components/dashboard/ProfileCard.d.ts.map +1 -0
- package/dist/components/dashboard/ProgressCard.d.ts +71 -0
- package/dist/components/dashboard/ProgressCard.d.ts.map +1 -0
- package/dist/components/dashboard/QuickActionCard.d.ts +63 -0
- package/dist/components/dashboard/QuickActionCard.d.ts.map +1 -0
- package/dist/components/dashboard/RoutingBreakdownCard.d.ts +88 -0
- package/dist/components/dashboard/RoutingBreakdownCard.d.ts.map +1 -0
- package/dist/components/dashboard/SettlementTimeline.d.ts +90 -0
- package/dist/components/dashboard/SettlementTimeline.d.ts.map +1 -0
- package/dist/components/dashboard/StatCard.d.ts +70 -0
- package/dist/components/dashboard/StatCard.d.ts.map +1 -0
- package/dist/components/dashboard/SummaryCard.d.ts +73 -0
- package/dist/components/dashboard/SummaryCard.d.ts.map +1 -0
- package/dist/components/dashboard/TransactionDetailDrawer.d.ts +183 -0
- package/dist/components/dashboard/TransactionDetailDrawer.d.ts.map +1 -0
- package/dist/components/dashboard/TransactionsTable.d.ts +137 -0
- package/dist/components/dashboard/TransactionsTable.d.ts.map +1 -0
- package/dist/components/dashboard/TrendChart.d.ts +75 -0
- package/dist/components/dashboard/TrendChart.d.ts.map +1 -0
- package/dist/components/dashboard/index.d.ts +41 -0
- package/dist/components/dashboard/index.d.ts.map +1 -0
- package/dist/components/scrollbar/scrollbar.d.ts +12 -0
- package/dist/components/scrollbar/scrollbar.d.ts.map +1 -0
- package/dist/dashboard-QMssHf5j.d.mts +1801 -0
- package/dist/feedback.d.mts +103 -0
- package/dist/feedback.d.ts +21 -0
- package/dist/feedback.d.ts.map +1 -0
- package/dist/feedback.js +2 -0
- package/dist/feedback.js.map +1 -0
- package/dist/feedback.mjs +2 -0
- package/dist/feedback.mjs.map +1 -0
- package/dist/form.d.mts +803 -0
- package/dist/form.d.ts +42 -0
- package/dist/form.d.ts.map +1 -0
- package/dist/form.js +2 -0
- package/dist/form.js.map +1 -0
- package/dist/form.mjs +2 -0
- package/dist/form.mjs.map +1 -0
- package/dist/hooks/useScrollToggle.d.ts +12 -0
- package/dist/hooks/useScrollToggle.d.ts.map +1 -0
- package/dist/icons-DoSGIez_.d.mts +135 -0
- package/dist/index.d.mts +3770 -0
- package/dist/index.d.ts +76 -38
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +37 -49
- package/dist/index.js.map +1 -0
- package/dist/index.mjs +37 -0
- package/dist/index.mjs.map +1 -0
- package/dist/lib/icon-aliases.d.ts +24 -0
- package/dist/lib/icon-aliases.d.ts.map +1 -0
- package/dist/lib/icon-names.d.ts +47 -0
- package/dist/lib/icon-names.d.ts.map +1 -0
- package/dist/lib/icon-providers.d.ts +559 -0
- package/dist/lib/icon-providers.d.ts.map +1 -0
- package/dist/lib/icons.d.ts +113 -24
- package/dist/lib/icons.d.ts.map +1 -1
- package/dist/lib/phosphor-icons.d.ts +6 -0
- package/dist/lib/phosphor-icons.d.ts.map +1 -0
- package/dist/lib/styles/colors.d.ts +131 -0
- package/dist/lib/styles/colors.d.ts.map +1 -0
- package/dist/lib/styles/index.d.ts +8 -0
- package/dist/lib/styles/index.d.ts.map +1 -0
- package/dist/lib/styles/utils.d.ts +87 -0
- package/dist/lib/styles/utils.d.ts.map +1 -0
- package/dist/lib/styles/variants.d.ts +79 -0
- package/dist/lib/styles/variants.d.ts.map +1 -0
- package/dist/lib/types/common.d.ts +80 -0
- package/dist/lib/types/common.d.ts.map +1 -0
- package/dist/lib/types/index.d.ts +6 -0
- package/dist/lib/types/index.d.ts.map +1 -0
- package/dist/lib/utils.d.ts +73 -1
- package/dist/lib/utils.d.ts.map +1 -1
- package/dist/navigation.d.mts +105 -0
- package/dist/navigation.d.ts +22 -0
- package/dist/navigation.d.ts.map +1 -0
- package/dist/navigation.js +2 -0
- package/dist/navigation.js.map +1 -0
- package/dist/navigation.mjs +2 -0
- package/dist/navigation.mjs.map +1 -0
- package/package.json +92 -25
- package/src/styles/toast.css +23 -0
- package/dist/components/Accordion.js +0 -84
- package/dist/components/Alert.js +0 -61
- package/dist/components/Avatar.js +0 -18
- package/dist/components/Badge.js +0 -15
- package/dist/components/BottomSheet.js +0 -96
- package/dist/components/Breadcrumb.js +0 -47
- package/dist/components/Button.js +0 -23
- package/dist/components/Card.js +0 -18
- package/dist/components/ChatMessage.js +0 -59
- package/dist/components/Checkbox.js +0 -30
- package/dist/components/Command.js +0 -119
- package/dist/components/ConfirmModal.js +0 -53
- package/dist/components/Container.js +0 -23
- package/dist/components/ContextMenu.js +0 -110
- package/dist/components/Divider.js +0 -39
- package/dist/components/Drawer.js +0 -79
- package/dist/components/Dropdown.js +0 -174
- package/dist/components/EmotionAnalysis.js +0 -40
- package/dist/components/EmotionButton.js +0 -16
- package/dist/components/EmotionMeter.js +0 -21
- package/dist/components/EmotionSelector.js +0 -46
- package/dist/components/Grid.js +0 -44
- package/dist/components/Icon.d.ts +0 -26
- package/dist/components/Icon.d.ts.map +0 -1
- package/dist/components/Icon.js +0 -48
- package/dist/components/Input.js +0 -25
- package/dist/components/LanguageToggle.js +0 -61
- package/dist/components/LoadingSpinner.js +0 -37
- package/dist/components/Menu.js +0 -122
- package/dist/components/Modal.js +0 -62
- package/dist/components/PageTransition.js +0 -39
- package/dist/components/Pagination.js +0 -87
- package/dist/components/Popover.js +0 -159
- package/dist/components/Progress.js +0 -51
- package/dist/components/Radio.js +0 -29
- package/dist/components/ScrollArea.js +0 -42
- package/dist/components/ScrollIndicator.js +0 -60
- package/dist/components/ScrollProgress.js +0 -39
- package/dist/components/ScrollToTop.js +0 -46
- package/dist/components/Select.js +0 -29
- package/dist/components/Skeleton.js +0 -71
- package/dist/components/Stack.js +0 -34
- package/dist/components/Switch.js +0 -29
- package/dist/components/Tabs.js +0 -117
- package/dist/components/Textarea.js +0 -31
- package/dist/components/ThemeProvider.js +0 -76
- package/dist/components/ThemeToggle.js +0 -49
- package/dist/components/Toast.js +0 -138
- package/dist/components/Tooltip.js +0 -102
- package/dist/lib/icons.js +0 -321
- package/dist/lib/utils.js +0 -5
|
@@ -1,15 +1,77 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
1
|
+
import React from "react";
|
|
2
|
+
/**
|
|
3
|
+
* Modal 컴포넌트의 props / Modal component props
|
|
4
|
+
* @typedef {Object} ModalProps
|
|
5
|
+
* @property {boolean} isOpen - 모달 열림/닫힘 상태 / Modal open/close state
|
|
6
|
+
* @property {() => void} onClose - 모달 닫기 콜백 함수 / Modal close callback function
|
|
7
|
+
* @property {React.ReactNode} children - 모달 내용 / Modal content
|
|
8
|
+
* @property {"sm" | "md" | "lg" | "xl" | "2xl" | "3xl"} [size="md"] - 모달 크기 / Modal size
|
|
9
|
+
* @property {boolean} [showCloseButton=true] - 닫기 버튼 표시 여부 / Show close button
|
|
10
|
+
* @property {boolean} [closeOnOverlayClick=true] - 오버레이 클릭 시 닫기 여부 / Close on overlay click
|
|
11
|
+
* @property {string} [title] - 모달 제목 / Modal title
|
|
12
|
+
* @property {string} [description] - 모달 설명 / Modal description
|
|
13
|
+
* @property {boolean} [showBackdrop=true] - 배경 오버레이 표시 여부 / Show backdrop overlay
|
|
14
|
+
* @property {string} [backdropClassName] - 배경 오버레이 추가 CSS 클래스 / Additional CSS class for backdrop
|
|
15
|
+
* @property {boolean} [centered=true] - 모달을 화면 중앙에 배치할지 여부 / Center modal on screen
|
|
16
|
+
* @property {string} [className] - 모달 컨테이너 추가 CSS 클래스 / Additional CSS class for modal container
|
|
17
|
+
*/
|
|
18
|
+
export interface ModalProps {
|
|
3
19
|
isOpen: boolean;
|
|
4
20
|
onClose: () => void;
|
|
5
21
|
children: React.ReactNode;
|
|
6
|
-
size?: "sm" | "md" | "lg" | "xl" | "2xl";
|
|
22
|
+
size?: "sm" | "md" | "lg" | "xl" | "2xl" | "3xl";
|
|
7
23
|
showCloseButton?: boolean;
|
|
8
24
|
closeOnOverlayClick?: boolean;
|
|
9
25
|
title?: string;
|
|
26
|
+
description?: string;
|
|
10
27
|
showBackdrop?: boolean;
|
|
28
|
+
backdropClassName?: string;
|
|
11
29
|
centered?: boolean;
|
|
30
|
+
className?: string;
|
|
12
31
|
}
|
|
13
|
-
|
|
14
|
-
|
|
32
|
+
/**
|
|
33
|
+
* Modal 컴포넌트 / Modal component
|
|
34
|
+
*
|
|
35
|
+
* 오버레이와 함께 표시되는 모달 다이얼로그 컴포넌트입니다.
|
|
36
|
+
* ESC 키로 닫기, 오버레이 클릭으로 닫기, 접근성 속성(ARIA)을 지원합니다.
|
|
37
|
+
*
|
|
38
|
+
* Modal dialog component displayed with overlay.
|
|
39
|
+
* Supports closing with ESC key, overlay click, and ARIA accessibility attributes.
|
|
40
|
+
*
|
|
41
|
+
* @component
|
|
42
|
+
* @example
|
|
43
|
+
* // 기본 사용 / Basic usage
|
|
44
|
+
* const [isOpen, setIsOpen] = useState(false)
|
|
45
|
+
*
|
|
46
|
+
* <Modal isOpen={isOpen} onClose={() => setIsOpen(false)}>
|
|
47
|
+
* <p>모달 내용</p>
|
|
48
|
+
* </Modal>
|
|
49
|
+
*
|
|
50
|
+
* @example
|
|
51
|
+
* // 제목과 설명 포함 / With title and description
|
|
52
|
+
* <Modal
|
|
53
|
+
* isOpen={isOpen}
|
|
54
|
+
* onClose={() => setIsOpen(false)}
|
|
55
|
+
* title="확인"
|
|
56
|
+
* description="이 작업을 계속하시겠습니까?"
|
|
57
|
+
* >
|
|
58
|
+
* <Button onClick={handleConfirm}>확인</Button>
|
|
59
|
+
* </Modal>
|
|
60
|
+
*
|
|
61
|
+
* @example
|
|
62
|
+
* // 큰 크기 모달 / Large size modal
|
|
63
|
+
* <Modal
|
|
64
|
+
* isOpen={isOpen}
|
|
65
|
+
* onClose={() => setIsOpen(false)}
|
|
66
|
+
* size="xl"
|
|
67
|
+
* closeOnOverlayClick={false}
|
|
68
|
+
* >
|
|
69
|
+
* <div>큰 모달 내용</div>
|
|
70
|
+
* </Modal>
|
|
71
|
+
*
|
|
72
|
+
* @param {ModalProps} props - Modal 컴포넌트의 props / Modal component props
|
|
73
|
+
* @param {React.Ref<HTMLDivElement>} ref - 모달 컨테이너 ref / Modal container ref
|
|
74
|
+
* @returns {JSX.Element} Modal 컴포넌트 / Modal component
|
|
75
|
+
*/
|
|
76
|
+
export declare const Modal: React.ForwardRefExoticComponent<ModalProps & React.RefAttributes<HTMLDivElement>>;
|
|
15
77
|
//# sourceMappingURL=Modal.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Modal.d.ts","sourceRoot":"","sources":["../../src/components/Modal.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"Modal.d.ts","sourceRoot":"","sources":["../../src/components/Modal.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,MAAM,OAAO,CAAA;AAGzB;;;;;;;;;;;;;;;GAeG;AACH,MAAM,WAAW,UAAU;IACzB,MAAM,EAAE,OAAO,CAAA;IACf,OAAO,EAAE,MAAM,IAAI,CAAA;IACnB,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAA;IACzB,IAAI,CAAC,EAAE,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,KAAK,GAAG,KAAK,CAAA;IAChD,eAAe,CAAC,EAAE,OAAO,CAAA;IACzB,mBAAmB,CAAC,EAAE,OAAO,CAAA;IAC7B,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,YAAY,CAAC,EAAE,OAAO,CAAA;IACtB,iBAAiB,CAAC,EAAE,MAAM,CAAA;IAC1B,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB;AAoBD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2CG;AACH,eAAO,MAAM,KAAK,mFA2JhB,CAAA"}
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
/**
|
|
3
|
+
* Navigation 컴포넌트의 props / Navigation component props
|
|
4
|
+
* @typedef {Object} NavigationProps
|
|
5
|
+
* @property {string} [value] - 제어 모드에서 활성 탭 값 / Active tab value in controlled mode
|
|
6
|
+
* @property {string} [defaultValue] - 비제어 모드에서 기본 활성 탭 값 / Default active tab value in uncontrolled mode
|
|
7
|
+
* @property {(value: string) => void} [onValueChange] - 탭 변경 콜백 / Tab change callback
|
|
8
|
+
* @property {"pills" | "underline" | "cards"} [variant="pills"] - Navigation 스타일 변형 / Navigation style variant
|
|
9
|
+
* @property {"small" | "medium" | "large"} [scale="medium"] - Navigation 크기 / Navigation size
|
|
10
|
+
* @extends {Omit<React.HTMLAttributes<HTMLDivElement>, 'style'>}
|
|
11
|
+
*/
|
|
12
|
+
export interface NavigationProps extends Omit<React.HTMLAttributes<HTMLDivElement>, 'style'> {
|
|
13
|
+
value?: string;
|
|
14
|
+
defaultValue?: string;
|
|
15
|
+
onValueChange?: (value: string) => void;
|
|
16
|
+
variant?: "pills" | "underline" | "cards";
|
|
17
|
+
scale?: "small" | "medium" | "large";
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* NavigationList 컴포넌트의 props / NavigationList component props
|
|
21
|
+
* @typedef {Object} NavigationListProps
|
|
22
|
+
* @property {string} [value] - 활성 탭 값 / Active tab value
|
|
23
|
+
* @property {(value: string) => void} [onValueChange] - 탭 변경 콜백 / Tab change callback
|
|
24
|
+
* @property {"pills" | "underline" | "cards"} [variant="pills"] - Navigation 스타일 변형 / Navigation style variant
|
|
25
|
+
* @property {"small" | "medium" | "large"} [scale="medium"] - Navigation 크기 / Navigation size
|
|
26
|
+
* @extends {Omit<React.HTMLAttributes<HTMLDivElement>, 'style'>}
|
|
27
|
+
*/
|
|
28
|
+
export interface NavigationListProps extends Omit<React.HTMLAttributes<HTMLDivElement>, 'style'> {
|
|
29
|
+
value?: string;
|
|
30
|
+
onValueChange?: (value: string) => void;
|
|
31
|
+
variant?: "pills" | "underline" | "cards";
|
|
32
|
+
scale?: "small" | "medium" | "large";
|
|
33
|
+
}
|
|
34
|
+
declare const NavigationList: React.ForwardRefExoticComponent<NavigationListProps & React.RefAttributes<HTMLDivElement>>;
|
|
35
|
+
/**
|
|
36
|
+
* NavigationItem 컴포넌트의 props / NavigationItem component props
|
|
37
|
+
* @typedef {Object} NavigationItemProps
|
|
38
|
+
* @property {string} value - 탭 값 / Tab value
|
|
39
|
+
* @property {(value: string) => void} [onValueChange] - 탭 변경 콜백 / Tab change callback
|
|
40
|
+
* @property {"pills" | "underline" | "cards"} [variant] - Navigation 스타일 변형 (자동으로 설정됨) / Navigation style variant (auto-set)
|
|
41
|
+
* @property {"small" | "medium" | "large"} [scale] - Navigation 크기 (자동으로 설정됨) / Navigation size (auto-set)
|
|
42
|
+
* @property {boolean} [active] - 활성 상태 (자동으로 설정됨) / Active state (auto-set)
|
|
43
|
+
* @extends {Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, 'style'>}
|
|
44
|
+
*/
|
|
45
|
+
export interface NavigationItemProps extends Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, 'style'> {
|
|
46
|
+
value: string;
|
|
47
|
+
onValueChange?: (value: string) => void;
|
|
48
|
+
variant?: "pills" | "underline" | "cards";
|
|
49
|
+
scale?: "small" | "medium" | "large";
|
|
50
|
+
active?: boolean;
|
|
51
|
+
}
|
|
52
|
+
declare const NavigationItem: React.ForwardRefExoticComponent<NavigationItemProps & React.RefAttributes<HTMLButtonElement>>;
|
|
53
|
+
/**
|
|
54
|
+
* NavigationContent 컴포넌트의 props / NavigationContent component props
|
|
55
|
+
* @typedef {Object} NavigationContentProps
|
|
56
|
+
* @property {string} value - 탭 값 / Tab value
|
|
57
|
+
* @property {boolean} [active] - 활성 상태 (자동으로 설정됨) / Active state (auto-set)
|
|
58
|
+
* @extends {React.HTMLAttributes<HTMLDivElement>}
|
|
59
|
+
*/
|
|
60
|
+
export interface NavigationContentProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
61
|
+
value: string;
|
|
62
|
+
active?: boolean;
|
|
63
|
+
}
|
|
64
|
+
declare const NavigationContent: React.ForwardRefExoticComponent<NavigationContentProps & React.RefAttributes<HTMLDivElement>>;
|
|
65
|
+
export interface NavigationComponent extends React.ForwardRefExoticComponent<NavigationProps & React.RefAttributes<HTMLDivElement>> {
|
|
66
|
+
List: typeof NavigationList;
|
|
67
|
+
Item: typeof NavigationItem;
|
|
68
|
+
Content: typeof NavigationContent;
|
|
69
|
+
}
|
|
70
|
+
declare const NavigationComponent: NavigationComponent;
|
|
71
|
+
export { NavigationComponent as Navigation, NavigationList, NavigationItem, NavigationContent };
|
|
72
|
+
//# sourceMappingURL=Navigation.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Navigation.d.ts","sourceRoot":"","sources":["../../src/components/Navigation.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,MAAM,OAAO,CAAA;AAGzB;;;;;;;;;GASG;AACH,MAAM,WAAW,eAAgB,SAAQ,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC,EAAE,OAAO,CAAC;IAC1F,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAA;IACvC,OAAO,CAAC,EAAE,OAAO,GAAG,WAAW,GAAG,OAAO,CAAA;IACzC,KAAK,CAAC,EAAE,OAAO,GAAG,QAAQ,GAAG,OAAO,CAAA;CACrC;AA+ED;;;;;;;;GAQG;AACH,MAAM,WAAW,mBAAoB,SAAQ,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC,EAAE,OAAO,CAAC;IAC9F,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAA;IACvC,OAAO,CAAC,EAAE,OAAO,GAAG,WAAW,GAAG,OAAO,CAAA;IACzC,KAAK,CAAC,EAAE,OAAO,GAAG,QAAQ,GAAG,OAAO,CAAA;CACrC;AAED,QAAA,MAAM,cAAc,4FA0DnB,CAAA;AAGD;;;;;;;;;GASG;AACH,MAAM,WAAW,mBAAoB,SAAQ,IAAI,CAAC,KAAK,CAAC,oBAAoB,CAAC,iBAAiB,CAAC,EAAE,OAAO,CAAC;IACvG,KAAK,EAAE,MAAM,CAAA;IACb,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAA;IACvC,OAAO,CAAC,EAAE,OAAO,GAAG,WAAW,GAAG,OAAO,CAAA;IACzC,KAAK,CAAC,EAAE,OAAO,GAAG,QAAQ,GAAG,OAAO,CAAA;IACpC,MAAM,CAAC,EAAE,OAAO,CAAA;CACjB;AAED,QAAA,MAAM,cAAc,+FA2EnB,CAAA;AAGD;;;;;;GAMG;AACH,MAAM,WAAW,sBAAuB,SAAQ,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC;IAClF,KAAK,EAAE,MAAM,CAAA;IACb,MAAM,CAAC,EAAE,OAAO,CAAA;CACjB;AAED,QAAA,MAAM,iBAAiB,+FAYtB,CAAA;AAID,MAAM,WAAW,mBAAoB,SAAQ,KAAK,CAAC,yBAAyB,CAAC,eAAe,GAAG,KAAK,CAAC,aAAa,CAAC,cAAc,CAAC,CAAC;IACjI,IAAI,EAAE,OAAO,cAAc,CAAA;IAC3B,IAAI,EAAE,OAAO,cAAc,CAAA;IAC3B,OAAO,EAAE,OAAO,iBAAiB,CAAA;CAClC;AAED,QAAA,MAAM,mBAAmB,EAAiB,mBAAmB,CAAA;AAK7D,OAAO,EAAE,mBAAmB,IAAI,UAAU,EAAE,cAAc,EAAE,cAAc,EAAE,iBAAiB,EAAE,CAAA"}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
/**
|
|
3
|
+
* PageNavigation 컴포넌트의 props / PageNavigation component props
|
|
4
|
+
* @typedef {Object} PageNavigationProps
|
|
5
|
+
* @property {Object} [prevPage] - 이전 페이지 정보 / Previous page information
|
|
6
|
+
* @property {string} prevPage.title - 이전 페이지 제목 / Previous page title
|
|
7
|
+
* @property {string} prevPage.href - 이전 페이지 링크 / Previous page link
|
|
8
|
+
* @property {Object} [nextPage] - 다음 페이지 정보 / Next page information
|
|
9
|
+
* @property {string} nextPage.title - 다음 페이지 제목 / Next page title
|
|
10
|
+
* @property {string} nextPage.href - 다음 페이지 링크 / Next page link
|
|
11
|
+
* @property {boolean} [showOnMobile=false] - 모바일에서 표시 여부 / Show on mobile
|
|
12
|
+
* @extends {React.HTMLAttributes<HTMLDivElement>}
|
|
13
|
+
*/
|
|
14
|
+
export interface PageNavigationProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
15
|
+
prevPage?: {
|
|
16
|
+
title: string;
|
|
17
|
+
href: string;
|
|
18
|
+
};
|
|
19
|
+
nextPage?: {
|
|
20
|
+
title: string;
|
|
21
|
+
href: string;
|
|
22
|
+
};
|
|
23
|
+
showOnMobile?: boolean;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* PageNavigation 컴포넌트 / PageNavigation component
|
|
27
|
+
*
|
|
28
|
+
* 이전/다음 페이지로 이동하는 네비게이션 컴포넌트입니다.
|
|
29
|
+
* 문서 페이지나 가이드 페이지에서 사용하기 적합합니다.
|
|
30
|
+
*
|
|
31
|
+
* Navigation component for moving to previous/next pages.
|
|
32
|
+
* Suitable for documentation or guide pages.
|
|
33
|
+
*
|
|
34
|
+
* @component
|
|
35
|
+
* @example
|
|
36
|
+
* // 기본 사용 / Basic usage
|
|
37
|
+
* <PageNavigation
|
|
38
|
+
* prevPage={{ title: "이전 페이지", href: "/prev" }}
|
|
39
|
+
* nextPage={{ title: "다음 페이지", href: "/next" }}
|
|
40
|
+
* />
|
|
41
|
+
*
|
|
42
|
+
* @param {PageNavigationProps} props - PageNavigation 컴포넌트의 props / PageNavigation component props
|
|
43
|
+
* @param {React.Ref<HTMLDivElement>} ref - div 요소 ref / div element ref
|
|
44
|
+
* @returns {JSX.Element} PageNavigation 컴포넌트 / PageNavigation component
|
|
45
|
+
*/
|
|
46
|
+
declare const PageNavigation: React.ForwardRefExoticComponent<PageNavigationProps & React.RefAttributes<HTMLDivElement>>;
|
|
47
|
+
export { PageNavigation };
|
|
48
|
+
//# sourceMappingURL=PageNavigation.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PageNavigation.d.ts","sourceRoot":"","sources":["../../src/components/PageNavigation.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,MAAM,OAAO,CAAA;AAIzB;;;;;;;;;;;GAWG;AACH,MAAM,WAAW,mBAAoB,SAAQ,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC;IAC/E,QAAQ,CAAC,EAAE;QACT,KAAK,EAAE,MAAM,CAAA;QACb,IAAI,EAAE,MAAM,CAAA;KACb,CAAA;IACD,QAAQ,CAAC,EAAE;QACT,KAAK,EAAE,MAAM,CAAA;QACb,IAAI,EAAE,MAAM,CAAA;KACb,CAAA;IACD,YAAY,CAAC,EAAE,OAAO,CAAA;CACvB;AAED;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,QAAA,MAAM,cAAc,4FAwDnB,CAAA;AAGD,OAAO,EAAE,cAAc,EAAE,CAAA"}
|
|
@@ -1,15 +1,58 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* PageTransition 컴포넌트의 props / PageTransition component props
|
|
4
|
+
* @typedef {Object} PageTransitionProps
|
|
5
|
+
* @property {React.ReactNode} children - 페이지 내용 / Page content
|
|
6
|
+
* @property {string} [className] - 추가 CSS 클래스 / Additional CSS class
|
|
7
|
+
* @property {number} [duration=300] - 전환 지속 시간 (ms) / Transition duration (ms)
|
|
8
|
+
* @property {'fade' | 'slide' | 'scale' | 'flip'} [variant='fade'] - 전환 애니메이션 타입 / Transition animation type
|
|
9
|
+
* @property {'default' | 'dots' | 'bars' | 'ring' | 'ripple'} [loadingVariant='ripple'] - 로딩 스피너 타입 / Loading spinner type
|
|
10
|
+
* @property {string} [loadingText='페이지 로딩 중...'] - 로딩 텍스트 / Loading text
|
|
11
|
+
* @property {boolean} [showLoading=true] - 로딩 표시 여부 / Show loading
|
|
12
|
+
* @property {() => void} [onTransitionStart] - 전환 시작 콜백 / Transition start callback
|
|
13
|
+
* @property {() => void} [onTransitionEnd] - 전환 종료 콜백 / Transition end callback
|
|
14
|
+
*/
|
|
2
15
|
export interface PageTransitionProps {
|
|
3
16
|
children: React.ReactNode;
|
|
4
17
|
className?: string;
|
|
5
18
|
duration?: number;
|
|
6
19
|
variant?: 'fade' | 'slide' | 'scale' | 'flip';
|
|
7
|
-
loadingVariant?: 'default' | '
|
|
20
|
+
loadingVariant?: 'default' | 'dots' | 'bars' | 'ring' | 'ripple';
|
|
8
21
|
loadingText?: string;
|
|
9
22
|
showLoading?: boolean;
|
|
10
23
|
onTransitionStart?: () => void;
|
|
11
24
|
onTransitionEnd?: () => void;
|
|
12
25
|
}
|
|
26
|
+
/**
|
|
27
|
+
* PageTransition 컴포넌트 / PageTransition component
|
|
28
|
+
*
|
|
29
|
+
* 페이지 전환 애니메이션을 제공하는 컴포넌트입니다.
|
|
30
|
+
* 다양한 전환 효과와 로딩 스피너를 지원합니다.
|
|
31
|
+
*
|
|
32
|
+
* Component that provides page transition animations.
|
|
33
|
+
* Supports various transition effects and loading spinners.
|
|
34
|
+
*
|
|
35
|
+
* @component
|
|
36
|
+
* @example
|
|
37
|
+
* // 기본 사용 / Basic usage
|
|
38
|
+
* <PageTransition>
|
|
39
|
+
* <div>페이지 내용</div>
|
|
40
|
+
* </PageTransition>
|
|
41
|
+
*
|
|
42
|
+
* @example
|
|
43
|
+
* // Slide 전환 / Slide transition
|
|
44
|
+
* <PageTransition
|
|
45
|
+
* variant="slide"
|
|
46
|
+
* duration={500}
|
|
47
|
+
* loadingVariant="dots"
|
|
48
|
+
* >
|
|
49
|
+
* <div>페이지 내용</div>
|
|
50
|
+
* </PageTransition>
|
|
51
|
+
*
|
|
52
|
+
* @param {PageTransitionProps} props - PageTransition 컴포넌트의 props / PageTransition component props
|
|
53
|
+
* @param {React.Ref<HTMLDivElement>} ref - div 요소 ref / div element ref
|
|
54
|
+
* @returns {JSX.Element} PageTransition 컴포넌트 / PageTransition component
|
|
55
|
+
*/
|
|
13
56
|
export declare const PageTransition: React.ForwardRefExoticComponent<PageTransitionProps & React.RefAttributes<HTMLDivElement>>;
|
|
14
57
|
export declare const FadeTransition: React.ForwardRefExoticComponent<Omit<PageTransitionProps, "variant"> & React.RefAttributes<HTMLDivElement>>;
|
|
15
58
|
export declare const SlideTransition: React.ForwardRefExoticComponent<Omit<PageTransitionProps, "variant"> & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PageTransition.d.ts","sourceRoot":"","sources":["../../src/components/PageTransition.tsx"],"names":[],"mappings":"AAEA,OAAO,KAA8B,MAAM,OAAO,CAAA;AAIlD,MAAM,WAAW,mBAAmB;IAClC,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAA;IACzB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,OAAO,CAAC,EAAE,MAAM,GAAG,OAAO,GAAG,OAAO,GAAG,MAAM,CAAA;IAC7C,cAAc,CAAC,EAAE,SAAS,GAAG,
|
|
1
|
+
{"version":3,"file":"PageTransition.d.ts","sourceRoot":"","sources":["../../src/components/PageTransition.tsx"],"names":[],"mappings":"AAEA,OAAO,KAA8B,MAAM,OAAO,CAAA;AAIlD;;;;;;;;;;;;GAYG;AACH,MAAM,WAAW,mBAAmB;IAClC,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAA;IACzB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,OAAO,CAAC,EAAE,MAAM,GAAG,OAAO,GAAG,OAAO,GAAG,MAAM,CAAA;IAC7C,cAAc,CAAC,EAAE,SAAS,GAAG,MAAM,GAAG,MAAM,GAAG,MAAM,GAAG,QAAQ,CAAA;IAChE,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,iBAAiB,CAAC,EAAE,MAAM,IAAI,CAAA;IAC9B,eAAe,CAAC,EAAE,MAAM,IAAI,CAAA;CAC7B;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AACH,eAAO,MAAM,cAAc,4FAsEzB,CAAA;AAKF,eAAO,MAAM,cAAc,6GAEzB,CAAA;AAEF,eAAO,MAAM,eAAe,6GAE1B,CAAA;AAEF,eAAO,MAAM,eAAe,6GAE1B,CAAA;AAEF,eAAO,MAAM,cAAc,6GAEzB,CAAA"}
|
|
@@ -1,4 +1,18 @@
|
|
|
1
|
-
import
|
|
1
|
+
import React from "react";
|
|
2
|
+
/**
|
|
3
|
+
* Pagination 컴포넌트의 props / Pagination component props
|
|
4
|
+
* @typedef {Object} PaginationProps
|
|
5
|
+
* @property {number} currentPage - 현재 페이지 번호 / Current page number
|
|
6
|
+
* @property {number} totalPages - 전체 페이지 수 / Total number of pages
|
|
7
|
+
* @property {(page: number) => void} onPageChange - 페이지 변경 콜백 / Page change callback
|
|
8
|
+
* @property {boolean} [showFirstLast=true] - 첫/마지막 페이지 버튼 표시 여부 / Show first/last page buttons
|
|
9
|
+
* @property {boolean} [showPrevNext=true] - 이전/다음 페이지 버튼 표시 여부 / Show previous/next page buttons
|
|
10
|
+
* @property {number} [maxVisiblePages=5] - 최대 표시 페이지 수 / Maximum visible page numbers
|
|
11
|
+
* @property {"sm" | "md" | "lg"} [size="md"] - Pagination 크기 / Pagination size
|
|
12
|
+
* @property {"default" | "outlined" | "minimal"} [variant="default"] - Pagination 스타일 변형 / Pagination style variant
|
|
13
|
+
* @property {"square" | "circle"} [shape="square"] - 버튼 모양 / Button shape
|
|
14
|
+
* @extends {React.HTMLAttributes<HTMLDivElement>}
|
|
15
|
+
*/
|
|
2
16
|
export interface PaginationProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
3
17
|
currentPage: number;
|
|
4
18
|
totalPages: number;
|
|
@@ -8,7 +22,44 @@ export interface PaginationProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
|
8
22
|
maxVisiblePages?: number;
|
|
9
23
|
size?: "sm" | "md" | "lg";
|
|
10
24
|
variant?: "default" | "outlined" | "minimal";
|
|
25
|
+
shape?: "square" | "circle";
|
|
11
26
|
}
|
|
27
|
+
/**
|
|
28
|
+
* Pagination 컴포넌트 / Pagination component
|
|
29
|
+
*
|
|
30
|
+
* 페이지네이션 컨트롤을 제공하는 컴포넌트입니다.
|
|
31
|
+
* 첫/마지막 페이지, 이전/다음 페이지 버튼을 지원하며,
|
|
32
|
+
* 많은 페이지가 있을 경우 자동으로 생략 표시(...)를 합니다.
|
|
33
|
+
*
|
|
34
|
+
* Component that provides pagination controls.
|
|
35
|
+
* Supports first/last page and previous/next page buttons,
|
|
36
|
+
* and automatically shows ellipsis (...) when there are many pages.
|
|
37
|
+
*
|
|
38
|
+
* @component
|
|
39
|
+
* @example
|
|
40
|
+
* // 기본 사용 / Basic usage
|
|
41
|
+
* const [page, setPage] = useState(1)
|
|
42
|
+
*
|
|
43
|
+
* <Pagination
|
|
44
|
+
* currentPage={page}
|
|
45
|
+
* totalPages={10}
|
|
46
|
+
* onPageChange={setPage}
|
|
47
|
+
* />
|
|
48
|
+
*
|
|
49
|
+
* @example
|
|
50
|
+
* // Outlined 스타일, 원형 버튼 / Outlined style, circular buttons
|
|
51
|
+
* <Pagination
|
|
52
|
+
* currentPage={page}
|
|
53
|
+
* totalPages={20}
|
|
54
|
+
* onPageChange={setPage}
|
|
55
|
+
* variant="outlined"
|
|
56
|
+
* shape="circle"
|
|
57
|
+
* />
|
|
58
|
+
*
|
|
59
|
+
* @param {PaginationProps} props - Pagination 컴포넌트의 props / Pagination component props
|
|
60
|
+
* @param {React.Ref<HTMLDivElement>} ref - div 요소 ref / div element ref
|
|
61
|
+
* @returns {JSX.Element} Pagination 컴포넌트 / Pagination component
|
|
62
|
+
*/
|
|
12
63
|
declare const Pagination: React.ForwardRefExoticComponent<PaginationProps & React.RefAttributes<HTMLDivElement>>;
|
|
13
64
|
export declare const PaginationOutlined: React.ForwardRefExoticComponent<Omit<PaginationProps, "variant"> & React.RefAttributes<HTMLDivElement>>;
|
|
14
65
|
export declare const PaginationMinimal: React.ForwardRefExoticComponent<Omit<PaginationProps, "variant"> & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Pagination.d.ts","sourceRoot":"","sources":["../../src/components/Pagination.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"Pagination.d.ts","sourceRoot":"","sources":["../../src/components/Pagination.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,MAAM,OAAO,CAAA;AAGzB;;;;;;;;;;;;;GAaG;AACH,MAAM,WAAW,eAAgB,SAAQ,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC;IAC3E,WAAW,EAAE,MAAM,CAAA;IACnB,UAAU,EAAE,MAAM,CAAA;IAClB,YAAY,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAA;IACpC,aAAa,CAAC,EAAE,OAAO,CAAA;IACvB,YAAY,CAAC,EAAE,OAAO,CAAA;IACtB,eAAe,CAAC,EAAE,MAAM,CAAA;IACxB,IAAI,CAAC,EAAE,IAAI,GAAG,IAAI,GAAG,IAAI,CAAA;IACzB,OAAO,CAAC,EAAE,SAAS,GAAG,UAAU,GAAG,SAAS,CAAA;IAC5C,KAAK,CAAC,EAAE,QAAQ,GAAG,QAAQ,CAAA;CAC5B;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmCG;AACH,QAAA,MAAM,UAAU,wFA2Nf,CAAA;AAID,eAAO,MAAM,kBAAkB,yGAI9B,CAAA;AAGD,eAAO,MAAM,iBAAiB,yGAI7B,CAAA;AAID,eAAO,MAAM,kBAAkB;iBAChB,MAAM;mBACJ,MAAM;eACV,OAAO;wCAkCnB,CAAA;AAGD,OAAO,EAAE,UAAU,EAAE,CAAA"}
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { CardProps } from "./Card";
|
|
3
|
+
/**
|
|
4
|
+
* Panel 컴포넌트의 props / Panel component props
|
|
5
|
+
* @typedef {Object} PanelProps
|
|
6
|
+
* @property {"default" | "solid" | "glass" | "outline" | "elevated" | "neon" | "holographic" | "cyberpunk" | "minimal" | "luxury"} [style="default"] - Panel 스타일 / Panel style
|
|
7
|
+
* @property {"none" | "glow" | "shadow" | "gradient" | "animated"} [effect="none"] - Panel 효과 / Panel effect
|
|
8
|
+
* @property {number} [transparency=1] - 투명도 (0-1) / Transparency (0-1)
|
|
9
|
+
* @property {number} [blurIntensity=0] - backdrop-blur 강도 (px) / Backdrop blur intensity (px)
|
|
10
|
+
* @property {number} [borderOpacity=1] - 보더 투명도 (0-1) / Border opacity (0-1)
|
|
11
|
+
* @property {number} [shadowOpacity=1] - 그림자 투명도 (0-1) / Shadow opacity (0-1)
|
|
12
|
+
* @property {number} [glowIntensity=0] - 글로우 강도 (px) / Glow intensity (px)
|
|
13
|
+
* @property {string} [glowColor="blue"] - 글로우 색상 / Glow color
|
|
14
|
+
* @property {boolean} [particleEffect=false] - 파티클 효과 활성화 / Enable particle effect
|
|
15
|
+
* @property {boolean} [hoverEffect=false] - 호버 효과 활성화 / Enable hover effect
|
|
16
|
+
* @property {boolean} [animationEffect=false] - 애니메이션 효과 활성화 / Enable animation effect
|
|
17
|
+
* @property {"none" | "small" | "sm" | "medium" | "md" | "large" | "lg" | "xl" | "custom"} [padding="md"] - 패딩 크기 / Padding size
|
|
18
|
+
* @property {string} [customPadding] - 커스텀 패딩 / Custom padding
|
|
19
|
+
* @property {"none" | "sm" | "md" | "lg" | "xl" | "full" | "custom"} [rounded="lg"] - 둥근 모서리 크기 / Rounded corner size
|
|
20
|
+
* @property {string} [customRounded] - 커스텀 둥근 모서리 / Custom rounded corners
|
|
21
|
+
* @property {"solid" | "gradient" | "pattern" | "image" | "video"} [background="solid"] - 배경 타입 / Background type
|
|
22
|
+
* @property {string[]} [gradientColors] - 그라디언트 색상 배열 / Gradient color array
|
|
23
|
+
* @property {"dots" | "lines" | "grid" | "waves" | "custom"} [patternType="dots"] - 패턴 타입 / Pattern type
|
|
24
|
+
* @property {string} [backgroundImage] - 배경 이미지 URL / Background image URL
|
|
25
|
+
* @property {string} [backgroundVideo] - 배경 비디오 URL / Background video URL
|
|
26
|
+
* @property {boolean} [interactive=false] - 인터랙티브 모드 활성화 / Enable interactive mode
|
|
27
|
+
* @property {number} [hoverScale=1.05] - 호버 시 스케일 / Scale on hover
|
|
28
|
+
* @property {number} [hoverRotate=0] - 호버 시 회전 각도 / Rotation angle on hover
|
|
29
|
+
* @property {boolean} [hoverGlow=false] - 호버 시 글로우 효과 / Glow effect on hover
|
|
30
|
+
* @extends {Omit<CardProps, 'variant' | 'style'>}
|
|
31
|
+
*/
|
|
32
|
+
export interface PanelProps extends Omit<CardProps, 'variant' | 'style'> {
|
|
33
|
+
style?: "default" | "solid" | "glass" | "outline" | "elevated" | "neon" | "holographic" | "cyberpunk" | "minimal" | "luxury";
|
|
34
|
+
effect?: "none" | "glow" | "shadow" | "gradient" | "animated";
|
|
35
|
+
transparency?: number;
|
|
36
|
+
blurIntensity?: number;
|
|
37
|
+
borderOpacity?: number;
|
|
38
|
+
shadowOpacity?: number;
|
|
39
|
+
glowIntensity?: number;
|
|
40
|
+
glowColor?: string;
|
|
41
|
+
particleEffect?: boolean;
|
|
42
|
+
hoverEffect?: boolean;
|
|
43
|
+
animationEffect?: boolean;
|
|
44
|
+
padding?: "none" | "small" | "sm" | "medium" | "md" | "large" | "lg" | "xl" | "custom";
|
|
45
|
+
customPadding?: string;
|
|
46
|
+
rounded?: "none" | "sm" | "md" | "lg" | "xl" | "full" | "custom";
|
|
47
|
+
customRounded?: string;
|
|
48
|
+
background?: "solid" | "gradient" | "pattern" | "image" | "video";
|
|
49
|
+
gradientColors?: string[];
|
|
50
|
+
patternType?: "dots" | "lines" | "grid" | "waves" | "custom";
|
|
51
|
+
backgroundImage?: string;
|
|
52
|
+
backgroundVideo?: string;
|
|
53
|
+
interactive?: boolean;
|
|
54
|
+
hoverScale?: number;
|
|
55
|
+
hoverRotate?: number;
|
|
56
|
+
hoverGlow?: boolean;
|
|
57
|
+
}
|
|
58
|
+
/**
|
|
59
|
+
* Panel 컴포넌트 / Panel component
|
|
60
|
+
*
|
|
61
|
+
* 고급 스타일링 옵션을 가진 패널 컴포넌트입니다.
|
|
62
|
+
* 다양한 스타일, 효과, 배경 옵션을 지원합니다.
|
|
63
|
+
* Card 컴포넌트를 기반으로 하며, 추가적인 고급 기능을 제공합니다.
|
|
64
|
+
*
|
|
65
|
+
* Panel component with advanced styling options.
|
|
66
|
+
* Supports various styles, effects, and background options.
|
|
67
|
+
* Based on Card component with additional advanced features.
|
|
68
|
+
*
|
|
69
|
+
* @component
|
|
70
|
+
* @example
|
|
71
|
+
* // 기본 사용 / Basic usage
|
|
72
|
+
* <Panel>
|
|
73
|
+
* <div>내용</div>
|
|
74
|
+
* </Panel>
|
|
75
|
+
*
|
|
76
|
+
* @example
|
|
77
|
+
* // Glass 스타일 / Glass style
|
|
78
|
+
* <Panel style="glass" effect="glow">
|
|
79
|
+
* <div>Glass 패널</div>
|
|
80
|
+
* </Panel>
|
|
81
|
+
*
|
|
82
|
+
* @example
|
|
83
|
+
* // 인터랙티브 패널 / Interactive panel
|
|
84
|
+
* <Panel
|
|
85
|
+
* style="neon"
|
|
86
|
+
* interactive
|
|
87
|
+
* hoverScale={1.1}
|
|
88
|
+
* hoverGlow
|
|
89
|
+
* >
|
|
90
|
+
* <div>호버 효과</div>
|
|
91
|
+
* </Panel>
|
|
92
|
+
*
|
|
93
|
+
* @param {PanelProps} props - Panel 컴포넌트의 props / Panel component props
|
|
94
|
+
* @param {React.Ref<HTMLDivElement>} ref - div 요소 ref / div element ref
|
|
95
|
+
* @returns {JSX.Element} Panel 컴포넌트 / Panel component
|
|
96
|
+
*/
|
|
97
|
+
declare const Panel: React.ForwardRefExoticComponent<PanelProps & React.RefAttributes<HTMLDivElement>>;
|
|
98
|
+
export { Panel };
|
|
99
|
+
//# sourceMappingURL=Panel.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Panel.d.ts","sourceRoot":"","sources":["../../src/components/Panel.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,MAAM,OAAO,CAAA;AAEzB,OAAO,EAAQ,SAAS,EAAE,MAAM,QAAQ,CAAA;AAExC;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AACH,MAAM,WAAW,UAAW,SAAQ,IAAI,CAAC,SAAS,EAAE,SAAS,GAAG,OAAO,CAAC;IAEtE,KAAK,CAAC,EAAE,SAAS,GAAG,OAAO,GAAG,OAAO,GAAG,SAAS,GAAG,UAAU,GAAG,MAAM,GAAG,aAAa,GAAG,WAAW,GAAG,SAAS,GAAG,QAAQ,CAAA;IAC5H,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,QAAQ,GAAG,UAAU,GAAG,UAAU,CAAA;IAG7D,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,aAAa,CAAC,EAAE,MAAM,CAAA;IACtB,aAAa,CAAC,EAAE,MAAM,CAAA;IACtB,aAAa,CAAC,EAAE,MAAM,CAAA;IACtB,aAAa,CAAC,EAAE,MAAM,CAAA;IACtB,SAAS,CAAC,EAAE,MAAM,CAAA;IAGlB,cAAc,CAAC,EAAE,OAAO,CAAA;IACxB,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,eAAe,CAAC,EAAE,OAAO,CAAA;IAGzB,OAAO,CAAC,EAAE,MAAM,GAAG,OAAO,GAAG,IAAI,GAAG,QAAQ,GAAG,IAAI,GAAG,OAAO,GAAG,IAAI,GAAG,IAAI,GAAG,QAAQ,CAAA;IACtF,aAAa,CAAC,EAAE,MAAM,CAAA;IACtB,OAAO,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,MAAM,GAAG,QAAQ,CAAA;IAChE,aAAa,CAAC,EAAE,MAAM,CAAA;IAGtB,UAAU,CAAC,EAAE,OAAO,GAAG,UAAU,GAAG,SAAS,GAAG,OAAO,GAAG,OAAO,CAAA;IACjE,cAAc,CAAC,EAAE,MAAM,EAAE,CAAA;IACzB,WAAW,CAAC,EAAE,MAAM,GAAG,OAAO,GAAG,MAAM,GAAG,OAAO,GAAG,QAAQ,CAAA;IAC5D,eAAe,CAAC,EAAE,MAAM,CAAA;IACxB,eAAe,CAAC,EAAE,MAAM,CAAA;IAGxB,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,SAAS,CAAC,EAAE,OAAO,CAAA;CACpB;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAsCG;AACH,QAAA,MAAM,KAAK,mFAkPV,CAAA;AAID,OAAO,EAAE,KAAK,EAAE,CAAA"}
|
|
@@ -1,4 +1,17 @@
|
|
|
1
|
-
import
|
|
1
|
+
import React from "react";
|
|
2
|
+
/**
|
|
3
|
+
* Popover 컴포넌트의 props / Popover component props
|
|
4
|
+
* @typedef {Object} PopoverProps
|
|
5
|
+
* @property {React.ReactNode} children - Popover 내용 / Popover content
|
|
6
|
+
* @property {React.ReactNode} trigger - Popover를 열기 위한 트리거 요소 / Trigger element to open popover
|
|
7
|
+
* @property {boolean} [open] - 제어 모드에서 열림/닫힘 상태 / Open/close state in controlled mode
|
|
8
|
+
* @property {(open: boolean) => void} [onOpenChange] - 상태 변경 콜백 / State change callback
|
|
9
|
+
* @property {"top" | "bottom" | "left" | "right"} [position="bottom"] - Popover 표시 위치 / Popover display position
|
|
10
|
+
* @property {"start" | "center" | "end"} [align="center"] - Popover 정렬 / Popover alignment
|
|
11
|
+
* @property {number} [offset=8] - 트리거와 Popover 사이 간격 (px) / Spacing between trigger and popover (px)
|
|
12
|
+
* @property {boolean} [disabled=false] - Popover 비활성화 여부 / Disable popover
|
|
13
|
+
* @extends {React.HTMLAttributes<HTMLDivElement>}
|
|
14
|
+
*/
|
|
2
15
|
export interface PopoverProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
3
16
|
children: React.ReactNode;
|
|
4
17
|
trigger: React.ReactNode;
|
|
@@ -9,6 +22,38 @@ export interface PopoverProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
|
9
22
|
offset?: number;
|
|
10
23
|
disabled?: boolean;
|
|
11
24
|
}
|
|
25
|
+
/**
|
|
26
|
+
* Popover 컴포넌트 / Popover component
|
|
27
|
+
*
|
|
28
|
+
* 트리거 요소를 클릭하면 표시되는 팝오버 컴포넌트입니다.
|
|
29
|
+
* 외부 클릭 시 자동으로 닫힙니다.
|
|
30
|
+
*
|
|
31
|
+
* Popover component that appears when the trigger element is clicked.
|
|
32
|
+
* Automatically closes when clicking outside.
|
|
33
|
+
*
|
|
34
|
+
* @component
|
|
35
|
+
* @example
|
|
36
|
+
* // 기본 사용 / Basic usage
|
|
37
|
+
* <Popover trigger={<Button>열기</Button>}>
|
|
38
|
+
* <div className="p-4">Popover 내용</div>
|
|
39
|
+
* </Popover>
|
|
40
|
+
*
|
|
41
|
+
* @example
|
|
42
|
+
* // 제어 모드 / Controlled mode
|
|
43
|
+
* const [open, setOpen] = useState(false)
|
|
44
|
+
* <Popover
|
|
45
|
+
* open={open}
|
|
46
|
+
* onOpenChange={setOpen}
|
|
47
|
+
* trigger={<Button>제어 모드</Button>}
|
|
48
|
+
* position="top"
|
|
49
|
+
* >
|
|
50
|
+
* <div className="p-4">내용</div>
|
|
51
|
+
* </Popover>
|
|
52
|
+
*
|
|
53
|
+
* @param {PopoverProps} props - Popover 컴포넌트의 props / Popover component props
|
|
54
|
+
* @param {React.Ref<HTMLDivElement>} ref - div 요소 ref / div element ref
|
|
55
|
+
* @returns {JSX.Element} Popover 컴포넌트 / Popover component
|
|
56
|
+
*/
|
|
12
57
|
declare const Popover: React.ForwardRefExoticComponent<PopoverProps & React.RefAttributes<HTMLDivElement>>;
|
|
13
58
|
export declare const PopoverTrigger: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
14
59
|
export declare const PopoverContent: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Popover.d.ts","sourceRoot":"","sources":["../../src/components/Popover.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"Popover.d.ts","sourceRoot":"","sources":["../../src/components/Popover.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,MAAM,OAAO,CAAA;AAGzB;;;;;;;;;;;;GAYG;AACH,MAAM,WAAW,YAAa,SAAQ,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC;IACxE,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAA;IACzB,OAAO,EAAE,KAAK,CAAC,SAAS,CAAA;IACxB,IAAI,CAAC,EAAE,OAAO,CAAA;IACd,YAAY,CAAC,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAA;IACtC,QAAQ,CAAC,EAAE,KAAK,GAAG,QAAQ,GAAG,MAAM,GAAG,OAAO,CAAA;IAC9C,KAAK,CAAC,EAAE,OAAO,GAAG,QAAQ,GAAG,KAAK,CAAA;IAClC,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,QAAQ,CAAC,EAAE,OAAO,CAAA;CACnB;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BG;AACH,QAAA,MAAM,OAAO,qFA+IZ,CAAA;AAID,eAAO,MAAM,cAAc,6GAU1B,CAAA;AAGD,eAAO,MAAM,cAAc,6GAU1B,CAAA;AAGD,OAAO,EAAE,OAAO,EAAE,CAAA"}
|
|
@@ -1,21 +1,70 @@
|
|
|
1
|
-
import
|
|
1
|
+
import React from "react";
|
|
2
|
+
/**
|
|
3
|
+
* Progress 컴포넌트의 props
|
|
4
|
+
* @typedef {Object} ProgressProps
|
|
5
|
+
* @property {number} [value=0] - 진행률 값
|
|
6
|
+
* @property {number} [max=100] - 최대값
|
|
7
|
+
* @property {"sm" | "md" | "lg"} [size="md"] - Progress 바 크기
|
|
8
|
+
* @property {"default" | "success" | "warning" | "error" | "info" | "glass"} [variant="default"] - Progress 스타일 변형
|
|
9
|
+
* @property {boolean} [showValue=false] - 진행률 퍼센트 표시 여부
|
|
10
|
+
* @property {boolean} [animated=true] - 애니메이션 활성화 여부
|
|
11
|
+
* @property {boolean} [striped=false] - 줄무늬 패턴 표시 여부
|
|
12
|
+
* @property {string} [label] - Progress 라벨 텍스트
|
|
13
|
+
* @property {string} [description] - Progress 설명 텍스트
|
|
14
|
+
* @extends {React.HTMLAttributes<HTMLDivElement>}
|
|
15
|
+
*/
|
|
2
16
|
export interface ProgressProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
3
17
|
value?: number;
|
|
4
18
|
max?: number;
|
|
5
19
|
size?: "sm" | "md" | "lg";
|
|
6
|
-
variant?: "default" | "success" | "warning" | "error" | "info";
|
|
20
|
+
variant?: "default" | "success" | "warning" | "error" | "info" | "glass";
|
|
7
21
|
showValue?: boolean;
|
|
8
22
|
animated?: boolean;
|
|
9
23
|
striped?: boolean;
|
|
10
24
|
label?: string;
|
|
11
25
|
description?: string;
|
|
12
26
|
}
|
|
27
|
+
/**
|
|
28
|
+
* Progress 컴포넌트 / Progress component
|
|
29
|
+
*
|
|
30
|
+
* 진행률을 표시하는 프로그레스 바 컴포넌트입니다.
|
|
31
|
+
* 다양한 스타일과 애니메이션을 지원합니다.
|
|
32
|
+
*
|
|
33
|
+
* Progress bar component that displays progress.
|
|
34
|
+
* Supports various styles and animations.
|
|
35
|
+
*
|
|
36
|
+
* @component
|
|
37
|
+
* @example
|
|
38
|
+
* // 기본 사용 / Basic usage
|
|
39
|
+
* <Progress value={50} />
|
|
40
|
+
*
|
|
41
|
+
* @example
|
|
42
|
+
* // 라벨과 값 표시 / Show label and value
|
|
43
|
+
* <Progress
|
|
44
|
+
* value={75}
|
|
45
|
+
* label="업로드 진행률"
|
|
46
|
+
* showValue
|
|
47
|
+
* />
|
|
48
|
+
*
|
|
49
|
+
* @example
|
|
50
|
+
* // Success 스타일, 줄무늬 패턴 / Success style, striped pattern
|
|
51
|
+
* <Progress
|
|
52
|
+
* value={90}
|
|
53
|
+
* variant="success"
|
|
54
|
+
* striped
|
|
55
|
+
* animated
|
|
56
|
+
* />
|
|
57
|
+
*
|
|
58
|
+
* @param {ProgressProps} props - Progress 컴포넌트의 props / Progress component props
|
|
59
|
+
* @param {React.Ref<HTMLDivElement>} ref - div 요소 ref / div element ref
|
|
60
|
+
* @returns {JSX.Element} Progress 컴포넌트 / Progress component
|
|
61
|
+
*/
|
|
13
62
|
declare const Progress: React.ForwardRefExoticComponent<ProgressProps & React.RefAttributes<HTMLDivElement>>;
|
|
14
63
|
export declare const ProgressSuccess: React.ForwardRefExoticComponent<Omit<ProgressProps, "variant"> & React.RefAttributes<HTMLDivElement>>;
|
|
15
64
|
export declare const ProgressWarning: React.ForwardRefExoticComponent<Omit<ProgressProps, "variant"> & React.RefAttributes<HTMLDivElement>>;
|
|
16
65
|
export declare const ProgressError: React.ForwardRefExoticComponent<Omit<ProgressProps, "variant"> & React.RefAttributes<HTMLDivElement>>;
|
|
17
66
|
export declare const ProgressInfo: React.ForwardRefExoticComponent<Omit<ProgressProps, "variant"> & React.RefAttributes<HTMLDivElement>>;
|
|
18
|
-
export declare const
|
|
67
|
+
export declare const ProgressWrapper: React.ForwardRefExoticComponent<ProgressProps & {
|
|
19
68
|
title?: string;
|
|
20
69
|
} & React.RefAttributes<HTMLDivElement>>;
|
|
21
70
|
export declare const ProgressGroup: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Progress.d.ts","sourceRoot":"","sources":["../../src/components/Progress.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"Progress.d.ts","sourceRoot":"","sources":["../../src/components/Progress.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,MAAM,OAAO,CAAA;AAGzB;;;;;;;;;;;;;GAaG;AACH,MAAM,WAAW,aAAc,SAAQ,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC;IACzE,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ,IAAI,CAAC,EAAE,IAAI,GAAG,IAAI,GAAG,IAAI,CAAA;IACzB,OAAO,CAAC,EAAE,SAAS,GAAG,SAAS,GAAG,SAAS,GAAG,OAAO,GAAG,MAAM,GAAG,OAAO,CAAA;IACxE,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,WAAW,CAAC,EAAE,MAAM,CAAA;CACrB;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkCG;AACH,QAAA,MAAM,QAAQ,sFAgGb,CAAA;AAID,eAAO,MAAM,eAAe,uGAI3B,CAAA;AAGD,eAAO,MAAM,eAAe,uGAI3B,CAAA;AAGD,eAAO,MAAM,aAAa,uGAIzB,CAAA;AAGD,eAAO,MAAM,YAAY,uGAIxB,CAAA;AAID,eAAO,MAAM,eAAe;YAA8D,MAAM;wCAW/F,CAAA;AAGD,eAAO,MAAM,aAAa,6GAUzB,CAAA;AAGD,OAAO,EAAE,QAAQ,EAAE,CAAA"}
|