igniteui-theming 4.2.0 → 4.3.0

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 (111) hide show
  1. package/package.json +1 -1
  2. package/sass/themes/schemas/components/dark/_action-strip.scss +3 -3
  3. package/sass/themes/schemas/components/dark/_avatar.scss +3 -3
  4. package/sass/themes/schemas/components/dark/_badge.scss +3 -3
  5. package/sass/themes/schemas/components/dark/_banner.scss +3 -3
  6. package/sass/themes/schemas/components/dark/_bottom-nav.scss +8 -17
  7. package/sass/themes/schemas/components/dark/_button-group.scss +3 -3
  8. package/sass/themes/schemas/components/dark/_button.scss +4 -7
  9. package/sass/themes/schemas/components/dark/_calendar.scss +4 -4
  10. package/sass/themes/schemas/components/dark/_card.scss +4 -4
  11. package/sass/themes/schemas/components/dark/_carousel.scss +3 -3
  12. package/sass/themes/schemas/components/dark/_checkbox.scss +3 -3
  13. package/sass/themes/schemas/components/dark/_chip.scss +6 -6
  14. package/sass/themes/schemas/components/dark/_column-actions.scss +6 -6
  15. package/sass/themes/schemas/components/dark/_combo.scss +3 -3
  16. package/sass/themes/schemas/components/dark/_date-range-picker.scss +3 -3
  17. package/sass/themes/schemas/components/dark/_dialog.scss +3 -3
  18. package/sass/themes/schemas/components/dark/_divider.scss +3 -3
  19. package/sass/themes/schemas/components/dark/_dock-manager.scss +6 -0
  20. package/sass/themes/schemas/components/dark/_drop-down.scss +3 -3
  21. package/sass/themes/schemas/components/dark/_expansion-panel.scss +3 -3
  22. package/sass/themes/schemas/components/dark/_grid-filtering.scss +3 -3
  23. package/sass/themes/schemas/components/dark/_grid-summary.scss +3 -3
  24. package/sass/themes/schemas/components/dark/_grid-toolbar.scss +5 -5
  25. package/sass/themes/schemas/components/dark/_grid.scss +4 -20
  26. package/sass/themes/schemas/components/dark/_highlight.scss +6 -0
  27. package/sass/themes/schemas/components/dark/_icon-button.scss +1 -1
  28. package/sass/themes/schemas/components/dark/_icon.scss +6 -6
  29. package/sass/themes/schemas/components/dark/_index.scss +53 -53
  30. package/sass/themes/schemas/components/dark/_input-group.scss +9 -15
  31. package/sass/themes/schemas/components/dark/_label.scss +3 -3
  32. package/sass/themes/schemas/components/dark/_list.scss +8 -9
  33. package/sass/themes/schemas/components/dark/_navbar.scss +3 -3
  34. package/sass/themes/schemas/components/dark/_navdrawer.scss +6 -3
  35. package/sass/themes/schemas/components/dark/_overlay.scss +3 -3
  36. package/sass/themes/schemas/components/dark/_pagination.scss +6 -6
  37. package/sass/themes/schemas/components/dark/_pivot-data-selector.scss +6 -5
  38. package/sass/themes/schemas/components/dark/_progress.scss +14 -10
  39. package/sass/themes/schemas/components/dark/_query-builder.scss +7 -7
  40. package/sass/themes/schemas/components/dark/_radio.scss +26 -36
  41. package/sass/themes/schemas/components/dark/_rating.scss +3 -3
  42. package/sass/themes/schemas/components/dark/_ripple.scss +3 -3
  43. package/sass/themes/schemas/components/dark/_scrollbar.scss +4 -5
  44. package/sass/themes/schemas/components/dark/_select.scss +3 -3
  45. package/sass/themes/schemas/components/dark/_slider.scss +3 -3
  46. package/sass/themes/schemas/components/dark/_snackbar.scss +3 -3
  47. package/sass/themes/schemas/components/dark/_splitter.scss +2 -2
  48. package/sass/themes/schemas/components/dark/_stepper.scss +4 -4
  49. package/sass/themes/schemas/components/dark/_switch.scss +5 -14
  50. package/sass/themes/schemas/components/dark/_tabs.scss +5 -5
  51. package/sass/themes/schemas/components/dark/_time-picker.scss +3 -3
  52. package/sass/themes/schemas/components/dark/_toast.scss +6 -4
  53. package/sass/themes/schemas/components/dark/_tooltip.scss +3 -4
  54. package/sass/themes/schemas/components/dark/_tree.scss +6 -33
  55. package/sass/themes/schemas/components/dark/_watermark.scss +16 -26
  56. package/sass/themes/schemas/components/elevation/_button.scss +2 -2
  57. package/sass/themes/schemas/components/light/_action-strip.scss +9 -0
  58. package/sass/themes/schemas/components/light/_avatar.scss +5 -3
  59. package/sass/themes/schemas/components/light/_badge.scss +5 -0
  60. package/sass/themes/schemas/components/light/_banner.scss +5 -0
  61. package/sass/themes/schemas/components/light/_bottom-nav.scss +5 -0
  62. package/sass/themes/schemas/components/light/_button-group.scss +52 -49
  63. package/sass/themes/schemas/components/light/_button.scss +164 -104
  64. package/sass/themes/schemas/components/light/_calendar.scss +66 -56
  65. package/sass/themes/schemas/components/light/_card.scss +18 -33
  66. package/sass/themes/schemas/components/light/_carousel.scss +7 -0
  67. package/sass/themes/schemas/components/light/_checkbox.scss +37 -53
  68. package/sass/themes/schemas/components/light/_chip.scss +63 -77
  69. package/sass/themes/schemas/components/light/_column-actions.scss +5 -0
  70. package/sass/themes/schemas/components/light/_combo.scss +31 -36
  71. package/sass/themes/schemas/components/light/_date-range-picker.scss +5 -0
  72. package/sass/themes/schemas/components/light/_dialog.scss +5 -0
  73. package/sass/themes/schemas/components/light/_divider.scss +5 -0
  74. package/sass/themes/schemas/components/light/_dock-manager.scss +68 -97
  75. package/sass/themes/schemas/components/light/_drop-down.scss +68 -89
  76. package/sass/themes/schemas/components/light/_expansion-panel.scss +5 -0
  77. package/sass/themes/schemas/components/light/_grid-filtering.scss +6 -9
  78. package/sass/themes/schemas/components/light/_grid-summary.scss +5 -0
  79. package/sass/themes/schemas/components/light/_grid-toolbar.scss +5 -0
  80. package/sass/themes/schemas/components/light/_grid.scss +98 -171
  81. package/sass/themes/schemas/components/light/_highlight.scss +5 -0
  82. package/sass/themes/schemas/components/light/_icon-button.scss +1 -1
  83. package/sass/themes/schemas/components/light/_icon.scss +5 -0
  84. package/sass/themes/schemas/components/light/_index.scss +53 -53
  85. package/sass/themes/schemas/components/light/_input-group.scss +35 -116
  86. package/sass/themes/schemas/components/light/_label.scss +9 -11
  87. package/sass/themes/schemas/components/light/_list.scss +6 -1
  88. package/sass/themes/schemas/components/light/_navbar.scss +6 -1
  89. package/sass/themes/schemas/components/light/_navdrawer.scss +6 -1
  90. package/sass/themes/schemas/components/light/_overlay.scss +6 -1
  91. package/sass/themes/schemas/components/light/_pagination.scss +7 -2
  92. package/sass/themes/schemas/components/light/_pivot-data-selector.scss +6 -1
  93. package/sass/themes/schemas/components/light/_progress.scss +14 -42
  94. package/sass/themes/schemas/components/light/_query-builder.scss +10 -11
  95. package/sass/themes/schemas/components/light/_radio.scss +57 -67
  96. package/sass/themes/schemas/components/light/_rating.scss +22 -42
  97. package/sass/themes/schemas/components/light/_ripple.scss +6 -1
  98. package/sass/themes/schemas/components/light/_scrollbar.scss +6 -12
  99. package/sass/themes/schemas/components/light/_select.scss +20 -18
  100. package/sass/themes/schemas/components/light/_slider.scss +65 -68
  101. package/sass/themes/schemas/components/light/_snackbar.scss +6 -6
  102. package/sass/themes/schemas/components/light/_splitter.scss +6 -2
  103. package/sass/themes/schemas/components/light/_stepper.scss +74 -141
  104. package/sass/themes/schemas/components/light/_switch.scss +101 -141
  105. package/sass/themes/schemas/components/light/_tabs.scss +19 -36
  106. package/sass/themes/schemas/components/light/_time-picker.scss +11 -4
  107. package/sass/themes/schemas/components/light/_toast.scss +6 -1
  108. package/sass/themes/schemas/components/light/_tooltip.scss +6 -1
  109. package/sass/themes/schemas/components/light/_tree.scss +49 -73
  110. package/sass/themes/schemas/components/light/_watermark.scss +6 -1
  111. package/sass/utils/_map.scss +40 -0
@@ -9,22 +9,18 @@
9
9
 
10
10
  /* stylelint-disable max-line-length */
11
11
 
12
- /// Generates a light tree schema.
12
+ /// Generates a base light tree schema.
13
13
  /// @type {Map}
14
14
  /// @prop {Map} background [ color: ('surface')] - The background color used for the tree node.
15
- /// @prop {Map} background-selected [color: ('secondary', 200)] - The background color used for the selected tree node.
15
+ /// @prop {Map} background-selected [color: ('primary')] - The background color used for the selected tree node.
16
16
  /// @prop {Map} background-active [color: ('gray', 200)] - The background color used for the active tree node.
17
- /// @prop {Map} background-active-selected [color: ('secondary', 300)] - The background color used for the active selected tree node.
18
17
  /// @prop {Map} background-disabled [color: ('surface')] - The background color used for the tree node in disabled state.
19
18
  /// @prop {Map} foreground [contrast-color: ('surface')] - The color used for the tree node content.
20
- /// @prop {Map} foreground-selected [contrast-color: ('secondary', 200)] - The color used for the content of the selected tree node.
21
19
  /// @prop {Map} foreground-active [contrast-color: ('gray', 200)] - The color used for the content in active state of the tree node.
22
- /// @prop {Map} foreground-active-selected [contrast-color: ('secondary', 300)] - The color used for the content of the active selected tree node.
23
20
  /// @prop {Map} foreground-disabled [color: ('gray', 500)] - The color used for the content of the disabled tree node.
24
21
  /// @prop {Map} drop-area-color [color: ('secondary')] - The background color used for the tree node drop aria.
25
22
  /// @prop {Map} hover-color [color: ('gray', 900, .1)] - The background color used for the tree node on hover.
26
23
  /// @prop {Map} hover-selected-color [color: ('gray', 900, .1)] - The background color used for the selected tree node on hover.
27
- /// @prop {Map} border-color [color: ('secondary')] - The outline shadow color used for tree node in focus state.
28
24
  /// @prop {List} size [(rem(32px), rem(40px), rem(50px))] - The size used for the tree node.
29
25
  /// @prop {Number} default-size [2] - The default size used for the tree component.
30
26
  $light-tree: (
@@ -40,14 +36,7 @@ $light-tree: (
40
36
  ),
41
37
  background-selected: (
42
38
  color: (
43
- 'secondary',
44
- 200,
45
- ),
46
- ),
47
- foreground-selected: (
48
- contrast-color: (
49
- 'secondary',
50
- 200,
39
+ 'primary',
51
40
  ),
52
41
  ),
53
42
  background-active: (
@@ -62,30 +51,11 @@ $light-tree: (
62
51
  200,
63
52
  ),
64
53
  ),
65
- background-active-selected: (
66
- color: (
67
- 'secondary',
68
- 300,
69
- ),
70
- ),
71
- foreground-active-selected: (
72
- contrast-color: (
73
- 'secondary',
74
- 300,
75
- ),
76
- ),
77
- border-color: (
54
+ background-disabled: (
78
55
  color: (
79
- 'secondary',
56
+ 'surface',
80
57
  ),
81
58
  ),
82
- // Same for all themes
83
- background-disabled:
84
- (
85
- color: (
86
- 'surface',
87
- ),
88
- ),
89
59
  foreground-disabled: (
90
60
  color: (
91
61
  'gray',
@@ -121,50 +91,67 @@ $light-tree: (
121
91
  default-size: 2,
122
92
  );
123
93
 
124
- /// Generates a light fluent tree schema.
94
+ /// Generates a light material tree schema.
125
95
  /// @type {Map}
126
- /// @prop {Map} background [ color: ('surface')] - The background color used for the tree node.
127
- /// @prop {Map} foreground [contrast-color: ('surface')] - The color used for the tree node content.
128
- /// @prop {Map} background-selected [color: ('gray', 200)] - The background color used for the selected tree node.
129
- /// @prop {Map} foreground-selected [contrast-color: ('gray', 200)] - The color used for the content of the selected tree node.
130
- /// @prop {Map} background-active [color: ('gray', 200)] - The background color used for the active tree node.
131
- /// @prop {Map} foreground-active [contrast-color: ('gray', 200)] - The color used for the content in active state of the tree node.
132
- /// @prop {Map} background-active-selected [color: ('gray', 300)] - The background color used for the active selected tree node.
133
- /// @prop {Map} foreground-active-selected [contrast-color: ('gray', 300)] - The color used for the content of the active selected tree node.
134
- /// @prop {Map} border-color [color: ('gray', 800)] - The outline shadow color used for tree node in focus state.
96
+ /// @prop {Map} background-selected [color: ('secondary', 200)] - The background color used for the selected tree node.
97
+ /// @prop {Map} foreground-selected [contrast-color: ('secondary', 200)] - The color used for the content of the selected tree node.
98
+ /// @prop {Map} background-active-selected [color: ('secondary', 300)] - The background color used for the active selected tree node.
99
+ /// @prop {Map} foreground-active-selected [contrast-color: ('secondary', 300)] - The color used for the content of the active selected tree node.
100
+ /// @prop {Map} border-color [color: ('secondary')] - The outline shadow color used for tree node in focus state.
135
101
  /// @requires {Map} $light-tree
136
- $fluent-tree: extend(
102
+ $material-tree: extend(
137
103
  $light-tree,
138
104
  (
139
- background: (
105
+ background-selected: (
140
106
  color: (
141
- 'surface',
107
+ 'secondary',
108
+ 200,
142
109
  ),
143
110
  ),
144
- foreground: (
111
+ foreground-selected: (
145
112
  contrast-color: (
146
- 'surface',
113
+ 'secondary',
114
+ 200,
147
115
  ),
148
116
  ),
149
- background-selected: (
117
+ background-active-selected: (
150
118
  color: (
151
- 'gray',
152
- 200,
119
+ 'secondary',
120
+ 300,
153
121
  ),
154
122
  ),
155
- foreground-selected: (
123
+ foreground-active-selected: (
156
124
  contrast-color: (
157
- 'gray',
158
- 200,
125
+ 'secondary',
126
+ 300,
159
127
  ),
160
128
  ),
161
- background-active: (
129
+ border-color: (
130
+ color: (
131
+ 'secondary',
132
+ ),
133
+ ),
134
+ )
135
+ );
136
+
137
+ /// Generates a light fluent tree schema.
138
+ /// @type {Map}
139
+ /// @prop {Map} background-selected [color: ('gray', 200)] - The background color used for the selected tree node.
140
+ /// @prop {Map} foreground-selected [contrast-color: ('gray', 200)] - The color used for the content of the selected tree node.
141
+ /// @prop {Map} background-active-selected [color: ('gray', 300)] - The background color used for the active selected tree node.
142
+ /// @prop {Map} foreground-active-selected [contrast-color: ('gray', 300)] - The color used for the content of the active selected tree node.
143
+ /// @prop {Map} border-color [color: ('gray', 800)] - The outline shadow color used for tree node in focus state.
144
+ /// @requires {Map} $light-tree
145
+ $fluent-tree: extend(
146
+ $light-tree,
147
+ (
148
+ background-selected: (
162
149
  color: (
163
150
  'gray',
164
151
  200,
165
152
  ),
166
153
  ),
167
- foreground-active: (
154
+ foreground-selected: (
168
155
  contrast-color: (
169
156
  'gray',
170
157
  200,
@@ -191,10 +178,9 @@ $fluent-tree: extend(
191
178
  )
192
179
  );
193
180
 
194
- /// Generates a bootstrap tree schema.
181
+ /// Generates a light bootstrap tree schema.
195
182
  /// @type {Map}
196
183
  /// @prop {Map} foreground-active [contrast-color: ('primary')] - The color used for the content in active state of the tree node.
197
- /// @prop {Map} background-selected [color: ('primary')] - The background color used for the selected tree node.
198
184
  /// @prop {Map} foreground-selected [contrast-color: ('primary', 600)] - The color used for the content of the selected tree node.
199
185
  /// @prop {Map} background-active-selected [color: ('primary', 600)] - The background color used for the active selected tree node.
200
186
  /// @prop {Map} foreground-active-selected [contrast-color: ('primary', 600)] - The color used for the content of the active selected tree node.
@@ -208,11 +194,6 @@ $bootstrap-tree: extend(
208
194
  'primary',
209
195
  ),
210
196
  ),
211
- background-selected: (
212
- color: (
213
- 'primary',
214
- ),
215
- ),
216
197
  foreground-selected: (
217
198
  contrast-color: (
218
199
  'primary',
@@ -233,17 +214,17 @@ $bootstrap-tree: extend(
233
214
  ),
234
215
  border-color: (
235
216
  color: (
236
- 'primary' 200,
217
+ 'primary',
218
+ 200,
237
219
  ),
238
220
  ),
239
221
  )
240
222
  );
241
223
 
242
- /// Generates an indigo tree schema.
224
+ /// Generates a light indigo tree schema.
243
225
  /// @type {Map}
244
226
  /// @prop {Map} background-active [color: ('surface')] - The background color used for the active tree node.
245
227
  /// @prop {Map} foreground-active [contrast-color: ('primary')] - The color used for the content in active state of the tree node.
246
- /// @prop {Map} background-selected [color: ('primary')] - The background color used for the selected tree node.
247
228
  /// @prop {Map} foreground-selected [contrast-color: ('primary')] - The color used for the content of the selected tree node.
248
229
  /// @prop {Map} background-active-selected [color: ('primary', 400)] - The background color used for the active selected tree node.
249
230
  /// @prop {Map} foreground-active-selected [contrast-color: ('primary', 400)] - The color used for the content of the active selected tree node.
@@ -264,11 +245,6 @@ $indigo-tree: extend(
264
245
  'primary',
265
246
  ),
266
247
  ),
267
- background-selected: (
268
- color: (
269
- 'primary',
270
- ),
271
- ),
272
248
  foreground-selected: (
273
249
  contrast-color: (
274
250
  'primary',
@@ -7,7 +7,7 @@
7
7
  /// @access public
8
8
  ////
9
9
 
10
- /// Generates a light watermark schema.
10
+ /// Generates a base light watermark schema.
11
11
  /// @type {Map}
12
12
  /// @prop {Color} base-color [null] - The base color for all elements of the watermark.
13
13
  /// @prop {Color} image-color [null] - The color used for the stamp image.
@@ -41,6 +41,11 @@ $light-watermark: extend(
41
41
  )
42
42
  );
43
43
 
44
+ /// Generates a light material watermark schema.
45
+ /// @type {Map}
46
+ /// @requires {Map} $light-watermark
47
+ $material-watermark: $light-watermark;
48
+
44
49
  /// Generates a light fluent watermark schema.
45
50
  /// @type {Map}
46
51
  /// @prop {List} border-radius [(rem(2px), rem(0), rem(16px))] - The border radius used for watermark.
@@ -37,6 +37,46 @@
37
37
  @return $result;
38
38
  }
39
39
 
40
+ /// Extracts the differences between two or more maps, comparing the first map against the rest.
41
+ /// @group utilities
42
+ /// @access public
43
+ /// @param {Map...} $maps - A list of maps that will be diffed.
44
+ /// @example scss Pull out the unique properties of the second map when compared to the first.
45
+ /// $map-1: (
46
+ /// color: orange,
47
+ /// background: black,
48
+ /// );
49
+ ///
50
+ /// $map-2: (
51
+ /// color: red,
52
+ /// background: black,
53
+ /// );
54
+ ///
55
+ /// $diffed: diff($map-1, $map-2); // returns (color: red);
56
+ /// @returns {Map} - Returns a map of the unique properties.
57
+ @function diff($maps...) {
58
+ $result: ();
59
+
60
+ @for $i from 1 through list.length($maps) {
61
+ $base: list.nth($maps, 1);
62
+
63
+ @each $key, $value in list.nth($maps, $i) {
64
+ $match: map.get($base, $key) == $value;
65
+
66
+ @if not($match) {
67
+ $result: map.merge(
68
+ $result,
69
+ (
70
+ $key: $value,
71
+ )
72
+ );
73
+ }
74
+ }
75
+ }
76
+
77
+ @return $result;
78
+ }
79
+
40
80
  /// Prefixes the keys in a map with the specified prefix and separator.
41
81
  /// @access private
42
82
  /// @param {Map} $map - The target map.