@vuer-ai/vuer-uikit 0.0.102 → 0.0.104
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/auth/context/auth-context.d.cts +3 -5
- package/dist/auth/context/auth-context.d.ts +3 -5
- package/dist/auth/handler/get-session.cjs +11 -0
- package/dist/auth/handler/get-session.d.cts +19 -0
- package/dist/auth/handler/get-session.d.ts +19 -0
- package/dist/auth/handler/get-session.mjs +2 -0
- package/dist/auth/handler/sign-in-handler.cjs +3 -3
- package/dist/auth/handler/sign-in-handler.d.cts +0 -1
- package/dist/auth/handler/sign-in-handler.d.ts +0 -1
- package/dist/auth/handler/sign-in-handler.mjs +2 -2
- package/dist/auth/handler/sign-out-handler.cjs +11 -0
- package/dist/auth/handler/sign-out-handler.d.cts +5 -0
- package/dist/auth/handler/sign-out-handler.d.ts +5 -0
- package/dist/auth/handler/sign-out-handler.mjs +2 -0
- package/dist/auth/hooks/use-vuer-auth.d.cts +0 -1
- package/dist/auth/hooks/use-vuer-auth.d.ts +0 -1
- package/dist/auth/hooks/use-vuer-method.cjs +5 -4
- package/dist/auth/hooks/use-vuer-method.d.cts +2 -3
- package/dist/auth/hooks/use-vuer-method.d.ts +2 -3
- package/dist/auth/hooks/use-vuer-method.mjs +4 -3
- package/dist/auth/index.cjs +9 -13
- package/dist/auth/index.d.cts +1 -2
- package/dist/auth/index.d.ts +1 -2
- package/dist/auth/index.mjs +6 -6
- package/dist/auth/localstorage-key.cjs +2 -6
- package/dist/auth/localstorage-key.d.cts +1 -2
- package/dist/auth/localstorage-key.d.ts +1 -2
- package/dist/auth/localstorage-key.mjs +1 -1
- package/dist/auth/types.cjs +0 -12
- package/dist/auth/types.d.cts +10 -3466
- package/dist/auth/types.d.ts +10 -3466
- package/dist/auth/types.mjs +1 -1
- package/dist/auth/vuer-auth-provider.cjs +4 -5
- package/dist/auth/vuer-auth-provider.mjs +3 -4
- package/dist/{chunk-WGVKFNG6.mjs → chunk-276VJZCV.mjs} +1 -2
- package/dist/{chunk-IQ5MDNCR.cjs → chunk-2PJO5UJL.cjs} +8 -8
- package/dist/chunk-4CPB3XHE.cjs +18 -0
- package/dist/{chunk-YMSWUGHW.cjs → chunk-4PKPCOAF.cjs} +2 -1
- package/dist/{chunk-BSOJYJ4D.cjs → chunk-4WRTIOGZ.cjs} +2 -1
- package/dist/chunk-5HS4PMUR.mjs +45 -0
- package/dist/{chunk-XG56MLQH.cjs → chunk-5JPYU5A6.cjs} +8 -8
- package/dist/{chunk-ZNPI2TYG.mjs → chunk-5MBEK77I.mjs} +5 -13
- package/dist/{chunk-Z6KE4XDB.cjs → chunk-5QDNFK4H.cjs} +7 -7
- package/dist/{chunk-ZPH5LMEM.mjs → chunk-6NSQLHKC.mjs} +1 -1
- package/dist/{chunk-RGV3EB3K.cjs → chunk-6QU4J3HY.cjs} +12 -12
- package/dist/{chunk-BFNETXJK.mjs → chunk-77FMULFB.mjs} +4 -4
- package/dist/{chunk-W3RJNSWQ.mjs → chunk-7NOBQH7O.mjs} +2 -2
- package/dist/{chunk-JMFTHHHE.cjs → chunk-7RHQ6DVU.cjs} +14 -13
- package/dist/{chunk-RZILHP75.cjs → chunk-7WA7ZFVS.cjs} +2 -2
- package/dist/{chunk-6DYF6WO6.mjs → chunk-AKVHFPXH.mjs} +7 -5
- package/dist/{chunk-ZFIEYXJO.cjs → chunk-BXBSZOBU.cjs} +1 -1
- package/dist/{chunk-5WDPNBQW.cjs → chunk-C6L7YIGW.cjs} +2 -1
- package/dist/chunk-CGODCUQ5.mjs +16 -0
- package/dist/{chunk-5EXV5EWF.mjs → chunk-D5H4XX6Q.mjs} +1 -1
- package/dist/{chunk-EAZQH4IX.mjs → chunk-EOSYXHEH.mjs} +1 -1
- package/dist/{chunk-EBBHJLUX.mjs → chunk-G4Q5ALRW.mjs} +2 -1
- package/dist/{chunk-XOIIYO5J.cjs → chunk-HA6M4XKT.cjs} +4 -2
- package/dist/{chunk-K22BEXUA.mjs → chunk-JVV7W3TP.mjs} +1 -1
- package/dist/{chunk-6TSA7KXX.cjs → chunk-JWVH6R35.cjs} +1 -1
- package/dist/{chunk-7P563TWH.mjs → chunk-K2OC2HWQ.mjs} +10 -9
- package/dist/{chunk-CX6OFX5Z.mjs → chunk-KJH46JR3.mjs} +2 -1
- package/dist/chunk-LBGZKACW.cjs +30 -0
- package/dist/{chunk-UA3OTLX4.mjs → chunk-LDFGQSE4.mjs} +2 -2
- package/dist/{chunk-2CZEFXEW.cjs → chunk-LFSCJLL2.cjs} +5 -13
- package/dist/chunk-M6JLGVJ7.mjs +28 -0
- package/dist/{chunk-E2EMVLII.mjs → chunk-MG5TTPA7.mjs} +2 -1
- package/dist/{chunk-3THWK3HB.mjs → chunk-NHG2ROYB.mjs} +2 -1
- package/dist/{chunk-7UO6NLB6.mjs → chunk-OLVOIUCE.mjs} +3 -3
- package/dist/{chunk-KRNKB4FM.mjs → chunk-OPYMZDEZ.mjs} +1 -1
- package/dist/{chunk-LSKJOUAE.cjs → chunk-PB4UO2NR.cjs} +3 -4
- package/dist/{chunk-IJGCH57E.cjs → chunk-QHAGQCVF.cjs} +1 -1
- package/dist/{chunk-D4DKSGER.mjs → chunk-QZUTRJSP.mjs} +1 -1
- package/dist/{chunk-SUSABE24.mjs → chunk-S6PSU47F.mjs} +1 -1
- package/dist/{chunk-AYYX3TVN.mjs → chunk-S7SGB2FD.mjs} +1 -1
- package/dist/{chunk-CFOMX6SF.mjs → chunk-SMIACO56.mjs} +4 -2
- package/dist/{chunk-EI5ZOFWX.mjs → chunk-SUEFWFPX.mjs} +1 -1
- package/dist/{chunk-6BD5MQ5R.cjs → chunk-SVWS4AL6.cjs} +0 -2
- package/dist/chunk-T2D6PSA6.cjs +47 -0
- package/dist/chunk-T57VFBIC.mjs +17 -0
- package/dist/{chunk-3OMGBQ7I.mjs → chunk-TYXRHZZG.mjs} +1 -1
- package/dist/{chunk-LP3AGGRK.cjs → chunk-UTS56UA5.cjs} +1 -1
- package/dist/{chunk-OMZHB2FB.cjs → chunk-V3VUFIG3.cjs} +4 -2
- package/dist/{chunk-RU423LFT.cjs → chunk-VQP3QBC6.cjs} +1 -1
- package/dist/{chunk-C7WHIFJZ.cjs → chunk-WRKB3W2J.cjs} +2 -2
- package/dist/chunk-WTYBTOLO.cjs +19 -0
- package/dist/{chunk-3XTBLV6T.cjs → chunk-WZGZX3S2.cjs} +1 -1
- package/dist/{chunk-3PDV3ZKD.cjs → chunk-XFTKHT2M.cjs} +8 -6
- package/dist/{chunk-7KQXX7QB.mjs → chunk-XGM57WPN.mjs} +2 -3
- package/dist/{chunk-XGGAJUY3.cjs → chunk-XURKXOZK.cjs} +2 -2
- package/dist/{chunk-3NSSQHRK.mjs → chunk-Y2H4A5AC.mjs} +1 -1
- package/dist/{chunk-2JV7MJIF.cjs → chunk-Y5SVZCPQ.cjs} +4 -4
- package/dist/{chunk-PO2LYHDO.mjs → chunk-YKHK6C4Q.mjs} +4 -2
- package/dist/{chunk-LPVBUX2J.cjs → chunk-YQ5KKJQ3.cjs} +2 -1
- package/dist/{chunk-MCYFLR4F.cjs → chunk-ZS7ESTKH.cjs} +1 -1
- package/dist/dial/DialPanel.cjs +40 -40
- package/dist/dial/DialPanel.mjs +39 -39
- package/dist/dial/DialProvider.d.cts +1 -0
- package/dist/dial/DialProvider.d.ts +1 -0
- package/dist/dial/index.cjs +56 -56
- package/dist/dial/index.mjs +39 -39
- package/dist/dial/wrapped-inputs/ControlledInputs.cjs +44 -44
- package/dist/dial/wrapped-inputs/ControlledInputs.mjs +39 -39
- package/dist/dial/wrapped-inputs/DialInputs.cjs +53 -53
- package/dist/dial/wrapped-inputs/DialInputs.mjs +39 -39
- package/dist/dial/wrapped-inputs/DialPresetsInput.cjs +40 -40
- package/dist/dial/wrapped-inputs/DialPresetsInput.mjs +39 -39
- package/dist/dial/wrapped-inputs/DialVectorInput.cjs +40 -40
- package/dist/dial/wrapped-inputs/DialVectorInput.mjs +39 -39
- package/dist/dial/wrapped-inputs/index.cjs +60 -60
- package/dist/dial/wrapped-inputs/index.mjs +39 -39
- package/dist/highlight-cursor/enhanced-components.cjs +7 -7
- package/dist/highlight-cursor/enhanced-components.mjs +2 -2
- package/dist/highlight-cursor/index.cjs +7 -7
- package/dist/highlight-cursor/index.mjs +2 -2
- package/dist/index.cjs +240 -240
- package/dist/index.css +15 -8
- package/dist/index.mjs +39 -39
- package/dist/styles/theme.css +15 -8
- package/dist/ui/DialBadge.cjs +5 -5
- package/dist/ui/DialBadge.mjs +1 -1
- package/dist/ui/UIKitBadge.cjs +5 -5
- package/dist/ui/UIKitBadge.mjs +1 -1
- package/dist/ui/badge.cjs +3 -3
- package/dist/ui/badge.d.cts +1 -1
- package/dist/ui/badge.d.ts +1 -1
- package/dist/ui/badge.mjs +1 -1
- package/dist/ui/card.cjs +8 -8
- package/dist/ui/card.mjs +1 -1
- package/dist/ui/drawer.cjs +11 -11
- package/dist/ui/drawer.mjs +1 -1
- package/dist/ui/dropdown.cjs +16 -16
- package/dist/ui/dropdown.mjs +1 -1
- package/dist/ui/index.cjs +216 -216
- package/dist/ui/index.mjs +37 -37
- package/dist/ui/inputs/index.cjs +10 -10
- package/dist/ui/inputs/index.mjs +2 -2
- package/dist/ui/inputs/input.d.cts +1 -1
- package/dist/ui/inputs/input.d.ts +1 -1
- package/dist/ui/inputs/number-inputs/index.cjs +5 -5
- package/dist/ui/inputs/number-inputs/index.mjs +1 -1
- package/dist/ui/layouts/dock-layout/DockLayoutView.cjs +2 -2
- package/dist/ui/layouts/dock-layout/DockLayoutView.mjs +1 -1
- package/dist/ui/layouts/dock-layout/index.cjs +2 -2
- package/dist/ui/layouts/dock-layout/index.mjs +1 -1
- package/dist/ui/layouts/index.cjs +8 -8
- package/dist/ui/layouts/index.mjs +3 -3
- package/dist/ui/modal.cjs +11 -11
- package/dist/ui/modal.mjs +1 -1
- package/dist/ui/panel.cjs +8 -8
- package/dist/ui/panel.mjs +1 -1
- package/dist/ui/popover.cjs +5 -5
- package/dist/ui/popover.mjs +1 -1
- package/dist/ui/select.cjs +12 -12
- package/dist/ui/select.d.cts +1 -1
- package/dist/ui/select.d.ts +1 -1
- package/dist/ui/select.mjs +1 -1
- package/dist/ui/sheet.cjs +9 -9
- package/dist/ui/sheet.mjs +1 -1
- package/dist/ui/sidebar.cjs +27 -27
- package/dist/ui/sidebar.mjs +3 -3
- package/dist/ui/textarea.d.cts +1 -1
- package/dist/ui/textarea.d.ts +1 -1
- package/dist/ui/theme/ThemeToggles.cjs +5 -5
- package/dist/ui/theme/ThemeToggles.mjs +2 -2
- package/dist/ui/theme/index.cjs +5 -5
- package/dist/ui/theme/index.mjs +2 -2
- package/dist/ui/toast.cjs +3 -3
- package/dist/ui/toast.mjs +1 -1
- package/dist/ui/toolbar.cjs +4 -4
- package/dist/ui/toolbar.mjs +1 -1
- package/dist/ui/tooltip.cjs +5 -5
- package/dist/ui/tooltip.mjs +1 -1
- package/dist/ui/tree-view/TreeSearchBar.cjs +3 -3
- package/dist/ui/tree-view/TreeSearchBar.mjs +2 -2
- package/dist/ui/tree-view/index.cjs +12 -12
- package/dist/ui/tree-view/index.mjs +3 -3
- package/dist/ui/tree-view-legacy.cjs +6 -6
- package/dist/ui/tree-view-legacy.mjs +2 -2
- package/dist/ui/waterfall/NavigationControls.cjs +2 -2
- package/dist/ui/waterfall/NavigationControls.mjs +1 -1
- package/dist/ui/waterfall/Tick.cjs +2 -2
- package/dist/ui/waterfall/Tick.mjs +1 -1
- package/dist/ui/waterfall/index.cjs +10 -10
- package/dist/ui/waterfall/index.mjs +9 -9
- package/package.json +1 -1
- package/src/auth/context/auth-context.ts +3 -4
- package/src/auth/handler/get-session.ts +17 -0
- package/src/auth/handler/sign-in-handler.ts +1 -2
- package/src/auth/handler/sign-out-handler.ts +13 -0
- package/src/auth/hooks/use-vuer-method.ts +8 -6
- package/src/auth/localstorage-key.ts +0 -2
- package/src/auth/types.ts +9 -27
- package/src/auth/vuer-auth-provider.tsx +25 -8
- package/src/dial/DialPanel.tsx +1 -1
- package/src/dial/DialProvider.tsx +1 -0
- package/src/styles/theme.css +75 -28
- package/src/ui/badge.tsx +1 -1
- package/src/ui/card.tsx +2 -1
- package/src/ui/drawer.tsx +1 -1
- package/src/ui/dropdown.tsx +4 -2
- package/src/ui/layouts/dock-layout/DockLayoutView.tsx +6 -82
- package/src/ui/modal.tsx +2 -1
- package/src/ui/panel.tsx +2 -1
- package/src/ui/popover.tsx +4 -2
- package/src/ui/select.tsx +2 -1
- package/src/ui/sheet.tsx +2 -2
- package/src/ui/sidebar.tsx +1 -1
- package/src/ui/toast.tsx +1 -1
- package/src/ui/toolbar.tsx +1 -1
- package/src/ui/tooltip.tsx +5 -13
- package/src/ui/waterfall/NavigationControls.tsx +1 -1
- package/src/ui/waterfall/Tick.tsx +1 -1
- package/src/ui/waterfall/index.tsx +4 -3
- package/dist/auth/handler/create-client.cjs +0 -12
- package/dist/auth/handler/create-client.d.cts +0 -7
- package/dist/auth/handler/create-client.d.ts +0 -7
- package/dist/auth/handler/create-client.mjs +0 -3
- package/dist/chunk-5T7MTIHW.mjs +0 -75
- package/dist/chunk-ACYOVCGH.mjs +0 -30
- package/dist/chunk-CHYXRETV.cjs +0 -23
- package/dist/chunk-G6U2K2GR.cjs +0 -32
- package/dist/chunk-HPK4YEVK.cjs +0 -27
- package/dist/chunk-KAA4NEHL.cjs +0 -77
- package/dist/chunk-PKSIXQJX.mjs +0 -20
- package/dist/chunk-PZMA33PL.mjs +0 -25
- package/src/auth/handler/create-client.ts +0 -23
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunk7RHQ6DVU_cjs = require('../../chunk-7RHQ6DVU.cjs');
|
|
4
4
|
require('../../chunk-WJL5HMO6.cjs');
|
|
5
5
|
require('../../chunk-RJ7I6ZQK.cjs');
|
|
6
|
+
require('../../chunk-YXFHJKNW.cjs');
|
|
6
7
|
require('../../chunk-5MNZYCN2.cjs');
|
|
7
8
|
require('../../chunk-Z6UDRPC2.cjs');
|
|
8
9
|
require('../../chunk-YJ6X6T5K.cjs');
|
|
10
|
+
require('../../chunk-G5NT42YF.cjs');
|
|
11
|
+
require('../../chunk-EEGQLTSQ.cjs');
|
|
12
|
+
require('../../chunk-VOTZLQ6J.cjs');
|
|
9
13
|
require('../../chunk-2J75MYQA.cjs');
|
|
10
|
-
require('../../chunk-
|
|
11
|
-
require('../../chunk-
|
|
14
|
+
require('../../chunk-UTS56UA5.cjs');
|
|
15
|
+
require('../../chunk-JWVH6R35.cjs');
|
|
12
16
|
require('../../chunk-MVAFOQ67.cjs');
|
|
13
17
|
require('../../chunk-TUYG6BYZ.cjs');
|
|
14
|
-
require('../../chunk-YXFHJKNW.cjs');
|
|
15
18
|
var chunkG2ZYONQO_cjs = require('../../chunk-G2ZYONQO.cjs');
|
|
16
|
-
require('../../chunk-
|
|
17
|
-
require('../../chunk-VOTZLQ6J.cjs');
|
|
18
|
-
require('../../chunk-XG56MLQH.cjs');
|
|
19
|
+
require('../../chunk-5JPYU5A6.cjs');
|
|
19
20
|
require('../../chunk-HAVTMZR3.cjs');
|
|
20
|
-
require('../../chunk-
|
|
21
|
-
require('../../chunk-2CZEFXEW.cjs');
|
|
21
|
+
require('../../chunk-LFSCJLL2.cjs');
|
|
22
22
|
require('../../chunk-LQGXG373.cjs');
|
|
23
23
|
require('../../chunk-JMCH2AFN.cjs');
|
|
24
24
|
require('../../chunk-G5JZGNKY.cjs');
|
|
@@ -38,7 +38,7 @@ require('../../chunk-G4FJGNY5.cjs');
|
|
|
38
38
|
|
|
39
39
|
Object.defineProperty(exports, "Waterfall", {
|
|
40
40
|
enumerable: true,
|
|
41
|
-
get: function () { return
|
|
41
|
+
get: function () { return chunk7RHQ6DVU_cjs.Waterfall; }
|
|
42
42
|
});
|
|
43
43
|
Object.defineProperty(exports, "TOTAL_DURATION", {
|
|
44
44
|
enumerable: true,
|
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
export { Waterfall } from '../../chunk-
|
|
1
|
+
export { Waterfall } from '../../chunk-K2OC2HWQ.mjs';
|
|
2
2
|
import '../../chunk-JWKOW2OV.mjs';
|
|
3
3
|
import '../../chunk-VPQ5SSY3.mjs';
|
|
4
|
+
import '../../chunk-CO6EASQO.mjs';
|
|
4
5
|
import '../../chunk-IR334P7F.mjs';
|
|
5
6
|
import '../../chunk-CIPI2V54.mjs';
|
|
6
7
|
import '../../chunk-WPDU2YYR.mjs';
|
|
8
|
+
import '../../chunk-HVVT3D2T.mjs';
|
|
9
|
+
import '../../chunk-PC5DHSC4.mjs';
|
|
10
|
+
import '../../chunk-HTAFERCZ.mjs';
|
|
7
11
|
import '../../chunk-SA5WKLYB.mjs';
|
|
8
|
-
import '../../chunk-
|
|
9
|
-
import '../../chunk-
|
|
12
|
+
import '../../chunk-D5H4XX6Q.mjs';
|
|
13
|
+
import '../../chunk-JVV7W3TP.mjs';
|
|
10
14
|
import '../../chunk-OC4HRPZU.mjs';
|
|
11
15
|
import '../../chunk-N6DSPSMM.mjs';
|
|
12
|
-
import '../../chunk-CO6EASQO.mjs';
|
|
13
16
|
export { TOTAL_DURATION, borderColorClasses, colorClasses, formatDuration, leftWedgeClasses, rightWedgeClasses } from '../../chunk-4U232QAX.mjs';
|
|
14
|
-
import '../../chunk-
|
|
15
|
-
import '../../chunk-HTAFERCZ.mjs';
|
|
16
|
-
import '../../chunk-EI5ZOFWX.mjs';
|
|
17
|
+
import '../../chunk-SUEFWFPX.mjs';
|
|
17
18
|
import '../../chunk-VQPJ7TLB.mjs';
|
|
18
|
-
import '../../chunk-
|
|
19
|
-
import '../../chunk-ZNPI2TYG.mjs';
|
|
19
|
+
import '../../chunk-5MBEK77I.mjs';
|
|
20
20
|
import '../../chunk-LRSDE62T.mjs';
|
|
21
21
|
import '../../chunk-BNDRHLLZ.mjs';
|
|
22
22
|
import '../../chunk-PDOFOJ4P.mjs';
|
package/package.json
CHANGED
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
import { createContext } from "react";
|
|
2
2
|
|
|
3
|
-
import {
|
|
3
|
+
import { Refetch, UserSession } from "../types";
|
|
4
4
|
|
|
5
5
|
interface IAuthContext {
|
|
6
6
|
baseURL: string;
|
|
7
|
-
data:
|
|
7
|
+
data: UserSession | null;
|
|
8
8
|
isPending: boolean;
|
|
9
|
-
|
|
10
|
-
refetch: () => void;
|
|
9
|
+
refetch: Refetch;
|
|
11
10
|
}
|
|
12
11
|
|
|
13
12
|
const AuthContext = createContext<IAuthContext>(null!);
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { bearerToken } from "../localstorage-key";
|
|
2
|
+
import { UserSession } from "../types";
|
|
3
|
+
|
|
4
|
+
const getSession = async (baseURL: string) => {
|
|
5
|
+
const token = localStorage.getItem(bearerToken) || "";
|
|
6
|
+
const res = await fetch(`${baseURL}/api/auth/get-session`, {
|
|
7
|
+
headers: {
|
|
8
|
+
Authorization: `Bearer ${token}`,
|
|
9
|
+
},
|
|
10
|
+
credentials: "include",
|
|
11
|
+
});
|
|
12
|
+
const authJWT = res.headers.get("set-auth-jwt");
|
|
13
|
+
const data = (await res.json()) as UserSession;
|
|
14
|
+
return { ...data, session: { ...data.session, jwt: authJWT ?? "" } };
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
export { getSession };
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { bearerToken } from "../localstorage-key";
|
|
2
|
+
|
|
3
|
+
export const signOutHandler = async (baseURL: string) => {
|
|
4
|
+
const token = localStorage.getItem(bearerToken) || "";
|
|
5
|
+
const res = await fetch(`${baseURL}/api/auth/sign-out`, {
|
|
6
|
+
method: "POST",
|
|
7
|
+
headers: {
|
|
8
|
+
Authorization: `Bearer ${token}`,
|
|
9
|
+
},
|
|
10
|
+
credentials: "include",
|
|
11
|
+
});
|
|
12
|
+
return (await res.json()) as { success: boolean };
|
|
13
|
+
};
|
|
@@ -1,20 +1,22 @@
|
|
|
1
1
|
import { useCallback, useMemo } from "react";
|
|
2
2
|
|
|
3
3
|
import { signInHandler } from "../handler/sign-in-handler";
|
|
4
|
-
import {
|
|
4
|
+
import { SignInWithOutBaseURLParams, SignOut } from "../types";
|
|
5
5
|
import { useVuerAuth } from "./use-vuer-auth";
|
|
6
|
+
import { signOutHandler } from "../handler/sign-out-handler";
|
|
6
7
|
|
|
7
8
|
interface UseVuerAuth {
|
|
8
9
|
signIn: (p?: SignInWithOutBaseURLParams) => Promise<string> | void;
|
|
9
|
-
signOut:
|
|
10
|
+
signOut: SignOut;
|
|
10
11
|
}
|
|
11
12
|
|
|
12
13
|
const useVuerMethod = (): UseVuerAuth => {
|
|
13
|
-
const { refetch,
|
|
14
|
+
const { refetch, baseURL } = useVuerAuth();
|
|
14
15
|
|
|
15
|
-
const signOutHandle = useCallback(() => {
|
|
16
|
-
|
|
17
|
-
|
|
16
|
+
const signOutHandle = useCallback(async () => {
|
|
17
|
+
await signOutHandler(baseURL);
|
|
18
|
+
await refetch();
|
|
19
|
+
}, [baseURL, refetch]);
|
|
18
20
|
|
|
19
21
|
const signInHandle = useCallback(
|
|
20
22
|
(props?: SignInWithOutBaseURLParams) => {
|
package/src/auth/types.ts
CHANGED
|
@@ -1,26 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { customSessionClient } from "better-auth/client/plugins";
|
|
3
|
-
import { customSession } from "better-auth/plugins";
|
|
4
|
-
import { createAuthClient } from "better-auth/react";
|
|
5
|
-
|
|
6
|
-
export const auth = betterAuth({
|
|
7
|
-
plugins: [
|
|
8
|
-
customSession(async (session) => {
|
|
9
|
-
return {
|
|
10
|
-
...session,
|
|
11
|
-
session: { ...session.session, sessionToken: "" },
|
|
12
|
-
};
|
|
13
|
-
}),
|
|
14
|
-
],
|
|
15
|
-
});
|
|
16
|
-
|
|
17
|
-
export const options = {
|
|
18
|
-
plugins: [customSessionClient<typeof auth>()],
|
|
19
|
-
};
|
|
20
|
-
|
|
21
|
-
type BetterAuth = ReturnType<typeof createAuthClient<typeof options>>;
|
|
1
|
+
import { Session, User } from "better-auth";
|
|
22
2
|
|
|
23
|
-
|
|
3
|
+
interface UserSession {
|
|
4
|
+
user: User;
|
|
5
|
+
session: Session & { sessionToken: string; jwt: string };
|
|
6
|
+
}
|
|
24
7
|
|
|
25
8
|
interface SignInWithPopup {
|
|
26
9
|
baseURL: string;
|
|
@@ -34,9 +17,9 @@ interface SignInWithRedirect {
|
|
|
34
17
|
callbackURL: string;
|
|
35
18
|
}
|
|
36
19
|
|
|
37
|
-
type Refetch =
|
|
20
|
+
type Refetch = () => Promise<UserSession | null>;
|
|
38
21
|
|
|
39
|
-
type SignOut =
|
|
22
|
+
type SignOut = () => Promise<void>;
|
|
40
23
|
|
|
41
24
|
type SignInParams = SignInWithPopup | SignInWithRedirect;
|
|
42
25
|
|
|
@@ -45,10 +28,9 @@ type SignInWithOutBaseURLParams =
|
|
|
45
28
|
| Omit<SignInWithRedirect, "baseURL">;
|
|
46
29
|
|
|
47
30
|
export type {
|
|
48
|
-
SignOut,
|
|
49
31
|
Refetch,
|
|
50
|
-
|
|
51
|
-
|
|
32
|
+
SignOut,
|
|
33
|
+
UserSession,
|
|
52
34
|
SignInParams,
|
|
53
35
|
SignInWithOutBaseURLParams,
|
|
54
36
|
SignInWithPopup,
|
|
@@ -1,33 +1,50 @@
|
|
|
1
|
-
import { PropsWithChildren, useEffect, useMemo,
|
|
1
|
+
import { PropsWithChildren, useCallback, useEffect, useMemo, useState } from "react";
|
|
2
2
|
|
|
3
3
|
import { AuthContext } from "./context/auth-context";
|
|
4
|
-
import {
|
|
4
|
+
import { getSession } from "./handler/get-session";
|
|
5
5
|
import { bearerToken } from "./localstorage-key";
|
|
6
|
+
import { UserSession } from "./types";
|
|
6
7
|
|
|
7
8
|
interface Props {
|
|
8
9
|
baseURL: string;
|
|
9
10
|
}
|
|
10
11
|
|
|
11
12
|
export function VuerAuthProvider({ children, baseURL }: PropsWithChildren<Props>) {
|
|
12
|
-
const
|
|
13
|
+
const [isPending, setIsPending] = useState<boolean>(true);
|
|
14
|
+
const [session, setSession] = useState<UserSession | null>(null);
|
|
13
15
|
|
|
14
|
-
const
|
|
16
|
+
const refetchHandle = useCallback(async () => {
|
|
17
|
+
setIsPending(true);
|
|
18
|
+
const data = await getSession(baseURL);
|
|
19
|
+
setSession(data);
|
|
20
|
+
setIsPending(false);
|
|
21
|
+
return data;
|
|
22
|
+
}, [baseURL]);
|
|
15
23
|
|
|
16
24
|
useEffect(() => {
|
|
17
25
|
const searchParams = new URLSearchParams(window.location.search);
|
|
18
26
|
const session = searchParams.get("token");
|
|
19
27
|
if (session) {
|
|
20
28
|
localStorage.setItem(bearerToken, encodeURIComponent(session));
|
|
21
|
-
|
|
29
|
+
refetchHandle().then(() => console.log("Sign in session"));
|
|
22
30
|
window.history.replaceState({}, "", window.location.pathname);
|
|
23
31
|
}
|
|
24
|
-
}, [
|
|
32
|
+
}, [refetchHandle]);
|
|
33
|
+
|
|
34
|
+
useEffect(() => {
|
|
35
|
+
refetchHandle().then(() => console.log("Init session"));
|
|
36
|
+
}, [refetchHandle]);
|
|
25
37
|
|
|
26
38
|
return (
|
|
27
39
|
<AuthContext.Provider
|
|
28
40
|
value={useMemo(() => {
|
|
29
|
-
return {
|
|
30
|
-
|
|
41
|
+
return {
|
|
42
|
+
baseURL,
|
|
43
|
+
isPending,
|
|
44
|
+
data: session,
|
|
45
|
+
refetch: refetchHandle,
|
|
46
|
+
};
|
|
47
|
+
}, [baseURL, session, isPending, refetchHandle])}
|
|
31
48
|
>
|
|
32
49
|
{children}
|
|
33
50
|
</AuthContext.Provider>
|
package/src/dial/DialPanel.tsx
CHANGED
|
@@ -65,7 +65,7 @@ export const DialPanel: React.FC<DialSchemaRendererProps> = ({ schemas, groups:
|
|
|
65
65
|
const renderSchemaInput = (schema: DialSchema) => {
|
|
66
66
|
const { name, dtype, min, max, step, options, tags } = schema;
|
|
67
67
|
const labelPosition = tags?.labelPosition as LabelPositionT;
|
|
68
|
-
const label = name.charAt(0).toUpperCase() + name.slice(1);
|
|
68
|
+
const label = schema.label || (name.charAt(0).toUpperCase() + name.slice(1));
|
|
69
69
|
|
|
70
70
|
// Choose the right input component based on dtype
|
|
71
71
|
switch (dtype) {
|
package/src/styles/theme.css
CHANGED
|
@@ -1,60 +1,107 @@
|
|
|
1
1
|
@import "./variables.css";
|
|
2
2
|
|
|
3
|
+
@custom-variant liquid-dark (&:is(.liquid-dark *));
|
|
4
|
+
@custom-variant liquid-light (&:is(.liquid-light *));
|
|
3
5
|
@custom-variant liquid (&:is(.liquid-dark *, .liquid-light *));
|
|
4
6
|
|
|
5
|
-
@utility liquid-bg {
|
|
7
|
+
@utility liquid-dark-bg {
|
|
6
8
|
background: linear-gradient(
|
|
7
9
|
147.1deg,
|
|
8
|
-
rgba(
|
|
9
|
-
rgba(
|
|
10
|
+
rgba(50, 50, 50, 0.6) 0%,
|
|
11
|
+
rgba(70, 70, 70, 0.6) 105.28%
|
|
10
12
|
) !important;
|
|
11
13
|
backdrop-filter: blur(20px) !important;
|
|
12
14
|
}
|
|
13
15
|
|
|
14
|
-
@utility liquid-bg
|
|
15
|
-
background:
|
|
16
|
-
|
|
16
|
+
@utility liquid-light-bg {
|
|
17
|
+
background: linear-gradient(
|
|
18
|
+
147.1deg,
|
|
19
|
+
rgba(236, 236, 236, 0.6) 0%,
|
|
20
|
+
rgba(202, 202, 202, 0.6) 105.28%
|
|
21
|
+
) !important;
|
|
22
|
+
backdrop-filter: blur(20px) !important;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
@utility liquid-dark-bg-tooltip-arrow {
|
|
26
|
+
background: rgba(70, 70, 70, 0.8) !important;
|
|
27
|
+
backdrop-filter: blur(4px) !important;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
@utility liquid-light-bg-tooltip-arrow {
|
|
31
|
+
background: rgba(202, 202, 202, 0.8) !important;
|
|
32
|
+
backdrop-filter: blur(4px) !important;
|
|
17
33
|
}
|
|
18
34
|
|
|
19
|
-
@utility liquid-bg-tooltip-
|
|
20
|
-
background:
|
|
21
|
-
|
|
35
|
+
@utility liquid-dark-bg-tooltip-top {
|
|
36
|
+
background: linear-gradient(
|
|
37
|
+
to bottom,
|
|
38
|
+
rgba(50, 50, 50, 0.8) 0%,
|
|
39
|
+
rgba(70, 70, 70, 0.8) 100%
|
|
40
|
+
) !important;
|
|
41
|
+
backdrop-filter: blur(4px) !important;
|
|
22
42
|
}
|
|
23
43
|
|
|
24
|
-
@utility liquid-bg-tooltip-top {
|
|
44
|
+
@utility liquid-light-bg-tooltip-top {
|
|
25
45
|
background: linear-gradient(
|
|
26
46
|
to bottom,
|
|
27
|
-
rgba(
|
|
28
|
-
rgba(
|
|
47
|
+
rgba(236, 236, 236, 0.8) 0%,
|
|
48
|
+
rgba(202, 202, 202, 0.8) 100%
|
|
29
49
|
) !important;
|
|
30
|
-
backdrop-filter: blur(
|
|
50
|
+
backdrop-filter: blur(4px) !important;
|
|
31
51
|
}
|
|
32
52
|
|
|
33
|
-
@utility liquid-bg-tooltip-bottom {
|
|
53
|
+
@utility liquid-dark-bg-tooltip-bottom {
|
|
34
54
|
background: linear-gradient(
|
|
35
55
|
to top,
|
|
36
|
-
rgba(
|
|
37
|
-
rgba(
|
|
56
|
+
rgba(50, 50, 50, 0.8) 0%,
|
|
57
|
+
rgba(70, 70, 70, 0.8) 100%
|
|
38
58
|
) !important;
|
|
39
|
-
backdrop-filter: blur(
|
|
59
|
+
backdrop-filter: blur(4px) !important;
|
|
40
60
|
}
|
|
41
61
|
|
|
42
|
-
@utility liquid-bg-tooltip-
|
|
62
|
+
@utility liquid-light-bg-tooltip-bottom {
|
|
63
|
+
background: linear-gradient(
|
|
64
|
+
to top,
|
|
65
|
+
rgba(236, 236, 236, 0.8) 0%,
|
|
66
|
+
rgba(202, 202, 202, 0.8) 100%
|
|
67
|
+
) !important;
|
|
68
|
+
backdrop-filter: blur(4px) !important;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
@utility liquid-dark-bg-tooltip-left {
|
|
72
|
+
background: linear-gradient(
|
|
73
|
+
to right,
|
|
74
|
+
rgba(50, 50, 50, 0.8) 0%,
|
|
75
|
+
rgba(70, 70, 70, 0.8) 100%
|
|
76
|
+
) !important;
|
|
77
|
+
backdrop-filter: blur(4px) !important;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
@utility liquid-light-bg-tooltip-left {
|
|
43
81
|
background: linear-gradient(
|
|
44
82
|
to right,
|
|
45
|
-
rgba(
|
|
46
|
-
rgba(
|
|
83
|
+
rgba(236, 236, 236, 0.8) 0%,
|
|
84
|
+
rgba(202, 202, 202, 0.8) 100%
|
|
47
85
|
) !important;
|
|
48
|
-
backdrop-filter: blur(
|
|
86
|
+
backdrop-filter: blur(4px) !important;
|
|
49
87
|
}
|
|
50
88
|
|
|
51
|
-
@utility liquid-bg-tooltip-right {
|
|
89
|
+
@utility liquid-dark-bg-tooltip-right {
|
|
52
90
|
background: linear-gradient(
|
|
53
91
|
to left,
|
|
54
|
-
rgba(
|
|
55
|
-
rgba(
|
|
92
|
+
rgba(50, 50, 50, 0.8) 0%,
|
|
93
|
+
rgba(70, 70, 70, 0.8) 100%
|
|
56
94
|
) !important;
|
|
57
|
-
backdrop-filter: blur(
|
|
95
|
+
backdrop-filter: blur(4px) !important;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
@utility liquid-light-bg-tooltip-right {
|
|
99
|
+
background: linear-gradient(
|
|
100
|
+
to left,
|
|
101
|
+
rgba(236, 236, 236, 0.8) 0%,
|
|
102
|
+
rgba(202, 202, 202, 0.8) 100%
|
|
103
|
+
) !important;
|
|
104
|
+
backdrop-filter: blur(4px) !important;
|
|
58
105
|
}
|
|
59
106
|
|
|
60
107
|
@utility scrollbar-hide {
|
|
@@ -70,7 +117,7 @@
|
|
|
70
117
|
&::-webkit-scrollbar-track {
|
|
71
118
|
background: transparent;
|
|
72
119
|
}
|
|
73
|
-
|
|
120
|
+
|
|
74
121
|
&::-webkit-scrollbar-thumb {
|
|
75
122
|
background: var(--bg-tertiary);
|
|
76
123
|
border-radius: 4px;
|
|
@@ -123,8 +170,8 @@
|
|
|
123
170
|
--radius-uk-lg: calc(var(--radius) + 10px); /* 12px */
|
|
124
171
|
--radius-uk-xl: calc(var(--radius) + 13px); /* 16px */
|
|
125
172
|
/* spacing */
|
|
126
|
-
--spacing-xxs: calc(var(--spacing) -
|
|
127
|
-
--spacing-xs: var(--spacing); /* 4px */
|
|
173
|
+
--spacing-xxs: calc(var(--spacing) - 3px); /* 2px */
|
|
174
|
+
--spacing-xs: calc(var(--spacing) - 1px); /* 4px */
|
|
128
175
|
--spacing-sm: calc(var(--spacing) + 2px); /* 6px */
|
|
129
176
|
--spacing-md: calc(var(--spacing) + 4px); /* 8px */
|
|
130
177
|
--spacing-lg: calc(var(--spacing) + 9px); /* 12px */
|
package/src/ui/badge.tsx
CHANGED
package/src/ui/card.tsx
CHANGED
package/src/ui/drawer.tsx
CHANGED
|
@@ -64,7 +64,7 @@ function DrawerContent({
|
|
|
64
64
|
<DrawerPrimitive.Content
|
|
65
65
|
data-slot="drawer-content"
|
|
66
66
|
className={cn(
|
|
67
|
-
"group/drawer-content bg-bg-primary liquid:liquid-bg p-xl fixed z-50 flex h-auto flex-col shadow-[0_4px_16px_0_var(--color-shadow-secondary)]",
|
|
67
|
+
"group/drawer-content bg-bg-primary liquid-dark:liquid-dark-bg liquid-light:liquid-light-bg p-xl fixed z-50 flex h-auto flex-col shadow-[0_4px_16px_0_var(--color-shadow-secondary)]",
|
|
68
68
|
"data-[vaul-drawer-direction=top]:inset-x-0 data-[vaul-drawer-direction=top]:top-0 data-[vaul-drawer-direction=top]:mb-24 data-[vaul-drawer-direction=top]:max-h-[80vh]",
|
|
69
69
|
"data-[vaul-drawer-direction=bottom]:inset-x-0 data-[vaul-drawer-direction=bottom]:bottom-0 data-[vaul-drawer-direction=bottom]:mt-24 data-[vaul-drawer-direction=bottom]:max-h-[80vh] data-[vaul-drawer-direction=bottom]:pt-0",
|
|
70
70
|
"data-[vaul-drawer-direction=right]:inset-y-0 data-[vaul-drawer-direction=right]:right-0 data-[vaul-drawer-direction=right]:w-[340px]",
|
package/src/ui/dropdown.tsx
CHANGED
|
@@ -54,7 +54,8 @@ function DropdownMenuContent({
|
|
|
54
54
|
"overflow-y-auto",
|
|
55
55
|
"rounded-uk-md",
|
|
56
56
|
"shadow-[0_4px_16px_0_var(--color-shadow-secondary)]",
|
|
57
|
-
"liquid:liquid-bg",
|
|
57
|
+
"liquid-dark:liquid-dark-bg",
|
|
58
|
+
"liquid-light:liquid-light-bg",
|
|
58
59
|
],
|
|
59
60
|
className,
|
|
60
61
|
)}
|
|
@@ -335,7 +336,8 @@ function DropdownMenuSubContent({
|
|
|
335
336
|
"overflow-y-auto",
|
|
336
337
|
"rounded-uk-md",
|
|
337
338
|
"shadow-[0_4px_16px_0_var(--color-shadow-secondary)]",
|
|
338
|
-
"liquid:liquid-bg",
|
|
339
|
+
"liquid-dark:liquid-dark-bg",
|
|
340
|
+
"liquid-light:liquid-light-bg",
|
|
339
341
|
className,
|
|
340
342
|
)}
|
|
341
343
|
{...props}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type ReactNode
|
|
1
|
+
import { type ReactNode } from "react";
|
|
2
2
|
|
|
3
3
|
import {
|
|
4
4
|
DockLayout,
|
|
@@ -36,93 +36,17 @@ export const DockLayoutView = ({
|
|
|
36
36
|
bottomClassName,
|
|
37
37
|
contentClassName,
|
|
38
38
|
}: DockLayoutViewProps) => {
|
|
39
|
-
const containerRef = useRef<HTMLDivElement>(null);
|
|
40
|
-
const leftRef = useRef<HTMLDivElement>(null);
|
|
41
|
-
const rightRef = useRef<HTMLDivElement>(null);
|
|
42
|
-
const bottomRef = useRef<HTMLDivElement>(null);
|
|
43
|
-
const measureRef = useRef<HTMLDivElement>(null);
|
|
44
|
-
const [isBottomFullWidth, setIsBottomFullWidth] = useState(false);
|
|
45
|
-
|
|
46
|
-
useEffect(() => {
|
|
47
|
-
const checkBottomWidth = () => {
|
|
48
|
-
if (!containerRef.current || !bottom || !measureRef.current) return;
|
|
49
|
-
|
|
50
|
-
const containerWidth = containerRef.current.offsetWidth;
|
|
51
|
-
const leftWidth = leftRef.current?.offsetWidth || 0;
|
|
52
|
-
const rightWidth = rightRef.current?.offsetWidth || 0;
|
|
53
|
-
const availableWidth = containerWidth - leftWidth - rightWidth;
|
|
54
|
-
|
|
55
|
-
const bottomActualWidth = measureRef.current.scrollWidth;
|
|
56
|
-
|
|
57
|
-
setIsBottomFullWidth(bottomActualWidth > 0 && availableWidth < bottomActualWidth);
|
|
58
|
-
};
|
|
59
|
-
|
|
60
|
-
const resizeObserver = new ResizeObserver(checkBottomWidth);
|
|
61
|
-
|
|
62
|
-
if (containerRef.current) {
|
|
63
|
-
resizeObserver.observe(containerRef.current);
|
|
64
|
-
}
|
|
65
|
-
if (leftRef.current) {
|
|
66
|
-
resizeObserver.observe(leftRef.current);
|
|
67
|
-
}
|
|
68
|
-
if (rightRef.current) {
|
|
69
|
-
resizeObserver.observe(rightRef.current);
|
|
70
|
-
}
|
|
71
|
-
if (measureRef.current) {
|
|
72
|
-
resizeObserver.observe(measureRef.current);
|
|
73
|
-
checkBottomWidth();
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
return () => {
|
|
77
|
-
resizeObserver.disconnect();
|
|
78
|
-
};
|
|
79
|
-
}, [bottom, left, right]);
|
|
80
|
-
|
|
81
39
|
return (
|
|
82
|
-
<DockLayout
|
|
83
|
-
{bottom && (
|
|
84
|
-
<div
|
|
85
|
-
ref={measureRef}
|
|
86
|
-
className="pointer-events-none absolute -top-[9999px] left-0 opacity-0"
|
|
87
|
-
style={{ width: "max-content" }}
|
|
88
|
-
>
|
|
89
|
-
<DockLayoutBottom className={bottomClassName}>{bottom}</DockLayoutBottom>
|
|
90
|
-
</div>
|
|
91
|
-
)}
|
|
92
|
-
|
|
40
|
+
<DockLayout className={className}>
|
|
93
41
|
{top && <DockLayoutTop className={topClassName}>{top}</DockLayoutTop>}
|
|
94
42
|
|
|
95
43
|
<div className="flex flex-1 overflow-hidden">
|
|
96
|
-
{left &&
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
</div>
|
|
100
|
-
)}
|
|
101
|
-
|
|
102
|
-
<div className="flex flex-1 flex-col overflow-hidden">
|
|
103
|
-
<DockLayoutContent className={contentClassName}>{children}</DockLayoutContent>
|
|
104
|
-
|
|
105
|
-
{bottom && !isBottomFullWidth && (
|
|
106
|
-
<div className="flex justify-center">
|
|
107
|
-
<DockLayoutBottom ref={bottomRef} className={bottomClassName}>
|
|
108
|
-
{bottom}
|
|
109
|
-
</DockLayoutBottom>
|
|
110
|
-
</div>
|
|
111
|
-
)}
|
|
112
|
-
</div>
|
|
113
|
-
|
|
114
|
-
{right && (
|
|
115
|
-
<div ref={rightRef}>
|
|
116
|
-
<DockLayoutRight className={rightClassName}>{right}</DockLayoutRight>
|
|
117
|
-
</div>
|
|
118
|
-
)}
|
|
44
|
+
{left && <DockLayoutLeft className={leftClassName}>{left}</DockLayoutLeft>}
|
|
45
|
+
<DockLayoutContent className={contentClassName}>{children}</DockLayoutContent>
|
|
46
|
+
{right && <DockLayoutRight className={rightClassName}>{right}</DockLayoutRight>}
|
|
119
47
|
</div>
|
|
120
48
|
|
|
121
|
-
{bottom &&
|
|
122
|
-
<DockLayoutBottom ref={bottomRef} className={bottomClassName}>
|
|
123
|
-
{bottom}
|
|
124
|
-
</DockLayoutBottom>
|
|
125
|
-
)}
|
|
49
|
+
{bottom && <DockLayoutBottom className={bottomClassName}>{bottom}</DockLayoutBottom>}
|
|
126
50
|
</DockLayout>
|
|
127
51
|
);
|
|
128
52
|
};
|
package/src/ui/modal.tsx
CHANGED
|
@@ -77,7 +77,8 @@ const modalContentVariants = cva([
|
|
|
77
77
|
"data-[state=open]:fade-in-0",
|
|
78
78
|
"data-[state=closed]:zoom-out-95",
|
|
79
79
|
"data-[state=open]:zoom-in-95",
|
|
80
|
-
"liquid:liquid-bg",
|
|
80
|
+
"liquid-dark:liquid-dark-bg",
|
|
81
|
+
"liquid-light:liquid-light-bg",
|
|
81
82
|
]);
|
|
82
83
|
|
|
83
84
|
interface ModalContentProps extends ComponentProps<typeof DialogPrimitive.Content> {
|
package/src/ui/panel.tsx
CHANGED