@upstash/react-redis-browser 0.2.14-rc.3 → 0.2.14-rc.4

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.css CHANGED
@@ -792,6 +792,9 @@
792
792
  .ups-db .invisible {
793
793
  visibility: hidden;
794
794
  }
795
+ .ups-db .collapse {
796
+ visibility: collapse;
797
+ }
795
798
  .ups-db .static {
796
799
  position: static;
797
800
  }
@@ -918,6 +921,9 @@
918
921
  .ups-db .ml-2 {
919
922
  margin-left: 0.5rem;
920
923
  }
924
+ .ups-db .ml-\[15px\] {
925
+ margin-left: 15px;
926
+ }
921
927
  .ups-db .ml-auto {
922
928
  margin-left: auto;
923
929
  }
@@ -1031,6 +1037,9 @@
1031
1037
  .ups-db .h-\[26px\] {
1032
1038
  height: 26px;
1033
1039
  }
1040
+ .ups-db .h-\[300px\] {
1041
+ height: 300px;
1042
+ }
1034
1043
  .ups-db .h-\[3px\] {
1035
1044
  height: 3px;
1036
1045
  }
@@ -1052,6 +1061,9 @@
1052
1061
  .ups-db .max-h-\[300px\] {
1053
1062
  max-height: 300px;
1054
1063
  }
1064
+ .ups-db .max-h-\[600px\] {
1065
+ max-height: 600px;
1066
+ }
1055
1067
  .ups-db .max-h-\[var\(--radix-dropdown-menu-content-available-height\)\] {
1056
1068
  max-height: var(--radix-dropdown-menu-content-available-height);
1057
1069
  }
@@ -1061,6 +1073,9 @@
1061
1073
  .ups-db .min-h-0 {
1062
1074
  min-height: 0px;
1063
1075
  }
1076
+ .ups-db .min-h-\[150px\] {
1077
+ min-height: 150px;
1078
+ }
1064
1079
  .ups-db .min-h-\[20px\] {
1065
1080
  min-height: 20px;
1066
1081
  }
@@ -1088,6 +1103,9 @@
1088
1103
  .ups-db .w-24 {
1089
1104
  width: 6rem;
1090
1105
  }
1106
+ .ups-db .w-3 {
1107
+ width: 0.75rem;
1108
+ }
1091
1109
  .ups-db .w-3\.5 {
1092
1110
  width: 0.875rem;
1093
1111
  }
@@ -1263,9 +1281,17 @@
1263
1281
  .ups-db .resize-none {
1264
1282
  resize: none;
1265
1283
  }
1284
+ .ups-db .resize-y {
1285
+ resize: vertical;
1286
+ }
1266
1287
  .ups-db .resize {
1267
1288
  resize: both;
1268
1289
  }
1290
+ .ups-db .appearance-none {
1291
+ -webkit-appearance: none;
1292
+ -moz-appearance: none;
1293
+ appearance: none;
1294
+ }
1269
1295
  .ups-db .grid-cols-4 {
1270
1296
  grid-template-columns: repeat(4, minmax(0, 1fr));
1271
1297
  }
@@ -1416,6 +1442,10 @@
1416
1442
  .ups-db .rounded-xl {
1417
1443
  border-radius: 0.75rem;
1418
1444
  }
1445
+ .ups-db .rounded-b-lg {
1446
+ border-bottom-right-radius: 0.5rem;
1447
+ border-bottom-left-radius: 0.5rem;
1448
+ }
1419
1449
  .ups-db .rounded-l-lg {
1420
1450
  border-top-left-radius: 0.5rem;
1421
1451
  border-bottom-left-radius: 0.5rem;
@@ -1578,10 +1608,6 @@
1578
1608
  --tw-bg-opacity: 1;
1579
1609
  background-color: rgb(var(--color-amber-200) / var(--tw-bg-opacity));
1580
1610
  }
1581
- .ups-db .bg-amber-300 {
1582
- --tw-bg-opacity: 1;
1583
- background-color: rgb(var(--color-amber-300) / var(--tw-bg-opacity));
1584
- }
1585
1611
  .ups-db .bg-amber-50 {
1586
1612
  --tw-bg-opacity: 1;
1587
1613
  background-color: rgb(var(--color-amber-50) / var(--tw-bg-opacity));
@@ -1625,6 +1651,13 @@
1625
1651
  --tw-bg-opacity: 1;
1626
1652
  background-color: rgb(var(--color-indigo-200) / var(--tw-bg-opacity));
1627
1653
  }
1654
+ .ups-db .bg-neutral-900 {
1655
+ --tw-bg-opacity: 1;
1656
+ background-color: rgb(23 23 23 / var(--tw-bg-opacity));
1657
+ }
1658
+ .ups-db .bg-neutral-900\/20 {
1659
+ background-color: rgb(23 23 23 / 0.2);
1660
+ }
1628
1661
  .ups-db .bg-orange-200 {
1629
1662
  --tw-bg-opacity: 1;
1630
1663
  background-color: rgb(var(--color-orange-200) / var(--tw-bg-opacity));
@@ -1678,13 +1711,13 @@
1678
1711
  --tw-bg-opacity: 1;
1679
1712
  background-color: rgb(var(--color-zinc-200) / var(--tw-bg-opacity));
1680
1713
  }
1681
- .ups-db .bg-zinc-200\/70 {
1682
- background-color: rgb(var(--color-zinc-200) / 0.7);
1683
- }
1684
1714
  .ups-db .bg-zinc-300 {
1685
1715
  --tw-bg-opacity: 1;
1686
1716
  background-color: rgb(var(--color-zinc-300) / var(--tw-bg-opacity));
1687
1717
  }
1718
+ .ups-db .bg-zinc-400\/70 {
1719
+ background-color: rgb(var(--color-zinc-400) / 0.7);
1720
+ }
1688
1721
  .ups-db .bg-zinc-50 {
1689
1722
  --tw-bg-opacity: 1;
1690
1723
  background-color: rgb(var(--color-zinc-50) / var(--tw-bg-opacity));
@@ -1774,10 +1807,6 @@
1774
1807
  padding-top: 0px;
1775
1808
  padding-bottom: 0px;
1776
1809
  }
1777
- .ups-db .py-0\.5 {
1778
- padding-top: 0.125rem;
1779
- padding-bottom: 0.125rem;
1780
- }
1781
1810
  .ups-db .py-1 {
1782
1811
  padding-top: 0.25rem;
1783
1812
  padding-bottom: 0.25rem;
@@ -2308,6 +2337,20 @@
2308
2337
  rgba(0, 0, 0, 0.08),
2309
2338
  rgba(0, 0, 0, 0));
2310
2339
  }
2340
+ .ups-db .scroll-shadow-top {
2341
+ background:
2342
+ linear-gradient(
2343
+ to bottom,
2344
+ rgba(0, 0, 0, 0.04),
2345
+ rgba(0, 0, 0, 0));
2346
+ }
2347
+ .ups-db .scroll-shadow-bottom {
2348
+ background:
2349
+ linear-gradient(
2350
+ to top,
2351
+ rgba(0, 0, 0, 0.04),
2352
+ rgba(0, 0, 0, 0));
2353
+ }
2311
2354
  .ups-db svg.tabler-icon {
2312
2355
  stroke-width: 2 !important;
2313
2356
  }
@@ -2735,14 +2778,17 @@
2735
2778
  .ups-db .data-\[state\=open\]\:slide-in-from-top-full[data-state=open] {
2736
2779
  --tw-enter-translate-y: -100%;
2737
2780
  }
2738
- .ups-db .dark\:border-zinc-700:is(.dark *) {
2739
- --tw-border-opacity: 1;
2740
- border-color: rgb(var(--color-zinc-700) / var(--tw-border-opacity));
2741
- }
2742
2781
  .ups-db .dark\:border-b-zinc-200:is(.dark *) {
2743
2782
  --tw-border-opacity: 1;
2744
2783
  border-bottom-color: rgb(var(--color-zinc-200) / var(--tw-border-opacity));
2745
2784
  }
2785
+ .ups-db .dark\:bg-neutral-50:is(.dark *) {
2786
+ --tw-bg-opacity: 1;
2787
+ background-color: rgb(250 250 250 / var(--tw-bg-opacity));
2788
+ }
2789
+ .ups-db .dark\:bg-neutral-50\/20:is(.dark *) {
2790
+ background-color: rgb(250 250 250 / 0.2);
2791
+ }
2746
2792
  .ups-db .dark\:bg-zinc-100:is(.dark *) {
2747
2793
  --tw-bg-opacity: 1;
2748
2794
  background-color: rgb(var(--color-zinc-100) / var(--tw-bg-opacity));
@@ -2751,30 +2797,10 @@
2751
2797
  --tw-bg-opacity: 1;
2752
2798
  background-color: rgb(var(--color-zinc-200) / var(--tw-bg-opacity));
2753
2799
  }
2754
- .ups-db .dark\:bg-zinc-700:is(.dark *) {
2755
- --tw-bg-opacity: 1;
2756
- background-color: rgb(var(--color-zinc-700) / var(--tw-bg-opacity));
2757
- }
2758
- .ups-db .dark\:bg-zinc-800:is(.dark *) {
2759
- --tw-bg-opacity: 1;
2760
- background-color: rgb(var(--color-zinc-800) / var(--tw-bg-opacity));
2761
- }
2762
2800
  .ups-db .dark\:text-red-400:is(.dark *) {
2763
2801
  --tw-text-opacity: 1;
2764
2802
  color: rgb(var(--color-red-400) / var(--tw-text-opacity));
2765
2803
  }
2766
- .ups-db .dark\:text-zinc-100:is(.dark *) {
2767
- --tw-text-opacity: 1;
2768
- color: rgb(var(--color-zinc-100) / var(--tw-text-opacity));
2769
- }
2770
- .ups-db .dark\:text-zinc-300:is(.dark *) {
2771
- --tw-text-opacity: 1;
2772
- color: rgb(var(--color-zinc-300) / var(--tw-text-opacity));
2773
- }
2774
- .ups-db .dark\:text-zinc-400:is(.dark *) {
2775
- --tw-text-opacity: 1;
2776
- color: rgb(var(--color-zinc-400) / var(--tw-text-opacity));
2777
- }
2778
2804
  .ups-db .dark\:text-zinc-500:is(.dark *) {
2779
2805
  --tw-text-opacity: 1;
2780
2806
  color: rgb(var(--color-zinc-500) / var(--tw-text-opacity));
@@ -2827,6 +2853,14 @@
2827
2853
  font-size: 0.75rem;
2828
2854
  line-height: 1rem;
2829
2855
  }
2856
+ .ups-db .\[\&\:\:-webkit-inner-spin-button\]\:appearance-none::-webkit-inner-spin-button {
2857
+ -webkit-appearance: none;
2858
+ appearance: none;
2859
+ }
2860
+ .ups-db .\[\&\:\:-webkit-outer-spin-button\]\:appearance-none::-webkit-outer-spin-button {
2861
+ -webkit-appearance: none;
2862
+ appearance: none;
2863
+ }
2830
2864
  .ups-db .\[\&\:\:-webkit-scrollbar\]\:hidden::-webkit-scrollbar {
2831
2865
  display: none;
2832
2866
  }
package/dist/index.d.mts CHANGED
@@ -20,7 +20,7 @@ type RedisBrowserStorage = {
20
20
  set: (value: string) => void;
21
21
  get: () => string | null;
22
22
  };
23
- declare const RedisBrowser: ({ url, token, hideTabs, storage, disableTelemetry, onFullScreenClick, theme, }: RedisCredentials & {
23
+ declare const RedisBrowser: ({ url, token, hideTabs, hideSearchTab, storage, disableTelemetry, onFullScreenClick, theme, }: RedisCredentials & {
24
24
  /**
25
25
  * Whether to disable telemetry.
26
26
  *
@@ -34,6 +34,12 @@ declare const RedisBrowser: ({ url, token, hideTabs, storage, disableTelemetry,
34
34
  */
35
35
  disableTelemetry?: boolean;
36
36
  hideTabs?: boolean;
37
+ /**
38
+ * Whether to hide the Keys/Search segmented tab selector.
39
+ *
40
+ * @default false
41
+ */
42
+ hideSearchTab?: boolean;
37
43
  /**
38
44
  * If defined, the databrowser will have a full screen button in the tab bar.
39
45
  * Clicking on the button will call this function.
package/dist/index.d.ts CHANGED
@@ -20,7 +20,7 @@ type RedisBrowserStorage = {
20
20
  set: (value: string) => void;
21
21
  get: () => string | null;
22
22
  };
23
- declare const RedisBrowser: ({ url, token, hideTabs, storage, disableTelemetry, onFullScreenClick, theme, }: RedisCredentials & {
23
+ declare const RedisBrowser: ({ url, token, hideTabs, hideSearchTab, storage, disableTelemetry, onFullScreenClick, theme, }: RedisCredentials & {
24
24
  /**
25
25
  * Whether to disable telemetry.
26
26
  *
@@ -34,6 +34,12 @@ declare const RedisBrowser: ({ url, token, hideTabs, storage, disableTelemetry,
34
34
  */
35
35
  disableTelemetry?: boolean;
36
36
  hideTabs?: boolean;
37
+ /**
38
+ * Whether to hide the Keys/Search segmented tab selector.
39
+ *
40
+ * @default false
41
+ */
42
+ hideSearchTab?: boolean;
37
43
  /**
38
44
  * If defined, the databrowser will have a full screen button in the tab bar.
39
45
  * Clicking on the button will call this function.