igniteui-theming 2.1.0-beta.3 → 2.1.0-beta.5

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.1.0-beta.3",
3
+ "version": "2.1.0-beta.5",
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,6 +65,7 @@
65
65
  @each $fn, $args in $instructions {
66
66
  $color: meta.function-exists($fn, $module: color);
67
67
  $util: meta.function-exists($fn, $module: utils);
68
+ $self: meta.function-exists($fn);
68
69
 
69
70
  @if $color {
70
71
  $func: meta.get-function($fn, $module: color);
@@ -85,6 +86,13 @@
85
86
  $result: meta.call($func, $result, $args...);
86
87
  }
87
88
  }
89
+
90
+ @if $self {
91
+ @if $fn == 'sizable' {
92
+ $func: meta.get-function($fn);
93
+ $result: meta.call($func, $args...);
94
+ }
95
+ }
88
96
  }
89
97
 
90
98
  @return $result;
@@ -30,9 +30,11 @@ $light-avatar: (
30
30
  ),
31
31
  border-radius: rem(0),
32
32
  size: (
33
- rem(40px),
34
- rem(64px),
35
- rem(88px),
33
+ sizable: (
34
+ rem(40px),
35
+ rem(64px),
36
+ rem(88px),
37
+ ),
36
38
  ),
37
39
  );
38
40
 
@@ -20,6 +20,7 @@
20
20
  /// @prop {Color} disabled-border-color [transparent] - The disabled border color of the button.
21
21
  /// @prop {Map} disabled-background [color: ('gray', 300)] - The disabled background color of the button.
22
22
  /// @prop {Map} disabled-foreground [color: ('gray', 500)] - The disabled foreground color of the button.
23
+ /// @prop {List} size [(rem(24px), rem(30px), rem(36px))] - The size used for the button.
23
24
  $material-base-button: (
24
25
  shadow-color: transparent,
25
26
  border-color: transparent,
@@ -40,6 +41,13 @@ $material-base-button: (
40
41
  500,
41
42
  ),
42
43
  ),
44
+ size: (
45
+ sizable: (
46
+ rem(24px),
47
+ rem(30px),
48
+ rem(36px),
49
+ ),
50
+ ),
43
51
  );
44
52
 
45
53
  /// @type {Map}
@@ -55,7 +63,6 @@ $material-base-button: (
55
63
  /// @prop {Map} active-foreground [color: ('secondary', 500)] - The active text color of a flat button.
56
64
  /// @prop {Color} disabled-background [transparent] - The disabled background color a flat button.
57
65
  /// @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.
59
66
  /// @requires {Map} $material-base-button
60
67
  /// @requires {Map} $flat-elevation-button
61
68
  $material-flat-button: extend(
@@ -128,11 +135,6 @@ $material-flat-button: extend(
128
135
  rem(0),
129
136
  rem(20px),
130
137
  ),
131
- size: (
132
- rem(24px),
133
- rem(30px),
134
- rem(36px),
135
- ),
136
138
  )
137
139
  );
138
140
 
@@ -296,9 +298,11 @@ $material-fab-button: extend(
296
298
  rem(28px),
297
299
  ),
298
300
  size: (
299
- rem(48px),
300
- rem(40px),
301
- rem(32px),
301
+ sizable: (
302
+ rem(48px),
303
+ rem(40px),
304
+ rem(32px),
305
+ ),
302
306
  ),
303
307
  )
304
308
  );
@@ -319,6 +323,7 @@ $material-fab-button: extend(
319
323
  /// @prop {Map} focus-visible-border-color [color: ('gray', 400)] - The focus-visible border color of the button.
320
324
  /// @prop {Map} active-border-color [color: ('gray', 400)] - The active border color of the button.
321
325
  /// @prop {List} border-radius [(rem(20px), rem(0), rem(20px))] - The border radius used for floating button.
326
+ /// @prop {List} size [(rem(24px), rem(30px), rem(36px))] - The size used for icon button.
322
327
  /// @requires {Map} $material-base-button
323
328
  /// @requires {Map} $material-ib-elevation
324
329
  $material-icon-button: extend(
@@ -400,6 +405,13 @@ $material-icon-button: extend(
400
405
  rem(0),
401
406
  rem(20px),
402
407
  ),
408
+ size: (
409
+ sizable: (
410
+ rem(24px),
411
+ rem(30px),
412
+ rem(36px),
413
+ ),
414
+ ),
403
415
  )
404
416
  );
405
417
 
@@ -829,6 +841,7 @@ $fluent-fab-button: extend(
829
841
  /// @prop {Map} disabled-foreground [color: ('gray', 400)] - The disabled foreground color of an icon button.
830
842
  /// @prop {Map} disabled-border-color [color: ('gray', 100), lighten: 35%] - The disabled focused border color of an icon button.
831
843
  /// @prop {List} border-radius [(rem(0), rem(0), rem(20px))] - The border radius used for icon button.
844
+ /// @prop {List} size [(rem(24px), rem(32px), rem(38px))] - The size used for the icon button.
832
845
  /// @requires {Map} $material-icon-button
833
846
  /// @requires {Map} $fluent-base-button
834
847
  $fluent-icon-button: extend(
@@ -903,6 +916,13 @@ $fluent-icon-button: extend(
903
916
  rem(0),
904
917
  rem(20px),
905
918
  ),
919
+ size: (
920
+ sizable: (
921
+ rem(24px),
922
+ rem(32px),
923
+ rem(38px),
924
+ ),
925
+ ),
906
926
  )
907
927
  );
908
928
 
@@ -1311,6 +1331,7 @@ $bootstrap-fab-button: extend(
1311
1331
  /// @prop {Color} disabled-background [transparent] - The disabled background color of an outlined button.
1312
1332
  /// @prop {Map} disabled-foreground [color: ('primary', 100)] - The disabled foreground color of the button.
1313
1333
  /// @prop {List} border-radius [(rem(4px), rem(0), rem(20px))] - The border radius used for outlined button.
1334
+ /// @prop {List} size [(rem(31px), rem(38px), rem(48px))] - The size used for the icon button.
1314
1335
  /// @requires {Map} $material-icon-button
1315
1336
  /// @requires {Map} $bootstrap-base-button
1316
1337
  $bootstrap-icon-button: extend(
@@ -1379,6 +1400,13 @@ $bootstrap-icon-button: extend(
1379
1400
  rem(0),
1380
1401
  rem(20px),
1381
1402
  ),
1403
+ size: (
1404
+ sizable: (
1405
+ rem(31px),
1406
+ rem(38px),
1407
+ rem(48px),
1408
+ ),
1409
+ ),
1382
1410
  )
1383
1411
  );
1384
1412
 
@@ -1656,6 +1684,7 @@ $indigo-raised-button: extend(
1656
1684
  /// @prop {Map} focus-foreground [ color: ('gray', 50)] - The focus text color of a fab button.
1657
1685
  /// @prop {Map} focus-visible-foreground [ color: ('gray', 50)] - The focus-visible text color of a fab button.
1658
1686
  /// @prop {List} border-radius [(rem(36px), rem(42px), rem(48px))] - The border radius used for fab button.
1687
+ /// @prop {List} size [(rem(36px), rem(42px), rem(48px))] - The size used for the fab button.
1659
1688
  /// @requires {Map} $material-fab-button
1660
1689
  /// @requires {Map} $indigo-base-button
1661
1690
  /// @requires {Map} $indigo-raised-button
@@ -1695,9 +1724,11 @@ $indigo-fab-button: extend(
1695
1724
  rem(28px),
1696
1725
  ),
1697
1726
  size: (
1698
- rem(36px),
1699
- rem(42px),
1700
- rem(48px),
1727
+ sizable: (
1728
+ rem(36px),
1729
+ rem(42px),
1730
+ rem(48px),
1731
+ ),
1701
1732
  ),
1702
1733
  )
1703
1734
  );
@@ -1716,6 +1747,7 @@ $indigo-fab-button: extend(
1716
1747
  /// @prop {Map} focus-border-color [color: ('gray' 300)] - The focus border color of the button.
1717
1748
  /// @prop {Map} focus-visible-border-color [color: ('gray' 300)] - The focus-visible border color of the button.
1718
1749
  /// @prop {Map} active-border-color [color: ('gray' 300)] - The active border color of the button.
1750
+ /// @prop {List} size [(rem(28px), rem(32px), rem(36px))] - The size used for the icon button.
1719
1751
  /// @requires {Map} $material-icon-button
1720
1752
  /// @requires {Map} $indigo-base-button
1721
1753
  $indigo-icon-button: extend(
@@ -1772,6 +1804,13 @@ $indigo-icon-button: extend(
1772
1804
  'gray' 300,
1773
1805
  ),
1774
1806
  ),
1807
+ size: (
1808
+ sizable: (
1809
+ rem(28px),
1810
+ rem(32px),
1811
+ rem(36px),
1812
+ ),
1813
+ ),
1775
1814
  )
1776
1815
  );
1777
1816
 
@@ -180,9 +180,11 @@ $light-chip: extend(
180
180
  ),
181
181
 
182
182
  size: (
183
- rem(20px),
184
- rem(24px),
185
- rem(32px),
183
+ sizable: (
184
+ rem(20px),
185
+ rem(24px),
186
+ rem(32px),
187
+ ),
186
188
  ),
187
189
  )
188
190
  );
@@ -145,9 +145,11 @@ $light-drop-down: extend(
145
145
  rem(20px),
146
146
  ),
147
147
  size: (
148
- rem(28px),
149
- rem(32px),
150
- rem(40px),
148
+ sizable: (
149
+ rem(28px),
150
+ rem(32px),
151
+ rem(40px),
152
+ ),
151
153
  ),
152
154
  )
153
155
  );
@@ -75,9 +75,11 @@ $light-grid-toolbar: (
75
75
  ),
76
76
 
77
77
  size: (
78
- rem(44px),
79
- rem(52px),
80
- rem(58px),
78
+ sizable: (
79
+ rem(44px),
80
+ rem(52px),
81
+ rem(58px),
82
+ ),
81
83
  ),
82
84
  );
83
85
 
@@ -636,21 +636,27 @@ $light-grid: extend(
636
636
  ),
637
637
 
638
638
  header-size: (
639
- rem(32px),
640
- rem(40px),
641
- rem(50px),
639
+ sizable: (
640
+ rem(32px),
641
+ rem(40px),
642
+ rem(50px),
643
+ ),
642
644
  ),
643
645
 
644
646
  drop-area-size: (
645
- rem(24px),
646
- rem(24x),
647
- rem(32px),
647
+ sizable: (
648
+ rem(24px),
649
+ rem(24px),
650
+ rem(32px),
651
+ ),
648
652
  ),
649
653
 
650
654
  group-area-size: (
651
- rem(41px),
652
- rem(49x),
653
- rem(57px),
655
+ sizable: (
656
+ rem(41px),
657
+ rem(49px),
658
+ rem(57px),
659
+ ),
654
660
  ),
655
661
  )
656
662
  );
@@ -16,9 +16,11 @@ $light-icon: (
16
16
  color: "'currentColor'",
17
17
  disabled-color: "'currentColor'",
18
18
  size: (
19
- rem(16px),
20
- rem(20px),
21
- rem(24px),
19
+ sizable: (
20
+ rem(16px),
21
+ rem(20px),
22
+ rem(24px),
23
+ ),
22
24
  ),
23
25
  );
24
26
 
@@ -311,9 +311,11 @@ $light-input-group: extend(
311
311
  ),
312
312
  ),
313
313
  size: (
314
- rem(40px),
315
- rem(48px),
316
- rem(56px),
314
+ sizable: (
315
+ rem(40px),
316
+ rem(48px),
317
+ rem(56px),
318
+ ),
317
319
  ),
318
320
  )
319
321
  );
@@ -35,9 +35,11 @@ $light-pagination: (
35
35
  ),
36
36
  ),
37
37
  size: (
38
- rem(44px),
39
- rem(48px),
40
- rem(56px),
38
+ sizable: (
39
+ rem(44px),
40
+ rem(48px),
41
+ rem(56px),
42
+ ),
41
43
  ),
42
44
  );
43
45
 
@@ -102,9 +102,11 @@ $light-tree: (
102
102
  ),
103
103
  ),
104
104
  size: (
105
- rem(32px),
106
- rem(40px),
107
- rem(50px),
105
+ sizable: (
106
+ rem(32px),
107
+ rem(40px),
108
+ rem(50px),
109
+ ),
108
110
  ),
109
111
  );
110
112