@douglasneuroinformatics/libui 2.10.0 → 2.11.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/Accordion/Accordion.d.ts +0 -1
- package/dist/components/Accordion/Accordion.d.ts.map +1 -1
- package/dist/components/AlertDialog/AlertDialog.d.ts +0 -1
- package/dist/components/AlertDialog/AlertDialog.d.ts.map +1 -1
- package/dist/components/AlertDialog/AlertDialogFooter.d.ts.map +1 -1
- package/dist/components/AlertDialog/AlertDialogHeader.d.ts.map +1 -1
- package/dist/components/ArrowToggle/ArrowToggle.d.ts +12 -12
- package/dist/components/ArrowToggle/ArrowToggle.d.ts.map +1 -1
- package/dist/components/ArrowToggle/ArrowToggle.js +4 -4
- package/dist/components/Avatar/Avatar.d.ts +0 -1
- package/dist/components/Avatar/Avatar.d.ts.map +1 -1
- package/dist/components/Badge/Badge.d.ts.map +1 -1
- package/dist/components/Breadcrumb/Breadcrumb.d.ts +3 -4
- package/dist/components/Breadcrumb/Breadcrumb.d.ts.map +1 -1
- package/dist/components/Breadcrumb/BreadcrumbEllipsis.d.ts +1 -1
- package/dist/components/Breadcrumb/BreadcrumbEllipsis.d.ts.map +1 -1
- package/dist/components/Breadcrumb/BreadcrumbLink.d.ts +1 -1
- package/dist/components/Breadcrumb/BreadcrumbLink.d.ts.map +1 -1
- package/dist/components/Breadcrumb/BreadcrumbRoot.d.ts.map +1 -1
- package/dist/components/Breadcrumb/BreadcrumbSeparator.d.ts +1 -1
- package/dist/components/Breadcrumb/BreadcrumbSeparator.d.ts.map +1 -1
- package/dist/components/Button/Button.d.ts +12 -12
- package/dist/components/Button/Button.d.ts.map +1 -1
- package/dist/components/Card/Card.d.ts.map +1 -1
- package/dist/components/ClientTable/ClientTable.d.ts.map +1 -1
- package/dist/components/Collapsible/Collapsible.d.ts +0 -1
- package/dist/components/Collapsible/Collapsible.d.ts.map +1 -1
- package/dist/components/Command/Command.d.ts +33 -33
- package/dist/components/Command/Command.d.ts.map +1 -1
- package/dist/components/Command/CommandEmpty.d.ts +2 -2
- package/dist/components/Command/CommandGroup.d.ts +4 -4
- package/dist/components/Command/CommandInput.d.ts +4 -4
- package/dist/components/Command/CommandItem.d.ts +7 -7
- package/dist/components/Command/CommandList.d.ts +3 -3
- package/dist/components/Command/CommandSeparator.d.ts +3 -3
- package/dist/components/Command/CommandShortcut.d.ts.map +1 -1
- package/dist/components/ContextMenu/ContextMenu.d.ts +3 -4
- package/dist/components/ContextMenu/ContextMenu.d.ts.map +1 -1
- package/dist/components/ContextMenu/ContextMenuItem.d.ts +1 -1
- package/dist/components/ContextMenu/ContextMenuItem.d.ts.map +1 -1
- package/dist/components/ContextMenu/ContextMenuLabel.d.ts +1 -1
- package/dist/components/ContextMenu/ContextMenuLabel.d.ts.map +1 -1
- package/dist/components/ContextMenu/ContextMenuShortcut.d.ts.map +1 -1
- package/dist/components/ContextMenu/ContextMenuSubTrigger.d.ts +1 -1
- package/dist/components/ContextMenu/ContextMenuSubTrigger.d.ts.map +1 -1
- package/dist/components/DatePicker/DatePicker.js +1 -1
- package/dist/components/Dialog/Dialog.d.ts +0 -1
- package/dist/components/Dialog/Dialog.d.ts.map +1 -1
- package/dist/components/Dialog/DialogBody.d.ts.map +1 -1
- package/dist/components/Dialog/DialogFooter.d.ts.map +1 -1
- package/dist/components/Dialog/DialogHeader.d.ts.map +1 -1
- package/dist/components/Drawer/Drawer.d.ts +1 -1
- package/dist/components/Drawer/Drawer.d.ts.map +1 -1
- package/dist/components/Drawer/DrawerContent.d.ts +1 -1
- package/dist/components/Drawer/DrawerFooter.d.ts.map +1 -1
- package/dist/components/Drawer/DrawerHeader.d.ts.map +1 -1
- package/dist/components/DropdownMenu/DropdownMenu.d.ts +4 -5
- package/dist/components/DropdownMenu/DropdownMenu.d.ts.map +1 -1
- package/dist/components/DropdownMenu/DropdownMenuContent.d.ts +1 -1
- package/dist/components/DropdownMenu/DropdownMenuContent.d.ts.map +1 -1
- package/dist/components/DropdownMenu/DropdownMenuItem.d.ts +1 -1
- package/dist/components/DropdownMenu/DropdownMenuItem.d.ts.map +1 -1
- package/dist/components/DropdownMenu/DropdownMenuLabel.d.ts +1 -1
- package/dist/components/DropdownMenu/DropdownMenuLabel.d.ts.map +1 -1
- package/dist/components/DropdownMenu/DropdownMenuShortcut.d.ts.map +1 -1
- package/dist/components/DropdownMenu/DropdownMenuSubTrigger.d.ts +1 -1
- package/dist/components/DropdownMenu/DropdownMenuSubTrigger.d.ts.map +1 -1
- package/dist/components/Form/BaseRadioField.d.ts +2 -1
- package/dist/components/Form/BaseRadioField.d.ts.map +1 -1
- package/dist/components/Form/BaseRadioField.js +3 -3
- package/dist/components/Form/BooleanField/BooleanFieldCheckbox.d.ts +1 -1
- package/dist/components/Form/BooleanField/BooleanFieldCheckbox.d.ts.map +1 -1
- package/dist/components/Form/BooleanField/BooleanFieldCheckbox.js +2 -2
- package/dist/components/Form/BooleanField/BooleanFieldRadio.d.ts +1 -1
- package/dist/components/Form/BooleanField/BooleanFieldRadio.d.ts.map +1 -1
- package/dist/components/Form/BooleanField/BooleanFieldRadio.js +4 -4
- package/dist/components/Form/DateField/DateField.d.ts +1 -1
- package/dist/components/Form/DateField/DateField.d.ts.map +1 -1
- package/dist/components/Form/DateField/DateField.js +2 -2
- package/dist/components/Form/DynamicField.d.ts.map +1 -1
- package/dist/components/Form/FieldGroup/FieldGroup.d.ts +2 -3
- package/dist/components/Form/FieldGroup/FieldGroup.d.ts.map +1 -1
- package/dist/components/Form/FieldsComponent.d.ts.map +1 -1
- package/dist/components/Form/Form.d.ts +1 -1
- package/dist/components/Form/Form.d.ts.map +1 -1
- package/dist/components/Form/NumberField/NumberFieldInput.d.ts +1 -1
- package/dist/components/Form/NumberField/NumberFieldInput.d.ts.map +1 -1
- package/dist/components/Form/NumberField/NumberFieldInput.js +8 -3
- 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/NumberFieldRadio.js +3 -3
- package/dist/components/Form/NumberField/NumberFieldSelect.d.ts +1 -1
- package/dist/components/Form/NumberField/NumberFieldSelect.d.ts.map +1 -1
- package/dist/components/Form/NumberField/NumberFieldSelect.js +2 -2
- package/dist/components/Form/NumberField/NumberFieldSlider.d.ts +1 -1
- package/dist/components/Form/NumberField/NumberFieldSlider.d.ts.map +1 -1
- package/dist/components/Form/NumberField/NumberFieldSlider.js +2 -2
- package/dist/components/Form/NumberRecordField.d.ts +1 -1
- package/dist/components/Form/NumberRecordField.d.ts.map +1 -1
- package/dist/components/Form/NumberRecordField.js +2 -2
- package/dist/components/Form/RecordArrayField.d.ts +3 -2
- package/dist/components/Form/RecordArrayField.d.ts.map +1 -1
- package/dist/components/Form/RecordArrayField.js +7 -4
- package/dist/components/Form/SetField/SetField.d.ts.map +1 -1
- package/dist/components/Form/SetField/SetFieldListbox.d.ts +1 -1
- package/dist/components/Form/SetField/SetFieldListbox.d.ts.map +1 -1
- package/dist/components/Form/SetField/SetFieldListbox.js +2 -2
- package/dist/components/Form/SetField/SetFieldSelect.d.ts +1 -1
- package/dist/components/Form/SetField/SetFieldSelect.d.ts.map +1 -1
- package/dist/components/Form/SetField/SetFieldSelect.js +2 -2
- package/dist/components/Form/StaticField.d.ts.map +1 -1
- package/dist/components/Form/StringField/StringFieldInput.d.ts +1 -1
- package/dist/components/Form/StringField/StringFieldInput.d.ts.map +1 -1
- package/dist/components/Form/StringField/StringFieldInput.js +2 -2
- package/dist/components/Form/StringField/StringFieldPassword.d.ts +1 -1
- package/dist/components/Form/StringField/StringFieldPassword.d.ts.map +1 -1
- package/dist/components/Form/StringField/StringFieldPassword.js +3 -3
- package/dist/components/Form/StringField/StringFieldRadio.d.ts.map +1 -1
- package/dist/components/Form/StringField/StringFieldSelect.d.ts +1 -1
- package/dist/components/Form/StringField/StringFieldSelect.d.ts.map +1 -1
- package/dist/components/Form/StringField/StringFieldSelect.js +2 -2
- package/dist/components/Form/StringField/StringFieldTextArea.d.ts +1 -1
- package/dist/components/Form/StringField/StringFieldTextArea.d.ts.map +1 -1
- package/dist/components/Form/StringField/StringFieldTextArea.js +2 -2
- package/dist/components/Form/utils.d.ts +1 -1
- package/dist/components/Form/utils.d.ts.map +1 -1
- package/dist/components/HoverCard/HoverCard.d.ts +0 -1
- package/dist/components/HoverCard/HoverCard.d.ts.map +1 -1
- package/dist/components/Label/Label.d.ts.map +1 -1
- package/dist/components/LineGraph/LineGraph.d.ts.map +1 -1
- package/dist/components/ListboxDropdown/ListboxDropdown.d.ts.map +1 -1
- package/dist/components/MenuBar/MenuBar.d.ts +24 -26
- package/dist/components/MenuBar/MenuBar.d.ts.map +1 -1
- package/dist/components/MenuBar/MenuBarItem.d.ts +1 -1
- package/dist/components/MenuBar/MenuBarItem.d.ts.map +1 -1
- package/dist/components/MenuBar/MenuBarLabel.d.ts +1 -1
- package/dist/components/MenuBar/MenuBarLabel.d.ts.map +1 -1
- package/dist/components/MenuBar/MenuBarShortcut.d.ts.map +1 -1
- package/dist/components/MenuBar/MenuBarSubTrigger.d.ts +1 -1
- package/dist/components/MenuBar/MenuBarSubTrigger.d.ts.map +1 -1
- package/dist/components/NotificationHub/NotificationIcon.js +2 -2
- package/dist/components/Pagination/Pagination.d.ts +8 -843
- package/dist/components/Pagination/Pagination.d.ts.map +1 -1
- package/dist/components/Pagination/PaginationContent.d.ts +1 -1
- package/dist/components/Pagination/PaginationContent.d.ts.map +1 -1
- package/dist/components/Pagination/PaginationEllipsis.d.ts +1 -1
- package/dist/components/Pagination/PaginationEllipsis.d.ts.map +1 -1
- package/dist/components/Pagination/PaginationItem.d.ts +1 -1
- package/dist/components/Pagination/PaginationItem.d.ts.map +1 -1
- package/dist/components/Pagination/PaginationNext.d.ts.map +1 -1
- package/dist/components/Pagination/PaginationRoot.d.ts +1 -1
- package/dist/components/Pagination/PaginationRoot.d.ts.map +1 -1
- package/dist/components/Popover/Popover.d.ts +0 -1
- package/dist/components/Popover/Popover.d.ts.map +1 -1
- package/dist/components/Select/Select.d.ts +0 -1
- package/dist/components/Select/Select.d.ts.map +1 -1
- package/dist/components/Sheet/Sheet.d.ts +0 -1
- package/dist/components/Sheet/Sheet.d.ts.map +1 -1
- package/dist/components/Sheet/SheetBody.d.ts.map +1 -1
- package/dist/components/Sheet/SheetContent.d.ts.map +1 -1
- package/dist/components/Sheet/SheetFooter.d.ts.map +1 -1
- package/dist/components/Sheet/SheetHeader.d.ts.map +1 -1
- package/dist/components/Spinner/Spinner.d.ts.map +1 -1
- package/dist/components/SpinnerIcon/SpinnerIcon.d.ts.map +1 -1
- package/dist/components/StatisticCard/StatisticCard.d.ts +10 -0
- package/dist/components/StatisticCard/StatisticCard.d.ts.map +1 -0
- package/dist/components/StatisticCard/StatisticCard.js +16 -0
- package/dist/components/Table/Table.d.ts +0 -1
- package/dist/components/Table/Table.d.ts.map +1 -1
- package/dist/components/Tabs/Tabs.d.ts +0 -1
- package/dist/components/Tabs/Tabs.d.ts.map +1 -1
- package/dist/components/Tooltip/Tooltip.d.ts +0 -1
- package/dist/components/Tooltip/Tooltip.d.ts.map +1 -1
- package/dist/components.d.ts +1 -0
- package/dist/components.d.ts.map +1 -1
- package/dist/components.js +1 -0
- package/dist/douglasneuroinformatics-libui-2.11.0.tgz +0 -0
- package/dist/hooks/useTheme.d.ts +1 -1
- package/dist/hooks/useTheme.d.ts.map +1 -1
- package/dist/i18n.d.ts.map +1 -1
- package/dist/testing/mocks.d.ts +1 -1
- package/package.json +65 -65
- package/src/components/ArrowToggle/ArrowToggle.tsx +4 -4
- package/src/components/Badge/Badge.tsx +1 -1
- package/src/components/Button/Button.tsx +1 -1
- package/src/components/DatePicker/DatePicker.tsx +1 -1
- package/src/components/Form/BaseRadioField.tsx +8 -2
- package/src/components/Form/BooleanField/BooleanFieldCheckbox.tsx +10 -2
- package/src/components/Form/BooleanField/BooleanFieldRadio.tsx +17 -3
- package/src/components/Form/DateField/DateField.spec.tsx +2 -2
- package/src/components/Form/DateField/DateField.tsx +2 -2
- package/src/components/Form/Form.stories.tsx +20 -0
- package/src/components/Form/Form.test.tsx +1 -1
- package/src/components/Form/NumberField/NumberFieldInput.tsx +7 -2
- package/src/components/Form/NumberField/NumberFieldRadio.tsx +3 -2
- package/src/components/Form/NumberField/NumberFieldSelect.tsx +6 -1
- package/src/components/Form/NumberField/NumberFieldSlider.tsx +2 -1
- package/src/components/Form/NumberRecordField.tsx +2 -1
- package/src/components/Form/RecordArrayField.tsx +9 -5
- package/src/components/Form/SetField/SetFieldListbox.tsx +2 -1
- package/src/components/Form/SetField/SetFieldSelect.tsx +2 -1
- package/src/components/Form/StringField/StringFieldInput.tsx +2 -1
- package/src/components/Form/StringField/StringFieldPassword.tsx +4 -3
- package/src/components/Form/StringField/StringFieldSelect.tsx +6 -1
- package/src/components/Form/StringField/StringFieldTextArea.tsx +2 -1
- package/src/components/Label/Label.tsx +1 -1
- package/src/components/LineGraph/LineGraph.tsx +1 -2
- package/src/components/MenuBar/MenuBar.tsx +4 -1
- package/src/components/NotificationHub/NotificationIcon.tsx +2 -2
- package/src/components/Sheet/SheetContent.tsx +1 -1
- package/src/components/StatisticCard/StatisticCard.stories.tsx +18 -0
- package/src/components/StatisticCard/StatisticCard.tsx +34 -0
- package/src/components.ts +1 -0
- package/src/hooks/useDownload.test.ts +2 -1
- package/src/hooks/useTheme.ts +1 -1
- package/src/i18n.ts +1 -1
- package/dist/douglasneuroinformatics-libui-2.10.0.tgz +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CommandShortcut.d.ts","sourceRoot":"","sources":["../../../src/components/Command/CommandShortcut.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,eAAO,MAAM,eAAe,4BAA6B,
|
|
1
|
+
{"version":3,"file":"CommandShortcut.d.ts","sourceRoot":"","sources":["../../../src/components/Command/CommandShortcut.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,eAAO,MAAM,eAAe,4BAA6B,KAAK,CAAC,cAAc,CAAC,eAAe,CAAC,sBAE7F,CAAC"}
|
|
@@ -1,13 +1,12 @@
|
|
|
1
|
-
/// <reference types="react" resolution-mode="require"/>
|
|
2
1
|
export declare const ContextMenu: import("react").FC<import("@radix-ui/react-context-menu").ContextMenuProps> & {
|
|
3
2
|
CheckboxItem: import("react").ForwardRefExoticComponent<Omit<import("@radix-ui/react-context-menu").ContextMenuCheckboxItemProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
4
3
|
Content: import("react").ForwardRefExoticComponent<Omit<import("@radix-ui/react-context-menu").ContextMenuContentProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
5
4
|
Group: import("react").ForwardRefExoticComponent<import("@radix-ui/react-context-menu").ContextMenuGroupProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
6
5
|
Item: import("react").ForwardRefExoticComponent<{
|
|
7
|
-
inset?: boolean
|
|
6
|
+
inset?: boolean;
|
|
8
7
|
} & Omit<import("@radix-ui/react-context-menu").ContextMenuItemProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
9
8
|
Label: import("react").ForwardRefExoticComponent<{
|
|
10
|
-
inset?: boolean
|
|
9
|
+
inset?: boolean;
|
|
11
10
|
} & Omit<import("@radix-ui/react-context-menu").ContextMenuLabelProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
12
11
|
Portal: import("react").FC<import("@radix-ui/react-context-menu").ContextMenuPortalProps>;
|
|
13
12
|
RadioGroup: import("react").ForwardRefExoticComponent<import("@radix-ui/react-context-menu").ContextMenuRadioGroupProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
@@ -17,7 +16,7 @@ export declare const ContextMenu: import("react").FC<import("@radix-ui/react-con
|
|
|
17
16
|
Sub: import("react").FC<import("@radix-ui/react-context-menu").ContextMenuSubProps>;
|
|
18
17
|
SubContent: import("react").ForwardRefExoticComponent<Omit<import("@radix-ui/react-context-menu").ContextMenuSubContentProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
19
18
|
SubTrigger: import("react").ForwardRefExoticComponent<{
|
|
20
|
-
inset?: boolean
|
|
19
|
+
inset?: boolean;
|
|
21
20
|
} & Omit<import("@radix-ui/react-context-menu").ContextMenuSubTriggerProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
22
21
|
Trigger: import("react").ForwardRefExoticComponent<import("@radix-ui/react-context-menu").ContextMenuTriggerProps & import("react").RefAttributes<HTMLSpanElement>>;
|
|
23
22
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ContextMenu.d.ts","sourceRoot":"","sources":["../../../src/components/ContextMenu/ContextMenu.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ContextMenu.d.ts","sourceRoot":"","sources":["../../../src/components/ContextMenu/ContextMenu.tsx"],"names":[],"mappings":"AAYA,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;CAetB,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import * as ContextMenuPrimitive from '@radix-ui/react-context-menu';
|
|
3
3
|
export declare const ContextMenuItem: React.ForwardRefExoticComponent<{
|
|
4
|
-
inset?: boolean
|
|
4
|
+
inset?: boolean;
|
|
5
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;YAGhB,OAAO;uIAcjB,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import * as ContextMenuPrimitive from '@radix-ui/react-context-menu';
|
|
3
3
|
export declare const ContextMenuLabel: React.ForwardRefExoticComponent<{
|
|
4
|
-
inset?: boolean
|
|
4
|
+
inset?: boolean;
|
|
5
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;YAGjB,OAAO;wIAUjB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ContextMenuShortcut.d.ts","sourceRoot":"","sources":["../../../src/components/ContextMenu/ContextMenuShortcut.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,eAAO,MAAM,mBAAmB,4BAA6B,
|
|
1
|
+
{"version":3,"file":"ContextMenuShortcut.d.ts","sourceRoot":"","sources":["../../../src/components/ContextMenu/ContextMenuShortcut.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,eAAO,MAAM,mBAAmB,4BAA6B,KAAK,CAAC,cAAc,CAAC,eAAe,CAAC,sBAEjG,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import * as ContextMenuPrimitive from '@radix-ui/react-context-menu';
|
|
3
3
|
export declare const ContextMenuSubTrigger: React.ForwardRefExoticComponent<{
|
|
4
|
-
inset?: boolean
|
|
4
|
+
inset?: boolean;
|
|
5
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;YAGtB,OAAO;6IAiBjB,CAAC"}
|
|
@@ -4,7 +4,7 @@ import { useTranslation } from 'react-i18next';
|
|
|
4
4
|
import { cn } from '../../utils.js';
|
|
5
5
|
import { ArrowToggle } from '../ArrowToggle/ArrowToggle.js';
|
|
6
6
|
import { Card } from '../Card/Card.js';
|
|
7
|
-
import {
|
|
7
|
+
import { Calendar, CALENDAR_ANIMATION_DURATION } from './Calendar.js';
|
|
8
8
|
import { YearSelector } from './YearSelector.js';
|
|
9
9
|
const MONTHS = [
|
|
10
10
|
'january',
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" resolution-mode="require"/>
|
|
2
1
|
export declare const Dialog: import("react").FC<import("@radix-ui/react-dialog").DialogProps> & {
|
|
3
2
|
Body: ({ children, className, ...props }: import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>) => import("react").JSX.Element;
|
|
4
3
|
Content: import("react").ForwardRefExoticComponent<Omit<import("@radix-ui/react-dialog").DialogContentProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Dialog.d.ts","sourceRoot":"","sources":["../../../src/components/Dialog/Dialog.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Dialog.d.ts","sourceRoot":"","sources":["../../../src/components/Dialog/Dialog.tsx"],"names":[],"mappings":"AASA,eAAO,MAAM,MAAM;;;;;;;;CAQjB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DialogBody.d.ts","sourceRoot":"","sources":["../../../src/components/Dialog/DialogBody.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,eAAO,MAAM,UAAU,sCAIpB,
|
|
1
|
+
{"version":3,"file":"DialogBody.d.ts","sourceRoot":"","sources":["../../../src/components/Dialog/DialogBody.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,eAAO,MAAM,UAAU,sCAIpB,KAAK,CAAC,iBAAiB,CAAC,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC,EAAE,cAAc,CAAC,sBAM/E,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DialogFooter.d.ts","sourceRoot":"","sources":["../../../src/components/Dialog/DialogFooter.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,eAAO,MAAM,YAAY,4BAA6B,
|
|
1
|
+
{"version":3,"file":"DialogFooter.d.ts","sourceRoot":"","sources":["../../../src/components/Dialog/DialogFooter.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,eAAO,MAAM,YAAY,4BAA6B,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC,sBAEzF,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DialogHeader.d.ts","sourceRoot":"","sources":["../../../src/components/Dialog/DialogHeader.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,eAAO,MAAM,YAAY,4BAA6B,
|
|
1
|
+
{"version":3,"file":"DialogHeader.d.ts","sourceRoot":"","sources":["../../../src/components/Dialog/DialogHeader.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,eAAO,MAAM,YAAY,4BAA6B,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC,sBAEzF,CAAC"}
|
|
@@ -3,7 +3,7 @@ import { Drawer as DrawerPrimitive } from 'vaul';
|
|
|
3
3
|
export declare const Drawer: (({ shouldScaleBackground, ...props }: React.ComponentProps<typeof DrawerPrimitive.Root>) => React.JSX.Element) & {
|
|
4
4
|
Close: React.ForwardRefExoticComponent<import("@radix-ui/react-dialog").DialogCloseProps & React.RefAttributes<HTMLButtonElement>>;
|
|
5
5
|
Content: React.ForwardRefExoticComponent<Omit<Omit<import("@radix-ui/react-dialog").DialogContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & {
|
|
6
|
-
onAnimationEnd?: (
|
|
6
|
+
onAnimationEnd?: (open: boolean) => void;
|
|
7
7
|
} & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
8
8
|
Description: React.ForwardRefExoticComponent<Omit<import("@radix-ui/react-dialog").DialogDescriptionProps & React.RefAttributes<HTMLParagraphElement>, "ref"> & React.RefAttributes<HTMLParagraphElement>>;
|
|
9
9
|
Footer: ({ className, ...props }: React.HTMLAttributes<HTMLDivElement>) => React.JSX.Element;
|
|
@@ -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,
|
|
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,KAAK,CAAC,cAAc,CAAC,OAAO,eAAe,CAAC,IAAI,CAAC;;;;;;;;;;CAY/G,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
export declare const DrawerContent: React.ForwardRefExoticComponent<Omit<Omit<import("@radix-ui/react-dialog").DialogContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & {
|
|
3
|
-
onAnimationEnd?: (
|
|
3
|
+
onAnimationEnd?: (open: boolean) => void;
|
|
4
4
|
} & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
5
5
|
//# sourceMappingURL=DrawerContent.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DrawerFooter.d.ts","sourceRoot":"","sources":["../../../src/components/Drawer/DrawerFooter.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,eAAO,MAAM,YAAY,4BAA6B,
|
|
1
|
+
{"version":3,"file":"DrawerFooter.d.ts","sourceRoot":"","sources":["../../../src/components/Drawer/DrawerFooter.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,eAAO,MAAM,YAAY,4BAA6B,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC,sBAEzF,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DrawerHeader.d.ts","sourceRoot":"","sources":["../../../src/components/Drawer/DrawerHeader.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,eAAO,MAAM,YAAY,4BAA6B,
|
|
1
|
+
{"version":3,"file":"DrawerHeader.d.ts","sourceRoot":"","sources":["../../../src/components/Drawer/DrawerHeader.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,eAAO,MAAM,YAAY,4BAA6B,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC,sBAEzF,CAAC"}
|
|
@@ -1,16 +1,15 @@
|
|
|
1
|
-
/// <reference types="react" resolution-mode="require"/>
|
|
2
1
|
import * as DropdownMenuPrimitive from '@radix-ui/react-dropdown-menu';
|
|
3
2
|
export declare const DropdownMenu: import("react").FC<DropdownMenuPrimitive.DropdownMenuProps> & {
|
|
4
3
|
CheckboxItem: import("react").ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuCheckboxItemProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
5
4
|
Content: import("react").ForwardRefExoticComponent<{
|
|
6
|
-
widthFull?: boolean
|
|
5
|
+
widthFull?: boolean;
|
|
7
6
|
} & Omit<DropdownMenuPrimitive.DropdownMenuContentProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
8
7
|
Group: import("react").ForwardRefExoticComponent<DropdownMenuPrimitive.DropdownMenuGroupProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
9
8
|
Item: import("react").ForwardRefExoticComponent<{
|
|
10
|
-
inset?: boolean
|
|
9
|
+
inset?: boolean;
|
|
11
10
|
} & Omit<DropdownMenuPrimitive.DropdownMenuItemProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
12
11
|
Label: import("react").ForwardRefExoticComponent<{
|
|
13
|
-
inset?: boolean
|
|
12
|
+
inset?: boolean;
|
|
14
13
|
} & Omit<DropdownMenuPrimitive.DropdownMenuLabelProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
15
14
|
Portal: import("react").FC<DropdownMenuPrimitive.DropdownMenuPortalProps>;
|
|
16
15
|
RadioGroup: import("react").ForwardRefExoticComponent<DropdownMenuPrimitive.DropdownMenuRadioGroupProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
@@ -20,7 +19,7 @@ export declare const DropdownMenu: import("react").FC<DropdownMenuPrimitive.Drop
|
|
|
20
19
|
Sub: import("react").FC<DropdownMenuPrimitive.DropdownMenuSubProps>;
|
|
21
20
|
SubContent: import("react").ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuSubContentProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
22
21
|
SubTrigger: import("react").ForwardRefExoticComponent<{
|
|
23
|
-
inset?: boolean
|
|
22
|
+
inset?: boolean;
|
|
24
23
|
} & Omit<DropdownMenuPrimitive.DropdownMenuSubTriggerProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
25
24
|
Trigger: import("react").ForwardRefExoticComponent<DropdownMenuPrimitive.DropdownMenuTriggerProps & import("react").RefAttributes<HTMLButtonElement>>;
|
|
26
25
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DropdownMenu.d.ts","sourceRoot":"","sources":["../../../src/components/DropdownMenu/DropdownMenu.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"DropdownMenu.d.ts","sourceRoot":"","sources":["../../../src/components/DropdownMenu/DropdownMenu.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,qBAAqB,MAAM,+BAA+B,CAAC;AAYvE,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;CAevB,CAAC"}
|
|
@@ -4,6 +4,6 @@ export type DropdownMenuContentProps = {
|
|
|
4
4
|
widthFull?: boolean;
|
|
5
5
|
} & React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.Content>;
|
|
6
6
|
export declare const DropdownMenuContent: React.ForwardRefExoticComponent<{
|
|
7
|
-
widthFull?: boolean
|
|
7
|
+
widthFull?: boolean;
|
|
8
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;IACrC,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB,GAAG,KAAK,CAAC,wBAAwB,CAAC,OAAO,qBAAqB,CAAC,OAAO,CAAC,CAAC;AACzE,eAAO,MAAM,mBAAmB
|
|
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;gBAFlB,OAAO;4IAqBnB,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import * as DropdownMenuPrimitive from '@radix-ui/react-dropdown-menu';
|
|
3
3
|
export declare const DropdownMenuItem: React.ForwardRefExoticComponent<{
|
|
4
|
-
inset?: boolean
|
|
4
|
+
inset?: boolean;
|
|
5
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;YAGjB,OAAO;yIAcjB,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import * as DropdownMenuPrimitive from '@radix-ui/react-dropdown-menu';
|
|
3
3
|
export declare const DropdownMenuLabel: React.ForwardRefExoticComponent<{
|
|
4
|
-
inset?: boolean
|
|
4
|
+
inset?: boolean;
|
|
5
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;YAGlB,OAAO;0IAUjB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DropdownMenuShortcut.d.ts","sourceRoot":"","sources":["../../../src/components/DropdownMenu/DropdownMenuShortcut.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,eAAO,MAAM,oBAAoB,4BAA6B,
|
|
1
|
+
{"version":3,"file":"DropdownMenuShortcut.d.ts","sourceRoot":"","sources":["../../../src/components/DropdownMenu/DropdownMenuShortcut.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,eAAO,MAAM,oBAAoB,4BAA6B,KAAK,CAAC,cAAc,CAAC,eAAe,CAAC,sBAElG,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import * as DropdownMenuPrimitive from '@radix-ui/react-dropdown-menu';
|
|
3
3
|
export declare const DropdownMenuSubTrigger: React.ForwardRefExoticComponent<{
|
|
4
|
-
inset?: boolean
|
|
4
|
+
inset?: boolean;
|
|
5
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;YAGvB,OAAO;+IAiBjB,CAAC"}
|
|
@@ -3,11 +3,12 @@ import type { Simplify } from 'type-fest';
|
|
|
3
3
|
import type { BaseFieldComponentProps } from './types.js';
|
|
4
4
|
export type BaseRadioFieldProps<T extends string> = Simplify<{
|
|
5
5
|
description?: string;
|
|
6
|
+
disabled?: boolean;
|
|
6
7
|
label: string;
|
|
7
8
|
options: {
|
|
8
9
|
[K in T]: string;
|
|
9
10
|
};
|
|
10
11
|
orientation?: 'horizontal' | 'vertical';
|
|
11
12
|
} & BaseFieldComponentProps<T>>;
|
|
12
|
-
export declare const BaseRadioField: <T extends string>({ description, error, label, name, options, orientation, readOnly, setValue, value }: BaseRadioFieldProps<T>) => React.JSX.Element;
|
|
13
|
+
export declare const BaseRadioField: <T extends string>({ description, disabled, error, label, name, options, orientation, readOnly, setValue, value }: BaseRadioFieldProps<T>) => React.JSX.Element;
|
|
13
14
|
//# 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;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,
|
|
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,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,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,GAAI,CAAC,SAAS,MAAM,kGAW5C,mBAAmB,CAAC,CAAC,CAAC,sBA8BxB,CAAC"}
|
|
@@ -14,14 +14,14 @@ const baseRadioFieldVariants = cva('flex', {
|
|
|
14
14
|
}
|
|
15
15
|
}
|
|
16
16
|
});
|
|
17
|
-
export const BaseRadioField = ({ description, error, label, name, options, orientation = 'vertical', readOnly, setValue, value }) => {
|
|
17
|
+
export const BaseRadioField = ({ description, disabled, error, label, name, options, orientation = 'vertical', readOnly, setValue, value }) => {
|
|
18
18
|
const optionsCount = Object.keys(options).length;
|
|
19
19
|
return (React.createElement(FieldGroup, null,
|
|
20
20
|
React.createElement(FieldGroup.Row, null,
|
|
21
21
|
React.createElement(Label, null, label),
|
|
22
22
|
React.createElement(FieldGroup.Description, { description: description })),
|
|
23
23
|
React.createElement(RadioGroup, { className: baseRadioFieldVariants({ orientation: optionsCount > 5 ? 'vertical' : orientation }), name: name, value: value ?? '', onValueChange: (value) => setValue(value) }, Object.keys(options).map((option) => (React.createElement("div", { className: "flex items-center gap-2", key: option },
|
|
24
|
-
React.createElement(RadioGroup.Item, { disabled: readOnly, id: `${name}-${option}`, value: option }),
|
|
25
|
-
React.createElement(Label, { "aria-disabled": readOnly, className: "font-normal text-muted-foreground", htmlFor: `${name}-${option}` }, options[option]))))),
|
|
24
|
+
React.createElement(RadioGroup.Item, { disabled: disabled || readOnly, id: `${name}-${option}`, value: option }),
|
|
25
|
+
React.createElement(Label, { "aria-disabled": disabled || readOnly, className: "font-normal text-muted-foreground", htmlFor: `${name}-${option}` }, options[option]))))),
|
|
26
26
|
React.createElement(FieldGroup.Error, { error: error })));
|
|
27
27
|
};
|
|
@@ -5,5 +5,5 @@ import type { BaseFieldComponentProps } from '../types.js';
|
|
|
5
5
|
export type BooleanFieldCheckboxProps = Simplify<BaseFieldComponentProps<boolean> & Omit<Extract<BooleanFormField, {
|
|
6
6
|
variant: 'checkbox';
|
|
7
7
|
}>, 'kind'>>;
|
|
8
|
-
export declare const BooleanFieldCheckbox: ({ error, label, name, readOnly, setValue, value }: BooleanFieldCheckboxProps) => React.JSX.Element;
|
|
8
|
+
export declare const BooleanFieldCheckbox: ({ disabled, error, label, name, readOnly, setValue, value }: BooleanFieldCheckboxProps) => React.JSX.Element;
|
|
9
9
|
//# sourceMappingURL=BooleanFieldCheckbox.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BooleanFieldCheckbox.d.ts","sourceRoot":"","sources":["../../../../src/components/Form/BooleanField/BooleanFieldCheckbox.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,2CAA2C,CAAC;AAClF,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,WAAW,CAAC;AAM1C,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,aAAa,CAAC;AAE3D,MAAM,MAAM,yBAAyB,GAAG,QAAQ,CAC9C,uBAAuB,CAAC,OAAO,CAAC,GAAG,IAAI,CAAC,OAAO,CAAC,gBAAgB,EAAE;IAAE,OAAO,EAAE,UAAU,CAAA;CAAE,CAAC,EAAE,MAAM,CAAC,CACpG,CAAC;AAEF,eAAO,MAAM,oBAAoB,
|
|
1
|
+
{"version":3,"file":"BooleanFieldCheckbox.d.ts","sourceRoot":"","sources":["../../../../src/components/Form/BooleanField/BooleanFieldCheckbox.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,2CAA2C,CAAC;AAClF,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,WAAW,CAAC;AAM1C,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,aAAa,CAAC;AAE3D,MAAM,MAAM,yBAAyB,GAAG,QAAQ,CAC9C,uBAAuB,CAAC,OAAO,CAAC,GAAG,IAAI,CAAC,OAAO,CAAC,gBAAgB,EAAE;IAAE,OAAO,EAAE,UAAU,CAAA;CAAE,CAAC,EAAE,MAAM,CAAC,CACpG,CAAC;AAEF,eAAO,MAAM,oBAAoB,gEAQ9B,yBAAyB,sBAoB3B,CAAC"}
|
|
@@ -2,10 +2,10 @@ import React from 'react';
|
|
|
2
2
|
import { Checkbox } from '../../Checkbox/Checkbox.js';
|
|
3
3
|
import { Label } from '../../Label/Label.js';
|
|
4
4
|
import { FieldGroup } from '../FieldGroup/FieldGroup.js';
|
|
5
|
-
export const BooleanFieldCheckbox = ({ error, label, name, readOnly, setValue, value }) => {
|
|
5
|
+
export const BooleanFieldCheckbox = ({ disabled, error, label, name, readOnly, setValue, value }) => {
|
|
6
6
|
return (React.createElement(FieldGroup, null,
|
|
7
7
|
React.createElement(FieldGroup.Row, null,
|
|
8
|
-
React.createElement(Checkbox, { checked: value, disabled: readOnly, id: name, name: name, onCheckedChange: (value) => {
|
|
8
|
+
React.createElement(Checkbox, { checked: value, disabled: disabled || readOnly, id: name, name: name, onCheckedChange: (value) => {
|
|
9
9
|
if (typeof value === 'boolean') {
|
|
10
10
|
setValue(value);
|
|
11
11
|
}
|
|
@@ -5,5 +5,5 @@ import type { BaseFieldComponentProps } from '../types.js';
|
|
|
5
5
|
export type BooleanFieldRadioProps = Simplify<BaseFieldComponentProps<boolean> & Omit<Extract<BooleanFormField, {
|
|
6
6
|
variant: 'radio';
|
|
7
7
|
}>, 'kind'>>;
|
|
8
|
-
export declare const BooleanFieldRadio: ({ error, label, name, options, readOnly, setValue, value }: BooleanFieldRadioProps) => React.JSX.Element;
|
|
8
|
+
export declare const BooleanFieldRadio: ({ disabled, error, label, name, options, readOnly, setValue, value }: BooleanFieldRadioProps) => React.JSX.Element;
|
|
9
9
|
//# sourceMappingURL=BooleanFieldRadio.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BooleanFieldRadio.d.ts","sourceRoot":"","sources":["../../../../src/components/Form/BooleanField/BooleanFieldRadio.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAsB,MAAM,OAAO,CAAC;AAE3C,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,2CAA2C,CAAC;AAGlF,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,WAAW,CAAC;AAM1C,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,aAAa,CAAC;AAS3D,MAAM,MAAM,sBAAsB,GAAG,QAAQ,CAC3C,uBAAuB,CAAC,OAAO,CAAC,GAAG,IAAI,CAAC,OAAO,CAAC,gBAAgB,EAAE;IAAE,OAAO,EAAE,OAAO,CAAA;CAAE,CAAC,EAAE,MAAM,CAAC,CACjG,CAAC;AAEF,eAAO,MAAM,iBAAiB
|
|
1
|
+
{"version":3,"file":"BooleanFieldRadio.d.ts","sourceRoot":"","sources":["../../../../src/components/Form/BooleanField/BooleanFieldRadio.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAsB,MAAM,OAAO,CAAC;AAE3C,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,2CAA2C,CAAC;AAGlF,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,WAAW,CAAC;AAM1C,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,aAAa,CAAC;AAS3D,MAAM,MAAM,sBAAsB,GAAG,QAAQ,CAC3C,uBAAuB,CAAC,OAAO,CAAC,GAAG,IAAI,CAAC,OAAO,CAAC,gBAAgB,EAAE;IAAE,OAAO,EAAE,OAAO,CAAA;CAAE,CAAC,EAAE,MAAM,CAAC,CACjG,CAAC;AAEF,eAAO,MAAM,iBAAiB,yEAS3B,sBAAsB,sBA+CxB,CAAC"}
|
|
@@ -9,7 +9,7 @@ const stringifyBoolean = (value) => match(value)
|
|
|
9
9
|
.with(true, () => 'true')
|
|
10
10
|
.with(false, () => 'false')
|
|
11
11
|
.exhaustive();
|
|
12
|
-
export const BooleanFieldRadio = ({ error, label, name, options, readOnly, setValue, value }) => {
|
|
12
|
+
export const BooleanFieldRadio = ({ disabled, error, label, name, options, readOnly, setValue, value }) => {
|
|
13
13
|
const { t } = useTranslation('libui');
|
|
14
14
|
const handleValueChange = useCallback((value) => {
|
|
15
15
|
match(value)
|
|
@@ -20,12 +20,12 @@ export const BooleanFieldRadio = ({ error, label, name, options, readOnly, setVa
|
|
|
20
20
|
}, [match, setValue]);
|
|
21
21
|
return (React.createElement(FieldGroup, null,
|
|
22
22
|
React.createElement(Label, null, label),
|
|
23
|
-
React.createElement(RadioGroup, { disabled: readOnly, name: name, value: stringifyBoolean(value), onValueChange: handleValueChange },
|
|
23
|
+
React.createElement(RadioGroup, { disabled: disabled || readOnly, name: name, value: stringifyBoolean(value), onValueChange: handleValueChange },
|
|
24
24
|
React.createElement(FieldGroup.Row, null,
|
|
25
25
|
React.createElement(RadioGroup.Item, { id: `${name}-true`, value: "true" }),
|
|
26
|
-
React.createElement(Label, { "aria-disabled": readOnly, className: "font-normal text-muted-foreground", htmlFor: `${name}-true` }, options?.true ?? t('form.radioLabels.true'))),
|
|
26
|
+
React.createElement(Label, { "aria-disabled": disabled || readOnly, className: "font-normal text-muted-foreground", htmlFor: `${name}-true` }, options?.true ?? t('form.radioLabels.true'))),
|
|
27
27
|
React.createElement(FieldGroup.Row, null,
|
|
28
28
|
React.createElement(RadioGroup.Item, { id: `${name}-false`, value: "false" }),
|
|
29
|
-
React.createElement(Label, { "aria-disabled": readOnly, className: "font-normal text-muted-foreground", htmlFor: `${name}-false` }, options?.false ?? t('form.radioLabels.false')))),
|
|
29
|
+
React.createElement(Label, { "aria-disabled": disabled || readOnly, className: "font-normal text-muted-foreground", htmlFor: `${name}-false` }, options?.false ?? t('form.radioLabels.false')))),
|
|
30
30
|
React.createElement(FieldGroup.Error, { error: error })));
|
|
31
31
|
};
|
|
@@ -3,5 +3,5 @@ import type { DateFormField } 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 DateFieldProps = Simplify<BaseFieldComponentProps<Date> & Omit<DateFormField, 'kind'>>;
|
|
6
|
-
export declare const DateField: ({ error, label, name, readOnly, setValue, value }: DateFieldProps) => React.JSX.Element;
|
|
6
|
+
export declare const DateField: ({ disabled, error, label, name, readOnly, setValue, value }: DateFieldProps) => React.JSX.Element;
|
|
7
7
|
//# sourceMappingURL=DateField.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DateField.d.ts","sourceRoot":"","sources":["../../../../src/components/Form/DateField/DateField.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA8B,MAAM,OAAO,CAAC;AAGnD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,2CAA2C,CAAC;AAC/E,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,WAAW,CAAC;AAO1C,OAAO,EAAE,KAAK,uBAAuB,EAAE,MAAM,aAAa,CAAC;AAI3D,MAAM,MAAM,cAAc,GAAG,QAAQ,CAAC,uBAAuB,CAAC,IAAI,CAAC,GAAG,IAAI,CAAC,aAAa,EAAE,MAAM,CAAC,CAAC,CAAC;AAEnG,eAAO,MAAM,SAAS,
|
|
1
|
+
{"version":3,"file":"DateField.d.ts","sourceRoot":"","sources":["../../../../src/components/Form/DateField/DateField.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA8B,MAAM,OAAO,CAAC;AAGnD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,2CAA2C,CAAC;AAC/E,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,WAAW,CAAC;AAO1C,OAAO,EAAE,KAAK,uBAAuB,EAAE,MAAM,aAAa,CAAC;AAI3D,MAAM,MAAM,cAAc,GAAG,QAAQ,CAAC,uBAAuB,CAAC,IAAI,CAAC,GAAG,IAAI,CAAC,aAAa,EAAE,MAAM,CAAC,CAAC,CAAC;AAEnG,eAAO,MAAM,SAAS,gEAAiE,cAAc,sBAmDpG,CAAC"}
|
|
@@ -7,7 +7,7 @@ import { Popover } from '../../Popover/Popover.js';
|
|
|
7
7
|
import { FieldGroup } from '../FieldGroup/FieldGroup.js';
|
|
8
8
|
import {} from '../types.js';
|
|
9
9
|
const isValidDateString = (s) => /^(\d{4})-((0[1-9])|(1[0-2]))-((0[1-9])|([12])[0-9]|3[01])$/.test(s);
|
|
10
|
-
export const DateField = ({ error, label, name, readOnly, setValue, value }) => {
|
|
10
|
+
export const DateField = ({ disabled, error, label, name, readOnly, setValue, value }) => {
|
|
11
11
|
const [isDatePickerOpen, setIsDatePickerOpen] = useState(false);
|
|
12
12
|
const [isInputFocused, setIsInputFocused] = useState(false);
|
|
13
13
|
const [inputValue, setInputValue] = useState('');
|
|
@@ -30,7 +30,7 @@ export const DateField = ({ error, label, name, readOnly, setValue, value }) =>
|
|
|
30
30
|
React.createElement(Label, { htmlFor: name }, label),
|
|
31
31
|
React.createElement(Popover, { open: isDatePickerOpen, onOpenChange: setIsDatePickerOpen },
|
|
32
32
|
React.createElement(Popover.Trigger, null,
|
|
33
|
-
React.createElement(Input, { autoComplete: "off", "data-cy": "date-input", "data-testid": "date-input", disabled: readOnly, name: name, placeholder: "YYYY-MM-DD", type: "text", value: inputValue, onBlur: () => setIsInputFocused(false), onChange: (event) => setInputValue(event.target.value), onFocus: () => setIsInputFocused(true) })),
|
|
33
|
+
React.createElement(Input, { autoComplete: "off", "data-cy": "date-input", "data-testid": "date-input", disabled: disabled || readOnly, name: name, placeholder: "YYYY-MM-DD", type: "text", value: inputValue, onBlur: () => setIsInputFocused(false), onChange: (event) => setInputValue(event.target.value), onFocus: () => setIsInputFocused(true) })),
|
|
34
34
|
React.createElement(Popover.Content, { asChild: true, align: "start", autofocus: false, className: "w-auto" },
|
|
35
35
|
React.createElement(DatePicker, { onSelection: (value) => {
|
|
36
36
|
setInputValue(toBasicISOString(value));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DynamicField.d.ts","sourceRoot":"","sources":["../../../src/components/Form/DynamicField.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAuC,MAAM,OAAO,CAAC;AAE5D,OAAO,KAAK,EAAE,gBAAgB,EAAE,YAAY,EAAE,mBAAmB,EAAE,MAAM,2CAA2C,CAAC;AAKrH,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AAE7C,MAAM,MAAM,iBAAiB,CAAC,KAAK,SAAS,YAAY,IAAI;IAC1D,MAAM,EAAE,UAAU,CAAC,KAAK,CAAC,CAAC;IAC1B,KAAK,EAAE,gBAAgB,CAAC,KAAK,CAAC,CAAC;IAC/B,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,SAAS,EAAE,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,cAAc,CAAC,UAAU,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;IACnE,SAAS,EAAE,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,cAAc,CAAC,mBAAmB,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;IAC5E,MAAM,EAAE,mBAAmB,CAAC,KAAK,CAAC,CAAC;CACpC,CAAC;AAEF,eAAO,MAAM,YAAY,
|
|
1
|
+
{"version":3,"file":"DynamicField.d.ts","sourceRoot":"","sources":["../../../src/components/Form/DynamicField.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAuC,MAAM,OAAO,CAAC;AAE5D,OAAO,KAAK,EAAE,gBAAgB,EAAE,YAAY,EAAE,mBAAmB,EAAE,MAAM,2CAA2C,CAAC;AAKrH,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AAE7C,MAAM,MAAM,iBAAiB,CAAC,KAAK,SAAS,YAAY,IAAI;IAC1D,MAAM,EAAE,UAAU,CAAC,KAAK,CAAC,CAAC;IAC1B,KAAK,EAAE,gBAAgB,CAAC,KAAK,CAAC,CAAC;IAC/B,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,SAAS,EAAE,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,cAAc,CAAC,UAAU,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;IACnE,SAAS,EAAE,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,cAAc,CAAC,mBAAmB,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;IAC5E,MAAM,EAAE,mBAAmB,CAAC,KAAK,CAAC,CAAC;CACpC,CAAC;AAEF,eAAO,MAAM,YAAY,GAAI,KAAK,SAAS,YAAY,0DAOpD,iBAAiB,CAAC,KAAK,CAAC,6BA6B1B,CAAC"}
|
|
@@ -1,12 +1,11 @@
|
|
|
1
|
-
/// <reference types="react" resolution-mode="require"/>
|
|
2
1
|
export declare const FieldGroup: import("react").FC<{
|
|
3
2
|
children: import("react").ReactNode;
|
|
4
3
|
}> & {
|
|
5
4
|
Description: import("react").FC<{
|
|
6
|
-
description?:
|
|
5
|
+
description?: null | string;
|
|
7
6
|
}>;
|
|
8
7
|
Error: import("react").FC<{
|
|
9
|
-
error?:
|
|
8
|
+
error?: null | string[];
|
|
10
9
|
}>;
|
|
11
10
|
Row: import("react").FC<{
|
|
12
11
|
children: import("react").ReactNode;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FieldGroup.d.ts","sourceRoot":"","sources":["../../../../src/components/Form/FieldGroup/FieldGroup.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"FieldGroup.d.ts","sourceRoot":"","sources":["../../../../src/components/Form/FieldGroup/FieldGroup.tsx"],"names":[],"mappings":"AAKA,eAAO,MAAM,UAAU;;;;;;;;;;;;CAIrB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FieldsComponent.d.ts","sourceRoot":"","sources":["../../../src/components/Form/FieldsComponent.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,KAAK,EAAE,YAAY,EAAE,UAAU,EAAE,mBAAmB,EAAE,MAAM,2CAA2C,CAAC;AAK/G,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AAE7C,MAAM,MAAM,oBAAoB,CAAC,CAAC,SAAS,YAAY,IAAI;IACzD,MAAM,EAAE,UAAU,CAAC,CAAC,CAAC,CAAC;IACtB,MAAM,EAAE,UAAU,CAAC,CAAC,CAAC,CAAC;IACtB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,SAAS,EAAE,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,cAAc,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;IAC/D,SAAS,EAAE,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,cAAc,CAAC,mBAAmB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;IACxE,MAAM,EAAE,mBAAmB,CAAC,CAAC,CAAC,CAAC;CAChC,CAAC;AAEF,gGAAgG;AAChG,eAAO,MAAM,eAAe,
|
|
1
|
+
{"version":3,"file":"FieldsComponent.d.ts","sourceRoot":"","sources":["../../../src/components/Form/FieldsComponent.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,KAAK,EAAE,YAAY,EAAE,UAAU,EAAE,mBAAmB,EAAE,MAAM,2CAA2C,CAAC;AAK/G,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AAE7C,MAAM,MAAM,oBAAoB,CAAC,CAAC,SAAS,YAAY,IAAI;IACzD,MAAM,EAAE,UAAU,CAAC,CAAC,CAAC,CAAC;IACtB,MAAM,EAAE,UAAU,CAAC,CAAC,CAAC,CAAC;IACtB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,SAAS,EAAE,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,cAAc,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;IAC/D,SAAS,EAAE,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,cAAc,CAAC,mBAAmB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;IACxE,MAAM,EAAE,mBAAmB,CAAC,CAAC,CAAC,CAAC;CAChC,CAAC;AAEF,gGAAgG;AAChG,eAAO,MAAM,eAAe,GAAI,CAAC,SAAS,YAAY,wBAAwB,oBAAoB,CAAC,CAAC,CAAC,wBAQpG,CAAC"}
|
|
@@ -17,6 +17,6 @@ type FormProps<TSchema extends z.ZodType<FormDataType>, TData extends z.TypeOf<T
|
|
|
17
17
|
submitBtnLabel?: string;
|
|
18
18
|
validationSchema: z.ZodType<TData>;
|
|
19
19
|
};
|
|
20
|
-
declare const Form: <TSchema extends z.ZodType<FormDataType
|
|
20
|
+
declare const Form: <TSchema extends z.ZodType<FormDataType>, TData extends z.TypeOf<TSchema> = z.TypeOf<TSchema>>({ className, content, id, initialValues, onError, onSubmit, preventResetValuesOnReset, readOnly, resetBtn, revalidateOnBlur, submitBtnLabel, validationSchema, ...props }: FormProps<TSchema, TData>) => React.JSX.Element;
|
|
21
21
|
export { Form, type FormProps };
|
|
22
22
|
//# sourceMappingURL=Form.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Form.d.ts","sourceRoot":"","sources":["../../../src/components/Form/Form.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA8B,MAAM,OAAO,CAAC;AAEnD,OAAO,KAAK,EACV,WAAW,EACX,YAAY,EAGZ,2BAA2B,EAC5B,MAAM,2CAA2C,CAAC;AAInD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,WAAW,CAAC;AAC5C,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAUxB,KAAK,SAAS,CAAC,OAAO,SAAS,CAAC,CAAC,OAAO,CAAC,YAAY,CAAC,EAAE,KAAK,SAAS,CAAC,CAAC,MAAM,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,CAAC,IAAI;IAC7G,CAAC,GAAG,EAAE,QAAQ,MAAM,EAAE,GAAG,OAAO,CAAC;IACjC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,OAAO,EAAE,WAAW,CAAC,KAAK,CAAC,CAAC;IAC5B,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,aAAa,CAAC,EAAE,2BAA2B,CAAC,KAAK,CAAC,CAAC;IACnD,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,CAAC,CAAC,QAAQ,CAAC,KAAK,CAAC,KAAK,IAAI,CAAC;IAC7C,QAAQ,EAAE,CAAC,IAAI,EAAE,KAAK,KAAK,UAAU,CAAC,IAAI,CAAC,CAAC;IAC5C,yBAAyB,CAAC,EAAE,OAAO,CAAC;IACpC,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,gBAAgB,EAAE,CAAC,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;CACpC,CAAC;AAEF,QAAA,MAAM,IAAI,
|
|
1
|
+
{"version":3,"file":"Form.d.ts","sourceRoot":"","sources":["../../../src/components/Form/Form.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA8B,MAAM,OAAO,CAAC;AAEnD,OAAO,KAAK,EACV,WAAW,EACX,YAAY,EAGZ,2BAA2B,EAC5B,MAAM,2CAA2C,CAAC;AAInD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,WAAW,CAAC;AAC5C,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAUxB,KAAK,SAAS,CAAC,OAAO,SAAS,CAAC,CAAC,OAAO,CAAC,YAAY,CAAC,EAAE,KAAK,SAAS,CAAC,CAAC,MAAM,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,CAAC,IAAI;IAC7G,CAAC,GAAG,EAAE,QAAQ,MAAM,EAAE,GAAG,OAAO,CAAC;IACjC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,OAAO,EAAE,WAAW,CAAC,KAAK,CAAC,CAAC;IAC5B,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,aAAa,CAAC,EAAE,2BAA2B,CAAC,KAAK,CAAC,CAAC;IACnD,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,CAAC,CAAC,QAAQ,CAAC,KAAK,CAAC,KAAK,IAAI,CAAC;IAC7C,QAAQ,EAAE,CAAC,IAAI,EAAE,KAAK,KAAK,UAAU,CAAC,IAAI,CAAC,CAAC;IAC5C,yBAAyB,CAAC,EAAE,OAAO,CAAC;IACpC,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,gBAAgB,EAAE,CAAC,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;CACpC,CAAC;AAEF,QAAA,MAAM,IAAI,GAAI,OAAO,SAAS,CAAC,CAAC,OAAO,CAAC,YAAY,CAAC,EAAE,KAAK,SAAS,CAAC,CAAC,MAAM,CAAC,OAAO,CAAC,iMAcnF,SAAS,CAAC,OAAO,EAAE,KAAK,CAAC,sBA4I3B,CAAC;AAEF,OAAO,EAAE,IAAI,EAAE,KAAK,SAAS,EAAE,CAAC"}
|
|
@@ -5,5 +5,5 @@ import type { BaseFieldComponentProps } from '../types.js';
|
|
|
5
5
|
export type NumberFieldInputProps = Simplify<BaseFieldComponentProps<number> & Extract<NumberFormField, {
|
|
6
6
|
variant: 'input';
|
|
7
7
|
}>>;
|
|
8
|
-
export declare const NumberFieldInput: ({ description, error, label, max, min, name, readOnly, setValue, value }: NumberFieldInputProps) => React.JSX.Element;
|
|
8
|
+
export declare const NumberFieldInput: ({ description, disabled, error, label, max, min, name, readOnly, setValue, value }: NumberFieldInputProps) => React.JSX.Element;
|
|
9
9
|
//# sourceMappingURL=NumberFieldInput.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NumberFieldInput.d.ts","sourceRoot":"","sources":["../../../../src/components/Form/NumberField/NumberFieldInput.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA2B,MAAM,OAAO,CAAC;AAGhD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,2CAA2C,CAAC;AACjF,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,WAAW,CAAC;AAM1C,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,OAAO,CAAA;CAAE,CAAC,CACjF,CAAC;AAEF,eAAO,MAAM,gBAAgB,
|
|
1
|
+
{"version":3,"file":"NumberFieldInput.d.ts","sourceRoot":"","sources":["../../../../src/components/Form/NumberField/NumberFieldInput.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA2B,MAAM,OAAO,CAAC;AAGhD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,2CAA2C,CAAC;AACjF,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,WAAW,CAAC;AAM1C,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,OAAO,CAAA;CAAE,CAAC,CACjF,CAAC;AAEF,eAAO,MAAM,gBAAgB,uFAW1B,qBAAqB,sBAyCvB,CAAC"}
|
|
@@ -3,7 +3,7 @@ import { parseNumber } from '@douglasneuroinformatics/libjs';
|
|
|
3
3
|
import { Input } from '../../Input/Input.js';
|
|
4
4
|
import { Label } from '../../Label/Label.js';
|
|
5
5
|
import { FieldGroup } from '../FieldGroup/FieldGroup.js';
|
|
6
|
-
export const NumberFieldInput = ({ description, error, label, max = Number.MAX_SAFE_INTEGER, min = Number.MIN_SAFE_INTEGER, name, readOnly, setValue, value }) => {
|
|
6
|
+
export const NumberFieldInput = ({ description, disabled, error, label, max = Number.MAX_SAFE_INTEGER, min = Number.MIN_SAFE_INTEGER, name, readOnly, setValue, value }) => {
|
|
7
7
|
const inputValueRef = useRef(value?.toString() ?? '');
|
|
8
8
|
const [inputKey, setInputKey] = useState(0);
|
|
9
9
|
const handleChange = (event) => {
|
|
@@ -19,12 +19,17 @@ export const NumberFieldInput = ({ description, error, label, max = Number.MAX_S
|
|
|
19
19
|
inputValueRef.current = event.target.value;
|
|
20
20
|
}
|
|
21
21
|
}
|
|
22
|
-
value === newValue
|
|
22
|
+
if (value === newValue) {
|
|
23
|
+
setInputKey(inputKey + 1);
|
|
24
|
+
}
|
|
25
|
+
else {
|
|
26
|
+
setValue(newValue);
|
|
27
|
+
}
|
|
23
28
|
};
|
|
24
29
|
return (React.createElement(FieldGroup, null,
|
|
25
30
|
React.createElement(FieldGroup.Row, null,
|
|
26
31
|
React.createElement(Label, null, label),
|
|
27
32
|
React.createElement(FieldGroup.Description, { description: description })),
|
|
28
|
-
React.createElement(Input, { disabled: readOnly, max: max, min: min, name: name, type: "text", value: inputValueRef.current, onChange: handleChange }),
|
|
33
|
+
React.createElement(Input, { disabled: disabled || readOnly, max: max, min: min, name: name, type: "text", value: inputValueRef.current, onChange: handleChange }),
|
|
29
34
|
React.createElement(FieldGroup.Error, { error: error })));
|
|
30
35
|
};
|
|
@@ -5,5 +5,5 @@ import type { BaseFieldComponentProps } from '../types.js';
|
|
|
5
5
|
export type NumberFieldRadioProps = Simplify<BaseFieldComponentProps<number> & Extract<NumberFormField, {
|
|
6
6
|
options: object;
|
|
7
7
|
}>>;
|
|
8
|
-
export declare const NumberFieldRadio: ({ description, disableAutoPrefix, error, label, name, options, readOnly, setValue, value }: NumberFieldRadioProps) => React.JSX.Element;
|
|
8
|
+
export declare const NumberFieldRadio: ({ description, disableAutoPrefix, disabled, error, label, name, options, readOnly, 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,MAAM,CAAA;CAAE,CAAC,CAChF,CAAC;AAEF,eAAO,MAAM,gBAAgB
|
|
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,yGAW1B,qBAAqB,sBAwCvB,CAAC"}
|
|
@@ -3,7 +3,7 @@ import { cn } from '../../../utils.js';
|
|
|
3
3
|
import { Label } from '../../Label/Label.js';
|
|
4
4
|
import { RadioGroup } from '../../RadioGroup/RadioGroup.js';
|
|
5
5
|
import { FieldGroup } from '../FieldGroup/FieldGroup.js';
|
|
6
|
-
export const NumberFieldRadio = ({ description, disableAutoPrefix, error, label, name, options, readOnly, setValue, value }) => {
|
|
6
|
+
export const NumberFieldRadio = ({ description, disableAutoPrefix, disabled, error, label, name, options, readOnly, setValue, value }) => {
|
|
7
7
|
const optionsCount = Object.keys(options).length;
|
|
8
8
|
return (React.createElement(FieldGroup, null,
|
|
9
9
|
React.createElement(FieldGroup.Row, null,
|
|
@@ -15,8 +15,8 @@ export const NumberFieldRadio = ({ description, disableAutoPrefix, error, label,
|
|
|
15
15
|
.map((val) => {
|
|
16
16
|
const text = (disableAutoPrefix ? '' : `${val} - `) + options[val];
|
|
17
17
|
return (React.createElement("div", { className: "flex items-center gap-2", key: val },
|
|
18
|
-
React.createElement(RadioGroup.Item, { disabled: readOnly, id: `${name}-${val}`, value: val.toString() }),
|
|
19
|
-
React.createElement(Label, { "aria-disabled": readOnly, className: "font-normal text-muted-foreground", htmlFor: `${name}-${val}` }, text)));
|
|
18
|
+
React.createElement(RadioGroup.Item, { disabled: disabled || readOnly, id: `${name}-${val}`, value: val.toString() }),
|
|
19
|
+
React.createElement(Label, { "aria-disabled": disabled || readOnly, className: "font-normal text-muted-foreground", htmlFor: `${name}-${val}` }, text)));
|
|
20
20
|
})),
|
|
21
21
|
React.createElement(FieldGroup.Error, { error: error })));
|
|
22
22
|
};
|
|
@@ -5,5 +5,5 @@ import { type BaseFieldComponentProps } from '../types.js';
|
|
|
5
5
|
export type NumberFieldSelectProps<T extends number = number> = Simplify<BaseFieldComponentProps<T> & Extract<NumberFormField<T>, {
|
|
6
6
|
options: object;
|
|
7
7
|
}>>;
|
|
8
|
-
export declare const NumberFieldSelect: <T extends number = number>({ description, disableAutoPrefix, error, label, name, options, readOnly, setValue, value }: NumberFieldSelectProps<T>) => React.JSX.Element;
|
|
8
|
+
export declare const NumberFieldSelect: <T extends number = number>({ description, disableAutoPrefix, disabled, error, label, name, options, readOnly, setValue, value }: NumberFieldSelectProps<T>) => React.JSX.Element;
|
|
9
9
|
//# sourceMappingURL=NumberFieldSelect.d.ts.map
|
|
@@ -1 +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,
|
|
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,GAAI,CAAC,SAAS,MAAM,iHAW/C,sBAAsB,CAAC,CAAC,CAAC,sBA8B3B,CAAC"}
|