@snack-uikit/toggles 0.10.2 → 0.10.4-preview-94780dcd.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/CHANGELOG.md CHANGED
@@ -3,6 +3,17 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## 0.10.3 (2024-08-13)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * **FF-0000:** checkbox disabled bgColor ([3005618](https://github.com/cloud-ru-tech/snack-uikit/commit/3005618ede21c1af73b664170303068f9d97e9f0))
12
+
13
+
14
+
15
+
16
+
6
17
  ## 0.10.2 (2024-07-29)
7
18
 
8
19
 
@@ -48,7 +48,7 @@
48
48
  border-color:var(--sys-primary-accent-hovered, #6851a6);
49
49
  }
50
50
  .box[data-indeterminate=true][data-disabled=true], .box[data-checked=true][data-disabled=true]{
51
- background-color:var(--sys-neutral-decor-disabled, #e6e8ef);
51
+ background-color:var(--sys-neutral-text-disabled, #aaaebd);
52
52
  border-color:var(--sys-neutral-text-disabled, #aaaebd);
53
53
  }
54
54
  .box[data-size=s]{
@@ -3,7 +3,7 @@
3
3
  align-items:center;
4
4
  justify-content:center;
5
5
  box-sizing:border-box;
6
- outline-color:var(--sys-available-complementary, #15151b);
6
+ outline-color:var(--sys-available-complementary, #1c1c24);
7
7
  }
8
8
  .container[data-size=s]{
9
9
  width:var(--size-toggles-s-container, 16px);
@@ -24,7 +24,7 @@
24
24
  outline-offset:var(--border-width-state-focus-s, 2px);
25
25
  }
26
26
  .container[data-checked=true]{
27
- outline-color:var(--sys-available-complementary, #15151b);
27
+ outline-color:var(--sys-available-complementary, #1c1c24);
28
28
  }
29
29
 
30
30
  .icon{
@@ -34,16 +34,16 @@
34
34
  color:var(--sys-neutral-text-support, #6d707f);
35
35
  }
36
36
  .icon:not([data-disabled=true])[data-icon=star][data-checked=true]{
37
- color:var(--sys-yellow-accent-default, #ffc443);
37
+ color:var(--sys-yellow-accent-default, #e2b134);
38
38
  }
39
39
  .icon:not([data-disabled=true])[data-icon=star][data-checked=true][data-focusvisible=true], .icon:not([data-disabled=true])[data-icon=star][data-checked=true][data-hover=true]{
40
- color:var(--sys-yellow-accent-hovered, #f1b637);
40
+ color:var(--sys-yellow-accent-hovered, #d5a133);
41
41
  }
42
42
  .icon:not([data-disabled=true])[data-icon=heart][data-checked=true]{
43
- color:var(--sys-red-accent-default, #cd3c3c);
43
+ color:var(--sys-red-accent-default, #cb3f3e);
44
44
  }
45
45
  .icon:not([data-disabled=true])[data-icon=heart][data-checked=true][data-focusvisible=true], .icon:not([data-disabled=true])[data-icon=heart][data-checked=true][data-hover=true]{
46
- color:var(--sys-red-accent-hovered, #bb3c3a);
46
+ color:var(--sys-red-accent-hovered, #bd4844);
47
47
  }
48
48
  .icon[data-disabled=true]{
49
49
  color:var(--sys-neutral-text-disabled, #aaaebd);
@@ -1,21 +1,20 @@
1
- /// <reference types="react" />
2
1
  export declare const TogglePrivate: import("react").ForwardRefExoticComponent<{
3
- 'data-test-id'?: string | undefined;
2
+ 'data-test-id'?: string;
4
3
  } & import("react").AriaAttributes & {
5
- className?: string | undefined;
6
- size?: import("../../types").Size | undefined;
4
+ className?: string;
5
+ size?: import("../../types").Size;
7
6
  render: (visualState: import("../../types").InputVisualState) => import("react").ReactNode;
8
- mode?: import("../../types").Mode | undefined;
9
- id?: string | undefined;
10
- value?: string | undefined;
11
- name?: string | undefined;
12
- tabIndex?: number | undefined;
13
- autofocus?: boolean | undefined;
14
- checked?: boolean | undefined;
15
- defaultChecked?: boolean | undefined;
16
- disabled?: boolean | undefined;
17
- onChange?: ((checked: boolean) => void) | undefined;
18
- onClick?: import("react").MouseEventHandler<HTMLInputElement> | undefined;
19
- onBlur?: import("react").FocusEventHandler<HTMLInputElement> | undefined;
20
- onFocus?: import("react").FocusEventHandler<HTMLInputElement> | undefined;
7
+ mode?: import("../../types").Mode;
8
+ id?: string;
9
+ value?: string;
10
+ name?: string;
11
+ tabIndex?: number;
12
+ autofocus?: boolean;
13
+ checked?: boolean;
14
+ defaultChecked?: boolean;
15
+ disabled?: boolean;
16
+ onChange?: (checked: boolean) => void;
17
+ onClick?: import("react").MouseEventHandler<HTMLInputElement>;
18
+ onBlur?: import("react").FocusEventHandler<HTMLInputElement>;
19
+ onFocus?: import("react").FocusEventHandler<HTMLInputElement>;
21
20
  } & import("react").RefAttributes<HTMLInputElement>>;
package/dist/context.d.ts CHANGED
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { SelectionMode } from './types';
3
2
  type ToggleGroupContextType = {
4
3
  value: string | undefined | string[];
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "access": "public"
5
5
  },
6
6
  "title": "Toggles",
7
- "version": "0.10.2",
7
+ "version": "0.10.4-preview-94780dcd.0",
8
8
  "sideEffects": [
9
9
  "*.css",
10
10
  "*.woff",
@@ -32,11 +32,11 @@
32
32
  "license": "Apache-2.0",
33
33
  "scripts": {},
34
34
  "dependencies": {
35
- "@snack-uikit/icons": "0.22.0",
36
- "@snack-uikit/utils": "3.3.0",
35
+ "@snack-uikit/icons": "0.22.1-preview-94780dcd.0",
36
+ "@snack-uikit/utils": "3.3.1-preview-94780dcd.0",
37
37
  "classnames": "2.3.2",
38
38
  "merge-refs": "1.2.1",
39
39
  "uncontrollable": "8.0.0"
40
40
  },
41
- "gitHead": "d1b1ac720c6ea300a6c8cc3b4765609899200af7"
41
+ "gitHead": "0b67805c876ec8ccc1567d110a3b37b04d2f0fb6"
42
42
  }
@@ -44,7 +44,7 @@ $icon-sizes: (
44
44
  }
45
45
 
46
46
  &[data-disabled=true] {
47
- background-color: simple-var($theme-variables, 'sys', 'neutral', 'decor-disabled');
47
+ background-color: simple-var($theme-variables, 'sys', 'neutral', 'text-disabled');
48
48
  border-color: simple-var($theme-variables, 'sys', 'neutral', 'text-disabled');
49
49
  }
50
50
  }