igniteui-theming 21.0.2 → 22.0.0-beta.1
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/package.json +1 -1
- package/sass/themes/components/_index.scss +2 -0
- package/sass/themes/components/action-strip/_action-strip-theme.scss +68 -0
- package/sass/themes/components/badge/_badge-theme.scss +7 -2
- package/sass/themes/components/carousel/_carousel-theme.scss +22 -11
- package/sass/themes/components/checkbox/_checkbox-theme.scss +3 -0
- package/sass/themes/components/grid/_index.scss +1 -0
- package/sass/themes/components/grid/_pivot-data-selector-theme.scss +36 -0
- package/sass/themes/components/input/_file-input-theme.scss +150 -0
- package/sass/themes/schemas/components/dark/_badge.scss +16 -7
- package/sass/themes/schemas/components/light/_badge.scss +88 -13
- package/sass/themes/schemas/components/light/_carousel.scss +8 -0
- package/sass/themes/schemas/components/light/_checkbox.scss +4 -0
- package/sass/themes/schemas/components/light/_date-range-picker.scss +38 -0
- package/tailwind/utilities/bootstrap.css +1 -1
- package/tailwind/utilities/fluent.css +1 -1
- package/tailwind/utilities/indigo.css +1 -1
- package/tailwind/utilities/material.css +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "igniteui-theming",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "22.0.0-beta.1",
|
|
4
4
|
"description": "A set of Sass variables, mixins, and functions for generating palettes, typography, and elevations used by Ignite UI components.",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
@forward 'action-strip/action-strip-theme';
|
|
1
2
|
@forward 'avatar/avatar-theme';
|
|
2
3
|
@forward 'badge/badge-theme';
|
|
3
4
|
@forward 'banner/banner-theme';
|
|
@@ -22,6 +23,7 @@
|
|
|
22
23
|
@forward 'icon/icon-theme';
|
|
23
24
|
@forward 'icon-button/icon-button-theme';
|
|
24
25
|
@forward 'input/input-theme';
|
|
26
|
+
@forward 'input/file-input-theme';
|
|
25
27
|
@forward 'label/label-theme';
|
|
26
28
|
@forward 'list/list-theme';
|
|
27
29
|
@forward 'navbar/navbar-theme';
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
@use 'sass:map';
|
|
2
|
+
@use '../../config';
|
|
3
|
+
@use '../../functions' as *;
|
|
4
|
+
@use '../../schemas/' as *;
|
|
5
|
+
@use '../../../utils/map' as *;
|
|
6
|
+
@use '../../../color/functions' as *;
|
|
7
|
+
|
|
8
|
+
////
|
|
9
|
+
/// @group themes
|
|
10
|
+
/// @package theming
|
|
11
|
+
/// @access public
|
|
12
|
+
/// @author <a href="https://github.com/simeonoff" target="_blank">Simeon Simeonoff</a>
|
|
13
|
+
/// @author <a href="https://github.com/desig9stein" target="_blank">Marin Popov</a>
|
|
14
|
+
////
|
|
15
|
+
|
|
16
|
+
/// If only background color is specified, text/icon color will be assigned automatically to a contrasting color.
|
|
17
|
+
/// @param {Map} $schema [$light-material-schema] - The schema used as basis for styling the component.
|
|
18
|
+
///
|
|
19
|
+
/// @param {Color} $icon-color [null] - The color used for the actions icons.
|
|
20
|
+
/// @param {Color} $background [null] - The color used for the action strip component content background.
|
|
21
|
+
/// @param {Color} $actions-background [null] - The color used for the actions background.
|
|
22
|
+
/// @param {Color} $delete-action [null] - The color used for the delete icon in action strip component.
|
|
23
|
+
/// @param {List} $actions-border-radius [null] - The border radius used for actions container inside action strip component.
|
|
24
|
+
///
|
|
25
|
+
/// @example scss Change the background and icon colors in action strip
|
|
26
|
+
/// $my-action-strip-theme: action-strip-theme($background: black);
|
|
27
|
+
/// // Pass the theme to the css-vars() mixin
|
|
28
|
+
/// @include css-vars($my-action-strip-theme);
|
|
29
|
+
@function action-strip-theme(
|
|
30
|
+
$schema: $light-material-schema,
|
|
31
|
+
|
|
32
|
+
$background: null,
|
|
33
|
+
$actions-background: null,
|
|
34
|
+
$icon-color: null,
|
|
35
|
+
$delete-action: null,
|
|
36
|
+
$actions-border-radius: null
|
|
37
|
+
) {
|
|
38
|
+
$name: 'igx-action-strip';
|
|
39
|
+
$action-strip-schema: ();
|
|
40
|
+
|
|
41
|
+
@if map.has-key($schema, 'action-strip') {
|
|
42
|
+
$action-strip-schema: map.get($schema, 'action-strip');
|
|
43
|
+
} @else {
|
|
44
|
+
$action-strip-schema: $schema;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
$theme: digest-schema($action-strip-schema);
|
|
48
|
+
|
|
49
|
+
@if not($icon-color) and $actions-background {
|
|
50
|
+
$icon-color: adaptive-contrast(var(--actions-background));
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
@if not($actions-border-radius) {
|
|
54
|
+
$actions-border-radius: map.get($theme, 'actions-border-radius');
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
@return extend(
|
|
58
|
+
$theme,
|
|
59
|
+
(
|
|
60
|
+
name: $name,
|
|
61
|
+
background: $background,
|
|
62
|
+
actions-background: $actions-background,
|
|
63
|
+
icon-color: $icon-color,
|
|
64
|
+
delete-action: $delete-action,
|
|
65
|
+
actions-border-radius: $actions-border-radius,
|
|
66
|
+
)
|
|
67
|
+
);
|
|
68
|
+
}
|
|
@@ -24,7 +24,8 @@
|
|
|
24
24
|
/// @param {Color} $background-color [null] - The background color used.
|
|
25
25
|
/// @param {box-shadow} $shadow [null] - Sets a shadow to be used for the badge.
|
|
26
26
|
/// @param {Number} $border-radius [null] - The border radius used for badge component.
|
|
27
|
-
///
|
|
27
|
+
/// @param {Number} $size [null] - The size of the badge component.
|
|
28
|
+
/// @param {Number} $dot-size [null] - The size of the dot type badge.
|
|
28
29
|
/// @requires $light-material-schema
|
|
29
30
|
///
|
|
30
31
|
/// @example scss Change the text and icon colors in a badge
|
|
@@ -41,7 +42,9 @@
|
|
|
41
42
|
$border-radius: null,
|
|
42
43
|
|
|
43
44
|
$background-color: null,
|
|
44
|
-
$shadow: null
|
|
45
|
+
$shadow: null,
|
|
46
|
+
$size: null,
|
|
47
|
+
$dot-size: null
|
|
45
48
|
) {
|
|
46
49
|
$name: #{config.variable-prefix() + '-' + 'badge'};
|
|
47
50
|
$selector: #{config.element-prefix() + '-' + 'badge'};
|
|
@@ -79,6 +82,8 @@
|
|
|
79
82
|
border-radius: $border-radius,
|
|
80
83
|
background-color: $background-color,
|
|
81
84
|
shadow: $shadow,
|
|
85
|
+
size: $size,
|
|
86
|
+
dot-size: $dot-size,
|
|
82
87
|
)
|
|
83
88
|
);
|
|
84
89
|
}
|
|
@@ -138,24 +138,35 @@
|
|
|
138
138
|
$button-disabled-arrow-color: hsla(from adaptive-contrast(var(--button-disabled-background)) h s l / 0.4);
|
|
139
139
|
}
|
|
140
140
|
|
|
141
|
-
@if not($indicator-dot-color) and $indicator-background {
|
|
142
|
-
$indicator-dot-color: hsla(from adaptive-contrast(var(--indicator-background)) h s l / 0.8);
|
|
143
|
-
}
|
|
144
|
-
|
|
145
141
|
@if not($indicator-hover-dot-color) and $indicator-dot-color {
|
|
146
|
-
$indicator-hover-dot-color:
|
|
142
|
+
$indicator-hover-dot-color: dynamic-shade(var(--indicator-dot-color));
|
|
147
143
|
}
|
|
148
144
|
|
|
149
|
-
@if
|
|
150
|
-
$indicator-
|
|
151
|
-
|
|
145
|
+
@if $variant == 'indigo' {
|
|
146
|
+
@if not($indicator-dot-color) and $indicator-background {
|
|
147
|
+
$indicator-dot-color: hsla(from adaptive-contrast(var(--indicator-background)) h s l / 0.8);
|
|
148
|
+
}
|
|
152
149
|
|
|
153
|
-
|
|
154
|
-
|
|
150
|
+
@if not($indicator-hover-dot-color) and $indicator-dot-color {
|
|
151
|
+
$indicator-hover-dot-color: hsla(from var(--indicator-dot-color) h s l / 1);
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
@if not($indicator-border-color) and $indicator-dot-color {
|
|
155
|
+
$indicator-border-color: var(--indicator-dot-color);
|
|
156
|
+
}
|
|
157
|
+
} @else {
|
|
158
|
+
@if not($indicator-border-color) and $indicator-background {
|
|
159
|
+
$indicator-border-color: hsla(from adaptive-contrast(var(--indicator-background)) h s l / 0.8);
|
|
160
|
+
}
|
|
155
161
|
}
|
|
156
162
|
|
|
157
163
|
@if not($indicator-active-hover-dot-color) and $indicator-active-dot-color {
|
|
158
|
-
$indicator-active-hover-dot-color:
|
|
164
|
+
$indicator-active-hover-dot-color: dynamic-shade(var(--indicator-active-dot-color));
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
@if not($indicator-active-dot-color) and $indicator-background {
|
|
168
|
+
$indicator-active-dot-color: adaptive-contrast(var(--indicator-background));
|
|
169
|
+
$indicator-active-hover-dot-color: var(--indicator-active-dot-color);
|
|
159
170
|
}
|
|
160
171
|
|
|
161
172
|
@if not($indicator-active-border-color) and $indicator-active-dot-color {
|
|
@@ -25,6 +25,7 @@
|
|
|
25
25
|
/// @param {Color} $fill-color-hover [null] - The checked border and fill colors on hover.
|
|
26
26
|
/// @param {Color} $tick-color [null] - The checked mark color.
|
|
27
27
|
/// @param {Color} $tick-color-hover [null] - The checked mark color on hover.
|
|
28
|
+
/// @param {Number} $tick-width [null] - The checked mark width.
|
|
28
29
|
/// @param {Color} $disabled-color [null] - The disabled border and fill colors.
|
|
29
30
|
/// @param {Color} $disabled-tick-color [null] - The checked mark color in disabled state.
|
|
30
31
|
/// @param {Color} $disabled-indeterminate-color [null] - The disabled border and fill colors in indeterminate state.
|
|
@@ -58,6 +59,7 @@
|
|
|
58
59
|
$fill-color-hover: null,
|
|
59
60
|
$tick-color: null,
|
|
60
61
|
$tick-color-hover: null,
|
|
62
|
+
$tick-width: null,
|
|
61
63
|
$disabled-color: null,
|
|
62
64
|
$disabled-tick-color: null,
|
|
63
65
|
$disabled-indeterminate-color: null,
|
|
@@ -145,6 +147,7 @@
|
|
|
145
147
|
fill-color-hover: $fill-color-hover,
|
|
146
148
|
tick-color: $tick-color,
|
|
147
149
|
tick-color-hover: $tick-color-hover,
|
|
150
|
+
tick-width: $tick-width,
|
|
148
151
|
disabled-color: $disabled-color,
|
|
149
152
|
disabled-tick-color: $disabled-tick-color,
|
|
150
153
|
disabled-indeterminate-color: $disabled-indeterminate-color,
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
@use 'sass:map';
|
|
2
|
+
@use '../../config';
|
|
3
|
+
@use '../../functions' as *;
|
|
4
|
+
@use '../../schemas/' as *;
|
|
5
|
+
@use '../../../utils/map' as *;
|
|
6
|
+
@use '../../../color/functions' as *;
|
|
7
|
+
@use '../../../elevations/' as *;
|
|
8
|
+
|
|
9
|
+
////
|
|
10
|
+
/// @group themes
|
|
11
|
+
/// @package theming
|
|
12
|
+
/// @access public
|
|
13
|
+
/// @author <a href="https://github.com/simeonoff" target="_blank">Simeon Simeonoff</a>
|
|
14
|
+
////
|
|
15
|
+
|
|
16
|
+
/// @param {Map} $schema [$light-material-schema] - The schema used as basis for styling the component.
|
|
17
|
+
@function pivot-data-selector-theme($schema: $light-material-schema, $background: null) {
|
|
18
|
+
$name: 'igx-pivot-data-selector';
|
|
19
|
+
$selector: '.igx-pivot-data-selector';
|
|
20
|
+
$pivot-data-selector-schema: ();
|
|
21
|
+
|
|
22
|
+
@if map.has-key($schema, 'pivot-data-selector') {
|
|
23
|
+
$pivot-data-selector-schema: map.get($schema, 'pivot-data-selector');
|
|
24
|
+
} @else {
|
|
25
|
+
$pivot-data-selector-schema: $schema;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
$theme: digest-schema($pivot-data-selector-schema);
|
|
29
|
+
|
|
30
|
+
@return extend(
|
|
31
|
+
$theme,
|
|
32
|
+
(
|
|
33
|
+
name: $name,
|
|
34
|
+
)
|
|
35
|
+
);
|
|
36
|
+
}
|
|
@@ -0,0 +1,150 @@
|
|
|
1
|
+
@use 'sass:map';
|
|
2
|
+
@use '../../config';
|
|
3
|
+
@use '../../functions' as *;
|
|
4
|
+
@use '../../schemas/' as *;
|
|
5
|
+
@use '../../../utils/map' as *;
|
|
6
|
+
@use '../../../color/functions' as *;
|
|
7
|
+
@use '../../../elevations/' as *;
|
|
8
|
+
|
|
9
|
+
////
|
|
10
|
+
/// @group themes
|
|
11
|
+
/// @package theming
|
|
12
|
+
/// @access public
|
|
13
|
+
////
|
|
14
|
+
|
|
15
|
+
/// @param {Map} $schema [$light-material-schema] - The schema used as basis for styling the component.
|
|
16
|
+
/// @param {Color} $file-names-background [null] - The file names container background color.
|
|
17
|
+
/// @param {Color} $file-names-background--focused [null] - The file names container background color when the file input is focused.
|
|
18
|
+
/// @param {Color} $file-names-background--filled [null] - The file names container background color when the file input is filled.
|
|
19
|
+
/// @param {Color} $file-names-background--disabled [null] - The file names container background color when the file input is disabled.
|
|
20
|
+
/// @param {Color} $file-names-foreground [null] - The file names color.
|
|
21
|
+
/// @param {Color} $file-names-foreground--focused [null] - The file names color when the file input is focused.
|
|
22
|
+
/// @param {Color} $file-names-foreground--filled [null] - The file names color when the file input is filled.
|
|
23
|
+
/// @param {Color} $file-names-foreground--disabled [null] - The file names color when the file input is disabled.
|
|
24
|
+
/// @param {Color} $file-selector-button-background [null] - The file input selector button background color.
|
|
25
|
+
/// @param {Color} $file-selector-button-background--focused [null] - The selector button background color when the file input is focused.
|
|
26
|
+
/// @param {Color} $file-selector-button-background--filled [null] - The selector button background color when the file input is filled.
|
|
27
|
+
/// @param {Color} $file-selector-button-background--disabled [null] - The selector button background color when the file input is disabled.
|
|
28
|
+
/// @param {Color} $file-selector-button-foreground [null] - The file input selector button foreground color.
|
|
29
|
+
/// @param {Color} $file-selector-button-foreground--focused [null] - The selector button foreground color when the file input is focused.
|
|
30
|
+
/// @param {Color} $file-selector-button-foreground--filled [null] - The selector button foreground color when the file input is filled.
|
|
31
|
+
/// @param {Color} $file-selector-button-foreground--disabled [null] - The selector button foreground color when the file input is disabled.
|
|
32
|
+
/// @example scss Change the focused border and label colors
|
|
33
|
+
/// $my-file-input-theme: file-input-theme($file-names-foreground: #09f);
|
|
34
|
+
/// // Pass the theme to the css-vars() mixin
|
|
35
|
+
/// @include css-vars($my-file-input-theme);
|
|
36
|
+
@function file-input-theme(
|
|
37
|
+
$schema: $light-material-schema,
|
|
38
|
+
$file-names-background: null,
|
|
39
|
+
$file-names-background--focused: null,
|
|
40
|
+
$file-names-background--filled: null,
|
|
41
|
+
$file-names-background--disabled: null,
|
|
42
|
+
$file-names-foreground: null,
|
|
43
|
+
$file-names-foreground--focused: null,
|
|
44
|
+
$file-names-foreground--filled: null,
|
|
45
|
+
$file-names-foreground--disabled: null,
|
|
46
|
+
|
|
47
|
+
$file-selector-button-background: null,
|
|
48
|
+
$file-selector-button-background--focused: null,
|
|
49
|
+
$file-selector-button-background--filled: null,
|
|
50
|
+
$file-selector-button-background--disabled: null,
|
|
51
|
+
$file-selector-button-foreground: null,
|
|
52
|
+
$file-selector-button-foreground--focused: null,
|
|
53
|
+
$file-selector-button-foreground--filled: null,
|
|
54
|
+
$file-selector-button-foreground--disabled: null
|
|
55
|
+
) {
|
|
56
|
+
$name: 'igx-file-input';
|
|
57
|
+
$file-input-schema: ();
|
|
58
|
+
|
|
59
|
+
@if map.has-key($schema, 'file-input') {
|
|
60
|
+
$file-input-schema: map.get($schema, 'file-input');
|
|
61
|
+
} @else {
|
|
62
|
+
$file-input-schema: $schema;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
$theme: digest-schema($file-input-schema);
|
|
66
|
+
|
|
67
|
+
@if $file-names-background != transparent {
|
|
68
|
+
@if not($file-names-background--focused) and $file-names-background {
|
|
69
|
+
$file-names-background--focused: dynamic-shade(var(--file-names-background));
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
@if not($file-names-background--filled) and $file-names-background {
|
|
73
|
+
$file-names-background--filled: $file-names-background;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
@if not($file-names-background--disabled) and $file-names-background {
|
|
77
|
+
$file-names-background--disabled: hsla(from $file-names-background h s l / 0.4);
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
@if not($file-names-foreground) and $file-names-background {
|
|
81
|
+
$file-names-foreground: adaptive-contrast($file-names-background);
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
@if not($file-names-foreground--focused) and $file-names-background--focused {
|
|
85
|
+
$file-names-foreground--focused: adaptive-contrast($file-names-background--focused);
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
@if not($file-names-foreground--filled) and $file-names-background--filled {
|
|
89
|
+
$file-names-foreground--filled: adaptive-contrast($file-names-background--filled);
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
@if not($file-names-foreground--disabled) and $file-names-background--disabled {
|
|
93
|
+
$file-names-foreground--disabled: adaptive-contrast($file-names-background--disabled);
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
@if $file-selector-button-background != transparent {
|
|
98
|
+
@if not($file-selector-button-background--focused) and $file-selector-button-background {
|
|
99
|
+
$file-selector-button-background--focused: dynamic-shade(var(--file-selector-button-background));
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
@if not($file-selector-button-background--filled) and $file-selector-button-background {
|
|
103
|
+
$file-selector-button-background--filled: $file-selector-button-background;
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
@if not($file-selector-button-background--disabled) and $file-selector-button-background {
|
|
107
|
+
$file-selector-button-background--disabled: hsla(from $file-selector-button-background h s l / 0.4);
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
@if not($file-selector-button-foreground) and $file-selector-button-background {
|
|
111
|
+
$file-selector-button-foreground: adaptive-contrast($file-selector-button-background);
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
@if not($file-selector-button-foreground--focused) and $file-selector-button-background--focused {
|
|
115
|
+
$file-selector-button-foreground--focused: adaptive-contrast($file-selector-button-background--focused);
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
@if not($file-selector-button-foreground--filled) and $file-selector-button-background--filled {
|
|
119
|
+
$file-selector-button-foreground--filled: adaptive-contrast($file-selector-button-background--filled);
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
@if not($file-selector-button-foreground--disabled) and $file-selector-button-background--disabled {
|
|
123
|
+
$file-selector-button-foreground--disabled: adaptive-contrast($file-selector-button-background--disabled);
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
@return extend(
|
|
128
|
+
$theme,
|
|
129
|
+
(
|
|
130
|
+
name: $name,
|
|
131
|
+
file-names-background: $file-names-background,
|
|
132
|
+
file-names-background--focused: $file-names-background--focused,
|
|
133
|
+
file-names-background--filled: $file-names-background--filled,
|
|
134
|
+
file-names-background--disabled: $file-names-background--disabled,
|
|
135
|
+
file-names-foreground: $file-names-foreground,
|
|
136
|
+
file-names-foreground--focused: $file-names-foreground--focused,
|
|
137
|
+
file-names-foreground--filled: $file-names-foreground--filled,
|
|
138
|
+
file-names-foreground--disabled: $file-names-foreground--disabled,
|
|
139
|
+
|
|
140
|
+
file-selector-button-background: $file-selector-button-background,
|
|
141
|
+
file-selector-button-background--focused: $file-selector-button-background--focused,
|
|
142
|
+
file-selector-button-background--filled: $file-selector-button-background--filled,
|
|
143
|
+
file-selector-button-background--disabled: $file-selector-button-background--disabled,
|
|
144
|
+
file-selector-button-foreground: $file-selector-button-foreground,
|
|
145
|
+
file-selector-button-foreground--focused: $file-selector-button-foreground--focused,
|
|
146
|
+
file-selector-button-foreground--filled: $file-selector-button-foreground--filled,
|
|
147
|
+
file-selector-button-foreground--disabled: $file-selector-button-foreground--disabled,
|
|
148
|
+
)
|
|
149
|
+
);
|
|
150
|
+
}
|
|
@@ -35,17 +35,10 @@ $dark-fluent-badge: extend(
|
|
|
35
35
|
|
|
36
36
|
/// Generates a dark bootstrap badge schema.
|
|
37
37
|
/// @type {Map}
|
|
38
|
-
/// @prop {Map} border-color [contrast-color: ('gray', 50)] - The border color used.
|
|
39
38
|
/// @requires $bootstrap-badge
|
|
40
39
|
$dark-bootstrap-badge: extend(
|
|
41
40
|
$bootstrap-badge,
|
|
42
41
|
(
|
|
43
|
-
border-color: (
|
|
44
|
-
contrast-color: (
|
|
45
|
-
'gray',
|
|
46
|
-
50,
|
|
47
|
-
),
|
|
48
|
-
),
|
|
49
42
|
_meta: (
|
|
50
43
|
theme: 'bootstrap',
|
|
51
44
|
variant: 'dark',
|
|
@@ -55,10 +48,26 @@ $dark-bootstrap-badge: extend(
|
|
|
55
48
|
|
|
56
49
|
/// Generates a dark indigo badge schema.
|
|
57
50
|
/// @type {Map}
|
|
51
|
+
/// @prop {Map} background-color [color: ('primary', 400)] - The background color used for the badge component.
|
|
52
|
+
/// @prop {Map} border-color [contrast-color: ('gray', 900)] - The border color used for the badge component.
|
|
58
53
|
/// @requires $indigo-badge
|
|
59
54
|
$dark-indigo-badge: extend(
|
|
60
55
|
$indigo-badge,
|
|
61
56
|
(
|
|
57
|
+
background-color: (
|
|
58
|
+
color: (
|
|
59
|
+
'primary',
|
|
60
|
+
400,
|
|
61
|
+
),
|
|
62
|
+
),
|
|
63
|
+
|
|
64
|
+
border-color: (
|
|
65
|
+
contrast-color: (
|
|
66
|
+
'gray',
|
|
67
|
+
900,
|
|
68
|
+
),
|
|
69
|
+
),
|
|
70
|
+
|
|
62
71
|
_meta: (
|
|
63
72
|
theme: 'indigo',
|
|
64
73
|
variant: 'dark',
|
|
@@ -10,12 +10,14 @@
|
|
|
10
10
|
|
|
11
11
|
/// Generates a light badge schema.
|
|
12
12
|
/// @type {Map}
|
|
13
|
-
/// @prop {Map} icon-color [contrast-color: ('primary', 900)] - The icon color used.
|
|
14
|
-
/// @prop {Map} text-color [contrast-color: ('primary', 900)] - The text color used.
|
|
15
|
-
/// @prop {Map} border-color [color: ('gray',
|
|
16
|
-
/// @prop {Map} background-color [color: ('primary', 500)] - The background color used.
|
|
13
|
+
/// @prop {Map} icon-color [contrast-color: ('primary', 900)] - The icon color used for the badge component.
|
|
14
|
+
/// @prop {Map} text-color [contrast-color: ('primary', 900)] - The text color used for the badge component.
|
|
15
|
+
/// @prop {Map} border-color [contrast-color: ('gray', 900)] - The border color used for the badge component.
|
|
16
|
+
/// @prop {Map} background-color [color: ('primary', 500)] - The background color used for the badge component.
|
|
17
17
|
/// @prop {Number} elevation [1] - The elevation level, between 0-24, to be used for the badge shadow.
|
|
18
|
-
/// @prop {Number} border-radius [0] - The border
|
|
18
|
+
/// @prop {Number} border-radius [0] - The border-radius used for the badge component.
|
|
19
|
+
/// @prop {List} size [(rem(16px), rem(22px), rem(26px))] - The size used for the badge.
|
|
20
|
+
/// @prop {Number} default-size [2] - The default size used for the badge component (medium).
|
|
19
21
|
/// @prop {Map} typography [text: (value: 'caption')] - The typography styles used for the component.
|
|
20
22
|
/// @requires {Map} $default-elevation-badge
|
|
21
23
|
$light-badge: extend(
|
|
@@ -36,9 +38,9 @@ $light-badge: extend(
|
|
|
36
38
|
),
|
|
37
39
|
|
|
38
40
|
border-color: (
|
|
39
|
-
color: (
|
|
41
|
+
contrast-color: (
|
|
40
42
|
'gray',
|
|
41
|
-
|
|
43
|
+
900,
|
|
42
44
|
),
|
|
43
45
|
),
|
|
44
46
|
|
|
@@ -51,6 +53,16 @@ $light-badge: extend(
|
|
|
51
53
|
|
|
52
54
|
border-radius: 0,
|
|
53
55
|
|
|
56
|
+
size: (
|
|
57
|
+
sizable: (
|
|
58
|
+
rem(16px),
|
|
59
|
+
rem(22px),
|
|
60
|
+
rem(26px),
|
|
61
|
+
),
|
|
62
|
+
),
|
|
63
|
+
|
|
64
|
+
default-size: 2,
|
|
65
|
+
|
|
54
66
|
typography: (
|
|
55
67
|
text: (
|
|
56
68
|
value: 'caption',
|
|
@@ -61,10 +73,27 @@ $light-badge: extend(
|
|
|
61
73
|
|
|
62
74
|
/// Generates a material badge schema.
|
|
63
75
|
/// @type {Map}
|
|
76
|
+
/// @prop {Map} background-color [color: ('primary', 800)] - The background color used for the badge component.
|
|
77
|
+
/// @prop {List} dot-size [(rem(8px), rem(10px), rem(12px))] - The size used for the dot type badge.
|
|
64
78
|
/// @requires {Map} $light-badge
|
|
65
79
|
$material-badge: extend(
|
|
66
80
|
$light-badge,
|
|
67
81
|
(
|
|
82
|
+
background-color: (
|
|
83
|
+
color: (
|
|
84
|
+
'primary',
|
|
85
|
+
800,
|
|
86
|
+
),
|
|
87
|
+
),
|
|
88
|
+
|
|
89
|
+
dot-size: (
|
|
90
|
+
sizable: (
|
|
91
|
+
rem(8px),
|
|
92
|
+
rem(10px),
|
|
93
|
+
rem(12px),
|
|
94
|
+
),
|
|
95
|
+
),
|
|
96
|
+
|
|
68
97
|
_meta: (
|
|
69
98
|
theme: 'material',
|
|
70
99
|
variant: 'light',
|
|
@@ -74,10 +103,19 @@ $material-badge: extend(
|
|
|
74
103
|
|
|
75
104
|
/// Generates a fluent badge schema.
|
|
76
105
|
/// @type {Map}
|
|
106
|
+
/// @prop {List} dot-size [(rem(6px), rem(10px), rem(12px))] - The size used for the dot type badge.
|
|
77
107
|
/// @requires {Map} $light-badge
|
|
78
108
|
$fluent-badge: extend(
|
|
79
109
|
$light-badge,
|
|
80
110
|
(
|
|
111
|
+
dot-size: (
|
|
112
|
+
sizable: (
|
|
113
|
+
rem(6px),
|
|
114
|
+
rem(10px),
|
|
115
|
+
rem(12px),
|
|
116
|
+
),
|
|
117
|
+
),
|
|
118
|
+
|
|
81
119
|
_meta: (
|
|
82
120
|
theme: 'fluent',
|
|
83
121
|
variant: 'light',
|
|
@@ -89,7 +127,8 @@ $fluent-badge: extend(
|
|
|
89
127
|
/// @type {Map}
|
|
90
128
|
/// @prop {Map} icon-color [contrast-color: ('primary', 100)] - The icon color used.
|
|
91
129
|
/// @prop {Map} text-color [contrast-color: ('primary', 100)] - The text color used.
|
|
92
|
-
/// @prop {
|
|
130
|
+
/// @prop {List} border-radius [(rem(2px), rem(4px), rem(4px))] - The border radius used for badge.
|
|
131
|
+
/// @prop {List} dot-size [(rem(6px), rem(10px), rem(14px))] - The size used for the dot type badge.
|
|
93
132
|
/// @requires {Map} $light-badge
|
|
94
133
|
$bootstrap-badge: extend(
|
|
95
134
|
$light-badge,
|
|
@@ -108,7 +147,22 @@ $bootstrap-badge: extend(
|
|
|
108
147
|
),
|
|
109
148
|
),
|
|
110
149
|
|
|
111
|
-
border-radius:
|
|
150
|
+
border-radius: (
|
|
151
|
+
sizable: (
|
|
152
|
+
rem(2px),
|
|
153
|
+
rem(4px),
|
|
154
|
+
rem(4px),
|
|
155
|
+
),
|
|
156
|
+
),
|
|
157
|
+
|
|
158
|
+
dot-size: (
|
|
159
|
+
sizable: (
|
|
160
|
+
rem(6px),
|
|
161
|
+
rem(10px),
|
|
162
|
+
rem(14px),
|
|
163
|
+
),
|
|
164
|
+
),
|
|
165
|
+
|
|
112
166
|
_meta: (
|
|
113
167
|
theme: 'bootstrap',
|
|
114
168
|
variant: 'light',
|
|
@@ -118,21 +172,42 @@ $bootstrap-badge: extend(
|
|
|
118
172
|
|
|
119
173
|
/// Generates an indigo badge schema.
|
|
120
174
|
/// @type {Map}
|
|
121
|
-
/// @prop {Map}
|
|
175
|
+
/// @prop {Map} border-color [color: ('gray', 100)] - The border color used for the badge component.
|
|
176
|
+
/// @prop {List} size [(rem(14px), rem(18px), rem(22px))] - The size used for the badge.
|
|
177
|
+
/// @prop {List} dot-size [(rem(6px), rem(8px), rem(10px))] - The size used for the dot type badge.
|
|
122
178
|
/// @prop {Map} typography [text: (value: 'button')] - The typography styles used for the component.
|
|
179
|
+
/// @prop {Number} default-size [3] - The default size used for the badge component (large).
|
|
123
180
|
/// @requires {Map} $light-badge
|
|
124
181
|
/// @requires {Map} $indigo-elevation-badge
|
|
125
182
|
$indigo-badge: extend(
|
|
126
183
|
$light-badge,
|
|
127
184
|
$indigo-elevation-badge,
|
|
128
185
|
(
|
|
129
|
-
|
|
186
|
+
border-color: (
|
|
130
187
|
color: (
|
|
131
|
-
'
|
|
132
|
-
|
|
188
|
+
'gray',
|
|
189
|
+
100,
|
|
190
|
+
),
|
|
191
|
+
),
|
|
192
|
+
|
|
193
|
+
size: (
|
|
194
|
+
sizable: (
|
|
195
|
+
rem(14px),
|
|
196
|
+
rem(18px),
|
|
197
|
+
rem(22px),
|
|
133
198
|
),
|
|
134
199
|
),
|
|
135
200
|
|
|
201
|
+
dot-size: (
|
|
202
|
+
sizable: (
|
|
203
|
+
rem(6px),
|
|
204
|
+
rem(8px),
|
|
205
|
+
rem(10px),
|
|
206
|
+
),
|
|
207
|
+
),
|
|
208
|
+
|
|
209
|
+
default-size: 3,
|
|
210
|
+
|
|
136
211
|
typography: (
|
|
137
212
|
text: (
|
|
138
213
|
value: 'button',
|
|
@@ -312,6 +312,7 @@ $bootstrap-carousel: extend(
|
|
|
312
312
|
/// @prop {Map} button-disabled-arrow-color [color: ('gray' 900, .2)] - The previous/next buttons disabled color.
|
|
313
313
|
/// @prop {Map} indicator-dot-color [color: ('gray', 500)] - The idle indicator dot color.
|
|
314
314
|
/// @prop {Map} indicator-hover-dot-color [color: ('gray', 600)] - The hover indicator dot color.
|
|
315
|
+
/// @prop {Map} indicator-active-border-color [color: ('primary', 500)] - The active indicator border color.
|
|
315
316
|
/// @prop {Map} indicator-active-dot-color [color: ('primary', 500)] - The active indicator dot color.
|
|
316
317
|
/// @prop {Map} indicator-active-hover-dot-color [color: ('primary', 400)] - The active indicator dot color on hover.
|
|
317
318
|
/// @prop {Map} indicator-focus-color [color: ('primary', 400, .5)] - The indicators border and dot color on focus.
|
|
@@ -402,6 +403,13 @@ $indigo-carousel: extend(
|
|
|
402
403
|
),
|
|
403
404
|
),
|
|
404
405
|
|
|
406
|
+
indicator-active-border-color: (
|
|
407
|
+
color: (
|
|
408
|
+
'primary',
|
|
409
|
+
500,
|
|
410
|
+
),
|
|
411
|
+
),
|
|
412
|
+
|
|
405
413
|
indicator-active-dot-color: (
|
|
406
414
|
color: (
|
|
407
415
|
'primary',
|
|
@@ -12,6 +12,7 @@
|
|
|
12
12
|
/// Generates a light checkbox schema.
|
|
13
13
|
/// @type {Map}
|
|
14
14
|
/// @prop {Map} tick-color [color: ('gray', 50)] - The checked mark color.
|
|
15
|
+
/// @prop {Number} tick-width [3] - The checked mark width.
|
|
15
16
|
/// @prop {Map} label-color [color: ('gray', 900)]- The text color used for the label text.
|
|
16
17
|
/// @prop {Map} label-color-hover [color: ('gray', 900)]- The text color used for the label text on hover.
|
|
17
18
|
/// @prop {Color} empty-fill-color [transparent] - The unchecked fill color.
|
|
@@ -33,6 +34,7 @@ $light-checkbox: (
|
|
|
33
34
|
50,
|
|
34
35
|
),
|
|
35
36
|
),
|
|
37
|
+
tick-width: 3,
|
|
36
38
|
label-color: (
|
|
37
39
|
color: (
|
|
38
40
|
'gray',
|
|
@@ -188,6 +190,7 @@ $material-checkbox: extend(
|
|
|
188
190
|
/// Generates a fluent checkbox schema.
|
|
189
191
|
/// @type {Map}
|
|
190
192
|
/// @prop {Map} tick-color-hover [color: ('gray', 700)] - The checked mark color on hover when the control in unchecked.
|
|
193
|
+
/// @prop {Number} tick-width [1.5] - The checked mark width.
|
|
191
194
|
/// @prop {Map} empty-color [color: ('gray', 900)] - The unchecked border color.
|
|
192
195
|
/// @prop {Map} empty-color-hover [color: ('gray', 900)] - The unchecked border color on hover.
|
|
193
196
|
/// @prop {Map} fill-color-hover [color: ('primary', 800)] - The checked border and fill colors on hover.
|
|
@@ -205,6 +208,7 @@ $fluent-checkbox: extend(
|
|
|
205
208
|
700,
|
|
206
209
|
),
|
|
207
210
|
),
|
|
211
|
+
tick-width: 1.5,
|
|
208
212
|
focus-outline-color: (
|
|
209
213
|
color: (
|
|
210
214
|
'gray',
|