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