@vuer-ai/vuer-uikit 0.0.102 → 0.0.104

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 (226) hide show
  1. package/dist/auth/context/auth-context.d.cts +3 -5
  2. package/dist/auth/context/auth-context.d.ts +3 -5
  3. package/dist/auth/handler/get-session.cjs +11 -0
  4. package/dist/auth/handler/get-session.d.cts +19 -0
  5. package/dist/auth/handler/get-session.d.ts +19 -0
  6. package/dist/auth/handler/get-session.mjs +2 -0
  7. package/dist/auth/handler/sign-in-handler.cjs +3 -3
  8. package/dist/auth/handler/sign-in-handler.d.cts +0 -1
  9. package/dist/auth/handler/sign-in-handler.d.ts +0 -1
  10. package/dist/auth/handler/sign-in-handler.mjs +2 -2
  11. package/dist/auth/handler/sign-out-handler.cjs +11 -0
  12. package/dist/auth/handler/sign-out-handler.d.cts +5 -0
  13. package/dist/auth/handler/sign-out-handler.d.ts +5 -0
  14. package/dist/auth/handler/sign-out-handler.mjs +2 -0
  15. package/dist/auth/hooks/use-vuer-auth.d.cts +0 -1
  16. package/dist/auth/hooks/use-vuer-auth.d.ts +0 -1
  17. package/dist/auth/hooks/use-vuer-method.cjs +5 -4
  18. package/dist/auth/hooks/use-vuer-method.d.cts +2 -3
  19. package/dist/auth/hooks/use-vuer-method.d.ts +2 -3
  20. package/dist/auth/hooks/use-vuer-method.mjs +4 -3
  21. package/dist/auth/index.cjs +9 -13
  22. package/dist/auth/index.d.cts +1 -2
  23. package/dist/auth/index.d.ts +1 -2
  24. package/dist/auth/index.mjs +6 -6
  25. package/dist/auth/localstorage-key.cjs +2 -6
  26. package/dist/auth/localstorage-key.d.cts +1 -2
  27. package/dist/auth/localstorage-key.d.ts +1 -2
  28. package/dist/auth/localstorage-key.mjs +1 -1
  29. package/dist/auth/types.cjs +0 -12
  30. package/dist/auth/types.d.cts +10 -3466
  31. package/dist/auth/types.d.ts +10 -3466
  32. package/dist/auth/types.mjs +1 -1
  33. package/dist/auth/vuer-auth-provider.cjs +4 -5
  34. package/dist/auth/vuer-auth-provider.mjs +3 -4
  35. package/dist/{chunk-WGVKFNG6.mjs → chunk-276VJZCV.mjs} +1 -2
  36. package/dist/{chunk-IQ5MDNCR.cjs → chunk-2PJO5UJL.cjs} +8 -8
  37. package/dist/chunk-4CPB3XHE.cjs +18 -0
  38. package/dist/{chunk-YMSWUGHW.cjs → chunk-4PKPCOAF.cjs} +2 -1
  39. package/dist/{chunk-BSOJYJ4D.cjs → chunk-4WRTIOGZ.cjs} +2 -1
  40. package/dist/chunk-5HS4PMUR.mjs +45 -0
  41. package/dist/{chunk-XG56MLQH.cjs → chunk-5JPYU5A6.cjs} +8 -8
  42. package/dist/{chunk-ZNPI2TYG.mjs → chunk-5MBEK77I.mjs} +5 -13
  43. package/dist/{chunk-Z6KE4XDB.cjs → chunk-5QDNFK4H.cjs} +7 -7
  44. package/dist/{chunk-ZPH5LMEM.mjs → chunk-6NSQLHKC.mjs} +1 -1
  45. package/dist/{chunk-RGV3EB3K.cjs → chunk-6QU4J3HY.cjs} +12 -12
  46. package/dist/{chunk-BFNETXJK.mjs → chunk-77FMULFB.mjs} +4 -4
  47. package/dist/{chunk-W3RJNSWQ.mjs → chunk-7NOBQH7O.mjs} +2 -2
  48. package/dist/{chunk-JMFTHHHE.cjs → chunk-7RHQ6DVU.cjs} +14 -13
  49. package/dist/{chunk-RZILHP75.cjs → chunk-7WA7ZFVS.cjs} +2 -2
  50. package/dist/{chunk-6DYF6WO6.mjs → chunk-AKVHFPXH.mjs} +7 -5
  51. package/dist/{chunk-ZFIEYXJO.cjs → chunk-BXBSZOBU.cjs} +1 -1
  52. package/dist/{chunk-5WDPNBQW.cjs → chunk-C6L7YIGW.cjs} +2 -1
  53. package/dist/chunk-CGODCUQ5.mjs +16 -0
  54. package/dist/{chunk-5EXV5EWF.mjs → chunk-D5H4XX6Q.mjs} +1 -1
  55. package/dist/{chunk-EAZQH4IX.mjs → chunk-EOSYXHEH.mjs} +1 -1
  56. package/dist/{chunk-EBBHJLUX.mjs → chunk-G4Q5ALRW.mjs} +2 -1
  57. package/dist/{chunk-XOIIYO5J.cjs → chunk-HA6M4XKT.cjs} +4 -2
  58. package/dist/{chunk-K22BEXUA.mjs → chunk-JVV7W3TP.mjs} +1 -1
  59. package/dist/{chunk-6TSA7KXX.cjs → chunk-JWVH6R35.cjs} +1 -1
  60. package/dist/{chunk-7P563TWH.mjs → chunk-K2OC2HWQ.mjs} +10 -9
  61. package/dist/{chunk-CX6OFX5Z.mjs → chunk-KJH46JR3.mjs} +2 -1
  62. package/dist/chunk-LBGZKACW.cjs +30 -0
  63. package/dist/{chunk-UA3OTLX4.mjs → chunk-LDFGQSE4.mjs} +2 -2
  64. package/dist/{chunk-2CZEFXEW.cjs → chunk-LFSCJLL2.cjs} +5 -13
  65. package/dist/chunk-M6JLGVJ7.mjs +28 -0
  66. package/dist/{chunk-E2EMVLII.mjs → chunk-MG5TTPA7.mjs} +2 -1
  67. package/dist/{chunk-3THWK3HB.mjs → chunk-NHG2ROYB.mjs} +2 -1
  68. package/dist/{chunk-7UO6NLB6.mjs → chunk-OLVOIUCE.mjs} +3 -3
  69. package/dist/{chunk-KRNKB4FM.mjs → chunk-OPYMZDEZ.mjs} +1 -1
  70. package/dist/{chunk-LSKJOUAE.cjs → chunk-PB4UO2NR.cjs} +3 -4
  71. package/dist/{chunk-IJGCH57E.cjs → chunk-QHAGQCVF.cjs} +1 -1
  72. package/dist/{chunk-D4DKSGER.mjs → chunk-QZUTRJSP.mjs} +1 -1
  73. package/dist/{chunk-SUSABE24.mjs → chunk-S6PSU47F.mjs} +1 -1
  74. package/dist/{chunk-AYYX3TVN.mjs → chunk-S7SGB2FD.mjs} +1 -1
  75. package/dist/{chunk-CFOMX6SF.mjs → chunk-SMIACO56.mjs} +4 -2
  76. package/dist/{chunk-EI5ZOFWX.mjs → chunk-SUEFWFPX.mjs} +1 -1
  77. package/dist/{chunk-6BD5MQ5R.cjs → chunk-SVWS4AL6.cjs} +0 -2
  78. package/dist/chunk-T2D6PSA6.cjs +47 -0
  79. package/dist/chunk-T57VFBIC.mjs +17 -0
  80. package/dist/{chunk-3OMGBQ7I.mjs → chunk-TYXRHZZG.mjs} +1 -1
  81. package/dist/{chunk-LP3AGGRK.cjs → chunk-UTS56UA5.cjs} +1 -1
  82. package/dist/{chunk-OMZHB2FB.cjs → chunk-V3VUFIG3.cjs} +4 -2
  83. package/dist/{chunk-RU423LFT.cjs → chunk-VQP3QBC6.cjs} +1 -1
  84. package/dist/{chunk-C7WHIFJZ.cjs → chunk-WRKB3W2J.cjs} +2 -2
  85. package/dist/chunk-WTYBTOLO.cjs +19 -0
  86. package/dist/{chunk-3XTBLV6T.cjs → chunk-WZGZX3S2.cjs} +1 -1
  87. package/dist/{chunk-3PDV3ZKD.cjs → chunk-XFTKHT2M.cjs} +8 -6
  88. package/dist/{chunk-7KQXX7QB.mjs → chunk-XGM57WPN.mjs} +2 -3
  89. package/dist/{chunk-XGGAJUY3.cjs → chunk-XURKXOZK.cjs} +2 -2
  90. package/dist/{chunk-3NSSQHRK.mjs → chunk-Y2H4A5AC.mjs} +1 -1
  91. package/dist/{chunk-2JV7MJIF.cjs → chunk-Y5SVZCPQ.cjs} +4 -4
  92. package/dist/{chunk-PO2LYHDO.mjs → chunk-YKHK6C4Q.mjs} +4 -2
  93. package/dist/{chunk-LPVBUX2J.cjs → chunk-YQ5KKJQ3.cjs} +2 -1
  94. package/dist/{chunk-MCYFLR4F.cjs → chunk-ZS7ESTKH.cjs} +1 -1
  95. package/dist/dial/DialPanel.cjs +40 -40
  96. package/dist/dial/DialPanel.mjs +39 -39
  97. package/dist/dial/DialProvider.d.cts +1 -0
  98. package/dist/dial/DialProvider.d.ts +1 -0
  99. package/dist/dial/index.cjs +56 -56
  100. package/dist/dial/index.mjs +39 -39
  101. package/dist/dial/wrapped-inputs/ControlledInputs.cjs +44 -44
  102. package/dist/dial/wrapped-inputs/ControlledInputs.mjs +39 -39
  103. package/dist/dial/wrapped-inputs/DialInputs.cjs +53 -53
  104. package/dist/dial/wrapped-inputs/DialInputs.mjs +39 -39
  105. package/dist/dial/wrapped-inputs/DialPresetsInput.cjs +40 -40
  106. package/dist/dial/wrapped-inputs/DialPresetsInput.mjs +39 -39
  107. package/dist/dial/wrapped-inputs/DialVectorInput.cjs +40 -40
  108. package/dist/dial/wrapped-inputs/DialVectorInput.mjs +39 -39
  109. package/dist/dial/wrapped-inputs/index.cjs +60 -60
  110. package/dist/dial/wrapped-inputs/index.mjs +39 -39
  111. package/dist/highlight-cursor/enhanced-components.cjs +7 -7
  112. package/dist/highlight-cursor/enhanced-components.mjs +2 -2
  113. package/dist/highlight-cursor/index.cjs +7 -7
  114. package/dist/highlight-cursor/index.mjs +2 -2
  115. package/dist/index.cjs +240 -240
  116. package/dist/index.css +15 -8
  117. package/dist/index.mjs +39 -39
  118. package/dist/styles/theme.css +15 -8
  119. package/dist/ui/DialBadge.cjs +5 -5
  120. package/dist/ui/DialBadge.mjs +1 -1
  121. package/dist/ui/UIKitBadge.cjs +5 -5
  122. package/dist/ui/UIKitBadge.mjs +1 -1
  123. package/dist/ui/badge.cjs +3 -3
  124. package/dist/ui/badge.d.cts +1 -1
  125. package/dist/ui/badge.d.ts +1 -1
  126. package/dist/ui/badge.mjs +1 -1
  127. package/dist/ui/card.cjs +8 -8
  128. package/dist/ui/card.mjs +1 -1
  129. package/dist/ui/drawer.cjs +11 -11
  130. package/dist/ui/drawer.mjs +1 -1
  131. package/dist/ui/dropdown.cjs +16 -16
  132. package/dist/ui/dropdown.mjs +1 -1
  133. package/dist/ui/index.cjs +216 -216
  134. package/dist/ui/index.mjs +37 -37
  135. package/dist/ui/inputs/index.cjs +10 -10
  136. package/dist/ui/inputs/index.mjs +2 -2
  137. package/dist/ui/inputs/input.d.cts +1 -1
  138. package/dist/ui/inputs/input.d.ts +1 -1
  139. package/dist/ui/inputs/number-inputs/index.cjs +5 -5
  140. package/dist/ui/inputs/number-inputs/index.mjs +1 -1
  141. package/dist/ui/layouts/dock-layout/DockLayoutView.cjs +2 -2
  142. package/dist/ui/layouts/dock-layout/DockLayoutView.mjs +1 -1
  143. package/dist/ui/layouts/dock-layout/index.cjs +2 -2
  144. package/dist/ui/layouts/dock-layout/index.mjs +1 -1
  145. package/dist/ui/layouts/index.cjs +8 -8
  146. package/dist/ui/layouts/index.mjs +3 -3
  147. package/dist/ui/modal.cjs +11 -11
  148. package/dist/ui/modal.mjs +1 -1
  149. package/dist/ui/panel.cjs +8 -8
  150. package/dist/ui/panel.mjs +1 -1
  151. package/dist/ui/popover.cjs +5 -5
  152. package/dist/ui/popover.mjs +1 -1
  153. package/dist/ui/select.cjs +12 -12
  154. package/dist/ui/select.d.cts +1 -1
  155. package/dist/ui/select.d.ts +1 -1
  156. package/dist/ui/select.mjs +1 -1
  157. package/dist/ui/sheet.cjs +9 -9
  158. package/dist/ui/sheet.mjs +1 -1
  159. package/dist/ui/sidebar.cjs +27 -27
  160. package/dist/ui/sidebar.mjs +3 -3
  161. package/dist/ui/textarea.d.cts +1 -1
  162. package/dist/ui/textarea.d.ts +1 -1
  163. package/dist/ui/theme/ThemeToggles.cjs +5 -5
  164. package/dist/ui/theme/ThemeToggles.mjs +2 -2
  165. package/dist/ui/theme/index.cjs +5 -5
  166. package/dist/ui/theme/index.mjs +2 -2
  167. package/dist/ui/toast.cjs +3 -3
  168. package/dist/ui/toast.mjs +1 -1
  169. package/dist/ui/toolbar.cjs +4 -4
  170. package/dist/ui/toolbar.mjs +1 -1
  171. package/dist/ui/tooltip.cjs +5 -5
  172. package/dist/ui/tooltip.mjs +1 -1
  173. package/dist/ui/tree-view/TreeSearchBar.cjs +3 -3
  174. package/dist/ui/tree-view/TreeSearchBar.mjs +2 -2
  175. package/dist/ui/tree-view/index.cjs +12 -12
  176. package/dist/ui/tree-view/index.mjs +3 -3
  177. package/dist/ui/tree-view-legacy.cjs +6 -6
  178. package/dist/ui/tree-view-legacy.mjs +2 -2
  179. package/dist/ui/waterfall/NavigationControls.cjs +2 -2
  180. package/dist/ui/waterfall/NavigationControls.mjs +1 -1
  181. package/dist/ui/waterfall/Tick.cjs +2 -2
  182. package/dist/ui/waterfall/Tick.mjs +1 -1
  183. package/dist/ui/waterfall/index.cjs +10 -10
  184. package/dist/ui/waterfall/index.mjs +9 -9
  185. package/package.json +1 -1
  186. package/src/auth/context/auth-context.ts +3 -4
  187. package/src/auth/handler/get-session.ts +17 -0
  188. package/src/auth/handler/sign-in-handler.ts +1 -2
  189. package/src/auth/handler/sign-out-handler.ts +13 -0
  190. package/src/auth/hooks/use-vuer-method.ts +8 -6
  191. package/src/auth/localstorage-key.ts +0 -2
  192. package/src/auth/types.ts +9 -27
  193. package/src/auth/vuer-auth-provider.tsx +25 -8
  194. package/src/dial/DialPanel.tsx +1 -1
  195. package/src/dial/DialProvider.tsx +1 -0
  196. package/src/styles/theme.css +75 -28
  197. package/src/ui/badge.tsx +1 -1
  198. package/src/ui/card.tsx +2 -1
  199. package/src/ui/drawer.tsx +1 -1
  200. package/src/ui/dropdown.tsx +4 -2
  201. package/src/ui/layouts/dock-layout/DockLayoutView.tsx +6 -82
  202. package/src/ui/modal.tsx +2 -1
  203. package/src/ui/panel.tsx +2 -1
  204. package/src/ui/popover.tsx +4 -2
  205. package/src/ui/select.tsx +2 -1
  206. package/src/ui/sheet.tsx +2 -2
  207. package/src/ui/sidebar.tsx +1 -1
  208. package/src/ui/toast.tsx +1 -1
  209. package/src/ui/toolbar.tsx +1 -1
  210. package/src/ui/tooltip.tsx +5 -13
  211. package/src/ui/waterfall/NavigationControls.tsx +1 -1
  212. package/src/ui/waterfall/Tick.tsx +1 -1
  213. package/src/ui/waterfall/index.tsx +4 -3
  214. package/dist/auth/handler/create-client.cjs +0 -12
  215. package/dist/auth/handler/create-client.d.cts +0 -7
  216. package/dist/auth/handler/create-client.d.ts +0 -7
  217. package/dist/auth/handler/create-client.mjs +0 -3
  218. package/dist/chunk-5T7MTIHW.mjs +0 -75
  219. package/dist/chunk-ACYOVCGH.mjs +0 -30
  220. package/dist/chunk-CHYXRETV.cjs +0 -23
  221. package/dist/chunk-G6U2K2GR.cjs +0 -32
  222. package/dist/chunk-HPK4YEVK.cjs +0 -27
  223. package/dist/chunk-KAA4NEHL.cjs +0 -77
  224. package/dist/chunk-PKSIXQJX.mjs +0 -20
  225. package/dist/chunk-PZMA33PL.mjs +0 -25
  226. package/src/auth/handler/create-client.ts +0 -23
@@ -74,7 +74,8 @@ function PopoverContentRoot({
74
74
  "origin-(--radix-popover-content-transform-origin)",
75
75
  "border-none",
76
76
  "outline-hidden",
77
- "liquid:liquid-bg",
77
+ "liquid-dark:liquid-dark-bg",
78
+ "liquid-light:liquid-light-bg",
78
79
  className,
79
80
  )}
80
81
  {...props}
@@ -95,7 +96,8 @@ function PopoverContentFallback({ className, ...props }: ComponentProps<"div">)
95
96
  "z-20",
96
97
  "border-none",
97
98
  "outline-hidden",
98
- "liquid:liquid-bg",
99
+ "liquid-dark:liquid-dark-bg",
100
+ "liquid-light:liquid-light-bg",
99
101
  className,
100
102
  )}
101
103
  {...props}
package/src/ui/select.tsx CHANGED
@@ -175,7 +175,8 @@ export function SelectContent({
175
175
  "overflow-y-auto",
176
176
  "rounded-uk-md",
177
177
  "shadow-[0_4px_16px_0_var(--color-shadow-secondary)]",
178
- "liquid:liquid-bg",
178
+ "liquid-dark:liquid-dark-bg",
179
+ "liquid-light:liquid-light-bg",
179
180
  font === "standard" ? "font-sans" : "font-number-input",
180
181
  ],
181
182
  {
package/src/ui/sheet.tsx CHANGED
@@ -111,7 +111,7 @@ function SheetContentRoot({
111
111
  <SheetPrimitive.Content
112
112
  data-slot="sheet-content"
113
113
  className={cn(
114
- "liquid:liquid-bg bg-bg-primary data-[state=open]:animate-in data-[state=closed]:animate-out p-xl fixed z-50 flex flex-col gap-4 shadow-[0_4px_16px_0_var(--color-shadow-secondary)] transition ease-in-out data-[state=closed]:duration-300 data-[state=open]:duration-500",
114
+ "liquid-dark:liquid-dark-bg liquid-light:liquid-light-bg bg-bg-primary data-[state=open]:animate-in data-[state=closed]:animate-out p-xl fixed z-50 flex flex-col gap-4 shadow-[0_4px_16px_0_var(--color-shadow-secondary)] transition ease-in-out data-[state=closed]:duration-300 data-[state=open]:duration-500",
115
115
  side === "right" &&
116
116
  "data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right inset-y-0 right-0 h-full w-[340px]",
117
117
  side === "left" &&
@@ -146,7 +146,7 @@ function SheetContentFallback({
146
146
  <div
147
147
  data-slot="sheet-content"
148
148
  className={cn(
149
- "liquid:liquid-bg bg-bg-primary p-xl fixed z-50 flex flex-col gap-4 shadow-[0_4px_16px_0_var(--color-shadow-secondary)]",
149
+ "liquid-dark:liquid-dark-bg liquid-light:liquid-light-bg bg-bg-primary p-xl fixed z-50 flex flex-col gap-4 shadow-[0_4px_16px_0_var(--color-shadow-secondary)]",
150
150
  side === "right" && "inset-y-0 right-0 h-full w-[340px]",
151
151
  side === "left" && "inset-y-0 left-0 h-full w-[340px]",
152
152
  side === "top" && "inset-x-0 top-0 h-auto",
@@ -222,7 +222,7 @@ function Sidebar({
222
222
  <div
223
223
  data-sidebar="sidebar"
224
224
  data-slot="sidebar-inner"
225
- className="bg-bg-primary liquid:liquid-bg group-data-[variant=floating]:border-sidebar-border group-data-[variant=floating]:rounded-uk-lg flex h-full w-full flex-col font-normal group-data-[variant=floating]:border group-data-[variant=floating]:shadow-sm"
225
+ className="bg-bg-primary liquid-dark:liquid-dark-bg liquid-light:liquid-light-bg group-data-[variant=floating]:border-sidebar-border group-data-[variant=floating]:rounded-uk-lg flex h-full w-full flex-col font-normal group-data-[variant=floating]:border group-data-[variant=floating]:shadow-sm"
226
226
  >
227
227
  {children}
228
228
  </div>
package/src/ui/toast.tsx CHANGED
@@ -19,7 +19,7 @@ const Toaster = ({ ...props }: ToasterProps) => {
19
19
  return (
20
20
  <Sonner
21
21
  toastOptions={{
22
- className: "vk-toast liquid:liquid-bg",
22
+ className: "vk-toast liquid-dark:liquid-dark-bg liquid-light:liquid-light-bg",
23
23
  descriptionClassName: "vk-toast-description",
24
24
  }}
25
25
  {...props}
@@ -30,7 +30,7 @@ export function Toolbar({ className, children, variant = "default", size = "md"
30
30
  <div
31
31
  className={cn(
32
32
  "bg-bg-primary flex items-center gap-2",
33
- "liquid:liquid-bg liquid:shadow-[0_4px_16px_0_var(--color-shadow-secondary)]",
33
+ "liquid-dark:liquid-dark-bg liquid-light:liquid-light-bg liquid:shadow-[0_4px_16px_0_var(--color-shadow-secondary)]",
34
34
  size === "sm" && "rounded-uk-md p-1.5",
35
35
  size === "md" && "rounded-uk-lg p-1.5",
36
36
  size === "lg" && "rounded-uk-xl p-1.5",
@@ -97,18 +97,9 @@ function TooltipContent({
97
97
  }
98
98
 
99
99
  const getLiquidBgClass = (side?: string) => {
100
- switch (side) {
101
- case "top":
102
- return "liquid:liquid-bg-tooltip-top";
103
- case "bottom":
104
- return "liquid:liquid-bg-tooltip-bottom";
105
- case "left":
106
- return "liquid:liquid-bg-tooltip-left";
107
- case "right":
108
- return "liquid:liquid-bg-tooltip-right";
109
- default:
110
- return "liquid:liquid-bg-tooltip-content";
111
- }
100
+ if (side === "top" || side === "bottom" || side === "left" || side === "right")
101
+ return `liquid-dark:liquid-dark-bg-tooltip-${side} liquid-light:liquid-light-bg-tooltip-${side}`;
102
+ return "liquid-dark:liquid-dark-bg-tooltip-arrow liquid-light:liquid-light-bg-tooltip-arrow";
112
103
  };
113
104
 
114
105
  return (
@@ -154,7 +145,8 @@ function TooltipContent({
154
145
  "h-[9px] w-[15px]",
155
146
  "border-none",
156
147
  "bg-bg-primary",
157
- "liquid:liquid-bg-tooltip-arrow",
148
+ "liquid-dark:liquid-dark-bg-tooltip-arrow",
149
+ "liquid-light:liquid-light-bg-tooltip-arrow",
158
150
  "relative",
159
151
  )}
160
152
  style={{
@@ -17,7 +17,7 @@ export function NavigationControls({
17
17
  }: NavigationControlsProps) {
18
18
  return (
19
19
  <div className="sticky left-1/2 z-20 w-max">
20
- <div className="bg-bg-primary/75 flex items-center gap-2 rounded-full p-1 text-sm shadow-[0_4px_16px_0_var(--color-shadow-secondary)] backdrop-blur-[2px]">
20
+ <div className="bg-bg-primary/75 liquid-dark:liquid-dark-bg liquid-light:liquid-light-bg flex items-center gap-2 rounded-full p-1 text-sm shadow-[0_4px_16px_0_var(--color-shadow-secondary)] backdrop-blur-[2px]">
21
21
  <button
22
22
  onClick={() => handlePan("left")}
23
23
  className="hover:bg-bg-secondary rounded-full p-1"
@@ -38,7 +38,7 @@ export function Tick({ time, label, timeToPercent, zIndex = 10 }: TimelineTickPr
38
38
  />
39
39
  {/* Label */}
40
40
  <div
41
- className="bg-bg-primary text-text-secondary rounded-uk-xs text-uk-sm pointer-events-none absolute top-1/2 -translate-x-1/2 -translate-y-1/2 px-1 backdrop-blur-sm"
41
+ className="bg-bg-primary liquid-dark:liquid-dark-bg liquid-light:liquid-light-bg text-text-secondary rounded-uk-xs text-uk-sm pointer-events-none absolute top-1/2 -translate-x-1/2 -translate-y-1/2 px-1 backdrop-blur-sm"
42
42
  style={{
43
43
  left: `${clampedCenterPercent}%`,
44
44
  zIndex,
@@ -127,8 +127,9 @@ export function Waterfall({
127
127
  <SyncScrollProvider>
128
128
  <div
129
129
  className={cn(
130
- "bg-bg-primary text-text-primary rounded-uk-md border-line-primary/50",
131
- "mx-auto flex w-full flex-col overflow-hidden border font-sans",
130
+ "bg-bg-primary liquid-dark:liquid-dark-bg liquid-light:liquid-light-bg",
131
+ "text-text-primary rounded-uk-md",
132
+ "mx-auto flex w-full flex-col overflow-hidden font-sans",
132
133
  "shadow-[0_4px_16px_0_var(--color-shadow-secondary)]",
133
134
  className,
134
135
  )}
@@ -173,7 +174,7 @@ export function Waterfall({
173
174
  className="overflow-y-none scrollbar-hide relative flex h-full w-full flex-auto cursor-crosshair flex-col overflow-x-hidden pl-px active:cursor-grabbing"
174
175
  >
175
176
  {/* Timeline Ruler */}
176
- <div className="bg-bg-primary sticky top-0">
177
+ <div className="sticky top-0">
177
178
  <div className="border-line-primary/50 relative h-8 border-b">
178
179
  {/* Timeline markers */}
179
180
  {ticks.map((marker, ind) => (
@@ -1,12 +0,0 @@
1
- 'use strict';
2
-
3
- var chunkHPK4YEVK_cjs = require('../../chunk-HPK4YEVK.cjs');
4
- require('../../chunk-6BD5MQ5R.cjs');
5
- require('../../chunk-CHYXRETV.cjs');
6
-
7
-
8
-
9
- Object.defineProperty(exports, "createClient", {
10
- enumerable: true,
11
- get: function () { return chunkHPK4YEVK_cjs.createClient; }
12
- });
@@ -1,7 +0,0 @@
1
- import { BetterAuth } from '../types.cjs';
2
- import 'better-auth';
3
- import 'better-auth/react';
4
-
5
- declare const createClient: (baseURL: string) => BetterAuth;
6
-
7
- export { createClient };
@@ -1,7 +0,0 @@
1
- import { BetterAuth } from '../types.js';
2
- import 'better-auth';
3
- import 'better-auth/react';
4
-
5
- declare const createClient: (baseURL: string) => BetterAuth;
6
-
7
- export { createClient };
@@ -1,3 +0,0 @@
1
- export { createClient } from '../../chunk-PZMA33PL.mjs';
2
- import '../../chunk-WGVKFNG6.mjs';
3
- import '../../chunk-PKSIXQJX.mjs';
@@ -1,75 +0,0 @@
1
- import { DockLayout, DockLayoutBottom, DockLayoutTop, DockLayoutLeft, DockLayoutContent, DockLayoutRight } from './chunk-3LO3AM25.mjs';
2
- import { useRef, useState, useEffect } from 'react';
3
- import { jsxs, jsx } from 'react/jsx-runtime';
4
-
5
- var DockLayoutView = ({
6
- left,
7
- right,
8
- top,
9
- bottom,
10
- children,
11
- className,
12
- leftClassName,
13
- rightClassName,
14
- topClassName,
15
- bottomClassName,
16
- contentClassName
17
- }) => {
18
- const containerRef = useRef(null);
19
- const leftRef = useRef(null);
20
- const rightRef = useRef(null);
21
- const bottomRef = useRef(null);
22
- const measureRef = useRef(null);
23
- const [isBottomFullWidth, setIsBottomFullWidth] = useState(false);
24
- useEffect(() => {
25
- const checkBottomWidth = () => {
26
- if (!containerRef.current || !bottom || !measureRef.current) return;
27
- const containerWidth = containerRef.current.offsetWidth;
28
- const leftWidth = leftRef.current?.offsetWidth || 0;
29
- const rightWidth = rightRef.current?.offsetWidth || 0;
30
- const availableWidth = containerWidth - leftWidth - rightWidth;
31
- const bottomActualWidth = measureRef.current.scrollWidth;
32
- setIsBottomFullWidth(bottomActualWidth > 0 && availableWidth < bottomActualWidth);
33
- };
34
- const resizeObserver = new ResizeObserver(checkBottomWidth);
35
- if (containerRef.current) {
36
- resizeObserver.observe(containerRef.current);
37
- }
38
- if (leftRef.current) {
39
- resizeObserver.observe(leftRef.current);
40
- }
41
- if (rightRef.current) {
42
- resizeObserver.observe(rightRef.current);
43
- }
44
- if (measureRef.current) {
45
- resizeObserver.observe(measureRef.current);
46
- checkBottomWidth();
47
- }
48
- return () => {
49
- resizeObserver.disconnect();
50
- };
51
- }, [bottom, left, right]);
52
- return /* @__PURE__ */ jsxs(DockLayout, { ref: containerRef, className, children: [
53
- bottom && /* @__PURE__ */ jsx(
54
- "div",
55
- {
56
- ref: measureRef,
57
- className: "pointer-events-none absolute -top-[9999px] left-0 opacity-0",
58
- style: { width: "max-content" },
59
- children: /* @__PURE__ */ jsx(DockLayoutBottom, { className: bottomClassName, children: bottom })
60
- }
61
- ),
62
- top && /* @__PURE__ */ jsx(DockLayoutTop, { className: topClassName, children: top }),
63
- /* @__PURE__ */ jsxs("div", { className: "flex flex-1 overflow-hidden", children: [
64
- left && /* @__PURE__ */ jsx("div", { ref: leftRef, children: /* @__PURE__ */ jsx(DockLayoutLeft, { className: leftClassName, children: left }) }),
65
- /* @__PURE__ */ jsxs("div", { className: "flex flex-1 flex-col overflow-hidden", children: [
66
- /* @__PURE__ */ jsx(DockLayoutContent, { className: contentClassName, children }),
67
- bottom && !isBottomFullWidth && /* @__PURE__ */ jsx("div", { className: "flex justify-center", children: /* @__PURE__ */ jsx(DockLayoutBottom, { ref: bottomRef, className: bottomClassName, children: bottom }) })
68
- ] }),
69
- right && /* @__PURE__ */ jsx("div", { ref: rightRef, children: /* @__PURE__ */ jsx(DockLayoutRight, { className: rightClassName, children: right }) })
70
- ] }),
71
- bottom && isBottomFullWidth && /* @__PURE__ */ jsx(DockLayoutBottom, { ref: bottomRef, className: bottomClassName, children: bottom })
72
- ] });
73
- };
74
-
75
- export { DockLayoutView };
@@ -1,30 +0,0 @@
1
- import { createClient } from './chunk-PZMA33PL.mjs';
2
- import { AuthContext } from './chunk-TC3W4VRO.mjs';
3
- import { bearerToken } from './chunk-WGVKFNG6.mjs';
4
- import { useRef, useEffect, useMemo } from 'react';
5
- import { jsx } from 'react/jsx-runtime';
6
-
7
- function VuerAuthProvider({ children, baseURL }) {
8
- const authClient = useRef(createClient(baseURL));
9
- const { data, isPending, refetch } = authClient.current.useSession();
10
- useEffect(() => {
11
- const searchParams = new URLSearchParams(window.location.search);
12
- const session = searchParams.get("token");
13
- if (session) {
14
- localStorage.setItem(bearerToken, encodeURIComponent(session));
15
- refetch();
16
- window.history.replaceState({}, "", window.location.pathname);
17
- }
18
- }, [refetch]);
19
- return /* @__PURE__ */ jsx(
20
- AuthContext.Provider,
21
- {
22
- value: useMemo(() => {
23
- return { data, isPending, refetch, authClient: authClient.current, baseURL };
24
- }, [baseURL, data, isPending, refetch]),
25
- children
26
- }
27
- );
28
- }
29
-
30
- export { VuerAuthProvider };
@@ -1,23 +0,0 @@
1
- 'use strict';
2
-
3
- var betterAuth = require('better-auth');
4
- var plugins$1 = require('better-auth/client/plugins');
5
- var plugins = require('better-auth/plugins');
6
-
7
- // src/auth/types.ts
8
- var auth = betterAuth.betterAuth({
9
- plugins: [
10
- plugins.customSession(async (session) => {
11
- return {
12
- ...session,
13
- session: { ...session.session, sessionToken: "" }
14
- };
15
- })
16
- ]
17
- });
18
- var options = {
19
- plugins: [plugins$1.customSessionClient()]
20
- };
21
-
22
- exports.auth = auth;
23
- exports.options = options;
@@ -1,32 +0,0 @@
1
- 'use strict';
2
-
3
- var chunkHPK4YEVK_cjs = require('./chunk-HPK4YEVK.cjs');
4
- var chunkZULCZ5L6_cjs = require('./chunk-ZULCZ5L6.cjs');
5
- var chunk6BD5MQ5R_cjs = require('./chunk-6BD5MQ5R.cjs');
6
- var react = require('react');
7
- var jsxRuntime = require('react/jsx-runtime');
8
-
9
- function VuerAuthProvider({ children, baseURL }) {
10
- const authClient = react.useRef(chunkHPK4YEVK_cjs.createClient(baseURL));
11
- const { data, isPending, refetch } = authClient.current.useSession();
12
- react.useEffect(() => {
13
- const searchParams = new URLSearchParams(window.location.search);
14
- const session = searchParams.get("token");
15
- if (session) {
16
- localStorage.setItem(chunk6BD5MQ5R_cjs.bearerToken, encodeURIComponent(session));
17
- refetch();
18
- window.history.replaceState({}, "", window.location.pathname);
19
- }
20
- }, [refetch]);
21
- return /* @__PURE__ */ jsxRuntime.jsx(
22
- chunkZULCZ5L6_cjs.AuthContext.Provider,
23
- {
24
- value: react.useMemo(() => {
25
- return { data, isPending, refetch, authClient: authClient.current, baseURL };
26
- }, [baseURL, data, isPending, refetch]),
27
- children
28
- }
29
- );
30
- }
31
-
32
- exports.VuerAuthProvider = VuerAuthProvider;
@@ -1,27 +0,0 @@
1
- 'use strict';
2
-
3
- var chunk6BD5MQ5R_cjs = require('./chunk-6BD5MQ5R.cjs');
4
- var chunkCHYXRETV_cjs = require('./chunk-CHYXRETV.cjs');
5
- var react = require('better-auth/react');
6
-
7
- var createClient = (baseURL) => {
8
- return react.createAuthClient({
9
- ...chunkCHYXRETV_cjs.options,
10
- baseURL,
11
- fetchOptions: {
12
- auth: {
13
- type: "Bearer",
14
- token: () => localStorage.getItem(chunk6BD5MQ5R_cjs.bearerToken) || ""
15
- // get the token from localStorage
16
- },
17
- onSuccess: (ctx) => {
18
- const jwt = ctx.response.headers.get("set-auth-jwt");
19
- if (jwt) {
20
- localStorage.setItem(chunk6BD5MQ5R_cjs.jwtToken, jwt);
21
- }
22
- }
23
- }
24
- });
25
- };
26
-
27
- exports.createClient = createClient;
@@ -1,77 +0,0 @@
1
- 'use strict';
2
-
3
- var chunkUULSGVNF_cjs = require('./chunk-UULSGVNF.cjs');
4
- var react = require('react');
5
- var jsxRuntime = require('react/jsx-runtime');
6
-
7
- var DockLayoutView = ({
8
- left,
9
- right,
10
- top,
11
- bottom,
12
- children,
13
- className,
14
- leftClassName,
15
- rightClassName,
16
- topClassName,
17
- bottomClassName,
18
- contentClassName
19
- }) => {
20
- const containerRef = react.useRef(null);
21
- const leftRef = react.useRef(null);
22
- const rightRef = react.useRef(null);
23
- const bottomRef = react.useRef(null);
24
- const measureRef = react.useRef(null);
25
- const [isBottomFullWidth, setIsBottomFullWidth] = react.useState(false);
26
- react.useEffect(() => {
27
- const checkBottomWidth = () => {
28
- if (!containerRef.current || !bottom || !measureRef.current) return;
29
- const containerWidth = containerRef.current.offsetWidth;
30
- const leftWidth = leftRef.current?.offsetWidth || 0;
31
- const rightWidth = rightRef.current?.offsetWidth || 0;
32
- const availableWidth = containerWidth - leftWidth - rightWidth;
33
- const bottomActualWidth = measureRef.current.scrollWidth;
34
- setIsBottomFullWidth(bottomActualWidth > 0 && availableWidth < bottomActualWidth);
35
- };
36
- const resizeObserver = new ResizeObserver(checkBottomWidth);
37
- if (containerRef.current) {
38
- resizeObserver.observe(containerRef.current);
39
- }
40
- if (leftRef.current) {
41
- resizeObserver.observe(leftRef.current);
42
- }
43
- if (rightRef.current) {
44
- resizeObserver.observe(rightRef.current);
45
- }
46
- if (measureRef.current) {
47
- resizeObserver.observe(measureRef.current);
48
- checkBottomWidth();
49
- }
50
- return () => {
51
- resizeObserver.disconnect();
52
- };
53
- }, [bottom, left, right]);
54
- return /* @__PURE__ */ jsxRuntime.jsxs(chunkUULSGVNF_cjs.DockLayout, { ref: containerRef, className, children: [
55
- bottom && /* @__PURE__ */ jsxRuntime.jsx(
56
- "div",
57
- {
58
- ref: measureRef,
59
- className: "pointer-events-none absolute -top-[9999px] left-0 opacity-0",
60
- style: { width: "max-content" },
61
- children: /* @__PURE__ */ jsxRuntime.jsx(chunkUULSGVNF_cjs.DockLayoutBottom, { className: bottomClassName, children: bottom })
62
- }
63
- ),
64
- top && /* @__PURE__ */ jsxRuntime.jsx(chunkUULSGVNF_cjs.DockLayoutTop, { className: topClassName, children: top }),
65
- /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-1 overflow-hidden", children: [
66
- left && /* @__PURE__ */ jsxRuntime.jsx("div", { ref: leftRef, children: /* @__PURE__ */ jsxRuntime.jsx(chunkUULSGVNF_cjs.DockLayoutLeft, { className: leftClassName, children: left }) }),
67
- /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-1 flex-col overflow-hidden", children: [
68
- /* @__PURE__ */ jsxRuntime.jsx(chunkUULSGVNF_cjs.DockLayoutContent, { className: contentClassName, children }),
69
- bottom && !isBottomFullWidth && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex justify-center", children: /* @__PURE__ */ jsxRuntime.jsx(chunkUULSGVNF_cjs.DockLayoutBottom, { ref: bottomRef, className: bottomClassName, children: bottom }) })
70
- ] }),
71
- right && /* @__PURE__ */ jsxRuntime.jsx("div", { ref: rightRef, children: /* @__PURE__ */ jsxRuntime.jsx(chunkUULSGVNF_cjs.DockLayoutRight, { className: rightClassName, children: right }) })
72
- ] }),
73
- bottom && isBottomFullWidth && /* @__PURE__ */ jsxRuntime.jsx(chunkUULSGVNF_cjs.DockLayoutBottom, { ref: bottomRef, className: bottomClassName, children: bottom })
74
- ] });
75
- };
76
-
77
- exports.DockLayoutView = DockLayoutView;
@@ -1,20 +0,0 @@
1
- import { betterAuth } from 'better-auth';
2
- import { customSessionClient } from 'better-auth/client/plugins';
3
- import { customSession } from 'better-auth/plugins';
4
-
5
- // src/auth/types.ts
6
- var auth = betterAuth({
7
- plugins: [
8
- customSession(async (session) => {
9
- return {
10
- ...session,
11
- session: { ...session.session, sessionToken: "" }
12
- };
13
- })
14
- ]
15
- });
16
- var options = {
17
- plugins: [customSessionClient()]
18
- };
19
-
20
- export { auth, options };
@@ -1,25 +0,0 @@
1
- import { jwtToken, bearerToken } from './chunk-WGVKFNG6.mjs';
2
- import { options } from './chunk-PKSIXQJX.mjs';
3
- import { createAuthClient } from 'better-auth/react';
4
-
5
- var createClient = (baseURL) => {
6
- return createAuthClient({
7
- ...options,
8
- baseURL,
9
- fetchOptions: {
10
- auth: {
11
- type: "Bearer",
12
- token: () => localStorage.getItem(bearerToken) || ""
13
- // get the token from localStorage
14
- },
15
- onSuccess: (ctx) => {
16
- const jwt = ctx.response.headers.get("set-auth-jwt");
17
- if (jwt) {
18
- localStorage.setItem(jwtToken, jwt);
19
- }
20
- }
21
- }
22
- });
23
- };
24
-
25
- export { createClient };
@@ -1,23 +0,0 @@
1
- import { createAuthClient } from "better-auth/react";
2
-
3
- import { bearerToken, jwtToken } from "../localstorage-key";
4
- import { BetterAuth, options } from "../types";
5
-
6
- export const createClient = (baseURL: string): BetterAuth => {
7
- return createAuthClient({
8
- ...options,
9
- baseURL: baseURL,
10
- fetchOptions: {
11
- auth: {
12
- type: "Bearer",
13
- token: () => localStorage.getItem(bearerToken) || "", // get the token from localStorage
14
- },
15
- onSuccess: (ctx) => {
16
- const jwt = ctx.response.headers.get("set-auth-jwt");
17
- if (jwt) {
18
- localStorage.setItem(jwtToken, jwt);
19
- }
20
- },
21
- },
22
- });
23
- };