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
|
@@ -1,242 +1,8 @@
|
|
|
1
1
|
@use 'sass:map';
|
|
2
2
|
@use 'sass:meta';
|
|
3
|
-
@use 'sass:color';
|
|
4
3
|
@use 'sass:list';
|
|
5
4
|
@use 'sass:string';
|
|
6
5
|
@use '../../base' as *;
|
|
7
|
-
@use '../../themes/schemas' as *;
|
|
8
|
-
|
|
9
|
-
@forward './flat-button-theme';
|
|
10
|
-
@forward './contained-button-theme';
|
|
11
|
-
@forward './outlined-button-theme';
|
|
12
|
-
@forward './fab-button-theme';
|
|
13
|
-
|
|
14
|
-
////
|
|
15
|
-
/// @group themes
|
|
16
|
-
/// @access public
|
|
17
|
-
/// @author <a href="https://github.com/desig9stein" target="_blank">Marin Popov</a>
|
|
18
|
-
/// @author <a href="https://github.com/simeonoff" target="_blank">Simeon Simeonoff</a>
|
|
19
|
-
////
|
|
20
|
-
|
|
21
|
-
/// If only background color is specified, text/icon color
|
|
22
|
-
/// will be assigned automatically to a contrasting color.
|
|
23
|
-
/// Does ___not___ apply for disabled state colors.
|
|
24
|
-
/// @param {Map} $schema [$light-material-schema] - The schema used as basis for styling the component.
|
|
25
|
-
/// @param {Color} $background [null] - The background color of the button.
|
|
26
|
-
/// @param {Color} $foreground [null] - The text color of the button.
|
|
27
|
-
/// @param {Color} $icon-color [null] - The icon color in the button.
|
|
28
|
-
/// @param {Color} $icon-color-hover [null] - The icon color in the button on hover.
|
|
29
|
-
/// @param {Color} $hover-background [null] - The hover background color of the button.
|
|
30
|
-
/// @param {Color} $hover-foreground [null] - The hover text color of the button.
|
|
31
|
-
/// @param {Color} $focus-background [null] - The focus background color of the button.
|
|
32
|
-
/// @param {Color} $focus-foreground [null] - The focus text color of the button.
|
|
33
|
-
/// @param {Color} $focus-hover-background [null] - The background color on focus hovered state of the button.
|
|
34
|
-
/// @param {Color} $focus-hover-foreground [null] - The text color on focus hovered state of the button.
|
|
35
|
-
/// @param {Color} $focus-visible-background [null] - The focus-visible background color of the button.
|
|
36
|
-
/// @param {Color} $focus-visible-foreground [null] - The focus-visible text color of the button.
|
|
37
|
-
/// @param {Color} $active-background [null] - The active background of the button.
|
|
38
|
-
/// @param {Color} $active-foreground [null] - The active text color of the button.
|
|
39
|
-
/// @param {List} $border-radius [null] - The border radius of the button.
|
|
40
|
-
/// @param {Color} $border-color [null] - The border color of the button.
|
|
41
|
-
/// @param {Color} $hover-border-color [null] - The hover border color of the button.
|
|
42
|
-
/// @param {Color} $focus-border-color [null] - The focus border color of the button.
|
|
43
|
-
/// @param {Color} $focus-visible-border-color [null] - The focus-visible border color of the button.
|
|
44
|
-
/// @param {Color} $active-border-color [null] - The active border color of the button.
|
|
45
|
-
/// @param {Color} $shadow-color [null] - The shadow color of the button.
|
|
46
|
-
/// @param {Color} $resting-shadow [null] - The shadow of the button in its idle state.
|
|
47
|
-
/// @param {Color} $hover-shadow [null] - The shadow of the button in its hover state.
|
|
48
|
-
/// @param {Color} $focus-shadow [null] - The shadow of the button in its focus state.
|
|
49
|
-
/// @param {Color} $active-shadow [null] - The shadow of the button in its active state.
|
|
50
|
-
/// @param {Color} $disabled-background [null] - The disabled background color of the button.
|
|
51
|
-
/// @param {Color} $disabled-foreground [null] - The disabled text color of the button.
|
|
52
|
-
/// @param {Color} $disabled-icon-color [null] - The disabled icon color of the button.
|
|
53
|
-
/// @param {Color} $disabled-border-color [null] - The disabled border color of the button.
|
|
54
|
-
///
|
|
55
|
-
/// @requires $light-material-schema
|
|
56
|
-
///
|
|
57
|
-
/// @example scss Change the background and text colors in contained buttons
|
|
58
|
-
/// $my-button-theme: button-theme(
|
|
59
|
-
/// $foreground: white,
|
|
60
|
-
/// $background: black
|
|
61
|
-
/// );
|
|
62
|
-
/// // Pass the theme to the css-vars() mixin
|
|
63
|
-
/// @include css-vars($my-button-theme);
|
|
64
|
-
@function button-theme(
|
|
65
|
-
$schema: $light-material-schema,
|
|
66
|
-
|
|
67
|
-
$background: null,
|
|
68
|
-
$foreground: null,
|
|
69
|
-
|
|
70
|
-
$hover-background: null,
|
|
71
|
-
$hover-foreground: null,
|
|
72
|
-
|
|
73
|
-
$icon-color: $foreground,
|
|
74
|
-
$icon-color-hover: $hover-foreground,
|
|
75
|
-
|
|
76
|
-
$focus-background: null,
|
|
77
|
-
$focus-foreground: null,
|
|
78
|
-
|
|
79
|
-
$focus-hover-background: null,
|
|
80
|
-
$focus-hover-foreground: null,
|
|
81
|
-
|
|
82
|
-
$focus-visible-background: null,
|
|
83
|
-
$focus-visible-foreground: null,
|
|
84
|
-
|
|
85
|
-
$active-background: null,
|
|
86
|
-
$active-foreground: null,
|
|
87
|
-
|
|
88
|
-
$border-radius: null,
|
|
89
|
-
$border-color: null,
|
|
90
|
-
$hover-border-color: null,
|
|
91
|
-
$focus-border-color: null,
|
|
92
|
-
$focus-visible-border-color: null,
|
|
93
|
-
$active-border-color: null,
|
|
94
|
-
|
|
95
|
-
$shadow-color: null,
|
|
96
|
-
|
|
97
|
-
$resting-shadow: null,
|
|
98
|
-
$hover-shadow: null,
|
|
99
|
-
$focus-shadow: null,
|
|
100
|
-
$active-shadow: null,
|
|
101
|
-
|
|
102
|
-
$disabled-background: null,
|
|
103
|
-
$disabled-foreground: null,
|
|
104
|
-
$disabled-icon-color: $disabled-foreground,
|
|
105
|
-
$disabled-border-color: null,
|
|
106
|
-
$size: null,
|
|
107
|
-
) {
|
|
108
|
-
$name: 'igx-button';
|
|
109
|
-
$button-schema: ();
|
|
110
|
-
|
|
111
|
-
@if map.has-key($schema, 'button') {
|
|
112
|
-
$button-schema: map.get($schema, 'button');
|
|
113
|
-
} @else {
|
|
114
|
-
$button-schema: $schema;
|
|
115
|
-
}
|
|
116
|
-
|
|
117
|
-
$themes: ();
|
|
118
|
-
$variant: null;
|
|
119
|
-
|
|
120
|
-
@each $_name, $_schema in $button-schema {
|
|
121
|
-
$_resting-shadow: $resting-shadow;
|
|
122
|
-
$_hover-shadow: $hover-shadow;
|
|
123
|
-
$_focus-shadow: $focus-shadow;
|
|
124
|
-
$_active-shadow: $active-shadow;
|
|
125
|
-
$_border-radius: $border-radius;
|
|
126
|
-
|
|
127
|
-
@if not($variant) {
|
|
128
|
-
$variant: map.get($schema, '_meta', 'theme');
|
|
129
|
-
}
|
|
130
|
-
|
|
131
|
-
@if not($foreground) and $background {
|
|
132
|
-
$foreground: adaptive-contrast(var(--background));
|
|
133
|
-
}
|
|
134
|
-
|
|
135
|
-
@if not($icon-color) and $background {
|
|
136
|
-
$icon-color: adaptive-contrast(var(--background));
|
|
137
|
-
}
|
|
138
|
-
|
|
139
|
-
@if not($hover-foreground) and $hover-background {
|
|
140
|
-
$hover-foreground: adaptive-contrast(var(--hover-background));
|
|
141
|
-
}
|
|
142
|
-
|
|
143
|
-
@if not($icon-color-hover) and $hover-foreground {
|
|
144
|
-
$icon-color-hover: var(--hover-foreground);
|
|
145
|
-
}
|
|
146
|
-
|
|
147
|
-
@if not($focus-foreground) and $focus-background {
|
|
148
|
-
$focus-foreground: adaptive-contrast(var(--focus-background));
|
|
149
|
-
}
|
|
150
|
-
|
|
151
|
-
@if not($focus-hover-foreground) and $focus-hover-background {
|
|
152
|
-
$focus-hover-foreground: adaptive-contrast(var(--focus-hover-background));
|
|
153
|
-
}
|
|
154
|
-
|
|
155
|
-
@if not($focus-visible-background) and $focus-background {
|
|
156
|
-
$focus-visible-background: var(--focus-background);
|
|
157
|
-
}
|
|
158
|
-
|
|
159
|
-
@if not($focus-visible-foreground) and $focus-visible-background {
|
|
160
|
-
$focus-visible-foreground: adaptive-contrast(var(--focus-visible-background));
|
|
161
|
-
}
|
|
162
|
-
|
|
163
|
-
@if not($focus-visible-border-color) and $focus-border-color {
|
|
164
|
-
$focus-visible-border-color: var(--focus-border-color);
|
|
165
|
-
}
|
|
166
|
-
|
|
167
|
-
@if not($_resting-shadow) {
|
|
168
|
-
$resting-elevation: map.get($_schema, 'resting-elevation');
|
|
169
|
-
$_resting-shadow: elevation($resting-elevation);
|
|
170
|
-
}
|
|
171
|
-
|
|
172
|
-
@if not($_hover-shadow) {
|
|
173
|
-
$hover-elevation: map.get($_schema, 'hover-elevation');
|
|
174
|
-
$_hover-shadow: elevation($hover-elevation);
|
|
175
|
-
}
|
|
176
|
-
|
|
177
|
-
@if not($_focus-shadow) {
|
|
178
|
-
$focus-elevation: map.get($_schema, 'focus-elevation');
|
|
179
|
-
$_focus-shadow: elevation($focus-elevation);
|
|
180
|
-
}
|
|
181
|
-
|
|
182
|
-
@if not($_active-shadow) {
|
|
183
|
-
$active-elevation: map.get($_schema, 'active-elevation');
|
|
184
|
-
$_active-shadow: elevation($active-elevation);
|
|
185
|
-
}
|
|
186
|
-
|
|
187
|
-
$themes: map.merge($themes, (
|
|
188
|
-
$_name: extend( digest-schema($_schema), (
|
|
189
|
-
name: $name,
|
|
190
|
-
background: $background,
|
|
191
|
-
foreground: $foreground,
|
|
192
|
-
|
|
193
|
-
icon-color: $icon-color,
|
|
194
|
-
icon-color-hover: $icon-color-hover,
|
|
195
|
-
|
|
196
|
-
hover-background: $hover-background,
|
|
197
|
-
hover-foreground: $hover-foreground,
|
|
198
|
-
|
|
199
|
-
focus-background: $focus-background,
|
|
200
|
-
focus-foreground: $focus-foreground,
|
|
201
|
-
|
|
202
|
-
focus-hover-background: $focus-hover-background,
|
|
203
|
-
focus-hover-foreground: $focus-hover-foreground,
|
|
204
|
-
|
|
205
|
-
focus-visible-background: $focus-visible-background,
|
|
206
|
-
focus-visible-foreground: $focus-visible-foreground,
|
|
207
|
-
|
|
208
|
-
active-background: $active-background,
|
|
209
|
-
active-foreground: $active-foreground,
|
|
210
|
-
|
|
211
|
-
border-radius: $_border-radius,
|
|
212
|
-
border-color: $border-color,
|
|
213
|
-
hover-border-color: $hover-border-color,
|
|
214
|
-
focus-border-color: $focus-border-color,
|
|
215
|
-
focus-visible-border-color: $focus-visible-border-color,
|
|
216
|
-
active-border-color: $active-border-color,
|
|
217
|
-
|
|
218
|
-
shadow-color: $shadow-color,
|
|
219
|
-
|
|
220
|
-
resting-shadow: $_resting-shadow,
|
|
221
|
-
hover-shadow: $_hover-shadow,
|
|
222
|
-
focus-shadow: $_focus-shadow,
|
|
223
|
-
active-shadow: $_active-shadow,
|
|
224
|
-
|
|
225
|
-
disabled-background: $disabled-background,
|
|
226
|
-
disabled-foreground: $disabled-foreground,
|
|
227
|
-
disabled-icon-color: $disabled-icon-color,
|
|
228
|
-
disabled-border-color: $disabled-border-color,
|
|
229
|
-
size: $size,
|
|
230
|
-
))
|
|
231
|
-
));
|
|
232
|
-
}
|
|
233
|
-
|
|
234
|
-
@return (
|
|
235
|
-
name: $name,
|
|
236
|
-
variant: $variant,
|
|
237
|
-
themes: $themes,
|
|
238
|
-
);
|
|
239
|
-
}
|
|
240
6
|
|
|
241
7
|
/// @deprecated Use the `css-vars` mixin instead.
|
|
242
8
|
/// @see {mixin} css-vars
|
|
@@ -1,300 +1,7 @@
|
|
|
1
1
|
@use 'sass:map';
|
|
2
|
-
@use 'sass:meta';
|
|
3
2
|
@use '../../base' as *;
|
|
4
|
-
@use '../../themes/schemas' as *;
|
|
5
3
|
@use 'igniteui-theming/sass/animations/easings' as *;
|
|
6
4
|
|
|
7
|
-
////
|
|
8
|
-
/// @group themes
|
|
9
|
-
/// @access public
|
|
10
|
-
/// @author <a href="https://github.com/desig9stein" target="_blank">Marin Popov</a>
|
|
11
|
-
////
|
|
12
|
-
|
|
13
|
-
/// If only background color is specified, text/icon color
|
|
14
|
-
/// will be assigned automatically to a contrasting color.
|
|
15
|
-
/// Does ___not___ apply for disabled state colors.
|
|
16
|
-
/// @param {Map} $schema [$light-material-schema] - The schema used as basis for styling the component.
|
|
17
|
-
///
|
|
18
|
-
/// @param {box-shadow} $shadow [null] - The shadow to be applied for the button group.
|
|
19
|
-
/// @param {Color} $item-text-color [null]- The text color for button group items.
|
|
20
|
-
/// @param {color} $item-icon-color [null]- The icon color for button group items.
|
|
21
|
-
/// @param {Color} $item-background [null] - The background color for button group items .
|
|
22
|
-
/// @param {Color} $item-border-color [null] - The border color between button group items.
|
|
23
|
-
///
|
|
24
|
-
/// @param {Color} $item-hover-text-color [null] - The hover text color for button group items.
|
|
25
|
-
/// @param {Color} $item-hover-icon-color [null] - The hover icon color for button group items.
|
|
26
|
-
/// @param {Color} $item-hover-background [null] - The hover background color for button group items.
|
|
27
|
-
/// @param {Color} $item-hover-border-color [null] - The hover border color between button group items.
|
|
28
|
-
///
|
|
29
|
-
/// @param {Color} $item-focused-text-color [null] - The focused text color for button group items.
|
|
30
|
-
/// @param {Color} $item-focused-background [null] - The focused background color for button group items.
|
|
31
|
-
/// @param {Color} $item-focused-border-color [null] - The focused border color for an item from the button group.
|
|
32
|
-
/// @param {Color} $item-focused-hover-background [null] - The focused & hover background color for button group items.
|
|
33
|
-
/// @param {Color} $idle-shadow-color [null] - The outline color of focused button group items.
|
|
34
|
-
/// @param {Color} $selected-shadow-color [null] - The outline color of focused/selected button group items.
|
|
35
|
-
///
|
|
36
|
-
/// @param {Color} $disabled-text-color [null]- The text/icon color for a disabled item in the button group.
|
|
37
|
-
/// @param {Color} $disabled-background-color [null] - The background color for a disabled item in the button group.
|
|
38
|
-
/// @param {Color} $item-disabled-border [null] - The border color for a disabled item in the button group.
|
|
39
|
-
///
|
|
40
|
-
/// @param {Color} $item-selected-text-color [null]- The text color for a selected item in the button group.
|
|
41
|
-
/// @param {Color} $item-selected-icon-color [null]- The icon color for a selected item in the button group.
|
|
42
|
-
/// @param {Color} $item-selected-background [null] - The background color for a selected item in the button group.
|
|
43
|
-
/// @param {Color} $item-selected-border-color [null] - The border color for a selected item from the button group.
|
|
44
|
-
///
|
|
45
|
-
/// @param {Color} $item-selected-hover-text-color [null] - The text color for a selected item in hover state in the button group.
|
|
46
|
-
/// @param {Color} $item-selected-hover-icon-color [null] - The icon color for a selected item in hover state in the button group.
|
|
47
|
-
/// @param {Color} $item-selected-hover-background [null] - The background color for a selected item in hover state in the button group.
|
|
48
|
-
/// @param {Color} $item-selected-hover-border-color [null] - The border color for a selected item in hover state in the button group.
|
|
49
|
-
/// @param {Color} $item-selected-focus-background [null] - The background color for a selected item in focused state in the button group.
|
|
50
|
-
/// @param {Color} $item-selected-focus-hover-background [null] - The background color for a selected item in focused & hover state in the button group.
|
|
51
|
-
///
|
|
52
|
-
/// @param {Color} $disabled-selected-text-color [null] - The disabled text color for a selected item in the button group.
|
|
53
|
-
/// @param {Color} $disabled-selected-icon-color [null] - The disabled icon color for a selected item in the button group.
|
|
54
|
-
/// @param {Color} $disabled-selected-background [null] - The disabled background color for a selected item in the button group.
|
|
55
|
-
/// @param {Color} $disabled-selected-border-color [null] - The disabled border color for a selected item from the button group.
|
|
56
|
-
///
|
|
57
|
-
/// @param {List} $border-radius [null] - The border radius used for button-group component.
|
|
58
|
-
///
|
|
59
|
-
/// @requires $light-material-schema
|
|
60
|
-
///
|
|
61
|
-
/// @example scss Change the background, text, and border colors
|
|
62
|
-
/// $my-button-group-theme: button-group-theme(
|
|
63
|
-
/// $item-text-color: white,
|
|
64
|
-
/// $item-background: rgba(0, 0, 0, .8),
|
|
65
|
-
/// $item-border-color: #dadada
|
|
66
|
-
/// );
|
|
67
|
-
/// // Pass the theme to the css-vars() mixin
|
|
68
|
-
/// @include css-vars($my-button-group-theme);
|
|
69
|
-
@function button-group-theme(
|
|
70
|
-
$schema: $light-material-schema,
|
|
71
|
-
$shadow: null,
|
|
72
|
-
|
|
73
|
-
$item-text-color: null,
|
|
74
|
-
$item-icon-color: $item-text-color,
|
|
75
|
-
$item-background: null,
|
|
76
|
-
$item-border-color: null,
|
|
77
|
-
|
|
78
|
-
$item-hover-text-color: null,
|
|
79
|
-
$item-hover-icon-color: $item-hover-text-color,
|
|
80
|
-
$item-hover-background: null,
|
|
81
|
-
$item-hover-border-color: null,
|
|
82
|
-
|
|
83
|
-
$item-focused-text-color: null,
|
|
84
|
-
$item-focused-border-color: null,
|
|
85
|
-
$item-focused-background: null,
|
|
86
|
-
$item-focused-hover-background: null,
|
|
87
|
-
$idle-shadow-color: null,
|
|
88
|
-
$selected-shadow-color: null,
|
|
89
|
-
$border-radius: null,
|
|
90
|
-
|
|
91
|
-
$disabled-text-color: null,
|
|
92
|
-
$disabled-background-color: null,
|
|
93
|
-
$item-disabled-border: null,
|
|
94
|
-
|
|
95
|
-
$item-selected-text-color: null,
|
|
96
|
-
$item-selected-icon-color: $item-selected-text-color,
|
|
97
|
-
$item-selected-background: null,
|
|
98
|
-
$item-selected-border-color: null,
|
|
99
|
-
|
|
100
|
-
$item-selected-hover-text-color: null,
|
|
101
|
-
$item-selected-hover-icon-color: $item-selected-hover-text-color,
|
|
102
|
-
$item-selected-hover-background: null,
|
|
103
|
-
$item-selected-hover-border-color: null,
|
|
104
|
-
$item-selected-focus-background: null,
|
|
105
|
-
$item-selected-focus-hover-background: null,
|
|
106
|
-
|
|
107
|
-
$disabled-selected-text-color: null,
|
|
108
|
-
$disabled-selected-icon-color: $disabled-selected-text-color,
|
|
109
|
-
$disabled-selected-background: null,
|
|
110
|
-
$disabled-selected-border-color: null,
|
|
111
|
-
) {
|
|
112
|
-
$name: 'igx-button-group';
|
|
113
|
-
$selector: 'igx-buttongroup';
|
|
114
|
-
$button-group-schema: ();
|
|
115
|
-
|
|
116
|
-
@if map.has-key($schema, 'button-group') {
|
|
117
|
-
$button-group-schema: map.get($schema, 'button-group');
|
|
118
|
-
} @else {
|
|
119
|
-
$button-group-schema: $schema;
|
|
120
|
-
}
|
|
121
|
-
|
|
122
|
-
$theme: digest-schema($button-group-schema);
|
|
123
|
-
|
|
124
|
-
$border: rem(1px) solid map.get($theme, 'item-selected-border-color');
|
|
125
|
-
|
|
126
|
-
//background colors
|
|
127
|
-
@if not($item-hover-background) and $item-background {
|
|
128
|
-
$item-hover-background: hsl(from var(--item-background) h s calc(l * 0.9));
|
|
129
|
-
}
|
|
130
|
-
|
|
131
|
-
@if not($item-selected-background) and $item-background {
|
|
132
|
-
$item-selected-background: hsl(from var(--item-background) h s calc(l * 0.7));
|
|
133
|
-
}
|
|
134
|
-
|
|
135
|
-
@if not($item-selected-hover-background) and $item-selected-background {
|
|
136
|
-
$item-selected-hover-background: hsl(from var(--item-selected-background) h s calc(l * 1.1));
|
|
137
|
-
}
|
|
138
|
-
|
|
139
|
-
@if not($item-selected-focus-background) and $item-selected-background {
|
|
140
|
-
$item-selected-focus-background: var(--item-selected-background);
|
|
141
|
-
}
|
|
142
|
-
|
|
143
|
-
@if not($item-selected-focus-hover-background) and $item-selected-hover-background {
|
|
144
|
-
$item-selected-focus-hover-background: var(--item-selected-hover-background);
|
|
145
|
-
}
|
|
146
|
-
|
|
147
|
-
@if not($item-focused-background) and $item-background {
|
|
148
|
-
$item-focused-background: var(--item-hover-background);
|
|
149
|
-
}
|
|
150
|
-
|
|
151
|
-
@if not($item-focused-hover-background) and $item-hover-background {
|
|
152
|
-
$item-focused-hover-background: hsl(from var(--item-focused-background) h s calc(l * 0.9));
|
|
153
|
-
}
|
|
154
|
-
|
|
155
|
-
@if not($disabled-background-color) and $item-background {
|
|
156
|
-
$disabled-background-color: var(--item-background);
|
|
157
|
-
}
|
|
158
|
-
|
|
159
|
-
@if not($disabled-selected-background) and $item-selected-background {
|
|
160
|
-
$disabled-selected-background: rgba(gray, 0.3);
|
|
161
|
-
}
|
|
162
|
-
|
|
163
|
-
//border colors
|
|
164
|
-
@if not($item-border-color) and $item-background {
|
|
165
|
-
$item-border-color: hsl(from var(--item-background) h s calc(l * 0.8));
|
|
166
|
-
}
|
|
167
|
-
|
|
168
|
-
@if not($item-hover-border-color) and $item-border-color {
|
|
169
|
-
$item-hover-border-color: var(--item-border-color);
|
|
170
|
-
}
|
|
171
|
-
|
|
172
|
-
@if not($item-focused-border-color) and $item-border-color {
|
|
173
|
-
$item-focused-border-color: var(--item-border-color);
|
|
174
|
-
}
|
|
175
|
-
|
|
176
|
-
@if not($item-selected-border-color) and $item-border-color {
|
|
177
|
-
$item-selected-border-color: var(--item-border-color);
|
|
178
|
-
}
|
|
179
|
-
|
|
180
|
-
@if not($item-selected-hover-border-color) and $item-border-color {
|
|
181
|
-
$item-selected-hover-border-color: var(--item-border-color);
|
|
182
|
-
}
|
|
183
|
-
|
|
184
|
-
@if not($item-disabled-border) and $item-border-color {
|
|
185
|
-
$item-disabled-border: var(--item-border-color);
|
|
186
|
-
}
|
|
187
|
-
|
|
188
|
-
@if not($disabled-selected-border-color) and $item-border-color {
|
|
189
|
-
$disabled-selected-border-color: var(--item-border-color);
|
|
190
|
-
}
|
|
191
|
-
|
|
192
|
-
//text and icon colors
|
|
193
|
-
@if not($item-text-color) and $item-background {
|
|
194
|
-
$item-text-color: adaptive-contrast(var(--item-background));
|
|
195
|
-
}
|
|
196
|
-
|
|
197
|
-
@if not($item-icon-color) and $item-text-color {
|
|
198
|
-
$item-icon-color: var(--item-text-color);
|
|
199
|
-
}
|
|
200
|
-
|
|
201
|
-
@if not($item-hover-text-color) and $item-hover-background {
|
|
202
|
-
$item-hover-text-color: adaptive-contrast(var(--item-hover-background));
|
|
203
|
-
}
|
|
204
|
-
|
|
205
|
-
@if not($item-hover-icon-color) and $item-hover-text-color {
|
|
206
|
-
$item-hover-icon-color: var(--item-hover-text-color);
|
|
207
|
-
}
|
|
208
|
-
|
|
209
|
-
@if not($item-focused-text-color) and $item-focused-background {
|
|
210
|
-
$item-focused-text-color: adaptive-contrast(var(--item-focused-background));
|
|
211
|
-
}
|
|
212
|
-
|
|
213
|
-
@if not($item-selected-text-color) and $item-selected-background {
|
|
214
|
-
$item-selected-text-color: adaptive-contrast(var(--item-selected-background));
|
|
215
|
-
}
|
|
216
|
-
|
|
217
|
-
@if not($item-selected-icon-color) and $item-selected-text-color {
|
|
218
|
-
$item-selected-icon-color: var(--item-selected-text-color);
|
|
219
|
-
}
|
|
220
|
-
|
|
221
|
-
@if not($item-selected-hover-text-color) and $item-selected-hover-background {
|
|
222
|
-
$item-selected-hover-text-color: adaptive-contrast(var(--item-selected-hover-background));
|
|
223
|
-
}
|
|
224
|
-
|
|
225
|
-
@if not($item-selected-hover-icon-color) and $item-selected-hover-text-color {
|
|
226
|
-
$item-selected-hover-icon-color: var(--item-selected-hover-text-color);
|
|
227
|
-
}
|
|
228
|
-
|
|
229
|
-
@if not($disabled-text-color) and $disabled-background-color {
|
|
230
|
-
$disabled-text-color: hsla(from adaptive-contrast(var(--disabled-background-color)) h s l / 0.4);
|
|
231
|
-
}
|
|
232
|
-
|
|
233
|
-
@if not($disabled-selected-text-color) and $disabled-text-color {
|
|
234
|
-
$disabled-selected-text-color: var(--disabled-text-color);
|
|
235
|
-
}
|
|
236
|
-
|
|
237
|
-
@if not($idle-shadow-color) and $item-background {
|
|
238
|
-
$idle-shadow-color: hsla(from var(--item-background) h s l / .5);
|
|
239
|
-
}
|
|
240
|
-
|
|
241
|
-
@if not($idle-shadow-color) and $selected-shadow-color {
|
|
242
|
-
$idle-shadow-color: var(--selected-shadow-color);
|
|
243
|
-
}
|
|
244
|
-
|
|
245
|
-
@if not($selected-shadow-color) and $idle-shadow-color {
|
|
246
|
-
$selected-shadow-color: var(--idle-shadow-color);
|
|
247
|
-
}
|
|
248
|
-
|
|
249
|
-
@if map.get($button-group-schema, 'elevation') > 0 {
|
|
250
|
-
$border: none;
|
|
251
|
-
}
|
|
252
|
-
|
|
253
|
-
@if not($shadow) {
|
|
254
|
-
$elevation: map.get($button-group-schema, 'elevation');
|
|
255
|
-
$shadow: elevation($elevation);
|
|
256
|
-
}
|
|
257
|
-
|
|
258
|
-
@return extend($theme, (
|
|
259
|
-
name: $name,
|
|
260
|
-
selector: $selector,
|
|
261
|
-
item-text-color: $item-text-color,
|
|
262
|
-
item-icon-color: $item-icon-color,
|
|
263
|
-
item-background: $item-background,
|
|
264
|
-
item-border-color: $item-border-color,
|
|
265
|
-
item-focused-text-color: $item-focused-text-color,
|
|
266
|
-
item-focused-background: $item-focused-background,
|
|
267
|
-
item-focused-border-color: $item-focused-border-color,
|
|
268
|
-
item-focused-hover-background: $item-focused-hover-background,
|
|
269
|
-
border-radius: $border-radius,
|
|
270
|
-
item-hover-text-color: $item-hover-text-color,
|
|
271
|
-
item-hover-icon-color: $item-hover-icon-color,
|
|
272
|
-
item-hover-background: $item-hover-background,
|
|
273
|
-
item-hover-border-color: $item-hover-border-color,
|
|
274
|
-
disabled-text-color:$disabled-text-color,
|
|
275
|
-
disabled-background-color:$disabled-background-color,
|
|
276
|
-
item-disabled-border: $item-disabled-border,
|
|
277
|
-
item-selected-text-color: $item-selected-text-color,
|
|
278
|
-
item-selected-icon-color: $item-selected-icon-color,
|
|
279
|
-
item-selected-background: $item-selected-background,
|
|
280
|
-
item-selected-border-color: $item-selected-border-color,
|
|
281
|
-
item-selected-hover-text-color: $item-selected-hover-text-color,
|
|
282
|
-
item-selected-hover-icon-color: $item-selected-hover-icon-color,
|
|
283
|
-
item-selected-hover-background: $item-selected-hover-background,
|
|
284
|
-
item-selected-hover-border-color: $item-selected-hover-border-color,
|
|
285
|
-
item-selected-focus-background: $item-selected-focus-background,
|
|
286
|
-
item-selected-focus-hover-background: $item-selected-focus-hover-background,
|
|
287
|
-
disabled-selected-text-color: $disabled-selected-text-color,
|
|
288
|
-
disabled-selected-icon-color: $disabled-selected-icon-color,
|
|
289
|
-
disabled-selected-background: $disabled-selected-background,
|
|
290
|
-
disabled-selected-border-color: $disabled-selected-border-color,
|
|
291
|
-
border: $border,
|
|
292
|
-
shadow: $shadow,
|
|
293
|
-
idle-shadow-color: $idle-shadow-color,
|
|
294
|
-
selected-shadow-color: $selected-shadow-color
|
|
295
|
-
));
|
|
296
|
-
}
|
|
297
|
-
|
|
298
5
|
/// @deprecated Use the `css-vars` mixin instead.
|
|
299
6
|
/// @see {mixin} css-vars
|
|
300
7
|
/// @param {Map} $theme - The theme used to style the component.
|