ddingdong-design-system 0.2.0 → 0.2.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.
Files changed (73) hide show
  1. package/dist/.gitkeep +0 -0
  2. package/dist/App.d.ts +1 -0
  3. package/dist/ddingdong-design-system.es.js +3226 -0
  4. package/dist/ddingdong-design-system.es.js.map +1 -0
  5. package/dist/ddingdong-design-system.umd.js +2 -0
  6. package/dist/ddingdong-design-system.umd.js.map +1 -0
  7. package/dist/index.d.ts +2 -0
  8. package/dist/shared/constants/motion.d.ts +113 -0
  9. package/dist/shared/hooks/useCarouselController.d.ts +11 -0
  10. package/dist/shared/hooks/usePortal.d.ts +5 -0
  11. package/dist/shared/hooks/useTooltip.d.ts +10 -0
  12. package/dist/shared/index.d.ts +27 -0
  13. package/dist/shared/lib/colors.d.ts +46 -0
  14. package/dist/shared/lib/core.d.ts +2 -0
  15. package/dist/shared/ui/Accordion/Accordion.d.ts +29 -0
  16. package/dist/shared/ui/Accordion/index.d.ts +2 -0
  17. package/dist/shared/ui/Avatar/Avatar.d.ts +22 -0
  18. package/dist/shared/ui/Avatar/index.d.ts +1 -0
  19. package/dist/shared/ui/Badge/Badge.d.ts +13 -0
  20. package/dist/shared/ui/Badge/index.d.ts +1 -0
  21. package/dist/shared/ui/Button/Button.d.ts +40 -0
  22. package/dist/shared/ui/Button/index.d.ts +1 -0
  23. package/dist/shared/ui/Card/Card.d.ts +13 -0
  24. package/dist/shared/ui/Card/index.d.ts +1 -0
  25. package/dist/shared/ui/Carousel/Carousel.d.ts +21 -0
  26. package/dist/shared/ui/Carousel/CarouselContext.d.ts +44 -0
  27. package/dist/shared/ui/Carousel/index.d.ts +1 -0
  28. package/dist/shared/ui/DoubleButton/DoubleButton.d.ts +12 -0
  29. package/dist/shared/ui/DoubleButton/index.d.ts +1 -0
  30. package/dist/shared/ui/Drawer/Drawer.d.ts +12 -0
  31. package/dist/shared/ui/Drawer/index.d.ts +1 -0
  32. package/dist/shared/ui/FileUpload/FileUpload.d.ts +12 -0
  33. package/dist/shared/ui/FileUpload/index.d.ts +1 -0
  34. package/dist/shared/ui/Flex/Flex.d.ts +72 -0
  35. package/dist/shared/ui/Flex/index.d.ts +1 -0
  36. package/dist/shared/ui/Icon/Icon.d.ts +21 -0
  37. package/dist/shared/ui/Icon/index.d.ts +1 -0
  38. package/dist/shared/ui/IconButton/IconButton.d.ts +22 -0
  39. package/dist/shared/ui/IconButton/index.d.ts +1 -0
  40. package/dist/shared/ui/Input/Input.d.ts +9 -0
  41. package/dist/shared/ui/Input/index.d.ts +1 -0
  42. package/dist/shared/ui/Modal/Modal.d.ts +20 -0
  43. package/dist/shared/ui/Modal/index.d.ts +1 -0
  44. package/dist/shared/ui/NavBack/NavBack.d.ts +16 -0
  45. package/dist/shared/ui/NavBack/index.d.ts +1 -0
  46. package/dist/shared/ui/Pagination/Pagination.d.ts +20 -0
  47. package/dist/shared/ui/Pagination/index.d.ts +1 -0
  48. package/dist/shared/ui/Portal/Portal.d.ts +12 -0
  49. package/dist/shared/ui/Portal/index.d.ts +1 -0
  50. package/dist/shared/ui/Select/Option.d.ts +10 -0
  51. package/dist/shared/ui/Select/OptionGroupName.d.ts +5 -0
  52. package/dist/shared/ui/Select/OptionList.d.ts +9 -0
  53. package/dist/shared/ui/Select/Select.context.d.ts +12 -0
  54. package/dist/shared/ui/Select/SelectButton.d.ts +8 -0
  55. package/dist/shared/ui/Select/SelectMain.d.ts +26 -0
  56. package/dist/shared/ui/Select/index.d.ts +16 -0
  57. package/dist/shared/ui/Skeleton/Skeleton.d.ts +20 -0
  58. package/dist/shared/ui/Skeleton/index.d.ts +2 -0
  59. package/dist/shared/ui/Switch/Switch.d.ts +11 -0
  60. package/dist/shared/ui/Switch/index.d.ts +1 -0
  61. package/dist/shared/ui/Tabs/Tabs.context.d.ts +5 -0
  62. package/dist/shared/ui/Tabs/TabsItem.d.ts +12 -0
  63. package/dist/shared/ui/Tabs/TabsRoot.d.ts +12 -0
  64. package/dist/shared/ui/Tabs/index.d.ts +2 -0
  65. package/dist/shared/ui/TextArea/TextArea.d.ts +28 -0
  66. package/dist/shared/ui/TextArea/index.d.ts +1 -0
  67. package/dist/shared/ui/Tooltip/Tooltip.d.ts +22 -0
  68. package/dist/shared/ui/Tooltip/index.d.ts +1 -0
  69. package/dist/shared/ui/Tooltip/tooltipColorMap.d.ts +38 -0
  70. package/dist/shared/ui/Typography/Typography.d.ts +39 -0
  71. package/dist/shared/ui/Typography/index.d.ts +1 -0
  72. package/dist/shared/ui/assets/index.d.ts +23 -0
  73. package/package.json +1 -1
@@ -0,0 +1,2 @@
1
+ export * from './shared/index'
2
+ export {}
@@ -0,0 +1,113 @@
1
+ export declare const MODAL_MOTION: {
2
+ initial: {
3
+ opacity: number;
4
+ };
5
+ animate: {
6
+ opacity: number;
7
+ };
8
+ exit: {
9
+ opacity: number;
10
+ };
11
+ transition: {
12
+ duration: number;
13
+ };
14
+ };
15
+ export declare const FADE_IN_ANIMATION: {
16
+ initial: {
17
+ opacity: number;
18
+ };
19
+ animate: {
20
+ opacity: number;
21
+ };
22
+ exit: {
23
+ opacity: number;
24
+ };
25
+ };
26
+ export declare const SLIDE_IN_ANIMATION: {
27
+ initial: {
28
+ translateX: string;
29
+ };
30
+ animate: {
31
+ translateX: number;
32
+ };
33
+ exit: {
34
+ translateX: string;
35
+ };
36
+ transition: {
37
+ type: string;
38
+ damping: number;
39
+ };
40
+ };
41
+ export declare const TOOLTIP_MOTION: {
42
+ SPRING: {
43
+ initial: {
44
+ opacity: number;
45
+ scale: number;
46
+ y: number;
47
+ };
48
+ animate: {
49
+ opacity: number;
50
+ scale: number;
51
+ y: number;
52
+ transition: {
53
+ type: string;
54
+ stiffness: number;
55
+ damping: number;
56
+ mass: number;
57
+ };
58
+ };
59
+ exit: {
60
+ opacity: number;
61
+ scale: number;
62
+ y: number;
63
+ transition: {
64
+ duration: number;
65
+ };
66
+ };
67
+ };
68
+ POP: {
69
+ initial: {
70
+ opacity: number;
71
+ scale: number;
72
+ };
73
+ animate: {
74
+ opacity: number;
75
+ scale: number;
76
+ transition: {
77
+ type: string;
78
+ stiffness: number;
79
+ damping: number;
80
+ mass: number;
81
+ };
82
+ };
83
+ exit: {
84
+ opacity: number;
85
+ scale: number;
86
+ transition: {
87
+ duration: number;
88
+ };
89
+ };
90
+ };
91
+ SMOOTH: {
92
+ initial: {
93
+ opacity: number;
94
+ y: number;
95
+ };
96
+ animate: {
97
+ opacity: number;
98
+ y: number;
99
+ transition: {
100
+ duration: number;
101
+ ease: string;
102
+ };
103
+ };
104
+ exit: {
105
+ opacity: number;
106
+ y: number;
107
+ transition: {
108
+ duration: number;
109
+ ease: string;
110
+ };
111
+ };
112
+ };
113
+ };
@@ -0,0 +1,11 @@
1
+ export declare const useCarouselController: (itemsPerView?: number) => {
2
+ currentIndex: number;
3
+ totalItems: number;
4
+ goToNext: () => void;
5
+ goToPrevious: () => void;
6
+ canGoNext: boolean;
7
+ canGoPrevious: boolean;
8
+ scrollContainerRef: import('react').RefObject<HTMLDivElement | null>;
9
+ handleMouseEnter: () => void;
10
+ handleMouseLeave: () => void;
11
+ };
@@ -0,0 +1,5 @@
1
+ export declare const usePortal: () => {
2
+ isOpen: boolean;
3
+ openModal: () => void;
4
+ closeModal: () => void;
5
+ };
@@ -0,0 +1,10 @@
1
+ export declare const useTooltip: () => {
2
+ open: boolean;
3
+ ref: import('react').RefObject<HTMLDivElement | null>;
4
+ show: () => void;
5
+ hide: () => void;
6
+ position: {
7
+ top: number;
8
+ left: number;
9
+ } | null;
10
+ };
@@ -0,0 +1,27 @@
1
+ export { Accordion } from './ui/Accordion';
2
+ export { Avatar } from './ui/Avatar/Avatar';
3
+ export { Badge } from './ui/Badge';
4
+ export { Button } from './ui/Button';
5
+ export { Card } from './ui/Card';
6
+ export { DoubleButton } from './ui/DoubleButton';
7
+ export { Drawer } from './ui/Drawer';
8
+ export { FileUpload } from './ui/FileUpload/FileUpload';
9
+ export { Flex } from './ui/Flex';
10
+ export { Icon } from './ui/Icon';
11
+ export { IconButton } from './ui/IconButton';
12
+ export { Input } from './ui/Input/Input';
13
+ export { Modal } from './ui/Modal';
14
+ export { NavBack } from './ui/NavBack';
15
+ export { Pagination } from './ui/Pagination';
16
+ export { Portal } from './ui/Portal';
17
+ export { Select } from './ui/Select';
18
+ export { Skeleton } from './ui/Skeleton';
19
+ export { Switch } from './ui/Switch';
20
+ export { Tabs } from './ui/Tabs';
21
+ export { TextArea } from './ui/TextArea';
22
+ export { Tooltip } from './ui/Tooltip';
23
+ export * from './ui/Typography';
24
+ export * from './ui/assets';
25
+ export * from './lib/colors';
26
+ export * from './lib/core';
27
+ export * from './hooks/usePortal';
@@ -0,0 +1,46 @@
1
+ export declare const colors: {
2
+ primary: {
3
+ 50: string;
4
+ 100: string;
5
+ 200: string;
6
+ 300: string;
7
+ 400: string;
8
+ };
9
+ gray: {
10
+ 50: string;
11
+ 100: string;
12
+ 200: string;
13
+ 300: string;
14
+ 400: string;
15
+ 500: string;
16
+ 600: string;
17
+ };
18
+ red: {
19
+ 50: string;
20
+ 100: string;
21
+ 200: string;
22
+ 300: string;
23
+ };
24
+ green: {
25
+ 50: string;
26
+ 100: string;
27
+ 200: string;
28
+ 300: string;
29
+ };
30
+ orange: string;
31
+ yellow: string;
32
+ purple: string;
33
+ white: string;
34
+ black: string;
35
+ };
36
+ export declare const COLORS: {
37
+ primary: string;
38
+ gray: string;
39
+ red: string;
40
+ green: string;
41
+ black: string;
42
+ };
43
+ export type Colors = keyof typeof colors;
44
+ export type IconColor = keyof typeof COLORS;
45
+ export type SwitchColor = keyof typeof COLORS;
46
+ export declare const colorNames: Colors[];
@@ -0,0 +1,2 @@
1
+ import { ClassValue } from 'clsx';
2
+ export declare const cn: (...inputs: ClassValue[]) => string;
@@ -0,0 +1,29 @@
1
+ import * as AccordionPrimitives from '@radix-ui/react-accordion';
2
+ type Prop = {
3
+ /**
4
+ * The content of the Accordion, typically AccordionItem components.
5
+ */
6
+ children: React.ReactNode;
7
+ } & (AccordionPrimitives.AccordionSingleProps | AccordionPrimitives.AccordionMultipleProps);
8
+ export declare function AccordionRoot({ children, ...props }: Prop): import("react/jsx-runtime").JSX.Element;
9
+ type ItemProps = {
10
+ /**
11
+ * The trigger element that toggles the visibility of the content.
12
+ */
13
+ trigger: React.ReactNode;
14
+ /**
15
+ * The content that is shown or hidden when the trigger is clicked.
16
+ */
17
+ children: React.ReactNode;
18
+ /**
19
+ * arrow icon to display alongside the trigger.
20
+ * @default true
21
+ */
22
+ isArrow?: boolean;
23
+ /**
24
+ * additional class names to apply to the AccordionItem.
25
+ */
26
+ className?: string;
27
+ } & AccordionPrimitives.AccordionItemProps;
28
+ export declare function AccordionItem({ trigger, className, children, isArrow, ...props }: ItemProps): import("react/jsx-runtime").JSX.Element;
29
+ export {};
@@ -0,0 +1,2 @@
1
+ export { AccordionRoot as Accordion } from './Accordion';
2
+ export { AccordionItem as Item } from './Accordion';
@@ -0,0 +1,22 @@
1
+ import { ComponentProps } from 'react';
2
+ type AvatarProps = {
3
+ /**
4
+ * Size of the avatar.
5
+ * @default 'lg'
6
+ */
7
+ size?: 'sm' | 'md' | 'lg' | 'xl';
8
+ /**
9
+ * URL of the avatar image.
10
+ */
11
+ src: string;
12
+ /**
13
+ * Alternative text for the avatar image.
14
+ */
15
+ alt: string;
16
+ /**
17
+ * CSS class name for the avatar container.
18
+ */
19
+ className?: string;
20
+ } & Omit<ComponentProps<'img'>, 'src' | 'alt'>;
21
+ export declare function Avatar({ size, src, alt, className, ...props }: AvatarProps): import("react/jsx-runtime").JSX.Element;
22
+ export {};
@@ -0,0 +1 @@
1
+ export { Avatar } from './Avatar';
@@ -0,0 +1,13 @@
1
+ type Props = {
2
+ /**
3
+ * Color type representing the status.
4
+ * @default 'neutral'
5
+ */
6
+ variant: 'positive' | 'negative' | 'neutral';
7
+ /**
8
+ * The text content to be displayed.
9
+ */
10
+ text: string;
11
+ } & React.HTMLAttributes<HTMLDivElement>;
12
+ export declare function Badge({ variant, text, ...props }: Props): import("react/jsx-runtime").JSX.Element;
13
+ export {};
@@ -0,0 +1 @@
1
+ export { Badge } from './Badge';
@@ -0,0 +1,40 @@
1
+ type VariantColorMap = {
2
+ primary: 'red' | 'blue';
3
+ secondary: 'red' | 'blue' | 'green';
4
+ tertiary: never;
5
+ };
6
+ export type ButtonVariant = keyof VariantColorMap;
7
+ type ButtonColor<V extends ButtonVariant> = VariantColorMap[V];
8
+ export type Props<V extends keyof VariantColorMap> = {
9
+ /**
10
+ * variant of the Button.
11
+ */
12
+ variant: V;
13
+ /**
14
+ * color of the Button.
15
+ * @default 'blue'
16
+ */
17
+ color?: ButtonColor<V>;
18
+ /**
19
+ * size of the Button.
20
+ * @default 'medium'
21
+ */
22
+ size?: 'sm' | 'md' | 'lg' | 'full';
23
+ /**
24
+ * loading state of the Button
25
+ * @default false
26
+ */
27
+ isLoading?: boolean;
28
+ /**
29
+ * border-radius option of the Button
30
+ * @default false
31
+ */
32
+ rounded?: boolean;
33
+ } & React.ButtonHTMLAttributes<HTMLButtonElement>;
34
+ export declare const ButtonVariants: (props?: ({
35
+ variant?: "primary" | "secondary" | "tertiary" | null | undefined;
36
+ size?: "sm" | "md" | "lg" | "full" | null | undefined;
37
+ color?: "red" | "green" | "blue" | null | undefined;
38
+ } & import('class-variance-authority/types').ClassProp) | undefined) => string;
39
+ export declare function Button<V extends ButtonVariant>({ children, variant, color, size, rounded, isLoading, disabled, className, ...props }: Props<V>): import("react/jsx-runtime").JSX.Element;
40
+ export {};
@@ -0,0 +1 @@
1
+ export { Button } from './Button';
@@ -0,0 +1,13 @@
1
+ import { ComponentProps, PropsWithChildren, ElementType } from 'react';
2
+ export type Props<T extends ElementType> = {
3
+ /**
4
+ * The HTML element or React component to render as the root element.
5
+ * @defaults 'div'.
6
+ */
7
+ as?: T;
8
+ /**
9
+ * Additional CSS classNames to be applied to the Card.
10
+ */
11
+ className?: string;
12
+ } & PropsWithChildren<ComponentProps<T>>;
13
+ export declare function Card<T extends ElementType = 'div'>({ as, className, children, ...props }: Props<T>): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1 @@
1
+ export { Card } from './Card';
@@ -0,0 +1,21 @@
1
+ import { ReactNode } from 'react';
2
+ type CarouselProps = {
3
+ /**
4
+ * Number of items to show in the carousel at once
5
+ */
6
+ itemsPerView?: number;
7
+ /**
8
+ * Additional CSS classes to apply to the carousel container
9
+ */
10
+ className?: string;
11
+ /**
12
+ * The content to display within the carousel
13
+ */
14
+ children: ReactNode;
15
+ };
16
+ export declare function Carousel({ itemsPerView, className, children }: CarouselProps): import("react/jsx-runtime").JSX.Element;
17
+ export declare function CarouselContent({ children, className }: Omit<CarouselProps, 'itemsPerView'>): import("react/jsx-runtime").JSX.Element;
18
+ export declare function CarouselItem({ children, className }: Omit<CarouselProps, 'itemsPerView'>): import("react/jsx-runtime").JSX.Element;
19
+ export declare function CarouselPrevious(): import("react/jsx-runtime").JSX.Element | null;
20
+ export declare function CarouselNext(): import("react/jsx-runtime").JSX.Element | null;
21
+ export {};
@@ -0,0 +1,44 @@
1
+ import { RefObject } from 'react';
2
+ type CarouselContextType = {
3
+ /**
4
+ * The current index of the active item in the carousel.
5
+ */
6
+ currentIndex: number;
7
+ /**
8
+ * The total number of items in the carousel.
9
+ */
10
+ totalItems: number;
11
+ /**
12
+ * Scroll to the next item in the carousel.
13
+ * @returns void
14
+ */
15
+ goToNext: () => void;
16
+ /**
17
+ * Scroll to the previous item in the carousel.
18
+ * @returns void
19
+ */
20
+ goToPrevious: () => void;
21
+ /**
22
+ * Whether the carousel can scroll to the next item.
23
+ */
24
+ canGoNext: boolean;
25
+ /**
26
+ * Whether the carousel can scroll to the previous item.
27
+ */
28
+ canGoPrevious: boolean;
29
+ /**
30
+ * A ref to the scroll container element.
31
+ */
32
+ scrollContainerRef: RefObject<HTMLDivElement | null>;
33
+ /**
34
+ * Function to handle mouse enter event to pause auto-scrolling.
35
+ */
36
+ handleMouseEnter: () => void;
37
+ /**
38
+ * Function to handle mouse leave event to resume auto-scrolling.
39
+ */
40
+ handleMouseLeave: () => void;
41
+ };
42
+ export declare const CarouselContext: import('react').Context<CarouselContextType | null>;
43
+ export declare const useCarousel: () => CarouselContextType;
44
+ export {};
@@ -0,0 +1 @@
1
+ export { Carousel, CarouselContent, CarouselItem } from './Carousel';
@@ -0,0 +1,12 @@
1
+ import { ReactNode } from 'react';
2
+ export type Props = {
3
+ /**
4
+ * left child of the DoubleButton
5
+ */
6
+ left: ReactNode;
7
+ /**
8
+ * right child of the DoubleButton
9
+ */
10
+ right: ReactNode;
11
+ } & React.HTMLAttributes<HTMLDivElement>;
12
+ export declare function DoubleButton({ left, right }: Props): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1 @@
1
+ export { DoubleButton } from './DoubleButton';
@@ -0,0 +1,12 @@
1
+ import { PropsWithChildren } from 'react';
2
+ export type Props = {
3
+ /**
4
+ * The open state of the drawer.
5
+ */
6
+ isOpen: boolean;
7
+ /**
8
+ * The function to call when the drawer is closed.
9
+ */
10
+ onClose: () => void;
11
+ } & PropsWithChildren;
12
+ export declare function Drawer({ isOpen, onClose, children }: Props): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1 @@
1
+ export { Drawer } from './Drawer';
@@ -0,0 +1,12 @@
1
+ import { ComponentProps } from 'react';
2
+ export type FileUploadProps = {
3
+ /**
4
+ * The id of the file input.
5
+ */
6
+ id?: string;
7
+ /**
8
+ * The mode of the file upload.
9
+ */
10
+ mode: 'single' | 'multiple';
11
+ } & Omit<ComponentProps<'input'>, 'id' | 'multiple'>;
12
+ export declare function FileUpload({ id, mode, ...props }: FileUploadProps): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1 @@
1
+ export { FileUpload } from './FileUpload';
@@ -0,0 +1,72 @@
1
+ declare const DIR: {
2
+ readonly row: "flex-row";
3
+ readonly 'row-reverse': "flex-row-reverse";
4
+ readonly col: "flex-col";
5
+ readonly 'col-reverse': "flex-col-reverse";
6
+ };
7
+ declare const ALIGN_ITEMS: {
8
+ readonly start: "items-start";
9
+ readonly end: "items-end";
10
+ readonly center: "items-center";
11
+ readonly baseline: "items-baseline";
12
+ readonly stretch: "items-stretch";
13
+ };
14
+ declare const JUSTIFY_CONTENT: {
15
+ readonly start: "justify-start";
16
+ readonly end: "justify-end";
17
+ readonly center: "justify-center";
18
+ readonly between: "justify-between";
19
+ readonly around: "justify-around";
20
+ readonly evenly: "justify-evenly";
21
+ readonly stretch: "justify-stretch";
22
+ readonly baseline: "justify-baseline";
23
+ };
24
+ declare const WRAP: {
25
+ readonly nowrap: "flex-nowrap";
26
+ readonly wrap: "flex-wrap";
27
+ readonly 'wrap-reverse': "flex-wrap-reverse";
28
+ };
29
+ type Props = {
30
+ /**
31
+ * The HTML element to use as the container.
32
+ * @default 'div'
33
+ */
34
+ as?: React.ElementType;
35
+ /**
36
+ * Defines the direction of the flex container's main axis.
37
+ * @default row
38
+ */
39
+ dir?: keyof typeof DIR;
40
+ /**
41
+ * Specifies how flex items are aligned along the cross axis.
42
+ * @default start
43
+ */
44
+ alignItems?: keyof typeof ALIGN_ITEMS;
45
+ /**
46
+ * Defines how flex items are distributed along the main axis.
47
+ * @default center
48
+ */
49
+ justifyContent?: keyof typeof JUSTIFY_CONTENT;
50
+ /**
51
+ * Controls whether flex items should wrap onto multiple lines.
52
+ * @default nowrap
53
+ */
54
+ wrap?: keyof typeof WRAP;
55
+ /**
56
+ * Defines the gap between flex items.
57
+ * Can be a number (Tailwind spacing scale) or string (custom CSS value)
58
+ * @example gap={4} → gap-4
59
+ */
60
+ gap?: number;
61
+ /**
62
+ * Additional CSS classNames to be applied to the container.
63
+ * @default ''
64
+ */
65
+ className?: string;
66
+ /**
67
+ * The child elements to be rendered inside the Flex container.
68
+ */
69
+ children: React.ReactNode;
70
+ } & React.HTMLAttributes<HTMLDivElement>;
71
+ export declare function Flex({ as, dir, alignItems, justifyContent, wrap, gap, className, children, ...props }: Props): import("react/jsx-runtime").JSX.Element;
72
+ export {};
@@ -0,0 +1 @@
1
+ export { Flex } from './Flex';
@@ -0,0 +1,21 @@
1
+ import { IconColor } from '../../lib/colors';
2
+ import { IconName } from '../assets';
3
+ type Props = {
4
+ /**
5
+ * icon name to be displayed.
6
+ */
7
+ name: IconName;
8
+ /**
9
+ * color of the icon.
10
+ * @default 'gray'
11
+ */
12
+ color?: IconColor;
13
+ /**
14
+ * size of the icon.
15
+ * @description px 단위로 변환합니다.
16
+ * @default 25
17
+ */
18
+ size?: number;
19
+ } & Omit<React.SVGProps<SVGSVGElement>, 'color'>;
20
+ export declare function Icon({ name, color, size, ...props }: Props): import("react/jsx-runtime").JSX.Element;
21
+ export {};
@@ -0,0 +1 @@
1
+ export { Icon } from './Icon';
@@ -0,0 +1,22 @@
1
+ import { ComponentProps } from 'react';
2
+ import { IconColor } from '../../lib/colors';
3
+ import { IconName } from '../assets';
4
+ type IconButtonProps = {
5
+ /**
6
+ * name of the icon.
7
+ */
8
+ iconName: IconName;
9
+ /**
10
+ * color of the icon.
11
+ * @default 'gray'
12
+ */
13
+ color?: IconColor;
14
+ /**
15
+ * size of the icon.
16
+ * @description px 단위로 변환합니다.
17
+ * @default 25
18
+ */
19
+ size?: number;
20
+ } & ComponentProps<'button'>;
21
+ export declare function IconButton({ iconName, color, size, className, ...props }: IconButtonProps): import("react/jsx-runtime").JSX.Element;
22
+ export {};
@@ -0,0 +1 @@
1
+ export { IconButton } from './IconButton';
@@ -0,0 +1,9 @@
1
+ import { ComponentProps } from 'react';
2
+ type InputProps = {
3
+ /**
4
+ * Callback function when the reset button is clicked.
5
+ */
6
+ onClickReset: () => void;
7
+ } & ComponentProps<'input'>;
8
+ export declare function Input({ value, onClickReset, ...props }: InputProps): import("react/jsx-runtime").JSX.Element;
9
+ export {};
@@ -0,0 +1 @@
1
+ export { Input } from './Input';
@@ -0,0 +1,20 @@
1
+ import { ReactNode } from 'react';
2
+ type Props = {
3
+ /**
4
+ * Controls whether the modal is open or closed.
5
+ */
6
+ isOpen: boolean;
7
+ /**
8
+ * Function to close the modal.
9
+ */
10
+ closeModal: () => void;
11
+ /**
12
+ * The content to be displayed inside the modal.
13
+ */
14
+ children: ReactNode;
15
+ };
16
+ export declare function Modal({ isOpen, closeModal, children }: Props): import("react/jsx-runtime").JSX.Element;
17
+ export declare function ModalContent({ children }: {
18
+ children: React.ReactNode;
19
+ }): import("react/jsx-runtime").JSX.Element;
20
+ export {};
@@ -0,0 +1 @@
1
+ export { Modal } from './Modal';