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

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
@@ -1031,15 +1031,15 @@
1031
1031
  .ups-db .h-\[18px\] {
1032
1032
  height: 18px;
1033
1033
  }
1034
+ .ups-db .h-\[200px\] {
1035
+ height: 200px;
1036
+ }
1034
1037
  .ups-db .h-\[20px\] {
1035
1038
  height: 20px;
1036
1039
  }
1037
1040
  .ups-db .h-\[26px\] {
1038
1041
  height: 26px;
1039
1042
  }
1040
- .ups-db .h-\[300px\] {
1041
- height: 300px;
1042
- }
1043
1043
  .ups-db .h-\[3px\] {
1044
1044
  height: 3px;
1045
1045
  }
@@ -1061,8 +1061,8 @@
1061
1061
  .ups-db .max-h-\[300px\] {
1062
1062
  max-height: 300px;
1063
1063
  }
1064
- .ups-db .max-h-\[600px\] {
1065
- max-height: 600px;
1064
+ .ups-db .max-h-\[40vh\] {
1065
+ max-height: 40vh;
1066
1066
  }
1067
1067
  .ups-db .max-h-\[var\(--radix-dropdown-menu-content-available-height\)\] {
1068
1068
  max-height: var(--radix-dropdown-menu-content-available-height);
@@ -1639,6 +1639,10 @@
1639
1639
  --tw-bg-opacity: 1;
1640
1640
  background-color: rgb(var(--color-emerald-500) / var(--tw-bg-opacity));
1641
1641
  }
1642
+ .ups-db .bg-emerald-800 {
1643
+ --tw-bg-opacity: 1;
1644
+ background-color: rgb(var(--color-emerald-800) / var(--tw-bg-opacity));
1645
+ }
1642
1646
  .ups-db .bg-gray-200 {
1643
1647
  --tw-bg-opacity: 1;
1644
1648
  background-color: rgb(229 231 235 / var(--tw-bg-opacity));
@@ -1839,6 +1843,10 @@
1839
1843
  padding-top: 3px;
1840
1844
  padding-bottom: 3px;
1841
1845
  }
1846
+ .ups-db .py-\[5px\] {
1847
+ padding-top: 5px;
1848
+ padding-bottom: 5px;
1849
+ }
1842
1850
  .ups-db .pb-5 {
1843
1851
  padding-bottom: 1.25rem;
1844
1852
  }
@@ -1969,6 +1977,10 @@
1969
1977
  --tw-text-opacity: 1;
1970
1978
  color: rgb(var(--color-blue-600) / var(--tw-text-opacity));
1971
1979
  }
1980
+ .ups-db .text-emerald-100 {
1981
+ --tw-text-opacity: 1;
1982
+ color: rgb(var(--color-emerald-100) / var(--tw-text-opacity));
1983
+ }
1972
1984
  .ups-db .text-emerald-600 {
1973
1985
  --tw-text-opacity: 1;
1974
1986
  color: rgb(var(--color-emerald-600) / var(--tw-text-opacity));
package/dist/index.d.mts CHANGED
@@ -20,7 +20,8 @@ type RedisBrowserStorage = {
20
20
  set: (value: string) => void;
21
21
  get: () => string | null;
22
22
  };
23
- declare const RedisBrowser: ({ url, token, hideTabs, hideSearchTab, storage, disableTelemetry, onFullScreenClick, theme, }: RedisCredentials & {
23
+ type TabType = "keys" | "search" | "all";
24
+ declare const RedisBrowser: ({ url, token, hideTabs, tabType, storage, disableTelemetry, onFullScreenClick, theme, }: RedisCredentials & {
24
25
  /**
25
26
  * Whether to disable telemetry.
26
27
  *
@@ -35,11 +36,14 @@ declare const RedisBrowser: ({ url, token, hideTabs, hideSearchTab, storage, dis
35
36
  disableTelemetry?: boolean;
36
37
  hideTabs?: boolean;
37
38
  /**
38
- * Whether to hide the Keys/Search segmented tab selector.
39
+ * Which tab(s) to show in the databrowser.
40
+ * - "keys": Only show the Keys tab
41
+ * - "search": Only show the Search tab
42
+ * - "all": Show both tabs with a segmented selector
39
43
  *
40
- * @default false
44
+ * @default "all"
41
45
  */
42
- hideSearchTab?: boolean;
46
+ tabType?: TabType;
43
47
  /**
44
48
  * If defined, the databrowser will have a full screen button in the tab bar.
45
49
  * Clicking on the button will call this function.
package/dist/index.d.ts CHANGED
@@ -20,7 +20,8 @@ type RedisBrowserStorage = {
20
20
  set: (value: string) => void;
21
21
  get: () => string | null;
22
22
  };
23
- declare const RedisBrowser: ({ url, token, hideTabs, hideSearchTab, storage, disableTelemetry, onFullScreenClick, theme, }: RedisCredentials & {
23
+ type TabType = "keys" | "search" | "all";
24
+ declare const RedisBrowser: ({ url, token, hideTabs, tabType, storage, disableTelemetry, onFullScreenClick, theme, }: RedisCredentials & {
24
25
  /**
25
26
  * Whether to disable telemetry.
26
27
  *
@@ -35,11 +36,14 @@ declare const RedisBrowser: ({ url, token, hideTabs, hideSearchTab, storage, dis
35
36
  disableTelemetry?: boolean;
36
37
  hideTabs?: boolean;
37
38
  /**
38
- * Whether to hide the Keys/Search segmented tab selector.
39
+ * Which tab(s) to show in the databrowser.
40
+ * - "keys": Only show the Keys tab
41
+ * - "search": Only show the Search tab
42
+ * - "all": Show both tabs with a segmented selector
39
43
  *
40
- * @default false
44
+ * @default "all"
41
45
  */
42
- hideSearchTab?: boolean;
46
+ tabType?: TabType;
43
47
  /**
44
48
  * If defined, the databrowser will have a full screen button in the tab bar.
45
49
  * Clicking on the button will call this function.