igniteui-theming 20.0.0 → 21.0.0-beta.2
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/package.json +1 -1
- package/sass/color/_functions.scss +1 -5
- package/sass/themes/_config.scss +11 -0
- package/sass/themes/_functions.scss +20 -0
- package/sass/themes/_index.scss +1 -0
- package/sass/themes/components/_index.scss +0 -1
- package/sass/themes/components/avatar/_avatar-theme.scss +1 -1
- package/sass/themes/components/badge/_badge-theme.scss +1 -1
- package/sass/themes/components/banner/_banner-theme.scss +1 -1
- package/sass/themes/components/bottom-nav/_bottom-nav-theme.scss +1 -1
- package/sass/themes/components/button/_button-theme.scss +1 -1
- package/sass/themes/components/button/_contained-button-theme.scss +1 -1
- package/sass/themes/components/button/_fab-button-theme.scss +1 -1
- package/sass/themes/components/button/_flat-button-theme.scss +1 -1
- package/sass/themes/components/button/_outlined-button-theme.scss +1 -1
- package/sass/themes/components/button-group/_button-group-theme.scss +1 -1
- package/sass/themes/components/calendar/_calendar-theme.scss +1 -1
- package/sass/themes/components/card/_card-theme.scss +1 -1
- package/sass/themes/components/carousel/_carousel-theme.scss +1 -1
- package/sass/themes/components/checkbox/_checkbox-theme.scss +1 -1
- package/sass/themes/components/chip/_chip-theme.scss +1 -1
- package/sass/themes/components/column-actions/_column-actions-theme.scss +1 -1
- package/sass/themes/components/combo/_combo-theme.scss +1 -1
- package/sass/themes/components/date-range-picker/_date-range-picker-theme.scss +1 -1
- package/sass/themes/components/dialog/_dialog-theme.scss +1 -1
- package/sass/themes/components/divider/_divider-theme.scss +1 -1
- package/sass/themes/components/dock-manager/_dock-manager-theme.scss +1 -1
- package/sass/themes/components/drop-down/_drop-down-theme.scss +1 -1
- package/sass/themes/components/expansion-panel/_expansion-panel-theme.scss +1 -1
- package/sass/themes/components/grid/_grid-summary-theme.scss +1 -1
- package/sass/themes/components/grid/_grid-theme.scss +1 -1
- package/sass/themes/components/grid/_grid-toolbar-theme.scss +1 -1
- package/sass/themes/components/highlight/_highlight-theme.scss +1 -1
- package/sass/themes/components/icon/_icon-theme.scss +1 -1
- package/sass/themes/components/icon-button/_contained-icon-button-theme.scss +1 -1
- package/sass/themes/components/icon-button/_flat-icon-button-theme.scss +1 -1
- package/sass/themes/components/icon-button/_icon-button-theme.scss +1 -1
- package/sass/themes/components/icon-button/_outlined-icon-button-theme.scss +1 -1
- package/sass/themes/components/input/_input-theme.scss +1 -1
- package/sass/themes/components/label/_label-theme.scss +1 -1
- package/sass/themes/components/list/_list-theme.scss +32 -36
- package/sass/themes/components/navbar/_navbar-theme.scss +1 -1
- package/sass/themes/components/navdrawer/_navdrawer-theme.scss +3 -3
- package/sass/themes/components/overlay/_overlay-theme.scss +1 -1
- package/sass/themes/components/paginator/_paginator-theme.scss +1 -1
- package/sass/themes/components/progress/_circular-theme.scss +1 -1
- package/sass/themes/components/progress/_linear-theme.scss +1 -1
- package/sass/themes/components/query-builder/_query-builder-theme.scss +1 -1
- package/sass/themes/components/radio/_radio-theme.scss +1 -1
- package/sass/themes/components/rating/_rating-theme.scss +1 -1
- package/sass/themes/components/ripple/_ripple-theme.scss +1 -1
- package/sass/themes/components/scrollbar/_scrollbar-theme.scss +1 -1
- package/sass/themes/components/select/_select-theme.scss +1 -1
- package/sass/themes/components/slider/_slider-theme.scss +1 -1
- package/sass/themes/components/snackbar/_snackbar-theme.scss +1 -1
- package/sass/themes/components/splitter/_splitter-theme.scss +1 -1
- package/sass/themes/components/stepper/_stepper-theme.scss +1 -1
- package/sass/themes/components/switch/_switch-theme.scss +1 -1
- package/sass/themes/components/tabs/_tabs-theme.scss +1 -1
- package/sass/themes/components/time-picker/_time-picker-theme.scss +1 -1
- package/sass/themes/components/toast/_toast-theme.scss +1 -1
- package/sass/themes/components/tooltip/_tooltip-theme.scss +1 -1
- package/sass/themes/components/tree/_tree-theme.scss +1 -1
- package/sass/themes/components/watermark/_watermark-theme.scss +1 -1
- package/tailwind/utilities/bootstrap.css +1 -1
- package/tailwind/utilities/fluent.css +1 -1
- package/tailwind/utilities/indigo.css +1 -1
- package/tailwind/utilities/material.css +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "igniteui-theming",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "21.0.0-beta.2",
|
|
4
4
|
"description": "A set of Sass variables, mixins, and functions for generating palettes, typography, and elevations used by Ignite UI components.",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -255,11 +255,7 @@ $_enhanced-accessibility: false;
|
|
|
255
255
|
$base: map.get($s, #{$variant});
|
|
256
256
|
$raw: map.get($s, #{$variant}-raw);
|
|
257
257
|
|
|
258
|
-
@return if(
|
|
259
|
-
$contrast,
|
|
260
|
-
$_relative-color,
|
|
261
|
-
if($raw and $variant != '500', rgba($raw, $_alpha), _normalize-color($base))
|
|
262
|
-
);
|
|
258
|
+
@return if($contrast, $_relative-color, if($raw, rgba($raw, $_alpha), _normalize-color($base)));
|
|
263
259
|
}
|
|
264
260
|
|
|
265
261
|
@return $_relative-color;
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
@use 'sass:meta';
|
|
4
4
|
@use 'sass:string';
|
|
5
5
|
@use 'sass:math';
|
|
6
|
+
@use 'config';
|
|
6
7
|
@use '../typography/functions' as *;
|
|
7
8
|
@use '../elevations/functions' as *;
|
|
8
9
|
@use '../color/functions' as color;
|
|
@@ -37,6 +38,16 @@
|
|
|
37
38
|
$result: map.merge($result, (#{$key}: $value));
|
|
38
39
|
}
|
|
39
40
|
|
|
41
|
+
// Enrich _meta key if present with additional information
|
|
42
|
+
@if meta.type-of($value) == 'map' and $key == '_meta' {
|
|
43
|
+
$result: map.merge(
|
|
44
|
+
$result,
|
|
45
|
+
(
|
|
46
|
+
_meta: enrich-meta($value),
|
|
47
|
+
)
|
|
48
|
+
);
|
|
49
|
+
}
|
|
50
|
+
|
|
40
51
|
// Special case for chart elevation literals
|
|
41
52
|
@if string.index($key, 'elevation') {
|
|
42
53
|
$result: map.merge($result, (#{$key}: #{elevation($value)}));
|
|
@@ -51,6 +62,15 @@
|
|
|
51
62
|
@return $result;
|
|
52
63
|
}
|
|
53
64
|
|
|
65
|
+
@function enrich-meta($meta) {
|
|
66
|
+
@return map.merge(
|
|
67
|
+
$meta,
|
|
68
|
+
(
|
|
69
|
+
'element-prefix': config.prefix(),
|
|
70
|
+
)
|
|
71
|
+
);
|
|
72
|
+
}
|
|
73
|
+
|
|
54
74
|
/// Resolves schema values, where the keys of the passed value map are the names
|
|
55
75
|
/// of the functions to be called and the value for a given key is the argument
|
|
56
76
|
/// the function should be called with.
|
package/sass/themes/_index.scss
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
@use 'sass:map';
|
|
2
|
-
@use '
|
|
2
|
+
@use '../../config';
|
|
3
3
|
@use '../../functions' as *;
|
|
4
4
|
@use '../../schemas/' as *;
|
|
5
5
|
@use '../../../utils/map' as *;
|
|
@@ -133,20 +133,20 @@
|
|
|
133
133
|
$item-text-color: adaptive-contrast(var(--item-background));
|
|
134
134
|
}
|
|
135
135
|
|
|
136
|
-
@if not($item-title-color) and $item-
|
|
137
|
-
$item-title-color:
|
|
136
|
+
@if not($item-title-color) and $item-text-color {
|
|
137
|
+
$item-title-color: var(--item-text-color);
|
|
138
138
|
}
|
|
139
139
|
|
|
140
|
-
@if not($item-action-color) and $item-
|
|
141
|
-
$item-action-color:
|
|
140
|
+
@if not($item-action-color) and $item-text-color {
|
|
141
|
+
$item-action-color: var(--item-text-color);
|
|
142
142
|
}
|
|
143
143
|
|
|
144
|
-
@if not($item-thumbnail-color) and $item-
|
|
145
|
-
$item-thumbnail-color:
|
|
144
|
+
@if not($item-thumbnail-color) and $item-text-color {
|
|
145
|
+
$item-thumbnail-color: var(--item-text-color);
|
|
146
146
|
}
|
|
147
147
|
|
|
148
|
-
@if not($item-subtitle-color) and $item-
|
|
149
|
-
$item-subtitle-color: hsla(from
|
|
148
|
+
@if not($item-subtitle-color) and $item-text-color {
|
|
149
|
+
$item-subtitle-color: hsla(from var(--item-text-color) h s l / 0.74);
|
|
150
150
|
}
|
|
151
151
|
|
|
152
152
|
@if not($item-subtitle-color) and $item-text-color {
|
|
@@ -157,24 +157,20 @@
|
|
|
157
157
|
$item-text-color-hover: adaptive-contrast(var(--item-background-hover));
|
|
158
158
|
}
|
|
159
159
|
|
|
160
|
-
@if not($item-title-color-hover) and $item-
|
|
161
|
-
$item-title-color-hover:
|
|
162
|
-
}
|
|
163
|
-
|
|
164
|
-
@if not($item-action-color-hover) and $item-background-hover {
|
|
165
|
-
$item-action-color-hover: adaptive-contrast(var(--item-background-hover));
|
|
160
|
+
@if not($item-title-color-hover) and $item-text-color-hover {
|
|
161
|
+
$item-title-color-hover: var(--item-text-color-hover);
|
|
166
162
|
}
|
|
167
163
|
|
|
168
|
-
@if not($item-
|
|
169
|
-
$item-
|
|
164
|
+
@if not($item-action-color-hover) and $item-text-color-hover {
|
|
165
|
+
$item-action-color-hover: var(--item-text-color-hover);
|
|
170
166
|
}
|
|
171
167
|
|
|
172
|
-
@if not($item-
|
|
173
|
-
$item-
|
|
168
|
+
@if not($item-thumbnail-color-hover) and $item-text-color-hover {
|
|
169
|
+
$item-thumbnail-color-hover: var(--item-text-color-hover);
|
|
174
170
|
}
|
|
175
171
|
|
|
176
172
|
@if not($item-subtitle-color-hover) and $item-text-color-hover {
|
|
177
|
-
$item-subtitle-color-hover: var(--item-text-color-hover);
|
|
173
|
+
$item-subtitle-color-hover: hsla(from var(--item-text-color-hover) h s l / 0.74);
|
|
178
174
|
}
|
|
179
175
|
|
|
180
176
|
@if not($item-text-color-active) and $item-background-active {
|
|
@@ -185,36 +181,36 @@
|
|
|
185
181
|
$item-text-color-selected: adaptive-contrast(var(--item-background-selected));
|
|
186
182
|
}
|
|
187
183
|
|
|
188
|
-
@if not($item-title-color-active) and $item-
|
|
189
|
-
$item-title-color-active:
|
|
184
|
+
@if not($item-title-color-active) and $item-text-color-active {
|
|
185
|
+
$item-title-color-active: var(--item-text-color-active);
|
|
190
186
|
}
|
|
191
187
|
|
|
192
|
-
@if not($item-title-color-selected) and $item-
|
|
193
|
-
$item-title-color-selected:
|
|
188
|
+
@if not($item-title-color-selected) and $item-text-color-selected {
|
|
189
|
+
$item-title-color-selected: var(--item-text-color-selected);
|
|
194
190
|
}
|
|
195
191
|
|
|
196
|
-
@if not($item-action-color-active) and $item-
|
|
197
|
-
$item-action-color-active:
|
|
192
|
+
@if not($item-action-color-active) and $item-text-color-active {
|
|
193
|
+
$item-action-color-active: var(--item-text-color-active);
|
|
198
194
|
}
|
|
199
195
|
|
|
200
|
-
@if not($item-action-color-selected) and $item-
|
|
201
|
-
$item-action-color-selected:
|
|
196
|
+
@if not($item-action-color-selected) and $item-text-color-selected {
|
|
197
|
+
$item-action-color-selected: var(--item-text-color-selected);
|
|
202
198
|
}
|
|
203
199
|
|
|
204
|
-
@if not($item-thumbnail-color-active) and $item-
|
|
205
|
-
$item-thumbnail-color-active:
|
|
200
|
+
@if not($item-thumbnail-color-active) and $item-text-color-active {
|
|
201
|
+
$item-thumbnail-color-active: var(--item-text-color-active);
|
|
206
202
|
}
|
|
207
203
|
|
|
208
|
-
@if not($item-thumbnail-color-selected) and $item-
|
|
209
|
-
$item-thumbnail-color-selected:
|
|
204
|
+
@if not($item-thumbnail-color-selected) and $item-text-color-selected {
|
|
205
|
+
$item-thumbnail-color-selected: var(--item-text-color-selected);
|
|
210
206
|
}
|
|
211
207
|
|
|
212
|
-
@if not($item-subtitle-color-active) and $item-
|
|
213
|
-
$item-subtitle-color-active: hsla(from
|
|
208
|
+
@if not($item-subtitle-color-active) and $item-text-color-active {
|
|
209
|
+
$item-subtitle-color-active: hsla(from var(--item-text-color-active) h s l / 0.74);
|
|
214
210
|
}
|
|
215
211
|
|
|
216
|
-
@if not($item-subtitle-color-selected) and $item-
|
|
217
|
-
$item-subtitle-color-selected: hsla(from
|
|
212
|
+
@if not($item-subtitle-color-selected) and $item-text-color-selected {
|
|
213
|
+
$item-subtitle-color-selected: hsla(from var(--item-text-color-selected) h s l / 0.74);
|
|
218
214
|
}
|
|
219
215
|
|
|
220
216
|
@if not($item-subtitle-color-active) and $item-text-color-active {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
@use 'sass:map';
|
|
2
|
-
@use '
|
|
2
|
+
@use '../../config';
|
|
3
3
|
@use '../../functions' as *;
|
|
4
4
|
@use '../../schemas/' as *;
|
|
5
5
|
@use '../../../utils/map' as *;
|
|
@@ -89,7 +89,7 @@
|
|
|
89
89
|
}
|
|
90
90
|
|
|
91
91
|
@if not($item-hover-background) and $background {
|
|
92
|
-
$item-hover-background:
|
|
92
|
+
$item-hover-background: dynamic-shade($background);
|
|
93
93
|
}
|
|
94
94
|
|
|
95
95
|
@if not($item-hover-text-color) and $background {
|
|
@@ -101,7 +101,7 @@
|
|
|
101
101
|
}
|
|
102
102
|
|
|
103
103
|
@if not($item-active-background) and $background {
|
|
104
|
-
$item-active-background:
|
|
104
|
+
$item-active-background: dynamic-shade($background, $offset: 10);
|
|
105
105
|
}
|
|
106
106
|
|
|
107
107
|
@if not($item-active-text-color) and $item-active-background {
|