master-components-react-ts 2.2.10 → 2.2.12
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/Types.d.ts +0 -0
- package/dist/components/FilterWithTags/FilterWithTags.d.ts +1 -1
- package/dist/components/FilterWithTags/FilterWithTags.types.d.ts +19 -4
- package/dist/components/FilterWithTags/components/FilterContent.d.ts +3 -0
- package/dist/components/InlineLoading/InlineLoading.types.d.ts +24 -20
- package/dist/components/MainButton/MainButton.d.ts +2 -2
- package/dist/components/MainButton/MainButton.types.d.ts +1 -1
- package/dist/components/Popup/Popup.d.ts +1 -1
- package/dist/index.d.ts +19 -1
- package/dist/index.js +1288 -1277
- package/package.json +1 -1
package/dist/Types.d.ts
ADDED
|
File without changes
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { FilterWithTagsProps } from './FilterWithTags.types';
|
|
2
|
-
declare const FilterWithTags: ({ filterOptions, customOpenPopup,
|
|
2
|
+
declare const FilterWithTags: ({ filterOptions, customOpenPopup, onApply, onClearAll, mainButtonProps, popupProps }: FilterWithTagsProps) => import("react/jsx-runtime").JSX.Element;
|
|
3
3
|
export default FilterWithTags;
|
|
@@ -1,10 +1,25 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { MainButtonProps } from '../MainButton/MainButton.types';
|
|
2
3
|
import { PopupProps } from '../Popup/Popup.types';
|
|
4
|
+
export type Options = {
|
|
5
|
+
style?: React.CSSProperties;
|
|
6
|
+
component?: React.ComponentType<any> | React.FC<any>;
|
|
7
|
+
props?: any;
|
|
8
|
+
};
|
|
9
|
+
export type FilterOptions = {
|
|
10
|
+
title?: string;
|
|
11
|
+
style?: React.CSSProperties;
|
|
12
|
+
options: Options[];
|
|
13
|
+
};
|
|
3
14
|
export interface FilterWithTagsProps {
|
|
4
|
-
filterOptions:
|
|
15
|
+
filterOptions: FilterOptions[];
|
|
5
16
|
customOpenPopup?: boolean;
|
|
6
17
|
withSearch?: boolean;
|
|
7
|
-
|
|
8
|
-
|
|
18
|
+
onApply?: () => void;
|
|
19
|
+
onClearAll?: () => void;
|
|
20
|
+
mainButtonProps?: MainButtonProps;
|
|
9
21
|
popupProps?: PopupProps;
|
|
10
22
|
}
|
|
23
|
+
export interface FilterContentProps {
|
|
24
|
+
filterOptions: FilterOptions[];
|
|
25
|
+
}
|
|
@@ -1,24 +1,28 @@
|
|
|
1
1
|
import { CSSProperties } from 'react';
|
|
2
2
|
/**InlineLoading Component Props */
|
|
3
|
+
export type Loading = {
|
|
4
|
+
state: boolean;
|
|
5
|
+
color1?: string;
|
|
6
|
+
color2?: string;
|
|
7
|
+
size?: string;
|
|
8
|
+
};
|
|
9
|
+
export type Success = {
|
|
10
|
+
state: boolean;
|
|
11
|
+
color?: string;
|
|
12
|
+
size?: string;
|
|
13
|
+
};
|
|
14
|
+
export type Error = {
|
|
15
|
+
state: boolean;
|
|
16
|
+
color?: string;
|
|
17
|
+
size?: string;
|
|
18
|
+
};
|
|
19
|
+
export type Msg = {
|
|
20
|
+
text?: string;
|
|
21
|
+
style?: CSSProperties;
|
|
22
|
+
};
|
|
3
23
|
export interface InlineLoadingProps {
|
|
4
|
-
loading?:
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
size?: string;
|
|
9
|
-
};
|
|
10
|
-
success?: {
|
|
11
|
-
state: boolean;
|
|
12
|
-
color?: string;
|
|
13
|
-
size?: string;
|
|
14
|
-
};
|
|
15
|
-
error?: {
|
|
16
|
-
state: boolean;
|
|
17
|
-
color?: string;
|
|
18
|
-
size?: string;
|
|
19
|
-
};
|
|
20
|
-
msg?: {
|
|
21
|
-
text?: string;
|
|
22
|
-
style?: CSSProperties;
|
|
23
|
-
};
|
|
24
|
+
loading?: Loading;
|
|
25
|
+
success?: Success;
|
|
26
|
+
error?: Error;
|
|
27
|
+
msg?: Msg;
|
|
24
28
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { MainButtonProps } from './MainButton.types';
|
|
2
2
|
declare const MainButton: {
|
|
3
|
-
({ label, size, leftSlot, rightSlot, buttonSlot, type, colorType, buttonType, withFocus, customFocus, disabled, loading, spaceBetween, buttonStyle, mainButtonContentStyle, mainButtonLabelStyle, leftSlotStyle, rightSlotStyle, onClick, }:
|
|
3
|
+
({ label, size, leftSlot, rightSlot, buttonSlot, type, colorType, buttonType, withFocus, customFocus, disabled, loading, spaceBetween, buttonStyle, mainButtonContentStyle, mainButtonLabelStyle, leftSlotStyle, rightSlotStyle, onClick, }: MainButtonProps): import("react/jsx-runtime").JSX.Element;
|
|
4
4
|
propKeys: readonly ["label", "size", "leftSlot", "rightSlot", "buttonSlot", "type", "colorType", "buttonType", "withFocus", "customFocus", "disabled", "loading", "spaceBetween", "buttonStyle", "mainButtonContentStyle", "mainButtonLabelStyle", "leftSlotStyle", "rightSlotStyle", "onClick"];
|
|
5
5
|
displayName: string;
|
|
6
6
|
description: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { PopupProps } from './Popup.types';
|
|
2
2
|
declare const Popup: {
|
|
3
|
-
({ visible, template, mode, children, onClickOutside, onClose, widthType, modalOverlayStyle, popupContainerStyle, templateWrapperStyle,
|
|
3
|
+
({ visible, template, mode, children, onClickOutside, onClose, widthType, modalOverlayStyle, popupContainerStyle, templateWrapperStyle, closeButtonStyle, }: PopupProps): false | import("react/jsx-runtime").JSX.Element | undefined;
|
|
4
4
|
propKeys: readonly ["visible", "template", "mode", "children", "onClickOutside", "onClose", "widthType", "modalOverlayStyle", "popupContainerStyle", "templateWrapperStyle", "popupHeaderStyle", "popupTitleStyle", "closeButtonStyle"];
|
|
5
5
|
displayName: string;
|
|
6
6
|
description: string;
|
package/dist/index.d.ts
CHANGED
|
@@ -1,20 +1,38 @@
|
|
|
1
1
|
export { default as MainButton } from './components/MainButton/MainButton';
|
|
2
|
+
export type { MainButtonProps } from './components/MainButton/MainButton.types';
|
|
2
3
|
export { default as FormInput } from './components/FormInput/FormInput';
|
|
4
|
+
export type { FormInputProps } from './components/FormInput/FormInput.types';
|
|
3
5
|
export { default as Textarea } from './components/Textarea/Textarea';
|
|
6
|
+
export type { TextareaProps } from './components/Textarea/Textarea.types';
|
|
4
7
|
export { default as Toggle } from './components/Toggle/Toggle';
|
|
8
|
+
export type { ToggleProps } from './components/Toggle/Toggle.types';
|
|
5
9
|
export { default as Checkbox } from './components/Checkbox/CheckBox';
|
|
10
|
+
export type { CheckboxProps } from './components/Checkbox/Checkbox.types';
|
|
6
11
|
export { default as Dropdown } from './components/Dropdown/DropDown';
|
|
12
|
+
export type { DropdownProps } from './components/Dropdown/DropDown.types';
|
|
7
13
|
export { default as Radio } from './components/Radio/Radio';
|
|
14
|
+
export type { RadioProps } from './components/Radio/Radio.types';
|
|
8
15
|
export { default as Tooltip } from './components/Tooltip/Tooltip';
|
|
16
|
+
export type { TooltipProps } from './components/Tooltip/Tooltip.types';
|
|
9
17
|
export { default as Popup } from './components/Popup/Popup';
|
|
10
|
-
export {
|
|
18
|
+
export type { PopupProps } from './components/Popup/Popup.types';
|
|
11
19
|
export { default as ToastProvider } from './components/NotificationToast/NotificationContext';
|
|
20
|
+
export { default as createNotificationToast } from './components/NotificationToast/createNotificationToast';
|
|
21
|
+
export type { NotificationToastProps } from './components/NotificationToast/NotificationToast.types';
|
|
12
22
|
export { default as TimePicker } from './components/TimePicker/TimePicker';
|
|
23
|
+
export type { TimePickerProps } from './components/TimePicker/TimePicker.types';
|
|
13
24
|
export { default as DatePicker } from './components/DatePicker/DatePicker';
|
|
25
|
+
export type { DatePickerProps } from './components/DatePicker/DatePicker.types';
|
|
14
26
|
export { default as Skeleton } from './components/Skeleton/Skeleton';
|
|
27
|
+
export type { SkeletonProps } from './components/Skeleton/Skeleton.types';
|
|
15
28
|
export { default as ActionDropdown } from './components/ActionDropdown/ActionDropdown';
|
|
29
|
+
export type { ActionDropdownProps } from './components/ActionDropdown/ActionDropdown.types';
|
|
16
30
|
export { default as InlineLoading } from './components/InlineLoading/InlineLoading';
|
|
31
|
+
export type { Loading, Success, Error } from './components/InlineLoading/InlineLoading.types';
|
|
17
32
|
export { default as Slider } from './components/Slider/Slider';
|
|
18
33
|
export { default as TreeNode } from './components/TreeNode/TreeNode';
|
|
34
|
+
export type { TreeNodeData } from './components/TreeNode/TreeNode.types';
|
|
19
35
|
export { default as FilterWithTags } from './components/FilterWithTags/FilterWithTags';
|
|
36
|
+
export type { FilterOptions } from './components/FilterWithTags/FilterWithTags.types';
|
|
20
37
|
export { default as Table } from './components/Table/Table';
|
|
38
|
+
export type { TableProps } from './components/Table/Table.types';
|