@yuhuanowo/yunui 0.2.4 → 0.2.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/README.md +5 -1
- package/dist/ai.js +2 -2
- package/dist/ai.js.map +1 -1
- package/dist/{chunk-Y4EYPWKP.js → chunk-D2KGK2LY.js} +179 -15
- package/dist/chunk-D2KGK2LY.js.map +1 -0
- package/dist/index.d.ts +65 -7
- package/dist/index.js +1 -1
- package/dist/patterns.js +1 -1
- package/package.json +1 -1
- package/styles/yunui.css +67 -0
- package/dist/chunk-Y4EYPWKP.js.map +0 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as framer_motion from 'framer-motion';
|
|
2
2
|
import * as React$1 from 'react';
|
|
3
|
-
import { ReactNode } from 'react';
|
|
3
|
+
import { ReactNode, RefObject } from 'react';
|
|
4
4
|
import * as DialogPrimitive from '@radix-ui/react-dialog';
|
|
5
5
|
import * as TooltipPrimitive from '@radix-ui/react-tooltip';
|
|
6
6
|
import * as DropdownMenuPrimitive from '@radix-ui/react-dropdown-menu';
|
|
@@ -198,7 +198,8 @@ interface ComboboxProps {
|
|
|
198
198
|
/** Label template for the "create new" row; `{value}` is replaced with the typed text. */
|
|
199
199
|
creatableText?: string;
|
|
200
200
|
}
|
|
201
|
-
/** Searchable, optionally creatable combobox — type to filter, Enter to pick or create.
|
|
201
|
+
/** Searchable, optionally creatable combobox — type to filter, Enter to pick or create.
|
|
202
|
+
* For long lists where users type to narrow; see `Select`'s doc for "which select do I use". */
|
|
202
203
|
declare function Combobox({ options, value, onChange, placeholder, className, disabled, allowCustom, creatableText, }: ComboboxProps): React$1.JSX.Element;
|
|
203
204
|
|
|
204
205
|
/**
|
|
@@ -445,6 +446,36 @@ interface TextareaProps extends React$1.TextareaHTMLAttributes<HTMLTextAreaEleme
|
|
|
445
446
|
}
|
|
446
447
|
/** Multi-line text input with an inline error message. */
|
|
447
448
|
declare const Textarea: React$1.ForwardRefExoticComponent<TextareaProps & React$1.RefAttributes<HTMLTextAreaElement>>;
|
|
449
|
+
interface PasswordInputProps extends Omit<InputProps, "icon" | "type"> {
|
|
450
|
+
/** Accessible labels for the reveal toggle (English defaults). */
|
|
451
|
+
labels?: {
|
|
452
|
+
show?: string;
|
|
453
|
+
hide?: string;
|
|
454
|
+
};
|
|
455
|
+
}
|
|
456
|
+
/** Password field with a show/hide reveal toggle; same styling + error API as Input. */
|
|
457
|
+
declare const PasswordInput: React$1.ForwardRefExoticComponent<PasswordInputProps & React$1.RefAttributes<HTMLInputElement>>;
|
|
458
|
+
interface NumberInputProps extends Omit<React$1.InputHTMLAttributes<HTMLInputElement>, "onChange" | "value" | "type"> {
|
|
459
|
+
/** Current value (controlled). */
|
|
460
|
+
value?: number;
|
|
461
|
+
/** Called with the next clamped value. */
|
|
462
|
+
onChange?: (value: number) => void;
|
|
463
|
+
min?: number;
|
|
464
|
+
max?: number;
|
|
465
|
+
/** Increment/decrement step. @defaultValue 1 */
|
|
466
|
+
step?: number;
|
|
467
|
+
/** Error message shown below the field; also switches the border to a red error style. */
|
|
468
|
+
error?: string;
|
|
469
|
+
/** Accessible labels for the steppers (English defaults). */
|
|
470
|
+
labels?: {
|
|
471
|
+
increment?: string;
|
|
472
|
+
decrement?: string;
|
|
473
|
+
};
|
|
474
|
+
}
|
|
475
|
+
/** Numeric field with −/+ steppers, min/max clamping, and the Input error API. */
|
|
476
|
+
declare const NumberInput: React$1.ForwardRefExoticComponent<NumberInputProps & React$1.RefAttributes<HTMLInputElement>>;
|
|
477
|
+
/** Inline keyboard-key / shortcut display, e.g. `<Kbd>⌘</Kbd><Kbd>K</Kbd>`. */
|
|
478
|
+
declare function Kbd({ className, ...props }: React$1.HTMLAttributes<HTMLElement>): React$1.JSX.Element;
|
|
448
479
|
interface CardProps extends React$1.HTMLAttributes<HTMLDivElement> {
|
|
449
480
|
/** Add a hover lift (border + shadow transition). */
|
|
450
481
|
hover?: boolean;
|
|
@@ -457,7 +488,14 @@ interface BadgeProps extends React$1.HTMLAttributes<HTMLSpanElement> {
|
|
|
457
488
|
}
|
|
458
489
|
/** Small inline pill for status/labels, with semantic color variants. */
|
|
459
490
|
declare function Badge({ className, variant, ...props }: BadgeProps): React$1.JSX.Element;
|
|
460
|
-
/**
|
|
491
|
+
/**
|
|
492
|
+
* Radix Dialog root — controls open state for a modal dialog. Compose with Dialog* parts.
|
|
493
|
+
*
|
|
494
|
+
* The accessible default for dialogs (focus trap, escape, scroll lock, full ARIA).
|
|
495
|
+
* For the prop-driven styled modal use `Modal`; for confirmations use
|
|
496
|
+
* `ConfirmModal`/`DeleteConfirmModal`/`RegenerateConfirmModal` — see Modal's doc
|
|
497
|
+
* for the full "which dialog do I use" guidance.
|
|
498
|
+
*/
|
|
461
499
|
declare const Dialog: React$1.FC<DialogPrimitive.DialogProps>;
|
|
462
500
|
/** Element that opens the dialog when activated. */
|
|
463
501
|
declare const DialogTrigger: React$1.ForwardRefExoticComponent<DialogPrimitive.DialogTriggerProps & React$1.RefAttributes<HTMLButtonElement>>;
|
|
@@ -477,7 +515,19 @@ declare const DialogTitle: React$1.ForwardRefExoticComponent<Omit<DialogPrimitiv
|
|
|
477
515
|
declare const DialogDescription: React$1.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogDescriptionProps & React$1.RefAttributes<HTMLParagraphElement>, "ref"> & React$1.RefAttributes<HTMLParagraphElement>>;
|
|
478
516
|
/** Footer layout block (right-aligned action buttons) for the dialog. */
|
|
479
517
|
declare function DialogFooter({ className, ...props }: React$1.HTMLAttributes<HTMLDivElement>): React$1.JSX.Element;
|
|
480
|
-
/**
|
|
518
|
+
/**
|
|
519
|
+
* Radix Select root — a styled native-feeling single-select. Compose with Select* parts.
|
|
520
|
+
*
|
|
521
|
+
* Choosing a select (so you never have to guess):
|
|
522
|
+
* - `Select` (this, Radix): the accessible default for a fixed, smallish list of
|
|
523
|
+
* options authored as JSX (`<SelectItem>`). Best a11y/keyboard support.
|
|
524
|
+
* - `CustomSelect`: data-driven (`options` array) with optional search/icons —
|
|
525
|
+
* reach for it when options come from data or you need a searchable list.
|
|
526
|
+
* - `Combobox`: data-driven select with a filterable text input (type-ahead),
|
|
527
|
+
* for longer lists where the user types to narrow.
|
|
528
|
+
* - `SegmentedSelect`: a small inline segmented control (2-5 visible choices),
|
|
529
|
+
* not a dropdown.
|
|
530
|
+
*/
|
|
481
531
|
declare const Select: React$1.FC<SelectPrimitive.SelectProps>;
|
|
482
532
|
/** Renders the selected value (or placeholder) inside the trigger. */
|
|
483
533
|
declare const SelectValue: React$1.ForwardRefExoticComponent<SelectPrimitive.SelectValueProps & React$1.RefAttributes<HTMLSpanElement>>;
|
|
@@ -659,7 +709,8 @@ interface CustomSelectProps {
|
|
|
659
709
|
/** Disable interaction and dim the control. */
|
|
660
710
|
disabled?: boolean;
|
|
661
711
|
}
|
|
662
|
-
/** Custom dropdown select with optional search, icons, descriptions, and full keyboard support.
|
|
712
|
+
/** Custom dropdown select with optional search, icons, descriptions, and full keyboard support.
|
|
713
|
+
* Data-driven alternative to `Select`; see `Select`'s doc for "which select do I use". */
|
|
663
714
|
declare function CustomSelect({ options, value, onChange, placeholder, searchable, className, disabled, }: CustomSelectProps): React$1.JSX.Element;
|
|
664
715
|
|
|
665
716
|
interface SegmentedOption<T = string> {
|
|
@@ -683,7 +734,8 @@ interface SegmentedSelectProps<T = string> {
|
|
|
683
734
|
/** Disable interaction and dim the control. */
|
|
684
735
|
disabled?: boolean;
|
|
685
736
|
}
|
|
686
|
-
/** Inline segmented control — a row of buttons where one option is active at a time.
|
|
737
|
+
/** Inline segmented control — a row of buttons where one option is active at a time.
|
|
738
|
+
* For 2-5 always-visible choices (not a dropdown); see `Select`'s doc for "which select do I use". */
|
|
687
739
|
declare function SegmentedSelect<T = string>({ options, value, onChange, className, disabled, }: SegmentedSelectProps<T>): React$1.JSX.Element;
|
|
688
740
|
|
|
689
741
|
interface NavTab {
|
|
@@ -710,6 +762,10 @@ interface NavTabsProps {
|
|
|
710
762
|
* `::after`), which slides in + fades + grows exactly like the sidebar's
|
|
711
763
|
* per-item active bar, just rotated to the bottom edge and sitting inside the
|
|
712
764
|
* tab's floating hover box. Hovering raises that soft rounded box (懸浮框).
|
|
765
|
+
*
|
|
766
|
+
* `NavTabs` is a controlled nav bar (active key + onChange) — use it for page/
|
|
767
|
+
* section navigation. For tab panels that show/hide content, use `Tabs` (Radix,
|
|
768
|
+
* with `TabsList`/`TabsTrigger`/`TabsContent`).
|
|
713
769
|
*/
|
|
714
770
|
declare function NavTabs({ tabs, activeKey, onChange, className, ariaLabel }: NavTabsProps): React$1.JSX.Element;
|
|
715
771
|
|
|
@@ -835,6 +891,7 @@ declare const toast: {
|
|
|
835
891
|
*
|
|
836
892
|
* Used by modals, dialogs, and other overlays to close on Escape key.
|
|
837
893
|
*/
|
|
894
|
+
|
|
838
895
|
/**
|
|
839
896
|
* Hook that calls the callback when Escape key is pressed
|
|
840
897
|
*
|
|
@@ -867,6 +924,7 @@ declare function useBodyScrollLock(locked?: boolean): void;
|
|
|
867
924
|
* ```
|
|
868
925
|
*/
|
|
869
926
|
declare function useModalBehavior(isOpen: boolean, onClose: () => void): void;
|
|
927
|
+
declare function useFocusTrap(containerRef: RefObject<HTMLElement | null>, enabled?: boolean): void;
|
|
870
928
|
|
|
871
929
|
/**
|
|
872
930
|
* Runtime theming for YunUI's token system.
|
|
@@ -926,4 +984,4 @@ declare function readTheme(el?: HTMLElement | null): YunUITheme;
|
|
|
926
984
|
*/
|
|
927
985
|
declare function useYunUITheme(defaults?: YunUITheme): [YunUITheme, (patch: YunUITheme) => void];
|
|
928
986
|
|
|
929
|
-
export { Accordion, AccordionContent, AccordionItem, AccordionTrigger, AnimatedNumber, type AnimatedNumberProps, Avatar, AvatarFallback, AvatarImage, Badge, BentoCard, BentoGrid, Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, Button, Card, Checkbox, type CheckboxProps, Collapsible, CollapsibleContent, type CollapsibleContentProps, type CollapsibleProps, CollapsibleTrigger, type CollapsibleTriggerProps, Column, Combobox, type ComboboxOption, ConfirmModal, type ConfirmModalVariant, CustomSelect, DeleteConfirmModal, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, EmptyState, Flex, type FlexProps, Grid, type GridCount, type GridProps, IconButton, Input, Label, Marquee, Modal, MotionDiv, MotionSpan, type NavTab, NavTabs, PageLoader, Pagination, type PaginationProps, Popover, PopoverClose, PopoverContent, PopoverTrigger, Progress, RadioGroup, RadioGroupItem, RegenerateConfirmModal, Row, type SegmentedOption, SegmentedSelect, Select, SelectContent, SelectGroup, SelectItem, type SelectOption, SelectTrigger, SelectValue, Sheet, ShinyButton, Skeleton, Slider, type SpacingScale, Spinner, Stack, Switch, type SwitchProps, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, TableBody as Tbody, TableCell as Td, Textarea, TableFooter as Tfoot, TableHead as Th, TableHeader as Thead, ThemeToggle, Toaster, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, TableRow as Tr, YUNUI_PALETTES, type YunUIAccentSource, type YunUIColorScheme, type YunUIPalette, type YunUISolid, type YunUISurface, type YunUITheme, applyTheme, cn, fadeIn, readTheme, staggerContainer, staggerItem, toast, useBodyScrollLock, useEscapeKey, useModalBehavior, useYunUITheme };
|
|
987
|
+
export { Accordion, AccordionContent, AccordionItem, AccordionTrigger, AnimatedNumber, type AnimatedNumberProps, Avatar, AvatarFallback, AvatarImage, Badge, BentoCard, BentoGrid, Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, Button, Card, Checkbox, type CheckboxProps, Collapsible, CollapsibleContent, type CollapsibleContentProps, type CollapsibleProps, CollapsibleTrigger, type CollapsibleTriggerProps, Column, Combobox, type ComboboxOption, ConfirmModal, type ConfirmModalVariant, CustomSelect, DeleteConfirmModal, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, EmptyState, Flex, type FlexProps, Grid, type GridCount, type GridProps, IconButton, Input, Kbd, Label, Marquee, Modal, MotionDiv, MotionSpan, type NavTab, NavTabs, NumberInput, PageLoader, Pagination, type PaginationProps, PasswordInput, Popover, PopoverClose, PopoverContent, PopoverTrigger, Progress, RadioGroup, RadioGroupItem, RegenerateConfirmModal, Row, type SegmentedOption, SegmentedSelect, Select, SelectContent, SelectGroup, SelectItem, type SelectOption, SelectTrigger, SelectValue, Sheet, ShinyButton, Skeleton, Slider, type SpacingScale, Spinner, Stack, Switch, type SwitchProps, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, TableBody as Tbody, TableCell as Td, Textarea, TableFooter as Tfoot, TableHead as Th, TableHeader as Thead, ThemeToggle, Toaster, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, TableRow as Tr, YUNUI_PALETTES, type YunUIAccentSource, type YunUIColorScheme, type YunUIPalette, type YunUISolid, type YunUISurface, type YunUITheme, applyTheme, cn, fadeIn, readTheme, staggerContainer, staggerItem, toast, useBodyScrollLock, useEscapeKey, useFocusTrap, useModalBehavior, useYunUITheme };
|
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
export { Accordion, AccordionContent, AccordionItem, AccordionTrigger, AnimatedNumber, Avatar, AvatarFallback, AvatarImage, Badge, BentoCard, BentoGrid, Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, Button, Card, Checkbox, Collapsible, CollapsibleContent, CollapsibleTrigger, Column, Combobox, ConfirmModal, CustomSelect, DeleteConfirmModal, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, EmptyState, Flex, Grid, IconButton, Input, Label, Marquee, Modal, MotionDiv, MotionSpan, NavTabs, PageLoader, Pagination, Popover, PopoverClose, PopoverContent, PopoverTrigger, Progress, RadioGroup, RadioGroupItem, RegenerateConfirmModal, Row, SegmentedSelect, Select, SelectContent, SelectGroup, SelectItem, SelectTrigger, SelectValue, Sheet, ShinyButton, Skeleton, Slider, Spinner, Stack, Switch, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, TableBody as Tbody, TableCell as Td, Textarea, TableFooter as Tfoot, TableHead as Th, TableHeader as Thead, Toaster, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, TableRow as Tr, YUNUI_PALETTES, applyTheme, fadeIn, readTheme, staggerContainer, staggerItem, toast, useBodyScrollLock, useEscapeKey, useModalBehavior, useYunUITheme } from './chunk-
|
|
2
|
+
export { Accordion, AccordionContent, AccordionItem, AccordionTrigger, AnimatedNumber, Avatar, AvatarFallback, AvatarImage, Badge, BentoCard, BentoGrid, Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, Button, Card, Checkbox, Collapsible, CollapsibleContent, CollapsibleTrigger, Column, Combobox, ConfirmModal, CustomSelect, DeleteConfirmModal, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, EmptyState, Flex, Grid, IconButton, Input, Kbd, Label, Marquee, Modal, MotionDiv, MotionSpan, NavTabs, NumberInput, PageLoader, Pagination, PasswordInput, Popover, PopoverClose, PopoverContent, PopoverTrigger, Progress, RadioGroup, RadioGroupItem, RegenerateConfirmModal, Row, SegmentedSelect, Select, SelectContent, SelectGroup, SelectItem, SelectTrigger, SelectValue, Sheet, ShinyButton, Skeleton, Slider, Spinner, Stack, Switch, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, TableBody as Tbody, TableCell as Td, Textarea, TableFooter as Tfoot, TableHead as Th, TableHeader as Thead, Toaster, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, TableRow as Tr, YUNUI_PALETTES, applyTheme, fadeIn, readTheme, staggerContainer, staggerItem, toast, useBodyScrollLock, useEscapeKey, useFocusTrap, useModalBehavior, useYunUITheme } from './chunk-D2KGK2LY.js';
|
|
3
3
|
export { ThemeToggle, cn } from './chunk-TFZKMJGF.js';
|
|
4
4
|
import './chunk-U2LNRVMI.js';
|
|
5
5
|
//# sourceMappingURL=index.js.map
|
package/dist/patterns.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { Button, Card, Badge, Avatar, AvatarImage, AvatarFallback, IconButton, Spinner } from './chunk-
|
|
2
|
+
import { Button, Card, Badge, Avatar, AvatarImage, AvatarFallback, IconButton, Spinner } from './chunk-D2KGK2LY.js';
|
|
3
3
|
import { copyToClipboard } from './chunk-BO6CDGJS.js';
|
|
4
4
|
export { Footer } from './chunk-BO6CDGJS.js';
|
|
5
5
|
import { cn } from './chunk-TFZKMJGF.js';
|
package/package.json
CHANGED
package/styles/yunui.css
CHANGED
|
@@ -226,6 +226,55 @@
|
|
|
226
226
|
--accent: var(--brand-solid-strong);
|
|
227
227
|
--accent-subtle: var(--brand-alpha-weak);
|
|
228
228
|
--accent-muted: var(--brand-alpha-medium);
|
|
229
|
+
|
|
230
|
+
/* Broaden the reach: every "active / selected / focused" state follows the
|
|
231
|
+
brand too — bg-primary/border-primary/text-primary fills (Switch, Checkbox,
|
|
232
|
+
RadioGroup, selected combobox/select rows, Progress, Tabs…), the on-primary
|
|
233
|
+
ink, and focus-visible rings. Body text stays on --color-foreground, so
|
|
234
|
+
readability is untouched. Default (no attribute) is byte-identical. */
|
|
235
|
+
--color-primary: var(--brand-solid-strong);
|
|
236
|
+
--color-primary-foreground: var(--brand-on-solid-strong);
|
|
237
|
+
--color-ring: var(--brand-solid-strong);
|
|
238
|
+
}
|
|
239
|
+
|
|
240
|
+
/* NOTE: the primary/accent BUTTON brand overrides live AFTER the `.dark .btn-*`
|
|
241
|
+
rules (bottom of this file, "OPT-IN BRAND BUTTONS") so they win in dark mode
|
|
242
|
+
too — placing them here would lose to the later, equal-specificity dark rules. */
|
|
243
|
+
|
|
244
|
+
/* Filled elements that hard-code the foreground ink (Slider range + thumb,
|
|
245
|
+
Progress fill) follow the brand under opt-in too. Markers do nothing by
|
|
246
|
+
default, so the monochrome look is unchanged. */
|
|
247
|
+
[data-accent-source="brand"] .yunui-accent-bg {
|
|
248
|
+
background-color: var(--brand-solid-strong);
|
|
249
|
+
}
|
|
250
|
+
[data-accent-source="brand"] .yunui-accent-border {
|
|
251
|
+
border-color: var(--brand-solid-strong);
|
|
252
|
+
}
|
|
253
|
+
/* Text/icon ink sitting ON a solid brand fill (e.g. the navbar Sign-up CTA). */
|
|
254
|
+
[data-accent-source="brand"] .yunui-accent-on {
|
|
255
|
+
color: var(--brand-on-solid-strong);
|
|
256
|
+
}
|
|
257
|
+
|
|
258
|
+
/* Active navigation indicators (sidebar active bar + tab underline + active
|
|
259
|
+
label) follow the brand. Higher specificity than the base .nav-* rules, so it
|
|
260
|
+
wins in light and dark. */
|
|
261
|
+
[data-accent-source="brand"] .nav-item.active {
|
|
262
|
+
color: var(--brand-solid-strong);
|
|
263
|
+
}
|
|
264
|
+
[data-accent-source="brand"] .nav-item.active::before {
|
|
265
|
+
background: var(--brand-solid-strong);
|
|
266
|
+
}
|
|
267
|
+
[data-accent-source="brand"] .nav-tab.active {
|
|
268
|
+
color: var(--brand-solid-strong);
|
|
269
|
+
}
|
|
270
|
+
[data-accent-source="brand"] .nav-tab.active::after {
|
|
271
|
+
background: var(--brand-solid-strong);
|
|
272
|
+
}
|
|
273
|
+
|
|
274
|
+
/* Radix Tabs active trigger — translucent brand tint instead of the plain pill. */
|
|
275
|
+
[data-accent-source="brand"] .yunui-tab-trigger[data-state="active"] {
|
|
276
|
+
background-color: var(--brand-alpha-weak);
|
|
277
|
+
color: var(--brand-solid-strong);
|
|
229
278
|
}
|
|
230
279
|
|
|
231
280
|
/* True Black — Fumadocs sidebar overrides */
|
|
@@ -756,6 +805,24 @@ body {
|
|
|
756
805
|
background: rgba(248, 113, 113, 0.2);
|
|
757
806
|
}
|
|
758
807
|
|
|
808
|
+
/* =====================================================
|
|
809
|
+
OPT-IN BRAND BUTTONS — under data-accent-source="brand", the primary/accent
|
|
810
|
+
buttons go SOLID brand. Placed AFTER the .dark .btn-* overrides so it wins in
|
|
811
|
+
BOTH light and dark (equal specificity → later source wins). Without the
|
|
812
|
+
attribute, the monochrome buttons above are untouched.
|
|
813
|
+
===================================================== */
|
|
814
|
+
[data-accent-source="brand"] .btn-primary,
|
|
815
|
+
[data-accent-source="brand"] .btn-accent {
|
|
816
|
+
color: var(--brand-solid-strong);
|
|
817
|
+
border-color: var(--brand-alpha-strong);
|
|
818
|
+
background: var(--brand-alpha-weak);
|
|
819
|
+
}
|
|
820
|
+
[data-accent-source="brand"] .btn-primary:hover,
|
|
821
|
+
[data-accent-source="brand"] .btn-accent:hover {
|
|
822
|
+
background: var(--brand-alpha-medium);
|
|
823
|
+
border-color: var(--brand-solid-strong);
|
|
824
|
+
}
|
|
825
|
+
|
|
759
826
|
/* =====================================================
|
|
760
827
|
Select Dropdowns
|
|
761
828
|
===================================================== */
|