igniteui-theming 2.1.0-beta.2 → 2.1.0-beta.4

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.2",
3
+ "version": "2.1.0-beta.4",
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;
@@ -14,11 +14,6 @@
14
14
  /// @prop {Number} border-radius [rem(0)] - The border radius.
15
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
- ),
22
17
  background: (
23
18
  color: (
24
19
  'gray',
@@ -34,6 +29,13 @@ $light-avatar: (
34
29
  ),
35
30
  ),
36
31
  border-radius: rem(0),
32
+ size: (
33
+ sizable: (
34
+ rem(40px),
35
+ rem(64px),
36
+ rem(88px),
37
+ ),
38
+ ),
37
39
  );
38
40
 
39
41
  /// Generates a fluent avatar schema.
@@ -129,9 +129,11 @@ $material-flat-button: extend(
129
129
  rem(20px),
130
130
  ),
131
131
  size: (
132
- rem(24px),
133
- rem(30px),
134
- rem(36px),
132
+ sizable: (
133
+ rem(24px),
134
+ rem(30px),
135
+ rem(36px),
136
+ ),
135
137
  ),
136
138
  )
137
139
  );
@@ -157,6 +157,7 @@ $light-chip: extend(
157
157
  rem(0),
158
158
  rem(16px),
159
159
  ),
160
+
160
161
  disabled-text-color: (
161
162
  color: (
162
163
  'gray',
@@ -177,10 +178,13 @@ $light-chip: extend(
177
178
  200,
178
179
  ),
179
180
  ),
181
+
180
182
  size: (
181
- rem(20px),
182
- rem(24px),
183
- rem(32px),
183
+ sizable: (
184
+ rem(20px),
185
+ rem(24px),
186
+ rem(32px),
187
+ ),
184
188
  ),
185
189
  )
186
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
  );
@@ -73,10 +73,13 @@ $light-grid-toolbar: (
73
73
  600,
74
74
  ),
75
75
  ),
76
+
76
77
  size: (
77
- rem(44px),
78
- rem(52px),
79
- rem(58px),
78
+ sizable: (
79
+ rem(44px),
80
+ rem(52px),
81
+ rem(58px),
82
+ ),
80
83
  ),
81
84
  );
82
85
 
@@ -95,7 +95,6 @@
95
95
  /// @prop {List} header-size [(rem(32px), rem(40px), rem(50px))] - The size used for the grid header.
96
96
  /// @prop {List} drop-area-size [(rem(24px), rem(24px), rem(32px))] - The size used for the grid drop area.
97
97
  /// @prop {List} group-area-size [(rem(41), rem(49px), rem(57px))] - The size used for the grid group area.
98
-
99
98
  /// @requires {Map} $default-elevation-grid
100
99
  $light-grid: extend(
101
100
  $default-elevation-grid,
@@ -635,20 +634,29 @@ $light-grid: extend(
635
634
  rem(0),
636
635
  rem(16px),
637
636
  ),
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
  ),
645
+
643
646
  drop-area-size: (
644
- rem(24px),
645
- rem(24x),
646
- rem(32px),
647
+ sizable: (
648
+ rem(24px),
649
+ rem(24px),
650
+ rem(32px),
651
+ ),
647
652
  ),
653
+
648
654
  group-area-size: (
649
- rem(41px),
650
- rem(49x),
651
- rem(57px),
655
+ sizable: (
656
+ rem(41px),
657
+ rem(49px),
658
+ rem(57px),
659
+ ),
652
660
  ),
653
661
  )
654
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
 
@@ -296,11 +296,6 @@ $light-input-group: extend(
296
296
  rem(0),
297
297
  rem(20px),
298
298
  ),
299
- size: (
300
- rem(40px),
301
- rem(48px),
302
- rem(56px),
303
- ),
304
299
  success-shadow-color: (
305
300
  color: (
306
301
  'success',
@@ -315,6 +310,13 @@ $light-input-group: extend(
315
310
  0.38,
316
311
  ),
317
312
  ),
313
+ size: (
314
+ sizable: (
315
+ rem(40px),
316
+ rem(48px),
317
+ rem(56px),
318
+ ),
319
+ ),
318
320
  )
319
321
  );
320
322
 
@@ -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