ui-theme-igc-effect 1.4.16 → 1.5.1

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.
@@ -7,7 +7,7 @@
7
7
  --color-royal-blue-10: rgba(249, 249, 255, 1);
8
8
  --color-royal-blue-50: rgba(242, 243, 255, 1);
9
9
  --color-royal-blue-100: var(--color-royal-blue);
10
- --color-royal-blue-200: rgba(193, 187, 255, 1);
10
+ --color-royal-blue-200: rgba(197, 191, 255, 1);
11
11
  --color-royal-blue-300: rgba(177, 169, 255, 1);
12
12
  --color-gray-100: rgba(233, 234, 242, 1);
13
13
  --color-gray-200: rgba(209, 210, 222, 1);
@@ -1,35 +1,106 @@
1
- .Theme_control_igcEffect .Checkbox_size_l {
2
- --checkbox-size: 24px;
3
- --control-radius: 2px;
4
- }
1
+ .Theme_control_igcEffect:not(:has(.Theme_control_gpnDefault)) {
2
+ & .Checkbox.Checkbox_view_primary {
3
+ --control-radius: 2px;
5
4
 
6
- .Theme_control_igcEffect .Checkbox-Input::before {
7
- content: '';
8
- width: var(--checkbox-size);
9
- height: var(--checkbox-size);
10
- background-size: var(--checkbox-size) var(--checkbox-size);
11
- border: 0;
12
- transition: none;
13
- }
5
+ --color-primary: var(--color-gray-300);
6
+ --color-shadow: none;
14
7
 
15
- .Theme_control_igcEffect .Checkbox-Input:checked:before {
16
- background-image: url('data:image/svg+xml,%3Csvg width%3D%2224%22 height%3D%2224%22 viewBox%3D%220 0 24 24%22 fill%3D%22none%22%0D xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0D %3Crect x%3D%222%22 y%3D%222%22 width%3D%2220%22 height%3D%2220%22 rx%3D%222%22 fill%3D%22%233521FF%22 stroke%3D%22%233521FF%22%2F%3E%0D %3Crect x%3D%224%22 y%3D%224%22 width%3D%2216%22 height%3D%2216%22 rx%3D%222%22 fill%3D%22white%22%2F%3E%0D %3Crect x%3D%226%22 y%3D%226%22 width%3D%2212%22 height%3D%2212%22 rx%3D%222%22 fill%3D%22%233521FF%22%2F%3E%0D%3C%2Fsvg%3E%0D');
17
- }
8
+ & input.Checkbox-Input {
9
+ margin: var(--space-3xs);
18
10
 
19
- .Theme_control_igcEffect .Checkbox-Input:checked:before {
20
- transform: none;
21
- }
11
+ border-color: var(--color-primary);
12
+ background-color: var(--color-control-typo-primary);
22
13
 
23
- .Theme_control_igcEffect .Checkbox-Input:before {
24
- top: calc(-1px / var(--zoom));
25
- left: calc(-1px / var(--zoom));
26
- }
14
+ &.MixFocus {
15
+ --mix-focus-color-one: transparent;
16
+ --mix-focus-color-two: transparent;
17
+ --mix-focus-animation: none;
18
+ }
27
19
 
28
- .Theme_control_igcEffect .Checkbox_intermediate .Checkbox-Input:before {
29
- top: calc(var(--checkbox-size) / 2 - 0.5px);
30
- left: calc(var(--checkbox-size) / 5 - 1.5px);
31
- }
20
+ &:hover,
21
+ &:focus,
22
+ &:active {
23
+ box-shadow: 0px 0px 0px 4px var(--color-shadow);
24
+ }
25
+
26
+ &:checked {
27
+ background-color: var(--color-primary);
28
+
29
+ &::before,
30
+ &::after {
31
+ opacity: 1;
32
+ }
33
+ }
34
+
35
+ &::before {
36
+ top: 0;
37
+ left: 0;
38
+ height: var(--checkbox-size);
39
+ width: var(--checkbox-size);
40
+ border: none;
41
+ border-radius: 2px;
42
+ opacity: 0;
43
+ transform: translate(-1px, -1px) scale(0.8);
44
+ transform-origin: center center;
45
+ background-color: var(--color-control-typo-primary);
46
+ transition: none;
47
+ }
48
+
49
+ &::after {
50
+ top: 0;
51
+ left: 0;
52
+ content: '';
53
+ height: var(--checkbox-size);
54
+ width: var(--checkbox-size);
55
+ position: absolute;
56
+ border-radius: 2px;
57
+ opacity: 0;
58
+ transform: translate(-1px, -1px) scale(0.6);
59
+ transform-origin: center center;
60
+ background-color: var(--color-primary);
61
+ transition: none;
62
+ }
63
+ }
64
+
65
+ &.Checkbox_intermediate {
66
+ & input.Checkbox-Input {
67
+ background-color: var(--color-primary);
68
+
69
+ &::after {
70
+ border-radius: 0;
71
+ background-color: var(--color-control-typo-primary);
72
+ opacity: 1;
73
+ transform: translate(-1px, -1px) scaleY(0.08) scaleX(0.65);
74
+ transform-origin: center center;
75
+ }
76
+
77
+ &::before {
78
+ display: none;
79
+ }
80
+ }
81
+ }
82
+
83
+ &.Checkbox_disabled {
84
+ & .Checkbox-Input:checked,
85
+ &.Checkbox_intermediate .Checkbox-Input {
86
+ opacity: 0.45;
87
+ }
88
+ }
89
+
90
+ & .Checkbox-Input:checked,
91
+ &.Checkbox_intermediate {
92
+ --color-primary: var(--color-blue-ui);
93
+ --color-shadow: none;
94
+ }
95
+
96
+ & .Checkbox-Input:hover {
97
+ --color-primary: var(--color-blue-ui);
98
+ --color-shadow: var(--color-royal-blue);
99
+ }
32
100
 
33
- .Theme_control_igcEffect .Checkbox_disabled .Checkbox-Input:disabled:before {
34
- background-image: url('data:image/svg+xml,%3Csvg width%3D%2224%22 height%3D%2224%22 viewBox%3D%220 0 24 24%22 fill%3D%22none%22%0D xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0D %3Crect x%3D%222%22 y%3D%222%22 width%3D%2220%22 height%3D%2220%22 rx%3D%222%22 fill%3D%22%233521FF%22 stroke%3D%22%233521FF%22 opacity%3D%220.3%22%2F%3E%0D %3Crect x%3D%224%22 y%3D%224%22 width%3D%2216%22 height%3D%2216%22 rx%3D%222%22 fill%3D%22white%22%2F%3E%0D %3Crect x%3D%226%22 y%3D%226%22 width%3D%2212%22 height%3D%2212%22 rx%3D%222%22 fill%3D%22%233521FF%22 opacity%3D%220.3%22%2F%3E%0D%3C%2Fsvg%3E%0D');
101
+ & .Checkbox-Input:active {
102
+ --color-primary: var(--color-blue-ui-pressed);
103
+ --color-shadow: var(--color-royal-blue-200);
104
+ }
105
+ }
35
106
  }
@@ -0,0 +1,57 @@
1
+ .Theme_control_igcEffect {
2
+ & .Radio.Radio_view_primary {
3
+ --radio-size: var(--control-box-size-l);
4
+ --radio-offset: var(--space-xs);
5
+
6
+ --color-primary: var(--color-gray-300);
7
+ --color-shadow: none;
8
+
9
+ & input.Radio-Input {
10
+ margin: var(--space-3xs);
11
+
12
+ border-color: var(--color-primary);
13
+ background-color: var(--color-control-typo-primary);
14
+
15
+ &.MixFocus {
16
+ --mix-focus-color-one: transparent;
17
+ --mix-focus-color-two: transparent;
18
+ --mix-focus-animation: none;
19
+ }
20
+
21
+ &:hover,
22
+ &:focus,
23
+ &:active {
24
+ box-shadow: 0px 0px 0px 4px var(--color-shadow);
25
+ }
26
+
27
+ &:checked::before {
28
+ transform: scale(0.5);
29
+ background-color: var(--color-primary);
30
+ }
31
+ }
32
+
33
+ &.Radio_disabled {
34
+ & .Radio-Input:checked {
35
+ opacity: 0.45;
36
+ background-color: transparent;
37
+ }
38
+
39
+ --color-primary: var(--color-gray-200);
40
+ }
41
+
42
+ & .Radio-Input:checked {
43
+ --color-primary: var(--color-blue-ui);
44
+ --color-shadow: none;
45
+ }
46
+
47
+ & .Radio-Input:hover {
48
+ --color-primary: var(--color-blue-ui);
49
+ --color-shadow: var(--color-royal-blue);
50
+ }
51
+
52
+ & .Radio-Input:active {
53
+ --color-primary: var(--color-blue-ui-pressed);
54
+ --color-shadow: var(--color-royal-blue-200);
55
+ }
56
+ }
57
+ }
@@ -14,6 +14,7 @@ import '../_component/Theme_component_igcEffectTextField.css';
14
14
  import '../_component/Theme_component_igcEffectSwitch.css';
15
15
  import '../_component/Theme_component_igcEffectButton.css';
16
16
  import '../_component/Theme_component_igcEffectCommon.css';
17
+ import '../_component/Theme_component_igcEffectRadio.css';
17
18
  import '../_component/Theme_component_igcEffectDatePicker.css';
18
19
  import '../_component/Theme_component_igcEffectTooltip.css';
19
20
  import '../_component/Theme_component_igcEffectTabs.css';
@@ -14,6 +14,7 @@ import '../_component/Theme_component_igcEffectTextField.css';
14
14
  import '../_component/Theme_component_igcEffectSwitch.css';
15
15
  import '../_component/Theme_component_igcEffectButton.css';
16
16
  import '../_component/Theme_component_igcEffectCommon.css';
17
+ import '../_component/Theme_component_igcEffectRadio.css';
17
18
  import '../_component/Theme_component_igcEffectDatePicker.css';
18
19
  import '../_component/Theme_component_igcEffectTooltip.css';
19
20
  import '../_component/Theme_component_igcEffectTabs.css';
@@ -14,6 +14,7 @@ import '../_component/Theme_component_igcEffectTextField.css';
14
14
  import '../_component/Theme_component_igcEffectSwitch.css';
15
15
  import '../_component/Theme_component_igcEffectButton.css';
16
16
  import '../_component/Theme_component_igcEffectCommon.css';
17
+ import '../_component/Theme_component_igcEffectRadio.css';
17
18
  import '../_component/Theme_component_igcEffectDatePicker.css';
18
19
  import '../_component/Theme_component_igcEffectTooltip.css';
19
20
  import '../_component/Theme_component_igcEffectTabs.css';
@@ -14,6 +14,7 @@ import '../_component/Theme_component_igcEffectTextField.css';
14
14
  import '../_component/Theme_component_igcEffectSwitch.css';
15
15
  import '../_component/Theme_component_igcEffectButton.css';
16
16
  import '../_component/Theme_component_igcEffectCommon.css';
17
+ import '../_component/Theme_component_igcEffectRadio.css';
17
18
  import '../_component/Theme_component_igcEffectDatePicker.css';
18
19
  import '../_component/Theme_component_igcEffectTooltip.css';
19
20
  import '../_component/Theme_component_igcEffectTabs.css';
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "ui-theme-igc-effect",
3
3
  "private": false,
4
- "version": "1.4.16",
4
+ "version": "1.5.1",
5
5
  "type": "module",
6
6
  "license": "MIT",
7
7
  "files": [