@ciridae/ui 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (339) hide show
  1. package/README.md +31 -0
  2. package/dist/components/agentic/agent-card.d.ts +28 -0
  3. package/dist/components/agentic/agent-card.js +27 -0
  4. package/dist/components/agentic/agent-composer.d.ts +44 -0
  5. package/dist/components/agentic/agent-composer.js +104 -0
  6. package/dist/components/agentic/agent-context.d.ts +28 -0
  7. package/dist/components/agentic/agent-context.js +102 -0
  8. package/dist/components/agentic/agent-plan.d.ts +27 -0
  9. package/dist/components/agentic/agent-plan.js +43 -0
  10. package/dist/components/agentic/agent-queue.d.ts +46 -0
  11. package/dist/components/agentic/agent-queue.js +53 -0
  12. package/dist/components/agentic/agent-task.d.ts +16 -0
  13. package/dist/components/agentic/agent-task.js +20 -0
  14. package/dist/components/agentic/approval-request.d.ts +24 -0
  15. package/dist/components/agentic/approval-request.js +57 -0
  16. package/dist/components/agentic/artifact.d.ts +24 -0
  17. package/dist/components/agentic/artifact.js +72 -0
  18. package/dist/components/agentic/attachments.d.ts +124 -0
  19. package/dist/components/agentic/attachments.js +595 -0
  20. package/dist/components/agentic/audio-player.d.ts +16 -0
  21. package/dist/components/agentic/audio-player.js +21 -0
  22. package/dist/components/agentic/canvas.d.ts +10 -0
  23. package/dist/components/agentic/canvas.js +22 -0
  24. package/dist/components/agentic/clipboard.d.ts +2 -0
  25. package/dist/components/agentic/clipboard.js +12 -0
  26. package/dist/components/agentic/code-block.d.ts +43 -0
  27. package/dist/components/agentic/code-block.js +92 -0
  28. package/dist/components/agentic/commit.d.ts +57 -0
  29. package/dist/components/agentic/commit.js +85 -0
  30. package/dist/components/agentic/connection.d.ts +3 -0
  31. package/dist/components/agentic/connection.js +8 -0
  32. package/dist/components/agentic/controls.d.ts +6 -0
  33. package/dist/components/agentic/controls.js +7 -0
  34. package/dist/components/agentic/conversation.d.ts +25 -0
  35. package/dist/components/agentic/conversation.js +56 -0
  36. package/dist/components/agentic/edge.d.ts +8 -0
  37. package/dist/components/agentic/edge.js +65 -0
  38. package/dist/components/agentic/effort-selector.d.ts +43 -0
  39. package/dist/components/agentic/effort-selector.js +47 -0
  40. package/dist/components/agentic/environment-variables.d.ts +32 -0
  41. package/dist/components/agentic/environment-variables.js +66 -0
  42. package/dist/components/agentic/file-tree.d.ts +24 -0
  43. package/dist/components/agentic/file-tree.js +56 -0
  44. package/dist/components/agentic/image.d.ts +9 -0
  45. package/dist/components/agentic/image.js +11 -0
  46. package/dist/components/agentic/inline-citation.d.ts +40 -0
  47. package/dist/components/agentic/inline-citation.js +111 -0
  48. package/dist/components/agentic/jsx-preview.d.ts +19 -0
  49. package/dist/components/agentic/jsx-preview.js +34 -0
  50. package/dist/components/agentic/message-branch.d.ts +20 -0
  51. package/dist/components/agentic/message-branch.js +83 -0
  52. package/dist/components/agentic/message-response.css +265 -0
  53. package/dist/components/agentic/message-response.css.d.ts +2 -0
  54. package/dist/components/agentic/message.d.ts +27 -0
  55. package/dist/components/agentic/message.js +57 -0
  56. package/dist/components/agentic/mic-selector.d.ts +58 -0
  57. package/dist/components/agentic/mic-selector.js +173 -0
  58. package/dist/components/agentic/model-selector.d.ts +39 -0
  59. package/dist/components/agentic/model-selector.js +47 -0
  60. package/dist/components/agentic/node.d.ts +26 -0
  61. package/dist/components/agentic/node.js +29 -0
  62. package/dist/components/agentic/open-in-chat.d.ts +9 -0
  63. package/dist/components/agentic/open-in-chat.js +8 -0
  64. package/dist/components/agentic/package-info.d.ts +30 -0
  65. package/dist/components/agentic/package-info.js +44 -0
  66. package/dist/components/agentic/panel.d.ts +6 -0
  67. package/dist/components/agentic/panel.js +7 -0
  68. package/dist/components/agentic/persona.d.ts +16 -0
  69. package/dist/components/agentic/persona.js +116 -0
  70. package/dist/components/agentic/prompt-input-action-menu.d.ts +16 -0
  71. package/dist/components/agentic/prompt-input-action-menu.js +22 -0
  72. package/dist/components/agentic/prompt-input-command.d.ts +18 -0
  73. package/dist/components/agentic/prompt-input-command.js +25 -0
  74. package/dist/components/agentic/prompt-input-hover-card.d.ts +10 -0
  75. package/dist/components/agentic/prompt-input-hover-card.js +13 -0
  76. package/dist/components/agentic/prompt-input-select.d.ts +14 -0
  77. package/dist/components/agentic/prompt-input-select.js +19 -0
  78. package/dist/components/agentic/prompt-input-tabs.d.ts +17 -0
  79. package/dist/components/agentic/prompt-input-tabs.js +45 -0
  80. package/dist/components/agentic/prompt-input.d.ts +79 -0
  81. package/dist/components/agentic/prompt-input.js +206 -0
  82. package/dist/components/agentic/reasoning.d.ts +21 -0
  83. package/dist/components/agentic/reasoning.js +106 -0
  84. package/dist/components/agentic/run-checkpoint.d.ts +13 -0
  85. package/dist/components/agentic/run-checkpoint.js +19 -0
  86. package/dist/components/agentic/run-trace.d.ts +30 -0
  87. package/dist/components/agentic/run-trace.js +56 -0
  88. package/dist/components/agentic/sandbox.d.ts +24 -0
  89. package/dist/components/agentic/sandbox.js +33 -0
  90. package/dist/components/agentic/schema-display.d.ts +39 -0
  91. package/dist/components/agentic/schema-display.js +56 -0
  92. package/dist/components/agentic/shimmer.d.ts +11 -0
  93. package/dist/components/agentic/shimmer.js +16 -0
  94. package/dist/components/agentic/snippet.d.ts +18 -0
  95. package/dist/components/agentic/snippet.js +35 -0
  96. package/dist/components/agentic/sources.d.ts +16 -0
  97. package/dist/components/agentic/sources.js +17 -0
  98. package/dist/components/agentic/speech-input.d.ts +24 -0
  99. package/dist/components/agentic/speech-input.js +30 -0
  100. package/dist/components/agentic/stack-trace.d.ts +27 -0
  101. package/dist/components/agentic/stack-trace.js +76 -0
  102. package/dist/components/agentic/suggestion.d.ts +12 -0
  103. package/dist/components/agentic/suggestion.js +15 -0
  104. package/dist/components/agentic/terminal.d.ts +24 -0
  105. package/dist/components/agentic/terminal.js +47 -0
  106. package/dist/components/agentic/test-results.d.ts +51 -0
  107. package/dist/components/agentic/test-results.js +83 -0
  108. package/dist/components/agentic/theme.d.ts +5 -0
  109. package/dist/components/agentic/theme.js +31 -0
  110. package/dist/components/agentic/tool.d.ts +25 -0
  111. package/dist/components/agentic/tool.js +73 -0
  112. package/dist/components/agentic/toolbar.d.ts +6 -0
  113. package/dist/components/agentic/toolbar.js +7 -0
  114. package/dist/components/agentic/transcription.d.ts +20 -0
  115. package/dist/components/agentic/transcription.js +32 -0
  116. package/dist/components/agentic/types.d.ts +172 -0
  117. package/dist/components/agentic/types.js +1 -0
  118. package/dist/components/agentic/use-controllable-state.d.ts +6 -0
  119. package/dist/components/agentic/use-controllable-state.js +13 -0
  120. package/dist/components/agentic/voice-selector.d.ts +69 -0
  121. package/dist/components/agentic/voice-selector.js +122 -0
  122. package/dist/components/agentic/web-preview.d.ts +25 -0
  123. package/dist/components/agentic/web-preview.js +33 -0
  124. package/dist/components/ui/accordion.d.ts +7 -0
  125. package/dist/components/ui/accordion.js +17 -0
  126. package/dist/components/ui/alert-dialog.d.ts +22 -0
  127. package/dist/components/ui/alert-dialog.js +51 -0
  128. package/dist/components/ui/alert.d.ts +9 -0
  129. package/dist/components/ui/alert.js +24 -0
  130. package/dist/components/ui/aspect-ratio.d.ts +3 -0
  131. package/dist/components/ui/aspect-ratio.js +7 -0
  132. package/dist/components/ui/avatar.d.ts +11 -0
  133. package/dist/components/ui/avatar.js +22 -0
  134. package/dist/components/ui/badge-variants.d.ts +100 -0
  135. package/dist/components/ui/badge-variants.js +140 -0
  136. package/dist/components/ui/badge.d.ts +6 -0
  137. package/dist/components/ui/badge.js +9 -0
  138. package/dist/components/ui/breadcrumb.d.ts +11 -0
  139. package/dist/components/ui/breadcrumb.js +27 -0
  140. package/dist/components/ui/button-group-variants.d.ts +6 -0
  141. package/dist/components/ui/button-group-variants.js +13 -0
  142. package/dist/components/ui/button-group.d.ts +8 -0
  143. package/dist/components/ui/button-group.js +16 -0
  144. package/dist/components/ui/button-variants.d.ts +133 -0
  145. package/dist/components/ui/button-variants.js +170 -0
  146. package/dist/components/ui/button.d.ts +8 -0
  147. package/dist/components/ui/button.js +67 -0
  148. package/dist/components/ui/calendar.d.ts +9 -0
  149. package/dist/components/ui/calendar.js +99 -0
  150. package/dist/components/ui/card.d.ts +14 -0
  151. package/dist/components/ui/card.js +28 -0
  152. package/dist/components/ui/carousel.d.ts +19 -0
  153. package/dist/components/ui/carousel.js +104 -0
  154. package/dist/components/ui/chart-context.d.ts +33 -0
  155. package/dist/components/ui/chart-context.js +36 -0
  156. package/dist/components/ui/chart-panel.d.ts +11 -0
  157. package/dist/components/ui/chart-panel.js +6 -0
  158. package/dist/components/ui/chart-tooltip.d.ts +13 -0
  159. package/dist/components/ui/chart-tooltip.js +84 -0
  160. package/dist/components/ui/chart.d.ts +23 -0
  161. package/dist/components/ui/chart.js +52 -0
  162. package/dist/components/ui/checkbox.d.ts +4 -0
  163. package/dist/components/ui/checkbox.js +9 -0
  164. package/dist/components/ui/collapsible.d.ts +5 -0
  165. package/dist/components/ui/collapsible.js +12 -0
  166. package/dist/components/ui/combobox-anchor.d.ts +3 -0
  167. package/dist/components/ui/combobox-anchor.js +5 -0
  168. package/dist/components/ui/combobox.d.ts +23 -0
  169. package/dist/components/ui/combobox.js +54 -0
  170. package/dist/components/ui/command.d.ts +19 -0
  171. package/dist/components/ui/command.js +38 -0
  172. package/dist/components/ui/context-menu.d.ts +30 -0
  173. package/dist/components/ui/context-menu.js +63 -0
  174. package/dist/components/ui/data-table.d.ts +17 -0
  175. package/dist/components/ui/data-table.js +26 -0
  176. package/dist/components/ui/dialog.d.ts +22 -0
  177. package/dist/components/ui/dialog.js +48 -0
  178. package/dist/components/ui/direction-context.d.ts +3 -0
  179. package/dist/components/ui/direction-context.js +3 -0
  180. package/dist/components/ui/direction.d.ts +6 -0
  181. package/dist/components/ui/direction.js +7 -0
  182. package/dist/components/ui/drawer.d.ts +18 -0
  183. package/dist/components/ui/drawer.js +47 -0
  184. package/dist/components/ui/dropdown-menu.d.ts +30 -0
  185. package/dist/components/ui/dropdown-menu.js +63 -0
  186. package/dist/components/ui/empty.d.ts +11 -0
  187. package/dist/components/ui/empty.js +33 -0
  188. package/dist/components/ui/expandable-data-table.d.ts +24 -0
  189. package/dist/components/ui/expandable-data-table.js +62 -0
  190. package/dist/components/ui/field.d.ts +26 -0
  191. package/dist/components/ui/field.js +74 -0
  192. package/dist/components/ui/file-upload-field-parts.d.ts +21 -0
  193. package/dist/components/ui/file-upload-field-parts.js +55 -0
  194. package/dist/components/ui/file-upload-field.d.ts +15 -0
  195. package/dist/components/ui/file-upload-field.js +85 -0
  196. package/dist/components/ui/form-context.d.ts +23 -0
  197. package/dist/components/ui/form-context.js +35 -0
  198. package/dist/components/ui/form.d.ts +12 -0
  199. package/dist/components/ui/form.js +38 -0
  200. package/dist/components/ui/hover-card.d.ts +10 -0
  201. package/dist/components/ui/hover-card.js +22 -0
  202. package/dist/components/ui/input-group.d.ts +16 -0
  203. package/dist/components/ui/input-group.js +62 -0
  204. package/dist/components/ui/input-otp.d.ts +11 -0
  205. package/dist/components/ui/input-otp.js +21 -0
  206. package/dist/components/ui/input.d.ts +3 -0
  207. package/dist/components/ui/input.js +6 -0
  208. package/dist/components/ui/item.d.ts +23 -0
  209. package/dist/components/ui/item.js +66 -0
  210. package/dist/components/ui/kbd.d.ts +3 -0
  211. package/dist/components/ui/kbd.js +9 -0
  212. package/dist/components/ui/label.d.ts +4 -0
  213. package/dist/components/ui/label.js +7 -0
  214. package/dist/components/ui/loading-state.d.ts +27 -0
  215. package/dist/components/ui/loading-state.js +44 -0
  216. package/dist/components/ui/menubar.d.ts +30 -0
  217. package/dist/components/ui/menubar.js +63 -0
  218. package/dist/components/ui/metrics-strip.d.ts +7 -0
  219. package/dist/components/ui/metrics-strip.js +18 -0
  220. package/dist/components/ui/native-select.d.ts +7 -0
  221. package/dist/components/ui/native-select.js +13 -0
  222. package/dist/components/ui/navigation-menu-variants.d.ts +2 -0
  223. package/dist/components/ui/navigation-menu-variants.js +3 -0
  224. package/dist/components/ui/navigation-menu.d.ts +13 -0
  225. package/dist/components/ui/navigation-menu.js +30 -0
  226. package/dist/components/ui/page-header.d.ts +19 -0
  227. package/dist/components/ui/page-header.js +36 -0
  228. package/dist/components/ui/pagination.d.ts +13 -0
  229. package/dist/components/ui/pagination.js +29 -0
  230. package/dist/components/ui/popover.d.ts +14 -0
  231. package/dist/components/ui/popover.js +34 -0
  232. package/dist/components/ui/progress.d.ts +4 -0
  233. package/dist/components/ui/progress.js +8 -0
  234. package/dist/components/ui/property-list.d.ts +6 -0
  235. package/dist/components/ui/property-list.js +15 -0
  236. package/dist/components/ui/radio-group.d.ts +5 -0
  237. package/dist/components/ui/radio-group.js +11 -0
  238. package/dist/components/ui/registry-docs-api.d.ts +11 -0
  239. package/dist/components/ui/registry-docs-api.js +9 -0
  240. package/dist/components/ui/registry-docs-code.d.ts +19 -0
  241. package/dist/components/ui/registry-docs-code.js +78 -0
  242. package/dist/components/ui/registry-docs-showcase.d.ts +11 -0
  243. package/dist/components/ui/registry-docs-showcase.js +27 -0
  244. package/dist/components/ui/registry-docs.d.ts +27 -0
  245. package/dist/components/ui/registry-docs.js +32 -0
  246. package/dist/components/ui/resizable.d.ts +7 -0
  247. package/dist/components/ui/resizable.js +15 -0
  248. package/dist/components/ui/scroll-area.d.ts +7 -0
  249. package/dist/components/ui/scroll-area.js +10 -0
  250. package/dist/components/ui/select.d.ts +15 -0
  251. package/dist/components/ui/select.js +38 -0
  252. package/dist/components/ui/separator.d.ts +4 -0
  253. package/dist/components/ui/separator.js +7 -0
  254. package/dist/components/ui/sheet.d.ts +21 -0
  255. package/dist/components/ui/sheet.js +62 -0
  256. package/dist/components/ui/sidebar/context.d.ts +21 -0
  257. package/dist/components/ui/sidebar/context.js +15 -0
  258. package/dist/components/ui/sidebar/group.d.ts +10 -0
  259. package/dist/components/ui/sidebar/group.js +18 -0
  260. package/dist/components/ui/sidebar/layout.d.ts +17 -0
  261. package/dist/components/ui/sidebar/layout.js +73 -0
  262. package/dist/components/ui/sidebar/menu.d.ts +30 -0
  263. package/dist/components/ui/sidebar/menu.js +64 -0
  264. package/dist/components/ui/sidebar/provider.d.ts +7 -0
  265. package/dist/components/ui/sidebar/provider.js +53 -0
  266. package/dist/components/ui/sidebar/rail.d.ts +3 -0
  267. package/dist/components/ui/sidebar/rail.js +12 -0
  268. package/dist/components/ui/sidebar/trigger.d.ts +4 -0
  269. package/dist/components/ui/sidebar/trigger.js +16 -0
  270. package/dist/components/ui/sidebar-account-menu-theme.d.ts +7 -0
  271. package/dist/components/ui/sidebar-account-menu-theme.js +32 -0
  272. package/dist/components/ui/sidebar-account-menu.d.ts +14 -0
  273. package/dist/components/ui/sidebar-account-menu.js +51 -0
  274. package/dist/components/ui/sidebar.d.ts +7 -0
  275. package/dist/components/ui/sidebar.js +7 -0
  276. package/dist/components/ui/skeleton.d.ts +2 -0
  277. package/dist/components/ui/skeleton.js +15 -0
  278. package/dist/components/ui/slider.d.ts +4 -0
  279. package/dist/components/ui/slider.js +9 -0
  280. package/dist/components/ui/sonner.d.ts +3 -0
  281. package/dist/components/ui/sonner.js +33 -0
  282. package/dist/components/ui/spinner.d.ts +2 -0
  283. package/dist/components/ui/spinner.js +16 -0
  284. package/dist/components/ui/switch.d.ts +6 -0
  285. package/dist/components/ui/switch.js +7 -0
  286. package/dist/components/ui/table.d.ts +10 -0
  287. package/dist/components/ui/table.js +28 -0
  288. package/dist/components/ui/tabs-variants.d.ts +6 -0
  289. package/dist/components/ui/tabs-variants.js +13 -0
  290. package/dist/components/ui/tabs.d.ts +8 -0
  291. package/dist/components/ui/tabs.js +17 -0
  292. package/dist/components/ui/textarea.d.ts +3 -0
  293. package/dist/components/ui/textarea.js +6 -0
  294. package/dist/components/ui/toggle-group.d.ts +9 -0
  295. package/dist/components/ui/toggle-group.js +24 -0
  296. package/dist/components/ui/toggle-variants.d.ts +7 -0
  297. package/dist/components/ui/toggle-variants.js +19 -0
  298. package/dist/components/ui/toggle.d.ts +5 -0
  299. package/dist/components/ui/toggle.js +9 -0
  300. package/dist/components/ui/tooltip.d.ts +11 -0
  301. package/dist/components/ui/tooltip.js +25 -0
  302. package/dist/components/ui/workflow-timeline.d.ts +20 -0
  303. package/dist/components/ui/workflow-timeline.js +92 -0
  304. package/dist/hooks/use-mobile.d.ts +1 -0
  305. package/dist/hooks/use-mobile.js +15 -0
  306. package/dist/lib/utils.d.ts +5 -0
  307. package/dist/lib/utils.js +8 -0
  308. package/dist/styled-system/css/conditions.mjs +36 -0
  309. package/dist/styled-system/css/css.mjs +45 -0
  310. package/dist/styled-system/css/cva.mjs +87 -0
  311. package/dist/styled-system/css/cx.mjs +15 -0
  312. package/dist/styled-system/css/index.mjs +4 -0
  313. package/dist/styled-system/css/sva.mjs +46 -0
  314. package/dist/styled-system/helpers.mjs +316 -0
  315. package/dist/styled-system/patterns/aspect-ratio.mjs +38 -0
  316. package/dist/styled-system/patterns/bleed.mjs +24 -0
  317. package/dist/styled-system/patterns/box.mjs +15 -0
  318. package/dist/styled-system/patterns/center.mjs +21 -0
  319. package/dist/styled-system/patterns/circle.mjs +25 -0
  320. package/dist/styled-system/patterns/container.mjs +21 -0
  321. package/dist/styled-system/patterns/cq.mjs +21 -0
  322. package/dist/styled-system/patterns/divider.mjs +25 -0
  323. package/dist/styled-system/patterns/flex.mjs +26 -0
  324. package/dist/styled-system/patterns/float.mjs +52 -0
  325. package/dist/styled-system/patterns/grid-item.mjs +25 -0
  326. package/dist/styled-system/patterns/grid.mjs +27 -0
  327. package/dist/styled-system/patterns/hstack.mjs +24 -0
  328. package/dist/styled-system/patterns/index.mjs +20 -0
  329. package/dist/styled-system/patterns/link-overlay.mjs +24 -0
  330. package/dist/styled-system/patterns/spacer.mjs +25 -0
  331. package/dist/styled-system/patterns/square.mjs +24 -0
  332. package/dist/styled-system/patterns/stack.mjs +24 -0
  333. package/dist/styled-system/patterns/visually-hidden.mjs +18 -0
  334. package/dist/styled-system/patterns/vstack.mjs +24 -0
  335. package/dist/styled-system/patterns/wrap.mjs +25 -0
  336. package/dist/styled-system/styles.css +1089 -0
  337. package/dist/styled-system/styles.css.d.ts +2 -0
  338. package/dist/styled-system/tokens/index.mjs +2304 -0
  339. package/package.json +688 -0
@@ -0,0 +1,11 @@
1
+ import * as React from "react";
2
+ declare function Breadcrumb({ ...props }: React.ComponentProps<"nav">): import("react/jsx-runtime").JSX.Element;
3
+ declare function BreadcrumbList({ className, ...props }: React.ComponentProps<"ol">): import("react/jsx-runtime").JSX.Element;
4
+ declare function BreadcrumbItem({ className, ...props }: React.ComponentProps<"li">): import("react/jsx-runtime").JSX.Element;
5
+ declare function BreadcrumbLink({ asChild, className, ...props }: React.ComponentProps<"a"> & {
6
+ asChild?: boolean;
7
+ }): import("react/jsx-runtime").JSX.Element;
8
+ declare function BreadcrumbPage({ className, ...props }: React.ComponentProps<"span">): import("react/jsx-runtime").JSX.Element;
9
+ declare function BreadcrumbSeparator({ children, className, ...props }: React.ComponentProps<"li">): import("react/jsx-runtime").JSX.Element;
10
+ declare function BreadcrumbEllipsis({ className, ...props }: React.ComponentProps<"span">): import("react/jsx-runtime").JSX.Element;
11
+ export { Breadcrumb, BreadcrumbList, BreadcrumbItem, BreadcrumbLink, BreadcrumbPage, BreadcrumbSeparator, BreadcrumbEllipsis, };
@@ -0,0 +1,27 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { ChevronRight, MoreHorizontal } from "lucide-react";
3
+ import { Slot } from "radix-ui";
4
+ import { cn } from "@ciridae/ui/utils";
5
+ function Breadcrumb({ ...props }) {
6
+ return _jsx("nav", { "aria-label": "breadcrumb", "data-slot": "breadcrumb", ...props });
7
+ }
8
+ function BreadcrumbList({ className, ...props }) {
9
+ return (_jsx("ol", { "data-slot": "breadcrumb-list", className: cn("flex flex-wrap items-center gap-1.5 text-sm break-words text-muted-foreground sm:gap-2.5", className), ...props }));
10
+ }
11
+ function BreadcrumbItem({ className, ...props }) {
12
+ return (_jsx("li", { "data-slot": "breadcrumb-item", className: cn("inline-flex items-center gap-1.5", className), ...props }));
13
+ }
14
+ function BreadcrumbLink({ asChild, className, ...props }) {
15
+ const Comp = asChild ? Slot.Root : "a";
16
+ return (_jsx(Comp, { "data-slot": "breadcrumb-link", className: cn("transition-colors hover:text-foreground", className), ...props }));
17
+ }
18
+ function BreadcrumbPage({ className, ...props }) {
19
+ return (_jsx("span", { "data-slot": "breadcrumb-page", role: "link", "aria-disabled": "true", "aria-current": "page", className: cn("font-normal text-foreground", className), ...props }));
20
+ }
21
+ function BreadcrumbSeparator({ children, className, ...props }) {
22
+ return (_jsx("li", { "data-slot": "breadcrumb-separator", role: "presentation", "aria-hidden": "true", className: cn("[&>svg]:size-3.5", className), ...props, children: children ?? _jsx(ChevronRight, {}) }));
23
+ }
24
+ function BreadcrumbEllipsis({ className, ...props }) {
25
+ return (_jsxs("span", { "data-slot": "breadcrumb-ellipsis", role: "presentation", "aria-hidden": "true", className: cn("flex size-9 items-center justify-center", className), ...props, children: [_jsx(MoreHorizontal, { className: "size-4" }), _jsx("span", { className: "sr-only", children: "More" })] }));
26
+ }
27
+ export { Breadcrumb, BreadcrumbList, BreadcrumbItem, BreadcrumbLink, BreadcrumbPage, BreadcrumbSeparator, BreadcrumbEllipsis, };
@@ -0,0 +1,6 @@
1
+ import { type VariantProps } from "class-variance-authority";
2
+ declare const buttonGroupVariants: (props?: ({
3
+ orientation?: "horizontal" | "vertical" | null | undefined;
4
+ } & import("class-variance-authority/types").ClassProp) | undefined) => string;
5
+ type ButtonGroupVariantProps = VariantProps<typeof buttonGroupVariants>;
6
+ export { buttonGroupVariants, type ButtonGroupVariantProps };
@@ -0,0 +1,13 @@
1
+ import { cva } from "class-variance-authority";
2
+ const buttonGroupVariants = cva("flex w-fit items-stretch has-[>[data-slot=button-group]]:gap-2 [&>*]:focus-visible:relative [&>*]:focus-visible:z-10 has-[select[aria-hidden=true]:last-child]:[&>[data-slot=select-trigger]:last-of-type]:rounded-r-md [&>[data-slot=select-trigger]:not([class*='w-'])]:w-fit [&>input]:flex-1", {
3
+ variants: {
4
+ orientation: {
5
+ horizontal: "[&>*:not(:first-child)]:rounded-l-none [&>*:not(:first-child)]:border-l-0 [&>*:not(:last-child)]:rounded-r-none",
6
+ vertical: "flex-col [&>*:not(:first-child)]:rounded-t-none [&>*:not(:first-child)]:border-t-0 [&>*:not(:last-child)]:rounded-b-none",
7
+ },
8
+ },
9
+ defaultVariants: {
10
+ orientation: "horizontal",
11
+ },
12
+ });
13
+ export { buttonGroupVariants };
@@ -0,0 +1,8 @@
1
+ import { Separator } from "@ciridae/ui/separator";
2
+ import { type ButtonGroupVariantProps } from "@ciridae/ui/button-group-variants";
3
+ declare function ButtonGroup({ className, orientation, ...props }: React.ComponentProps<"div"> & ButtonGroupVariantProps): import("react/jsx-runtime").JSX.Element;
4
+ declare function ButtonGroupText({ className, asChild, ...props }: React.ComponentProps<"div"> & {
5
+ asChild?: boolean;
6
+ }): import("react/jsx-runtime").JSX.Element;
7
+ declare function ButtonGroupSeparator({ className, orientation, ...props }: React.ComponentProps<typeof Separator>): import("react/jsx-runtime").JSX.Element;
8
+ export { ButtonGroup, ButtonGroupSeparator, ButtonGroupText };
@@ -0,0 +1,16 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { Slot } from "radix-ui";
3
+ import { cn } from "@ciridae/ui/utils";
4
+ import { Separator } from "@ciridae/ui/separator";
5
+ import { buttonGroupVariants, } from "@ciridae/ui/button-group-variants";
6
+ function ButtonGroup({ className, orientation, ...props }) {
7
+ return (_jsx("div", { role: "group", "data-slot": "button-group", "data-orientation": orientation, className: cn(buttonGroupVariants({ orientation }), className), ...props }));
8
+ }
9
+ function ButtonGroupText({ className, asChild = false, ...props }) {
10
+ const Comp = asChild ? Slot.Root : "div";
11
+ return (_jsx(Comp, { className: cn("flex items-center gap-2 rounded-md border bg-muted px-4 text-sm font-medium shadow-xs [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4", className), ...props }));
12
+ }
13
+ function ButtonGroupSeparator({ className, orientation = "vertical", ...props }) {
14
+ return (_jsx(Separator, { "data-slot": "button-group-separator", orientation: orientation, className: cn("relative m-0! self-stretch bg-input data-[orientation=vertical]:h-auto", className), ...props }));
15
+ }
16
+ export { ButtonGroup, ButtonGroupSeparator, ButtonGroupText };
@@ -0,0 +1,133 @@
1
+ import { type RecipeVariantProps } from "@ciridae/ui/styled-system/css";
2
+ declare const buttonVariants: import("../../styled-system/types").RecipeRuntimeFn<{
3
+ variant: {
4
+ default: {
5
+ backgroundColor: "primary";
6
+ color: "primary.foreground";
7
+ "&:hover": {
8
+ backgroundColor: "primary.hover";
9
+ };
10
+ };
11
+ destructive: {
12
+ backgroundColor: "destructive";
13
+ color: "destructive.foreground";
14
+ "&:hover": {
15
+ backgroundColor: "destructive.hover";
16
+ };
17
+ "&:focus-visible": {
18
+ boxShadow: "focus.destructive";
19
+ };
20
+ _dark: {
21
+ "&:focus-visible": {
22
+ boxShadow: "focus.destructive.dark";
23
+ };
24
+ };
25
+ };
26
+ outline: {
27
+ backgroundColor: "background";
28
+ borderColor: "border";
29
+ borderStyle: "solid";
30
+ borderWidth: "default";
31
+ boxShadow: "xs";
32
+ "&:hover": {
33
+ backgroundColor: "accent";
34
+ color: "accent.foreground";
35
+ };
36
+ _dark: {
37
+ backgroundColor: "input.subtle";
38
+ borderColor: "input";
39
+ "&:hover": {
40
+ backgroundColor: "input.hover";
41
+ };
42
+ };
43
+ };
44
+ secondary: {
45
+ backgroundColor: "secondary";
46
+ color: "secondary.foreground";
47
+ "&:hover": {
48
+ backgroundColor: "secondary.hover";
49
+ };
50
+ };
51
+ ghost: {
52
+ "&:hover": {
53
+ backgroundColor: "accent";
54
+ color: "accent.foreground";
55
+ };
56
+ _dark: {
57
+ "&:hover": {
58
+ backgroundColor: "muted.subtle";
59
+ };
60
+ };
61
+ };
62
+ link: {
63
+ color: "primary";
64
+ textUnderlineOffset: "4px";
65
+ "&:hover": {
66
+ textDecorationLine: "underline";
67
+ };
68
+ };
69
+ };
70
+ size: {
71
+ default: {
72
+ height: "control.md";
73
+ paddingInline: "control.padding.x";
74
+ "&:has(> svg)": {
75
+ paddingInline: "control.withIcon.md";
76
+ };
77
+ };
78
+ xs: {
79
+ borderRadius: "md";
80
+ fontSize: "xs";
81
+ gap: "gap.1";
82
+ height: "control.xs";
83
+ lineHeight: "xs";
84
+ paddingInline: "control.padding.xs";
85
+ "&:has(> svg)": {
86
+ paddingInline: "control.withIcon.xs";
87
+ };
88
+ "& svg:not([class*='size-'])": {
89
+ height: "icon.xs";
90
+ width: "icon.xs";
91
+ };
92
+ };
93
+ sm: {
94
+ gap: "gap.1.5";
95
+ height: "control.sm";
96
+ paddingInline: "control.padding.sm";
97
+ "&:has(> svg)": {
98
+ paddingInline: "control.withIcon.sm";
99
+ };
100
+ };
101
+ lg: {
102
+ borderRadius: "md";
103
+ height: "control.lg";
104
+ paddingInline: "control.padding.lg";
105
+ "&:has(> svg)": {
106
+ paddingInline: "control.withIcon.lg";
107
+ };
108
+ };
109
+ icon: {
110
+ height: "control.md";
111
+ width: "control.md";
112
+ };
113
+ "icon-xs": {
114
+ borderRadius: "md";
115
+ height: "control.xs";
116
+ width: "control.xs";
117
+ "& svg:not([class*='size-'])": {
118
+ height: "icon.xs";
119
+ width: "icon.xs";
120
+ };
121
+ };
122
+ "icon-sm": {
123
+ height: "control.sm";
124
+ width: "control.sm";
125
+ };
126
+ "icon-lg": {
127
+ height: "control.lg";
128
+ width: "control.lg";
129
+ };
130
+ };
131
+ }>;
132
+ type ButtonVariantProps = RecipeVariantProps<typeof buttonVariants>;
133
+ export { buttonVariants, type ButtonVariantProps };
@@ -0,0 +1,170 @@
1
+ import { cva } from "@ciridae/ui/styled-system/css";
2
+ const buttonVariants = cva({
3
+ base: {
4
+ alignItems: "center",
5
+ borderRadius: "md",
6
+ display: "inline-flex",
7
+ flexShrink: 0,
8
+ fontSize: "sm",
9
+ fontWeight: "control",
10
+ gap: "control.gap",
11
+ justifyContent: "center",
12
+ lineHeight: "sm",
13
+ outline: "none",
14
+ transitionProperty: "all",
15
+ transitionDuration: "fast",
16
+ transitionTimingFunction: "standard",
17
+ whiteSpace: "nowrap",
18
+ "&:focus-visible": {
19
+ borderColor: "ring",
20
+ boxShadow: "focus",
21
+ },
22
+ "&:disabled": {
23
+ opacity: 0.5,
24
+ pointerEvents: "none",
25
+ },
26
+ "&[aria-invalid='true']": {
27
+ borderColor: "destructive",
28
+ boxShadow: "focus.destructive",
29
+ },
30
+ _dark: {
31
+ "&[aria-invalid='true']": {
32
+ boxShadow: "focus.destructive.dark",
33
+ },
34
+ },
35
+ "&[data-loading='true'] > svg:not([data-slot='spinner'])": {
36
+ display: "none",
37
+ },
38
+ "& svg": {
39
+ flexShrink: 0,
40
+ pointerEvents: "none",
41
+ },
42
+ "& svg:not([class*='size-'])": {
43
+ height: "icon.sm",
44
+ width: "icon.sm",
45
+ },
46
+ },
47
+ variants: {
48
+ variant: {
49
+ default: {
50
+ backgroundColor: "primary",
51
+ color: "primary.foreground",
52
+ "&:hover": { backgroundColor: "primary.hover" },
53
+ },
54
+ destructive: {
55
+ backgroundColor: "destructive",
56
+ color: "destructive.foreground",
57
+ "&:hover": {
58
+ backgroundColor: "destructive.hover",
59
+ },
60
+ "&:focus-visible": {
61
+ boxShadow: "focus.destructive",
62
+ },
63
+ _dark: {
64
+ "&:focus-visible": {
65
+ boxShadow: "focus.destructive.dark",
66
+ },
67
+ },
68
+ },
69
+ outline: {
70
+ backgroundColor: "background",
71
+ borderColor: "border",
72
+ borderStyle: "solid",
73
+ borderWidth: "default",
74
+ boxShadow: "xs",
75
+ "&:hover": {
76
+ backgroundColor: "accent",
77
+ color: "accent.foreground",
78
+ },
79
+ _dark: {
80
+ backgroundColor: "input.subtle",
81
+ borderColor: "input",
82
+ "&:hover": {
83
+ backgroundColor: "input.hover",
84
+ },
85
+ },
86
+ },
87
+ secondary: {
88
+ backgroundColor: "secondary",
89
+ color: "secondary.foreground",
90
+ "&:hover": {
91
+ backgroundColor: "secondary.hover",
92
+ },
93
+ },
94
+ ghost: {
95
+ "&:hover": {
96
+ backgroundColor: "accent",
97
+ color: "accent.foreground",
98
+ },
99
+ _dark: {
100
+ "&:hover": {
101
+ backgroundColor: "muted.subtle",
102
+ },
103
+ },
104
+ },
105
+ link: {
106
+ color: "primary",
107
+ textUnderlineOffset: "4px",
108
+ "&:hover": { textDecorationLine: "underline" },
109
+ },
110
+ },
111
+ size: {
112
+ default: {
113
+ height: "control.md",
114
+ paddingInline: "control.padding.x",
115
+ "&:has(> svg)": { paddingInline: "control.withIcon.md" },
116
+ },
117
+ xs: {
118
+ borderRadius: "md",
119
+ fontSize: "xs",
120
+ gap: "gap.1",
121
+ height: "control.xs",
122
+ lineHeight: "xs",
123
+ paddingInline: "control.padding.xs",
124
+ "&:has(> svg)": { paddingInline: "control.withIcon.xs" },
125
+ "& svg:not([class*='size-'])": {
126
+ height: "icon.xs",
127
+ width: "icon.xs",
128
+ },
129
+ },
130
+ sm: {
131
+ gap: "gap.1.5",
132
+ height: "control.sm",
133
+ paddingInline: "control.padding.sm",
134
+ "&:has(> svg)": { paddingInline: "control.withIcon.sm" },
135
+ },
136
+ lg: {
137
+ borderRadius: "md",
138
+ height: "control.lg",
139
+ paddingInline: "control.padding.lg",
140
+ "&:has(> svg)": { paddingInline: "control.withIcon.lg" },
141
+ },
142
+ icon: {
143
+ height: "control.md",
144
+ width: "control.md",
145
+ },
146
+ "icon-xs": {
147
+ borderRadius: "md",
148
+ height: "control.xs",
149
+ width: "control.xs",
150
+ "& svg:not([class*='size-'])": {
151
+ height: "icon.xs",
152
+ width: "icon.xs",
153
+ },
154
+ },
155
+ "icon-sm": {
156
+ height: "control.sm",
157
+ width: "control.sm",
158
+ },
159
+ "icon-lg": {
160
+ height: "control.lg",
161
+ width: "control.lg",
162
+ },
163
+ },
164
+ },
165
+ defaultVariants: {
166
+ variant: "default",
167
+ size: "default",
168
+ },
169
+ });
170
+ export { buttonVariants };
@@ -0,0 +1,8 @@
1
+ import * as React from "react";
2
+ import { type ButtonVariantProps } from "@ciridae/ui/button-variants";
3
+ declare function Button({ children, className, variant, size, asChild, disabled, loading, loadingLabel, onClick, tabIndex, ...props }: React.ComponentProps<"button"> & ButtonVariantProps & {
4
+ asChild?: boolean;
5
+ loading?: boolean;
6
+ loadingLabel?: string;
7
+ }): import("react/jsx-runtime").JSX.Element;
8
+ export { Button };
@@ -0,0 +1,67 @@
1
+ import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { Slot } from "radix-ui";
3
+ import { cn } from "@ciridae/ui/utils";
4
+ import { buttonVariants } from "@ciridae/ui/button-variants";
5
+ import { Spinner } from "@ciridae/ui/spinner";
6
+ function Button({ children, className, variant = "default", size = "default", asChild = false, disabled, loading = false, loadingLabel = "Loading", onClick, tabIndex, ...props }) {
7
+ const Comp = asChild ? Slot.Root : "button";
8
+ const isDisabled = disabled || loading;
9
+ return (_jsx(Comp, { ...props, "data-slot": "button", "data-variant": variant, "data-size": size, "data-loading": getDataLoading(loading), "aria-busy": getAriaBusy(loading), "aria-disabled": getAriaDisabled(asChild, isDisabled), className: cn(buttonVariants({ variant, size }), className, getDisabledChildClass(asChild, isDisabled)), disabled: getDisabled(asChild, isDisabled), onClick: getClickHandler(asChild, isDisabled, onClick), tabIndex: getTabIndex(asChild, isDisabled, tabIndex), children: _jsx(ButtonChildren, { asChild: asChild, loading: loading, loadingLabel: loadingLabel, children: children }) }));
10
+ }
11
+ function ButtonChildren({ asChild, children, loading, loadingLabel, }) {
12
+ return (_jsxs(_Fragment, { children: [_jsx(ButtonLoadingIcon, { loading: loading }), _jsx(ButtonContent, { asChild: asChild, children: children }), _jsx(ButtonLoadingLabel, { label: loadingLabel, loading: loading })] }));
13
+ }
14
+ function ButtonLoadingIcon({ loading }) {
15
+ if (!loading)
16
+ return null;
17
+ return _jsx(Spinner, { "aria-hidden": "true", className: "shrink-0" });
18
+ }
19
+ function ButtonContent({ asChild, children }) {
20
+ if (asChild)
21
+ return _jsx(Slot.Slottable, { children: children });
22
+ return _jsx(_Fragment, { children: children });
23
+ }
24
+ function ButtonLoadingLabel({ label, loading }) {
25
+ if (!loading)
26
+ return null;
27
+ return _jsx("span", { className: "sr-only", children: label });
28
+ }
29
+ function getDataLoading(loading) {
30
+ if (!loading)
31
+ return undefined;
32
+ return "true";
33
+ }
34
+ function getAriaBusy(loading) {
35
+ if (!loading)
36
+ return undefined;
37
+ return true;
38
+ }
39
+ function getAriaDisabled(asChild, isDisabled) {
40
+ if (!asChild || !isDisabled)
41
+ return undefined;
42
+ return true;
43
+ }
44
+ function getDisabled(asChild, isDisabled) {
45
+ if (asChild)
46
+ return undefined;
47
+ return isDisabled;
48
+ }
49
+ function getDisabledChildClass(asChild, isDisabled) {
50
+ if (!asChild || !isDisabled)
51
+ return undefined;
52
+ return "pointer-events-none";
53
+ }
54
+ function getClickHandler(asChild, isDisabled, onClick) {
55
+ if (!asChild || !isDisabled)
56
+ return onClick;
57
+ return (event) => {
58
+ event.preventDefault();
59
+ event.stopPropagation();
60
+ };
61
+ }
62
+ function getTabIndex(asChild, isDisabled, tabIndex) {
63
+ if (!asChild || !isDisabled)
64
+ return tabIndex;
65
+ return -1;
66
+ }
67
+ export { Button };
@@ -0,0 +1,9 @@
1
+ import * as React from "react";
2
+ import { DayPicker, type DayButton } from "react-day-picker";
3
+ import { Button } from "@ciridae/ui/button";
4
+ type CalendarProps = React.ComponentProps<typeof DayPicker> & {
5
+ buttonVariant?: React.ComponentProps<typeof Button>["variant"];
6
+ };
7
+ declare function Calendar({ className, classNames, showOutsideDays, captionLayout, buttonVariant, formatters, components, ...props }: CalendarProps): import("react/jsx-runtime").JSX.Element;
8
+ declare function CalendarDayButton({ className, day, modifiers, ...props }: React.ComponentProps<typeof DayButton>): import("react/jsx-runtime").JSX.Element;
9
+ export { Calendar, CalendarDayButton };
@@ -0,0 +1,99 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import * as React from "react";
3
+ import { ChevronDownIcon, ChevronLeftIcon, ChevronRightIcon } from "lucide-react";
4
+ import { DayPicker, getDefaultClassNames } from "react-day-picker";
5
+ import { cn } from "@ciridae/ui/utils";
6
+ import { Button } from "@ciridae/ui/button";
7
+ import { buttonVariants } from "@ciridae/ui/button-variants";
8
+ function Calendar({ className, classNames, showOutsideDays = true, captionLayout = "label", buttonVariant = "ghost", formatters, components, ...props }) {
9
+ const defaultClassNames = getDefaultClassNames();
10
+ const mergedClassNames = getCalendarClassNames({
11
+ buttonVariant,
12
+ captionLayout,
13
+ classNames,
14
+ defaultClassNames,
15
+ showWeekNumber: props.showWeekNumber,
16
+ });
17
+ return (_jsx(DayPicker, { showOutsideDays: showOutsideDays, className: cn("group/calendar bg-background p-3 [--cell-size:--spacing(8)] [[data-slot=card-content]_&]:bg-transparent [[data-slot=popover-content]_&]:bg-transparent", String.raw `rtl:**:[.rdp-button\_next>svg]:rotate-180`, String.raw `rtl:**:[.rdp-button\_previous>svg]:rotate-180`, className), captionLayout: captionLayout, formatters: {
18
+ formatMonthDropdown: (date) => date.toLocaleString("default", { month: "short" }),
19
+ ...formatters,
20
+ }, classNames: mergedClassNames, components: {
21
+ Root: CalendarRoot,
22
+ Chevron: CalendarChevron,
23
+ DayButton: CalendarDayButton,
24
+ WeekNumber: CalendarWeekNumber,
25
+ ...components,
26
+ }, ...props }));
27
+ }
28
+ function getCalendarClassNames({ buttonVariant, captionLayout, classNames, defaultClassNames, showWeekNumber, }) {
29
+ return {
30
+ ...getCalendarStructureClassNames({ buttonVariant, captionLayout, defaultClassNames }),
31
+ ...getCalendarDayClassNames({ defaultClassNames, showWeekNumber }),
32
+ ...classNames,
33
+ };
34
+ }
35
+ function getCalendarStructureClassNames({ buttonVariant, captionLayout, defaultClassNames, }) {
36
+ return {
37
+ root: cn("w-fit", defaultClassNames.root),
38
+ months: cn("relative flex flex-col gap-4 md:flex-row", defaultClassNames.months),
39
+ month: cn("flex w-full flex-col gap-4", defaultClassNames.month),
40
+ nav: cn("absolute inset-x-0 top-0 flex w-full items-center justify-between gap-1", defaultClassNames.nav),
41
+ button_previous: cn(buttonVariants({ variant: buttonVariant }), "size-(--cell-size) p-0 select-none aria-disabled:opacity-50", defaultClassNames.button_previous),
42
+ button_next: cn(buttonVariants({ variant: buttonVariant }), "size-(--cell-size) p-0 select-none aria-disabled:opacity-50", defaultClassNames.button_next),
43
+ month_caption: cn("flex h-(--cell-size) w-full items-center justify-center px-(--cell-size)", defaultClassNames.month_caption),
44
+ dropdowns: cn("flex h-(--cell-size) w-full items-center justify-center gap-1.5 text-sm font-medium", defaultClassNames.dropdowns),
45
+ dropdown_root: cn("relative rounded-md border border-input shadow-xs has-focus:border-ring has-focus:ring-[var(--focus-ring-width)] has-focus:ring-ring/50", defaultClassNames.dropdown_root),
46
+ dropdown: cn("absolute inset-0 bg-popover opacity-0", defaultClassNames.dropdown),
47
+ caption_label: cn("font-medium select-none", captionLayout === "label"
48
+ ? "text-sm"
49
+ : "flex h-8 items-center gap-1 rounded-md pr-1 pl-2 text-sm [&>svg]:size-3.5 [&>svg]:text-muted-foreground", defaultClassNames.caption_label),
50
+ table: "w-full border-collapse",
51
+ weekdays: cn("flex", defaultClassNames.weekdays),
52
+ weekday: cn("flex-1 rounded-md text-[0.8rem] font-normal text-muted-foreground select-none", defaultClassNames.weekday),
53
+ };
54
+ }
55
+ function getCalendarDayClassNames({ defaultClassNames, showWeekNumber, }) {
56
+ return {
57
+ week: cn("mt-2 flex w-full", defaultClassNames.week),
58
+ week_number_header: cn("w-(--cell-size) select-none", defaultClassNames.week_number_header),
59
+ week_number: cn("text-[0.8rem] text-muted-foreground select-none", defaultClassNames.week_number),
60
+ day: cn("group/day relative aspect-square h-full w-full p-0 text-center select-none [&:last-child[data-selected=true]_button]:rounded-r-md", showWeekNumber
61
+ ? "[&:nth-child(2)[data-selected=true]_button]:rounded-l-md"
62
+ : "[&:first-child[data-selected=true]_button]:rounded-l-md", defaultClassNames.day),
63
+ range_start: cn("rounded-l-md bg-accent", defaultClassNames.range_start),
64
+ range_middle: cn("rounded-none", defaultClassNames.range_middle),
65
+ range_end: cn("rounded-r-md bg-accent", defaultClassNames.range_end),
66
+ today: cn("rounded-md bg-accent text-accent-foreground data-[selected=true]:rounded-none", defaultClassNames.today),
67
+ outside: cn("text-muted-foreground aria-selected:text-muted-foreground", defaultClassNames.outside),
68
+ disabled: cn("text-muted-foreground opacity-50", defaultClassNames.disabled),
69
+ hidden: cn("invisible", defaultClassNames.hidden),
70
+ };
71
+ }
72
+ function CalendarRoot({ className, rootRef, ...props }) {
73
+ return _jsx("div", { "data-slot": "calendar", ref: rootRef, className: cn(className), ...props });
74
+ }
75
+ function CalendarChevron({ className, orientation, ...props }) {
76
+ if (orientation === "left") {
77
+ return _jsx(ChevronLeftIcon, { className: cn("size-4", className), ...props });
78
+ }
79
+ if (orientation === "right") {
80
+ return _jsx(ChevronRightIcon, { className: cn("size-4", className), ...props });
81
+ }
82
+ return _jsx(ChevronDownIcon, { className: cn("size-4", className), ...props });
83
+ }
84
+ function CalendarWeekNumber({ children, ...props }) {
85
+ return (_jsx("td", { ...props, children: _jsx("div", { className: "flex size-(--cell-size) items-center justify-center text-center", children: children }) }));
86
+ }
87
+ function CalendarDayButton({ className, day, modifiers, ...props }) {
88
+ const defaultClassNames = getDefaultClassNames();
89
+ const ref = React.useRef(null);
90
+ React.useEffect(() => {
91
+ if (modifiers.focused)
92
+ ref.current?.focus({ preventScroll: true });
93
+ }, [modifiers.focused]);
94
+ return (_jsx(Button, { ref: ref, variant: "ghost", size: "icon", "data-day": day.date.toLocaleDateString(), "data-selected-single": modifiers.selected &&
95
+ !modifiers.range_start &&
96
+ !modifiers.range_end &&
97
+ !modifiers.range_middle, "data-range-start": modifiers.range_start, "data-range-end": modifiers.range_end, "data-range-middle": modifiers.range_middle, className: cn("flex aspect-square size-auto w-full min-w-(--cell-size) flex-col gap-1 leading-none font-normal group-data-[focused=true]/day:relative group-data-[focused=true]/day:z-10 group-data-[focused=true]/day:border-ring group-data-[focused=true]/day:ring-[var(--focus-ring-width)] group-data-[focused=true]/day:ring-ring/50 data-[range-end=true]:rounded-md data-[range-end=true]:rounded-r-md data-[range-end=true]:bg-primary data-[range-end=true]:text-primary-foreground data-[range-middle=true]:rounded-none data-[range-middle=true]:bg-accent data-[range-middle=true]:text-accent-foreground data-[range-start=true]:rounded-md data-[range-start=true]:rounded-l-md data-[range-start=true]:bg-primary data-[range-start=true]:text-primary-foreground data-[selected-single=true]:bg-primary data-[selected-single=true]:text-primary-foreground dark:hover:text-accent-foreground [&>span]:text-xs [&>span]:opacity-70", defaultClassNames.day, className), ...props }));
98
+ }
99
+ export { Calendar, CalendarDayButton };
@@ -0,0 +1,14 @@
1
+ import * as React from "react";
2
+ type CardVariant = "section" | "surface";
3
+ type CardProps = React.ComponentProps<"div"> & {
4
+ variant?: CardVariant;
5
+ };
6
+ declare function Card({ className, variant, ...props }: CardProps): import("react/jsx-runtime").JSX.Element;
7
+ declare function CardHeader({ className, ...props }: React.ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
8
+ declare function CardTitle({ className, ...props }: React.ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
9
+ declare function CardDescription({ className, ...props }: React.ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
10
+ declare function CardAction({ className, ...props }: React.ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
11
+ declare function CardContent({ className, ...props }: React.ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
12
+ declare function CardFooter({ className, ...props }: React.ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
13
+ export { Card, CardHeader, CardFooter, CardTitle, CardAction, CardDescription, CardContent };
14
+ export type { CardProps, CardVariant };
@@ -0,0 +1,28 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { cn } from "@ciridae/ui/utils";
3
+ const cardVariants = {
4
+ section: "bg-transparent py-(--panel-padding) text-foreground shadow-none",
5
+ surface: "rounded-lg border bg-card py-(--panel-padding) text-card-foreground shadow-xs",
6
+ };
7
+ function Card({ className, variant = "surface", ...props }) {
8
+ return (_jsx("div", { "data-slot": "card", "data-variant": variant, className: cn("group/card flex flex-col gap-(--panel-gap)", cardVariants[variant], className), ...props }));
9
+ }
10
+ function CardHeader({ className, ...props }) {
11
+ return (_jsx("div", { "data-slot": "card-header", className: cn("@container/card-header grid auto-rows-min grid-rows-[auto_auto] items-start gap-2 has-data-[slot=card-action]:grid-cols-[1fr_auto] group-data-[variant=surface]/card:px-(--panel-padding) [.border-b]:pb-(--panel-padding)", className), ...props }));
12
+ }
13
+ function CardTitle({ className, ...props }) {
14
+ return (_jsx("div", { "data-slot": "card-title", className: cn("leading-none font-medium", className), ...props }));
15
+ }
16
+ function CardDescription({ className, ...props }) {
17
+ return (_jsx("div", { "data-slot": "card-description", className: cn("text-sm text-muted-foreground", className), ...props }));
18
+ }
19
+ function CardAction({ className, ...props }) {
20
+ return (_jsx("div", { "data-slot": "card-action", className: cn("col-start-2 row-span-2 row-start-1 self-start justify-self-end", className), ...props }));
21
+ }
22
+ function CardContent({ className, ...props }) {
23
+ return (_jsx("div", { "data-slot": "card-content", className: cn("group-data-[variant=surface]/card:px-(--panel-padding)", className), ...props }));
24
+ }
25
+ function CardFooter({ className, ...props }) {
26
+ return (_jsx("div", { "data-slot": "card-footer", className: cn("flex items-center group-data-[variant=surface]/card:px-(--panel-padding) [.border-t]:pt-(--panel-padding)", className), ...props }));
27
+ }
28
+ export { Card, CardHeader, CardFooter, CardTitle, CardAction, CardDescription, CardContent };
@@ -0,0 +1,19 @@
1
+ import * as React from "react";
2
+ import useEmblaCarousel, { type UseEmblaCarouselType } from "embla-carousel-react";
3
+ import { Button } from "@ciridae/ui/button";
4
+ type CarouselApi = UseEmblaCarouselType[1];
5
+ type UseCarouselParameters = Parameters<typeof useEmblaCarousel>;
6
+ type CarouselOptions = UseCarouselParameters[0];
7
+ type CarouselPlugin = UseCarouselParameters[1];
8
+ type CarouselProps = {
9
+ opts?: CarouselOptions;
10
+ plugins?: CarouselPlugin;
11
+ orientation?: "horizontal" | "vertical";
12
+ setApi?: (api: CarouselApi) => void;
13
+ };
14
+ declare function Carousel({ orientation, opts, setApi, plugins, className, children, ...props }: React.ComponentProps<"div"> & CarouselProps): import("react/jsx-runtime").JSX.Element;
15
+ declare function CarouselContent({ className, ...props }: React.ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
16
+ declare function CarouselItem({ className, ...props }: React.ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
17
+ declare function CarouselPrevious({ className, variant, size, ...props }: React.ComponentProps<typeof Button>): import("react/jsx-runtime").JSX.Element;
18
+ declare function CarouselNext({ className, variant, size, ...props }: React.ComponentProps<typeof Button>): import("react/jsx-runtime").JSX.Element;
19
+ export { type CarouselApi, Carousel, CarouselContent, CarouselItem, CarouselPrevious, CarouselNext };