@delightui/components 0.1.39 → 0.1.40
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/cjs/components/atoms/Checkbox/Checkbox.d.ts +10 -2
- package/dist/cjs/components/atoms/Checkbox/Checkbox.types.d.ts +41 -0
- package/dist/cjs/components/atoms/Checkbox/index.d.ts +1 -0
- package/dist/cjs/components/atoms/CheckboxItem/CheckboxItem.d.ts +8 -0
- package/dist/cjs/components/atoms/CheckboxItem/CheckboxItem.types.d.ts +22 -0
- package/dist/cjs/components/atoms/CheckboxItem/index.d.ts +3 -0
- package/dist/cjs/components/atoms/Chip/Chip.types.d.ts +5 -5
- package/dist/cjs/components/atoms/ListItem/ListItem.types.d.ts +4 -0
- package/dist/cjs/components/atoms/RadioButton/RadioButton.d.ts +11 -0
- package/dist/cjs/components/atoms/RadioButton/RadioButton.types.d.ts +37 -0
- package/dist/cjs/components/atoms/RadioButton/index.d.ts +3 -0
- package/dist/cjs/components/atoms/RadioButtonItem/RadioButtonItem.d.ts +8 -0
- package/dist/cjs/components/atoms/RadioButtonItem/RadioButtonItem.types.d.ts +22 -0
- package/dist/cjs/components/atoms/RadioButtonItem/index.d.ts +2 -0
- package/dist/cjs/components/atoms/Slider/Slider.d.ts +4 -0
- package/dist/cjs/components/atoms/Slider/Slider.types.d.ts +53 -0
- package/dist/cjs/components/atoms/Slider/index.d.ts +4 -0
- package/dist/cjs/components/atoms/ToastNotification/ToastNotification.d.ts +4 -0
- package/dist/cjs/components/atoms/ToastNotification/ToastNotification.types.d.ts +44 -0
- package/dist/cjs/components/atoms/ToastNotification/index.d.ts +4 -0
- package/dist/cjs/components/atoms/Toggle/Toggle.d.ts +1 -1
- package/dist/cjs/components/atoms/Toggle/Toggle.types.d.ts +4 -3
- package/dist/cjs/components/atoms/index.d.ts +6 -0
- package/dist/cjs/components/molecules/CheckboxGroup/CheckboxGroup.Context.d.ts +4 -0
- package/dist/cjs/components/molecules/CheckboxGroup/CheckboxGroup.d.ts +4 -0
- package/dist/cjs/components/molecules/CheckboxGroup/CheckboxGroup.types.d.ts +53 -0
- package/dist/cjs/components/molecules/CheckboxGroup/index.d.ts +3 -0
- package/dist/cjs/components/molecules/ChipInput/ChipInput.d.ts +4 -0
- package/dist/cjs/components/molecules/ChipInput/ChipInput.types.d.ts +16 -0
- package/dist/cjs/components/molecules/ContextMenu/ContextMenu.d.ts +4 -6
- package/dist/cjs/components/molecules/ContextMenu/ContextMenu.types.d.ts +3 -64
- package/dist/cjs/components/molecules/ContextMenu/index.d.ts +2 -4
- package/dist/cjs/components/molecules/List/List.types.d.ts +30 -0
- package/dist/cjs/components/molecules/List/components/SortableListItem.d.ts +2 -1
- package/dist/cjs/components/molecules/List/components/SortableTrigger.d.ts +3 -0
- package/dist/cjs/components/molecules/Nav/NavLink/NavLink.types.d.ts +8 -2
- package/dist/cjs/components/molecules/Pagination/Pagination.d.ts +3 -0
- package/dist/cjs/components/molecules/Pagination/Pagination.presenter.d.ts +11 -0
- package/dist/cjs/components/molecules/Pagination/Pagination.types.d.ts +9 -0
- package/dist/cjs/components/molecules/Pagination/index.d.ts +2 -0
- package/dist/cjs/components/molecules/PaginationNumberField/PaginationNumberField.d.ts +3 -0
- package/dist/cjs/components/molecules/PaginationNumberField/PaginationNumberField.presenter.d.ts +10 -0
- package/dist/cjs/components/molecules/PaginationNumberField/PaginationNumberField.types.d.ts +7 -0
- package/dist/cjs/components/molecules/PaginationNumberField/index.d.ts +2 -0
- package/dist/cjs/components/molecules/RadioGroup/RadioGroup.Context.d.ts +21 -0
- package/dist/cjs/components/molecules/RadioGroup/RadioGroup.d.ts +4 -0
- package/dist/cjs/components/molecules/RadioGroup/RadioGroup.types.d.ts +36 -0
- package/dist/cjs/components/molecules/RadioGroup/index.d.ts +3 -0
- package/dist/cjs/components/molecules/index.d.ts +23 -32
- package/dist/cjs/components/organisms/Dropzone/Dropzone.d.ts +5 -0
- package/dist/cjs/components/organisms/Dropzone/Dropzone.types.d.ts +102 -0
- package/dist/cjs/components/organisms/Dropzone/components/DropzoneClear.d.ts +4 -0
- package/dist/cjs/components/organisms/Dropzone/components/DropzoneFilename.d.ts +4 -0
- package/dist/cjs/components/organisms/Dropzone/components/DropzoneSupportedFormats.d.ts +4 -0
- package/dist/cjs/components/organisms/Dropzone/components/DrozoneTrigger.d.ts +4 -0
- package/dist/cjs/components/organisms/Dropzone/index.d.ts +6 -0
- package/dist/cjs/components/organisms/DropzoneContent/DropzoneContent.d.ts +3 -0
- package/dist/cjs/components/organisms/DropzoneContent/DropzoneContent.types.d.ts +6 -0
- package/dist/cjs/components/organisms/DropzoneContent/index.d.ts +3 -0
- package/dist/cjs/components/organisms/Form/Form.types.d.ts +1 -1
- package/dist/cjs/components/organisms/Form/FormExample.d.ts +9 -1
- package/dist/cjs/components/organisms/Table/Table.types.d.ts +6 -1
- package/dist/cjs/components/{molecules → organisms/Tabs}/TabItem/TabItem.types.d.ts +1 -1
- package/dist/cjs/components/organisms/index.d.ts +23 -1
- package/dist/cjs/library.css +5960 -2586
- package/dist/cjs/library.js +3 -3
- package/dist/cjs/library.js.map +1 -1
- package/dist/cjs/modules/index.d.ts +1 -0
- package/dist/cjs/modules/notification/NotificationContainer.d.ts +4 -0
- package/dist/cjs/modules/notification/NotificationContext.d.ts +5 -0
- package/dist/cjs/modules/notification/index.d.ts +4 -0
- package/dist/cjs/modules/notification/types.d.ts +38 -0
- package/dist/esm/components/atoms/Checkbox/Checkbox.d.ts +10 -2
- package/dist/esm/components/atoms/Checkbox/Checkbox.types.d.ts +41 -0
- package/dist/esm/components/atoms/Checkbox/index.d.ts +1 -0
- package/dist/esm/components/atoms/CheckboxItem/CheckboxItem.d.ts +8 -0
- package/dist/esm/components/atoms/CheckboxItem/CheckboxItem.types.d.ts +22 -0
- package/dist/esm/components/atoms/CheckboxItem/index.d.ts +3 -0
- package/dist/esm/components/atoms/Chip/Chip.types.d.ts +5 -5
- package/dist/esm/components/atoms/ListItem/ListItem.types.d.ts +4 -0
- package/dist/esm/components/atoms/RadioButton/RadioButton.d.ts +11 -0
- package/dist/esm/components/atoms/RadioButton/RadioButton.types.d.ts +37 -0
- package/dist/esm/components/atoms/RadioButton/index.d.ts +3 -0
- package/dist/esm/components/atoms/RadioButtonItem/RadioButtonItem.d.ts +8 -0
- package/dist/esm/components/atoms/RadioButtonItem/RadioButtonItem.types.d.ts +22 -0
- package/dist/esm/components/atoms/RadioButtonItem/index.d.ts +2 -0
- package/dist/esm/components/atoms/Slider/Slider.d.ts +4 -0
- package/dist/esm/components/atoms/Slider/Slider.types.d.ts +53 -0
- package/dist/esm/components/atoms/Slider/index.d.ts +4 -0
- package/dist/esm/components/atoms/ToastNotification/ToastNotification.d.ts +4 -0
- package/dist/esm/components/atoms/ToastNotification/ToastNotification.types.d.ts +44 -0
- package/dist/esm/components/atoms/ToastNotification/index.d.ts +4 -0
- package/dist/esm/components/atoms/Toggle/Toggle.d.ts +1 -1
- package/dist/esm/components/atoms/Toggle/Toggle.types.d.ts +4 -3
- package/dist/esm/components/atoms/index.d.ts +6 -0
- package/dist/esm/components/molecules/CheckboxGroup/CheckboxGroup.Context.d.ts +4 -0
- package/dist/esm/components/molecules/CheckboxGroup/CheckboxGroup.d.ts +4 -0
- package/dist/esm/components/molecules/CheckboxGroup/CheckboxGroup.types.d.ts +53 -0
- package/dist/esm/components/molecules/CheckboxGroup/index.d.ts +3 -0
- package/dist/esm/components/molecules/ChipInput/ChipInput.d.ts +4 -0
- package/dist/esm/components/molecules/ChipInput/ChipInput.types.d.ts +16 -0
- package/dist/esm/components/molecules/ContextMenu/ContextMenu.d.ts +4 -6
- package/dist/esm/components/molecules/ContextMenu/ContextMenu.types.d.ts +3 -64
- package/dist/esm/components/molecules/ContextMenu/index.d.ts +2 -4
- package/dist/esm/components/molecules/List/List.types.d.ts +30 -0
- package/dist/esm/components/molecules/List/components/SortableListItem.d.ts +2 -1
- package/dist/esm/components/molecules/List/components/SortableTrigger.d.ts +3 -0
- package/dist/esm/components/molecules/Nav/NavLink/NavLink.types.d.ts +8 -2
- package/dist/esm/components/molecules/Pagination/Pagination.d.ts +3 -0
- package/dist/esm/components/molecules/Pagination/Pagination.presenter.d.ts +11 -0
- package/dist/esm/components/molecules/Pagination/Pagination.types.d.ts +9 -0
- package/dist/esm/components/molecules/Pagination/index.d.ts +2 -0
- package/dist/esm/components/molecules/PaginationNumberField/PaginationNumberField.d.ts +3 -0
- package/dist/esm/components/molecules/PaginationNumberField/PaginationNumberField.presenter.d.ts +10 -0
- package/dist/esm/components/molecules/PaginationNumberField/PaginationNumberField.types.d.ts +7 -0
- package/dist/esm/components/molecules/PaginationNumberField/index.d.ts +2 -0
- package/dist/esm/components/molecules/RadioGroup/RadioGroup.Context.d.ts +21 -0
- package/dist/esm/components/molecules/RadioGroup/RadioGroup.d.ts +4 -0
- package/dist/esm/components/molecules/RadioGroup/RadioGroup.types.d.ts +36 -0
- package/dist/esm/components/molecules/RadioGroup/index.d.ts +3 -0
- package/dist/esm/components/molecules/index.d.ts +23 -32
- package/dist/esm/components/organisms/Dropzone/Dropzone.d.ts +5 -0
- package/dist/esm/components/organisms/Dropzone/Dropzone.types.d.ts +102 -0
- package/dist/esm/components/organisms/Dropzone/components/DropzoneClear.d.ts +4 -0
- package/dist/esm/components/organisms/Dropzone/components/DropzoneFilename.d.ts +4 -0
- package/dist/esm/components/organisms/Dropzone/components/DropzoneSupportedFormats.d.ts +4 -0
- package/dist/esm/components/organisms/Dropzone/components/DrozoneTrigger.d.ts +4 -0
- package/dist/esm/components/organisms/Dropzone/index.d.ts +6 -0
- package/dist/esm/components/organisms/DropzoneContent/DropzoneContent.d.ts +3 -0
- package/dist/esm/components/organisms/DropzoneContent/DropzoneContent.types.d.ts +6 -0
- package/dist/esm/components/organisms/DropzoneContent/index.d.ts +3 -0
- package/dist/esm/components/organisms/Form/Form.types.d.ts +1 -1
- package/dist/esm/components/organisms/Form/FormExample.d.ts +9 -1
- package/dist/esm/components/organisms/Table/Table.types.d.ts +6 -1
- package/dist/esm/components/{molecules → organisms/Tabs}/TabItem/TabItem.types.d.ts +1 -1
- package/dist/esm/components/organisms/index.d.ts +23 -1
- package/dist/esm/library.css +5960 -2586
- package/dist/esm/library.js +3 -3
- package/dist/esm/library.js.map +1 -1
- package/dist/esm/modules/index.d.ts +1 -0
- package/dist/esm/modules/notification/NotificationContainer.d.ts +4 -0
- package/dist/esm/modules/notification/NotificationContext.d.ts +5 -0
- package/dist/esm/modules/notification/index.d.ts +4 -0
- package/dist/esm/modules/notification/types.d.ts +38 -0
- package/dist/index.d.ts +753 -546
- package/package.json +2 -1
- package/dist/cjs/components/atoms/Checkbox/types.d.ts +0 -8
- package/dist/cjs/components/molecules/ContextMenu/MenuItem/MenuItem.d.ts +0 -9
- package/dist/cjs/components/molecules/ContextMenu/MenuItem/MenuItem.types.d.ts +0 -24
- package/dist/cjs/components/molecules/ContextMenu/MenuItem/index.d.ts +0 -4
- package/dist/esm/components/atoms/Checkbox/types.d.ts +0 -8
- package/dist/esm/components/molecules/ContextMenu/MenuItem/MenuItem.d.ts +0 -9
- package/dist/esm/components/molecules/ContextMenu/MenuItem/MenuItem.types.d.ts +0 -24
- package/dist/esm/components/molecules/ContextMenu/MenuItem/index.d.ts +0 -4
- /package/dist/cjs/components/molecules/{ModalFooter → Modal/ModalFooter}/ModalFooter.d.ts +0 -0
- /package/dist/cjs/components/molecules/{ModalFooter → Modal/ModalFooter}/ModalFooter.types.d.ts +0 -0
- /package/dist/cjs/components/molecules/{ModalFooter → Modal/ModalFooter}/index.d.ts +0 -0
- /package/dist/cjs/components/molecules/{ModalHeader → Modal/ModalHeader}/ModalHeader.d.ts +0 -0
- /package/dist/cjs/components/molecules/{ModalHeader → Modal/ModalHeader}/ModalHeader.types.d.ts +0 -0
- /package/dist/cjs/components/molecules/{ModalHeader → Modal/ModalHeader}/index.d.ts +0 -0
- /package/dist/cjs/components/{molecules → organisms/Table}/TableBody/TableBody.d.ts +0 -0
- /package/dist/cjs/components/{molecules → organisms/Table}/TableBody/TableBody.types.d.ts +0 -0
- /package/dist/cjs/components/{molecules → organisms/Table}/TableBody/index.d.ts +0 -0
- /package/dist/cjs/components/{molecules → organisms/Table}/TableCell/TableCell.d.ts +0 -0
- /package/dist/cjs/components/{molecules → organisms/Table}/TableCell/TableCell.types.d.ts +0 -0
- /package/dist/cjs/components/{molecules → organisms/Table}/TableCell/index.d.ts +0 -0
- /package/dist/cjs/components/{molecules → organisms/Table}/TableHeader/TableHeader.d.ts +0 -0
- /package/dist/cjs/components/{molecules → organisms/Table}/TableHeader/TableHeader.types.d.ts +0 -0
- /package/dist/cjs/components/{molecules → organisms/Table}/TableHeader/index.d.ts +0 -0
- /package/dist/cjs/components/{molecules → organisms/Table}/TableRow/TableRow.d.ts +0 -0
- /package/dist/cjs/components/{molecules → organisms/Table}/TableRow/TableRow.types.d.ts +0 -0
- /package/dist/cjs/components/{molecules → organisms/Table}/TableRow/index.d.ts +0 -0
- /package/dist/cjs/components/{molecules → organisms/Tabs}/TabContent/TabContent.d.ts +0 -0
- /package/dist/cjs/components/{molecules → organisms/Tabs}/TabContent/TabContent.types.d.ts +0 -0
- /package/dist/cjs/components/{molecules → organisms/Tabs}/TabContent/index.d.ts +0 -0
- /package/dist/cjs/components/{molecules → organisms/Tabs}/TabItem/TabItem.d.ts +0 -0
- /package/dist/cjs/components/{molecules → organisms/Tabs}/TabItem/index.d.ts +0 -0
- /package/dist/cjs/components/{molecules → organisms}/Tabs/Tabs.Context.d.ts +0 -0
- /package/dist/cjs/components/{molecules → organisms}/Tabs/Tabs.d.ts +0 -0
- /package/dist/cjs/components/{molecules → organisms}/Tabs/Tabs.types.d.ts +0 -0
- /package/dist/cjs/components/{molecules → organisms}/Tabs/index.d.ts +0 -0
- /package/dist/esm/components/molecules/{ModalFooter → Modal/ModalFooter}/ModalFooter.d.ts +0 -0
- /package/dist/esm/components/molecules/{ModalFooter → Modal/ModalFooter}/ModalFooter.types.d.ts +0 -0
- /package/dist/esm/components/molecules/{ModalFooter → Modal/ModalFooter}/index.d.ts +0 -0
- /package/dist/esm/components/molecules/{ModalHeader → Modal/ModalHeader}/ModalHeader.d.ts +0 -0
- /package/dist/esm/components/molecules/{ModalHeader → Modal/ModalHeader}/ModalHeader.types.d.ts +0 -0
- /package/dist/esm/components/molecules/{ModalHeader → Modal/ModalHeader}/index.d.ts +0 -0
- /package/dist/esm/components/{molecules → organisms/Table}/TableBody/TableBody.d.ts +0 -0
- /package/dist/esm/components/{molecules → organisms/Table}/TableBody/TableBody.types.d.ts +0 -0
- /package/dist/esm/components/{molecules → organisms/Table}/TableBody/index.d.ts +0 -0
- /package/dist/esm/components/{molecules → organisms/Table}/TableCell/TableCell.d.ts +0 -0
- /package/dist/esm/components/{molecules → organisms/Table}/TableCell/TableCell.types.d.ts +0 -0
- /package/dist/esm/components/{molecules → organisms/Table}/TableCell/index.d.ts +0 -0
- /package/dist/esm/components/{molecules → organisms/Table}/TableHeader/TableHeader.d.ts +0 -0
- /package/dist/esm/components/{molecules → organisms/Table}/TableHeader/TableHeader.types.d.ts +0 -0
- /package/dist/esm/components/{molecules → organisms/Table}/TableHeader/index.d.ts +0 -0
- /package/dist/esm/components/{molecules → organisms/Table}/TableRow/TableRow.d.ts +0 -0
- /package/dist/esm/components/{molecules → organisms/Table}/TableRow/TableRow.types.d.ts +0 -0
- /package/dist/esm/components/{molecules → organisms/Table}/TableRow/index.d.ts +0 -0
- /package/dist/esm/components/{molecules → organisms/Tabs}/TabContent/TabContent.d.ts +0 -0
- /package/dist/esm/components/{molecules → organisms/Tabs}/TabContent/TabContent.types.d.ts +0 -0
- /package/dist/esm/components/{molecules → organisms/Tabs}/TabContent/index.d.ts +0 -0
- /package/dist/esm/components/{molecules → organisms/Tabs}/TabItem/TabItem.d.ts +0 -0
- /package/dist/esm/components/{molecules → organisms/Tabs}/TabItem/index.d.ts +0 -0
- /package/dist/esm/components/{molecules → organisms}/Tabs/Tabs.Context.d.ts +0 -0
- /package/dist/esm/components/{molecules → organisms}/Tabs/Tabs.d.ts +0 -0
- /package/dist/esm/components/{molecules → organisms}/Tabs/Tabs.types.d.ts +0 -0
- /package/dist/esm/components/{molecules → organisms}/Tabs/index.d.ts +0 -0
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { NotificationContextValue, NotificationProviderProps } from './types';
|
|
3
|
+
export declare const NotificationContext: React.Context<NotificationContextValue>;
|
|
4
|
+
export declare const NotificationProvider: React.FC<NotificationProviderProps>;
|
|
5
|
+
export declare const useNotification: () => NotificationContextValue;
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { ToastNotificationPositionEnum, ToastNotificationStyleEnum } from '../../components/atoms/ToastNotification/ToastNotification.types';
|
|
3
|
+
/**
|
|
4
|
+
* Represents a single notification.
|
|
5
|
+
*/
|
|
6
|
+
export type Notification = {
|
|
7
|
+
id?: number;
|
|
8
|
+
message?: ReactNode;
|
|
9
|
+
duration?: number;
|
|
10
|
+
};
|
|
11
|
+
/**
|
|
12
|
+
* Payload for triggering a new notification.
|
|
13
|
+
*/
|
|
14
|
+
export type TriggerNotificationPayload = Notification & {
|
|
15
|
+
style?: ToastNotificationStyleEnum;
|
|
16
|
+
position?: ToastNotificationPositionEnum;
|
|
17
|
+
};
|
|
18
|
+
/**
|
|
19
|
+
* Props for the NotificationContainer component.
|
|
20
|
+
*/
|
|
21
|
+
export type NotificationContainerProps = {
|
|
22
|
+
className?: string;
|
|
23
|
+
};
|
|
24
|
+
/**
|
|
25
|
+
* Context value for notifications.
|
|
26
|
+
*/
|
|
27
|
+
export type NotificationContextValue = {
|
|
28
|
+
notifications: Notification[];
|
|
29
|
+
clear: VoidFunction;
|
|
30
|
+
removeNotification: (id: number) => void;
|
|
31
|
+
trigger: (payload: TriggerNotificationPayload) => void;
|
|
32
|
+
};
|
|
33
|
+
/**
|
|
34
|
+
* Props for the NotificationProvider component.
|
|
35
|
+
*/
|
|
36
|
+
export type NotificationProviderProps = {
|
|
37
|
+
children: ReactNode;
|
|
38
|
+
};
|
|
@@ -1,4 +1,12 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
|
|
3
|
-
|
|
2
|
+
declare const Checkbox: React.ForwardRefExoticComponent<Omit<React.InputHTMLAttributes<HTMLInputElement>, "checked" | "value" | "type"> & {
|
|
3
|
+
children?: React.ReactNode;
|
|
4
|
+
size?: import("./Checkbox.types").CheckboxSizeEnum;
|
|
5
|
+
checked?: boolean;
|
|
6
|
+
onValueChanged?: (value: boolean) => void;
|
|
7
|
+
defaultChecked?: boolean;
|
|
8
|
+
invalid?: boolean;
|
|
9
|
+
value?: string | number;
|
|
10
|
+
labelAlignment?: import("./Checkbox.types").CheckboxLabelAlignmentEnum;
|
|
11
|
+
} & React.RefAttributes<HTMLInputElement>>;
|
|
4
12
|
export default Checkbox;
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import type { InputHTMLAttributes } from 'react';
|
|
2
|
+
export type CheckboxSizeEnum = 'Small' | 'Medium' | 'Large';
|
|
3
|
+
export type CheckboxLabelAlignmentEnum = 'Left' | 'Right';
|
|
4
|
+
export type CheckboxProps = Omit<InputHTMLAttributes<HTMLInputElement>, 'type' | 'checked' | 'value'> & {
|
|
5
|
+
/**
|
|
6
|
+
* The label of the checkbox.
|
|
7
|
+
*/
|
|
8
|
+
children?: React.ReactNode;
|
|
9
|
+
/**
|
|
10
|
+
* The size of the checkbox.
|
|
11
|
+
* @default 'Medium'
|
|
12
|
+
*/
|
|
13
|
+
size?: CheckboxSizeEnum;
|
|
14
|
+
/**
|
|
15
|
+
* The checked state of the checkbox.
|
|
16
|
+
*/
|
|
17
|
+
checked?: boolean;
|
|
18
|
+
/**
|
|
19
|
+
* Callback function when the checkbox state changes.
|
|
20
|
+
* @param value - The new checked state of the checkbox.
|
|
21
|
+
*/
|
|
22
|
+
onValueChanged?: (value: boolean) => void;
|
|
23
|
+
/**
|
|
24
|
+
* Default checked state of the checkbox.
|
|
25
|
+
* @default false
|
|
26
|
+
*/
|
|
27
|
+
defaultChecked?: boolean;
|
|
28
|
+
/**
|
|
29
|
+
* Indicates if the checkbox is invalid.
|
|
30
|
+
* @default false
|
|
31
|
+
*/
|
|
32
|
+
invalid?: boolean;
|
|
33
|
+
/**
|
|
34
|
+
* The value of the checkbox.
|
|
35
|
+
*/
|
|
36
|
+
value?: string | number;
|
|
37
|
+
/**
|
|
38
|
+
* The alignment of the label.
|
|
39
|
+
*/
|
|
40
|
+
labelAlignment?: CheckboxLabelAlignmentEnum;
|
|
41
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
declare const CheckboxItem: React.ForwardRefExoticComponent<Omit<import("..").CheckboxProps, "onValueChanged"> & {
|
|
3
|
+
onChange?: (value: boolean) => void;
|
|
4
|
+
showRightButton?: boolean;
|
|
5
|
+
onRightButtonClick?: () => void;
|
|
6
|
+
rightButtonIcon?: React.ReactNode;
|
|
7
|
+
} & React.RefAttributes<HTMLInputElement>>;
|
|
8
|
+
export default CheckboxItem;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import type { ReactNode } from 'react';
|
|
2
|
+
import type { CheckboxProps as BaseCheckboxProps } from '../Checkbox/Checkbox.types';
|
|
3
|
+
export type CheckboxItemProps = Omit<BaseCheckboxProps, 'onValueChanged'> & {
|
|
4
|
+
/**
|
|
5
|
+
* Callback function when the checkbox state changes.
|
|
6
|
+
* @param value: boolean - The new checked state of the checkbox.
|
|
7
|
+
*/
|
|
8
|
+
onChange?: (value: boolean) => void;
|
|
9
|
+
/**
|
|
10
|
+
* Flag to show right button.
|
|
11
|
+
* @default false
|
|
12
|
+
*/
|
|
13
|
+
showRightButton?: boolean;
|
|
14
|
+
/**
|
|
15
|
+
* Callback function when the right button is clicked.
|
|
16
|
+
*/
|
|
17
|
+
onRightButtonClick?: () => void;
|
|
18
|
+
/**
|
|
19
|
+
* Custom icon for the right button.
|
|
20
|
+
*/
|
|
21
|
+
rightButtonIcon?: ReactNode;
|
|
22
|
+
};
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import type { HTMLAttributes, ReactNode, MouseEvent } from 'react';
|
|
2
|
-
export type
|
|
2
|
+
export type ChipTypeEnum = 'Bright' | 'BrightOutline' | 'Subdued' | 'SubduedOutline';
|
|
3
3
|
export type ChipStyleEnum = 'A' | 'B' | 'C' | 'D' | 'E' | 'F';
|
|
4
4
|
export type ChipSizeEnum = 'Small' | 'Medium' | 'Large';
|
|
5
|
-
export type ChipCornerEnum = 'Rounded' | '
|
|
5
|
+
export type ChipCornerEnum = 'Rounded' | 'Squared';
|
|
6
6
|
export type ChipProps = Omit<HTMLAttributes<HTMLDivElement>, 'style'> & {
|
|
7
7
|
/**
|
|
8
|
-
*
|
|
8
|
+
* Type of the chip.
|
|
9
9
|
* @default 'Filled'
|
|
10
10
|
*/
|
|
11
|
-
|
|
11
|
+
type?: ChipTypeEnum;
|
|
12
12
|
/**
|
|
13
13
|
* Style of the chip.
|
|
14
14
|
* @default 'A'
|
|
@@ -57,5 +57,5 @@ export type ChipProps = Omit<HTMLAttributes<HTMLDivElement>, 'style'> & {
|
|
|
57
57
|
/**
|
|
58
58
|
* Event handler for the close action when chip is dismissible.
|
|
59
59
|
*/
|
|
60
|
-
onClose?: (event?: MouseEvent<
|
|
60
|
+
onClose?: (event?: MouseEvent<HTMLElement>) => void;
|
|
61
61
|
};
|
|
@@ -16,6 +16,10 @@ export type ListItemProps = Omit<HTMLAttributes<HTMLDivElement>, 'style'> & {
|
|
|
16
16
|
* Click event handler for the list item.
|
|
17
17
|
*/
|
|
18
18
|
onClick?: (event?: MouseEvent<HTMLElement>) => void;
|
|
19
|
+
/**
|
|
20
|
+
* The label for the list item.
|
|
21
|
+
*/
|
|
22
|
+
children?: ReactNode;
|
|
19
23
|
/**
|
|
20
24
|
* Additional class for styling.
|
|
21
25
|
*/
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
declare const RadioButton: React.ForwardRefExoticComponent<Omit<React.InputHTMLAttributes<HTMLInputElement>, "checked" | "value" | "type"> & {
|
|
3
|
+
children?: React.ReactNode;
|
|
4
|
+
size?: import("./RadioButton.types").RadioButtonSizeEnum;
|
|
5
|
+
checked?: boolean;
|
|
6
|
+
onValueChanged?: (value: string | number) => void;
|
|
7
|
+
invalid?: boolean;
|
|
8
|
+
labelAlignment?: import("./RadioButton.types").RadioButtonLabelAlignmentEnum;
|
|
9
|
+
value?: string | number;
|
|
10
|
+
} & React.RefAttributes<HTMLInputElement>>;
|
|
11
|
+
export default RadioButton;
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import type { InputHTMLAttributes } from 'react';
|
|
2
|
+
export type RadioButtonSizeEnum = 'Small' | 'Medium' | 'Large';
|
|
3
|
+
export type RadioButtonLabelAlignmentEnum = 'Left' | 'Right';
|
|
4
|
+
export type RadioButtonProps = Omit<InputHTMLAttributes<HTMLInputElement>, 'type' | 'checked' | 'value'> & {
|
|
5
|
+
/**
|
|
6
|
+
* The label of the radio button.
|
|
7
|
+
*/
|
|
8
|
+
children?: React.ReactNode;
|
|
9
|
+
/**
|
|
10
|
+
* The size of the radio button.
|
|
11
|
+
* @default 'Medium'
|
|
12
|
+
*/
|
|
13
|
+
size?: RadioButtonSizeEnum;
|
|
14
|
+
/**
|
|
15
|
+
* The checked state of the radio button.
|
|
16
|
+
*/
|
|
17
|
+
checked?: boolean;
|
|
18
|
+
/**
|
|
19
|
+
* Callback function when the radio button state changes.
|
|
20
|
+
* @param value - The new checked state of the radio button.
|
|
21
|
+
*/
|
|
22
|
+
onValueChanged?: (value: string | number) => void;
|
|
23
|
+
/**
|
|
24
|
+
* Indicates if the radio button is invalid.
|
|
25
|
+
* @default false
|
|
26
|
+
*/
|
|
27
|
+
invalid?: boolean;
|
|
28
|
+
/**
|
|
29
|
+
* Flag to show the label on the right side of the radio button.
|
|
30
|
+
* @default false
|
|
31
|
+
*/
|
|
32
|
+
labelAlignment?: RadioButtonLabelAlignmentEnum;
|
|
33
|
+
/**
|
|
34
|
+
* The value of the radio button.
|
|
35
|
+
*/
|
|
36
|
+
value?: string | number;
|
|
37
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
declare const RadioButtonItem: React.ForwardRefExoticComponent<Omit<import("../RadioButton").RadioButtonProps, "onValueChanged"> & {
|
|
3
|
+
onChange?: (value: string | number) => void;
|
|
4
|
+
showRightButton?: boolean;
|
|
5
|
+
onRightButtonClick?: () => void;
|
|
6
|
+
rightButtonIcon?: React.ReactNode;
|
|
7
|
+
} & React.RefAttributes<HTMLInputElement>>;
|
|
8
|
+
export default RadioButtonItem;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import type { ReactNode } from 'react';
|
|
2
|
+
import type { RadioButtonProps as BaseRadioButtonProps } from '../RadioButton/RadioButton.types';
|
|
3
|
+
export type RadioButtonItemProps = Omit<BaseRadioButtonProps, 'onValueChanged'> & {
|
|
4
|
+
/**
|
|
5
|
+
* Callback function when the radio button state changes.
|
|
6
|
+
* @param value: string | number - The value of the selected radio button.
|
|
7
|
+
*/
|
|
8
|
+
onChange?: (value: string | number) => void;
|
|
9
|
+
/**
|
|
10
|
+
* Flag to show right button.
|
|
11
|
+
* @default false
|
|
12
|
+
*/
|
|
13
|
+
showRightButton?: boolean;
|
|
14
|
+
/**
|
|
15
|
+
* Callback function when the right button is clicked.
|
|
16
|
+
*/
|
|
17
|
+
onRightButtonClick?: () => void;
|
|
18
|
+
/**
|
|
19
|
+
* Custom icon for the right button.
|
|
20
|
+
*/
|
|
21
|
+
rightButtonIcon?: ReactNode;
|
|
22
|
+
};
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
export type SliderProps = React.HTMLAttributes<HTMLDivElement> & {
|
|
2
|
+
/**
|
|
3
|
+
* The minimum value of the slider.
|
|
4
|
+
* @default 0
|
|
5
|
+
*/
|
|
6
|
+
min?: number;
|
|
7
|
+
/**
|
|
8
|
+
* The maximum value of the slider.
|
|
9
|
+
* @default 100
|
|
10
|
+
*/
|
|
11
|
+
max?: number;
|
|
12
|
+
/**
|
|
13
|
+
* The step size for the slider.
|
|
14
|
+
* @default 1
|
|
15
|
+
*/
|
|
16
|
+
step?: number;
|
|
17
|
+
/**
|
|
18
|
+
* The current value of the slider.
|
|
19
|
+
* Can be a single number or an array with exactly two numbers for range selection.
|
|
20
|
+
*/
|
|
21
|
+
value?: number | [number, number];
|
|
22
|
+
/**
|
|
23
|
+
* Callback function triggered when the slider value changes.
|
|
24
|
+
* @param value - The new value of the slider.
|
|
25
|
+
*/
|
|
26
|
+
onValueChange?: (value: number | [number, number]) => void;
|
|
27
|
+
/**
|
|
28
|
+
* Whether to display the minimum value label.
|
|
29
|
+
* @default false
|
|
30
|
+
*/
|
|
31
|
+
showMin?: boolean;
|
|
32
|
+
/**
|
|
33
|
+
* Whether to display the maximum value label.
|
|
34
|
+
* @default false
|
|
35
|
+
*/
|
|
36
|
+
showMax?: boolean;
|
|
37
|
+
/**
|
|
38
|
+
* Whether to show the current value on the slider thumb.
|
|
39
|
+
* @default false
|
|
40
|
+
*/
|
|
41
|
+
showValueOnThumb?: boolean;
|
|
42
|
+
/**
|
|
43
|
+
* Whether to enable range selection (two thumbs).
|
|
44
|
+
* @default false
|
|
45
|
+
*/
|
|
46
|
+
enableRange?: boolean;
|
|
47
|
+
/**
|
|
48
|
+
* Flag to disabled slider.
|
|
49
|
+
* @default false
|
|
50
|
+
*/
|
|
51
|
+
disabled?: boolean;
|
|
52
|
+
className?: string;
|
|
53
|
+
};
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import type { HTMLAttributes, ReactNode, MouseEvent } from 'react';
|
|
2
|
+
export type ToastNotificationStyleEnum = 'Neutral' | 'Error' | 'Success';
|
|
3
|
+
export type ToastNotificationPositionEnum = 'top-left' | 'top-right' | 'bottom-left' | 'bottom-right';
|
|
4
|
+
export type ToastNotificationProps = Omit<HTMLAttributes<HTMLDivElement>, 'style'> & {
|
|
5
|
+
/**
|
|
6
|
+
* Style of the toast notification.
|
|
7
|
+
* @default 'Neutral'
|
|
8
|
+
*/
|
|
9
|
+
style?: ToastNotificationStyleEnum;
|
|
10
|
+
/**
|
|
11
|
+
* Position of the toast notification.
|
|
12
|
+
* @default 'top-right'
|
|
13
|
+
*/
|
|
14
|
+
position?: ToastNotificationPositionEnum;
|
|
15
|
+
/**
|
|
16
|
+
* Determines if the toast notification is dismissible.
|
|
17
|
+
* @default true
|
|
18
|
+
*/
|
|
19
|
+
isDismissable?: boolean;
|
|
20
|
+
/**
|
|
21
|
+
* Icon displayed before the message content.
|
|
22
|
+
*/
|
|
23
|
+
leadingIcon?: ReactNode;
|
|
24
|
+
/**
|
|
25
|
+
* Icon displayed after the message content.
|
|
26
|
+
*/
|
|
27
|
+
trailingIcon?: ReactNode;
|
|
28
|
+
/**
|
|
29
|
+
* Close button/icon for dismissible toast notifications.
|
|
30
|
+
*/
|
|
31
|
+
closeIcon?: ReactNode;
|
|
32
|
+
/**
|
|
33
|
+
* Click event handler for the close action.
|
|
34
|
+
*/
|
|
35
|
+
removeToast?: (event?: MouseEvent<HTMLButtonElement>) => void;
|
|
36
|
+
/**
|
|
37
|
+
* Duration before the toast auto-closes (in milliseconds).
|
|
38
|
+
*/
|
|
39
|
+
duration?: number;
|
|
40
|
+
/**
|
|
41
|
+
* Additional class for styling.
|
|
42
|
+
*/
|
|
43
|
+
className?: string;
|
|
44
|
+
};
|
|
@@ -5,6 +5,6 @@ declare const Toggle: React.ForwardRefExoticComponent<Omit<React.InputHTMLAttrib
|
|
|
5
5
|
onValueChanged?: (value: boolean) => void;
|
|
6
6
|
defaultChecked?: boolean;
|
|
7
7
|
invalid?: boolean;
|
|
8
|
-
|
|
8
|
+
labelAlignment?: import("./Toggle.types").ToggleLabelAlignmentEnum;
|
|
9
9
|
} & React.RefAttributes<HTMLInputElement>>;
|
|
10
10
|
export default Toggle;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { InputHTMLAttributes } from 'react';
|
|
2
|
+
export type ToggleLabelAlignmentEnum = 'Left' | 'Right';
|
|
2
3
|
export type ToggleProps = Omit<InputHTMLAttributes<HTMLInputElement>, 'type' | 'value' | 'checked'> & {
|
|
3
4
|
/**
|
|
4
5
|
* The label of the toggle.
|
|
@@ -24,8 +25,8 @@ export type ToggleProps = Omit<InputHTMLAttributes<HTMLInputElement>, 'type' | '
|
|
|
24
25
|
*/
|
|
25
26
|
invalid?: boolean;
|
|
26
27
|
/**
|
|
27
|
-
*
|
|
28
|
-
* @default
|
|
28
|
+
* Alignment of the label.
|
|
29
|
+
* @default 'Left'
|
|
29
30
|
*/
|
|
30
|
-
|
|
31
|
+
labelAlignment?: ToggleLabelAlignmentEnum;
|
|
31
32
|
};
|
|
@@ -14,6 +14,9 @@ export { default as Toggle } from './Toggle';
|
|
|
14
14
|
export { default as ToggleButton } from './ToggleButton';
|
|
15
15
|
export { default as CustomToggle } from './CustomToggle';
|
|
16
16
|
export { default as Chip } from './Chip';
|
|
17
|
+
export { default as Checkbox } from './Checkbox';
|
|
18
|
+
export { default as CheckboxItem } from './CheckboxItem';
|
|
19
|
+
export { default as Slider } from './Slider';
|
|
17
20
|
export * from './ActionImage';
|
|
18
21
|
export * from './Button';
|
|
19
22
|
export * from './Icon';
|
|
@@ -30,3 +33,6 @@ export * from './Toggle';
|
|
|
30
33
|
export * from './ToggleButton';
|
|
31
34
|
export * from './CustomToggle';
|
|
32
35
|
export * from './Chip';
|
|
36
|
+
export * from './Checkbox';
|
|
37
|
+
export * from './CheckboxItem';
|
|
38
|
+
export * from './Slider';
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { CheckboxGroupContextProps, CheckboxGroupProviderProps } from './CheckboxGroup.types';
|
|
3
|
+
export declare const useCheckboxGroupContext: () => CheckboxGroupContextProps;
|
|
4
|
+
export declare const CheckboxGroupProvider: React.FC<CheckboxGroupProviderProps>;
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { HTMLAttributes } from 'react';
|
|
2
|
+
export type CheckboxGroupProps = Omit<HTMLAttributes<HTMLDivElement>, 'onChange'> & {
|
|
3
|
+
/**
|
|
4
|
+
* The name attribute for the checkbox group
|
|
5
|
+
*/
|
|
6
|
+
name: string;
|
|
7
|
+
/**
|
|
8
|
+
* The currently selected values
|
|
9
|
+
*/
|
|
10
|
+
value?: (string | number)[];
|
|
11
|
+
/**
|
|
12
|
+
* Callback function when selection changes
|
|
13
|
+
*/
|
|
14
|
+
onValueChanged?: (value: (string | number)[]) => void;
|
|
15
|
+
/**
|
|
16
|
+
* The checkboxes to render
|
|
17
|
+
*/
|
|
18
|
+
children: React.ReactNode;
|
|
19
|
+
/**
|
|
20
|
+
* Whether the checkbox group is disabled
|
|
21
|
+
*/
|
|
22
|
+
disabled?: boolean;
|
|
23
|
+
/**
|
|
24
|
+
* Whether the checkbox group is invalid
|
|
25
|
+
*/
|
|
26
|
+
invalid?: boolean;
|
|
27
|
+
/**
|
|
28
|
+
* Whether a selection is required
|
|
29
|
+
*/
|
|
30
|
+
required?: boolean;
|
|
31
|
+
/**
|
|
32
|
+
* The orientation of the checkbox group
|
|
33
|
+
* @default 'vertical'
|
|
34
|
+
*/
|
|
35
|
+
orientation?: 'horizontal' | 'vertical';
|
|
36
|
+
};
|
|
37
|
+
export interface CheckboxGroupContextProps {
|
|
38
|
+
selectedValues: (string | number)[];
|
|
39
|
+
name?: string;
|
|
40
|
+
updateSelectedValue: (value: string | number, checked: boolean) => void;
|
|
41
|
+
disabledField?: boolean;
|
|
42
|
+
invalidField?: boolean;
|
|
43
|
+
requiredField?: boolean;
|
|
44
|
+
}
|
|
45
|
+
export interface CheckboxGroupProviderProps {
|
|
46
|
+
children: React.ReactNode;
|
|
47
|
+
value: (string | number)[];
|
|
48
|
+
name?: string;
|
|
49
|
+
onValueChanged?: (value: (string | number)[]) => void;
|
|
50
|
+
disabled?: boolean;
|
|
51
|
+
invalid?: boolean;
|
|
52
|
+
required?: boolean;
|
|
53
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { ChipProps, InputProps } from "../../atoms";
|
|
2
|
+
export type ChipListItemTypeEnum = 'chip' | 'input';
|
|
3
|
+
export type ChipListItemProps = {
|
|
4
|
+
type: ChipListItemTypeEnum;
|
|
5
|
+
props: ChipProps | InputProps;
|
|
6
|
+
};
|
|
7
|
+
export type ChipInputProps = {
|
|
8
|
+
inputValue?: string;
|
|
9
|
+
onInputChange?: (value: string) => void;
|
|
10
|
+
options?: string[];
|
|
11
|
+
placeholder?: string;
|
|
12
|
+
className?: string;
|
|
13
|
+
onValueChanged?: (value: string[]) => void;
|
|
14
|
+
onAddNewOption?: (value: string) => void;
|
|
15
|
+
selectedValues?: string[];
|
|
16
|
+
};
|
|
@@ -1,7 +1,5 @@
|
|
|
1
|
-
import React from
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
*/
|
|
6
|
-
declare const ContextMenu: (props: ContextMenuProps) => React.JSX.Element;
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { ContextMenuProps } from "./ContextMenu.types";
|
|
3
|
+
import { ListItemType } from "../List/List.types";
|
|
4
|
+
declare const ContextMenu: <T extends ListItemType>(props: ContextMenuProps<T>) => React.JSX.Element;
|
|
7
5
|
export default ContextMenu;
|
|
@@ -1,64 +1,3 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
import type { ActionType, ContentProps, OverlayAlignEnum, OverlayDirectionEnum } from '../Popover/Popover.types';
|
|
5
|
-
/**
|
|
6
|
-
* Props for the ContextMenu component.
|
|
7
|
-
*/
|
|
8
|
-
export type ContextMenuProps = HTMLAttributes<HTMLUListElement> & {
|
|
9
|
-
/**
|
|
10
|
-
* The content to be rendered inside the context menu.
|
|
11
|
-
*/
|
|
12
|
-
children: React.ReactNode;
|
|
13
|
-
/**
|
|
14
|
-
* The element that triggers the display of the context menu.
|
|
15
|
-
*/
|
|
16
|
-
target: React.ReactNode;
|
|
17
|
-
/**
|
|
18
|
-
* Alignment of the menu relative to its target.
|
|
19
|
-
* @default 'Center'
|
|
20
|
-
*/
|
|
21
|
-
alignment?: OverlayAlignEnum;
|
|
22
|
-
/**
|
|
23
|
-
* Direction in which the menu expands.
|
|
24
|
-
* @default 'Down'
|
|
25
|
-
*/
|
|
26
|
-
direction?: OverlayDirectionEnum;
|
|
27
|
-
/**
|
|
28
|
-
* Offset position of the menu relative to its target.
|
|
29
|
-
*/
|
|
30
|
-
offset?: Offset;
|
|
31
|
-
/**
|
|
32
|
-
* Controls whether the context menu is visible (`true`) or hidden (`false`).
|
|
33
|
-
* @default false
|
|
34
|
-
*/
|
|
35
|
-
show?: boolean;
|
|
36
|
-
/**
|
|
37
|
-
* Disables interaction with the context menu if `true`.
|
|
38
|
-
* @default false
|
|
39
|
-
*/
|
|
40
|
-
disabled?: boolean;
|
|
41
|
-
/**
|
|
42
|
-
* Additional props to be passed to the menu content.
|
|
43
|
-
*/
|
|
44
|
-
menuProps?: ContentProps;
|
|
45
|
-
/**
|
|
46
|
-
* Action that triggers the display of the context menu.
|
|
47
|
-
* @default 'Click'
|
|
48
|
-
*/
|
|
49
|
-
action?: ActionType;
|
|
50
|
-
/**
|
|
51
|
-
* Determines whether the context menu should be hidden when clicking away from it.
|
|
52
|
-
* @default true
|
|
53
|
-
*/
|
|
54
|
-
hideOnClickAway?: boolean;
|
|
55
|
-
/**
|
|
56
|
-
* Determines whether the menu should remain open when clicking inside it.
|
|
57
|
-
* @default false
|
|
58
|
-
*/
|
|
59
|
-
keepMenuOnItemClick?: boolean;
|
|
60
|
-
/**
|
|
61
|
-
* Additional CSS class names to apply to the context menu.
|
|
62
|
-
*/
|
|
63
|
-
className?: string;
|
|
64
|
-
};
|
|
1
|
+
import { ListProps } from "../List";
|
|
2
|
+
import { ListItemType } from "../List/List.types";
|
|
3
|
+
export type ContextMenuProps<T extends ListItemType> = ListProps<T>;
|
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
import ContextMenu from
|
|
2
|
-
import type { ContextMenuProps } from
|
|
1
|
+
import ContextMenu from "./ContextMenu";
|
|
2
|
+
import type { ContextMenuProps } from "./ContextMenu.types";
|
|
3
3
|
export type { ContextMenuProps };
|
|
4
|
-
export { default as MenuItem } from './MenuItem';
|
|
5
|
-
export * from './MenuItem';
|
|
6
4
|
export default ContextMenu;
|