@true-engineering/true-react-common-ui-kit 3.41.0 → 3.42.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/LICENSE +201 -201
- package/README.md +7 -0
- package/dist/components/FiltersPane/FiltersPane.stories.d.ts +2 -1
- package/dist/components/FiltersPane/components/FilterWrapper/FilterWrapper.styles.d.ts +1 -1
- package/dist/components/FiltersPane/components/FiltersPaneSearch/FiltersPaneSearch.styles.d.ts +1 -1
- package/dist/components/FiltersPane/types.d.ts +1 -0
- package/dist/components/Input/Input.styles.d.ts +1 -1
- package/dist/components/SearchInput/SearchInput.stories.d.ts +1 -1
- package/dist/components/Select/Select.styles.d.ts +3 -3
- package/dist/true-react-common-ui-kit.js +74 -59
- package/dist/true-react-common-ui-kit.js.map +1 -1
- package/dist/true-react-common-ui-kit.umd.cjs +74 -59
- package/dist/true-react-common-ui-kit.umd.cjs.map +1 -1
- package/package.json +99 -98
- package/src/components/AccountInfo/AccountInfo.stories.tsx +32 -32
- package/src/components/AccountInfo/AccountInfo.tsx +80 -80
- package/src/components/AddButton/AddButton.stories.tsx +21 -21
- package/src/components/AddButton/AddButton.tsx +52 -52
- package/src/components/Colors/Colors.stories.tsx +7 -7
- package/src/components/DateInput/DateInput.tsx +90 -90
- package/src/components/DateInput/constants.ts +2 -2
- package/src/components/Description/Description.stories.tsx +27 -27
- package/src/components/Description/Description.tsx +61 -61
- package/src/components/FiltersPane/FiltersPane.stories.tsx +12 -0
- package/src/components/FiltersPane/components/FilterValueView/FilterValueView.tsx +166 -166
- package/src/components/FiltersPane/components/FilterWithDates/FilterWithDates.tsx +210 -210
- package/src/components/FiltersPane/components/FilterWithPeriod/FilterWithPeriod.tsx +177 -177
- package/src/components/FiltersPane/components/FilterWrapper/FilterWrapper.styles.ts +4 -0
- package/src/components/FiltersPane/components/FilterWrapper/FilterWrapper.tsx +20 -2
- package/src/components/FiltersPane/types.ts +1 -0
- package/src/components/Flag/Flag.stories.tsx +29 -29
- package/src/components/Flag/Flag.tsx +26 -26
- package/src/components/Flag/augment.d.ts +1 -1
- package/src/components/FlexibleTable/components/FlexibleTableRow/FlexibleTableRow.styles.ts +25 -25
- package/src/components/Icon/Icon.stories.tsx +86 -86
- package/src/components/Icon/complexIcons/augment.d.ts +1 -1
- package/src/components/Icon/complexIcons/avatarGreen.svg +57 -57
- package/src/components/Icon/complexIcons/index.ts +1 -1
- package/src/components/IncrementInput/IncrementInput.tsx +105 -105
- package/src/components/Input/types.ts +32 -32
- package/src/components/Modal/Modal.stories.tsx +105 -105
- package/src/components/MoreMenu/MoreMenu.tsx +93 -93
- package/src/components/MultiSelect/MultiSelect.stories.tsx +46 -46
- package/src/components/MultiSelect/MultiSelect.tsx +106 -106
- package/src/components/MultiSelect/components/MultiSelectInput/MultiSelectInput.tsx +53 -53
- package/src/components/Notification/Notification.stories.tsx +55 -55
- package/src/components/Notification/Notification.styles.ts +57 -57
- package/src/components/Notification/Notification.tsx +77 -77
- package/src/components/Notification/types.ts +1 -1
- package/src/components/NumberInput/NumberInput.tsx +137 -137
- package/src/components/NumberInput/index.ts +1 -1
- package/src/components/PhoneInput/PhoneInput.tsx +214 -214
- package/src/components/PhoneInput/components/PhoneInputCountryList/PhoneInputCountryList.tsx +155 -155
- package/src/components/PhoneInput/types.ts +16 -16
- package/src/components/RadioButton/RadioButton.stories.tsx +46 -46
- package/src/components/RadioButton/RadioButton.tsx +57 -57
- package/src/components/ScrollIntoViewIfNeeded/index.ts +1 -1
- package/src/components/Select/constants.ts +2 -2
- package/src/components/Select/types.ts +1 -1
- package/src/components/Selector/Selector.stories.tsx +62 -62
- package/src/components/Selector/Selector.tsx +115 -115
- package/src/components/Selector/index.ts +2 -2
- package/src/components/Selector/types.ts +12 -12
- package/src/components/Skeleton/Skeleton.stories.tsx +19 -19
- package/src/components/SmartInput/SmartInput.stories.tsx +52 -52
- package/src/components/SmartInput/SmartInput.tsx +116 -116
- package/src/components/SmartInput/constants.ts +91 -91
- package/src/components/SmartInput/helpers.ts +26 -26
- package/src/components/SmartInput/types.ts +18 -18
- package/src/components/Status/Status.stories.tsx +73 -73
- package/src/components/Status/Status.styles.ts +143 -143
- package/src/components/Status/Status.tsx +49 -49
- package/src/components/Status/constants.ts +11 -11
- package/src/components/Status/index.ts +3 -3
- package/src/components/Status/types.ts +5 -5
- package/src/components/Switch/Switch.stories.tsx +40 -40
- package/src/components/Switch/Switch.tsx +75 -75
- package/src/components/TextWithInfo/TextWithInfo.stories.tsx +53 -53
- package/src/components/TextWithInfo/TextWithInfo.tsx +62 -62
- package/src/components/TextWithTooltip/TextWithTooltip.stories.tsx +58 -58
- package/src/components/TextWithTooltip/TextWithTooltip.tsx +156 -156
- package/src/components/ThemedPreloader/ThemedPreloader.stories.tsx +41 -41
- package/src/components/ThemedPreloader/ThemedPreloader.tsx +54 -54
- package/src/components/ThemedPreloader/components/DefaultPreloader/index.ts +1 -1
- package/src/components/Toaster/Toaster.stories.tsx +30 -30
- package/src/components/Tooltip/Tooltip.stories.tsx +19 -19
- package/src/components/Tooltip/Tooltip.tsx +35 -35
- package/src/components/Tooltip/types.ts +1 -1
- package/src/components/WithPopup/WithPopup.styles.ts +45 -45
- package/src/components/WithPopup/WithPopup.tsx +184 -184
- package/src/components/WithTooltip/WithTooltip.stories.tsx +56 -56
- package/src/components/WithTooltip/WithTooltip.styles.ts +7 -7
- package/src/components/WithTooltip/WithTooltip.tsx +67 -67
- package/src/components/WithTooltip/index.ts +2 -2
- package/src/components/index.ts +46 -46
- package/src/helpers/popper-helpers.ts +17 -17
- package/src/hooks/use-dropdown.ts +84 -84
- package/src/hooks/use-is-mounted.ts +15 -15
- package/src/theme/helpers.ts +76 -76
- package/src/theme/types.ts +158 -158
- package/src/vite-env.d.ts +1 -1
package/src/theme/types.ts
CHANGED
|
@@ -1,158 +1,158 @@
|
|
|
1
|
-
import { Styles } from 'react-jss';
|
|
2
|
-
import { Classes, JssValue } from 'jss';
|
|
3
|
-
import type {
|
|
4
|
-
IAccountInfoStyles,
|
|
5
|
-
IAddButtonStyles,
|
|
6
|
-
IButtonStyles,
|
|
7
|
-
ICheckboxStyles,
|
|
8
|
-
ICloseButtonStyles,
|
|
9
|
-
ICommonIcon,
|
|
10
|
-
IComplexIcon,
|
|
11
|
-
ICssBaselineStyles,
|
|
12
|
-
IDateInputStyles,
|
|
13
|
-
IDatePickerHeaderStyles,
|
|
14
|
-
IDatePickerStyles,
|
|
15
|
-
IDescriptionStyles,
|
|
16
|
-
IDotsPreloaderStyles,
|
|
17
|
-
IFilterIntervalStyles,
|
|
18
|
-
IFilterSelectStyles,
|
|
19
|
-
IFiltersPaneSearchStyles,
|
|
20
|
-
IFiltersPaneStyles,
|
|
21
|
-
IFilterValueViewStyles,
|
|
22
|
-
IFilterWithDatesStyles,
|
|
23
|
-
IFilterWithPeriodStyles,
|
|
24
|
-
IFilterWrapperStyles,
|
|
25
|
-
IFlagStyles,
|
|
26
|
-
IFlexibleTableCellStyles,
|
|
27
|
-
IFlexibleTableRowStyles,
|
|
28
|
-
IFlexibleTableStyles,
|
|
29
|
-
IIconButtonStyles,
|
|
30
|
-
IIconStyles,
|
|
31
|
-
IIncrementInputStyles,
|
|
32
|
-
IInputStyles,
|
|
33
|
-
IListItemStyles,
|
|
34
|
-
IListStyles,
|
|
35
|
-
IModalStyles,
|
|
36
|
-
IMoreMenuStyles,
|
|
37
|
-
IMultiSelectInputStyles,
|
|
38
|
-
IMultiSelectListStyles,
|
|
39
|
-
IMultiSelectStyles,
|
|
40
|
-
INotificationStyles,
|
|
41
|
-
IPhoneInputCountryListStyles,
|
|
42
|
-
IPhoneInputStyles,
|
|
43
|
-
IPreloaderSvgType,
|
|
44
|
-
IRadioButtonStyles,
|
|
45
|
-
ISearchInputStyles,
|
|
46
|
-
ISelectListStyles,
|
|
47
|
-
ISelectorStyles,
|
|
48
|
-
ISelectStyles,
|
|
49
|
-
ISkeletonStyles,
|
|
50
|
-
IStatusStyles,
|
|
51
|
-
ISvgIcon,
|
|
52
|
-
ISvgPreloaderStyles,
|
|
53
|
-
ISwitchStyles,
|
|
54
|
-
ITextAreaStyles,
|
|
55
|
-
ITextButtonStyles,
|
|
56
|
-
ITextWithInfoStyles,
|
|
57
|
-
ITextWithTooltipStyles,
|
|
58
|
-
IThemedPreloaderStyles,
|
|
59
|
-
IToasterStyles,
|
|
60
|
-
ITooltipStyles,
|
|
61
|
-
IWithPopupStyles,
|
|
62
|
-
INewMoreMenuStyles,
|
|
63
|
-
IFileInputStyles,
|
|
64
|
-
IFileItemStyles,
|
|
65
|
-
IWithTooltipStyles,
|
|
66
|
-
} from '../components';
|
|
67
|
-
|
|
68
|
-
export type IStyles<C extends string, P> = Styles<C, P, Partial<Styles<C, P>>>;
|
|
69
|
-
|
|
70
|
-
export type IUseStyles<C extends string, P = unknown> = (
|
|
71
|
-
data?: P & { theme?: Partial<Styles<C, P>> },
|
|
72
|
-
) => Classes<C>;
|
|
73
|
-
|
|
74
|
-
export type ITweakStyles<
|
|
75
|
-
StyleCreator,
|
|
76
|
-
ChildTweakStyles = unknown,
|
|
77
|
-
> = StyleCreator extends IUseStyles<infer C, infer P>
|
|
78
|
-
? Partial<Styles<C, P>> & Partial<ChildTweakStyles>
|
|
79
|
-
: never;
|
|
80
|
-
|
|
81
|
-
export interface IComponentStyles {
|
|
82
|
-
AccountInfo: IAccountInfoStyles;
|
|
83
|
-
AddButton: IAddButtonStyles;
|
|
84
|
-
Button: IButtonStyles;
|
|
85
|
-
CloseButton: ICloseButtonStyles;
|
|
86
|
-
Checkbox: ICheckboxStyles;
|
|
87
|
-
CssBaseline: ICssBaselineStyles;
|
|
88
|
-
DateInput: IDateInputStyles;
|
|
89
|
-
DatePicker: IDatePickerStyles;
|
|
90
|
-
DatePickerHeader: IDatePickerHeaderStyles;
|
|
91
|
-
Description: IDescriptionStyles;
|
|
92
|
-
DotsPreloader: IDotsPreloaderStyles;
|
|
93
|
-
SvgPreloader: ISvgPreloaderStyles;
|
|
94
|
-
FileInput: IFileInputStyles;
|
|
95
|
-
FileItem: IFileItemStyles;
|
|
96
|
-
FilterValueView: IFilterValueViewStyles;
|
|
97
|
-
FiltersPane: IFiltersPaneStyles;
|
|
98
|
-
FilterInterval: IFilterIntervalStyles;
|
|
99
|
-
FilterSelect: IFilterSelectStyles;
|
|
100
|
-
FilterWithDates: IFilterWithDatesStyles;
|
|
101
|
-
FilterWithPeriod: IFilterWithPeriodStyles;
|
|
102
|
-
FilterWrapper: IFilterWrapperStyles;
|
|
103
|
-
FiltersPaneSearch: IFiltersPaneSearchStyles;
|
|
104
|
-
Flag: IFlagStyles;
|
|
105
|
-
FlexibleTable: IFlexibleTableStyles;
|
|
106
|
-
FlexibleTableRow: IFlexibleTableRowStyles;
|
|
107
|
-
FlexibleTableCell: IFlexibleTableCellStyles;
|
|
108
|
-
Icon: IIconStyles;
|
|
109
|
-
IconButton: IIconButtonStyles;
|
|
110
|
-
IncrementInput: IIncrementInputStyles;
|
|
111
|
-
Input: IInputStyles;
|
|
112
|
-
List: IListStyles;
|
|
113
|
-
ListItem: IListItemStyles;
|
|
114
|
-
Modal: IModalStyles;
|
|
115
|
-
MoreMenu: IMoreMenuStyles;
|
|
116
|
-
MultiSelect: IMultiSelectStyles;
|
|
117
|
-
MultiSelectInput: IMultiSelectInputStyles;
|
|
118
|
-
MultiSelectList: IMultiSelectListStyles;
|
|
119
|
-
Notification: INotificationStyles;
|
|
120
|
-
PhoneInput: IPhoneInputStyles;
|
|
121
|
-
PhoneInputCountryList: IPhoneInputCountryListStyles;
|
|
122
|
-
RadioButton: IRadioButtonStyles;
|
|
123
|
-
SearchInput: ISearchInputStyles;
|
|
124
|
-
Select: ISelectStyles;
|
|
125
|
-
SelectList: ISelectListStyles;
|
|
126
|
-
Selector: ISelectorStyles;
|
|
127
|
-
Skeleton: ISkeletonStyles;
|
|
128
|
-
Switch: ISwitchStyles;
|
|
129
|
-
TextButton: ITextButtonStyles;
|
|
130
|
-
TextArea: ITextAreaStyles;
|
|
131
|
-
TextWithInfo: ITextWithInfoStyles;
|
|
132
|
-
TextWithTooltip: ITextWithTooltipStyles;
|
|
133
|
-
Status: IStatusStyles;
|
|
134
|
-
ThemedPreloader: IThemedPreloaderStyles;
|
|
135
|
-
Tooltip: ITooltipStyles;
|
|
136
|
-
Toaster: IToasterStyles;
|
|
137
|
-
WithPopup: IWithPopupStyles;
|
|
138
|
-
NewMoreMenu: INewMoreMenuStyles;
|
|
139
|
-
WithTooltip: IWithTooltipStyles;
|
|
140
|
-
}
|
|
141
|
-
|
|
142
|
-
export type IComponentName = keyof IComponentStyles;
|
|
143
|
-
|
|
144
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
145
|
-
export type IUiKitAnimations = Record<string, any>;
|
|
146
|
-
export type IUiKitHelpers = Record<string, Styles | (() => Styles)>;
|
|
147
|
-
|
|
148
|
-
export interface IUiKitTheme {
|
|
149
|
-
components?: Partial<IComponentStyles>;
|
|
150
|
-
icons?: Partial<Record<ICommonIcon, ISvgIcon>>;
|
|
151
|
-
complexIcons?: Partial<Record<IComplexIcon, string>>;
|
|
152
|
-
preloaders?: Partial<Record<IPreloaderSvgType, string>>; // TODO: заменить string
|
|
153
|
-
animations?: IUiKitAnimations;
|
|
154
|
-
colors?: Record<string, string>;
|
|
155
|
-
dimensions?: Record<string, number>;
|
|
156
|
-
boxShadows?: Record<string, JssValue>;
|
|
157
|
-
helpers?: IUiKitHelpers;
|
|
158
|
-
}
|
|
1
|
+
import { Styles } from 'react-jss';
|
|
2
|
+
import { Classes, JssValue } from 'jss';
|
|
3
|
+
import type {
|
|
4
|
+
IAccountInfoStyles,
|
|
5
|
+
IAddButtonStyles,
|
|
6
|
+
IButtonStyles,
|
|
7
|
+
ICheckboxStyles,
|
|
8
|
+
ICloseButtonStyles,
|
|
9
|
+
ICommonIcon,
|
|
10
|
+
IComplexIcon,
|
|
11
|
+
ICssBaselineStyles,
|
|
12
|
+
IDateInputStyles,
|
|
13
|
+
IDatePickerHeaderStyles,
|
|
14
|
+
IDatePickerStyles,
|
|
15
|
+
IDescriptionStyles,
|
|
16
|
+
IDotsPreloaderStyles,
|
|
17
|
+
IFilterIntervalStyles,
|
|
18
|
+
IFilterSelectStyles,
|
|
19
|
+
IFiltersPaneSearchStyles,
|
|
20
|
+
IFiltersPaneStyles,
|
|
21
|
+
IFilterValueViewStyles,
|
|
22
|
+
IFilterWithDatesStyles,
|
|
23
|
+
IFilterWithPeriodStyles,
|
|
24
|
+
IFilterWrapperStyles,
|
|
25
|
+
IFlagStyles,
|
|
26
|
+
IFlexibleTableCellStyles,
|
|
27
|
+
IFlexibleTableRowStyles,
|
|
28
|
+
IFlexibleTableStyles,
|
|
29
|
+
IIconButtonStyles,
|
|
30
|
+
IIconStyles,
|
|
31
|
+
IIncrementInputStyles,
|
|
32
|
+
IInputStyles,
|
|
33
|
+
IListItemStyles,
|
|
34
|
+
IListStyles,
|
|
35
|
+
IModalStyles,
|
|
36
|
+
IMoreMenuStyles,
|
|
37
|
+
IMultiSelectInputStyles,
|
|
38
|
+
IMultiSelectListStyles,
|
|
39
|
+
IMultiSelectStyles,
|
|
40
|
+
INotificationStyles,
|
|
41
|
+
IPhoneInputCountryListStyles,
|
|
42
|
+
IPhoneInputStyles,
|
|
43
|
+
IPreloaderSvgType,
|
|
44
|
+
IRadioButtonStyles,
|
|
45
|
+
ISearchInputStyles,
|
|
46
|
+
ISelectListStyles,
|
|
47
|
+
ISelectorStyles,
|
|
48
|
+
ISelectStyles,
|
|
49
|
+
ISkeletonStyles,
|
|
50
|
+
IStatusStyles,
|
|
51
|
+
ISvgIcon,
|
|
52
|
+
ISvgPreloaderStyles,
|
|
53
|
+
ISwitchStyles,
|
|
54
|
+
ITextAreaStyles,
|
|
55
|
+
ITextButtonStyles,
|
|
56
|
+
ITextWithInfoStyles,
|
|
57
|
+
ITextWithTooltipStyles,
|
|
58
|
+
IThemedPreloaderStyles,
|
|
59
|
+
IToasterStyles,
|
|
60
|
+
ITooltipStyles,
|
|
61
|
+
IWithPopupStyles,
|
|
62
|
+
INewMoreMenuStyles,
|
|
63
|
+
IFileInputStyles,
|
|
64
|
+
IFileItemStyles,
|
|
65
|
+
IWithTooltipStyles,
|
|
66
|
+
} from '../components';
|
|
67
|
+
|
|
68
|
+
export type IStyles<C extends string, P> = Styles<C, P, Partial<Styles<C, P>>>;
|
|
69
|
+
|
|
70
|
+
export type IUseStyles<C extends string, P = unknown> = (
|
|
71
|
+
data?: P & { theme?: Partial<Styles<C, P>> },
|
|
72
|
+
) => Classes<C>;
|
|
73
|
+
|
|
74
|
+
export type ITweakStyles<
|
|
75
|
+
StyleCreator,
|
|
76
|
+
ChildTweakStyles = unknown,
|
|
77
|
+
> = StyleCreator extends IUseStyles<infer C, infer P>
|
|
78
|
+
? Partial<Styles<C, P>> & Partial<ChildTweakStyles>
|
|
79
|
+
: never;
|
|
80
|
+
|
|
81
|
+
export interface IComponentStyles {
|
|
82
|
+
AccountInfo: IAccountInfoStyles;
|
|
83
|
+
AddButton: IAddButtonStyles;
|
|
84
|
+
Button: IButtonStyles;
|
|
85
|
+
CloseButton: ICloseButtonStyles;
|
|
86
|
+
Checkbox: ICheckboxStyles;
|
|
87
|
+
CssBaseline: ICssBaselineStyles;
|
|
88
|
+
DateInput: IDateInputStyles;
|
|
89
|
+
DatePicker: IDatePickerStyles;
|
|
90
|
+
DatePickerHeader: IDatePickerHeaderStyles;
|
|
91
|
+
Description: IDescriptionStyles;
|
|
92
|
+
DotsPreloader: IDotsPreloaderStyles;
|
|
93
|
+
SvgPreloader: ISvgPreloaderStyles;
|
|
94
|
+
FileInput: IFileInputStyles;
|
|
95
|
+
FileItem: IFileItemStyles;
|
|
96
|
+
FilterValueView: IFilterValueViewStyles;
|
|
97
|
+
FiltersPane: IFiltersPaneStyles;
|
|
98
|
+
FilterInterval: IFilterIntervalStyles;
|
|
99
|
+
FilterSelect: IFilterSelectStyles;
|
|
100
|
+
FilterWithDates: IFilterWithDatesStyles;
|
|
101
|
+
FilterWithPeriod: IFilterWithPeriodStyles;
|
|
102
|
+
FilterWrapper: IFilterWrapperStyles;
|
|
103
|
+
FiltersPaneSearch: IFiltersPaneSearchStyles;
|
|
104
|
+
Flag: IFlagStyles;
|
|
105
|
+
FlexibleTable: IFlexibleTableStyles;
|
|
106
|
+
FlexibleTableRow: IFlexibleTableRowStyles;
|
|
107
|
+
FlexibleTableCell: IFlexibleTableCellStyles;
|
|
108
|
+
Icon: IIconStyles;
|
|
109
|
+
IconButton: IIconButtonStyles;
|
|
110
|
+
IncrementInput: IIncrementInputStyles;
|
|
111
|
+
Input: IInputStyles;
|
|
112
|
+
List: IListStyles;
|
|
113
|
+
ListItem: IListItemStyles;
|
|
114
|
+
Modal: IModalStyles;
|
|
115
|
+
MoreMenu: IMoreMenuStyles;
|
|
116
|
+
MultiSelect: IMultiSelectStyles;
|
|
117
|
+
MultiSelectInput: IMultiSelectInputStyles;
|
|
118
|
+
MultiSelectList: IMultiSelectListStyles;
|
|
119
|
+
Notification: INotificationStyles;
|
|
120
|
+
PhoneInput: IPhoneInputStyles;
|
|
121
|
+
PhoneInputCountryList: IPhoneInputCountryListStyles;
|
|
122
|
+
RadioButton: IRadioButtonStyles;
|
|
123
|
+
SearchInput: ISearchInputStyles;
|
|
124
|
+
Select: ISelectStyles;
|
|
125
|
+
SelectList: ISelectListStyles;
|
|
126
|
+
Selector: ISelectorStyles;
|
|
127
|
+
Skeleton: ISkeletonStyles;
|
|
128
|
+
Switch: ISwitchStyles;
|
|
129
|
+
TextButton: ITextButtonStyles;
|
|
130
|
+
TextArea: ITextAreaStyles;
|
|
131
|
+
TextWithInfo: ITextWithInfoStyles;
|
|
132
|
+
TextWithTooltip: ITextWithTooltipStyles;
|
|
133
|
+
Status: IStatusStyles;
|
|
134
|
+
ThemedPreloader: IThemedPreloaderStyles;
|
|
135
|
+
Tooltip: ITooltipStyles;
|
|
136
|
+
Toaster: IToasterStyles;
|
|
137
|
+
WithPopup: IWithPopupStyles;
|
|
138
|
+
NewMoreMenu: INewMoreMenuStyles;
|
|
139
|
+
WithTooltip: IWithTooltipStyles;
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
export type IComponentName = keyof IComponentStyles;
|
|
143
|
+
|
|
144
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
145
|
+
export type IUiKitAnimations = Record<string, any>;
|
|
146
|
+
export type IUiKitHelpers = Record<string, Styles | (() => Styles)>;
|
|
147
|
+
|
|
148
|
+
export interface IUiKitTheme {
|
|
149
|
+
components?: Partial<IComponentStyles>;
|
|
150
|
+
icons?: Partial<Record<ICommonIcon, ISvgIcon>>;
|
|
151
|
+
complexIcons?: Partial<Record<IComplexIcon, string>>;
|
|
152
|
+
preloaders?: Partial<Record<IPreloaderSvgType, string>>; // TODO: заменить string
|
|
153
|
+
animations?: IUiKitAnimations;
|
|
154
|
+
colors?: Record<string, string>;
|
|
155
|
+
dimensions?: Record<string, number>;
|
|
156
|
+
boxShadows?: Record<string, JssValue>;
|
|
157
|
+
helpers?: IUiKitHelpers;
|
|
158
|
+
}
|
package/src/vite-env.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
/// <reference types="vite/client" />
|
|
1
|
+
/// <reference types="vite/client" />
|