@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
|
@@ -3,13 +3,13 @@ import { Label } from '../../Label/Label.js';
|
|
|
3
3
|
import { Select } from '../../Select/Select.js';
|
|
4
4
|
import { FieldGroup } from '../FieldGroup/FieldGroup.js';
|
|
5
5
|
import {} from '../types.js';
|
|
6
|
-
export const NumberFieldSelect = ({ description, disableAutoPrefix, error, label, name, options, readOnly, setValue, value }) => {
|
|
6
|
+
export const NumberFieldSelect = ({ description, disableAutoPrefix, disabled, error, label, name, options, readOnly, setValue, value }) => {
|
|
7
7
|
return (React.createElement(FieldGroup, null,
|
|
8
8
|
React.createElement(FieldGroup.Row, null,
|
|
9
9
|
React.createElement(Label, null, label),
|
|
10
10
|
React.createElement(FieldGroup.Description, { description: description })),
|
|
11
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`, disabled: readOnly },
|
|
12
|
+
React.createElement(Select.Trigger, { "data-cy": `${name}-select-trigger`, "data-testid": `${name}-select-trigger`, disabled: disabled || readOnly },
|
|
13
13
|
React.createElement(Select.Value, null)),
|
|
14
14
|
React.createElement(Select.Content, { "data-cy": `${name}-select-content`, "data-testid": `${name}-select-content` }, Object.keys(options).map((option) => {
|
|
15
15
|
// Option needs to be type number (this was a design flaw), but is actually always coerced to string anyways
|
|
@@ -5,5 +5,5 @@ import type { BaseFieldComponentProps } from '../types.js';
|
|
|
5
5
|
export type NumberFieldSliderProps = Simplify<BaseFieldComponentProps<number> & Extract<NumberFormField, {
|
|
6
6
|
variant: 'slider';
|
|
7
7
|
}>>;
|
|
8
|
-
export declare const NumberFieldSlider: ({ description, error, label, max, min, name, readOnly, setValue, value }: NumberFieldSliderProps) => React.JSX.Element;
|
|
8
|
+
export declare const NumberFieldSlider: ({ description, disabled, error, label, max, min, name, readOnly, setValue, value }: NumberFieldSliderProps) => React.JSX.Element;
|
|
9
9
|
//# sourceMappingURL=NumberFieldSlider.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NumberFieldSlider.d.ts","sourceRoot":"","sources":["../../../../src/components/Form/NumberField/NumberFieldSlider.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;AAM1C,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,aAAa,CAAC;AAE3D,MAAM,MAAM,sBAAsB,GAAG,QAAQ,CAC3C,uBAAuB,CAAC,MAAM,CAAC,GAAG,OAAO,CAAC,eAAe,EAAE;IAAE,OAAO,EAAE,QAAQ,CAAA;CAAE,CAAC,CAClF,CAAC;AAEF,eAAO,MAAM,iBAAiB,
|
|
1
|
+
{"version":3,"file":"NumberFieldSlider.d.ts","sourceRoot":"","sources":["../../../../src/components/Form/NumberField/NumberFieldSlider.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;AAM1C,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,aAAa,CAAC;AAE3D,MAAM,MAAM,sBAAsB,GAAG,QAAQ,CAC3C,uBAAuB,CAAC,MAAM,CAAC,GAAG,OAAO,CAAC,eAAe,EAAE;IAAE,OAAO,EAAE,QAAQ,CAAA;CAAE,CAAC,CAClF,CAAC;AAEF,eAAO,MAAM,iBAAiB,uFAW3B,sBAAsB,sBAuBxB,CAAC"}
|
|
@@ -2,13 +2,13 @@ import React from 'react';
|
|
|
2
2
|
import { Label } from '../../Label/Label.js';
|
|
3
3
|
import { Slider } from '../../Slider/Slider.js';
|
|
4
4
|
import { FieldGroup } from '../FieldGroup/FieldGroup.js';
|
|
5
|
-
export const NumberFieldSlider = ({ description, error, label, max, min, name, readOnly, setValue, value }) => {
|
|
5
|
+
export const NumberFieldSlider = ({ description, disabled, error, label, max, min, name, readOnly, setValue, value }) => {
|
|
6
6
|
return (React.createElement(FieldGroup, null,
|
|
7
7
|
React.createElement(FieldGroup.Row, null,
|
|
8
8
|
React.createElement(Label, null, label),
|
|
9
9
|
React.createElement(FieldGroup.Description, { description: description })),
|
|
10
10
|
React.createElement(FieldGroup.Row, null,
|
|
11
|
-
React.createElement(Slider, { disabled: readOnly, max: max, min: min, name: name, value: [value ?? 0], onValueChange: ([value]) => setValue(value) }),
|
|
11
|
+
React.createElement(Slider, { disabled: disabled || readOnly, max: max, min: min, name: name, value: [value ?? 0], onValueChange: ([value]) => setValue(value) }),
|
|
12
12
|
React.createElement("span", { className: "flex h-full w-8 items-center justify-center text-sm text-muted-foreground" }, value ?? 'NA')),
|
|
13
13
|
React.createElement(FieldGroup.Error, { error: error })));
|
|
14
14
|
};
|
|
@@ -3,5 +3,5 @@ import type { NumberRecordFieldValue, NumberRecordFormField, RequiredFieldValue
|
|
|
3
3
|
import type { Simplify } from 'type-fest';
|
|
4
4
|
import type { BaseFieldComponentProps } from './types.js';
|
|
5
5
|
export type NumberRecordFieldProps<T extends NumberRecordFieldValue = NumberRecordFieldValue> = Simplify<BaseFieldComponentProps<NumberRecordFieldValue> & NumberRecordFormField<RequiredFieldValue<T>>>;
|
|
6
|
-
export declare const NumberRecordField: <T extends NumberRecordFieldValue = NumberRecordFieldValue>({ error: recordError, items, label, options, readOnly, setError: setRecordError, setValue: setRecordValue, value: recordValue }: NumberRecordFieldProps<T>) => React.JSX.Element | null;
|
|
6
|
+
export declare const NumberRecordField: <T extends NumberRecordFieldValue = NumberRecordFieldValue>({ disabled, error: recordError, items, label, options, readOnly, setError: setRecordError, setValue: setRecordValue, value: recordValue }: NumberRecordFieldProps<T>) => React.JSX.Element | null;
|
|
7
7
|
//# sourceMappingURL=NumberRecordField.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NumberRecordField.d.ts","sourceRoot":"","sources":["../../../src/components/Form/NumberRecordField.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAoB,MAAM,OAAO,CAAC;AAEzC,OAAO,KAAK,EACV,sBAAsB,EACtB,qBAAqB,EACrB,kBAAkB,EACnB,MAAM,2CAA2C,CAAC;AACnD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,WAAW,CAAC;AAK1C,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,YAAY,CAAC;AAE1D,MAAM,MAAM,sBAAsB,CAAC,CAAC,SAAS,sBAAsB,GAAG,sBAAsB,IAAI,QAAQ,CACtG,uBAAuB,CAAC,sBAAsB,CAAC,GAAG,qBAAqB,CAAC,kBAAkB,CAAC,CAAC,CAAC,CAAC,CAC/F,CAAC;AAEF,eAAO,MAAM,iBAAiB
|
|
1
|
+
{"version":3,"file":"NumberRecordField.d.ts","sourceRoot":"","sources":["../../../src/components/Form/NumberRecordField.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAoB,MAAM,OAAO,CAAC;AAEzC,OAAO,KAAK,EACV,sBAAsB,EACtB,qBAAqB,EACrB,kBAAkB,EACnB,MAAM,2CAA2C,CAAC;AACnD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,WAAW,CAAC;AAK1C,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,YAAY,CAAC;AAE1D,MAAM,MAAM,sBAAsB,CAAC,CAAC,SAAS,sBAAsB,GAAG,sBAAsB,IAAI,QAAQ,CACtG,uBAAuB,CAAC,sBAAsB,CAAC,GAAG,qBAAqB,CAAC,kBAAkB,CAAC,CAAC,CAAC,CAAC,CAC/F,CAAC;AAEF,eAAO,MAAM,iBAAiB,GAAI,CAAC,SAAS,sBAAsB,sKAU/D,sBAAsB,CAAC,CAAC,CAAC,6BAoC3B,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React, { useEffect } from 'react';
|
|
2
2
|
import { Heading } from '../Heading/Heading.js';
|
|
3
3
|
import { NumberField } from './NumberField/NumberField.js';
|
|
4
|
-
export const NumberRecordField = ({ error: recordError, items, label, options, readOnly, setError: setRecordError, setValue: setRecordValue, value: recordValue }) => {
|
|
4
|
+
export const NumberRecordField = ({ disabled, error: recordError, items, label, options, readOnly, setError: setRecordError, setValue: setRecordValue, value: recordValue }) => {
|
|
5
5
|
useEffect(() => {
|
|
6
6
|
setRecordValue({});
|
|
7
7
|
}, [options]);
|
|
@@ -12,6 +12,6 @@ export const NumberRecordField = ({ error: recordError, items, label, options, r
|
|
|
12
12
|
React.createElement(Heading, { className: "font-medium", variant: "h5" }, label),
|
|
13
13
|
React.createElement("div", { className: "space-y-6" }, Object.keys(items).map((name) => {
|
|
14
14
|
const item = items[name];
|
|
15
|
-
return (React.createElement(NumberField, { error: recordError?.[name], key: name, kind: "number", name: name, options: options, readOnly: readOnly, setError: (error) => setRecordError({ ...recordError, [name]: error }), setValue: (value) => setRecordValue({ ...recordValue, [name]: value }), value: recordValue?.[name], variant: "radio", ...item }));
|
|
15
|
+
return (React.createElement(NumberField, { error: recordError?.[name], key: name, kind: "number", name: name, options: options, readOnly: disabled || readOnly, setError: (error) => setRecordError({ ...recordError, [name]: error }), setValue: (value) => setRecordValue({ ...recordValue, [name]: value }), value: recordValue?.[name], variant: "radio", ...item }));
|
|
16
16
|
}))));
|
|
17
17
|
};
|
|
@@ -15,10 +15,11 @@ export declare const RecordArrayField: React.NamedExoticComponent<{
|
|
|
15
15
|
setValue: (value: RecordArrayFieldValue) => void;
|
|
16
16
|
value: RecordArrayFieldValue;
|
|
17
17
|
description?: string | undefined;
|
|
18
|
+
disabled?: boolean | undefined;
|
|
18
19
|
kind: "record-array";
|
|
19
20
|
label: string;
|
|
20
|
-
fieldset: import("@douglasneuroinformatics/libui-form-types").Fieldset<{
|
|
21
|
-
[x: string]: NonNullable<import("@douglasneuroinformatics/libui-form-types").ScalarFieldValue>;
|
|
21
|
+
fieldset: import("@douglasneuroinformatics/libui-form-types").default.Fieldset<{
|
|
22
|
+
[x: string]: NonNullable<import("@douglasneuroinformatics/libui-form-types").default.ScalarFieldValue>;
|
|
22
23
|
}>;
|
|
23
24
|
}>;
|
|
24
25
|
//# sourceMappingURL=RecordArrayField.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RecordArrayField.d.ts","sourceRoot":"","sources":["../../../src/components/Form/RecordArrayField.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA0B,MAAM,OAAO,CAAC;AAE/C,OAAO,KAAK,EAAE,qBAAqB,EAAE,oBAAoB,EAAE,MAAM,2CAA2C,CAAC;AAG7G,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,WAAW,CAAC;AAO1C,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,YAAY,CAAC;AAE1D,MAAM,MAAM,qBAAqB,GAAG,QAAQ,CAAC,uBAAuB,CAAC,qBAAqB,CAAC,GAAG,oBAAoB,CAAC,CAAC;AAEpH,eAAO,MAAM,gBAAgB
|
|
1
|
+
{"version":3,"file":"RecordArrayField.d.ts","sourceRoot":"","sources":["../../../src/components/Form/RecordArrayField.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA0B,MAAM,OAAO,CAAC;AAE/C,OAAO,KAAK,EAAE,qBAAqB,EAAE,oBAAoB,EAAE,MAAM,2CAA2C,CAAC;AAG7G,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,WAAW,CAAC;AAO1C,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,YAAY,CAAC;AAE1D,MAAM,MAAM,qBAAqB,GAAG,QAAQ,CAAC,uBAAuB,CAAC,qBAAqB,CAAC,GAAG,oBAAoB,CAAC,CAAC;AAEpH,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;EA0F3B,CAAC"}
|
|
@@ -5,7 +5,7 @@ import { Button } from '../Button/Button.js';
|
|
|
5
5
|
import { Heading } from '../Heading/Heading.js';
|
|
6
6
|
import { Label } from '../Label/Label.js';
|
|
7
7
|
import { ScalarField } from './ScalarField.js';
|
|
8
|
-
export const RecordArrayField = memo(function RecordArrayField({ error: arrayError, fieldset, label, readOnly, setError: setArrayError, setValue: setArrayValue, value: arrayValue }) {
|
|
8
|
+
export const RecordArrayField = memo(function RecordArrayField({ disabled, error: arrayError, fieldset, label, readOnly, setError: setArrayError, setValue: setArrayValue, value: arrayValue }) {
|
|
9
9
|
const { t } = useTranslation('libui');
|
|
10
10
|
const createNewRecord = () => Object.fromEntries(Object.keys(fieldset).map((fieldName) => [fieldName, undefined]));
|
|
11
11
|
useEffect(() => {
|
|
@@ -33,7 +33,10 @@ export const RecordArrayField = memo(function RecordArrayField({ error: arrayErr
|
|
|
33
33
|
if (!fieldProps) {
|
|
34
34
|
return null;
|
|
35
35
|
}
|
|
36
|
-
return (React.createElement(ScalarField, { error: arrayError?.[i]?.[name], field:
|
|
36
|
+
return (React.createElement(ScalarField, { error: arrayError?.[i]?.[name], field: {
|
|
37
|
+
...fieldProps,
|
|
38
|
+
disabled: disabled || fieldProps.disabled
|
|
39
|
+
}, key: name, name: name, readOnly: disabled || readOnly, setError: (error) => {
|
|
37
40
|
const newArrayError = arrayError ? [...arrayError] : [];
|
|
38
41
|
if (!newArrayError[i]) {
|
|
39
42
|
newArrayError[i] = {};
|
|
@@ -47,10 +50,10 @@ export const RecordArrayField = memo(function RecordArrayField({ error: arrayErr
|
|
|
47
50
|
}, value: arrayValue?.[i]?.[name] }));
|
|
48
51
|
}))))),
|
|
49
52
|
React.createElement("div", { className: "flex gap-3" },
|
|
50
|
-
React.createElement(Button, { disabled: readOnly, type: "button", variant: "outline", onClick: appendField },
|
|
53
|
+
React.createElement(Button, { disabled: disabled || readOnly, type: "button", variant: "outline", onClick: appendField },
|
|
51
54
|
t('form.append'),
|
|
52
55
|
React.createElement(PlusCircleIcon, { className: "ml-2" })),
|
|
53
|
-
React.createElement(Button, { disabled: readOnly, type: "button", variant: "outline", onClick: removeField },
|
|
56
|
+
React.createElement(Button, { disabled: disabled || readOnly, type: "button", variant: "outline", onClick: removeField },
|
|
54
57
|
t('form.remove'),
|
|
55
58
|
React.createElement(MinusCircleIcon, { className: "ml-2" })))));
|
|
56
59
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SetField.d.ts","sourceRoot":"","sources":["../../../../src/components/Form/SetField/SetField.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAoB,MAAM,OAAO,CAAC;AAEzC,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,2CAA2C,CAAC;AAE9E,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,WAAW,CAAC;AAK1C,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,aAAa,CAAC;AAE3D,MAAM,MAAM,aAAa,CAAC,CAAC,SAAS,MAAM,GAAG,MAAM,IAAI,QAAQ,CAAC,uBAAuB,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,YAAY,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;AAExH,eAAO,MAAM,QAAQ,
|
|
1
|
+
{"version":3,"file":"SetField.d.ts","sourceRoot":"","sources":["../../../../src/components/Form/SetField/SetField.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAoB,MAAM,OAAO,CAAC;AAEzC,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,2CAA2C,CAAC;AAE9E,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,WAAW,CAAC;AAK1C,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,aAAa,CAAC;AAE3D,MAAM,MAAM,aAAa,CAAC,CAAC,SAAS,MAAM,GAAG,MAAM,IAAI,QAAQ,CAAC,uBAAuB,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,YAAY,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;AAExH,eAAO,MAAM,QAAQ,GAAI,CAAC,SAAS,MAAM,kBAAkB,aAAa,CAAC,CAAC,CAAC,sBAuB1E,CAAC"}
|
|
@@ -3,5 +3,5 @@ import type { SetFieldProps } from './SetField.js';
|
|
|
3
3
|
export type SetFieldListboxProps<T extends string = string> = {
|
|
4
4
|
onCheckedChange: (option: T, isChecked: boolean) => void;
|
|
5
5
|
} & SetFieldProps<T>;
|
|
6
|
-
export declare const SetFieldListbox: <T extends string = string>({ description, error, label, name, onCheckedChange, options, readOnly, value }: SetFieldListboxProps<T>) => React.JSX.Element;
|
|
6
|
+
export declare const SetFieldListbox: <T extends string = string>({ description, disabled, error, label, name, onCheckedChange, options, readOnly, 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;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,
|
|
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,GAAI,CAAC,SAAS,MAAM,qGAU7C,oBAAoB,CAAC,CAAC,CAAC,sBA2BzB,CAAC"}
|
|
@@ -2,13 +2,13 @@ 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 SetFieldListbox = ({ description, error, label, name, onCheckedChange, options, readOnly, value }) => {
|
|
5
|
+
export const SetFieldListbox = ({ description, disabled, error, label, name, onCheckedChange, options, readOnly, value }) => {
|
|
6
6
|
return (React.createElement(FieldGroup, null,
|
|
7
7
|
React.createElement(FieldGroup.Row, null,
|
|
8
8
|
React.createElement(Label, null, label),
|
|
9
9
|
React.createElement(FieldGroup.Description, { description: description })),
|
|
10
10
|
React.createElement("div", { className: "grid gap-2" }, Object.keys(options).map((option) => (React.createElement(FieldGroup.Row, { key: option },
|
|
11
|
-
React.createElement(Checkbox, { checked: value?.has(option) ?? false, disabled: readOnly, id: `${name}-${option}`, onCheckedChange: (checked) => {
|
|
11
|
+
React.createElement(Checkbox, { checked: value?.has(option) ?? false, disabled: disabled || readOnly, id: `${name}-${option}`, onCheckedChange: (checked) => {
|
|
12
12
|
onCheckedChange(option, !checked);
|
|
13
13
|
} }),
|
|
14
14
|
React.createElement(Label, { className: "font-normal text-muted-foreground", htmlFor: `${name}-${option}` }, options[option]))))),
|
|
@@ -3,5 +3,5 @@ import type { SetFieldProps } from './SetField.js';
|
|
|
3
3
|
export type SetFieldSelectProps<T extends string = string> = {
|
|
4
4
|
onCheckedChange: (option: T, isChecked: boolean) => void;
|
|
5
5
|
} & SetFieldProps<T>;
|
|
6
|
-
export declare const SetFieldSelect: <T extends string = string>({ description, error, label, onCheckedChange, options, readOnly, value }: SetFieldSelectProps<T>) => React.JSX.Element | null;
|
|
6
|
+
export declare const SetFieldSelect: <T extends string = string>({ description, disabled, error, label, onCheckedChange, options, readOnly, 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;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,
|
|
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,GAAI,CAAC,SAAS,MAAM,+FAS5C,mBAAmB,CAAC,CAAC,CAAC,6BA0CxB,CAAC"}
|
|
@@ -4,13 +4,13 @@ import { DropdownButton } from '../../DropdownButton/DropdownButton.js';
|
|
|
4
4
|
import { DropdownMenu } from '../../DropdownMenu/DropdownMenu.js';
|
|
5
5
|
import { Label } from '../../Label/Label.js';
|
|
6
6
|
import { FieldGroup } from '../FieldGroup/FieldGroup.js';
|
|
7
|
-
export const SetFieldSelect = ({ description, error, label, onCheckedChange, options, readOnly, value }) => {
|
|
7
|
+
export const SetFieldSelect = ({ description, disabled, error, label, onCheckedChange, options, readOnly, value }) => {
|
|
8
8
|
return value ? (React.createElement(FieldGroup, null,
|
|
9
9
|
React.createElement(FieldGroup.Row, null,
|
|
10
10
|
React.createElement(Label, null, label),
|
|
11
11
|
React.createElement(FieldGroup.Description, { description: description })),
|
|
12
12
|
React.createElement(DropdownMenu, null,
|
|
13
|
-
React.createElement(DropdownMenu.Trigger, { asChild: true, className: "w-full", disabled: readOnly },
|
|
13
|
+
React.createElement(DropdownMenu.Trigger, { asChild: true, className: "w-full", disabled: disabled || readOnly },
|
|
14
14
|
React.createElement(DropdownButton, null, value.size ? (React.createElement("div", { className: "flex items-center gap-2" }, Array.from(value).map((option) => (React.createElement(Badge, { className: "font-normal", key: option, variant: "outline" }, options[option]))))) : null)),
|
|
15
15
|
React.createElement(DropdownMenu.Content, { widthFull: true, align: "start" }, Object.keys(options).map((option) => {
|
|
16
16
|
const checked = value.has(option);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StaticField.d.ts","sourceRoot":"","sources":["../../../src/components/Form/StaticField.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAsB,MAAM,OAAO,CAAC;AAE3C,OAAO,KAAK,EACV,YAAY,EAGZ,qBAAqB,EACrB,mBAAmB,EAEnB,oBAAoB,EAErB,MAAM,2CAA2C,CAAC;AAKnD,OAAO,EAAe,KAAK,gBAAgB,EAAE,MAAM,kBAAkB,CAAC;AAEtE,OAAO,KAAK,EAAc,UAAU,EAAE,MAAM,YAAY,CAAC;AAEzD,MAAM,MAAM,gBAAgB,CAAC,KAAK,SAAS,YAAY,IAAI;IACzD,MAAM,EAAE,UAAU,CAAC,KAAK,CAAC,CAAC;IAC1B,KAAK,EAAE,qBAAqB,GAAG,oBAAoB,GAAG,gBAAgB,CAAC,OAAO,CAAC,CAAC;IAChF,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,WAAW,
|
|
1
|
+
{"version":3,"file":"StaticField.d.ts","sourceRoot":"","sources":["../../../src/components/Form/StaticField.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAsB,MAAM,OAAO,CAAC;AAE3C,OAAO,KAAK,EACV,YAAY,EAGZ,qBAAqB,EACrB,mBAAmB,EAEnB,oBAAoB,EAErB,MAAM,2CAA2C,CAAC;AAKnD,OAAO,EAAe,KAAK,gBAAgB,EAAE,MAAM,kBAAkB,CAAC;AAEtE,OAAO,KAAK,EAAc,UAAU,EAAE,MAAM,YAAY,CAAC;AAEzD,MAAM,MAAM,gBAAgB,CAAC,KAAK,SAAS,YAAY,IAAI;IACzD,MAAM,EAAE,UAAU,CAAC,KAAK,CAAC,CAAC;IAC1B,KAAK,EAAE,qBAAqB,GAAG,oBAAoB,GAAG,gBAAgB,CAAC,OAAO,CAAC,CAAC;IAChF,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,WAAW,GAAI,KAAK,SAAS,YAAY,mEAQnD,gBAAgB,CAAC,KAAK,CAAC,sBAiDzB,CAAC"}
|
|
@@ -4,5 +4,5 @@ import type { BaseFieldComponentProps } from '../types.js';
|
|
|
4
4
|
export type StringFieldInputProps = BaseFieldComponentProps<string> & Extract<StringFormField, {
|
|
5
5
|
variant: 'input' | 'textarea';
|
|
6
6
|
}>;
|
|
7
|
-
export declare const StringFieldInput: ({ description, error, label, name, placeholder, readOnly, setValue, value }: StringFieldInputProps) => React.JSX.Element;
|
|
7
|
+
export declare const StringFieldInput: ({ description, disabled, error, label, name, placeholder, readOnly, setValue, value }: StringFieldInputProps) => React.JSX.Element;
|
|
8
8
|
//# sourceMappingURL=StringFieldInput.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StringFieldInput.d.ts","sourceRoot":"","sources":["../../../../src/components/Form/StringField/StringFieldInput.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,2CAA2C,CAAC;AAMjF,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,aAAa,CAAC;AAE3D,MAAM,MAAM,qBAAqB,GAAG,uBAAuB,CAAC,MAAM,CAAC,GACjE,OAAO,CAAC,eAAe,EAAE;IAAE,OAAO,EAAE,OAAO,GAAG,UAAU,CAAA;CAAE,CAAC,CAAC;AAE9D,eAAO,MAAM,gBAAgB,
|
|
1
|
+
{"version":3,"file":"StringFieldInput.d.ts","sourceRoot":"","sources":["../../../../src/components/Form/StringField/StringFieldInput.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,2CAA2C,CAAC;AAMjF,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,aAAa,CAAC;AAE3D,MAAM,MAAM,qBAAqB,GAAG,uBAAuB,CAAC,MAAM,CAAC,GACjE,OAAO,CAAC,eAAe,EAAE;IAAE,OAAO,EAAE,OAAO,GAAG,UAAU,CAAA;CAAE,CAAC,CAAC;AAE9D,eAAO,MAAM,gBAAgB,0FAU1B,qBAAqB,sBAmBvB,CAAC"}
|
|
@@ -2,11 +2,11 @@ import React from 'react';
|
|
|
2
2
|
import { Input } from '../../Input/Input.js';
|
|
3
3
|
import { Label } from '../../Label/Label.js';
|
|
4
4
|
import { FieldGroup } from '../FieldGroup/FieldGroup.js';
|
|
5
|
-
export const StringFieldInput = ({ description, error, label, name, placeholder, readOnly, setValue, value }) => {
|
|
5
|
+
export const StringFieldInput = ({ description, disabled, error, label, name, placeholder, readOnly, setValue, value }) => {
|
|
6
6
|
return (React.createElement(FieldGroup, null,
|
|
7
7
|
React.createElement(FieldGroup.Row, null,
|
|
8
8
|
React.createElement(Label, { htmlFor: name }, label),
|
|
9
9
|
React.createElement(FieldGroup.Description, { description: description })),
|
|
10
|
-
React.createElement(Input, { disabled: readOnly, id: name, name: name, placeholder: placeholder, type: "text", value: value ?? '', onChange: (event) => setValue(event.target.value) }),
|
|
10
|
+
React.createElement(Input, { disabled: disabled || readOnly, id: name, name: name, placeholder: placeholder, type: "text", value: value ?? '', onChange: (event) => setValue(event.target.value) }),
|
|
11
11
|
React.createElement(FieldGroup.Error, { error: error })));
|
|
12
12
|
};
|
|
@@ -5,5 +5,5 @@ export type PasswordStrengthValue = 0 | 1 | 2 | 3 | 4;
|
|
|
5
5
|
export type StringFieldPasswordProps = BaseFieldComponentProps<string> & Extract<StringFormField, {
|
|
6
6
|
variant: 'password';
|
|
7
7
|
}>;
|
|
8
|
-
export declare const StringFieldPassword: ({ calculateStrength, description, error, label, name, readOnly, setValue, value }: StringFieldPasswordProps) => React.JSX.Element;
|
|
8
|
+
export declare const StringFieldPassword: ({ calculateStrength, description, disabled, error, label, name, readOnly, setValue, value }: StringFieldPasswordProps) => React.JSX.Element;
|
|
9
9
|
//# sourceMappingURL=StringFieldPassword.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StringFieldPassword.d.ts","sourceRoot":"","sources":["../../../../src/components/Form/StringField/StringFieldPassword.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA8B,MAAM,OAAO,CAAC;AAEnD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,2CAA2C,CAAC;AASjF,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,aAAa,CAAC;AAE3D,MAAM,MAAM,qBAAqB,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;AAEtD,MAAM,MAAM,wBAAwB,GAAG,uBAAuB,CAAC,MAAM,CAAC,GACpE,OAAO,CAAC,eAAe,EAAE;IAAE,OAAO,EAAE,UAAU,CAAA;CAAE,CAAC,CAAC;AAEpD,eAAO,MAAM,mBAAmB,
|
|
1
|
+
{"version":3,"file":"StringFieldPassword.d.ts","sourceRoot":"","sources":["../../../../src/components/Form/StringField/StringFieldPassword.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA8B,MAAM,OAAO,CAAC;AAEnD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,2CAA2C,CAAC;AASjF,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,aAAa,CAAC;AAE3D,MAAM,MAAM,qBAAqB,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;AAEtD,MAAM,MAAM,wBAAwB,GAAG,uBAAuB,CAAC,MAAM,CAAC,GACpE,OAAO,CAAC,eAAe,EAAE;IAAE,OAAO,EAAE,UAAU,CAAA;CAAE,CAAC,CAAC;AAEpD,eAAO,MAAM,mBAAmB,gGAU7B,wBAAwB,sBAuD1B,CAAC"}
|
|
@@ -5,7 +5,7 @@ import { cn } from '../../../utils.js';
|
|
|
5
5
|
import { Input } from '../../Input/Input.js';
|
|
6
6
|
import { Label } from '../../Label/Label.js';
|
|
7
7
|
import { FieldGroup } from '../FieldGroup/FieldGroup.js';
|
|
8
|
-
export const StringFieldPassword = ({ calculateStrength, description, error, label, name, readOnly, setValue, value }) => {
|
|
8
|
+
export const StringFieldPassword = ({ calculateStrength, description, disabled, error, label, name, readOnly, setValue, value }) => {
|
|
9
9
|
const [strength, setStrength] = useState(calculateStrength ? 0 : null);
|
|
10
10
|
const [show, setShow] = useState(false);
|
|
11
11
|
useEffect(() => {
|
|
@@ -18,8 +18,8 @@ export const StringFieldPassword = ({ calculateStrength, description, error, lab
|
|
|
18
18
|
React.createElement(Label, { htmlFor: name }, label),
|
|
19
19
|
React.createElement(FieldGroup.Description, { description: description })),
|
|
20
20
|
React.createElement(FieldGroup.Row, null,
|
|
21
|
-
React.createElement(Input, { disabled: readOnly, id: name, name: name, type: show ? 'text' : 'password', value: value ?? '', onChange: (event) => setValue(event.target.value) }),
|
|
22
|
-
React.createElement("button", { className: "absolute right-0 flex h-full w-8 items-center justify-center text-muted-foreground", disabled: readOnly, tabIndex: -1, type: "button", onClick: () => setShow(!show) },
|
|
21
|
+
React.createElement(Input, { disabled: disabled || readOnly, id: name, name: name, type: show ? 'text' : 'password', value: value ?? '', onChange: (event) => setValue(event.target.value) }),
|
|
22
|
+
React.createElement("button", { className: "absolute right-0 flex h-full w-8 items-center justify-center text-muted-foreground", disabled: disabled || readOnly, tabIndex: -1, type: "button", onClick: () => setShow(!show) },
|
|
23
23
|
React.createElement(EyeIcon, { className: cn('absolute transition-all', show ? '-rotate-90 scale-0' : 'rotate-0 scale-100') }),
|
|
24
24
|
React.createElement(EyeOffIcon, { className: cn('absolute transition-all', !show ? 'rotate-90 scale-0' : 'rotate-0 scale-100') }))),
|
|
25
25
|
strength !== null && (React.createElement(motion.div, { animate: { width: `${Math.max(strength, value?.length ? 1 : 0) * 25}%` }, className: "h-1 w-full overflow-hidden rounded", initial: { width: '0%' }, transition: { duration: 0.5 } },
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StringFieldRadio.d.ts","sourceRoot":"","sources":["../../../../src/components/Form/StringField/StringFieldRadio.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;AAI1C,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,aAAa,CAAC;AAE3D,MAAM,MAAM,qBAAqB,CAAC,CAAC,SAAS,MAAM,GAAG,MAAM,IAAI,QAAQ,CACrE,uBAAuB,CAAC,CAAC,CAAC,GAAG,OAAO,CAAC,eAAe,CAAC,CAAC,CAAC,EAAE;IAAE,OAAO,EAAE,MAAM,CAAA;CAAE,CAAC,CAC9E,CAAC;AAEF,eAAO,MAAM,gBAAgB,
|
|
1
|
+
{"version":3,"file":"StringFieldRadio.d.ts","sourceRoot":"","sources":["../../../../src/components/Form/StringField/StringFieldRadio.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;AAI1C,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,aAAa,CAAC;AAE3D,MAAM,MAAM,qBAAqB,CAAC,CAAC,SAAS,MAAM,GAAG,MAAM,IAAI,QAAQ,CACrE,uBAAuB,CAAC,CAAC,CAAC,GAAG,OAAO,CAAC,eAAe,CAAC,CAAC,CAAC,EAAE;IAAE,OAAO,EAAE,MAAM,CAAA;CAAE,CAAC,CAC9E,CAAC;AAEF,eAAO,MAAM,gBAAgB,GAAI,CAAC,SAAS,MAAM,kBAAkB,qBAAqB,CAAC,CAAC,CAAC,sBAE1F,CAAC"}
|
|
@@ -5,5 +5,5 @@ import { type BaseFieldComponentProps } from '../types.js';
|
|
|
5
5
|
export type StringFieldSelectProps<T extends string = string> = Simplify<BaseFieldComponentProps<T> & Extract<StringFormField<T>, {
|
|
6
6
|
options: object;
|
|
7
7
|
}>>;
|
|
8
|
-
export declare const StringFieldSelect: <T extends string = string>({ description, error, label, name, options, readOnly, setValue, value }: StringFieldSelectProps<T>) => React.JSX.Element;
|
|
8
|
+
export declare const StringFieldSelect: <T extends string = string>({ description, disabled, error, label, name, options, readOnly, setValue, value }: StringFieldSelectProps<T>) => React.JSX.Element;
|
|
9
9
|
//# sourceMappingURL=StringFieldSelect.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StringFieldSelect.d.ts","sourceRoot":"","sources":["../../../../src/components/Form/StringField/StringFieldSelect.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":"StringFieldSelect.d.ts","sourceRoot":"","sources":["../../../../src/components/Form/StringField/StringFieldSelect.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,8FAU/C,sBAAsB,CAAC,CAAC,CAAC,sBA0B3B,CAAC"}
|
|
@@ -3,13 +3,13 @@ import { Label } from '../../Label/Label.js';
|
|
|
3
3
|
import { Select } from '../../Select/Select.js';
|
|
4
4
|
import { FieldGroup } from '../FieldGroup/FieldGroup.js';
|
|
5
5
|
import {} from '../types.js';
|
|
6
|
-
export const StringFieldSelect = ({ description, error, label, name, options, readOnly, setValue, value }) => {
|
|
6
|
+
export const StringFieldSelect = ({ description, disabled, error, label, name, options, readOnly, setValue, value }) => {
|
|
7
7
|
return (React.createElement(FieldGroup, null,
|
|
8
8
|
React.createElement(FieldGroup.Row, null,
|
|
9
9
|
React.createElement(Label, null, label),
|
|
10
10
|
React.createElement(FieldGroup.Description, { description: description })),
|
|
11
11
|
React.createElement(Select, { name: name, value: value ?? '', onValueChange: (value) => setValue(value) },
|
|
12
|
-
React.createElement(Select.Trigger, { "data-cy": `${name}-select-trigger`, "data-testid": `${name}-select-trigger`, disabled: readOnly },
|
|
12
|
+
React.createElement(Select.Trigger, { "data-cy": `${name}-select-trigger`, "data-testid": `${name}-select-trigger`, disabled: disabled || readOnly },
|
|
13
13
|
React.createElement(Select.Value, null)),
|
|
14
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
15
|
React.createElement(FieldGroup.Error, { error: error })));
|
|
@@ -4,5 +4,5 @@ import type { BaseFieldComponentProps } from '../types.js';
|
|
|
4
4
|
export type StringFieldTextAreaProps = BaseFieldComponentProps<string> & Extract<StringFormField, {
|
|
5
5
|
variant: 'input' | 'textarea';
|
|
6
6
|
}>;
|
|
7
|
-
export declare const StringFieldTextArea: ({ description, error, label, name, placeholder, readOnly, setValue, value }: StringFieldTextAreaProps) => React.JSX.Element;
|
|
7
|
+
export declare const StringFieldTextArea: ({ description, disabled, error, label, name, placeholder, readOnly, setValue, value }: StringFieldTextAreaProps) => React.JSX.Element;
|
|
8
8
|
//# sourceMappingURL=StringFieldTextArea.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StringFieldTextArea.d.ts","sourceRoot":"","sources":["../../../../src/components/Form/StringField/StringFieldTextArea.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,2CAA2C,CAAC;AAMjF,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,aAAa,CAAC;AAE3D,MAAM,MAAM,wBAAwB,GAAG,uBAAuB,CAAC,MAAM,CAAC,GACpE,OAAO,CAAC,eAAe,EAAE;IAAE,OAAO,EAAE,OAAO,GAAG,UAAU,CAAA;CAAE,CAAC,CAAC;AAE9D,eAAO,MAAM,mBAAmB,
|
|
1
|
+
{"version":3,"file":"StringFieldTextArea.d.ts","sourceRoot":"","sources":["../../../../src/components/Form/StringField/StringFieldTextArea.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,2CAA2C,CAAC;AAMjF,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,aAAa,CAAC;AAE3D,MAAM,MAAM,wBAAwB,GAAG,uBAAuB,CAAC,MAAM,CAAC,GACpE,OAAO,CAAC,eAAe,EAAE;IAAE,OAAO,EAAE,OAAO,GAAG,UAAU,CAAA;CAAE,CAAC,CAAC;AAE9D,eAAO,MAAM,mBAAmB,0FAU7B,wBAAwB,sBAmB1B,CAAC"}
|
|
@@ -2,11 +2,11 @@ import React from 'react';
|
|
|
2
2
|
import { Label } from '../../Label/Label.js';
|
|
3
3
|
import { TextArea } from '../../TextArea/TextArea.js';
|
|
4
4
|
import { FieldGroup } from '../FieldGroup/FieldGroup.js';
|
|
5
|
-
export const StringFieldTextArea = ({ description, error, label, name, placeholder, readOnly, setValue, value }) => {
|
|
5
|
+
export const StringFieldTextArea = ({ description, disabled, error, label, name, placeholder, readOnly, setValue, value }) => {
|
|
6
6
|
return (React.createElement(FieldGroup, null,
|
|
7
7
|
React.createElement(FieldGroup.Row, null,
|
|
8
8
|
React.createElement(Label, { htmlFor: name }, label),
|
|
9
9
|
React.createElement(FieldGroup.Description, { description: description })),
|
|
10
|
-
React.createElement(TextArea, { disabled: readOnly, id: name, name: name, placeholder: placeholder, rows: 5, value: value ?? '', onChange: (event) => setValue(event.target.value) }),
|
|
10
|
+
React.createElement(TextArea, { disabled: disabled || readOnly, id: name, name: name, placeholder: placeholder, rows: 5, value: value ?? '', onChange: (event) => setValue(event.target.value) }),
|
|
11
11
|
React.createElement(FieldGroup.Error, { error: error })));
|
|
12
12
|
};
|
|
@@ -6,5 +6,5 @@ export declare function getFormFields<T extends FormDataType>(content: FormConte
|
|
|
6
6
|
* Given a set of data, resolve static content for form fields. Null values
|
|
7
7
|
* will be removed.
|
|
8
8
|
*/
|
|
9
|
-
export declare function resolveStaticFormFields<T extends FormDataType>(content: FormContent<T>, data: PartialFormDataType<T>): Partial<StaticFormFields<T, import("@douglasneuroinformatics/libui-form-types").
|
|
9
|
+
export declare function resolveStaticFormFields<T extends FormDataType>(content: FormContent<T>, data: PartialFormDataType<T>): Partial<StaticFormFields<T, import("@douglasneuroinformatics/libui-form-types").default.RequiredData<T>>>;
|
|
10
10
|
//# sourceMappingURL=utils.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../src/components/Form/utils.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,WAAW,EACX,YAAY,EACZ,UAAU,EACV,mBAAmB,EACnB,2BAA2B,EAC3B,gBAAgB,EAEjB,MAAM,2CAA2C,CAAC;AAEnD,wBAAgB,gBAAgB,CAAC,CAAC,SAAS,YAAY,EAAE,MAAM,EAAE,2BAA2B,CAAC,CAAC,CAAC,
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../src/components/Form/utils.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,WAAW,EACX,YAAY,EACZ,UAAU,EACV,mBAAmB,EACnB,2BAA2B,EAC3B,gBAAgB,EAEjB,MAAM,2CAA2C,CAAC;AAEnD,wBAAgB,gBAAgB,CAAC,CAAC,SAAS,YAAY,EAAE,MAAM,EAAE,2BAA2B,CAAC,CAAC,CAAC,GAYrE,mBAAmB,CAAC,CAAC,CAAC,CAC/C;AAED,yHAAyH;AACzH,wBAAgB,aAAa,CAAC,CAAC,SAAS,YAAY,EAAE,OAAO,EAAE,WAAW,CAAC,CAAC,CAAC,GAAG,UAAU,CAAC,CAAC,CAAC,CAK5F;AAED;;;GAGG;AACH,wBAAgB,uBAAuB,CAAC,CAAC,SAAS,YAAY,EAAE,OAAO,EAAE,WAAW,CAAC,CAAC,CAAC,EAAE,IAAI,EAAE,mBAAmB,CAAC,CAAC,CAAC,6GAepH"}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" resolution-mode="require"/>
|
|
2
1
|
export declare const HoverCard: import("react").FC<import("@radix-ui/react-hover-card").HoverCardProps> & {
|
|
3
2
|
Content: import("react").ForwardRefExoticComponent<Omit<import("@radix-ui/react-hover-card").HoverCardContentProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
4
3
|
Trigger: import("react").ForwardRefExoticComponent<import("@radix-ui/react-hover-card").HoverCardTriggerProps & import("react").RefAttributes<HTMLAnchorElement>>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"HoverCard.d.ts","sourceRoot":"","sources":["../../../src/components/HoverCard/HoverCard.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"HoverCard.d.ts","sourceRoot":"","sources":["../../../src/components/HoverCard/HoverCard.tsx"],"names":[],"mappings":"AAIA,eAAO,MAAM,SAAS;;;CAGpB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Label.d.ts","sourceRoot":"","sources":["../../../src/components/Label/Label.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,KAAK,cAAc,MAAM,uBAAuB,CAAC;AACxD,OAAO,
|
|
1
|
+
{"version":3,"file":"Label.d.ts","sourceRoot":"","sources":["../../../src/components/Label/Label.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,KAAK,cAAc,MAAM,uBAAuB,CAAC;AACxD,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAIlE,eAAO,MAAM,aAAa,oFAEzB,CAAC;AAEF,eAAO,MAAM,KAAK,4PAKhB,CAAC"}
|
|
@@ -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;
|
|
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;AAEnG,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,EAAqC,OAAO,kBAAkB,CAAC;AAErF,YAAY,EAAE,aAAa,EAAE,aAAa,EAAE,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ListboxDropdown.d.ts","sourceRoot":"","sources":["../../../src/components/ListboxDropdown/ListboxDropdown.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,EAAE,KAAK,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAIvD,MAAM,MAAM,qBAAqB,GAAG;IAClC,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,MAAM,CAAC;CACf,CAAC;AAEF,MAAM,MAAM,oBAAoB,CAAC,CAAC,SAAS,qBAAqB,IAAI;IAClE,aAAa,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;IACjC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,OAAO,EAAE,CAAC,EAAE,CAAC;IACb,QAAQ,EAAE,CAAC,EAAE,CAAC;IACd,WAAW,EAAE,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,cAAc,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;IACvD,KAAK,EAAE,MAAM,CAAC;IACd,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,OAAO,CAAC,EAAE,WAAW,CAAC,SAAS,CAAC,CAAC;IACjC,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB,CAAC;AAEF,eAAO,MAAM,eAAe,
|
|
1
|
+
{"version":3,"file":"ListboxDropdown.d.ts","sourceRoot":"","sources":["../../../src/components/ListboxDropdown/ListboxDropdown.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,EAAE,KAAK,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAIvD,MAAM,MAAM,qBAAqB,GAAG;IAClC,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,MAAM,CAAC;CACf,CAAC;AAEF,MAAM,MAAM,oBAAoB,CAAC,CAAC,SAAS,qBAAqB,IAAI;IAClE,aAAa,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;IACjC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,OAAO,EAAE,CAAC,EAAE,CAAC;IACb,QAAQ,EAAE,CAAC,EAAE,CAAC;IACd,WAAW,EAAE,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,cAAc,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;IACvD,KAAK,EAAE,MAAM,CAAC;IACd,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,OAAO,CAAC,EAAE,WAAW,CAAC,SAAS,CAAC,CAAC;IACjC,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB,CAAC;AAEF,eAAO,MAAM,eAAe,GAAI,CAAC,SAAS,qBAAqB,sGAS5D,oBAAoB,CAAC,CAAC,CAAC,sBAiCzB,CAAC"}
|
|
@@ -1,28 +1,26 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
} & Omit<import("@radix-ui/react-menubar").MenubarSubTriggerProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
26
|
-
Trigger: import("react").ForwardRefExoticComponent<Omit<import("@radix-ui/react-menubar").MenubarTriggerProps & import("react").RefAttributes<HTMLButtonElement>, "ref"> & import("react").RefAttributes<HTMLButtonElement>>;
|
|
1
|
+
import type React from 'react';
|
|
2
|
+
import type { MenubarMenuProps } from '@radix-ui/react-menubar';
|
|
3
|
+
export declare const MenuBar: React.ForwardRefExoticComponent<Omit<import("@radix-ui/react-menubar").MenubarProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>> & {
|
|
4
|
+
CheckboxItem: React.ForwardRefExoticComponent<Omit<import("@radix-ui/react-menubar").MenubarCheckboxItemProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
5
|
+
Content: React.ForwardRefExoticComponent<Omit<import("@radix-ui/react-menubar").MenubarContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
6
|
+
Group: React.ForwardRefExoticComponent<import("@radix-ui/react-menubar").MenubarGroupProps & React.RefAttributes<HTMLDivElement>>;
|
|
7
|
+
Item: React.ForwardRefExoticComponent<{
|
|
8
|
+
inset?: boolean;
|
|
9
|
+
} & Omit<import("@radix-ui/react-menubar").MenubarItemProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
10
|
+
Label: React.ForwardRefExoticComponent<{
|
|
11
|
+
inset?: boolean;
|
|
12
|
+
} & Omit<import("@radix-ui/react-menubar").MenubarLabelProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
13
|
+
Menu: React.ComponentType<MenubarMenuProps>;
|
|
14
|
+
Portal: React.FC<import("@radix-ui/react-menubar").MenubarPortalProps>;
|
|
15
|
+
RadioGroup: React.ForwardRefExoticComponent<import("@radix-ui/react-menubar").MenubarRadioGroupProps & React.RefAttributes<HTMLDivElement>>;
|
|
16
|
+
RadioItem: React.ForwardRefExoticComponent<Omit<import("@radix-ui/react-menubar").MenubarRadioItemProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
17
|
+
Separator: React.ForwardRefExoticComponent<Omit<import("@radix-ui/react-menubar").MenubarSeparatorProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
18
|
+
Shortcut: ({ className, ...props }: React.HTMLAttributes<HTMLSpanElement>) => React.JSX.Element;
|
|
19
|
+
Sub: React.FC<import("@radix-ui/react-menubar").MenubarSubProps>;
|
|
20
|
+
SubContent: React.ForwardRefExoticComponent<Omit<import("@radix-ui/react-menubar").MenubarSubContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
21
|
+
SubTrigger: React.ForwardRefExoticComponent<{
|
|
22
|
+
inset?: boolean;
|
|
23
|
+
} & Omit<import("@radix-ui/react-menubar").MenubarSubTriggerProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
24
|
+
Trigger: React.ForwardRefExoticComponent<Omit<import("@radix-ui/react-menubar").MenubarTriggerProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
27
25
|
};
|
|
28
26
|
//# sourceMappingURL=MenuBar.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MenuBar.d.ts","sourceRoot":"","sources":["../../../src/components/MenuBar/MenuBar.tsx"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"MenuBar.d.ts","sourceRoot":"","sources":["../../../src/components/MenuBar/MenuBar.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAchE,eAAO,MAAM,OAAO;;;;;;;;;;UAMJ,KAAK,CAAC,aAAa,CAAC,gBAAgB,CAAC;;;;;;;;;;;;CAUnD,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
export declare const MenuBarItem: React.ForwardRefExoticComponent<{
|
|
3
|
-
inset?: boolean
|
|
3
|
+
inset?: boolean;
|
|
4
4
|
} & Omit<import("@radix-ui/react-menubar").MenubarItemProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
5
5
|
//# sourceMappingURL=MenuBarItem.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MenuBarItem.d.ts","sourceRoot":"","sources":["../../../src/components/MenuBar/MenuBarItem.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAM1B,eAAO,MAAM,WAAW
|
|
1
|
+
{"version":3,"file":"MenuBarItem.d.ts","sourceRoot":"","sources":["../../../src/components/MenuBar/MenuBarItem.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAM1B,eAAO,MAAM,WAAW;YAGZ,OAAO;gJAcjB,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
export declare const MenuBarLabel: React.ForwardRefExoticComponent<{
|
|
3
|
-
inset?: boolean
|
|
3
|
+
inset?: boolean;
|
|
4
4
|
} & Omit<import("@radix-ui/react-menubar").MenubarLabelProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
5
5
|
//# sourceMappingURL=MenuBarLabel.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MenuBarLabel.d.ts","sourceRoot":"","sources":["../../../src/components/MenuBar/MenuBarLabel.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAM1B,eAAO,MAAM,YAAY
|
|
1
|
+
{"version":3,"file":"MenuBarLabel.d.ts","sourceRoot":"","sources":["../../../src/components/MenuBar/MenuBarLabel.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAM1B,eAAO,MAAM,YAAY;YAGb,OAAO;iJAIjB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MenuBarShortcut.d.ts","sourceRoot":"","sources":["../../../src/components/MenuBar/MenuBarShortcut.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,eAAO,MAAM,eAAe,4BAA6B,
|
|
1
|
+
{"version":3,"file":"MenuBarShortcut.d.ts","sourceRoot":"","sources":["../../../src/components/MenuBar/MenuBarShortcut.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,eAAO,MAAM,eAAe,4BAA6B,KAAK,CAAC,cAAc,CAAC,eAAe,CAAC,sBAE7F,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
export declare const MenuBarSubTrigger: React.ForwardRefExoticComponent<{
|
|
3
|
-
inset?: boolean
|
|
3
|
+
inset?: boolean;
|
|
4
4
|
} & Omit<import("@radix-ui/react-menubar").MenubarSubTriggerProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
5
5
|
//# sourceMappingURL=MenuBarSubTrigger.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MenuBarSubTrigger.d.ts","sourceRoot":"","sources":["../../../src/components/MenuBar/MenuBarSubTrigger.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAO1B,eAAO,MAAM,iBAAiB
|
|
1
|
+
{"version":3,"file":"MenuBarSubTrigger.d.ts","sourceRoot":"","sources":["../../../src/components/MenuBar/MenuBarSubTrigger.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAO1B,eAAO,MAAM,iBAAiB;YAGlB,OAAO;sJAiBjB,CAAC"}
|
|
@@ -3,13 +3,13 @@ import { CheckCircleIcon, ExclamationCircleIcon, InformationCircleIcon, XCircleI
|
|
|
3
3
|
import {} from '../../hooks/useNotificationsStore.js';
|
|
4
4
|
export const NotificationIcon = ({ type }) => {
|
|
5
5
|
switch (type) {
|
|
6
|
+
case 'error':
|
|
7
|
+
return React.createElement(XCircleIcon, { "aria-hidden": "true", className: "h-6 w-6 text-red-500" });
|
|
6
8
|
case 'info':
|
|
7
9
|
return React.createElement(InformationCircleIcon, { "aria-hidden": "true", className: "h-6 w-6 text-blue-500" });
|
|
8
10
|
case 'success':
|
|
9
11
|
return React.createElement(CheckCircleIcon, { "aria-hidden": "true", className: "h-6 w-6 text-green-500" });
|
|
10
12
|
case 'warning':
|
|
11
13
|
return React.createElement(ExclamationCircleIcon, { "aria-hidden": "true", className: "h-6 w-6 text-yellow-500" });
|
|
12
|
-
case 'error':
|
|
13
|
-
return React.createElement(XCircleIcon, { "aria-hidden": "true", className: "h-6 w-6 text-red-500" });
|
|
14
14
|
}
|
|
15
15
|
};
|