@dexma/ui-components 7.0.0 → 7.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +1 -0
- package/dist/lib/components/Alert/Alert.d.ts +1 -2
- package/dist/lib/components/Button/Button.d.ts +2 -3
- package/dist/lib/components/Card/Card.d.ts +0 -1
- package/dist/lib/components/Cascader/Cascader.d.ts +1 -2
- package/dist/lib/components/Cell/Cell.d.ts +0 -1
- package/dist/lib/components/Chart/Chart.d.ts +2 -3
- package/dist/lib/components/Chart/types.d.ts +0 -1
- package/dist/lib/components/Checkbox/Checkbox.d.ts +2 -3
- package/dist/lib/components/ColorPicker/ColorPicker.d.ts +2 -3
- package/dist/lib/components/DataId/DataIdProvider.d.ts +0 -1
- package/dist/lib/components/DataId/withDataId.d.ts +1 -2
- package/dist/lib/components/DatePicker/DatePicker.d.ts +4 -5
- package/dist/lib/components/DatePicker/datePickerUtils.d.ts +0 -1
- package/dist/lib/components/Divider/Divider.d.ts +0 -1
- package/dist/lib/components/Dropdown/Dropdown.d.ts +0 -1
- package/dist/lib/components/FieldGroup/FieldGroup.d.ts +6 -7
- package/dist/lib/components/FormControl/FormControl.d.ts +2 -3
- package/dist/lib/components/Gauge/Gauge.d.ts +0 -1
- package/dist/lib/components/Grid/Grid.d.ts +0 -1
- package/dist/lib/components/Heading/Heading.d.ts +0 -1
- package/dist/lib/components/Icon/Icon.d.ts +0 -1
- package/dist/lib/components/Input/Input.d.ts +3 -4
- package/dist/lib/components/Loading/Loading.d.ts +2 -3
- package/dist/lib/components/Modal/Modal.d.ts +0 -1
- package/dist/lib/components/Pagination/Pagination.d.ts +0 -1
- package/dist/lib/components/Paragraph/Paragraph.d.ts +0 -1
- package/dist/lib/components/Popover/Popover.d.ts +2 -3
- package/dist/lib/components/Result/Result.d.ts +0 -1
- package/dist/lib/components/Row/Row.d.ts +0 -1
- package/dist/lib/components/Section/Section.d.ts +2 -3
- package/dist/lib/components/Select/ButtonPaginationSelector.d.ts +0 -1
- package/dist/lib/components/Select/Select.d.ts +3 -4
- package/dist/lib/components/Select/selectUtils.d.ts +0 -1
- package/dist/lib/components/Switch/Switch.d.ts +3 -4
- package/dist/lib/components/SwitchPeriodComparative/SwitchPeriodComparative.d.ts +0 -1
- package/dist/lib/components/Table/Table.d.ts +12 -8
- package/dist/lib/components/Tabs/Tabs.d.ts +0 -1
- package/dist/lib/components/Tag/Tag.d.ts +3 -4
- package/dist/lib/components/TagGroup/TagGroup.d.ts +0 -1
- package/dist/lib/components/Theme/Theme.d.ts +0 -1
- package/dist/lib/components/Toaster/Toaster.d.ts +0 -1
- package/dist/lib/components/Toaster/ToasterContext.d.ts +0 -1
- package/dist/lib/components/Tooltip/Tooltip.d.ts +0 -1
- package/dist/lib/index.d.ts +0 -1
- package/dist/lib/styles/Alert/StyledAlert.d.ts +1 -2
- package/dist/lib/styles/Button/StyledButton.d.ts +0 -1
- package/dist/lib/styles/Card/StyledCard.d.ts +0 -1
- package/dist/lib/styles/Cascader/StyledCascader.d.ts +0 -1
- package/dist/lib/styles/Cell/StyledCell.d.ts +0 -1
- package/dist/lib/styles/ColorPicker/StyledColorPicker.d.ts +6 -7
- package/dist/lib/styles/DatePicker/StyledDatePicker.d.ts +5 -3
- package/dist/lib/styles/Divider/StyledDivider.d.ts +0 -1
- package/dist/lib/styles/Dots/StyledDots.d.ts +0 -1
- package/dist/lib/styles/Dropdown/StyledDropdown.d.ts +8 -8
- package/dist/lib/styles/Fieldgroup/StyledFieldGroup.d.ts +0 -1
- package/dist/lib/styles/Grid/StyledGrid.d.ts +0 -1
- package/dist/lib/styles/Heading/StyledHeading.d.ts +0 -1
- package/dist/lib/styles/Input/StyledInput.d.ts +0 -1
- package/dist/lib/styles/Modal/StyledModal.d.ts +1 -2
- package/dist/lib/styles/Pagination/StyledPagination.d.ts +0 -1
- package/dist/lib/styles/Paragraph/StyledParagraph.d.ts +0 -1
- package/dist/lib/styles/Progress/StyledProgress.d.ts +0 -1
- package/dist/lib/styles/Result/StyledResult.d.ts +0 -1
- package/dist/lib/styles/Row/StyledRow.d.ts +0 -1
- package/dist/lib/styles/Select/StyledSelect.d.ts +4 -5
- package/dist/lib/styles/Spinner/StyledSpinner.d.ts +0 -1
- package/dist/lib/styles/SwitchPeriodComparative/StyledSwitchPeriodComparative.d.ts +0 -1
- package/dist/lib/styles/Table/StyledTable.d.ts +0 -1
- package/dist/lib/styles/Tabs/StyledTabs.d.ts +0 -1
- package/dist/lib/styles/Tag/StyledTag.d.ts +0 -1
- package/dist/lib/styles/TagGroup/StyledTagGroup.d.ts +0 -1
- package/dist/lib/utils/dates.d.ts +0 -1
- package/dist/lib/utils/selectors.d.ts +0 -1
- package/dist/lib/utils/theme.d.ts +0 -1
- package/dist/ui-components.es.js +35318 -34593
- package/dist/ui-components.umd.js +689 -687
- package/package.json +5 -5
package/dist/index.d.ts
CHANGED
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import { CSSProperties, ReactNode } from 'react';
|
|
2
|
-
|
|
3
2
|
export type AlertProps = {
|
|
4
3
|
message?: ReactNode;
|
|
5
4
|
type: 'basic' | 'outline' | 'warning' | 'info' | 'success' | 'error';
|
|
6
5
|
onClose?: (e: any) => void;
|
|
7
|
-
description?:
|
|
6
|
+
description?: ReactNode;
|
|
8
7
|
showIcon?: boolean;
|
|
9
8
|
closable?: boolean;
|
|
10
9
|
className?: string;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { default as React, ButtonHTMLAttributes, ReactNode } from 'react';
|
|
2
|
-
|
|
3
2
|
export declare enum ButtonSize {
|
|
4
3
|
SMALL = "small",
|
|
5
4
|
MEDIUM = "medium",
|
|
@@ -45,6 +44,6 @@ export declare const Button: React.ForwardRefExoticComponent<Omit<{
|
|
|
45
44
|
children?: ReactNode;
|
|
46
45
|
dataId?: string;
|
|
47
46
|
'data-testid'?: string;
|
|
48
|
-
} & React.ButtonHTMLAttributes<HTMLButtonElement
|
|
47
|
+
} & React.ButtonHTMLAttributes<HTMLButtonElement> & React.RefAttributes<HTMLButtonElement> & {
|
|
49
48
|
dataId?: string;
|
|
50
|
-
}> & React.RefAttributes<unknown>>;
|
|
49
|
+
}, "ref"> & React.RefAttributes<unknown>>;
|
|
@@ -2,7 +2,6 @@ import { ReactNode } from 'react';
|
|
|
2
2
|
import { CascaderProps as CascaderAntdProps } from 'antd';
|
|
3
3
|
import { DefaultOptionType } from 'antd/es/cascader';
|
|
4
4
|
import { DefaultTheme } from 'styled-components';
|
|
5
|
-
|
|
6
5
|
type Value = Array<string | number>;
|
|
7
6
|
type CascaderProps<OptionType extends DefaultOptionType> = CascaderAntdProps & {
|
|
8
7
|
open?: boolean;
|
|
@@ -15,5 +14,5 @@ export declare const tagRender: (theme: DefaultTheme) => (props: {
|
|
|
15
14
|
closable: boolean;
|
|
16
15
|
onClose: () => void;
|
|
17
16
|
}) => import("react/jsx-runtime").JSX.Element;
|
|
18
|
-
export declare const Cascader: <OptionType extends DefaultOptionType>({ multiple, options, maxTagCount, onChange, open, ...props }: CascaderProps<OptionType>) => import("react/jsx-runtime").JSX.Element;
|
|
17
|
+
export declare const Cascader: <OptionType extends DefaultOptionType>({ multiple, options, maxTagCount, onChange, open, changeOnSelect, ...props }: CascaderProps<OptionType>) => import("react/jsx-runtime").JSX.Element;
|
|
19
18
|
export {};
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
2
|
import { default as Highcharts } from 'highcharts';
|
|
3
3
|
import { HighchartsReactRefObject } from 'highcharts-react-official';
|
|
4
|
-
|
|
5
4
|
type ChartProps = {
|
|
6
5
|
options?: Highcharts.Options;
|
|
7
6
|
isLoading?: boolean;
|
|
@@ -17,7 +16,7 @@ type ChartProps = {
|
|
|
17
16
|
weekdays?: string[];
|
|
18
17
|
callback?: () => void;
|
|
19
18
|
};
|
|
20
|
-
export declare const Chart: React.ForwardRefExoticComponent<Omit<
|
|
19
|
+
export declare const Chart: React.ForwardRefExoticComponent<Omit<ChartProps & React.RefAttributes<HighchartsReactRefObject> & {
|
|
21
20
|
dataId?: string;
|
|
22
|
-
}
|
|
21
|
+
}, "ref"> & React.RefAttributes<unknown>>;
|
|
23
22
|
export {};
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
2
|
import { CheckboxProps as AntCheckboxProps } from 'antd';
|
|
3
|
-
|
|
4
3
|
export type CheckboxProps = {
|
|
5
4
|
dataId?: string;
|
|
6
5
|
} & AntCheckboxProps;
|
|
7
|
-
export declare const Checkbox: React.ForwardRefExoticComponent<
|
|
6
|
+
export declare const Checkbox: React.ForwardRefExoticComponent<AntCheckboxProps & {
|
|
8
7
|
dataId?: string;
|
|
9
|
-
}
|
|
8
|
+
} & React.RefAttributes<unknown>>;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
|
-
|
|
3
2
|
export type ColorPickerProps = {
|
|
4
3
|
dataId?: string;
|
|
5
4
|
isLoading?: boolean;
|
|
@@ -10,6 +9,6 @@ export type ColorPickerProps = {
|
|
|
10
9
|
showInput?: boolean;
|
|
11
10
|
value?: string;
|
|
12
11
|
};
|
|
13
|
-
export declare const ColorPicker: React.ForwardRefExoticComponent<Omit<
|
|
12
|
+
export declare const ColorPicker: React.ForwardRefExoticComponent<Omit<ColorPickerProps & React.RefAttributes<HTMLInputElement> & {
|
|
14
13
|
dataId?: string;
|
|
15
|
-
}
|
|
14
|
+
}, "ref"> & React.RefAttributes<unknown>>;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { default as React, ComponentType } from 'react';
|
|
2
|
-
|
|
3
2
|
type WithDataIdProps = {
|
|
4
3
|
dataId?: string;
|
|
5
4
|
};
|
|
6
|
-
export declare const withDataId: <P extends object>(Component: ComponentType<P & WithDataIdProps>, defaultValue: string) => React.ForwardRefExoticComponent<React.PropsWithoutRef<
|
|
5
|
+
export declare const withDataId: <P extends object>(Component: ComponentType<P & WithDataIdProps>, defaultValue: string) => React.ForwardRefExoticComponent<React.PropsWithoutRef<P & WithDataIdProps> & React.RefAttributes<unknown>>;
|
|
7
6
|
export {};
|
|
@@ -2,7 +2,6 @@ import { default as React } from 'react';
|
|
|
2
2
|
import { DatePickerProps } from 'antd';
|
|
3
3
|
import { RangePickerProps } from 'antd/lib/date-picker';
|
|
4
4
|
import { Theme } from '../../utils/theme';
|
|
5
|
-
|
|
6
5
|
type CommonProps = {
|
|
7
6
|
lang?: 'en' | 'bg' | 'br' | 'be' | 'ca' | 'da' | 'de' | 'el' | 'es' | 'fi' | 'fr' | 'it' | 'nl' | 'pl' | 'pt' | 'sl' | 'sv' | 'tr' | 'us' | 'zh';
|
|
8
7
|
dataId?: string;
|
|
@@ -10,13 +9,13 @@ type CommonProps = {
|
|
|
10
9
|
theme?: Theme;
|
|
11
10
|
};
|
|
12
11
|
export type AntdDatePickerProps = DatePickerProps & CommonProps;
|
|
13
|
-
export declare const AntdDatePicker: React.ForwardRefExoticComponent<
|
|
12
|
+
export declare const AntdDatePicker: React.ForwardRefExoticComponent<(AntdDatePickerProps & {
|
|
14
13
|
dataId?: string;
|
|
15
|
-
}
|
|
14
|
+
}) & React.RefAttributes<unknown>>;
|
|
16
15
|
export type AntdRangePickerProps = RangePickerProps & CommonProps;
|
|
17
|
-
export declare const AntdRangePicker: React.ForwardRefExoticComponent<
|
|
16
|
+
export declare const AntdRangePicker: React.ForwardRefExoticComponent<(AntdRangePickerProps & {
|
|
18
17
|
dataId?: string;
|
|
19
|
-
}
|
|
18
|
+
}) & React.RefAttributes<unknown>>;
|
|
20
19
|
type DatePickerType = {
|
|
21
20
|
type: 'date' | 'range';
|
|
22
21
|
} & (AntdDatePickerProps | AntdRangePickerProps);
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { default as React, HTMLAttributes, ReactNode } from 'react';
|
|
2
2
|
import { ButtonSize } from '../index.ts';
|
|
3
|
-
|
|
4
3
|
export declare enum FieldGroupType {
|
|
5
4
|
RADIO = "radio",
|
|
6
5
|
CHECKBOX = "checkbox"
|
|
@@ -33,7 +32,7 @@ export type FieldGroupItem = {
|
|
|
33
32
|
};
|
|
34
33
|
export type RadioFieldGroupProps = FieldGroupProps<string | number>;
|
|
35
34
|
export type CheckboxFieldGroupProps = FieldGroupProps<Array<string | number>>;
|
|
36
|
-
export declare const RadioFieldGroup: React.ForwardRefExoticComponent<
|
|
35
|
+
export declare const RadioFieldGroup: React.ForwardRefExoticComponent<{
|
|
37
36
|
selectedValues: string | number;
|
|
38
37
|
variant?: FieldGroupVariant;
|
|
39
38
|
values: FieldGroupItem[];
|
|
@@ -43,10 +42,10 @@ export declare const RadioFieldGroup: React.ForwardRefExoticComponent<Omit<{
|
|
|
43
42
|
onChange?: (e: FieldGroupItem) => void;
|
|
44
43
|
onFieldClick?: (e: FieldGroupItem) => void;
|
|
45
44
|
dataId?: string;
|
|
46
|
-
} & Omit<React.HTMLAttributes<HTMLDivElement>, "onChange"
|
|
45
|
+
} & Omit<React.HTMLAttributes<HTMLDivElement>, "onChange"> & {
|
|
47
46
|
dataId?: string;
|
|
48
|
-
}
|
|
49
|
-
export declare const CheckboxFieldGroup: React.ForwardRefExoticComponent<
|
|
47
|
+
} & React.RefAttributes<unknown>>;
|
|
48
|
+
export declare const CheckboxFieldGroup: React.ForwardRefExoticComponent<{
|
|
50
49
|
selectedValues: (string | number)[];
|
|
51
50
|
variant?: FieldGroupVariant;
|
|
52
51
|
values: FieldGroupItem[];
|
|
@@ -56,7 +55,7 @@ export declare const CheckboxFieldGroup: React.ForwardRefExoticComponent<Omit<{
|
|
|
56
55
|
onChange?: (e: FieldGroupItem) => void;
|
|
57
56
|
onFieldClick?: (e: FieldGroupItem) => void;
|
|
58
57
|
dataId?: string;
|
|
59
|
-
} & Omit<React.HTMLAttributes<HTMLDivElement>, "onChange"
|
|
58
|
+
} & Omit<React.HTMLAttributes<HTMLDivElement>, "onChange"> & {
|
|
60
59
|
dataId?: string;
|
|
61
|
-
}
|
|
60
|
+
} & React.RefAttributes<unknown>>;
|
|
62
61
|
export {};
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { default as React, ReactNode } from 'react';
|
|
2
|
-
|
|
3
2
|
type FormControlProps = {
|
|
4
3
|
dataId?: string;
|
|
5
4
|
control: 'Input' | 'Checkbox' | 'Textarea' | 'Select' | 'ColorPicker' | 'DatePicker';
|
|
@@ -29,7 +28,7 @@ type FormControlProps = {
|
|
|
29
28
|
maxLength?: number;
|
|
30
29
|
rows?: number;
|
|
31
30
|
};
|
|
32
|
-
export declare const FormControl: React.ForwardRefExoticComponent<Omit<
|
|
31
|
+
export declare const FormControl: React.ForwardRefExoticComponent<Omit<FormControlProps & React.RefAttributes<HTMLElement> & {
|
|
33
32
|
dataId?: string;
|
|
34
|
-
}
|
|
33
|
+
}, "ref"> & React.RefAttributes<unknown>>;
|
|
35
34
|
export {};
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { default as React, ReactNode } from 'react';
|
|
2
|
-
|
|
3
|
-
export declare const Input: React.ForwardRefExoticComponent<Omit<Omit<{
|
|
2
|
+
export declare const Input: React.ForwardRefExoticComponent<Omit<{
|
|
4
3
|
placeholder?: string;
|
|
5
4
|
id?: string;
|
|
6
5
|
icon?: string;
|
|
@@ -12,6 +11,6 @@ export declare const Input: React.ForwardRefExoticComponent<Omit<Omit<{
|
|
|
12
11
|
name?: string;
|
|
13
12
|
disabled?: boolean;
|
|
14
13
|
dataId?: string;
|
|
15
|
-
} & React.InputHTMLAttributes<HTMLInputElement> & React.RefAttributes<HTMLInputElement
|
|
14
|
+
} & React.InputHTMLAttributes<HTMLInputElement> & React.RefAttributes<HTMLInputElement> & {
|
|
16
15
|
dataId?: string;
|
|
17
|
-
}
|
|
16
|
+
}, "ref"> & React.RefAttributes<unknown>>;
|
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { HTMLAttributes, ReactNode } from 'react';
|
|
2
2
|
import { default as defaultTheme } from '../../utils/theme';
|
|
3
|
-
|
|
4
3
|
export type LoadingProps = {
|
|
5
4
|
size?: number;
|
|
6
5
|
isLoading: boolean;
|
|
7
6
|
color?: typeof defaultTheme.color;
|
|
8
7
|
} & HTMLAttributes<HTMLDivElement>;
|
|
9
|
-
export declare const Loading: ({ color, size, isLoading, children, ...props }: LoadingProps) =>
|
|
8
|
+
export declare const Loading: ({ color, size, isLoading, children, ...props }: LoadingProps) => ReactNode;
|
|
10
9
|
export default Loading;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
2
|
import { PaginationProps as PaginationAntProps } from 'antd';
|
|
3
|
-
|
|
4
3
|
export declare const itemRender: (page: number, type: "page" | "prev" | "next" | "jump-prev" | "jump-next", element: React.ReactNode) => string | number | boolean | Iterable<React.ReactNode> | import("react/jsx-runtime").JSX.Element | null | undefined;
|
|
5
4
|
export type PaginationProps = PaginationAntProps;
|
|
6
5
|
export declare const Pagination: (props: PaginationProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
2
|
import { PopoverProps as AntDPopoverProps } from 'antd';
|
|
3
|
-
|
|
4
|
-
export declare const Popover: React.ForwardRefExoticComponent<Omit<AntDPopoverProps, "dataId"> & Partial<{
|
|
3
|
+
export declare const Popover: React.ForwardRefExoticComponent<AntDPopoverProps & {
|
|
5
4
|
dataId?: string;
|
|
6
|
-
}
|
|
5
|
+
} & React.RefAttributes<unknown>>;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
|
-
|
|
3
2
|
type SectionProps = {
|
|
4
3
|
dataId?: string;
|
|
5
4
|
children: JSX.Element;
|
|
@@ -9,7 +8,7 @@ type SectionProps = {
|
|
|
9
8
|
onExportImage?: () => void;
|
|
10
9
|
onAddReport?: () => void;
|
|
11
10
|
};
|
|
12
|
-
export declare const Section: React.ForwardRefExoticComponent<
|
|
11
|
+
export declare const Section: React.ForwardRefExoticComponent<SectionProps & {
|
|
13
12
|
dataId?: string;
|
|
14
|
-
}
|
|
13
|
+
} & React.RefAttributes<unknown>>;
|
|
15
14
|
export {};
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { Theme } from '../../utils/theme';
|
|
2
2
|
import { SelectTextProps } from './Select';
|
|
3
|
-
|
|
4
3
|
export declare const getButtonText: (text: SelectTextProps, currentPage: number, pageSize: number, options: any[], searchValue: string, numElements: number) => import("react/jsx-runtime").JSX.Element;
|
|
5
4
|
export declare const getTotalPages: (pageSize: number, searchValue: string, options: any[]) => number;
|
|
6
5
|
type ButtonPaginationSelectorProps = {
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { SelectProps as AntdSelectProps } from 'antd';
|
|
2
2
|
import { Theme } from '../../utils/theme';
|
|
3
3
|
import { ReactElement } from 'react';
|
|
4
|
-
|
|
5
4
|
type CustomTagProps = {
|
|
6
5
|
label: React.ReactNode;
|
|
7
6
|
value: any;
|
|
@@ -39,7 +38,7 @@ export type SelectProps = Omit<AntdSelectProps, 'options' | 'mode'> & {
|
|
|
39
38
|
handleClearAll?: () => void;
|
|
40
39
|
mode?: 'multiple' | 'single';
|
|
41
40
|
};
|
|
42
|
-
export declare const Select: import('react').ForwardRefExoticComponent<Omit<
|
|
41
|
+
export declare const Select: import('react').ForwardRefExoticComponent<Omit<AntdSelectProps<any, import('rc-select/lib/Select').DefaultOptionType>, "mode" | "options"> & {
|
|
43
42
|
dataId?: string;
|
|
44
43
|
defaultValues?: any[];
|
|
45
44
|
pageSize?: number;
|
|
@@ -52,7 +51,7 @@ export declare const Select: import('react').ForwardRefExoticComponent<Omit<Omit
|
|
|
52
51
|
handleButtonSelectAll?: (values: any[]) => void;
|
|
53
52
|
handleClearAll?: () => void;
|
|
54
53
|
mode?: "multiple" | "single";
|
|
55
|
-
}
|
|
54
|
+
} & {
|
|
56
55
|
dataId?: string;
|
|
57
|
-
}
|
|
56
|
+
} & import('react').RefAttributes<unknown>>;
|
|
58
57
|
export {};
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { DefaultOptionType } from 'antd/es/select';
|
|
2
|
-
|
|
3
2
|
export declare const regExpWithoutAllCharacter: (input: string) => RegExp;
|
|
4
3
|
export declare const regExpWithSubstringsWithAllCharacter: (string: string) => RegExp;
|
|
5
4
|
export declare const regExpWith2Substrings: (initialString: string, finalString: string) => RegExp;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
2
|
import { SwitchChangeEventHandler, SwitchClickEventHandler, SwitchProps as AntdSwitchProps, SwitchSize } from 'antd/es/switch';
|
|
3
|
-
|
|
4
3
|
export type SwitchProps = {
|
|
5
4
|
disabled?: boolean;
|
|
6
5
|
size?: SwitchSize;
|
|
@@ -8,12 +7,12 @@ export type SwitchProps = {
|
|
|
8
7
|
onChange?: SwitchChangeEventHandler;
|
|
9
8
|
onClick?: SwitchClickEventHandler;
|
|
10
9
|
} & AntdSwitchProps;
|
|
11
|
-
export declare const Switch: React.ForwardRefExoticComponent<
|
|
10
|
+
export declare const Switch: React.ForwardRefExoticComponent<{
|
|
12
11
|
disabled?: boolean;
|
|
13
12
|
size?: SwitchSize;
|
|
14
13
|
dataId?: string;
|
|
15
14
|
onChange?: SwitchChangeEventHandler;
|
|
16
15
|
onClick?: SwitchClickEventHandler;
|
|
17
|
-
} & AntdSwitchProps
|
|
16
|
+
} & AntdSwitchProps & {
|
|
18
17
|
dataId?: string;
|
|
19
|
-
}
|
|
18
|
+
} & React.RefAttributes<unknown>>;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { Dayjs } from 'dayjs';
|
|
2
|
-
|
|
3
2
|
export declare const getPreviousDate: (startDate: string, endDate: string) => [string, string];
|
|
4
3
|
export declare const getSamePeriodLastYear: (startDate: string, endDate: string) => [string, string];
|
|
5
4
|
export declare enum SelectedPeriodType {
|
|
@@ -1,16 +1,20 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
2
|
import { TableProps as AntDTableProps } from 'antd';
|
|
3
|
-
import { AnyObject } from 'antd/lib/
|
|
4
|
-
|
|
5
|
-
type TableProps = {
|
|
3
|
+
import { AnyObject } from 'antd/lib/_util/type';
|
|
4
|
+
export type TableProps<RecordType> = {
|
|
6
5
|
isLoading?: boolean;
|
|
7
6
|
isExpanded?: boolean;
|
|
8
7
|
showError?: boolean;
|
|
9
8
|
dataId?: string;
|
|
10
9
|
errorContent?: React.ReactNode;
|
|
11
|
-
}
|
|
12
|
-
export declare const Table: <RecordType extends AnyObject>(props:
|
|
13
|
-
export declare const buildTableWithDataId: <RecordType extends AnyObject>() => React.ForwardRefExoticComponent<
|
|
10
|
+
} & AntDTableProps<RecordType>;
|
|
11
|
+
export declare const Table: <RecordType extends AnyObject>(props: TableProps<RecordType>) => import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
export declare const buildTableWithDataId: <RecordType extends AnyObject>() => React.ForwardRefExoticComponent<{
|
|
13
|
+
isLoading?: boolean;
|
|
14
|
+
isExpanded?: boolean;
|
|
15
|
+
showError?: boolean;
|
|
16
|
+
dataId?: string;
|
|
17
|
+
errorContent?: React.ReactNode;
|
|
18
|
+
} & AntDTableProps<RecordType> & {
|
|
14
19
|
dataId?: string;
|
|
15
|
-
}
|
|
16
|
-
export {};
|
|
20
|
+
} & React.RefAttributes<unknown>>;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { default as React, HTMLAttributes } from 'react';
|
|
2
|
-
|
|
3
2
|
export type TagProps = {
|
|
4
3
|
dataId?: string;
|
|
5
4
|
color?: string;
|
|
@@ -9,7 +8,7 @@ export type TagProps = {
|
|
|
9
8
|
type?: 'normal' | 'rounded';
|
|
10
9
|
variant?: 'primary' | 'outline';
|
|
11
10
|
} & HTMLAttributes<HTMLDivElement>;
|
|
12
|
-
export declare const Tag: React.ForwardRefExoticComponent<
|
|
11
|
+
export declare const Tag: React.ForwardRefExoticComponent<{
|
|
13
12
|
dataId?: string;
|
|
14
13
|
color?: string;
|
|
15
14
|
icon?: string;
|
|
@@ -17,6 +16,6 @@ export declare const Tag: React.ForwardRefExoticComponent<Omit<{
|
|
|
17
16
|
onClose?: () => void;
|
|
18
17
|
type?: "normal" | "rounded";
|
|
19
18
|
variant?: "primary" | "outline";
|
|
20
|
-
} & React.HTMLAttributes<HTMLDivElement
|
|
19
|
+
} & React.HTMLAttributes<HTMLDivElement> & {
|
|
21
20
|
dataId?: string;
|
|
22
|
-
}
|
|
21
|
+
} & React.RefAttributes<unknown>>;
|
package/dist/lib/index.d.ts
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { SketchPicker } from 'react-color';
|
|
2
2
|
import { Theme } from '../../utils/theme';
|
|
3
|
-
|
|
4
3
|
declare const StyledColorPickerLayout: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
5
|
-
declare const StyledColorPickerInput: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<Omit<Omit<
|
|
4
|
+
declare const StyledColorPickerInput: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<Omit<Omit<{
|
|
6
5
|
placeholder?: string;
|
|
7
6
|
id?: string;
|
|
8
7
|
icon?: string;
|
|
@@ -14,11 +13,11 @@ declare const StyledColorPickerInput: import('styled-components/dist/types').ISt
|
|
|
14
13
|
name?: string;
|
|
15
14
|
disabled?: boolean;
|
|
16
15
|
dataId?: string;
|
|
17
|
-
} & import('react').InputHTMLAttributes<HTMLInputElement> & import('react').RefAttributes<HTMLInputElement
|
|
16
|
+
} & import('react').InputHTMLAttributes<HTMLInputElement> & import('react').RefAttributes<HTMLInputElement> & {
|
|
18
17
|
dataId?: string;
|
|
19
|
-
}
|
|
18
|
+
}, "ref"> & import('react').RefAttributes<unknown>, "ref"> & {
|
|
20
19
|
ref?: ((instance: unknown) => void | import('react').DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import('react').DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import('react').RefObject<unknown> | null | undefined;
|
|
21
|
-
}, never>> & string & Omit<import('react').ForwardRefExoticComponent<Omit<
|
|
20
|
+
}, never>> & string & Omit<import('react').ForwardRefExoticComponent<Omit<{
|
|
22
21
|
placeholder?: string;
|
|
23
22
|
id?: string;
|
|
24
23
|
icon?: string;
|
|
@@ -30,9 +29,9 @@ declare const StyledColorPickerInput: import('styled-components/dist/types').ISt
|
|
|
30
29
|
name?: string;
|
|
31
30
|
disabled?: boolean;
|
|
32
31
|
dataId?: string;
|
|
33
|
-
} & import('react').InputHTMLAttributes<HTMLInputElement> & import('react').RefAttributes<HTMLInputElement
|
|
32
|
+
} & import('react').InputHTMLAttributes<HTMLInputElement> & import('react').RefAttributes<HTMLInputElement> & {
|
|
34
33
|
dataId?: string;
|
|
35
|
-
}
|
|
34
|
+
}, "ref"> & import('react').RefAttributes<unknown>>, keyof import('react').Component<any, {}, any>>;
|
|
36
35
|
declare const StyledSpinnerColorPicker: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<{
|
|
37
36
|
color?: string;
|
|
38
37
|
size?: number;
|