ui-theme-igc-effect 1.4.15 → 1.5.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.
@@ -5,10 +5,9 @@
5
5
  --color-blue-ui-pressed: rgba(20, 0, 219, 1);
6
6
  --color-royal-blue: rgba(233, 234, 255, 1);
7
7
  --color-royal-blue-10: rgba(249, 249, 255, 1);
8
- --color-royal-blue-30: rgba(249, 249, 255, 1);
9
8
  --color-royal-blue-50: rgba(242, 243, 255, 1);
10
9
  --color-royal-blue-100: var(--color-royal-blue);
11
- --color-royal-blue-200: rgba(193, 187, 255, 1);
10
+ --color-royal-blue-200: rgba(197, 191, 255, 1);
12
11
  --color-royal-blue-300: rgba(177, 169, 255, 1);
13
12
  --color-gray-100: rgba(233, 234, 242, 1);
14
13
  --color-gray-200: rgba(209, 210, 222, 1);
@@ -3,33 +3,108 @@
3
3
  --control-radius: 2px;
4
4
  }
5
5
 
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
- }
6
+ .Theme_control_igcEffect {
7
+ & .Checkbox.Checkbox_view_primary {
8
+ --control-radius: 2px;
14
9
 
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
- }
10
+ --color-primary: var(--color-gray-300);
11
+ --color-shadow: none;
18
12
 
19
- .Theme_control_igcEffect .Checkbox-Input:checked:before {
20
- transform: none;
21
- }
13
+ & input.Checkbox-Input {
14
+ margin: var(--space-3xs);
22
15
 
23
- .Theme_control_igcEffect .Checkbox-Input:before {
24
- top: calc(-1px / var(--zoom));
25
- left: calc(-1px / var(--zoom));
26
- }
16
+ border-color: var(--color-primary);
27
17
 
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
- }
18
+ &.MixFocus {
19
+ --mix-focus-color-one: transparent;
20
+ --mix-focus-color-two: transparent;
21
+ --mix-focus-animation: none;
22
+ }
23
+
24
+ &:hover,
25
+ &:focus,
26
+ &:active {
27
+ box-shadow: 0px 0px 0px 4px var(--color-shadow);
28
+ }
29
+
30
+ &:checked {
31
+ background-color: var(--color-primary);
32
+
33
+ &::before,
34
+ &::after {
35
+ opacity: 1;
36
+ }
37
+ }
38
+
39
+ &::before {
40
+ top: 0;
41
+ left: 0;
42
+ height: var(--checkbox-size);
43
+ width: var(--checkbox-size);
44
+ border: none;
45
+ border-radius: 2px;
46
+ opacity: 0;
47
+ transform: translate(1px, 1px) scale(0.8);
48
+ transform-origin: 0 0;
49
+ background-color: var(--checkbox-checked-check);
50
+ transition: none;
51
+ }
52
+
53
+ &::after {
54
+ top: 0;
55
+ left: 0;
56
+ content: '';
57
+ height: var(--checkbox-size);
58
+ width: var(--checkbox-size);
59
+ position: absolute;
60
+ border-radius: 2px;
61
+ opacity: 0;
62
+ transform: translate(3px, 3px) scale(0.6);
63
+ transform-origin: 0 0;
64
+ background-color: var(--color-primary);
65
+ transition: none;
66
+ }
67
+ }
68
+
69
+ &.Checkbox_intermediate {
70
+ & input.Checkbox-Input {
71
+ background-color: var(--color-primary);
72
+
73
+ &::after {
74
+ border-radius: 0;
75
+ background-color: var(--checkbox-checked-check);
76
+ opacity: 1;
77
+ transform: translate(-1px, -1px) scaleY(0.08) scaleX(0.65);
78
+ transform-origin: center center;
79
+ }
80
+
81
+ &::before {
82
+ display: none;
83
+ }
84
+ }
85
+ }
86
+
87
+ &.Checkbox_disabled {
88
+ & .Checkbox-Input:checked,
89
+ &.Checkbox_intermediate .Checkbox-Input {
90
+ opacity: 0.45;
91
+ }
92
+ }
93
+
94
+ & .Checkbox-Input:checked,
95
+ &.Checkbox_intermediate {
96
+ --color-primary: var(--color-blue-ui);
97
+ --color-shadow: none;
98
+ }
99
+
100
+ & .Checkbox-Input:hover {
101
+ --color-primary: var(--color-blue-ui);
102
+ --color-shadow: var(--color-royal-blue);
103
+ }
32
104
 
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');
105
+ & .Checkbox-Input:active {
106
+ --color-primary: var(--color-blue-ui-pressed);
107
+ --color-shadow: var(--color-royal-blue-200);
108
+ }
109
+ }
35
110
  }
@@ -0,0 +1,56 @@
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
+
14
+ &.MixFocus {
15
+ --mix-focus-color-one: transparent;
16
+ --mix-focus-color-two: transparent;
17
+ --mix-focus-animation: none;
18
+ }
19
+
20
+ &:hover,
21
+ &:focus,
22
+ &:active {
23
+ box-shadow: 0px 0px 0px 4px var(--color-shadow);
24
+ }
25
+
26
+ &:checked::before {
27
+ transform: scale(0.5);
28
+ background-color: var(--color-primary);
29
+ }
30
+ }
31
+
32
+ &.Radio_disabled {
33
+ & .Radio-Input:checked {
34
+ opacity: 0.45;
35
+ background-color: transparent;
36
+ }
37
+
38
+ --color-primary: var(--color-gray-200);
39
+ }
40
+
41
+ & .Radio-Input:checked {
42
+ --color-primary: var(--color-blue-ui);
43
+ --color-shadow: none;
44
+ }
45
+
46
+ & .Radio-Input:hover {
47
+ --color-primary: var(--color-blue-ui);
48
+ --color-shadow: var(--color-royal-blue);
49
+ }
50
+
51
+ & .Radio-Input:active {
52
+ --color-primary: var(--color-blue-ui-pressed);
53
+ --color-shadow: var(--color-royal-blue-200);
54
+ }
55
+ }
56
+ }
@@ -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.15",
4
+ "version": "1.5.0",
5
5
  "type": "module",
6
6
  "license": "MIT",
7
7
  "files": [