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

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,
@@ -497,6 +515,22 @@ var useTab = () => {
497
515
  var _reacttooltip = require('@radix-ui/react-tooltip'); var TooltipPrimitive = _interopRequireWildcard(_reacttooltip);
498
516
 
499
517
 
518
+ // src/lib/portal-root.ts
519
+ var root;
520
+ var wrapper;
521
+ if (typeof document !== "undefined") {
522
+ const id = "react-redis-browser-portal-root";
523
+ wrapper = _nullishCoalesce(document.querySelector(`#${id}`), () => ( document.createElement("div")));
524
+ wrapper.classList.add("ups-db");
525
+ wrapper.id = "react-redis-browser-portal-root";
526
+ root = document.createElement("div");
527
+ root.classList.add("text-zinc-700");
528
+ wrapper.append(root);
529
+ document.body.append(wrapper);
530
+ }
531
+ var portalRoot = root;
532
+ var portalWrapper = wrapper;
533
+
500
534
  // src/components/databrowser/components/databrowser-instance.tsx
501
535
  var _reactresizablepanels = require('react-resizable-panels');
502
536
 
@@ -3013,17 +3047,6 @@ var isTest = typeof window !== "undefined" && window.__PLAYWRIGHT__ === true;
3013
3047
  // src/components/ui/toaster.tsx
3014
3048
  var _reactportal = require('@radix-ui/react-portal');
3015
3049
 
3016
- // src/lib/portal-root.ts
3017
- var root;
3018
- if (typeof document !== "undefined") {
3019
- const id = "react-redis-browser-portal-root";
3020
- root = _nullishCoalesce(document.querySelector(`#${id}`), () => ( document.createElement("div")));
3021
- root.classList.add("ups-db");
3022
- root.id = "react-redis-browser-portal-root";
3023
- document.body.append(root);
3024
- }
3025
- var portalRoot = root;
3026
-
3027
3050
  // src/components/ui/toast.tsx
3028
3051
 
3029
3052
  var _reacticons = require('@radix-ui/react-icons');
@@ -3102,12 +3125,12 @@ var ToastViewport = React2.forwardRef(({ className, ...props }, ref) => /* @__PU
3102
3125
  ));
3103
3126
  ToastViewport.displayName = ToastPrimitives.Viewport.displayName;
3104
3127
  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",
3128
+ "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
3129
  {
3107
3130
  variants: {
3108
3131
  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"
3132
+ default: "border bg-white text-zinc-950",
3133
+ destructive: "destructive group border-red-500 bg-red-500 text-zinc-50"
3111
3134
  }
3112
3135
  },
3113
3136
  defaultVariants: {
@@ -3131,7 +3154,7 @@ var ToastAction = React2.forwardRef(({ className, ...props }, ref) => /* @__PURE
3131
3154
  {
3132
3155
  ref,
3133
3156
  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",
3157
+ "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
3158
  className
3136
3159
  ),
3137
3160
  ...props
@@ -3143,7 +3166,7 @@ var ToastClose = React2.forwardRef(({ className, ...props }, ref) => /* @__PURE_
3143
3166
  {
3144
3167
  ref,
3145
3168
  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",
3169
+ "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
3170
  className
3148
3171
  ),
3149
3172
  "toast-close": "",
@@ -3314,17 +3337,17 @@ var _iconsreact = require('@tabler/icons-react');
3314
3337
  var _reactslot = require('@radix-ui/react-slot');
3315
3338
 
3316
3339
  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",
3340
+ "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
3341
  {
3319
3342
  variants: {
3320
3343
  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"
3344
+ default: "bg-white text-black border shadow-sm border-zinc-300 hover:bg-white/70",
3345
+ destructive: "bg-red-500 text-zinc-50 hover:bg-red-500/90",
3346
+ outline: "border border-zinc-200 bg-white hover:bg-zinc-100 hover:text-zinc-900",
3347
+ primary: "bg-emerald-500 text-white shadow-sm hover:bg-emerald-600",
3348
+ secondary: "bg-zinc-100 text-zinc-900 hover:bg-zinc-100/80",
3349
+ ghost: "hover:bg-black/10",
3350
+ link: "text-zinc-900 underline-offset-4 hover:underline"
3328
3351
  },
3329
3352
  size: {
3330
3353
  default: "h-8 px-4 py-2",
@@ -3358,13 +3381,7 @@ Button.displayName = "Button";
3358
3381
  // src/components/ui/skeleton.tsx
3359
3382
 
3360
3383
  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
- );
3384
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: cn("animate-pulse rounded-md bg-zinc-900/10", className), ...props });
3368
3385
  }
3369
3386
 
3370
3387
  // src/components/databrowser/components/sidebar/db-size.tsx
@@ -3838,7 +3855,7 @@ var Input = React4.forwardRef(
3838
3855
  {
3839
3856
  type,
3840
3857
  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",
3858
+ "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
3859
  className
3843
3860
  ),
3844
3861
  ref,
@@ -3862,7 +3879,7 @@ var PopoverContent = React5.forwardRef(({ className, align = "center", sideOffse
3862
3879
  align,
3863
3880
  sideOffset,
3864
3881
  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",
3882
+ "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
3883
  className
3867
3884
  ),
3868
3885
  ...props
@@ -3882,7 +3899,7 @@ var SelectTrigger = React6.forwardRef(({ className, children, ...props }, ref) =
3882
3899
  {
3883
3900
  ref,
3884
3901
  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",
3902
+ "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
3903
  className
3887
3904
  ),
3888
3905
  ...props,
@@ -3900,9 +3917,9 @@ var SelectTrigger = React6.forwardRef(({ className, children, ...props }, ref) =
3900
3917
  "path",
3901
3918
  {
3902
3919
  d: "M4 6L8 10L12 6",
3903
- stroke: "black",
3920
+ stroke: "currentColor",
3904
3921
  strokeOpacity: "0.4",
3905
- strokeWidth: "1.4",
3922
+ strokeWidth: "1.2",
3906
3923
  strokeLinecap: "round",
3907
3924
  strokeLinejoin: "round"
3908
3925
  }
@@ -3918,7 +3935,7 @@ var SelectContent = React6.forwardRef(({ className, children, position = "popper
3918
3935
  {
3919
3936
  ref,
3920
3937
  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",
3938
+ "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
3939
  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
3940
  className
3924
3941
  ),
@@ -3951,7 +3968,7 @@ var SelectItem = React6.forwardRef(({ className, children, ...props }, ref) => /
3951
3968
  {
3952
3969
  ref,
3953
3970
  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",
3971
+ "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
3972
  className
3956
3973
  ),
3957
3974
  ...props,
@@ -3985,7 +4002,7 @@ var SelectSeparator = React6.forwardRef(({ className, ...props }, ref) => /* @__
3985
4002
  SelectPrimitive.Separator,
3986
4003
  {
3987
4004
  ref,
3988
- className: cn("-mx-1 my-1 h-px bg-neutral-100 dark:bg-neutral-800", className),
4005
+ className: cn("-mx-1 my-1 h-px bg-zinc-100", className),
3989
4006
  ...props
3990
4007
  }
3991
4008
  ));
@@ -4010,7 +4027,7 @@ var Spinner = ({
4010
4027
  viewBox: "0 0 24 24",
4011
4028
  fill: "none",
4012
4029
  stroke: "currentColor",
4013
- strokeWidth: "2",
4030
+ strokeWidth: "1.2",
4014
4031
  strokeLinecap: "round",
4015
4032
  strokeLinejoin: "round",
4016
4033
  className: cn("h-4 w-4 animate-spin", isLoadingText ? "ml-2" : ""),
@@ -4237,7 +4254,7 @@ var ContextMenuSubTrigger = React7.forwardRef(({ className, inset, children, ...
4237
4254
  {
4238
4255
  ref,
4239
4256
  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",
4257
+ "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
4258
  inset && "pl-8",
4242
4259
  className
4243
4260
  ),
@@ -4254,7 +4271,7 @@ var ContextMenuSubContent = React7.forwardRef(({ className, ...props }, ref) =>
4254
4271
  {
4255
4272
  ref,
4256
4273
  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",
4274
+ "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
4275
  className
4259
4276
  ),
4260
4277
  ...props
@@ -4266,7 +4283,7 @@ var ContextMenuContent = React7.forwardRef(({ className, ...props }, ref) => /*
4266
4283
  {
4267
4284
  ref,
4268
4285
  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",
4286
+ "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
4287
  className
4271
4288
  ),
4272
4289
  ...props
@@ -4278,7 +4295,7 @@ var ContextMenuItem = React7.forwardRef(({ className, inset, ...props }, ref) =>
4278
4295
  {
4279
4296
  ref,
4280
4297
  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",
4298
+ "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
4299
  inset && "pl-8",
4283
4300
  className
4284
4301
  ),
@@ -4291,7 +4308,7 @@ var ContextMenuCheckboxItem = React7.forwardRef(({ className, children, checked,
4291
4308
  {
4292
4309
  ref,
4293
4310
  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",
4311
+ "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
4312
  className
4296
4313
  ),
4297
4314
  checked,
@@ -4308,7 +4325,7 @@ var ContextMenuRadioItem = React7.forwardRef(({ className, children, ...props },
4308
4325
  {
4309
4326
  ref,
4310
4327
  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",
4328
+ "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
4329
  className
4313
4330
  ),
4314
4331
  ...props,
@@ -4323,11 +4340,7 @@ var ContextMenuLabel = React7.forwardRef(({ className, inset, ...props }, ref) =
4323
4340
  ContextMenuPrimitive.Label,
4324
4341
  {
4325
4342
  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
- ),
4343
+ className: cn("px-2 py-1.5 text-sm font-semibold text-zinc-950", inset && "pl-8", className),
4331
4344
  ...props
4332
4345
  }
4333
4346
  ));
@@ -4336,22 +4349,13 @@ var ContextMenuSeparator = React7.forwardRef(({ className, ...props }, ref) => /
4336
4349
  ContextMenuPrimitive.Separator,
4337
4350
  {
4338
4351
  ref,
4339
- className: cn("-mx-1 my-1 h-px bg-neutral-200 dark:bg-neutral-800", className),
4352
+ className: cn("-mx-1 my-1 h-px bg-zinc-200", className),
4340
4353
  ...props
4341
4354
  }
4342
4355
  ));
4343
4356
  ContextMenuSeparator.displayName = ContextMenuPrimitive.Separator.displayName;
4344
4357
  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
- );
4358
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: cn("ml-auto text-xs tracking-widest text-zinc-500", className), ...props });
4355
4359
  };
4356
4360
  ContextMenuShortcut.displayName = "ContextMenuShortcut";
4357
4361
 
@@ -4367,7 +4371,7 @@ var AlertDialogOverlay = React8.forwardRef(({ className, ...props }, ref) => /*
4367
4371
  AlertDialogPrimitive.Overlay,
4368
4372
  {
4369
4373
  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",
4374
+ "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
4375
  className
4372
4376
  ),
4373
4377
  ...props,
@@ -4382,7 +4386,7 @@ var AlertDialogContent = React8.forwardRef(({ className, ...props }, ref) => /*
4382
4386
  {
4383
4387
  ref,
4384
4388
  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",
4389
+ "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
4390
  className
4387
4391
  ),
4388
4392
  ...props
@@ -4413,7 +4417,7 @@ var AlertDialogDescription = React8.forwardRef(({ className, ...props }, ref) =>
4413
4417
  AlertDialogPrimitive.Description,
4414
4418
  {
4415
4419
  ref,
4416
- className: cn("text-sm text-zinc-500 dark:text-zinc-400", className),
4420
+ className: cn("text-sm text-zinc-500", className),
4417
4421
  ...props
4418
4422
  }
4419
4423
  ));
@@ -4457,7 +4461,7 @@ function DeleteAlertDialog({
4457
4461
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
4458
4462
  AlertDialogAction,
4459
4463
  {
4460
- className: "bg-red-500 text-gray-50 hover:bg-red-600",
4464
+ className: "bg-red-500 text-zinc-50 hover:bg-red-600",
4461
4465
  onClick: onDeleteConfirm,
4462
4466
  children: "Yes, Delete"
4463
4467
  }
@@ -4630,7 +4634,7 @@ var ScrollBar = React9.forwardRef(({ className, ...props }, ref) => /* @__PURE__
4630
4634
  children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
4631
4635
  ScrollAreaPrimitive.ScrollAreaThumb,
4632
4636
  {
4633
- className: cn("relative flex-1 rounded-full bg-neutral-200/70 dark:bg-neutral-800")
4637
+ className: cn("relative flex-1 rounded-full bg-zinc-200/70")
4634
4638
  }
4635
4639
  )
4636
4640
  }
@@ -4715,13 +4719,13 @@ var DATA_TYPE_NAMES = {
4715
4719
 
4716
4720
 
4717
4721
  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 })
4722
+ string: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _iconsreact.IconQuote, { size: 15, stroke: 1.2 }),
4723
+ set: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _iconsreact.IconLayersIntersect, { size: 15, stroke: 1.2 }),
4724
+ hash: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _iconsreact.IconHash, { size: 15, stroke: 1.2 }),
4725
+ json: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _iconsreact.IconCodeDots, { size: 15, stroke: 1.2 }),
4726
+ zset: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _iconsreact.IconArrowsSort, { size: 15, stroke: 1.2 }),
4727
+ list: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _iconsreact.IconList, { size: 15, stroke: 1.2 }),
4728
+ stream: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _iconsreact.IconList, { size: 15, stroke: 1.2 })
4725
4729
  };
4726
4730
  var tagVariants = cva("inline-flex shrink-0 items-center rounded-md justify-center", {
4727
4731
  variants: {
@@ -4763,7 +4767,7 @@ var DropdownMenuSubTrigger = React10.forwardRef(({ className, inset, children, .
4763
4767
  {
4764
4768
  ref,
4765
4769
  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",
4770
+ "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
4771
  inset && "pl-8",
4768
4772
  className
4769
4773
  ),
@@ -4780,7 +4784,7 @@ var DropdownMenuSubContent = React10.forwardRef(({ className, ...props }, ref) =
4780
4784
  {
4781
4785
  ref,
4782
4786
  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",
4787
+ "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
4788
  className
4785
4789
  ),
4786
4790
  ...props
@@ -4793,7 +4797,7 @@ var DropdownMenuContent = React10.forwardRef(({ className, sideOffset = 4, ...pr
4793
4797
  ref,
4794
4798
  sideOffset,
4795
4799
  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",
4800
+ "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
4801
  "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
4802
  className
4799
4803
  ),
@@ -4806,7 +4810,7 @@ var DropdownMenuItem = React10.forwardRef(({ className, inset, ...props }, ref)
4806
4810
  {
4807
4811
  ref,
4808
4812
  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",
4813
+ "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
4814
  inset && "pl-8",
4811
4815
  className
4812
4816
  ),
@@ -4819,7 +4823,7 @@ var DropdownMenuCheckboxItem = React10.forwardRef(({ className, children, checke
4819
4823
  {
4820
4824
  ref,
4821
4825
  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",
4826
+ "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
4827
  className
4824
4828
  ),
4825
4829
  checked,
@@ -4836,7 +4840,7 @@ var DropdownMenuRadioItem = React10.forwardRef(({ className, children, ...props
4836
4840
  {
4837
4841
  ref,
4838
4842
  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",
4843
+ "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
4844
  className
4841
4845
  ),
4842
4846
  ...props,
@@ -4860,7 +4864,7 @@ var DropdownMenuSeparator = React10.forwardRef(({ className, ...props }, ref) =>
4860
4864
  DropdownMenuPrimitive.Separator,
4861
4865
  {
4862
4866
  ref,
4863
- className: cn("-mx-1 my-1 h-px bg-neutral-100 dark:bg-neutral-800", className),
4867
+ className: cn("-mx-1 my-1 h-px bg-zinc-100", className),
4864
4868
  ...props
4865
4869
  }
4866
4870
  ));
@@ -4960,7 +4964,7 @@ var TooltipContent = React11.forwardRef(({ className, sideOffset = 4, ...props }
4960
4964
  ref,
4961
4965
  sideOffset,
4962
4966
  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",
4967
+ "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
4968
  className
4965
4969
  ),
4966
4970
  ...props
@@ -5124,6 +5128,7 @@ var CustomEditor = ({
5124
5128
  const { active } = useTab();
5125
5129
  const monaco = _react2.useMonaco.call(void 0, );
5126
5130
  const editorRef = _react.useRef.call(void 0, );
5131
+ const theme = useDarkMode();
5127
5132
  _react.useEffect.call(void 0, () => {
5128
5133
  if (!active || !monaco || !editorRef.current) {
5129
5134
  return;
@@ -5133,6 +5138,7 @@ var CustomEditor = ({
5133
5138
  const editor = /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
5134
5139
  _react2.Editor,
5135
5140
  {
5141
+ theme: theme === "dark" ? "vs-dark" : "light",
5136
5142
  loading: void 0,
5137
5143
  onMount: (editor2) => {
5138
5144
  editorRef.current = editor2;
@@ -5164,8 +5170,10 @@ var CustomEditor = ({
5164
5170
  automaticLayout: true,
5165
5171
  scrollBeyondLastLine: false,
5166
5172
  renderLineHighlight: "none",
5167
- unusualLineTerminators: "auto"
5168
- }
5173
+ unusualLineTerminators: "auto",
5174
+ padding: { top: 0, bottom: 0 }
5175
+ },
5176
+ className: "[&_.monaco-editor-background]:!bg-transparent [&_.monaco-editor]:!bg-transparent"
5169
5177
  }
5170
5178
  );
5171
5179
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
@@ -5558,7 +5566,7 @@ var EditorDisplayForm = ({
5558
5566
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
5559
5567
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex grow flex-col gap-1", children: [
5560
5568
  /* @__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 })
5569
+ /* @__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
5570
  ] }),
5563
5571
  /* @__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
5572
  form.formState.isDirty && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Button, { onClick: handleCancel, children: "Cancel" }),
@@ -5583,7 +5591,7 @@ var DataDisplay = () => {
5583
5591
  const { selectedKey } = useTab();
5584
5592
  const { query } = useKeys();
5585
5593
  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 }) }) });
5594
+ 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
5595
  };
5588
5596
 
5589
5597
  // src/components/databrowser/components/sidebar/index.tsx
@@ -5639,7 +5647,7 @@ var DialogContent = React12.forwardRef(({ className, children, ...props }, ref)
5639
5647
  ...props,
5640
5648
  children: [
5641
5649
  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: [
5650
+ /* @__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
5651
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
5644
5652
  "svg",
5645
5653
  {
@@ -5690,7 +5698,7 @@ var DialogDescription = React12.forwardRef(({ className, ...props }, ref) => /*
5690
5698
  DialogPrimitive.Description,
5691
5699
  {
5692
5700
  ref,
5693
- className: cn("text-sm text-zinc-500 dark:text-zinc-400", className),
5701
+ className: cn("text-sm text-zinc-500", className),
5694
5702
  ...props
5695
5703
  }
5696
5704
  ));
@@ -6025,7 +6033,7 @@ var SearchInput = () => {
6025
6033
  type: "button",
6026
6034
  variant: "link",
6027
6035
  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",
6036
+ className: "absolute right-1 top-1/2 h-5 w-5 -translate-y-1/2 text-zinc-500 hover:text-zinc-900",
6029
6037
  onClick: () => {
6030
6038
  setSearchKey("");
6031
6039
  setState("");
@@ -6087,7 +6095,7 @@ function Sidebar() {
6087
6095
  Button,
6088
6096
  {
6089
6097
  "aria-label": "Refresh",
6090
- className: "h-7 w-7 px-0",
6098
+ className: "h-7 w-7 px-0 text-zinc-500",
6091
6099
  onClick: () => {
6092
6100
  queryClient.invalidateQueries({
6093
6101
  queryKey: [FETCH_KEYS_QUERY_KEY]
@@ -6169,7 +6177,7 @@ var Command = React13.forwardRef(({ className, ...props }, ref) => /* @__PURE__
6169
6177
  {
6170
6178
  ref,
6171
6179
  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",
6180
+ "flex h-full w-full flex-col overflow-hidden rounded-md bg-white text-zinc-950",
6173
6181
  className
6174
6182
  ),
6175
6183
  ...props
@@ -6183,7 +6191,7 @@ var CommandInput = React13.forwardRef(({ className, ...props }, ref) => /* @__PU
6183
6191
  {
6184
6192
  ref,
6185
6193
  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",
6194
+ "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
6195
  className
6188
6196
  ),
6189
6197
  ...props
@@ -6200,21 +6208,14 @@ var CommandList = React13.forwardRef(({ className, ...props }, ref) => /* @__PUR
6200
6208
  }
6201
6209
  ));
6202
6210
  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
- ));
6211
+ 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
6212
  CommandEmpty.displayName = _cmdk.Command.Empty.displayName;
6212
6213
  var CommandGroup = React13.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
6213
6214
  _cmdk.Command.Group,
6214
6215
  {
6215
6216
  ref,
6216
6217
  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",
6218
+ "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
6219
  className
6219
6220
  ),
6220
6221
  ...props
@@ -6225,7 +6226,7 @@ var CommandSeparator = React13.forwardRef(({ className, ...props }, ref) => /* @
6225
6226
  _cmdk.Command.Separator,
6226
6227
  {
6227
6228
  ref,
6228
- className: cn("-mx-1 h-px bg-neutral-200 dark:bg-neutral-800", className),
6229
+ className: cn("-mx-1 h-px bg-zinc-200", className),
6229
6230
  ...props
6230
6231
  }
6231
6232
  ));
@@ -6235,27 +6236,15 @@ var CommandItem = React13.forwardRef(({ className, ...props }, ref) => /* @__PUR
6235
6236
  {
6236
6237
  ref,
6237
6238
  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",
6239
+ "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
6240
  className
6240
6241
  ),
6241
6242
  ...props
6242
6243
  }
6243
6244
  ));
6244
6245
  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
- );
6246
+ var CommandShortcut = ({ className, ...props }) => {
6247
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: cn("ml-auto text-xs tracking-widest text-zinc-500", className), ...props });
6259
6248
  };
6260
6249
  CommandShortcut.displayName = "CommandShortcut";
6261
6250
 
@@ -6697,25 +6686,40 @@ var RedisBrowser = ({
6697
6686
  token,
6698
6687
  url,
6699
6688
  hideTabs,
6700
- storage
6689
+ storage,
6690
+ darkMode = "light"
6701
6691
  }) => {
6702
6692
  const credentials = _react.useMemo.call(void 0, () => ({ token, url }), [token, url]);
6703
6693
  const rootRef = _react.useRef.call(void 0, null);
6704
6694
  _react.useEffect.call(void 0, () => {
6705
6695
  queryClient.resetQueries();
6706
6696
  }, [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
- ) }) }) }) });
6697
+ 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 }) }) }) }) }) });
6698
+ };
6699
+ var RedisBrowserRoot = ({
6700
+ hideTabs,
6701
+ rootRef
6702
+ }) => {
6703
+ const theme = useDarkMode();
6704
+ _react.useEffect.call(void 0, () => {
6705
+ portalWrapper.classList.add("text-zinc-700");
6706
+ portalWrapper.classList.toggle("dark", theme === "dark");
6707
+ }, [theme]);
6708
+ return (
6709
+ /* ups-db is the custom class used to prefix every style in the css bundle */
6710
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
6711
+ "div",
6712
+ {
6713
+ className: `ups-db ${theme === "dark" ? "dark" : ""}`,
6714
+ style: { height: "100%", display: "flex", flexDirection: "column" },
6715
+ ref: rootRef,
6716
+ children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "text-zinc-700", children: [
6717
+ !hideTabs && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, DatabrowserTabs, {}),
6718
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, DatabrowserInstances, {})
6719
+ ] })
6720
+ }
6721
+ )
6722
+ );
6719
6723
  };
6720
6724
  var DatabrowserInstances = () => {
6721
6725
  const { tabs, selectedTab, selectTab, addTab } = useDatabrowserStore();