@nexub/react 2.6.0 → 2.8.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-RSAGQWHO.js → chunk-36QSSD7I.js} +1 -1
- package/dist/{chunk-X7NTWHHW.js → chunk-A7PS3EZO.js} +1 -1
- package/dist/{chunk-66A6I4OV.js → chunk-BM5PGGK2.js} +1 -1
- package/dist/{chunk-RTVBHXYK.js → chunk-FBUKWIWR.js} +1 -1
- package/dist/{chunk-UOIQVLDD.js → chunk-FOFNTKCK.js} +1 -1
- package/dist/{chunk-2TDXFV45.js → chunk-FRGFO4DS.js} +2 -2
- package/dist/{chunk-45IHDOSM.js → chunk-G7VMAWAX.js} +1 -1
- package/dist/{chunk-H76RJYDW.js → chunk-GHLMHKMV.js} +5 -5
- package/dist/{chunk-EAJX4RM6.js → chunk-HL64PWVQ.js} +1 -1
- package/dist/{chunk-IQNF3R2J.js → chunk-ILIM4BLN.js} +1 -1
- package/dist/{chunk-OYTX4XI7.js → chunk-M5PDVHFN.js} +1 -1
- package/dist/{chunk-AQZHU35H.js → chunk-MXXJOAWQ.js} +1 -1
- package/dist/{chunk-UVQFGKQO.js → chunk-NLVP74RX.js} +1 -1
- package/dist/{chunk-2L7RW4E7.js → chunk-NX5ZJSRU.js} +1 -1
- package/dist/{chunk-2DGYUQBA.js → chunk-OGHOT6XN.js} +11 -4
- package/dist/{chunk-B2LDYTDQ.js → chunk-OY5CWWIM.js} +2 -2
- package/dist/{chunk-2B2KOOKJ.js → chunk-PDQTKE2C.js} +1 -1
- package/dist/{chunk-GV6LPUGS.js → chunk-QKGQBJ4U.js} +1 -1
- package/dist/{chunk-5INQVN5N.js → chunk-RH2HEPC7.js} +1 -1
- package/dist/{chunk-B3TDZFNV.js → chunk-RNS35DNZ.js} +1 -1
- package/dist/{chunk-CBNN2HYE.js → chunk-T466ZB34.js} +3 -3
- package/dist/{chunk-X6ULDZ7I.js → chunk-V3EWVSVI.js} +2 -2
- package/dist/{chunk-5W3AOOYS.js → chunk-VALIDQXU.js} +2 -2
- package/dist/{chunk-RQR65WLG.js → chunk-YVS6AVPD.js} +11 -9
- package/dist/{chunk-T5WXAVK2.js → chunk-YYAXXJH3.js} +3 -3
- package/dist/{chunk-AKS4HV5S.js → chunk-Z7OR2LYG.js} +1 -1
- package/dist/{chunk-3XX45SUC.js → chunk-ZBRRQHZG.js} +11 -4
- package/dist/{chunk-YGCJHBFI.js → chunk-ZUMC7SX5.js} +2 -2
- package/dist/components/AlertDialog/index.js +3 -3
- package/dist/components/Badge/index.js +1 -1
- package/dist/components/Button/index.js +2 -2
- package/dist/components/Card/index.js +1 -1
- package/dist/components/DataTable/index.js +2 -2
- package/dist/components/DatePicker/index.js +2 -2
- package/dist/components/DateRangePicker/index.js +3 -3
- package/dist/components/ErrorState/index.js +2 -2
- package/dist/components/EyebrowChip/index.js +3 -3
- package/dist/components/FilterChip/index.js +2 -2
- package/dist/components/FormField/index.js +5 -5
- package/dist/components/Heading/index.js +3 -3
- package/dist/components/HelperText/index.js +3 -3
- package/dist/components/IconButton/index.js +2 -2
- package/dist/components/Input/index.js +2 -2
- package/dist/components/Label/index.js +3 -3
- package/dist/components/MessageBubble/index.js +3 -3
- package/dist/components/MoneyInput/index.js +3 -3
- package/dist/components/NumberInput/index.js +3 -3
- package/dist/components/Pagination/index.js +2 -2
- package/dist/components/PasswordInput/index.js +5 -3
- package/dist/components/PromptInput/index.js +3 -3
- package/dist/components/SearchInput/index.js +5 -3
- package/dist/components/Select/index.js +2 -2
- package/dist/components/SplitButton/index.js +3 -3
- package/dist/components/Textarea/index.js +2 -2
- package/dist/components/ThemeProvider/index.js +1 -1
- package/dist/index.d.ts +41 -30
- package/dist/index.js +49 -49
- package/dist/styles.css +1 -1
- package/package.json +10 -10
|
@@ -3,9 +3,9 @@ import "../../chunk-EV43I5J6.js";
|
|
|
3
3
|
import {
|
|
4
4
|
Label,
|
|
5
5
|
labelVariants
|
|
6
|
-
} from "../../chunk-
|
|
7
|
-
import "../../chunk-
|
|
8
|
-
import "../../chunk-
|
|
6
|
+
} from "../../chunk-BM5PGGK2.js";
|
|
7
|
+
import "../../chunk-GHLMHKMV.js";
|
|
8
|
+
import "../../chunk-VALIDQXU.js";
|
|
9
9
|
import "../../chunk-DEIBF3P7.js";
|
|
10
10
|
import "../../chunk-WRVFNYO3.js";
|
|
11
11
|
export {
|
|
@@ -3,12 +3,12 @@ import {
|
|
|
3
3
|
MessageActions,
|
|
4
4
|
MessageBubble,
|
|
5
5
|
defaultMessageStrings
|
|
6
|
-
} from "../../chunk-
|
|
6
|
+
} from "../../chunk-RNS35DNZ.js";
|
|
7
7
|
import "../../chunk-6SWOLUMF.js";
|
|
8
8
|
import "../../chunk-JLUCMNVS.js";
|
|
9
9
|
import "../../chunk-NHUQLIHL.js";
|
|
10
|
-
import "../../chunk-
|
|
11
|
-
import "../../chunk-
|
|
10
|
+
import "../../chunk-RH2HEPC7.js";
|
|
11
|
+
import "../../chunk-VALIDQXU.js";
|
|
12
12
|
import "../../chunk-VMSWIC3O.js";
|
|
13
13
|
import "../../chunk-WRVFNYO3.js";
|
|
14
14
|
export {
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import {
|
|
3
3
|
MoneyInput
|
|
4
|
-
} from "../../chunk-
|
|
4
|
+
} from "../../chunk-FOFNTKCK.js";
|
|
5
5
|
import "../../chunk-JLUCMNVS.js";
|
|
6
6
|
import "../../chunk-NHUQLIHL.js";
|
|
7
|
-
import "../../chunk-
|
|
8
|
-
import "../../chunk-
|
|
7
|
+
import "../../chunk-G7VMAWAX.js";
|
|
8
|
+
import "../../chunk-VALIDQXU.js";
|
|
9
9
|
import "../../chunk-R3SUPKKI.js";
|
|
10
10
|
import "../../chunk-VMSWIC3O.js";
|
|
11
11
|
import "../../chunk-WRVFNYO3.js";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import {
|
|
3
3
|
NumberInput
|
|
4
|
-
} from "../../chunk-
|
|
5
|
-
import "../../chunk-
|
|
6
|
-
import "../../chunk-
|
|
4
|
+
} from "../../chunk-V3EWVSVI.js";
|
|
5
|
+
import "../../chunk-G7VMAWAX.js";
|
|
6
|
+
import "../../chunk-VALIDQXU.js";
|
|
7
7
|
import "../../chunk-VMSWIC3O.js";
|
|
8
8
|
import "../../chunk-WRVFNYO3.js";
|
|
9
9
|
export {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import {
|
|
3
3
|
Pagination
|
|
4
|
-
} from "../../chunk-
|
|
5
|
-
import "../../chunk-
|
|
4
|
+
} from "../../chunk-NLVP74RX.js";
|
|
5
|
+
import "../../chunk-VALIDQXU.js";
|
|
6
6
|
import "../../chunk-VMSWIC3O.js";
|
|
7
7
|
import "../../chunk-WRVFNYO3.js";
|
|
8
8
|
export {
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import {
|
|
3
3
|
PasswordInput
|
|
4
|
-
} from "../../chunk-
|
|
5
|
-
import "../../chunk-
|
|
6
|
-
import "../../chunk-
|
|
4
|
+
} from "../../chunk-OGHOT6XN.js";
|
|
5
|
+
import "../../chunk-JLUCMNVS.js";
|
|
6
|
+
import "../../chunk-NHUQLIHL.js";
|
|
7
|
+
import "../../chunk-G7VMAWAX.js";
|
|
8
|
+
import "../../chunk-VALIDQXU.js";
|
|
7
9
|
import "../../chunk-VMSWIC3O.js";
|
|
8
10
|
import "../../chunk-WRVFNYO3.js";
|
|
9
11
|
export {
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import {
|
|
3
3
|
PromptInput
|
|
4
|
-
} from "../../chunk-
|
|
4
|
+
} from "../../chunk-ZUMC7SX5.js";
|
|
5
5
|
import "../../chunk-MNEXMMLM.js";
|
|
6
6
|
import "../../chunk-JLUCMNVS.js";
|
|
7
7
|
import "../../chunk-NHUQLIHL.js";
|
|
8
|
-
import "../../chunk-
|
|
9
|
-
import "../../chunk-
|
|
8
|
+
import "../../chunk-RH2HEPC7.js";
|
|
9
|
+
import "../../chunk-VALIDQXU.js";
|
|
10
10
|
import "../../chunk-DEIBF3P7.js";
|
|
11
11
|
import "../../chunk-VMSWIC3O.js";
|
|
12
12
|
import "../../chunk-WRVFNYO3.js";
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import {
|
|
3
3
|
SearchInput
|
|
4
|
-
} from "../../chunk-
|
|
5
|
-
import "../../chunk-
|
|
6
|
-
import "../../chunk-
|
|
4
|
+
} from "../../chunk-YVS6AVPD.js";
|
|
5
|
+
import "../../chunk-JLUCMNVS.js";
|
|
6
|
+
import "../../chunk-NHUQLIHL.js";
|
|
7
|
+
import "../../chunk-G7VMAWAX.js";
|
|
8
|
+
import "../../chunk-VALIDQXU.js";
|
|
7
9
|
import "../../chunk-VMSWIC3O.js";
|
|
8
10
|
import "../../chunk-WRVFNYO3.js";
|
|
9
11
|
export {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import {
|
|
3
3
|
Select
|
|
4
|
-
} from "../../chunk-
|
|
4
|
+
} from "../../chunk-M5PDVHFN.js";
|
|
5
5
|
import "../../chunk-5FWJXSXT.js";
|
|
6
|
-
import "../../chunk-
|
|
6
|
+
import "../../chunk-VALIDQXU.js";
|
|
7
7
|
import "../../chunk-WRVFNYO3.js";
|
|
8
8
|
export {
|
|
9
9
|
Select
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import {
|
|
3
3
|
SplitButton
|
|
4
|
-
} from "../../chunk-
|
|
4
|
+
} from "../../chunk-ILIM4BLN.js";
|
|
5
5
|
import "../../chunk-GWFIMQBC.js";
|
|
6
6
|
import "../../chunk-7EQ2LIYD.js";
|
|
7
7
|
import "../../chunk-5FWJXSXT.js";
|
|
8
|
-
import "../../chunk-
|
|
9
|
-
import "../../chunk-
|
|
8
|
+
import "../../chunk-GHLMHKMV.js";
|
|
9
|
+
import "../../chunk-VALIDQXU.js";
|
|
10
10
|
import "../../chunk-DEIBF3P7.js";
|
|
11
11
|
import "../../chunk-WRVFNYO3.js";
|
|
12
12
|
export {
|
package/dist/index.d.ts
CHANGED
|
@@ -34,6 +34,9 @@ export { DateRange } from 'react-day-picker';
|
|
|
34
34
|
|
|
35
35
|
declare function cn(...inputs: ClassValue[]): string;
|
|
36
36
|
|
|
37
|
+
/** The shared size scale. Components with extra steps extend it (`Size | 'display'`). */
|
|
38
|
+
type Size = 'sm' | 'md' | 'lg';
|
|
39
|
+
|
|
37
40
|
/**
|
|
38
41
|
* Run a DOM update as a view transition (styles: @nexub/themes/view-transitions).
|
|
39
42
|
* Where the API is missing, or on the server, the update just runs.
|
|
@@ -255,8 +258,8 @@ declare function useLocale(): {
|
|
|
255
258
|
};
|
|
256
259
|
|
|
257
260
|
declare const buttonVariants: (props?: ({
|
|
258
|
-
variant?: "
|
|
259
|
-
size?: "
|
|
261
|
+
variant?: "glass" | "text" | "filled" | "tonal" | "outlined" | "primary" | "secondary" | "subtle" | "outline" | "ghost" | "destructive" | "accent" | "link" | null | undefined;
|
|
262
|
+
size?: "sm" | "md" | "xs" | "lg" | "xl" | null | undefined;
|
|
260
263
|
fullWidth?: boolean | null | undefined;
|
|
261
264
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
262
265
|
type ButtonStatus = 'idle' | 'loading' | 'success' | 'error';
|
|
@@ -301,8 +304,8 @@ interface SplitButtonProps extends Omit<ButtonProps, 'asChild' | 'trailingIcon'
|
|
|
301
304
|
declare const SplitButton: React.ForwardRefExoticComponent<SplitButtonProps & React.RefAttributes<HTMLButtonElement>>;
|
|
302
305
|
|
|
303
306
|
declare const iconButtonVariants: (props?: ({
|
|
304
|
-
variant?: "
|
|
305
|
-
size?: "
|
|
307
|
+
variant?: "solid" | "subtle" | "outline" | "ghost" | null | undefined;
|
|
308
|
+
size?: "sm" | "md" | "xs" | "lg" | "xl" | null | undefined;
|
|
306
309
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
307
310
|
interface IconButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof iconButtonVariants> {
|
|
308
311
|
label: string;
|
|
@@ -333,7 +336,7 @@ declare const Input: React.ForwardRefExoticComponent<InputProps & React.RefAttri
|
|
|
333
336
|
declare const textareaVariants: (props?: ({
|
|
334
337
|
size?: "sm" | "md" | "lg" | null | undefined;
|
|
335
338
|
invalid?: boolean | null | undefined;
|
|
336
|
-
resize?: "
|
|
339
|
+
resize?: "horizontal" | "vertical" | "none" | "both" | null | undefined;
|
|
337
340
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
338
341
|
interface TextareaProps extends Omit<React.TextareaHTMLAttributes<HTMLTextAreaElement>, 'size'>, VariantProps<typeof textareaVariants> {
|
|
339
342
|
invalid?: boolean;
|
|
@@ -343,7 +346,7 @@ interface TextareaProps extends Omit<React.TextareaHTMLAttributes<HTMLTextAreaEl
|
|
|
343
346
|
declare const Textarea: React.ForwardRefExoticComponent<TextareaProps & React.RefAttributes<HTMLTextAreaElement>>;
|
|
344
347
|
|
|
345
348
|
interface NumberInputProps extends Omit<React.InputHTMLAttributes<HTMLInputElement>, 'value' | 'defaultValue' | 'onChange' | 'type' | 'size'> {
|
|
346
|
-
size?:
|
|
349
|
+
size?: Size;
|
|
347
350
|
min?: number;
|
|
348
351
|
max?: number;
|
|
349
352
|
step?: number;
|
|
@@ -381,7 +384,7 @@ interface AmountProps extends Omit<React.HTMLAttributes<HTMLSpanElement>, 'child
|
|
|
381
384
|
/** BCP 47 locale. Defaults to the user's. */
|
|
382
385
|
locale?: string;
|
|
383
386
|
/** `display`: a hero figure in the brand face with a quieter symbol and minor units. */
|
|
384
|
-
size?:
|
|
387
|
+
size?: Size | 'display';
|
|
385
388
|
/** `auto` colours gains success and losses error (use with signDisplay). */
|
|
386
389
|
tone?: 'neutral' | 'auto';
|
|
387
390
|
/** e.g. 'exceptZero' to show "+" on gains. */
|
|
@@ -421,7 +424,12 @@ interface SearchInputProps extends Omit<InputProps, 'leadingIcon' | 'trailingIco
|
|
|
421
424
|
}
|
|
422
425
|
declare const SearchInput: React.ForwardRefExoticComponent<SearchInputProps & React.RefAttributes<HTMLInputElement>>;
|
|
423
426
|
|
|
424
|
-
|
|
427
|
+
interface PasswordInputProps extends Omit<InputProps, 'type' | 'trailingIcon'> {
|
|
428
|
+
/** Whether the password is shown as text. Controlled when set. */
|
|
429
|
+
visible?: boolean;
|
|
430
|
+
defaultVisible?: boolean;
|
|
431
|
+
onVisibleChange?: (visible: boolean) => void;
|
|
432
|
+
}
|
|
425
433
|
declare const PasswordInput: React.ForwardRefExoticComponent<PasswordInputProps & React.RefAttributes<HTMLInputElement>>;
|
|
426
434
|
|
|
427
435
|
declare const labelVariants: (props?: ({
|
|
@@ -429,7 +437,7 @@ declare const labelVariants: (props?: ({
|
|
|
429
437
|
disabled?: boolean | null | undefined;
|
|
430
438
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
431
439
|
interface LabelProps extends React.LabelHTMLAttributes<HTMLLabelElement>, VariantProps<typeof labelVariants> {
|
|
432
|
-
size?:
|
|
440
|
+
size?: Size;
|
|
433
441
|
required?: boolean;
|
|
434
442
|
disabled?: boolean;
|
|
435
443
|
tone?: ToneValue;
|
|
@@ -488,7 +496,7 @@ declare const FormField: {
|
|
|
488
496
|
|
|
489
497
|
declare const badgeVariants: (props?: ({
|
|
490
498
|
size?: "sm" | "md" | "lg" | null | undefined;
|
|
491
|
-
variant?: "
|
|
499
|
+
variant?: "solid" | "outline" | "soft" | null | undefined;
|
|
492
500
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
493
501
|
interface BadgeProps extends React.HTMLAttributes<HTMLSpanElement>, VariantProps<typeof badgeVariants> {
|
|
494
502
|
tone?: ToneValue;
|
|
@@ -549,7 +557,7 @@ interface EyebrowChipProps extends React.HTMLAttributes<HTMLSpanElement> {
|
|
|
549
557
|
declare const EyebrowChip: React.ForwardRefExoticComponent<EyebrowChipProps & React.RefAttributes<HTMLSpanElement>>;
|
|
550
558
|
|
|
551
559
|
declare const avatarVariants: (props?: ({
|
|
552
|
-
size?: "
|
|
560
|
+
size?: "sm" | "md" | "xs" | "lg" | "xl" | null | undefined;
|
|
553
561
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
554
562
|
interface AvatarProps extends React.HTMLAttributes<HTMLSpanElement>, VariantProps<typeof avatarVariants> {
|
|
555
563
|
src?: string;
|
|
@@ -571,7 +579,7 @@ interface AvatarGroupProps extends React.HTMLAttributes<HTMLDivElement>, Variant
|
|
|
571
579
|
declare const AvatarGroup: React.ForwardRefExoticComponent<AvatarGroupProps & React.RefAttributes<HTMLDivElement>>;
|
|
572
580
|
|
|
573
581
|
declare const cardVariants: (props?: ({
|
|
574
|
-
variant?: "
|
|
582
|
+
variant?: "surface" | "flat" | "interactive" | null | undefined;
|
|
575
583
|
surface?: "solid" | "glass" | null | undefined;
|
|
576
584
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
577
585
|
interface CardProps extends React.HTMLAttributes<HTMLDivElement>, VariantProps<typeof cardVariants> {
|
|
@@ -693,7 +701,7 @@ interface SkeletonProps extends React.HTMLAttributes<HTMLSpanElement>, VariantPr
|
|
|
693
701
|
declare const Skeleton: React.ForwardRefExoticComponent<SkeletonProps & React.RefAttributes<HTMLSpanElement>>;
|
|
694
702
|
|
|
695
703
|
declare const spinnerVariants: (props?: ({
|
|
696
|
-
size?: "
|
|
704
|
+
size?: "sm" | "md" | "xs" | "lg" | "xl" | null | undefined;
|
|
697
705
|
tone?: "neutral" | "info" | "success" | "warning" | "danger" | "leap" | "bookub" | "payub" | "founderub" | null | undefined;
|
|
698
706
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
699
707
|
interface SpinnerProps extends React.HTMLAttributes<HTMLSpanElement>, VariantProps<typeof spinnerVariants> {
|
|
@@ -789,7 +797,7 @@ declare const Container: React.ForwardRefExoticComponent<ContainerProps & React.
|
|
|
789
797
|
|
|
790
798
|
declare const sectionVariants: (props?: ({
|
|
791
799
|
paddingY?: "sm" | "md" | "lg" | null | undefined;
|
|
792
|
-
tone?: "
|
|
800
|
+
tone?: "subtle" | "default" | "muted" | "inverse" | null | undefined;
|
|
793
801
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
794
802
|
interface SectionProps extends React.HTMLAttributes<HTMLElement>, VariantProps<typeof sectionVariants> {
|
|
795
803
|
asChild?: boolean;
|
|
@@ -838,7 +846,7 @@ declare const AspectRatio: React.ForwardRefExoticComponent<AspectRatioProps & Re
|
|
|
838
846
|
|
|
839
847
|
declare const headingVariants: (props?: ({
|
|
840
848
|
size?: "display" | "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | null | undefined;
|
|
841
|
-
weight?: "
|
|
849
|
+
weight?: "regular" | "medium" | "semibold" | "bold" | "extrabold" | null | undefined;
|
|
842
850
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
843
851
|
type HeadingSize = 'display' | 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6';
|
|
844
852
|
type HeadingWeight = 'regular' | 'medium' | 'semibold' | 'bold' | 'extrabold';
|
|
@@ -852,9 +860,9 @@ interface HeadingProps extends React.HTMLAttributes<HTMLHeadingElement> {
|
|
|
852
860
|
declare const Heading: React.ForwardRefExoticComponent<HeadingProps & React.RefAttributes<HTMLHeadingElement>>;
|
|
853
861
|
|
|
854
862
|
declare const textVariants: (props?: ({
|
|
855
|
-
size?: "
|
|
856
|
-
tone?: "
|
|
857
|
-
weight?: "
|
|
863
|
+
size?: "label" | "body" | "caption" | "body-lg" | "body-sm" | null | undefined;
|
|
864
|
+
tone?: "secondary" | "subtle" | "default" | "muted" | "inverse" | null | undefined;
|
|
865
|
+
weight?: "regular" | "medium" | "semibold" | "bold" | null | undefined;
|
|
858
866
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
859
867
|
interface TextProps extends React.HTMLAttributes<HTMLParagraphElement>, VariantProps<typeof textVariants> {
|
|
860
868
|
asChild?: boolean;
|
|
@@ -879,14 +887,14 @@ declare const Logo: React.ForwardRefExoticComponent<LogoProps & React.RefAttribu
|
|
|
879
887
|
|
|
880
888
|
interface FlagProps extends React.HTMLAttributes<HTMLSpanElement> {
|
|
881
889
|
code: string;
|
|
882
|
-
size?:
|
|
890
|
+
size?: Size;
|
|
883
891
|
}
|
|
884
892
|
declare const Flag: React.ForwardRefExoticComponent<FlagProps & React.RefAttributes<HTMLSpanElement>>;
|
|
885
893
|
|
|
886
894
|
interface CountryBadgeProps extends React.HTMLAttributes<HTMLSpanElement> {
|
|
887
895
|
code: string;
|
|
888
896
|
label?: string;
|
|
889
|
-
size?:
|
|
897
|
+
size?: Size;
|
|
890
898
|
}
|
|
891
899
|
declare const CountryBadge: React.ForwardRefExoticComponent<CountryBadgeProps & React.RefAttributes<HTMLSpanElement>>;
|
|
892
900
|
|
|
@@ -898,7 +906,7 @@ declare const KeyboardShortcut: React.ForwardRefExoticComponent<KeyboardShortcut
|
|
|
898
906
|
type SurfaceValue = 'solid' | 'glass';
|
|
899
907
|
|
|
900
908
|
interface ContentProps extends DialogPrimitive.DialogContentProps {
|
|
901
|
-
size?:
|
|
909
|
+
size?: Size | 'xl' | 'full';
|
|
902
910
|
surface?: SurfaceValue;
|
|
903
911
|
}
|
|
904
912
|
declare const Dialog: {
|
|
@@ -1146,11 +1154,11 @@ declare const Combobox: {
|
|
|
1146
1154
|
disablePointerSelection?: boolean;
|
|
1147
1155
|
vimBindings?: boolean;
|
|
1148
1156
|
} & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
1149
|
-
Input: React.ForwardRefExoticComponent<Omit<Omit<Pick<Pick<React.DetailedHTMLProps<React.InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>,
|
|
1157
|
+
Input: React.ForwardRefExoticComponent<Omit<Omit<Pick<Pick<React.DetailedHTMLProps<React.InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, keyof React.InputHTMLAttributes<HTMLInputElement> | "key"> & {
|
|
1150
1158
|
ref?: React.Ref<HTMLInputElement>;
|
|
1151
1159
|
} & {
|
|
1152
1160
|
asChild?: boolean;
|
|
1153
|
-
}, "asChild" |
|
|
1161
|
+
}, "asChild" | keyof React.InputHTMLAttributes<HTMLInputElement> | "key">, "value" | "onChange" | "type"> & {
|
|
1154
1162
|
value?: string;
|
|
1155
1163
|
onValueChange?: (search: string) => void;
|
|
1156
1164
|
} & React.RefAttributes<HTMLInputElement>, "ref"> & React.RefAttributes<HTMLInputElement>>;
|
|
@@ -1244,7 +1252,7 @@ interface SliderProps extends RadixSlider.SliderProps {
|
|
|
1244
1252
|
declare const Slider: React.ForwardRefExoticComponent<SliderProps & React.RefAttributes<HTMLSpanElement>>;
|
|
1245
1253
|
|
|
1246
1254
|
declare const toggleVariants: (props?: ({
|
|
1247
|
-
variant?: "
|
|
1255
|
+
variant?: "outline" | "default" | null | undefined;
|
|
1248
1256
|
size?: "sm" | "md" | "lg" | null | undefined;
|
|
1249
1257
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
1250
1258
|
interface ToggleProps extends RadixToggle.ToggleProps, VariantProps<typeof toggleVariants> {
|
|
@@ -1258,13 +1266,13 @@ type RootProps$1 = (RadixToggleGroup.ToggleGroupSingleProps | RadixToggleGroup.T
|
|
|
1258
1266
|
declare const ToggleGroup: {
|
|
1259
1267
|
Root: React.ForwardRefExoticComponent<RootProps$1 & React.RefAttributes<HTMLDivElement>>;
|
|
1260
1268
|
Item: React.ForwardRefExoticComponent<RadixToggleGroup.ToggleGroupItemProps & VariantProps<(props?: ({
|
|
1261
|
-
variant?: "
|
|
1269
|
+
variant?: "outline" | "default" | null | undefined;
|
|
1262
1270
|
size?: "sm" | "md" | "lg" | null | undefined;
|
|
1263
1271
|
} & class_variance_authority_types.ClassProp) | undefined) => string> & React.RefAttributes<HTMLButtonElement>>;
|
|
1264
1272
|
};
|
|
1265
1273
|
|
|
1266
1274
|
interface SegmentedControlProps extends Omit<RadixToggleGroup.ToggleGroupSingleProps, 'type'> {
|
|
1267
|
-
size?:
|
|
1275
|
+
size?: Size;
|
|
1268
1276
|
}
|
|
1269
1277
|
interface SegmentedControlItemProps extends RadixToggleGroup.ToggleGroupItemProps {
|
|
1270
1278
|
}
|
|
@@ -1502,11 +1510,11 @@ interface CommandPaletteRootProps extends DialogPrimitive.DialogProps {
|
|
|
1502
1510
|
}
|
|
1503
1511
|
declare const CommandPalette: {
|
|
1504
1512
|
Root: React.ForwardRefExoticComponent<CommandPaletteRootProps & React.RefAttributes<HTMLDivElement>>;
|
|
1505
|
-
Input: React.ForwardRefExoticComponent<Omit<Omit<Pick<Pick<React.DetailedHTMLProps<React.InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>,
|
|
1513
|
+
Input: React.ForwardRefExoticComponent<Omit<Omit<Pick<Pick<React.DetailedHTMLProps<React.InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, keyof React.InputHTMLAttributes<HTMLInputElement> | "key"> & {
|
|
1506
1514
|
ref?: React.Ref<HTMLInputElement>;
|
|
1507
1515
|
} & {
|
|
1508
1516
|
asChild?: boolean;
|
|
1509
|
-
}, "asChild" |
|
|
1517
|
+
}, "asChild" | keyof React.InputHTMLAttributes<HTMLInputElement> | "key">, "value" | "onChange" | "type"> & {
|
|
1510
1518
|
value?: string;
|
|
1511
1519
|
onValueChange?: (search: string) => void;
|
|
1512
1520
|
} & React.RefAttributes<HTMLInputElement>, "ref"> & React.RefAttributes<HTMLInputElement>>;
|
|
@@ -1718,6 +1726,8 @@ interface ThemeScriptProps {
|
|
|
1718
1726
|
productStorageKey?: string;
|
|
1719
1727
|
/** Must match ThemeProvider's `glassStorageKey`. Defaults to 'nexub-glass'. */
|
|
1720
1728
|
glassStorageKey?: string;
|
|
1729
|
+
/** If set, a stored contrast level ('standard' | 'medium' | 'high') is applied as `data-contrast`. */
|
|
1730
|
+
contrastStorageKey?: string;
|
|
1721
1731
|
/** CSP nonce for pages whose script-src disallows inline scripts. */
|
|
1722
1732
|
nonce?: string;
|
|
1723
1733
|
}
|
|
@@ -1725,7 +1735,7 @@ interface ThemeScriptProps {
|
|
|
1725
1735
|
* Applies the stored theme before first paint, so there is no light/dark flash.
|
|
1726
1736
|
* Render it in `<head>` (or at the top of `<body>`) on server-rendered pages.
|
|
1727
1737
|
*/
|
|
1728
|
-
declare function ThemeScript({ storageKey, productStorageKey, glassStorageKey, nonce }: ThemeScriptProps): React.JSX.Element;
|
|
1738
|
+
declare function ThemeScript({ storageKey, productStorageKey, glassStorageKey, contrastStorageKey, nonce, }: ThemeScriptProps): React.JSX.Element;
|
|
1729
1739
|
|
|
1730
1740
|
type MotionDuration = 'instant' | 'fast' | 'normal' | 'slow' | 'slower';
|
|
1731
1741
|
type MotionEasing = 'linear' | 'in' | 'out' | 'in-out' | 'out-expo' | 'spring';
|
|
@@ -1886,4 +1896,5 @@ declare const SkeletonSwap: React.ForwardRefExoticComponent<SkeletonSwapProps &
|
|
|
1886
1896
|
/** True when the user asked the OS for reduced motion. False during SSR. */
|
|
1887
1897
|
declare function usePrefersReducedMotion(): boolean;
|
|
1888
1898
|
|
|
1889
|
-
export { Accordion, Alert, AlertDialog,
|
|
1899
|
+
export { Accordion, Alert, AlertDialog, Amount, AppShell, AspectRatio, Autocomplete, Avatar, AvatarGroup, Badge, Banner, Box, Breadcrumb, Button, ButtonGroup, Callout, Card, CardLink, CheckList, CheckListItem, Checkbox, CheckboxCard, Chip, Citation, Code, Collapse, Collapsible, Combobox, CommandPalette, Container, ContextMenu, CountryBadge, DataTable, DatePicker, DateRangePicker, Dialog, Drawer, DropdownMenu, EmptyState, ErrorState, EyebrowChip, Fade, FileUpload, FilterChip, Flag, Flex, FormError, FormField, GradientDivider, Grid, Heading, HelperText, HoverCard, IconButton, Input, Kbd, KeyboardShortcut, Label, Link, ListTransition, Logo, MediaCard, Menubar, MessageActions, MessageBubble, MoneyInput, NavigationMenu, NavigationRail, NexubProvider, NumberInput, NumberTicker, PageHeader, Pagination, PasswordInput, Popover, Progress, PromptInput, RadioCard, RadioCardGroup, RadioGroup, Rating, Scale, ScrollArea, SearchInput, Section, SegmentedControl, Select, Separator, Sheet, Sidebar, Skeleton, SkeletonSwap, Slide, Slider, SourceChip, SourceList, Spinner, SplitButton, Stack, StatusPill, StreamingText, Switch, Table, Tabs, Tag, Text, TextGradient, Textarea, ThemeProvider, ThemeScript, ThinkingIndicator, Toast, Toaster, Toggle, ToggleGroup, Toolbar, Tooltip, Provider$1 as TooltipProvider, TopNav, addonVariants, alertVariants, avatarGroupVariants, avatarVariants, badgeVariants, bannerVariants, buttonVariants, calloutVariants, cardVariants, chipVariants, cn, containerVariants, defaultMessageStrings, headingVariants, iconButtonVariants, inputVariants, inputWrapperVariants, labelVariants, linkVariants, logoVariants, progressFillVariants, progressTrackVariants, ratingVariants, safeUrl, sectionVariants, separatorVariants, skeletonVariants, spinnerVariants, startViewTransition, statusPillVariants, tagVariants, textVariants, textareaVariants, toast, toggleVariants, useControllableState, useDisclosure, useIsomorphicLayoutEffect, useLocale, useMediaQuery, useMergedRefs, useNexubMessages, usePointerSheen, usePrefersReducedMotion, useTheme, useToastStore };
|
|
1900
|
+
export type { AlertProps, AmountProps, AspectRatioProps, AutocompleteOption, AutocompleteProps, AvatarGroupProps, AvatarProps, BadgeProps, BannerProps, BoxProps, ButtonGroupProps, ButtonProps, ButtonStatus, CalloutProps, CardLinkProps, CardProps, CheckListItemProps, CheckListProps, CheckboxCardProps, CheckboxProps, ChipProps, CitationMessages, CitationProps, CitationSource, CodeProps, CollapseProps, CommandPaletteRootProps, ContainerProps, CountryBadgeProps, DataTableColumn, DataTableProps, DatePickerProps, DateRangePickerProps, DrawerRootProps, ErrorStateProps, EyebrowChipProps, FadeProps, Feedback, FileUploadRootProps, FilterChipProps, FlagProps, FlexProps, FormErrorProps, FormFieldContextValue, FormFieldRootProps, GradientDividerProps, GridProps, HeadingProps, HelperTextProps, IconButtonProps, InputProps, KbdProps, KeyboardShortcutProps, LabelProps, LinkProps, ListTransitionProps, LogoProps, MediaCardProps, MediaCardRatio, MessageActionsProps, MessageBubbleProps, MessageFrom, MessageStrings, MoneyInputProps, MotionBaseProps, MotionDuration, MotionEasing, NavigationRailItemProps, NavigationRailRootProps, NexubProviderProps, NumberInputProps, NumberTickerPart, NumberTickerProps, PageHeaderProps, PaginationProps, PasswordInputProps, ProgressProps, PromptInputMessages, PromptInputProps, PromptInputStatus, RadioCardGroupProps, RadioCardProps, RatingProps, ScaleProps, ScrollAreaProps, SearchInputProps, SectionProps, SegmentedControlItemProps, SegmentedControlProps, SeparatorProps, SidebarGroupProps, SidebarHeaderProps, SidebarItemProps, SidebarRootProps, Size, SkeletonProps, SkeletonSwapProps, SlideDirection, SlideProps, SliderProps, SourceChipProps, SourceListProps, SpinnerProps, SplitButtonProps, StackProps, StatusPillProps, StreamingTextProps, SwitchProps, TableRootProps, TagProps, TextGradientProps, TextProps, TextareaProps, ThemeContextValue, ThemeMode, ThemeProviderProps, ThemeScriptProps, ThinkingIndicatorMessages, ThinkingIndicatorProps, ToastItem, ToasterProps, ToggleProps, ToolbarRootProps, TopNavItemProps, TopNavRootProps, UndoableToastOptions };
|