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,188 +0,0 @@
|
|
|
1
|
-
@use 'sass:map';
|
|
2
|
-
@use '../../base' as *;
|
|
3
|
-
@use '../../themes/schemas' as *;
|
|
4
|
-
|
|
5
|
-
@function flat-icon-button-theme(
|
|
6
|
-
$schema: $light-material-schema,
|
|
7
|
-
|
|
8
|
-
$background: null,
|
|
9
|
-
$foreground: null,
|
|
10
|
-
$shadow-color: null,
|
|
11
|
-
|
|
12
|
-
$hover-background: null,
|
|
13
|
-
$hover-foreground: null,
|
|
14
|
-
|
|
15
|
-
$focus-background: null,
|
|
16
|
-
$focus-foreground: null,
|
|
17
|
-
|
|
18
|
-
$focus-hover-background: null,
|
|
19
|
-
$focus-hover-foreground: null,
|
|
20
|
-
|
|
21
|
-
$active-background: null,
|
|
22
|
-
$active-foreground: null,
|
|
23
|
-
|
|
24
|
-
$border-radius: null,
|
|
25
|
-
$border-color: null,
|
|
26
|
-
$focus-border-color: null,
|
|
27
|
-
|
|
28
|
-
$disabled-background: null,
|
|
29
|
-
$disabled-foreground: null,
|
|
30
|
-
$disabled-border-color: null,
|
|
31
|
-
|
|
32
|
-
$size: null,
|
|
33
|
-
) {
|
|
34
|
-
$name: 'igx-flat-icon-button';
|
|
35
|
-
$icon-button-schema: ();
|
|
36
|
-
|
|
37
|
-
@if map.has-key($schema, 'icon-button') {
|
|
38
|
-
$icon-button-schema: map.get($schema, 'icon-button');
|
|
39
|
-
@if map.has-key($icon-button-schema, 'flat') {
|
|
40
|
-
$icon-button-schema: map.get($icon-button-schema, 'flat');
|
|
41
|
-
} @else {
|
|
42
|
-
$icon-button-schema: $schema;
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
$theme: digest-schema($icon-button-schema);
|
|
47
|
-
$variant: map.get($schema, '_meta', 'theme');
|
|
48
|
-
|
|
49
|
-
@if not($hover-foreground) and $hover-background {
|
|
50
|
-
$hover-foreground: adaptive-contrast(var(--hover-background));
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
@if not($focus-foreground) and $focus-background {
|
|
54
|
-
$focus-foreground: adaptive-contrast(var(--focus-background));
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
@if not($focus-hover-foreground) and $focus-hover-background {
|
|
58
|
-
$focus-hover-foreground: adaptive-contrast(var(--focus-hover-background));
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
@if not($active-foreground) and $active-background {
|
|
62
|
-
$active-foreground: adaptive-contrast(var(--active-background));
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
@if $variant == 'material' or $variant == 'fluent' {
|
|
66
|
-
@if not($hover-foreground) and $foreground {
|
|
67
|
-
$hover-foreground: var(--foreground);
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
@if not($focus-foreground) and $foreground {
|
|
71
|
-
$focus-foreground: var(--foreground);
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
@if not($focus-hover-foreground) and $foreground {
|
|
75
|
-
$focus-hover-foreground: var(--foreground);
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
@if not($active-foreground) and $foreground {
|
|
79
|
-
$active-foreground: var(--foreground);
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
@if not($hover-background) and $foreground {
|
|
83
|
-
$hover-background: hsla(from var(--foreground) h s l / 0.08);
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
@if $variant == 'material' {
|
|
87
|
-
@if not($focus-background) and $foreground {
|
|
88
|
-
$focus-background: hsla(from var(--foreground) h s l / 0.16);
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
@if not($focus-hover-background) and $foreground {
|
|
92
|
-
$focus-hover-background: hsla(from var(--foreground) h s l / 0.24);
|
|
93
|
-
}
|
|
94
|
-
} @else {
|
|
95
|
-
@if not($focus-hover-background) and $hover-background {
|
|
96
|
-
$focus-hover-background: var(--hover-background);
|
|
97
|
-
}
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
@if not($active-background) and $foreground {
|
|
101
|
-
$active-background: hsla(from var(--foreground) h s l / 0.24);
|
|
102
|
-
}
|
|
103
|
-
}
|
|
104
|
-
|
|
105
|
-
@if $variant == 'indigo' {
|
|
106
|
-
@if not($hover-background) and $foreground {
|
|
107
|
-
$hover-background: hsla(from var(--foreground) h s l / 0.15);
|
|
108
|
-
}
|
|
109
|
-
|
|
110
|
-
@if not($focus-background) and $foreground {
|
|
111
|
-
$focus-background: hsla(from var(--foreground) h s l / 0.15);
|
|
112
|
-
}
|
|
113
|
-
|
|
114
|
-
@if not($focus-hover-background) and $foreground {
|
|
115
|
-
$focus-hover-background: hsla(from var(--foreground) h s l / 0.15);
|
|
116
|
-
}
|
|
117
|
-
|
|
118
|
-
@if not($active-background) and $foreground {
|
|
119
|
-
$active-background: hsla(from var(--foreground) h s l / 0.15);
|
|
120
|
-
}
|
|
121
|
-
}
|
|
122
|
-
|
|
123
|
-
@if $variant == 'bootstrap'or $variant == 'indigo' {
|
|
124
|
-
@if not($hover-foreground) and $foreground {
|
|
125
|
-
$hover-foreground: hsl(from var(--foreground) h s calc(l * 0.9));
|
|
126
|
-
}
|
|
127
|
-
|
|
128
|
-
@if not($focus-foreground) and $foreground {
|
|
129
|
-
$focus-foreground: var(--foreground);
|
|
130
|
-
}
|
|
131
|
-
|
|
132
|
-
@if not($focus-hover-foreground) and $hover-foreground {
|
|
133
|
-
$focus-hover-foreground: var(--hover-foreground);
|
|
134
|
-
}
|
|
135
|
-
|
|
136
|
-
@if not($disabled-foreground) and $foreground {
|
|
137
|
-
$disabled-foreground: hsla(from var(--foreground) h s l / 0.5);
|
|
138
|
-
}
|
|
139
|
-
|
|
140
|
-
@if $variant == 'bootstrap' {
|
|
141
|
-
@if not($active-foreground) and $foreground {
|
|
142
|
-
$active-foreground: hsl(from var(--foreground) h s calc(l * 0.7));
|
|
143
|
-
}
|
|
144
|
-
|
|
145
|
-
@if not($shadow-color) and $foreground {
|
|
146
|
-
$shadow-color: hsla(from var(--foreground) h s l / 0.5);
|
|
147
|
-
}
|
|
148
|
-
} @else {
|
|
149
|
-
@if not($active-foreground) and $hover-foreground {
|
|
150
|
-
$active-foreground: var(--hover-foreground);
|
|
151
|
-
}
|
|
152
|
-
|
|
153
|
-
@if not($focus-border-color) and $foreground {
|
|
154
|
-
$focus-border-color: hsla(from var(--foreground) h s l / 0.3);
|
|
155
|
-
}
|
|
156
|
-
}
|
|
157
|
-
}
|
|
158
|
-
|
|
159
|
-
@return extend(
|
|
160
|
-
$theme,
|
|
161
|
-
(
|
|
162
|
-
name: $name,
|
|
163
|
-
background: $background,
|
|
164
|
-
foreground: $foreground,
|
|
165
|
-
shadow-color: $shadow-color,
|
|
166
|
-
|
|
167
|
-
hover-background: $hover-background,
|
|
168
|
-
hover-foreground: $hover-foreground,
|
|
169
|
-
|
|
170
|
-
focus-background: $focus-background,
|
|
171
|
-
focus-foreground: $focus-foreground,
|
|
172
|
-
|
|
173
|
-
focus-hover-background: $focus-hover-background,
|
|
174
|
-
focus-hover-foreground: $focus-hover-foreground,
|
|
175
|
-
|
|
176
|
-
active-background: $active-background,
|
|
177
|
-
active-foreground: $active-foreground,
|
|
178
|
-
|
|
179
|
-
border-radius: $border-radius,
|
|
180
|
-
border-color: $border-color,
|
|
181
|
-
focus-border-color: $focus-border-color,
|
|
182
|
-
|
|
183
|
-
disabled-background: $disabled-background,
|
|
184
|
-
disabled-foreground: $disabled-foreground,
|
|
185
|
-
disabled-border-color: $disabled-border-color,
|
|
186
|
-
size: $size,
|
|
187
|
-
));
|
|
188
|
-
}
|
|
@@ -1,232 +0,0 @@
|
|
|
1
|
-
@use 'sass:map';
|
|
2
|
-
@use '../../base' as *;
|
|
3
|
-
@use '../../themes/schemas' as *;
|
|
4
|
-
|
|
5
|
-
@function outlined-icon-button-theme(
|
|
6
|
-
$schema: $light-material-schema,
|
|
7
|
-
|
|
8
|
-
$background: null,
|
|
9
|
-
$foreground: null,
|
|
10
|
-
$shadow-color: null,
|
|
11
|
-
|
|
12
|
-
$hover-background: null,
|
|
13
|
-
$hover-foreground: null,
|
|
14
|
-
|
|
15
|
-
$focus-background: null,
|
|
16
|
-
$focus-foreground: null,
|
|
17
|
-
|
|
18
|
-
$focus-hover-background: null,
|
|
19
|
-
$focus-hover-foreground: null,
|
|
20
|
-
|
|
21
|
-
$active-background: null,
|
|
22
|
-
$active-foreground: null,
|
|
23
|
-
|
|
24
|
-
$border-radius: null,
|
|
25
|
-
$border-color: null,
|
|
26
|
-
$focus-border-color: null,
|
|
27
|
-
|
|
28
|
-
$disabled-background: null,
|
|
29
|
-
$disabled-foreground: null,
|
|
30
|
-
$disabled-border-color: null,
|
|
31
|
-
|
|
32
|
-
$size: null,
|
|
33
|
-
) {
|
|
34
|
-
$name: 'igx-outlined-icon-button';
|
|
35
|
-
$icon-button-schema: ();
|
|
36
|
-
|
|
37
|
-
@if map.has-key($schema, 'icon-button') {
|
|
38
|
-
$icon-button-schema: map.get($schema, 'icon-button');
|
|
39
|
-
@if map.has-key($icon-button-schema, 'outlined') {
|
|
40
|
-
$icon-button-schema: map.get($icon-button-schema, 'outlined');
|
|
41
|
-
} @else {
|
|
42
|
-
$icon-button-schema: $schema;
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
$theme: digest-schema($icon-button-schema);
|
|
47
|
-
$variant: map.get($schema, '_meta', 'theme');
|
|
48
|
-
|
|
49
|
-
@if not($hover-foreground) and $hover-background {
|
|
50
|
-
$hover-foreground: adaptive-contrast(var(--hover-background));
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
@if not($focus-foreground) and $focus-background {
|
|
54
|
-
$focus-foreground: adaptive-contrast(var(--focus-background));
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
@if not($focus-hover-foreground) and $focus-hover-background {
|
|
58
|
-
$focus-hover-foreground: adaptive-contrast(var(--focus-hover-background));
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
@if not($active-foreground) and $active-background {
|
|
62
|
-
$active-foreground: adaptive-contrast(var(--active-background));
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
@if $variant == 'material' or $variant == 'fluent' {
|
|
66
|
-
@if not($hover-foreground) and $foreground {
|
|
67
|
-
$hover-foreground: var(--foreground);
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
@if not($focus-foreground) and $foreground {
|
|
71
|
-
$focus-foreground: var(--foreground);
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
@if not($focus-hover-foreground) and $foreground {
|
|
75
|
-
$focus-hover-foreground: var(--foreground);
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
@if not($active-foreground) and $foreground {
|
|
79
|
-
$active-foreground: var(--foreground);
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
@if not($hover-background) and $foreground {
|
|
83
|
-
$hover-background: hsla(from var(--foreground) h s l / 0.08);
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
@if not($active-background) and $foreground {
|
|
87
|
-
$active-background: hsla(from var(--foreground) h s l / 0.24);
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
@if $variant == 'material' {
|
|
91
|
-
@if not($focus-background) and $foreground {
|
|
92
|
-
$focus-background: hsla(from var(--foreground) h s l / 0.16);
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
@if not($focus-hover-background) and $foreground {
|
|
96
|
-
$focus-hover-background: hsla(from var(--foreground) h s l / 0.24);
|
|
97
|
-
}
|
|
98
|
-
|
|
99
|
-
@if not($border-color) and $foreground {
|
|
100
|
-
$border-color: hsla(from var(--foreground) h s l / 0.4);
|
|
101
|
-
}
|
|
102
|
-
} @else {
|
|
103
|
-
@if not($focus-hover-background) and $hover-background {
|
|
104
|
-
$focus-hover-background: var(--hover-background);
|
|
105
|
-
}
|
|
106
|
-
|
|
107
|
-
@if not($focus-border-color) and $foreground {
|
|
108
|
-
$focus-border-color: var(--foreground);
|
|
109
|
-
}
|
|
110
|
-
|
|
111
|
-
@if not($border-color) and $foreground {
|
|
112
|
-
$border-color: hsla(from var(--foreground) h s l / 0.7);
|
|
113
|
-
}
|
|
114
|
-
}
|
|
115
|
-
}
|
|
116
|
-
|
|
117
|
-
@if $variant == 'indigo' {
|
|
118
|
-
@if not($border-color) and $foreground {
|
|
119
|
-
$border-color: hsla(from var(--foreground) h s l / 0.8);
|
|
120
|
-
}
|
|
121
|
-
|
|
122
|
-
@if not($hover-foreground) and $foreground {
|
|
123
|
-
$hover-foreground: hsl(from var(--foreground) h s calc(l * 0.9));
|
|
124
|
-
}
|
|
125
|
-
|
|
126
|
-
@if not($hover-background) and $foreground {
|
|
127
|
-
$hover-background: hsla(from var(--foreground) h s l / 0.1);
|
|
128
|
-
}
|
|
129
|
-
|
|
130
|
-
@if not($focus-foreground) and $foreground {
|
|
131
|
-
$focus-foreground: var(--foreground);
|
|
132
|
-
}
|
|
133
|
-
|
|
134
|
-
@if not($focus-border-color) and $foreground {
|
|
135
|
-
$focus-border-color: hsla(from var(--foreground) h s l / 0.2);
|
|
136
|
-
}
|
|
137
|
-
|
|
138
|
-
@if not($focus-hover-foreground) and $hover-foreground {
|
|
139
|
-
$focus-hover-foreground: var(--hover-foreground);
|
|
140
|
-
}
|
|
141
|
-
|
|
142
|
-
@if not($active-foreground) and $hover-foreground {
|
|
143
|
-
$active-foreground: var(--hover-foreground);
|
|
144
|
-
}
|
|
145
|
-
}
|
|
146
|
-
|
|
147
|
-
@if $variant == 'bootstrap' {
|
|
148
|
-
@if not($border-color) and $foreground {
|
|
149
|
-
$border-color: var(--foreground);
|
|
150
|
-
}
|
|
151
|
-
|
|
152
|
-
@if not($hover-background) and $foreground {
|
|
153
|
-
$hover-background: var(--foreground);
|
|
154
|
-
}
|
|
155
|
-
|
|
156
|
-
@if not($hover-foreground) and $hover-background {
|
|
157
|
-
$hover-foreground: adaptive-contrast(var(--hover-background));
|
|
158
|
-
}
|
|
159
|
-
|
|
160
|
-
@if not($focus-background) and $foreground {
|
|
161
|
-
$focus-background: var(--foreground);
|
|
162
|
-
}
|
|
163
|
-
|
|
164
|
-
@if not($focus-foreground) and $focus-background {
|
|
165
|
-
$focus-foreground: adaptive-contrast(var(--focus-background));
|
|
166
|
-
}
|
|
167
|
-
|
|
168
|
-
@if not($focus-hover-background) and $focus-background {
|
|
169
|
-
$focus-hover-background: hsl(from var(--focus-background) h s calc(l * 0.9));
|
|
170
|
-
}
|
|
171
|
-
|
|
172
|
-
@if not($focus-hover-foreground) and $focus-hover-background {
|
|
173
|
-
$focus-hover-foreground: adaptive-contrast(var(--focus-hover-background));
|
|
174
|
-
}
|
|
175
|
-
|
|
176
|
-
@if not($active-background) and $foreground {
|
|
177
|
-
$active-background: hsl(from var(--foreground) h s calc(l * 0.8));
|
|
178
|
-
}
|
|
179
|
-
|
|
180
|
-
@if not($active-foreground) and $active-background {
|
|
181
|
-
$active-foreground: adaptive-contrast(var(--active-background));
|
|
182
|
-
}
|
|
183
|
-
|
|
184
|
-
@if not($focus-border-color) and $active-background {
|
|
185
|
-
$focus-border-color: var(--active-background);
|
|
186
|
-
}
|
|
187
|
-
|
|
188
|
-
@if not($shadow-color) and $focus-background {
|
|
189
|
-
$shadow-color: hsla(from var(--focus-background) h s l / 0.5);
|
|
190
|
-
}
|
|
191
|
-
}
|
|
192
|
-
|
|
193
|
-
@if $variant == 'bootstrap' or $variant == 'indigo' {
|
|
194
|
-
@if not($disabled-foreground) and $foreground {
|
|
195
|
-
$disabled-foreground: hsla(from var(--foreground) h s l / 0.5);
|
|
196
|
-
}
|
|
197
|
-
|
|
198
|
-
@if not($disabled-border-color) and $border-color {
|
|
199
|
-
$disabled-border-color: hsla(from var(--border-color) h s l / 0.2);
|
|
200
|
-
}
|
|
201
|
-
}
|
|
202
|
-
|
|
203
|
-
@return extend(
|
|
204
|
-
$theme,
|
|
205
|
-
(
|
|
206
|
-
name: $name,
|
|
207
|
-
background: $background,
|
|
208
|
-
foreground: $foreground,
|
|
209
|
-
shadow-color: $shadow-color,
|
|
210
|
-
|
|
211
|
-
hover-background: $hover-background,
|
|
212
|
-
hover-foreground: $hover-foreground,
|
|
213
|
-
|
|
214
|
-
focus-background: $focus-background,
|
|
215
|
-
focus-foreground: $focus-foreground,
|
|
216
|
-
|
|
217
|
-
focus-hover-background: $focus-hover-background,
|
|
218
|
-
focus-hover-foreground: $focus-hover-foreground,
|
|
219
|
-
|
|
220
|
-
active-background: $active-background,
|
|
221
|
-
active-foreground: $active-foreground,
|
|
222
|
-
|
|
223
|
-
border-radius: $border-radius,
|
|
224
|
-
border-color: $border-color,
|
|
225
|
-
focus-border-color: $focus-border-color,
|
|
226
|
-
|
|
227
|
-
disabled-background: $disabled-background,
|
|
228
|
-
disabled-foreground: $disabled-foreground,
|
|
229
|
-
disabled-border-color: $disabled-border-color,
|
|
230
|
-
size: $size,
|
|
231
|
-
));
|
|
232
|
-
}
|