igniteui-theming 2.0.1 → 2.1.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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "igniteui-theming",
3
- "version": "2.0.1",
3
+ "version": "2.1.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": {
@@ -31,6 +31,7 @@
31
31
  @use './highlight' as *;
32
32
  @use './icon' as *;
33
33
  @use './input-group' as *;
34
+ @use './label' as *;
34
35
  @use './list' as *;
35
36
  @use './navbar' as *;
36
37
  @use './navdrawer' as *;
@@ -87,6 +88,7 @@ $dark-material-schema: (
87
88
  highlight: $dark-highlight,
88
89
  icon: $dark-icon,
89
90
  input-group: $dark-input-group,
91
+ label: $dark-material-label,
90
92
  list: $dark-list,
91
93
  navbar: $dark-navbar,
92
94
  nav-drawer: $dark-navdrawer,
@@ -149,6 +151,7 @@ $dark-fluent-schema: (
149
151
  highlight: $dark-fluent-highlight,
150
152
  icon: $dark-fluent-icon,
151
153
  input-group: $dark-fluent-input-group,
154
+ label: $dark-fluent-label,
152
155
  list: $dark-fluent-list,
153
156
  navbar: $dark-fluent-navbar,
154
157
  nav-drawer: $dark-fluent-navdrawer,
@@ -211,6 +214,7 @@ $dark-bootstrap-schema: (
211
214
  highlight: $dark-bootstrap-highlight,
212
215
  icon: $dark-bootstrap-icon,
213
216
  input-group: $dark-bootstrap-input-group,
217
+ label: $dark-bootstrap-label,
214
218
  list: $dark-bootstrap-list,
215
219
  navbar: $dark-bootstrap-navbar,
216
220
  nav-drawer: $dark-bootstrap-navdrawer,
@@ -273,6 +277,7 @@ $dark-indigo-schema: (
273
277
  highlight: $dark-indigo-highlight,
274
278
  icon: $dark-indigo-icon,
275
279
  input-group: $dark-indigo-input-group,
280
+ label: $dark-indigo-label,
276
281
  list: $dark-indigo-list,
277
282
  navbar: $dark-indigo-navbar,
278
283
  nav-drawer: $dark-indigo-navdrawer,
@@ -0,0 +1,33 @@
1
+ @use '../light/label' as *;
2
+
3
+ ////
4
+ /// @package theming
5
+ /// @group schemas
6
+ /// @access public
7
+ ////
8
+
9
+ /// Generates a dark material label schema.
10
+ /// @type {Map}
11
+ /// @prop {Color} color [color: ('gray', 700)] - The label color.
12
+ $dark-material-label: $material-label;
13
+
14
+ /// Generates a dark fluent label schema.
15
+ /// @type {Map}
16
+ /// @prop {Color} color [color: ('gray', 900)] - The label color.
17
+ $dark-fluent-label: $fluent-label;
18
+
19
+ /// Generates a dark bootstrap label schema.
20
+ /// @type {Map}
21
+ /// @prop {Color} color [color: ('gray', 700)] - The label color.
22
+ $dark-bootstrap-label: $bootstrap-label;
23
+
24
+ /// Generates a dark indigo label schema.
25
+ /// @type {Map}
26
+ /// @prop {Color} color [contrast-color: ('surface')] - The label color.
27
+ $dark-indigo-label: (
28
+ color: (
29
+ contrast-color: (
30
+ 'surface',
31
+ ),
32
+ ),
33
+ );
@@ -12,8 +12,13 @@
12
12
  /// @prop {Map} background [color: ('gray', 400, .54)]- The background color of the avatar.
13
13
  /// @prop {Map} color [color: ('gray', 800, .96)] - The text/icon color of the avatar.
14
14
  /// @prop {Number} border-radius [rem(0)] - The border radius.
15
- /// @prop {Number} size - The size of the avatar.
15
+ /// @prop {List} size [(rem(40px), rem(64px), rem(88px))] - The size used for the avatar width and height.
16
16
  $light-avatar: (
17
+ size: (
18
+ rem(40px),
19
+ rem(64px),
20
+ rem(88px),
21
+ ),
17
22
  background: (
18
23
  color: (
19
24
  'gray',
@@ -55,6 +55,7 @@ $material-base-button: (
55
55
  /// @prop {Map} active-foreground [color: ('secondary', 500)] - The active text color of a flat button.
56
56
  /// @prop {Color} disabled-background [transparent] - The disabled background color a flat button.
57
57
  /// @prop {List} border-radius [(rem(4px), rem(0), rem(20px))] - The border radius used for flat button.
58
+ /// @prop {List} size [(rem(24px), rem(30px), rem(36px))] - The size used for the flat button.
58
59
  /// @requires {Map} $material-base-button
59
60
  /// @requires {Map} $flat-elevation-button
60
61
  $material-flat-button: extend(
@@ -127,6 +128,11 @@ $material-flat-button: extend(
127
128
  rem(0),
128
129
  rem(20px),
129
130
  ),
131
+ size: (
132
+ rem(24px),
133
+ rem(30px),
134
+ rem(36px),
135
+ ),
130
136
  )
131
137
  );
132
138
 
@@ -276,6 +282,7 @@ $material-raised-button: extend(
276
282
  /// @prop {Number} hover-elevation [12] - The elevation level, between 0-24, to be used for the hover state.
277
283
  /// @prop {Number} focus-elevation [12] - The elevation level, between 0-24, to be used for the focus state.
278
284
  /// @prop {List} border-radius [(rem(28px), rem(12px), rem(28px))] - The border radius used for floating button.
285
+ /// @prop {List} size [(rem(32px), rem(40px), rem(48px))] - The size used for floating button.
279
286
  /// @requires {Map} $material-raised-button
280
287
  /// @requires {Map} $material-fab-elevation
281
288
  $material-fab-button: extend(
@@ -288,6 +295,11 @@ $material-fab-button: extend(
288
295
  rem(12px),
289
296
  rem(28px),
290
297
  ),
298
+ size: (
299
+ rem(48px),
300
+ rem(40px),
301
+ rem(32px),
302
+ ),
291
303
  )
292
304
  );
293
305
 
@@ -411,6 +423,7 @@ $light-button: (
411
423
  /// @requires {Map} $flat-elevation-button
412
424
  /// @prop {Map} disabled-background [color: ('gray', 200)] - The disabled background color of the button.
413
425
  /// @prop {Map} disabled-foreground [color: ('gray', 400)] - The disabled foreground color of the button.
426
+ /// @prop {List} size [(rem(24px), rem(32px), rem(38px))] - The size used for the button.
414
427
  $fluent-base-button: extend(
415
428
  $material-base-button,
416
429
  $flat-elevation-button,
@@ -427,6 +440,11 @@ $fluent-base-button: extend(
427
440
  400,
428
441
  ),
429
442
  ),
443
+ size: (
444
+ rem(24px),
445
+ rem(32px),
446
+ rem(38px),
447
+ ),
430
448
  )
431
449
  );
432
450
 
@@ -906,6 +924,7 @@ $fluent-button: (
906
924
  /// @type {Map}
907
925
  /// @prop {Map} disabled-background [color: ('primary', 50)] - The disabled background color of the button.
908
926
  /// @prop {Map} disabled-foreground [color: ('primary', 200)] - The disabled foreground color of the button.
927
+ /// @prop {List} size [(rem(31px), rem(38px), rem(48px))] - The size used for the button.
909
928
  /// @requires {Map} $material-base-button
910
929
  /// @requires {Map} $flat-elevation-button
911
930
  $bootstrap-base-button: extend(
@@ -924,6 +943,11 @@ $bootstrap-base-button: extend(
924
943
  50,
925
944
  ),
926
945
  ),
946
+ size: (
947
+ rem(31px),
948
+ rem(38px),
949
+ rem(48px),
950
+ ),
927
951
  )
928
952
  );
929
953
 
@@ -1391,6 +1415,7 @@ $indigo-base-button: extend($material-base-button, $flat-elevation-button);
1391
1415
  /// @prop {Color} disabled-background [transparent] - The disabled background color of a flat button.
1392
1416
  /// @prop {Map} shadow-color [color: ('gray', 300)] - The shadow color of a flat button.
1393
1417
  /// @prop {List} border-radius [(rem(20px), rem(0), rem(20px))] - The border radius used for flat button.
1418
+ /// @prop {List} size [(rem(28px), rem(32px), rem(36px))] - The size used for the flat button.
1394
1419
  /// @requires {Map} $material-flat-button
1395
1420
  /// @requires {Map} $indigo-base-button
1396
1421
  $indigo-flat-button: extend(
@@ -1443,6 +1468,11 @@ $indigo-flat-button: extend(
1443
1468
  rem(0),
1444
1469
  rem(20px),
1445
1470
  ),
1471
+ size: (
1472
+ rem(28px),
1473
+ rem(32px),
1474
+ rem(36px),
1475
+ ),
1446
1476
  )
1447
1477
  );
1448
1478
 
@@ -1625,7 +1655,7 @@ $indigo-raised-button: extend(
1625
1655
  /// @prop {Map} hover-foreground [ color: ('gray', 50)] - The hover text color of a fab button.
1626
1656
  /// @prop {Map} focus-foreground [ color: ('gray', 50)] - The focus text color of a fab button.
1627
1657
  /// @prop {Map} focus-visible-foreground [ color: ('gray', 50)] - The focus-visible text color of a fab button.
1628
- /// @prop {List} border-radius [(rem(28px), rem(12px), rem(28px))] - The border radius used for flat button.
1658
+ /// @prop {List} border-radius [(rem(36px), rem(42px), rem(48px))] - The border radius used for fab button.
1629
1659
  /// @requires {Map} $material-fab-button
1630
1660
  /// @requires {Map} $indigo-base-button
1631
1661
  /// @requires {Map} $indigo-raised-button
@@ -1664,6 +1694,11 @@ $indigo-fab-button: extend(
1664
1694
  rem(12px),
1665
1695
  rem(28px),
1666
1696
  ),
1697
+ size: (
1698
+ rem(36px),
1699
+ rem(42px),
1700
+ rem(48px),
1701
+ ),
1667
1702
  )
1668
1703
  );
1669
1704
 
@@ -36,6 +36,7 @@
36
36
  /// @prop {Map} $disabled-text-color [color: ('gray', 500)] - The disabled chip text color.
37
37
  /// @prop {Map} $disabled-background [color: ('gray', 200)] - The disabled chip background color.
38
38
  /// @prop {Map} $disabled-border-color [color: ('gray', 200)] - The disabled chip border color.
39
+ /// @prop {List} size [(rem(20px), rem(24px), rem(32px))] - The size used for the chip height.
39
40
  /// @prop {Map} $default-elevation-chip
40
41
  $light-chip: extend(
41
42
  $default-elevation-chip,
@@ -176,6 +177,11 @@ $light-chip: extend(
176
177
  200,
177
178
  ),
178
179
  ),
180
+ size: (
181
+ rem(20px),
182
+ rem(24px),
183
+ rem(32px),
184
+ ),
179
185
  )
180
186
  );
181
187
 
@@ -32,6 +32,7 @@
32
32
  /// @prop {Map} border-color [color: ('gray', 300)] - The border color used for drop-down component.
33
33
  /// @prop {List} border-radius [(rem(4px), rem(0), rem(20px))] - The border radius used for drop-down component.
34
34
  /// @prop {List} item-border-radius [(rem(0), rem(0), rem(20px))] - The border radius used for the drop-down items.
35
+ /// @prop {List} size [(rem(28px), rem(32px), rem(40px))] - The size used for the dropdown item height.
35
36
  /// @requires {Map} $default-elevation-drop-down
36
37
  $light-drop-down: extend(
37
38
  $default-elevation-drop-down,
@@ -143,6 +144,11 @@ $light-drop-down: extend(
143
144
  rem(0),
144
145
  rem(20px),
145
146
  ),
147
+ size: (
148
+ rem(28px),
149
+ rem(32px),
150
+ rem(40px),
151
+ ),
146
152
  )
147
153
  );
148
154
 
@@ -17,6 +17,7 @@
17
17
  /// @prop {Map} item-hover-text-color [color: ('gray', 600)] - The toolbar drop-down item hover text color.
18
18
  /// @prop {Map} item-focus-background [color: ('gray', 100)] - The toolbar drop-down item focus background color.
19
19
  /// @prop {Map} item-focus-text-color [color: ('gray', 600)] - The toolbar drop-down item focus text color.
20
+ /// @prop {List} size [(rem(44px), rem(52px), rem(58px))] - The size used for the grid toolbar min-height.
20
21
  $light-grid-toolbar: (
21
22
  background-color: (
22
23
  color: (
@@ -72,6 +73,11 @@ $light-grid-toolbar: (
72
73
  600,
73
74
  ),
74
75
  ),
76
+ size: (
77
+ rem(44px),
78
+ rem(52px),
79
+ rem(58px),
80
+ ),
75
81
  );
76
82
 
77
83
  /// Generates a fluent grid-toolbar schema.
@@ -92,6 +92,10 @@
92
92
  /// @prop {Number} grid-elevation [2] - The elevation level, between 0-24, to be used for the grid.
93
93
  /// @prop {Number} drag-elevation [5] - The elevation level, between 0-24, to be used for movable elements (ex. column header).
94
94
  /// @prop {List} drop-area-border-radius [(rem(16px), rem(0), rem(16px))] - The border radius used for drop-area.
95
+ /// @prop {List} header-size [(rem(32px), rem(40px), rem(50px))] - The size used for the grid header.
96
+ /// @prop {List} drop-area-size [(rem(24px), rem(24px), rem(32px))] - The size used for the grid drop area.
97
+ /// @prop {List} group-area-size [(rem(41), rem(49px), rem(57px))] - The size used for the grid group area.
98
+
95
99
  /// @requires {Map} $default-elevation-grid
96
100
  $light-grid: extend(
97
101
  $default-elevation-grid,
@@ -631,6 +635,21 @@ $light-grid: extend(
631
635
  rem(0),
632
636
  rem(16px),
633
637
  ),
638
+ header-size: (
639
+ rem(32px),
640
+ rem(40px),
641
+ rem(50px),
642
+ ),
643
+ drop-area-size: (
644
+ rem(24px),
645
+ rem(24x),
646
+ rem(32px),
647
+ ),
648
+ group-area-size: (
649
+ rem(41px),
650
+ rem(49x),
651
+ rem(57px),
652
+ ),
634
653
  )
635
654
  );
636
655
 
@@ -11,9 +11,15 @@
11
11
  /// @type {Map}
12
12
  /// @prop {Color} color ["'currentColor'"] - The icon color.
13
13
  /// @prop {Color} disabled-color ["'currentColor'"] - The disabled icon color.
14
+ /// @prop {List} size [(rem(16px), rem(20px), rem(24px))] - The size used for the icon.
14
15
  $light-icon: (
15
16
  color: "'currentColor'",
16
17
  disabled-color: "'currentColor'",
18
+ size: (
19
+ rem(16px),
20
+ rem(20px),
21
+ rem(24px),
22
+ ),
17
23
  );
18
24
 
19
25
  /// Generates a fluent icon schema.
@@ -32,6 +32,7 @@
32
32
  @use './icon' as *;
33
33
  @use './input-group' as *;
34
34
  @use './list' as *;
35
+ @use './label' as *;
35
36
  @use './navbar' as *;
36
37
  @use './navdrawer' as *;
37
38
  @use './overlay' as *;
@@ -87,6 +88,7 @@ $light-material-schema: (
87
88
  highlight: $light-highlight,
88
89
  icon: $light-icon,
89
90
  input-group: $light-input-group,
91
+ label: $material-label,
90
92
  list: $light-list,
91
93
  navbar: $light-navbar,
92
94
  nav-drawer: $light-navdrawer,
@@ -149,6 +151,7 @@ $light-fluent-schema: (
149
151
  highlight: $fluent-highlight,
150
152
  icon: $fluent-icon,
151
153
  input-group: $fluent-input-group,
154
+ label: $fluent-label,
152
155
  list: $fluent-list,
153
156
  navbar: $fluent-navbar,
154
157
  nav-drawer: $fluent-navdrawer,
@@ -211,6 +214,7 @@ $light-bootstrap-schema: (
211
214
  highlight: $bootstrap-highlight,
212
215
  icon: $bootstrap-icon,
213
216
  input-group: $bootstrap-input-group,
217
+ label: $bootstrap-label,
214
218
  list: $bootstrap-list,
215
219
  navbar: $bootstrap-navbar,
216
220
  nav-drawer: $bootstrap-navdrawer,
@@ -273,6 +277,7 @@ $light-indigo-schema: (
273
277
  highlight: $indigo-highlight,
274
278
  icon: $indigo-icon,
275
279
  input-group: $indigo-input-group,
280
+ label: $indigo-label,
276
281
  list: $indigo-list,
277
282
  navbar: $indigo-navbar,
278
283
  nav-drawer: $indigo-navdrawer,
@@ -62,6 +62,7 @@
62
62
  /// @prop {Color} input-suffix-background-filled [inherit] - The background color of an input suffix in the filled state.
63
63
  /// @prop {Map} input-suffix-color--focused [color: ('gray', 900)] - The input suffix color in the focused state.
64
64
  /// @prop {Color} input-suffix-background--focused [inherit] - The background color of an input suffix in the focused state.
65
+ /// @prop {List} size [(rem(40px), rem(48px), rem(56px))] - The size used for the input group.
65
66
  /// @requires {Map} $default-elevation-input-group
66
67
  $light-input-group: extend(
67
68
  $default-elevation-input-group,
@@ -295,6 +296,11 @@ $light-input-group: extend(
295
296
  rem(0),
296
297
  rem(20px),
297
298
  ),
299
+ size: (
300
+ rem(40px),
301
+ rem(48px),
302
+ rem(56px),
303
+ ),
298
304
  success-shadow-color: (
299
305
  color: (
300
306
  'success',
@@ -341,6 +347,7 @@ $light-input-group: extend(
341
347
  /// @prop {Map} input-suffix-background [color: ('gray', 100)] - The background color of an input suffix of type line, box and border.
342
348
  /// @prop {Map} input-suffix-background-filled [color: ('gray', 100)] - The background color of an input suffix in the filled state.
343
349
  /// @prop {Map} input-suffix-background--focused [color: ('gray', 100)] - The background color of an input suffix in the focused state.
350
+ /// @prop {List} size [(rem(32px), rem(40px), rem(48px))] - The size used for the input group.
344
351
  /// @requires {Map} $light-input-group
345
352
  /// @requires {Map} $fluent-elevation-input-group
346
353
  $fluent-input-group: extend(
@@ -488,6 +495,11 @@ $fluent-input-group: extend(
488
495
  rem(0),
489
496
  rem(20px),
490
497
  ),
498
+ size: (
499
+ rem(32px),
500
+ rem(40px),
501
+ rem(48px),
502
+ ),
491
503
  )
492
504
  );
493
505
 
@@ -516,6 +528,7 @@ $fluent-input-group: extend(
516
528
  /// @prop {Map} input-suffix-background [color: ('gray', 300)] - The background color of an input suffix in the idle state.
517
529
  /// @prop {Map} input-suffix-background-filled [color: ('gray', 300)] - The background color of an input suffix in the filled state.
518
530
  /// @prop {Map} input-suffix-background--focused [color: ('gray', 300)] - The background color of an input suffix in the focused state.
531
+ /// @prop {List} size [(rem(31px), rem(38px), rem(48px))] - The size used for the input group.
519
532
  /// @requires {Map} $light-input-group
520
533
  $bootstrap-input-group: extend(
521
534
  $light-input-group,
@@ -641,6 +654,11 @@ $bootstrap-input-group: extend(
641
654
  400,
642
655
  ),
643
656
  ),
657
+ size: (
658
+ rem(31px),
659
+ rem(38px),
660
+ rem(48px),
661
+ ),
644
662
  )
645
663
  );
646
664
 
@@ -0,0 +1,53 @@
1
+ ////
2
+ /// @package theming
3
+ /// @group schemas
4
+ /// @access public
5
+ ////
6
+
7
+ /// Generates a light material label schema.
8
+ /// @type {Map}
9
+ /// @prop {Color} color [color: ('gray', 700)] - The label color.
10
+ $material-label: (
11
+ color: (
12
+ color: (
13
+ 'gray',
14
+ 700,
15
+ ),
16
+ ),
17
+ );
18
+
19
+ /// Generates a light fluent label schema.
20
+ /// @type {Map}
21
+ /// @prop {Color} color [color: ('gray', 900)] - The label color.
22
+ $fluent-label: (
23
+ color: (
24
+ color: (
25
+ 'gray',
26
+ 900,
27
+ ),
28
+ ),
29
+ );
30
+
31
+ /// Generates a light bootstrap label schema.
32
+ /// @type {Map}
33
+ /// @prop {Color} color [color: ('gray', 700)] - The label color.
34
+ $bootstrap-label: (
35
+ color: (
36
+ color: (
37
+ 'gray',
38
+ 700,
39
+ ),
40
+ ),
41
+ );
42
+
43
+ /// Generates a light indigo label schema.
44
+ /// @type {Map}
45
+ /// @prop {Color} color [color: ('gray', 900)] - The label color.
46
+ $indigo-label: (
47
+ color: (
48
+ color: (
49
+ 'gray',
50
+ 900,
51
+ ),
52
+ ),
53
+ );
@@ -12,6 +12,7 @@
12
12
  /// @prop {Map} text-color [color: ('gray', 800)] - The text color.
13
13
  /// @prop {Map} background-color [color: ('gray', 100)] - The background color of the paging panel.
14
14
  /// @prop {Map} border-color [color: ('gray', 200)] - The border color of the paging panel.
15
+ /// @prop {List} size [(rem(40px), rem(48px), rem(56px))] - The size used for the paginator.
15
16
  $light-pagination: (
16
17
  text-color: (
17
18
  color: (
@@ -33,6 +34,11 @@ $light-pagination: (
33
34
  200,
34
35
  ),
35
36
  ),
37
+ size: (
38
+ rem(44px),
39
+ rem(48px),
40
+ rem(56px),
41
+ ),
36
42
  );
37
43
 
38
44
  /// Generates a light pagination schema.
@@ -23,6 +23,7 @@
23
23
  /// @prop {Map} foreground-disabled [color: ('gray', 500)] - The color used for the content of the disabled tree node.
24
24
  /// @prop {Map} drop-area-color [color: ('secondary'] - The background color used for the tree node drop aria.
25
25
  /// @prop {Map} border-color [color: ('secondary')] - The outline shadow color used for tree node in focus state.
26
+ /// @prop {List} size [(rem(32px), rem(40px), rem(50px))] - The size used for the tree node.
26
27
  $light-tree: (
27
28
  background: (
28
29
  color: (
@@ -100,6 +101,11 @@ $light-tree: (
100
101
  0.1,
101
102
  ),
102
103
  ),
104
+ size: (
105
+ rem(32px),
106
+ rem(40px),
107
+ rem(50px),
108
+ ),
103
109
  );
104
110
 
105
111
  /// Generates a light fluent tree schema.