@douglasneuroinformatics/libui 2.0.0-beta.6 → 2.0.0-beta.7
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/components/index.d.ts +17 -12
- package/dist/components/index.js +166 -163
- package/dist/components/index.js.map +1 -1
- package/dist/hooks/index.d.ts +1 -1
- package/dist/i18n.d.ts +5 -1
- package/dist/i18n.js.map +1 -1
- package/package.json +33 -33
|
@@ -135,7 +135,7 @@ declare const Button: react__default.ForwardRefExoticComponent<{
|
|
|
135
135
|
"aria-colindextext"?: string | undefined;
|
|
136
136
|
"aria-colspan"?: number | undefined;
|
|
137
137
|
"aria-controls"?: string | undefined;
|
|
138
|
-
"aria-current"?: boolean | "time" | "
|
|
138
|
+
"aria-current"?: boolean | "time" | "step" | "true" | "false" | "page" | "location" | "date" | undefined;
|
|
139
139
|
"aria-describedby"?: string | undefined;
|
|
140
140
|
"aria-description"?: string | undefined;
|
|
141
141
|
"aria-details"?: string | undefined;
|
|
@@ -352,6 +352,7 @@ type ArrowToggleProps = Simplify<react__default.HTMLAttributes<HTMLButtonElement
|
|
|
352
352
|
position: 'down' | 'left' | 'right' | 'up';
|
|
353
353
|
/** The clockwise rotation of the arrow when toggled (e.g., if the position is 'right' and rotation is 90, the arrow will point down) */
|
|
354
354
|
rotation?: number;
|
|
355
|
+
size?: ButtonProps['size'];
|
|
355
356
|
/** The variant of button to use */
|
|
356
357
|
variant?: Extract<ButtonProps['variant'], 'ghost' | 'outline'>;
|
|
357
358
|
}>;
|
|
@@ -417,7 +418,7 @@ declare const ArrowToggle: react__default.ForwardRefExoticComponent<{
|
|
|
417
418
|
"aria-colindextext"?: string | undefined;
|
|
418
419
|
"aria-colspan"?: number | undefined;
|
|
419
420
|
"aria-controls"?: string | undefined;
|
|
420
|
-
"aria-current"?: boolean | "time" | "
|
|
421
|
+
"aria-current"?: boolean | "time" | "step" | "true" | "false" | "page" | "location" | "date" | undefined;
|
|
421
422
|
"aria-describedby"?: string | undefined;
|
|
422
423
|
"aria-description"?: string | undefined;
|
|
423
424
|
"aria-details"?: string | undefined;
|
|
@@ -624,6 +625,7 @@ declare const ArrowToggle: react__default.ForwardRefExoticComponent<{
|
|
|
624
625
|
isToggled?: boolean | undefined;
|
|
625
626
|
position: 'down' | 'left' | 'right' | 'up';
|
|
626
627
|
rotation?: number | undefined;
|
|
628
|
+
size?: ButtonProps['size'];
|
|
627
629
|
variant?: "ghost" | "outline" | undefined;
|
|
628
630
|
} & react__default.RefAttributes<HTMLButtonElement>>;
|
|
629
631
|
|
|
@@ -633,10 +635,9 @@ declare const Avatar: react.ForwardRefExoticComponent<Omit<_radix_ui_react_avata
|
|
|
633
635
|
};
|
|
634
636
|
|
|
635
637
|
declare const badgeVariants: (props?: ({
|
|
636
|
-
variant?: "
|
|
638
|
+
variant?: "default" | "outline" | "secondary" | "destructive" | null | undefined;
|
|
637
639
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
638
|
-
|
|
639
|
-
}
|
|
640
|
+
type BadgeProps = react__default.HTMLAttributes<HTMLDivElement> & VariantProps<typeof badgeVariants>;
|
|
640
641
|
declare const Badge: ({ className, variant, ...props }: BadgeProps) => react_jsx_runtime.JSX.Element;
|
|
641
642
|
|
|
642
643
|
declare const Breadcrumb: react.ForwardRefExoticComponent<Omit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLElement>, HTMLElement>, "ref"> & {
|
|
@@ -697,7 +698,7 @@ declare const Command: react__default.ForwardRefExoticComponent<Omit<{
|
|
|
697
698
|
ref?: react__default.Ref<HTMLDivElement> | undefined;
|
|
698
699
|
} & {
|
|
699
700
|
asChild?: boolean | undefined;
|
|
700
|
-
}, "key" | keyof react__default.HTMLAttributes<HTMLDivElement> | "asChild">, "
|
|
701
|
+
}, "key" | keyof react__default.HTMLAttributes<HTMLDivElement> | "asChild">, "value" | "heading"> & {
|
|
701
702
|
heading?: react__default.ReactNode;
|
|
702
703
|
value?: string | undefined;
|
|
703
704
|
forceMount?: boolean | undefined;
|
|
@@ -706,7 +707,7 @@ declare const Command: react__default.ForwardRefExoticComponent<Omit<{
|
|
|
706
707
|
ref?: react__default.Ref<HTMLInputElement> | undefined;
|
|
707
708
|
} & {
|
|
708
709
|
asChild?: boolean | undefined;
|
|
709
|
-
}, "key" | "asChild" | keyof react__default.InputHTMLAttributes<HTMLInputElement>>, "onChange" | "
|
|
710
|
+
}, "key" | "asChild" | keyof react__default.InputHTMLAttributes<HTMLInputElement>>, "onChange" | "type" | "value"> & {
|
|
710
711
|
value?: string | undefined;
|
|
711
712
|
onValueChange?: ((search: string) => void) | undefined;
|
|
712
713
|
} & react__default.RefAttributes<HTMLInputElement>, "ref"> & react__default.RefAttributes<HTMLInputElement>>;
|
|
@@ -908,10 +909,14 @@ type LegacyStepperProps = {
|
|
|
908
909
|
declare const LegacyStepper: ({ className, steps }: LegacyStepperProps) => react_jsx_runtime.JSX.Element;
|
|
909
910
|
|
|
910
911
|
/** An array of arbitrary objects with data to graph */
|
|
911
|
-
type LineGraphData = readonly
|
|
912
|
+
type LineGraphData = readonly {
|
|
913
|
+
[key: string]: any;
|
|
914
|
+
}[];
|
|
912
915
|
/** Extract string keys from items in `T` where the value of `T[K]` extends `K` */
|
|
913
916
|
type ExtractValidKeys<T extends LineGraphData, K> = Extract<ConditionalKeys<T[number], K>, string>;
|
|
914
|
-
type LineGraphLine<T extends LineGraphData =
|
|
917
|
+
type LineGraphLine<T extends LineGraphData = {
|
|
918
|
+
[key: string]: any;
|
|
919
|
+
}[]> = Pick<LineProps, 'legendType' | 'stroke' | 'strokeDasharray' | 'strokeWidth' | 'type'> & {
|
|
915
920
|
err?: ExtractValidKeys<T, number>;
|
|
916
921
|
name: string;
|
|
917
922
|
val: ExtractValidKeys<T, number>;
|
|
@@ -1037,7 +1042,7 @@ declare const Pagination: (({ className, ...props }: react.DetailedHTMLProps<rea
|
|
|
1037
1042
|
"aria-colindextext"?: string | undefined;
|
|
1038
1043
|
"aria-colspan"?: number | undefined;
|
|
1039
1044
|
"aria-controls"?: string | undefined;
|
|
1040
|
-
"aria-current"?: boolean | "time" | "
|
|
1045
|
+
"aria-current"?: boolean | "time" | "step" | "true" | "false" | "page" | "location" | "date" | undefined;
|
|
1041
1046
|
"aria-describedby"?: string | undefined;
|
|
1042
1047
|
"aria-description"?: string | undefined;
|
|
1043
1048
|
"aria-details"?: string | undefined;
|
|
@@ -1316,7 +1321,7 @@ declare const Pagination: (({ className, ...props }: react.DetailedHTMLProps<rea
|
|
|
1316
1321
|
"aria-colindextext"?: string | undefined;
|
|
1317
1322
|
"aria-colspan"?: number | undefined;
|
|
1318
1323
|
"aria-controls"?: string | undefined;
|
|
1319
|
-
"aria-current"?: boolean | "time" | "
|
|
1324
|
+
"aria-current"?: boolean | "time" | "step" | "true" | "false" | "page" | "location" | "date" | undefined;
|
|
1320
1325
|
"aria-describedby"?: string | undefined;
|
|
1321
1326
|
"aria-description"?: string | undefined;
|
|
1322
1327
|
"aria-details"?: string | undefined;
|
|
@@ -1595,7 +1600,7 @@ declare const Pagination: (({ className, ...props }: react.DetailedHTMLProps<rea
|
|
|
1595
1600
|
"aria-colindextext"?: string | undefined;
|
|
1596
1601
|
"aria-colspan"?: number | undefined;
|
|
1597
1602
|
"aria-controls"?: string | undefined;
|
|
1598
|
-
"aria-current"?: boolean | "time" | "
|
|
1603
|
+
"aria-current"?: boolean | "time" | "step" | "true" | "false" | "page" | "location" | "date" | undefined;
|
|
1599
1604
|
"aria-describedby"?: string | undefined;
|
|
1600
1605
|
"aria-description"?: string | undefined;
|
|
1601
1606
|
"aria-details"?: string | undefined;
|