@taicode/common-web 3.1.0 → 3.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 (340) hide show
  1. package/output/components/alert-dialog.d.ts +20 -0
  2. package/output/components/alert-dialog.d.ts.map +1 -0
  3. package/output/components/alert-dialog.js +65 -0
  4. package/output/components/alert.d.ts +11 -0
  5. package/output/components/alert.d.ts.map +1 -0
  6. package/output/components/alert.js +38 -0
  7. package/output/components/avatar.d.ts +13 -0
  8. package/output/components/avatar.d.ts.map +1 -0
  9. package/output/components/avatar.js +40 -0
  10. package/output/components/badge.d.ts +10 -0
  11. package/output/components/badge.d.ts.map +1 -0
  12. package/output/components/badge.js +31 -0
  13. package/output/components/button.d.ts +12 -0
  14. package/output/components/button.d.ts.map +1 -0
  15. package/output/components/button.js +44 -0
  16. package/output/components/card.d.ts +8 -0
  17. package/output/components/card.d.ts.map +1 -0
  18. package/output/components/card.js +38 -0
  19. package/output/components/checkbox.d.ts +5 -0
  20. package/output/components/checkbox.d.ts.map +1 -0
  21. package/output/components/checkbox.js +21 -0
  22. package/output/components/command.d.ts +20 -0
  23. package/output/components/command.d.ts.map +1 -0
  24. package/output/components/command.js +55 -0
  25. package/output/components/dialog.d.ts +20 -0
  26. package/output/components/dialog.d.ts.map +1 -0
  27. package/output/components/dialog.js +58 -0
  28. package/output/components/direction.d.ts +9 -0
  29. package/output/components/direction.d.ts.map +1 -0
  30. package/output/components/direction.js +10 -0
  31. package/output/components/dropdown-menu.d.ts +29 -0
  32. package/output/components/dropdown-menu.d.ts.map +1 -0
  33. package/output/components/dropdown-menu.js +78 -0
  34. package/output/components/field.d.ts +39 -0
  35. package/output/components/field.d.ts.map +1 -0
  36. package/output/components/field.js +102 -0
  37. package/output/components/index.d.ts +36 -0
  38. package/output/components/index.d.ts.map +1 -0
  39. package/output/components/index.js +35 -0
  40. package/output/components/input-group.d.ts +17 -0
  41. package/output/components/input-group.d.ts.map +1 -0
  42. package/output/components/input-group.js +75 -0
  43. package/output/components/input.d.ts +3 -0
  44. package/output/components/input.d.ts.map +1 -0
  45. package/output/components/input.js +19 -0
  46. package/output/components/item.d.ts +25 -0
  47. package/output/components/item.d.ts.map +1 -0
  48. package/output/components/item.js +89 -0
  49. package/output/components/json-view/index.d.ts +11 -0
  50. package/output/components/json-view/index.d.ts.map +1 -0
  51. package/output/components/json-view/index.js +52 -0
  52. package/output/components/kbd.d.ts +4 -0
  53. package/output/components/kbd.d.ts.map +1 -0
  54. package/output/components/kbd.js +22 -0
  55. package/output/components/label.d.ts +5 -0
  56. package/output/components/label.d.ts.map +1 -0
  57. package/output/components/label.js +20 -0
  58. package/output/components/loading-button/index.d.ts.map +1 -0
  59. package/output/{loading-button → components/loading-button}/index.js +2 -6
  60. package/output/components/loading-button/index.test.d.ts.map +1 -0
  61. package/output/{loading-button → components/loading-button}/index.test.js +3 -3
  62. package/output/components/native-select.d.ts +9 -0
  63. package/output/components/native-select.d.ts.map +1 -0
  64. package/output/components/native-select.js +28 -0
  65. package/output/components/page-state.d.ts +19 -0
  66. package/output/components/page-state.d.ts.map +1 -0
  67. package/output/components/page-state.js +13 -0
  68. package/output/components/popover.d.ts +11 -0
  69. package/output/components/popover.d.ts.map +1 -0
  70. package/output/components/popover.js +44 -0
  71. package/output/components/progress.d.ts +5 -0
  72. package/output/components/progress.d.ts.map +1 -0
  73. package/output/components/progress.js +21 -0
  74. package/output/components/radio-group.d.ts +6 -0
  75. package/output/components/radio-group.d.ts.map +1 -0
  76. package/output/components/radio-group.js +25 -0
  77. package/output/components/scroll-area.d.ts +6 -0
  78. package/output/components/scroll-area.d.ts.map +1 -0
  79. package/output/components/scroll-area.js +24 -0
  80. package/output/components/select.d.ts +17 -0
  81. package/output/components/select.d.ts.map +1 -0
  82. package/output/components/select.js +58 -0
  83. package/output/components/separator.d.ts +6 -0
  84. package/output/components/separator.d.ts.map +1 -0
  85. package/output/components/separator.js +19 -0
  86. package/output/components/sheet.d.ts +16 -0
  87. package/output/components/sheet.d.ts.map +1 -0
  88. package/output/components/sheet.js +58 -0
  89. package/output/components/size-provider/index.d.ts.map +1 -0
  90. package/output/components/size-provider/size-provider.d.ts.map +1 -0
  91. package/output/components/skeleton.d.ts +3 -0
  92. package/output/components/skeleton.d.ts.map +1 -0
  93. package/output/{catalyst/divider.js → components/skeleton.js} +4 -4
  94. package/output/components/sonner.d.ts +8 -0
  95. package/output/components/sonner.d.ts.map +1 -0
  96. package/output/components/sonner.js +34 -0
  97. package/output/components/spinner.d.ts +3 -0
  98. package/output/components/spinner.d.ts.map +1 -0
  99. package/output/components/spinner.js +19 -0
  100. package/output/components/switch.d.ts +8 -0
  101. package/output/components/switch.d.ts.map +1 -0
  102. package/output/components/switch.js +20 -0
  103. package/output/components/table.d.ts +11 -0
  104. package/output/components/table.d.ts.map +1 -0
  105. package/output/components/table.js +47 -0
  106. package/output/components/tabs.d.ts +12 -0
  107. package/output/components/tabs.d.ts.map +1 -0
  108. package/output/components/tabs.js +45 -0
  109. package/output/components/textarea.d.ts +4 -0
  110. package/output/components/textarea.d.ts.map +1 -0
  111. package/output/components/textarea.js +19 -0
  112. package/output/components/theme-switcher.d.ts +6 -0
  113. package/output/components/theme-switcher.d.ts.map +1 -0
  114. package/output/components/theme-switcher.js +19 -0
  115. package/output/{toaster → components/toaster}/index.d.ts +1 -1
  116. package/output/components/toaster/index.d.ts.map +1 -0
  117. package/output/components/tooltip.d.ts +8 -0
  118. package/output/components/tooltip.d.ts.map +1 -0
  119. package/output/components/tooltip.js +33 -0
  120. package/output/features/confirm-dialog/index.d.ts +39 -0
  121. package/output/features/confirm-dialog/index.d.ts.map +1 -0
  122. package/output/features/confirm-dialog/index.js +19 -0
  123. package/output/features/input-confirm/index.d.ts +26 -0
  124. package/output/features/input-confirm/index.d.ts.map +1 -0
  125. package/output/features/input-confirm/index.js +59 -0
  126. package/output/features/signin/context.d.ts.map +1 -0
  127. package/output/{signin → features/signin}/index.d.ts +1 -1
  128. package/output/features/signin/index.d.ts.map +1 -0
  129. package/output/{signin → features/signin}/index.js +1 -1
  130. package/output/features/signin/service.d.ts.map +1 -0
  131. package/output/features/signin/service.test.d.ts.map +1 -0
  132. package/output/features/signin/types.d.ts.map +1 -0
  133. package/output/hooks/use-loading/index.d.ts +6 -0
  134. package/output/hooks/use-loading/index.d.ts.map +1 -0
  135. package/output/hooks/use-loading/index.js +14 -0
  136. package/output/hooks/use-loading/index.test.d.ts +2 -0
  137. package/output/hooks/use-loading/index.test.d.ts.map +1 -0
  138. package/output/hooks/use-loading/index.test.js +24 -0
  139. package/output/hooks/use-mobile/index.d.ts +2 -0
  140. package/output/hooks/use-mobile/index.d.ts.map +1 -0
  141. package/output/hooks/use-mobile/index.js +16 -0
  142. package/output/hooks/use-observer/index.d.ts.map +1 -0
  143. package/output/hooks/use-observer/use-observer.d.ts.map +1 -0
  144. package/output/hooks/use-observer/use-observer.test.d.ts.map +1 -0
  145. package/output/hooks/use-offline/index.d.ts +6 -0
  146. package/output/hooks/use-offline/index.d.ts.map +1 -0
  147. package/output/hooks/use-offline/index.js +19 -0
  148. package/output/layout/app/index.d.ts +34 -0
  149. package/output/layout/app/index.d.ts.map +1 -0
  150. package/output/layout/app/index.js +34 -0
  151. package/output/layout/dashboard/index.d.ts +58 -0
  152. package/output/layout/dashboard/index.d.ts.map +1 -0
  153. package/output/layout/dashboard/index.js +71 -0
  154. package/output/layout/index.d.ts +3 -0
  155. package/output/layout/index.d.ts.map +1 -0
  156. package/output/layout/index.js +2 -0
  157. package/output/services/cache-api/cache-api.d.ts.map +1 -0
  158. package/output/services/cache-api/cache-api.test.d.ts.map +1 -0
  159. package/output/services/cache-api/index.d.ts.map +1 -0
  160. package/output/services/service/index.d.ts.map +1 -0
  161. package/output/services/service/service.d.ts +135 -0
  162. package/output/services/service/service.d.ts.map +1 -0
  163. package/output/services/service/service.js +276 -0
  164. package/output/services/service/service.test.d.ts.map +1 -0
  165. package/output/{service → services/service}/service.test.js +0 -1
  166. package/output/services/side-cache/index.d.ts.map +1 -0
  167. package/output/services/side-cache/side-cache.d.ts.map +1 -0
  168. package/output/services/side-cache/side-cache.test.d.ts.map +1 -0
  169. package/output/utils/avatar/index.d.ts +28 -0
  170. package/output/utils/avatar/index.d.ts.map +1 -0
  171. package/output/utils/avatar/index.js +35 -0
  172. package/output/utils/delay/index.d.ts +2 -0
  173. package/output/utils/delay/index.d.ts.map +1 -0
  174. package/output/utils/delay/index.js +5 -0
  175. package/output/utils/form/index.d.ts +3 -0
  176. package/output/utils/form/index.d.ts.map +1 -0
  177. package/output/utils/form/index.js +1 -0
  178. package/output/utils/merge-class-names/index.d.ts +3 -0
  179. package/output/utils/merge-class-names/index.d.ts.map +1 -0
  180. package/output/utils/merge-class-names/index.js +5 -0
  181. package/output/utils/merge-class-names/index.test.d.ts +2 -0
  182. package/output/utils/merge-class-names/index.test.d.ts.map +1 -0
  183. package/output/utils/merge-class-names/index.test.js +7 -0
  184. package/output/utils/performance/index.d.ts +82 -0
  185. package/output/utils/performance/index.d.ts.map +1 -0
  186. package/output/utils/performance/index.js +129 -0
  187. package/output/utils/redirect/index.d.ts +6 -0
  188. package/output/utils/redirect/index.d.ts.map +1 -0
  189. package/output/utils/redirect/index.js +32 -0
  190. package/package.json +71 -24
  191. package/styles.css +123 -0
  192. package/output/cache-api/cache-api.d.ts.map +0 -1
  193. package/output/cache-api/cache-api.test.d.ts.map +0 -1
  194. package/output/cache-api/index.d.ts.map +0 -1
  195. package/output/catalyst/alert.d.ts +0 -29
  196. package/output/catalyst/alert.d.ts.map +0 -1
  197. package/output/catalyst/alert.js +0 -46
  198. package/output/catalyst/auth-layout.d.ts +0 -5
  199. package/output/catalyst/auth-layout.d.ts.map +0 -1
  200. package/output/catalyst/auth-layout.js +0 -4
  201. package/output/catalyst/avatar.d.ts +0 -16
  202. package/output/catalyst/avatar.d.ts.map +0 -1
  203. package/output/catalyst/avatar.js +0 -30
  204. package/output/catalyst/badge.d.ts +0 -35
  205. package/output/catalyst/badge.d.ts.map +0 -1
  206. package/output/catalyst/badge.js +0 -46
  207. package/output/catalyst/button.d.ts +0 -59
  208. package/output/catalyst/button.d.ts.map +0 -1
  209. package/output/catalyst/button.js +0 -181
  210. package/output/catalyst/checkbox.d.ts +0 -37
  211. package/output/catalyst/checkbox.d.ts.map +0 -1
  212. package/output/catalyst/checkbox.js +0 -97
  213. package/output/catalyst/combobox.d.ts +0 -20
  214. package/output/catalyst/combobox.d.ts.map +0 -1
  215. package/output/catalyst/combobox.js +0 -101
  216. package/output/catalyst/description-list.d.ts +0 -4
  217. package/output/catalyst/description-list.d.ts.map +0 -1
  218. package/output/catalyst/description-list.js +0 -25
  219. package/output/catalyst/dialog.d.ts +0 -29
  220. package/output/catalyst/dialog.d.ts.map +0 -1
  221. package/output/catalyst/dialog.js +0 -46
  222. package/output/catalyst/divider.d.ts +0 -4
  223. package/output/catalyst/divider.d.ts.map +0 -1
  224. package/output/catalyst/dropdown.d.ts +0 -33
  225. package/output/catalyst/dropdown.d.ts.map +0 -1
  226. package/output/catalyst/dropdown.js +0 -99
  227. package/output/catalyst/fieldset.d.ts +0 -22
  228. package/output/catalyst/fieldset.d.ts.map +0 -1
  229. package/output/catalyst/fieldset.js +0 -42
  230. package/output/catalyst/heading.d.ts +0 -7
  231. package/output/catalyst/heading.d.ts.map +0 -1
  232. package/output/catalyst/heading.js +0 -23
  233. package/output/catalyst/input.d.ts +0 -11
  234. package/output/catalyst/input.d.ts.map +0 -1
  235. package/output/catalyst/input.js +0 -70
  236. package/output/catalyst/link.d.ts +0 -13
  237. package/output/catalyst/link.d.ts.map +0 -1
  238. package/output/catalyst/link.js +0 -37
  239. package/output/catalyst/listbox.d.ts +0 -16
  240. package/output/catalyst/listbox.d.ts.map +0 -1
  241. package/output/catalyst/listbox.js +0 -99
  242. package/output/catalyst/navbar.d.ts +0 -16
  243. package/output/catalyst/navbar.d.ts.map +0 -1
  244. package/output/catalyst/navbar.js +0 -59
  245. package/output/catalyst/pagination.d.ts +0 -18
  246. package/output/catalyst/pagination.d.ts.map +0 -1
  247. package/output/catalyst/pagination.js +0 -35
  248. package/output/catalyst/radio.d.ts +0 -38
  249. package/output/catalyst/radio.d.ts.map +0 -1
  250. package/output/catalyst/radio.js +0 -100
  251. package/output/catalyst/select.d.ts +0 -6
  252. package/output/catalyst/select.d.ts.map +0 -1
  253. package/output/catalyst/select.js +0 -52
  254. package/output/catalyst/sidebar-layout.d.ts +0 -6
  255. package/output/catalyst/sidebar-layout.d.ts.map +0 -1
  256. package/output/catalyst/sidebar-layout.js +0 -18
  257. package/output/catalyst/sidebar.d.ts +0 -20
  258. package/output/catalyst/sidebar.d.ts.map +0 -1
  259. package/output/catalyst/sidebar.js +0 -77
  260. package/output/catalyst/stacked-layout.d.ts +0 -6
  261. package/output/catalyst/stacked-layout.d.ts.map +0 -1
  262. package/output/catalyst/stacked-layout.js +0 -18
  263. package/output/catalyst/switch.d.ts +0 -37
  264. package/output/catalyst/switch.d.ts.map +0 -1
  265. package/output/catalyst/switch.js +0 -160
  266. package/output/catalyst/table.d.ts +0 -17
  267. package/output/catalyst/table.d.ts.map +0 -1
  268. package/output/catalyst/table.js +0 -56
  269. package/output/catalyst/text.d.ts +0 -6
  270. package/output/catalyst/text.d.ts.map +0 -1
  271. package/output/catalyst/text.js +0 -30
  272. package/output/catalyst/textarea.d.ts +0 -7
  273. package/output/catalyst/textarea.d.ts.map +0 -1
  274. package/output/catalyst/textarea.js +0 -48
  275. package/output/catalyst-config/catalyst-config.d.ts +0 -14
  276. package/output/catalyst-config/catalyst-config.d.ts.map +0 -1
  277. package/output/catalyst-config/catalyst-config.js +0 -14
  278. package/output/catalyst-config/index.d.ts +0 -3
  279. package/output/catalyst-config/index.d.ts.map +0 -1
  280. package/output/catalyst-config/index.js +0 -1
  281. package/output/loading-button/LoadingButtonDemo.d.ts +0 -5
  282. package/output/loading-button/LoadingButtonDemo.d.ts.map +0 -1
  283. package/output/loading-button/LoadingButtonDemo.js +0 -33
  284. package/output/loading-button/index.d.ts.map +0 -1
  285. package/output/loading-button/index.test.d.ts.map +0 -1
  286. package/output/service/index.d.ts.map +0 -1
  287. package/output/service/service.d.ts +0 -286
  288. package/output/service/service.d.ts.map +0 -1
  289. package/output/service/service.js +0 -352
  290. package/output/service/service.test.d.ts.map +0 -1
  291. package/output/side-cache/index.d.ts.map +0 -1
  292. package/output/side-cache/side-cache.d.ts.map +0 -1
  293. package/output/side-cache/side-cache.test.d.ts.map +0 -1
  294. package/output/signin/context.d.ts.map +0 -1
  295. package/output/signin/index.d.ts.map +0 -1
  296. package/output/signin/service.d.ts.map +0 -1
  297. package/output/signin/service.test.d.ts.map +0 -1
  298. package/output/signin/types.d.ts.map +0 -1
  299. package/output/size-provider/index.d.ts.map +0 -1
  300. package/output/size-provider/size-provider.d.ts.map +0 -1
  301. package/output/toaster/index.d.ts.map +0 -1
  302. package/output/use-observer/index.d.ts.map +0 -1
  303. package/output/use-observer/use-observer.d.ts.map +0 -1
  304. package/output/use-observer/use-observer.test.d.ts.map +0 -1
  305. /package/output/{loading-button → components/loading-button}/index.d.ts +0 -0
  306. /package/output/{loading-button → components/loading-button}/index.test.d.ts +0 -0
  307. /package/output/{size-provider → components/size-provider}/index.d.ts +0 -0
  308. /package/output/{size-provider → components/size-provider}/index.js +0 -0
  309. /package/output/{size-provider → components/size-provider}/size-provider.d.ts +0 -0
  310. /package/output/{size-provider → components/size-provider}/size-provider.js +0 -0
  311. /package/output/{toaster → components/toaster}/index.js +0 -0
  312. /package/output/{signin → features/signin}/context.d.ts +0 -0
  313. /package/output/{signin → features/signin}/context.js +0 -0
  314. /package/output/{signin → features/signin}/service.d.ts +0 -0
  315. /package/output/{signin → features/signin}/service.js +0 -0
  316. /package/output/{service → features/signin}/service.test.d.ts +0 -0
  317. /package/output/{signin → features/signin}/service.test.js +0 -0
  318. /package/output/{signin → features/signin}/types.d.ts +0 -0
  319. /package/output/{signin → features/signin}/types.js +0 -0
  320. /package/output/{use-observer → hooks/use-observer}/index.d.ts +0 -0
  321. /package/output/{use-observer → hooks/use-observer}/index.js +0 -0
  322. /package/output/{use-observer → hooks/use-observer}/use-observer.d.ts +0 -0
  323. /package/output/{use-observer → hooks/use-observer}/use-observer.js +0 -0
  324. /package/output/{use-observer → hooks/use-observer}/use-observer.test.d.ts +0 -0
  325. /package/output/{use-observer → hooks/use-observer}/use-observer.test.js +0 -0
  326. /package/output/{cache-api → services/cache-api}/cache-api.d.ts +0 -0
  327. /package/output/{cache-api → services/cache-api}/cache-api.js +0 -0
  328. /package/output/{cache-api → services/cache-api}/cache-api.test.d.ts +0 -0
  329. /package/output/{cache-api → services/cache-api}/cache-api.test.js +0 -0
  330. /package/output/{cache-api → services/cache-api}/index.d.ts +0 -0
  331. /package/output/{cache-api → services/cache-api}/index.js +0 -0
  332. /package/output/{service → services/service}/index.d.ts +0 -0
  333. /package/output/{service → services/service}/index.js +0 -0
  334. /package/output/{signin → services/service}/service.test.d.ts +0 -0
  335. /package/output/{side-cache → services/side-cache}/index.d.ts +0 -0
  336. /package/output/{side-cache → services/side-cache}/index.js +0 -0
  337. /package/output/{side-cache → services/side-cache}/side-cache.d.ts +0 -0
  338. /package/output/{side-cache → services/side-cache}/side-cache.js +0 -0
  339. /package/output/{side-cache → services/side-cache}/side-cache.test.d.ts +0 -0
  340. /package/output/{side-cache → services/side-cache}/side-cache.test.js +0 -0
@@ -0,0 +1,20 @@
1
+ import * as React from 'react';
2
+ import { AlertDialog as AlertDialogPrimitive } from 'radix-ui';
3
+ import { Button } from './button.js';
4
+ type AlertDialogContentParams = {
5
+ size?: 'default' | 'sm';
6
+ };
7
+ declare function AlertDialog(params: React.ComponentProps<typeof AlertDialogPrimitive.Root>): React.JSX.Element;
8
+ declare function AlertDialogTrigger(params: React.ComponentProps<typeof AlertDialogPrimitive.Trigger>): React.JSX.Element;
9
+ declare function AlertDialogPortal(params: React.ComponentProps<typeof AlertDialogPrimitive.Portal>): React.JSX.Element;
10
+ declare function AlertDialogOverlay(params: React.ComponentProps<typeof AlertDialogPrimitive.Overlay>): React.JSX.Element;
11
+ declare function AlertDialogContent(params: React.ComponentProps<typeof AlertDialogPrimitive.Content> & AlertDialogContentParams): React.JSX.Element;
12
+ declare function AlertDialogHeader(params: React.ComponentProps<'div'>): React.JSX.Element;
13
+ declare function AlertDialogFooter(params: React.ComponentProps<'div'>): React.JSX.Element;
14
+ declare function AlertDialogMedia(params: React.ComponentProps<'div'>): React.JSX.Element;
15
+ declare function AlertDialogTitle(params: React.ComponentProps<typeof AlertDialogPrimitive.Title>): React.JSX.Element;
16
+ declare function AlertDialogDescription(params: React.ComponentProps<typeof AlertDialogPrimitive.Description>): React.JSX.Element;
17
+ declare function AlertDialogAction(params: React.ComponentProps<typeof AlertDialogPrimitive.Action> & Pick<React.ComponentProps<typeof Button>, 'variant' | 'size'>): React.JSX.Element;
18
+ declare function AlertDialogCancel(params: React.ComponentProps<typeof AlertDialogPrimitive.Cancel> & Pick<React.ComponentProps<typeof Button>, 'variant' | 'size'>): React.JSX.Element;
19
+ export { AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogMedia, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, };
20
+ //# sourceMappingURL=alert-dialog.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"alert-dialog.d.ts","sourceRoot":"","sources":["../../source/components/alert-dialog.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAC9B,OAAO,EAAE,WAAW,IAAI,oBAAoB,EAAE,MAAM,UAAU,CAAA;AAG9D,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAA;AAEpC,KAAK,wBAAwB,GAAG;IAC9B,IAAI,CAAC,EAAE,SAAS,GAAG,IAAI,CAAA;CACxB,CAAA;AAED,iBAAS,WAAW,CAAC,MAAM,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,oBAAoB,CAAC,IAAI,CAAC,qBAKlF;AAED,iBAAS,kBAAkB,CAAC,MAAM,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,oBAAoB,CAAC,OAAO,CAAC,qBAO5F;AAED,iBAAS,iBAAiB,CAAC,MAAM,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,oBAAoB,CAAC,MAAM,CAAC,qBAO1F;AAED,iBAAS,kBAAkB,CAAC,MAAM,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,oBAAoB,CAAC,OAAO,CAAC,qBAY5F;AAED,iBAAS,kBAAkB,CAAC,MAAM,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,oBAAoB,CAAC,OAAO,CAAC,GAAG,wBAAwB,qBAoBvH;AAED,iBAAS,iBAAiB,CAAC,MAAM,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,qBAY7D;AAED,iBAAS,iBAAiB,CAAC,MAAM,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,qBAe7D;AAED,iBAAS,gBAAgB,CAAC,MAAM,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,qBAY5D;AAED,iBAAS,gBAAgB,CAAC,MAAM,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,oBAAoB,CAAC,KAAK,CAAC,qBAYxF;AAED,iBAAS,sBAAsB,CAAC,MAAM,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,oBAAoB,CAAC,WAAW,CAAC,qBAYpG;AAED,iBAAS,iBAAiB,CAAC,MAAM,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,oBAAoB,CAAC,MAAM,CAAC,GACzF,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,OAAO,MAAM,CAAC,EAAE,SAAS,GAAG,MAAM,CAAC,qBAgB9D;AAED,iBAAS,iBAAiB,CAAC,MAAM,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,oBAAoB,CAAC,MAAM,CAAC,GACzF,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,OAAO,MAAM,CAAC,EAAE,SAAS,GAAG,MAAM,CAAC,qBAgB9D;AAED,OAAO,EACL,WAAW,EACX,iBAAiB,EACjB,iBAAiB,EACjB,kBAAkB,EAClB,sBAAsB,EACtB,iBAAiB,EACjB,iBAAiB,EACjB,gBAAgB,EAChB,kBAAkB,EAClB,iBAAiB,EACjB,gBAAgB,EAChB,kBAAkB,GACnB,CAAA"}
@@ -0,0 +1,65 @@
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 { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
13
+ import * as React from 'react';
14
+ import { AlertDialog as AlertDialogPrimitive } from 'radix-ui';
15
+ import { mergeClassNames } from '../utils/merge-class-names/index.js';
16
+ import { Button } from './button.js';
17
+ function AlertDialog(params) {
18
+ const props = __rest(params, []);
19
+ return _jsx(AlertDialogPrimitive.Root, Object.assign({ "data-slot": "alert-dialog" }, props));
20
+ }
21
+ function AlertDialogTrigger(params) {
22
+ const props = __rest(params, []);
23
+ return (_jsx(AlertDialogPrimitive.Trigger, Object.assign({ "data-slot": "alert-dialog-trigger" }, props)));
24
+ }
25
+ function AlertDialogPortal(params) {
26
+ const props = __rest(params, []);
27
+ return (_jsx(AlertDialogPrimitive.Portal, Object.assign({ "data-slot": "alert-dialog-portal" }, props)));
28
+ }
29
+ function AlertDialogOverlay(params) {
30
+ const { className } = params, props = __rest(params, ["className"]);
31
+ return (_jsx(AlertDialogPrimitive.Overlay, Object.assign({ "data-slot": "alert-dialog-overlay", className: mergeClassNames('data-open:animate-in data-closed:animate-out data-closed:fade-out-0 data-open:fade-in-0 bg-black/10 duration-100 supports-backdrop-filter:backdrop-blur-xs fixed inset-0 z-50', className) }, props)));
32
+ }
33
+ function AlertDialogContent(params) {
34
+ const { className, size = 'default' } = params, props = __rest(params, ["className", "size"]);
35
+ return (_jsxs(AlertDialogPortal, { children: [_jsx(AlertDialogOverlay, {}), _jsx(AlertDialogPrimitive.Content, Object.assign({ "data-slot": "alert-dialog-content", "data-size": size, className: mergeClassNames('data-open:animate-in data-closed:animate-out data-closed:fade-out-0 data-open:fade-in-0 data-closed:zoom-out-95 data-open:zoom-in-95 bg-background ring-foreground/10 gap-6 rounded-xl p-6 ring-1 duration-100 data-[size=default]:max-w-xs data-[size=sm]:max-w-xs data-[size=default]:sm:max-w-lg group/alert-dialog-content fixed top-1/2 left-1/2 z-50 grid w-full -translate-x-1/2 -translate-y-1/2 outline-none', className) }, props))] }));
36
+ }
37
+ function AlertDialogHeader(params) {
38
+ const { className } = params, props = __rest(params, ["className"]);
39
+ return (_jsx("div", Object.assign({ "data-slot": "alert-dialog-header", className: mergeClassNames('grid grid-rows-[auto_1fr] place-items-center gap-1.5 text-center has-data-[slot=alert-dialog-media]:grid-rows-[auto_auto_1fr] has-data-[slot=alert-dialog-media]:gap-x-6 sm:group-data-[size=default]/alert-dialog-content:place-items-start sm:group-data-[size=default]/alert-dialog-content:text-left sm:group-data-[size=default]/alert-dialog-content:has-data-[slot=alert-dialog-media]:grid-rows-[auto_1fr]', className) }, props)));
40
+ }
41
+ function AlertDialogFooter(params) {
42
+ const { className } = params, props = __rest(params, ["className"]);
43
+ return (_jsx("div", Object.assign({ "data-slot": "alert-dialog-footer", className: mergeClassNames('flex flex-col-reverse gap-2 group-data-[size=sm]/alert-dialog-content:grid group-data-[size=sm]/alert-dialog-content:grid-cols-2 sm:flex-row sm:justify-end', className) }, props)));
44
+ }
45
+ function AlertDialogMedia(params) {
46
+ const { className } = params, props = __rest(params, ["className"]);
47
+ return (_jsx("div", Object.assign({ "data-slot": "alert-dialog-media", className: mergeClassNames("bg-muted mb-2 inline-flex size-16 items-center justify-center rounded-md sm:group-data-[size=default]/alert-dialog-content:row-span-2 *:[svg:not([class*='size-'])]:size-8", className) }, props)));
48
+ }
49
+ function AlertDialogTitle(params) {
50
+ const { className } = params, props = __rest(params, ["className"]);
51
+ return (_jsx(AlertDialogPrimitive.Title, Object.assign({ "data-slot": "alert-dialog-title", className: mergeClassNames('text-lg font-medium sm:group-data-[size=default]/alert-dialog-content:group-has-data-[slot=alert-dialog-media]/alert-dialog-content:col-start-2', className) }, props)));
52
+ }
53
+ function AlertDialogDescription(params) {
54
+ const { className } = params, props = __rest(params, ["className"]);
55
+ return (_jsx(AlertDialogPrimitive.Description, Object.assign({ "data-slot": "alert-dialog-description", className: mergeClassNames('text-muted-foreground *:[a]:hover:text-foreground text-sm text-balance md:text-pretty *:[a]:underline *:[a]:underline-offset-3', className) }, props)));
56
+ }
57
+ function AlertDialogAction(params) {
58
+ const { className, variant = 'default', size = 'default' } = params, props = __rest(params, ["className", "variant", "size"]);
59
+ return (_jsx(Button, { variant: variant, size: size, asChild: true, children: _jsx(AlertDialogPrimitive.Action, Object.assign({ "data-slot": "alert-dialog-action", className: mergeClassNames(className) }, props)) }));
60
+ }
61
+ function AlertDialogCancel(params) {
62
+ const { className, variant = 'outline', size = 'default' } = params, props = __rest(params, ["className", "variant", "size"]);
63
+ return (_jsx(Button, { variant: variant, size: size, asChild: true, children: _jsx(AlertDialogPrimitive.Cancel, Object.assign({ "data-slot": "alert-dialog-cancel", className: mergeClassNames(className) }, props)) }));
64
+ }
65
+ export { AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogMedia, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, };
@@ -0,0 +1,11 @@
1
+ import * as React from 'react';
2
+ import { type VariantProps } from 'class-variance-authority';
3
+ declare const alertVariants: (props?: ({
4
+ variant?: "default" | "destructive" | null | undefined;
5
+ } & import("class-variance-authority/types").ClassProp) | undefined) => string;
6
+ declare function Alert(params: React.ComponentProps<'div'> & VariantProps<typeof alertVariants>): React.JSX.Element;
7
+ declare function AlertTitle(params: React.ComponentProps<'div'>): React.JSX.Element;
8
+ declare function AlertDescription(params: React.ComponentProps<'div'>): React.JSX.Element;
9
+ declare function AlertAction(params: React.ComponentProps<'div'>): React.JSX.Element;
10
+ export { Alert, AlertTitle, AlertDescription, AlertAction };
11
+ //# sourceMappingURL=alert.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"alert.d.ts","sourceRoot":"","sources":["../../source/components/alert.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAC9B,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAA;AAIjE,QAAA,MAAM,aAAa;;8EAKjB,CAAA;AAEF,iBAAS,KAAK,CAAC,MAAM,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,GAAG,YAAY,CAAC,OAAO,aAAa,CAAC,qBAGtF;AAED,iBAAS,UAAU,CAAC,MAAM,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,qBAGtD;AAED,iBAAS,gBAAgB,CAAC,MAAM,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,qBAG5D;AAED,iBAAS,WAAW,CAAC,MAAM,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,qBAGvD;AAED,OAAO,EAAE,KAAK,EAAE,UAAU,EAAE,gBAAgB,EAAE,WAAW,EAAE,CAAA"}
@@ -0,0 +1,38 @@
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 { jsx as _jsx } from "react/jsx-runtime";
13
+ import * as React from 'react';
14
+ import { cva } from 'class-variance-authority';
15
+ import { mergeClassNames } from '../utils/merge-class-names/index.js';
16
+ const alertVariants = cva('grid gap-0.5 rounded-lg border px-4 py-3 text-left text-sm has-data-[slot=alert-action]:relative has-data-[slot=alert-action]:pr-18 has-[>svg]:grid-cols-[auto_1fr] has-[>svg]:gap-x-2.5 *:[svg]:row-span-2 *:[svg]:translate-y-0.5 *:[svg]:text-current *:[svg:not([class*="size-"])]:size-4 w-full relative group/alert', {
17
+ variants: {
18
+ variant: { default: 'bg-card text-card-foreground', destructive: 'text-destructive bg-card *:data-[slot=alert-description]:text-destructive/90 *:[svg]:text-current' },
19
+ },
20
+ defaultVariants: { variant: 'default' },
21
+ });
22
+ function Alert(params) {
23
+ const { className, variant } = params, props = __rest(params, ["className", "variant"]);
24
+ return _jsx("div", Object.assign({ "data-slot": "alert", role: "alert", className: mergeClassNames(alertVariants({ variant }), className) }, props));
25
+ }
26
+ function AlertTitle(params) {
27
+ const { className } = params, props = __rest(params, ["className"]);
28
+ return _jsx("div", Object.assign({ "data-slot": "alert-title", className: mergeClassNames('font-medium group-has-[>svg]/alert:col-start-2 [&_a]:hover:text-foreground [&_a]:underline [&_a]:underline-offset-3', className) }, props));
29
+ }
30
+ function AlertDescription(params) {
31
+ const { className } = params, props = __rest(params, ["className"]);
32
+ return _jsx("div", Object.assign({ "data-slot": "alert-description", className: mergeClassNames('text-muted-foreground text-sm text-balance md:text-pretty [&_p:not(:last-child)]:mb-4 [&_a]:hover:text-foreground [&_a]:underline [&_a]:underline-offset-3', className) }, props));
33
+ }
34
+ function AlertAction(params) {
35
+ const { className } = params, props = __rest(params, ["className"]);
36
+ return _jsx("div", Object.assign({ "data-slot": "alert-action", className: mergeClassNames('absolute top-2.5 right-3', className) }, props));
37
+ }
38
+ export { Alert, AlertTitle, AlertDescription, AlertAction };
@@ -0,0 +1,13 @@
1
+ import * as React from "react";
2
+ import { Avatar as AvatarPrimitive } from "radix-ui";
3
+ type AvatarParams = {
4
+ size?: "default" | "sm" | "lg";
5
+ };
6
+ declare function Avatar(params: React.ComponentProps<typeof AvatarPrimitive.Root> & AvatarParams): React.JSX.Element;
7
+ declare function AvatarImage(params: React.ComponentProps<typeof AvatarPrimitive.Image>): React.JSX.Element;
8
+ declare function AvatarFallback(params: React.ComponentProps<typeof AvatarPrimitive.Fallback>): React.JSX.Element;
9
+ declare function AvatarBadge(params: React.ComponentProps<"span">): React.JSX.Element;
10
+ declare function AvatarGroup(params: React.ComponentProps<"div">): React.JSX.Element;
11
+ declare function AvatarGroupCount(params: React.ComponentProps<"div">): React.JSX.Element;
12
+ export { Avatar, AvatarImage, AvatarFallback, AvatarGroup, AvatarGroupCount, AvatarBadge, };
13
+ //# sourceMappingURL=avatar.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"avatar.d.ts","sourceRoot":"","sources":["../../source/components/avatar.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAC9B,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,UAAU,CAAA;AAIpD,KAAK,YAAY,GAAG;IAClB,IAAI,CAAC,EAAE,SAAS,GAAG,IAAI,GAAG,IAAI,CAAA;CAC/B,CAAA;AAED,iBAAS,MAAM,CAAC,MAAM,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,eAAe,CAAC,IAAI,CAAC,GAAG,YAAY,qBAiBvF;AAED,iBAAS,WAAW,CAAC,MAAM,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,eAAe,CAAC,KAAK,CAAC,qBAe9E;AAED,iBAAS,cAAc,CAAC,MAAM,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,eAAe,CAAC,QAAQ,CAAC,qBAepF;AAED,iBAAS,WAAW,CAAC,MAAM,EAAE,KAAK,CAAC,cAAc,CAAC,MAAM,CAAC,qBAexD;AAED,iBAAS,WAAW,CAAC,MAAM,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,qBAYvD;AAED,iBAAS,gBAAgB,CAAC,MAAM,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,qBAY5D;AAED,OAAO,EACL,MAAM,EACN,WAAW,EACX,cAAc,EACd,WAAW,EACX,gBAAgB,EAChB,WAAW,GACZ,CAAA"}
@@ -0,0 +1,40 @@
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 { jsx as _jsx } from "react/jsx-runtime";
13
+ import * as React from "react";
14
+ import { Avatar as AvatarPrimitive } from "radix-ui";
15
+ import { mergeClassNames } from "../utils/merge-class-names/index.js";
16
+ function Avatar(params) {
17
+ const { className, size = "default" } = params, props = __rest(params, ["className", "size"]);
18
+ return (_jsx(AvatarPrimitive.Root, Object.assign({ "data-slot": "avatar", "data-size": size, className: mergeClassNames("size-8 rounded-full after:rounded-full data-[size=lg]:size-10 data-[size=sm]:size-6 after:border-border group/avatar relative flex shrink-0 select-none after:absolute after:inset-0 after:border after:mix-blend-darken dark:after:mix-blend-lighten", className) }, props)));
19
+ }
20
+ function AvatarImage(params) {
21
+ const { className } = params, props = __rest(params, ["className"]);
22
+ return (_jsx(AvatarPrimitive.Image, Object.assign({ "data-slot": "avatar-image", className: mergeClassNames("rounded-full aspect-square size-full object-cover", className) }, props)));
23
+ }
24
+ function AvatarFallback(params) {
25
+ const { className } = params, props = __rest(params, ["className"]);
26
+ return (_jsx(AvatarPrimitive.Fallback, Object.assign({ "data-slot": "avatar-fallback", className: mergeClassNames("bg-muted text-muted-foreground rounded-full flex size-full items-center justify-center text-sm group-data-[size=sm]/avatar:text-xs", className) }, props)));
27
+ }
28
+ function AvatarBadge(params) {
29
+ const { className } = params, props = __rest(params, ["className"]);
30
+ return (_jsx("span", Object.assign({ "data-slot": "avatar-badge", className: mergeClassNames("bg-primary text-primary-foreground ring-background absolute right-0 bottom-0 z-10 inline-flex items-center justify-center rounded-full bg-blend-color ring-2 select-none", "group-data-[size=sm]/avatar:size-2 group-data-[size=sm]/avatar:[&>svg]:hidden", "group-data-[size=default]/avatar:size-2.5 group-data-[size=default]/avatar:[&>svg]:size-2", "group-data-[size=lg]/avatar:size-3 group-data-[size=lg]/avatar:[&>svg]:size-2", className) }, props)));
31
+ }
32
+ function AvatarGroup(params) {
33
+ const { className } = params, props = __rest(params, ["className"]);
34
+ return (_jsx("div", Object.assign({ "data-slot": "avatar-group", className: mergeClassNames("*:data-[slot=avatar]:ring-background group/avatar-group flex -space-x-2 *:data-[slot=avatar]:ring-2", className) }, props)));
35
+ }
36
+ function AvatarGroupCount(params) {
37
+ const { className } = params, props = __rest(params, ["className"]);
38
+ return (_jsx("div", Object.assign({ "data-slot": "avatar-group-count", className: mergeClassNames("bg-muted text-muted-foreground size-8 rounded-full text-sm group-has-data-[size=lg]/avatar-group:size-10 group-has-data-[size=sm]/avatar-group:size-6 [&>svg]:size-4 group-has-data-[size=lg]/avatar-group:[&>svg]:size-5 group-has-data-[size=sm]/avatar-group:[&>svg]:size-3 ring-background relative flex shrink-0 items-center justify-center ring-2", className) }, props)));
39
+ }
40
+ export { Avatar, AvatarImage, AvatarFallback, AvatarGroup, AvatarGroupCount, AvatarBadge, };
@@ -0,0 +1,10 @@
1
+ import { type HTMLAttributes } from 'react';
2
+ import { type VariantProps } from 'class-variance-authority';
3
+ declare const badgeVariants: (props?: ({
4
+ variant?: "default" | "destructive" | "outline" | "secondary" | null | undefined;
5
+ } & import("class-variance-authority/types").ClassProp) | undefined) => string;
6
+ export interface BadgeProps extends HTMLAttributes<HTMLDivElement>, VariantProps<typeof badgeVariants> {
7
+ }
8
+ export declare const Badge: import("react").ForwardRefExoticComponent<BadgeProps & import("react").RefAttributes<HTMLDivElement>>;
9
+ export {};
10
+ //# sourceMappingURL=badge.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"badge.d.ts","sourceRoot":"","sources":["../../source/components/badge.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAc,KAAK,cAAc,EAAE,MAAM,OAAO,CAAA;AACvD,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAA;AAIjE,QAAA,MAAM,aAAa;;8EAUjB,CAAA;AAEF,MAAM,WAAW,UAAW,SAAQ,cAAc,CAAC,cAAc,CAAC,EAAE,YAAY,CAAC,OAAO,aAAa,CAAC;CAAG;AAEzG,eAAO,MAAM,KAAK,uGAEhB,CAAA"}
@@ -0,0 +1,31 @@
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 { jsx as _jsx } from "react/jsx-runtime";
13
+ import { forwardRef } from 'react';
14
+ import { cva } from 'class-variance-authority';
15
+ import { mergeClassNames } from '../utils/merge-class-names/index.js';
16
+ const badgeVariants = cva('inline-flex items-center rounded-full border px-2.5 py-0.5 text-xs font-semibold transition-colors', {
17
+ variants: {
18
+ variant: {
19
+ default: 'border-transparent bg-primary text-primary-foreground',
20
+ secondary: 'border-transparent bg-secondary text-secondary-foreground',
21
+ destructive: 'border-transparent bg-destructive text-white',
22
+ outline: 'text-foreground',
23
+ },
24
+ },
25
+ defaultVariants: { variant: 'default' },
26
+ });
27
+ export const Badge = forwardRef(function Badge(_a, ref) {
28
+ var { className, variant } = _a, props = __rest(_a, ["className", "variant"]);
29
+ return _jsx("div", Object.assign({ ref: ref, className: mergeClassNames(badgeVariants({ variant }), className) }, props));
30
+ });
31
+ Badge.displayName = 'Badge';
@@ -0,0 +1,12 @@
1
+ import { type ButtonHTMLAttributes } from 'react';
2
+ import { type VariantProps } from 'class-variance-authority';
3
+ declare const buttonVariants: (props?: ({
4
+ variant?: "default" | "destructive" | "outline" | "secondary" | "ghost" | "link" | null | undefined;
5
+ size?: "default" | "sm" | "lg" | "icon" | "icon-sm" | "icon-xs" | null | undefined;
6
+ } & import("class-variance-authority/types").ClassProp) | undefined) => string;
7
+ export interface ButtonProps extends ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof buttonVariants> {
8
+ asChild?: boolean;
9
+ }
10
+ export declare const Button: import("react").ForwardRefExoticComponent<ButtonProps & import("react").RefAttributes<HTMLButtonElement>>;
11
+ export { buttonVariants };
12
+ //# sourceMappingURL=button.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"button.d.ts","sourceRoot":"","sources":["../../source/components/button.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAc,KAAK,oBAAoB,EAAE,MAAM,OAAO,CAAA;AAE7D,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAA;AAIjE,QAAA,MAAM,cAAc;;;8EAuBnB,CAAA;AAED,MAAM,WAAW,WAAY,SAAQ,oBAAoB,CAAC,iBAAiB,CAAC,EAAE,YAAY,CAAC,OAAO,cAAc,CAAC;IAC/G,OAAO,CAAC,EAAE,OAAO,CAAA;CAClB;AAED,eAAO,MAAM,MAAM,2GAMjB,CAAA;AAIF,OAAO,EAAE,cAAc,EAAE,CAAA"}
@@ -0,0 +1,44 @@
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 { jsx as _jsx } from "react/jsx-runtime";
13
+ import { forwardRef } from 'react';
14
+ import { Slot } from '@radix-ui/react-slot';
15
+ import { cva } from 'class-variance-authority';
16
+ import { mergeClassNames } from '../utils/merge-class-names/index.js';
17
+ const buttonVariants = cva('inline-flex shrink-0 items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-colors outline-none focus-visible:ring-2 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50', {
18
+ variants: {
19
+ variant: {
20
+ default: 'bg-primary text-primary-foreground hover:bg-primary/90',
21
+ destructive: 'bg-destructive text-white hover:bg-destructive/90',
22
+ outline: 'border border-input bg-background hover:bg-accent hover:text-accent-foreground',
23
+ secondary: 'bg-secondary text-secondary-foreground hover:bg-secondary/80',
24
+ ghost: 'hover:bg-accent hover:text-accent-foreground',
25
+ link: 'text-primary underline-offset-4 hover:underline',
26
+ },
27
+ size: {
28
+ default: 'h-9 px-4 py-2',
29
+ sm: 'h-8 rounded-md px-3 text-xs',
30
+ lg: 'h-10 rounded-md px-6',
31
+ icon: 'size-9',
32
+ 'icon-sm': 'size-8 rounded-md',
33
+ 'icon-xs': 'size-6 rounded-md',
34
+ },
35
+ },
36
+ defaultVariants: { variant: 'default', size: 'default' },
37
+ });
38
+ export const Button = forwardRef(function Button(_a, ref) {
39
+ var { asChild = false, className, variant, size } = _a, props = __rest(_a, ["asChild", "className", "variant", "size"]);
40
+ const Component = asChild ? Slot : 'button';
41
+ return _jsx(Component, Object.assign({ ref: ref, className: mergeClassNames(buttonVariants({ variant, size, className })) }, props));
42
+ });
43
+ Button.displayName = 'Button';
44
+ export { buttonVariants };
@@ -0,0 +1,8 @@
1
+ import { type HTMLAttributes } from 'react';
2
+ export declare const Card: import("react").ForwardRefExoticComponent<HTMLAttributes<HTMLDivElement> & import("react").RefAttributes<HTMLDivElement>>;
3
+ export declare function CardHeader({ className, ...props }: HTMLAttributes<HTMLDivElement>): import("react").JSX.Element;
4
+ export declare function CardTitle({ className, ...props }: HTMLAttributes<HTMLHeadingElement>): import("react").JSX.Element;
5
+ export declare function CardDescription({ className, ...props }: HTMLAttributes<HTMLParagraphElement>): import("react").JSX.Element;
6
+ export declare function CardContent({ className, ...props }: HTMLAttributes<HTMLDivElement>): import("react").JSX.Element;
7
+ export declare function CardFooter({ className, ...props }: HTMLAttributes<HTMLDivElement>): import("react").JSX.Element;
8
+ //# sourceMappingURL=card.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"card.d.ts","sourceRoot":"","sources":["../../source/components/card.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAc,KAAK,cAAc,EAAE,MAAM,OAAO,CAAA;AAIvD,eAAO,MAAM,IAAI,2HAEf,CAAA;AAEF,wBAAgB,UAAU,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,cAAc,CAAC,cAAc,CAAC,+BAEjF;AAED,wBAAgB,SAAS,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,cAAc,CAAC,kBAAkB,CAAC,+BAEpF;AAED,wBAAgB,eAAe,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,cAAc,CAAC,oBAAoB,CAAC,+BAE5F;AAED,wBAAgB,WAAW,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,cAAc,CAAC,cAAc,CAAC,+BAElF;AAED,wBAAgB,UAAU,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,cAAc,CAAC,cAAc,CAAC,+BAEjF"}
@@ -0,0 +1,38 @@
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 { jsx as _jsx } from "react/jsx-runtime";
13
+ import { forwardRef } from 'react';
14
+ import { mergeClassNames } from '../utils/merge-class-names/index.js';
15
+ export const Card = forwardRef(function Card(_a, ref) {
16
+ var { className } = _a, props = __rest(_a, ["className"]);
17
+ return _jsx("div", Object.assign({ ref: ref, className: mergeClassNames('rounded-lg border bg-card text-card-foreground shadow-sm', className) }, props));
18
+ });
19
+ export function CardHeader(_a) {
20
+ var { className } = _a, props = __rest(_a, ["className"]);
21
+ return _jsx("div", Object.assign({ className: mergeClassNames('flex flex-col space-y-1.5 p-6', className) }, props));
22
+ }
23
+ export function CardTitle(_a) {
24
+ var { className } = _a, props = __rest(_a, ["className"]);
25
+ return _jsx("h3", Object.assign({ className: mergeClassNames('font-semibold leading-none tracking-tight', className) }, props));
26
+ }
27
+ export function CardDescription(_a) {
28
+ var { className } = _a, props = __rest(_a, ["className"]);
29
+ return _jsx("p", Object.assign({ className: mergeClassNames('text-sm text-muted-foreground', className) }, props));
30
+ }
31
+ export function CardContent(_a) {
32
+ var { className } = _a, props = __rest(_a, ["className"]);
33
+ return _jsx("div", Object.assign({ className: mergeClassNames('p-6 pt-0', className) }, props));
34
+ }
35
+ export function CardFooter(_a) {
36
+ var { className } = _a, props = __rest(_a, ["className"]);
37
+ return _jsx("div", Object.assign({ className: mergeClassNames('flex items-center p-6 pt-0', className) }, props));
38
+ }
@@ -0,0 +1,5 @@
1
+ import * as React from 'react';
2
+ import { Checkbox as CheckboxPrimitive } from 'radix-ui';
3
+ declare function Checkbox(params: React.ComponentProps<typeof CheckboxPrimitive.Root>): React.JSX.Element;
4
+ export { Checkbox };
5
+ //# sourceMappingURL=checkbox.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"checkbox.d.ts","sourceRoot":"","sources":["../../source/components/checkbox.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAC9B,OAAO,EAAE,QAAQ,IAAI,iBAAiB,EAAE,MAAM,UAAU,CAAA;AAKxD,iBAAS,QAAQ,CAAC,MAAM,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,iBAAiB,CAAC,IAAI,CAAC,qBAgB5E;AAED,OAAO,EAAE,QAAQ,EAAE,CAAA"}
@@ -0,0 +1,21 @@
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 { jsx as _jsx } from "react/jsx-runtime";
13
+ import * as React from 'react';
14
+ import { Checkbox as CheckboxPrimitive } from 'radix-ui';
15
+ import { CheckIcon } from 'lucide-react';
16
+ import { mergeClassNames } from '../utils/merge-class-names/index.js';
17
+ function Checkbox(params) {
18
+ const { className } = params, props = __rest(params, ["className"]);
19
+ return (_jsx(CheckboxPrimitive.Root, Object.assign({ "data-slot": "checkbox", className: mergeClassNames('border-input dark:bg-input/30 data-checked:bg-primary data-checked:text-primary-foreground dark:data-checked:bg-primary data-checked:border-primary aria-invalid:aria-checked:border-primary aria-invalid:border-destructive dark:aria-invalid:border-destructive/50 focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 flex size-4 items-center justify-center rounded-[4px] border shadow-xs transition-shadow group-has-disabled/field:opacity-50 focus-visible:ring-[3px] aria-invalid:ring-[3px] peer relative shrink-0 outline-none after:absolute after:-inset-x-3 after:-inset-y-2 disabled:cursor-not-allowed disabled:opacity-50', className) }, props, { children: _jsx(CheckboxPrimitive.Indicator, { "data-slot": "checkbox-indicator", className: "[&>svg]:size-3.5 grid place-content-center text-current transition-none", children: _jsx(CheckIcon, {}) }) })));
20
+ }
21
+ export { Checkbox };
@@ -0,0 +1,20 @@
1
+ import * as React from "react";
2
+ import { Command as CommandPrimitive } from "cmdk";
3
+ import { Dialog } from "./dialog.js";
4
+ type CommandDialogParams = {
5
+ title?: string;
6
+ description?: string;
7
+ className?: string;
8
+ showCloseButton?: boolean;
9
+ };
10
+ declare function Command(params: React.ComponentProps<typeof CommandPrimitive>): React.JSX.Element;
11
+ declare function CommandDialog(params: React.ComponentProps<typeof Dialog> & CommandDialogParams): React.JSX.Element;
12
+ declare function CommandInput(params: React.ComponentProps<typeof CommandPrimitive.Input>): React.JSX.Element;
13
+ declare function CommandList(params: React.ComponentProps<typeof CommandPrimitive.List>): React.JSX.Element;
14
+ declare function CommandEmpty(params: React.ComponentProps<typeof CommandPrimitive.Empty>): React.JSX.Element;
15
+ declare function CommandGroup(params: React.ComponentProps<typeof CommandPrimitive.Group>): React.JSX.Element;
16
+ declare function CommandSeparator(params: React.ComponentProps<typeof CommandPrimitive.Separator>): React.JSX.Element;
17
+ declare function CommandItem(params: React.ComponentProps<typeof CommandPrimitive.Item>): React.JSX.Element;
18
+ declare function CommandShortcut(params: React.ComponentProps<"span">): React.JSX.Element;
19
+ export { Command, CommandDialog, CommandInput, CommandList, CommandEmpty, CommandGroup, CommandItem, CommandShortcut, CommandSeparator, };
20
+ //# sourceMappingURL=command.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"command.d.ts","sourceRoot":"","sources":["../../source/components/command.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAC9B,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,MAAM,CAAA;AAGlD,OAAO,EACL,MAAM,EAKP,MAAM,aAAa,CAAA;AAOpB,KAAK,mBAAmB,GAAG;IACzB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,eAAe,CAAC,EAAE,OAAO,CAAA;CAC1B,CAAA;AAED,iBAAS,OAAO,CAAC,MAAM,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,gBAAgB,CAAC,qBAerE;AAED,iBAAS,aAAa,CAAC,MAAM,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,MAAM,CAAC,GAAG,mBAAmB,qBA0BvF;AAED,iBAAS,YAAY,CAAC,MAAM,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,gBAAgB,CAAC,KAAK,CAAC,qBAsBhF;AAED,iBAAS,WAAW,CAAC,MAAM,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,gBAAgB,CAAC,IAAI,CAAC,qBAe9E;AAED,iBAAS,YAAY,CAAC,MAAM,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,gBAAgB,CAAC,KAAK,CAAC,qBAYhF;AAED,iBAAS,YAAY,CAAC,MAAM,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,gBAAgB,CAAC,KAAK,CAAC,qBAYhF;AAED,iBAAS,gBAAgB,CAAC,MAAM,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,gBAAgB,CAAC,SAAS,CAAC,qBAYxF;AAED,iBAAS,WAAW,CAAC,MAAM,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,gBAAgB,CAAC,IAAI,CAAC,qBAmB9E;AAED,iBAAS,eAAe,CAAC,MAAM,EAAE,KAAK,CAAC,cAAc,CAAC,MAAM,CAAC,qBAY5D;AAED,OAAO,EACL,OAAO,EACP,aAAa,EACb,YAAY,EACZ,WAAW,EACX,YAAY,EACZ,YAAY,EACZ,WAAW,EACX,eAAe,EACf,gBAAgB,GACjB,CAAA"}
@@ -0,0 +1,55 @@
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 { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
13
+ import * as React from "react";
14
+ import { Command as CommandPrimitive } from "cmdk";
15
+ import { mergeClassNames } from "../utils/merge-class-names/index.js";
16
+ import { Dialog, DialogContent, DialogDescription, DialogHeader, DialogTitle, } from "./dialog.js";
17
+ import { InputGroup, InputGroupAddon, } from "./input-group.js";
18
+ import { SearchIcon, CheckIcon } from "lucide-react";
19
+ function Command(params) {
20
+ const { className } = params, props = __rest(params, ["className"]);
21
+ return (_jsx(CommandPrimitive, Object.assign({ "data-slot": "command", className: mergeClassNames("bg-popover text-popover-foreground rounded-xl! p-1 flex size-full flex-col overflow-hidden", className) }, props)));
22
+ }
23
+ function CommandDialog(params) {
24
+ const { title = "Command Palette", description = "Search for a command to run...", children, className, showCloseButton = false } = params, props = __rest(params, ["title", "description", "children", "className", "showCloseButton"]);
25
+ return (_jsxs(Dialog, Object.assign({}, props, { children: [_jsxs(DialogHeader, { className: "sr-only", children: [_jsx(DialogTitle, { children: title }), _jsx(DialogDescription, { children: description })] }), _jsx(DialogContent, { className: mergeClassNames("rounded-xl! top-1/3 translate-y-0 overflow-hidden p-0", className), showCloseButton: showCloseButton, children: children })] })));
26
+ }
27
+ function CommandInput(params) {
28
+ const { className } = params, props = __rest(params, ["className"]);
29
+ return (_jsx("div", { "data-slot": "command-input-wrapper", className: "p-1 pb-0", children: _jsxs(InputGroup, { className: "bg-input/30 border-input/30 h-8! rounded-lg! shadow-none! *:data-[slot=input-group-addon]:pl-2!", children: [_jsx(CommandPrimitive.Input, Object.assign({ "data-slot": "command-input", className: mergeClassNames("w-full text-sm outline-hidden disabled:cursor-not-allowed disabled:opacity-50", className) }, props)), _jsx(InputGroupAddon, { children: _jsx(SearchIcon, { className: "size-4 shrink-0 opacity-50" }) })] }) }));
30
+ }
31
+ function CommandList(params) {
32
+ const { className } = params, props = __rest(params, ["className"]);
33
+ return (_jsx(CommandPrimitive.List, Object.assign({ "data-slot": "command-list", className: mergeClassNames("no-scrollbar max-h-72 scroll-py-1 outline-none overflow-x-hidden overflow-y-auto", className) }, props)));
34
+ }
35
+ function CommandEmpty(params) {
36
+ const { className } = params, props = __rest(params, ["className"]);
37
+ return (_jsx(CommandPrimitive.Empty, Object.assign({ "data-slot": "command-empty", className: mergeClassNames("py-6 text-center text-sm", className) }, props)));
38
+ }
39
+ function CommandGroup(params) {
40
+ const { className } = params, props = __rest(params, ["className"]);
41
+ return (_jsx(CommandPrimitive.Group, Object.assign({ "data-slot": "command-group", className: mergeClassNames("text-foreground [&_[cmdk-group-heading]]:text-muted-foreground overflow-hidden p-1 [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium", className) }, props)));
42
+ }
43
+ function CommandSeparator(params) {
44
+ const { className } = params, props = __rest(params, ["className"]);
45
+ return (_jsx(CommandPrimitive.Separator, Object.assign({ "data-slot": "command-separator", className: mergeClassNames("bg-border -mx-1 h-px w-auto", className) }, props)));
46
+ }
47
+ function CommandItem(params) {
48
+ const { className, children } = params, props = __rest(params, ["className", "children"]);
49
+ return (_jsxs(CommandPrimitive.Item, Object.assign({ "data-slot": "command-item", className: mergeClassNames("data-selected:bg-muted data-selected:text-foreground data-selected:**:[svg]:text-foreground relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none [&_svg:not([class*='size-'])]:size-4 [[data-slot=dialog-content]_&]:rounded-lg! group/command-item data-[disabled=true]:pointer-events-none data-[disabled=true]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0", className) }, props, { children: [children, _jsx(CheckIcon, { className: "ml-auto opacity-0 group-has-[[data-slot=command-shortcut]]/command-item:hidden group-data-[checked=true]/command-item:opacity-100" })] })));
50
+ }
51
+ function CommandShortcut(params) {
52
+ const { className } = params, props = __rest(params, ["className"]);
53
+ return (_jsx("span", Object.assign({ "data-slot": "command-shortcut", className: mergeClassNames("text-muted-foreground group-data-selected/command-item:text-foreground ml-auto text-xs tracking-widest", className) }, props)));
54
+ }
55
+ export { Command, CommandDialog, CommandInput, CommandList, CommandEmpty, CommandGroup, CommandItem, CommandShortcut, CommandSeparator, };
@@ -0,0 +1,20 @@
1
+ import * as React from 'react';
2
+ import { Dialog as DialogPrimitive } from 'radix-ui';
3
+ type DialogContentParams = {
4
+ showCloseButton?: boolean;
5
+ };
6
+ type DialogFooterParams = {
7
+ showCloseButton?: boolean;
8
+ };
9
+ declare function Dialog(params: React.ComponentProps<typeof DialogPrimitive.Root>): React.JSX.Element;
10
+ declare function DialogTrigger(params: React.ComponentProps<typeof DialogPrimitive.Trigger>): React.JSX.Element;
11
+ declare function DialogPortal(params: React.ComponentProps<typeof DialogPrimitive.Portal>): React.JSX.Element;
12
+ declare function DialogClose(params: React.ComponentProps<typeof DialogPrimitive.Close>): React.JSX.Element;
13
+ declare function DialogOverlay(params: React.ComponentProps<typeof DialogPrimitive.Overlay>): React.JSX.Element;
14
+ declare function DialogContent(params: React.ComponentProps<typeof DialogPrimitive.Content> & DialogContentParams): React.JSX.Element;
15
+ declare function DialogHeader(params: React.ComponentProps<'div'>): React.JSX.Element;
16
+ declare function DialogFooter(params: React.ComponentProps<'div'> & DialogFooterParams): React.JSX.Element;
17
+ declare function DialogTitle(params: React.ComponentProps<typeof DialogPrimitive.Title>): React.JSX.Element;
18
+ declare function DialogDescription(params: React.ComponentProps<typeof DialogPrimitive.Description>): React.JSX.Element;
19
+ export { Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, };
20
+ //# sourceMappingURL=dialog.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"dialog.d.ts","sourceRoot":"","sources":["../../source/components/dialog.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAC9B,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,UAAU,CAAA;AAMpD,KAAK,mBAAmB,GAAG;IACzB,eAAe,CAAC,EAAE,OAAO,CAAA;CAC1B,CAAA;AAED,KAAK,kBAAkB,GAAG;IACxB,eAAe,CAAC,EAAE,OAAO,CAAA;CAC1B,CAAA;AAED,iBAAS,MAAM,CAAC,MAAM,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,eAAe,CAAC,IAAI,CAAC,qBAKxE;AAED,iBAAS,aAAa,CAAC,MAAM,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,eAAe,CAAC,OAAO,CAAC,qBAKlF;AAED,iBAAS,YAAY,CAAC,MAAM,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,eAAe,CAAC,MAAM,CAAC,qBAKhF;AAED,iBAAS,WAAW,CAAC,MAAM,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,eAAe,CAAC,KAAK,CAAC,qBAK9E;AAED,iBAAS,aAAa,CAAC,MAAM,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,eAAe,CAAC,OAAO,CAAC,qBAYlF;AAED,iBAAS,aAAa,CAAC,MAAM,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,eAAe,CAAC,OAAO,CAAC,GAAG,mBAAmB,qBA+BxG;AAED,iBAAS,YAAY,CAAC,MAAM,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,qBASxD;AAED,iBAAS,YAAY,CAAC,MAAM,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,GAAG,kBAAkB,qBAwB7E;AAED,iBAAS,WAAW,CAAC,MAAM,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,eAAe,CAAC,KAAK,CAAC,qBAY9E;AAED,iBAAS,iBAAiB,CAAC,MAAM,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,eAAe,CAAC,WAAW,CAAC,qBAY1F;AAED,OAAO,EACL,MAAM,EACN,WAAW,EACX,aAAa,EACb,iBAAiB,EACjB,YAAY,EACZ,YAAY,EACZ,aAAa,EACb,YAAY,EACZ,WAAW,EACX,aAAa,GACd,CAAA"}
@@ -0,0 +1,58 @@
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 { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
13
+ import * as React from 'react';
14
+ import { Dialog as DialogPrimitive } from 'radix-ui';
15
+ import { mergeClassNames } from '../utils/merge-class-names/index.js';
16
+ import { Button } from './button.js';
17
+ import { XIcon } from 'lucide-react';
18
+ function Dialog(params) {
19
+ const props = __rest(params, []);
20
+ return _jsx(DialogPrimitive.Root, Object.assign({ "data-slot": "dialog" }, props));
21
+ }
22
+ function DialogTrigger(params) {
23
+ const props = __rest(params, []);
24
+ return _jsx(DialogPrimitive.Trigger, Object.assign({ "data-slot": "dialog-trigger" }, props));
25
+ }
26
+ function DialogPortal(params) {
27
+ const props = __rest(params, []);
28
+ return _jsx(DialogPrimitive.Portal, Object.assign({ "data-slot": "dialog-portal" }, props));
29
+ }
30
+ function DialogClose(params) {
31
+ const props = __rest(params, []);
32
+ return _jsx(DialogPrimitive.Close, Object.assign({ "data-slot": "dialog-close" }, props));
33
+ }
34
+ function DialogOverlay(params) {
35
+ const { className } = params, props = __rest(params, ["className"]);
36
+ return (_jsx(DialogPrimitive.Overlay, Object.assign({ "data-slot": "dialog-overlay", className: mergeClassNames('data-open:animate-in data-closed:animate-out data-closed:fade-out-0 data-open:fade-in-0 bg-black/10 duration-100 supports-backdrop-filter:backdrop-blur-xs fixed inset-0 isolate z-50', className) }, props)));
37
+ }
38
+ function DialogContent(params) {
39
+ const { className, children, showCloseButton = true } = params, props = __rest(params, ["className", "children", "showCloseButton"]);
40
+ return (_jsxs(DialogPortal, { children: [_jsx(DialogOverlay, {}), _jsxs(DialogPrimitive.Content, Object.assign({ "data-slot": "dialog-content", className: mergeClassNames('bg-background data-open:animate-in data-closed:animate-out data-closed:fade-out-0 data-open:fade-in-0 data-closed:zoom-out-95 data-open:zoom-in-95 ring-foreground/10 grid max-w-[calc(100%-2rem)] gap-6 rounded-xl p-6 text-sm ring-1 duration-100 sm:max-w-md fixed top-1/2 left-1/2 z-50 w-full -translate-x-1/2 -translate-y-1/2 outline-none', className) }, props, { children: [children, showCloseButton && (_jsx(DialogPrimitive.Close, { "data-slot": "dialog-close", asChild: true, children: _jsxs(Button, { variant: "ghost", className: "absolute top-4 right-4", size: "icon-sm", children: [_jsx(XIcon, {}), _jsx("span", { className: "sr-only", children: "Close" })] }) }))] }))] }));
41
+ }
42
+ function DialogHeader(params) {
43
+ const { className } = params, props = __rest(params, ["className"]);
44
+ return (_jsx("div", Object.assign({ "data-slot": "dialog-header", className: mergeClassNames('gap-2 flex flex-col', className) }, props)));
45
+ }
46
+ function DialogFooter(params) {
47
+ const { className, showCloseButton = false, children } = params, props = __rest(params, ["className", "showCloseButton", "children"]);
48
+ return (_jsxs("div", Object.assign({ "data-slot": "dialog-footer", className: mergeClassNames('gap-2 flex flex-col-reverse gap-2 sm:flex-row sm:justify-end', className) }, props, { children: [children, showCloseButton && (_jsx(DialogPrimitive.Close, { asChild: true, children: _jsx(Button, { variant: "outline", children: "Close" }) }))] })));
49
+ }
50
+ function DialogTitle(params) {
51
+ const { className } = params, props = __rest(params, ["className"]);
52
+ return (_jsx(DialogPrimitive.Title, Object.assign({ "data-slot": "dialog-title", className: mergeClassNames('leading-none font-medium', className) }, props)));
53
+ }
54
+ function DialogDescription(params) {
55
+ const { className } = params, props = __rest(params, ["className"]);
56
+ return (_jsx(DialogPrimitive.Description, Object.assign({ "data-slot": "dialog-description", className: mergeClassNames('text-muted-foreground *:[a]:hover:text-foreground text-sm *:[a]:underline *:[a]:underline-offset-3', className) }, props)));
57
+ }
58
+ export { Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, };
@@ -0,0 +1,9 @@
1
+ import * as React from "react";
2
+ import { Direction } from "radix-ui";
3
+ type DirectionProviderParams = {
4
+ direction?: React.ComponentProps<typeof Direction.DirectionProvider>["dir"];
5
+ };
6
+ declare function DirectionProvider(params: React.ComponentProps<typeof Direction.DirectionProvider> & DirectionProviderParams): React.JSX.Element;
7
+ declare const useDirection: typeof Direction.useDirection;
8
+ export { DirectionProvider, useDirection };
9
+ //# sourceMappingURL=direction.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"direction.d.ts","sourceRoot":"","sources":["../../source/components/direction.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAC9B,OAAO,EAAE,SAAS,EAAE,MAAM,UAAU,CAAA;AAEpC,KAAK,uBAAuB,GAAG;IAC7B,SAAS,CAAC,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,SAAS,CAAC,iBAAiB,CAAC,CAAC,KAAK,CAAC,CAAA;CAC5E,CAAA;AAED,iBAAS,iBAAiB,CAAC,MAAM,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,SAAS,CAAC,iBAAiB,CAAC,GAAG,uBAAuB,qBAWpH;AAED,QAAA,MAAM,YAAY,+BAAyB,CAAA;AAE3C,OAAO,EAAE,iBAAiB,EAAE,YAAY,EAAE,CAAA"}