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,1081 +1,6 @@
1
1
  @use 'sass:map';
2
- @use 'sass:meta';
3
2
  @use 'sass:math';
4
3
  @use '../../base' 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
- /// If only header background color is specified, that color will be
15
- /// used as the leading color for all accented elements, such as:
16
- /// - current date color
17
- /// - selected date background
18
- /// - picker elements hover colors
19
- /// - year/month hover/selected colors
20
- /// If only background colors are specified, text/icon colors
21
- /// will be assigned automatically to a contrasting color.
22
- /// @param {Map} $schema [$light-material-schema] - The schema used as basis for styling the component.
23
- ///
24
- /// @param {Color} $content-foreground [null] - The foreground of the days, months and years views.
25
- /// @param {Color} $content-background [null] - The background of the days, months and years views.
26
- /// @param {Color} $border-size [null] - The border size of all calendar views.
27
- ///
28
- /// @param {Color} $header-foreground [null] - The header foreground.
29
- /// @param {Color} $header-background [null] - The header background.
30
- ///
31
- /// @param {Color} $picker-foreground [null]- The foreground of the month and year pickers.
32
- /// @param {Color} $picker-background [null] - The background of the month and year pickers.
33
- /// @param {Color} $picker-hover-foreground [null]- The :hover color of the month and year pickers.
34
- ///
35
- /// @param {Color} $weekday-color [null] - The color for weekday labels.
36
- /// @param {Color} $inactive-color [null] - The color for previous and next month dates (visible only if [hideOutsideDays] is set to false(default)).
37
- /// @param {Color} $weekend-color [null] - The color for weekend days.
38
- ///
39
- /// @param {Color} $week-number-foreground [null] - The foreground of the week number column.
40
- /// @param {Color} $week-number-background [null] - The background of the week number column.
41
- ///
42
- /// @param {Color} $ym-selected-current-hover-foreground [null] - The :hover foreground for the current selected month/year.
43
- /// @param {Color} $ym-selected-current-hover-background [null] - The :hover background on hover for the current month/year.
44
- ///
45
- /// @param {Color} $navigation-color [null] - The color of the icon button responsible for month navigation.
46
- /// @param {Color} $navigation-hover-color [null] - The :hover color of the icon button responsible for month navigation.
47
- /// @param {Color} $navigation-focus-color [null] - The :focus color of the icon button responsible for month navigation.
48
- ///
49
- /// @param {Color} $ym-hover-foreground [null] - The :hover foreground of the month/year.
50
- /// @param {Color} $ym-hover-background [null] - The :hover background of the month/year.
51
- ///
52
- /// @param {Color} $ym-current-foreground [null]- The foreground of the current month/year.
53
- /// @param {Color} $ym-current-background [null]- The background of the current month/year.
54
- /// @param {Color} $ym-current-hover-foreground [null]- The :hover foreground of the current month/year.
55
- /// @param {Color} $ym-current-hover-background [null]- The :hover background of the current month/year.
56
- ///
57
- /// @param {Color} $ym-selected-foreground [null]- The foreground color of the selected month/year.
58
- /// @param {Color} $ym-selected-background [null]- The background color of the selected month/year.
59
- /// @param {Color} $ym-selected-hover-foreground [null] - The :hover foreground color of the currently selected month/year.
60
- /// @param {Color} $ym-selected-hover-background [null] - The :hover background color of the currently selected month/year.
61
- ///
62
- /// @param {Color} $ym-selected-current-foreground [null]- The foreground color of the selected current month/year.
63
- /// @param {Color} $ym-selected-current-background [null]- The background color of the selected current month/year.
64
- /// @param {Color} $ym-selected-current-hover-foreground [null] - The :hover foreground color of the current selected month/year.
65
- /// @param {Color} $ym-selected-current-hover-background [null] - The :hover background color of the current selected month/year.
66
- ///
67
- /// @param {Color} $ym-current-outline-color [null] - The outline color of the current month/year.
68
- /// @param {Color} $ym-current-outline-hover-color [null] - The :hover outline color of the current month/year.
69
- /// @param {Color} $ym-current-outline-focus-color [null] - The :focus outline color of the current month/year.
70
- ///
71
- /// @param {Color} $ym-selected-outline-color [null] - The outline color of the selected month/year.
72
- /// @param {Color} $ym-selected-hover-outline-color [null] - The :hover outline color of the selected month/year.
73
- /// @param {Color} $ym-selected-focus-outline-color [null] - The :focus outline color of the selected month/year.
74
- ///
75
- /// @param {Color} $ym-selected-current-outline-color [null] - The outline color of the selected current month/year.
76
- /// @param {Color} $ym-selected-current-outline-hover-color [null] - The :hover outline color of the selected current month/year.
77
- /// @param {Color} $ym-selected-current-outline-focus-color [null] - The :focus outline color of the selected current month/year.
78
- ///
79
- /// @param {Color} $date-hover-foreground [null] - The :hover foreground in idle state of a date.
80
- /// @param {Color} $date-hover-background [null] - The :hover background in idle state of a date.
81
- /// @param {Color} $date-focus-foreground [null] - The :focus foreground in idle state of a date.
82
- /// @param {Color} $date-focus-background [null] - The :focus background in idle state of a date.
83
- ///
84
- /// @param {Color} $date-selected-foreground [null] - The text color for the selected date.
85
- /// @param {Color} $date-selected-background [null] - The background color for the selected date.
86
- /// @param {Color} $date-selected-hover-background [null] - The hover background color for the selected date.
87
- /// @param {Color} $date-selected-focus-background [null] - The focus background color for the selected date.
88
- /// @param {Color} $date-selected-hover-foreground [null] - The hover text color for the selected date.
89
- /// @param {Color} $date-selected-focus-foreground [null] - The focus text color for the selected date.
90
- /// @param {Color} $date-selected-current-background [null] - The background color for the selected/current date.
91
- /// @param {Color} $date-selected-current-hover-background [null] - The hover background color for the selected/current date.
92
- /// @param {Color} $date-selected-current-focus-background [null] - The focus background color for the selected/current date.
93
- /// @param {Color} $date-selected-current-foreground [null] - The text color for the selected/current date.
94
- /// @param {Color} $date-selected-current-hover-foreground [null] - The hover text color for the selected/current date.
95
- /// @param {Color} $date-selected-current-focus-foreground [null] - The focus text color for the selected/current date.
96
- ///
97
- /// @param {Color} $date-selected-range-foreground [null] - The foreground of the dates in the selected range.
98
- /// @param {Color} $date-selected-range-background [null] - The background of the dates in the selected range.
99
- /// @param {Color} $date-selected-range-hover-foreground [null] - The :hover foreground of the dates in the selected range.
100
- /// @param {Color} $date-selected-range-hover-background [null] - The :hover background of the dates in the selected range.
101
- /// @param {Color} $date-selected-range-focus-foreground [null] - The :focus foreground of the dates in the selected range.
102
- /// @param {Color} $date-selected-range-focus-background [null] - The :focus background of the dates in the selected range.
103
- ///
104
- /// @param {Color} $date-selected-current-range-foreground [null] - The foreground of the current date in the selected range.
105
- /// @param {Color} $date-selected-current-range-background [null] - The background of the current date in the selected range.
106
- /// @param {Color} $date-selected-current-range-hover-foreground [null] - The :hover foreground of the current date in the selected range.
107
- /// @param {Color} $date-selected-current-range-hover-background [null] - The :hover background of the current date in the selected range.
108
- /// @param {Color} $date-selected-current-range-focus-foreground [null] - The :focus foreground of the current date in the selected range.
109
- /// @param {Color} $date-selected-current-range-focus-background [null] - The :focus background of the current date in the selected range.
110
- ///
111
- /// @param {Color} $date-selected-special-border-color: [null] - The border color of the selected special date,
112
- /// @param {Color} $date-selected-special-hover-border-color: [null] - The :hover border color of the selected special date,
113
- /// @param {Color} $date-selected-special-focus-border-color: [null] - The :focus border color of the selected special date,
114
- ///
115
- /// @param {Color} $date-current-foreground [null] - The foreground of the current date.
116
- /// @param {Color} $date-current-background [null] - The background color of the current date.
117
- /// @param {Color} $date-current-hover-foreground [null] - The :hover text color of the current date.
118
- /// @param {Color} $date-current-hover-background [null] - The :hover background color of the current date.
119
- /// @param {Color} $date-current-focus-foreground [null] - The :focus text color of the current date.
120
- /// @param {Color} $date-current-focus-background [null] - The :focus background color of the current date.
121
- ///
122
- /// @param {Color} $date-special-background [null] - The background of the dates marked as special.
123
- /// @param {Color} $date-special-foreground [null] - The foreground of the dates marked as special.
124
- /// @param {Color} $date-special-hover-background [null] - The background of the dates marked as special.
125
- /// @param {Color} $date-special-hover-foreground [null] - The foreground of the dates marked as special.
126
- /// @param {Color} $date-special-focus-background [null] - The background of the dates marked as special.
127
- /// @param {Color} $date-special-focus-foreground [null] - The foreground of the dates marked as special.
128
- /// @param {Color} $date-special-border-color [null] - The outline of the dates marked as special.
129
- ///
130
- /// @param {Color} $date-special-range-background [null] - The background of the dates inside a range and marked as special.
131
- /// @param {Color} $date-special-range-hover-background [null] - The :hover background of the dates inside a range and marked as special.
132
- /// @param {Color} $date-special-range-focus-background [null] - The :focus background of the dates inside a range and marked as special.
133
- /// @param {Color} $date-special-range-foreground [null] - The foreground of the dates inside a range and marked as special.
134
- /// @param {Color} $date-special-range-border-color [null] - The outline of the dates inside a range and marked as special.
135
- ///
136
- /// @param {Color} $border-color [null] - The calendar border color.
137
- ///
138
- /// @param {Color} $date-border-color [null] - The border color of the date.
139
- /// @param {Color} $date-hover-border-color [null] - The :hover border color of the date.
140
- /// @param {Color} $date-focus-border-color [null] - The :focus border color of the date.
141
- ///
142
- /// @param {Color} $date-selected-border-color [null] - The border color of the selected date.
143
- /// @param {Color} $date-selected-hover-border-color [null] - The :hover border color of the selected date.
144
- /// @param {Color} $date-selected-focus-border-color [null] - The :focus border color of the selected date.
145
- /// @param {Color} $date-current-border-color [null] - The border color of the current date.
146
- /// @param {Color} $date-current-hover-border-color [null] - The :hover border color of the current date.
147
- /// @param {Color} $date-current-focus-border-color [null] - The :focus border color of the current date.
148
- /// @param {Color} $date-selected-current-border-color [null] - The border color of the selected current date.
149
- /// @param {Color} $date-selected-current-hover-border-color [null] - The :hover border color of the selected current date.
150
- /// @param {Color} $date-selected-current-focus-border-color [null] - The :focus border color of the selected current date.
151
- ///
152
- /// @param {Color} $date-range-border-color [null] - The border color of range selection.
153
- /// @param {Color} $date-range-preview-border-color [null] - The border color of the range selection in preview state(visible before selecting the end of the range).
154
- /// @param {Color} $date-disabled-foreground [color: ('gray', 500, .5)] - The foreground color of disabled dates.
155
- /// @param {Color} $date-disabled-range-foreground [color: ('gray', 500)] - The foreground color of disabled dates.
156
- /// @param {Number} $size [null] - The size of the days, months, and years views.
157
- /// @param {List} $border-radius [null] - The border radius used for the calendar.
158
- /// @param {List} $date-border-radius [null] - The border radius used for the date.
159
- /// @param {List} $date-range-border-radius [null] - The border radius used for the date range selection.
160
- /// @param {List} $date-current-border-radius [null] - The border radius used for the current date .
161
- /// @param {List} $date-special-border-radius [null] - The border radius used for the special date.
162
- /// @param {List} $ym-border-radius [null] - The border radius used for the month/year.
163
- ///
164
- /// @param {Color} $actions-divider-color [null] - The border color used for the date-picker actions divider.
165
- ///
166
- /// @requires $light-material-schema
167
- ///
168
- /// @example scss Change the header and content background colors
169
- /// $my-calendar-theme: calendar-theme(
170
- /// $header-background: purple,
171
- /// $content-background: black
172
- /// );
173
- /// // Pass the theme to the css-vars() mixin
174
- /// @include css-vars($my-calendar-theme);
175
- @function calendar-theme(
176
- $schema: $light-material-schema,
177
-
178
- $content-background: null,
179
- $content-foreground: null,
180
- $border-color: null,
181
-
182
- $header-background: null,
183
- $header-foreground: null,
184
-
185
- $picker-foreground: null,
186
- $picker-background: null,
187
- $picker-hover-foreground: null,
188
- $picker-focus-foreground: null,
189
-
190
- $weekday-color: null,
191
- $weekend-color: null,
192
- $inactive-color: null,
193
-
194
- $week-number-foreground: null,
195
- $week-number-background: null,
196
-
197
- $ym-selected-current-hover-foreground: null,
198
- $ym-selected-current-hover-background: null,
199
-
200
- $navigation-color: null,
201
- $navigation-hover-color: null,
202
- $navigation-focus-color: null,
203
-
204
- $ym-hover-foreground: null,
205
- $ym-hover-background: null,
206
-
207
- $ym-current-foreground: null,
208
- $ym-current-background: null,
209
- $ym-current-hover-foreground: null,
210
- $ym-current-hover-background: null,
211
-
212
- $ym-selected-current-foreground: null,
213
- $ym-selected-current-background: null,
214
-
215
- $ym-selected-foreground: null,
216
- $ym-selected-background: null,
217
- $ym-selected-hover-foreground: null,
218
- $ym-selected-hover-background: null,
219
-
220
- $ym-current-outline-color: null,
221
- $ym-current-outline-hover-color: null,
222
- $ym-current-outline-focus-color: null,
223
-
224
- $ym-selected-outline-color: null,
225
- $ym-selected-hover-outline-color: null,
226
- $ym-selected-focus-outline-color: null,
227
-
228
- $ym-selected-current-outline-color: null,
229
- $ym-selected-current-outline-hover-color: null,
230
- $ym-selected-current-outline-focus-color: null,
231
-
232
- $date-hover-background: null,
233
- $date-focus-background: null,
234
- $date-hover-foreground: null,
235
- $date-focus-foreground: null,
236
-
237
- $date-border-color: null,
238
- $date-hover-border-color: null,
239
- $date-focus-border-color: null,
240
-
241
- $date-selected-foreground: null,
242
- $date-selected-background: null,
243
- $date-selected-hover-background: null,
244
- $date-selected-focus-background: null,
245
- $date-selected-hover-foreground: null,
246
- $date-selected-focus-foreground: null,
247
-
248
- $date-selected-range-foreground: null,
249
- $date-selected-range-background: null,
250
- $date-selected-range-hover-foreground: null,
251
- $date-selected-range-hover-background: null,
252
- $date-selected-range-focus-foreground: null,
253
- $date-selected-range-focus-background: null,
254
-
255
- $date-selected-current-foreground: null,
256
- $date-selected-current-background: null,
257
- $date-selected-current-hover-foreground: null,
258
- $date-selected-current-hover-background: null,
259
- $date-selected-current-focus-foreground: null,
260
- $date-selected-current-focus-background: null,
261
-
262
- $date-selected-current-range-foreground: null,
263
- $date-selected-current-range-background: null,
264
- $date-selected-current-range-hover-foreground: null,
265
- $date-selected-current-range-hover-background: null,
266
- $date-selected-current-range-focus-foreground: null,
267
- $date-selected-current-range-focus-background: null,
268
-
269
- $date-selected-border-color: null,
270
- $date-selected-hover-border-color: null,
271
- $date-selected-focus-border-color: null,
272
-
273
- $date-current-border-color: null,
274
- $date-current-hover-border-color: null,
275
- $date-current-focus-border-color: null,
276
-
277
- $date-selected-current-border-color: null,
278
- $date-selected-current-hover-border-color: null,
279
- $date-selected-current-focus-border-color: null,
280
-
281
- $date-selected-special-border-color: null,
282
- $date-selected-special-hover-border-color: null,
283
- $date-selected-special-focus-border-color: null,
284
-
285
- $date-current-foreground: null,
286
- $date-current-background: null,
287
- $date-current-hover-foreground: null,
288
- $date-current-focus-foreground: null,
289
- $date-current-hover-background: null,
290
- $date-current-focus-background: null,
291
-
292
- $date-special-background: null,
293
- $date-special-foreground: null,
294
- $date-special-hover-background: null,
295
- $date-special-hover-foreground: null,
296
- $date-special-focus-background: null,
297
- $date-special-focus-foreground: null,
298
- $date-special-border-color: null,
299
- $date-special-hover-border-color: null,
300
- $date-special-range-background: null,
301
- $date-special-range-hover-background: null,
302
- $date-special-range-focus-background: null,
303
- $date-special-range-foreground: null,
304
- $date-special-range-border-color: null,
305
- $date-disabled-foreground: null,
306
- $date-disabled-range-foreground: null,
307
-
308
- $date-range-border-color: null,
309
- $date-range-preview-border-color: null,
310
-
311
- $border-radius: null,
312
- $date-border-radius: null,
313
- $week-number-border-radius: null,
314
- $date-range-border-radius: null,
315
- $date-current-border-radius: null,
316
- $date-special-border-radius: null,
317
- $ym-border-radius: null,
318
-
319
- $actions-divider-color: null,
320
-
321
- $size: null,
322
- $inner-size: null,
323
- ) {
324
- $name: 'igx-calendar';
325
- $selector: 'igx-calendar, .igx-days-view--standalone, .igx-calendar-view--standalone, .igx-date-picker, .igx-month-picker';
326
- $calendar-schema: ();
327
-
328
- @if map.has-key($schema, 'calendar') {
329
- $calendar-schema: map.get($schema, 'calendar');
330
- } @else {
331
- $calendar-schema: $schema;
332
- }
333
-
334
- $theme: digest-schema($calendar-schema);
335
- $variant: map.get($schema, '_meta', 'theme');
336
-
337
- @if not($date-range-border-radius) and $date-border-radius {
338
- $date-range-border-radius: $date-border-radius;
339
- }
340
-
341
- @if not($date-border-radius) and $date-range-border-radius {
342
- $date-border-radius: $date-range-border-radius;
343
- }
344
-
345
- @if not($date-current-border-radius) and $date-border-radius {
346
- $date-current-border-radius: $date-border-radius;
347
- }
348
-
349
- @if not($date-special-border-radius) and $date-border-radius {
350
- $date-special-border-radius: $date-border-radius;
351
- }
352
-
353
- //base start
354
- @if not($header-foreground) and $header-background {
355
- $header-foreground: adaptive-contrast(var(--header-background));
356
- }
357
-
358
- @if not($content-foreground) and $content-background {
359
- $content-foreground: adaptive-contrast(var(--content-background));
360
- }
361
-
362
- @if not($weekend-color) and $content-foreground {
363
- $weekend-color: var(--content-foreground);
364
- }
365
-
366
- @if not($inactive-color) and $content-background {
367
- $inactive-color: hsla(from adaptive-contrast(var(--content-background)) h s l / .5);
368
- }
369
-
370
- @if not($weekday-color) and $inactive-color {
371
- $weekday-color: var(--inactive-color);
372
- }
373
-
374
- @if not($week-number-background) and $content-background {
375
- $week-number-background: hsla(from var(--content-background) h s calc(l * 0.8));
376
- }
377
-
378
- @if not($week-number-foreground) and $week-number-background {
379
- $week-number-foreground: hsla(from adaptive-contrast(var(--week-number-background)) h s l / 0.5);
380
- }
381
- //base end
382
-
383
- //picker start
384
- @if $variant == 'bootstrap' {
385
- @if not($picker-background) and $header-background {
386
- $picker-background: var(--header-background);
387
- }
388
-
389
- @if not($picker-hover-foreground) and $picker-background {
390
- $picker-hover-foreground: hsla(from adaptive-contrast(var(--picker-background)) h s l / 0.8);
391
- }
392
-
393
- @if not($weekday-color) and $header-background {
394
- $weekday-color: hsla(from adaptive-contrast(var(--header-background)) h s l / 0.8);
395
- }
396
- } @else {
397
- @if not($picker-background) and $content-background {
398
- $picker-background: var(--content-background);
399
- }
400
-
401
- @if not($picker-hover-foreground) and $header-background {
402
- $picker-hover-foreground: var(--header-background);
403
- }
404
- }
405
-
406
- @if not($picker-foreground) and $picker-background {
407
- $picker-foreground: adaptive-contrast(var(--picker-background));
408
- }
409
-
410
- @if not($picker-focus-foreground) and $picker-hover-foreground {
411
- $picker-focus-foreground: var(--picker-hover-foreground);
412
- }
413
-
414
- @if not($navigation-color) and $picker-background {
415
- $navigation-color: adaptive-contrast(var(--picker-background));
416
- }
417
-
418
- @if not($navigation-hover-color) and $picker-hover-foreground {
419
- $navigation-hover-color: var(--picker-hover-foreground);
420
- }
421
-
422
- @if not($navigation-focus-color) and $navigation-hover-color {
423
- $navigation-focus-color: var(--navigation-hover-color);
424
- }
425
- //picker end
426
-
427
- //date start
428
- @if not($date-hover-background) and $content-background {
429
- $date-hover-background: hsl(from var(--content-background) h s calc(l * 0.9));
430
- }
431
-
432
- @if not($date-hover-foreground) and $date-hover-background {
433
- $date-hover-foreground: adaptive-contrast(var(--date-hover-background));
434
- }
435
-
436
- @if not($date-focus-background) and $date-hover-background {
437
- $date-focus-background: var(--date-hover-background)
438
- }
439
-
440
- @if not($date-focus-foreground) and $date-hover-foreground {
441
- $date-focus-foreground: var(--date-hover-foreground);
442
- }
443
-
444
- @if not($ym-hover-background) and $date-hover-background {
445
- $ym-hover-background: var(--date-hover-background);
446
- }
447
-
448
- @if not($ym-hover-foreground) and $ym-hover-background {
449
- $ym-hover-foreground: adaptive-contrast(var(--ym-hover-background));
450
- }
451
- //date end
452
-
453
- //date current start
454
- @if $variant == 'indigo' {
455
- @if not($date-current-background) and $header-background {
456
- $date-current-background: hsla(from var(--header-background) h s l / 0.4);
457
- }
458
-
459
- @if not($date-current-border-color) and $date-current-background {
460
- $date-current-border-color: hsla(from var(--date-current-background) h s l / 0.6);
461
- }
462
-
463
- @if not($date-current-hover-background) and $date-current-background {
464
- $date-current-hover-background: hsl(from var(--date-current-background) h s calc(l * 0.9));
465
- }
466
-
467
- @if not($date-current-hover-border-color) and $date-current-border-color {
468
- $date-current-hover-border-color: hsl(from var(--date-current-border-color) h s calc(l * 0.9));
469
- }
470
-
471
- @if not($date-current-focus-background) and $date-current-hover-background {
472
- $date-current-focus-background: var(--date-current-hover-background);
473
- }
474
-
475
- @if not($date-current-focus-border-color) and $date-current-hover-border-color {
476
- $date-current-focus-border-color: var(--date-current-hover-border-color);
477
- }
478
-
479
- @if not($date-current-foreground) and $date-current-background {
480
- $date-current-foreground: adaptive-contrast(var(--date-current-background));
481
- }
482
-
483
- @if not($date-current-foreground) and $content-foreground {
484
- $date-current-foreground: var(--content-foreground);
485
- }
486
-
487
- @if not($date-current-hover-foreground) and $date-current-foreground {
488
- $date-current-hover-foreground: var(--date-current-foreground);
489
- }
490
-
491
- @if not($date-current-focus-foreground) and $date-current-foreground {
492
- $date-current-focus-foreground: var(--date-current-foreground);
493
- }
494
- }
495
-
496
- @if $variant == 'fluent' {
497
- @if not($date-current-background) and $header-background {
498
- $date-current-background: var(--header-background);
499
- }
500
- }
501
-
502
- @if $variant == 'material' or $variant == 'bootstrap' {
503
- @if not($date-current-background) and $content-background {
504
- $date-current-background: var(--content-background);
505
- }
506
- }
507
-
508
- @if $variant != 'indigo' {
509
- @if not($date-current-foreground) and $date-current-background {
510
- $date-current-foreground: adaptive-contrast(var(--date-current-background));
511
- }
512
-
513
- @if not($date-current-hover-background) and $date-hover-background {
514
- $date-current-hover-background: var(--date-hover-background);
515
- }
516
-
517
- @if not($date-current-focus-background) and $date-focus-background {
518
- $date-current-focus-background: var(--date-focus-background);
519
- }
520
-
521
- @if $variant == 'fluent' {
522
- @if not($date-current-hover-foreground) and $date-current-background {
523
- $date-current-hover-foreground: adaptive-contrast(var(--date-current-background));
524
- }
525
-
526
- @if not($date-current-focus-foreground) and $date-current-background {
527
- $date-current-focus-foreground: adaptive-contrast(var(--date-current-background));
528
- }
529
- }
530
-
531
- @if not($date-current-hover-foreground) and $date-current-hover-background {
532
- $date-current-hover-foreground: adaptive-contrast(var(--date-current-hover-background));
533
- }
534
-
535
- @if not($date-current-focus-foreground) and $date-current-hover-background {
536
- $date-current-focus-foreground: adaptive-contrast(var(--date-current-hover-background));
537
- }
538
- }
539
-
540
- @if $variant == 'material' or $variant == 'bootstrap' {
541
- @if not($date-current-border-color) and $date-current-foreground {
542
- $date-current-border-color: var(--date-current-foreground);
543
- }
544
-
545
- @if not($date-current-hover-border-color) and $date-current-hover-foreground {
546
- $date-current-hover-border-color: var(--date-current-hover-foreground);
547
- }
548
-
549
- @if not($date-current-focus-border-color) and $date-current-focus-foreground {
550
- $date-current-focus-border-color: var(--date-current-focus-foreground);
551
- }
552
- }
553
- //date current end
554
-
555
- //date selected start
556
-
557
- @if $variant == 'fluent' {
558
- @if not($date-selected-background) and $date-hover-background {
559
- $date-selected-background: var(--date-hover-background);
560
- }
561
- } @else {
562
- @if not($date-selected-background) and $header-background {
563
- $date-selected-background: var(--header-background);
564
- }
565
- }
566
-
567
- @if not($date-selected-current-background) and $date-selected-background {
568
- $date-selected-current-background: var(--date-selected-background);
569
- }
570
-
571
- @if not($date-selected-hover-background) and $date-selected-background {
572
- $date-selected-hover-background: hsl(from var(--date-selected-background) h s calc(l * 0.9));
573
- }
574
-
575
- @if not($date-selected-current-hover-background) and $date-selected-hover-background {
576
- $date-selected-current-hover-background: var(--date-selected-hover-background);
577
- }
578
-
579
- @if not($date-selected-focus-background) and $date-selected-hover-background {
580
- $date-selected-focus-background: var(--date-selected-hover-background);
581
- }
582
-
583
- @if not($date-selected-current-focus-background) and $date-selected-focus-background {
584
- $date-selected-current-focus-background: var(--date-selected-focus-background);
585
- }
586
-
587
- @if not($date-selected-foreground) and $date-selected-background {
588
- $date-selected-foreground: adaptive-contrast(var(--date-selected-background));
589
- }
590
-
591
- @if not($date-selected-hover-foreground) and $date-selected-background {
592
- $date-selected-hover-foreground: adaptive-contrast(var(--date-selected-background));
593
- }
594
-
595
- @if not($date-selected-focus-foreground) and $date-selected-background {
596
- $date-selected-focus-foreground: adaptive-contrast(var(--date-selected-background));
597
- }
598
-
599
- @if $variant == 'indigo' {
600
- @if not($date-selected-current-border-color) and $date-selected-current-background {
601
- $date-selected-current-border-color: hsl(from var(--date-selected-current-background) h calc(s * 0.9) calc(l * 1.5));
602
- }
603
- } @else {
604
- @if not($date-selected-current-border-color) and $content-foreground {
605
- $date-selected-current-border-color: var(--content-foreground);
606
- }
607
- }
608
-
609
- @if not($date-selected-current-hover-background) and $date-selected-hover-background {
610
- $date-selected-current-hover-background: var(--date-selected-hover-background);
611
- }
612
-
613
- @if not($date-selected-current-hover-border-color) and $date-selected-current-border-color {
614
- $date-selected-current-hover-border-color: var(--date-selected-current-border-color);
615
- }
616
-
617
- @if $variant == 'fluent' {
618
- @if not($date-selected-current-foreground) and $date-current-background {
619
- $date-selected-current-foreground: adaptive-contrast(var(--date-current-background));
620
- }
621
-
622
- @if not($date-selected-current-hover-foreground) and $date-current-background {
623
- $date-selected-current-hover-foreground: adaptive-contrast(var(--date-current-background));
624
- }
625
-
626
- @if not($date-selected-current-focus-foreground) and $date-current-background {
627
- $date-selected-current-focus-foreground: adaptive-contrast(var(--date-current-background));
628
- }
629
- } @else {
630
- @if not($date-selected-current-foreground) and $date-selected-background {
631
- $date-selected-current-foreground: adaptive-contrast(var(--date-selected-background));
632
- }
633
-
634
- @if not($date-selected-current-hover-foreground) and $date-selected-background {
635
- $date-selected-current-hover-foreground: adaptive-contrast(var(--date-selected-background));
636
- }
637
-
638
- @if not($date-selected-current-focus-foreground) and $date-selected-current-focus-background {
639
- $date-selected-current-focus-foreground: adaptive-contrast(var(--date-selected-current-focus-background));
640
- }
641
- }
642
-
643
- @if not($date-selected-current-focus-border-color) and $date-selected-current-hover-border-color {
644
- $date-selected-current-focus-border-color: var(--date-selected-current-hover-border-color);
645
- }
646
- //date selected end
647
-
648
- //date special start
649
- @if $variant == 'fluent' or $variant == 'bootstrap' {
650
- @if not($date-special-foreground) and $content-foreground {
651
- $date-special-foreground: var(--content-foreground);
652
- }
653
-
654
- @if not($date-special-border-color) and $header-background {
655
- $date-special-border-color: var(--header-background);
656
- }
657
-
658
- @if not($date-special-hover-border-color) and $date-special-border-color {
659
- $date-special-hover-border-color: var(--date-special-border-color);
660
- }
661
-
662
- @if not($date-special-focus-foreground) and $date-special-foreground {
663
- $date-special-focus-foreground: var(--date-special-foreground);
664
- }
665
- } @else {
666
- @if not($date-special-foreground) and $header-background {
667
- $date-special-foreground: var(--header-background);
668
- }
669
-
670
- @if not($date-special-border-color) and $date-special-foreground {
671
- $date-special-border-color: var(--date-special-foreground);
672
- }
673
-
674
- @if not($date-special-hover-foreground) and $date-special-foreground {
675
- $date-special-hover-foreground: hsl(from var(--date-special-foreground) h s calc(l * 0.8));
676
- }
677
-
678
- @if not($date-special-hover-border-color) and $date-special-hover-foreground {
679
- $date-special-hover-border-color: var(--date-special-hover-foreground);
680
- }
681
-
682
- @if not($date-special-focus-foreground) and $date-special-hover-border-color {
683
- $date-special-focus-foreground: var(--date-special-hover-border-color);
684
- }
685
- }
686
-
687
- @if not($date-special-hover-foreground) and $date-special-foreground {
688
- $date-special-hover-foreground: hsl(from var(--date-special-foreground) h s calc(l * 0.8));
689
- }
690
-
691
- @if not($date-special-hover-background) and $date-hover-background {
692
- $date-special-hover-background: var(--date-hover-background);
693
- }
694
-
695
- @if not($date-special-focus-background) and $date-focus-background {
696
- $date-special-focus-background: var(--date-focus-background);
697
- }
698
-
699
- @if not($date-special-range-focus-background) and $date-special-focus-background {
700
- $date-special-range-focus-background: var(--date-special-focus-background);
701
- }
702
-
703
- @if $variant != 'fluent' {
704
- @if not($date-selected-special-border-color) and $date-selected-foreground {
705
- $date-selected-special-border-color: var(--date-selected-foreground);
706
- }
707
-
708
- @if not($date-selected-special-hover-border-color) and $date-selected-hover-foreground {
709
- $date-selected-special-hover-border-color: var(--date-selected-hover-foreground);
710
- }
711
-
712
- @if not($date-selected-special-focus-border-color) and $date-selected-focus-foreground {
713
- $date-selected-special-focus-border-color: var(--date-selected-focus-foreground);
714
- }
715
- } @else {
716
- @if not($date-selected-special-border-color) and $date-special-border-color {
717
- $date-selected-special-border-color: var(--date-special-border-color);
718
- }
719
-
720
- @if not($date-selected-special-hover-border-color) and $date-selected-special-border-color {
721
- $date-selected-special-hover-border-color: var(--date-selected-special-border-color);
722
- }
723
-
724
- @if not($date-selected-special-focus-border-color) and $date-selected-special-border-color {
725
- $date-selected-special-focus-border-color: var(--date-selected-special-border-color);
726
- }
727
- }
728
- //date special end
729
-
730
- //calendar views start
731
- @if $variant != 'fluent' {
732
- @if not($ym-selected-background) and $header-background {
733
- $ym-selected-background: var(--header-background);
734
- }
735
-
736
- @if not($ym-selected-hover-background) and $ym-selected-background {
737
- $ym-selected-hover-background: hsl(from var(--ym-selected-background) h s calc(l * 0.9));
738
- }
739
-
740
- @if not($ym-current-background) and $date-current-background {
741
- $ym-current-background: var(--date-current-background);
742
- }
743
-
744
- @if not($ym-current-hover-background) and $date-current-hover-background {
745
- $ym-current-hover-background: var(--date-current-hover-background);
746
- }
747
-
748
- @if not($ym-current-outline-color) and $date-current-border-color {
749
- $ym-current-outline-color: var(--date-current-border-color);
750
- }
751
-
752
- @if not($ym-current-outline-hover-color) and $ym-current-outline-color {
753
- $ym-current-outline-hover-color: var(--ym-current-outline-color);
754
- }
755
-
756
- @if not($ym-current-outline-focus-color) and $ym-current-outline-hover-color {
757
- $ym-current-outline-focus-color: var(--ym-current-outline-hover-color);
758
- }
759
-
760
- @if not($ym-selected-current-outline-color) and $ym-current-outline-color {
761
- $ym-selected-current-outline-color: var(--ym-current-outline-color);
762
- }
763
-
764
- @if not($ym-selected-current-outline-hover-color) and $ym-current-outline-hover-color {
765
- $ym-selected-current-outline-hover-color: var(--ym-current-outline-hover-color);
766
- }
767
-
768
- @if not($ym-selected-current-outline-focus-color) and $ym-current-outline-focus-color {
769
- $ym-selected-current-outline-focus-color: var(--ym-current-outline-focus-color);
770
- }
771
- } @else {
772
- @if not($ym-selected-background) and $header-background {
773
- $ym-selected-background: hsla(from var(--header-background) h s l / 0.3);
774
- }
775
-
776
- @if not($ym-current-background) and $date-selected-background {
777
- $ym-current-background: var(--date-selected-background);
778
- }
779
-
780
- @if not($ym-current-hover-background) and $ym-current-background {
781
- $ym-current-hover-background: hsl(from var(--ym-current-background) h s calc(l * 0.9));
782
- }
783
-
784
- @if not($ym-selected-hover-background) and $ym-selected-background {
785
- $ym-selected-hover-background: hsla(from var(--ym-selected-background) h s calc(l * 0.9) / 0.5);
786
- }
787
-
788
- @if not($ym-selected-current-outline-color) and $ym-selected-current-foreground {
789
- $ym-selected-current-outline-color: var(--ym-selected-current-foreground);
790
- }
791
-
792
- @if not($ym-selected-foreground) and $content-foreground {
793
- $ym-selected-foreground: var(--content-foreground);
794
- }
795
-
796
- @if not($ym-selected-hover-foreground) and $ym-selected-foreground {
797
- $ym-selected-hover-foreground: var(--content-foreground);
798
- }
799
- }
800
-
801
- @if not($ym-selected-current-background) and $ym-selected-background {
802
- $ym-selected-current-background: var(--ym-selected-background);
803
- }
804
-
805
- @if not($ym-selected-current-hover-background) and $ym-selected-hover-background {
806
- $ym-selected-current-hover-background: var(--ym-selected-hover-background);
807
- }
808
-
809
- @if not($ym-current-foreground) and $ym-current-background {
810
- $ym-current-foreground: adaptive-contrast(var(--ym-current-background));
811
- }
812
-
813
- @if not($ym-current-hover-foreground) and $ym-current-hover-background {
814
- $ym-current-hover-foreground: adaptive-contrast(var(--ym-current-hover-background));
815
- }
816
-
817
- @if not($ym-selected-current-foreground) and $ym-selected-current-background {
818
- $ym-selected-current-foreground: adaptive-contrast(var(--ym-selected-current-background));
819
- }
820
-
821
- @if not($ym-selected-current-hover-foreground) and $ym-selected-current-hover-background {
822
- $ym-selected-current-hover-foreground: adaptive-contrast(var(--ym-selected-current-hover-background));
823
- }
824
- //calendar views end
825
-
826
- //date range start
827
- @if not($date-selected-range-foreground) and $content-foreground {
828
- $date-selected-range-foreground: var(--content-foreground);
829
- }
830
-
831
- @if $variant == 'fluent' {
832
- @if not($date-selected-range-background) and $date-selected-background {
833
- $date-selected-range-background: var(--date-selected-background);
834
- }
835
-
836
- @if not($date-selected-current-range-background) and $date-selected-range-background {
837
- $date-selected-current-range-background: var(--date-selected-range-background);
838
- }
839
-
840
- @if not($date-selected-range-hover-background) and $date-selected-hover-background {
841
- $date-selected-range-hover-background: var(--date-selected-hover-background);
842
- }
843
-
844
- @if not($date-selected-range-focus-background) and $date-selected-hover-background {
845
- $date-selected-range-focus-background: var(--date-selected-hover-background);
846
- }
847
-
848
- @if not($date-selected-current-range-hover-foreground) and $date-current-background {
849
- $date-selected-current-range-hover-foreground: adaptive-contrast(var(--date-current-background));
850
- }
851
-
852
- @if not($date-selected-current-range-focus-background) and $date-current-background {
853
- $date-selected-current-range-focus-background: adaptive-contrast(var(--date-current-background));
854
- }
855
- } @else {
856
- @if not($date-selected-range-background) and $date-selected-background {
857
- $date-selected-range-background: hsla(from var(--date-selected-background) h s l / 0.24);
858
- }
859
-
860
- @if not($date-range-preview-border-color) and $date-selected-background {
861
- $date-range-preview-border-color: var(--date-selected-background);
862
- }
863
-
864
- @if not($date-selected-current-range-hover-foreground) and $date-selected-current-range-hover-background {
865
- $date-selected-current-range-hover-foreground: adaptive-contrast(var(--date-selected-current-range-hover-background));
866
- }
867
-
868
- @if not($date-selected-current-range-hover-foreground) and $content-foreground {
869
- $date-selected-current-range-hover-foreground: var(--content-foreground);
870
- }
871
-
872
- @if not($date-selected-current-range-focus-background) and $date-selected-current-range-hover-background {
873
- $date-selected-current-range-focus-background: var(--date-selected-current-range-hover-background);
874
- }
875
- }
876
-
877
- @if not($date-selected-range-hover-background) and $date-hover-background {
878
- $date-selected-range-hover-background: var(--date-hover-background);
879
- }
880
-
881
- @if not($date-selected-range-focus-background) and $date-selected-range-hover-background {
882
- $date-selected-range-focus-background: var(--date-selected-range-hover-background);
883
- }
884
-
885
- @if not($date-selected-range-hover-foreground) and $date-selected-range-hover-background {
886
- $date-selected-range-hover-foreground: adaptive-contrast(hsla(from var(--date-selected-range-hover-background) h s l / 1));
887
- }
888
-
889
- @if not($date-selected-range-focus-foreground) and $date-selected-range-focus-background {
890
- $date-selected-range-focus-foreground: adaptive-contrast(hsla(from var(--date-selected-range-focus-background) h s l / 1));
891
- }
892
-
893
- @if $variant == 'indigo' {
894
- @if not($date-selected-current-range-background) and $date-selected-background {
895
- $date-selected-current-range-background: hsla(from var(--date-selected-background) h s calc(l * 0.9) / 0.12);
896
- }
897
-
898
- @if not($date-selected-current-range-hover-background) and $date-selected-background {
899
- $date-selected-current-range-hover-background: hsla(from var(--date-selected-background) h s calc(l * 0.9) / 0.24);
900
- }
901
-
902
- @if not($date-selected-current-range-foreground) and $date-current-background {
903
- $date-selected-current-range-foreground: adaptive-contrast(var(--date-current-background));
904
- }
905
- } @else {
906
- @if not($date-selected-current-range-foreground) and $date-current-background {
907
- $date-selected-current-range-foreground: adaptive-contrast(var(--date-current-background));
908
- }
909
-
910
- @if not($date-selected-current-range-foreground) and $content-foreground {
911
- $date-selected-current-range-foreground: var(--content-foreground);
912
- }
913
- }
914
-
915
- @if not($date-special-range-foreground) and $date-special-foreground {
916
- $date-special-range-foreground: hsl(from var(--date-special-foreground) h s calc(l * 0.8));
917
- }
918
-
919
- @if not($date-special-range-border-color) and $date-special-range-foreground {
920
- $date-special-range-border-color: var(--date-special-range-foreground);
921
- }
922
-
923
- @if not($date-special-range-hover-background) and $date-selected-range-hover-background {
924
- $date-special-range-hover-background: var(--date-selected-range-hover-background);
925
- }
926
- //date range end
927
-
928
- @if not($date-disabled-foreground) and $content-background {
929
- $date-disabled-foreground: hsla(from adaptive-contrast(var(--content-background)) h s l / .3);
930
- }
931
-
932
- @if not($date-disabled-range-foreground) and $date-selected-range-background {
933
- $date-disabled-range-foreground: hsla(from adaptive-contrast(var(--content-background)) h s l / .3);
934
- }
935
-
936
- @return extend($theme, (
937
- name: $name,
938
- selector: $selector,
939
-
940
- content-background: $content-background,
941
- content-foreground: $content-foreground,
942
- border-color: $border-color,
943
-
944
- header-background: $header-background,
945
- header-foreground: $header-foreground,
946
-
947
- picker-foreground: $picker-foreground,
948
- picker-background: $picker-background,
949
- picker-hover-foreground: $picker-hover-foreground,
950
- picker-focus-foreground: $picker-focus-foreground,
951
-
952
- navigation-color: $navigation-color,
953
- navigation-hover-color: $navigation-hover-color,
954
- navigation-focus-color: $navigation-focus-color,
955
-
956
- ym-hover-foreground: $ym-hover-foreground,
957
- ym-hover-background: $ym-hover-background,
958
-
959
- ym-current-background: $ym-current-background,
960
- ym-current-foreground: $ym-current-foreground,
961
- ym-current-hover-foreground: $ym-current-hover-foreground,
962
- ym-current-hover-background: $ym-current-hover-background,
963
-
964
- ym-selected-foreground: $ym-selected-foreground,
965
- ym-selected-background: $ym-selected-background,
966
- ym-selected-hover-foreground: $ym-selected-hover-foreground,
967
- ym-selected-hover-background: $ym-selected-hover-background,
968
-
969
- ym-selected-current-foreground: $ym-selected-current-foreground,
970
- ym-selected-current-background: $ym-selected-current-background,
971
- ym-selected-current-hover-foreground: $ym-selected-current-hover-foreground,
972
- ym-selected-current-hover-background: $ym-selected-current-hover-background,
973
-
974
- ym-current-outline-color: $ym-current-outline-color,
975
- ym-current-outline-hover-color: $ym-current-outline-hover-color,
976
- ym-current-outline-focus-color: $ym-current-outline-focus-color,
977
-
978
- ym-selected-outline-color: $ym-selected-outline-color,
979
- ym-selected-hover-outline-color: $ym-selected-hover-outline-color,
980
- ym-selected-focus-outline-color: $ym-selected-focus-outline-color,
981
-
982
- ym-selected-current-outline-color: $ym-selected-current-outline-color,
983
- ym-selected-current-outline-hover-color: $ym-selected-current-outline-hover-color,
984
- ym-selected-current-outline-focus-color: $ym-selected-current-outline-focus-color,
985
-
986
- date-hover-background: $date-hover-background,
987
- date-focus-background: $date-focus-background,
988
- date-hover-foreground: $date-hover-foreground,
989
- date-focus-foreground: $date-focus-foreground,
990
-
991
- date-selected-background: $date-selected-background,
992
- date-selected-foreground: $date-selected-foreground,
993
- date-selected-hover-background: $date-selected-hover-background,
994
- date-selected-focus-background: $date-selected-focus-background,
995
- date-selected-hover-foreground: $date-selected-hover-foreground,
996
- date-selected-focus-foreground: $date-selected-focus-foreground,
997
-
998
- date-selected-range-foreground: $date-selected-range-foreground,
999
- date-selected-range-background: $date-selected-range-background,
1000
- date-selected-range-hover-foreground: $date-selected-range-hover-foreground,
1001
- date-selected-range-hover-background: $date-selected-range-hover-background,
1002
- date-selected-range-focus-foreground: $date-selected-range-focus-foreground,
1003
- date-selected-range-focus-background: $date-selected-range-focus-background,
1004
-
1005
- date-selected-current-range-foreground: $date-selected-current-range-foreground,
1006
- date-selected-current-range-background: $date-selected-current-range-background,
1007
- date-selected-current-range-hover-foreground: $date-selected-current-range-hover-foreground,
1008
- date-selected-current-range-hover-background: $date-selected-current-range-hover-background,
1009
- date-selected-current-range-focus-foreground: $date-selected-current-range-focus-foreground,
1010
- date-selected-current-range-focus-background: $date-selected-current-range-focus-background,
1011
-
1012
- date-current-background: $date-current-background,
1013
- date-current-foreground: $date-current-foreground,
1014
- date-current-hover-background: $date-current-hover-background,
1015
- date-current-focus-background: $date-current-focus-background,
1016
- date-current-hover-foreground: $date-current-hover-foreground,
1017
- date-current-focus-foreground: $date-current-focus-foreground,
1018
-
1019
- date-selected-current-background: $date-selected-current-background,
1020
- date-selected-current-hover-background: $date-selected-current-hover-background,
1021
- date-selected-current-focus-background: $date-selected-current-focus-background,
1022
- date-selected-current-foreground: $date-selected-current-foreground,
1023
- date-selected-current-hover-foreground: $date-selected-current-hover-foreground,
1024
- date-selected-current-focus-foreground: $date-selected-current-focus-foreground,
1025
-
1026
- date-selected-special-border-color: $date-selected-special-border-color,
1027
- date-selected-special-hover-border-color: $date-selected-special-hover-border-color,
1028
- date-selected-special-focus-border-color: $date-selected-special-focus-border-color,
1029
-
1030
- date-special-foreground: $date-special-foreground,
1031
- date-special-background: $date-special-background,
1032
- date-special-hover-foreground: $date-special-hover-foreground,
1033
- date-special-hover-background: $date-special-hover-background,
1034
- date-special-focus-foreground: $date-special-focus-foreground,
1035
- date-special-focus-background: $date-special-focus-background,
1036
- date-special-border-color: $date-special-border-color,
1037
- date-special-hover-border-color: $date-special-hover-border-color,
1038
- date-special-range-foreground: $date-special-range-foreground,
1039
- date-special-range-background: $date-special-range-background,
1040
- date-special-range-hover-background: $date-special-range-hover-background,
1041
- date-special-range-focus-background: $date-special-range-focus-background,
1042
- date-special-range-border-color: $date-special-range-border-color,
1043
-
1044
- week-number-foreground: $week-number-foreground,
1045
- week-number-background: $week-number-background,
1046
-
1047
- weekend-color: $weekend-color,
1048
- inactive-color: $inactive-color,
1049
- weekday-color: $weekday-color,
1050
-
1051
- border-radius: $border-radius,
1052
- date-border-radius: $date-border-radius,
1053
- date-range-border-radius: $date-range-border-radius,
1054
- date-current-border-radius: $date-current-border-radius,
1055
- date-special-border-radius: $date-special-border-radius,
1056
- ym-border-radius: $ym-border-radius,
1057
- week-number-border-radius: $week-number-border-radius,
1058
- date-border-color: $date-border-color,
1059
- date-hover-border-color: $date-hover-border-color,
1060
- date-focus-border-color: $date-focus-border-color,
1061
- date-selected-border-color: $date-selected-border-color,
1062
- date-selected-hover-border-color: $date-selected-hover-border-color,
1063
- date-selected-focus-border-color: $date-selected-focus-border-color,
1064
- date-current-border-color: $date-current-border-color,
1065
- date-current-hover-border-color: $date-current-hover-border-color,
1066
- date-current-focus-border-color: $date-current-focus-border-color,
1067
- date-selected-current-border-color: $date-selected-current-border-color,
1068
- date-selected-current-hover-border-color: $date-selected-current-hover-border-color,
1069
- date-selected-current-focus-border-color: $date-selected-current-focus-border-color,
1070
- date-range-preview-border-color: $date-range-preview-border-color,
1071
- date-range-border-color: $date-range-border-color,
1072
- date-disabled-foreground: $date-disabled-foreground,
1073
- date-disabled-range-foreground: $date-disabled-range-foreground,
1074
- actions-divider-color: $actions-divider-color,
1075
- size: $size,
1076
- inner-size: $inner-size,
1077
- ));
1078
- }
1079
4
 
1080
5
  /// @deprecated Use the `css-vars` mixin instead.
1081
6
  /// @see {mixin} css-vars