igniteui-angular 20.0.8 → 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 +91 -39
- package/fesm2022/igniteui-angular.mjs.map +1 -1
- package/index.d.ts +23 -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 +1 -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,98 +1,5 @@
|
|
|
1
1
|
@use 'sass:map';
|
|
2
2
|
@use '../../base' as *;
|
|
3
|
-
@use '../../themes/schemas' as *;
|
|
4
|
-
|
|
5
|
-
////
|
|
6
|
-
/// @group themes
|
|
7
|
-
/// @access public
|
|
8
|
-
/// @author <a href="https://github.com/desig9stein" target="_blank">Marin Popov</a>
|
|
9
|
-
/// @author <a href="https://github.com/simeonoff" target="_blank">Simeon Simeonoff</a>
|
|
10
|
-
////
|
|
11
|
-
|
|
12
|
-
/// @param {Map} $schema [$light-material-schema] - The schema used as basis for styling the component.
|
|
13
|
-
/// @requires $light-material-schema
|
|
14
|
-
/// @param {Color} $toggle-button-background [null] - The select toggle button background color.
|
|
15
|
-
/// @param {Color} $toggle-button-background-focus [null] - The select toggle button background color when the select is focused.
|
|
16
|
-
/// @param {Color} $toggle-button-background-disabled [null] - The select toggle button background color when the select is disabled.
|
|
17
|
-
/// @param {Color} $toggle-button-foreground [null] - The select toggle button foreground color.
|
|
18
|
-
/// @param {Color} $toggle-button-foreground-focus [null] - The select toggle button foreground color when the select is focused.
|
|
19
|
-
/// @param {Color} $toggle-button-foreground-disabled [null] - The select toggle button foreground color when the select is disabled.
|
|
20
|
-
/// @param {Color} $toggle-button-foreground-filled [null] - The select toggle button foreground color when the select is filled.
|
|
21
|
-
/// @param {Color} $toggle-button-background-focus--border [null] - The select toggle button background color when the select is focused in material border variant.
|
|
22
|
-
/// @example scss Change the select empty list background
|
|
23
|
-
/// $my-select-theme: igx-select-theme($empty-list-background);
|
|
24
|
-
/// // Pass the theme to the css-vars mixin
|
|
25
|
-
/// @include css-vars($my-select-theme);
|
|
26
|
-
@function select-theme(
|
|
27
|
-
$schema: $light-material-schema,
|
|
28
|
-
$toggle-button-background: null,
|
|
29
|
-
$toggle-button-background-focus: null,
|
|
30
|
-
$toggle-button-background-disabled: null,
|
|
31
|
-
$toggle-button-foreground: null,
|
|
32
|
-
$toggle-button-foreground-focus: null,
|
|
33
|
-
$toggle-button-foreground-disabled: null,
|
|
34
|
-
$toggle-button-foreground-filled: null,
|
|
35
|
-
$toggle-button-background-focus--border: null,
|
|
36
|
-
) {
|
|
37
|
-
$name: 'igx-select';
|
|
38
|
-
$selector: 'igx-select';
|
|
39
|
-
|
|
40
|
-
$select-schema: ();
|
|
41
|
-
|
|
42
|
-
@if map.has-key($schema, 'select') {
|
|
43
|
-
$select-schema: map.get($schema, 'select');
|
|
44
|
-
} @else {
|
|
45
|
-
$select-schema: $schema;
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
$theme: digest-schema($select-schema);
|
|
49
|
-
$variant: map.get($theme, '_meta', 'theme');
|
|
50
|
-
|
|
51
|
-
@if not($toggle-button-foreground) and $toggle-button-background {
|
|
52
|
-
$toggle-button-foreground: adaptive-contrast(var(--toggle-button-background));
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
@if not($toggle-button-foreground-filled) and $toggle-button-background {
|
|
56
|
-
$toggle-button-foreground-filled: adaptive-contrast(var(--toggle-button-background));
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
@if $variant == 'material' {
|
|
60
|
-
@if not($toggle-button-background-focus) and $toggle-button-background {
|
|
61
|
-
$toggle-button-background-focus: hsl(from var(--toggle-button-background) h s calc(l * 0.9));
|
|
62
|
-
}
|
|
63
|
-
} @else {
|
|
64
|
-
@if not($toggle-button-background-focus) and $toggle-button-background {
|
|
65
|
-
$toggle-button-background-focus: var(--toggle-button-background);
|
|
66
|
-
}
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
@if $variant == 'bootstrap' or $variant == 'indigo' {
|
|
70
|
-
@if not($toggle-button-background-focus--border) and $toggle-button-background {
|
|
71
|
-
$toggle-button-background-focus--border: var(--toggle-button-background)
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
@if not($toggle-button-foreground-focus) and $toggle-button-background-focus--border {
|
|
75
|
-
$toggle-button-foreground-focus: adaptive-contrast(var(--toggle-button-background-focus--border));
|
|
76
|
-
}
|
|
77
|
-
} @else {
|
|
78
|
-
@if not($toggle-button-foreground-focus) and $toggle-button-background-focus {
|
|
79
|
-
$toggle-button-foreground-focus: adaptive-contrast(var(--toggle-button-background-focus));
|
|
80
|
-
}
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
@return extend($theme, (
|
|
84
|
-
name: $name,
|
|
85
|
-
selector: $selector,
|
|
86
|
-
toggle-button-background: $toggle-button-background,
|
|
87
|
-
toggle-button-background-focus: $toggle-button-background-focus,
|
|
88
|
-
toggle-button-background-disabled: $toggle-button-background-disabled,
|
|
89
|
-
toggle-button-foreground: $toggle-button-foreground,
|
|
90
|
-
toggle-button-foreground-focus: $toggle-button-foreground-focus,
|
|
91
|
-
toggle-button-foreground-disabled: $toggle-button-foreground-disabled,
|
|
92
|
-
toggle-button-foreground-filled: $toggle-button-foreground-filled,
|
|
93
|
-
toggle-button-background-focus--border: $toggle-button-background-focus--border,
|
|
94
|
-
));
|
|
95
|
-
}
|
|
96
3
|
|
|
97
4
|
/// @deprecated Use the `css-vars` mixin instead.
|
|
98
5
|
/// @see {mixin} css-vars
|
|
@@ -1,195 +1,8 @@
|
|
|
1
1
|
@use 'sass:map';
|
|
2
2
|
@use 'sass:math';
|
|
3
3
|
@use '../../base' as *;
|
|
4
|
-
@use '../../themes/schemas' as *;
|
|
5
4
|
@use 'igniteui-theming/sass/animations/easings' as *;
|
|
6
5
|
|
|
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} $track-color [null] - The color of the track.
|
|
16
|
-
/// @param {Color} $track-step-color [null] - The color of the track steps.
|
|
17
|
-
/// @param {Number} $track-step-size [null] - The size of the track steps.
|
|
18
|
-
/// @param {Color} $track-hover-color [null] - The color of the track on hover.
|
|
19
|
-
/// @param {Color} $thumb-color [null] - The color of the thumb.
|
|
20
|
-
/// @param {Color} $thumb-focus-color [null] - The focus color of the thumb.
|
|
21
|
-
/// @param {Color} $thumb-border-color [null] - The thumb border color.
|
|
22
|
-
/// @param {Color} $thumb-border-hover-color [null] - The thumb border color when hovered.
|
|
23
|
-
/// @param {Color} $thumb-border-focus-color [null] - The thumb border color when focused.
|
|
24
|
-
/// @param {Color} $thumb-disabled-border-color [null] - The thumb border color when it's disabled.
|
|
25
|
-
/// @param {Color} $disabled-thumb-color [null] - The thumb color when its disabled.
|
|
26
|
-
/// @param {Color} $label-background-color [null] - The background color of the bubble label.
|
|
27
|
-
/// @param {Color} $label-text-color [null] - The text color of the bubble label.
|
|
28
|
-
/// @param {Color} $base-track-color [null] - The base background color of the track.
|
|
29
|
-
/// @param {Color} $base-track-hover-color [null] - The base background color of the track on hover.
|
|
30
|
-
/// @param {Color} $disabled-base-track-color [null] - The base background color of the track when is disabled.
|
|
31
|
-
/// @param {Color} $disabled-fill-track-color [null] - The base background color of the fill track when is disabled.
|
|
32
|
-
/// @param {Color} $tick-label-color [null] - The color of the tick label.
|
|
33
|
-
/// @param {Color} $tick-color [null] - The background-color of the tick.
|
|
34
|
-
/// @requires $light-material-schema
|
|
35
|
-
/// @example scss Set custom track and thumb on colors
|
|
36
|
-
/// $my-slider-theme: slider-theme($thumb-color: black, $track-color: yellow);
|
|
37
|
-
/// // Pass the theme to the css-vars() mixin
|
|
38
|
-
/// @include css-vars($my-slider-theme);
|
|
39
|
-
@function slider-theme(
|
|
40
|
-
$schema: $light-material-schema,
|
|
41
|
-
|
|
42
|
-
$track-color: null,
|
|
43
|
-
$track-step-color: null,
|
|
44
|
-
$track-step-size: null,
|
|
45
|
-
$track-hover-color: null,
|
|
46
|
-
$thumb-color: null,
|
|
47
|
-
$thumb-focus-color: null,
|
|
48
|
-
$thumb-border-color: null,
|
|
49
|
-
$thumb-border-hover-color: null,
|
|
50
|
-
$thumb-border-focus-color: null,
|
|
51
|
-
$thumb-disabled-border-color: null,
|
|
52
|
-
$disabled-thumb-color: null,
|
|
53
|
-
$label-background-color: null,
|
|
54
|
-
$label-text-color: null,
|
|
55
|
-
|
|
56
|
-
$base-track-color: null,
|
|
57
|
-
$base-track-hover-color: null,
|
|
58
|
-
$disabled-base-track-color: null,
|
|
59
|
-
$disabled-fill-track-color: null,
|
|
60
|
-
|
|
61
|
-
$tick-label-color: null,
|
|
62
|
-
$tick-color: null,
|
|
63
|
-
) {
|
|
64
|
-
$name: 'igx-slider';
|
|
65
|
-
$slider-schema: ();
|
|
66
|
-
|
|
67
|
-
@if map.has-key($schema, 'slider') {
|
|
68
|
-
$slider-schema: map.get($schema, 'slider');
|
|
69
|
-
} @else {
|
|
70
|
-
$slider-schema: $schema;
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
$theme: digest-schema($slider-schema);
|
|
74
|
-
$variant: map.get($theme, '_meta', 'theme');
|
|
75
|
-
|
|
76
|
-
@if $variant == 'fluent' or $variant == 'indigo' {
|
|
77
|
-
@if not($thumb-border-color) and $track-color {
|
|
78
|
-
$thumb-border-color: var(--track-color);
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
@if not($track-color) and $thumb-border-color {
|
|
82
|
-
$track-color: var(--thumb-border-color);
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
@if not($thumb-border-hover-color) and $thumb-border-color {
|
|
86
|
-
$thumb-border-hover-color: hsl(from var(--thumb-border-color) h s calc(l * 1.1));
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
@if $variant == 'fluent' {
|
|
90
|
-
@if not($thumb-focus-color) and $thumb-border-color {
|
|
91
|
-
$thumb-focus-color: hsl(from var(--thumb-border-color) h s calc(l * 1.2));
|
|
92
|
-
}
|
|
93
|
-
} @else {
|
|
94
|
-
@if not($thumb-focus-color) and $thumb-border-color {
|
|
95
|
-
$thumb-focus-color: hsla(from var(--thumb-border-color) h s l / 0.3);
|
|
96
|
-
}
|
|
97
|
-
}
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
@if $variant == 'material' {
|
|
101
|
-
@if not($thumb-color) and $track-color {
|
|
102
|
-
$thumb-color: var(--track-color);
|
|
103
|
-
}
|
|
104
|
-
|
|
105
|
-
@if not($track-color) and $thumb-color {
|
|
106
|
-
$track-color: var(--thumb-color);
|
|
107
|
-
}
|
|
108
|
-
|
|
109
|
-
@if not($base-track-color) and $track-color {
|
|
110
|
-
$base-track-color: hsla(from var(--track-color) h s l / 0.4);
|
|
111
|
-
}
|
|
112
|
-
}
|
|
113
|
-
|
|
114
|
-
@if $variant == 'bootstrap' {
|
|
115
|
-
@if not($thumb-border-color) and $thumb-color {
|
|
116
|
-
$thumb-border-color: var(--thumb-color);
|
|
117
|
-
}
|
|
118
|
-
|
|
119
|
-
@if not($thumb-focus-color) and $thumb-color {
|
|
120
|
-
$thumb-focus-color: hsla(from var(--thumb-color) h s l / 0.5);
|
|
121
|
-
}
|
|
122
|
-
}
|
|
123
|
-
|
|
124
|
-
@if not($track-hover-color) and $track-color {
|
|
125
|
-
$track-hover-color: hsl(from var(--track-color) h s calc(l * 1.1));
|
|
126
|
-
}
|
|
127
|
-
|
|
128
|
-
@if $variant != 'bootstrap' {
|
|
129
|
-
@if not($label-background-color) and $track-color {
|
|
130
|
-
$label-background-color: var(--track-color);
|
|
131
|
-
}
|
|
132
|
-
} @else {
|
|
133
|
-
@if not($label-background-color) and $thumb-color {
|
|
134
|
-
$label-background-color: var(--thumb-color);
|
|
135
|
-
}
|
|
136
|
-
}
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
@if not($label-text-color) and $label-background-color {
|
|
140
|
-
$label-text-color: adaptive-contrast($label-background-color);
|
|
141
|
-
}
|
|
142
|
-
|
|
143
|
-
@if $variant != 'indigo' {
|
|
144
|
-
@if not($base-track-hover-color) and $base-track-color {
|
|
145
|
-
$base-track-hover-color: var(--base-track-color);
|
|
146
|
-
}
|
|
147
|
-
} @else {
|
|
148
|
-
@if not($base-track-hover-color) and $base-track-color {
|
|
149
|
-
$base-track-hover-color: hsl(from var(--base-track-color) h s calc(l * 0.8));
|
|
150
|
-
}
|
|
151
|
-
}
|
|
152
|
-
|
|
153
|
-
@if not($disabled-base-track-color) and $base-track-color {
|
|
154
|
-
$disabled-base-track-color: hsla(from var(--base-track-color) h s l / 0.5);
|
|
155
|
-
}
|
|
156
|
-
|
|
157
|
-
@if not($disabled-fill-track-color) and $track-color {
|
|
158
|
-
$disabled-fill-track-color: hsla(from var(--track-color) h s l / 0.5);
|
|
159
|
-
}
|
|
160
|
-
|
|
161
|
-
@if not($disabled-thumb-color) and $thumb-color {
|
|
162
|
-
$disabled-thumb-color: hsl(from var(--thumb-color) h calc(s * 0.5) calc(l * 1.2));
|
|
163
|
-
}
|
|
164
|
-
|
|
165
|
-
@if not($thumb-disabled-border-color) and $thumb-border-color {
|
|
166
|
-
$thumb-disabled-border-color: hsla(from var(--thumb-border-color) h s l / 0.5);
|
|
167
|
-
}
|
|
168
|
-
|
|
169
|
-
@return extend($theme, (
|
|
170
|
-
name: $name,
|
|
171
|
-
track-color: $track-color,
|
|
172
|
-
track-step-color: $track-step-color,
|
|
173
|
-
track-step-size: $track-step-size,
|
|
174
|
-
track-hover-color: $track-hover-color,
|
|
175
|
-
thumb-color: $thumb-color,
|
|
176
|
-
thumb-focus-color: $thumb-focus-color,
|
|
177
|
-
thumb-border-color: $thumb-border-color,
|
|
178
|
-
thumb-border-hover-color: $thumb-border-hover-color,
|
|
179
|
-
thumb-border-focus-color: $thumb-border-focus-color,
|
|
180
|
-
thumb-disabled-border-color: $thumb-disabled-border-color,
|
|
181
|
-
disabled-thumb-color: $disabled-thumb-color,
|
|
182
|
-
label-background-color: $label-background-color,
|
|
183
|
-
label-text-color: $label-text-color,
|
|
184
|
-
base-track-color: $base-track-color,
|
|
185
|
-
base-track-hover-color: $base-track-hover-color,
|
|
186
|
-
disabled-base-track-color: $disabled-base-track-color,
|
|
187
|
-
disabled-fill-track-color: $disabled-fill-track-color,
|
|
188
|
-
tick-label-color: $tick-label-color,
|
|
189
|
-
tick-color: $tick-color,
|
|
190
|
-
));
|
|
191
|
-
}
|
|
192
|
-
|
|
193
6
|
/// @deprecated Use the `css-vars` mixin instead.
|
|
194
7
|
/// @see {mixin} css-vars
|
|
195
8
|
/// @param {Map} $theme - The theme used to style the component.
|
|
@@ -1,71 +1,7 @@
|
|
|
1
1
|
@use 'sass:map';
|
|
2
2
|
@use '../../base' as *;
|
|
3
|
-
@use '../../themes/schemas' as *;
|
|
4
3
|
@use 'igniteui-theming/sass/animations' as *;
|
|
5
4
|
|
|
6
|
-
////
|
|
7
|
-
/// @group themes
|
|
8
|
-
/// @access public
|
|
9
|
-
/// @author <a href="https://github.com/simeonoff" target="_blank">Simeon Simeonoff</a>
|
|
10
|
-
/// @author <a href="https://github.com/desig9stein" target="_blank">Marin Popov</a>
|
|
11
|
-
////
|
|
12
|
-
|
|
13
|
-
/// If you specify a background color, but do not specify colors for either the
|
|
14
|
-
/// button or the text, their colors will be set automatically to a contrasting color.
|
|
15
|
-
/// @param {Map} $schema [$light-material-schema] - The schema used as basis for styling the component.
|
|
16
|
-
/// @param {Color} $background [null] - The background color used in the snackbar.
|
|
17
|
-
/// @param {Color} $text-color [null] - The text color used in the snackbar.
|
|
18
|
-
/// @param {Color} $button-color [null] - The button color used in the snackbar.
|
|
19
|
-
/// @param {box-shadow} $shadow [null] - Sets a shadow to be used for the snackbar.
|
|
20
|
-
/// @param {List} $border-radius [null] - The border radius used for the snackbar component.
|
|
21
|
-
/// @requires $light-material-schema
|
|
22
|
-
/// @example scss Set a custom background color
|
|
23
|
-
/// $my-snackbar-theme: snackbar-theme($background: white);
|
|
24
|
-
/// // Pass the theme to the css-vars() mixin
|
|
25
|
-
/// @include css-vars($my-snackbar-theme);
|
|
26
|
-
@function snackbar-theme(
|
|
27
|
-
$schema: $light-material-schema,
|
|
28
|
-
|
|
29
|
-
$border-radius: null,
|
|
30
|
-
$background: null,
|
|
31
|
-
$text-color: null,
|
|
32
|
-
$button-color: null,
|
|
33
|
-
$shadow: null
|
|
34
|
-
) {
|
|
35
|
-
$name: 'igx-snackbar';
|
|
36
|
-
$snackbar-schema: ();
|
|
37
|
-
|
|
38
|
-
@if map.has-key($schema, 'snackbar') {
|
|
39
|
-
$snackbar-schema: map.get($schema, 'snackbar');
|
|
40
|
-
} @else {
|
|
41
|
-
$snackbar-schema: $schema;
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
$theme: digest-schema($snackbar-schema);
|
|
45
|
-
|
|
46
|
-
@if not($button-color) and $background {
|
|
47
|
-
$button-color: adaptive-contrast(var(--background));
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
@if not($text-color) and $background {
|
|
51
|
-
$text-color: adaptive-contrast(var(--background));
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
@if not($shadow) {
|
|
55
|
-
$elevation: map.get($snackbar-schema, 'elevation');
|
|
56
|
-
$shadow: elevation($elevation);
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
@return extend($theme, (
|
|
60
|
-
name: $name,
|
|
61
|
-
border-radius: $border-radius,
|
|
62
|
-
background: $background,
|
|
63
|
-
text-color: $text-color,
|
|
64
|
-
button-color: $button-color,
|
|
65
|
-
shadow: $shadow,
|
|
66
|
-
));
|
|
67
|
-
}
|
|
68
|
-
|
|
69
5
|
/// @deprecated Use the `css-vars` mixin instead.
|
|
70
6
|
/// @see {mixin} css-vars
|
|
71
7
|
/// @param {Map} $theme - The theme used to style the component.
|
|
@@ -1,79 +1,8 @@
|
|
|
1
1
|
@use 'sass:map';
|
|
2
2
|
@use 'sass:math';
|
|
3
3
|
@use '../../base' as *;
|
|
4
|
-
@use '../../themes/schemas' as *;
|
|
5
4
|
@use 'igniteui-theming/sass/animations/easings' as *;
|
|
6
5
|
|
|
7
|
-
////
|
|
8
|
-
/// @group themes
|
|
9
|
-
/// @access public
|
|
10
|
-
/// @author <a href="https://github.com/desig9stein" target="_blank">Marin Popov</a>
|
|
11
|
-
///
|
|
12
|
-
/// @param {Map} $schema [$light-material-schema] - The schema used as basis for styling the component.
|
|
13
|
-
///
|
|
14
|
-
/// @param {Color} $bar-color [null] - The background color of the bar.
|
|
15
|
-
/// @param {Color} $handle-color [null] - The color for the bar drag handle.
|
|
16
|
-
/// @param {Color} $expander-color [null] - The color for the arrow expander's.
|
|
17
|
-
/// @param {List} $border-radius [null] - the border radios of the splitter bar drag handle
|
|
18
|
-
/// @param {Color} $focus-color [null] - The color used for focused splitter bar.
|
|
19
|
-
/// @param {Number} $size [null] - The size of the splitter, its width for vertical and height for horizontal splitter.
|
|
20
|
-
/// @requires $light-material-schema
|
|
21
|
-
/// @example scss Set a custom expander color
|
|
22
|
-
/// $my-splitter-theme: splitter-theme($expander-color: red);
|
|
23
|
-
/// // Pass the theme to the css-vars() mixin
|
|
24
|
-
/// @include css-vars($my-splitter-them);
|
|
25
|
-
@function splitter-theme(
|
|
26
|
-
$schema: $light-material-schema,
|
|
27
|
-
|
|
28
|
-
$bar-color: null,
|
|
29
|
-
$handle-color: null,
|
|
30
|
-
$expander-color: null,
|
|
31
|
-
$border-radius: null,
|
|
32
|
-
$focus-color: null,
|
|
33
|
-
$size: null
|
|
34
|
-
) {
|
|
35
|
-
$name: 'igx-splitter';
|
|
36
|
-
$splitter-schema: ();
|
|
37
|
-
|
|
38
|
-
@if map.has-key($schema, 'splitter') {
|
|
39
|
-
$splitter-schema: map.get($schema, 'splitter');
|
|
40
|
-
} @else {
|
|
41
|
-
$splitter-schema: $schema;
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
$theme: digest-schema($splitter-schema);
|
|
45
|
-
$variant: map.get($theme, '_meta', 'theme');
|
|
46
|
-
|
|
47
|
-
@if not($handle-color) and $bar-color {
|
|
48
|
-
$handle-color: adaptive-contrast(var(--bar-color));
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
@if not($expander-color) and $bar-color {
|
|
52
|
-
$expander-color: adaptive-contrast(var(--bar-color));
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
@if $variant != 'indigo' {
|
|
56
|
-
@if not($focus-color) and $bar-color {
|
|
57
|
-
$focus-color: hsl(from var(--bar-color) h s calc(l * 0.7));
|
|
58
|
-
}
|
|
59
|
-
} @else {
|
|
60
|
-
@if not($focus-color) and $bar-color {
|
|
61
|
-
$focus-color: var(--bar-color);
|
|
62
|
-
}
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
@return extend($theme, (
|
|
67
|
-
name: $name,
|
|
68
|
-
bar-color: $bar-color,
|
|
69
|
-
handle-color: $handle-color,
|
|
70
|
-
expander-color: $expander-color,
|
|
71
|
-
border-radius: $border-radius,
|
|
72
|
-
focus-color: $focus-color,
|
|
73
|
-
size: $size,
|
|
74
|
-
));
|
|
75
|
-
}
|
|
76
|
-
|
|
77
6
|
/// @deprecated Use the `css-vars` mixin instead.
|
|
78
7
|
/// @see {mixin} css-vars
|
|
79
8
|
/// @param {Map} $theme - The theme used to style the component.
|