@telepix-lab/telepix-ui 0.1.2 → 0.3.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.
Files changed (126) hide show
  1. package/README.md +4 -3
  2. package/dist/cjs/button/index.d.ts +3 -3
  3. package/dist/cjs/button/types.d.ts +12 -0
  4. package/dist/cjs/client.d.ts +16 -0
  5. package/dist/cjs/client.js +13010 -0
  6. package/dist/cjs/dialog/index.d.ts +3 -3
  7. package/dist/cjs/horizontal-tab/index.d.ts +2 -2
  8. package/dist/cjs/horizontal-tab/types.d.ts +5 -0
  9. package/dist/cjs/index.d.ts +0 -44
  10. package/dist/cjs/index.js +3703 -14497
  11. package/dist/cjs/input/index.d.ts +2 -2
  12. package/dist/cjs/input/types.d.ts +5 -0
  13. package/dist/cjs/lib/twMerge.d.ts +2 -0
  14. package/dist/cjs/lib/utils.d.ts +2 -0
  15. package/dist/cjs/multiple-select/index.d.ts +2 -2
  16. package/dist/cjs/multiple-select/types.d.ts +5 -0
  17. package/dist/cjs/pagination/index.d.ts +8 -8
  18. package/dist/cjs/radio-group/index.d.ts +2 -1
  19. package/dist/cjs/radio-group/types.d.ts +5 -0
  20. package/dist/cjs/select/index.d.ts +3 -3
  21. package/dist/cjs/select/types.d.ts +10 -0
  22. package/dist/cjs/styles.css +1 -1597
  23. package/dist/cjs/tag/index.d.ts +1 -1
  24. package/dist/cjs/tag/types.d.ts +10 -0
  25. package/dist/cjs/text/index.d.ts +5 -5
  26. package/dist/cjs/text/types.d.ts +74 -0
  27. package/dist/cjs/tooltip/index.d.ts +3 -3
  28. package/dist/cjs/tooltip/types.d.ts +10 -0
  29. package/dist/cjs/vertical-menu/index.d.ts +3 -3
  30. package/dist/cjs/vertical-menu/types.d.ts +10 -0
  31. package/dist/client.d.ts +398 -0
  32. package/dist/esm/button/index.d.ts +3 -3
  33. package/dist/esm/button/types.d.ts +12 -0
  34. package/dist/esm/client.d.ts +16 -0
  35. package/dist/esm/client.js +12927 -0
  36. package/dist/esm/dialog/index.d.ts +3 -3
  37. package/dist/esm/horizontal-tab/index.d.ts +2 -2
  38. package/dist/esm/horizontal-tab/types.d.ts +5 -0
  39. package/dist/esm/index.d.ts +0 -44
  40. package/dist/esm/index.js +3708 -14356
  41. package/dist/esm/input/index.d.ts +2 -2
  42. package/dist/esm/input/types.d.ts +5 -0
  43. package/dist/esm/lib/twMerge.d.ts +2 -0
  44. package/dist/esm/lib/utils.d.ts +2 -0
  45. package/dist/esm/multiple-select/index.d.ts +2 -2
  46. package/dist/esm/multiple-select/types.d.ts +5 -0
  47. package/dist/esm/pagination/index.d.ts +8 -8
  48. package/dist/esm/radio-group/index.d.ts +2 -1
  49. package/dist/esm/radio-group/types.d.ts +5 -0
  50. package/dist/esm/select/index.d.ts +3 -3
  51. package/dist/esm/select/types.d.ts +10 -0
  52. package/dist/esm/styles.css +1 -1597
  53. package/dist/esm/tag/index.d.ts +1 -1
  54. package/dist/esm/tag/types.d.ts +10 -0
  55. package/dist/esm/text/index.d.ts +5 -5
  56. package/dist/esm/text/types.d.ts +74 -0
  57. package/dist/esm/tooltip/index.d.ts +3 -3
  58. package/dist/esm/tooltip/types.d.ts +10 -0
  59. package/dist/esm/vertical-menu/index.d.ts +3 -3
  60. package/dist/esm/vertical-menu/types.d.ts +10 -0
  61. package/dist/index.d.ts +116 -2298
  62. package/package.json +15 -8
  63. package/dist/cjs/autocomplete/styles.d.ts +0 -50
  64. package/dist/cjs/button/styles.d.ts +0 -95
  65. package/dist/cjs/calendar/styles.d.ts +0 -103
  66. package/dist/cjs/card/styles.d.ts +0 -28
  67. package/dist/cjs/checkbox/styles.d.ts +0 -43
  68. package/dist/cjs/context-menu/styleVariable.stylex.d.ts +0 -4
  69. package/dist/cjs/context-menu/styles.d.ts +0 -103
  70. package/dist/cjs/date-picker/styles.d.ts +0 -5
  71. package/dist/cjs/dialog/styles.d.ts +0 -23
  72. package/dist/cjs/horizontal-tab/styles.d.ts +0 -74
  73. package/dist/cjs/index.css +0 -1
  74. package/dist/cjs/index.js.map +0 -1
  75. package/dist/cjs/input/styles.d.ts +0 -75
  76. package/dist/cjs/interactive-list-item/styles.d.ts +0 -49
  77. package/dist/cjs/mode-tab/styles.d.ts +0 -49
  78. package/dist/cjs/multiple-select/styles.d.ts +0 -138
  79. package/dist/cjs/pagination/styles.d.ts +0 -47
  80. package/dist/cjs/radio-group/styles.d.ts +0 -47
  81. package/dist/cjs/select/styles.d.ts +0 -107
  82. package/dist/cjs/styles/common.d.ts +0 -7
  83. package/dist/cjs/styles/layout.stylex.d.ts +0 -19
  84. package/dist/cjs/styles/primitiveColors.stylex.d.ts +0 -175
  85. package/dist/cjs/styles/semanticColors.stylex.d.ts +0 -50
  86. package/dist/cjs/styles/shadow.stylex.d.ts +0 -11
  87. package/dist/cjs/styles/transitions.stylex.d.ts +0 -6
  88. package/dist/cjs/styles/typography.stylex.d.ts +0 -43
  89. package/dist/cjs/table/styles.d.ts +0 -45
  90. package/dist/cjs/tag/styles.d.ts +0 -91
  91. package/dist/cjs/text/styles.d.ts +0 -290
  92. package/dist/cjs/textarea/styles.d.ts +0 -30
  93. package/dist/cjs/tooltip/styles.d.ts +0 -59
  94. package/dist/cjs/vertical-menu/styles.d.ts +0 -84
  95. package/dist/esm/autocomplete/styles.d.ts +0 -50
  96. package/dist/esm/button/styles.d.ts +0 -95
  97. package/dist/esm/calendar/styles.d.ts +0 -103
  98. package/dist/esm/card/styles.d.ts +0 -28
  99. package/dist/esm/checkbox/styles.d.ts +0 -43
  100. package/dist/esm/context-menu/styleVariable.stylex.d.ts +0 -4
  101. package/dist/esm/context-menu/styles.d.ts +0 -103
  102. package/dist/esm/date-picker/styles.d.ts +0 -5
  103. package/dist/esm/dialog/styles.d.ts +0 -23
  104. package/dist/esm/horizontal-tab/styles.d.ts +0 -74
  105. package/dist/esm/index.css +0 -1
  106. package/dist/esm/index.js.map +0 -1
  107. package/dist/esm/input/styles.d.ts +0 -75
  108. package/dist/esm/interactive-list-item/styles.d.ts +0 -49
  109. package/dist/esm/mode-tab/styles.d.ts +0 -49
  110. package/dist/esm/multiple-select/styles.d.ts +0 -138
  111. package/dist/esm/pagination/styles.d.ts +0 -47
  112. package/dist/esm/radio-group/styles.d.ts +0 -47
  113. package/dist/esm/select/styles.d.ts +0 -107
  114. package/dist/esm/styles/common.d.ts +0 -7
  115. package/dist/esm/styles/layout.stylex.d.ts +0 -19
  116. package/dist/esm/styles/primitiveColors.stylex.d.ts +0 -175
  117. package/dist/esm/styles/semanticColors.stylex.d.ts +0 -50
  118. package/dist/esm/styles/shadow.stylex.d.ts +0 -11
  119. package/dist/esm/styles/transitions.stylex.d.ts +0 -6
  120. package/dist/esm/styles/typography.stylex.d.ts +0 -43
  121. package/dist/esm/table/styles.d.ts +0 -45
  122. package/dist/esm/tag/styles.d.ts +0 -91
  123. package/dist/esm/text/styles.d.ts +0 -290
  124. package/dist/esm/textarea/styles.d.ts +0 -30
  125. package/dist/esm/tooltip/styles.d.ts +0 -59
  126. package/dist/esm/vertical-menu/styles.d.ts +0 -84
@@ -1,5 +1,5 @@
1
- import { TagSize, TagVariant } from "./styles";
2
1
  import React from "react";
2
+ import { TagSize, TagVariant } from "./types";
3
3
  interface TagProps extends React.DetailedHTMLProps<Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, "value">, HTMLButtonElement> {
4
4
  value: {
5
5
  id: string;
@@ -0,0 +1,10 @@
1
+ export declare const TAG_VARIANTS: {
2
+ readonly FILLED: "filled";
3
+ readonly ACCENT: "accent";
4
+ };
5
+ export type TagVariant = (typeof TAG_VARIANTS)[keyof typeof TAG_VARIANTS];
6
+ export declare const TAG_SIZES: {
7
+ readonly REGULAR: "regular";
8
+ readonly SMALL: "small";
9
+ };
10
+ export type TagSize = (typeof TAG_SIZES)[keyof typeof TAG_SIZES];
@@ -1,11 +1,11 @@
1
1
  import React from "react";
2
- import { FontWeightStyles, TextAlignStyles, TextSizeStyles, TextVariantStyles } from "./styles";
2
+ import { FontWeight, TextAlignment, TextSize, TextVariant } from "./types";
3
3
  export interface TextProps extends React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> {
4
4
  children: React.ReactNode;
5
- size?: TextSizeStyles;
6
- weight?: FontWeightStyles;
7
- align?: TextAlignStyles;
8
- variant?: TextVariantStyles;
5
+ size?: TextSize;
6
+ weight?: FontWeight;
7
+ align?: TextAlignment;
8
+ variant?: TextVariant;
9
9
  color?: string;
10
10
  as?: React.ElementType;
11
11
  }
@@ -0,0 +1,74 @@
1
+ export declare const TEXT_SIZES: {
2
+ readonly XSMALL: "xsmall";
3
+ readonly LABEL: "label";
4
+ readonly BODY: "body";
5
+ readonly BASE: "base";
6
+ readonly LARGE: "large";
7
+ readonly XLARGE: "xl";
8
+ readonly XXLARGE: "xxl";
9
+ readonly XXXLARGE: "xxxl";
10
+ readonly XXXXLARGE: "xxxxl";
11
+ };
12
+ export type TextSize = (typeof TEXT_SIZES)[keyof typeof TEXT_SIZES];
13
+ export declare const FONT_WEIGHTS: {
14
+ readonly THIN: "thin";
15
+ readonly EXTRALIGHT: "extralight";
16
+ readonly LIGHT: "light";
17
+ readonly REGULAR: "regular";
18
+ readonly MEDIUM: "medium";
19
+ readonly SEMIBOLD: "semibold";
20
+ readonly BOLD: "bold";
21
+ readonly EXTRABOLD: "extrabold";
22
+ };
23
+ export type FontWeight = (typeof FONT_WEIGHTS)[keyof typeof FONT_WEIGHTS];
24
+ export declare const TEXT_ALIGNMENTS: {
25
+ readonly LEFT: "left";
26
+ readonly CENTER: "center";
27
+ readonly RIGHT: "right";
28
+ readonly JUSTIFY: "justify";
29
+ };
30
+ export type TextAlignment = (typeof TEXT_ALIGNMENTS)[keyof typeof TEXT_ALIGNMENTS];
31
+ export declare const TEXT_VARIANTS: {
32
+ BOLD3XLARGEBOLD: string;
33
+ BOLD2XLARGEBOLDCOMPACT: string;
34
+ BOLD2XLARGEBOLD: string;
35
+ BOLDXLARGEBOLDCOMPACT: string;
36
+ BOLDXLARGEBOLD: string;
37
+ BOLDLARGEBOLDCOMPACT: string;
38
+ BOLDLARGEBOLD: string;
39
+ BOLDBASEBOLDCOMPACT: string;
40
+ BOLDBASEBOLD: string;
41
+ BOLDBODYBOLDCOMPACT: string;
42
+ BOLDBODYBOLD: string;
43
+ BOLDLABELBOLDCOMPACT: string;
44
+ BOLDLABELBOLD: string;
45
+ BOLDXSMALLBOLD: string;
46
+ SEMIBOLDBASESEMIBOLDCOMPACT: string;
47
+ SEMIBOLDBASESEMIBOLD: string;
48
+ SEMIBOLDBODYSEMIBOLDCOMPACT: string;
49
+ SEMIBOLDBODYSEMIBOLD: string;
50
+ SEMIBOLDLABELSEMIBOLDCOMPACT: string;
51
+ MED3XLARGEMED: string;
52
+ MEDXLARGEMED: string;
53
+ MEDLARGEMED: string;
54
+ MEDBASEMEDCOMPACT: string;
55
+ MEDBASEMED: string;
56
+ MEDBODYMEDCOMPACT: string;
57
+ MEDBODYMED: string;
58
+ MEDLABELMEDCOMPACT: string;
59
+ MEDLABELMED: string;
60
+ MEDXSMALLMED: string;
61
+ REGULAR3XLARGE: string;
62
+ REGULAR2XLARGE: string;
63
+ REGULARXLARGE: string;
64
+ REGULARLARGECOMPACT: string;
65
+ REGULARLARGE: string;
66
+ REGULARBASECOMPACT: string;
67
+ REGULARBASE: string;
68
+ REGULARBODYCOMPACT: string;
69
+ REGULARBODY: string;
70
+ REGULARLABELCOMPACT: string;
71
+ REGULARLABEL: string;
72
+ REGULARXSMALL: string;
73
+ };
74
+ export type TextVariant = (typeof TEXT_VARIANTS)[keyof typeof TEXT_VARIANTS];
@@ -1,6 +1,6 @@
1
1
  import { Tooltip as TooltipRadix } from "radix-ui";
2
- import { TooltipShortSizeStyles, TooltipShortVariantStyles } from "./styles";
3
2
  import React from "react";
3
+ import { TooltipShortSize, TooltipShortVariant } from "./types";
4
4
  export declare const Tooltip: (props: React.ComponentProps<typeof TooltipRadix.Root & typeof TooltipRadix.TooltipProvider>) => import("react/jsx-runtime").JSX.Element;
5
5
  export declare const TooltipTrigger: React.ForwardRefExoticComponent<TooltipRadix.TooltipTriggerProps & React.RefAttributes<HTMLButtonElement>>;
6
6
  interface TooltipDescriptionProps {
@@ -8,8 +8,8 @@ interface TooltipDescriptionProps {
8
8
  }
9
9
  interface TooltipShortDescriptionProps {
10
10
  type: "short";
11
- variant?: TooltipShortVariantStyles;
12
- size?: TooltipShortSizeStyles;
11
+ variant?: TooltipShortVariant;
12
+ size?: TooltipShortSize;
13
13
  }
14
14
  type TooltipContentProps = React.ComponentProps<typeof TooltipRadix.Content> & (TooltipDescriptionProps | TooltipShortDescriptionProps);
15
15
  export declare const TooltipContent: ({ type, ...rest }: TooltipContentProps) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,10 @@
1
+ export declare const TOOLTIP_SHORT_VARIANTS: {
2
+ readonly DEFAULT: "default";
3
+ readonly ACCENT: "accent";
4
+ };
5
+ export type TooltipShortVariant = (typeof TOOLTIP_SHORT_VARIANTS)[keyof typeof TOOLTIP_SHORT_VARIANTS];
6
+ export declare const TOOLTIP_SHORT_SIZES: {
7
+ readonly REGULAR: "regular";
8
+ readonly SMALL: "small";
9
+ };
10
+ export type TooltipShortSize = (typeof TOOLTIP_SHORT_SIZES)[keyof typeof TOOLTIP_SHORT_SIZES];
@@ -1,5 +1,5 @@
1
1
  import React from "react";
2
- import { VerticalMenuSizeStyles, VerticalMenuVariantStyles } from "./styles";
2
+ import { VerticalMenuSize, VerticalMenuVariant } from "./types";
3
3
  interface VerticalMenusProps extends React.HTMLAttributes<HTMLDivElement> {
4
4
  disabled?: boolean;
5
5
  value?: string;
@@ -10,8 +10,8 @@ interface VerticalMenuProps extends React.DetailedHTMLProps<React.ButtonHTMLAttr
10
10
  value: string;
11
11
  label?: string;
12
12
  icon?: React.ReactNode;
13
- variant?: VerticalMenuVariantStyles;
14
- size?: VerticalMenuSizeStyles;
13
+ variant?: VerticalMenuVariant;
14
+ size?: VerticalMenuSize;
15
15
  }
16
16
  export declare const VerticalMenu: React.ForwardRefExoticComponent<Omit<VerticalMenuProps, "ref"> & React.RefAttributes<HTMLButtonElement>>;
17
17
  export {};
@@ -0,0 +1,10 @@
1
+ export declare const VERTICAL_MENU_SIZES: {
2
+ readonly REGULAR: "regular";
3
+ readonly SMALL: "small";
4
+ };
5
+ export type VerticalMenuSize = (typeof VERTICAL_MENU_SIZES)[keyof typeof VERTICAL_MENU_SIZES];
6
+ export declare const VERTICAL_MENU_VARIANTS: {
7
+ readonly ACCENT: "accent";
8
+ readonly GHOST: "ghost";
9
+ };
10
+ export type VerticalMenuVariant = (typeof VERTICAL_MENU_VARIANTS)[keyof typeof VERTICAL_MENU_VARIANTS];
@@ -0,0 +1,398 @@
1
+ import * as React$1 from 'react';
2
+ import React__default from 'react';
3
+ import { RadioGroup as RadioGroup$1, Checkbox as Checkbox$1, Dialog as Dialog$1, Select as Select$1, Tooltip as Tooltip$1, Popover, ContextMenu as ContextMenu$1 } from 'radix-ui';
4
+ import * as react_jsx_runtime from 'react/jsx-runtime';
5
+ import { DayPicker, DateRange } from 'react-day-picker';
6
+
7
+ declare const RADIO_GROUP_ORIENTAIONS: {
8
+ readonly HORIZONTAL: "horizontal";
9
+ readonly VERTICAL: "vertical";
10
+ };
11
+ type RadioGroupOrientation = (typeof RADIO_GROUP_ORIENTAIONS)[keyof typeof RADIO_GROUP_ORIENTAIONS];
12
+
13
+ interface RadioGroupProps extends RadioGroup$1.RadioGroupProps {
14
+ className?: string;
15
+ orientation?: RadioGroupOrientation;
16
+ }
17
+ /**
18
+ * 라디오 버튼 그룹을 생성하는 컴포넌트입니다.<br/>
19
+ * orientation prop을 통해 수평 또는 수직 방향으로 배치할 수 있습니다.<br/>
20
+ * value prop을 통해 현재 선택된 라디오 버튼의 값을 관리합니다.<br/>
21
+ * disabled prop을 통해 그룹 전체를 비활성화할 수 있습니다.<br/>
22
+ * 또는 개별 RadioItem 컴포넌트에 disabled prop을 설정하여 특정 라디오 버튼을 비활성화할 수 있습니다.<br/>
23
+ * RadioItem 컴포넌트를 자식으로 받아 라디오 버튼을 구성합니다.<br/>
24
+ * <br/>
25
+ * ### 사용 예시
26
+ * ```tsx
27
+ * <RadioGroup value={selectedValue} onValueChange={setSelectedValue}>
28
+ * <RadioItem value="option1" label="Option 1" />
29
+ * <RadioItem value="option2" label="Option 2" />
30
+ * <RadioItem value="option3" label="Option 3" />
31
+ * </RadioGroup>
32
+ * ```
33
+ */
34
+ declare const RadioGroup: React__default.ForwardRefExoticComponent<RadioGroupProps & React__default.RefAttributes<HTMLDivElement>>;
35
+ interface RadioItemProps extends RadioGroup$1.RadioGroupItemProps {
36
+ label?: string;
37
+ labelClassName?: string;
38
+ wrapperClassName?: string;
39
+ className?: string;
40
+ }
41
+ declare const RadioItem: React__default.ForwardRefExoticComponent<RadioItemProps & React__default.RefAttributes<HTMLButtonElement>>;
42
+
43
+ interface CheckboxProps extends Checkbox$1.CheckboxProps {
44
+ label?: string;
45
+ labelClassName?: string;
46
+ wrapperClassName?: string;
47
+ }
48
+ /**
49
+ * 체크박스 컴포넌트입니다.<br/>
50
+ * 사용자는 체크박스의 상태(checked, defaultChecked), ID, disabled 여부, 클래스 이름 등을 지정할 수 있습니다.<br/>
51
+ * label을 통해 체크박스 옆에 표시할 텍스트를 설정할 수 있으며, labelClassName을 통해 라벨의 스타일을 지정할 수 있습니다.<br/>
52
+ * wrapperClassName을 통해 체크박스와 라벨을 감싸는 요소의 스타일을 지정할 수 있습니다.<br/>
53
+ * <br/>
54
+ * ### 사용 예시
55
+ * ```tsx
56
+ * <Checkbox
57
+ * label="Accept Terms and Conditions"
58
+ * checked={isChecked}
59
+ * onCheckedChange={(value) => setIsChecked(value)}
60
+ * />
61
+ * ```
62
+ */
63
+ declare const Checkbox: React__default.ForwardRefExoticComponent<CheckboxProps & React__default.RefAttributes<HTMLButtonElement>>;
64
+
65
+ /**
66
+ * Dialog 컴포넌트는 모달 대화 상자를 생성하는 데 사용됩니다.<br/>
67
+ * 이 컴포넌트는 Radix UI의 Dialog 컴포넌트를 래핑하여 사용합니다.<br/>
68
+ * Dialog 컴포넌트는 모달의 상태를 관리하고, 모달을 열고 닫는 기능을 제공합니다.<br/>
69
+ * DialogTrigger는 모달을 여는 트리거 버튼 역할을 하며, DialogContent는 모달의 실제 콘텐츠를 렌더링합니다.<br/>
70
+ * DialogClose는 모달을 닫는 버튼 역할을 합니다.<br/>
71
+ * DialogHeader, DialogFooter, DialogDescription은 모달의 헤더, 푸터, 제목, 설명을 구성하는 데 사용됩니다.<br/>
72
+ * 이 컴포넌트는 모달 대화 상자를 쉽게 구현할 수 있도록 도와줍니다.<br/>
73
+ * <br/>
74
+ * ### 사용 예시
75
+ * ```tsx
76
+ * <Dialog>
77
+ * <DialogTrigger>Open Dialog</DialogTrigger>
78
+ * <DialogContent>
79
+ * <DialogHeader>
80
+ * Dialog Title
81
+ * <DialogClose />
82
+ * </DialogHeader>
83
+ * <DialogDescription>
84
+ * This is a description of the dialog.
85
+ * </DialogDescription>
86
+ * </DialogContent>
87
+ * </Dialog>
88
+ */
89
+ declare const Dialog: any;
90
+ declare const DialogTrigger: (props: React$1.ComponentProps<typeof Dialog$1.Trigger>) => react_jsx_runtime.JSX.Element;
91
+ declare const DialogPortal: any;
92
+ declare const DialogClose: any;
93
+ declare const DialogContent: ({ className, children, ...rest }: React$1.ComponentProps<typeof Dialog$1.Content>) => react_jsx_runtime.JSX.Element;
94
+ declare const DialogHeader: ({ className, ...rest }: React$1.ComponentProps<typeof Dialog$1.Title>) => react_jsx_runtime.JSX.Element;
95
+ declare const DialogFooter: React$1.ForwardRefExoticComponent<Omit<React$1.ClassAttributes<HTMLDivElement> & React$1.HTMLAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
96
+ declare const DialogDescription: ({ className, ...rest }: React$1.ComponentProps<typeof Dialog$1.Description>) => react_jsx_runtime.JSX.Element;
97
+
98
+ declare const SELECT_TRIGGER_VARIANTS: {
99
+ readonly OUTLINE: "outline";
100
+ readonly GHOST: "ghost";
101
+ };
102
+ type SelectTriggerVariant = (typeof SELECT_TRIGGER_VARIANTS)[keyof typeof SELECT_TRIGGER_VARIANTS];
103
+ declare const SELECT_TRIGGER_SIZES: {
104
+ readonly REGULAR: "regular";
105
+ readonly LARGE: "large";
106
+ };
107
+ type SelectTriggerSize = (typeof SELECT_TRIGGER_SIZES)[keyof typeof SELECT_TRIGGER_SIZES];
108
+
109
+ /**
110
+ * Select 컴포넌트는 드롭다운 선택 상자를 생성하는 데 사용됩니다.<br/>
111
+ * 이 컴포넌트는 Radix UI의 Select 컴포넌트를 래핑하여 사용합니다.<br/>
112
+ * SelectTrigger는 드롭다운을 여는 트리거 버튼 역할을 하며, SelectContent는 드롭다운의 실제 콘텐츠를 렌더링합니다.<br/>
113
+ * SelectGroup, SelectLabel, SelectSeparator는 드롭다운의 그룹화 및 레이블링을 지원합니다.<br/>
114
+ * SelectItem은 드롭다운에서 선택 가능한 항목을 나타냅니다.<br/>
115
+ * 이 컴포넌트는 드롭다운 선택 상자를 쉽게 구현할 수 있도록 도와줍니다.<br/>
116
+ * <br/>
117
+ * ### 사용 예시
118
+ * ```tsx
119
+ * <Select>
120
+ * <SelectTrigger placeholder="Select an option" />
121
+ * <SelectContent>
122
+ * <SelectItem value="option1">Option 1</SelectItem>
123
+ * <SelectItem value="option2">Option 2</SelectItem>
124
+ * <SelectItem value="option3">Option 3</SelectItem>
125
+ * </SelectContent>
126
+ * </Select>
127
+ */
128
+ declare const Select: {
129
+ (props: React__default.ComponentProps<typeof Select$1.Root>): react_jsx_runtime.JSX.Element;
130
+ displayName: string;
131
+ };
132
+ interface SelectTrigger extends React__default.ComponentProps<typeof Select$1.Trigger> {
133
+ placeholder?: string;
134
+ variant?: SelectTriggerVariant;
135
+ size?: SelectTriggerSize;
136
+ icon?: React__default.ReactNode;
137
+ }
138
+ declare const SelectTrigger: {
139
+ ({ placeholder, variant, size, icon, ...rest }: SelectTrigger): react_jsx_runtime.JSX.Element;
140
+ displayName: string;
141
+ };
142
+ interface SelectContent extends React__default.ComponentProps<typeof Select$1.Content> {
143
+ children: React__default.ReactNode;
144
+ }
145
+ declare const SelectContent: {
146
+ ({ children, ...rest }: SelectContent): react_jsx_runtime.JSX.Element;
147
+ displayName: string;
148
+ };
149
+ declare const SelectGroup: any;
150
+ declare const SelectLabel: {
151
+ (props: React__default.ComponentProps<typeof Select$1.Label>): react_jsx_runtime.JSX.Element;
152
+ displayName: string;
153
+ };
154
+ declare const SelectSeparator: {
155
+ (props: React__default.ComponentProps<typeof Select$1.Separator>): react_jsx_runtime.JSX.Element;
156
+ displayName: string;
157
+ };
158
+ interface SelectItem extends React__default.ComponentProps<typeof Select$1.Item> {
159
+ indicator?: React__default.ReactNode;
160
+ }
161
+ declare const SelectItem: {
162
+ ({ indicator, ...rest }: SelectItem): react_jsx_runtime.JSX.Element;
163
+ displayName: string;
164
+ };
165
+
166
+ declare const VERTICAL_MENU_SIZES: {
167
+ readonly REGULAR: "regular";
168
+ readonly SMALL: "small";
169
+ };
170
+ type VerticalMenuSize = (typeof VERTICAL_MENU_SIZES)[keyof typeof VERTICAL_MENU_SIZES];
171
+ declare const VERTICAL_MENU_VARIANTS: {
172
+ readonly ACCENT: "accent";
173
+ readonly GHOST: "ghost";
174
+ };
175
+ type VerticalMenuVariant = (typeof VERTICAL_MENU_VARIANTS)[keyof typeof VERTICAL_MENU_VARIANTS];
176
+
177
+ interface VerticalMenusProps extends React__default.HTMLAttributes<HTMLDivElement> {
178
+ disabled?: boolean;
179
+ value?: string;
180
+ onValueChange?: (value: string) => void;
181
+ }
182
+ declare const VerticalMenus: React__default.ForwardRefExoticComponent<VerticalMenusProps & React__default.RefAttributes<HTMLDivElement>>;
183
+ interface VerticalMenuProps extends React__default.DetailedHTMLProps<React__default.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement> {
184
+ value: string;
185
+ label?: string;
186
+ icon?: React__default.ReactNode;
187
+ variant?: VerticalMenuVariant;
188
+ size?: VerticalMenuSize;
189
+ }
190
+ declare const VerticalMenu: React__default.ForwardRefExoticComponent<Omit<VerticalMenuProps, "ref"> & React__default.RefAttributes<HTMLButtonElement>>;
191
+
192
+ declare const HORIZONTAL_TAB_SIZES: {
193
+ readonly REGULAR: "regular";
194
+ readonly SMALL: "small";
195
+ };
196
+ type HorizontalTabSize = (typeof HORIZONTAL_TAB_SIZES)[keyof typeof HORIZONTAL_TAB_SIZES];
197
+
198
+ interface HorizontalTabsProps extends React__default.HTMLAttributes<HTMLDivElement> {
199
+ disabled?: boolean;
200
+ value?: string;
201
+ onValueChange?: (value: string) => void;
202
+ }
203
+ declare const HorizontalTabs: React__default.ForwardRefExoticComponent<HorizontalTabsProps & React__default.RefAttributes<HTMLDivElement>>;
204
+ interface HorizontalTabProps extends React__default.DetailedHTMLProps<React__default.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement> {
205
+ value: string;
206
+ label?: string;
207
+ icon?: React__default.ReactNode;
208
+ size?: HorizontalTabSize;
209
+ }
210
+ declare const HorizontalTab: React__default.ForwardRefExoticComponent<Omit<HorizontalTabProps, "ref"> & React__default.RefAttributes<HTMLButtonElement>>;
211
+
212
+ interface ModeTabsProps extends React__default.HTMLAttributes<HTMLDivElement> {
213
+ disabled?: boolean;
214
+ value?: string;
215
+ onValueChange?: (value: string) => void;
216
+ }
217
+ declare const ModeTabs: React__default.ForwardRefExoticComponent<ModeTabsProps & React__default.RefAttributes<HTMLDivElement>>;
218
+ interface ModeTabProps extends React__default.DetailedHTMLProps<React__default.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement> {
219
+ value: string;
220
+ label?: string;
221
+ icon?: React__default.ReactNode;
222
+ }
223
+ declare const ModeTab: React__default.ForwardRefExoticComponent<Omit<ModeTabProps, "ref"> & React__default.RefAttributes<HTMLButtonElement>>;
224
+
225
+ declare const TOOLTIP_SHORT_VARIANTS: {
226
+ readonly DEFAULT: "default";
227
+ readonly ACCENT: "accent";
228
+ };
229
+ type TooltipShortVariant = (typeof TOOLTIP_SHORT_VARIANTS)[keyof typeof TOOLTIP_SHORT_VARIANTS];
230
+ declare const TOOLTIP_SHORT_SIZES: {
231
+ readonly REGULAR: "regular";
232
+ readonly SMALL: "small";
233
+ };
234
+ type TooltipShortSize = (typeof TOOLTIP_SHORT_SIZES)[keyof typeof TOOLTIP_SHORT_SIZES];
235
+
236
+ declare const Tooltip: (props: React__default.ComponentProps<typeof Tooltip$1.Root & typeof Tooltip$1.TooltipProvider>) => react_jsx_runtime.JSX.Element;
237
+ declare const TooltipTrigger: any;
238
+ interface TooltipDescriptionProps {
239
+ type: "default";
240
+ }
241
+ interface TooltipShortDescriptionProps {
242
+ type: "short";
243
+ variant?: TooltipShortVariant;
244
+ size?: TooltipShortSize;
245
+ }
246
+ type TooltipContentProps = React__default.ComponentProps<typeof Tooltip$1.Content> & (TooltipDescriptionProps | TooltipShortDescriptionProps);
247
+ declare const TooltipContent: ({ type, ...rest }: TooltipContentProps) => react_jsx_runtime.JSX.Element;
248
+ declare const TooltipArrow: any;
249
+ declare const TooltipHeader: React__default.ForwardRefExoticComponent<React__default.HTMLAttributes<HTMLDivElement> & React__default.RefAttributes<HTMLDivElement>>;
250
+ declare const TooltipDescription: React__default.ForwardRefExoticComponent<React__default.HTMLAttributes<HTMLDivElement> & React__default.RefAttributes<HTMLDivElement>>;
251
+ declare const TooltipFooter: React__default.ForwardRefExoticComponent<React__default.HTMLAttributes<HTMLDivElement> & React__default.RefAttributes<HTMLDivElement>>;
252
+
253
+ declare const MULTIPLE_SELECT_SIZES: {
254
+ readonly REGULAR: "regular";
255
+ readonly LARGE: "large";
256
+ };
257
+ type MultipleSelectSize = (typeof MULTIPLE_SELECT_SIZES)[keyof typeof MULTIPLE_SELECT_SIZES];
258
+
259
+ interface Option {
260
+ value: string;
261
+ label: string;
262
+ disabled?: boolean;
263
+ }
264
+ interface MultipleSelectProps extends React__default.HTMLAttributes<HTMLDivElement> {
265
+ disabled?: boolean;
266
+ open?: boolean;
267
+ value?: Option[];
268
+ onOpenChange?: (open: boolean) => void;
269
+ onValueChange?: (value: Option[]) => void;
270
+ }
271
+ declare const MultipleSelect: React__default.ForwardRefExoticComponent<MultipleSelectProps & React__default.RefAttributes<HTMLDivElement>>;
272
+ interface MultipleSelectTriggerProps extends React__default.DetailedHTMLProps<React__default.HTMLAttributes<HTMLDivElement>, HTMLDivElement> {
273
+ size?: MultipleSelectSize;
274
+ }
275
+ declare const MultipleSelectTrigger: React__default.ForwardRefExoticComponent<Omit<MultipleSelectTriggerProps, "ref"> & React__default.RefAttributes<HTMLDivElement>>;
276
+ interface MultipleSelectValueProps extends React__default.DetailedHTMLProps<Omit<React__default.HTMLAttributes<HTMLDivElement>, "children">, HTMLDivElement> {
277
+ placeholder?: string;
278
+ }
279
+ declare const MultipleSelectValue: React__default.ForwardRefExoticComponent<Omit<MultipleSelectValueProps, "ref"> & React__default.RefAttributes<HTMLDivElement>>;
280
+ interface MultipleSelectContentProps extends React__default.DetailedHTMLProps<Omit<React__default.HTMLAttributes<HTMLDivElement>, "children">, HTMLDivElement> {
281
+ useSearch?: boolean;
282
+ options: Option[];
283
+ indicator?: React__default.ReactNode;
284
+ }
285
+ declare const MultipleSelectContent: React__default.ForwardRefExoticComponent<Omit<MultipleSelectContentProps, "ref"> & React__default.RefAttributes<HTMLDivElement>>;
286
+
287
+ declare const Table: React__default.ForwardRefExoticComponent<Omit<React__default.DetailedHTMLProps<React__default.TableHTMLAttributes<HTMLTableElement>, HTMLTableElement>, "ref"> & React__default.RefAttributes<HTMLTableElement>>;
288
+ declare const TableHeader: React__default.ForwardRefExoticComponent<Omit<React__default.DetailedHTMLProps<React__default.TableHTMLAttributes<HTMLTableRowElement>, HTMLTableRowElement>, "ref"> & React__default.RefAttributes<HTMLTableRowElement>>;
289
+ declare const TableBody: React__default.ForwardRefExoticComponent<Omit<React__default.DetailedHTMLProps<React__default.TableHTMLAttributes<HTMLTableSectionElement>, HTMLTableSectionElement>, "ref"> & React__default.RefAttributes<HTMLTableSectionElement>>;
290
+ interface TableRowProps extends React__default.DetailedHTMLProps<React__default.HTMLAttributes<HTMLTableRowElement>, HTMLTableRowElement> {
291
+ isSelected?: boolean;
292
+ shouldLastBorderRender?: boolean;
293
+ }
294
+ declare const TableRow: React__default.ForwardRefExoticComponent<Omit<TableRowProps, "ref"> & React__default.RefAttributes<HTMLTableRowElement>>;
295
+ declare const TableHead: React__default.ForwardRefExoticComponent<Omit<React__default.DetailedHTMLProps<React__default.ThHTMLAttributes<HTMLTableCellElement>, HTMLTableCellElement>, "ref"> & React__default.RefAttributes<HTMLTableCellElement>>;
296
+ interface TableCellProps extends React__default.DetailedHTMLProps<React__default.TdHTMLAttributes<HTMLTableCellElement>, HTMLTableCellElement> {
297
+ showTooltip?: boolean;
298
+ }
299
+ declare const TableCell: React__default.ForwardRefExoticComponent<Omit<TableCellProps, "ref"> & React__default.RefAttributes<HTMLTableCellElement>>;
300
+
301
+ /** table 기반 config로 테이블 완성 component */
302
+ interface TableInfo<T> {
303
+ header: string;
304
+ renderFn: (item: T) => React__default.ReactNode;
305
+ minWidth?: number;
306
+ maxWidth?: number;
307
+ showTooltip?: boolean;
308
+ }
309
+ type DataTableConfig<T> = TableInfo<T>[];
310
+ interface DataTableProps<T> {
311
+ config: DataTableConfig<T>;
312
+ data: T[];
313
+ emptyMessage?: string;
314
+ onRowClick?: (item: T) => void;
315
+ enableSelection?: boolean;
316
+ shouldLastBorderRender?: boolean;
317
+ classNames?: {
318
+ table?: string;
319
+ header?: string;
320
+ head?: string;
321
+ body?: string;
322
+ row?: string;
323
+ cell?: string;
324
+ };
325
+ refs?: {
326
+ tableRef?: React__default.Ref<HTMLTableElement>;
327
+ headerRef?: React__default.Ref<HTMLTableRowElement>;
328
+ bodyRef?: React__default.Ref<HTMLTableSectionElement>;
329
+ rowRef?: React__default.Ref<HTMLTableRowElement>;
330
+ cellRef?: React__default.Ref<HTMLTableCellElement>;
331
+ headRef?: React__default.Ref<HTMLTableCellElement>;
332
+ };
333
+ }
334
+ declare const DataTable: <T extends object>({ config, data, emptyMessage, onRowClick, enableSelection, shouldLastBorderRender, classNames, refs, }: DataTableProps<T>) => react_jsx_runtime.JSX.Element;
335
+
336
+ interface InteractiveListItemProps extends React__default.DetailedHTMLProps<React__default.HTMLAttributes<HTMLDivElement>, HTMLDivElement> {
337
+ isSelected?: boolean;
338
+ disabled?: boolean;
339
+ showHoverActions?: boolean;
340
+ }
341
+ declare const InteractiveListItem: React__default.ForwardRefExoticComponent<Omit<InteractiveListItemProps, "ref"> & React__default.RefAttributes<HTMLDivElement>>;
342
+ declare const InteractiveListItemIcon: React__default.ForwardRefExoticComponent<Omit<React__default.DetailedHTMLProps<React__default.HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "ref"> & React__default.RefAttributes<HTMLSpanElement>>;
343
+ declare const InteractiveListItemContent: React__default.ForwardRefExoticComponent<Omit<React__default.DetailedHTMLProps<React__default.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & React__default.RefAttributes<HTMLDivElement>>;
344
+ declare const InteractiveListItemActions: React__default.ForwardRefExoticComponent<React__default.HTMLAttributes<HTMLDivElement> & React__default.RefAttributes<HTMLDivElement>>;
345
+
346
+ type CalendarProps = React$1.ComponentProps<typeof DayPicker>;
347
+ declare const Calendar: ({ className, classNames, showOutsideDays, ...props }: CalendarProps) => react_jsx_runtime.JSX.Element;
348
+
349
+ type AllDatePickerTypes = Date | undefined | DateRange | Date[];
350
+ type DatePickerProps = DatePicker & CalendarProps & Popover.PopoverProps & Popover.PopoverContentProps;
351
+ interface DatePicker {
352
+ size: "regular" | "large";
353
+ placeholder?: string;
354
+ format?: string;
355
+ value?: AllDatePickerTypes;
356
+ onChange?: (date: AllDatePickerTypes) => void;
357
+ isInstantClose?: boolean;
358
+ disabled?: boolean;
359
+ }
360
+ declare const DatePicker: ({ size, placeholder, format, value, mode, onChange, isInstantClose, open: openProp, onOpenChange: onOpenChangeProp, disabled, ...rest }: DatePickerProps) => react_jsx_runtime.JSX.Element;
361
+
362
+ declare const ContextMenu: any;
363
+ declare const ContextMenuTrigger: any;
364
+ declare const ContextMenuContent: (props: React.ComponentProps<typeof ContextMenu$1.Content>) => react_jsx_runtime.JSX.Element;
365
+ declare const ContextMenuArrow: any;
366
+ declare const ContextMenuLabel: (props: React.ComponentProps<typeof ContextMenu$1.Label>) => react_jsx_runtime.JSX.Element;
367
+ interface ContextMenuItemProps extends Omit<React.ComponentProps<typeof ContextMenu$1.Item>, "children"> {
368
+ leftIcon?: React.ReactNode;
369
+ rightSlot?: React.ReactNode;
370
+ }
371
+ declare const ContextMenuItem: ({ leftIcon, rightSlot, textValue, ...rest }: ContextMenuItemProps) => react_jsx_runtime.JSX.Element;
372
+ declare const ContextMenuGroup: any;
373
+ declare const ContextMenuSub: any;
374
+ declare const ContextMenuSubTrigger: any;
375
+ declare const ContextMenuSubContent: (props: React.ComponentProps<typeof ContextMenu$1.SubContent>) => react_jsx_runtime.JSX.Element;
376
+ declare const ContextMenuSeparator: (props: React.ComponentProps<typeof ContextMenu$1.Separator>) => react_jsx_runtime.JSX.Element;
377
+ declare const ContextMenuCheckboxItem: any;
378
+ declare const ContextMenuRadioGroup: any;
379
+ declare const ContextMenuRadioItem: any;
380
+ declare const ContextMenuItemIndicator: (props: React.ComponentProps<typeof ContextMenu$1.ItemIndicator>) => react_jsx_runtime.JSX.Element;
381
+
382
+ interface AutocompleteProps<T> {
383
+ placeholder?: string;
384
+ data: T[];
385
+ value?: string;
386
+ displayValue: (item: T) => string;
387
+ onSelect?: (selectedItem: T | null) => void;
388
+ onChange?: (value: string) => void;
389
+ noResultsMessage?: string;
390
+ maxResults?: number;
391
+ debounceTime?: number;
392
+ wrapperClassName?: string;
393
+ contentClassName?: string;
394
+ itemClassName?: string;
395
+ }
396
+ declare const Autocomplete: <T>({ placeholder, data, value, displayValue, onSelect, onChange, noResultsMessage, maxResults, debounceTime, wrapperClassName, contentClassName, itemClassName, }: AutocompleteProps<T>) => react_jsx_runtime.JSX.Element;
397
+
398
+ export { Autocomplete, Calendar, Checkbox, ContextMenu, ContextMenuArrow, ContextMenuCheckboxItem, ContextMenuContent, ContextMenuGroup, ContextMenuItem, ContextMenuItemIndicator, ContextMenuLabel, ContextMenuRadioGroup, ContextMenuRadioItem, ContextMenuSeparator, ContextMenuSub, ContextMenuSubContent, ContextMenuSubTrigger, ContextMenuTrigger, DataTable, DatePicker, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogPortal, DialogTrigger, HorizontalTab, HorizontalTabs, InteractiveListItem, InteractiveListItemActions, InteractiveListItemContent, InteractiveListItemIcon, ModeTab, ModeTabs, MultipleSelect, MultipleSelectContent, MultipleSelectTrigger, MultipleSelectValue, RadioGroup, RadioItem, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectSeparator, SelectTrigger, Table, TableBody, TableCell, TableHead, TableHeader, TableRow, Tooltip, TooltipArrow, TooltipContent, TooltipDescription, TooltipFooter, TooltipHeader, TooltipTrigger, VerticalMenu, VerticalMenus };
@@ -1,8 +1,8 @@
1
- import { ButtonSizeStyles, ButtonVariantStyles } from "../button/styles";
2
1
  import React, { ReactNode } from "react";
2
+ import { ButtonSize, ButtonVariant } from "./types";
3
3
  export interface ButtonProps extends React.DetailedHTMLProps<React.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement> {
4
- variant?: ButtonVariantStyles;
5
- size?: ButtonSizeStyles;
4
+ variant?: ButtonVariant;
5
+ size?: ButtonSize;
6
6
  fullWidth?: boolean;
7
7
  isLoading?: boolean;
8
8
  leftIcon?: ReactNode;
@@ -0,0 +1,12 @@
1
+ export declare const BUTTON_SIZES: {
2
+ readonly REGULAR: "regular";
3
+ readonly SMALL: "small";
4
+ readonly LARGE: "large";
5
+ };
6
+ export type ButtonSize = (typeof BUTTON_SIZES)[keyof typeof BUTTON_SIZES];
7
+ export declare const BUTTON_VARIANTS: {
8
+ readonly ACCENT: "accent";
9
+ readonly OUTLINE: "outline";
10
+ readonly GHOST: "ghost";
11
+ };
12
+ export type ButtonVariant = (typeof BUTTON_VARIANTS)[keyof typeof BUTTON_VARIANTS];
@@ -0,0 +1,16 @@
1
+ export { RadioGroup, RadioItem } from "./radio-group";
2
+ export { Checkbox } from "./checkbox";
3
+ export { Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogPortal, DialogTrigger, } from "./dialog";
4
+ export { Select, SelectTrigger, SelectContent, SelectGroup, SelectLabel, SelectSeparator, SelectItem, } from "./select";
5
+ export { VerticalMenus, VerticalMenu } from "./vertical-menu";
6
+ export { HorizontalTabs, HorizontalTab } from "./horizontal-tab";
7
+ export { ModeTabs, ModeTab } from "./mode-tab";
8
+ export { Tooltip, TooltipTrigger, TooltipContent, TooltipArrow, TooltipHeader, TooltipDescription, TooltipFooter, } from "./tooltip";
9
+ export { MultipleSelect, MultipleSelectTrigger, MultipleSelectContent, MultipleSelectValue, } from "./multiple-select";
10
+ export { Table, TableHeader, TableBody, TableRow, TableHead, TableCell, } from "./table";
11
+ export { DataTable } from "./data-table";
12
+ export { InteractiveListItem, InteractiveListItemActions, InteractiveListItemContent, InteractiveListItemIcon, } from "./interactive-list-item";
13
+ export { Calendar } from "./calendar";
14
+ export { DatePicker } from "./date-picker";
15
+ export { ContextMenu, ContextMenuTrigger, ContextMenuContent, ContextMenuArrow, ContextMenuLabel, ContextMenuItem, ContextMenuGroup, ContextMenuSub, ContextMenuSubTrigger, ContextMenuSubContent, ContextMenuSeparator, ContextMenuCheckboxItem, ContextMenuRadioGroup, ContextMenuRadioItem, ContextMenuItemIndicator, } from "./context-menu";
16
+ export { Autocomplete } from "./autocomplete";