igniteui-angular 20.0.0 → 20.0.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 (95) hide show
  1. package/fesm2022/igniteui-angular.mjs +9 -11
  2. package/fesm2022/igniteui-angular.mjs.map +1 -1
  3. package/index.d.ts +2 -2
  4. package/lib/core/styles/components/_common/_igx-vhelper.scss +1 -0
  5. package/lib/core/styles/components/action-strip/_action-strip-theme.scss +2 -7
  6. package/lib/core/styles/components/avatar/_avatar-theme.scss +7 -8
  7. package/lib/core/styles/components/badge/_badge-theme.scss +3 -8
  8. package/lib/core/styles/components/banner/_banner-theme.scss +6 -7
  9. package/lib/core/styles/components/bottom-nav/_bottom-nav-theme.scss +17 -28
  10. package/lib/core/styles/components/button/_button-theme.scss +219 -158
  11. package/lib/core/styles/components/button/_contained-button-theme.scss +302 -0
  12. package/lib/core/styles/components/button/_fab-button-theme.scss +296 -0
  13. package/lib/core/styles/components/button/_flat-button-theme.scss +356 -0
  14. package/lib/core/styles/components/button/_outlined-button-theme.scss +419 -0
  15. package/lib/core/styles/components/button-group/_button-group-theme.scss +113 -29
  16. package/lib/core/styles/components/calendar/_calendar-theme.scss +502 -112
  17. package/lib/core/styles/components/card/_card-theme.scss +5 -16
  18. package/lib/core/styles/components/carousel/_carousel-theme.scss +103 -23
  19. package/lib/core/styles/components/checkbox/_checkbox-component.scss +1 -1
  20. package/lib/core/styles/components/checkbox/_checkbox-theme.scss +63 -11
  21. package/lib/core/styles/components/chip/_chip-theme.scss +64 -47
  22. package/lib/core/styles/components/column-actions/_column-actions-theme.scss +2 -7
  23. package/lib/core/styles/components/combo/_combo-theme.scss +54 -12
  24. package/lib/core/styles/components/dialog/_dialog-theme.scss +9 -12
  25. package/lib/core/styles/components/divider/_divider-theme.scss +1 -6
  26. package/lib/core/styles/components/drop-down/_drop-down-theme.scss +52 -32
  27. package/lib/core/styles/components/expansion-panel/_expansion-panel-theme.scss +18 -13
  28. package/lib/core/styles/components/grid/_grid-theme.scss +115 -94
  29. package/lib/core/styles/components/grid/_pivot-data-selector-theme.scss +1 -6
  30. package/lib/core/styles/components/grid-summary/_grid-summary-theme.scss +12 -13
  31. package/lib/core/styles/components/grid-toolbar/_grid-toolbar-theme.scss +7 -12
  32. package/lib/core/styles/components/highlight/highlight-theme.scss +2 -3
  33. package/lib/core/styles/components/icon/_icon-theme.scss +0 -1
  34. package/lib/core/styles/components/icon-button/_contained-icon-button-theme.scss +196 -0
  35. package/lib/core/styles/components/icon-button/_flat-icon-button-theme.scss +188 -0
  36. package/lib/core/styles/components/icon-button/_icon-button-theme.scss +45 -32
  37. package/lib/core/styles/components/icon-button/_outlined-icon-button-theme.scss +232 -0
  38. package/lib/core/styles/components/input/_input-group-theme.scss +272 -21
  39. package/lib/core/styles/components/label/_label-theme.scss +2 -4
  40. package/lib/core/styles/components/list/_list-theme.scss +42 -66
  41. package/lib/core/styles/components/navbar/_navbar-theme.scss +25 -15
  42. package/lib/core/styles/components/navdrawer/_navdrawer-theme.scss +24 -22
  43. package/lib/core/styles/components/overlay/_overlay-theme.scss +0 -1
  44. package/lib/core/styles/components/paginator/_paginator-theme.scss +2 -7
  45. package/lib/core/styles/components/progress/circular/_circular-theme.scss +3 -8
  46. package/lib/core/styles/components/progress/linear/_linear-theme.scss +1 -6
  47. package/lib/core/styles/components/query-builder/_query-builder-theme.scss +28 -11
  48. package/lib/core/styles/components/radio/_radio-theme.scss +54 -10
  49. package/lib/core/styles/components/ripple/_ripple-theme.scss +0 -1
  50. package/lib/core/styles/components/scrollbar/scrollbar-theme.scss +0 -1
  51. package/lib/core/styles/components/select/_select-theme.scss +35 -7
  52. package/lib/core/styles/components/slider/_slider-theme.scss +92 -7
  53. package/lib/core/styles/components/snackbar/_snackbar-theme.scss +3 -8
  54. package/lib/core/styles/components/splitter/_splitter-theme.scss +15 -8
  55. package/lib/core/styles/components/stepper/_stepper-theme.scss +190 -22
  56. package/lib/core/styles/components/switch/_switch-theme.scss +112 -8
  57. package/lib/core/styles/components/tabs/_tabs-theme.scss +124 -56
  58. package/lib/core/styles/components/time-picker/_time-picker-theme.scss +35 -18
  59. package/lib/core/styles/components/toast/_toast-theme.scss +9 -10
  60. package/lib/core/styles/components/tooltip/_tooltip-theme.scss +2 -7
  61. package/lib/core/styles/components/tree/_tree-theme.scss +33 -10
  62. package/lib/core/styles/components/watermark/_watermark-theme.scss +0 -1
  63. package/lib/core/styles/themes/_core.scss +6 -0
  64. package/lib/core/styles/themes/generators/_base.scss +146 -58
  65. package/migrations/migration-collection.json +5 -0
  66. package/migrations/update-20_0_2/changes/theme-changes.json +11 -0
  67. package/migrations/update-20_0_2/index.d.ts +3 -0
  68. package/migrations/update-20_0_2/index.js +18 -0
  69. package/package.json +1 -1
  70. package/styles/igniteui-angular-dark.css +1 -1
  71. package/styles/igniteui-angular.css +1 -1
  72. package/styles/igniteui-bootstrap-dark.css +1 -1
  73. package/styles/igniteui-bootstrap-light.css +1 -1
  74. package/styles/igniteui-dark-green.css +1 -1
  75. package/styles/igniteui-fluent-dark-excel.css +1 -1
  76. package/styles/igniteui-fluent-dark-word.css +1 -1
  77. package/styles/igniteui-fluent-dark.css +1 -1
  78. package/styles/igniteui-fluent-light-excel.css +1 -1
  79. package/styles/igniteui-fluent-light-word.css +1 -1
  80. package/styles/igniteui-fluent-light.css +1 -1
  81. package/styles/igniteui-indigo-dark.css +1 -1
  82. package/styles/igniteui-indigo-light.css +1 -1
  83. package/styles/maps/igniteui-angular-dark.css.map +1 -1
  84. package/styles/maps/igniteui-angular.css.map +1 -1
  85. package/styles/maps/igniteui-bootstrap-dark.css.map +1 -1
  86. package/styles/maps/igniteui-bootstrap-light.css.map +1 -1
  87. package/styles/maps/igniteui-dark-green.css.map +1 -1
  88. package/styles/maps/igniteui-fluent-dark-excel.css.map +1 -1
  89. package/styles/maps/igniteui-fluent-dark-word.css.map +1 -1
  90. package/styles/maps/igniteui-fluent-dark.css.map +1 -1
  91. package/styles/maps/igniteui-fluent-light-excel.css.map +1 -1
  92. package/styles/maps/igniteui-fluent-light-word.css.map +1 -1
  93. package/styles/maps/igniteui-fluent-light.css.map +1 -1
  94. package/styles/maps/igniteui-indigo-dark.css.map +1 -1
  95. package/styles/maps/igniteui-indigo-light.css.map +1 -1
@@ -0,0 +1,356 @@
1
+ @use 'sass:map';
2
+ @use 'sass:meta';
3
+ @use 'sass:color';
4
+ @use 'sass:list';
5
+ @use 'sass:string';
6
+ @use '../../base' as *;
7
+ @use '../../themes/schemas' as *;
8
+
9
+ ////
10
+ /// @group themes
11
+ /// @access public
12
+ /// @author <a href="https://github.com/desig9stein" target="_blank">Marin Popov</a>
13
+ /// @author <a href="https://github.com/simeonoff" target="_blank">Simeon Simeonoff</a>
14
+ ////
15
+
16
+ /// If only background color is specified, text/icon color
17
+ /// will be assigned automatically to a contrasting color.
18
+ /// Does ___not___ apply for disabled state colors.
19
+ /// @param {Map} $schema [$light-material-schema] - The schema used as basis for styling the component.
20
+ /// @param {Color} $background [null] - The background color of the button.
21
+ /// @param {Color} $foreground [null] - The text color of the button.
22
+ /// @param {Color} $icon-color [null] - The icon color in the button.
23
+ /// @param {Color} $icon-color-hover [null] - The icon color in the button on hover.
24
+ /// @param {Color} $hover-background [null] - The hover background color of the button.
25
+ /// @param {Color} $hover-foreground [null] - The hover text color of the button.
26
+ /// @param {Color} $focus-background [null] - The focus background color of the button.
27
+ /// @param {Color} $focus-foreground [null] - The focus text color of the button.
28
+ /// @param {Color} $focus-hover-background [null] - The background color on focus hovered state of the button.
29
+ /// @param {Color} $focus-hover-foreground [null] - The text color on focus hovered state of the button.
30
+ /// @param {Color} $focus-visible-background [null] - The focus-visible background color of the button.
31
+ /// @param {Color} $focus-visible-foreground [null] - The focus-visible text color of the button.
32
+ /// @param {Color} $active-background [null] - The active background of the button.
33
+ /// @param {Color} $active-foreground [null] - The active text color of the button.
34
+ /// @param {List} $border-radius [null] - The border radius of the button.
35
+ /// @param {Color} $border-color [null] - The border color of the button.
36
+ /// @param {Color} $hover-border-color [null] - The hover border color of the button.
37
+ /// @param {Color} $focus-border-color [null] - The focus border color of the button.
38
+ /// @param {Color} $focus-visible-border-color [null] - The focus-visible border color of the button.
39
+ /// @param {Color} $active-border-color [null] - The active border color of the button.
40
+ /// @param {Color} $shadow-color [null] - The shadow color of the button.
41
+ /// @param {Color} $resting-shadow [null] - The shadow of the button in its idle state.
42
+ /// @param {Color} $hover-shadow [null] - The shadow of the button in its hover state.
43
+ /// @param {Color} $focus-shadow [null] - The shadow of the button in its focus state.
44
+ /// @param {Color} $active-shadow [null] - The shadow of the button in its focus state.
45
+ /// @param {Color} $disabled-background [null] - The disabled background color of the button.
46
+ /// @param {Color} $disabled-foreground [null] - The disabled text color of the button.
47
+ /// @param {Color} $disabled-icon-color [null] - The disabled icon color of the button.
48
+ /// @param {Color} $disabled-border-color [null] - The disabled border color of the button.
49
+ ///
50
+ /// @requires $light-material-schema
51
+ ///
52
+ /// @example scss Change the text colors in flat buttons
53
+ /// $my-button-theme: flat-button-theme(
54
+ /// $foreground: black,
55
+ /// );
56
+ /// // Pass the theme to the css-vars() mixin
57
+ /// @include css-vars($my-button-theme);
58
+ @function flat-button-theme(
59
+ $schema: $light-material-schema,
60
+
61
+ $background: null,
62
+ $foreground: null,
63
+
64
+ $hover-background: null,
65
+ $hover-foreground: null,
66
+
67
+ $icon-color: $foreground,
68
+ $icon-color-hover: $hover-foreground,
69
+
70
+ $focus-background: null,
71
+ $focus-foreground: null,
72
+
73
+ $focus-hover-background: null,
74
+ $focus-hover-foreground: null,
75
+
76
+ $focus-visible-background: null,
77
+ $focus-visible-foreground: null,
78
+
79
+ $active-background: null,
80
+ $active-foreground: null,
81
+
82
+ $border-radius: null,
83
+ $border-color: null,
84
+ $hover-border-color: null,
85
+ $focus-border-color: null,
86
+ $focus-visible-border-color: null,
87
+ $active-border-color: null,
88
+
89
+ $shadow-color: null,
90
+
91
+ $resting-shadow: null,
92
+ $hover-shadow: null,
93
+ $focus-shadow: null,
94
+ $active-shadow: null,
95
+
96
+ $disabled-background: null,
97
+ $disabled-foreground: null,
98
+ $disabled-icon-color: $disabled-foreground,
99
+ $disabled-border-color: null,
100
+ $size: null
101
+ ) {
102
+ $name: 'igx-flat-button';
103
+ $button-schema: ();
104
+
105
+ @if map.has-key($schema, 'button') {
106
+ $button-schema: map.get($schema, 'button');
107
+
108
+ @if map.has-key($button-schema, 'flat') {
109
+ $button-schema: map.get($button-schema, 'flat');
110
+ } @else {
111
+ $button-schema: $schema;
112
+ }
113
+ }
114
+
115
+ $theme: digest-schema($button-schema);
116
+ $variant: map.get($schema, '_meta', 'theme');
117
+
118
+ @if not($hover-foreground) and $hover-background {
119
+ $hover-foreground: adaptive-contrast(var(--hover-background));
120
+ }
121
+
122
+ @if not($icon-color-hover) and $hover-foreground {
123
+ $icon-color-hover: var(--hover-foreground);
124
+ }
125
+
126
+ @if not($focus-foreground) and $focus-background {
127
+ $focus-foreground: adaptive-contrast(var(--focus-background));
128
+ }
129
+
130
+ @if not($focus-hover-foreground) and $focus-hover-background {
131
+ $focus-hover-foreground: adaptive-contrast(var(--focus-hover-background));
132
+ }
133
+
134
+ @if not($active-foreground) and $active-background {
135
+ $active-foreground: adaptive-contrast(var(--active-background));
136
+ }
137
+
138
+ @if not($focus-visible-background) and $focus-background {
139
+ $focus-visible-background: var(--focus-background);
140
+ }
141
+
142
+ @if not($focus-visible-foreground) and $focus-visible-background {
143
+ $focus-visible-foreground: adaptive-contrast(var(--focus-visible-background));
144
+ }
145
+
146
+ @if not($focus-visible-border-color) and $focus-border-color {
147
+ $focus-visible-border-color: var(--focus-border-color);
148
+ }
149
+
150
+ @if $variant == 'material' or $variant == 'fluent' {
151
+ @if not($hover-background) and $foreground {
152
+ $hover-background: hsla(from var(--foreground) h s l / 0.08);
153
+ }
154
+
155
+ @if not($focus-background) and $foreground {
156
+ $focus-background: hsla(from var(--foreground) h s l / 0.32);
157
+ }
158
+
159
+ @if not($focus-hover-background) and $foreground {
160
+ $focus-hover-background: hsla(from var(--foreground) h s l / 0.24);
161
+ }
162
+
163
+ @if not($active-background) and $foreground {
164
+ $active-background: hsla(from var(--foreground) h s l / 0.16);
165
+ }
166
+
167
+ @if not($hover-foreground) and $hover-background {
168
+ $hover-foreground: hsla(from var(--hover-background) h s l / 1);
169
+ }
170
+
171
+ @if not($icon-color-hover) and $hover-foreground {
172
+ $icon-color-hover: var(--hover-foreground);
173
+ }
174
+
175
+ @if not($focus-foreground) and $focus-background {
176
+ $focus-foreground: hsla(from var(--focus-background) h s l / 1);
177
+ }
178
+
179
+ @if not($focus-hover-foreground) and $focus-hover-background {
180
+ $focus-hover-foreground: hsla(
181
+ from var(--focus-hover-background) h s l / 1
182
+ );
183
+ }
184
+
185
+ @if not($active-foreground) and $active-background {
186
+ $active-foreground: hsla(from var(--active-background) h s l / 1);
187
+ }
188
+
189
+ @if $variant == 'material' {
190
+ @if not($focus-visible-background) and $foreground {
191
+ $focus-visible-background: hsla(
192
+ from var(--foreground) h s l / 0.16
193
+ );
194
+ }
195
+
196
+ @if not($focus-visible-foreground) and $focus-visible-background {
197
+ $focus-visible-foreground: hsla(
198
+ from var(--focus-visible-background) h s l / 1
199
+ );
200
+ }
201
+ } @else {
202
+ @if not($focus-visible-foreground) and $focus-foreground {
203
+ $focus-visible-foreground: var(--focus-foreground);
204
+ }
205
+ }
206
+
207
+ @if $variant == 'fluent' {
208
+ @if not($focus-visible-border-color) and $focus-visible-foreground {
209
+ $focus-visible-border-color: var(--focus-visible-foreground);
210
+ }
211
+ }
212
+ }
213
+
214
+ @if $variant == 'indigo' {
215
+ @if not($hover-background) and $foreground {
216
+ $hover-background: hsla(from var(--foreground) h s l / 0.08);
217
+ }
218
+
219
+ @if not($focus-background) and $foreground {
220
+ $focus-background: hsla(from var(--foreground) h s l / 0.08);
221
+ }
222
+
223
+ @if not($focus-hover-background) and $foreground {
224
+ $focus-hover-background: hsla(from var(--foreground) h s l / 0.08);
225
+ }
226
+
227
+ @if not($active-background) and $foreground {
228
+ $active-background: hsla(from var(--foreground) h s l / 0.08);
229
+ }
230
+ }
231
+
232
+ @if $variant == 'bootstrap' or $variant == 'indigo' {
233
+ @if not($hover-foreground) and $foreground {
234
+ $hover-foreground: hsl(from var(--foreground) h s calc(l * 0.9));
235
+ }
236
+
237
+ @if not($icon-color-hover) and $hover-foreground {
238
+ $icon-color-hover: var(--hover-foreground);
239
+ }
240
+
241
+ @if $variant == 'bootstrap' {
242
+ @if not($focus-foreground) and $foreground {
243
+ $focus-foreground: hsl(
244
+ from var(--foreground) h s calc(l * 0.7)
245
+ );
246
+ }
247
+ } @else {
248
+ @if not($focus-foreground) and $foreground {
249
+ $focus-foreground: hsl(
250
+ from var(--foreground) h s calc(l * 0.9)
251
+ );
252
+ }
253
+ }
254
+
255
+ @if not($focus-hover-foreground) and $foreground {
256
+ $focus-hover-foreground: hsl(
257
+ from var(--foreground) h s calc(l * 0.9)
258
+ );
259
+ }
260
+
261
+ @if not($focus-visible-foreground) and $foreground {
262
+ $focus-visible-foreground: var(--foreground);
263
+ }
264
+
265
+ @if not($disabled-foreground) and $foreground {
266
+ $disabled-foreground: hsl(from (var(--foreground) h s l / 0.5));
267
+ }
268
+
269
+ @if not($disabled-icon-color) and $disabled-foreground {
270
+ $disabled-icon-color: var(--disabled-foreground);
271
+ }
272
+
273
+ @if $variant == 'bootstrap' {
274
+ @if not($active-foreground) and $foreground {
275
+ $active-foreground: hsl(
276
+ from var(--foreground) h s calc(l * 0.7)
277
+ );
278
+ }
279
+
280
+ @if not($shadow-color) and $focus-visible-foreground {
281
+ $shadow-color: hsla(
282
+ from var(--focus-visible-foreground) h s l / 0.5
283
+ );
284
+ }
285
+ } @else {
286
+ @if not($active-foreground) and $foreground {
287
+ $active-foreground: hsl(
288
+ from var(--foreground) h s calc(l * 0.9)
289
+ );
290
+ }
291
+
292
+ @if not($shadow-color) and $focus-visible-foreground {
293
+ $shadow-color: hsla(
294
+ from var(--focus-visible-foreground) h s l / 0.2
295
+ );
296
+ }
297
+ }
298
+ }
299
+
300
+ @if not($resting-shadow) {
301
+ $resting-elevation: map.get($button-schema, 'resting-elevation');
302
+ $resting-shadow: elevation($resting-elevation);
303
+ }
304
+
305
+ @if not($hover-shadow) {
306
+ $hover-elevation: map.get($button-schema, 'hover-elevation');
307
+ $hover-shadow: elevation($hover-elevation);
308
+ }
309
+
310
+ @if not($focus-shadow) {
311
+ $focus-elevation: map.get($button-schema, 'focus-elevation');
312
+ $focus-shadow: elevation($focus-elevation);
313
+ }
314
+
315
+ @if not($active-shadow) {
316
+ $active-elevation: map.get($button-schema, 'active-elevation');
317
+ $active-shadow: elevation($active-elevation);
318
+ }
319
+
320
+ @return extend(
321
+ $theme,
322
+ (
323
+ name: $name,
324
+ background: $background,
325
+ foreground: $foreground,
326
+ icon-color: $icon-color,
327
+ icon-color-hover: $icon-color-hover,
328
+ hover-background: $hover-background,
329
+ hover-foreground: $hover-foreground,
330
+ focus-background: $focus-background,
331
+ focus-foreground: $focus-foreground,
332
+ focus-hover-background: $focus-hover-background,
333
+ focus-hover-foreground: $focus-hover-foreground,
334
+ focus-visible-background: $focus-visible-background,
335
+ focus-visible-foreground: $focus-visible-foreground,
336
+ active-background: $active-background,
337
+ active-foreground: $active-foreground,
338
+ border-radius: $border-radius,
339
+ border-color: $border-color,
340
+ hover-border-color: $hover-border-color,
341
+ focus-border-color: $focus-border-color,
342
+ focus-visible-border-color: $focus-visible-border-color,
343
+ active-border-color: $active-border-color,
344
+ shadow-color: $shadow-color,
345
+ resting-shadow: $resting-shadow,
346
+ hover-shadow: $hover-shadow,
347
+ focus-shadow: $focus-shadow,
348
+ active-shadow: $active-shadow,
349
+ disabled-background: $disabled-background,
350
+ disabled-foreground: $disabled-foreground,
351
+ disabled-icon-color: $disabled-icon-color,
352
+ disabled-border-color: $disabled-border-color,
353
+ size: $size,
354
+ )
355
+ );
356
+ }