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,97 +1,5 @@
1
1
  @use 'sass:map';
2
- @use 'sass:meta';
3
2
  @use '../../base' as *;
4
- @use '../../themes/schemas' as *;
5
-
6
- ////
7
- /// @group themes
8
- /// @access public
9
- /// @author <a href="https://github.com/desig9stein" target="_blank">Marin Popov</a>
10
- /// @author <a href="https://github.com/simeonoff" target="_blank">Simeon Simeonoff</a>
11
- ////
12
-
13
- ///
14
- /// @param {Map} $schema [$light-material-schema] - The schema used as basis for styling the component.
15
- /// @param {Color} $background [null] - The card background color.
16
- /// @param {Color} $outline-color [null] - The color of the outline for outlined type cards.
17
- /// @param {Color} $header-text-color [null] - The text color of the card title.
18
- /// @param {Color} $subtitle-text-color [null] - The text color of the card subtitle.
19
- /// @param {Color} $content-text-color [null] - The text color of the card content.
20
- /// @param {Color} $actions-text-color [null] - The text color of the card buttons.
21
- /// @param {box-shadow} $resting-shadow [null] - The shadow of the card in its resting state.
22
- /// @param {box-shadow} $hover-shadow [null] - The shadow of the card in its hover state.
23
- ///
24
- /// @param {List} $border-radius [null] - The border radius used for card component.
25
- ///
26
- /// @requires $light-material-schema
27
- ///
28
- /// @example scss Change the background and content text colors in card
29
- /// $my-card-theme: card-theme($background: #fff);
30
- /// // Pass the theme to the css-vars() mixin
31
- /// @include css-vars($my-card-theme);
32
- @function card-theme(
33
- $schema: $light-material-schema,
34
-
35
- $border-radius: null,
36
- $background: null,
37
- $outline-color: null,
38
- $header-text-color: null,
39
- $subtitle-text-color: null,
40
- $content-text-color: null,
41
- $actions-text-color: null,
42
- $resting-shadow: null,
43
- $hover-shadow: null,
44
- ) {
45
- $name: 'igx-card';
46
- $card-schema: ();
47
-
48
- @if map.has-key($schema, 'card') {
49
- $card-schema: map.get($schema, 'card');
50
- } @else {
51
- $card-schema: $schema;
52
- }
53
-
54
- $theme: digest-schema($card-schema);
55
-
56
- @if not($header-text-color) and $background {
57
- $header-text-color: adaptive-contrast(var(--background));
58
- }
59
-
60
- @if not($actions-text-color) and $background {
61
- $actions-text-color: adaptive-contrast(var(--background));
62
- }
63
-
64
- @if not($content-text-color) and $background {
65
- $content-text-color: hsl(from adaptive-contrast(var(--background)) h s calc(l * 0.85));
66
- }
67
-
68
- @if not($subtitle-text-color) and $background {
69
- $subtitle-text-color: hsl(from adaptive-contrast(var(--background)) h s calc(l * 0.85));
70
- }
71
-
72
- @if not($resting-shadow) {
73
- $resting-elevation: map.get($card-schema, 'resting-elevation');
74
- $resting-shadow: elevation($resting-elevation);
75
- }
76
-
77
- @if not($hover-shadow) {
78
- $hover-elevation: map.get($card-schema, 'hover-elevation');
79
- $hover-shadow: elevation($hover-elevation);
80
- }
81
-
82
- @return extend($theme, (
83
- name: $name,
84
- background: $background,
85
- outline-color: $outline-color,
86
- border-radius: $border-radius,
87
- header-text-color: $header-text-color,
88
- subtitle-text-color: $subtitle-text-color,
89
- content-text-color: $content-text-color,
90
- actions-text-color: $actions-text-color,
91
- resting-shadow: $resting-shadow,
92
- hover-shadow: $hover-shadow,
93
- ));
94
- }
95
3
 
96
4
  /// Card Component
97
5
  /// @deprecated Use the `css-vars` mixin instead.
@@ -1,225 +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' 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
- /// @param {Color} $slide-background [null] - The slide background color.
16
- /// @param {Color} $button-background [null] - The previous/next buttons idle background color.
17
- /// @param {Color} $button-hover-background [null] - The previous/next buttons hover background color.
18
- /// @param {Color} $button-disabled-background [null] - The previous/next buttons disabled background color.
19
- /// @param {Color} $button-arrow-color [null] - The previous/next buttons idle arrow color.
20
- /// @param {Color} $button-hover-arrow-color [null] - The previous/next buttons hover arrow color.
21
- /// @param {Color} $button-disabled-arrow-color [null] - The previous/next buttons disabled arrow color.
22
- /// @param {Color} $button-border-color [null] - The previous/next buttons idle border color.
23
- /// @param {Color} $button-hover-border-color [null] - The previous/next buttons hover border color.
24
- /// @param {Color} $button-focus-border-color [null] - The navigation buttons border color on focus.
25
- /// @param {Color} $button-disabled-border-color [null] - The previous/next buttons disabled border color.
26
- /// @param {Color} $indicator-background [null] - The indicators container background color.
27
- /// @param {Color} $label-indicator-background [null] - The label indicator container background color.
28
- /// @param {Color} $indicator-dot-color [null] - The idle indicator dot color.
29
- /// @param {Color} $indicator-hover-dot-color [null] - The hover indicator dot color.
30
- /// @param {Color} $indicator-focus-color [null] - The indicators border and dot color on focus.
31
- /// @param {Color} $indicator-border-color [null] - The idle indicator border color.
32
- /// @param {Color} $indicator-active-dot-color [null] - The active indicator dot color.
33
- /// @param {Color} $indicator-active-border-color [null] - The active indicator border color.
34
- /// @param {Color} $indicator-active-hover-dot-color [null] - The active indicator dot color on hover.
35
- /// @param {box-shadow} $button-shadow [null] - Shadow underneath the previous/next buttons.
36
- ///
37
- /// @param {List} $border-radius [null] - The border radius used for carousel component.
38
- ///
39
- /// @requires $light-material-schema
40
- ///
41
- /// @example scss Change the previous/next button colors
42
- /// $my-carousel-theme: carousel-theme(
43
- /// $button-background: black,
44
- /// $button-hover-background: white
45
- /// );
46
- /// // Pass the carousel theme to the css-vars() mixin
47
- /// @include css-vars($my-carousel-theme);
48
- @function carousel-theme(
49
- $schema: $light-material-schema,
50
-
51
- $border-radius: null,
52
- $button-shadow: null,
53
-
54
- $slide-background: null,
55
-
56
- $button-background: null,
57
- $button-hover-background: null,
58
- $button-disabled-background: null,
59
- $button-arrow-color: null,
60
- $button-hover-arrow-color: null,
61
- $button-focus-arrow-color: null,
62
- $button-disabled-arrow-color: null,
63
- $button-border-color: null,
64
- $button-hover-border-color: null,
65
- $button-focus-border-color: null,
66
- $button-disabled-border-color: null,
67
-
68
- $indicator-background: null,
69
- $label-indicator-background: null,
70
- $indicator-dot-color: null,
71
- $indicator-hover-dot-color: null,
72
- $indicator-focus-color: null,
73
- $indicator-border-color: null,
74
- $indicator-active-dot-color: null,
75
- $indicator-active-border-color: null,
76
- $indicator-active-hover-dot-color: null,
77
- ){
78
- $name: 'igx-carousel';
79
- $carousel-schema: ();
80
-
81
- @if map.has-key($schema, 'carousel') {
82
- $carousel-schema: map.get($schema, 'carousel');
83
- } @else {
84
- $carousel-schema: $schema;
85
- }
86
-
87
- $theme: digest-schema($carousel-schema);
88
- $variant: map.get($theme, '_meta', 'theme');
89
-
90
- @if $variant == 'indigo' {
91
- @if not($button-hover-background) and $button-background {
92
- $button-hover-background: hsl(from var(--button-background) h s calc(l * 0.9));
93
- }
94
-
95
- @if not($button-border-color) and $button-background {
96
- $button-border-color: hsl(from var(--button-background) h s calc(l * 0.9));
97
- }
98
-
99
- @if not($button-hover-border-color) and $button-border-color {
100
- $button-hover-border-color: hsl(from var(--button-border-color) h s calc(l * 0.9));
101
- }
102
-
103
- @if not($indicator-active-dot-color) and not($indicator-background) and $button-background {
104
- $indicator-active-dot-color: var(--button-background);
105
- }
106
- }
107
-
108
- @if not($button-shadow) {
109
- $button-elevation: map.get($carousel-schema, 'button-elevation');
110
- $button-shadow: elevation($button-elevation);
111
- }
112
-
113
- @if not($button-arrow-color) and $button-background {
114
- $button-arrow-color: hsla(from (adaptive-contrast(var(--button-background)) h s l / 0.85));
115
- }
116
-
117
- @if not($button-hover-background) and $button-background {
118
- $button-hover-background: var(--button-background);
119
- }
120
-
121
- @if not($button-hover-arrow-color) and $button-hover-background {
122
- $button-hover-arrow-color: adaptive-contrast(var(--button-hover-background));
123
- }
124
-
125
- @if not($button-focus-arrow-color) and $button-hover-arrow-color {
126
- $button-focus-arrow-color: var(--button-hover-arrow-color);
127
- }
128
-
129
- @if not($button-disabled-background) and $button-background {
130
- $button-disabled-background: var(--button-background);
131
- }
132
-
133
- @if not($button-disabled-arrow-color) and $button-disabled-background {
134
- $button-disabled-arrow-color: hsla(from adaptive-contrast(var(--button-disabled-background)) h s l / .4);
135
- }
136
-
137
- @if not($indicator-dot-color) and $indicator-background {
138
- $indicator-dot-color: hsla(from adaptive-contrast(var(--indicator-background)) h s l / .8);
139
- }
140
-
141
- @if not($indicator-hover-dot-color) and $indicator-dot-color {
142
- $indicator-hover-dot-color: hsla(from var(--indicator-dot-color) h s l / 1);
143
- }
144
-
145
- @if not($indicator-border-color) and $indicator-dot-color {
146
- $indicator-border-color: var(--indicator-dot-color);
147
- }
148
-
149
- @if not($indicator-active-dot-color) and $indicator-background {
150
- $indicator-active-dot-color: hsl(from adaptive-contrast(var(--indicator-background)) h s calc(l * 0.9));
151
- }
152
-
153
- @if not($indicator-active-hover-dot-color) and $indicator-active-dot-color {
154
- $indicator-active-hover-dot-color: hsl(from var(--indicator-active-dot-color) h s calc(l * 1.1));
155
- }
156
-
157
- @if not($indicator-active-border-color) and $indicator-active-dot-color {
158
- $indicator-active-border-color: var(--indicator-active-dot-color);
159
- }
160
-
161
- @if $variant == 'material' {
162
- @if not($button-focus-border-color) and $button-focus-arrow-color {
163
- $button-focus-border-color: var(--button-focus-arrow-color);
164
- }
165
- }
166
-
167
- @if $variant == 'fluent' or $variant == 'bootstrap' {
168
- @if not($button-focus-border-color) and $button-background {
169
- $button-focus-border-color: hsla(from adaptive-contrast(var(--button-background)) h s l / 0.5);
170
- }
171
- }
172
-
173
- @if $variant == 'indigo' {
174
- @if not($button-focus-border-color) and $indicator-active-dot-color {
175
- $button-focus-border-color: var(--indicator-active-dot-color);
176
- }
177
-
178
- @if not($indicator-focus-color) and $indicator-active-hover-dot-color {
179
- $indicator-focus-color: hsla(from var(--indicator-active-hover-dot-color) h s l / .5);
180
- }
181
- } @else {
182
- @if not($indicator-focus-color) and not($indicator-background) and $button-background {
183
- $indicator-focus-color: var(--button-background);
184
- }
185
-
186
- @if not($indicator-focus-color) and $indicator-background {
187
- $indicator-focus-color: adaptive-contrast(var(--indicator-background));
188
- }
189
- }
190
-
191
- @return extend($theme, (
192
- name: $name,
193
-
194
- slide-background: $slide-background,
195
-
196
- border-radius: $border-radius,
197
- button-shadow: $button-shadow,
198
-
199
- button-background: $button-background,
200
- button-disabled-background: $button-disabled-background,
201
- button-hover-background: $button-hover-background,
202
- button-arrow-color: $button-arrow-color,
203
- button-hover-arrow-color: $button-hover-arrow-color,
204
- button-focus-arrow-color: $button-focus-arrow-color,
205
- button-disabled-arrow-color: $button-disabled-arrow-color,
206
- button-border-color: $button-border-color,
207
- button-hover-border-color: $button-hover-border-color,
208
- button-focus-border-color: $button-focus-border-color,
209
- button-disabled-border-color: $button-disabled-border-color,
210
-
211
- indicator-background: $indicator-background,
212
- label-indicator-background: $label-indicator-background,
213
- indicator-dot-color: $indicator-dot-color,
214
- indicator-hover-dot-color: $indicator-hover-dot-color,
215
- indicator-focus-color: $indicator-focus-color,
216
- indicator-border-color: $indicator-border-color,
217
- indicator-active-dot-color: $indicator-active-dot-color,
218
- indicator-active-border-color: $indicator-active-border-color,
219
- indicator-active-hover-dot-color: $indicator-active-hover-dot-color,
220
- ));
221
- }
222
-
223
5
  /// @deprecated Use the `css-vars` mixin instead.
224
6
  /// @see {mixin} css-vars
225
7
  /// @param {Map} $theme - The theme used to style the component.
@@ -2,156 +2,6 @@
2
2
  @use 'sass:math';
3
3
  @use '../../base' as *;
4
4
  @use 'igniteui-theming/sass/animations' as *;
5
- @use '../../themes/schemas' as *;
6
-
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
- /// Checkbox Theme
15
- /// @param {Map} $schema [$light-material-schema] - The schema used as basis for styling the component.
16
- /// @param {Color} $label-color [null]- The text color used for the label text.
17
- /// @param {Color} $label-color-hover [null]- The text color used for the label text on hover.
18
- /// @param {Color} $empty-color [null] - The unchecked border color.
19
- /// @param {Color} $empty-color-hover [null] - The unchecked border color on hover.
20
- /// @param {Color} $empty-fill-color [null] - The unchecked fill color.
21
- /// @param {Color} $fill-color [null] - The checked border and fill colors.
22
- /// @param {Color} $fill-color-hover [null] - The checked border and fill colors on hover.
23
- /// @param {Color} $tick-color [null] - The checked mark color.
24
- /// @param {Color} $tick-color-hover [null] - The checked mark color on hover.
25
- /// @param {Color} $disabled-color [null] - The disabled border and fill colors.
26
- /// @param {Color} $disabled-tick-color [null] - The checked mark color in disabled state.
27
- /// @param {Color} $disabled-indeterminate-color [null] - The disabled border and fill colors in indeterminate state.
28
- /// @param {Color} $disabled-color-label [null] - The disabled label color.
29
- /// @param {List} $border-radius [null] - The border radius used for checkbox component.
30
- /// @param {List} $border-radius-ripple [null] - The border radius used for checkbox ripple.
31
- /// @param {Color} $focus-outline-color [null] - The focus outlined color.
32
- /// @param {Color} $focus-outline-color-focused [null] - The focus outlined color for focused state.
33
- /// @param {Color} $focus-border-color [null] - The focus border color.
34
- /// @param {Color} $error-color [null] - The border and fill colors in invalid state.
35
- /// @param {Color} $error-color-hover [null] - The border and fill colors in invalid state on hover.
36
- /// @param {Color} $focus-outline-color-error [null] - The focus outline error color.
37
- /// Set to light when the surrounding area is dark.
38
- ///
39
- /// @requires $light-material-schema
40
- ///
41
- /// @example scss Change the checked fill color
42
- /// $my-checkbox-theme: igx-checkbox-theme($fill-color: magenta);
43
- /// // Pass the theme to the css-vars mixin
44
- /// @include css-vars($my-checkbox-theme);
45
- @function checkbox-theme(
46
- $schema: $light-material-schema,
47
-
48
- $border-radius: null,
49
- $label-color: null,
50
- $label-color-hover: null,
51
- $empty-color: null,
52
- $empty-color-hover: null,
53
- $empty-fill-color: null,
54
- $fill-color: null,
55
- $fill-color-hover: null,
56
- $tick-color: null,
57
- $tick-color-hover: null,
58
- $disabled-color: null,
59
- $disabled-tick-color: null,
60
- $disabled-indeterminate-color: null,
61
- $disabled-color-label: null,
62
- $border-radius-ripple: null,
63
- $focus-outline-color: null,
64
- $focus-outline-color-focused: null,
65
- $focus-border-color: null,
66
- $error-color: null,
67
- $error-color-hover: null,
68
- $focus-outline-color-error: null,
69
- ) {
70
- $name: 'igx-checkbox';
71
- $checkbox-schema: ();
72
-
73
- @if map.has-key($schema, 'checkbox') {
74
- $checkbox-schema: map.get($schema, 'checkbox');
75
- } @else {
76
- $checkbox-schema: $schema;
77
- }
78
-
79
- $theme: digest-schema($checkbox-schema);
80
- $variant: map.get($theme, '_meta', 'theme');
81
-
82
- @if not($empty-color-hover) and $empty-color {
83
- $empty-color-hover: hsl(from var(--empty-color) h s calc(l * 0.9));
84
- }
85
-
86
- @if not($fill-color-hover) and $fill-color {
87
- $fill-color-hover: hsl(from var(--fill-color) h s calc(l * 0.9));
88
- }
89
-
90
- @if not($tick-color) and $fill-color {
91
- $tick-color: adaptive-contrast(var(--fill-color));
92
- }
93
-
94
- @if not($label-color-hover) and $label-color {
95
- $label-color-hover: hsl(from var(--label-color) h s calc(l * 0.9));
96
- }
97
-
98
- @if not($focus-border-color) and $fill-color {
99
- $focus-border-color: var(--fill-color);
100
- }
101
-
102
- @if not($disabled-indeterminate-color) and $fill-color {
103
- $disabled-indeterminate-color: hsla(from var(--fill-color) h s l / 0.5);
104
- }
105
-
106
- @if not($error-color-hover) and $error-color {
107
- $error-color-hover: hsl(from var(--error-color) h s calc(l * 0.9));
108
- }
109
-
110
- @if not($focus-outline-color-error) and $error-color {
111
- $focus-outline-color-error: hsla(from var(--error-color) h s l / .5);
112
- }
113
-
114
- @if $variant == 'bootstrap' {
115
- @if not($focus-outline-color) and $fill-color {
116
- $focus-outline-color: hsla(from var(--fill-color) h s l / .5);
117
- }
118
- }
119
-
120
- @if $variant == 'indigo' {
121
- @if not($focus-outline-color) and $empty-color {
122
- $focus-outline-color: hsla(from var(--empty-color) h s l / .5);
123
- }
124
-
125
- @if not($focus-outline-color-focused) and $fill-color {
126
- $focus-outline-color-focused: hsla(from var(--fill-color) h s l / .5);
127
- }
128
- }
129
-
130
- @return extend($theme, (
131
- name: $name,
132
- label-color: $label-color,
133
- label-color-hover: $label-color-hover,
134
- empty-color: $empty-color,
135
- empty-color-hover: $empty-color-hover,
136
- empty-fill-color: $empty-fill-color,
137
- fill-color: $fill-color,
138
- fill-color-hover: $fill-color-hover,
139
- tick-color: $tick-color,
140
- tick-color-hover: $tick-color-hover,
141
- disabled-color: $disabled-color,
142
- disabled-tick-color: $disabled-tick-color,
143
- disabled-indeterminate-color: $disabled-indeterminate-color,
144
- disabled-color-label: $disabled-color-label,
145
- border-radius: $border-radius,
146
- border-radius-ripple: $border-radius-ripple,
147
- focus-outline-color: $focus-outline-color,
148
- focus-outline-color-focused: $focus-outline-color-focused,
149
- focus-border-color: $focus-border-color,
150
- error-color: $error-color,
151
- error-color-hover: $error-color-hover,
152
- focus-outline-color-error: $focus-outline-color-error
153
- ));
154
- }
155
5
 
156
6
  /// @deprecated Use the `css-vars` mixin instead.
157
7
  /// @see {mixin} css-vars