igniteui-theming 1.4.2 → 1.4.3-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/index.js +3 -0
- package/json/colors/meta/multipliers.json +1 -1
- package/package.json +21 -14
- package/sass/animations/_easings.scss +23 -23
- package/sass/animations/entrances/_bounce.scss +3 -3
- package/sass/animations/entrances/_flicker.scss +10 -26
- package/sass/animations/exits/_bounce.scss +6 -6
- package/sass/animations/exits/_flicker.scss +12 -28
- package/sass/animations/exits/_flip.scss +8 -8
- package/sass/animations/exits/_puff.scss +11 -11
- package/sass/animations/exits/_roll.scss +4 -4
- package/sass/animations/exits/_rotate.scss +25 -25
- package/sass/animations/exits/_scale.scss +15 -15
- package/sass/animations/exits/_slide.scss +34 -34
- package/sass/animations/exits/_slit.scss +4 -4
- package/sass/animations/exits/_swing.scss +8 -8
- package/sass/animations/exits/_swirl.scss +18 -18
- package/sass/animations/generic/_flip.scss +4 -4
- package/sass/animations/generic/_rotate.scss +5 -5
- package/sass/animations/generic/_scale.scss +31 -31
- package/sass/animations/generic/_shadows.scss +12 -68
- package/sass/bem/_index.scss +9 -3
- package/sass/color/_charts.scss +1 -1
- package/sass/color/_functions.scss +22 -56
- package/sass/color/_multipliers.scss +14 -14
- package/sass/color/_types.scss +6 -1
- package/sass/color/presets/dark/_bootstrap.scss +1 -1
- package/sass/color/presets/dark/_fluent.scss +3 -3
- package/sass/color/presets/dark/_indigo.scss +1 -1
- package/sass/color/presets/dark/_material.scss +1 -1
- package/sass/color/presets/light/_bootstrap.scss +1 -1
- package/sass/color/presets/light/_extra.scss +2 -2
- package/sass/color/presets/light/_fluent.scss +3 -3
- package/sass/color/presets/light/_indigo.scss +1 -1
- package/sass/color/presets/light/_material.scss +1 -1
- package/sass/elevations/presets/_index.scss +1 -5
- package/sass/elevations/presets/_material.scss +1 -1
- package/sass/themes/_functions.scss +2 -12
- package/sass/themes/_index.scss +1 -0
- package/sass/themes/_mixins.scss +4 -5
- package/sass/themes/charts/_category-chart-theme.scss +15 -11
- package/sass/themes/charts/_data-chart-theme.scss +4 -7
- package/sass/themes/charts/_doughnut-chart-theme.scss +2 -2
- package/sass/themes/charts/_financial-chart-theme.scss +15 -11
- package/sass/themes/charts/_funnel-chart-theme.scss +22 -18
- package/sass/themes/charts/_gauge-theme.scss +8 -16
- package/sass/themes/charts/_geo-map-theme.scss +10 -11
- package/sass/themes/charts/_graph-theme.scss +3 -3
- package/sass/themes/charts/_pie-chart-theme.scss +21 -20
- package/sass/themes/charts/_shape-chart-theme.scss +15 -11
- package/sass/themes/charts/_sparkline-theme.scss +2 -2
- package/sass/themes/schemas/_index.scss +10 -33
- package/sass/themes/schemas/charts/light/_category-chart.scss +68 -24
- package/sass/themes/schemas/charts/light/_data-chart.scss +12 -3
- package/sass/themes/schemas/charts/light/_financial-chart.scss +1 -1
- package/sass/themes/schemas/charts/light/_gauge.scss +14 -5
- package/sass/themes/schemas/charts/light/_geo-map.scss +2 -2
- package/sass/themes/schemas/charts/light/_graph.scss +20 -5
- package/sass/themes/schemas/charts/light/_pie-chart.scss +4 -1
- package/sass/themes/schemas/charts/light/_shape-chart.scss +8 -2
- package/sass/themes/schemas/charts/light/_sparkline.scss +4 -1
- package/sass/themes/schemas/components/_index.scss +2 -0
- package/sass/themes/schemas/components/dark/_avatar.scss +46 -0
- package/sass/themes/schemas/components/dark/_button.scss +491 -0
- package/sass/themes/schemas/components/dark/_checkbox.scss +88 -0
- package/sass/themes/schemas/components/dark/_combo.scss +56 -0
- package/sass/themes/schemas/components/dark/_drop-down.scss +86 -0
- package/sass/themes/schemas/components/dark/_icon.scss +39 -0
- package/sass/themes/schemas/components/dark/_index.scss +120 -0
- package/sass/themes/schemas/components/dark/_input-group.scss +170 -0
- package/sass/themes/schemas/components/dark/_navbar.scss +27 -0
- package/sass/themes/schemas/components/dark/_radio.scss +144 -0
- package/sass/themes/schemas/components/dark/_rating.scss +29 -0
- package/sass/themes/schemas/components/dark/_select.scss +56 -0
- package/sass/themes/schemas/components/dark/_slider.scss +136 -0
- package/sass/themes/schemas/components/dark/_switch.scss +216 -0
- package/sass/themes/schemas/components/dark/_tabs.scss +65 -0
- package/sass/themes/schemas/components/dark/_tree.scss +132 -0
- package/sass/themes/schemas/components/elevation/_button.scss +63 -0
- package/sass/themes/schemas/components/elevation/_drop-down.scss +29 -0
- package/sass/themes/schemas/components/elevation/_input-group.scss +37 -0
- package/sass/themes/schemas/components/elevation/_navbar.scss +23 -0
- package/sass/themes/schemas/components/elevation/_switch.scss +15 -0
- package/sass/themes/schemas/components/light/_avatar.scss +69 -0
- package/sass/themes/schemas/components/light/_button.scss +1700 -0
- package/sass/themes/schemas/components/light/_checkbox.scss +285 -0
- package/sass/themes/schemas/components/light/_combo.scss +317 -0
- package/sass/themes/schemas/components/light/_drop-down.scss +376 -0
- package/sass/themes/schemas/components/light/_icon.scss +55 -0
- package/sass/themes/schemas/components/light/_index.scss +121 -0
- package/sass/themes/schemas/components/light/_input-group.scss +794 -0
- package/sass/themes/schemas/components/light/_navbar.scss +116 -0
- package/sass/themes/schemas/components/light/_radio.scss +279 -0
- package/sass/themes/schemas/components/light/_rating.scss +129 -0
- package/sass/themes/schemas/components/light/_select.scss +176 -0
- package/sass/themes/schemas/components/light/_slider.scss +362 -0
- package/sass/themes/schemas/components/light/_switch.scss +473 -0
- package/sass/themes/schemas/components/light/_tabs.scss +402 -0
- package/sass/themes/schemas/components/light/_tree.scss +288 -0
- package/sass/typography/_functions.scss +7 -5
- package/sass/typography/_mixins.scss +1 -3
- package/sass/typography/_types.scss +2 -16
- package/sass/typography/presets/_bootstrap.scss +24 -24
- package/sass/typography/presets/_fluent.scss +23 -23
- package/sass/typography/presets/_indigo.scss +24 -24
- package/sass/typography/presets/_material.scss +23 -23
- package/sass/utils/_css.scss +6 -1
- package/sass/utils/_map.scss +4 -8
- package/sass/utils/_string.scss +14 -6
package/sass/bem/_index.scss
CHANGED
|
@@ -153,7 +153,7 @@ $bem--sep-mod-val: if(meta.variable-exists(bem--sep-mod-val), $bem--sep-mod-val,
|
|
|
153
153
|
// Return early if possible
|
|
154
154
|
$mods: $m or $mod or $mods;
|
|
155
155
|
|
|
156
|
-
@if not
|
|
156
|
+
@if not($elem or $mods) {
|
|
157
157
|
@return $block;
|
|
158
158
|
}
|
|
159
159
|
|
|
@@ -176,7 +176,7 @@ $bem--sep-mod-val: if(meta.variable-exists(bem--sep-mod-val), $bem--sep-mod-val,
|
|
|
176
176
|
}
|
|
177
177
|
|
|
178
178
|
@if meta.type-of($mods) != 'list' {
|
|
179
|
-
$mods: ($mods
|
|
179
|
+
$mods: ($mods);
|
|
180
180
|
}
|
|
181
181
|
|
|
182
182
|
$bemcls: '';
|
|
@@ -352,7 +352,13 @@ $bem--sep-mod-val: if(meta.variable-exists(bem--sep-mod-val), $bem--sep-mod-val,
|
|
|
352
352
|
@error 'Nesting a Modifier inside a pseudo-selector is not supported: #{$this} #{$mod}';
|
|
353
353
|
}
|
|
354
354
|
|
|
355
|
-
$mod-classes: list.append(
|
|
355
|
+
$mod-classes: list.append(
|
|
356
|
+
$mod-classes,
|
|
357
|
+
#{bem-selector(
|
|
358
|
+
$block: $this,
|
|
359
|
+
$m: $mod,
|
|
360
|
+
)}
|
|
361
|
+
);
|
|
356
362
|
}
|
|
357
363
|
|
|
358
364
|
@at-root {
|
package/sass/color/_charts.scss
CHANGED
|
@@ -55,7 +55,7 @@ $_enhanced-accessibility: false;
|
|
|
55
55
|
$success: #4eb862,
|
|
56
56
|
$warn: #faa419,
|
|
57
57
|
$error: #ff134a,
|
|
58
|
-
$variant: null
|
|
58
|
+
$variant: null
|
|
59
59
|
) {
|
|
60
60
|
$color-shades: types.$IColorShades;
|
|
61
61
|
$gray-shades: types.$IGrayShades;
|
|
@@ -95,12 +95,7 @@ $_enhanced-accessibility: false;
|
|
|
95
95
|
/// @returns {Map} - A map consisting of hsla color shades and their respective contrast colors.
|
|
96
96
|
/// @example scss
|
|
97
97
|
/// $special-color-shades: shades('accent', #09f, (50,100,200,300,400,500,600,700,800,900))
|
|
98
|
-
@function shades(
|
|
99
|
-
$name,
|
|
100
|
-
$color,
|
|
101
|
-
$shades,
|
|
102
|
-
$surface: null
|
|
103
|
-
) {
|
|
98
|
+
@function shades($name, $color, $shades, $surface: null) {
|
|
104
99
|
$result: ();
|
|
105
100
|
|
|
106
101
|
@each $variant in $shades {
|
|
@@ -128,44 +123,31 @@ $_enhanced-accessibility: false;
|
|
|
128
123
|
/// @require {function} luminance
|
|
129
124
|
/// @require {function} to-fixed
|
|
130
125
|
/// @returns {Map} - A map containing a list of HSL values and a raw color value.
|
|
131
|
-
@function shade(
|
|
132
|
-
$name,
|
|
133
|
-
$color,
|
|
134
|
-
$shade,
|
|
135
|
-
$surface: null,
|
|
136
|
-
) {
|
|
126
|
+
@function shade($name, $color, $shade, $surface: null) {
|
|
137
127
|
$h: var(--ig-#{$name}-h);
|
|
138
128
|
$s: var(--ig-#{$name}-s);
|
|
139
129
|
$l: var(--ig-#{$name}-l);
|
|
140
130
|
|
|
141
131
|
@if #{$name} == 'gray' {
|
|
142
132
|
$lum: luminance($surface);
|
|
143
|
-
$color: if($color, $color, if($lum > .5, #000, #fff));
|
|
133
|
+
$color: if($color, $color, if($lum > 0.5, #000, #fff));
|
|
144
134
|
$lmap: map.get(multipliers.$grayscale, 'l');
|
|
145
135
|
$len: list.length($lmap);
|
|
146
136
|
$i: list.index(map.keys($lmap), $shade);
|
|
147
|
-
$l: list.nth(map.values($lmap), if($lum > .5, $len - $i + 1, $i));
|
|
148
|
-
|
|
149
|
-
@return (
|
|
150
|
-
raw: hsl(
|
|
151
|
-
to-fixed(color.hue($color)),
|
|
152
|
-
to-fixed(color.saturation($color)),
|
|
153
|
-
$l
|
|
154
|
-
),
|
|
155
|
-
hsl: #{$h, $s, $l}
|
|
156
|
-
);
|
|
137
|
+
$l: list.nth(map.values($lmap), if($lum > 0.5, $len - $i + 1, $i));
|
|
138
|
+
|
|
139
|
+
@return (raw: hsl(to-fixed(color.hue($color)), to-fixed(color.saturation($color)), $l), hsl: #{$h, $s, $l});
|
|
157
140
|
} @else {
|
|
158
141
|
$sx: map.get(multipliers.$color, 's', $shade);
|
|
159
142
|
$lx: map.get(multipliers.$color, 'l', $shade);
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
to-fixed(color.saturation($color) * $sx),
|
|
165
|
-
to-fixed(color.lightness($color) * $lx)
|
|
166
|
-
),
|
|
167
|
-
hsl: #{$h, calc(#{$s} * #{$sx}), calc(#{$l} * #{$lx})}
|
|
143
|
+
$raw: hsl(
|
|
144
|
+
to-fixed(color.hue($color)),
|
|
145
|
+
to-fixed(color.saturation($color) * $sx),
|
|
146
|
+
to-fixed(color.lightness($color) * $lx)
|
|
168
147
|
);
|
|
148
|
+
$hsl: #{$h, calc(#{$s} * #{$sx}), calc(#{$l} * #{$lx})};
|
|
149
|
+
|
|
150
|
+
@return (raw: $raw, hsl: $hsl);
|
|
169
151
|
}
|
|
170
152
|
}
|
|
171
153
|
|
|
@@ -193,11 +175,7 @@ $_enhanced-accessibility: false;
|
|
|
193
175
|
$c: map.get($palette or types.$IPalette, #{$color});
|
|
194
176
|
$a: var(--ig-#{$color}-a);
|
|
195
177
|
$s: #{var(--ig-#{$color}-#{$variant})};
|
|
196
|
-
$contrast: if(
|
|
197
|
-
meta.type-of($variant) == string,
|
|
198
|
-
string.index($variant, 'contrast'),
|
|
199
|
-
false
|
|
200
|
-
);
|
|
178
|
+
$contrast: if(meta.type-of($variant) == string, string.index($variant, 'contrast'), false);
|
|
201
179
|
$meta: if($palette, map.get($palette, '_meta'), null);
|
|
202
180
|
|
|
203
181
|
@if not($c) {
|
|
@@ -205,11 +183,7 @@ $_enhanced-accessibility: false;
|
|
|
205
183
|
}
|
|
206
184
|
|
|
207
185
|
@if not($palette) or not($meta) {
|
|
208
|
-
@return if(
|
|
209
|
-
$contrast,
|
|
210
|
-
$s,
|
|
211
|
-
hsla($s, if($opacity, $opacity, $a)),
|
|
212
|
-
);
|
|
186
|
+
@return if($contrast, $s, hsla($s, if($opacity, $opacity, $a)));
|
|
213
187
|
}
|
|
214
188
|
|
|
215
189
|
@return rgba(map.get($c, $variant), $alpha: if($opacity, $opacity, 1));
|
|
@@ -248,11 +222,7 @@ $_enhanced-accessibility: false;
|
|
|
248
222
|
/// background: #09f
|
|
249
223
|
/// color: text-contrast(#09f)
|
|
250
224
|
/// }
|
|
251
|
-
@function text-contrast(
|
|
252
|
-
$background,
|
|
253
|
-
$foreground: white,
|
|
254
|
-
$contrast: 'AAA'
|
|
255
|
-
) {
|
|
225
|
+
@function text-contrast($background, $foreground: white, $contrast: 'AAA') {
|
|
256
226
|
@if meta.type-of($foreground) != 'list' and meta.type-of($background) != 'color' {
|
|
257
227
|
@return $background;
|
|
258
228
|
}
|
|
@@ -261,7 +231,7 @@ $_enhanced-accessibility: false;
|
|
|
261
231
|
(
|
|
262
232
|
'a': 3,
|
|
263
233
|
'aa': 4.5,
|
|
264
|
-
'aaa': 7
|
|
234
|
+
'aaa': 7,
|
|
265
235
|
),
|
|
266
236
|
string.to-lower-case($contrast)
|
|
267
237
|
);
|
|
@@ -341,8 +311,8 @@ $_enhanced-accessibility: false;
|
|
|
341
311
|
/// contrast(#09f, #000);
|
|
342
312
|
/// @returns {Number} - The contrast ratio between the background and foreground colors.
|
|
343
313
|
@function contrast($background, $foreground) {
|
|
344
|
-
$backLum: luminance($background) + .05;
|
|
345
|
-
$foreLum: luminance($foreground) + .05;
|
|
314
|
+
$backLum: luminance($background) + 0.05;
|
|
315
|
+
$foreLum: luminance($foreground) + 0.05;
|
|
346
316
|
|
|
347
317
|
@return to-fixed(math.div(math.max($backLum, $foreLum), math.min($backLum, $foreLum)));
|
|
348
318
|
}
|
|
@@ -361,7 +331,7 @@ $_enhanced-accessibility: false;
|
|
|
361
331
|
$g: math.div(color.green($color), 255);
|
|
362
332
|
$b: math.div(color.blue($color), 255);
|
|
363
333
|
|
|
364
|
-
@return .2126 * _lcv($r) + .7152 * _lcv($g) + .0722 * _lcv($b);
|
|
334
|
+
@return 0.2126 * _lcv($r) + 0.7152 * _lcv($g) + 0.0722 * _lcv($b);
|
|
365
335
|
}
|
|
366
336
|
|
|
367
337
|
@return $color;
|
|
@@ -374,11 +344,7 @@ $_enhanced-accessibility: false;
|
|
|
374
344
|
/// @returns {Number} - The calculated linear channel value
|
|
375
345
|
@function _lcv($value) {
|
|
376
346
|
/* stylelint-disable number-max-precision */
|
|
377
|
-
@return if(
|
|
378
|
-
$value < .03928,
|
|
379
|
-
math.div($value, 12.92),
|
|
380
|
-
math.pow(math.div($value + .055, 1.055), 2.4)
|
|
381
|
-
);
|
|
347
|
+
@return if($value < 0.03928, math.div($value, 12.92), math.pow(math.div($value + 0.055, 1.055), 2.4));
|
|
382
348
|
}
|
|
383
349
|
|
|
384
350
|
/// Returns a list of colors to be used as chart brushes.
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
$color: (
|
|
2
2
|
s: (
|
|
3
3
|
50: 1.23,
|
|
4
|
-
100: .8,
|
|
5
|
-
200: .64,
|
|
6
|
-
300: .73,
|
|
7
|
-
400: .875,
|
|
4
|
+
100: 0.8,
|
|
5
|
+
200: 0.64,
|
|
6
|
+
300: 0.73,
|
|
7
|
+
400: 0.875,
|
|
8
8
|
500: 1,
|
|
9
9
|
600: 1.26,
|
|
10
10
|
700: 1.52,
|
|
@@ -13,7 +13,7 @@ $color: (
|
|
|
13
13
|
'A100': 1.23,
|
|
14
14
|
'A200': 1.22,
|
|
15
15
|
'A400': 1.23,
|
|
16
|
-
'A700': 1.23
|
|
16
|
+
'A700': 1.23,
|
|
17
17
|
),
|
|
18
18
|
l: (
|
|
19
19
|
50: 1.78,
|
|
@@ -22,15 +22,15 @@ $color: (
|
|
|
22
22
|
300: 1.19,
|
|
23
23
|
400: 1.08,
|
|
24
24
|
500: 1,
|
|
25
|
-
600: .89,
|
|
26
|
-
700: .81,
|
|
27
|
-
800: .73,
|
|
28
|
-
900: .64,
|
|
25
|
+
600: 0.89,
|
|
26
|
+
700: 0.81,
|
|
27
|
+
800: 0.73,
|
|
28
|
+
900: 0.64,
|
|
29
29
|
'A100': 1.34,
|
|
30
30
|
'A200': 1.16,
|
|
31
|
-
'A400': .91,
|
|
32
|
-
'A700': .65
|
|
33
|
-
)
|
|
31
|
+
'A400': 0.91,
|
|
32
|
+
'A700': 0.65,
|
|
33
|
+
),
|
|
34
34
|
);
|
|
35
35
|
$grayscale: (
|
|
36
36
|
l: (
|
|
@@ -43,6 +43,6 @@ $grayscale: (
|
|
|
43
43
|
600: 88%,
|
|
44
44
|
700: 93%,
|
|
45
45
|
800: 96%,
|
|
46
|
-
900: 98
|
|
47
|
-
)
|
|
46
|
+
900: 98%,
|
|
47
|
+
),
|
|
48
48
|
);
|
package/sass/color/_types.scss
CHANGED
|
@@ -40,4 +40,9 @@ $IPaletteMeta: (
|
|
|
40
40
|
/// A map with all palette colors and palette meta
|
|
41
41
|
/// @type Map
|
|
42
42
|
/// @access private
|
|
43
|
-
$IPalette: map.merge(
|
|
43
|
+
$IPalette: map.merge(
|
|
44
|
+
$IPaletteColors,
|
|
45
|
+
(
|
|
46
|
+
_meta: $IPaletteMeta,
|
|
47
|
+
)
|
|
48
|
+
);
|
|
@@ -28,7 +28,7 @@ $palette: palette(
|
|
|
28
28
|
$success: #107c10,
|
|
29
29
|
$warn: #797673,
|
|
30
30
|
$error: #a80000,
|
|
31
|
-
$variant: 'fluent'
|
|
31
|
+
$variant: 'fluent',
|
|
32
32
|
);
|
|
33
33
|
|
|
34
34
|
/// Generates the dark fluent word palette.
|
|
@@ -50,7 +50,7 @@ $word-palette: palette(
|
|
|
50
50
|
$success: #107c10,
|
|
51
51
|
$warn: #797673,
|
|
52
52
|
$error: #a80000,
|
|
53
|
-
$variant: 'fluent'
|
|
53
|
+
$variant: 'fluent',
|
|
54
54
|
);
|
|
55
55
|
|
|
56
56
|
/// Generates the dark fluent excel palette.
|
|
@@ -72,5 +72,5 @@ $excel-palette: palette(
|
|
|
72
72
|
$success: #107c10,
|
|
73
73
|
$warn: #797673,
|
|
74
74
|
$error: #a80000,
|
|
75
|
-
$variant: 'fluent'
|
|
75
|
+
$variant: 'fluent',
|
|
76
76
|
);
|
|
@@ -27,7 +27,7 @@ $green-palette: palette(
|
|
|
27
27
|
$info: #1377d5,
|
|
28
28
|
$success: #4eb862,
|
|
29
29
|
$warn: #fbb13c,
|
|
30
|
-
$error: #ff134a
|
|
30
|
+
$error: #ff134a,
|
|
31
31
|
);
|
|
32
32
|
|
|
33
33
|
/// Generates the light purple palette.
|
|
@@ -48,5 +48,5 @@ $purple-palette: palette(
|
|
|
48
48
|
$info: #1377d5,
|
|
49
49
|
$success: #4eb862,
|
|
50
50
|
$warn: #fbb13c,
|
|
51
|
-
$error: #ff134a
|
|
51
|
+
$error: #ff134a,
|
|
52
52
|
);
|
|
@@ -28,7 +28,7 @@ $palette: palette(
|
|
|
28
28
|
$success: #107c10,
|
|
29
29
|
$warn: #797673,
|
|
30
30
|
$error: #a80000,
|
|
31
|
-
$variant: 'fluent'
|
|
31
|
+
$variant: 'fluent',
|
|
32
32
|
);
|
|
33
33
|
|
|
34
34
|
/// Generates the light fluent word palette.
|
|
@@ -50,7 +50,7 @@ $word-palette: palette(
|
|
|
50
50
|
$success: #107c10,
|
|
51
51
|
$warn: #797673,
|
|
52
52
|
$error: #a80000,
|
|
53
|
-
$variant: 'fluent'
|
|
53
|
+
$variant: 'fluent',
|
|
54
54
|
);
|
|
55
55
|
|
|
56
56
|
/// Generates the dark green palette.
|
|
@@ -72,5 +72,5 @@ $excel-palette: palette(
|
|
|
72
72
|
$success: #107c10,
|
|
73
73
|
$warn: #797673,
|
|
74
74
|
$error: #a80000,
|
|
75
|
-
$variant: 'fluent'
|
|
75
|
+
$variant: 'fluent',
|
|
76
76
|
);
|
|
@@ -13,8 +13,4 @@ $color-2: rgba(0 0 0 / 12%) !default;
|
|
|
13
13
|
/// @access private
|
|
14
14
|
$color-3: rgba(0 0 0 / 8%) !default;
|
|
15
15
|
|
|
16
|
-
@forward './material' as material-* with(
|
|
17
|
-
$color-1: $color-1,
|
|
18
|
-
$color-2: $color-2,
|
|
19
|
-
$color-3: $color-3
|
|
20
|
-
);
|
|
16
|
+
@forward './material' as material-* with($color-1: $color-1, $color-2: $color-2, $color-3: $color-3);
|
|
@@ -38,22 +38,12 @@
|
|
|
38
38
|
|
|
39
39
|
// Special case for chart elevation literals
|
|
40
40
|
@if string.index($key, 'elevation') {
|
|
41
|
-
$result: map.merge(
|
|
42
|
-
$result,
|
|
43
|
-
(
|
|
44
|
-
#{$key}: #{elevation($value)}
|
|
45
|
-
)
|
|
46
|
-
);
|
|
41
|
+
$result: map.merge($result, (#{$key}: #{elevation($value)}));
|
|
47
42
|
}
|
|
48
43
|
|
|
49
44
|
// Special case for chart brushes
|
|
50
45
|
@if $value == 'series' {
|
|
51
|
-
$result: map.merge(
|
|
52
|
-
$result,
|
|
53
|
-
(
|
|
54
|
-
#{$key}: #{color.chart-brushes()}
|
|
55
|
-
)
|
|
56
|
-
);
|
|
46
|
+
$result: map.merge($result, (#{$key}: #{color.chart-brushes()}));
|
|
57
47
|
}
|
|
58
48
|
}
|
|
59
49
|
|
package/sass/themes/_index.scss
CHANGED
package/sass/themes/_mixins.scss
CHANGED
|
@@ -148,10 +148,9 @@ $ignored-keys: ('name', 'palette', 'variant', 'selector', 'type', '_meta');
|
|
|
148
148
|
/// }
|
|
149
149
|
@mixin sizable() {
|
|
150
150
|
--is-large: clamp(0, (var(--component-size, 1) + 1) - var(--ig-size-large, 3), 1);
|
|
151
|
-
--is-medium:
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
);
|
|
151
|
+
--is-medium: min(
|
|
152
|
+
clamp(0, (var(--component-size, 1) + 1) - var(--ig-size-medium, 2), 1),
|
|
153
|
+
clamp(0, var(--ig-size-large, 3) - var(--component-size, 1), 1)
|
|
154
|
+
);
|
|
156
155
|
--is-small: clamp(0, var(--ig-size-medium) - var(--component-size, 1), 1);
|
|
157
156
|
}
|
|
@@ -140,7 +140,7 @@
|
|
|
140
140
|
(
|
|
141
141
|
'angular': 'igx-category-chart',
|
|
142
142
|
'webc': 'igc-category-chart',
|
|
143
|
-
'blazor': 'igb-category-chart'
|
|
143
|
+
'blazor': 'igb-category-chart',
|
|
144
144
|
),
|
|
145
145
|
$target
|
|
146
146
|
);
|
|
@@ -261,7 +261,7 @@
|
|
|
261
261
|
y-axis-title-text-style: $y-axis-title-text-style,
|
|
262
262
|
y-axis-tick-length: $y-axis-tick-length,
|
|
263
263
|
y-axis-tick-stroke: $y-axis-tick-stroke,
|
|
264
|
-
y-axis-tick-stroke-thickness: $y-axis-tick-stroke-thickness
|
|
264
|
+
y-axis-tick-stroke-thickness: $y-axis-tick-stroke-thickness,
|
|
265
265
|
)
|
|
266
266
|
);
|
|
267
267
|
}
|
|
@@ -280,20 +280,24 @@
|
|
|
280
280
|
/// 'y-axis-title-text-style': 'body-2',
|
|
281
281
|
/// )] - The categories from the typographic scale used for type styles.
|
|
282
282
|
/// @requires {mixin} type-style
|
|
283
|
-
@mixin category-chart-typography(
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
283
|
+
@mixin category-chart-typography(
|
|
284
|
+
$type-scale,
|
|
285
|
+
$categories: (
|
|
286
|
+
'title': 'h6',
|
|
287
|
+
'subtitle': 'subtitle-1',
|
|
288
|
+
'x-axis-label-text-style': 'body-2',
|
|
289
|
+
'x-axis-title-text-style': 'body-2',
|
|
290
|
+
'y-axis-label-text-style': 'body-2',
|
|
291
|
+
'y-axis-title-text-style': 'body-2'
|
|
292
|
+
),
|
|
293
|
+
$target: 'angular'
|
|
294
|
+
) {
|
|
291
295
|
$name: 'category-chart';
|
|
292
296
|
$selector: map.get(
|
|
293
297
|
(
|
|
294
298
|
'angular': 'igx-category-chart',
|
|
295
299
|
'webc': 'igc-category-chart',
|
|
296
|
-
'blazor': 'igb-category-chart'
|
|
300
|
+
'blazor': 'igb-category-chart',
|
|
297
301
|
),
|
|
298
302
|
$target
|
|
299
303
|
);
|
|
@@ -49,14 +49,14 @@
|
|
|
49
49
|
$marker-outlines: null,
|
|
50
50
|
$plot-area-background: null,
|
|
51
51
|
$title-horizontal-alignment: null,
|
|
52
|
-
$subtitle-horizontal-alignment: null
|
|
52
|
+
$subtitle-horizontal-alignment: null
|
|
53
53
|
) {
|
|
54
54
|
$name: 'data-chart';
|
|
55
55
|
$selector: map.get(
|
|
56
56
|
(
|
|
57
57
|
'angular': 'igx-data-chart',
|
|
58
58
|
'webc': 'igc-data-chart',
|
|
59
|
-
'blazor': 'igb-data-chart'
|
|
59
|
+
'blazor': 'igb-data-chart',
|
|
60
60
|
),
|
|
61
61
|
$target
|
|
62
62
|
);
|
|
@@ -119,10 +119,7 @@
|
|
|
119
119
|
/// @param {Map} $type-scale - A typographic scale as produced by type-scale.
|
|
120
120
|
/// @param {Map} $categories [(title: 'h6', subtitle: 'subtitle-1')] - The categories from the typographic scale used for type styles.
|
|
121
121
|
/// @requires {mixin} type-style
|
|
122
|
-
@mixin data-chart-typography($type-scale, $categories: (
|
|
123
|
-
title: 'h6',
|
|
124
|
-
subtitle: 'subtitle-1',
|
|
125
|
-
), $target: 'angular') {
|
|
122
|
+
@mixin data-chart-typography($type-scale, $categories: (title: 'h6', subtitle: 'subtitle-1'), $target: 'angular') {
|
|
126
123
|
$name: 'data-chart';
|
|
127
124
|
$title: map.get($categories, 'title');
|
|
128
125
|
$subtitle: map.get($categories, 'subtitle');
|
|
@@ -132,7 +129,7 @@
|
|
|
132
129
|
(
|
|
133
130
|
'angular': 'igx-data-chart',
|
|
134
131
|
'webc': 'igc-data-chart',
|
|
135
|
-
'blazor': 'igb-data-chart'
|
|
132
|
+
'blazor': 'igb-data-chart',
|
|
136
133
|
),
|
|
137
134
|
$target
|
|
138
135
|
);
|
|
@@ -42,14 +42,14 @@
|
|
|
42
42
|
$selected-slice-fill: null,
|
|
43
43
|
$selected-slice-opacity: null,
|
|
44
44
|
$selected-slice-stroke: null,
|
|
45
|
-
$selected-slice-stroke-thickness: null
|
|
45
|
+
$selected-slice-stroke-thickness: null
|
|
46
46
|
) {
|
|
47
47
|
$name: 'doughnut-chart';
|
|
48
48
|
$selector: map.get(
|
|
49
49
|
(
|
|
50
50
|
'angular': 'igx-doughnut-chart',
|
|
51
51
|
'webc': 'igc-doughnut-chart',
|
|
52
|
-
'blazor': 'igb-doughnut-chart'
|
|
52
|
+
'blazor': 'igb-doughnut-chart',
|
|
53
53
|
),
|
|
54
54
|
$target
|
|
55
55
|
);
|
|
@@ -145,7 +145,7 @@
|
|
|
145
145
|
(
|
|
146
146
|
'angular': 'igx-financial-chart',
|
|
147
147
|
'webc': 'igc-financial-chart',
|
|
148
|
-
'blazor': 'igb-financial-chart'
|
|
148
|
+
'blazor': 'igb-financial-chart',
|
|
149
149
|
),
|
|
150
150
|
$target
|
|
151
151
|
);
|
|
@@ -267,7 +267,7 @@
|
|
|
267
267
|
y-axis-title-margin: $y-axis-title-margin,
|
|
268
268
|
y-axis-title-text-color: $y-axis-title-text-color,
|
|
269
269
|
zoom-slider-x-axis-major-stroke: $zoom-slider-x-axis-major-stroke,
|
|
270
|
-
zoom-slider-x-axis-major-stroke-thicknes: $zoom-slider-x-axis-major-stroke-thickness
|
|
270
|
+
zoom-slider-x-axis-major-stroke-thicknes: $zoom-slider-x-axis-major-stroke-thickness,
|
|
271
271
|
)
|
|
272
272
|
);
|
|
273
273
|
}
|
|
@@ -286,20 +286,24 @@
|
|
|
286
286
|
/// 'y-axis-title-text-style': 'body-2',
|
|
287
287
|
/// )] - The categories from the typographic scale used for type styles.
|
|
288
288
|
/// @requires {mixin} type-style
|
|
289
|
-
@mixin financial-chart-typography(
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
289
|
+
@mixin financial-chart-typography(
|
|
290
|
+
$type-scale,
|
|
291
|
+
$categories: (
|
|
292
|
+
'title': 'h6',
|
|
293
|
+
'subtitle': 'subtitle-1',
|
|
294
|
+
'x-axis-label-text-style': 'body-2',
|
|
295
|
+
'x-axis-title-text-style': 'body-2',
|
|
296
|
+
'y-axis-label-text-style': 'body-2',
|
|
297
|
+
'y-axis-title-text-style': 'body-2'
|
|
298
|
+
),
|
|
299
|
+
$target: 'angular'
|
|
300
|
+
) {
|
|
297
301
|
$name: 'financial-chart';
|
|
298
302
|
$selector: map.get(
|
|
299
303
|
(
|
|
300
304
|
'angular': 'igx-financial-chart',
|
|
301
305
|
'webc': 'igc-financial-chart',
|
|
302
|
-
'blazor': 'igb-financial-chart'
|
|
306
|
+
'blazor': 'igb-financial-chart',
|
|
303
307
|
),
|
|
304
308
|
$target
|
|
305
309
|
);
|