@douglasneuroinformatics/libui 2.0.8 → 2.1.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/components/ArrowToggle/ArrowToggle.d.ts +7 -7
- package/dist/components/ArrowToggle/ArrowToggle.d.ts.map +1 -1
- package/dist/components/Breadcrumb/Breadcrumb.d.ts +4 -4
- package/dist/components/Breadcrumb/BreadcrumbLink.d.ts +2 -2
- package/dist/components/Breadcrumb/BreadcrumbLink.d.ts.map +1 -1
- package/dist/components/Breadcrumb/BreadcrumbRoot.d.ts +2 -2
- package/dist/components/Breadcrumb/BreadcrumbRoot.d.ts.map +1 -1
- package/dist/components/Button/Button.d.ts +4 -4
- package/dist/components/Button/Button.d.ts.map +1 -1
- package/dist/components/ContextMenu/ContextMenu.d.ts +6 -6
- package/dist/components/ContextMenu/ContextMenuItem.d.ts +2 -2
- package/dist/components/ContextMenu/ContextMenuItem.d.ts.map +1 -1
- package/dist/components/ContextMenu/ContextMenuLabel.d.ts +2 -2
- package/dist/components/ContextMenu/ContextMenuLabel.d.ts.map +1 -1
- package/dist/components/ContextMenu/ContextMenuSubTrigger.d.ts +2 -2
- package/dist/components/ContextMenu/ContextMenuSubTrigger.d.ts.map +1 -1
- package/dist/components/Drawer/Drawer.d.ts.map +1 -1
- package/dist/components/DropdownMenu/DropdownMenu.d.ts +8 -8
- package/dist/components/DropdownMenu/DropdownMenuContent.d.ts +4 -4
- package/dist/components/DropdownMenu/DropdownMenuContent.d.ts.map +1 -1
- package/dist/components/DropdownMenu/DropdownMenuItem.d.ts +2 -2
- package/dist/components/DropdownMenu/DropdownMenuItem.d.ts.map +1 -1
- package/dist/components/DropdownMenu/DropdownMenuLabel.d.ts +2 -2
- package/dist/components/DropdownMenu/DropdownMenuLabel.d.ts.map +1 -1
- package/dist/components/DropdownMenu/DropdownMenuSubTrigger.d.ts +2 -2
- package/dist/components/DropdownMenu/DropdownMenuSubTrigger.d.ts.map +1 -1
- package/dist/components/Form/BaseRadioField.d.ts +2 -2
- package/dist/components/Form/BaseRadioField.d.ts.map +1 -1
- package/dist/components/Form/DynamicField.js +1 -1
- package/dist/components/Form/Form.js +1 -1
- package/dist/components/Form/NumberField/NumberField.d.ts.map +1 -1
- package/dist/components/Form/NumberField/NumberField.js +2 -0
- package/dist/components/Form/NumberField/NumberFieldRadio.d.ts +1 -1
- package/dist/components/Form/NumberField/NumberFieldRadio.d.ts.map +1 -1
- package/dist/components/Form/NumberField/NumberFieldSelect.d.ts +9 -0
- package/dist/components/Form/NumberField/NumberFieldSelect.d.ts.map +1 -0
- package/dist/components/Form/NumberField/NumberFieldSelect.js +16 -0
- package/dist/components/Form/RecordArrayField.js +1 -1
- package/dist/components/Form/ScalarField.d.ts +2 -2
- package/dist/components/Form/ScalarField.d.ts.map +1 -1
- package/dist/components/Form/SetField/SetFieldListbox.d.ts +2 -2
- package/dist/components/Form/SetField/SetFieldListbox.d.ts.map +1 -1
- package/dist/components/Form/SetField/SetFieldSelect.d.ts +2 -2
- package/dist/components/Form/SetField/SetFieldSelect.d.ts.map +1 -1
- package/dist/components/Form/utils.js +1 -1
- package/dist/components/LineGraph/LineGraph.d.ts +2 -2
- package/dist/components/LineGraph/LineGraph.d.ts.map +1 -1
- package/dist/components/MenuBar/MenuBar.d.ts +6 -6
- package/dist/components/MenuBar/MenuBarItem.d.ts +2 -2
- package/dist/components/MenuBar/MenuBarItem.d.ts.map +1 -1
- package/dist/components/MenuBar/MenuBarLabel.d.ts +2 -2
- package/dist/components/MenuBar/MenuBarLabel.d.ts.map +1 -1
- package/dist/components/MenuBar/MenuBarSubTrigger.d.ts +2 -2
- package/dist/components/MenuBar/MenuBarSubTrigger.d.ts.map +1 -1
- package/dist/components/Pagination/Pagination.d.ts +3 -3
- package/dist/components/Pagination/PaginationLink.d.ts +2 -2
- package/dist/components/Pagination/PaginationLink.d.ts.map +1 -1
- package/dist/components/Resizable/Resizable.d.ts +2 -2
- package/dist/components/Resizable/Resizable.d.ts.map +1 -1
- package/dist/components/Resizable/ResizableHandle.d.ts +2 -2
- package/dist/components/Resizable/ResizableHandle.d.ts.map +1 -1
- package/dist/components/SearchBar/SearchBar.d.ts +4 -4
- package/dist/components/SearchBar/SearchBar.d.ts.map +1 -1
- package/dist/i18n.d.ts +2 -2
- package/dist/i18n.d.ts.map +1 -1
- package/dist/testing/mocks.d.ts +1 -1
- package/dist/testing/mocks.d.ts.map +1 -1
- package/package.json +3 -3
- package/src/components/ArrowToggle/ArrowToggle.tsx +2 -2
- package/src/components/Breadcrumb/BreadcrumbLink.tsx +2 -2
- package/src/components/Breadcrumb/BreadcrumbRoot.tsx +2 -2
- package/src/components/Button/Button.tsx +6 -6
- package/src/components/ContextMenu/ContextMenuItem.tsx +2 -2
- package/src/components/ContextMenu/ContextMenuLabel.tsx +2 -2
- package/src/components/ContextMenu/ContextMenuSubTrigger.tsx +2 -2
- package/src/components/DropdownMenu/DropdownMenuContent.tsx +2 -2
- package/src/components/DropdownMenu/DropdownMenuItem.tsx +2 -2
- package/src/components/DropdownMenu/DropdownMenuLabel.tsx +2 -2
- package/src/components/DropdownMenu/DropdownMenuSubTrigger.tsx +2 -2
- package/src/components/Form/BaseRadioField.tsx +2 -2
- package/src/components/Form/DynamicField.tsx +1 -1
- package/src/components/Form/Form.tsx +1 -1
- package/src/components/Form/NumberField/NumberField.tsx +2 -0
- package/src/components/Form/NumberField/NumberFieldRadio.tsx +1 -1
- package/src/components/Form/NumberField/NumberFieldSelect.tsx +46 -0
- package/src/components/Form/RecordArrayField.tsx +1 -1
- package/src/components/Form/ScalarField.tsx +2 -2
- package/src/components/Form/SetField/SetFieldListbox.tsx +2 -2
- package/src/components/Form/SetField/SetFieldSelect.tsx +2 -2
- package/src/components/Form/utils.ts +1 -1
- package/src/components/LineGraph/LineGraph.tsx +2 -5
- package/src/components/MenuBar/MenuBarItem.tsx +2 -2
- package/src/components/MenuBar/MenuBarLabel.tsx +2 -2
- package/src/components/MenuBar/MenuBarSubTrigger.tsx +2 -2
- package/src/components/Pagination/PaginationLink.tsx +4 -4
- package/src/components/Resizable/Resizable.tsx +2 -2
- package/src/components/Resizable/ResizableHandle.tsx +2 -2
- package/src/components/SearchBar/SearchBar.tsx +4 -4
- package/src/i18n.ts +2 -2
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import type { Simplify } from 'type-fest';
|
|
3
3
|
import { type ButtonProps } from '../Button/Button.js';
|
|
4
|
-
export type ArrowToggleProps = Simplify<
|
|
4
|
+
export type ArrowToggleProps = Simplify<{
|
|
5
5
|
/** Whether or not the arrow is currently toggled */
|
|
6
6
|
isToggled?: boolean;
|
|
7
7
|
/** The starting position of the arrow (i.e., which direction does it point to) */
|
|
@@ -11,8 +11,13 @@ export type ArrowToggleProps = Simplify<React.HTMLAttributes<HTMLButtonElement>
|
|
|
11
11
|
size?: ButtonProps['size'];
|
|
12
12
|
/** The variant of button to use */
|
|
13
13
|
variant?: Extract<ButtonProps['variant'], 'ghost' | 'outline'>;
|
|
14
|
-
}
|
|
14
|
+
} & React.HTMLAttributes<HTMLButtonElement>>;
|
|
15
15
|
export declare const ArrowToggle: React.ForwardRefExoticComponent<{
|
|
16
|
+
isToggled?: boolean | undefined;
|
|
17
|
+
position: 'down' | 'left' | 'right' | 'up';
|
|
18
|
+
rotation?: number | undefined;
|
|
19
|
+
size?: ButtonProps['size'];
|
|
20
|
+
variant?: "ghost" | "outline" | undefined;
|
|
16
21
|
defaultChecked?: boolean | undefined;
|
|
17
22
|
defaultValue?: string | number | readonly string[] | undefined;
|
|
18
23
|
suppressContentEditableWarning?: boolean | undefined;
|
|
@@ -278,10 +283,5 @@ export declare const ArrowToggle: React.ForwardRefExoticComponent<{
|
|
|
278
283
|
onAnimationIterationCapture?: React.AnimationEventHandler<HTMLButtonElement> | undefined;
|
|
279
284
|
onTransitionEnd?: React.TransitionEventHandler<HTMLButtonElement> | undefined;
|
|
280
285
|
onTransitionEndCapture?: React.TransitionEventHandler<HTMLButtonElement> | undefined;
|
|
281
|
-
isToggled?: boolean | undefined;
|
|
282
|
-
position: 'down' | 'left' | 'right' | 'up';
|
|
283
|
-
rotation?: number | undefined;
|
|
284
|
-
size?: ButtonProps['size'];
|
|
285
|
-
variant?: "ghost" | "outline" | undefined;
|
|
286
286
|
} & React.RefAttributes<HTMLButtonElement>>;
|
|
287
287
|
//# sourceMappingURL=ArrowToggle.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ArrowToggle.d.ts","sourceRoot":"","sources":["../../../src/components/ArrowToggle/ArrowToggle.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAkB,MAAM,OAAO,CAAC;AAGvC,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,WAAW,CAAC;AAG1C,OAAO,EAAU,KAAK,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAE/D,MAAM,MAAM,gBAAgB,GAAG,QAAQ,CACrC
|
|
1
|
+
{"version":3,"file":"ArrowToggle.d.ts","sourceRoot":"","sources":["../../../src/components/ArrowToggle/ArrowToggle.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAkB,MAAM,OAAO,CAAC;AAGvC,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,WAAW,CAAC;AAG1C,OAAO,EAAU,KAAK,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAE/D,MAAM,MAAM,gBAAgB,GAAG,QAAQ,CACrC;IACE,oDAAoD;IACpD,SAAS,CAAC,EAAE,OAAO,CAAC;IAEpB,kFAAkF;IAClF,QAAQ,EAAE,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,IAAI,CAAC;IAE3C,wIAAwI;IACxI,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB,IAAI,CAAC,EAAE,WAAW,CAAC,MAAM,CAAC,CAAC;IAE3B,mCAAmC;IACnC,OAAO,CAAC,EAAE,OAAO,CAAC,WAAW,CAAC,SAAS,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC,CAAC;CAChE,GAAG,KAAK,CAAC,cAAc,CAAC,iBAAiB,CAAC,CAC5C,CAAC;AAEF,eAAO,MAAM,WAAW;;cAZV,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,IAAI;;WAKnC,WAAW,CAAC,MAAM,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2CA2C5B,CAAC"}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
/// <reference types="react" resolution-mode="require"/>
|
|
2
|
-
export declare const Breadcrumb: import("react").ForwardRefExoticComponent<
|
|
2
|
+
export declare const Breadcrumb: import("react").ForwardRefExoticComponent<{
|
|
3
3
|
separator?: import("react").ReactNode;
|
|
4
|
-
} & import("react").RefAttributes<HTMLElement>> & {
|
|
4
|
+
} & Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLElement>, HTMLElement>, "ref"> & import("react").RefAttributes<HTMLElement>> & {
|
|
5
5
|
Ellipsis: ({ className, ...props }: import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>) => import("react").JSX.Element;
|
|
6
6
|
Item: import("react").ForwardRefExoticComponent<Omit<import("react").DetailedHTMLProps<import("react").LiHTMLAttributes<HTMLLIElement>, HTMLLIElement>, "ref"> & import("react").RefAttributes<HTMLLIElement>>;
|
|
7
|
-
Link: import("react").ForwardRefExoticComponent<
|
|
7
|
+
Link: import("react").ForwardRefExoticComponent<{
|
|
8
8
|
asChild?: boolean | undefined;
|
|
9
|
-
} & import("react").RefAttributes<HTMLAnchorElement>>;
|
|
9
|
+
} & Omit<import("react").DetailedHTMLProps<import("react").AnchorHTMLAttributes<HTMLAnchorElement>, HTMLAnchorElement>, "ref"> & import("react").RefAttributes<HTMLAnchorElement>>;
|
|
10
10
|
List: import("react").ForwardRefExoticComponent<Omit<import("react").DetailedHTMLProps<import("react").OlHTMLAttributes<HTMLOListElement>, HTMLOListElement>, "ref"> & import("react").RefAttributes<HTMLOListElement>>;
|
|
11
11
|
Page: import("react").ForwardRefExoticComponent<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "ref"> & import("react").RefAttributes<HTMLSpanElement>>;
|
|
12
12
|
Separator: ({ children, className, ...props }: import("react").DetailedHTMLProps<import("react").LiHTMLAttributes<HTMLLIElement>, HTMLLIElement>) => import("react").JSX.Element;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
export declare const BreadcrumbLink: React.ForwardRefExoticComponent<
|
|
2
|
+
export declare const BreadcrumbLink: React.ForwardRefExoticComponent<{
|
|
3
3
|
asChild?: boolean | undefined;
|
|
4
|
-
} & React.RefAttributes<HTMLAnchorElement>>;
|
|
4
|
+
} & Omit<React.DetailedHTMLProps<React.AnchorHTMLAttributes<HTMLAnchorElement>, HTMLAnchorElement>, "ref"> & React.RefAttributes<HTMLAnchorElement>>;
|
|
5
5
|
//# sourceMappingURL=BreadcrumbLink.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BreadcrumbLink.d.ts","sourceRoot":"","sources":["../../../src/components/Breadcrumb/BreadcrumbLink.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAM1B,eAAO,MAAM,cAAc;;
|
|
1
|
+
{"version":3,"file":"BreadcrumbLink.d.ts","sourceRoot":"","sources":["../../../src/components/Breadcrumb/BreadcrumbLink.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAM1B,eAAO,MAAM,cAAc;;oJAQzB,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
export declare const BreadcrumbRoot: React.ForwardRefExoticComponent<
|
|
2
|
+
export declare const BreadcrumbRoot: React.ForwardRefExoticComponent<{
|
|
3
3
|
separator?: React.ReactNode;
|
|
4
|
-
} & React.RefAttributes<HTMLElement>>;
|
|
4
|
+
} & Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement>, "ref"> & React.RefAttributes<HTMLElement>>;
|
|
5
5
|
//# sourceMappingURL=BreadcrumbRoot.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BreadcrumbRoot.d.ts","sourceRoot":"","sources":["../../../src/components/Breadcrumb/BreadcrumbRoot.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,eAAO,MAAM,cAAc;gBAGX,MAAM,SAAS;
|
|
1
|
+
{"version":3,"file":"BreadcrumbRoot.d.ts","sourceRoot":"","sources":["../../../src/components/Breadcrumb/BreadcrumbRoot.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,eAAO,MAAM,cAAc;gBAGX,MAAM,SAAS;4HAI7B,CAAC"}
|
|
@@ -10,12 +10,14 @@ export declare const buttonVariants: (props?: ({
|
|
|
10
10
|
size?: "md" | "icon" | "lg" | "sm" | null | undefined;
|
|
11
11
|
variant?: "link" | "primary" | "danger" | "ghost" | "outline" | "secondary" | null | undefined;
|
|
12
12
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
13
|
-
export type ButtonProps = Simplify<
|
|
13
|
+
export type ButtonProps = Simplify<{
|
|
14
14
|
asChild?: boolean;
|
|
15
15
|
/** @deprecated - use children */
|
|
16
16
|
label?: string;
|
|
17
|
-
}
|
|
17
|
+
} & React.ButtonHTMLAttributes<HTMLButtonElement> & VariantProps<typeof buttonVariants>>;
|
|
18
18
|
export declare const Button: React.ForwardRefExoticComponent<{
|
|
19
|
+
asChild?: boolean | undefined;
|
|
20
|
+
label?: string | undefined;
|
|
19
21
|
disabled?: boolean | undefined;
|
|
20
22
|
form?: string | undefined;
|
|
21
23
|
formAction?: string | undefined;
|
|
@@ -293,7 +295,5 @@ export declare const Button: React.ForwardRefExoticComponent<{
|
|
|
293
295
|
onTransitionEndCapture?: React.TransitionEventHandler<HTMLButtonElement> | undefined;
|
|
294
296
|
size?: "md" | "icon" | "lg" | "sm" | null | undefined;
|
|
295
297
|
variant?: "link" | "primary" | "danger" | "ghost" | "outline" | "secondary" | null | undefined;
|
|
296
|
-
asChild?: boolean | undefined;
|
|
297
|
-
label?: string | undefined;
|
|
298
298
|
} & React.RefAttributes<HTMLButtonElement>>;
|
|
299
299
|
//# sourceMappingURL=Button.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Button.d.ts","sourceRoot":"","sources":["../../../src/components/Button/Button.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,EAAE,KAAK,YAAY,EAAO,MAAM,0BAA0B,CAAC;AAClE,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,WAAW,CAAC;AAI1C,eAAO,MAAM,gBAAgB;;;;CAI5B,CAAC;AAEF,eAAO,MAAM,cAAc;;;8EAwB1B,CAAC;AAEF,MAAM,MAAM,WAAW,GAAG,QAAQ,CAChC,
|
|
1
|
+
{"version":3,"file":"Button.d.ts","sourceRoot":"","sources":["../../../src/components/Button/Button.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,EAAE,KAAK,YAAY,EAAO,MAAM,0BAA0B,CAAC;AAClE,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,WAAW,CAAC;AAI1C,eAAO,MAAM,gBAAgB;;;;CAI5B,CAAC;AAEF,eAAO,MAAM,cAAc;;;8EAwB1B,CAAC;AAEF,MAAM,MAAM,WAAW,GAAG,QAAQ,CAChC;IACE,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,mCAAmC;IACnC,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB,GAAG,KAAK,CAAC,oBAAoB,CAAC,iBAAiB,CAAC,GAC/C,YAAY,CAAC,OAAO,cAAc,CAAC,CACtC,CAAC;AAEF,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2CAWjB,CAAC"}
|
|
@@ -3,12 +3,12 @@ export declare const ContextMenu: import("react").FC<import("@radix-ui/react-con
|
|
|
3
3
|
CheckboxItem: import("react").ForwardRefExoticComponent<Omit<import("@radix-ui/react-context-menu").ContextMenuCheckboxItemProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
4
4
|
Content: import("react").ForwardRefExoticComponent<Omit<import("@radix-ui/react-context-menu").ContextMenuContentProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
5
5
|
Group: import("react").ForwardRefExoticComponent<import("@radix-ui/react-context-menu").ContextMenuGroupProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
6
|
-
Item: import("react").ForwardRefExoticComponent<
|
|
6
|
+
Item: import("react").ForwardRefExoticComponent<{
|
|
7
7
|
inset?: boolean | undefined;
|
|
8
|
-
} & import("react").RefAttributes<HTMLDivElement>>;
|
|
9
|
-
Label: import("react").ForwardRefExoticComponent<
|
|
8
|
+
} & Omit<import("@radix-ui/react-context-menu").ContextMenuItemProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
9
|
+
Label: import("react").ForwardRefExoticComponent<{
|
|
10
10
|
inset?: boolean | undefined;
|
|
11
|
-
} & import("react").RefAttributes<HTMLDivElement>>;
|
|
11
|
+
} & Omit<import("@radix-ui/react-context-menu").ContextMenuLabelProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
12
12
|
Portal: import("react").FC<import("@radix-ui/react-context-menu").ContextMenuPortalProps>;
|
|
13
13
|
RadioGroup: import("react").ForwardRefExoticComponent<import("@radix-ui/react-context-menu").ContextMenuRadioGroupProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
14
14
|
RadioItem: import("react").ForwardRefExoticComponent<Omit<import("@radix-ui/react-context-menu").ContextMenuRadioItemProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
@@ -16,9 +16,9 @@ export declare const ContextMenu: import("react").FC<import("@radix-ui/react-con
|
|
|
16
16
|
Shortcut: ({ className, ...props }: import("react").HTMLAttributes<HTMLSpanElement>) => import("react").JSX.Element;
|
|
17
17
|
Sub: import("react").FC<import("@radix-ui/react-context-menu").ContextMenuSubProps>;
|
|
18
18
|
SubContent: import("react").ForwardRefExoticComponent<Omit<import("@radix-ui/react-context-menu").ContextMenuSubContentProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
19
|
-
SubTrigger: import("react").ForwardRefExoticComponent<
|
|
19
|
+
SubTrigger: import("react").ForwardRefExoticComponent<{
|
|
20
20
|
inset?: boolean | undefined;
|
|
21
|
-
} & import("react").RefAttributes<HTMLDivElement>>;
|
|
21
|
+
} & Omit<import("@radix-ui/react-context-menu").ContextMenuSubTriggerProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
22
22
|
Trigger: import("react").ForwardRefExoticComponent<import("@radix-ui/react-context-menu").ContextMenuTriggerProps & import("react").RefAttributes<HTMLSpanElement>>;
|
|
23
23
|
};
|
|
24
24
|
//# sourceMappingURL=ContextMenu.d.ts.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import * as ContextMenuPrimitive from '@radix-ui/react-context-menu';
|
|
3
|
-
export declare const ContextMenuItem: React.ForwardRefExoticComponent<
|
|
3
|
+
export declare const ContextMenuItem: React.ForwardRefExoticComponent<{
|
|
4
4
|
inset?: boolean | undefined;
|
|
5
|
-
} & React.RefAttributes<HTMLDivElement>>;
|
|
5
|
+
} & Omit<ContextMenuPrimitive.ContextMenuItemProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
6
6
|
//# sourceMappingURL=ContextMenuItem.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ContextMenuItem.d.ts","sourceRoot":"","sources":["../../../src/components/ContextMenu/ContextMenuItem.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,KAAK,oBAAoB,MAAM,8BAA8B,CAAC;AAIrE,eAAO,MAAM,eAAe;;
|
|
1
|
+
{"version":3,"file":"ContextMenuItem.d.ts","sourceRoot":"","sources":["../../../src/components/ContextMenu/ContextMenuItem.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,KAAK,oBAAoB,MAAM,8BAA8B,CAAC;AAIrE,eAAO,MAAM,eAAe;;uIAiB1B,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import * as ContextMenuPrimitive from '@radix-ui/react-context-menu';
|
|
3
|
-
export declare const ContextMenuLabel: React.ForwardRefExoticComponent<
|
|
3
|
+
export declare const ContextMenuLabel: React.ForwardRefExoticComponent<{
|
|
4
4
|
inset?: boolean | undefined;
|
|
5
|
-
} & React.RefAttributes<HTMLDivElement>>;
|
|
5
|
+
} & Omit<ContextMenuPrimitive.ContextMenuLabelProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
6
6
|
//# sourceMappingURL=ContextMenuLabel.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ContextMenuLabel.d.ts","sourceRoot":"","sources":["../../../src/components/ContextMenu/ContextMenuLabel.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,KAAK,oBAAoB,MAAM,8BAA8B,CAAC;AAIrE,eAAO,MAAM,gBAAgB;;
|
|
1
|
+
{"version":3,"file":"ContextMenuLabel.d.ts","sourceRoot":"","sources":["../../../src/components/ContextMenu/ContextMenuLabel.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,KAAK,oBAAoB,MAAM,8BAA8B,CAAC;AAIrE,eAAO,MAAM,gBAAgB;;wIAa3B,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import * as ContextMenuPrimitive from '@radix-ui/react-context-menu';
|
|
3
|
-
export declare const ContextMenuSubTrigger: React.ForwardRefExoticComponent<
|
|
3
|
+
export declare const ContextMenuSubTrigger: React.ForwardRefExoticComponent<{
|
|
4
4
|
inset?: boolean | undefined;
|
|
5
|
-
} & React.RefAttributes<HTMLDivElement>>;
|
|
5
|
+
} & Omit<ContextMenuPrimitive.ContextMenuSubTriggerProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
6
6
|
//# sourceMappingURL=ContextMenuSubTrigger.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ContextMenuSubTrigger.d.ts","sourceRoot":"","sources":["../../../src/components/ContextMenu/ContextMenuSubTrigger.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,KAAK,oBAAoB,MAAM,8BAA8B,CAAC;AAKrE,eAAO,MAAM,qBAAqB;;
|
|
1
|
+
{"version":3,"file":"ContextMenuSubTrigger.d.ts","sourceRoot":"","sources":["../../../src/components/ContextMenu/ContextMenuSubTrigger.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,KAAK,oBAAoB,MAAM,8BAA8B,CAAC;AAKrE,eAAO,MAAM,qBAAqB;;6IAoBhC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Drawer.d.ts","sourceRoot":"","sources":["../../../src/components/Drawer/Drawer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,MAAM,CAAC;AAYjD,eAAO,MAAM,MAAM,yCAJ6C,MAAM,cAAc,CAAC,OAAO,
|
|
1
|
+
{"version":3,"file":"Drawer.d.ts","sourceRoot":"","sources":["../../../src/components/Drawer/Drawer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,MAAM,CAAC;AAYjD,eAAO,MAAM,MAAM,yCAJ6C,MAAM,cAAc,CAAC,OAAO,eAAe,CAAC,IAAI,CAAC;;;;;;;;;;CAY/G,CAAC"}
|
|
@@ -2,16 +2,16 @@
|
|
|
2
2
|
import * as DropdownMenuPrimitive from '@radix-ui/react-dropdown-menu';
|
|
3
3
|
export declare const DropdownMenu: import("react").FC<DropdownMenuPrimitive.DropdownMenuProps> & {
|
|
4
4
|
CheckboxItem: import("react").ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuCheckboxItemProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
5
|
-
Content: import("react").ForwardRefExoticComponent<
|
|
5
|
+
Content: import("react").ForwardRefExoticComponent<{
|
|
6
6
|
widthFull?: boolean | undefined;
|
|
7
|
-
} & import("react").RefAttributes<HTMLDivElement>>;
|
|
7
|
+
} & Omit<DropdownMenuPrimitive.DropdownMenuContentProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
8
8
|
Group: import("react").ForwardRefExoticComponent<DropdownMenuPrimitive.DropdownMenuGroupProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
9
|
-
Item: import("react").ForwardRefExoticComponent<
|
|
9
|
+
Item: import("react").ForwardRefExoticComponent<{
|
|
10
10
|
inset?: boolean | undefined;
|
|
11
|
-
} & import("react").RefAttributes<HTMLDivElement>>;
|
|
12
|
-
Label: import("react").ForwardRefExoticComponent<
|
|
11
|
+
} & Omit<DropdownMenuPrimitive.DropdownMenuItemProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
12
|
+
Label: import("react").ForwardRefExoticComponent<{
|
|
13
13
|
inset?: boolean | undefined;
|
|
14
|
-
} & import("react").RefAttributes<HTMLDivElement>>;
|
|
14
|
+
} & Omit<DropdownMenuPrimitive.DropdownMenuLabelProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
15
15
|
Portal: import("react").FC<DropdownMenuPrimitive.DropdownMenuPortalProps>;
|
|
16
16
|
RadioGroup: import("react").ForwardRefExoticComponent<DropdownMenuPrimitive.DropdownMenuRadioGroupProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
17
17
|
RadioItem: import("react").ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuRadioItemProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
@@ -19,9 +19,9 @@ export declare const DropdownMenu: import("react").FC<DropdownMenuPrimitive.Drop
|
|
|
19
19
|
Shortcut: ({ className, ...props }: import("react").HTMLAttributes<HTMLSpanElement>) => import("react").JSX.Element;
|
|
20
20
|
Sub: import("react").FC<DropdownMenuPrimitive.DropdownMenuSubProps>;
|
|
21
21
|
SubContent: import("react").ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuSubContentProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
22
|
-
SubTrigger: import("react").ForwardRefExoticComponent<
|
|
22
|
+
SubTrigger: import("react").ForwardRefExoticComponent<{
|
|
23
23
|
inset?: boolean | undefined;
|
|
24
|
-
} & import("react").RefAttributes<HTMLDivElement>>;
|
|
24
|
+
} & Omit<DropdownMenuPrimitive.DropdownMenuSubTriggerProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
25
25
|
Trigger: import("react").ForwardRefExoticComponent<DropdownMenuPrimitive.DropdownMenuTriggerProps & import("react").RefAttributes<HTMLButtonElement>>;
|
|
26
26
|
};
|
|
27
27
|
//# sourceMappingURL=DropdownMenu.d.ts.map
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import * as DropdownMenuPrimitive from '@radix-ui/react-dropdown-menu';
|
|
3
|
-
export type DropdownMenuContentProps =
|
|
3
|
+
export type DropdownMenuContentProps = {
|
|
4
4
|
widthFull?: boolean;
|
|
5
|
-
}
|
|
6
|
-
export declare const DropdownMenuContent: React.ForwardRefExoticComponent<
|
|
5
|
+
} & React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.Content>;
|
|
6
|
+
export declare const DropdownMenuContent: React.ForwardRefExoticComponent<{
|
|
7
7
|
widthFull?: boolean | undefined;
|
|
8
|
-
} & React.RefAttributes<HTMLDivElement>>;
|
|
8
|
+
} & Omit<DropdownMenuPrimitive.DropdownMenuContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
9
9
|
//# sourceMappingURL=DropdownMenuContent.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DropdownMenuContent.d.ts","sourceRoot":"","sources":["../../../src/components/DropdownMenu/DropdownMenuContent.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,KAAK,qBAAqB,MAAM,+BAA+B,CAAC;AAIvE,MAAM,MAAM,wBAAwB,GAAG,
|
|
1
|
+
{"version":3,"file":"DropdownMenuContent.d.ts","sourceRoot":"","sources":["../../../src/components/DropdownMenu/DropdownMenuContent.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,KAAK,qBAAqB,MAAM,+BAA+B,CAAC;AAIvE,MAAM,MAAM,wBAAwB,GAAG;IACrC,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB,GAAG,KAAK,CAAC,wBAAwB,CAAC,OAAO,qBAAqB,CAAC,OAAO,CAAC,CAAC;AACzE,eAAO,MAAM,mBAAmB;;4IAmB9B,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import * as DropdownMenuPrimitive from '@radix-ui/react-dropdown-menu';
|
|
3
|
-
export declare const DropdownMenuItem: React.ForwardRefExoticComponent<
|
|
3
|
+
export declare const DropdownMenuItem: React.ForwardRefExoticComponent<{
|
|
4
4
|
inset?: boolean | undefined;
|
|
5
|
-
} & React.RefAttributes<HTMLDivElement>>;
|
|
5
|
+
} & Omit<DropdownMenuPrimitive.DropdownMenuItemProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
6
6
|
//# sourceMappingURL=DropdownMenuItem.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DropdownMenuItem.d.ts","sourceRoot":"","sources":["../../../src/components/DropdownMenu/DropdownMenuItem.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,KAAK,qBAAqB,MAAM,+BAA+B,CAAC;AAIvE,eAAO,MAAM,gBAAgB;;
|
|
1
|
+
{"version":3,"file":"DropdownMenuItem.d.ts","sourceRoot":"","sources":["../../../src/components/DropdownMenu/DropdownMenuItem.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,KAAK,qBAAqB,MAAM,+BAA+B,CAAC;AAIvE,eAAO,MAAM,gBAAgB;;yIAiB3B,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import * as DropdownMenuPrimitive from '@radix-ui/react-dropdown-menu';
|
|
3
|
-
export declare const DropdownMenuLabel: React.ForwardRefExoticComponent<
|
|
3
|
+
export declare const DropdownMenuLabel: React.ForwardRefExoticComponent<{
|
|
4
4
|
inset?: boolean | undefined;
|
|
5
|
-
} & React.RefAttributes<HTMLDivElement>>;
|
|
5
|
+
} & Omit<DropdownMenuPrimitive.DropdownMenuLabelProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
6
6
|
//# sourceMappingURL=DropdownMenuLabel.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DropdownMenuLabel.d.ts","sourceRoot":"","sources":["../../../src/components/DropdownMenu/DropdownMenuLabel.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,KAAK,qBAAqB,MAAM,+BAA+B,CAAC;AAIvE,eAAO,MAAM,iBAAiB;;
|
|
1
|
+
{"version":3,"file":"DropdownMenuLabel.d.ts","sourceRoot":"","sources":["../../../src/components/DropdownMenu/DropdownMenuLabel.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,KAAK,qBAAqB,MAAM,+BAA+B,CAAC;AAIvE,eAAO,MAAM,iBAAiB;;0IAa5B,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import * as DropdownMenuPrimitive from '@radix-ui/react-dropdown-menu';
|
|
3
|
-
export declare const DropdownMenuSubTrigger: React.ForwardRefExoticComponent<
|
|
3
|
+
export declare const DropdownMenuSubTrigger: React.ForwardRefExoticComponent<{
|
|
4
4
|
inset?: boolean | undefined;
|
|
5
|
-
} & React.RefAttributes<HTMLDivElement>>;
|
|
5
|
+
} & Omit<DropdownMenuPrimitive.DropdownMenuSubTriggerProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
6
6
|
//# sourceMappingURL=DropdownMenuSubTrigger.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DropdownMenuSubTrigger.d.ts","sourceRoot":"","sources":["../../../src/components/DropdownMenu/DropdownMenuSubTrigger.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,KAAK,qBAAqB,MAAM,+BAA+B,CAAC;AAKvE,eAAO,MAAM,sBAAsB
|
|
1
|
+
{"version":3,"file":"DropdownMenuSubTrigger.d.ts","sourceRoot":"","sources":["../../../src/components/DropdownMenu/DropdownMenuSubTrigger.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,KAAK,qBAAqB,MAAM,+BAA+B,CAAC;AAKvE,eAAO,MAAM,sBAAsB;;+IAoBjC,CAAC"}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import type { Simplify } from 'type-fest';
|
|
3
3
|
import type { BaseFieldComponentProps } from './types.js';
|
|
4
|
-
export type BaseRadioFieldProps<T extends string> = Simplify<
|
|
4
|
+
export type BaseRadioFieldProps<T extends string> = Simplify<{
|
|
5
5
|
description?: string;
|
|
6
6
|
label: string;
|
|
7
7
|
options: {
|
|
8
8
|
[K in T]: string;
|
|
9
9
|
};
|
|
10
10
|
orientation?: 'horizontal' | 'vertical';
|
|
11
|
-
}
|
|
11
|
+
} & BaseFieldComponentProps<T>>;
|
|
12
12
|
export declare const BaseRadioField: <T extends string>({ description, error, label, name, options, orientation, setValue, value }: BaseRadioFieldProps<T>) => React.JSX.Element;
|
|
13
13
|
//# sourceMappingURL=BaseRadioField.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BaseRadioField.d.ts","sourceRoot":"","sources":["../../../src/components/Form/BaseRadioField.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,WAAW,CAAC;AAM1C,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,YAAY,CAAC;AAc1D,MAAM,MAAM,mBAAmB,CAAC,CAAC,SAAS,MAAM,IAAI,QAAQ,CAC1D
|
|
1
|
+
{"version":3,"file":"BaseRadioField.d.ts","sourceRoot":"","sources":["../../../src/components/Form/BaseRadioField.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,WAAW,CAAC;AAM1C,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,YAAY,CAAC;AAc1D,MAAM,MAAM,mBAAmB,CAAC,CAAC,SAAS,MAAM,IAAI,QAAQ,CAC1D;IACE,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE;SAAG,CAAC,IAAI,CAAC,GAAG,MAAM;KAAE,CAAC;IAC9B,WAAW,CAAC,EAAE,YAAY,GAAG,UAAU,CAAC;CACzC,GAAG,uBAAuB,CAAC,CAAC,CAAC,CAC/B,CAAC;AAEF,eAAO,MAAM,cAAc,iGASxB,oBAAoB,CAAC,CAAC,sBA0BxB,CAAC"}
|
|
@@ -4,7 +4,7 @@ import { StaticField } from './StaticField.js';
|
|
|
4
4
|
export const DynamicField = ({ field, name, setValues, values, ...props }) => {
|
|
5
5
|
const [dependentValues, setDependentValues] = useState(pick(values, field.deps));
|
|
6
6
|
const staticField = useMemo(() => {
|
|
7
|
-
return field.render(values);
|
|
7
|
+
return field.render.call(undefined, values);
|
|
8
8
|
}, [dependentValues, field.render]);
|
|
9
9
|
useEffect(() => {
|
|
10
10
|
if (!staticField) {
|
|
@@ -52,7 +52,7 @@ const Form = ({ className, content, id, initialValues, onError, onSubmit, resetB
|
|
|
52
52
|
isGrouped ? (content.map((fieldGroup, i) => {
|
|
53
53
|
return (React.createElement("div", { className: "space-y-6 [&:not(:first-child)]:pt-8", key: i },
|
|
54
54
|
React.createElement("div", { className: "space-y-1" },
|
|
55
|
-
React.createElement(Heading, { variant: "h4" }, fieldGroup.title),
|
|
55
|
+
fieldGroup.title && React.createElement(Heading, { variant: "h4" }, fieldGroup.title),
|
|
56
56
|
fieldGroup.description && (React.createElement("p", { className: "text-sm italic leading-tight text-muted-foreground" }, fieldGroup.description))),
|
|
57
57
|
React.createElement(FieldsComponent, { errors: errors, fields: fieldGroup.fields, setErrors: setErrors, setValues: setValues, values: values })));
|
|
58
58
|
})) : (React.createElement(FieldsComponent, { errors: errors, fields: content, setErrors: setErrors, setValues: setValues, values: values })),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NumberField.d.ts","sourceRoot":"","sources":["../../../../src/components/Form/NumberField/NumberField.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,OAAO,EAAoB,KAAK,qBAAqB,EAAE,MAAM,uBAAuB,CAAC;AACrF,OAAO,EAAoB,KAAK,qBAAqB,EAAE,MAAM,uBAAuB,CAAC;
|
|
1
|
+
{"version":3,"file":"NumberField.d.ts","sourceRoot":"","sources":["../../../../src/components/Form/NumberField/NumberField.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,OAAO,EAAoB,KAAK,qBAAqB,EAAE,MAAM,uBAAuB,CAAC;AACrF,OAAO,EAAoB,KAAK,qBAAqB,EAAE,MAAM,uBAAuB,CAAC;AAErF,OAAO,EAAqB,KAAK,sBAAsB,EAAE,MAAM,wBAAwB,CAAC;AAExF,MAAM,MAAM,gBAAgB,GAAG,qBAAqB,GAAG,qBAAqB,GAAG,sBAAsB,CAAC;AAEtG,eAAO,MAAM,WAAW,UAAW,gBAAgB,sBAOlD,CAAC"}
|
|
@@ -2,11 +2,13 @@ import React from 'react';
|
|
|
2
2
|
import { match } from 'ts-pattern';
|
|
3
3
|
import { NumberFieldInput } from './NumberFieldInput.js';
|
|
4
4
|
import { NumberFieldRadio } from './NumberFieldRadio.js';
|
|
5
|
+
import { NumberFieldSelect } from './NumberFieldSelect.js';
|
|
5
6
|
import { NumberFieldSlider } from './NumberFieldSlider.js';
|
|
6
7
|
export const NumberField = (props) => {
|
|
7
8
|
return match(props)
|
|
8
9
|
.with({ variant: 'input' }, (props) => React.createElement(NumberFieldInput, { ...props }))
|
|
9
10
|
.with({ variant: 'slider' }, (props) => React.createElement(NumberFieldSlider, { ...props }))
|
|
10
11
|
.with({ variant: 'radio' }, (props) => React.createElement(NumberFieldRadio, { ...props }))
|
|
12
|
+
.with({ variant: 'select' }, (props) => React.createElement(NumberFieldSelect, { ...props }))
|
|
11
13
|
.exhaustive();
|
|
12
14
|
};
|
|
@@ -3,7 +3,7 @@ import type { NumberFormField } from '@douglasneuroinformatics/libui-form-types'
|
|
|
3
3
|
import type { Simplify } from 'type-fest';
|
|
4
4
|
import type { BaseFieldComponentProps } from '../types.js';
|
|
5
5
|
export type NumberFieldRadioProps = Simplify<BaseFieldComponentProps<number> & Extract<NumberFormField, {
|
|
6
|
-
|
|
6
|
+
options: object;
|
|
7
7
|
}>>;
|
|
8
8
|
export declare const NumberFieldRadio: ({ description, error, label, name, options, setValue, value }: NumberFieldRadioProps) => React.JSX.Element;
|
|
9
9
|
//# sourceMappingURL=NumberFieldRadio.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NumberFieldRadio.d.ts","sourceRoot":"","sources":["../../../../src/components/Form/NumberField/NumberFieldRadio.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,2CAA2C,CAAC;AACjF,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,WAAW,CAAC;AAO1C,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,aAAa,CAAC;AAE3D,MAAM,MAAM,qBAAqB,GAAG,QAAQ,CAC1C,uBAAuB,CAAC,MAAM,CAAC,GAAG,OAAO,CAAC,eAAe,EAAE;IAAE,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"NumberFieldRadio.d.ts","sourceRoot":"","sources":["../../../../src/components/Form/NumberField/NumberFieldRadio.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,2CAA2C,CAAC;AACjF,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,WAAW,CAAC;AAO1C,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,aAAa,CAAC;AAE3D,MAAM,MAAM,qBAAqB,GAAG,QAAQ,CAC1C,uBAAuB,CAAC,MAAM,CAAC,GAAG,OAAO,CAAC,eAAe,EAAE;IAAE,OAAO,EAAE,MAAM,CAAA;CAAE,CAAC,CAChF,CAAC;AAEF,eAAO,MAAM,gBAAgB,kEAQ1B,qBAAqB,sBAiCvB,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { NumberFormField } from '@douglasneuroinformatics/libui-form-types';
|
|
3
|
+
import type { Simplify } from 'type-fest';
|
|
4
|
+
import { type BaseFieldComponentProps } from '../types.js';
|
|
5
|
+
export type NumberFieldSelectProps<T extends number = number> = Simplify<BaseFieldComponentProps<T> & Extract<NumberFormField<T>, {
|
|
6
|
+
options: object;
|
|
7
|
+
}>>;
|
|
8
|
+
export declare const NumberFieldSelect: <T extends number = number>({ description, error, label, name, options, setValue, value }: NumberFieldSelectProps<T>) => React.JSX.Element;
|
|
9
|
+
//# sourceMappingURL=NumberFieldSelect.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"NumberFieldSelect.d.ts","sourceRoot":"","sources":["../../../../src/components/Form/NumberField/NumberFieldSelect.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,2CAA2C,CAAC;AACjF,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,WAAW,CAAC;AAK1C,OAAO,EAAE,KAAK,uBAAuB,EAAE,MAAM,aAAa,CAAC;AAE3D,MAAM,MAAM,sBAAsB,CAAC,CAAC,SAAS,MAAM,GAAG,MAAM,IAAI,QAAQ,CACtE,uBAAuB,CAAC,CAAC,CAAC,GAAG,OAAO,CAAC,eAAe,CAAC,CAAC,CAAC,EAAE;IAAE,OAAO,EAAE,MAAM,CAAA;CAAE,CAAC,CAC9E,CAAC;AAEF,eAAO,MAAM,iBAAiB,6FAQ3B,uBAAuB,CAAC,CAAC,sBAuB3B,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { Label } from '../../Label/Label.js';
|
|
3
|
+
import { Select } from '../../Select/Select.js';
|
|
4
|
+
import { FieldGroup } from '../FieldGroup/FieldGroup.js';
|
|
5
|
+
import {} from '../types.js';
|
|
6
|
+
export const NumberFieldSelect = ({ description, error, label, name, options, setValue, value }) => {
|
|
7
|
+
return (React.createElement(FieldGroup, null,
|
|
8
|
+
React.createElement(FieldGroup.Row, null,
|
|
9
|
+
React.createElement(Label, null, label),
|
|
10
|
+
React.createElement(FieldGroup.Description, { description: description })),
|
|
11
|
+
React.createElement(Select, { name: name, value: value?.toString() ?? '', onValueChange: (value) => setValue(parseFloat(value)) },
|
|
12
|
+
React.createElement(Select.Trigger, { "data-cy": `${name}-select-trigger`, "data-testid": `${name}-select-trigger` },
|
|
13
|
+
React.createElement(Select.Value, null)),
|
|
14
|
+
React.createElement(Select.Content, { "data-cy": `${name}-select-content`, "data-testid": `${name}-select-content` }, Object.keys(options).map((option) => (React.createElement(Select.Item, { key: option, value: option }, options[option]))))),
|
|
15
|
+
React.createElement(FieldGroup.Error, { error: error })));
|
|
16
|
+
};
|
|
@@ -29,7 +29,7 @@ export const RecordArrayField = memo(function RecordArrayField({ error: arrayErr
|
|
|
29
29
|
React.createElement(Label, { className: "font-semibold italic" }, label + ' ' + (i + 1)),
|
|
30
30
|
Object.keys(fields).map((name) => {
|
|
31
31
|
const field = fieldset[name];
|
|
32
|
-
const fieldProps = field?.kind === 'dynamic' ? field.render(fields) : field;
|
|
32
|
+
const fieldProps = field?.kind === 'dynamic' ? field.render.call(undefined, fields) : field;
|
|
33
33
|
if (!fieldProps) {
|
|
34
34
|
return null;
|
|
35
35
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import type { BooleanFormField, DateFormField, NumberFormField, ScalarFieldValue, SetFormField, StringFormField } from '@douglasneuroinformatics/libui-form-types';
|
|
3
3
|
import type { BaseFieldComponentProps } from './types.js';
|
|
4
|
-
export type ScalarFieldProps =
|
|
4
|
+
export type ScalarFieldProps = {
|
|
5
5
|
field: BooleanFormField | DateFormField | NumberFormField | SetFormField | StringFormField;
|
|
6
|
-
}
|
|
6
|
+
} & BaseFieldComponentProps<ScalarFieldValue>;
|
|
7
7
|
export declare const ScalarField: ({ field, ...props }: ScalarFieldProps) => React.JSX.Element;
|
|
8
8
|
//# sourceMappingURL=ScalarField.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ScalarField.d.ts","sourceRoot":"","sources":["../../../src/components/Form/ScalarField.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,KAAK,EACV,gBAAgB,EAChB,aAAa,EACb,eAAe,EACf,gBAAgB,EAChB,YAAY,EACZ,eAAe,EAChB,MAAM,2CAA2C,CAAC;AAQnD,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,YAAY,CAAC;AAE1D,MAAM,MAAM,gBAAgB,GAAG
|
|
1
|
+
{"version":3,"file":"ScalarField.d.ts","sourceRoot":"","sources":["../../../src/components/Form/ScalarField.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,KAAK,EACV,gBAAgB,EAChB,aAAa,EACb,eAAe,EACf,gBAAgB,EAChB,YAAY,EACZ,eAAe,EAChB,MAAM,2CAA2C,CAAC;AAQnD,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,YAAY,CAAC;AAE1D,MAAM,MAAM,gBAAgB,GAAG;IAC7B,KAAK,EAAE,gBAAgB,GAAG,aAAa,GAAG,eAAe,GAAG,YAAY,GAAG,eAAe,CAAC;CAC5F,GAAG,uBAAuB,CAAC,gBAAgB,CAAC,CAAC;AAE9C,eAAO,MAAM,WAAW,wBAAyB,gBAAgB,sBAehE,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import type { SetFieldProps } from './SetField.js';
|
|
3
|
-
export type SetFieldListboxProps<T extends string = string> =
|
|
3
|
+
export type SetFieldListboxProps<T extends string = string> = {
|
|
4
4
|
onCheckedChange: (option: T, isChecked: boolean) => void;
|
|
5
|
-
}
|
|
5
|
+
} & SetFieldProps<T>;
|
|
6
6
|
export declare const SetFieldListbox: <T extends string = string>({ description, error, label, name, onCheckedChange, options, value }: SetFieldListboxProps<T>) => React.JSX.Element;
|
|
7
7
|
//# sourceMappingURL=SetFieldListbox.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SetFieldListbox.d.ts","sourceRoot":"","sources":["../../../../src/components/Form/SetField/SetFieldListbox.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAM1B,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAEnD,MAAM,MAAM,oBAAoB,CAAC,CAAC,SAAS,MAAM,GAAG,MAAM,IAAI
|
|
1
|
+
{"version":3,"file":"SetFieldListbox.d.ts","sourceRoot":"","sources":["../../../../src/components/Form/SetField/SetFieldListbox.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAM1B,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAEnD,MAAM,MAAM,oBAAoB,CAAC,CAAC,SAAS,MAAM,GAAG,MAAM,IAAI;IAC5D,eAAe,EAAE,CAAC,MAAM,EAAE,CAAC,EAAE,SAAS,EAAE,OAAO,KAAK,IAAI,CAAC;CAC1D,GAAG,aAAa,CAAC,CAAC,CAAC,CAAC;AAErB,eAAO,MAAM,eAAe,oGAQzB,qBAAqB,CAAC,CAAC,sBAwBzB,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import type { SetFieldProps } from './SetField.js';
|
|
3
|
-
export type SetFieldSelectProps<T extends string = string> =
|
|
3
|
+
export type SetFieldSelectProps<T extends string = string> = {
|
|
4
4
|
onCheckedChange: (option: T, isChecked: boolean) => void;
|
|
5
|
-
}
|
|
5
|
+
} & SetFieldProps<T>;
|
|
6
6
|
export declare const SetFieldSelect: <T extends string = string>({ description, error, label, onCheckedChange, options, value }: SetFieldSelectProps<T>) => React.JSX.Element | null;
|
|
7
7
|
//# sourceMappingURL=SetFieldSelect.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SetFieldSelect.d.ts","sourceRoot":"","sources":["../../../../src/components/Form/SetField/SetFieldSelect.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAQ1B,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAEnD,MAAM,MAAM,mBAAmB,CAAC,CAAC,SAAS,MAAM,GAAG,MAAM,IAAI
|
|
1
|
+
{"version":3,"file":"SetFieldSelect.d.ts","sourceRoot":"","sources":["../../../../src/components/Form/SetField/SetFieldSelect.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAQ1B,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAEnD,MAAM,MAAM,mBAAmB,CAAC,CAAC,SAAS,MAAM,GAAG,MAAM,IAAI;IAC3D,eAAe,EAAE,CAAC,MAAM,EAAE,CAAC,EAAE,SAAS,EAAE,OAAO,KAAK,IAAI,CAAC;CAC1D,GAAG,aAAa,CAAC,CAAC,CAAC,CAAC;AAErB,eAAO,MAAM,cAAc,8FAOxB,oBAAoB,CAAC,CAAC,6BA0CxB,CAAC"}
|
|
@@ -31,7 +31,7 @@ export function resolveStaticFormFields(content, data) {
|
|
|
31
31
|
for (const fieldName in formFields) {
|
|
32
32
|
const field = formFields[fieldName];
|
|
33
33
|
if (field.kind === 'dynamic') {
|
|
34
|
-
const resolvedField = field.render(data);
|
|
34
|
+
const resolvedField = field.render.call(undefined, data);
|
|
35
35
|
if (resolvedField) {
|
|
36
36
|
staticFormFields[fieldName] = resolvedField;
|
|
37
37
|
}
|
|
@@ -9,11 +9,11 @@ type LineGraphData = readonly {
|
|
|
9
9
|
type ExtractValidKeys<T extends LineGraphData, K> = Extract<ConditionalKeys<T[number], K>, string>;
|
|
10
10
|
type LineGraphLine<T extends LineGraphData = {
|
|
11
11
|
[key: string]: any;
|
|
12
|
-
}[]> =
|
|
12
|
+
}[]> = {
|
|
13
13
|
err?: ExtractValidKeys<T, number>;
|
|
14
14
|
name: string;
|
|
15
15
|
val: ExtractValidKeys<T, number>;
|
|
16
|
-
}
|
|
16
|
+
} & Pick<LineProps, 'legendType' | 'stroke' | 'strokeDasharray' | 'strokeWidth' | 'type'>;
|
|
17
17
|
declare function LineGraphComponent<const T extends LineGraphData>({ data, lines, xAxis }: {
|
|
18
18
|
/** An array of objects, where each object represents one point on the x-axis */
|
|
19
19
|
data: T;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LineGraph.d.ts","sourceRoot":"","sources":["../../../src/components/LineGraph/LineGraph.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,OAAO,EAOL,KAAK,SAAS,EAKf,MAAM,UAAU,CAAC;AAClB,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,WAAW,CAAC;AAIjD,wDAAwD;AAExD,KAAK,aAAa,GAAG,SAAS;IAAE,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAA;CAAE,EAAE,CAAC;AAEvD,kFAAkF;AAClF,KAAK,gBAAgB,CAAC,CAAC,SAAS,aAAa,EAAE,CAAC,IAAI,OAAO,CAAC,eAAe,CAAC,CAAC,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC,EAAE,MAAM,CAAC,CAAC;AAGnG,KAAK,aAAa,CAAC,CAAC,SAAS,aAAa,GAAG;IAAE,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAA;CAAE,EAAE,IAAI
|
|
1
|
+
{"version":3,"file":"LineGraph.d.ts","sourceRoot":"","sources":["../../../src/components/LineGraph/LineGraph.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,OAAO,EAOL,KAAK,SAAS,EAKf,MAAM,UAAU,CAAC;AAClB,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,WAAW,CAAC;AAIjD,wDAAwD;AAExD,KAAK,aAAa,GAAG,SAAS;IAAE,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAA;CAAE,EAAE,CAAC;AAEvD,kFAAkF;AAClF,KAAK,gBAAgB,CAAC,CAAC,SAAS,aAAa,EAAE,CAAC,IAAI,OAAO,CAAC,eAAe,CAAC,CAAC,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC,EAAE,MAAM,CAAC,CAAC;AAGnG,KAAK,aAAa,CAAC,CAAC,SAAS,aAAa,GAAG;IAAE,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAA;CAAE,EAAE,IAAI;IACvE,GAAG,CAAC,EAAE,gBAAgB,CAAC,CAAC,EAAE,MAAM,CAAC,CAAC;IAClC,IAAI,EAAE,MAAM,CAAC;IACb,GAAG,EAAE,gBAAgB,CAAC,CAAC,EAAE,MAAM,CAAC,CAAC;CAClC,GAAG,IAAI,CAAC,SAAS,EAAE,YAAY,GAAG,QAAQ,GAAG,iBAAiB,GAAG,aAAa,GAAG,MAAM,CAAC,CAAC;AAqB1F,iBAAS,kBAAkB,CAAC,KAAK,CAAC,CAAC,SAAS,aAAa,EAAE,EACzD,IAAI,EACJ,KAAK,EACL,KAAK,EACN,EAAE;IACD,gFAAgF;IAChF,IAAI,EAAE,CAAC,CAAC;IACR,KAAK,EAAE,aAAa,CAAC,CAAC,CAAC,EAAE,CAAC;IAC1B,KAAK,CAAC,EAAE;QACN,GAAG,CAAC,EAAE,gBAAgB,CAAC,CAAC,EAAE,MAAM,CAAC,CAAC;QAClC,KAAK,CAAC,EAAE,MAAM,CAAC;KAChB,CAAC;CACH,qBA2DA;AAED,eAAO,MAAM,SAAS,2BAA8D,CAAC;AAErF,YAAY,EAAE,aAAa,EAAE,aAAa,EAAE,CAAC"}
|
|
@@ -3,12 +3,12 @@ export declare const MenuBar: import("react").ForwardRefExoticComponent<Omit<imp
|
|
|
3
3
|
CheckboxItem: import("react").ForwardRefExoticComponent<Omit<import("@radix-ui/react-menubar").MenubarCheckboxItemProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
4
4
|
Content: import("react").ForwardRefExoticComponent<Omit<import("@radix-ui/react-menubar").MenubarContentProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
5
5
|
Group: import("react").ForwardRefExoticComponent<import("@radix-ui/react-menubar").MenubarGroupProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
6
|
-
Item: import("react").ForwardRefExoticComponent<
|
|
6
|
+
Item: import("react").ForwardRefExoticComponent<{
|
|
7
7
|
inset?: boolean | undefined;
|
|
8
|
-
} & import("react").RefAttributes<HTMLDivElement>>;
|
|
9
|
-
Label: import("react").ForwardRefExoticComponent<
|
|
8
|
+
} & Omit<import("@radix-ui/react-menubar").MenubarItemProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
9
|
+
Label: import("react").ForwardRefExoticComponent<{
|
|
10
10
|
inset?: boolean | undefined;
|
|
11
|
-
} & import("react").RefAttributes<HTMLDivElement>>;
|
|
11
|
+
} & Omit<import("@radix-ui/react-menubar").MenubarLabelProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
12
12
|
Menu: {
|
|
13
13
|
(props: import("@radix-ui/react-menubar").ScopedProps<import("@radix-ui/react-menubar").MenubarMenuProps>): JSX.Element;
|
|
14
14
|
displayName: string;
|
|
@@ -20,9 +20,9 @@ export declare const MenuBar: import("react").ForwardRefExoticComponent<Omit<imp
|
|
|
20
20
|
Shortcut: ({ className, ...props }: import("react").HTMLAttributes<HTMLSpanElement>) => import("react").JSX.Element;
|
|
21
21
|
Sub: import("react").FC<import("@radix-ui/react-menubar").MenubarSubProps>;
|
|
22
22
|
SubContent: import("react").ForwardRefExoticComponent<Omit<import("@radix-ui/react-menubar").MenubarSubContentProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
23
|
-
SubTrigger: import("react").ForwardRefExoticComponent<
|
|
23
|
+
SubTrigger: import("react").ForwardRefExoticComponent<{
|
|
24
24
|
inset?: boolean | undefined;
|
|
25
|
-
} & import("react").RefAttributes<HTMLDivElement>>;
|
|
25
|
+
} & Omit<import("@radix-ui/react-menubar").MenubarSubTriggerProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
26
26
|
Trigger: import("react").ForwardRefExoticComponent<Omit<import("@radix-ui/react-menubar").MenubarTriggerProps & import("react").RefAttributes<HTMLButtonElement>, "ref"> & import("react").RefAttributes<HTMLButtonElement>>;
|
|
27
27
|
};
|
|
28
28
|
//# sourceMappingURL=MenuBar.d.ts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
export declare const MenuBarItem: React.ForwardRefExoticComponent<
|
|
2
|
+
export declare const MenuBarItem: React.ForwardRefExoticComponent<{
|
|
3
3
|
inset?: boolean | undefined;
|
|
4
|
-
} & React.RefAttributes<HTMLDivElement>>;
|
|
4
|
+
} & Omit<import("@radix-ui/react-menubar").MenubarItemProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
5
5
|
//# sourceMappingURL=MenuBarItem.d.ts.map
|