indicator-ui 0.0.216 → 0.0.218
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.css.map +1 -1
- package/dist/index.js +25 -31
- package/dist/index.js.map +1 -1
- package/dist/scss/ui/Buttons/styles/mixins/index.scss +0 -1
- package/dist/types/src/ui/Buttons/types/ButtonTypes.d.ts +0 -26
- package/dist/types/src/ui/Buttons/ui/Button.d.ts +1 -1
- package/dist/types/src/ui/InputFields/SelectField/types/SelectFieldTypes.d.ts +2 -0
- package/package.json +4 -4
- package/dist/scss/ui/Buttons/styles/mixins/button.scss +0 -84
|
@@ -1,31 +1,6 @@
|
|
|
1
1
|
import React, { ReactElement, ReactNode } from "react";
|
|
2
2
|
export type ButtonSizeType = 'small' | 'medium' | 'large' | 'ultra';
|
|
3
3
|
export type ButtonHierarchyType = 'primary' | 'secondary-color' | 'secondary-gray' | 'tertiary-white' | 'tertiary-color' | 'tertiary-gray' | 'link-color' | 'link-black' | 'link-gray' | 'tab-active' | 'tab';
|
|
4
|
-
export type ButtonClassNameType = {
|
|
5
|
-
button?: string;
|
|
6
|
-
icon?: string;
|
|
7
|
-
text?: string;
|
|
8
|
-
primary?: string;
|
|
9
|
-
secondaryColor?: string;
|
|
10
|
-
secondaryGray?: string;
|
|
11
|
-
tertiaryWhite?: string;
|
|
12
|
-
tertiaryColor?: string;
|
|
13
|
-
tertiaryGray?: string;
|
|
14
|
-
linkColor?: string;
|
|
15
|
-
linkBlack?: string;
|
|
16
|
-
linkGray?: string;
|
|
17
|
-
tabActive?: string;
|
|
18
|
-
tab?: string;
|
|
19
|
-
warning?: string;
|
|
20
|
-
small?: string;
|
|
21
|
-
medium?: string;
|
|
22
|
-
large?: string;
|
|
23
|
-
ultra?: string;
|
|
24
|
-
widthFill?: string;
|
|
25
|
-
widthHug?: string;
|
|
26
|
-
heightFill?: string;
|
|
27
|
-
heightHug?: string;
|
|
28
|
-
};
|
|
29
4
|
/**
|
|
30
5
|
* Компонент кнопки
|
|
31
6
|
*/
|
|
@@ -55,7 +30,6 @@ export type ButtonPropsType = Omit<React.ButtonHTMLAttributes<HTMLButtonElement>
|
|
|
55
30
|
} & {
|
|
56
31
|
[key: string]: any;
|
|
57
32
|
}>;
|
|
58
|
-
className?: ButtonClassNameType;
|
|
59
33
|
/** Дополнительные имена стилей */
|
|
60
34
|
additionStyles?: string | string[];
|
|
61
35
|
};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { ButtonPropsType } from '../types';
|
|
2
|
-
export declare function Button({ children, text, iconLeft, iconRight, hierarchy, warning, size, width, height, additionStyles, customComponent,
|
|
2
|
+
export declare function Button({ children, text, iconLeft, iconRight, hierarchy, warning, size, width, height, additionStyles, customComponent, disabled, ...props }: ButtonPropsType): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import React, { ReactElement } from "react";
|
|
2
2
|
import { FieldsBasePropsType } from '../../FieldsBase';
|
|
3
3
|
import { SelectFieldOptionsOwnerItemPropsType } from "./SelectFieldOptionsItemTypes";
|
|
4
|
+
import { DropdownItemPropsType } from "../../../../ui";
|
|
4
5
|
export type SelectFieldOptionsItemType = {
|
|
5
6
|
value: any;
|
|
6
7
|
label?: string;
|
|
8
|
+
dropdownItemProps?: Omit<DropdownItemPropsType, 'onClick'>;
|
|
7
9
|
component?: ReactElement<SelectFieldOptionsOwnerItemPropsType>;
|
|
8
10
|
};
|
|
9
11
|
export type SelectFieldOptionsType = SelectFieldOptionsItemType[];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "indicator-ui",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.218",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"types": "dist/types/src/index.d.ts",
|
|
6
6
|
"style": "dist/index.css",
|
|
@@ -18,6 +18,9 @@
|
|
|
18
18
|
"license": "ISC",
|
|
19
19
|
"description": "",
|
|
20
20
|
"devDependencies": {
|
|
21
|
+
"react": "^19.1.0",
|
|
22
|
+
"react-dom": "^19.1.0",
|
|
23
|
+
"react-imask": "^7.6.1",
|
|
21
24
|
"@babel/core": "^7.26.7",
|
|
22
25
|
"@babel/preset-env": "^7.26.7",
|
|
23
26
|
"@babel/preset-react": "^7.26.3",
|
|
@@ -43,9 +46,6 @@
|
|
|
43
46
|
"postcss-import": "^16.1.0",
|
|
44
47
|
"postcss-loader": "^8.1.1",
|
|
45
48
|
"process": "^0.11.10",
|
|
46
|
-
"react": "^19.1.0",
|
|
47
|
-
"react-dom": "^19.1.0",
|
|
48
|
-
"react-imask": "^7.6.1",
|
|
49
49
|
"react-router-dom": "^7.1.5",
|
|
50
50
|
"resolve-url-loader": "^5.0.0",
|
|
51
51
|
"sass": "^1.66.1",
|
|
@@ -1,84 +0,0 @@
|
|
|
1
|
-
@use 'baseButton';
|
|
2
|
-
@use 'properties';
|
|
3
|
-
|
|
4
|
-
@mixin insertButton() {
|
|
5
|
-
.button {
|
|
6
|
-
@include baseButton.base-button();
|
|
7
|
-
|
|
8
|
-
&.small {
|
|
9
|
-
@include properties.smallButton;
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
&.medium {
|
|
13
|
-
@include properties.mediumButton;
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
&.large {
|
|
17
|
-
@include properties.largeButton;
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
&.ultra {
|
|
21
|
-
@include properties.ultraButton;
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
&.primary {
|
|
25
|
-
@include properties.primaryButton;
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
&.secondaryColor {
|
|
29
|
-
@include properties.secondaryColorButton;
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
&.secondaryGray {
|
|
33
|
-
@include properties.secondaryGrayButton;
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
&.tertiaryWhite {
|
|
37
|
-
@include properties.tertiaryWhiteButton;
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
&.tertiaryColor {
|
|
41
|
-
@include properties.tertiaryColorButton;
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
&.tertiaryGray {
|
|
45
|
-
@include properties.tertiaryGrayButton;
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
&.linkColor {
|
|
49
|
-
@include properties.linkColorButton;
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
&.linkBlack {
|
|
53
|
-
@include properties.linkBlackButton;
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
&.linkGray {
|
|
57
|
-
@include properties.linkGrayButton;
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
&.tabActive {
|
|
61
|
-
@include properties.tabActiveButton;
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
&.tab {
|
|
65
|
-
@include properties.tabButton;
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
&.warning {
|
|
69
|
-
&.primary {
|
|
70
|
-
@include properties.warningPrimaryButton;
|
|
71
|
-
}
|
|
72
|
-
&.secondaryColor {
|
|
73
|
-
@include properties.warningSecondaryColorButton;
|
|
74
|
-
}
|
|
75
|
-
&.linkColor {
|
|
76
|
-
@include properties.warningLinkColorButton;
|
|
77
|
-
}
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
&:disabled, &.disabled {
|
|
81
|
-
cursor: default;
|
|
82
|
-
}
|
|
83
|
-
}
|
|
84
|
-
}
|