@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.css +576 -392
- package/dist/index.d.mts +18 -2
- package/dist/index.d.ts +18 -2
- package/dist/index.js +135 -131
- package/dist/index.mjs +461 -457
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
2
|
|
|
3
|
+
type DarkModeOption = "dark" | "light";
|
|
4
|
+
|
|
3
5
|
type RedisCredentials = {
|
|
4
6
|
url?: string;
|
|
5
7
|
token?: string;
|
|
@@ -12,7 +14,7 @@ type RedisBrowserStorage = {
|
|
|
12
14
|
set: (value: string) => void;
|
|
13
15
|
get: () => string | null;
|
|
14
16
|
};
|
|
15
|
-
declare const RedisBrowser: ({ token, url, hideTabs, storage, }: RedisCredentials & {
|
|
17
|
+
declare const RedisBrowser: ({ token, url, hideTabs, storage, darkMode, }: RedisCredentials & {
|
|
16
18
|
hideTabs?: boolean;
|
|
17
19
|
/**
|
|
18
20
|
* Persistence storage for the Databrowser.
|
|
@@ -26,6 +28,20 @@ declare const RedisBrowser: ({ token, url, hideTabs, storage, }: RedisCredential
|
|
|
26
28
|
* ```
|
|
27
29
|
*/
|
|
28
30
|
storage?: RedisBrowserStorage;
|
|
31
|
+
/**
|
|
32
|
+
* Dark mode configuration.
|
|
33
|
+
*
|
|
34
|
+
* @default "light"
|
|
35
|
+
* @example
|
|
36
|
+
* ```tsx
|
|
37
|
+
* // Light mode (default)
|
|
38
|
+
* <RedisBrowser darkMode="light" />
|
|
39
|
+
*
|
|
40
|
+
* // Dark mode
|
|
41
|
+
* <RedisBrowser darkMode="dark" />
|
|
42
|
+
* ```
|
|
43
|
+
*/
|
|
44
|
+
darkMode?: DarkModeOption;
|
|
29
45
|
}) => react_jsx_runtime.JSX.Element;
|
|
30
46
|
|
|
31
|
-
export { RedisBrowser, type RedisBrowserStorage };
|
|
47
|
+
export { type DarkModeOption, RedisBrowser, type RedisBrowserStorage };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
2
|
|
|
3
|
+
type DarkModeOption = "dark" | "light";
|
|
4
|
+
|
|
3
5
|
type RedisCredentials = {
|
|
4
6
|
url?: string;
|
|
5
7
|
token?: string;
|
|
@@ -12,7 +14,7 @@ type RedisBrowserStorage = {
|
|
|
12
14
|
set: (value: string) => void;
|
|
13
15
|
get: () => string | null;
|
|
14
16
|
};
|
|
15
|
-
declare const RedisBrowser: ({ token, url, hideTabs, storage, }: RedisCredentials & {
|
|
17
|
+
declare const RedisBrowser: ({ token, url, hideTabs, storage, darkMode, }: RedisCredentials & {
|
|
16
18
|
hideTabs?: boolean;
|
|
17
19
|
/**
|
|
18
20
|
* Persistence storage for the Databrowser.
|
|
@@ -26,6 +28,20 @@ declare const RedisBrowser: ({ token, url, hideTabs, storage, }: RedisCredential
|
|
|
26
28
|
* ```
|
|
27
29
|
*/
|
|
28
30
|
storage?: RedisBrowserStorage;
|
|
31
|
+
/**
|
|
32
|
+
* Dark mode configuration.
|
|
33
|
+
*
|
|
34
|
+
* @default "light"
|
|
35
|
+
* @example
|
|
36
|
+
* ```tsx
|
|
37
|
+
* // Light mode (default)
|
|
38
|
+
* <RedisBrowser darkMode="light" />
|
|
39
|
+
*
|
|
40
|
+
* // Dark mode
|
|
41
|
+
* <RedisBrowser darkMode="dark" />
|
|
42
|
+
* ```
|
|
43
|
+
*/
|
|
44
|
+
darkMode?: DarkModeOption;
|
|
29
45
|
}) => react_jsx_runtime.JSX.Element;
|
|
30
46
|
|
|
31
|
-
export { RedisBrowser, type RedisBrowserStorage };
|
|
47
|
+
export { type DarkModeOption, RedisBrowser, type RedisBrowserStorage };
|