@pylerai/design-system 1.1.0 → 1.2.0
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/dist/components/ui/calendar.d.ts +19 -0
- package/dist/components/ui/dropdown.d.ts +10 -0
- package/dist/components/ui/tabs.d.ts +7 -1
- package/dist/components/ui/toast.d.ts +5 -0
- package/dist/index.d.ts +5 -3
- package/dist/index.js +2583 -2021
- package/dist/lib/icons.d.ts +16 -0
- package/dist/style.css +1 -1
- package/package.json +2 -1
- package/tailwind-preset.cjs +10 -0
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { Dayjs } from 'dayjs';
|
|
2
|
+
export interface DateRange {
|
|
3
|
+
from: Dayjs | null;
|
|
4
|
+
to: Dayjs | null;
|
|
5
|
+
}
|
|
6
|
+
export interface CalendarProps {
|
|
7
|
+
value?: DateRange;
|
|
8
|
+
onChange?: (range: DateRange) => void;
|
|
9
|
+
onClose?: () => void;
|
|
10
|
+
onConfirm?: (range: {
|
|
11
|
+
from: Dayjs;
|
|
12
|
+
to: Dayjs;
|
|
13
|
+
}) => void;
|
|
14
|
+
maxDays?: number;
|
|
15
|
+
disabledBefore?: Dayjs;
|
|
16
|
+
disabledAfter?: Dayjs;
|
|
17
|
+
className?: string;
|
|
18
|
+
}
|
|
19
|
+
export declare function Calendar({ value, onChange, onClose, onConfirm, maxDays, disabledBefore, disabledAfter, className, }: CalendarProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -34,6 +34,16 @@ export interface DropdownProps {
|
|
|
34
34
|
hint?: string;
|
|
35
35
|
/** 트리거 좌측 아이콘 */
|
|
36
36
|
leftIcon?: React.ReactNode;
|
|
37
|
+
/** 하단 버튼(취소/확인) 표시 여부 */
|
|
38
|
+
showButtons?: boolean;
|
|
39
|
+
/** 취소 버튼 텍스트. 기본값: "취소" */
|
|
40
|
+
cancelLabel?: string;
|
|
41
|
+
/** 확인 버튼 텍스트. 기본값: "확인" */
|
|
42
|
+
confirmLabel?: string;
|
|
43
|
+
/** 취소 버튼 클릭 핸들러 */
|
|
44
|
+
onCancel?: () => void;
|
|
45
|
+
/** 확인 버튼 클릭 핸들러 */
|
|
46
|
+
onConfirm?: () => void;
|
|
37
47
|
/** 외부 컨테이너 className */
|
|
38
48
|
wrapperClassName?: string;
|
|
39
49
|
className?: string;
|
|
@@ -18,4 +18,10 @@ export interface TabsTriggerProps extends React.ButtonHTMLAttributes<HTMLButtonE
|
|
|
18
18
|
value: string;
|
|
19
19
|
}
|
|
20
20
|
declare const TabsTrigger: React.ForwardRefExoticComponent<TabsTriggerProps & React.RefAttributes<HTMLButtonElement>>;
|
|
21
|
-
export
|
|
21
|
+
export interface TabsContentProps {
|
|
22
|
+
value: string;
|
|
23
|
+
children?: React.ReactNode;
|
|
24
|
+
className?: string;
|
|
25
|
+
}
|
|
26
|
+
declare const TabsContent: React.ForwardRefExoticComponent<TabsContentProps & React.RefAttributes<HTMLDivElement>>;
|
|
27
|
+
export { Tabs, TabsList, TabsTrigger, TabsContent };
|
|
@@ -16,6 +16,11 @@ export interface SnackbarAction {
|
|
|
16
16
|
withIcon?: boolean;
|
|
17
17
|
onClick?: () => void;
|
|
18
18
|
}
|
|
19
|
+
export declare function SnackbarContent({ icon, message, action, }: {
|
|
20
|
+
icon: React.ReactNode;
|
|
21
|
+
message: string;
|
|
22
|
+
action?: SnackbarAction;
|
|
23
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
19
24
|
export declare const snackbar: {
|
|
20
25
|
success: (message: string, action?: SnackbarAction, options?: ToastOptions) => string | number;
|
|
21
26
|
error: (message: string, action?: SnackbarAction, options?: ToastOptions) => string | number;
|
package/dist/index.d.ts
CHANGED
|
@@ -20,8 +20,8 @@ export { Table, TableRoot, TableHead, TableBody, TableRow, TableHeaderCell, Tabl
|
|
|
20
20
|
export type { TableProps, TableColumn, TableHeaderCellProps, TableCellProps } from './components/ui/table';
|
|
21
21
|
export { LoadingBar } from './components/ui/loading-bar';
|
|
22
22
|
export type { LoadingBarProps } from './components/ui/loading-bar';
|
|
23
|
-
export { Tabs, TabsList, TabsTrigger } from './components/ui/tabs';
|
|
24
|
-
export type { TabsProps, TabsListProps, TabsTriggerProps } from './components/ui/tabs';
|
|
23
|
+
export { Tabs, TabsList, TabsTrigger, TabsContent } from './components/ui/tabs';
|
|
24
|
+
export type { TabsProps, TabsListProps, TabsTriggerProps, TabsContentProps } from './components/ui/tabs';
|
|
25
25
|
export { Pagination } from './components/ui/pagination';
|
|
26
26
|
export type { PaginationProps } from './components/ui/pagination';
|
|
27
27
|
export { Badge } from './components/ui/badge';
|
|
@@ -30,7 +30,7 @@ export { Tag } from './components/ui/tag';
|
|
|
30
30
|
export type { TagProps, TagSize } from './components/ui/tag';
|
|
31
31
|
export { Chip } from './components/ui/chip';
|
|
32
32
|
export type { ChipProps, ChipSize } from './components/ui/chip';
|
|
33
|
-
export { Toaster, toast, snackbar } from './components/ui/toast';
|
|
33
|
+
export { Toaster, toast, snackbar, SnackbarContent } from './components/ui/toast';
|
|
34
34
|
export type { ToasterProps, ToastOptions, SnackbarAction } from './components/ui/toast';
|
|
35
35
|
export { Tips } from './components/ui/tips';
|
|
36
36
|
export type { TipsProps, TipsColor, TipsSize } from './components/ui/tips';
|
|
@@ -43,3 +43,5 @@ export { Body, bodyVariants } from './components/ui/body';
|
|
|
43
43
|
export type { BodyProps } from './components/ui/body';
|
|
44
44
|
export { Label, labelVariants } from './components/ui/label';
|
|
45
45
|
export type { LabelProps } from './components/ui/label';
|
|
46
|
+
export { Calendar } from './components/ui/calendar';
|
|
47
|
+
export type { CalendarProps, DateRange } from './components/ui/calendar';
|