indicator-ui 0.0.213 → 0.0.216

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.
@@ -0,0 +1,84 @@
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
+ }
@@ -1,2 +1,3 @@
1
+ @forward "button";
1
2
  @forward "baseButton";
2
3
  @forward "properties";
@@ -1,6 +1,31 @@
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
+ };
4
29
  /**
5
30
  * Компонент кнопки
6
31
  */
@@ -30,6 +55,7 @@ export type ButtonPropsType = Omit<React.ButtonHTMLAttributes<HTMLButtonElement>
30
55
  } & {
31
56
  [key: string]: any;
32
57
  }>;
58
+ className?: ButtonClassNameType;
33
59
  /** Дополнительные имена стилей */
34
60
  additionStyles?: string | string[];
35
61
  };
@@ -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, disabled, ...props }: ButtonPropsType): import("react/jsx-runtime").JSX.Element;
2
+ export declare function Button({ children, text, iconLeft, iconRight, hierarchy, warning, size, width, height, additionStyles, customComponent, className, disabled, ...props }: ButtonPropsType): import("react/jsx-runtime").JSX.Element;
@@ -1,11 +1,9 @@
1
1
  import React, { ReactElement } from "react";
2
2
  import { FieldsBasePropsType } from '../../FieldsBase';
3
3
  import { SelectFieldOptionsOwnerItemPropsType } from "./SelectFieldOptionsItemTypes";
4
- import { DropdownItemPropsType } from "../../../../ui";
5
4
  export type SelectFieldOptionsItemType = {
6
5
  value: any;
7
6
  label?: string;
8
- dropdownItemProps?: Omit<DropdownItemPropsType, 'onClick'>;
9
7
  component?: ReactElement<SelectFieldOptionsOwnerItemPropsType>;
10
8
  };
11
9
  export type SelectFieldOptionsType = SelectFieldOptionsItemType[];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "indicator-ui",
3
- "version": "0.0.213",
3
+ "version": "0.0.216",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/types/src/index.d.ts",
6
6
  "style": "dist/index.css",
@@ -18,9 +18,6 @@
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",
24
21
  "@babel/core": "^7.26.7",
25
22
  "@babel/preset-env": "^7.26.7",
26
23
  "@babel/preset-react": "^7.26.3",
@@ -46,6 +43,9 @@
46
43
  "postcss-import": "^16.1.0",
47
44
  "postcss-loader": "^8.1.1",
48
45
  "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",