indicator-ui 1.0.50 → 1.0.51

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.
@@ -6,3 +6,4 @@
6
6
  @forward "changeSvg";
7
7
  @forward "themes";
8
8
  @forward "utils";
9
+ @forward "property-color";
@@ -0,0 +1,21 @@
1
+ @mixin property-color(
2
+ $component,
3
+ $prefix: null,
4
+ $property,
5
+ $name: null,
6
+ $color,
7
+ ) {
8
+ $css-prefix: null;
9
+ @if ($prefix != null) {
10
+ $css-prefix: '-#{$prefix}-';
11
+ } @else {
12
+ $css-prefix: '-'
13
+ }
14
+ @if ($name == null) {
15
+ $name: $property
16
+ }
17
+
18
+ & {
19
+ #{$property}: var(--ui-#{$component}#{$css-prefix}#{$name}, $color);
20
+ }
21
+ }
@@ -9,7 +9,7 @@
9
9
  }
10
10
  }
11
11
 
12
- @mixin hover {
12
+ @mixin hoverIsAvailable {
13
13
  @media (hover: hover) {
14
14
  @content;
15
15
  }
@@ -34,6 +34,9 @@ export type TogglePropsType = {
34
34
  * Элемент после text
35
35
  * */
36
36
  textAfterElement?: AdditionElementType;
37
+ /**
38
+ * @deprecated
39
+ */
37
40
  theme?: "light" | "dark";
38
41
  size?: React.ComponentProps<typeof ToggleBase>['size'];
39
42
  };
@@ -126,6 +126,25 @@
126
126
  - `--ui-checkbox-mark-active-focus-border-color`
127
127
  - `--ui-checkbox-mark-active-focus-symbol-color`
128
128
 
129
+
130
+ ## Toggle
131
+ - ### base
132
+ - `--ui-toggle-background-color`
133
+ - `--ui-toggle-active-text`
134
+ - `--ui-toggle-active-description`
135
+ - ### hover
136
+ - `--ui-toggle-hover-background-color`
137
+ - `--ui-toggle-hover-active-text`
138
+ - `--ui-toggle-hover-active-description`
139
+ - ### active
140
+ - `--ui-toggle-active-background-color`
141
+ - `--ui-toggle-active-active-text`
142
+ - `--ui-toggle-active-active-description`
143
+ - ### active hover
144
+ - `--ui-toggle-active-hover-background-color`
145
+ - `--ui-toggle-active-hover-active-text`
146
+ - `--ui-toggle-active-hover-active-description`
147
+
129
148
  ## Button
130
149
 
131
150
  - `--ui-button-radius`
package/package.json CHANGED
@@ -11,7 +11,7 @@
11
11
  "react-components",
12
12
  "ui-kit"
13
13
  ],
14
- "version": "1.0.50",
14
+ "version": "1.0.51",
15
15
  "exports": {
16
16
  ".": {
17
17
  "types": "./dist/types/index.d.ts",