igniteui-theming 3.3.2 → 4.0.0-beta.1

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "igniteui-theming",
3
- "version": "3.3.2",
3
+ "version": "4.0.0-beta.1",
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": {
@@ -65,45 +65,9 @@ $material-flat-button-dark: extend(
65
65
  )
66
66
  );
67
67
 
68
- /// @type {Map}
69
- /// @prop {Map} hover-background [color: ('gray', 100, .5)] - The hover background color of an icon button.
70
- /// @prop {Map} focus-background [color: ('gray', 200, .8)] - The focus background color of a icon button.
71
- /// @prop {Map} focus-visible-background [color: ('gray', 200, .8)] - The focus-visible background color of a icon button.
72
- /// @prop {Color} disabled-background [transparent] - The disabled background color a icon button.
68
+ /// @requires {Map} $material-contained-button
73
69
  /// @requires {Map} $material-base-button-dark
74
- /// @requires {Map} $material-icon-button
75
- $material-icon-button-dark: extend(
76
- $material-icon-button,
77
- $material-base-button-dark,
78
- (
79
- hover-background: (
80
- color: (
81
- 'gray',
82
- 100,
83
- 0.5,
84
- ),
85
- ),
86
- focus-background: (
87
- color: (
88
- 'gray',
89
- 200,
90
- 0.8,
91
- ),
92
- ),
93
- focus-visible-background: (
94
- color: (
95
- 'gray',
96
- 200,
97
- 0.8,
98
- ),
99
- ),
100
- disabled-background: transparent,
101
- )
102
- );
103
-
104
- /// @requires {Map} $material-raised-button
105
- /// @requires {Map} $material-base-button-dark
106
- $material-raised-button-dark: extend($material-raised-button, $material-base-button-dark);
70
+ $material-contained-button-dark: extend($material-contained-button, $material-base-button-dark);
107
71
 
108
72
  /// @requires {Map} $material-fab-button
109
73
  /// @requires {Map} $material-base-button-dark
@@ -132,15 +96,13 @@ $material-outlined-button-dark: extend(
132
96
  /// @type {Map}
133
97
  /// @requires {Map} $material-flat-button-dark
134
98
  /// @requires {Map} $material-outlined-button
135
- /// @requires {Map} $material-raised-button
99
+ /// @requires {Map} $material-contained-button
136
100
  /// @requires {Map} $material-fab-button
137
- /// @requires {Map} $material-icon-button-dark
138
101
  $dark-button: (
139
102
  flat: $material-flat-button-dark,
140
103
  outlined: $material-outlined-button-dark,
141
- raised: $material-raised-button-dark,
104
+ contained: $material-contained-button-dark,
142
105
  fab: $material-fab-button-dark,
143
- icon: $material-icon-button-dark,
144
106
  );
145
107
 
146
108
  /// @type {Map}
@@ -175,25 +137,25 @@ $fluent-flat-button-dark: extend(
175
137
  );
176
138
 
177
139
  /// @type {Map}
178
- /// @prop {Map} background [color: ('primary', 300)] - The background color of an raised button.
179
- /// @prop {Map} foreground [color: ('surface', 500] - The idle text color of a raised button.
180
- /// @prop {Map} border-color [color: ('primary', 300)] - The border color of a raised button.
181
- /// @prop {Map} hover-border-color [color: ('primary', 200)] - The hover border color of a raised button.
182
- /// @prop {Map} focus-border-color [color: ('primary', 300)] - The focus border color of a raised button.
183
- /// @prop {Map} focus-visible-border-color [color: ('primary', 200)] - The focus-visible border color of a raised button.
184
- /// @prop {Map} active-border-color [color: ('primary', 200)] - The active border color of a raised button.
185
- /// @prop {Map} hover-background [color: ('primary', 200)] - The hover background of a raised button.
186
- /// @prop {Map} hover-foreground [color: ('surface', 500] - The hover text color of a raised button.
187
- /// @prop {Map} focus-background [color: ('primary', 300)] - The focus background color of a raised button.
188
- /// @prop {Map} focus-foreground [color: ('surface', 500] - The focus text color of a raised button.
189
- /// @prop {Map} focus-visible-background [color: ('primary', 200)] - The focus-visible background color of a raised button.
190
- /// @prop {Map} focus-visible-foreground [color: ('surface', 500] - The focus-visible text color of a raised button.
191
- /// @prop {Map} active-background [color: ('primary', 200)] - The active background color of a raised button.
192
- /// @prop {Map} active-foreground [color: ('surface', 500] - The active text color of a raised button.
193
- /// @requires {Map} $fluent-raised-button
140
+ /// @prop {Map} background [color: ('primary', 300)] - The background color of an contained button.
141
+ /// @prop {Map} foreground [color: ('surface', 500] - The idle text color of a contained button.
142
+ /// @prop {Map} border-color [color: ('primary', 300)] - The border color of a contained button.
143
+ /// @prop {Map} hover-border-color [color: ('primary', 200)] - The hover border color of a contained button.
144
+ /// @prop {Map} focus-border-color [color: ('primary', 300)] - The focus border color of a contained button.
145
+ /// @prop {Map} focus-visible-border-color [color: ('primary', 200)] - The focus-visible border color of a contained button.
146
+ /// @prop {Map} active-border-color [color: ('primary', 200)] - The active border color of a contained button.
147
+ /// @prop {Map} hover-background [color: ('primary', 200)] - The hover background of a contained button.
148
+ /// @prop {Map} hover-foreground [color: ('surface', 500] - The hover text color of a contained button.
149
+ /// @prop {Map} focus-background [color: ('primary', 300)] - The focus background color of a contained button.
150
+ /// @prop {Map} focus-foreground [color: ('surface', 500] - The focus text color of a contained button.
151
+ /// @prop {Map} focus-visible-background [color: ('primary', 200)] - The focus-visible background color of a contained button.
152
+ /// @prop {Map} focus-visible-foreground [color: ('surface', 500] - The focus-visible text color of a contained button.
153
+ /// @prop {Map} active-background [color: ('primary', 200)] - The active background color of a contained button.
154
+ /// @prop {Map} active-foreground [color: ('surface', 500] - The active text color of a contained button.
155
+ /// @requires {Map} $fluent-contained-button
194
156
  /// @requires {Map} $fluent-base-button-dark
195
- $fluent-raised-button-dark: extend(
196
- $fluent-raised-button,
157
+ $fluent-contained-button-dark: extend(
158
+ $fluent-contained-button,
197
159
  $fluent-base-button-dark,
198
160
  (
199
161
  background: (
@@ -291,38 +253,7 @@ $fluent-raised-button-dark: extend(
291
253
 
292
254
  /// @requires {Map} $fluent-fab-button
293
255
  /// @requires {Map} $fluent-base-button-dark
294
- $fluent-fab-button-dark: extend($fluent-fab-button, $fluent-base-button-dark, $fluent-raised-button-dark);
295
-
296
- /// @prop {Map} hover-background [color: ('gray', 50)] - The hover background color of an icon button.
297
- /// @prop {Map} active-background [color: ('gray', 100, .8)] - The active background color of an icon button.
298
- /// @prop {Map} disabled-border-color [color: ('gray', 50)] - The disabled focused border color of an icon button.
299
- /// @requires {Map} $fluent-icon-button
300
- /// @requires {Map} $fluent-base-button-dark
301
- $fluent-icon-button-dark: extend(
302
- $fluent-icon-button,
303
- $fluent-base-button-dark,
304
- (
305
- hover-background: (
306
- color: (
307
- 'gray',
308
- 50,
309
- ),
310
- ),
311
- active-background: (
312
- color: (
313
- 'gray',
314
- 100,
315
- 0.8,
316
- ),
317
- ),
318
- disabled-border-color: (
319
- color: (
320
- 'gray',
321
- 50,
322
- ),
323
- ),
324
- )
325
- );
256
+ $fluent-fab-button-dark: extend($fluent-fab-button, $fluent-base-button-dark, $fluent-contained-button-dark);
326
257
 
327
258
  /// @prop {Map} hover-foreground [color: ('gray', 50)] - TThe hover text color of an outlined button.
328
259
  /// @prop {Map} active-background [color: ('gray', 100, .8)] - The active background color of an outlined button.
@@ -366,15 +297,13 @@ $fluent-outlined-button-dark: extend(
366
297
  /// @type {Map}
367
298
  /// @requires {Map} $fluent-flat-button-dark
368
299
  /// @requires {Map} $fluent-outlined-button
369
- /// @requires {Map} $fluent-raised-button
300
+ /// @requires {Map} $fluent-contained-button
370
301
  /// @requires {Map} $fluent-fab-button
371
- /// @requires {Map} $fluent-icon-button
372
302
  $dark-fluent-button: (
373
303
  flat: $fluent-flat-button-dark,
374
304
  outlined: $fluent-outlined-button-dark,
375
- raised: $fluent-raised-button-dark,
305
+ contained: $fluent-contained-button-dark,
376
306
  fab: $fluent-fab-button-dark,
377
- icon: $fluent-icon-button-dark,
378
307
  );
379
308
 
380
309
  /// @type {Map}
@@ -407,15 +336,13 @@ $bootstrap-flat-button-dark: extend($bootstrap-base-button-dark, $bootstrap-flat
407
336
  /// @type {Map}
408
337
  /// @requires {Map} $bootstrap-flat-button
409
338
  /// @requires {Map} $bootstrap-outlined-button
410
- /// @requires {Map} $bootstrap-raised-button
339
+ /// @requires {Map} $bootstrap-contained-button
411
340
  /// @requires {Map} $bootstrap-fab-button
412
- /// @requires {Map} $bootstrap-icon-button
413
341
  $dark-bootstrap-button: (
414
342
  flat: $bootstrap-flat-button-dark,
415
343
  outlined: $bootstrap-outlined-button-dark,
416
- raised: $bootstrap-raised-button,
344
+ contained: $bootstrap-contained-button,
417
345
  fab: $bootstrap-fab-button,
418
- icon: $bootstrap-icon-button,
419
346
  );
420
347
 
421
348
  /// @type {Map}
@@ -459,14 +386,14 @@ $indigo-flat-button-dark: extend(
459
386
  );
460
387
 
461
388
  /// @type {Map}
462
- /// @prop {Color} foreground [color: ('gray', 900)] - The idle text color of a raised button.
463
- /// @prop {Color} hover-foreground [color: ('gray', 900)] - The hover text color of a raised button.
464
- /// @prop {Color} focus-foreground [color: ('gray', 900)] - The focus text color of a raised button.
465
- /// @prop {Color} focus-visible-foreground [color: ('gray', 900)] - The focus-visible text color of a raised button.
389
+ /// @prop {Color} foreground [color: ('gray', 900)] - The idle text color of a contained button.
390
+ /// @prop {Color} hover-foreground [color: ('gray', 900)] - The hover text color of a contained button.
391
+ /// @prop {Color} focus-foreground [color: ('gray', 900)] - The focus text color of a contained button.
392
+ /// @prop {Color} focus-visible-foreground [color: ('gray', 900)] - The focus-visible text color of a contained button.
466
393
  /// @requires {Map} $indigo-base-button-dark
467
- /// @requires {Map} $indigo-raised-button
468
- $indigo-raised-button-dark: extend(
469
- $indigo-raised-button,
394
+ /// @requires {Map} $indigo-contained-button
395
+ $indigo-contained-button-dark: extend(
396
+ $indigo-contained-button,
470
397
  $indigo-base-button-dark,
471
398
  (
472
399
  foreground: (
@@ -530,18 +457,6 @@ $indigo-outlined-button-dark: extend(
530
457
  )
531
458
  );
532
459
 
533
- /// @type {Map}
534
- /// @prop {Color} disabled-background [transparent] - The disabled background color an outlined button.
535
- /// @requires {Map} $indigo-base-button-dark
536
- /// @requires {Map} $indigo-icon-button
537
- $indigo-icon-button-dark: extend(
538
- $indigo-icon-button,
539
- $indigo-base-button-dark,
540
- (
541
- disabled-background: transparent,
542
- )
543
- );
544
-
545
460
  /// @type {Map}
546
461
  /// @prop {Color} foreground [color: ('gray', 900) - The idle text color of a fab button.
547
462
  /// @prop {Color} hover-foreground [color: ('gray', 900)] - The hover text color of a fab button.
@@ -584,13 +499,11 @@ $indigo-fab-button-dark: extend(
584
499
  /// @type {Map}
585
500
  /// @requires {Map} $indigo-flat-button
586
501
  /// @requires {Map} $indigo-outlined-button
587
- /// @requires {Map} $indigo-raised-button
502
+ /// @requires {Map} $indigo-contained-button
588
503
  /// @requires {Map} $indigo-fab-button
589
- /// @requires {Map} $indigo-icon-button
590
504
  $dark-indigo-button: (
591
505
  flat: $indigo-flat-button-dark,
592
506
  outlined: $indigo-outlined-button-dark,
593
- raised: $indigo-raised-button-dark,
507
+ contained: $indigo-contained-button-dark,
594
508
  fab: $indigo-fab-button-dark,
595
- icon: $indigo-icon-button-dark,
596
509
  );
@@ -9,49 +9,6 @@
9
9
 
10
10
  /// Generates a dark calendar schema.
11
11
  /// @type {Map}
12
- /// @prop {Map} week-number-background [color: ('gray', 100, .3)] - The background color of the week number column.
13
- /// @prop {Map} date-hover-background [color: ('gray', 100)] - The hover date background color.
14
- /// @prop {Map} month-hover-background [color: ('gray', 100, .5)] - The month hover text color.
15
- /// @prop {Map} date-selected-hover-foreground [contrast-color: ('gray', 100)] - The hover text color for the selected date.
16
- /// @prop {Map} date-selected-focus-foreground [contrast-color: ('gray', 100)] - The focus text color for the selected date.
17
- $dark-base-calendar: (
18
- week-number-background: (
19
- color: (
20
- 'gray',
21
- 100,
22
- 0.3,
23
- ),
24
- ),
25
-
26
- date-hover-background: (
27
- color: (
28
- 'gray',
29
- 100,
30
- ),
31
- ),
32
-
33
- month-hover-background: (
34
- color: (
35
- 'gray',
36
- 100,
37
- 0.5,
38
- ),
39
- ),
40
-
41
- date-selected-hover-foreground: (
42
- contrast-color: (
43
- 'gray',
44
- 100,
45
- ),
46
- ),
47
-
48
- date-selected-focus-foreground: (
49
- contrast-color: (
50
- 'gray',
51
- 100,
52
- ),
53
- ),
54
- );
55
12
 
56
13
  /// Generates a dark calendar schema.
57
14
  /// @type {Map}
@@ -62,7 +19,6 @@ $dark-base-calendar: (
62
19
  /// @requires $dark-base-calendar
63
20
  $dark-calendar: extend(
64
21
  $light-calendar,
65
- $dark-base-calendar,
66
22
  (
67
23
  date-disabled-text-color: (
68
24
  color: (
@@ -90,7 +46,7 @@ $dark-calendar: extend(
90
46
  /// Generates a dark fluent calendar schema.
91
47
  /// @type {Map}
92
48
  /// @requires $fluent-calendar
93
- $dark-fluent-calendar: extend($fluent-calendar, $dark-base-calendar);
49
+ $dark-fluent-calendar: extend($fluent-calendar);
94
50
 
95
51
  /// Generates a dark bootstrap calendar schema.
96
52
  /// @type {Map}
@@ -109,7 +65,6 @@ $dark-fluent-calendar: extend($fluent-calendar, $dark-base-calendar);
109
65
  /// @requires $dark-base-calendar
110
66
  $dark-bootstrap-calendar: extend(
111
67
  $bootstrap-calendar,
112
- $dark-base-calendar,
113
68
  (
114
69
  content-background: (
115
70
  color: (
@@ -205,7 +160,6 @@ $dark-bootstrap-calendar: extend(
205
160
  /// @requires $dark-base-calendar
206
161
  $dark-indigo-calendar: extend(
207
162
  $indigo-calendar,
208
- $dark-base-calendar,
209
163
  (
210
164
  content-text-color: (
211
165
  contrast-color: (
@@ -45,7 +45,9 @@ $fluent-flat-icon-button-dark: extend($fluent-flat-icon-button);
45
45
  /// @prop {Map} background [color: ('primary', 300)] - The background color of the fluent dark contained icon button.
46
46
  /// @prop {Map} foreground [color: ('surface', 500)] - The idle text color of the fluent dark contained icon button.
47
47
  /// @prop {Map} hover-background [color: ('primary', 200)] - The hover background color of the fluent dark contained icon button.
48
- /// @prop {Map} focus-background [color: ('primary', 300)] - The focus background color of the fluent dark contained icon button.
48
+ /// @prop {Map} hover-foreground [color: ('surface', 500)] - The hover text color of the fluent dark contained icon button.
49
+ /// @prop {Map} focus-background [color: ('primary', 200)] - The focus background color of the fluent dark contained icon button.
50
+ /// @prop {Map} focus-foreground [color: ('surface', 500)] - The focus text color of the fluent dark contained icon button.
49
51
  /// @prop {Map} active-background [color: ('primary', 200)] - The active background color of the fluent dark contained icon button.
50
52
  /// @prop {Map} active-foreground [color: ('surface', 500)] - The active text color of the fluent dark contained icon button.
51
53
  /// @prop {Map} focus-border-color [color: ('surface', 500)] - The focus border color of the fluent dark contained icon button.
@@ -71,10 +73,22 @@ $fluent-contained-icon-button-dark: extend(
71
73
  200,
72
74
  ),
73
75
  ),
76
+ hover-foreground: (
77
+ color: (
78
+ 'surface',
79
+ 500,
80
+ ),
81
+ ),
74
82
  focus-background: (
75
83
  color: (
76
84
  'primary',
77
- 300,
85
+ 200,
86
+ ),
87
+ ),
88
+ focus-foreground: (
89
+ color: (
90
+ 'surface',
91
+ 500,
78
92
  ),
79
93
  ),
80
94
  active-background: (
@@ -30,6 +30,7 @@
30
30
  @use './grid-toolbar' as *;
31
31
  @use './highlight' as *;
32
32
  @use './icon' as *;
33
+ @use './icon-button' as *;
33
34
  @use './input-group' as *;
34
35
  @use './label' as *;
35
36
  @use './list' as *;
@@ -87,6 +88,7 @@ $dark-material-schema: (
87
88
  grid-toolbar: $dark-grid-toolbar,
88
89
  highlight: $dark-highlight,
89
90
  icon: $dark-icon,
91
+ icon-button: $dark-icon-button,
90
92
  input-group: $dark-input-group,
91
93
  label: $dark-material-label,
92
94
  list: $dark-list,
@@ -150,6 +152,7 @@ $dark-fluent-schema: (
150
152
  grid-toolbar: $dark-fluent-grid-toolbar,
151
153
  highlight: $dark-fluent-highlight,
152
154
  icon: $dark-fluent-icon,
155
+ icon-button: $dark-fluent-icon-button,
153
156
  input-group: $dark-fluent-input-group,
154
157
  label: $dark-fluent-label,
155
158
  list: $dark-fluent-list,
@@ -213,6 +216,7 @@ $dark-bootstrap-schema: (
213
216
  grid-toolbar: $dark-bootstrap-grid-toolbar,
214
217
  highlight: $dark-bootstrap-highlight,
215
218
  icon: $dark-bootstrap-icon,
219
+ icon-button: $dark-bootstrap-icon-button,
216
220
  input-group: $dark-bootstrap-input-group,
217
221
  label: $dark-bootstrap-label,
218
222
  list: $dark-bootstrap-list,
@@ -276,6 +280,7 @@ $dark-indigo-schema: (
276
280
  grid-toolbar: $dark-indigo-grid-toolbar,
277
281
  highlight: $dark-indigo-highlight,
278
282
  icon: $dark-indigo-icon,
283
+ icon-button: $dark-indigo-icon-button,
279
284
  input-group: $dark-indigo-input-group,
280
285
  label: $dark-indigo-label,
281
286
  list: $dark-indigo-list,
@@ -21,7 +21,7 @@ $flat-elevation-button: (
21
21
  /// @prop {Number} hover-elevation [4] - The elevation level, between 0-24, to be used for the hover state.
22
22
  /// @prop {Number} focus-elevation [8] - The elevation level, between 0-24, to be used for the focus state.
23
23
  /// @prop {Number} active-elevation [8] - The elevation level, between 0-24, to be used for the focus state.
24
- $material-raised-elevation: (
24
+ $material-contained-elevation: (
25
25
  resting-elevation: 2,
26
26
  hover-elevation: 4,
27
27
  focus-elevation: 8,
@@ -40,18 +40,6 @@ $material-fab-elevation: (
40
40
  active-elevation: 12,
41
41
  );
42
42
 
43
- /// @type Map
44
- /// @prop {Number} resting-elevation [0] - The elevation level, between 0-24, to be used for the resting state.
45
- /// @prop {Number} hover-elevation [0] - The elevation level, between 0-24, to be used for the hover state.
46
- /// @prop {Number} focus-elevation [0] - The elevation level, between 0-24, to be used for the focus state.
47
- /// @prop {Number} active-elevation [0] - The elevation level, between 0-24, to be used for the focus state.
48
- $material-ib-elevation: (
49
- resting-elevation: 0,
50
- hover-elevation: 0,
51
- focus-elevation: 0,
52
- active-elevation: 0,
53
- );
54
-
55
43
  /// @type Map
56
44
  /// @see $flat-elevation-button
57
45
  /// @requires $flat-elevation-button