@lotte-innovate/ui-component-test 0.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (252) hide show
  1. package/README.md +154 -0
  2. package/dist/components/Accordion/index.d.ts +16 -0
  3. package/dist/components/Accordion/index.jsx +70 -0
  4. package/dist/components/AlertDialog/AlertDialogAction.d.ts +14 -0
  5. package/dist/components/AlertDialog/AlertDialogAction.jsx +60 -0
  6. package/dist/components/AlertDialog/AlertDialogCancel.d.ts +13 -0
  7. package/dist/components/AlertDialog/AlertDialogCancel.jsx +57 -0
  8. package/dist/components/AlertDialog/AlertDialogContent.d.ts +11 -0
  9. package/dist/components/AlertDialog/AlertDialogContent.jsx +53 -0
  10. package/dist/components/AlertDialog/AlertDialogDescription.d.ts +10 -0
  11. package/dist/components/AlertDialog/AlertDialogDescription.jsx +35 -0
  12. package/dist/components/AlertDialog/AlertDialogTitle.d.ts +10 -0
  13. package/dist/components/AlertDialog/AlertDialogTitle.jsx +35 -0
  14. package/dist/components/AlertDialog/AlertDialogTrigger.d.ts +17 -0
  15. package/dist/components/AlertDialog/AlertDialogTrigger.jsx +56 -0
  16. package/dist/components/AlertDialog/index.d.ts +20 -0
  17. package/dist/components/AlertDialog/index.jsx +25 -0
  18. package/dist/components/AspectRatio/index.d.ts +10 -0
  19. package/dist/components/AspectRatio/index.jsx +43 -0
  20. package/dist/components/Avatar/index.d.ts +17 -0
  21. package/dist/components/Avatar/index.jsx +61 -0
  22. package/dist/components/Badge/index.d.ts +18 -0
  23. package/dist/components/Badge/index.jsx +55 -0
  24. package/dist/components/BubbleChart/index.d.ts +32 -0
  25. package/dist/components/BubbleChart/index.jsx +42 -0
  26. package/dist/components/Button/index.d.ts +16 -0
  27. package/dist/components/Button/index.jsx +57 -0
  28. package/dist/components/Callout/CalloutIcon.d.ts +12 -0
  29. package/dist/components/Callout/CalloutIcon.jsx +62 -0
  30. package/dist/components/Callout/CalloutText.d.ts +10 -0
  31. package/dist/components/Callout/CalloutText.jsx +42 -0
  32. package/dist/components/Callout/index.d.ts +20 -0
  33. package/dist/components/Callout/index.jsx +78 -0
  34. package/dist/components/Card/index.d.ts +14 -0
  35. package/dist/components/Card/index.jsx +65 -0
  36. package/dist/components/Checkbox/index.d.ts +17 -0
  37. package/dist/components/Checkbox/index.jsx +97 -0
  38. package/dist/components/CheckboxCard/index.d.ts +20 -0
  39. package/dist/components/CheckboxCard/index.jsx +60 -0
  40. package/dist/components/CheckboxGroup/CheckboxGroupItem.d.ts +5 -0
  41. package/dist/components/CheckboxGroup/CheckboxGroupItem.jsx +25 -0
  42. package/dist/components/CheckboxGroup/index.d.ts +17 -0
  43. package/dist/components/CheckboxGroup/index.jsx +38 -0
  44. package/dist/components/ContextMenu/ContextMenuCheckboxItem.d.ts +4 -0
  45. package/dist/components/ContextMenu/ContextMenuCheckboxItem.jsx +33 -0
  46. package/dist/components/ContextMenu/ContextMenuContent.d.ts +11 -0
  47. package/dist/components/ContextMenu/ContextMenuContent.jsx +59 -0
  48. package/dist/components/ContextMenu/ContextMenuGroup.d.ts +4 -0
  49. package/dist/components/ContextMenu/ContextMenuGroup.jsx +20 -0
  50. package/dist/components/ContextMenu/ContextMenuItem.d.ts +13 -0
  51. package/dist/components/ContextMenu/ContextMenuItem.jsx +61 -0
  52. package/dist/components/ContextMenu/ContextMenuItemIndicator.d.ts +10 -0
  53. package/dist/components/ContextMenu/ContextMenuItemIndicator.jsx +51 -0
  54. package/dist/components/ContextMenu/ContextMenuLabel.d.ts +11 -0
  55. package/dist/components/ContextMenu/ContextMenuLabel.jsx +49 -0
  56. package/dist/components/ContextMenu/ContextMenuRadioGroup.d.ts +8 -0
  57. package/dist/components/ContextMenu/ContextMenuRadioGroup.jsx +23 -0
  58. package/dist/components/ContextMenu/ContextMenuRadioItem.d.ts +4 -0
  59. package/dist/components/ContextMenu/ContextMenuRadioItem.jsx +34 -0
  60. package/dist/components/ContextMenu/ContextMenuSeparator.d.ts +3 -0
  61. package/dist/components/ContextMenu/ContextMenuSeparator.jsx +21 -0
  62. package/dist/components/ContextMenu/ContextMenuSubContent.d.ts +11 -0
  63. package/dist/components/ContextMenu/ContextMenuSubContent.jsx +56 -0
  64. package/dist/components/ContextMenu/ContextMenuSubTrigger.d.ts +4 -0
  65. package/dist/components/ContextMenu/ContextMenuSubTrigger.jsx +35 -0
  66. package/dist/components/ContextMenu/ContextMenuTrigger.d.ts +4 -0
  67. package/dist/components/ContextMenu/ContextMenuTrigger.jsx +21 -0
  68. package/dist/components/ContextMenu/index.d.ts +25 -0
  69. package/dist/components/ContextMenu/index.jsx +44 -0
  70. package/dist/components/DataList/DataListItem.d.ts +9 -0
  71. package/dist/components/DataList/DataListItem.jsx +44 -0
  72. package/dist/components/DataList/DataListLabel.d.ts +10 -0
  73. package/dist/components/DataList/DataListLabel.jsx +50 -0
  74. package/dist/components/DataList/DataListValue.d.ts +11 -0
  75. package/dist/components/DataList/DataListValue.jsx +52 -0
  76. package/dist/components/DataList/index.d.ts +17 -0
  77. package/dist/components/DataList/index.jsx +49 -0
  78. package/dist/components/Dialog/DialogAction.d.ts +15 -0
  79. package/dist/components/Dialog/DialogAction.jsx +47 -0
  80. package/dist/components/Dialog/DialogCancel.d.ts +11 -0
  81. package/dist/components/Dialog/DialogCancel.jsx +43 -0
  82. package/dist/components/Dialog/DialogContent.d.ts +11 -0
  83. package/dist/components/Dialog/DialogContent.jsx +56 -0
  84. package/dist/components/Dialog/DialogDescription.d.ts +9 -0
  85. package/dist/components/Dialog/DialogDescription.jsx +35 -0
  86. package/dist/components/Dialog/DialogSlot.d.ts +9 -0
  87. package/dist/components/Dialog/DialogSlot.jsx +34 -0
  88. package/dist/components/Dialog/DialogTitle.d.ts +11 -0
  89. package/dist/components/Dialog/DialogTitle.jsx +35 -0
  90. package/dist/components/Dialog/DialogTrigger.d.ts +3 -0
  91. package/dist/components/Dialog/DialogTrigger.jsx +20 -0
  92. package/dist/components/Dialog/index.d.ts +18 -0
  93. package/dist/components/Dialog/index.jsx +28 -0
  94. package/dist/components/DoughnutChart/index.d.ts +24 -0
  95. package/dist/components/DoughnutChart/index.jsx +46 -0
  96. package/dist/components/DropdownMenu/DropdonMenuRadioGroup.d.ts +8 -0
  97. package/dist/components/DropdownMenu/DropdonMenuRadioGroup.jsx +23 -0
  98. package/dist/components/DropdownMenu/DropdonMenuSubContent.d.ts +11 -0
  99. package/dist/components/DropdownMenu/DropdonMenuSubContent.jsx +61 -0
  100. package/dist/components/DropdownMenu/DropdownMenuCheckboxItem.d.ts +7 -0
  101. package/dist/components/DropdownMenu/DropdownMenuCheckboxItem.jsx +31 -0
  102. package/dist/components/DropdownMenu/DropdownMenuContent.d.ts +11 -0
  103. package/dist/components/DropdownMenu/DropdownMenuContent.jsx +57 -0
  104. package/dist/components/DropdownMenu/DropdownMenuItem.d.ts +13 -0
  105. package/dist/components/DropdownMenu/DropdownMenuItem.jsx +58 -0
  106. package/dist/components/DropdownMenu/DropdownMenuItemIndicator.d.ts +10 -0
  107. package/dist/components/DropdownMenu/DropdownMenuItemIndicator.jsx +47 -0
  108. package/dist/components/DropdownMenu/DropdownMenuLable.d.ts +11 -0
  109. package/dist/components/DropdownMenu/DropdownMenuLable.jsx +47 -0
  110. package/dist/components/DropdownMenu/DropdownMenuRadioItem.d.ts +4 -0
  111. package/dist/components/DropdownMenu/DropdownMenuRadioItem.jsx +32 -0
  112. package/dist/components/DropdownMenu/DropdownMenuSeparator.d.ts +3 -0
  113. package/dist/components/DropdownMenu/DropdownMenuSeparator.jsx +19 -0
  114. package/dist/components/DropdownMenu/DropdownMenuSub.d.ts +3 -0
  115. package/dist/components/DropdownMenu/DropdownMenuSub.jsx +18 -0
  116. package/dist/components/DropdownMenu/DropdownMenuSubTrigger.d.ts +4 -0
  117. package/dist/components/DropdownMenu/DropdownMenuSubTrigger.jsx +31 -0
  118. package/dist/components/DropdownMenu/DropdownMenuTrigger.d.ts +13 -0
  119. package/dist/components/DropdownMenu/DropdownMenuTrigger.jsx +41 -0
  120. package/dist/components/DropdownMenu/index.d.ts +23 -0
  121. package/dist/components/DropdownMenu/index.jsx +31 -0
  122. package/dist/components/HoverCard/HoverCardContent.d.ts +14 -0
  123. package/dist/components/HoverCard/HoverCardContent.jsx +61 -0
  124. package/dist/components/HoverCard/HoverCardTrigger.d.ts +3 -0
  125. package/dist/components/HoverCard/HoverCardTrigger.jsx +20 -0
  126. package/dist/components/HoverCard/index.d.ts +10 -0
  127. package/dist/components/HoverCard/index.jsx +23 -0
  128. package/dist/components/IconButton/index.d.ts +15 -0
  129. package/dist/components/IconButton/index.jsx +64 -0
  130. package/dist/components/Input/Input.stories.d.ts +77 -0
  131. package/dist/components/Input/Input.stories.jsx +68 -0
  132. package/dist/components/Input/index.d.ts +14 -0
  133. package/dist/components/Input/index.jsx +53 -0
  134. package/dist/components/Inset/index.d.ts +10 -0
  135. package/dist/components/Inset/index.jsx +53 -0
  136. package/dist/components/Label/index.d.ts +17 -0
  137. package/dist/components/Label/index.jsx +54 -0
  138. package/dist/components/Menubar/MenubarCheckboxItem.d.ts +4 -0
  139. package/dist/components/Menubar/MenubarCheckboxItem.jsx +31 -0
  140. package/dist/components/Menubar/MenubarContent.d.ts +11 -0
  141. package/dist/components/Menubar/MenubarContent.jsx +63 -0
  142. package/dist/components/Menubar/MenubarItem.d.ts +13 -0
  143. package/dist/components/Menubar/MenubarItem.jsx +56 -0
  144. package/dist/components/Menubar/MenubarItemIndicator.d.ts +10 -0
  145. package/dist/components/Menubar/MenubarItemIndicator.jsx +50 -0
  146. package/dist/components/Menubar/MenubarMenu.d.ts +2 -0
  147. package/dist/components/Menubar/MenubarMenu.jsx +18 -0
  148. package/dist/components/Menubar/MenubarRadioGroup.d.ts +8 -0
  149. package/dist/components/Menubar/MenubarRadioGroup.jsx +23 -0
  150. package/dist/components/Menubar/MenubarRadioItem.d.ts +4 -0
  151. package/dist/components/Menubar/MenubarRadioItem.jsx +33 -0
  152. package/dist/components/Menubar/MenubarSeparator.d.ts +3 -0
  153. package/dist/components/Menubar/MenubarSeparator.jsx +21 -0
  154. package/dist/components/Menubar/MenubarSub.d.ts +3 -0
  155. package/dist/components/Menubar/MenubarSub.jsx +18 -0
  156. package/dist/components/Menubar/MenubarSubContent.d.ts +10 -0
  157. package/dist/components/Menubar/MenubarSubContent.jsx +52 -0
  158. package/dist/components/Menubar/MenubarSubTrigger.d.ts +4 -0
  159. package/dist/components/Menubar/MenubarSubTrigger.jsx +34 -0
  160. package/dist/components/Menubar/MenubarTrigger.d.ts +12 -0
  161. package/dist/components/Menubar/MenubarTrigger.jsx +58 -0
  162. package/dist/components/Menubar/index.d.ts +31 -0
  163. package/dist/components/Menubar/index.jsx +76 -0
  164. package/dist/components/NavigationMenu/NavigationMenuContent.d.ts +11 -0
  165. package/dist/components/NavigationMenu/NavigationMenuContent.jsx +49 -0
  166. package/dist/components/NavigationMenu/NavigationMenuIndicator.d.ts +3 -0
  167. package/dist/components/NavigationMenu/NavigationMenuIndicator.jsx +22 -0
  168. package/dist/components/NavigationMenu/NavigationMenuItem.d.ts +3 -0
  169. package/dist/components/NavigationMenu/NavigationMenuItem.jsx +20 -0
  170. package/dist/components/NavigationMenu/NavigationMenuLink.d.ts +13 -0
  171. package/dist/components/NavigationMenu/NavigationMenuLink.jsx +52 -0
  172. package/dist/components/NavigationMenu/NavigationMenuList.d.ts +12 -0
  173. package/dist/components/NavigationMenu/NavigationMenuList.jsx +49 -0
  174. package/dist/components/NavigationMenu/NavigationMenuTrigger.d.ts +13 -0
  175. package/dist/components/NavigationMenu/NavigationMenuTrigger.jsx +60 -0
  176. package/dist/components/NavigationMenu/NavigationMenuViewport.d.ts +12 -0
  177. package/dist/components/NavigationMenu/NavigationMenuViewport.jsx +54 -0
  178. package/dist/components/NavigationMenu/index.d.ts +21 -0
  179. package/dist/components/NavigationMenu/index.jsx +42 -0
  180. package/dist/components/PieChart/index.d.ts +24 -0
  181. package/dist/components/PieChart/index.jsx +46 -0
  182. package/dist/components/Popover/PopoverClose.d.ts +9 -0
  183. package/dist/components/Popover/PopoverClose.jsx +36 -0
  184. package/dist/components/Popover/PopoverContent.d.ts +11 -0
  185. package/dist/components/Popover/PopoverContent.jsx +64 -0
  186. package/dist/components/Popover/PopoverTrigger.d.ts +3 -0
  187. package/dist/components/Popover/PopoverTrigger.jsx +20 -0
  188. package/dist/components/Popover/index.d.ts +11 -0
  189. package/dist/components/Popover/index.jsx +23 -0
  190. package/dist/components/Progress/index.d.ts +16 -0
  191. package/dist/components/Progress/index.jsx +57 -0
  192. package/dist/components/RadarChart/index.d.ts +35 -0
  193. package/dist/components/RadarChart/index.jsx +42 -0
  194. package/dist/components/Radio/index.d.ts +14 -0
  195. package/dist/components/Radio/index.jsx +45 -0
  196. package/dist/components/RadioCards/RadioCardsItem.d.ts +10 -0
  197. package/dist/components/RadioCards/RadioCardsItem.jsx +42 -0
  198. package/dist/components/RadioCards/index.d.ts +13 -0
  199. package/dist/components/RadioCards/index.jsx +45 -0
  200. package/dist/components/RadioGroup/RadioGroupItem.d.ts +13 -0
  201. package/dist/components/RadioGroup/RadioGroupItem.jsx +34 -0
  202. package/dist/components/RadioGroup/index.d.ts +15 -0
  203. package/dist/components/RadioGroup/index.jsx +42 -0
  204. package/dist/components/ScrollArea/index.d.ts +8 -0
  205. package/dist/components/ScrollArea/index.jsx +27 -0
  206. package/dist/components/SegmentedControl/SegmentedControlItem.d.ts +6 -0
  207. package/dist/components/SegmentedControl/SegmentedControlItem.jsx +25 -0
  208. package/dist/components/SegmentedControl/index.d.ts +14 -0
  209. package/dist/components/SegmentedControl/index.jsx +50 -0
  210. package/dist/components/Select/index.d.ts +25 -0
  211. package/dist/components/Select/index.jsx +97 -0
  212. package/dist/components/Separator/index.d.ts +11 -0
  213. package/dist/components/Separator/index.jsx +49 -0
  214. package/dist/components/Skeleton/index.d.ts +15 -0
  215. package/dist/components/Skeleton/index.jsx +45 -0
  216. package/dist/components/Slider/index.d.ts +15 -0
  217. package/dist/components/Slider/index.jsx +50 -0
  218. package/dist/components/Spinner/index.d.ts +15 -0
  219. package/dist/components/Spinner/index.jsx +49 -0
  220. package/dist/components/TabNav/index.d.ts +11 -0
  221. package/dist/components/TabNav/index.jsx +39 -0
  222. package/dist/components/Table/index.d.ts +20 -0
  223. package/dist/components/Table/index.jsx +103 -0
  224. package/dist/components/Tabs/index.d.ts +16 -0
  225. package/dist/components/Tabs/index.jsx +67 -0
  226. package/dist/components/TextArea/index.d.ts +16 -0
  227. package/dist/components/TextArea/index.jsx +58 -0
  228. package/dist/components/TextField/index.d.ts +18 -0
  229. package/dist/components/TextField/index.jsx +57 -0
  230. package/dist/components/Toast/ToastActionButton.d.ts +14 -0
  231. package/dist/components/Toast/ToastActionButton.jsx +68 -0
  232. package/dist/components/Toast/ToastDescription.d.ts +13 -0
  233. package/dist/components/Toast/ToastDescription.jsx +45 -0
  234. package/dist/components/Toast/ToastTitle.d.ts +13 -0
  235. package/dist/components/Toast/ToastTitle.jsx +43 -0
  236. package/dist/components/Toast/index.d.ts +29 -0
  237. package/dist/components/Toast/index.jsx +99 -0
  238. package/dist/components/Toggle/ToggleWithText.d.ts +21 -0
  239. package/dist/components/Toggle/ToggleWithText.jsx +59 -0
  240. package/dist/components/Toggle/index.d.ts +20 -0
  241. package/dist/components/Toggle/index.jsx +58 -0
  242. package/dist/components/ToggleGroup/index.d.ts +19 -0
  243. package/dist/components/ToggleGroup/index.jsx +45 -0
  244. package/dist/components/ToggleGroup/toggleGroupItem.d.ts +17 -0
  245. package/dist/components/ToggleGroup/toggleGroupItem.jsx +42 -0
  246. package/dist/components/ToggleSwitch/index.d.ts +13 -0
  247. package/dist/components/ToggleSwitch/index.jsx +74 -0
  248. package/dist/components/Tooltip/index.d.ts +20 -0
  249. package/dist/components/Tooltip/index.jsx +58 -0
  250. package/dist/components/index.d.ts +22 -0
  251. package/dist/components/index.js +22 -0
  252. package/package.json +119 -0
package/README.md ADDED
@@ -0,0 +1,154 @@
1
+ # radix-ui 라이브러리 활용 Storybook UI Component 만들기
2
+
3
+ <br />
4
+
5
+ ## 사전 설치 라이브러리
6
+
7
+ - radix-ui
8
+ - 주요 컴포넌트 사용 시 활용할 Headless UI 라이브러리
9
+
10
+ ```shell
11
+ npm install @radix-ui/react-popover@latest -E
12
+ ```
13
+
14
+ - storybook
15
+ - 컴포넌트 관리를 위해 사용
16
+
17
+ ```shell
18
+ npx sb init
19
+ npx storybook@latest add @storybook/addon-styling-webpack
20
+ ```
21
+
22
+ - clsx
23
+ - 조건부 className 작성을 위해 사용
24
+
25
+ ```shell
26
+ npm i clsx
27
+ ```
28
+
29
+ - tailwind-merge
30
+ - 스타일 충돌 없이 자바스크립트에서 tailwind CSS 클래스를 효율적으로 병합하는 기능을 가진 라이브러리
31
+
32
+ ```shell
33
+ npm i tailwind-merge
34
+ ```
35
+
36
+ - class-variance-authority (CVA)
37
+ - 일관성 있는 UI를 정의하고 사용할 수 있도록 도와주는 툴로써 shadcn/ui 컴포넌트의 핵심 도구
38
+
39
+ ```shell
40
+ npm i class-variance-authority
41
+ ```
42
+
43
+ <br />
44
+
45
+ ## 실행
46
+
47
+ - 스토리북 실행
48
+
49
+ ```shell
50
+ npm run storybook
51
+ ```
52
+
53
+ > 접속주소(포트 6006 사용 시): `http://localhost:6006`
54
+
55
+ - 웹페이지 실행
56
+
57
+ ```shell
58
+ npm run dev
59
+ ```
60
+
61
+ > 접속주소(포트 3000 사용 시): `http://localhost:3000`
62
+
63
+ ## package publish
64
+
65
+ - 타입스크립트 컴파일
66
+
67
+ ```shell
68
+ npm run publish:npm
69
+ ```
70
+
71
+ - npm package 배포 시
72
+
73
+ - npm 로그인
74
+
75
+ ```shell
76
+ npm login
77
+ ```
78
+
79
+ - package.json 버전 수정 후 컴파일 진행
80
+
81
+ ```shell
82
+ npm run publish:npm
83
+ ```
84
+
85
+ - 패키지 배포
86
+
87
+ ```shell
88
+ npm publish
89
+ ```
90
+
91
+ - npm package 미배포시
92
+
93
+ - package.json 버전 수정 후 컴파일 진행
94
+
95
+ ```shell
96
+ npm run publish:npm
97
+ ```
98
+
99
+ - dist/ 파일 및 설정파일 추출 후 전달
100
+
101
+ ## 사용자 이용 방법
102
+
103
+ ### npm 배포 시
104
+
105
+ - npm package 설치
106
+
107
+ ```sh
108
+ npm install <package_name>
109
+ ```
110
+
111
+ ### npm 미배포시
112
+
113
+ - 전달 받은 package 모듈 파일을 node_modules/ 폴더에 추가
114
+
115
+ ### tailwind 설정 방법
116
+
117
+ - tailwind config 파일 설정
118
+
119
+ ```js
120
+ // tailwind.config.ts
121
+ import type { Config } from 'tailwindcss';
122
+ // UI 라이브러리 tailwind config 파일 호출
123
+ // >>>>>>>> 추가
124
+ const packageTailwindConfig = require('ui-component-test/tailwind.config.js');
125
+ // >>>>>>>>
126
+
127
+ const config: Config = {
128
+ content: [
129
+ './src/pages/**/*.{js,ts,jsx,tsx,mdx,zip}',
130
+ './src/components/**/*.{js,ts,jsx,tsx,mdx,zip}',
131
+ './src/app/**/*.{js,ts,jsx,tsx,mdx,zip}',
132
+ // 해당 프로젝트 css 표준 컴포넌트에 적용 가능
133
+ // >>>>>>>> 추가
134
+ './node_modules/ui-component-test/**/*.{js,ts,jsx,tsx,mdx,zip}',
135
+ // >>>>>>>>
136
+ ],
137
+ theme: {
138
+ extend: {
139
+ backgroundImage: {
140
+ 'gradient-radial': 'radial-gradient(var(--tw-gradient-stops))',
141
+ 'gradient-conic': 'conic-gradient(from 180deg at 50% 50%, var(--tw-gradient-stops))',
142
+ },
143
+ colors: {},
144
+ // UI 라이브러리 tailwind config 파일 적용
145
+ // >>>>>>>> 추가
146
+ ...packageTailwindConfig?.theme?.extend,
147
+ // >>>>>>>>
148
+ },
149
+ },
150
+ plugins: [],
151
+ };
152
+ export default config;
153
+
154
+ ```
@@ -0,0 +1,16 @@
1
+ import React from 'react';
2
+ import * as AccordionPrimitive from '@radix-ui/react-accordion';
3
+ import { VariantProps } from 'class-variance-authority';
4
+ import { IColor } from 'types';
5
+ export interface AccordionProps extends React.InputHTMLAttributes<HTMLInputElement>, VariantProps<typeof accoridanVariants> {
6
+ defaultValue?: string;
7
+ color?: IColor;
8
+ }
9
+ declare const accoridanVariants: (props?: ({
10
+ scaling?: "90%" | "95%" | "100%" | "105%" | "110%" | null | undefined;
11
+ } & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
12
+ export declare const Accordion: React.ForwardRefExoticComponent<((Omit<AccordionPrimitive.AccordionSingleProps & React.RefAttributes<HTMLDivElement>, "ref"> | Omit<AccordionPrimitive.AccordionMultipleProps & React.RefAttributes<HTMLDivElement>, "ref">) & AccordionProps) & React.RefAttributes<HTMLDivElement>>;
13
+ export declare const AccordionItem: React.ForwardRefExoticComponent<Omit<AccordionPrimitive.AccordionItemProps & React.RefAttributes<HTMLDivElement>, "ref"> & AccordionProps & React.RefAttributes<HTMLDivElement>>;
14
+ export declare const AccordionTrigger: React.ForwardRefExoticComponent<Omit<AccordionPrimitive.AccordionTriggerProps & React.RefAttributes<HTMLButtonElement>, "ref"> & AccordionProps & React.RefAttributes<HTMLButtonElement>>;
15
+ export declare const AccordionContent: React.ForwardRefExoticComponent<Omit<AccordionPrimitive.AccordionContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & AccordionProps & React.RefAttributes<HTMLDivElement>>;
16
+ export default Accordion;
@@ -0,0 +1,70 @@
1
+ var __assign = (this && this.__assign) || function () {
2
+ __assign = Object.assign || function(t) {
3
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
4
+ s = arguments[i];
5
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
6
+ t[p] = s[p];
7
+ }
8
+ return t;
9
+ };
10
+ return __assign.apply(this, arguments);
11
+ };
12
+ var __rest = (this && this.__rest) || function (s, e) {
13
+ var t = {};
14
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
15
+ t[p] = s[p];
16
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
17
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
18
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
19
+ t[p[i]] = s[p[i]];
20
+ }
21
+ return t;
22
+ };
23
+ import React from 'react';
24
+ import * as AccordionPrimitive from '@radix-ui/react-accordion';
25
+ import { ChevronDownIcon } from '@radix-ui/react-icons';
26
+ import { cn } from '../../utils/utils';
27
+ import { cva } from 'class-variance-authority';
28
+ import { scalingVariants } from '../../constants';
29
+ var accoridanVariants = cva('', {
30
+ variants: {
31
+ scaling: __assign({}, scalingVariants),
32
+ },
33
+ defaultVariants: {
34
+ scaling: '100%',
35
+ },
36
+ });
37
+ export var Accordion = React.forwardRef(function (_a, forwardedRef) {
38
+ var className = _a.className, children = _a.children, scaling = _a.scaling, rootProps = __rest(_a, ["className", "children", "scaling"]);
39
+ return (<AccordionPrimitive.Root className={cn('w-[280px] rounded-md border border-slateA-4 dark:border-slateDarkA-4', accoridanVariants({ scaling: scaling }), className)} {...rootProps} ref={forwardedRef}>
40
+ {children}
41
+ </AccordionPrimitive.Root>);
42
+ });
43
+ Accordion.displayName = 'AccordionRoot';
44
+ export var AccordionItem = React.forwardRef(function (_a, forwardedRef) {
45
+ var className = _a.className, children = _a.children, rootProps = __rest(_a, ["className", "children"]);
46
+ return (<AccordionPrimitive.Item {...rootProps} ref={forwardedRef} className={cn('w-[278px] mt-px overflow-hidden first:mt-0 first:rounded-t last:rounded-b ', className)}>
47
+ {children}
48
+ </AccordionPrimitive.Item>);
49
+ });
50
+ AccordionItem.displayName = 'AccordionItem';
51
+ export var AccordionTrigger = React.forwardRef(function (_a, forwardedRef) {
52
+ var className = _a.className, children = _a.children, _b = _a.color, color = _b === void 0 ? 'red' : _b, rootProps = __rest(_a, ["className", "children", "color"]);
53
+ return (<AccordionPrimitive.Header {...rootProps} className={cn('flex', className)}>
54
+ <AccordionPrimitive.Trigger {...rootProps} ref={forwardedRef} className={cn(" w-[278px] group flex h-[44px] cursor-default items-center justify-between py-[10px] px-[20px] text-base font-normal ", "dark:bg-[#111113] text-".concat(color, "A-11 dark:text-").concat(color, "Dark-11 "), "hover:bg-".concat(color, "A-4 dark:hover:bg-").concat(color, "Dark-4 hover:text-").concat(color, "A-11 dark:hover:text-").concat(color, "DarkA-11"), "data-[state=open]:bg-".concat(color, "A-5 dark:data-[state=open]:bg-").concat(color, "DarkA-5"), "disabled:bg-slateA-3 disabled:dark:bg-slateDarkA-3 disabled:text-slateA-3 disabled:dark:text-slateDarkA-8", className)}>
55
+ {children}
56
+ <ChevronDownIcon className="ease-[cubic-bezier(0.87,_0,_0.13,_1)] transition-transform duration-300 group-data-[state=open]:rotate-180" aria-hidden/>
57
+ </AccordionPrimitive.Trigger>
58
+ </AccordionPrimitive.Header>);
59
+ });
60
+ AccordionTrigger.displayName = 'AccordionTrigger';
61
+ export var AccordionContent = React.forwardRef(function (_a, forwardedRef) {
62
+ var className = _a.className, children = _a.children, rootProps = __rest(_a, ["className", "children"]);
63
+ return (<AccordionPrimitive.Content {...rootProps} ref={forwardedRef} className={cn('w-[278px] max-h-[800px] bg-slateA-2 dark:bg-slateDarkA-2 border-t border-t-slateA-4 dark:border-t-slateDarkA-4 text-slateA-11 dark:text-slateDarkA-11 data-[state=open]:animate-slideDown data-[state=closed]:animate-slideUp overflow-hidden text-[16px]', className)}>
64
+ <div className="px-[20px] py-[15px] text-base font-normal h-auto max-h-[1000px] overflow-y-auto">
65
+ {children}
66
+ </div>
67
+ </AccordionPrimitive.Content>);
68
+ });
69
+ AccordionContent.displayName = 'AccordionContent';
70
+ export default Accordion;
@@ -0,0 +1,14 @@
1
+ import React from 'react';
2
+ import * as AlertDialogPrimitive from '@radix-ui/react-alert-dialog';
3
+ import { VariantProps } from 'class-variance-authority';
4
+ import { IAppearance } from 'types';
5
+ export interface AlertDialogActionProps extends VariantProps<typeof alertDialogActionVariants> {
6
+ appearance?: IAppearance;
7
+ }
8
+ export declare const alertDialogActionVariants: (props?: ({
9
+ radius?: "none" | "small" | "medium" | "large" | "full" | null | undefined;
10
+ size?: "small" | "medium" | "large" | "x-large" | null | undefined;
11
+ weight?: "medium" | "regular" | "semibold" | "bold" | null | undefined;
12
+ color?: string | null | undefined;
13
+ } & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
14
+ export declare const AlertDialogAction: React.ForwardRefExoticComponent<Omit<AlertDialogPrimitive.AlertDialogActionProps & React.RefAttributes<HTMLButtonElement>, "ref"> & AlertDialogActionProps & React.RefAttributes<HTMLButtonElement>>;
@@ -0,0 +1,60 @@
1
+ var __assign = (this && this.__assign) || function () {
2
+ __assign = Object.assign || function(t) {
3
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
4
+ s = arguments[i];
5
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
6
+ t[p] = s[p];
7
+ }
8
+ return t;
9
+ };
10
+ return __assign.apply(this, arguments);
11
+ };
12
+ var __rest = (this && this.__rest) || function (s, e) {
13
+ var t = {};
14
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
15
+ t[p] = s[p];
16
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
17
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
18
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
19
+ t[p[i]] = s[p[i]];
20
+ }
21
+ return t;
22
+ };
23
+ import React, { forwardRef } from 'react';
24
+ import * as AlertDialogPrimitive from '@radix-ui/react-alert-dialog';
25
+ import { cva } from 'class-variance-authority';
26
+ import { cn } from 'utils/utils';
27
+ import { appearanceStyle, primaryColorStyle, weightVariants } from '../../constants';
28
+ export var alertDialogActionVariants = cva("inline-flex items-center justify-center px-[15px] outline-none focus:shadow-[0_0_0_2px] font-normal", {
29
+ variants: {
30
+ radius: {
31
+ none: 'rounded-none',
32
+ small: 'rounded-[3px]',
33
+ medium: 'rounded',
34
+ large: 'rounded',
35
+ full: 'rounded-full',
36
+ },
37
+ size: {
38
+ small: 'text-xs h-[24px] px-2',
39
+ medium: 'text-sm h-[32px] px-3',
40
+ large: 'text-sm h-[32px] px-3',
41
+ 'x-large': 'text-base h-[40px] px-4',
42
+ },
43
+ weight: __assign({}, weightVariants),
44
+ color: primaryColorStyle(),
45
+ },
46
+ defaultVariants: {
47
+ radius: 'large',
48
+ weight: 'medium',
49
+ size: 'medium',
50
+ color: 'red',
51
+ },
52
+ });
53
+ export var AlertDialogAction = forwardRef(function (_a, ref) {
54
+ var className = _a.className, children = _a.children, radius = _a.radius, weight = _a.weight, size = _a.size, _b = _a.color, color = _b === void 0 ? 'red' : _b, _c = _a.appearance, appearance = _c === void 0 ? 'solid' : _c, props = __rest(_a, ["className", "children", "radius", "weight", "size", "color", "appearance"]);
55
+ var buttonClassName = cn(alertDialogActionVariants({ radius: radius, size: size, weight: weight, color: color }), appearanceStyle(appearance, color), className);
56
+ return (<AlertDialogPrimitive.Action ref={ref} className={buttonClassName} {...props}>
57
+ {children}
58
+ </AlertDialogPrimitive.Action>);
59
+ });
60
+ AlertDialogAction.displayName = 'AlertDialogAction';
@@ -0,0 +1,13 @@
1
+ import React from 'react';
2
+ import * as AlertDialogPrimitive from '@radix-ui/react-alert-dialog';
3
+ import { VariantProps } from 'class-variance-authority';
4
+ import { IAppearance } from 'types';
5
+ export interface AlertDialogCancelProps extends VariantProps<typeof alertDialogCancelVariants> {
6
+ appearance?: IAppearance;
7
+ }
8
+ export declare const alertDialogCancelVariants: (props?: ({
9
+ radius?: "none" | "small" | "medium" | "large" | "full" | null | undefined;
10
+ size?: "small" | "medium" | "large" | "x-large" | null | undefined;
11
+ weight?: "medium" | "regular" | "semibold" | "bold" | null | undefined;
12
+ } & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
13
+ export declare const AlertDialogCancel: React.ForwardRefExoticComponent<Omit<AlertDialogPrimitive.AlertDialogCancelProps & React.RefAttributes<HTMLButtonElement>, "ref"> & AlertDialogCancelProps & React.RefAttributes<HTMLButtonElement>>;
@@ -0,0 +1,57 @@
1
+ var __assign = (this && this.__assign) || function () {
2
+ __assign = Object.assign || function(t) {
3
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
4
+ s = arguments[i];
5
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
6
+ t[p] = s[p];
7
+ }
8
+ return t;
9
+ };
10
+ return __assign.apply(this, arguments);
11
+ };
12
+ var __rest = (this && this.__rest) || function (s, e) {
13
+ var t = {};
14
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
15
+ t[p] = s[p];
16
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
17
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
18
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
19
+ t[p[i]] = s[p[i]];
20
+ }
21
+ return t;
22
+ };
23
+ import React, { forwardRef } from 'react';
24
+ import * as AlertDialogPrimitive from '@radix-ui/react-alert-dialog';
25
+ import { cva } from 'class-variance-authority';
26
+ import { cn } from 'utils/utils';
27
+ import { weightVariants } from '../../constants';
28
+ export var alertDialogCancelVariants = cva("inline-flex justify-center items-center text-slate-11 bg-slate-3 outline-none border-none\n dark:text-slateDark-11 dark:bg-slateDark-3 dark:hover:bg-slateDarkA-4\n active:border-none hover:cursor-pointer hover:bg-slateA-4", {
29
+ variants: {
30
+ radius: {
31
+ none: 'rounded-none',
32
+ small: 'rounded-[3px]',
33
+ medium: 'rounded',
34
+ large: 'rounded',
35
+ full: 'rounded-full',
36
+ },
37
+ size: {
38
+ small: 'text-xs h-[24px] px-2 mr-2',
39
+ medium: 'text-sm h-[32px] px-3 mr-2',
40
+ large: 'text-sm h-[32px] px-3 mr-3',
41
+ 'x-large': 'text-base h-[40px] px-4 mr-3',
42
+ },
43
+ weight: __assign({}, weightVariants),
44
+ },
45
+ defaultVariants: {
46
+ radius: 'large',
47
+ weight: 'medium',
48
+ size: 'large',
49
+ },
50
+ });
51
+ export var AlertDialogCancel = forwardRef(function (_a, ref) {
52
+ var className = _a.className, children = _a.children, radius = _a.radius, size = _a.size, weight = _a.weight, _b = _a.appearance, appearance = _b === void 0 ? 'solid' : _b, props = __rest(_a, ["className", "children", "radius", "size", "weight", "appearance"]);
53
+ return (<AlertDialogPrimitive.Cancel ref={ref} {...props} className={cn(alertDialogCancelVariants({ radius: radius, size: size, weight: weight }), className)}>
54
+ {children}
55
+ </AlertDialogPrimitive.Cancel>);
56
+ });
57
+ AlertDialogCancel.displayName = 'AlertDialogCancel';
@@ -0,0 +1,11 @@
1
+ import React from 'react';
2
+ import * as AlertDialogPrimitive from '@radix-ui/react-alert-dialog';
3
+ import { VariantProps } from 'class-variance-authority';
4
+ export interface AlertDialogContentProps extends VariantProps<typeof alertDialogContentVariants> {
5
+ }
6
+ export declare const alertDialogContentVariants: (props?: ({
7
+ size?: "small" | "medium" | "large" | "x-large" | null | undefined;
8
+ scaling?: "90%" | "95%" | "100%" | "105%" | "110%" | null | undefined;
9
+ radius?: "none" | "small" | "medium" | "large" | "full" | null | undefined;
10
+ } & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
11
+ export declare const AlertDialogContent: React.ForwardRefExoticComponent<Omit<AlertDialogPrimitive.AlertDialogContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & AlertDialogContentProps & React.RefAttributes<HTMLDivElement>>;
@@ -0,0 +1,53 @@
1
+ var __assign = (this && this.__assign) || function () {
2
+ __assign = Object.assign || function(t) {
3
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
4
+ s = arguments[i];
5
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
6
+ t[p] = s[p];
7
+ }
8
+ return t;
9
+ };
10
+ return __assign.apply(this, arguments);
11
+ };
12
+ var __rest = (this && this.__rest) || function (s, e) {
13
+ var t = {};
14
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
15
+ t[p] = s[p];
16
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
17
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
18
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
19
+ t[p[i]] = s[p[i]];
20
+ }
21
+ return t;
22
+ };
23
+ import React, { forwardRef } from 'react';
24
+ import * as AlertDialogPrimitive from '@radix-ui/react-alert-dialog';
25
+ import { cva } from 'class-variance-authority';
26
+ import { cn } from 'utils/utils';
27
+ import { radiusVariants, scalingVariants } from '../../constants';
28
+ export var alertDialogContentVariants = cva("fixed max-h-[85vh] top-[50%] left-[50%] focus:outline-none\n translate-x-[-50%] translate-y-[-50%] data-[state=open]:animate-contentShow bg-white dark:bg-slateDark-1 \n shadow-[hsl(206_22%_7%_/_35%)_0px_10px_38px_-10px,_hsl(206_22%_7%_/_20%)_0px_10px_20px_-15px]", {
29
+ variants: {
30
+ size: {
31
+ small: 'p-3 w-[300px]',
32
+ medium: 'p-4 w-[400px]',
33
+ large: 'p-5 w-[500px]',
34
+ 'x-large': 'p-6 w-[600px]',
35
+ },
36
+ scaling: __assign({}, scalingVariants),
37
+ radius: __assign({}, radiusVariants['extra-large']),
38
+ },
39
+ defaultVariants: {
40
+ radius: 'large',
41
+ size: 'large',
42
+ },
43
+ });
44
+ export var AlertDialogContent = forwardRef(function (_a, ref) {
45
+ var className = _a.className, children = _a.children, radius = _a.radius, size = _a.size, scaling = _a.scaling, props = __rest(_a, ["className", "children", "radius", "size", "scaling"]);
46
+ return (<AlertDialogPrimitive.Portal>
47
+ <AlertDialogPrimitive.Overlay className="fixed data-[state=open]:animate-overlayShow inset-0"/>
48
+ <AlertDialogPrimitive.Content className={cn(alertDialogContentVariants({ radius: radius, size: size, scaling: scaling }), className)} ref={ref} {...props}>
49
+ {children}
50
+ </AlertDialogPrimitive.Content>
51
+ </AlertDialogPrimitive.Portal>);
52
+ });
53
+ AlertDialogContent.displayName = 'AlertDialogContent';
@@ -0,0 +1,10 @@
1
+ import React from 'react';
2
+ import * as AlertDialogPrimitive from '@radix-ui/react-alert-dialog';
3
+ import { VariantProps } from 'class-variance-authority';
4
+ export interface AlertDialogDescriptionProps extends VariantProps<typeof alertDialogDescriptionVariants> {
5
+ contentText?: string;
6
+ }
7
+ export declare const alertDialogDescriptionVariants: (props?: ({
8
+ size?: "small" | "medium" | "large" | "x-large" | null | undefined;
9
+ } & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
10
+ export declare const AlertDialogDescription: React.ForwardRefExoticComponent<Omit<AlertDialogPrimitive.AlertDialogDescriptionProps & React.RefAttributes<HTMLParagraphElement>, "ref"> & AlertDialogDescriptionProps & React.RefAttributes<HTMLParagraphElement>>;
@@ -0,0 +1,35 @@
1
+ var __rest = (this && this.__rest) || function (s, e) {
2
+ var t = {};
3
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
4
+ t[p] = s[p];
5
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
6
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
7
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
8
+ t[p[i]] = s[p[i]];
9
+ }
10
+ return t;
11
+ };
12
+ import React, { forwardRef } from 'react';
13
+ import * as AlertDialogPrimitive from '@radix-ui/react-alert-dialog';
14
+ import { cva } from 'class-variance-authority';
15
+ import { cn } from 'utils/utils';
16
+ export var alertDialogDescriptionVariants = cva("text-slate-12 dark:text-slateDark-12 font-normal", {
17
+ variants: {
18
+ size: {
19
+ small: 'text-xs mb-3',
20
+ medium: 'text-sm mb-4',
21
+ large: 'text-base mb-5',
22
+ 'x-large': 'text-lg mb-6',
23
+ },
24
+ },
25
+ defaultVariants: {
26
+ size: 'medium',
27
+ },
28
+ });
29
+ export var AlertDialogDescription = forwardRef(function (_a, ref) {
30
+ var className = _a.className, children = _a.children, size = _a.size, contentText = _a.contentText, props = __rest(_a, ["className", "children", "size", "contentText"]);
31
+ return (<AlertDialogPrimitive.Description className={cn(alertDialogDescriptionVariants({ size: size }), className)} ref={ref} {...props}>
32
+ {contentText !== null && contentText !== void 0 ? contentText : children}
33
+ </AlertDialogPrimitive.Description>);
34
+ });
35
+ AlertDialogDescription.displayName = 'AlertDialogDescription';
@@ -0,0 +1,10 @@
1
+ import React from 'react';
2
+ import * as AlertDialogPrimitive from '@radix-ui/react-alert-dialog';
3
+ import { VariantProps } from 'class-variance-authority';
4
+ export interface AlertDialogTitleProps extends VariantProps<typeof alertDialogTitleVariants> {
5
+ titleText?: string;
6
+ }
7
+ export declare const alertDialogTitleVariants: (props?: ({
8
+ size?: "small" | "medium" | "large" | "x-large" | null | undefined;
9
+ } & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
10
+ export declare const AlertDialogTitle: React.ForwardRefExoticComponent<Omit<AlertDialogPrimitive.AlertDialogTitleProps & React.RefAttributes<HTMLHeadingElement>, "ref"> & AlertDialogTitleProps & React.RefAttributes<HTMLHeadingElement>>;
@@ -0,0 +1,35 @@
1
+ var __rest = (this && this.__rest) || function (s, e) {
2
+ var t = {};
3
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
4
+ t[p] = s[p];
5
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
6
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
7
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
8
+ t[p[i]] = s[p[i]];
9
+ }
10
+ return t;
11
+ };
12
+ import React, { forwardRef } from 'react';
13
+ import * as AlertDialogPrimitive from '@radix-ui/react-alert-dialog';
14
+ import { cva } from 'class-variance-authority';
15
+ import { cn } from 'utils/utils';
16
+ export var alertDialogTitleVariants = cva("m-0 text-slate-12 dark:text-slateDark-12 font-bold", {
17
+ variants: {
18
+ size: {
19
+ small: 'text-sm mb-1',
20
+ medium: 'text-lg mb-2',
21
+ large: 'text-xl mb-3',
22
+ 'x-large': 'text-2xl mb-4',
23
+ },
24
+ },
25
+ defaultVariants: {
26
+ size: 'large',
27
+ },
28
+ });
29
+ export var AlertDialogTitle = forwardRef(function (_a, ref) {
30
+ var className = _a.className, children = _a.children, size = _a.size, titleText = _a.titleText, props = __rest(_a, ["className", "children", "size", "titleText"]);
31
+ return (<AlertDialogPrimitive.Title className={cn(alertDialogTitleVariants({ size: size }), className)} ref={ref} {...props}>
32
+ {titleText !== null && titleText !== void 0 ? titleText : children}
33
+ </AlertDialogPrimitive.Title>);
34
+ });
35
+ AlertDialogTitle.displayName = 'AlertDialogTitle';
@@ -0,0 +1,17 @@
1
+ import React from 'react';
2
+ import * as AlertDialogPrimitive from '@radix-ui/react-alert-dialog';
3
+ import { VariantProps } from 'class-variance-authority';
4
+ import { IAppearance, IColor } from 'types';
5
+ export interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof buttonVariants> {
6
+ color?: IColor;
7
+ appearance?: IAppearance;
8
+ }
9
+ declare const buttonVariants: (props?: ({
10
+ radius?: "none" | "small" | "medium" | "large" | "full" | null | undefined;
11
+ size?: "small" | "medium" | "large" | "x-large" | null | undefined;
12
+ scaling?: "90%" | "95%" | "100%" | "105%" | "110%" | null | undefined;
13
+ weight?: "medium" | "regular" | "semibold" | "bold" | null | undefined;
14
+ color?: string | null | undefined;
15
+ } & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
16
+ export declare const AlertDialogTrigger: React.ForwardRefExoticComponent<Omit<AlertDialogPrimitive.AlertDialogTriggerProps & React.RefAttributes<HTMLButtonElement>, "ref"> & ButtonProps & React.RefAttributes<HTMLButtonElement>>;
17
+ export {};
@@ -0,0 +1,56 @@
1
+ var __assign = (this && this.__assign) || function () {
2
+ __assign = Object.assign || function(t) {
3
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
4
+ s = arguments[i];
5
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
6
+ t[p] = s[p];
7
+ }
8
+ return t;
9
+ };
10
+ return __assign.apply(this, arguments);
11
+ };
12
+ var __rest = (this && this.__rest) || function (s, e) {
13
+ var t = {};
14
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
15
+ t[p] = s[p];
16
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
17
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
18
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
19
+ t[p[i]] = s[p[i]];
20
+ }
21
+ return t;
22
+ };
23
+ import React, { forwardRef } from 'react';
24
+ import * as AlertDialogPrimitive from '@radix-ui/react-alert-dialog';
25
+ import { cva } from 'class-variance-authority';
26
+ import { radiusVariants, scalingVariants, weightVariants, primaryColorStyle, appearanceStyle, } from '../../constants';
27
+ import { cn } from 'utils/utils';
28
+ var buttonVariants = cva("inline-flex items-center transition-colors focus:outline-none hover:cursor-pointer\n disabled:cursor-not-allowed disabled:bg-slate-3 disabled:text-slate-8", {
29
+ variants: {
30
+ radius: __assign({}, radiusVariants['base']),
31
+ size: {
32
+ small: 'text-xs h-[24px] px-2',
33
+ medium: 'text-sm h-[32px] px-3',
34
+ large: 'text-base h-[40px] px-4',
35
+ 'x-large': 'text-lg h-[48px] px-6',
36
+ },
37
+ scaling: __assign({}, scalingVariants),
38
+ weight: __assign({}, weightVariants),
39
+ color: primaryColorStyle(),
40
+ },
41
+ defaultVariants: {
42
+ radius: 'large',
43
+ scaling: '100%',
44
+ weight: 'medium',
45
+ color: 'red',
46
+ size: 'large',
47
+ },
48
+ });
49
+ export var AlertDialogTrigger = forwardRef(function (_a, ref) {
50
+ var children = _a.children, className = _a.className, radius = _a.radius, scaling = _a.scaling, size = _a.size, weight = _a.weight, _b = _a.color, color = _b === void 0 ? 'red' : _b, _c = _a.appearance, appearance = _c === void 0 ? 'solid' : _c, props = __rest(_a, ["children", "className", "radius", "scaling", "size", "weight", "color", "appearance"]);
51
+ var buttonClassName = cn(buttonVariants({ radius: radius, scaling: scaling, size: size, weight: weight, color: color }), appearanceStyle(appearance, color), className);
52
+ return (<AlertDialogPrimitive.Trigger asChild ref={ref} className={buttonClassName} {...props}>
53
+ {children}
54
+ </AlertDialogPrimitive.Trigger>);
55
+ });
56
+ AlertDialogTrigger.displayName = 'AlertDialogTrigger';
@@ -0,0 +1,20 @@
1
+ import React from 'react';
2
+ import * as AlertDialogPrimitive from '@radix-ui/react-alert-dialog';
3
+ import { VariantProps } from 'class-variance-authority';
4
+ import { alertDialogContentVariants } from './AlertDialogContent';
5
+ import { alertDialogTitleVariants } from './AlertDialogTitle';
6
+ import { alertDialogDescriptionVariants } from './AlertDialogDescription';
7
+ import { IColor } from 'types';
8
+ export * from './AlertDialogTrigger';
9
+ export * from './AlertDialogContent';
10
+ export * from './AlertDialogTitle';
11
+ export * from './AlertDialogDescription';
12
+ export * from './AlertDialogCancel';
13
+ export * from './AlertDialogAction';
14
+ export interface AlertDialogProps extends VariantProps<typeof alertDialogContentVariants>, VariantProps<typeof alertDialogTitleVariants>, VariantProps<typeof alertDialogDescriptionVariants> {
15
+ titleText?: string;
16
+ contentText?: string;
17
+ color?: IColor;
18
+ }
19
+ export declare const AlertDialog: React.ForwardRefExoticComponent<AlertDialogPrimitive.AlertDialogProps & AlertDialogProps & React.RefAttributes<never>>;
20
+ export default AlertDialog;