@douglasneuroinformatics/libui 2.0.0-beta.5 → 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 +30 -13
- package/dist/components/index.js +425 -356
- 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>>;
|
|
@@ -871,6 +872,18 @@ type LanguageToggleProps = {
|
|
|
871
872
|
};
|
|
872
873
|
declare const LanguageToggle: ({ align, options }?: LanguageToggleProps) => react_jsx_runtime.JSX.Element;
|
|
873
874
|
|
|
875
|
+
/** @deprecated */
|
|
876
|
+
type LegacyModalProps = {
|
|
877
|
+
children: react__default.ReactNode;
|
|
878
|
+
onClose: () => void;
|
|
879
|
+
open: boolean;
|
|
880
|
+
showCloseButton?: boolean;
|
|
881
|
+
title: string;
|
|
882
|
+
width?: 'lg' | 'md' | 'sm' | 'xl';
|
|
883
|
+
};
|
|
884
|
+
/** @deprecated */
|
|
885
|
+
declare const LegacyModal: ({ children, onClose, open, showCloseButton, title, width }: LegacyModalProps) => react_jsx_runtime.JSX.Element;
|
|
886
|
+
|
|
874
887
|
/** @deprecated */
|
|
875
888
|
type LegacySliderProps = {
|
|
876
889
|
children: react__default.ReactNode;
|
|
@@ -896,10 +909,14 @@ type LegacyStepperProps = {
|
|
|
896
909
|
declare const LegacyStepper: ({ className, steps }: LegacyStepperProps) => react_jsx_runtime.JSX.Element;
|
|
897
910
|
|
|
898
911
|
/** An array of arbitrary objects with data to graph */
|
|
899
|
-
type LineGraphData = readonly
|
|
912
|
+
type LineGraphData = readonly {
|
|
913
|
+
[key: string]: any;
|
|
914
|
+
}[];
|
|
900
915
|
/** Extract string keys from items in `T` where the value of `T[K]` extends `K` */
|
|
901
916
|
type ExtractValidKeys<T extends LineGraphData, K> = Extract<ConditionalKeys<T[number], K>, string>;
|
|
902
|
-
type LineGraphLine<T extends LineGraphData =
|
|
917
|
+
type LineGraphLine<T extends LineGraphData = {
|
|
918
|
+
[key: string]: any;
|
|
919
|
+
}[]> = Pick<LineProps, 'legendType' | 'stroke' | 'strokeDasharray' | 'strokeWidth' | 'type'> & {
|
|
903
920
|
err?: ExtractValidKeys<T, number>;
|
|
904
921
|
name: string;
|
|
905
922
|
val: ExtractValidKeys<T, number>;
|
|
@@ -1025,7 +1042,7 @@ declare const Pagination: (({ className, ...props }: react.DetailedHTMLProps<rea
|
|
|
1025
1042
|
"aria-colindextext"?: string | undefined;
|
|
1026
1043
|
"aria-colspan"?: number | undefined;
|
|
1027
1044
|
"aria-controls"?: string | undefined;
|
|
1028
|
-
"aria-current"?: boolean | "time" | "
|
|
1045
|
+
"aria-current"?: boolean | "time" | "step" | "true" | "false" | "page" | "location" | "date" | undefined;
|
|
1029
1046
|
"aria-describedby"?: string | undefined;
|
|
1030
1047
|
"aria-description"?: string | undefined;
|
|
1031
1048
|
"aria-details"?: string | undefined;
|
|
@@ -1304,7 +1321,7 @@ declare const Pagination: (({ className, ...props }: react.DetailedHTMLProps<rea
|
|
|
1304
1321
|
"aria-colindextext"?: string | undefined;
|
|
1305
1322
|
"aria-colspan"?: number | undefined;
|
|
1306
1323
|
"aria-controls"?: string | undefined;
|
|
1307
|
-
"aria-current"?: boolean | "time" | "
|
|
1324
|
+
"aria-current"?: boolean | "time" | "step" | "true" | "false" | "page" | "location" | "date" | undefined;
|
|
1308
1325
|
"aria-describedby"?: string | undefined;
|
|
1309
1326
|
"aria-description"?: string | undefined;
|
|
1310
1327
|
"aria-details"?: string | undefined;
|
|
@@ -1583,7 +1600,7 @@ declare const Pagination: (({ className, ...props }: react.DetailedHTMLProps<rea
|
|
|
1583
1600
|
"aria-colindextext"?: string | undefined;
|
|
1584
1601
|
"aria-colspan"?: number | undefined;
|
|
1585
1602
|
"aria-controls"?: string | undefined;
|
|
1586
|
-
"aria-current"?: boolean | "time" | "
|
|
1603
|
+
"aria-current"?: boolean | "time" | "step" | "true" | "false" | "page" | "location" | "date" | undefined;
|
|
1587
1604
|
"aria-describedby"?: string | undefined;
|
|
1588
1605
|
"aria-description"?: string | undefined;
|
|
1589
1606
|
"aria-details"?: string | undefined;
|
|
@@ -1939,4 +1956,4 @@ declare const Tooltip: (({ children, delayDuration, skipDelayDuration }: Tooltip
|
|
|
1939
1956
|
Trigger: react.ForwardRefExoticComponent<TooltipTriggerProps & react.RefAttributes<HTMLButtonElement>>;
|
|
1940
1957
|
};
|
|
1941
1958
|
|
|
1942
|
-
export { Accordion, AlertDialog, ArrowToggle, type ArrowToggleProps, Avatar, BUTTON_ICON_SIZE, Badge, type BadgeProps, Breadcrumb, Button, type ButtonProps, Card, Checkbox, Collapsible, Command, ContextMenu, DatePicker, type DatePickerProps, Dialog, Drawer, DropdownButton, DropdownMenu, ErrorBoundary, ErrorFallback, type ErrorFallbackProps, Form, type FormProps, Heading, type HeadingProps, HoverCard, Input, type InputProps, Label, LanguageToggle, type LanguageToggleProps, LegacySlider, type LegacySliderProps, LegacyStepper, type LegacyStepperProps, LineGraph, type LineGraphData, type LineGraphLine, MenuBar, NotificationHub, type NotificationHubProps, Pagination, Popover, Progress, RadioGroup, type RadioGroupProps, Resizable, ScrollArea, SearchBar, type SearchBarProps, Select, Separator, Sheet, Slider, Spinner, SpinnerIcon, type Step, Switch, Table, Tabs, TextArea, type TextAreaProps, ThemeToggle, type ThemeToggleProps, Tooltip, badgeVariants, buttonVariants, labelVariants };
|
|
1959
|
+
export { Accordion, AlertDialog, ArrowToggle, type ArrowToggleProps, Avatar, BUTTON_ICON_SIZE, Badge, type BadgeProps, Breadcrumb, Button, type ButtonProps, Card, Checkbox, Collapsible, Command, ContextMenu, DatePicker, type DatePickerProps, Dialog, Drawer, DropdownButton, DropdownMenu, ErrorBoundary, ErrorFallback, type ErrorFallbackProps, Form, type FormProps, Heading, type HeadingProps, HoverCard, Input, type InputProps, Label, LanguageToggle, type LanguageToggleProps, LegacyModal, type LegacyModalProps, LegacySlider, type LegacySliderProps, LegacyStepper, type LegacyStepperProps, LineGraph, type LineGraphData, type LineGraphLine, MenuBar, NotificationHub, type NotificationHubProps, Pagination, Popover, Progress, RadioGroup, type RadioGroupProps, Resizable, ScrollArea, SearchBar, type SearchBarProps, Select, Separator, Sheet, Slider, Spinner, SpinnerIcon, type Step, Switch, Table, Tabs, TextArea, type TextAreaProps, ThemeToggle, type ThemeToggleProps, Tooltip, badgeVariants, buttonVariants, labelVariants };
|