@upstash/react-redis-browser 0.2.6 → 0.2.7-canary

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.
package/dist/index.js CHANGED
@@ -1,6 +1,24 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { newObj[key] = obj[key]; } } } newObj.default = obj; return newObj; } } function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }// src/components/databrowser/index.tsx
2
2
  var _react = require('react'); var React = _interopRequireWildcard(_react); var React2 = _interopRequireWildcard(_react); var React3 = _interopRequireWildcard(_react); var React4 = _interopRequireWildcard(_react); var React5 = _interopRequireWildcard(_react); var React6 = _interopRequireWildcard(_react); var React7 = _interopRequireWildcard(_react); var React8 = _interopRequireWildcard(_react); var React9 = _interopRequireWildcard(_react); var React10 = _interopRequireWildcard(_react); var React11 = _interopRequireWildcard(_react); var React12 = _interopRequireWildcard(_react); var React13 = _interopRequireWildcard(_react);
3
3
 
4
+ // src/dark-mode-context.tsx
5
+
6
+ var _jsxruntime = require('react/jsx-runtime');
7
+ var DarkModeContext = _react.createContext.call(void 0, void 0);
8
+ var DarkModeProvider = ({
9
+ children,
10
+ darkMode
11
+ }) => {
12
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, DarkModeContext.Provider, { value: { darkMode }, children });
13
+ };
14
+ var useDarkMode = () => {
15
+ const context = _react.useContext.call(void 0, DarkModeContext);
16
+ if (!context) {
17
+ throw new Error("useDarkMode must be used within a DarkModeProvider");
18
+ }
19
+ return context.darkMode;
20
+ };
21
+
4
22
  // src/redis-context.tsx
5
23
 
6
24
 
@@ -181,7 +199,7 @@ var queryClient = new (0, _reactquery.QueryClient)({
181
199
  });
182
200
 
183
201
  // src/redis-context.tsx
184
- var _jsxruntime = require('react/jsx-runtime');
202
+
185
203
  var RedisContext = _react.createContext.call(void 0, void 0);
186
204
  var RedisProvider = ({
187
205
  children,
@@ -3102,12 +3120,12 @@ var ToastViewport = React2.forwardRef(({ className, ...props }, ref) => /* @__PU
3102
3120
  ));
3103
3121
  ToastViewport.displayName = ToastPrimitives.Viewport.displayName;
3104
3122
  var toastVariants = cva(
3105
- "group pointer-events-auto relative flex w-full items-center justify-between space-x-2 overflow-hidden rounded-md border border-zinc-200 p-4 pr-6 shadow-lg transition-all data-[swipe=cancel]:translate-x-0 data-[swipe=end]:translate-x-[var(--radix-toast-swipe-end-x)] data-[swipe=move]:translate-x-[var(--radix-toast-swipe-move-x)] data-[swipe=move]:transition-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[swipe=end]:animate-out data-[state=closed]:fade-out-80 data-[state=closed]:slide-out-to-right-full data-[state=open]:slide-in-from-top-full data-[state=open]:sm:slide-in-from-bottom-full dark:border-zinc-800",
3123
+ "group pointer-events-auto relative flex w-full items-center justify-between space-x-2 overflow-hidden rounded-md border border-zinc-200 p-4 pr-6 shadow-lg transition-all data-[swipe=cancel]:translate-x-0 data-[swipe=end]:translate-x-[var(--radix-toast-swipe-end-x)] data-[swipe=move]:translate-x-[var(--radix-toast-swipe-move-x)] data-[swipe=move]:transition-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[swipe=end]:animate-out data-[state=closed]:fade-out-80 data-[state=closed]:slide-out-to-right-full data-[state=open]:slide-in-from-top-full data-[state=open]:sm:slide-in-from-bottom-full",
3106
3124
  {
3107
3125
  variants: {
3108
3126
  variant: {
3109
- default: "border bg-white text-zinc-950 dark:bg-zinc-950 dark:text-zinc-50",
3110
- destructive: "destructive group border-red-500 bg-red-500 text-zinc-50 dark:border-red-900 dark:bg-red-900 dark:text-zinc-50"
3127
+ default: "border bg-white text-zinc-950",
3128
+ destructive: "destructive group border-red-500 bg-red-500 text-zinc-50"
3111
3129
  }
3112
3130
  },
3113
3131
  defaultVariants: {
@@ -3131,7 +3149,7 @@ var ToastAction = React2.forwardRef(({ className, ...props }, ref) => /* @__PURE
3131
3149
  {
3132
3150
  ref,
3133
3151
  className: cn(
3134
- "inline-flex h-8 shrink-0 items-center justify-center rounded-md border border-zinc-200 bg-transparent px-3 text-sm font-medium transition-colors hover:bg-zinc-100 focus:outline-none focus:ring-1 focus:ring-zinc-950 disabled:pointer-events-none disabled:opacity-50 group-[.destructive]:border-zinc-100/40 group-[.destructive]:hover:border-red-500/30 group-[.destructive]:hover:bg-red-500 group-[.destructive]:hover:text-zinc-50 group-[.destructive]:focus:ring-red-500 dark:border-neutral-800 dark:hover:bg-neutral-800 dark:focus:ring-neutral-300 dark:group-[.destructive]:border-neutral-800/40 dark:group-[.destructive]:hover:border-red-900/30 dark:group-[.destructive]:hover:bg-red-900 dark:group-[.destructive]:hover:text-neutral-50 dark:group-[.destructive]:focus:ring-red-900",
3152
+ "inline-flex h-8 shrink-0 items-center justify-center rounded-md border border-zinc-200 bg-transparent px-3 text-sm font-medium transition-colors hover:bg-zinc-100 focus:outline-none focus:ring-1 focus:ring-zinc-950 disabled:pointer-events-none disabled:opacity-50 group-[.destructive]:border-zinc-100/40 group-[.destructive]:hover:border-red-500/30 group-[.destructive]:hover:bg-red-500 group-[.destructive]:hover:text-zinc-50 group-[.destructive]:focus:ring-red-500",
3135
3153
  className
3136
3154
  ),
3137
3155
  ...props
@@ -3143,7 +3161,7 @@ var ToastClose = React2.forwardRef(({ className, ...props }, ref) => /* @__PURE_
3143
3161
  {
3144
3162
  ref,
3145
3163
  className: cn(
3146
- "absolute right-1 top-1 rounded-md p-1 text-neutral-950/50 opacity-0 transition-opacity hover:text-neutral-950 focus:opacity-100 focus:outline-none focus:ring-1 group-hover:opacity-100 group-[.destructive]:text-red-300 group-[.destructive]:hover:text-red-50 group-[.destructive]:focus:ring-red-400 group-[.destructive]:focus:ring-offset-red-600 dark:text-neutral-50/50 dark:hover:text-neutral-50",
3164
+ "absolute right-1 top-1 rounded-md p-1 text-zinc-950/50 opacity-0 transition-opacity hover:text-zinc-950 focus:opacity-100 focus:outline-none focus:ring-1 group-hover:opacity-100 group-[.destructive]:text-red-300 group-[.destructive]:hover:text-red-50 group-[.destructive]:focus:ring-red-400 group-[.destructive]:focus:ring-offset-red-600",
3147
3165
  className
3148
3166
  ),
3149
3167
  "toast-close": "",
@@ -3314,17 +3332,17 @@ var _iconsreact = require('@tabler/icons-react');
3314
3332
  var _reactslot = require('@radix-ui/react-slot');
3315
3333
 
3316
3334
  var buttonVariants = cva(
3317
- "inline-flex items-center justify-center rounded-md text-sm ring-offset-white transition-colors focus-visible:outline-none focus-visible:ring-0 focus-visible:ring-zinc-950 focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 dark:ring-offset-zinc-950 dark:focus-visible:ring-zinc-300",
3335
+ "inline-flex items-center justify-center rounded-md text-sm ring-offset-white transition-colors focus-visible:outline-none focus-visible:ring-0 focus-visible:ring-zinc-950 focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",
3318
3336
  {
3319
3337
  variants: {
3320
3338
  variant: {
3321
- default: "bg-white text-black border shadow-sm border-zinc-300 hover:bg-[#FFFFFF]/70 dark:bg-black dark:text-[#FFFFFF] dark:hover:bg-black/10",
3322
- destructive: "bg-red-500 text-zinc-50 hover:bg-red-500/90 dark:bg-red-900 dark:text-zinc-50 dark:hover:bg-red-900/90",
3323
- outline: "border border-zinc-200 bg-white hover:bg-zinc-100 hover:text-zinc-900 dark:border-zinc-800 dark:bg-zinc-950 dark:hover:bg-zinc-800 dark:hover:text-neutral-50",
3324
- primary: "bg-emerald-500 text-white shadow-sm hover:bg-emerald-600 dark:bg-emerald-500 dark:text-white dark:hover:bg-emerald-600",
3325
- secondary: "bg-neutral-100 text-neutral-900 hover:bg-neutral-100/80 dark:bg-neutral-800 dark:text-neutral-50 dark:hover:bg-neutral-800/80",
3326
- ghost: "hover:bg-[#0000000A] dark:hover:bg-neutral-800 dark:hover:text-neutral-50",
3327
- link: "text-neutral-900 underline-offset-4 hover:underline dark:text-neutral-50"
3339
+ default: "bg-white text-black border shadow-sm border-zinc-300 hover:bg-white/70",
3340
+ destructive: "bg-red-500 text-zinc-50 hover:bg-red-500/90",
3341
+ outline: "border border-zinc-200 bg-white hover:bg-zinc-100 hover:text-zinc-900",
3342
+ primary: "bg-emerald-500 text-white shadow-sm hover:bg-emerald-600",
3343
+ secondary: "bg-zinc-100 text-zinc-900 hover:bg-zinc-100/80",
3344
+ ghost: "hover:bg-black/10",
3345
+ link: "text-zinc-900 underline-offset-4 hover:underline"
3328
3346
  },
3329
3347
  size: {
3330
3348
  default: "h-8 px-4 py-2",
@@ -3358,13 +3376,7 @@ Button.displayName = "Button";
3358
3376
  // src/components/ui/skeleton.tsx
3359
3377
 
3360
3378
  function Skeleton({ className, ...props }) {
3361
- return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
3362
- "div",
3363
- {
3364
- className: cn("animate-pulse rounded-md bg-zinc-900/10 dark:bg-zinc-50/10", className),
3365
- ...props
3366
- }
3367
- );
3379
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: cn("animate-pulse rounded-md bg-zinc-900/10", className), ...props });
3368
3380
  }
3369
3381
 
3370
3382
  // src/components/databrowser/components/sidebar/db-size.tsx
@@ -3838,7 +3850,7 @@ var Input = React4.forwardRef(
3838
3850
  {
3839
3851
  type,
3840
3852
  className: cn(
3841
- "flex h-8 w-full rounded-md border border-zinc-200 bg-white px-3 py-2 text-sm ring-offset-white file:border-0 file:bg-transparent file:text-sm file:font-medium focus-visible:outline-none focus-visible:ring-zinc-950 disabled:cursor-not-allowed disabled:opacity-50",
3853
+ "flex h-8 w-full rounded-md border border-zinc-200 bg-white px-3 py-2 text-sm ring-offset-white file:border-0 file:bg-transparent file:text-sm file:font-medium focus-visible:outline-none focus-visible:ring-zinc-950 disabled:cursor-not-allowed disabled:opacity-50",
3842
3854
  className
3843
3855
  ),
3844
3856
  ref,
@@ -3862,7 +3874,7 @@ var PopoverContent = React5.forwardRef(({ className, align = "center", sideOffse
3862
3874
  align,
3863
3875
  sideOffset,
3864
3876
  className: cn(
3865
- "data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-72 rounded-md border border-zinc-200 bg-white p-4 text-zinc-950 shadow-md outline-none dark:border-zinc-800 mt-0.5 dark:bg-zinc-950 dark:text-zinc-50",
3877
+ "data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-72 rounded-md border border-zinc-200 bg-white p-4 text-zinc-950 shadow-md outline-none mt-0.5",
3866
3878
  className
3867
3879
  ),
3868
3880
  ...props
@@ -3882,7 +3894,7 @@ var SelectTrigger = React6.forwardRef(({ className, children, ...props }, ref) =
3882
3894
  {
3883
3895
  ref,
3884
3896
  className: cn(
3885
- "relative flex h-8 w-full items-center justify-between rounded-md border border-zinc-200 bg-white px-3 py-2 text-sm ring-offset-white placeholder:text-zinc-500 focus:ring-zinc-950 disabled:cursor-not-allowed disabled:opacity-50 dark:border-zinc-800 dark:bg-zinc-950 dark:ring-offset-zinc-950 dark:placeholder:text-zinc-400 dark:focus:ring-zinc-300",
3897
+ "relative flex h-8 w-full items-center justify-between rounded-md border border-zinc-200 bg-white px-3 py-2 text-sm ring-offset-white placeholder:text-zinc-500 focus:ring-zinc-950 disabled:cursor-not-allowed disabled:opacity-50",
3886
3898
  className
3887
3899
  ),
3888
3900
  ...props,
@@ -3900,9 +3912,9 @@ var SelectTrigger = React6.forwardRef(({ className, children, ...props }, ref) =
3900
3912
  "path",
3901
3913
  {
3902
3914
  d: "M4 6L8 10L12 6",
3903
- stroke: "black",
3915
+ stroke: "currentColor",
3904
3916
  strokeOpacity: "0.4",
3905
- strokeWidth: "1.4",
3917
+ strokeWidth: "1.2",
3906
3918
  strokeLinecap: "round",
3907
3919
  strokeLinejoin: "round"
3908
3920
  }
@@ -3918,7 +3930,7 @@ var SelectContent = React6.forwardRef(({ className, children, position = "popper
3918
3930
  {
3919
3931
  ref,
3920
3932
  className: cn(
3921
- "relative z-50 min-w-[8rem] overflow-hidden rounded-md border border-zinc-200 bg-white text-zinc-950 shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 dark:border-zinc-800 dark:bg-zinc-950 dark:text-neutral-50",
3933
+ "relative z-50 min-w-[8rem] overflow-hidden rounded-md border border-zinc-200 bg-white text-zinc-950 shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",
3922
3934
  position === "popper" && "data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",
3923
3935
  className
3924
3936
  ),
@@ -3951,7 +3963,7 @@ var SelectItem = React6.forwardRef(({ className, children, ...props }, ref) => /
3951
3963
  {
3952
3964
  ref,
3953
3965
  className: cn(
3954
- "relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-2 pr-8 text-sm outline-none focus:bg-neutral-100 focus:text-neutral-900 data-[disabled]:pointer-events-none data-[disabled]:opacity-50 dark:focus:bg-neutral-800 dark:focus:text-neutral-50",
3966
+ "relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-2 pr-8 text-sm outline-none focus:bg-zinc-100 focus:text-zinc-900 data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
3955
3967
  className
3956
3968
  ),
3957
3969
  ...props,
@@ -3985,7 +3997,7 @@ var SelectSeparator = React6.forwardRef(({ className, ...props }, ref) => /* @__
3985
3997
  SelectPrimitive.Separator,
3986
3998
  {
3987
3999
  ref,
3988
- className: cn("-mx-1 my-1 h-px bg-neutral-100 dark:bg-neutral-800", className),
4000
+ className: cn("-mx-1 my-1 h-px bg-zinc-100", className),
3989
4001
  ...props
3990
4002
  }
3991
4003
  ));
@@ -4010,7 +4022,7 @@ var Spinner = ({
4010
4022
  viewBox: "0 0 24 24",
4011
4023
  fill: "none",
4012
4024
  stroke: "currentColor",
4013
- strokeWidth: "2",
4025
+ strokeWidth: "1.2",
4014
4026
  strokeLinecap: "round",
4015
4027
  strokeLinejoin: "round",
4016
4028
  className: cn("h-4 w-4 animate-spin", isLoadingText ? "ml-2" : ""),
@@ -4237,7 +4249,7 @@ var ContextMenuSubTrigger = React7.forwardRef(({ className, inset, children, ...
4237
4249
  {
4238
4250
  ref,
4239
4251
  className: cn(
4240
- "flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-neutral-100 focus:text-neutral-900 data-[state=open]:bg-neutral-100 data-[state=open]:text-neutral-900 dark:focus:bg-neutral-800 dark:focus:text-neutral-50 dark:data-[state=open]:bg-neutral-800 dark:data-[state=open]:text-neutral-50",
4252
+ "flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-zinc-100 focus:text-zinc-900 data-[state=open]:bg-zinc-100 data-[state=open]:text-zinc-900",
4241
4253
  inset && "pl-8",
4242
4254
  className
4243
4255
  ),
@@ -4254,7 +4266,7 @@ var ContextMenuSubContent = React7.forwardRef(({ className, ...props }, ref) =>
4254
4266
  {
4255
4267
  ref,
4256
4268
  className: cn(
4257
- "z-50 min-w-[8rem] overflow-hidden rounded-md border border-neutral-200 bg-white p-1 text-neutral-950 shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 dark:border-neutral-800 dark:bg-neutral-950 dark:text-neutral-50",
4269
+ "z-50 min-w-[8rem] overflow-hidden rounded-md border border-zinc-200 bg-white p-1 text-zinc-950 shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",
4258
4270
  className
4259
4271
  ),
4260
4272
  ...props
@@ -4266,7 +4278,7 @@ var ContextMenuContent = React7.forwardRef(({ className, ...props }, ref) => /*
4266
4278
  {
4267
4279
  ref,
4268
4280
  className: cn(
4269
- "z-50 min-w-[8rem] overflow-hidden rounded-md border border-neutral-200 bg-white p-1 text-neutral-950 shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 dark:border-neutral-800 dark:bg-neutral-950 dark:text-neutral-50",
4281
+ "z-50 min-w-[8rem] overflow-hidden rounded-md border border-zinc-200 bg-white p-1 text-zinc-950 shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",
4270
4282
  className
4271
4283
  ),
4272
4284
  ...props
@@ -4278,7 +4290,7 @@ var ContextMenuItem = React7.forwardRef(({ className, inset, ...props }, ref) =>
4278
4290
  {
4279
4291
  ref,
4280
4292
  className: cn(
4281
- "relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-neutral-100 focus:text-neutral-900 data-[disabled]:pointer-events-none data-[disabled]:opacity-50 dark:focus:bg-neutral-800 dark:focus:text-neutral-50",
4293
+ "relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-zinc-100 focus:text-zinc-900 data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
4282
4294
  inset && "pl-8",
4283
4295
  className
4284
4296
  ),
@@ -4291,7 +4303,7 @@ var ContextMenuCheckboxItem = React7.forwardRef(({ className, children, checked,
4291
4303
  {
4292
4304
  ref,
4293
4305
  className: cn(
4294
- "relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-neutral-100 focus:text-neutral-900 data-[disabled]:pointer-events-none data-[disabled]:opacity-50 dark:focus:bg-neutral-800 dark:focus:text-neutral-50",
4306
+ "relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-zinc-100 focus:text-zinc-900 data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
4295
4307
  className
4296
4308
  ),
4297
4309
  checked,
@@ -4308,7 +4320,7 @@ var ContextMenuRadioItem = React7.forwardRef(({ className, children, ...props },
4308
4320
  {
4309
4321
  ref,
4310
4322
  className: cn(
4311
- "relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-neutral-100 focus:text-neutral-900 data-[disabled]:pointer-events-none data-[disabled]:opacity-50 dark:focus:bg-neutral-800 dark:focus:text-neutral-50",
4323
+ "relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-zinc-100 focus:text-zinc-900 data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
4312
4324
  className
4313
4325
  ),
4314
4326
  ...props,
@@ -4323,11 +4335,7 @@ var ContextMenuLabel = React7.forwardRef(({ className, inset, ...props }, ref) =
4323
4335
  ContextMenuPrimitive.Label,
4324
4336
  {
4325
4337
  ref,
4326
- className: cn(
4327
- "px-2 py-1.5 text-sm font-semibold text-neutral-950 dark:text-neutral-50",
4328
- inset && "pl-8",
4329
- className
4330
- ),
4338
+ className: cn("px-2 py-1.5 text-sm font-semibold text-zinc-950", inset && "pl-8", className),
4331
4339
  ...props
4332
4340
  }
4333
4341
  ));
@@ -4336,22 +4344,13 @@ var ContextMenuSeparator = React7.forwardRef(({ className, ...props }, ref) => /
4336
4344
  ContextMenuPrimitive.Separator,
4337
4345
  {
4338
4346
  ref,
4339
- className: cn("-mx-1 my-1 h-px bg-neutral-200 dark:bg-neutral-800", className),
4347
+ className: cn("-mx-1 my-1 h-px bg-zinc-200", className),
4340
4348
  ...props
4341
4349
  }
4342
4350
  ));
4343
4351
  ContextMenuSeparator.displayName = ContextMenuPrimitive.Separator.displayName;
4344
4352
  var ContextMenuShortcut = ({ className, ...props }) => {
4345
- return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
4346
- "span",
4347
- {
4348
- className: cn(
4349
- "ml-auto text-xs tracking-widest text-neutral-500 dark:text-neutral-400",
4350
- className
4351
- ),
4352
- ...props
4353
- }
4354
- );
4353
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: cn("ml-auto text-xs tracking-widest text-zinc-500", className), ...props });
4355
4354
  };
4356
4355
  ContextMenuShortcut.displayName = "ContextMenuShortcut";
4357
4356
 
@@ -4367,7 +4366,7 @@ var AlertDialogOverlay = React8.forwardRef(({ className, ...props }, ref) => /*
4367
4366
  AlertDialogPrimitive.Overlay,
4368
4367
  {
4369
4368
  className: cn(
4370
- "fixed inset-0 z-50 bg-white/80 backdrop-blur-sm data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 dark:bg-zinc-950/80",
4369
+ "fixed inset-0 z-50 bg-white/80 backdrop-blur-sm data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",
4371
4370
  className
4372
4371
  ),
4373
4372
  ...props,
@@ -4382,7 +4381,7 @@ var AlertDialogContent = React8.forwardRef(({ className, ...props }, ref) => /*
4382
4381
  {
4383
4382
  ref,
4384
4383
  className: cn(
4385
- "antialiased data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border border-zinc-200 bg-white p-6 shadow-lg duration-200 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] dark:border-zinc-800 dark:bg-zinc-950 sm:rounded-lg md:w-full",
4384
+ "antialiased data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:slide-in-from-top-[48%]sm:rounded-lg fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border border-zinc-200 bg-white p-6 shadow-lg duration-200 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 md:w-full",
4386
4385
  className
4387
4386
  ),
4388
4387
  ...props
@@ -4413,7 +4412,7 @@ var AlertDialogDescription = React8.forwardRef(({ className, ...props }, ref) =>
4413
4412
  AlertDialogPrimitive.Description,
4414
4413
  {
4415
4414
  ref,
4416
- className: cn("text-sm text-zinc-500 dark:text-zinc-400", className),
4415
+ className: cn("text-sm text-zinc-500", className),
4417
4416
  ...props
4418
4417
  }
4419
4418
  ));
@@ -4457,7 +4456,7 @@ function DeleteAlertDialog({
4457
4456
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
4458
4457
  AlertDialogAction,
4459
4458
  {
4460
- className: "bg-red-500 text-gray-50 hover:bg-red-600",
4459
+ className: "bg-red-500 text-zinc-50 hover:bg-red-600",
4461
4460
  onClick: onDeleteConfirm,
4462
4461
  children: "Yes, Delete"
4463
4462
  }
@@ -4630,7 +4629,7 @@ var ScrollBar = React9.forwardRef(({ className, ...props }, ref) => /* @__PURE__
4630
4629
  children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
4631
4630
  ScrollAreaPrimitive.ScrollAreaThumb,
4632
4631
  {
4633
- className: cn("relative flex-1 rounded-full bg-neutral-200/70 dark:bg-neutral-800")
4632
+ className: cn("relative flex-1 rounded-full bg-zinc-200/70")
4634
4633
  }
4635
4634
  )
4636
4635
  }
@@ -4715,13 +4714,13 @@ var DATA_TYPE_NAMES = {
4715
4714
 
4716
4715
 
4717
4716
  var iconsMap = {
4718
- string: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _iconsreact.IconQuote, { size: 15, stroke: 1.3 }),
4719
- set: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _iconsreact.IconLayersIntersect, { size: 15, stroke: 1.3 }),
4720
- hash: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _iconsreact.IconHash, { size: 15, stroke: 1.3 }),
4721
- json: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _iconsreact.IconCodeDots, { size: 15, stroke: 1.3 }),
4722
- zset: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _iconsreact.IconArrowsSort, { size: 15, stroke: 1.3 }),
4723
- list: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _iconsreact.IconList, { size: 15, stroke: 1.3 }),
4724
- stream: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _iconsreact.IconList, { size: 15, stroke: 1.3 })
4717
+ string: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _iconsreact.IconQuote, { size: 15, stroke: 1.2 }),
4718
+ set: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _iconsreact.IconLayersIntersect, { size: 15, stroke: 1.2 }),
4719
+ hash: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _iconsreact.IconHash, { size: 15, stroke: 1.2 }),
4720
+ json: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _iconsreact.IconCodeDots, { size: 15, stroke: 1.2 }),
4721
+ zset: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _iconsreact.IconArrowsSort, { size: 15, stroke: 1.2 }),
4722
+ list: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _iconsreact.IconList, { size: 15, stroke: 1.2 }),
4723
+ stream: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _iconsreact.IconList, { size: 15, stroke: 1.2 })
4725
4724
  };
4726
4725
  var tagVariants = cva("inline-flex shrink-0 items-center rounded-md justify-center", {
4727
4726
  variants: {
@@ -4763,7 +4762,7 @@ var DropdownMenuSubTrigger = React10.forwardRef(({ className, inset, children, .
4763
4762
  {
4764
4763
  ref,
4765
4764
  className: cn(
4766
- "flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-neutral-100 data-[state=open]:bg-neutral-100 dark:focus:bg-neutral-800 dark:data-[state=open]:bg-neutral-800 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",
4765
+ "data-[state=open]:bg-zinc-100[&_svg]:pointer-events-none flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-zinc-100 [&_svg]:size-4 [&_svg]:shrink-0",
4767
4766
  inset && "pl-8",
4768
4767
  className
4769
4768
  ),
@@ -4780,7 +4779,7 @@ var DropdownMenuSubContent = React10.forwardRef(({ className, ...props }, ref) =
4780
4779
  {
4781
4780
  ref,
4782
4781
  className: cn(
4783
- "z-50 min-w-[8rem] origin-[--radix-dropdown-menu-content-transform-origin] overflow-hidden rounded-md border border-neutral-200 bg-white p-1 text-neutral-950 shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 dark:border-neutral-800 dark:bg-neutral-950 dark:text-neutral-50",
4782
+ "z-50 min-w-[8rem] origin-[--radix-dropdown-menu-content-transform-origin] overflow-hidden rounded-md border border-zinc-200 bg-white p-1 text-zinc-950 shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",
4784
4783
  className
4785
4784
  ),
4786
4785
  ...props
@@ -4793,7 +4792,7 @@ var DropdownMenuContent = React10.forwardRef(({ className, sideOffset = 4, ...pr
4793
4792
  ref,
4794
4793
  sideOffset,
4795
4794
  className: cn(
4796
- "z-50 max-h-[var(--radix-dropdown-menu-content-available-height)] min-w-[8rem] overflow-y-auto overflow-x-hidden rounded-md border border-neutral-200 bg-white p-1 text-neutral-950 shadow-md dark:border-neutral-800 dark:bg-neutral-950 dark:text-neutral-50",
4795
+ "z-50 max-h-[var(--radix-dropdown-menu-content-available-height)] min-w-[8rem] overflow-y-auto overflow-x-hidden rounded-md border border-zinc-200 bg-white p-1 text-zinc-950 shadow-md",
4797
4796
  "origin-[--radix-dropdown-menu-content-transform-origin] data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",
4798
4797
  className
4799
4798
  ),
@@ -4806,7 +4805,7 @@ var DropdownMenuItem = React10.forwardRef(({ className, inset, ...props }, ref)
4806
4805
  {
4807
4806
  ref,
4808
4807
  className: cn(
4809
- "relative flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none transition-colors focus:bg-neutral-100 focus:text-neutral-900 data-[disabled]:pointer-events-none data-[disabled]:opacity-50 dark:focus:bg-neutral-800 dark:focus:text-neutral-50 [&>svg]:size-4 [&>svg]:shrink-0",
4808
+ "data-[disabled]:opacity-50[&>svg]:size-4 relative flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none transition-colors focus:bg-zinc-100 focus:text-zinc-900 data-[disabled]:pointer-events-none [&>svg]:shrink-0",
4810
4809
  inset && "pl-8",
4811
4810
  className
4812
4811
  ),
@@ -4819,7 +4818,7 @@ var DropdownMenuCheckboxItem = React10.forwardRef(({ className, children, checke
4819
4818
  {
4820
4819
  ref,
4821
4820
  className: cn(
4822
- "relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-neutral-100 focus:text-neutral-900 data-[disabled]:pointer-events-none data-[disabled]:opacity-50 dark:focus:bg-neutral-800 dark:focus:text-neutral-50",
4821
+ "relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-zinc-100 focus:text-zinc-900 data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
4823
4822
  className
4824
4823
  ),
4825
4824
  checked,
@@ -4836,7 +4835,7 @@ var DropdownMenuRadioItem = React10.forwardRef(({ className, children, ...props
4836
4835
  {
4837
4836
  ref,
4838
4837
  className: cn(
4839
- "relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-neutral-100 focus:text-neutral-900 data-[disabled]:pointer-events-none data-[disabled]:opacity-50 dark:focus:bg-neutral-800 dark:focus:text-neutral-50",
4838
+ "relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-zinc-100 focus:text-zinc-900 data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
4840
4839
  className
4841
4840
  ),
4842
4841
  ...props,
@@ -4860,7 +4859,7 @@ var DropdownMenuSeparator = React10.forwardRef(({ className, ...props }, ref) =>
4860
4859
  DropdownMenuPrimitive.Separator,
4861
4860
  {
4862
4861
  ref,
4863
- className: cn("-mx-1 my-1 h-px bg-neutral-100 dark:bg-neutral-800", className),
4862
+ className: cn("-mx-1 my-1 h-px bg-zinc-100", className),
4864
4863
  ...props
4865
4864
  }
4866
4865
  ));
@@ -4960,7 +4959,7 @@ var TooltipContent = React11.forwardRef(({ className, sideOffset = 4, ...props }
4960
4959
  ref,
4961
4960
  sideOffset,
4962
4961
  className: cn(
4963
- "z-50 overflow-hidden rounded-md bg-zinc-900 px-3 py-1.5 text-xs text-zinc-50 animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 dark:bg-zinc-50 dark:text-zinc-900",
4962
+ "z-50 overflow-hidden rounded-md bg-zinc-900 px-3 py-1.5 text-xs text-zinc-50 animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",
4964
4963
  className
4965
4964
  ),
4966
4965
  ...props
@@ -5124,6 +5123,7 @@ var CustomEditor = ({
5124
5123
  const { active } = useTab();
5125
5124
  const monaco = _react2.useMonaco.call(void 0, );
5126
5125
  const editorRef = _react.useRef.call(void 0, );
5126
+ const theme = useDarkMode();
5127
5127
  _react.useEffect.call(void 0, () => {
5128
5128
  if (!active || !monaco || !editorRef.current) {
5129
5129
  return;
@@ -5133,6 +5133,7 @@ var CustomEditor = ({
5133
5133
  const editor = /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
5134
5134
  _react2.Editor,
5135
5135
  {
5136
+ theme: theme === "dark" ? "vs-dark" : "light",
5136
5137
  loading: void 0,
5137
5138
  onMount: (editor2) => {
5138
5139
  editorRef.current = editor2;
@@ -5164,8 +5165,10 @@ var CustomEditor = ({
5164
5165
  automaticLayout: true,
5165
5166
  scrollBeyondLastLine: false,
5166
5167
  renderLineHighlight: "none",
5167
- unusualLineTerminators: "auto"
5168
- }
5168
+ unusualLineTerminators: "auto",
5169
+ padding: { top: 0, bottom: 0 }
5170
+ },
5171
+ className: "[&_.monaco-editor-background]:!bg-transparent [&_.monaco-editor]:!bg-transparent"
5169
5172
  }
5170
5173
  );
5171
5174
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
@@ -5558,7 +5561,7 @@ var EditorDisplayForm = ({
5558
5561
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
5559
5562
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex grow flex-col gap-1", children: [
5560
5563
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex shrink-0 items-center gap-2", children: type === "json" ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", {}) : selector }),
5561
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "grow rounded-md border border-zinc-300 bg-white p-1", children: editor })
5564
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "grow rounded-md border border-zinc-300 bg-white p-1 dark:!bg-[#192321]", children: editor })
5562
5565
  ] }),
5563
5566
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex shrink-0 items-center gap-2", children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "ml-auto flex gap-2", children: [
5564
5567
  form.formState.isDirty && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Button, { onClick: handleCancel, children: "Cancel" }),
@@ -5583,7 +5586,7 @@ var DataDisplay = () => {
5583
5586
  const { selectedKey } = useTab();
5584
5587
  const { query } = useKeys();
5585
5588
  const type = useKeyType(selectedKey);
5586
- return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "h-full p-4", children: !selectedKey ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", {}) : !type ? query.isLoading ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex h-full items-center justify-center", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "text-gray-500", children: "Loading..." }) }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", {}) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _jsxruntime.Fragment, { children: type === "string" || type === "json" ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, EditorDisplay, { dataKey: selectedKey, type }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, ListDisplay, { dataKey: selectedKey, type }) }) });
5589
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "h-full p-4", children: !selectedKey ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", {}) : !type ? query.isLoading ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex h-full items-center justify-center", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "text-zinc-500", children: "Loading..." }) }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", {}) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _jsxruntime.Fragment, { children: type === "string" || type === "json" ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, EditorDisplay, { dataKey: selectedKey, type }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, ListDisplay, { dataKey: selectedKey, type }) }) });
5587
5590
  };
5588
5591
 
5589
5592
  // src/components/databrowser/components/sidebar/index.tsx
@@ -5639,7 +5642,7 @@ var DialogContent = React12.forwardRef(({ className, children, ...props }, ref)
5639
5642
  ...props,
5640
5643
  children: [
5641
5644
  children,
5642
- /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, DialogPrimitive.Close, { className: "absolute right-4 top-4 rounded-sm opacity-70 ring-offset-white transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-zinc-950 focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-zinc-100 data-[state=open]:text-zinc-500 dark:ring-offset-zinc-950 dark:focus:ring-zinc-300 dark:data-[state=open]:bg-zinc-800 dark:data-[state=open]:text-zinc-400", children: [
5645
+ /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, DialogPrimitive.Close, { className: "absolute right-4 top-4 rounded-sm opacity-70 ring-offset-white transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-zinc-950 focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-zinc-100 data-[state=open]:text-zinc-500", children: [
5643
5646
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
5644
5647
  "svg",
5645
5648
  {
@@ -5690,7 +5693,7 @@ var DialogDescription = React12.forwardRef(({ className, ...props }, ref) => /*
5690
5693
  DialogPrimitive.Description,
5691
5694
  {
5692
5695
  ref,
5693
- className: cn("text-sm text-zinc-500 dark:text-zinc-400", className),
5696
+ className: cn("text-sm text-zinc-500", className),
5694
5697
  ...props
5695
5698
  }
5696
5699
  ));
@@ -6025,7 +6028,7 @@ var SearchInput = () => {
6025
6028
  type: "button",
6026
6029
  variant: "link",
6027
6030
  size: "icon",
6028
- className: "absolute right-1 top-1/2 h-5 w-5 -translate-y-1/2 text-gray-500 hover:text-gray-900 dark:text-gray-400 dark:hover:text-gray-100",
6031
+ className: "absolute right-1 top-1/2 h-5 w-5 -translate-y-1/2 text-zinc-500 hover:text-zinc-900",
6029
6032
  onClick: () => {
6030
6033
  setSearchKey("");
6031
6034
  setState("");
@@ -6087,7 +6090,7 @@ function Sidebar() {
6087
6090
  Button,
6088
6091
  {
6089
6092
  "aria-label": "Refresh",
6090
- className: "h-7 w-7 px-0",
6093
+ className: "h-7 w-7 px-0 text-zinc-500",
6091
6094
  onClick: () => {
6092
6095
  queryClient.invalidateQueries({
6093
6096
  queryKey: [FETCH_KEYS_QUERY_KEY]
@@ -6169,7 +6172,7 @@ var Command = React13.forwardRef(({ className, ...props }, ref) => /* @__PURE__
6169
6172
  {
6170
6173
  ref,
6171
6174
  className: cn(
6172
- "flex h-full w-full flex-col overflow-hidden rounded-md bg-white text-neutral-950 dark:bg-neutral-950 dark:text-neutral-50",
6175
+ "flex h-full w-full flex-col overflow-hidden rounded-md bg-white text-zinc-950",
6173
6176
  className
6174
6177
  ),
6175
6178
  ...props
@@ -6183,7 +6186,7 @@ var CommandInput = React13.forwardRef(({ className, ...props }, ref) => /* @__PU
6183
6186
  {
6184
6187
  ref,
6185
6188
  className: cn(
6186
- "flex h-10 w-full rounded-md bg-transparent py-3 text-sm outline-none placeholder:text-neutral-500 disabled:cursor-not-allowed disabled:opacity-50 dark:placeholder:text-neutral-400",
6189
+ "flex h-10 w-full rounded-md bg-transparent py-3 text-sm outline-none placeholder:text-zinc-500 disabled:cursor-not-allowed disabled:opacity-50",
6187
6190
  className
6188
6191
  ),
6189
6192
  ...props
@@ -6200,21 +6203,14 @@ var CommandList = React13.forwardRef(({ className, ...props }, ref) => /* @__PUR
6200
6203
  }
6201
6204
  ));
6202
6205
  CommandList.displayName = _cmdk.Command.List.displayName;
6203
- var CommandEmpty = React13.forwardRef((props, ref) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
6204
- _cmdk.Command.Empty,
6205
- {
6206
- ref,
6207
- className: "py-6 text-center text-sm",
6208
- ...props
6209
- }
6210
- ));
6206
+ var CommandEmpty = React13.forwardRef((props, ref) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _cmdk.Command.Empty, { ref, className: "py-6 text-center text-sm", ...props }));
6211
6207
  CommandEmpty.displayName = _cmdk.Command.Empty.displayName;
6212
6208
  var CommandGroup = React13.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
6213
6209
  _cmdk.Command.Group,
6214
6210
  {
6215
6211
  ref,
6216
6212
  className: cn(
6217
- "overflow-hidden p-1 text-neutral-950 [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-neutral-500 dark:text-neutral-50 dark:[&_[cmdk-group-heading]]:text-neutral-400",
6213
+ "text-zinc-950[&_[cmdk-group-heading]]:px-2 overflow-hidden p-1 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-zinc-500",
6218
6214
  className
6219
6215
  ),
6220
6216
  ...props
@@ -6225,7 +6221,7 @@ var CommandSeparator = React13.forwardRef(({ className, ...props }, ref) => /* @
6225
6221
  _cmdk.Command.Separator,
6226
6222
  {
6227
6223
  ref,
6228
- className: cn("-mx-1 h-px bg-neutral-200 dark:bg-neutral-800", className),
6224
+ className: cn("-mx-1 h-px bg-zinc-200", className),
6229
6225
  ...props
6230
6226
  }
6231
6227
  ));
@@ -6235,27 +6231,15 @@ var CommandItem = React13.forwardRef(({ className, ...props }, ref) => /* @__PUR
6235
6231
  {
6236
6232
  ref,
6237
6233
  className: cn(
6238
- "relative flex cursor-default gap-2 select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none data-[disabled=true]:pointer-events-none data-[selected=true]:bg-neutral-100 data-[selected=true]:text-neutral-900 data-[disabled=true]:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0 dark:data-[selected=true]:bg-neutral-800 dark:data-[selected=true]:text-neutral-50",
6234
+ "data-[disabled=true]:opacity-50[&_svg]:pointer-events-none relative flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none data-[disabled=true]:pointer-events-none data-[selected=true]:bg-zinc-100 data-[selected=true]:text-zinc-900 [&_svg]:size-4 [&_svg]:shrink-0",
6239
6235
  className
6240
6236
  ),
6241
6237
  ...props
6242
6238
  }
6243
6239
  ));
6244
6240
  CommandItem.displayName = _cmdk.Command.Item.displayName;
6245
- var CommandShortcut = ({
6246
- className,
6247
- ...props
6248
- }) => {
6249
- return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
6250
- "span",
6251
- {
6252
- className: cn(
6253
- "ml-auto text-xs tracking-widest text-neutral-500 dark:text-neutral-400",
6254
- className
6255
- ),
6256
- ...props
6257
- }
6258
- );
6241
+ var CommandShortcut = ({ className, ...props }) => {
6242
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: cn("ml-auto text-xs tracking-widest text-zinc-500", className), ...props });
6259
6243
  };
6260
6244
  CommandShortcut.displayName = "CommandShortcut";
6261
6245
 
@@ -6697,25 +6681,36 @@ var RedisBrowser = ({
6697
6681
  token,
6698
6682
  url,
6699
6683
  hideTabs,
6700
- storage
6684
+ storage,
6685
+ darkMode = "light"
6701
6686
  }) => {
6702
6687
  const credentials = _react.useMemo.call(void 0, () => ({ token, url }), [token, url]);
6703
6688
  const rootRef = _react.useRef.call(void 0, null);
6704
6689
  _react.useEffect.call(void 0, () => {
6705
6690
  queryClient.resetQueries();
6706
6691
  }, [credentials.url]);
6707
- return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _reactquery.QueryClientProvider, { client: queryClient, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, RedisProvider, { redisCredentials: credentials, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, DatabrowserProvider, { storage, rootRef, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _reacttooltip.TooltipProvider, { children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
6708
- "div",
6709
- {
6710
- className: "ups-db",
6711
- style: { height: "100%", display: "flex", flexDirection: "column" },
6712
- ref: rootRef,
6713
- children: [
6714
- !hideTabs && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, DatabrowserTabs, {}),
6715
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, DatabrowserInstances, {})
6716
- ]
6717
- }
6718
- ) }) }) }) });
6692
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _reactquery.QueryClientProvider, { client: queryClient, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, RedisProvider, { redisCredentials: credentials, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, DarkModeProvider, { darkMode, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, DatabrowserProvider, { storage, rootRef, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _reacttooltip.TooltipProvider, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, RedisBrowserRoot, { hideTabs, rootRef }) }) }) }) }) });
6693
+ };
6694
+ var RedisBrowserRoot = ({
6695
+ hideTabs,
6696
+ rootRef
6697
+ }) => {
6698
+ const theme = useDarkMode();
6699
+ return (
6700
+ /* ups-db is the custom class used to prefix every style in the css bundle */
6701
+ /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
6702
+ "div",
6703
+ {
6704
+ className: `ups-db ${theme === "dark" ? "dark" : ""}`,
6705
+ style: { height: "100%", display: "flex", flexDirection: "column" },
6706
+ ref: rootRef,
6707
+ children: [
6708
+ !hideTabs && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, DatabrowserTabs, {}),
6709
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, DatabrowserInstances, {})
6710
+ ]
6711
+ }
6712
+ )
6713
+ );
6719
6714
  };
6720
6715
  var DatabrowserInstances = () => {
6721
6716
  const { tabs, selectedTab, selectTab, addTab } = useDatabrowserStore();