@odx/ui 4.10.2 → 4.10.4
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 +12 -0
- package/core-theme.css +1 -1
- package/package.json +1 -1
- package/scss/_colors.scss +2 -2
- package/scss/_controls.scss +5 -0
- package/scss/checkbox.component.scss +5 -0
- package/scss/components/checkbox.component.scss +5 -0
- package/scss/components/radio-button.component.scss +5 -0
- package/scss/components/switch.component.scss +10 -0
- package/scss/radio-button.component.scss +5 -0
- package/scss/switch.component.scss +10 -0
- package/scss/variables/_colors.scss +2 -2
- package/scss/variables/_controls.scss +5 -0
package/package.json
CHANGED
package/scss/_colors.scss
CHANGED
|
@@ -57,9 +57,9 @@
|
|
|
57
57
|
--odx-c-secondary: var(--gray-300);
|
|
58
58
|
--odx-c-secondary-hover: var(--gray-400);
|
|
59
59
|
--odx-c-secondary-active: var(--gray-500);
|
|
60
|
-
--odx-c-secondary-disabled: var(--gray-
|
|
60
|
+
--odx-c-secondary-disabled: var(--gray-100);
|
|
61
61
|
--odx-c-secondary-text: var(--odx-c-text);
|
|
62
|
-
--odx-c-secondary-text-disabled: var(--gray-
|
|
62
|
+
--odx-c-secondary-text-disabled: var(--gray-300);
|
|
63
63
|
|
|
64
64
|
--odx-c-success: var(--green-500);
|
|
65
65
|
--odx-c-success-hover: var(--green-600);
|
package/scss/_controls.scss
CHANGED
|
@@ -15,6 +15,9 @@
|
|
|
15
15
|
--odx-control-background-color-disabled: var(--gray-100);
|
|
16
16
|
--odx-control-outline-color-disabled: transparent;
|
|
17
17
|
|
|
18
|
+
--odx-control-background-color-disabled-selected: var(--gray-600);
|
|
19
|
+
--odx-control-color-disabled-selected: var(--gray-200);
|
|
20
|
+
|
|
18
21
|
--odx-control-color-readonly: var(--odx-control-color);
|
|
19
22
|
--odx-control-background-color-readonly: transparent;
|
|
20
23
|
--odx-control-outline-color-readonly: var(--odx-control-color);
|
|
@@ -41,6 +44,8 @@
|
|
|
41
44
|
--odx-input-control-background-color-disabled: var(--gray-50);
|
|
42
45
|
--odx-input-control-outline-color-disabled: transparent;
|
|
43
46
|
|
|
47
|
+
--odx-input-control-background-color-disabled-selected: var(--gray-500);
|
|
48
|
+
|
|
44
49
|
--odx-input-control-color-readonly: var(--odx-control-color);
|
|
45
50
|
--odx-input-control-background-color-readonly: transparent;
|
|
46
51
|
--odx-input-control-outline-color-readonly: var(--odx-control-outline-color);
|
|
@@ -86,6 +86,11 @@
|
|
|
86
86
|
}
|
|
87
87
|
}
|
|
88
88
|
|
|
89
|
+
#{$root}.is-active.is-disabled & {
|
|
90
|
+
background-color: var(--odx-input-control-background-color-disabled-selected);
|
|
91
|
+
color: var(--odx-control-color-disabled-selected);
|
|
92
|
+
}
|
|
93
|
+
|
|
89
94
|
#{$root}.has-error & {
|
|
90
95
|
background-color: var(--odx-control-background-color-error);
|
|
91
96
|
color: var(--odx-control-color-error);
|
|
@@ -86,6 +86,11 @@
|
|
|
86
86
|
}
|
|
87
87
|
}
|
|
88
88
|
|
|
89
|
+
#{$root}.is-active.is-disabled & {
|
|
90
|
+
background-color: var(--odx-input-control-background-color-disabled-selected);
|
|
91
|
+
color: var(--odx-control-color-disabled-selected);
|
|
92
|
+
}
|
|
93
|
+
|
|
89
94
|
#{$root}.has-error & {
|
|
90
95
|
background-color: var(--odx-control-background-color-error);
|
|
91
96
|
color: var(--odx-control-color-error);
|
|
@@ -99,6 +99,11 @@
|
|
|
99
99
|
outline-color: var(--odx-control-outline-color-error-hover);
|
|
100
100
|
}
|
|
101
101
|
|
|
102
|
+
#{$root}.is-disabled.is-active & {
|
|
103
|
+
background-color: var(--odx-control-background-color-disabled-selected);
|
|
104
|
+
color: var(--odx-c-secondary-text-disabled);
|
|
105
|
+
}
|
|
106
|
+
|
|
102
107
|
#{$root}.is-disabled & {
|
|
103
108
|
background-color: var(--odx-control-background-color-disabled);
|
|
104
109
|
color: var(--odx-control-color-disabled);
|
|
@@ -141,6 +141,16 @@
|
|
|
141
141
|
}
|
|
142
142
|
}
|
|
143
143
|
|
|
144
|
+
#{$root}.is-disabled.is-active &,
|
|
145
|
+
#{$root}.is-disabled ~ #{$root}__input:checked,
|
|
146
|
+
#{$root}.is-disabled ~ #{$root}__input:indeterminate {
|
|
147
|
+
@include indicator-color(var(--odx-control-background-color-disabled-selected));
|
|
148
|
+
|
|
149
|
+
&::before {
|
|
150
|
+
@include indicator-color(var(--odx-control-background-color-disabled-selected));
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
|
|
144
154
|
#{$root}.is-disabled:not(.is-active) & {
|
|
145
155
|
@include indicator-color(var(--odx-control-background-color-disabled));
|
|
146
156
|
|
|
@@ -99,6 +99,11 @@
|
|
|
99
99
|
outline-color: var(--odx-control-outline-color-error-hover);
|
|
100
100
|
}
|
|
101
101
|
|
|
102
|
+
#{$root}.is-disabled.is-active & {
|
|
103
|
+
background-color: var(--odx-control-background-color-disabled-selected);
|
|
104
|
+
color: var(--odx-c-secondary-text-disabled);
|
|
105
|
+
}
|
|
106
|
+
|
|
102
107
|
#{$root}.is-disabled & {
|
|
103
108
|
background-color: var(--odx-control-background-color-disabled);
|
|
104
109
|
color: var(--odx-control-color-disabled);
|
|
@@ -141,6 +141,16 @@
|
|
|
141
141
|
}
|
|
142
142
|
}
|
|
143
143
|
|
|
144
|
+
#{$root}.is-disabled.is-active &,
|
|
145
|
+
#{$root}.is-disabled ~ #{$root}__input:checked,
|
|
146
|
+
#{$root}.is-disabled ~ #{$root}__input:indeterminate {
|
|
147
|
+
@include indicator-color(var(--odx-control-background-color-disabled-selected));
|
|
148
|
+
|
|
149
|
+
&::before {
|
|
150
|
+
@include indicator-color(var(--odx-control-background-color-disabled-selected));
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
|
|
144
154
|
#{$root}.is-disabled:not(.is-active) & {
|
|
145
155
|
@include indicator-color(var(--odx-control-background-color-disabled));
|
|
146
156
|
|
|
@@ -57,9 +57,9 @@
|
|
|
57
57
|
--odx-c-secondary: var(--gray-300);
|
|
58
58
|
--odx-c-secondary-hover: var(--gray-400);
|
|
59
59
|
--odx-c-secondary-active: var(--gray-500);
|
|
60
|
-
--odx-c-secondary-disabled: var(--gray-
|
|
60
|
+
--odx-c-secondary-disabled: var(--gray-100);
|
|
61
61
|
--odx-c-secondary-text: var(--odx-c-text);
|
|
62
|
-
--odx-c-secondary-text-disabled: var(--gray-
|
|
62
|
+
--odx-c-secondary-text-disabled: var(--gray-300);
|
|
63
63
|
|
|
64
64
|
--odx-c-success: var(--green-500);
|
|
65
65
|
--odx-c-success-hover: var(--green-600);
|
|
@@ -15,6 +15,9 @@
|
|
|
15
15
|
--odx-control-background-color-disabled: var(--gray-100);
|
|
16
16
|
--odx-control-outline-color-disabled: transparent;
|
|
17
17
|
|
|
18
|
+
--odx-control-background-color-disabled-selected: var(--gray-600);
|
|
19
|
+
--odx-control-color-disabled-selected: var(--gray-200);
|
|
20
|
+
|
|
18
21
|
--odx-control-color-readonly: var(--odx-control-color);
|
|
19
22
|
--odx-control-background-color-readonly: transparent;
|
|
20
23
|
--odx-control-outline-color-readonly: var(--odx-control-color);
|
|
@@ -41,6 +44,8 @@
|
|
|
41
44
|
--odx-input-control-background-color-disabled: var(--gray-50);
|
|
42
45
|
--odx-input-control-outline-color-disabled: transparent;
|
|
43
46
|
|
|
47
|
+
--odx-input-control-background-color-disabled-selected: var(--gray-500);
|
|
48
|
+
|
|
44
49
|
--odx-input-control-color-readonly: var(--odx-control-color);
|
|
45
50
|
--odx-input-control-background-color-readonly: transparent;
|
|
46
51
|
--odx-input-control-outline-color-readonly: var(--odx-control-outline-color);
|