@true-engineering/true-react-common-ui-kit 1.0.1 → 1.0.2
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/LICENSE +1 -1
- package/dist/components/AccountInfo/AccountInfo.d.ts +4 -4
- package/dist/components/AccountInfo/AccountInfo.styles.d.ts +56 -60
- package/dist/components/AddButton/AddButton.d.ts +6 -6
- package/dist/components/AddButton/AddButton.styles.d.ts +23 -23
- package/dist/components/Button/Button.d.ts +33 -19
- package/dist/components/Button/Button.styles.d.ts +144 -144
- package/dist/components/Checkbox/Checkbox.d.ts +27 -16
- package/dist/components/Checkbox/Checkbox.styles.d.ts +42 -39
- package/dist/components/CloseButton/CloseButton.d.ts +4 -4
- package/dist/components/CloseButton/CloseButton.styles.d.ts +22 -22
- package/dist/components/Colors/Colors.styles.d.ts +28 -28
- package/dist/components/CssBaseline/CssBaseline.d.ts +1 -1
- package/dist/components/CssBaseline/CssBaseline.styles.d.ts +7 -7
- package/dist/components/DateInput/DateInput.d.ts +9 -8
- package/dist/components/DateInput/DateInput.styles.d.ts +7 -7
- package/dist/components/DatePicker/DatePicker.d.ts +36 -29
- package/dist/components/DatePicker/DatePicker.styles.d.ts +34 -38
- package/dist/components/DatePicker/DatePickerHeader/DatePickerHeader.d.ts +9 -9
- package/dist/components/DatePicker/DatePickerHeader/DatePickerHeader.styles.d.ts +59 -59
- package/dist/components/DatePicker/DatePickerInput/DatePickerInput.d.ts +9 -7
- package/dist/components/DatePicker/DatePickerInput/DatePickerInput.styles.d.ts +16 -16
- package/dist/components/Description/Description.d.ts +6 -6
- package/dist/components/Description/Description.styles.d.ts +18 -18
- package/dist/components/FiltersPane/FilterInterval/FilterInterval.d.ts +19 -19
- package/dist/components/FiltersPane/FilterInterval/FilterInterval.styles.d.ts +44 -44
- package/dist/components/FiltersPane/FilterMultiSelect/FilterMultiSelect.d.ts +8 -2
- package/dist/components/FiltersPane/FilterSelect/FilterSelect.d.ts +35 -17
- package/dist/components/FiltersPane/FilterSelect/FilterSelect.styles.d.ts +111 -111
- package/dist/components/FiltersPane/FilterSelect/locales.d.ts +10 -6
- package/dist/components/FiltersPane/FilterValueView/FilterValueView.d.ts +9 -1
- package/dist/components/FiltersPane/FilterValueView/FilterValueView.styles.d.ts +8 -8
- package/dist/components/FiltersPane/FilterWithDates/FilterWithDates.d.ts +21 -13
- package/dist/components/FiltersPane/FilterWithDates/FilterWithDates.styles.d.ts +41 -41
- package/dist/components/FiltersPane/FilterWithPeriod/FilterWithPeriod.d.ts +8 -8
- package/dist/components/FiltersPane/FilterWithPeriod/FilterWithPeriod.styles.d.ts +7 -7
- package/dist/components/FiltersPane/FilterWrapper/FilterWrapper.d.ts +41 -18
- package/dist/components/FiltersPane/FilterWrapper/FilterWrapper.styles.d.ts +92 -92
- package/dist/components/FiltersPane/FiltersPane.d.ts +34 -15
- package/dist/components/FiltersPane/FiltersPane.styles.d.ts +50 -50
- package/dist/components/FiltersPane/FiltersPaneSearch/FiltersPaneSearch.d.ts +37 -18
- package/dist/components/FiltersPane/FiltersPaneSearch/FiltersPaneSearch.styles.d.ts +82 -82
- package/dist/components/FiltersPane/locales.d.ts +28 -22
- package/dist/components/FiltersPane/types.d.ts +65 -38
- package/dist/components/Flag/Flag.d.ts +2 -2
- package/dist/components/Flag/Flag.styles.d.ts +8 -8
- package/dist/components/FlexibleTable/FlexibleTable.d.ts +45 -20
- package/dist/components/FlexibleTable/FlexibleTable.styles.d.ts +93 -93
- package/dist/components/FlexibleTable/TableRow.d.ts +38 -21
- package/dist/components/FlexibleTable/TableValue.d.ts +28 -16
- package/dist/components/FlexibleTable/types.d.ts +37 -31
- package/dist/components/Icon/ComplexIconBoilerplate.d.ts +1 -1
- package/dist/components/Icon/Icon.d.ts +2 -2
- package/dist/components/Icon/Icon.styles.d.ts +4 -4
- package/dist/components/Icon/IconBoilerplate.d.ts +1 -1
- package/dist/components/Icon/complexIcons/icons.d.ts +1 -1
- package/dist/components/Icon/icons/icons.d.ts +97 -5
- package/dist/components/IncrementInput/ChangeButton.d.ts +5 -5
- package/dist/components/IncrementInput/IncrementInput.d.ts +4 -3
- package/dist/components/IncrementInput/IncrementInput.styles.d.ts +52 -52
- package/dist/components/Input/Input.d.ts +48 -37
- package/dist/components/Input/Input.styles.d.ts +242 -242
- package/dist/components/List/List.d.ts +12 -12
- package/dist/components/List/List.styles.d.ts +35 -35
- package/dist/components/Modal/Modal.d.ts +19 -19
- package/dist/components/Modal/Modal.styles.d.ts +235 -235
- package/dist/components/MoreMenu/MoreMenu.d.ts +7 -7
- package/dist/components/MoreMenu/MoreMenu.styles.d.ts +45 -44
- package/dist/components/MultiSelect/MultiSelect.d.ts +28 -13
- package/dist/components/MultiSelect/MultiSelect.styles.d.ts +38 -38
- package/dist/components/MultiSelect/MultiSelectInput/MultiSelectInput.d.ts +12 -6
- package/dist/components/MultiSelect/MultiSelectInput/MultiSelectInput.styles.d.ts +58 -58
- package/dist/components/MultiSelectList/MultiSelectList.d.ts +43 -20
- package/dist/components/MultiSelectList/MultiSelectList.styles.d.ts +90 -90
- package/dist/components/MultiSelectList/locales.d.ts +10 -6
- package/dist/components/Notification/Notification.d.ts +14 -9
- package/dist/components/Notification/Notification.styles.d.ts +33 -30
- package/dist/components/NumberInput/NumberInput.d.ts +16 -10
- package/dist/components/NumberInput/helpers.d.ts +10 -2
- package/dist/components/PhoneInput/PhoneInput.d.ts +14 -7
- package/dist/components/PhoneInput/PhoneInput.styles.d.ts +60 -60
- package/dist/components/PhoneInput/PhoneInputCountryList/PhoneInputCountryList.d.ts +7 -7
- package/dist/components/PhoneInput/PhoneInputCountryList/PhoneInputCountryList.styles.d.ts +78 -74
- package/dist/components/PhoneInput/types.d.ts +11 -11
- package/dist/components/RadioButton/RadioButton.d.ts +18 -8
- package/dist/components/RadioButton/RadioButton.styles.d.ts +25 -25
- package/dist/components/ScrollIntoViewIfNeeded/ScrollIntoViewIfNeeded.d.ts +634 -374
- package/dist/components/SearchInput/SearchInput.d.ts +12 -2
- package/dist/components/SearchInput/SearchInput.styles.d.ts +32 -32
- package/dist/components/Select/Select.d.ts +50 -21
- package/dist/components/Select/Select.styles.d.ts +53 -53
- package/dist/components/Select/SelectList/SelectList.d.ts +30 -15
- package/dist/components/Select/SelectList/SelectList.styles.d.ts +37 -35
- package/dist/components/Select/helpers.d.ts +9 -2
- package/dist/components/SmartInput/SmartInput.d.ts +28 -16
- package/dist/components/SmartInput/helpers.d.ts +8 -4
- package/dist/components/Switch/Switch.d.ts +26 -13
- package/dist/components/Switch/Switch.styles.d.ts +58 -58
- package/dist/components/TextArea/TextArea.d.ts +26 -23
- package/dist/components/TextArea/TextArea.styles.d.ts +124 -124
- package/dist/components/TextWithInfo/TextWithInfo.d.ts +9 -9
- package/dist/components/TextWithInfo/TextWithInfo.styles.d.ts +40 -40
- package/dist/components/TextWithTooltip/TextWithTooltip.d.ts +12 -12
- package/dist/components/TextWithTooltip/TextWithTooltip.styles.d.ts +10 -10
- package/dist/components/ThemedPreloader/ThemedPreloader.d.ts +4 -4
- package/dist/components/ThemedPreloader/ThemedPreloader.styles.d.ts +10 -10
- package/dist/components/ThemedPreloader/components/DotsPreloader/DotsPreloader.d.ts +1 -1
- package/dist/components/ThemedPreloader/components/DotsPreloader/DotsPreloader.styles.d.ts +35 -35
- package/dist/components/ThemedPreloader/components/SvgPreloader/SvgPreloader.d.ts +2 -2
- package/dist/components/ThemedPreloader/components/SvgPreloader/SvgPreloader.styles.d.ts +5 -5
- package/dist/components/Toaster/Toaster.d.ts +16 -11
- package/dist/components/Toaster/Toaster.styles.d.ts +41 -41
- package/dist/components/Tooltip/Tooltip.d.ts +4 -4
- package/dist/components/Tooltip/Tooltip.styles.d.ts +25 -27
- package/dist/helpers/data-attributes.d.ts +11 -4
- package/dist/helpers/phone.d.ts +28 -8
- package/dist/helpers/utils.d.ts +28 -7
- package/dist/hooks/use-did-mount-effect.d.ts +4 -1
- package/dist/hooks/use-dropdown.d.ts +14 -7
- package/dist/hooks/use-is-mounted.d.ts +1 -1
- package/dist/hooks/use-on-click-outside.d.ts +25 -4
- package/dist/hooks/use-theme.d.ts +10 -5
- package/dist/hooks/use-tweak-styles.d.ts +5 -1
- package/dist/style.css +205 -90
- package/dist/theme.d.ts +51 -55
- package/dist/true-react-common-ui-kit.js +24375 -16679
- package/dist/true-react-common-ui-kit.js.map +1 -1
- package/dist/true-react-common-ui-kit.umd.cjs +300 -211
- package/dist/true-react-common-ui-kit.umd.cjs.map +1 -1
- package/dist/types.d.ts +77 -23
- package/package.json +1 -1
- package/src/components/List/List.tsx +9 -2
- package/src/components/Modal/Modal.tsx +1 -1
- package/src/components/MoreMenu/MoreMenu.styles.ts +2 -0
- package/src/components/MoreMenu/MoreMenu.tsx +35 -24
- package/src/types.ts +1 -1
|
@@ -1,28 +1,45 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { FlexibleTableConfigType } from './types';
|
|
3
3
|
import { ICommonProps } from '../../types';
|
|
4
|
-
interface ITableRowProps<Values extends Record<string, any>>
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
4
|
+
interface ITableRowProps<Values extends Record<string, any>>
|
|
5
|
+
extends ICommonProps {
|
|
6
|
+
item: Values;
|
|
7
|
+
uniqueField?: keyof Values;
|
|
8
|
+
isFirstColumnSticky?: boolean;
|
|
9
|
+
isActive: boolean;
|
|
10
|
+
config?: FlexibleTableConfigType<Values>;
|
|
11
|
+
enabledColumns?: Array<keyof Values>;
|
|
12
|
+
rowAttributes?: Array<keyof Values>;
|
|
13
|
+
expandableRowComponent?: (
|
|
14
|
+
item: Values,
|
|
15
|
+
isOpen: boolean,
|
|
16
|
+
close: () => void,
|
|
17
|
+
) => React.ReactNode;
|
|
18
|
+
onRowHover?: (id?: string) => void;
|
|
19
|
+
onRowClick?: (id: string) => void;
|
|
20
|
+
classes: {
|
|
21
|
+
root: string;
|
|
22
|
+
active: string;
|
|
23
|
+
editable: string;
|
|
24
|
+
cell: {
|
|
25
|
+
root: string;
|
|
26
|
+
sticky: string;
|
|
27
|
+
second: string;
|
|
24
28
|
};
|
|
29
|
+
};
|
|
25
30
|
}
|
|
26
|
-
declare function TableRow<Values extends Record<string, any>>({
|
|
31
|
+
declare function TableRow<Values extends Record<string, any>>({
|
|
32
|
+
item,
|
|
33
|
+
uniqueField,
|
|
34
|
+
isFirstColumnSticky,
|
|
35
|
+
isActive,
|
|
36
|
+
config,
|
|
37
|
+
enabledColumns,
|
|
38
|
+
onRowHover,
|
|
39
|
+
onRowClick,
|
|
40
|
+
rowAttributes,
|
|
41
|
+
expandableRowComponent,
|
|
42
|
+
classes,
|
|
43
|
+
}: ITableRowProps<Values>): JSX.Element;
|
|
27
44
|
declare const _default: typeof TableRow;
|
|
28
45
|
export default _default;
|
|
@@ -1,21 +1,33 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
2
|
import type { ICommonProps } from '../../types';
|
|
3
3
|
import type { FlexibleTableConfigType } from './types';
|
|
4
|
-
interface ITableValueProps<Values extends Record<string, any>>
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
4
|
+
interface ITableValueProps<Values extends Record<string, any>>
|
|
5
|
+
extends ICommonProps {
|
|
6
|
+
item: Values;
|
|
7
|
+
columnName: keyof Values;
|
|
8
|
+
config?: FlexibleTableConfigType<Values>;
|
|
9
|
+
classes: {
|
|
10
|
+
root: string;
|
|
11
|
+
sticky: string;
|
|
12
|
+
second: string;
|
|
13
|
+
};
|
|
14
|
+
isFocusedRow?: boolean;
|
|
15
|
+
isSecond?: boolean;
|
|
16
|
+
isSticky?: boolean;
|
|
17
|
+
isNestedComponentExpanded: boolean;
|
|
18
|
+
isRowNestedComponentExpanded: boolean;
|
|
19
|
+
onSetNestedComponent: (component?: ReactNode) => void;
|
|
19
20
|
}
|
|
20
|
-
declare function TableValue<Values extends Record<string, any>>({
|
|
21
|
+
declare function TableValue<Values extends Record<string, any>>({
|
|
22
|
+
item,
|
|
23
|
+
columnName,
|
|
24
|
+
config,
|
|
25
|
+
classes,
|
|
26
|
+
isFocusedRow,
|
|
27
|
+
isSecond,
|
|
28
|
+
isSticky,
|
|
29
|
+
isNestedComponentExpanded,
|
|
30
|
+
isRowNestedComponentExpanded,
|
|
31
|
+
onSetNestedComponent,
|
|
32
|
+
}: ITableValueProps<Values>): JSX.Element;
|
|
21
33
|
export default TableValue;
|
|
@@ -1,44 +1,50 @@
|
|
|
1
1
|
import { FC, ReactNode } from 'react';
|
|
2
2
|
export declare type ITextAlignment = 'left' | 'center' | 'right';
|
|
3
|
-
export declare type IVerticalAlignment =
|
|
3
|
+
export declare type IVerticalAlignment =
|
|
4
|
+
| 'middle'
|
|
5
|
+
| 'top'
|
|
6
|
+
| 'bottom'
|
|
7
|
+
| 'baseline'
|
|
8
|
+
| 'sub'
|
|
9
|
+
| string;
|
|
4
10
|
export declare type IPosition = 'sticky' | 'absolute' | 'relative' | 'static';
|
|
5
11
|
export declare type ITitleComponent<Value> = FC<{
|
|
6
|
-
|
|
12
|
+
value?: Value;
|
|
7
13
|
}>;
|
|
8
14
|
export declare type IValueComponent<Values, Value> = FC<{
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
+
value?: Value;
|
|
16
|
+
row: Values;
|
|
17
|
+
isFocusedRow?: boolean;
|
|
18
|
+
isNestedComponentExpanded: boolean;
|
|
19
|
+
isRowNestedComponentExpanded: boolean;
|
|
20
|
+
onSetNestedComponent: (component?: ReactNode) => void;
|
|
15
21
|
}>;
|
|
16
22
|
export declare type FlexibleTableConfigType<Values> = {
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
23
|
+
[Key in keyof Values]?: {
|
|
24
|
+
title?: ReactNode;
|
|
25
|
+
titleComponent?: ITitleComponent<any>;
|
|
26
|
+
component?: IValueComponent<Values, Values[Key]>;
|
|
27
|
+
dateFormat?: string;
|
|
28
|
+
minWidth?: string | number;
|
|
29
|
+
width?: string | number;
|
|
30
|
+
maxWidth?: string | number;
|
|
31
|
+
titleAlign?: ITextAlignment;
|
|
32
|
+
cellAlign?: ITextAlignment;
|
|
33
|
+
cellVerticalAlign?: IVerticalAlignment;
|
|
34
|
+
position?: IPosition;
|
|
35
|
+
right?: number;
|
|
36
|
+
left?: number;
|
|
37
|
+
};
|
|
32
38
|
};
|
|
33
39
|
export interface IInfinityScrollConfig {
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
40
|
+
activePage: number;
|
|
41
|
+
totalPages: number;
|
|
42
|
+
isLoading: boolean;
|
|
43
|
+
isLastPage: boolean;
|
|
44
|
+
onInfinityScroll: (skip: number) => void;
|
|
39
45
|
}
|
|
40
46
|
export interface INestedComponent {
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
47
|
+
isOpen: boolean;
|
|
48
|
+
component?: ReactNode;
|
|
49
|
+
cellKey?: string;
|
|
44
50
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { FC } from 'react';
|
|
2
2
|
import { IComplexIcon } from './complexIcons';
|
|
3
3
|
interface IComplexIconBoilerplateProps {
|
|
4
|
-
|
|
4
|
+
type: IComplexIcon;
|
|
5
5
|
}
|
|
6
6
|
declare const ComplexIconBoilerplate: FC<IComplexIconBoilerplateProps>;
|
|
7
7
|
export default ComplexIconBoilerplate;
|
|
@@ -5,7 +5,7 @@ import { IComplexIcon } from './complexIcons';
|
|
|
5
5
|
import { IconStyles } from './Icon.styles';
|
|
6
6
|
export declare type IIconType = ICommonIcon | IComplexIcon;
|
|
7
7
|
export interface IIconProps extends ICommonProps {
|
|
8
|
-
|
|
9
|
-
|
|
8
|
+
tweakStyles?: IconStyles;
|
|
9
|
+
type: IIconType;
|
|
10
10
|
}
|
|
11
11
|
export declare const Icon: React.FC<IIconProps>;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { ComponentStyles } from '../../types';
|
|
2
2
|
export declare const styles: {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
3
|
+
root: {
|
|
4
|
+
display: string;
|
|
5
|
+
alignItems: string;
|
|
6
|
+
};
|
|
7
7
|
};
|
|
8
8
|
export declare type IconStyles = ComponentStyles<typeof styles>;
|
|
@@ -1,9 +1,101 @@
|
|
|
1
1
|
import { SVGAttributes } from 'react';
|
|
2
2
|
export interface ISvgIcon {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
3
|
+
viewBox?: string;
|
|
4
|
+
paths?: Array<SVGAttributes<never>>;
|
|
5
|
+
circles?: Array<SVGAttributes<never>>;
|
|
6
|
+
rects?: Array<SVGAttributes<never>>;
|
|
7
7
|
}
|
|
8
|
-
export declare const icons: Record<
|
|
8
|
+
export declare const icons: Record<
|
|
9
|
+
| 'direction'
|
|
10
|
+
| 'filter'
|
|
11
|
+
| 'search'
|
|
12
|
+
| 'repeat'
|
|
13
|
+
| 'link'
|
|
14
|
+
| 'sort'
|
|
15
|
+
| 'document'
|
|
16
|
+
| 'vendor-service'
|
|
17
|
+
| 'aircraft-takeoff'
|
|
18
|
+
| 'archive'
|
|
19
|
+
| 'arrow'
|
|
20
|
+
| 'arrow-right'
|
|
21
|
+
| 'baggage'
|
|
22
|
+
| 'balloon'
|
|
23
|
+
| 'bluetooth'
|
|
24
|
+
| 'bonus'
|
|
25
|
+
| 'book'
|
|
26
|
+
| 'box'
|
|
27
|
+
| 'business'
|
|
28
|
+
| 'calendar'
|
|
29
|
+
| 'cancel'
|
|
30
|
+
| 'check'
|
|
31
|
+
| 'check-big'
|
|
32
|
+
| 'check-all'
|
|
33
|
+
| 'chevron-down'
|
|
34
|
+
| 'chevron-left'
|
|
35
|
+
| 'chevron-right'
|
|
36
|
+
| 'chevron-up'
|
|
37
|
+
| 'chevron-down-small'
|
|
38
|
+
| 'chevron-left-small'
|
|
39
|
+
| 'chevron-right-small'
|
|
40
|
+
| 'chevron-up-small'
|
|
41
|
+
| 'circle-check'
|
|
42
|
+
| 'close'
|
|
43
|
+
| 'close-large'
|
|
44
|
+
| 'close-window'
|
|
45
|
+
| 'copy'
|
|
46
|
+
| 'copy-outline'
|
|
47
|
+
| 'crane'
|
|
48
|
+
| 'danger'
|
|
49
|
+
| 'download'
|
|
50
|
+
| 'email'
|
|
51
|
+
| 'eye'
|
|
52
|
+
| 'eye-closed'
|
|
53
|
+
| 'female'
|
|
54
|
+
| 'food'
|
|
55
|
+
| 'information'
|
|
56
|
+
| 'insurance'
|
|
57
|
+
| 'list'
|
|
58
|
+
| 'lock'
|
|
59
|
+
| 'lock-open'
|
|
60
|
+
| 'male'
|
|
61
|
+
| 'menu'
|
|
62
|
+
| 'minus'
|
|
63
|
+
| 'burger-menu'
|
|
64
|
+
| 'pencil'
|
|
65
|
+
| 'pin'
|
|
66
|
+
| 'plane'
|
|
67
|
+
| 'plane-circle'
|
|
68
|
+
| 'plus'
|
|
69
|
+
| 'print'
|
|
70
|
+
| 'question'
|
|
71
|
+
| 'refresh'
|
|
72
|
+
| 'rocket'
|
|
73
|
+
| 'round-trip'
|
|
74
|
+
| 'vendor-logo'
|
|
75
|
+
| 'scan'
|
|
76
|
+
| 'send-email'
|
|
77
|
+
| 'settings'
|
|
78
|
+
| 'sign-out'
|
|
79
|
+
| 'size'
|
|
80
|
+
| 'sort-asc'
|
|
81
|
+
| 'sort-desc'
|
|
82
|
+
| 'sort-list-asc'
|
|
83
|
+
| 'sort-list-desc'
|
|
84
|
+
| 'star'
|
|
85
|
+
| 'status-error'
|
|
86
|
+
| 'status-info'
|
|
87
|
+
| 'status-not-ok'
|
|
88
|
+
| 'status-ok'
|
|
89
|
+
| 'status-warning'
|
|
90
|
+
| 'three-circles'
|
|
91
|
+
| 'ticket-revert'
|
|
92
|
+
| 'ticket'
|
|
93
|
+
| 'time'
|
|
94
|
+
| 'trash-can'
|
|
95
|
+
| 'upgrade'
|
|
96
|
+
| 'user'
|
|
97
|
+
| 'user-group'
|
|
98
|
+
| 'voucher',
|
|
99
|
+
ISvgIcon
|
|
100
|
+
>;
|
|
9
101
|
export declare type ICommonIcon = keyof typeof icons;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { FC } from 'react';
|
|
2
2
|
import { Classes } from 'jss';
|
|
3
3
|
interface IChangeButtonProps {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
4
|
+
type: 'plus' | 'minus';
|
|
5
|
+
isButtonDisabled: boolean;
|
|
6
|
+
isInvalid?: boolean;
|
|
7
|
+
classes: Classes<'button' | 'disabledButton' | 'errorButton'>;
|
|
8
|
+
onClick: () => void;
|
|
9
9
|
}
|
|
10
10
|
export declare const ChangeButton: FC<IChangeButtonProps>;
|
|
11
11
|
export {};
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { FC } from 'react';
|
|
2
2
|
import { INumberInputProps } from '../NumberInput';
|
|
3
3
|
import { IncrementInputStyles } from './IncrementInput.styles';
|
|
4
|
-
export interface IIncrementInputProps
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
export interface IIncrementInputProps
|
|
5
|
+
extends Omit<INumberInputProps, 'canBeFloat' | 'precision'> {
|
|
6
|
+
tweakStyles?: IncrementInputStyles;
|
|
7
|
+
step?: number;
|
|
7
8
|
}
|
|
8
9
|
export declare const IncrementInput: FC<IIncrementInputProps>;
|
|
@@ -2,62 +2,62 @@ import { ComponentStyles } from '../../types';
|
|
|
2
2
|
export declare const BUTTONS_WIDTH = 36;
|
|
3
3
|
export declare const BUTTONS_GAP = 2;
|
|
4
4
|
export declare const styles: {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
5
|
+
root: {
|
|
6
|
+
display: string;
|
|
7
|
+
alignItems: string;
|
|
8
|
+
position: string;
|
|
9
|
+
};
|
|
10
|
+
buttons: {
|
|
11
|
+
display: string;
|
|
12
|
+
flexDirection: string;
|
|
13
|
+
width: number;
|
|
14
|
+
position: string;
|
|
15
|
+
right: number;
|
|
16
|
+
top: number;
|
|
17
|
+
bottom: number;
|
|
18
|
+
zIndex: number;
|
|
19
|
+
};
|
|
20
|
+
button: {
|
|
21
|
+
width: string;
|
|
22
|
+
height: number;
|
|
23
|
+
border: string;
|
|
24
|
+
outline: string;
|
|
25
|
+
backgroundColor: '#f6f8fc';
|
|
26
|
+
transition: string;
|
|
27
|
+
color: '#505f79';
|
|
28
|
+
cursor: string;
|
|
29
|
+
display: string;
|
|
30
|
+
alignItems: string;
|
|
31
|
+
justifyContent: string;
|
|
32
|
+
padding: number[];
|
|
33
|
+
'&:hover, &:focus': {
|
|
34
|
+
backgroundColor: '#dde3ed';
|
|
9
35
|
};
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
flexDirection: string;
|
|
13
|
-
width: number;
|
|
14
|
-
position: string;
|
|
15
|
-
right: number;
|
|
16
|
-
top: number;
|
|
17
|
-
bottom: number;
|
|
18
|
-
zIndex: number;
|
|
36
|
+
'&:active': {
|
|
37
|
+
backgroundColor: '#95a0b3';
|
|
19
38
|
};
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
height: number;
|
|
23
|
-
border: string;
|
|
24
|
-
outline: string;
|
|
25
|
-
backgroundColor: "#f6f8fc";
|
|
26
|
-
transition: string;
|
|
27
|
-
color: "#505f79";
|
|
28
|
-
cursor: string;
|
|
29
|
-
display: string;
|
|
30
|
-
alignItems: string;
|
|
31
|
-
justifyContent: string;
|
|
32
|
-
padding: number[];
|
|
33
|
-
'&:hover, &:focus': {
|
|
34
|
-
backgroundColor: "#dde3ed";
|
|
35
|
-
};
|
|
36
|
-
'&:active': {
|
|
37
|
-
backgroundColor: "#95a0b3";
|
|
38
|
-
};
|
|
39
|
-
'&:first-child': {
|
|
40
|
-
marginBottom: number;
|
|
41
|
-
};
|
|
39
|
+
'&:first-child': {
|
|
40
|
+
marginBottom: number;
|
|
42
41
|
};
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
42
|
+
};
|
|
43
|
+
disabledButton: {
|
|
44
|
+
backgroundColor: '#ffffff';
|
|
45
|
+
color: '#95a0b3';
|
|
46
|
+
cursor: string;
|
|
47
|
+
'&:hover': {
|
|
48
|
+
backgroundColor: '#ffffff';
|
|
50
49
|
};
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
controls: {
|
|
59
|
-
paddingRight: number;
|
|
60
|
-
};
|
|
50
|
+
};
|
|
51
|
+
errorButton: {};
|
|
52
|
+
tweakInput: {
|
|
53
|
+
input: {
|
|
54
|
+
'&:not($withControls)': {
|
|
55
|
+
paddingRight: number;
|
|
56
|
+
};
|
|
61
57
|
};
|
|
58
|
+
controls: {
|
|
59
|
+
paddingRight: number;
|
|
60
|
+
};
|
|
61
|
+
};
|
|
62
62
|
};
|
|
63
63
|
export declare type IncrementInputStyles = ComponentStyles<typeof styles>;
|
|
@@ -5,41 +5,52 @@ import { ICommonProps } from '../../types';
|
|
|
5
5
|
import { InputStyles } from './Input.styles';
|
|
6
6
|
export declare const DEFAULT_SIZE = 6;
|
|
7
7
|
export interface IInputProps extends ICommonProps {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
8
|
+
tweakStyles?: InputStyles;
|
|
9
|
+
value?: string;
|
|
10
|
+
label?: string;
|
|
11
|
+
placeholder?: string;
|
|
12
|
+
type?: 'text' | 'password' | 'email' | 'number';
|
|
13
|
+
isDisabled?: boolean;
|
|
14
|
+
hasFloatingLabel?: boolean;
|
|
15
|
+
isReadonly?: boolean;
|
|
16
|
+
isInvalid?: boolean;
|
|
17
|
+
isActive?: boolean;
|
|
18
|
+
isClearable?: boolean;
|
|
19
|
+
infoMessage?: string;
|
|
20
|
+
errorMessage?: string;
|
|
21
|
+
errorPosition?: 'top' | 'bottom';
|
|
22
|
+
inlineStyle?:
|
|
23
|
+
| 'top'
|
|
24
|
+
| 'bottom'
|
|
25
|
+
| 'top-left'
|
|
26
|
+
| 'top-right'
|
|
27
|
+
| 'bottom-left'
|
|
28
|
+
| 'bottom-right'
|
|
29
|
+
| 'left'
|
|
30
|
+
| 'right'
|
|
31
|
+
| 'middle';
|
|
32
|
+
border?: 'top' | 'bottom' | 'left' | 'right';
|
|
33
|
+
isRequired?: boolean;
|
|
34
|
+
isLoading?: boolean;
|
|
35
|
+
isAutoSizeable?: boolean;
|
|
36
|
+
defaultSize?: number;
|
|
37
|
+
iconType?: IIconProps['type'];
|
|
38
|
+
units?: string;
|
|
39
|
+
name?: string;
|
|
40
|
+
mask?: ReactInputMaskProps['mask'];
|
|
41
|
+
maskPlaceholder?: ReactInputMaskProps['maskPlaceholder'];
|
|
42
|
+
hasRequiredLabel?: boolean;
|
|
43
|
+
shouldFocusOnMount?: boolean;
|
|
44
|
+
maxLength?: number;
|
|
45
|
+
testId?: string;
|
|
46
|
+
tabIndex?: number;
|
|
47
|
+
onChange(value: string, event: FormEvent<HTMLInputElement>): void;
|
|
48
|
+
onFocus?(event: FocusEvent<HTMLInputElement>): void;
|
|
49
|
+
onBlur?(event: FocusEvent<HTMLInputElement>): void;
|
|
50
|
+
onPaste?(event: ClipboardEvent<HTMLInputElement>): void;
|
|
51
|
+
onIconClick?(): void;
|
|
52
|
+
onKeyDown?(event: KeyboardEvent<HTMLInputElement>): void;
|
|
44
53
|
}
|
|
45
|
-
export declare const Input: import(
|
|
54
|
+
export declare const Input: import('react').ForwardRefExoticComponent<
|
|
55
|
+
IInputProps & import('react').RefAttributes<HTMLInputElement>
|
|
56
|
+
>;
|