@vezham/react 26.1.0 → 26.3.1
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 +2 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -1
- package/dist/lib/components/command/command-dialog.js +1 -1
- package/dist/lib/components/command/command-provider.js +1 -1
- package/dist/lib/components/command/index.d.ts +0 -1
- package/dist/lib/components/command/index.d.ts.map +1 -1
- package/dist/lib/components/panel/footer/control-center/control-center.js +1 -1
- package/dist/lib/components/panel/footer/control-center/editor.d.ts.map +1 -1
- package/dist/lib/components/panel/footer/control-center/editor.js +19 -24
- package/dist/lib/components/panel/footer/control-center/theme.d.ts.map +1 -1
- package/dist/lib/components/panel/footer/control-center/theme.js +2 -15
- package/dist/lib/components/panel/footer/control-center/variant.d.ts +3 -3
- package/dist/lib/components/panel/footer/control-center/variant.js +1 -1
- package/dist/lib/components/panel/footer/data.d.ts +1 -1
- package/dist/lib/components/panel/footer/data.js +1 -1
- package/dist/lib/components/panel/footer/index.d.ts +1 -1
- package/dist/lib/components/panel/footer/index.d.ts.map +1 -1
- package/dist/lib/components/panel/footer/index.js +10 -8
- package/dist/lib/components/panel/footer/notification-center/index.js +1 -1
- package/dist/lib/components/panel/footer/tamizhi/index.d.ts +3 -0
- package/dist/lib/components/panel/footer/tamizhi/index.d.ts.map +1 -0
- package/dist/lib/components/panel/footer/tamizhi/index.js +20 -0
- package/dist/lib/components/panel/footer/types.d.ts +1 -3
- package/dist/lib/components/panel/footer/types.d.ts.map +1 -1
- package/dist/lib/components/panel/footer/user-menu.d.ts +2 -2
- package/dist/lib/components/panel/footer/user-menu.d.ts.map +1 -1
- package/dist/lib/components/panel/footer/user-menu.js +127 -59
- package/dist/lib/components/panel/header/bookmarks/favorites/variant.js +2 -2
- package/dist/lib/components/panel/header/bookmarks/folder-modal/index.js +6 -6
- package/dist/lib/components/panel/header/bookmarks/index.js +1 -1
- package/dist/lib/components/panel/header/bookmarks/quick-access/index.js +9 -9
- package/dist/lib/components/panel/header/bookmarks/variant.js +22 -22
- package/dist/lib/components/panel/header/index.js +3 -3
- package/dist/lib/components/panel/info-panel/provider.d.ts.map +1 -1
- package/dist/lib/components/panel/info-panel/provider.js +20 -34
- package/dist/lib/components/panel/info-panel/types.d.ts +1 -1
- package/dist/lib/components/panel/info-panel/types.d.ts.map +1 -1
- package/dist/lib/components/panel/menu/index.js +4 -4
- package/dist/lib/components/panel/menu/variant.js +4 -4
- package/dist/lib/components/workspace-navigation/index.d.ts.map +1 -1
- package/dist/lib/components/workspace-navigation/index.js +1 -1
- package/dist/lib/layouts/app/index.d.ts +6 -3
- package/dist/lib/layouts/app/index.d.ts.map +1 -1
- package/dist/lib/layouts/app/index.js +36 -6
- package/dist/lib/layouts/menu-layout/home-navigation-bubble.js +3 -3
- package/dist/lib/layouts/menu-layout/index-md.d.ts.map +1 -1
- package/dist/lib/layouts/menu-layout/index-md.js +13 -27
- package/dist/lib/layouts/menu-layout/index-sm.d.ts.map +1 -1
- package/dist/lib/layouts/menu-layout/index-sm.js +7 -19
- package/dist/lib/layouts/section/toolbar.js +1 -1
- package/dist/lib/pages/settings/settings-content.d.ts.map +1 -1
- package/dist/lib/pages/settings/settings-content.js +14 -26
- package/dist/lib/workspace/action-dialog.d.ts +9 -0
- package/dist/lib/workspace/action-dialog.d.ts.map +1 -0
- package/dist/lib/workspace/action-dialog.js +86 -0
- package/dist/lib/workspace/actions-menu.d.ts +8 -0
- package/dist/lib/workspace/actions-menu.d.ts.map +1 -0
- package/dist/lib/workspace/actions-menu.js +47 -0
- package/dist/lib/workspace/create-dialog.d.ts +5 -0
- package/dist/lib/workspace/create-dialog.d.ts.map +1 -0
- package/dist/lib/workspace/create-dialog.js +108 -0
- package/dist/lib/workspace/index.d.ts +34 -0
- package/dist/lib/workspace/index.d.ts.map +1 -0
- package/dist/lib/workspace/index.js +128 -0
- package/dist/lib/workspace/menu.d.ts +18 -0
- package/dist/lib/workspace/menu.d.ts.map +1 -0
- package/dist/lib/workspace/menu.js +148 -0
- package/dist/lib/workspace/model.d.ts +17 -0
- package/dist/lib/workspace/model.d.ts.map +1 -0
- package/dist/lib/workspace/model.js +35 -0
- package/package.json +3 -2
- package/dist/lib/components/command/index.js +0 -3
- package/dist/lib/components/panel/footer/ai/chat-header.d.ts +0 -9
- package/dist/lib/components/panel/footer/ai/chat-header.d.ts.map +0 -1
- package/dist/lib/components/panel/footer/ai/chat-header.js +0 -63
- package/dist/lib/components/panel/footer/ai/composer.d.ts +0 -7
- package/dist/lib/components/panel/footer/ai/composer.d.ts.map +0 -1
- package/dist/lib/components/panel/footer/ai/composer.js +0 -77
- package/dist/lib/components/panel/footer/ai/content.d.ts +0 -13
- package/dist/lib/components/panel/footer/ai/content.d.ts.map +0 -1
- package/dist/lib/components/panel/footer/ai/content.js +0 -148
- package/dist/lib/components/panel/footer/ai/conversation.d.ts +0 -47
- package/dist/lib/components/panel/footer/ai/conversation.d.ts.map +0 -1
- package/dist/lib/components/panel/footer/ai/conversation.js +0 -222
- package/dist/lib/components/panel/footer/ai/index.d.ts +0 -3
- package/dist/lib/components/panel/footer/ai/index.d.ts.map +0 -1
- package/dist/lib/components/panel/footer/ai/index.js +0 -41
- package/dist/lib/components/panel/footer/ai/message-actions.d.ts +0 -8
- package/dist/lib/components/panel/footer/ai/message-actions.d.ts.map +0 -1
- package/dist/lib/components/panel/footer/ai/message-actions.js +0 -63
- package/dist/lib/components/panel/footer/ai/mock-result.d.ts +0 -6
- package/dist/lib/components/panel/footer/ai/mock-result.d.ts.map +0 -1
- package/dist/lib/components/panel/footer/ai/mock-result.js +0 -121
- package/dist/lib/components/panel/footer/ai/model-logo.d.ts +0 -5
- package/dist/lib/components/panel/footer/ai/model-logo.d.ts.map +0 -1
- package/dist/lib/components/panel/footer/ai/model-logo.js +0 -13
- package/dist/lib/components/panel/footer/ai/model-logos.d.ts +0 -2
- package/dist/lib/components/panel/footer/ai/model-logos.d.ts.map +0 -1
- package/dist/lib/components/panel/footer/ai/model-logos.js +0 -10
- package/dist/lib/components/panel/footer/ai/model-picker.d.ts +0 -8
- package/dist/lib/components/panel/footer/ai/model-picker.d.ts.map +0 -1
- package/dist/lib/components/panel/footer/ai/model-picker.js +0 -166
- package/dist/lib/components/panel/footer/ai/models.d.ts +0 -9
- package/dist/lib/components/panel/footer/ai/models.d.ts.map +0 -1
- package/dist/lib/components/panel/footer/ai/models.js +0 -72
- package/dist/lib/components/panel/footer/ai/permission-picker.d.ts +0 -5
- package/dist/lib/components/panel/footer/ai/permission-picker.d.ts.map +0 -1
- package/dist/lib/components/panel/footer/ai/permission-picker.js +0 -63
- package/dist/lib/components/panel/footer/ai/use-chat-scroll.d.ts +0 -9
- package/dist/lib/components/panel/footer/ai/use-chat-scroll.d.ts.map +0 -1
- package/dist/lib/components/panel/footer/ai/use-chat-scroll.js +0 -57
- package/dist/lib/components/panel/footer/preferences/data.d.ts +0 -14
- package/dist/lib/components/panel/footer/preferences/data.d.ts.map +0 -1
- package/dist/lib/components/panel/footer/preferences/data.js +0 -304
- package/dist/lib/components/panel/footer/preferences/modal.d.ts +0 -8
- package/dist/lib/components/panel/footer/preferences/modal.d.ts.map +0 -1
- package/dist/lib/components/panel/footer/preferences/modal.js +0 -75
- package/dist/lib/components/panel/footer/preferences/sidebar.d.ts +0 -9
- package/dist/lib/components/panel/footer/preferences/sidebar.d.ts.map +0 -1
- package/dist/lib/components/panel/footer/preferences/sidebar.js +0 -105
- package/dist/lib/components/panel/footer/preferences/user-settings/account/index.d.ts +0 -3
- package/dist/lib/components/panel/footer/preferences/user-settings/account/index.d.ts.map +0 -1
- package/dist/lib/components/panel/footer/preferences/user-settings/account/index.js +0 -16
- package/dist/lib/components/panel/footer/preferences/user-settings/content-social/index.d.ts +0 -3
- package/dist/lib/components/panel/footer/preferences/user-settings/content-social/index.d.ts.map +0 -1
- package/dist/lib/components/panel/footer/preferences/user-settings/content-social/index.js +0 -16
- package/dist/lib/components/panel/footer/preferences/user-settings/data-privacy/index.d.ts +0 -3
- package/dist/lib/components/panel/footer/preferences/user-settings/data-privacy/index.d.ts.map +0 -1
- package/dist/lib/components/panel/footer/preferences/user-settings/data-privacy/index.js +0 -101
- package/dist/lib/components/panel/footer/preferences/user-settings/family-center/index.d.ts +0 -3
- package/dist/lib/components/panel/footer/preferences/user-settings/family-center/index.d.ts.map +0 -1
- package/dist/lib/components/panel/footer/preferences/user-settings/family-center/index.js +0 -24
- package/dist/lib/components/panel/footer/preferences/user-settings/profiles/index.d.ts +0 -3
- package/dist/lib/components/panel/footer/preferences/user-settings/profiles/index.d.ts.map +0 -1
- package/dist/lib/components/panel/footer/preferences/user-settings/profiles/index.js +0 -103
- package/dist/lib/components/panel/footer/tabs.d.ts +0 -12
- package/dist/lib/components/panel/footer/tabs.d.ts.map +0 -1
- package/dist/lib/components/panel/footer/tabs.js +0 -23
|
@@ -1,10 +1,14 @@
|
|
|
1
1
|
import { ACCOUNT_BUBBLE_MEDIA_QUERY, APPLICATION_MENU_SHEET_MEDIA_QUERY } from "../responsive.js";
|
|
2
|
+
import { useOptionalWorkspace } from "../../../workspace/index.js";
|
|
3
|
+
import { WorkspaceActionDialog } from "../../../workspace/action-dialog.js";
|
|
4
|
+
import { CreateWorkspaceDialog } from "../../../workspace/create-dialog.js";
|
|
5
|
+
import { WorkspaceSheetItems, WorkspaceSheetTrigger, renderWorkspaceMenuSection } from "../../../workspace/menu.js";
|
|
2
6
|
import { MenuSheet } from "../../menu/sheet.js";
|
|
3
7
|
import { DEFAULT_STATUS_OPTION, STATUS_OPTIONS, STATUS_TIMING_OPTIONS, SUGGESTED_STATUS_OPTIONS, isColorStatus } from "./data.js";
|
|
4
8
|
import { useState } from "react";
|
|
5
9
|
import { Avatar, Badge, Button, Dropdown, Separator, Tooltip, useMediaQuery } from "@vezham/react-v3";
|
|
6
10
|
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
7
|
-
import { AltArrowLeft, AltArrowRight, Bell, CheckRead, Logout2, Settings, VezhamTamizhi } from "@vezham/icons-react";
|
|
11
|
+
import { AltArrowLeft, AltArrowRight, Bell, CheckRead, Logout2, Settings, VezhamAccounts, VezhamTamizhi } from "@vezham/icons-react";
|
|
8
12
|
//#region src/lib/components/panel/footer/user-menu.tsx
|
|
9
13
|
var StatusVisual = ({ status }) => {
|
|
10
14
|
if (isColorStatus(status.id)) return /* @__PURE__ */ jsx("span", { className: `h-2 w-2 rounded-full ${status.color ?? ""}` });
|
|
@@ -111,7 +115,10 @@ var AccountIdentity = ({ user, currentStatus }) => /* @__PURE__ */ jsxs("div", {
|
|
|
111
115
|
alt: user.name
|
|
112
116
|
}) : null, /* @__PURE__ */ jsx(Avatar.Fallback, {
|
|
113
117
|
className: "text-xl",
|
|
114
|
-
children: user.name?.[0]
|
|
118
|
+
children: user.id ? user.name?.[0] : /* @__PURE__ */ jsx(VezhamAccounts, {
|
|
119
|
+
size: 36,
|
|
120
|
+
"aria-hidden": "true"
|
|
121
|
+
})
|
|
115
122
|
})]
|
|
116
123
|
}), /* @__PURE__ */ jsx(Badge, {
|
|
117
124
|
placement: "bottom-right",
|
|
@@ -161,7 +168,7 @@ var AccountSectionItems = ({ section, onBack }) => /* @__PURE__ */ jsxs("div", {
|
|
|
161
168
|
]
|
|
162
169
|
}, option.id))]
|
|
163
170
|
});
|
|
164
|
-
var AccountSheetContent = ({ user, currentStatus, actions, sections, onSection, onPreferences, onLogout }) => /* @__PURE__ */ jsxs("div", {
|
|
171
|
+
var AccountSheetContent = ({ workspaceItems, guest, user, currentStatus, actions, sections, onSection, onPreferences, onLogout }) => /* @__PURE__ */ jsxs("div", {
|
|
165
172
|
className: "flex flex-col items-center gap-5 py-2",
|
|
166
173
|
children: [
|
|
167
174
|
/* @__PURE__ */ jsx(AccountIdentity, {
|
|
@@ -169,6 +176,7 @@ var AccountSheetContent = ({ user, currentStatus, actions, sections, onSection,
|
|
|
169
176
|
currentStatus
|
|
170
177
|
}),
|
|
171
178
|
/* @__PURE__ */ jsx(AccountActions, { actions }),
|
|
179
|
+
workspaceItems,
|
|
172
180
|
/* @__PURE__ */ jsx(Separator, { className: "self-stretch" }),
|
|
173
181
|
/* @__PURE__ */ jsxs("div", {
|
|
174
182
|
className: "flex w-full flex-col gap-1 p-2",
|
|
@@ -195,7 +203,7 @@ var AccountSheetContent = ({ user, currentStatus, actions, sections, onSection,
|
|
|
195
203
|
"aria-hidden": "true"
|
|
196
204
|
}), "Preferences"]
|
|
197
205
|
}),
|
|
198
|
-
/* @__PURE__ */ jsxs(Button, {
|
|
206
|
+
!guest && /* @__PURE__ */ jsxs(Button, {
|
|
199
207
|
variant: "ghost",
|
|
200
208
|
className: "text-danger h-auto min-h-11 w-full justify-start gap-3 px-3 py-2 text-start",
|
|
201
209
|
onPress: onLogout,
|
|
@@ -208,17 +216,20 @@ var AccountSheetContent = ({ user, currentStatus, actions, sections, onSection,
|
|
|
208
216
|
})
|
|
209
217
|
]
|
|
210
218
|
});
|
|
211
|
-
var AccountDropdownContent = ({ user, currentStatus, sections, onProfile, onPreferences, onLogout }) => /* @__PURE__ */ jsxs(Fragment$1, { children: [
|
|
219
|
+
var AccountDropdownContent = ({ workspaceItems, guest, user, currentStatus, sections, onProfile, onPreferences, onLogout }) => /* @__PURE__ */ jsxs(Fragment$1, { children: [
|
|
212
220
|
/* @__PURE__ */ jsxs("button", {
|
|
213
221
|
type: "button",
|
|
214
|
-
className: "hover:bg-default
|
|
222
|
+
className: "hover:bg-default flex w-full items-center gap-3 rounded-lg px-3 py-2 text-left",
|
|
215
223
|
onClick: onProfile,
|
|
216
224
|
children: [/* @__PURE__ */ jsxs(Avatar, {
|
|
217
225
|
size: "sm",
|
|
218
226
|
children: [user.avatar ? /* @__PURE__ */ jsx(Avatar.Image, {
|
|
219
227
|
src: user.avatar,
|
|
220
228
|
alt: user.name
|
|
221
|
-
}) : null, /* @__PURE__ */ jsx(Avatar.Fallback, { children: user.name?.[0]
|
|
229
|
+
}) : null, /* @__PURE__ */ jsx(Avatar.Fallback, { children: user.id ? user.name?.[0] : /* @__PURE__ */ jsx(VezhamAccounts, {
|
|
230
|
+
size: 20,
|
|
231
|
+
"aria-hidden": "true"
|
|
232
|
+
}) })]
|
|
222
233
|
}), /* @__PURE__ */ jsxs("span", { children: [/* @__PURE__ */ jsx("span", {
|
|
223
234
|
className: "block font-medium",
|
|
224
235
|
children: user.name
|
|
@@ -260,6 +271,7 @@ var AccountDropdownContent = ({ user, currentStatus, sections, onProfile, onPref
|
|
|
260
271
|
}, option.id))
|
|
261
272
|
})
|
|
262
273
|
})] }, item.id)),
|
|
274
|
+
workspaceItems,
|
|
263
275
|
/* @__PURE__ */ jsx(Separator, {}),
|
|
264
276
|
/* @__PURE__ */ jsxs(Dropdown.Item, {
|
|
265
277
|
id: "preferences",
|
|
@@ -269,7 +281,7 @@ var AccountDropdownContent = ({ user, currentStatus, sections, onProfile, onPref
|
|
|
269
281
|
"aria-hidden": "true"
|
|
270
282
|
}), "Preferences"]
|
|
271
283
|
}),
|
|
272
|
-
/* @__PURE__ */ jsxs(Dropdown.Item, {
|
|
284
|
+
!guest && /* @__PURE__ */ jsxs(Dropdown.Item, {
|
|
273
285
|
id: "logout",
|
|
274
286
|
variant: "danger",
|
|
275
287
|
onAction: onLogout,
|
|
@@ -282,10 +294,9 @@ var AccountDropdownContent = ({ user, currentStatus, sections, onProfile, onPref
|
|
|
282
294
|
})
|
|
283
295
|
] });
|
|
284
296
|
var UserMenuTrigger = ({ small, bubble, user, currentStatus, tooltipText, onPress }) => {
|
|
285
|
-
const Trigger = small ? Button : Dropdown.Trigger;
|
|
286
297
|
return /* @__PURE__ */ jsxs(Tooltip, {
|
|
287
298
|
delay: 0,
|
|
288
|
-
children: [/* @__PURE__ */ jsx(
|
|
299
|
+
children: [/* @__PURE__ */ jsx(small ? Button : Dropdown.Trigger, {
|
|
289
300
|
onPress: small ? onPress : void 0,
|
|
290
301
|
"aria-label": `Open ${user.name || "user"} menu`,
|
|
291
302
|
className: `button button--ghost relative flex h-12 w-12 items-center justify-center ${bubble ? "rounded-full" : "rounded-xl"}`,
|
|
@@ -295,35 +306,24 @@ var UserMenuTrigger = ({ small, bubble, user, currentStatus, tooltipText, onPres
|
|
|
295
306
|
children: [user.avatar ? /* @__PURE__ */ jsx(Avatar.Image, {
|
|
296
307
|
src: user.avatar,
|
|
297
308
|
alt: user.name
|
|
298
|
-
}) : null, /* @__PURE__ */ jsx(Avatar.Fallback, { children: user.name?.[0]
|
|
309
|
+
}) : null, /* @__PURE__ */ jsx(Avatar.Fallback, { children: user.id ? user.name?.[0] : /* @__PURE__ */ jsx(VezhamAccounts, {
|
|
310
|
+
size: 20,
|
|
311
|
+
"aria-hidden": "true"
|
|
312
|
+
}) })]
|
|
299
313
|
}), /* @__PURE__ */ jsx(Badge, {
|
|
300
314
|
placement: "bottom-right",
|
|
301
315
|
size: "sm",
|
|
302
316
|
className: "border-background flex items-center justify-center border",
|
|
303
317
|
children: /* @__PURE__ */ jsx(StatusVisual, { status: currentStatus })
|
|
304
318
|
})] })
|
|
305
|
-
})
|
|
319
|
+
}), /* @__PURE__ */ jsx(Tooltip.Content, {
|
|
306
320
|
placement: bubble ? "bottom" : "right",
|
|
307
321
|
children: tooltipText
|
|
308
322
|
})]
|
|
309
323
|
});
|
|
310
324
|
};
|
|
311
|
-
var
|
|
312
|
-
|
|
313
|
-
const bubble = useMediaQuery(ACCOUNT_BUBBLE_MEDIA_QUERY, { initializeWithValue: false });
|
|
314
|
-
const [open, setOpen] = useState(false);
|
|
315
|
-
const [section, setSection] = useState(null);
|
|
316
|
-
const { currentStatus, tooltipText, accountSections } = useAccountSections(user);
|
|
317
|
-
const activeSection = accountSections.find((item) => item.id === section);
|
|
318
|
-
const changeOpen = (value) => {
|
|
319
|
-
setOpen(value);
|
|
320
|
-
if (!value) setSection(null);
|
|
321
|
-
};
|
|
322
|
-
const closeAndRun = (action) => {
|
|
323
|
-
setOpen(false);
|
|
324
|
-
action?.();
|
|
325
|
-
};
|
|
326
|
-
const compactActions = [
|
|
325
|
+
var getCompactActions = ({ showControlCenter, showNotifications, notificationCount = 0, showAI, onControlCenter, onNotifications, onTamizhi }) => {
|
|
326
|
+
return [
|
|
327
327
|
showControlCenter ? {
|
|
328
328
|
label: "Control center",
|
|
329
329
|
icon: /* @__PURE__ */ jsx(Settings, {
|
|
@@ -350,51 +350,119 @@ var UserMenu = ({ user, onLogout, onProfile, onPreferences, showAI = false, show
|
|
|
350
350
|
size: 24,
|
|
351
351
|
"aria-hidden": "true"
|
|
352
352
|
}),
|
|
353
|
-
onPress:
|
|
353
|
+
onPress: onTamizhi
|
|
354
354
|
} : null
|
|
355
355
|
].filter((action) => action !== null);
|
|
356
|
+
};
|
|
357
|
+
var UserMenu = ({ user, onLogout, onProfile, onPreferences, showAI = false, showControlCenter = false, showNotifications = false, notificationCount = 0, onTamizhi, onControlCenter, onNotifications }) => {
|
|
358
|
+
const small = useMediaQuery(APPLICATION_MENU_SHEET_MEDIA_QUERY, { initializeWithValue: false });
|
|
359
|
+
const bubble = useMediaQuery(ACCOUNT_BUBBLE_MEDIA_QUERY, { initializeWithValue: false });
|
|
360
|
+
const workspace = useOptionalWorkspace();
|
|
361
|
+
const guest = !user.id;
|
|
362
|
+
const accountUser = guest ? {
|
|
363
|
+
...user,
|
|
364
|
+
name: "Guest"
|
|
365
|
+
} : user;
|
|
366
|
+
const [workspaceAction, setWorkspaceAction] = useState(null);
|
|
367
|
+
const [isCreating, setIsCreating] = useState(false);
|
|
368
|
+
const [open, setOpen] = useState(false);
|
|
369
|
+
const [section, setSection] = useState(null);
|
|
370
|
+
const { currentStatus, tooltipText, accountSections } = useAccountSections(accountUser);
|
|
371
|
+
const activeSection = accountSections.find((item) => item.id === section);
|
|
372
|
+
const changeOpen = (value) => {
|
|
373
|
+
setOpen(value);
|
|
374
|
+
if (!value) setSection(null);
|
|
375
|
+
};
|
|
376
|
+
const closeAndRun = (action) => {
|
|
377
|
+
setOpen(false);
|
|
378
|
+
action?.();
|
|
379
|
+
};
|
|
380
|
+
const compactActions = getCompactActions({
|
|
381
|
+
showControlCenter,
|
|
382
|
+
showNotifications,
|
|
383
|
+
notificationCount,
|
|
384
|
+
showAI,
|
|
385
|
+
onControlCenter,
|
|
386
|
+
onNotifications,
|
|
387
|
+
onTamizhi
|
|
388
|
+
});
|
|
389
|
+
const workspaceActions = workspace ? {
|
|
390
|
+
workspace,
|
|
391
|
+
onAction: (action) => {
|
|
392
|
+
changeOpen(false);
|
|
393
|
+
setWorkspaceAction(action);
|
|
394
|
+
},
|
|
395
|
+
select: (id) => {
|
|
396
|
+
workspace.select(id);
|
|
397
|
+
changeOpen(false);
|
|
398
|
+
},
|
|
399
|
+
create: () => {
|
|
400
|
+
changeOpen(false);
|
|
401
|
+
setIsCreating(true);
|
|
402
|
+
}
|
|
403
|
+
} : null;
|
|
356
404
|
const trigger = /* @__PURE__ */ jsx(UserMenuTrigger, {
|
|
357
405
|
small,
|
|
358
406
|
bubble,
|
|
359
|
-
user,
|
|
407
|
+
user: accountUser,
|
|
360
408
|
currentStatus,
|
|
361
409
|
tooltipText,
|
|
362
410
|
onPress: () => setOpen(true)
|
|
363
411
|
});
|
|
364
|
-
return
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
onOpenChange: changeOpen,
|
|
384
|
-
children: [trigger, /* @__PURE__ */ jsx(Dropdown.Popover, {
|
|
385
|
-
placement: bubble ? "bottom end" : "right",
|
|
386
|
-
offset: 8,
|
|
387
|
-
className: "w-72 max-w-[calc(100vw-2rem)]",
|
|
388
|
-
children: /* @__PURE__ */ jsx(AccountDropdownContent, {
|
|
389
|
-
user,
|
|
412
|
+
return /* @__PURE__ */ jsxs(Fragment$1, { children: [
|
|
413
|
+
small ? /* @__PURE__ */ jsxs(Fragment$1, { children: [trigger, /* @__PURE__ */ jsx(MenuSheet, {
|
|
414
|
+
title: "Account",
|
|
415
|
+
hideTitle: true,
|
|
416
|
+
isOpen: open,
|
|
417
|
+
onOpenChange: changeOpen,
|
|
418
|
+
children: section === "workspaces" && workspaceActions ? /* @__PURE__ */ jsx(WorkspaceSheetItems, {
|
|
419
|
+
...workspaceActions,
|
|
420
|
+
onBack: () => setSection(null)
|
|
421
|
+
}) : activeSection ? /* @__PURE__ */ jsx(AccountSectionItems, {
|
|
422
|
+
section: activeSection,
|
|
423
|
+
onBack: () => setSection(null)
|
|
424
|
+
}) : /* @__PURE__ */ jsx(AccountSheetContent, {
|
|
425
|
+
workspaceItems: workspaceActions && /* @__PURE__ */ jsx(WorkspaceSheetTrigger, {
|
|
426
|
+
name: workspaceActions.workspace.active.name,
|
|
427
|
+
onPress: () => setSection("workspaces")
|
|
428
|
+
}),
|
|
429
|
+
guest,
|
|
430
|
+
user: accountUser,
|
|
390
431
|
currentStatus,
|
|
432
|
+
actions: compactActions,
|
|
391
433
|
sections: accountSections,
|
|
392
|
-
|
|
434
|
+
onSection: setSection,
|
|
393
435
|
onPreferences: () => closeAndRun(onPreferences),
|
|
394
436
|
onLogout: () => closeAndRun(onLogout)
|
|
395
437
|
})
|
|
396
|
-
})]
|
|
397
|
-
|
|
438
|
+
})] }) : /* @__PURE__ */ jsxs(Dropdown, {
|
|
439
|
+
isOpen: open,
|
|
440
|
+
onOpenChange: changeOpen,
|
|
441
|
+
children: [trigger, /* @__PURE__ */ jsx(Dropdown.Popover, {
|
|
442
|
+
placement: bubble ? "bottom end" : "right",
|
|
443
|
+
offset: 8,
|
|
444
|
+
className: "max-h-[80vh] w-72 max-w-[calc(100vw-2rem)] overflow-y-auto",
|
|
445
|
+
children: /* @__PURE__ */ jsx(AccountDropdownContent, {
|
|
446
|
+
workspaceItems: workspaceActions && renderWorkspaceMenuSection(workspaceActions),
|
|
447
|
+
guest,
|
|
448
|
+
user: accountUser,
|
|
449
|
+
currentStatus,
|
|
450
|
+
sections: accountSections,
|
|
451
|
+
onProfile: () => closeAndRun(onProfile),
|
|
452
|
+
onPreferences: () => closeAndRun(onPreferences),
|
|
453
|
+
onLogout: () => closeAndRun(onLogout)
|
|
454
|
+
})
|
|
455
|
+
})]
|
|
456
|
+
}),
|
|
457
|
+
workspaceAction && /* @__PURE__ */ jsx(WorkspaceActionDialog, {
|
|
458
|
+
action: workspaceAction,
|
|
459
|
+
onClose: () => setWorkspaceAction(null)
|
|
460
|
+
}, `${workspaceAction.type}:${workspaceAction.id}`),
|
|
461
|
+
workspace && /* @__PURE__ */ jsx(CreateWorkspaceDialog, {
|
|
462
|
+
isOpen: isCreating,
|
|
463
|
+
onOpenChange: setIsCreating
|
|
464
|
+
})
|
|
465
|
+
] });
|
|
398
466
|
};
|
|
399
467
|
//#endregion
|
|
400
468
|
export { UserMenu };
|
|
@@ -23,13 +23,13 @@ var tva = tv({
|
|
|
23
23
|
default: {
|
|
24
24
|
item: "data-[focus-visible]:ring-focus",
|
|
25
25
|
itemDropTarget: "ring-accent",
|
|
26
|
-
backgroundFallback: "from-
|
|
26
|
+
backgroundFallback: "from-surface-secondary to-surface-tertiary",
|
|
27
27
|
avatarFallback: "bg-transparent"
|
|
28
28
|
},
|
|
29
29
|
subtle: {
|
|
30
30
|
item: "bg-default/30 data-[focus-visible]:ring-focus",
|
|
31
31
|
itemDropTarget: "ring-accent",
|
|
32
|
-
backgroundFallback: "from-
|
|
32
|
+
backgroundFallback: "from-surface-secondary to-surface-tertiary",
|
|
33
33
|
avatarFallback: "bg-transparent"
|
|
34
34
|
},
|
|
35
35
|
glass: {
|
|
@@ -62,7 +62,7 @@ var FolderModal = ({ open, mode, form, onFormChange, onOpenChange, onSave }) =>
|
|
|
62
62
|
children: "Name:"
|
|
63
63
|
}), /* @__PURE__ */ jsx(Input, {
|
|
64
64
|
value: form.name,
|
|
65
|
-
className: "border-
|
|
65
|
+
className: "border-border focus:border-accent focus:ring-accent/25 h-12 w-full rounded-xl border bg-white px-4 text-base outline-none focus:ring-4",
|
|
66
66
|
onChange: (event) => updateForm({ name: event.target.value })
|
|
67
67
|
})]
|
|
68
68
|
}),
|
|
@@ -79,7 +79,7 @@ var FolderModal = ({ open, mode, form, onFormChange, onOpenChange, onSave }) =>
|
|
|
79
79
|
children: folderColors.map((color) => /* @__PURE__ */ jsx("button", {
|
|
80
80
|
type: "button",
|
|
81
81
|
"aria-label": `Use ${color} folder color`,
|
|
82
|
-
className: "ring-
|
|
82
|
+
className: "ring-accent/70 flex h-8 w-8 items-center justify-center rounded-full border border-black/10 shadow-sm transition-transform outline-none hover:scale-105 focus-visible:ring-2",
|
|
83
83
|
style: { backgroundColor: color },
|
|
84
84
|
onClick: () => updateForm({ color }),
|
|
85
85
|
children: form.color === color && /* @__PURE__ */ jsx("span", { className: "h-2.5 w-2.5 rounded-full bg-white shadow" })
|
|
@@ -128,7 +128,7 @@ var FolderModal = ({ open, mode, form, onFormChange, onOpenChange, onSave }) =>
|
|
|
128
128
|
}), /* @__PURE__ */ jsxs(Popover, { children: [/* @__PURE__ */ jsx(Popover.Trigger, { children: /* @__PURE__ */ jsx("button", {
|
|
129
129
|
type: "button",
|
|
130
130
|
"aria-label": "Choose icon",
|
|
131
|
-
className: "focus-visible:ring-
|
|
131
|
+
className: "focus-visible:ring-accent rounded-full outline-none focus-visible:ring-2",
|
|
132
132
|
children: /* @__PURE__ */ jsx(FolderVisualPreview, {
|
|
133
133
|
color: form.visualType === "icon" ? form.color : "#e4e4e7",
|
|
134
134
|
visualType: "icon",
|
|
@@ -144,7 +144,7 @@ var FolderModal = ({ open, mode, form, onFormChange, onOpenChange, onSave }) =>
|
|
|
144
144
|
children: folderIconOptions.map((icon) => /* @__PURE__ */ jsx("button", {
|
|
145
145
|
type: "button",
|
|
146
146
|
"aria-label": `Use ${icon} icon`,
|
|
147
|
-
className: "bg-default-
|
|
147
|
+
className: "bg-default-hover text-foreground ring-accent hover:bg-surface-tertiary flex h-10 w-10 items-center justify-center rounded-full transition outline-none focus-visible:ring-2",
|
|
148
148
|
"data-selected": form.visualType === "icon" && form.icon === icon ? "true" : void 0,
|
|
149
149
|
onClick: () => updateForm({
|
|
150
150
|
visualType: "icon",
|
|
@@ -182,7 +182,7 @@ var FolderModal = ({ open, mode, form, onFormChange, onOpenChange, onSave }) =>
|
|
|
182
182
|
]
|
|
183
183
|
}),
|
|
184
184
|
/* @__PURE__ */ jsxs("div", {
|
|
185
|
-
className: "border-
|
|
185
|
+
className: "border-border flex items-center gap-3 border-t pt-5",
|
|
186
186
|
children: [/* @__PURE__ */ jsx(FolderVisualPreview, {
|
|
187
187
|
color: form.color,
|
|
188
188
|
visualType: form.visualType,
|
|
@@ -197,7 +197,7 @@ var FolderModal = ({ open, mode, form, onFormChange, onOpenChange, onSave }) =>
|
|
|
197
197
|
]
|
|
198
198
|
}),
|
|
199
199
|
/* @__PURE__ */ jsxs(Modal.Footer, {
|
|
200
|
-
className: "border-
|
|
200
|
+
className: "border-border flex justify-end gap-3 border-t px-8 py-5",
|
|
201
201
|
children: [/* @__PURE__ */ jsx(Button, {
|
|
202
202
|
variant: "secondary",
|
|
203
203
|
className: "min-w-24 rounded-xl",
|
|
@@ -183,7 +183,7 @@ var BookmarksContent = forwardRef((props, ref) => {
|
|
|
183
183
|
children: [/* @__PURE__ */ jsxs("div", {
|
|
184
184
|
...getSectionHeaderProps(),
|
|
185
185
|
children: [/* @__PURE__ */ jsx(Bookmark, {
|
|
186
|
-
...getSectionIconProps("text-
|
|
186
|
+
...getSectionIconProps("text-accent"),
|
|
187
187
|
weight: "filled",
|
|
188
188
|
"aria-hidden": "true"
|
|
189
189
|
}), /* @__PURE__ */ jsx(Typography.Heading, { ...getSectionTitleProps("Bookmarks") })]
|
|
@@ -19,7 +19,7 @@ var QuickAccess = ({ mode, favorites, onUnpin, onFavoriteRemove, onFavoritesReor
|
|
|
19
19
|
"aria-label": "Back to bookmarks",
|
|
20
20
|
size: "sm",
|
|
21
21
|
variant: "ghost",
|
|
22
|
-
className: "text-
|
|
22
|
+
className: "text-muted shrink-0",
|
|
23
23
|
onPress: onBackToNormalView,
|
|
24
24
|
children: /* @__PURE__ */ jsx(ArrowLeft, {
|
|
25
25
|
size: 16,
|
|
@@ -52,7 +52,7 @@ var QuickAccess = ({ mode, favorites, onUnpin, onFavoriteRemove, onFavoritesReor
|
|
|
52
52
|
src: item.backgroundImage,
|
|
53
53
|
alt: item.name
|
|
54
54
|
}) : null, /* @__PURE__ */ jsx(Avatar.Fallback, {
|
|
55
|
-
className: "bg-default
|
|
55
|
+
className: "bg-default text-default-foreground",
|
|
56
56
|
children: /* @__PURE__ */ jsx(Pin, {
|
|
57
57
|
className: "text-warning",
|
|
58
58
|
size: "1em",
|
|
@@ -137,21 +137,21 @@ var QuickAccess = ({ mode, favorites, onUnpin, onFavoriteRemove, onFavoritesReor
|
|
|
137
137
|
]
|
|
138
138
|
}, item.id)), hasMorePins && /* @__PURE__ */ jsx("button", {
|
|
139
139
|
onClick: onViewAllPins,
|
|
140
|
-
className: "group bg-default
|
|
140
|
+
className: "group bg-default hover:bg-default-hover relative flex aspect-square w-[120px] shrink-0 cursor-pointer flex-col items-center justify-center gap-2 rounded-2xl transition-[transform,background-color] hover:scale-[1.02] active:scale-[0.98]",
|
|
141
141
|
children: /* @__PURE__ */ jsxs("div", {
|
|
142
142
|
className: "flex flex-col items-center gap-2 p-4",
|
|
143
143
|
children: [/* @__PURE__ */ jsx(Eye, {
|
|
144
144
|
size: 32,
|
|
145
|
-
className: "text-
|
|
145
|
+
className: "text-accent",
|
|
146
146
|
weight: "filled",
|
|
147
147
|
"aria-hidden": "true"
|
|
148
148
|
}), /* @__PURE__ */ jsxs("div", {
|
|
149
149
|
className: "text-center",
|
|
150
150
|
children: [/* @__PURE__ */ jsx(Typography.Paragraph, {
|
|
151
|
-
className: "text-
|
|
151
|
+
className: "text-foreground text-sm font-semibold",
|
|
152
152
|
children: "View All"
|
|
153
153
|
}), /* @__PURE__ */ jsxs(Typography.Paragraph, {
|
|
154
|
-
className: "text-
|
|
154
|
+
className: "text-muted text-xs",
|
|
155
155
|
children: [pins.length - 6, " more"]
|
|
156
156
|
})]
|
|
157
157
|
})]
|
|
@@ -165,7 +165,7 @@ var QuickAccess = ({ mode, favorites, onUnpin, onFavoriteRemove, onFavoritesReor
|
|
|
165
165
|
children: [/* @__PURE__ */ jsxs("div", {
|
|
166
166
|
...getSectionHeaderProps(),
|
|
167
167
|
children: [/* @__PURE__ */ jsx(Heart, {
|
|
168
|
-
...getSectionIconProps("text-
|
|
168
|
+
...getSectionIconProps("text-accent"),
|
|
169
169
|
weight: "filled",
|
|
170
170
|
"aria-hidden": "true"
|
|
171
171
|
}), /* @__PURE__ */ jsx(Typography.Heading, { ...getSectionTitleProps("Favorites") })]
|
|
@@ -182,7 +182,7 @@ var QuickAccess = ({ mode, favorites, onUnpin, onFavoriteRemove, onFavoritesReor
|
|
|
182
182
|
children: [/* @__PURE__ */ jsxs("div", {
|
|
183
183
|
className: "flex flex-1 items-center gap-2",
|
|
184
184
|
children: [/* @__PURE__ */ jsx(Pin, {
|
|
185
|
-
...getSectionIconProps("text-
|
|
185
|
+
...getSectionIconProps("text-accent"),
|
|
186
186
|
weight: "filled",
|
|
187
187
|
"aria-hidden": "true"
|
|
188
188
|
}), /* @__PURE__ */ jsx(Typography.Heading, { ...getSectionTitleProps("Quick Access") })]
|
|
@@ -194,7 +194,7 @@ var QuickAccess = ({ mode, favorites, onUnpin, onFavoriteRemove, onFavoritesReor
|
|
|
194
194
|
size: "sm",
|
|
195
195
|
variant: "ghost",
|
|
196
196
|
onPress: onToggleScrollFavorites,
|
|
197
|
-
className: "text-
|
|
197
|
+
className: "text-muted",
|
|
198
198
|
children: isScrollFavoritesOpen ? /* @__PURE__ */ jsx(AltArrowUp, {
|
|
199
199
|
size: 18,
|
|
200
200
|
"aria-hidden": "true"
|
|
@@ -4,51 +4,51 @@ var tva = tv({
|
|
|
4
4
|
slots: {
|
|
5
5
|
search_container: "mt-6",
|
|
6
6
|
search_input: "w-full",
|
|
7
|
-
search_input_wrapper: "bg-default
|
|
8
|
-
search_icon: "text-
|
|
7
|
+
search_input_wrapper: "bg-default/50",
|
|
8
|
+
search_icon: "text-muted",
|
|
9
9
|
scroll_shadow: "h-full",
|
|
10
10
|
empty_container: "flex h-[60vh] flex-col items-center justify-center gap-4 text-center",
|
|
11
|
-
empty_icon: "text-
|
|
11
|
+
empty_icon: "text-muted",
|
|
12
12
|
empty_title: "text-xl font-semibold",
|
|
13
|
-
empty_description: "text-
|
|
13
|
+
empty_description: "text-muted max-w-[220px]",
|
|
14
14
|
content_container: "space-y-2 pb-6 @min-[24rem]/info-panel:space-y-6",
|
|
15
15
|
section: "",
|
|
16
16
|
section_header: "my-3 flex items-center gap-2",
|
|
17
17
|
section_icon: "",
|
|
18
|
-
section_title: "text-
|
|
18
|
+
section_title: "text-muted text-sm tracking-wider uppercase",
|
|
19
19
|
favorites_grid: "flex flex-wrap gap-3",
|
|
20
20
|
favorite_item: "group relative flex aspect-square w-[calc(30%-5px)] cursor-grab flex-col overflow-hidden rounded-2xl transition-transform hover:scale-[1.02] active:scale-[0.98] active:cursor-grabbing",
|
|
21
21
|
favorites_grid2: "flex flex-nowrap gap-3 overflow-x-auto pb-2",
|
|
22
22
|
favorite_item2: "group relative flex aspect-square w-[120px] shrink-0 cursor-grab flex-col overflow-hidden rounded-2xl transition-transform hover:scale-[1.02] active:scale-[0.98] active:cursor-grabbing",
|
|
23
23
|
favorite_background_image: "absolute inset-0 h-full w-full object-cover",
|
|
24
|
-
favorite_background_gradient: "from-
|
|
24
|
+
favorite_background_gradient: "from-surface-secondary to-surface-tertiary absolute inset-0 bg-gradient-to-br",
|
|
25
25
|
favorite_overlay: "absolute inset-0 bg-gradient-to-t from-black/70 via-black/20 to-transparent",
|
|
26
26
|
favorite_avatar_container: "absolute top-2 left-2",
|
|
27
27
|
favorite_avatar: "ring-2 ring-white/20",
|
|
28
28
|
favorite_avatar_icon: "text-warning",
|
|
29
|
-
favorite_avatar_fallback: "bg-default
|
|
29
|
+
favorite_avatar_fallback: "bg-default text-default-foreground",
|
|
30
30
|
favorite_content: "absolute right-0 bottom-0 left-0 p-2",
|
|
31
31
|
favorite_name: "line-clamp-2 text-xs leading-tight text-white",
|
|
32
32
|
bookmarks_list: "space-y-1",
|
|
33
|
-
bookmark_item: "hover:bg-default
|
|
33
|
+
bookmark_item: "hover:bg-default flex w-full cursor-grab items-center gap-3 rounded-lg py-2 transition-colors active:cursor-grabbing",
|
|
34
34
|
bookmark_avatar: "shrink-0",
|
|
35
|
-
bookmark_avatar_fallback: "bg-default
|
|
35
|
+
bookmark_avatar_fallback: "bg-default text-default-foreground",
|
|
36
36
|
bookmark_content: "flex-1 text-left",
|
|
37
37
|
bookmark_name: "text-sm text-black",
|
|
38
|
-
bookmark_url: "text-
|
|
39
|
-
bookmark_arrow: "text-
|
|
38
|
+
bookmark_url: "text-muted text-xs",
|
|
39
|
+
bookmark_arrow: "text-muted",
|
|
40
40
|
bookmark_delete_button: "opacity-0 group-hover:opacity-100",
|
|
41
41
|
file_tree: "[&_[data-slot=file-tree-drag-handle]:focus-visible]:outline-focus! [&_[data-slot=file-tree-item]:hover]:bg-default! [&_[data-slot=file-tree-item][data-drop-target]]:bg-accent-soft! [&_[data-slot=file-tree-item][data-drop-target]]:outline-accent/40! [&_.react-aria-DropIndicator[data-drop-target]]:bg-accent! max-h-[calc(100vh-96px)] w-full min-w-0 gap-0.5 p-0 [--file-tree-chevron-offset:0px]! [--file-tree-indent:1rem] [--file-tree-item-px:0rem] data-[empty]:block! data-[empty]:min-h-0! data-[empty]:py-0! data-[empty]:text-left! data-[empty]:not-italic! [&_.react-aria-DropIndicator[data-drop-target]]:h-0.5! [&_.react-aria-DropIndicator[data-drop-target]]:rounded-full! [&_.react-aria-DropIndicator[data-drop-target]]:outline-none! [&_[data-slot=file-tree-drag-handle]]:pointer-events-none! [&_[data-slot=file-tree-drag-handle]]:absolute! [&_[data-slot=file-tree-drag-handle]]:end-8! [&_[data-slot=file-tree-drag-handle]]:size-7! [&_[data-slot=file-tree-drag-handle]]:rounded-md! [&_[data-slot=file-tree-drag-handle]]:opacity-0! [&_[data-slot=file-tree-drag-handle]]:transition-none! [&_[data-slot=file-tree-drag-handle]_svg]:size-4! [&_[data-slot=file-tree-drag-handle]:focus-visible]:opacity-100! [&_[data-slot=file-tree-drag-handle]:focus-visible]:outline-2! [&_[data-slot=file-tree-drag-handle]:hover]:bg-transparent! [&_[data-slot=file-tree-drag-handle]:hover]:opacity-100! [&_[data-slot=file-tree-icon]]:h-4 [&_[data-slot=file-tree-icon]]:w-4 [&_[data-slot=file-tree-item-content]]:min-h-7 [&_[data-slot=file-tree-item-content]]:min-w-0 [&_[data-slot=file-tree-item-content]]:gap-2 [&_[data-slot=file-tree-item-content]]:rounded-md [&_[data-slot=file-tree-item-content]]:pe-1 [&_[data-slot=file-tree-item]]:ring-inset [&_[data-slot=file-tree-item]:has(:focus-visible)_[data-slot=file-tree-drag-handle]]:pointer-events-auto! [&_[data-slot=file-tree-item]:has(:focus-visible)_[data-slot=file-tree-drag-handle]]:opacity-60! [&_[data-slot=file-tree-item]:hover_[data-slot=file-tree-drag-handle]]:pointer-events-auto! [&_[data-slot=file-tree-item]:hover_[data-slot=file-tree-drag-handle]]:opacity-60! [&_[data-slot=file-tree-item][data-drop-target]]:outline-1! [&_[data-slot=file-tree-item][data-focus-visible]_[data-slot=file-tree-drag-handle]]:pointer-events-auto! [&_[data-slot=file-tree-item][data-focus-visible]_[data-slot=file-tree-drag-handle]]:opacity-60! [&_[data-slot=file-tree-label]]:flex [&_[data-slot=file-tree-label]]:min-w-0 [&_[data-slot=file-tree-label]]:flex-1 [&_[slot=chevron]]:cursor-pointer! [&_[slot=chevron]:hover]:bg-transparent! [@media(hover:none)]:[&_[data-slot=file-tree-drag-handle]]:pointer-events-auto! [@media(hover:none)]:[&_[data-slot=file-tree-drag-handle]]:opacity-60!",
|
|
42
42
|
bookmark_tree_empty_state: "w-full",
|
|
43
43
|
folder_section: "mt-6",
|
|
44
44
|
folder_accordion: "px-0",
|
|
45
|
-
folder_item: "border-
|
|
45
|
+
folder_item: "border-border border-b px-0",
|
|
46
46
|
folder_heading: "",
|
|
47
47
|
folder_trigger: "cursor-grab py-2 active:cursor-grabbing",
|
|
48
48
|
folder_trigger_content: "flex items-center gap-2",
|
|
49
49
|
folder_icon: "",
|
|
50
50
|
folder_name: "text-black",
|
|
51
|
-
folder_count: "text-
|
|
51
|
+
folder_count: "text-muted text-xs",
|
|
52
52
|
folder_indicator: "",
|
|
53
53
|
folder_panel: "",
|
|
54
54
|
folder_body: "space-y-1 px-0 pb-2"
|
|
@@ -56,19 +56,19 @@ var tva = tv({
|
|
|
56
56
|
variants: {
|
|
57
57
|
variant: {
|
|
58
58
|
default: {
|
|
59
|
-
search_input_wrapper: "bg-default
|
|
60
|
-
bookmark_item: "hover:bg-default
|
|
61
|
-
folder_item: "border-
|
|
59
|
+
search_input_wrapper: "bg-default/50",
|
|
60
|
+
bookmark_item: "hover:bg-default",
|
|
61
|
+
folder_item: "border-border"
|
|
62
62
|
},
|
|
63
63
|
dark: {
|
|
64
|
-
search_input_wrapper: "bg-default
|
|
65
|
-
bookmark_item: "hover:bg-default
|
|
66
|
-
folder_item: "border-
|
|
64
|
+
search_input_wrapper: "bg-default/50",
|
|
65
|
+
bookmark_item: "hover:bg-default",
|
|
66
|
+
folder_item: "border-border"
|
|
67
67
|
},
|
|
68
68
|
light: {
|
|
69
|
-
search_input_wrapper: "bg-default-
|
|
70
|
-
bookmark_item: "hover:bg-default-
|
|
71
|
-
folder_item: "border-
|
|
69
|
+
search_input_wrapper: "bg-default-soft/50",
|
|
70
|
+
bookmark_item: "hover:bg-default-soft",
|
|
71
|
+
folder_item: "border-border"
|
|
72
72
|
},
|
|
73
73
|
glass: {
|
|
74
74
|
search_input_wrapper: "bg-white/10",
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { useAppMenu } from "../../app-menu/index.js";
|
|
2
2
|
import { AppIcon } from "../../app-icon/index.js";
|
|
3
|
-
import { useCommand } from "../../command/index.js";
|
|
4
3
|
import "../responsive.js";
|
|
5
4
|
import { useInfoPanel } from "../info-panel/provider.js";
|
|
6
5
|
import { ShortcutKey, ShortcutTooltipLabel } from "../../shortcut-key/index.js";
|
|
@@ -8,11 +7,12 @@ import { ApplicationMenuSheet } from "./application-menu-sheet.js";
|
|
|
8
7
|
import { BookmarksTrigger } from "./bookmarks/index.js";
|
|
9
8
|
import { StorageTrigger } from "./storage/index.js";
|
|
10
9
|
import { useCallback, useState } from "react";
|
|
10
|
+
import { useCommand } from "@vezham/hooks";
|
|
11
11
|
import { Avatar, Button, Dropdown, Label, Separator, Surface, Tooltip, useMediaQuery } from "@vezham/react-v3";
|
|
12
12
|
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
13
13
|
import { AltArrowDown, Archive, Bookmark, Magnifier, SidebarMinimalistic } from "@vezham/icons-react";
|
|
14
14
|
//#region src/lib/components/panel/header/index.tsx
|
|
15
|
-
var Header = ({ users, showSearch = false, showBookamarks = false, showStorage = false, onAvatarClick, onSearchClick, isDockHidden = false, onToggleDock, isSidebarOpen = false, onToggleSidebar, extraActions, className, compact = false, hideSeparator = false, showMenuUtilities = true }) => {
|
|
15
|
+
var Header$1 = ({ users, showSearch = false, showBookamarks = false, showStorage = false, onAvatarClick, onSearchClick, isDockHidden = false, onToggleDock, isSidebarOpen = false, onToggleSidebar, extraActions, className, compact = false, hideSeparator = false, showMenuUtilities = true }) => {
|
|
16
16
|
const [open, setOpen] = useState(false);
|
|
17
17
|
const { openCommand } = useCommand();
|
|
18
18
|
const showHistoryNavigation = useMediaQuery("(max-width: 1023px)", { initializeWithValue: false });
|
|
@@ -363,4 +363,4 @@ var HeaderPanelMenuItems = ({ showBookamarks, showStorage, onClose }) => {
|
|
|
363
363
|
})] });
|
|
364
364
|
};
|
|
365
365
|
//#endregion
|
|
366
|
-
export { Header };
|
|
366
|
+
export { Header$1 as Header };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"provider.d.ts","sourceRoot":"","sources":["../../../../../src/lib/components/panel/info-panel/provider.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"provider.d.ts","sourceRoot":"","sources":["../../../../../src/lib/components/panel/info-panel/provider.tsx"],"names":[],"mappings":"AAKA,OAAO,EAAmB,qBAAqB,EAAE,MAAM,SAAS,CAAA;AAkChE,QAAA,MAAM,iBAAiB,GAAI,cAAc;IAAE,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAA;CAAE,gCA2ErE,CAAA;AAED,OAAO,EAAE,iBAAiB,EAAE,CAAA;AAE5B,eAAO,MAAM,YAAY,6BAQxB,CAAA"}
|