igniteui-angular 20.0.7 → 20.0.9

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 (102) hide show
  1. package/fesm2022/igniteui-angular.mjs +143 -52
  2. package/fesm2022/igniteui-angular.mjs.map +1 -1
  3. package/index.d.ts +41 -5
  4. package/lib/core/styles/base/_index.scss +1 -0
  5. package/lib/core/styles/components/_index.scss +1 -0
  6. package/lib/core/styles/components/avatar/_avatar-theme.scss +0 -58
  7. package/lib/core/styles/components/badge/_badge-theme.scss +0 -72
  8. package/lib/core/styles/components/banner/_banner-theme.scss +0 -62
  9. package/lib/core/styles/components/bottom-nav/_bottom-nav-theme.scss +0 -100
  10. package/lib/core/styles/components/button/_button-theme.scss +0 -234
  11. package/lib/core/styles/components/button-group/_button-group-theme.scss +0 -293
  12. package/lib/core/styles/components/calendar/_calendar-theme.scss +0 -1075
  13. package/lib/core/styles/components/card/_card-theme.scss +0 -92
  14. package/lib/core/styles/components/carousel/_carousel-theme.scss +0 -218
  15. package/lib/core/styles/components/checkbox/_checkbox-theme.scss +0 -150
  16. package/lib/core/styles/components/chip/_chip-theme.scss +1 -265
  17. package/lib/core/styles/components/column-actions/_column-actions-theme.scss +0 -48
  18. package/lib/core/styles/components/combo/_combo-theme.scss +9 -125
  19. package/lib/core/styles/components/date-picker/_date-picker-theme.scss +4 -0
  20. package/lib/core/styles/components/date-range-picker/_date-range-picker-theme.scss +0 -30
  21. package/lib/core/styles/components/dialog/_dialog-theme.scss +0 -75
  22. package/lib/core/styles/components/divider/_divider-theme.scss +0 -39
  23. package/lib/core/styles/components/dock-manager/_dock-manager-theme.scss +0 -68
  24. package/lib/core/styles/components/drop-down/_drop-down-theme.scss +0 -211
  25. package/lib/core/styles/components/expansion-panel/_expansion-panel-theme.scss +0 -96
  26. package/lib/core/styles/components/grid/_excel-filtering-theme.scss +0 -1
  27. package/lib/core/styles/components/grid/_grid-theme.scss +44 -600
  28. package/lib/core/styles/components/grid-summary/_grid-summary-theme.scss +0 -84
  29. package/lib/core/styles/components/grid-toolbar/_grid-toolbar-theme.scss +0 -92
  30. package/lib/core/styles/components/highlight/highlight-theme.scss +0 -55
  31. package/lib/core/styles/components/icon/_icon-theme.scss +0 -43
  32. package/lib/core/styles/components/icon-button/_icon-button-theme.scss +0 -112
  33. package/lib/core/styles/components/input/_file-input-component.scss +72 -0
  34. package/lib/core/styles/components/input/_file-input-theme.scss +203 -0
  35. package/lib/core/styles/components/input/_input-group-component.scss +110 -126
  36. package/lib/core/styles/components/input/_input-group-theme.scss +409 -648
  37. package/lib/core/styles/components/label/_label-theme.scss +2 -35
  38. package/lib/core/styles/components/list/_list-theme.scss +0 -264
  39. package/lib/core/styles/components/navbar/_navbar-theme.scss +0 -89
  40. package/lib/core/styles/components/navdrawer/_navdrawer-theme.scss +0 -141
  41. package/lib/core/styles/components/overlay/_overlay-theme.scss +0 -38
  42. package/lib/core/styles/components/paginator/_paginator-theme.scss +0 -50
  43. package/lib/core/styles/components/progress/circular/_circular-theme.scss +0 -73
  44. package/lib/core/styles/components/progress/linear/_linear-theme.scss +0 -68
  45. package/lib/core/styles/components/query-builder/_query-builder-theme.scss +0 -101
  46. package/lib/core/styles/components/radio/_radio-theme.scss +0 -136
  47. package/lib/core/styles/components/rating/_rating-theme.scss +0 -43
  48. package/lib/core/styles/components/ripple/_ripple-theme.scss +0 -39
  49. package/lib/core/styles/components/scrollbar/scrollbar-theme.scss +0 -82
  50. package/lib/core/styles/components/select/_select-theme.scss +0 -93
  51. package/lib/core/styles/components/slider/_slider-theme.scss +0 -187
  52. package/lib/core/styles/components/snackbar/_snackbar-theme.scss +0 -64
  53. package/lib/core/styles/components/splitter/_splitter-theme.scss +0 -71
  54. package/lib/core/styles/components/stepper/_stepper-theme.scss +0 -492
  55. package/lib/core/styles/components/switch/_switch-theme.scss +0 -264
  56. package/lib/core/styles/components/tabs/_tabs-theme.scss +2 -261
  57. package/lib/core/styles/components/time-picker/_time-picker-theme.scss +0 -156
  58. package/lib/core/styles/components/toast/_toast-theme.scss +0 -69
  59. package/lib/core/styles/components/tooltip/_tooltip-theme.scss +0 -62
  60. package/lib/core/styles/components/tree/_tree-theme.scss +0 -128
  61. package/lib/core/styles/components/watermark/_watermark-theme.scss +0 -60
  62. package/lib/core/styles/themes/_core.scss +2 -0
  63. package/lib/core/styles/themes/_index.scss +1 -0
  64. package/lib/core/styles/themes/generators/_base.scss +11 -0
  65. package/lib/core/styles/typography/_bootstrap.scss +4 -0
  66. package/lib/core/styles/typography/_fluent.scss +5 -0
  67. package/lib/core/styles/typography/_indigo.scss +6 -0
  68. package/lib/core/styles/typography/_material.scss +2 -0
  69. package/package.json +2 -2
  70. package/styles/igniteui-angular-dark.css +1 -1
  71. package/styles/igniteui-angular.css +1 -1
  72. package/styles/igniteui-bootstrap-dark.css +1 -1
  73. package/styles/igniteui-bootstrap-light.css +1 -1
  74. package/styles/igniteui-dark-green.css +1 -1
  75. package/styles/igniteui-fluent-dark-excel.css +1 -1
  76. package/styles/igniteui-fluent-dark-word.css +1 -1
  77. package/styles/igniteui-fluent-dark.css +1 -1
  78. package/styles/igniteui-fluent-light-excel.css +1 -1
  79. package/styles/igniteui-fluent-light-word.css +1 -1
  80. package/styles/igniteui-fluent-light.css +1 -1
  81. package/styles/igniteui-indigo-dark.css +1 -1
  82. package/styles/igniteui-indigo-light.css +1 -1
  83. package/styles/maps/igniteui-angular-dark.css.map +1 -1
  84. package/styles/maps/igniteui-angular.css.map +1 -1
  85. package/styles/maps/igniteui-bootstrap-dark.css.map +1 -1
  86. package/styles/maps/igniteui-bootstrap-light.css.map +1 -1
  87. package/styles/maps/igniteui-dark-green.css.map +1 -1
  88. package/styles/maps/igniteui-fluent-dark-excel.css.map +1 -1
  89. package/styles/maps/igniteui-fluent-dark-word.css.map +1 -1
  90. package/styles/maps/igniteui-fluent-dark.css.map +1 -1
  91. package/styles/maps/igniteui-fluent-light-excel.css.map +1 -1
  92. package/styles/maps/igniteui-fluent-light-word.css.map +1 -1
  93. package/styles/maps/igniteui-fluent-light.css.map +1 -1
  94. package/styles/maps/igniteui-indigo-dark.css.map +1 -1
  95. package/styles/maps/igniteui-indigo-light.css.map +1 -1
  96. package/lib/core/styles/components/button/_contained-button-theme.scss +0 -302
  97. package/lib/core/styles/components/button/_fab-button-theme.scss +0 -296
  98. package/lib/core/styles/components/button/_flat-button-theme.scss +0 -356
  99. package/lib/core/styles/components/button/_outlined-button-theme.scss +0 -419
  100. package/lib/core/styles/components/icon-button/_contained-icon-button-theme.scss +0 -196
  101. package/lib/core/styles/components/icon-button/_flat-icon-button-theme.scss +0 -188
  102. package/lib/core/styles/components/icon-button/_outlined-icon-button-theme.scss +0 -232
@@ -1,41 +1,6 @@
1
1
  @use 'sass:map';
2
2
  @use 'sass:meta';
3
3
  @use '../../base' as *;
4
- @use '../../themes/schemas' as *;
5
-
6
- ////
7
- /// @group themes
8
- /// @access public
9
- /// @author <a href="https://github.com/simeonoff" target="_blank">Simeon Simeonoff</a>
10
- ////
11
-
12
- /// @param {Map} $schema [$light-material-schema] - The schema used as basis for styling the component.
13
- /// @param {Map} $color [null] - The text color.
14
- /// @param {Map} $disabled-color [null] - The disabled text color.
15
- @function label-theme(
16
- $schema: $light-material-schema,
17
- $color: null,
18
- $disabled-color: null,
19
- ) {
20
- $name: 'igx-label';
21
- $selector: '[igxLabel]';
22
- $label-schema: ();
23
-
24
- @if map.has-key($schema, 'label') {
25
- $label-schema: map.get($schema, 'label');
26
- } @else {
27
- $label-schema: $schema;
28
- }
29
-
30
- $theme: digest-schema($label-schema);
31
-
32
- @return extend($theme, (
33
- name: $name,
34
- selector: $selector,
35
- color: $color,
36
- disabled-color: $disabled-color
37
- ));
38
- }
39
4
 
40
5
  /// @deprecated Use the `css-vars` mixin instead.
41
6
  /// @see {mixin} css-vars
@@ -44,10 +9,12 @@
44
9
  // The --variant CSS produced by css-vars is needed also
45
10
  // when dynamically switching between the input `type` attribute.
46
11
  @include css-vars($theme);
12
+
47
13
  $variant: map.get($theme, '_meta', 'theme');
48
14
 
49
15
  %label-base {
50
16
  @include ellipsis();
17
+
51
18
  position: relative;
52
19
  color: var-get($theme, 'color');
53
20
  max-width: 100%;
@@ -1,271 +1,7 @@
1
1
  @use 'sass:map';
2
- @use 'sass:meta';
3
- @use 'sass:color';
4
2
  @use '../../base' as *;
5
- @use '../../themes/schemas' as *;
6
3
  @use 'igniteui-theming/sass/animations/easings' as *;
7
4
 
8
- ////
9
- /// @group themes
10
- /// @access public
11
- /// @author <a href="https://github.com/simeonoff" target="_blank">Simeon Simeonoff</a>
12
- /// @author <a href="https://github.com/desig9stein" target="_blank">Marin Popov</a>
13
- ////
14
-
15
- /// @param {Map} $schema [$light-material-schema] - The schema used as basis for styling the component.
16
- /// @param {Color} $background [null] - The list background color.
17
- /// @param {Color} $header-background [null] - The list header background color.
18
- /// @param {Color} $header-text-color [null] - The list header text color.
19
- /// @param {Color} $item-background [null] - The list item background color.
20
- /// @param {Color} $item-background-hover [null] - The list item hover background color.
21
- /// @param {Color} $item-background-active [null] - The active list item background color.
22
- /// @param {Color} $item-background-selected [null] - The selected list item background color.
23
- /// @param {Color} $item-text-color [null] - The list item text color.
24
- /// @param {Color} $item-text-color-hover [null] - The list item hover text color.
25
- /// @param {Color} $item-text-color-active [null] - The active list item text color.
26
- /// @param {Color} $item-text-color-selected [null] - The selected list item text color.
27
- /// @param {Color} $item-title-color [null] - The list item title color.
28
- /// @param {Color} $item-title-color-hover [null] - The list item hover title color.
29
- /// @param {Color} $item-title-color-active [null] - The active list item title color.
30
- /// @param {Color} $item-title-color-selected [null] - The selected list item title color.
31
- /// @param {Color} $item-subtitle-color [null] - The list item subtitle color.
32
- /// @param {Color} $item-subtitle-color-hover [null] - The list item hover subtitle color.
33
- /// @param {Color} $item-subtitle-color-active [null] - The active list item subtitle color.
34
- /// @param {Color} $item-subtitle-color-selected [null] - The selected list item subtitle color.
35
- /// @param {Color} $item-action-color [null] - The list item action color.
36
- /// @param {Color} $item-action-color-hover [null] - The list item hover action color.
37
- /// @param {Color} $item-action-color-active [null] - The active list item action color.
38
- /// @param {Color} $item-action-color-selected [null] - The selected list item action color.
39
- /// @param {Color} $item-thumbnail-color [null] - The list item thumbnail color.
40
- /// @param {Color} $item-thumbnail-color-hover [null] - The list item hover thumbnail color.
41
- /// @param {Color} $item-thumbnail-color-active [null] - The active list item thumbnail color.
42
- /// @param {Color} $item-thumbnail-color-selected [null] - The selected list item thumbnail color.
43
- /// @param {List} $border-radius [null] - The border radius used for list component.
44
- /// @param {List} $item-border-radius [null] - The border radius used for list item.
45
- /// @param {Color} $border-width [null] - The list border width.
46
- /// @param {Number} $border-color [null] - The list border color.
47
- /// @requires $light-material-schema
48
- /// @example scss Change the list background color
49
- /// $my-list-theme: list-theme($background: black);
50
- /// // Pass the theme to the css-vars() mixin
51
- /// @include css-vars($my-list-theme);
52
- @function list-theme(
53
- $schema: $light-material-schema,
54
-
55
- $border-radius: null,
56
- $item-border-radius: null,
57
- $background: null,
58
- $header-background: null,
59
- $header-text-color: null,
60
- $item-background: null,
61
- $item-background-hover: null,
62
- $item-background-active: null,
63
- $item-background-selected: null,
64
- $item-text-color: null,
65
- $item-text-color-hover: null,
66
- $item-text-color-active: null,
67
- $item-text-color-selected: null,
68
- $item-title-color: null,
69
- $item-title-color-hover: null,
70
- $item-title-color-active: null,
71
- $item-title-color-selected: null,
72
- $item-subtitle-color: null,
73
- $item-subtitle-color-hover: null,
74
- $item-subtitle-color-active: null,
75
- $item-subtitle-color-selected: null,
76
- $item-action-color: null,
77
- $item-action-color-hover: null,
78
- $item-action-color-active: null,
79
- $item-action-color-selected: null,
80
- $item-thumbnail-color: null,
81
- $item-thumbnail-color-hover: null,
82
- $item-thumbnail-color-active: null,
83
- $item-thumbnail-color-selected: null,
84
- $border-color: null,
85
- $border-width: null,
86
- ) {
87
- $name: 'igx-list';
88
- $list-schema: ();
89
-
90
- @if map.has-key($schema, 'list') {
91
- $list-schema: map.get($schema, 'list');
92
- } @else {
93
- $list-schema: $schema;
94
- }
95
-
96
- $theme: digest-schema($list-schema);
97
- $variant: map.get($theme, '_meta', 'theme');
98
-
99
- @if not($header-background) and $background {
100
- $header-background: var(--background);
101
- }
102
-
103
- @if not($header-background) and $item-background {
104
- $header-background: var(--item-background);
105
- }
106
-
107
- @if not($item-background) and $background {
108
- $item-background: var(--background);
109
- }
110
-
111
- @if not($background) and $item-background {
112
- $background: var(--item-background);
113
- }
114
-
115
- @if not($item-background-hover) and $item-background {
116
- $item-background-hover: hsl(from var(--item-background) h s calc(l * 0.9));
117
- }
118
-
119
- @if not($item-background-active) and $item-background-hover {
120
- $item-background-active: var(--item-background-hover);
121
- }
122
-
123
- @if not($item-background-selected) and $item-background-active {
124
- $item-background-selected: var(--item-background-active);
125
- }
126
-
127
- @if not($header-text-color) and $header-background {
128
- $header-text-color: adaptive-contrast(var(--header-background));
129
- }
130
-
131
- @if not($item-text-color) and $item-background {
132
- $item-text-color: adaptive-contrast(var(--item-background));
133
- }
134
-
135
- @if not($item-title-color) and $item-background {
136
- $item-title-color: adaptive-contrast(var(--item-background));
137
- }
138
-
139
- @if not($item-action-color) and $item-background {
140
- $item-action-color: adaptive-contrast(var(--item-background));
141
- }
142
-
143
- @if not($item-thumbnail-color) and $item-background {
144
- $item-thumbnail-color: adaptive-contrast(var(--item-background));
145
- }
146
-
147
- @if not($item-subtitle-color) and $item-background {
148
- $item-subtitle-color: hsla(from adaptive-contrast(var(--item-background)) h s l / .74);
149
- }
150
-
151
- @if not($item-subtitle-color) and $item-text-color {
152
- $item-subtitle-color: var(--item-text-color);
153
- }
154
-
155
- @if not($item-text-color-hover) and $item-background-hover {
156
- $item-text-color-hover: adaptive-contrast(var(--item-background-hover));
157
- }
158
-
159
- @if not($item-title-color-hover) and $item-background-hover {
160
- $item-title-color-hover: adaptive-contrast(var(--item-background-hover));
161
- }
162
-
163
- @if not($item-action-color-hover) and $item-background-hover {
164
- $item-action-color-hover: adaptive-contrast(var(--item-background-hover));
165
- }
166
-
167
- @if not($item-thumbnail-color-hover) and $item-background-hover {
168
- $item-thumbnail-color-hover: adaptive-contrast(var(--item-background-hover));
169
- }
170
-
171
- @if not($item-subtitle-color-hover) and $item-background-hover {
172
- $item-subtitle-color-hover: hsla(from adaptive-contrast(var(--item-background-hover)) h s l / .74);
173
- }
174
-
175
- @if not($item-subtitle-color-hover) and $item-text-color-hover {
176
- $item-subtitle-color-hover: var(--item-text-color-hover);
177
- }
178
-
179
- @if not($item-text-color-active) and $item-background-active {
180
- $item-text-color-active: adaptive-contrast(var(--item-background-active));
181
- }
182
-
183
- @if not($item-text-color-selected) and $item-background-selected {
184
- $item-text-color-selected: adaptive-contrast(var(--item-background-selected));
185
- }
186
-
187
- @if not($item-title-color-active) and $item-background-active {
188
- $item-title-color-active: adaptive-contrast(var(--item-background-active));
189
- }
190
-
191
- @if not($item-title-color-selected) and $item-background-selected {
192
- $item-title-color-selected: adaptive-contrast(var(--item-background-selected));
193
- }
194
-
195
- @if not($item-action-color-active) and $item-background-active {
196
- $item-action-color-active: adaptive-contrast(var(--item-background-active));
197
- }
198
-
199
- @if not($item-action-color-selected) and $item-background-selected {
200
- $item-action-color-selected: adaptive-contrast(var(--item-background-selected));
201
- }
202
-
203
- @if not($item-thumbnail-color-active) and $item-background-active {
204
- $item-thumbnail-color-active: adaptive-contrast(var(--item-background-active));
205
- }
206
-
207
- @if not($item-thumbnail-color-selected) and $item-background-selected {
208
- $item-thumbnail-color-selected: adaptive-contrast(var(--item-background-selected));
209
- }
210
-
211
- @if not($item-subtitle-color-active) and $item-background-active {
212
- $item-subtitle-color-active: hsla(from adaptive-contrast(var(--item-background-active)) h s l / .74);
213
- }
214
-
215
- @if not($item-subtitle-color-selected) and $item-background-selected {
216
- $item-subtitle-color-selected: hsla(from adaptive-contrast(var(--item-background-selected)) h s l / .74);
217
- }
218
-
219
- @if not($item-subtitle-color-active) and $item-text-color-active {
220
- $item-subtitle-color-active: var(--item-text-color-active);
221
- }
222
-
223
- @if not($item-subtitle-color-selected) and $item-text-color-selected {
224
- $item-subtitle-color-selected: var(--item-text-color-selected);
225
- }
226
-
227
- @if $variant == 'fluent' or $variant == 'bootstrap'{
228
- @if not($border-color) and $item-background {
229
- $border-color: hsla(from adaptive-contrast(var(--item-background)) h s l / .15);
230
- }
231
- }
232
-
233
- @return extend($theme, (
234
- name: $name,
235
- border-radius: $border-radius,
236
- item-border-radius: $item-border-radius,
237
- background: $background,
238
- header-background: $header-background,
239
- header-text-color: $header-text-color,
240
- item-background: $item-background,
241
- item-background-hover: $item-background-hover,
242
- item-background-active: $item-background-active,
243
- item-background-selected: $item-background-selected,
244
- item-text-color: $item-text-color,
245
- item-text-color-hover: $item-text-color-hover,
246
- item-text-color-active: $item-text-color-active,
247
- item-text-color-selected: $item-text-color-selected,
248
- item-title-color:$item-title-color,
249
- item-title-color-hover:$item-title-color-hover,
250
- item-title-color-active:$item-title-color-active,
251
- item-title-color-selected:$item-title-color-selected,
252
- item-subtitle-color: $item-subtitle-color,
253
- item-subtitle-color-hover: $item-subtitle-color-hover,
254
- item-subtitle-color-active: $item-subtitle-color-active,
255
- item-subtitle-color-selected: $item-subtitle-color-selected,
256
- item-action-color: $item-action-color,
257
- item-action-color-hover: $item-action-color-hover,
258
- item-action-color-active: $item-action-color-active,
259
- item-action-color-selected: $item-action-color-selected,
260
- item-thumbnail-color: $item-thumbnail-color,
261
- item-thumbnail-color-hover: $item-thumbnail-color-hover,
262
- item-thumbnail-color-active: $item-thumbnail-color-active,
263
- item-thumbnail-color-selected: $item-thumbnail-color-selected,
264
- border-color: $border-color,
265
- border-width: $border-width,
266
- ));
267
- }
268
-
269
5
  /// @deprecated Use the `css-vars` mixin instead.
270
6
  /// @see {mixin} css-vars
271
7
  /// @param {Map} $theme - The theme used to style the component.
@@ -1,96 +1,7 @@
1
1
  @use 'sass:map';
2
2
  @use '../../base' as *;
3
- @use '../../themes/schemas' as *;
4
3
  @use 'igniteui-theming/sass/animations/easings' as *;
5
4
 
6
- ////
7
- /// @group themes
8
- /// @access public
9
- /// @author <a href="https://github.com/simeonoff" target="_blank">Simeon Simeonoff</a>
10
- /// @author <a href="https://github.com/desig9stein" target="_blank">Marin Popov</a>
11
- ////
12
-
13
- /// @param {Map} $schema [$light-material-schema] - The schema used as basis for styling the component.
14
- /// @param {Color} $background [null] - The navbar background color.
15
- /// @param {Color} $text-color [null] - The navbar text color.
16
- /// @param {Color} $border-color [null] - The navbar border color.
17
- /// @param {box-shadow} $shadow [null] - The shadow of the navbar.
18
- /// @param {Color} $idle-icon-color [null] - The navbar idle icon color.
19
- /// @param {Color} $hover-icon-color [null] - The navbar hover icon color.
20
- /// @param {Bool} $disable-shadow [true] - Sets the navbar shadow visibility.
21
- /// @requires $light-material-schema
22
- /// @example scss Change the background color
23
- /// $my-navbar-theme: navbar-theme($background: green);
24
- /// // Pass the theme to the css-vars() mixin
25
- /// @include css-vars($my-navbar-theme);
26
- @function navbar-theme(
27
- $schema: $light-material-schema,
28
- $background: null,
29
- $border-color: null,
30
- $text-color: null,
31
- $shadow: null,
32
- $idle-icon-color: null,
33
- $hover-icon-color: null,
34
- $disable-shadow: false
35
- ) {
36
- $name: 'igx-navbar';
37
- $navbar-schema: ();
38
-
39
- @if map.has-key($schema, 'navbar') {
40
- $navbar-schema: map.get($schema, 'navbar');
41
- } @else {
42
- $navbar-schema: $schema;
43
- }
44
-
45
- $theme: digest-schema($navbar-schema);
46
- $variant: map.get($theme, '_meta', 'theme');
47
-
48
- @if not($text-color) and $background {
49
- $text-color: adaptive-contrast(var(--background));
50
- }
51
-
52
- @if not($hover-icon-color) and $idle-icon-color {
53
- $hover-icon-color: hsl(from (var(--idle-icon-color)) h s calc(l * 1.1));
54
- }
55
-
56
- @if not($idle-icon-color) and $background {
57
- $idle-icon-color: adaptive-contrast(var(--background));
58
- }
59
-
60
- @if $variant == 'indigo' {
61
- @if not($border-color) and $background {
62
- $border-color: hsla(from adaptive-contrast(var(--background)) h s l / 0.3);
63
- }
64
-
65
- @if not($hover-icon-color) and $background {
66
- $hover-icon-color: hsla(from adaptive-contrast(var(--background)) h s l / 0.7);
67
- }
68
- } @else {
69
- @if not($hover-icon-color) and $background {
70
- $hover-icon-color: adaptive-contrast(var(--background));
71
- }
72
- }
73
-
74
- @if not($shadow) {
75
- $elevation: map.get($navbar-schema, 'elevation');
76
- $shadow: elevation($elevation);
77
- }
78
-
79
- @if $disable-shadow {
80
- $shadow: none;
81
- }
82
-
83
- @return extend($theme, (
84
- name: $name,
85
- background: $background,
86
- border-color: $border-color,
87
- text-color: $text-color,
88
- idle-icon-color: $idle-icon-color,
89
- hover-icon-color: $hover-icon-color,
90
- shadow: $shadow,
91
- ));
92
- }
93
-
94
5
  /// @deprecated Use the `css-vars` mixin instead.
95
6
  /// @see {mixin} css-vars
96
7
  /// @param {Map} $theme - The theme used to style the component.
@@ -1,148 +1,7 @@
1
1
  @use 'sass:map';
2
- @use 'sass:meta';
3
2
  @use '../../base' as *;
4
- @use '../../themes/schemas' as *;
5
3
  @use 'igniteui-theming/sass/animations/easings' as *;
6
4
 
7
- ////
8
- /// @group themes
9
- /// @access public
10
- /// @author <a href="https://github.com/simeonoff" target="_blank">Simeon Simeonoff</a>
11
- /// @author <a href="https://github.com/desig9stein" target="_blank">Marin Popov</a>
12
- ////
13
-
14
- /// @param {Map} $schema [$light-material-schema] - The schema used as basis for styling the component.
15
- ///
16
- /// @param {Color} $background [null] - The navigation drawer background color.
17
- /// @param {Color} $border-color [null] - The navigation drawer right border color.
18
- /// @param {Color} $item-header-text-color [null] - The header's idle text color.
19
- /// @param {Color} $item-text-color [null] - The item's idle text color.
20
- /// @param {Color} $item-icon-color [null] - The item's icon color.
21
- /// @param {Color} $item-active-text-color [null] - The item's active text color.
22
- /// @param {Color} $item-active-background [null] - The item's active background color.
23
- /// @param {Color} $item-active-icon-color [null] - The item's icon active color.
24
- /// @param {Color} $item-hover-background [null] - The item's hover background color.
25
- /// @param {Color} $item-hover-text-color [null] - The item's hover text color.
26
- /// @param {Color} $item-hover-icon-color [null] - The item's hover icon color.
27
- /// @param {Color} $item-disabled-text-color [null] - The item's disabled text color.
28
- /// @param {Color} $item-disabled-icon-color [null] - The item's disabled icon color.
29
- /// @param {Color} $shadow [null] - Sets a custom shadow to be used by the drawer.
30
- /// @param {List} $border-radius [null] - The border radius used for the navdrawer.
31
- /// @param {List} $item-border-radius [null] - The border radius used for the navdrawer item.
32
- /// @requires $light-material-schema
33
- /// @example scss Change the background and item colors
34
- /// $navdrawer-theme: navdrawer-theme(
35
- /// $background: #2d313a,
36
- /// $item-active-background: #ecc256,
37
- /// $item-icon-color: #ecc256
38
- /// );
39
- /// // Pass the theme to the css-vars() mixin
40
- /// @include css-vars($navdrawer-theme);
41
- @function navdrawer-theme(
42
- $schema: $light-material-schema,
43
-
44
- $border-radius: null,
45
- $item-border-radius: null,
46
-
47
- $background: null,
48
- $border-color: null,
49
-
50
- $item-header-text-color: null,
51
- $item-text-color: null,
52
- $item-icon-color: null,
53
-
54
- $item-active-text-color: null,
55
- $item-active-background: null,
56
- $item-active-icon-color:null,
57
-
58
- $item-hover-background: null,
59
- $item-hover-text-color: null,
60
- $item-hover-icon-color: null,
61
-
62
- $item-disabled-text-color: null,
63
- $item-disabled-icon-color: null,
64
- $shadow: null
65
- ) {
66
- $name: 'igx-nav-drawer';
67
- $navdrawer-schema: ();
68
-
69
- @if map.has-key($schema, 'nav-drawer') {
70
- $navdrawer-schema: map.get($schema, 'nav-drawer');
71
- } @else {
72
- $navdrawer-schema: $schema;
73
- }
74
-
75
- $theme: digest-schema($navdrawer-schema);
76
-
77
- @if not($item-header-text-color) and $background {
78
- $item-header-text-color: adaptive-contrast(var(--background));
79
- }
80
-
81
- @if not($item-text-color) and $background {
82
- $item-text-color: adaptive-contrast(var(--background));
83
- }
84
-
85
- @if not($item-icon-color) and $background {
86
- $item-icon-color: adaptive-contrast(var(--background));
87
- }
88
-
89
- @if not($item-hover-background) and $background {
90
- $item-hover-background: hsla(from adaptive-contrast(var(--background)) h s l / .08);
91
- }
92
-
93
- @if not($item-hover-text-color) and $background {
94
- $item-hover-text-color: adaptive-contrast(var(--background));
95
- }
96
-
97
- @if not($item-hover-icon-color) and $background {
98
- $item-hover-icon-color: adaptive-contrast(var(--background));
99
- }
100
-
101
- @if not($item-active-background) and $background {
102
- $item-active-background: hsla(from adaptive-contrast(var(--background)) h s l / .24);
103
- }
104
-
105
- @if not($item-active-text-color) and $item-active-background {
106
- $item-active-text-color: adaptive-contrast(var(--item-active-background));
107
- }
108
-
109
- @if not($item-active-icon-color) and $item-active-background {
110
- $item-active-icon-color: adaptive-contrast(var(--item-active-background));
111
- }
112
-
113
- @if not($item-disabled-text-color) and $background {
114
- $item-disabled-text-color: hsla(from adaptive-contrast(var(--background)) h s l / .38);
115
- }
116
- @if not($item-disabled-icon-color) and $background {
117
- $item-disabled-icon-color: hsla(from adaptive-contrast(var(--background)) h s l / .38);
118
- }
119
-
120
- @if not($shadow) {
121
- $elevation: map.get($navdrawer-schema, 'elevation');
122
- $shadow: elevation($elevation);
123
- }
124
-
125
- @return extend($theme, (
126
- name: $name,
127
- border-radius: $border-radius,
128
- item-border-radius: $item-border-radius,
129
- background: $background,
130
- border-color: $border-color,
131
- item-text-color:$item-text-color,
132
- item-active-text-color: $item-active-text-color,
133
- item-active-background: $item-active-background,
134
- item-hover-background: $item-hover-background,
135
- item-hover-text-color:$item-hover-text-color,
136
- item-header-text-color:$item-header-text-color,
137
- item-icon-color:$item-icon-color,
138
- item-active-icon-color:$item-active-icon-color,
139
- item-hover-icon-color: $item-hover-icon-color,
140
- item-disabled-text-color:$item-disabled-text-color,
141
- item-disabled-icon-color: $item-disabled-icon-color,
142
- shadow: $shadow
143
- ));
144
- }
145
-
146
5
  /// @deprecated Use the `css-vars` mixin instead.
147
6
  /// @see {mixin} css-vars
148
7
  /// @param {Map} $theme - The theme used to style the component.
@@ -1,45 +1,7 @@
1
1
  @use 'sass:map';
2
2
  @use '../../base' as *;
3
- @use '../../themes/schemas' as *;
4
3
  @use 'igniteui-theming/sass/animations/easings' as *;
5
4
 
6
- ////
7
- /// @group themes
8
- /// @access public
9
- /// @author <a href="https://github.com/simeonoff" target="_blank">Simeon Simeonoff</a>
10
- /// @author <a href="https://github.com/desig9stein" target="_blank">Marin Popov</a>
11
- ////
12
-
13
- /// @param {Map} $schema [$light-material-schema] - The schema used as basis for styling the component.
14
- /// @param {Color} $background-color [null] - The background color used for modal overlays.
15
- /// @requires $light-material-schema
16
- /// @example scss Change the background color
17
- /// $my-overlay-theme: overlay-theme($background-color: rgba(yellow, .74));
18
- /// // Pass the theme to the css-vars() mixin
19
- /// @include css-vars($my-overlay-theme);
20
- @function overlay-theme(
21
- $schema: $light-material-schema,
22
- $background-color: null
23
- ) {
24
- $name: 'igx-overlay';
25
- $selector: '.igx-overlay__wrapper--modal, .igx-overlay__content--modal';
26
- $overlay-schema: ();
27
-
28
- @if map.has-key($schema, 'overlay') {
29
- $overlay-schema: map.get($schema, 'overlay');
30
- } @else {
31
- $overlay-schema: $schema;
32
- }
33
-
34
- $theme: digest-schema($overlay-schema);
35
-
36
- @return extend($theme, (
37
- name: $name,
38
- selector: $selector,
39
- background-color: $background-color,
40
- ));
41
- }
42
-
43
5
  /// @deprecated Use the `css-vars` mixin instead.
44
6
  /// @see {mixin} css-vars
45
7
  /// @param {Map} $theme - The theme used to style the component.
@@ -1,55 +1,5 @@
1
1
  @use 'sass:map';
2
2
  @use '../../base' as *;
3
- @use '../../themes/schemas' as *;
4
-
5
- ////
6
- /// @group themes
7
- /// @access public
8
- /// @author <a href="https://github.com/desig9stein" target="_blank">Marin Popov</a>
9
- /// @author <a href="https://github.com/simeonoff" target="_blank">Simeon Simeonoff</a>
10
- ////
11
-
12
- /// Grid Paging Theme
13
- /// @param {Map} $schema [$light-material-schema] - The schema used as basis for styling the component.
14
- /// @param {Color} $text-color [currentColor] - The text color.
15
- /// @param {Color} $background-color [rgba(0, 0, 0, .04)] - The background color of the paging panel.
16
- /// @param {Color} $border-color [rgba(0, 0, 0, .26)] - The border color of the paging panel.
17
- /// @requires $light-material-schema
18
- /// @example scss Change the stripes color
19
- /// $my-paginator-theme: paginator-theme(
20
- /// $stripes-color: orange
21
- /// );
22
- /// // Pass the theme to the css-vars() mixin
23
- /// @include css-vars($my-paginator-theme);
24
- @function paginator-theme(
25
- $schema: $light-material-schema,
26
-
27
- $text-color: null,
28
- $background-color: null,
29
- $border-color: null
30
- ) {
31
- $name: 'igx-paginator';
32
- $grid-paginator-schema: ();
33
-
34
- @if map.has-key($schema, 'paginator') {
35
- $grid-paginator-schema: map.get($schema, 'paginator');
36
- } @else {
37
- $grid-paginator-schema: $schema;
38
- }
39
-
40
- $theme: digest-schema($grid-paginator-schema);
41
-
42
- @if not($text-color) and $background-color {
43
- $text-color: adaptive-contrast($background-color);
44
- }
45
-
46
- @return extend($theme, (
47
- name: $name,
48
- text-color: $text-color,
49
- background-color: $background-color,
50
- border-color: $border-color,
51
- ));
52
- }
53
3
 
54
4
  /// @deprecated Use the `css-vars` mixin instead.
55
5
  /// @see {mixin} css-vars