@nexub/react 1.3.0 → 1.4.0
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/{chunk-BYF223HT.js → chunk-2555JXCP.js} +1 -1
- package/dist/{chunk-6AZP6VBM.js → chunk-2FCSWBSM.js} +1 -1
- package/dist/{chunk-YJD66LTV.js → chunk-3AXIMXDU.js} +1 -1
- package/dist/{chunk-H4MXRAXP.js → chunk-3LP2CR7F.js} +1 -1
- package/dist/chunk-3TMIZQPR.js +49 -0
- package/dist/chunk-47UGX37F.js +21 -0
- package/dist/{chunk-PANDAMD2.js → chunk-4I5ULCYG.js} +1 -1
- package/dist/{chunk-3U54QLYB.js → chunk-4SSUM4CL.js} +1 -1
- package/dist/{chunk-KZW37FQZ.js → chunk-56FERRWW.js} +1 -1
- package/dist/{chunk-YUNWZAAD.js → chunk-5URGARPH.js} +8 -3
- package/dist/{chunk-QF7GUDOE.js → chunk-63DPMUMR.js} +1 -1
- package/dist/{chunk-BMVAZIAJ.js → chunk-6J3QTWKC.js} +1 -1
- package/dist/{chunk-2RLSIOGB.js → chunk-6QLLH6ID.js} +21 -11
- package/dist/{chunk-KWWV3CM3.js → chunk-6RBNM5RO.js} +1 -1
- package/dist/{chunk-WPPNDU2E.js → chunk-6SJPVQQW.js} +7 -6
- package/dist/{chunk-NAIZ7R2L.js → chunk-72I7EVOL.js} +1 -1
- package/dist/{chunk-UWWL5FPC.js → chunk-7Q7ZF6BY.js} +1 -1
- package/dist/chunk-7SXR4PGO.js +31 -0
- package/dist/{chunk-W4IEXUD4.js → chunk-7ZWBHHRK.js} +14 -11
- package/dist/{chunk-PER3O4FD.js → chunk-A4IMFAZX.js} +1 -1
- package/dist/{chunk-E3QPDCEV.js → chunk-AEBYQKLS.js} +34 -7
- package/dist/chunk-AHT35UWY.js +92 -0
- package/dist/chunk-B54WADL4.js +103 -0
- package/dist/{chunk-CMYEVLQT.js → chunk-BFRX6X4O.js} +9 -7
- package/dist/{chunk-KBB7M6WO.js → chunk-BTRTORKU.js} +1 -1
- package/dist/{chunk-TCTFQYLH.js → chunk-CHGPGRML.js} +1 -1
- package/dist/{chunk-U3AEA4BZ.js → chunk-CNNJFWFA.js} +1 -1
- package/dist/chunk-CWS37T3K.js +80 -0
- package/dist/chunk-DEIBF3P7.js +8 -0
- package/dist/{chunk-RIDDJUPA.js → chunk-DJZZ3FIP.js} +13 -4
- package/dist/{chunk-K7CUCLLI.js → chunk-DYWJ7BIK.js} +2 -2
- package/dist/{chunk-6Y734SXN.js → chunk-E4JM3HUM.js} +1 -1
- package/dist/{chunk-POFKKYHY.js → chunk-EQNETGTV.js} +1 -1
- package/dist/{chunk-BBVOB4EC.js → chunk-EZ23IA3H.js} +1 -1
- package/dist/{chunk-LOP63AVE.js → chunk-FD7YU53N.js} +1 -1
- package/dist/{chunk-CPV367VS.js → chunk-FHFVBOF3.js} +1 -1
- package/dist/chunk-GHCV6UXG.js +57 -0
- package/dist/{chunk-UALYS4XI.js → chunk-GIGOTRXX.js} +9 -4
- package/dist/{chunk-BTZW34TX.js → chunk-GRB6T2TT.js} +7 -6
- package/dist/chunk-GUB7YKG2.js +35 -0
- package/dist/{chunk-POBSY7EZ.js → chunk-H2W7IYVY.js} +1 -1
- package/dist/{chunk-I5Z3A7N3.js → chunk-HG6HTUWU.js} +2 -2
- package/dist/{chunk-DEH2Z27F.js → chunk-HJERFB7J.js} +1 -1
- package/dist/{chunk-FUJOSPNQ.js → chunk-I4URNMI7.js} +1 -1
- package/dist/{chunk-24CZFBTG.js → chunk-IIPYF6ZQ.js} +1 -1
- package/dist/{chunk-CVBAWKNG.js → chunk-IK23Q2OF.js} +32 -27
- package/dist/{chunk-4OCXGNP3.js → chunk-J2T4GFFS.js} +1 -1
- package/dist/{chunk-BJKW3G2L.js → chunk-J6TU45KP.js} +1 -1
- package/dist/{chunk-ELC2NBGH.js → chunk-JSD3H7WV.js} +1 -1
- package/dist/{chunk-46CFSBEO.js → chunk-KA2J5OBA.js} +3 -2
- package/dist/{chunk-OUBBOOZE.js → chunk-KM6Z3VTI.js} +1 -1
- package/dist/chunk-KQPLFVFR.js +27 -0
- package/dist/{chunk-MV7WMQI4.js → chunk-LDYD7WL3.js} +1 -1
- package/dist/{chunk-DOHXBNOP.js → chunk-LH3BSAIS.js} +1 -1
- package/dist/chunk-LMPGHWUA.js +114 -0
- package/dist/chunk-LZB3KTSH.js +61 -0
- package/dist/{chunk-BUBYXAJK.js → chunk-M7YB3MSW.js} +1 -1
- package/dist/{chunk-V3FZHIEB.js → chunk-NCRFKPA4.js} +1 -1
- package/dist/{chunk-QURKXXNS.js → chunk-NDCNVQ47.js} +1 -1
- package/dist/{chunk-JKTZMWWC.js → chunk-NIX4SEKM.js} +1 -1
- package/dist/{chunk-PBLEGOLM.js → chunk-NMH5WSZG.js} +6 -5
- package/dist/{chunk-ZFVBFCYV.js → chunk-NQVRF4RB.js} +1 -1
- package/dist/{chunk-IU76LV3W.js → chunk-OASFXI27.js} +6 -6
- package/dist/chunk-OJ2TLWYD.js +89 -0
- package/dist/{chunk-MY6XUJ5P.js → chunk-OJRSPDNJ.js} +21 -14
- package/dist/chunk-P26VJEIW.js +1 -0
- package/dist/{chunk-IBCYG6HR.js → chunk-P44EROBX.js} +1 -1
- package/dist/{chunk-52KTX5A7.js → chunk-PQ6GU7SG.js} +2 -2
- package/dist/{chunk-CZUNTABW.js → chunk-PVTACENM.js} +1 -1
- package/dist/{chunk-Y45JAJKW.js → chunk-PWBPHGM3.js} +2 -2
- package/dist/chunk-Q7G5WGYV.js +33 -0
- package/dist/{chunk-BYCTJHXY.js → chunk-QCNLE27O.js} +2 -2
- package/dist/{chunk-7W2YDJ5W.js → chunk-QD7H3WV3.js} +10 -7
- package/dist/{chunk-HW3I7I3R.js → chunk-RB4CVS22.js} +1 -1
- package/dist/{chunk-ZLSUVZM2.js → chunk-RHOYF7MO.js} +17 -11
- package/dist/{chunk-QHJ43Q2T.js → chunk-RLE5RN3T.js} +1 -1
- package/dist/{chunk-7B4FS7VQ.js → chunk-RTDUTWJ4.js} +31 -14
- package/dist/{chunk-DR2Y3PIT.js → chunk-S46W2QER.js} +1 -1
- package/dist/{chunk-LAWZQ6R6.js → chunk-SVQCINRE.js} +1 -1
- package/dist/{chunk-6MYVXJPJ.js → chunk-SY6V3HAK.js} +17 -23
- package/dist/{chunk-OZPPL76D.js → chunk-T5BS4OIV.js} +1 -1
- package/dist/{chunk-VT7RKY46.js → chunk-TEOLG3N2.js} +1 -1
- package/dist/{chunk-A7L75YXY.js → chunk-TJCHA3OI.js} +2 -2
- package/dist/chunk-TNBBQ7IP.js +43 -0
- package/dist/{chunk-IHW2L532.js → chunk-TYTW4F3B.js} +12 -9
- package/dist/{chunk-T4IVMVMQ.js → chunk-UMC64NCT.js} +1 -1
- package/dist/{chunk-UTBUIBEP.js → chunk-UVWCZHLD.js} +1 -1
- package/dist/chunk-V3TETH4J.js +146 -0
- package/dist/{chunk-SZKUSLHI.js → chunk-VTL3GJJG.js} +21 -11
- package/dist/{chunk-JQDLCN5D.js → chunk-W2NEXOTG.js} +1 -1
- package/dist/{chunk-XNDCVVNE.js → chunk-WESZPFBZ.js} +2 -2
- package/dist/{chunk-DD6XCW6R.js → chunk-XR4NBY54.js} +1 -1
- package/dist/{chunk-YGOR3KT7.js → chunk-YJ3JQYAN.js} +1 -1
- package/dist/chunk-YRDCY6BI.js +55 -0
- package/dist/{chunk-2VDP2ML4.js → chunk-Z3IG5WRA.js} +10 -9
- package/dist/{chunk-YUFCNHZF.js → chunk-ZV3AF5CL.js} +1 -1
- package/dist/components/Accordion/index.js +2 -2
- package/dist/components/Alert/index.js +2 -2
- package/dist/components/AlertDialog/index.js +6 -2
- package/dist/components/AppShell/index.js +2 -2
- package/dist/components/AspectRatio/index.js +2 -2
- package/dist/components/Autocomplete/index.js +3 -3
- package/dist/components/Avatar/index.js +2 -2
- package/dist/components/AvatarGroup/index.js +3 -3
- package/dist/components/Badge/index.js +2 -2
- package/dist/components/Banner/index.js +2 -2
- package/dist/components/Box/index.js +2 -2
- package/dist/components/Breadcrumb/index.js +2 -2
- package/dist/components/Button/index.js +5 -2
- package/dist/components/ButtonGroup/index.js +2 -2
- package/dist/components/Callout/index.js +2 -2
- package/dist/components/Card/index.js +3 -3
- package/dist/components/CheckList/index.js +2 -2
- package/dist/components/Checkbox/index.js +2 -2
- package/dist/components/Chip/index.js +2 -2
- package/dist/components/Code/index.js +2 -2
- package/dist/components/Collapsible/index.js +2 -2
- package/dist/components/Combobox/index.js +2 -2
- package/dist/components/CommandPalette/index.js +4 -2
- package/dist/components/Container/index.js +2 -2
- package/dist/components/ContextMenu/index.js +3 -2
- package/dist/components/CountryBadge/index.js +3 -3
- package/dist/components/DataTable/index.js +2 -2
- package/dist/components/DatePicker/index.js +2 -2
- package/dist/components/DateRangePicker/index.js +2 -2
- package/dist/components/Dialog/index.js +4 -3
- package/dist/components/Drawer/index.js +5 -3
- package/dist/components/DropdownMenu/index.js +3 -2
- package/dist/components/EmptyState/index.js +2 -2
- package/dist/components/ErrorState/index.js +2 -2
- package/dist/components/EyebrowChip/index.js +2 -2
- package/dist/components/FileUpload/index.js +2 -2
- package/dist/components/FilterChip/index.js +2 -2
- package/dist/components/Flag/index.js +2 -2
- package/dist/components/Flex/index.js +2 -2
- package/dist/components/FormError/index.js +2 -2
- package/dist/components/FormField/index.js +5 -5
- package/dist/components/GradientDivider/index.js +2 -2
- package/dist/components/Grid/index.js +2 -2
- package/dist/components/Heading/index.js +2 -2
- package/dist/components/HelperText/index.js +2 -2
- package/dist/components/HoverCard/index.js +3 -2
- package/dist/components/IconButton/index.js +3 -2
- package/dist/components/Input/index.js +3 -2
- package/dist/components/Kbd/index.js +2 -2
- package/dist/components/KeyboardShortcut/index.js +3 -3
- package/dist/components/Label/index.js +2 -2
- package/dist/components/Link/index.js +2 -2
- package/dist/components/Logo/index.js +2 -2
- package/dist/components/Menubar/index.js +3 -2
- package/dist/components/NavigationMenu/index.js +3 -2
- package/dist/components/NumberInput/index.js +4 -3
- package/dist/components/PageHeader/index.js +2 -2
- package/dist/components/Pagination/index.js +2 -2
- package/dist/components/PasswordInput/index.js +4 -3
- package/dist/components/Popover/index.js +4 -3
- package/dist/components/Progress/index.js +2 -2
- package/dist/components/RadioGroup/index.js +2 -2
- package/dist/components/Rating/index.js +2 -2
- package/dist/components/ScrollArea/index.js +2 -2
- package/dist/components/SearchInput/index.js +4 -3
- package/dist/components/Section/index.js +2 -2
- package/dist/components/SegmentedControl/index.js +4 -2
- package/dist/components/Select/index.js +4 -2
- package/dist/components/Separator/index.js +2 -2
- package/dist/components/Sidebar/index.js +2 -2
- package/dist/components/Skeleton/index.js +2 -2
- package/dist/components/Slider/index.js +2 -2
- package/dist/components/Spinner/index.js +2 -2
- package/dist/components/Stack/index.js +2 -2
- package/dist/components/StatusPill/index.js +2 -2
- package/dist/components/Switch/index.js +2 -2
- package/dist/components/Table/index.js +2 -2
- package/dist/components/Tabs/index.js +4 -2
- package/dist/components/Tag/index.js +2 -2
- package/dist/components/Text/index.js +2 -2
- package/dist/components/TextGradient/index.js +2 -2
- package/dist/components/Textarea/index.js +3 -2
- package/dist/components/ThemeProvider/index.js +1 -1
- package/dist/components/Toast/index.js +2 -2
- package/dist/components/Toggle/index.js +2 -2
- package/dist/components/ToggleGroup/index.js +3 -3
- package/dist/components/Toolbar/index.js +2 -2
- package/dist/components/Tooltip/index.js +2 -2
- package/dist/components/TopNav/index.js +3 -3
- package/dist/index.d.ts +47 -19
- package/dist/index.js +130 -141
- package/package.json +8 -5
- package/dist/chunk-3CSKW56L.js +0 -44
- package/dist/chunk-AT6RPKU3.js +0 -12
- package/dist/chunk-BGY23Y5O.js +0 -104
- package/dist/chunk-DAXDAFNG.js +0 -92
- package/dist/chunk-EVCTOIRS.js +0 -66
- package/dist/chunk-GTQIA62H.js +0 -60
- package/dist/chunk-JCUVWDUC.js +0 -57
- package/dist/chunk-N2GIMMTF.js +0 -98
- package/dist/chunk-P6BZNFVU.js +0 -38
- package/dist/chunk-QRZV2FLW.js +0 -106
- package/dist/chunk-ROZVVWPV.js +0 -8
- package/dist/chunk-U3EGB3JL.js +0 -43
- package/dist/chunk-VPZCQFVY.js +0 -33
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import {
|
|
3
3
|
SearchInput
|
|
4
|
-
} from "../../chunk-
|
|
5
|
-
import "../../chunk-
|
|
6
|
-
import "../../chunk-
|
|
4
|
+
} from "../../chunk-TJCHA3OI.js";
|
|
5
|
+
import "../../chunk-IK23Q2OF.js";
|
|
6
|
+
import "../../chunk-7SXR4PGO.js";
|
|
7
|
+
import "../../chunk-Q7G5WGYV.js";
|
|
7
8
|
export {
|
|
8
9
|
SearchInput
|
|
9
10
|
};
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import {
|
|
3
3
|
SegmentedControl
|
|
4
|
-
} from "../../chunk-
|
|
5
|
-
import "../../chunk-
|
|
4
|
+
} from "../../chunk-CWS37T3K.js";
|
|
5
|
+
import "../../chunk-YRDCY6BI.js";
|
|
6
|
+
import "../../chunk-NHUQLIHL.js";
|
|
7
|
+
import "../../chunk-Q7G5WGYV.js";
|
|
6
8
|
export {
|
|
7
9
|
SegmentedControl
|
|
8
10
|
};
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import {
|
|
3
3
|
Select
|
|
4
|
-
} from "../../chunk-
|
|
5
|
-
import "../../chunk-
|
|
4
|
+
} from "../../chunk-RTDUTWJ4.js";
|
|
5
|
+
import "../../chunk-KQPLFVFR.js";
|
|
6
|
+
import "../../chunk-7SXR4PGO.js";
|
|
7
|
+
import "../../chunk-Q7G5WGYV.js";
|
|
6
8
|
export {
|
|
7
9
|
Select
|
|
8
10
|
};
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import {
|
|
3
3
|
Tabs
|
|
4
|
-
} from "../../chunk-
|
|
5
|
-
import "../../chunk-
|
|
4
|
+
} from "../../chunk-OJ2TLWYD.js";
|
|
5
|
+
import "../../chunk-YRDCY6BI.js";
|
|
6
|
+
import "../../chunk-NHUQLIHL.js";
|
|
7
|
+
import "../../chunk-Q7G5WGYV.js";
|
|
6
8
|
export {
|
|
7
9
|
Tabs
|
|
8
10
|
};
|
|
@@ -2,8 +2,9 @@
|
|
|
2
2
|
import {
|
|
3
3
|
Textarea,
|
|
4
4
|
textareaVariants
|
|
5
|
-
} from "../../chunk-
|
|
6
|
-
import "../../chunk-
|
|
5
|
+
} from "../../chunk-7ZWBHHRK.js";
|
|
6
|
+
import "../../chunk-7SXR4PGO.js";
|
|
7
|
+
import "../../chunk-Q7G5WGYV.js";
|
|
7
8
|
export {
|
|
8
9
|
Textarea,
|
|
9
10
|
textareaVariants
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import {
|
|
3
3
|
ToggleGroup
|
|
4
|
-
} from "../../chunk-
|
|
5
|
-
import "../../chunk-
|
|
6
|
-
import "../../chunk-
|
|
4
|
+
} from "../../chunk-DYWJ7BIK.js";
|
|
5
|
+
import "../../chunk-3TMIZQPR.js";
|
|
6
|
+
import "../../chunk-Q7G5WGYV.js";
|
|
7
7
|
export {
|
|
8
8
|
ToggleGroup
|
|
9
9
|
};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import {
|
|
3
3
|
TopNav
|
|
4
|
-
} from "../../chunk-
|
|
5
|
-
import "../../chunk-
|
|
6
|
-
import "../../chunk-
|
|
4
|
+
} from "../../chunk-GRB6T2TT.js";
|
|
5
|
+
import "../../chunk-DEIBF3P7.js";
|
|
6
|
+
import "../../chunk-Q7G5WGYV.js";
|
|
7
7
|
export {
|
|
8
8
|
TopNav
|
|
9
9
|
};
|
package/dist/index.d.ts
CHANGED
|
@@ -54,7 +54,7 @@ declare function useMergedRefs<T>(...refs: Array<Ref<T> | undefined>): (node: T)
|
|
|
54
54
|
|
|
55
55
|
type ToneValue = 'neutral' | 'info' | 'success' | 'warning' | 'danger' | 'leap' | 'bookub' | 'payub' | 'founderub';
|
|
56
56
|
declare const buttonVariants: (props?: ({
|
|
57
|
-
variant?: "
|
|
57
|
+
variant?: "accent" | "text" | "link" | "glass" | "filled" | "tonal" | "outlined" | "primary" | "secondary" | "subtle" | "outline" | "ghost" | "destructive" | null | undefined;
|
|
58
58
|
size?: "xs" | "sm" | "md" | "lg" | "xl" | null | undefined;
|
|
59
59
|
fullWidth?: boolean | null | undefined;
|
|
60
60
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
@@ -75,7 +75,7 @@ interface ButtonGroupProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
|
75
75
|
declare const ButtonGroup: React.ForwardRefExoticComponent<ButtonGroupProps & React.RefAttributes<HTMLDivElement>>;
|
|
76
76
|
|
|
77
77
|
declare const iconButtonVariants: (props?: ({
|
|
78
|
-
variant?: "
|
|
78
|
+
variant?: "solid" | "subtle" | "outline" | "ghost" | null | undefined;
|
|
79
79
|
size?: "xs" | "sm" | "md" | "lg" | "xl" | null | undefined;
|
|
80
80
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
81
81
|
interface IconButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof iconButtonVariants> {
|
|
@@ -202,7 +202,7 @@ declare const FormField: {
|
|
|
202
202
|
|
|
203
203
|
declare const badgeVariants: (props?: ({
|
|
204
204
|
size?: "sm" | "md" | "lg" | null | undefined;
|
|
205
|
-
variant?: "
|
|
205
|
+
variant?: "solid" | "outline" | "soft" | null | undefined;
|
|
206
206
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
207
207
|
interface BadgeProps extends React.HTMLAttributes<HTMLSpanElement>, VariantProps<typeof badgeVariants> {
|
|
208
208
|
tone?: ToneValue;
|
|
@@ -432,7 +432,7 @@ declare const Container: React.ForwardRefExoticComponent<ContainerProps & React.
|
|
|
432
432
|
|
|
433
433
|
declare const sectionVariants: (props?: ({
|
|
434
434
|
paddingY?: "sm" | "md" | "lg" | null | undefined;
|
|
435
|
-
tone?: "
|
|
435
|
+
tone?: "default" | "subtle" | "muted" | "inverse" | null | undefined;
|
|
436
436
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
437
437
|
interface SectionProps extends React.HTMLAttributes<HTMLElement>, VariantProps<typeof sectionVariants> {
|
|
438
438
|
asChild?: boolean;
|
|
@@ -481,7 +481,7 @@ declare const AspectRatio: React.ForwardRefExoticComponent<AspectRatioProps & Re
|
|
|
481
481
|
|
|
482
482
|
declare const headingVariants: (props?: ({
|
|
483
483
|
size?: "display" | "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | null | undefined;
|
|
484
|
-
weight?: "bold" | "
|
|
484
|
+
weight?: "bold" | "regular" | "medium" | "semibold" | "extrabold" | null | undefined;
|
|
485
485
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
486
486
|
type HeadingSize = 'display' | 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6';
|
|
487
487
|
type HeadingWeight = 'regular' | 'medium' | 'semibold' | 'bold' | 'extrabold';
|
|
@@ -495,9 +495,9 @@ interface HeadingProps extends React.HTMLAttributes<HTMLHeadingElement> {
|
|
|
495
495
|
declare const Heading: React.ForwardRefExoticComponent<HeadingProps & React.RefAttributes<HTMLHeadingElement>>;
|
|
496
496
|
|
|
497
497
|
declare const textVariants: (props?: ({
|
|
498
|
-
size?: "
|
|
499
|
-
tone?: "
|
|
500
|
-
weight?: "bold" | "
|
|
498
|
+
size?: "body" | "label" | "caption" | "body-lg" | "body-sm" | null | undefined;
|
|
499
|
+
tone?: "default" | "secondary" | "subtle" | "muted" | "inverse" | null | undefined;
|
|
500
|
+
weight?: "bold" | "regular" | "medium" | "semibold" | null | undefined;
|
|
501
501
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
502
502
|
interface TextProps extends React.HTMLAttributes<HTMLParagraphElement>, VariantProps<typeof textVariants> {
|
|
503
503
|
asChild?: boolean;
|
|
@@ -867,7 +867,7 @@ interface SliderProps extends RadixSlider.SliderProps {
|
|
|
867
867
|
declare const Slider: React.ForwardRefExoticComponent<SliderProps & React.RefAttributes<HTMLSpanElement>>;
|
|
868
868
|
|
|
869
869
|
declare const toggleVariants: (props?: ({
|
|
870
|
-
variant?: "
|
|
870
|
+
variant?: "default" | "outline" | null | undefined;
|
|
871
871
|
size?: "sm" | "md" | "lg" | null | undefined;
|
|
872
872
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
873
873
|
interface ToggleProps extends RadixToggle.ToggleProps, VariantProps<typeof toggleVariants> {
|
|
@@ -881,7 +881,7 @@ type RootProps$1 = (RadixToggleGroup.ToggleGroupSingleProps | RadixToggleGroup.T
|
|
|
881
881
|
declare const ToggleGroup: {
|
|
882
882
|
Root: React.ForwardRefExoticComponent<RootProps$1 & React.RefAttributes<HTMLDivElement>>;
|
|
883
883
|
Item: React.ForwardRefExoticComponent<RadixToggleGroup.ToggleGroupItemProps & VariantProps<(props?: ({
|
|
884
|
-
variant?: "
|
|
884
|
+
variant?: "default" | "outline" | null | undefined;
|
|
885
885
|
size?: "sm" | "md" | "lg" | null | undefined;
|
|
886
886
|
} & class_variance_authority_types.ClassProp) | undefined) => string> & React.RefAttributes<HTMLButtonElement>>;
|
|
887
887
|
};
|
|
@@ -968,15 +968,19 @@ declare const toast: {
|
|
|
968
968
|
dismiss: typeof dismiss;
|
|
969
969
|
};
|
|
970
970
|
|
|
971
|
+
interface TopNavRootProps extends React.HTMLAttributes<HTMLElement> {
|
|
972
|
+
surface?: SurfaceValue;
|
|
973
|
+
/** Sticky-bar edge: `soft` dissolves scrolling content under the bar (no
|
|
974
|
+
* divider), `hard` is an opaque band for pinned headers. Default: a divider. */
|
|
975
|
+
scrollEdge?: 'soft' | 'hard';
|
|
976
|
+
}
|
|
971
977
|
interface TopNavItemProps extends React.AnchorHTMLAttributes<HTMLAnchorElement> {
|
|
972
978
|
active?: boolean;
|
|
973
979
|
/** Render the child element (e.g. a router `<Link>`) instead of an `<a>`. */
|
|
974
980
|
asChild?: boolean;
|
|
975
981
|
}
|
|
976
982
|
declare const TopNav: {
|
|
977
|
-
Root: React.ForwardRefExoticComponent<React.
|
|
978
|
-
surface?: SurfaceValue;
|
|
979
|
-
} & React.RefAttributes<HTMLElement>>;
|
|
983
|
+
Root: React.ForwardRefExoticComponent<TopNavRootProps & React.RefAttributes<HTMLElement>>;
|
|
980
984
|
Logo: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
981
985
|
Menu: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLElement> & React.RefAttributes<HTMLElement>>;
|
|
982
986
|
Item: React.ForwardRefExoticComponent<TopNavItemProps & React.RefAttributes<HTMLAnchorElement>>;
|
|
@@ -1054,10 +1058,21 @@ interface PaginationProps extends React.HTMLAttributes<HTMLElement> {
|
|
|
1054
1058
|
}
|
|
1055
1059
|
declare const Pagination: React.ForwardRefExoticComponent<PaginationProps & React.RefAttributes<HTMLElement>>;
|
|
1056
1060
|
|
|
1061
|
+
interface CommandPaletteRootProps extends DialogPrimitive.DialogProps {
|
|
1062
|
+
className?: string;
|
|
1063
|
+
/** Accessible name of the dialog. @default 'Command palette' */
|
|
1064
|
+
label?: string;
|
|
1065
|
+
/**
|
|
1066
|
+
* How page scroll is locked while open.
|
|
1067
|
+
* - `'style'` (default): Radix's lock, which injects a `<style>` tag (blocked by `style-src 'self'`).
|
|
1068
|
+
* - `'class'`: the `nexub-scroll-lock` class from `@nexub/themes/base`. Strict-CSP safe.
|
|
1069
|
+
*/
|
|
1070
|
+
scrollLock?: 'style' | 'class';
|
|
1071
|
+
/** `false` when the items are already filtered (e.g. async search results). @default true */
|
|
1072
|
+
shouldFilter?: boolean;
|
|
1073
|
+
}
|
|
1057
1074
|
declare const CommandPalette: {
|
|
1058
|
-
Root: React.ForwardRefExoticComponent<
|
|
1059
|
-
className?: string;
|
|
1060
|
-
} & React.RefAttributes<HTMLDivElement>>;
|
|
1075
|
+
Root: React.ForwardRefExoticComponent<CommandPaletteRootProps & React.RefAttributes<HTMLDivElement>>;
|
|
1061
1076
|
Input: React.ForwardRefExoticComponent<Omit<Omit<Pick<Pick<React.DetailedHTMLProps<React.InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "key" | keyof React.InputHTMLAttributes<HTMLInputElement>> & {
|
|
1062
1077
|
ref?: React.Ref<HTMLInputElement>;
|
|
1063
1078
|
} & {
|
|
@@ -1199,6 +1214,9 @@ interface DateRangePickerProps {
|
|
|
1199
1214
|
declare const DateRangePicker: React.ForwardRefExoticComponent<DateRangePickerProps & React.RefAttributes<HTMLButtonElement>>;
|
|
1200
1215
|
|
|
1201
1216
|
type ThemeMode = 'light' | 'dark' | 'system';
|
|
1217
|
+
/** Glass intensity dial (user preference, like iOS 27's clear → tinted slider).
|
|
1218
|
+
* 'off' makes every glass surface solid. Set as `data-glass` on <html>. */
|
|
1219
|
+
type GlassMode = 'clear' | 'balanced' | 'tinted' | 'off';
|
|
1202
1220
|
interface ThemeContextValue {
|
|
1203
1221
|
/** The resolved theme actually applied (never 'system'). */
|
|
1204
1222
|
resolvedTheme: 'light' | 'dark';
|
|
@@ -1206,6 +1224,10 @@ interface ThemeContextValue {
|
|
|
1206
1224
|
theme: ThemeMode;
|
|
1207
1225
|
/** Change the active theme. */
|
|
1208
1226
|
setTheme: (mode: ThemeMode) => void;
|
|
1227
|
+
/** Glass intensity. */
|
|
1228
|
+
glass: GlassMode;
|
|
1229
|
+
/** Change (and persist) the glass intensity. */
|
|
1230
|
+
setGlass: (mode: GlassMode) => void;
|
|
1209
1231
|
}
|
|
1210
1232
|
interface ThemeProviderProps {
|
|
1211
1233
|
children: React.ReactNode;
|
|
@@ -1218,14 +1240,20 @@ interface ThemeProviderProps {
|
|
|
1218
1240
|
* Defaults to 'nexub-theme'.
|
|
1219
1241
|
*/
|
|
1220
1242
|
storageKey?: string;
|
|
1243
|
+
/** Initial glass intensity. Defaults to 'balanced'. */
|
|
1244
|
+
defaultGlass?: GlassMode;
|
|
1245
|
+
/** localStorage key for the glass intensity. Defaults to 'nexub-glass'. */
|
|
1246
|
+
glassStorageKey?: string;
|
|
1221
1247
|
}
|
|
1222
|
-
declare function ThemeProvider({ children, defaultTheme, storageKey, }: ThemeProviderProps): react_jsx_runtime.JSX.Element;
|
|
1248
|
+
declare function ThemeProvider({ children, defaultTheme, storageKey, defaultGlass, glassStorageKey, }: ThemeProviderProps): react_jsx_runtime.JSX.Element;
|
|
1223
1249
|
declare function useTheme(): ThemeContextValue;
|
|
1224
1250
|
interface ThemeScriptProps {
|
|
1225
1251
|
/** Must match ThemeProvider's `storageKey`. Defaults to 'nexub-theme'. */
|
|
1226
1252
|
storageKey?: string;
|
|
1227
1253
|
/** If set, a stored product brand (e.g. 'bookub') is applied as `data-product`. */
|
|
1228
1254
|
productStorageKey?: string;
|
|
1255
|
+
/** Must match ThemeProvider's `glassStorageKey`. Defaults to 'nexub-glass'. */
|
|
1256
|
+
glassStorageKey?: string;
|
|
1229
1257
|
/** CSP nonce for pages whose script-src disallows inline scripts. */
|
|
1230
1258
|
nonce?: string;
|
|
1231
1259
|
}
|
|
@@ -1233,7 +1261,7 @@ interface ThemeScriptProps {
|
|
|
1233
1261
|
* Applies the stored theme before first paint, so there is no light/dark flash.
|
|
1234
1262
|
* Render it in `<head>` (or at the top of `<body>`) on server-rendered pages.
|
|
1235
1263
|
*/
|
|
1236
|
-
declare function ThemeScript({ storageKey, productStorageKey, nonce }: ThemeScriptProps): react_jsx_runtime.JSX.Element;
|
|
1264
|
+
declare function ThemeScript({ storageKey, productStorageKey, glassStorageKey, nonce }: ThemeScriptProps): react_jsx_runtime.JSX.Element;
|
|
1237
1265
|
|
|
1238
1266
|
type MotionDuration = 'instant' | 'fast' | 'normal' | 'slow' | 'slower';
|
|
1239
1267
|
type MotionEasing = 'linear' | 'in' | 'out' | 'in-out' | 'out-expo' | 'spring';
|
|
@@ -1341,4 +1369,4 @@ interface CollapseProps extends Omit<MotionBaseProps, 'easing'>, React.HTMLAttri
|
|
|
1341
1369
|
*/
|
|
1342
1370
|
declare const Collapse: React.ForwardRefExoticComponent<CollapseProps & React.RefAttributes<HTMLDivElement>>;
|
|
1343
1371
|
|
|
1344
|
-
export { Accordion, Alert, AlertDialog, type AlertProps, AppShell, AspectRatio, type AspectRatioProps, Autocomplete, type AutocompleteOption, type AutocompleteProps, Avatar, AvatarGroup, type AvatarGroupProps, type AvatarProps, Badge, type BadgeProps, Banner, type BannerProps, Box, type BoxProps, Breadcrumb, Button, ButtonGroup, type ButtonGroupProps, type ButtonProps, Callout, type CalloutProps, Card, type CardProps, CheckList, CheckListItem, type CheckListItemProps, type CheckListProps, Checkbox, type CheckboxProps, Chip, type ChipProps, Code, type CodeProps, Collapse, type CollapseProps, Collapsible, Combobox, CommandPalette, Container, type ContainerProps, ContextMenu, CountryBadge, type CountryBadgeProps, DataTable, type DataTableProps, DatePicker, type DatePickerProps, DateRangePicker, type DateRangePickerProps, Dialog, Drawer, type DrawerRootProps, DropdownMenu, EmptyState, ErrorState, type ErrorStateProps, EyebrowChip, type EyebrowChipProps, Fade, type FadeProps, FileUpload, type FileUploadRootProps, FilterChip, type FilterChipProps, Flag, type FlagProps, Flex, type FlexProps, FormError, type FormErrorProps, FormField, type FormFieldContextValue, type FormFieldRootProps, GradientDivider, type GradientDividerProps, Grid, type GridProps, Heading, type HeadingProps, HelperText, type HelperTextProps, HoverCard, IconButton, type IconButtonProps, Input, type InputProps, Kbd, type KbdProps, KeyboardShortcut, type KeyboardShortcutProps, Label, type LabelProps, Link, type LinkProps, Logo, type LogoProps, Menubar, type MotionBaseProps, type MotionDuration, type MotionEasing, NavigationMenu, NumberInput, type NumberInputProps, PageHeader, type PageHeaderProps, Pagination, type PaginationProps, PasswordInput, type PasswordInputProps, Popover, Progress, type ProgressProps, RadioGroup, Rating, type RatingProps, Scale, type ScaleProps, ScrollArea, type ScrollAreaProps, SearchInput, type SearchInputProps, Section, type SectionProps, SegmentedControl, type SegmentedControlItemProps, type SegmentedControlProps, Select, Separator, type SeparatorProps, Sheet, Sidebar, type SidebarGroupProps, type SidebarHeaderProps, type SidebarItemProps, type SidebarRootProps, Skeleton, type SkeletonProps, Slide, type SlideDirection, type SlideProps, Slider, type SliderProps, Spinner, type SpinnerProps, Stack, type StackProps, StatusPill, type StatusPillProps, Switch, type SwitchProps, Table, Tabs, Tag, type TagProps, Text, TextGradient, type TextGradientProps, type TextProps, Textarea, type TextareaProps, type ThemeContextValue, type ThemeMode, ThemeProvider, type ThemeProviderProps, ThemeScript, type ThemeScriptProps, Toast, type ToastItem, Toaster, Toggle, ToggleGroup, type ToggleProps, type ToneValue, Toolbar, Tooltip, Provider as TooltipProvider, TopNav, type TopNavItemProps, addonVariants, alertVariants, avatarGroupVariants, avatarVariants, badgeVariants, bannerVariants, buttonVariants, calloutVariants, cardVariants, chipVariants, cn, containerVariants, headingVariants, iconButtonVariants, inputVariants, inputWrapperVariants, labelVariants, linkVariants, logoVariants, progressFillVariants, progressTrackVariants, ratingVariants, sectionVariants, separatorVariants, skeletonVariants, spinnerVariants, statusPillVariants, tagVariants, textVariants, textareaVariants, toast, toggleVariants, useControllableState, useDisclosure, useIsomorphicLayoutEffect, useMediaQuery, useMergedRefs, useTheme, useToastStore };
|
|
1372
|
+
export { Accordion, Alert, AlertDialog, type AlertProps, AppShell, AspectRatio, type AspectRatioProps, Autocomplete, type AutocompleteOption, type AutocompleteProps, Avatar, AvatarGroup, type AvatarGroupProps, type AvatarProps, Badge, type BadgeProps, Banner, type BannerProps, Box, type BoxProps, Breadcrumb, Button, ButtonGroup, type ButtonGroupProps, type ButtonProps, Callout, type CalloutProps, Card, type CardProps, CheckList, CheckListItem, type CheckListItemProps, type CheckListProps, Checkbox, type CheckboxProps, Chip, type ChipProps, Code, type CodeProps, Collapse, type CollapseProps, Collapsible, Combobox, CommandPalette, type CommandPaletteRootProps, Container, type ContainerProps, ContextMenu, CountryBadge, type CountryBadgeProps, DataTable, type DataTableProps, DatePicker, type DatePickerProps, DateRangePicker, type DateRangePickerProps, Dialog, Drawer, type DrawerRootProps, DropdownMenu, EmptyState, ErrorState, type ErrorStateProps, EyebrowChip, type EyebrowChipProps, Fade, type FadeProps, FileUpload, type FileUploadRootProps, FilterChip, type FilterChipProps, Flag, type FlagProps, Flex, type FlexProps, FormError, type FormErrorProps, FormField, type FormFieldContextValue, type FormFieldRootProps, type GlassMode, GradientDivider, type GradientDividerProps, Grid, type GridProps, Heading, type HeadingProps, HelperText, type HelperTextProps, HoverCard, IconButton, type IconButtonProps, Input, type InputProps, Kbd, type KbdProps, KeyboardShortcut, type KeyboardShortcutProps, Label, type LabelProps, Link, type LinkProps, Logo, type LogoProps, Menubar, type MotionBaseProps, type MotionDuration, type MotionEasing, NavigationMenu, NumberInput, type NumberInputProps, PageHeader, type PageHeaderProps, Pagination, type PaginationProps, PasswordInput, type PasswordInputProps, Popover, Progress, type ProgressProps, RadioGroup, Rating, type RatingProps, Scale, type ScaleProps, ScrollArea, type ScrollAreaProps, SearchInput, type SearchInputProps, Section, type SectionProps, SegmentedControl, type SegmentedControlItemProps, type SegmentedControlProps, Select, Separator, type SeparatorProps, Sheet, Sidebar, type SidebarGroupProps, type SidebarHeaderProps, type SidebarItemProps, type SidebarRootProps, Skeleton, type SkeletonProps, Slide, type SlideDirection, type SlideProps, Slider, type SliderProps, Spinner, type SpinnerProps, Stack, type StackProps, StatusPill, type StatusPillProps, Switch, type SwitchProps, Table, Tabs, Tag, type TagProps, Text, TextGradient, type TextGradientProps, type TextProps, Textarea, type TextareaProps, type ThemeContextValue, type ThemeMode, ThemeProvider, type ThemeProviderProps, ThemeScript, type ThemeScriptProps, Toast, type ToastItem, Toaster, Toggle, ToggleGroup, type ToggleProps, type ToneValue, Toolbar, Tooltip, Provider as TooltipProvider, TopNav, type TopNavItemProps, type TopNavRootProps, addonVariants, alertVariants, avatarGroupVariants, avatarVariants, badgeVariants, bannerVariants, buttonVariants, calloutVariants, cardVariants, chipVariants, cn, containerVariants, headingVariants, iconButtonVariants, inputVariants, inputWrapperVariants, labelVariants, linkVariants, logoVariants, progressFillVariants, progressTrackVariants, ratingVariants, sectionVariants, separatorVariants, skeletonVariants, spinnerVariants, statusPillVariants, tagVariants, textVariants, textareaVariants, toast, toggleVariants, useControllableState, useDisclosure, useIsomorphicLayoutEffect, useMediaQuery, useMergedRefs, useTheme, useToastStore };
|