@odx/ui 4.10.3 → 4.10.5
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/_color-palettes.scss +1 -1
- package/scss/_colors-dark.scss +4 -2
- package/scss/_colors.scss +5 -4
- package/scss/_controls.scss +5 -0
- package/scss/checkbox.component.scss +5 -0
- package/scss/components/checkbox.component.scss +5 -0
- package/scss/components/link.component.scss +4 -0
- package/scss/components/radio-button.component.scss +5 -0
- package/scss/components/switch.component.scss +10 -0
- package/scss/link.component.scss +4 -0
- package/scss/radio-button.component.scss +5 -0
- package/scss/switch.component.scss +10 -0
- package/scss/variables/_color-palettes.scss +1 -1
- package/scss/variables/_colors-dark.scss +4 -2
- package/scss/variables/_colors.scss +5 -4
- package/scss/variables/_controls.scss +5 -0
package/package.json
CHANGED
package/scss/_colors-dark.scss
CHANGED
|
@@ -7,10 +7,12 @@
|
|
|
7
7
|
--odx-c-text: var(--blue-900);
|
|
8
8
|
--odx-c-text-inverse: var(--black);
|
|
9
9
|
|
|
10
|
-
|
|
10
|
+
// TODO: Change to ODX color palette (without light/dark base colors)
|
|
11
|
+
--odx-c-link: var(--cyan-900);
|
|
11
12
|
--odx-c-link-hover: var(--cyan-800);
|
|
12
|
-
--odx-c-link-active: var(--cyan-
|
|
13
|
+
--odx-c-link-active: var(--cyan-700);
|
|
13
14
|
--odx-c-link-disabled: var(--gray-400);
|
|
15
|
+
--odx-c-link-visited: var(--blue-900);
|
|
14
16
|
|
|
15
17
|
--odx-c-error: var(--red-00);
|
|
16
18
|
--odx-c-error-outline: var(--red-50);
|
package/scss/_colors.scss
CHANGED
|
@@ -6,10 +6,11 @@
|
|
|
6
6
|
--odx-c-text-inverse: var(--white);
|
|
7
7
|
--odx-c-text-disabled: var(--gray-500);
|
|
8
8
|
|
|
9
|
-
--odx-c-link: var(--
|
|
10
|
-
--odx-c-link-hover: var(--
|
|
11
|
-
--odx-c-link-active: var(--
|
|
12
|
-
--odx-c-link-disabled: var(--
|
|
9
|
+
--odx-c-link: var(--cyan-600);
|
|
10
|
+
--odx-c-link-hover: var(--cyan-700);
|
|
11
|
+
--odx-c-link-active: var(--cyan-800);
|
|
12
|
+
--odx-c-link-disabled: var(--gray-500);
|
|
13
|
+
--odx-c-link-visited: var(--blue-700);
|
|
13
14
|
|
|
14
15
|
--odx-c-error: var(--red-00);
|
|
15
16
|
--odx-c-error-outline: var(--red-50);
|
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
|
|
package/scss/link.component.scss
CHANGED
|
@@ -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
|
|
|
@@ -7,10 +7,12 @@
|
|
|
7
7
|
--odx-c-text: var(--blue-900);
|
|
8
8
|
--odx-c-text-inverse: var(--black);
|
|
9
9
|
|
|
10
|
-
|
|
10
|
+
// TODO: Change to ODX color palette (without light/dark base colors)
|
|
11
|
+
--odx-c-link: var(--cyan-900);
|
|
11
12
|
--odx-c-link-hover: var(--cyan-800);
|
|
12
|
-
--odx-c-link-active: var(--cyan-
|
|
13
|
+
--odx-c-link-active: var(--cyan-700);
|
|
13
14
|
--odx-c-link-disabled: var(--gray-400);
|
|
15
|
+
--odx-c-link-visited: var(--blue-900);
|
|
14
16
|
|
|
15
17
|
--odx-c-error: var(--red-00);
|
|
16
18
|
--odx-c-error-outline: var(--red-50);
|
|
@@ -6,10 +6,11 @@
|
|
|
6
6
|
--odx-c-text-inverse: var(--white);
|
|
7
7
|
--odx-c-text-disabled: var(--gray-500);
|
|
8
8
|
|
|
9
|
-
--odx-c-link: var(--
|
|
10
|
-
--odx-c-link-hover: var(--
|
|
11
|
-
--odx-c-link-active: var(--
|
|
12
|
-
--odx-c-link-disabled: var(--
|
|
9
|
+
--odx-c-link: var(--cyan-600);
|
|
10
|
+
--odx-c-link-hover: var(--cyan-700);
|
|
11
|
+
--odx-c-link-active: var(--cyan-800);
|
|
12
|
+
--odx-c-link-disabled: var(--gray-500);
|
|
13
|
+
--odx-c-link-visited: var(--blue-700);
|
|
13
14
|
|
|
14
15
|
--odx-c-error: var(--red-00);
|
|
15
16
|
--odx-c-error-outline: var(--red-50);
|
|
@@ -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);
|