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.
Files changed (109) hide show
  1. package/index.js +3 -0
  2. package/json/colors/meta/multipliers.json +1 -1
  3. package/package.json +21 -14
  4. package/sass/animations/_easings.scss +23 -23
  5. package/sass/animations/entrances/_bounce.scss +3 -3
  6. package/sass/animations/entrances/_flicker.scss +10 -26
  7. package/sass/animations/exits/_bounce.scss +6 -6
  8. package/sass/animations/exits/_flicker.scss +12 -28
  9. package/sass/animations/exits/_flip.scss +8 -8
  10. package/sass/animations/exits/_puff.scss +11 -11
  11. package/sass/animations/exits/_roll.scss +4 -4
  12. package/sass/animations/exits/_rotate.scss +25 -25
  13. package/sass/animations/exits/_scale.scss +15 -15
  14. package/sass/animations/exits/_slide.scss +34 -34
  15. package/sass/animations/exits/_slit.scss +4 -4
  16. package/sass/animations/exits/_swing.scss +8 -8
  17. package/sass/animations/exits/_swirl.scss +18 -18
  18. package/sass/animations/generic/_flip.scss +4 -4
  19. package/sass/animations/generic/_rotate.scss +5 -5
  20. package/sass/animations/generic/_scale.scss +31 -31
  21. package/sass/animations/generic/_shadows.scss +12 -68
  22. package/sass/bem/_index.scss +9 -3
  23. package/sass/color/_charts.scss +1 -1
  24. package/sass/color/_functions.scss +22 -56
  25. package/sass/color/_multipliers.scss +14 -14
  26. package/sass/color/_types.scss +6 -1
  27. package/sass/color/presets/dark/_bootstrap.scss +1 -1
  28. package/sass/color/presets/dark/_fluent.scss +3 -3
  29. package/sass/color/presets/dark/_indigo.scss +1 -1
  30. package/sass/color/presets/dark/_material.scss +1 -1
  31. package/sass/color/presets/light/_bootstrap.scss +1 -1
  32. package/sass/color/presets/light/_extra.scss +2 -2
  33. package/sass/color/presets/light/_fluent.scss +3 -3
  34. package/sass/color/presets/light/_indigo.scss +1 -1
  35. package/sass/color/presets/light/_material.scss +1 -1
  36. package/sass/elevations/presets/_index.scss +1 -5
  37. package/sass/elevations/presets/_material.scss +1 -1
  38. package/sass/themes/_functions.scss +2 -12
  39. package/sass/themes/_index.scss +1 -0
  40. package/sass/themes/_mixins.scss +4 -5
  41. package/sass/themes/charts/_category-chart-theme.scss +15 -11
  42. package/sass/themes/charts/_data-chart-theme.scss +4 -7
  43. package/sass/themes/charts/_doughnut-chart-theme.scss +2 -2
  44. package/sass/themes/charts/_financial-chart-theme.scss +15 -11
  45. package/sass/themes/charts/_funnel-chart-theme.scss +22 -18
  46. package/sass/themes/charts/_gauge-theme.scss +8 -16
  47. package/sass/themes/charts/_geo-map-theme.scss +10 -11
  48. package/sass/themes/charts/_graph-theme.scss +3 -3
  49. package/sass/themes/charts/_pie-chart-theme.scss +21 -20
  50. package/sass/themes/charts/_shape-chart-theme.scss +15 -11
  51. package/sass/themes/charts/_sparkline-theme.scss +2 -2
  52. package/sass/themes/schemas/_index.scss +10 -33
  53. package/sass/themes/schemas/charts/light/_category-chart.scss +68 -24
  54. package/sass/themes/schemas/charts/light/_data-chart.scss +12 -3
  55. package/sass/themes/schemas/charts/light/_financial-chart.scss +1 -1
  56. package/sass/themes/schemas/charts/light/_gauge.scss +14 -5
  57. package/sass/themes/schemas/charts/light/_geo-map.scss +2 -2
  58. package/sass/themes/schemas/charts/light/_graph.scss +20 -5
  59. package/sass/themes/schemas/charts/light/_pie-chart.scss +4 -1
  60. package/sass/themes/schemas/charts/light/_shape-chart.scss +8 -2
  61. package/sass/themes/schemas/charts/light/_sparkline.scss +4 -1
  62. package/sass/themes/schemas/components/_index.scss +2 -0
  63. package/sass/themes/schemas/components/dark/_avatar.scss +46 -0
  64. package/sass/themes/schemas/components/dark/_button.scss +491 -0
  65. package/sass/themes/schemas/components/dark/_checkbox.scss +88 -0
  66. package/sass/themes/schemas/components/dark/_combo.scss +56 -0
  67. package/sass/themes/schemas/components/dark/_drop-down.scss +86 -0
  68. package/sass/themes/schemas/components/dark/_icon.scss +39 -0
  69. package/sass/themes/schemas/components/dark/_index.scss +120 -0
  70. package/sass/themes/schemas/components/dark/_input-group.scss +170 -0
  71. package/sass/themes/schemas/components/dark/_navbar.scss +27 -0
  72. package/sass/themes/schemas/components/dark/_radio.scss +144 -0
  73. package/sass/themes/schemas/components/dark/_rating.scss +29 -0
  74. package/sass/themes/schemas/components/dark/_select.scss +56 -0
  75. package/sass/themes/schemas/components/dark/_slider.scss +136 -0
  76. package/sass/themes/schemas/components/dark/_switch.scss +216 -0
  77. package/sass/themes/schemas/components/dark/_tabs.scss +65 -0
  78. package/sass/themes/schemas/components/dark/_tree.scss +132 -0
  79. package/sass/themes/schemas/components/elevation/_button.scss +63 -0
  80. package/sass/themes/schemas/components/elevation/_drop-down.scss +29 -0
  81. package/sass/themes/schemas/components/elevation/_input-group.scss +37 -0
  82. package/sass/themes/schemas/components/elevation/_navbar.scss +23 -0
  83. package/sass/themes/schemas/components/elevation/_switch.scss +15 -0
  84. package/sass/themes/schemas/components/light/_avatar.scss +69 -0
  85. package/sass/themes/schemas/components/light/_button.scss +1700 -0
  86. package/sass/themes/schemas/components/light/_checkbox.scss +285 -0
  87. package/sass/themes/schemas/components/light/_combo.scss +317 -0
  88. package/sass/themes/schemas/components/light/_drop-down.scss +376 -0
  89. package/sass/themes/schemas/components/light/_icon.scss +55 -0
  90. package/sass/themes/schemas/components/light/_index.scss +121 -0
  91. package/sass/themes/schemas/components/light/_input-group.scss +794 -0
  92. package/sass/themes/schemas/components/light/_navbar.scss +116 -0
  93. package/sass/themes/schemas/components/light/_radio.scss +279 -0
  94. package/sass/themes/schemas/components/light/_rating.scss +129 -0
  95. package/sass/themes/schemas/components/light/_select.scss +176 -0
  96. package/sass/themes/schemas/components/light/_slider.scss +362 -0
  97. package/sass/themes/schemas/components/light/_switch.scss +473 -0
  98. package/sass/themes/schemas/components/light/_tabs.scss +402 -0
  99. package/sass/themes/schemas/components/light/_tree.scss +288 -0
  100. package/sass/typography/_functions.scss +7 -5
  101. package/sass/typography/_mixins.scss +1 -3
  102. package/sass/typography/_types.scss +2 -16
  103. package/sass/typography/presets/_bootstrap.scss +24 -24
  104. package/sass/typography/presets/_fluent.scss +23 -23
  105. package/sass/typography/presets/_indigo.scss +24 -24
  106. package/sass/typography/presets/_material.scss +23 -23
  107. package/sass/utils/_css.scss +6 -1
  108. package/sass/utils/_map.scss +4 -8
  109. package/sass/utils/_string.scss +14 -6
@@ -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 ($elem or $mods) {
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($mod-classes, #{bem-selector($block: $this, $m: $mod)});
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 {
@@ -26,7 +26,7 @@ $brushes-regular: (
26
26
  rgb(247 210 98),
27
27
  rgb(168 168 183),
28
28
  rgb(224 81 169),
29
- rgb(248 161 95),
29
+ rgb(248 161 95)
30
30
  );
31
31
 
32
32
  /// A list of color values to be used as color-blind brushes in charts.
@@ -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
- @return (
162
- raw: hsl(
163
- to-fixed(color.hue($color)),
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
  );
@@ -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($IPaletteColors, (_meta: $IPaletteMeta));
43
+ $IPalette: map.merge(
44
+ $IPaletteColors,
45
+ (
46
+ _meta: $IPaletteMeta,
47
+ )
48
+ );
@@ -29,5 +29,5 @@ $palette: palette(
29
29
  $success: #198754,
30
30
  $warn: #ffc107,
31
31
  $error: #dc3545,
32
- $variant: 'bootstrap'
32
+ $variant: 'bootstrap',
33
33
  );
@@ -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
  );
@@ -29,5 +29,5 @@ $palette: palette(
29
29
  $success: #689f38,
30
30
  $warn: #ff9800,
31
31
  $error: #cf1a2b,
32
- $variant: 'indigo'
32
+ $variant: 'indigo',
33
33
  );
@@ -28,5 +28,5 @@ $palette: palette(
28
28
  $success: #4eb862,
29
29
  $warn: #faa419,
30
30
  $error: #ff134a,
31
- $variant: 'material'
31
+ $variant: 'material',
32
32
  );
@@ -29,5 +29,5 @@ $palette: palette(
29
29
  $success: #198754,
30
30
  $warn: #ffc107,
31
31
  $error: #dc3545,
32
- $variant: 'bootstrap'
32
+ $variant: 'bootstrap',
33
33
  );
@@ -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
  );
@@ -29,5 +29,5 @@ $palette: palette(
29
29
  $success: #689f38,
30
30
  $warn: #ff9800,
31
31
  $error: #cf1a2b,
32
- $variant: 'indigo'
32
+ $variant: 'indigo',
33
33
  );
@@ -28,5 +28,5 @@ $palette: palette(
28
28
  $success: #4eb862,
29
29
  $warn: #faa419,
30
30
  $error: #ff134a,
31
- $variant: 'material'
31
+ $variant: 'material',
32
32
  );
@@ -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);
@@ -98,7 +98,7 @@ $elevations: (
98
98
  21: $_21,
99
99
  22: $_22,
100
100
  23: $_23,
101
- 24: $_24
101
+ 24: $_24,
102
102
  );
103
103
 
104
104
  // @end-sass-export-section
@@ -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
 
@@ -1,3 +1,4 @@
1
1
  @forward 'functions';
2
2
  @forward 'mixins';
3
3
  @forward 'charts';
4
+ @forward 'schemas';
@@ -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
- min(
153
- clamp(0, (var(--component-size, 1) + 1) - var(--ig-size-medium, 2), 1),
154
- clamp(0, var(--ig-size-large, 3) - var(--component-size, 1), 1)
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($type-scale, $categories: (
284
- 'title': 'h6',
285
- 'subtitle': 'subtitle-1',
286
- 'x-axis-label-text-style': 'body-2',
287
- 'x-axis-title-text-style': 'body-2',
288
- 'y-axis-label-text-style': 'body-2',
289
- 'y-axis-title-text-style': 'body-2',
290
- ), $target: 'angular') {
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($type-scale, $categories: (
290
- 'title': 'h6',
291
- 'subtitle': 'subtitle-1',
292
- 'x-axis-label-text-style': 'body-2',
293
- 'x-axis-title-text-style': 'body-2',
294
- 'y-axis-label-text-style': 'body-2',
295
- 'y-axis-title-text-style': 'body-2',
296
- ), $target: 'angular') {
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
  );