@vuer-ai/vuer-uikit 0.0.96 → 0.0.98

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 (341) hide show
  1. package/README.md +106 -7
  2. package/cli/dial-cli.js +49 -7
  3. package/dist/SyncScroll/SyncScroll.cjs +10 -10
  4. package/dist/SyncScroll/SyncScroll.mjs +3 -3
  5. package/dist/SyncScroll/index.cjs +10 -10
  6. package/dist/SyncScroll/index.mjs +3 -3
  7. package/dist/chunk-3HEZVWRW.mjs +62 -0
  8. package/dist/chunk-4KWGGESI.cjs +494 -0
  9. package/dist/{chunk-CCMKL2OA.cjs → chunk-7GWDO25E.cjs} +2 -2
  10. package/dist/chunk-A5LCX2UQ.cjs +208 -0
  11. package/dist/chunk-BEJIZ56L.mjs +300 -0
  12. package/dist/chunk-C7VGRU3O.mjs +283 -0
  13. package/dist/{chunk-LONOMMFA.cjs → chunk-LJMNHTTG.cjs} +21 -21
  14. package/dist/chunk-O66RESRR.cjs +285 -0
  15. package/dist/{chunk-RINTUFYQ.cjs → chunk-RMK6W774.cjs} +24 -19
  16. package/dist/{chunk-BFQ2WL5U.mjs → chunk-TTYSYGVE.mjs} +2 -2
  17. package/dist/chunk-VA3PEYFM.mjs +489 -0
  18. package/dist/chunk-VBBJSIY7.cjs +308 -0
  19. package/dist/{chunk-AIINOWEH.mjs → chunk-W4JCKCW7.mjs} +5 -5
  20. package/dist/chunk-WWGF6TBZ.mjs +206 -0
  21. package/dist/chunk-ZGN4UEJR.cjs +679 -0
  22. package/dist/chunk-ZQLRMOUW.mjs +661 -0
  23. package/dist/dial/DialPanel.cjs +24 -24
  24. package/dist/dial/DialPanel.mjs +23 -23
  25. package/dist/dial/DialProvider.cjs +3 -3
  26. package/dist/dial/DialProvider.d.cts +1 -0
  27. package/dist/dial/DialProvider.d.ts +1 -0
  28. package/dist/dial/DialProvider.example.cjs +72 -0
  29. package/dist/dial/DialProvider.example.d.cts +7 -0
  30. package/dist/dial/DialProvider.example.d.ts +7 -0
  31. package/dist/dial/DialProvider.example.mjs +68 -0
  32. package/dist/dial/DialProvider.mjs +1 -1
  33. package/dist/dial/index.cjs +42 -42
  34. package/dist/dial/index.mjs +23 -23
  35. package/dist/dial/wrapped-inputs/ControlledInputs.cjs +27 -27
  36. package/dist/dial/wrapped-inputs/ControlledInputs.mjs +23 -23
  37. package/dist/dial/wrapped-inputs/DialInputs.cjs +34 -34
  38. package/dist/dial/wrapped-inputs/DialInputs.mjs +23 -23
  39. package/dist/dial/wrapped-inputs/DialVectorInput.cjs +24 -24
  40. package/dist/dial/wrapped-inputs/DialVectorInput.mjs +23 -23
  41. package/dist/dial/wrapped-inputs/index.cjs +39 -39
  42. package/dist/dial/wrapped-inputs/index.mjs +23 -23
  43. package/dist/highlight-cursor/cursor-provider.cjs +3 -3
  44. package/dist/highlight-cursor/cursor-provider.mjs +2 -2
  45. package/dist/highlight-cursor/enhanced-components.cjs +10 -10
  46. package/dist/highlight-cursor/enhanced-components.mjs +5 -5
  47. package/dist/highlight-cursor/index.cjs +16 -16
  48. package/dist/highlight-cursor/index.mjs +6 -6
  49. package/dist/hooks/index.cjs +5 -5
  50. package/dist/hooks/index.mjs +1 -1
  51. package/dist/index.cjs +190 -190
  52. package/dist/index.mjs +23 -23
  53. package/dist/ui/UIKitBadge.cjs +6 -6
  54. package/dist/ui/UIKitBadge.mjs +2 -2
  55. package/dist/ui/avatar.cjs +1 -1
  56. package/dist/ui/avatar.mjs +1 -1
  57. package/dist/ui/badge.cjs +1 -1
  58. package/dist/ui/badge.d.cts +1 -1
  59. package/dist/ui/badge.d.ts +1 -1
  60. package/dist/ui/badge.mjs +1 -1
  61. package/dist/ui/button.cjs +1 -1
  62. package/dist/ui/button.mjs +1 -1
  63. package/dist/ui/card.cjs +1 -1
  64. package/dist/ui/card.mjs +1 -1
  65. package/dist/ui/checkbox.cjs +1 -1
  66. package/dist/ui/checkbox.mjs +1 -1
  67. package/dist/ui/collapsible.cjs +1 -1
  68. package/dist/ui/collapsible.mjs +1 -1
  69. package/dist/ui/drawer.cjs +1 -1
  70. package/dist/ui/drawer.mjs +1 -1
  71. package/dist/ui/dropdown.cjs +1 -1
  72. package/dist/ui/dropdown.mjs +1 -1
  73. package/dist/ui/index.cjs +107 -107
  74. package/dist/ui/index.mjs +17 -17
  75. package/dist/ui/inputs/color-input.cjs +1 -1
  76. package/dist/ui/inputs/color-input.mjs +1 -1
  77. package/dist/ui/inputs/index.cjs +11 -11
  78. package/dist/ui/inputs/index.mjs +3 -3
  79. package/dist/ui/inputs/input-numbers.cjs +1 -1
  80. package/dist/ui/inputs/input-numbers.mjs +1 -1
  81. package/dist/ui/inputs/input.cjs +1 -1
  82. package/dist/ui/inputs/input.d.cts +1 -1
  83. package/dist/ui/inputs/input.d.ts +1 -1
  84. package/dist/ui/inputs/input.mjs +1 -1
  85. package/dist/ui/inputs/number-inputs/CmInput.cjs +1 -1
  86. package/dist/ui/inputs/number-inputs/CmInput.mjs +1 -1
  87. package/dist/ui/inputs/number-inputs/DegInput.cjs +1 -1
  88. package/dist/ui/inputs/number-inputs/DegInput.mjs +1 -1
  89. package/dist/ui/inputs/number-inputs/EulerDegInput.cjs +1 -1
  90. package/dist/ui/inputs/number-inputs/EulerDegInput.mjs +1 -1
  91. package/dist/ui/inputs/number-inputs/EulerInput.cjs +1 -1
  92. package/dist/ui/inputs/number-inputs/EulerInput.mjs +1 -1
  93. package/dist/ui/inputs/number-inputs/EulerRadInput.cjs +1 -1
  94. package/dist/ui/inputs/number-inputs/EulerRadInput.mjs +1 -1
  95. package/dist/ui/inputs/number-inputs/InchInput.cjs +1 -1
  96. package/dist/ui/inputs/number-inputs/InchInput.mjs +1 -1
  97. package/dist/ui/inputs/number-inputs/IntInput.cjs +1 -1
  98. package/dist/ui/inputs/number-inputs/IntInput.mjs +1 -1
  99. package/dist/ui/inputs/number-inputs/KVectorInput.cjs +1 -1
  100. package/dist/ui/inputs/number-inputs/KVectorInput.mjs +1 -1
  101. package/dist/ui/inputs/number-inputs/QuaternionInput.cjs +1 -1
  102. package/dist/ui/inputs/number-inputs/QuaternionInput.mjs +1 -1
  103. package/dist/ui/inputs/number-inputs/RadInput.cjs +1 -1
  104. package/dist/ui/inputs/number-inputs/RadInput.mjs +1 -1
  105. package/dist/ui/inputs/number-inputs/TimeInput.cjs +1 -1
  106. package/dist/ui/inputs/number-inputs/TimeInput.mjs +1 -1
  107. package/dist/ui/inputs/number-inputs/Vec3Input.cjs +1 -1
  108. package/dist/ui/inputs/number-inputs/Vec3Input.mjs +1 -1
  109. package/dist/ui/inputs/number-inputs/VectorInput.cjs +1 -1
  110. package/dist/ui/inputs/number-inputs/VectorInput.mjs +1 -1
  111. package/dist/ui/inputs/number-inputs/index.cjs +11 -11
  112. package/dist/ui/inputs/number-inputs/index.mjs +3 -3
  113. package/dist/ui/inputs/presets-input.cjs +1 -1
  114. package/dist/ui/inputs/presets-input.mjs +1 -1
  115. package/dist/ui/label.cjs +1 -1
  116. package/dist/ui/label.mjs +1 -1
  117. package/dist/ui/layout.cjs +1 -1
  118. package/dist/ui/layout.mjs +1 -1
  119. package/dist/ui/layouts/dock-layout/DockLayoutView.cjs +1 -1
  120. package/dist/ui/layouts/dock-layout/DockLayoutView.mjs +1 -1
  121. package/dist/ui/layouts/dock-layout/LayoutSlots.cjs +1 -1
  122. package/dist/ui/layouts/dock-layout/LayoutSlots.mjs +1 -1
  123. package/dist/ui/layouts/dock-layout/index.cjs +1 -1
  124. package/dist/ui/layouts/dock-layout/index.mjs +1 -1
  125. package/dist/ui/layouts/index.cjs +2 -2
  126. package/dist/ui/layouts/index.mjs +2 -2
  127. package/dist/ui/layouts/liquid-layout/LayoutSlots.cjs +1 -1
  128. package/dist/ui/layouts/liquid-layout/LayoutSlots.mjs +1 -1
  129. package/dist/ui/layouts/liquid-layout/LiquidLayoutView.cjs +1 -1
  130. package/dist/ui/layouts/liquid-layout/LiquidLayoutView.mjs +1 -1
  131. package/dist/ui/layouts/liquid-layout/index.cjs +1 -1
  132. package/dist/ui/layouts/liquid-layout/index.mjs +1 -1
  133. package/dist/ui/modal.cjs +1 -1
  134. package/dist/ui/modal.mjs +1 -1
  135. package/dist/ui/navigation.cjs +1 -1
  136. package/dist/ui/navigation.mjs +1 -1
  137. package/dist/ui/pagination.cjs +1 -1
  138. package/dist/ui/pagination.mjs +1 -1
  139. package/dist/ui/panel.cjs +1 -1
  140. package/dist/ui/panel.mjs +1 -1
  141. package/dist/ui/popover.cjs +1 -1
  142. package/dist/ui/popover.mjs +1 -1
  143. package/dist/ui/radio-group.cjs +1 -1
  144. package/dist/ui/radio-group.mjs +1 -1
  145. package/dist/ui/resizable.cjs +1 -1
  146. package/dist/ui/resizable.mjs +1 -1
  147. package/dist/ui/select.cjs +1 -1
  148. package/dist/ui/select.d.cts +1 -1
  149. package/dist/ui/select.d.ts +1 -1
  150. package/dist/ui/select.mjs +1 -1
  151. package/dist/ui/separator.cjs +1 -1
  152. package/dist/ui/separator.mjs +1 -1
  153. package/dist/ui/sheet.cjs +1 -1
  154. package/dist/ui/sheet.mjs +1 -1
  155. package/dist/ui/sidebar.cjs +26 -26
  156. package/dist/ui/sidebar.mjs +2 -2
  157. package/dist/ui/simple-tree-view.cjs +1 -1
  158. package/dist/ui/simple-tree-view.mjs +1 -1
  159. package/dist/ui/skeleton.cjs +1 -1
  160. package/dist/ui/skeleton.mjs +1 -1
  161. package/dist/ui/slider.cjs +1 -1
  162. package/dist/ui/slider.mjs +1 -1
  163. package/dist/ui/switch.cjs +1 -1
  164. package/dist/ui/switch.mjs +1 -1
  165. package/dist/ui/table.cjs +1 -1
  166. package/dist/ui/table.mjs +1 -1
  167. package/dist/ui/tabs.cjs +1 -1
  168. package/dist/ui/tabs.mjs +1 -1
  169. package/dist/ui/textarea.cjs +1 -1
  170. package/dist/ui/textarea.d.cts +1 -1
  171. package/dist/ui/textarea.d.ts +1 -1
  172. package/dist/ui/textarea.mjs +1 -1
  173. package/dist/ui/theme/ThemeToggles.cjs +1 -1
  174. package/dist/ui/theme/ThemeToggles.mjs +1 -1
  175. package/dist/ui/theme/index.cjs +1 -1
  176. package/dist/ui/theme/index.mjs +1 -1
  177. package/dist/ui/toggle-buttons.cjs +1 -1
  178. package/dist/ui/toggle-buttons.mjs +1 -1
  179. package/dist/ui/toggle-group.cjs +1 -1
  180. package/dist/ui/toggle-group.mjs +1 -1
  181. package/dist/ui/toggle.cjs +1 -1
  182. package/dist/ui/toggle.mjs +1 -1
  183. package/dist/ui/toolbar.cjs +1 -1
  184. package/dist/ui/toolbar.mjs +1 -1
  185. package/dist/ui/tooltip.cjs +1 -1
  186. package/dist/ui/tooltip.mjs +1 -1
  187. package/dist/ui/tree-view/TreeSearchBar.cjs +1 -1
  188. package/dist/ui/tree-view/TreeSearchBar.mjs +1 -1
  189. package/dist/ui/tree-view/TreeView.cjs +1 -1
  190. package/dist/ui/tree-view/TreeView.mjs +1 -1
  191. package/dist/ui/tree-view/index.cjs +6 -6
  192. package/dist/ui/tree-view/index.mjs +2 -2
  193. package/dist/ui/tree-view-legacy.cjs +9 -9
  194. package/dist/ui/tree-view-legacy.mjs +5 -5
  195. package/dist/ui/waterfall/CursorOverlay.cjs +1 -1
  196. package/dist/ui/waterfall/CursorOverlay.mjs +1 -1
  197. package/dist/ui/waterfall/TimelineEvent.cjs +1 -1
  198. package/dist/ui/waterfall/TimelineEvent.mjs +1 -1
  199. package/dist/ui/waterfall/TimelineProcessBar.cjs +1 -1
  200. package/dist/ui/waterfall/TimelineProcessBar.mjs +1 -1
  201. package/dist/ui/waterfall/Wedges.cjs +1 -1
  202. package/dist/ui/waterfall/Wedges.mjs +1 -1
  203. package/dist/ui/waterfall/index.cjs +8 -8
  204. package/dist/ui/waterfall/index.mjs +7 -7
  205. package/package.json +28 -2
  206. package/src/SyncScroll/README.md +283 -0
  207. package/src/SyncScroll/SyncScroll.tsx +361 -0
  208. package/src/SyncScroll/index.ts +22 -0
  209. package/src/SyncScroll/useSyncScroll.tsx +226 -0
  210. package/src/cli/dial-cli.ts +1133 -0
  211. package/src/dial/DialPanel.tsx +208 -0
  212. package/src/dial/DialProvider.example.tsx +80 -0
  213. package/src/dial/DialProvider.tsx +138 -0
  214. package/src/dial/index.ts +26 -0
  215. package/src/dial/wrapped-inputs/ControlledInputs.tsx +176 -0
  216. package/src/dial/wrapped-inputs/DialInputs.tsx +401 -0
  217. package/src/dial/wrapped-inputs/DialVectorInput.tsx +125 -0
  218. package/src/dial/wrapped-inputs/index.ts +25 -0
  219. package/src/highlight-cursor/cursor-context.tsx +23 -0
  220. package/src/highlight-cursor/cursor-provider.tsx +264 -0
  221. package/src/highlight-cursor/enhanced-components.tsx +16 -0
  222. package/src/highlight-cursor/index.ts +21 -0
  223. package/src/highlight-cursor/tabs-cursor-context.tsx +121 -0
  224. package/src/highlight-cursor/types.ts +40 -0
  225. package/src/highlight-cursor/with-cursor.tsx +144 -0
  226. package/src/hooks/clientOnly.tsx +54 -0
  227. package/src/hooks/cn.ts +33 -0
  228. package/src/hooks/index.ts +9 -0
  229. package/src/hooks/useDocument.tsx +18 -0
  230. package/src/hooks/useDragSelect.ts +116 -0
  231. package/src/hooks/useIsMobile.ts +35 -0
  232. package/src/hooks/useLocalStorage.ts +122 -0
  233. package/src/hooks/useLocation.tsx +95 -0
  234. package/src/hooks/useQueryParams.tsx +31 -0
  235. package/src/hooks/useWindow.tsx +18 -0
  236. package/src/index.css +5 -0
  237. package/src/index.ts +5 -0
  238. package/src/styles/.editorconfig +0 -0
  239. package/src/styles/theme.css +152 -0
  240. package/src/styles/toast.css +67 -0
  241. package/src/styles/variables.css +229 -0
  242. package/src/ui/UIKitBadge.tsx +171 -0
  243. package/src/ui/avatar.tsx +221 -0
  244. package/src/ui/badge.tsx +74 -0
  245. package/src/ui/button.tsx +143 -0
  246. package/src/ui/card.tsx +146 -0
  247. package/src/ui/checkbox.tsx +78 -0
  248. package/src/ui/collapsible.tsx +43 -0
  249. package/src/ui/drag-selectable/DragSelectProvider.tsx +178 -0
  250. package/src/ui/drag-selectable/createSelectable.tsx +43 -0
  251. package/src/ui/drag-selectable/index.ts +2 -0
  252. package/src/ui/drawer.tsx +137 -0
  253. package/src/ui/dropdown.tsx +707 -0
  254. package/src/ui/icons/MouseCursorIcons.tsx +39 -0
  255. package/src/ui/icons/cursor.tsx +38 -0
  256. package/src/ui/icons/index.ts +2 -0
  257. package/src/ui/index.ts +45 -0
  258. package/src/ui/inputs/color-input.tsx +61 -0
  259. package/src/ui/inputs/index.tsx +5 -0
  260. package/src/ui/inputs/input-numbers.tsx +394 -0
  261. package/src/ui/inputs/input.tsx +155 -0
  262. package/src/ui/inputs/number-inputs/CmInput.tsx +26 -0
  263. package/src/ui/inputs/number-inputs/DegInput.tsx +26 -0
  264. package/src/ui/inputs/number-inputs/EulerDegInput.tsx +14 -0
  265. package/src/ui/inputs/number-inputs/EulerInput.tsx +30 -0
  266. package/src/ui/inputs/number-inputs/EulerRadInput.tsx +14 -0
  267. package/src/ui/inputs/number-inputs/InchInput.tsx +26 -0
  268. package/src/ui/inputs/number-inputs/IntInput.tsx +46 -0
  269. package/src/ui/inputs/number-inputs/KVectorInput.tsx +20 -0
  270. package/src/ui/inputs/number-inputs/QuaternionInput.tsx +27 -0
  271. package/src/ui/inputs/number-inputs/RadInput.tsx +26 -0
  272. package/src/ui/inputs/number-inputs/TimeInput.tsx +26 -0
  273. package/src/ui/inputs/number-inputs/Vec3Input.tsx +26 -0
  274. package/src/ui/inputs/number-inputs/VectorInput.tsx +38 -0
  275. package/src/ui/inputs/number-inputs/index.ts +38 -0
  276. package/src/ui/inputs/presets-input.tsx +59 -0
  277. package/src/ui/label.tsx +35 -0
  278. package/src/ui/layout.tsx +43 -0
  279. package/src/ui/layouts/dock-layout/DockLayoutView.tsx +128 -0
  280. package/src/ui/layouts/dock-layout/LayoutSlots.tsx +85 -0
  281. package/src/ui/layouts/dock-layout/index.tsx +2 -0
  282. package/src/ui/layouts/index.ts +2 -0
  283. package/src/ui/layouts/liquid-layout/LayoutSlots.tsx +82 -0
  284. package/src/ui/layouts/liquid-layout/LiquidLayoutView.tsx +76 -0
  285. package/src/ui/layouts/liquid-layout/index.ts +1 -0
  286. package/src/ui/modal.tsx +211 -0
  287. package/src/ui/navigation.tsx +86 -0
  288. package/src/ui/pagination.tsx +129 -0
  289. package/src/ui/panel.tsx +146 -0
  290. package/src/ui/popover.tsx +112 -0
  291. package/src/ui/radio-group.tsx +63 -0
  292. package/src/ui/resizable.tsx +52 -0
  293. package/src/ui/select.tsx +365 -0
  294. package/src/ui/separator.tsx +26 -0
  295. package/src/ui/sheet.tsx +257 -0
  296. package/src/ui/sidebar.tsx +695 -0
  297. package/src/ui/simple-tree-view.tsx +604 -0
  298. package/src/ui/skeleton.tsx +15 -0
  299. package/src/ui/slider.tsx +204 -0
  300. package/src/ui/switch.tsx +45 -0
  301. package/src/ui/table.tsx +99 -0
  302. package/src/ui/tabs.tsx +192 -0
  303. package/src/ui/textarea.tsx +55 -0
  304. package/src/ui/theme/ThemeProvider.tsx +319 -0
  305. package/src/ui/theme/ThemeToggles.tsx +84 -0
  306. package/src/ui/theme/index.ts +21 -0
  307. package/src/ui/theme/themeScript.tsx +179 -0
  308. package/src/ui/theme/types.ts +61 -0
  309. package/src/ui/toast.tsx +30 -0
  310. package/src/ui/toggle-buttons.tsx +290 -0
  311. package/src/ui/toggle-group.tsx +236 -0
  312. package/src/ui/toggle.tsx +94 -0
  313. package/src/ui/toolbar.tsx +54 -0
  314. package/src/ui/tooltip.tsx +171 -0
  315. package/src/ui/tree-view/TreeSearchBar.tsx +88 -0
  316. package/src/ui/tree-view/TreeView.tsx +232 -0
  317. package/src/ui/tree-view/hooks.tsx +289 -0
  318. package/src/ui/tree-view/index.ts +4 -0
  319. package/src/ui/tree-view/types.ts +23 -0
  320. package/src/ui/tree-view-legacy.tsx +644 -0
  321. package/src/ui/version-badge.tsx +0 -0
  322. package/src/ui/waterfall/CursorOverlay.tsx +96 -0
  323. package/src/ui/waterfall/NavigationControls.tsx +42 -0
  324. package/src/ui/waterfall/Tick.tsx +51 -0
  325. package/src/ui/waterfall/TimeRuleEventDot.tsx +19 -0
  326. package/src/ui/waterfall/TimelineEvent.tsx +60 -0
  327. package/src/ui/waterfall/TimelineProcessBar.tsx +207 -0
  328. package/src/ui/waterfall/Wedges.tsx +67 -0
  329. package/src/ui/waterfall/WheelZoomContext.tsx +128 -0
  330. package/src/ui/waterfall/hooks/useTimelineState.tsx +134 -0
  331. package/src/ui/waterfall/hooks/useViewport.tsx +293 -0
  332. package/src/ui/waterfall/index.tsx +326 -0
  333. package/src/ui/waterfall/types.ts +20 -0
  334. package/src/ui/waterfall/utils.ts +91 -0
  335. package/dist/chunk-W2YAQV5N.mjs +0 -57
  336. package/dist/{chunk-QLCEHV4Q.mjs → chunk-2OZK5DY5.mjs} +2 -2
  337. package/dist/{chunk-Z35DNFRZ.cjs → chunk-7IS37C3P.cjs} +2 -2
  338. package/dist/{chunk-4AOAH77D.mjs → chunk-A2PCEL5S.mjs} +2 -2
  339. package/dist/{chunk-K4VD5PPY.mjs → chunk-BIUDC66P.mjs} +1 -1
  340. package/dist/{chunk-RKJR6RZU.cjs → chunk-OYNLQTHW.cjs} +1 -1
  341. package/dist/{chunk-VE3XLQLO.cjs → chunk-QUFZWF4E.cjs} +2 -2
@@ -0,0 +1,86 @@
1
+ import { cva, type VariantProps } from "class-variance-authority";
2
+ import { ChevronLeft, ChevronRight } from "lucide-react";
3
+ import { type ComponentProps, forwardRef } from "react";
4
+
5
+ import { cn } from "../hooks";
6
+ import { Button } from "./button";
7
+
8
+ const navigationVariants = cva(["inline-flex", "items-center", "gap-lg", "bg-bg-primary"], {
9
+ variants: {
10
+ size: {
11
+ sm: [],
12
+ md: [],
13
+ lg: [],
14
+ },
15
+ },
16
+ defaultVariants: {
17
+ size: "md",
18
+ },
19
+ });
20
+
21
+ const navigationTitleVariants = cva(["text-text-primary", "truncate"], {
22
+ variants: {
23
+ size: {
24
+ sm: ["text-uk-sm"],
25
+ md: ["text-uk-md"],
26
+ lg: ["text-uk-lg"],
27
+ },
28
+ },
29
+ defaultVariants: {
30
+ size: "md",
31
+ },
32
+ });
33
+
34
+ const navigationButtonVariants = cva([
35
+ "text-icon-primary",
36
+ "disabled:text-icon-tertiary",
37
+ "disabled:bg-bg-transparent",
38
+ ]);
39
+
40
+ interface NavigationProps
41
+ extends Omit<ComponentProps<"div">, "title">,
42
+ VariantProps<typeof navigationVariants> {
43
+ title: string;
44
+ onBack?: () => void;
45
+ onForward?: () => void;
46
+ canGoBack?: boolean;
47
+ canGoForward?: boolean;
48
+ }
49
+
50
+ const Navigation = forwardRef<HTMLDivElement, NavigationProps>(function Navigation(
51
+ { className, title, onBack, onForward, canGoBack = true, canGoForward = true, size, ...props },
52
+ ref,
53
+ ) {
54
+ return (
55
+ <div ref={ref} className={cn(navigationVariants({ size, className }))} {...props}>
56
+ <Button
57
+ variant="ghost"
58
+ size={size}
59
+ icon
60
+ onClick={onBack}
61
+ disabled={!canGoBack}
62
+ className={cn(navigationButtonVariants())}
63
+ aria-label="Back"
64
+ >
65
+ <ChevronLeft />
66
+ </Button>
67
+
68
+ <Button
69
+ variant="ghost"
70
+ size={size}
71
+ icon
72
+ onClick={onForward}
73
+ disabled={!canGoForward}
74
+ className={cn(navigationButtonVariants())}
75
+ aria-label="Forward"
76
+ >
77
+ <ChevronRight />
78
+ </Button>
79
+
80
+ <span className={cn(navigationTitleVariants({ size }))}>{title}</span>
81
+ </div>
82
+ );
83
+ });
84
+
85
+ export { Navigation };
86
+ export type { NavigationProps };
@@ -0,0 +1,129 @@
1
+ import { ChevronLeftIcon, ChevronRightIcon, MoreHorizontalIcon } from "lucide-react";
2
+ import { ComponentProps } from "react";
3
+
4
+ import { TabsCursorProvider, useTabsCursor } from "../highlight-cursor/tabs-cursor-context";
5
+ import { cn } from "../hooks";
6
+ import { Button, buttonVariants } from "./button";
7
+
8
+ function Pagination({ className, ...props }: ComponentProps<"nav">) {
9
+ return (
10
+ <nav
11
+ role="navigation"
12
+ aria-label="pagination"
13
+ data-slot="pagination"
14
+ className={cn("mx-auto flex w-full justify-center", className)}
15
+ {...props}
16
+ />
17
+ );
18
+ }
19
+
20
+ function PaginationContent({ className, ...props }: ComponentProps<"ul">) {
21
+ const { setCursorTarget } = useTabsCursor();
22
+ return (
23
+ <TabsCursorProvider>
24
+ <ul
25
+ onMouseLeave={() => setCursorTarget(null)}
26
+ data-slot="pagination-content"
27
+ className={cn("gap-xs flex flex-row items-center", className)}
28
+ style={{
29
+ marginBottom: "0px",
30
+ }}
31
+ {...props}
32
+ />
33
+ </TabsCursorProvider>
34
+ );
35
+ }
36
+
37
+ function PaginationItem({ ...props }: ComponentProps<"li">) {
38
+ const { setCursorTarget } = useTabsCursor();
39
+ return (
40
+ <li
41
+ onMouseEnter={(e) => setCursorTarget(e.currentTarget)}
42
+ data-slot="pagination-item"
43
+ className="rounded-uk-sm"
44
+ style={{
45
+ marginBottom: "0px",
46
+ }}
47
+ {...props}
48
+ />
49
+ );
50
+ }
51
+
52
+ type PaginationLinkProps = {
53
+ isActive?: boolean;
54
+ } & Pick<ComponentProps<typeof Button>, "size"> &
55
+ ComponentProps<"a">;
56
+
57
+ function PaginationLink({ className, isActive, size = "md", ...props }: PaginationLinkProps) {
58
+ return (
59
+ <a
60
+ aria-current={isActive ? "page" : undefined}
61
+ data-slot="pagination-link"
62
+ data-active={isActive}
63
+ className={cn(
64
+ buttonVariants({
65
+ variant: isActive ? "secondary" : "ghost",
66
+ size,
67
+ }),
68
+ "hover:bg-transparent",
69
+ "hover:text-text-primary",
70
+ "min-w-[32px]",
71
+ className,
72
+ )}
73
+ {...props}
74
+ />
75
+ );
76
+ }
77
+
78
+ function PaginationPrevious({ className, ...props }: ComponentProps<typeof PaginationLink>) {
79
+ return (
80
+ <PaginationLink
81
+ aria-label="Go to previous page"
82
+ className={cn("gap-xs px-lg sm:pl-lg", className)}
83
+ {...props}
84
+ >
85
+ <ChevronLeftIcon />
86
+ <span className="hidden sm:block">Previous</span>
87
+ </PaginationLink>
88
+ );
89
+ }
90
+
91
+ function PaginationNext({ className, ...props }: ComponentProps<typeof PaginationLink>) {
92
+ return (
93
+ <PaginationLink
94
+ aria-label="Go to next page"
95
+ className={cn("gap-xs px-lg sm:pr-lg", className)}
96
+ {...props}
97
+ >
98
+ <span className="hidden sm:block">Next</span>
99
+ <ChevronRightIcon />
100
+ </PaginationLink>
101
+ );
102
+ }
103
+
104
+ function PaginationEllipsis({ className, ...props }: ComponentProps<"span">) {
105
+ return (
106
+ <span
107
+ aria-hidden
108
+ data-slot="pagination-ellipsis"
109
+ className={cn(
110
+ "text-text-primary flex size-9 size-[32px] items-center justify-center",
111
+ className,
112
+ )}
113
+ {...props}
114
+ >
115
+ <MoreHorizontalIcon className="size-4" />
116
+ <span className="sr-only">More pages</span>
117
+ </span>
118
+ );
119
+ }
120
+
121
+ export {
122
+ Pagination,
123
+ PaginationContent,
124
+ PaginationLink,
125
+ PaginationItem,
126
+ PaginationPrevious,
127
+ PaginationNext,
128
+ PaginationEllipsis,
129
+ };
@@ -0,0 +1,146 @@
1
+ import { cva, type VariantProps } from "class-variance-authority";
2
+ import { type ComponentProps } from "react";
3
+
4
+ import { cn } from "../hooks";
5
+
6
+ /**
7
+ * Variants for the panel component.
8
+ */
9
+ const panelVariants = cva(
10
+ [
11
+ "flex",
12
+ "flex-col",
13
+ "rounded-uk-lg",
14
+ "bg-bg-primary",
15
+ "shadow-[0_4px_16px_0_var(--color-shadow-secondary)]",
16
+ "liquid:liquid-bg",
17
+ ],
18
+ {
19
+ variants: {
20
+ size: {
21
+ sm: "p-sm",
22
+ md: "p-md",
23
+ lg: "p-lg",
24
+ xl: "p-xl",
25
+ },
26
+ },
27
+ defaultVariants: {
28
+ size: "lg",
29
+ },
30
+ },
31
+ );
32
+
33
+ export interface PanelProps extends ComponentProps<"div">, VariantProps<typeof panelVariants> {}
34
+
35
+ /**
36
+ * Container panel with default padding, radius and shadow.
37
+ */
38
+ function Panel({ className, size, ...props }: PanelProps) {
39
+ return <div data-slot="panel" className={cn(panelVariants({ size, className }))} {...props} />;
40
+ }
41
+
42
+ /**
43
+ * Variants for the panel header component.
44
+ */
45
+ const panelHeaderVariants = cva(["flex", "flex-row", "items-center", "justify-between"], {
46
+ variants: {
47
+ size: {
48
+ sm: "gap-sm",
49
+ md: "gap-md",
50
+ lg: "gap-lg",
51
+ xl: "gap-xl",
52
+ },
53
+ },
54
+ defaultVariants: {
55
+ size: "lg",
56
+ },
57
+ });
58
+
59
+ export interface PanelHeaderProps
60
+ extends ComponentProps<"div">,
61
+ VariantProps<typeof panelHeaderVariants> {}
62
+
63
+ /**
64
+ * Horizontal header row for panel.
65
+ */
66
+ function PanelHeader({ className, size, ...props }: PanelHeaderProps) {
67
+ return (
68
+ <div
69
+ data-slot="panel-header"
70
+ className={cn(panelHeaderVariants({ size, className }))}
71
+ {...props}
72
+ />
73
+ );
74
+ }
75
+
76
+ /**
77
+ * Title text styling within panel.
78
+ */
79
+ function PanelTitle({ className, ...props }: ComponentProps<"div">) {
80
+ return (
81
+ <div
82
+ data-slot="panel-title"
83
+ className={cn(
84
+ "text-text-highlight",
85
+ "text-uk-md",
86
+ "leading-uk-md",
87
+ "font-medium",
88
+ "-mt-2",
89
+ "vertical-align-middle",
90
+ className,
91
+ )}
92
+ {...props}
93
+ />
94
+ );
95
+ }
96
+
97
+ /**
98
+ * Secondary description text.
99
+ */
100
+ function PanelDescription({ className, ...props }: ComponentProps<"div">) {
101
+ return (
102
+ <div
103
+ data-slot="panel-description"
104
+ className={cn("text-uk-sm", "-mt-2", "text-text-secondary", "leading-uk-sm", className)}
105
+ {...props}
106
+ />
107
+ );
108
+ }
109
+
110
+ /**
111
+ * Right-aligned action area.
112
+ */
113
+ function PanelAction({ className, ...props }: ComponentProps<"div">) {
114
+ return (
115
+ <div
116
+ data-slot="panel-action"
117
+ className={cn(
118
+ "text-text-secondary",
119
+ "text-uk-sm",
120
+ "leading-uk-sm",
121
+ "-mt-2",
122
+ "-mr-3",
123
+ "font-medium",
124
+ "vertical-align-middle",
125
+ className,
126
+ )}
127
+ {...props}
128
+ />
129
+ );
130
+ }
131
+
132
+ /**
133
+ * Main content area.
134
+ */
135
+ function PanelContent({ className, ...props }: ComponentProps<"div">) {
136
+ return <div data-slot="panel-content" className={cn("", className)} {...props} />;
137
+ }
138
+
139
+ /**
140
+ * Footer row for actions or meta.
141
+ */
142
+ function PanelFooter({ className, ...props }: ComponentProps<"div">) {
143
+ return <div data-slot="panel-footer" className={cn("flex items-center", className)} {...props} />;
144
+ }
145
+
146
+ export { Panel, PanelHeader, PanelFooter, PanelTitle, PanelAction, PanelDescription, PanelContent };
@@ -0,0 +1,112 @@
1
+ import * as PopoverPrimitive from "@radix-ui/react-popover";
2
+ import { ComponentProps } from "react";
3
+
4
+ import { cn, createClientOnlyComponent } from "../hooks";
5
+
6
+ /**
7
+ * Popover root based on Radix primitives.
8
+ */
9
+ function PopoverRoot({ ...props }: ComponentProps<typeof PopoverPrimitive.Root>) {
10
+ return <PopoverPrimitive.Root data-slot="popover" {...props} />;
11
+ }
12
+
13
+ function PopoverFallback({ ...props }: ComponentProps<"div">) {
14
+ return <div data-slot="popover" {...props} />;
15
+ }
16
+
17
+ const Popover = createClientOnlyComponent(PopoverRoot, PopoverFallback);
18
+
19
+ /**
20
+ * Element that opens the popover.
21
+ */
22
+ function PopoverTriggerRoot({ ...props }: ComponentProps<typeof PopoverPrimitive.Trigger>) {
23
+ return <PopoverPrimitive.Trigger data-slot="popover-trigger" {...props} />;
24
+ }
25
+
26
+ function PopoverTriggerFallback({
27
+ asChild,
28
+ children,
29
+ ...props
30
+ }: ComponentProps<"button"> & { asChild?: boolean }) {
31
+ if (asChild) {
32
+ return <>{children}</>;
33
+ }
34
+ return (
35
+ <button data-slot="popover-trigger" {...props}>
36
+ {children}
37
+ </button>
38
+ );
39
+ }
40
+
41
+ const PopoverTrigger = createClientOnlyComponent(PopoverTriggerRoot, PopoverTriggerFallback);
42
+
43
+ /**
44
+ * Floating content panel for the popover.
45
+ */
46
+ function PopoverContentRoot({
47
+ className,
48
+ align = "center",
49
+ sideOffset = 4,
50
+ ...props
51
+ }: ComponentProps<typeof PopoverPrimitive.Content>) {
52
+ return (
53
+ <PopoverPrimitive.Portal>
54
+ <PopoverPrimitive.Content
55
+ data-slot="popover-content"
56
+ align={align}
57
+ sideOffset={sideOffset}
58
+ className={cn(
59
+ "bg-bg-primary",
60
+ "rounded-uk-lg",
61
+ "p-xl",
62
+ "shadow-[0_4px_16px_0_var(--color-shadow-secondary)]",
63
+ "data-[state=open]:animate-in",
64
+ "data-[state=closed]:animate-out",
65
+ "data-[state=closed]:fade-out-0",
66
+ "data-[state=open]:fade-in-0",
67
+ "data-[state=closed]:zoom-out-95",
68
+ "data-[state=open]:zoom-in-95",
69
+ "data-[side=bottom]:slide-in-from-top-2",
70
+ "data-[side=left]:slide-in-from-right-2",
71
+ "data-[side=right]:slide-in-from-left-2",
72
+ "data-[side=top]:slide-in-from-bottom-2",
73
+ "z-20",
74
+ "origin-(--radix-popover-content-transform-origin)",
75
+ "border-none",
76
+ "outline-hidden",
77
+ "liquid:liquid-bg",
78
+ className,
79
+ )}
80
+ {...props}
81
+ />
82
+ </PopoverPrimitive.Portal>
83
+ );
84
+ }
85
+
86
+ function PopoverContentFallback({ className, ...props }: ComponentProps<"div">) {
87
+ return (
88
+ <div
89
+ data-slot="popover-content"
90
+ className={cn(
91
+ "bg-bg-primary",
92
+ "rounded-uk-lg",
93
+ "p-xl",
94
+ "shadow-[0_4px_16px_0_var(--color-shadow-secondary)]",
95
+ "z-20",
96
+ "border-none",
97
+ "outline-hidden",
98
+ "liquid:liquid-bg",
99
+ className,
100
+ )}
101
+ {...props}
102
+ />
103
+ );
104
+ }
105
+
106
+ const PopoverContent = createClientOnlyComponent(PopoverContentRoot, PopoverContentFallback);
107
+
108
+ function PopoverAnchor({ ...props }: ComponentProps<typeof PopoverPrimitive.Anchor>) {
109
+ return <PopoverPrimitive.Anchor data-slot="popover-anchor" {...props} />;
110
+ }
111
+
112
+ export { Popover, PopoverTrigger, PopoverContent, PopoverAnchor };
@@ -0,0 +1,63 @@
1
+ import * as RadioGroupPrimitive from "@radix-ui/react-radio-group";
2
+ import { type ComponentProps } from "react";
3
+
4
+ import { cn } from "../hooks";
5
+
6
+ /**
7
+ * Radio group container with flex spacing.
8
+ */
9
+ function RadioGroup({ className, ...props }: ComponentProps<typeof RadioGroupPrimitive.Root>) {
10
+ return (
11
+ <RadioGroupPrimitive.Root
12
+ data-slot="radio-group"
13
+ className={cn("gap-md flex", className)}
14
+ {...props}
15
+ />
16
+ );
17
+ }
18
+
19
+ /**
20
+ * Single radio item with styled indicator.
21
+ */
22
+ function RadioGroupItem({ className, ...props }: ComponentProps<typeof RadioGroupPrimitive.Item>) {
23
+ return (
24
+ <RadioGroupPrimitive.Item
25
+ data-slot="radio-group-item"
26
+ className={cn(
27
+ "group",
28
+ "w-4",
29
+ "h-4",
30
+ "flex",
31
+ "items-center",
32
+ "justify-center",
33
+ "rounded-full",
34
+ "border-[1.5px]",
35
+ "border-solid",
36
+ "border-bg-tertiary",
37
+ "data-[state=checked]:border-brand-primary",
38
+ "disabled:cursor-not-allowed",
39
+ "disabled:bg-bg-secondary",
40
+ "disabled:data-[state=checked]:border-bg-tertiary",
41
+ className,
42
+ )}
43
+ {...props}
44
+ >
45
+ <RadioGroupPrimitive.Indicator
46
+ data-slot="radio-group-indicator"
47
+ className="relative flex items-center justify-center"
48
+ >
49
+ <div
50
+ className={cn(
51
+ "m-auto",
52
+ "size-[8px]",
53
+ "rounded-full",
54
+ "bg-brand-primary",
55
+ "group-disabled:bg-bg-tertiary",
56
+ )}
57
+ />
58
+ </RadioGroupPrimitive.Indicator>
59
+ </RadioGroupPrimitive.Item>
60
+ );
61
+ }
62
+
63
+ export { RadioGroup, RadioGroupItem };
@@ -0,0 +1,52 @@
1
+ import { GripVerticalIcon } from "lucide-react";
2
+ import * as React from "react";
3
+ import { ComponentProps } from "react";
4
+ import * as ResizablePrimitive from "react-resizable-panels";
5
+
6
+ import { cn } from "../hooks";
7
+
8
+ type ResizablePanelGroupProps = ComponentProps<typeof ResizablePrimitive.PanelGroup>;
9
+
10
+ function ResizablePanelGroup({ className, ...props }: Readonly<ResizablePanelGroupProps>) {
11
+ return (
12
+ <ResizablePrimitive.PanelGroup
13
+ data-slot="resizable-panel-group"
14
+ className={cn("flex h-full w-full data-[panel-group-direction=vertical]:flex-col", className)}
15
+ {...props}
16
+ />
17
+ );
18
+ }
19
+
20
+ type ComponentPropsProps = ComponentProps<typeof ResizablePrimitive.Panel>;
21
+
22
+ function ResizablePanel(props: Readonly<ComponentPropsProps>) {
23
+ return <ResizablePrimitive.Panel data-slot="resizable-panel" {...props} />;
24
+ }
25
+
26
+ interface ResizableHandleProps extends ComponentProps<typeof ResizablePrimitive.PanelResizeHandle> {
27
+ withHandle?: boolean;
28
+ className?: string;
29
+ children?: React.ReactNode;
30
+ }
31
+
32
+ function ResizableHandle({ withHandle, className, children, ...props }: ResizableHandleProps) {
33
+ return (
34
+ <ResizablePrimitive.PanelResizeHandle
35
+ data-slot="resizable-handle"
36
+ className={cn(
37
+ "bg-border focus-visible:ring-ring relative flex w-px items-center justify-center after:absolute after:inset-y-0 after:left-1/2 after:w-1 after:-translate-x-1/2 focus-visible:ring-1 focus-visible:ring-offset-1 focus-visible:outline-hidden data-[panel-group-direction=vertical]:h-px data-[panel-group-direction=vertical]:w-full data-[panel-group-direction=vertical]:after:left-0 data-[panel-group-direction=vertical]:after:h-1 data-[panel-group-direction=vertical]:after:w-full data-[panel-group-direction=vertical]:after:translate-x-0 data-[panel-group-direction=vertical]:after:-translate-y-1/2 [&[data-panel-group-direction=vertical]>div]:rotate-90",
38
+ className,
39
+ )}
40
+ {...props}
41
+ >
42
+ {children}
43
+ {!children && withHandle && (
44
+ <div className="bg-border z-10 flex h-4 w-3 items-center justify-center rounded-xs border">
45
+ <GripVerticalIcon className="size-2.5" />
46
+ </div>
47
+ )}
48
+ </ResizablePrimitive.PanelResizeHandle>
49
+ );
50
+ }
51
+
52
+ export { ResizablePanelGroup, ResizablePanel, ResizableHandle };