ultisuite-client/lib/drive/drive-dialog-styles.ts
R3D347HR4Y 6ec95262af Add OnlyOffice integration and update project configurations
- Updated .env.example to include configuration for OnlyOffice Document Server.
- Modified the workspace configuration to remove the drive-suite path.
- Adjusted TypeScript environment imports for consistency.
- Enhanced Next.js configuration to disable canvas in Webpack.
- Updated package.json to include new dependencies for OnlyOffice and PDF.js.
- Added global styles for OnlyOffice theme integration in the CSS.
- Created new layout and page components for the Drive feature, including public sharing and editing functionalities.
- Updated metadata handling across various layouts to reflect the new app structure.
2026-06-07 15:49:21 +02:00

61 lines
2.9 KiB
TypeScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

import { cn } from "@/lib/utils"
/** Google Drivestyle palette — dark grays instead of pure black. */
export const DRIVE_DIALOG_OVERLAY =
"bg-[#3c4043]/40 backdrop-blur-[2px] dark:bg-[#202124]/60"
export const DRIVE_DIALOG_CONTENT = cn(
"gap-0 overflow-hidden border-[#e8eaed] bg-white p-0 shadow-xl dark:border-[#5f6368]/30 dark:bg-[#292a2d]"
)
export const DRIVE_DIALOG_HEADER = cn(
"space-y-1 border-b border-[#e8eaed] px-6 py-5 text-left dark:border-[#5f6368]/30"
)
export const DRIVE_DIALOG_BODY = "px-6 py-5"
export const DRIVE_DIALOG_FOOTER = cn(
"flex-row justify-end gap-2 border-t border-[#e8eaed] bg-[#f8f9fa] px-6 py-4 dark:border-[#5f6368]/30 dark:bg-[#35363a]/50"
)
export const DRIVE_DIALOG_DIVIDER = "border-[#e8eaed] dark:border-[#5f6368]/30"
export const DRIVE_FIELD_CLASS =
"h-10 rounded-lg border border-[#dadce0] bg-[#f1f3f4] text-sm text-[#3c4043] shadow-none placeholder:text-[#80868b] focus-visible:border-[#1a73e8] focus-visible:ring-2 focus-visible:ring-[#1a73e8]/20 dark:border-[#5f6368]/40 dark:bg-[#35363a] dark:text-[#e8eaed] dark:placeholder:text-[#9aa0a6] dark:focus-visible:border-[#8ab4f8] dark:focus-visible:ring-[#8ab4f8]/25"
export const DRIVE_TEXTAREA_CLASS =
"min-h-[72px] resize-none rounded-lg border border-[#dadce0] bg-[#f1f3f4] text-sm text-[#3c4043] shadow-none placeholder:text-[#80868b] focus-visible:border-[#1a73e8] focus-visible:ring-2 focus-visible:ring-[#1a73e8]/20 dark:border-[#5f6368]/40 dark:bg-[#35363a] dark:text-[#e8eaed] dark:placeholder:text-[#9aa0a6] dark:focus-visible:border-[#8ab4f8] dark:focus-visible:ring-[#8ab4f8]/25"
export const DRIVE_LABEL_CLASS = "text-sm font-medium text-[#5f6368] dark:text-[#9aa0a6]"
export const DRIVE_TEXT_PRIMARY = "text-[#3c4043] dark:text-[#e8eaed]"
export const DRIVE_TEXT_SECONDARY = "text-[#5f6368] dark:text-[#9aa0a6]"
export const DRIVE_TEXT_TITLE = "text-[#202124] dark:text-[#e8eaed]"
export const DRIVE_PANEL_MUTED = cn(
"rounded-xl border border-[#e8eaed] bg-[#f8f9fa] dark:border-[#5f6368]/30 dark:bg-[#35363a]/70"
)
export const DRIVE_CARD_IDLE = cn(
"border-[#e8eaed] bg-[#f8f9fa] hover:bg-[#f1f3f4] dark:border-[#5f6368]/30 dark:bg-[#35363a]/50 dark:hover:bg-[#3c4043]/45"
)
export const DRIVE_CARD_ACTIVE = cn(
"border-[#1a73e8] bg-[#e8f0fe] ring-1 ring-[#1a73e8]/20 dark:border-[#8ab4f8]/60 dark:bg-[#1a377a]/35 dark:ring-[#8ab4f8]/20"
)
export const DRIVE_BTN_GHOST = cn(
DRIVE_TEXT_SECONDARY,
"hover:bg-[#e8eaed]/80 hover:text-[#3c4043] dark:hover:bg-[#3c4043]/50 dark:hover:text-[#e8eaed]"
)
export const DRIVE_BTN_PRIMARY =
"bg-[#1a73e8] text-white hover:bg-[#1765cc] dark:bg-[#8ab4f8] dark:text-[#202124] dark:hover:bg-[#aecbfa]"
export const DRIVE_SHEET_OVERLAY = "z-[100] bg-[#3c4043]/40 backdrop-blur-[2px] dark:bg-[#202124]/60"
export const DRIVE_SHEET_CONTENT = cn(
"z-[100] rounded-t-2xl border-t border-[#e8eaed] bg-white p-0 pb-[env(safe-area-inset-bottom)] dark:border-[#5f6368]/30 dark:bg-[#292a2d]"
)