@camaradesuk/m3e-angular 0.2.0-alpha.7 → 0.2.0-alpha.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/README.md +6 -4
- package/fesm2022/camaradesuk-m3e-angular.mjs +2515 -79
- package/fesm2022/camaradesuk-m3e-angular.mjs.map +1 -1
- package/package.json +5 -4
- package/src/lib/styles/_index.scss +2 -0
- package/src/lib/styles/_mat-exp-styles.scss +2 -0
- package/src/lib/styles/components/all-buttons/_common-selectors.scss +7 -6
- package/src/lib/styles/components/all-buttons/button/_index.scss +15 -0
- package/src/lib/styles/components/all-buttons/button/tokens/_common.scss +18 -0
- package/src/lib/styles/components/all-buttons/button/tokens/_l.scss +25 -0
- package/src/lib/styles/components/all-buttons/button/tokens/_m.scss +25 -0
- package/src/lib/styles/components/all-buttons/button/tokens/_s.scss +25 -0
- package/src/lib/styles/components/all-buttons/button/tokens/_xl.scss +25 -0
- package/src/lib/styles/components/all-buttons/button/tokens/_xs.scss +30 -5
- package/src/lib/styles/components/all-buttons/button-group/_connected-l-corners.scss +2 -78
- package/src/lib/styles/components/all-buttons/button-group/_connected-m-corners.scss +2 -78
- package/src/lib/styles/components/all-buttons/button-group/_connected-s-corners.scss +2 -80
- package/src/lib/styles/components/all-buttons/button-group/_connected-xl-corners.scss +2 -78
- package/src/lib/styles/components/all-buttons/button-group/_connected-xs-corners.scss +2 -79
- package/src/lib/styles/components/all-buttons/button-group/_index.scss +6 -0
- package/src/lib/styles/components/all-buttons/fab/_index.scss +109 -0
- package/src/lib/styles/components/all-buttons/icon-button/_index.scss +29 -0
- package/src/lib/styles/components/all-buttons/icon-button/configs/_s.scss +1 -1
- package/src/lib/styles/components/all-buttons/icon-button/configs/_xl.scss +2 -2
- package/src/lib/styles/components/all-buttons/icon-button/tokens/_l.scss +1 -1
- package/src/lib/styles/components/all-buttons/icon-button/tokens/_m.scss +1 -1
- package/src/lib/styles/components/all-buttons/icon-button/tokens/_s.scss +2 -0
- package/src/lib/styles/components/all-buttons/icon-button/tokens/_xl.scss +3 -0
- package/src/lib/styles/components/all-buttons/icon-button/tokens/_xs.scss +1 -1
- package/src/lib/styles/components/all-buttons/split-button/_connected-l-corners.scss +15 -57
- package/src/lib/styles/components/all-buttons/split-button/_connected-m-corners.scss +15 -57
- package/src/lib/styles/components/all-buttons/split-button/_connected-s-corners.scss +15 -58
- package/src/lib/styles/components/all-buttons/split-button/_connected-xl-corners.scss +15 -57
- package/src/lib/styles/components/all-buttons/split-button/_connected-xs-corners.scss +15 -58
- package/src/lib/styles/components/all-buttons/split-button/_index.scss +16 -5
- package/src/lib/styles/components/all-buttons/utils/_connected-corners.scss +146 -0
- package/src/lib/styles/components/all-buttons/utils/_elevated-icon.scss +52 -0
- package/src/lib/styles/components/autocomplete/_index.scss +183 -0
- package/src/lib/styles/utils/mixins/_button-focus.scss +24 -0
- package/src/lib/styles/utils/mixins/_index.scss +1 -0
- package/src/styles/styles.css +2139 -323
- package/src/styles/styles.css.map +1 -1
- package/types/camaradesuk-m3e-angular.d.ts +560 -9
|
@@ -1,81 +1,5 @@
|
|
|
1
|
-
@use '
|
|
2
|
-
@use '../utils/functions' as button-functions;
|
|
3
|
-
@use '../../../utils/functions' as utils-functions;
|
|
4
|
-
@use '../common-selectors';
|
|
1
|
+
@use '../utils/connected-corners';
|
|
5
2
|
|
|
6
3
|
@mixin mat-exp-button-group-connected-xl-corners($host-selector) {
|
|
7
|
-
|
|
8
|
-
> :first-child {
|
|
9
|
-
@include mat.button-overrides(
|
|
10
|
-
button-functions.button-shape-tokens-raw(
|
|
11
|
-
utils-functions.rem(68) utils-functions.rem(20) utils-functions.rem(20)
|
|
12
|
-
utils-functions.rem(68)
|
|
13
|
-
)
|
|
14
|
-
);
|
|
15
|
-
@include mat.icon-button-overrides(
|
|
16
|
-
button-functions.icon-button-shape-tokens-raw(
|
|
17
|
-
utils-functions.rem(68) utils-functions.rem(20) utils-functions.rem(20)
|
|
18
|
-
utils-functions.rem(68)
|
|
19
|
-
)
|
|
20
|
-
);
|
|
21
|
-
&[data-appearance='outlined']:active {
|
|
22
|
-
@each $selector in common-selectors.$icon-button-only-ripple-selectors {
|
|
23
|
-
#{$selector} {
|
|
24
|
-
border-radius: inherit;
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
> :last-child {
|
|
31
|
-
@include mat.button-overrides(
|
|
32
|
-
button-functions.button-shape-tokens-raw(
|
|
33
|
-
utils-functions.rem(20) utils-functions.rem(68) utils-functions.rem(68)
|
|
34
|
-
utils-functions.rem(20)
|
|
35
|
-
)
|
|
36
|
-
);
|
|
37
|
-
@include mat.icon-button-overrides(
|
|
38
|
-
button-functions.icon-button-shape-tokens-raw(
|
|
39
|
-
utils-functions.rem(20) utils-functions.rem(68) utils-functions.rem(68)
|
|
40
|
-
utils-functions.rem(20)
|
|
41
|
-
)
|
|
42
|
-
);
|
|
43
|
-
&[data-appearance='outlined']:active {
|
|
44
|
-
@each $selector in common-selectors.$icon-button-only-ripple-selectors {
|
|
45
|
-
#{$selector} {
|
|
46
|
-
border-radius: inherit;
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
> .mat-exp-button:not(:first-child):not(:last-child):not([data-toggle='selected']),
|
|
53
|
-
> .mat-exp-icon-button:not(:first-child):not(:last-child):not([data-toggle='selected']) {
|
|
54
|
-
@include mat.button-overrides(
|
|
55
|
-
button-functions.button-shape-tokens-raw(utils-functions.rem(20))
|
|
56
|
-
);
|
|
57
|
-
@include mat.icon-button-overrides(
|
|
58
|
-
button-functions.icon-button-shape-tokens-raw(utils-functions.rem(20))
|
|
59
|
-
);
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
> .mat-exp-button[data-toggle='selected'],
|
|
63
|
-
> .mat-exp-icon-button[data-toggle='selected'] {
|
|
64
|
-
@include mat.button-overrides(
|
|
65
|
-
button-functions.button-shape-tokens-raw(utils-functions.rem(48))
|
|
66
|
-
);
|
|
67
|
-
@include mat.icon-button-overrides(
|
|
68
|
-
button-functions.icon-button-shape-tokens-raw(utils-functions.rem(48))
|
|
69
|
-
);
|
|
70
|
-
}
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
#{$host-selector}[data-variant='connected'][data-size='xl'][data-shape='square'] {
|
|
74
|
-
> :first-child:not([data-toggle='selected']),
|
|
75
|
-
> :last-child:not([data-toggle='selected']),
|
|
76
|
-
> * {
|
|
77
|
-
@include mat.button-overrides(button-functions.button-shape-tokens(20));
|
|
78
|
-
@include mat.icon-button-overrides(button-functions.icon-button-shape-tokens(20));
|
|
79
|
-
}
|
|
80
|
-
}
|
|
4
|
+
@include connected-corners.group($host-selector, 'xl', 136, 20, 16);
|
|
81
5
|
}
|
|
@@ -1,82 +1,5 @@
|
|
|
1
|
-
@use '
|
|
2
|
-
@use '../utils/functions' as button-functions;
|
|
3
|
-
@use '../../../utils/functions' as utils-functions;
|
|
4
|
-
@use '../common-selectors';
|
|
1
|
+
@use '../utils/connected-corners';
|
|
5
2
|
|
|
6
3
|
@mixin mat-exp-button-group-connected-xs-corners($host-selector) {
|
|
7
|
-
|
|
8
|
-
> :first-child {
|
|
9
|
-
@include mat.button-overrides(
|
|
10
|
-
button-functions.button-shape-tokens-raw(
|
|
11
|
-
utils-functions.rem(16) utils-functions.rem(4) utils-functions.rem(4)
|
|
12
|
-
utils-functions.rem(16)
|
|
13
|
-
)
|
|
14
|
-
);
|
|
15
|
-
@include mat.icon-button-overrides(
|
|
16
|
-
button-functions.icon-button-shape-tokens-raw(
|
|
17
|
-
utils-functions.rem(16) utils-functions.rem(4) utils-functions.rem(4)
|
|
18
|
-
utils-functions.rem(16)
|
|
19
|
-
)
|
|
20
|
-
);
|
|
21
|
-
|
|
22
|
-
&[data-appearance='outlined']:active {
|
|
23
|
-
@each $selector in common-selectors.$icon-button-only-ripple-selectors {
|
|
24
|
-
#{$selector} {
|
|
25
|
-
border-radius: inherit;
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
> :last-child {
|
|
32
|
-
@include mat.button-overrides(
|
|
33
|
-
button-functions.button-shape-tokens-raw(
|
|
34
|
-
utils-functions.rem(4) utils-functions.rem(16) utils-functions.rem(16)
|
|
35
|
-
utils-functions.rem(4)
|
|
36
|
-
)
|
|
37
|
-
);
|
|
38
|
-
@include mat.icon-button-overrides(
|
|
39
|
-
button-functions.icon-button-shape-tokens-raw(
|
|
40
|
-
utils-functions.rem(4) utils-functions.rem(16) utils-functions.rem(16)
|
|
41
|
-
utils-functions.rem(4)
|
|
42
|
-
)
|
|
43
|
-
);
|
|
44
|
-
|
|
45
|
-
&[data-appearance='outlined']:active {
|
|
46
|
-
@each $selector in common-selectors.$icon-button-only-ripple-selectors {
|
|
47
|
-
#{$selector} {
|
|
48
|
-
border-radius: inherit;
|
|
49
|
-
}
|
|
50
|
-
}
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
> .mat-exp-button:not(:first-child):not(:last-child):not([data-toggle='selected']),
|
|
55
|
-
> .mat-exp-icon-button:not(:first-child):not(:last-child):not([data-toggle='selected']) {
|
|
56
|
-
@include mat.button-overrides(
|
|
57
|
-
button-functions.button-shape-tokens-raw(utils-functions.rem(4))
|
|
58
|
-
);
|
|
59
|
-
@include mat.icon-button-overrides(
|
|
60
|
-
button-functions.icon-button-shape-tokens-raw(utils-functions.rem(4))
|
|
61
|
-
);
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
> .mat-exp-button[data-toggle='selected'],
|
|
65
|
-
> .mat-exp-icon-button[data-toggle='selected'] {
|
|
66
|
-
@include mat.button-overrides(
|
|
67
|
-
button-functions.button-shape-tokens-raw(utils-functions.rem(16))
|
|
68
|
-
);
|
|
69
|
-
@include mat.icon-button-overrides(
|
|
70
|
-
button-functions.icon-button-shape-tokens-raw(utils-functions.rem(16))
|
|
71
|
-
);
|
|
72
|
-
}
|
|
73
|
-
}
|
|
74
|
-
#{$host-selector}[data-variant='connected'][data-size='xs'][data-shape='square'] {
|
|
75
|
-
> :first-child:not([data-toggle='selected']),
|
|
76
|
-
> :last-child:not([data-toggle='selected']),
|
|
77
|
-
> * {
|
|
78
|
-
@include mat.button-overrides(button-functions.button-shape-tokens(4));
|
|
79
|
-
@include mat.icon-button-overrides(button-functions.icon-button-shape-tokens(4));
|
|
80
|
-
}
|
|
81
|
-
}
|
|
4
|
+
@include connected-corners.group($host-selector, 'xs', 32, 4, 4);
|
|
82
5
|
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
@use '../utils/elevated-icon';
|
|
1
2
|
@use './config';
|
|
2
3
|
@use './connected-xs-corners';
|
|
3
4
|
@use './connected-s-corners';
|
|
@@ -114,4 +115,9 @@ $_mat-exp-button-group-class: 'mat-exp-button-group';
|
|
|
114
115
|
$mat-exp-button-group-class
|
|
115
116
|
);
|
|
116
117
|
}
|
|
118
|
+
@include elevated-icon.styles(
|
|
119
|
+
"#{$mat-exp-button-group-class}[data-appearance='elevated'] > .mat-exp-icon-button",
|
|
120
|
+
$skip-html-element-styles,
|
|
121
|
+
true
|
|
122
|
+
);
|
|
117
123
|
}
|
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
@use '@angular/material' as mat;
|
|
2
|
+
@use 'sass:map';
|
|
3
|
+
@use '../../../utils/mixins';
|
|
4
|
+
@use 'sass:list';
|
|
5
|
+
@use '../common-selectors';
|
|
6
|
+
|
|
7
|
+
// Geometry is corroborated by Google's FAB/extended-FAB token sets (see
|
|
8
|
+
// docs/button-family/README.md). Material owns ripple, focus and native behavior.
|
|
9
|
+
@mixin mat-exp-fab-styles($options: ()) {
|
|
10
|
+
$skip-properties: map.get($options, skip-html-element-styles);
|
|
11
|
+
$sizes: map.get($options, sizes);
|
|
12
|
+
.mat-exp-fab {
|
|
13
|
+
@include mat.fab-overrides(
|
|
14
|
+
(
|
|
15
|
+
container-elevation-shadow: var(--mat-sys-level3),
|
|
16
|
+
hover-container-elevation-shadow: var(--mat-sys-level4),
|
|
17
|
+
focus-container-elevation-shadow: var(--mat-sys-level3),
|
|
18
|
+
pressed-container-elevation-shadow: var(--mat-sys-level3),
|
|
19
|
+
extended-container-elevation-shadow: var(--mat-sys-level3),
|
|
20
|
+
extended-hover-container-elevation-shadow: var(--mat-sys-level4),
|
|
21
|
+
extended-focus-container-elevation-shadow: var(--mat-sys-level3),
|
|
22
|
+
extended-pressed-container-elevation-shadow: var(--mat-sys-level3),
|
|
23
|
+
hover-state-layer-opacity: 0.08,
|
|
24
|
+
focus-state-layer-opacity: 0.1,
|
|
25
|
+
pressed-state-layer-opacity: 0.1,
|
|
26
|
+
)
|
|
27
|
+
);
|
|
28
|
+
}
|
|
29
|
+
@each $size, $height, $icon, $shape, $padding, $gap,
|
|
30
|
+
$type
|
|
31
|
+
in (
|
|
32
|
+
('s', 56px, 24px, var(--mat-sys-corner-large, 16px), 16px, 8px, title-medium),
|
|
33
|
+
('m', 80px, 28px, var(--mat-sys-corner-large-increased, 20px), 26px, 12px, title-large),
|
|
34
|
+
('l', 96px, 36px, var(--mat-sys-corner-extra-large, 28px), 28px, 16px, headline-small)
|
|
35
|
+
)
|
|
36
|
+
{
|
|
37
|
+
@if $sizes == null or list.index($sizes, $size) {
|
|
38
|
+
.mat-exp-fab[data-size='#{$size}'] {
|
|
39
|
+
&:not(.mat-exp-fab-menu-trigger) {
|
|
40
|
+
@include mat.fab-overrides(
|
|
41
|
+
(
|
|
42
|
+
container-shape: $shape,
|
|
43
|
+
extended-container-shape: $shape,
|
|
44
|
+
)
|
|
45
|
+
);
|
|
46
|
+
}
|
|
47
|
+
@include mat.fab-overrides(
|
|
48
|
+
(
|
|
49
|
+
extended-container-height: $height,
|
|
50
|
+
extended-label-text-font: var(--mat-sys-#{$type}-font),
|
|
51
|
+
extended-label-text-size: var(--mat-sys-#{$type}-size),
|
|
52
|
+
extended-label-text-weight: var(--mat-sys-#{$type}-weight),
|
|
53
|
+
extended-label-text-tracking: var(--mat-sys-#{$type}-tracking),
|
|
54
|
+
)
|
|
55
|
+
);
|
|
56
|
+
@if not $skip-properties {
|
|
57
|
+
width: $height;
|
|
58
|
+
height: $height;
|
|
59
|
+
|
|
60
|
+
> #{common-selectors.$button-icon-elements} {
|
|
61
|
+
width: $icon;
|
|
62
|
+
height: $icon;
|
|
63
|
+
font-size: $icon;
|
|
64
|
+
line-height: $icon;
|
|
65
|
+
flex-shrink: 0;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
&.mat-mdc-extended-fab {
|
|
69
|
+
width: auto;
|
|
70
|
+
min-width: $height;
|
|
71
|
+
padding-inline: $padding;
|
|
72
|
+
gap: $gap;
|
|
73
|
+
line-height: var(--mat-sys-#{$type}-line-height);
|
|
74
|
+
|
|
75
|
+
> #{common-selectors.$button-icon-elements} {
|
|
76
|
+
margin: 0;
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
@each $role
|
|
85
|
+
in (primary-container, secondary-container, tertiary-container, primary, secondary, tertiary)
|
|
86
|
+
{
|
|
87
|
+
.mat-exp-fab[data-fab-color='#{$role}']:not(.mat-exp-fab-menu-trigger) {
|
|
88
|
+
@include mat.fab-overrides(
|
|
89
|
+
(
|
|
90
|
+
container-color: var(--mat-sys-#{$role}),
|
|
91
|
+
foreground-color: var(--mat-sys-on-#{$role}),
|
|
92
|
+
state-layer-color: var(--mat-sys-on-#{$role}),
|
|
93
|
+
ripple-color: color-mix(in srgb, var(--mat-sys-on-#{$role}) 10%, transparent),
|
|
94
|
+
)
|
|
95
|
+
);
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
@if not $skip-properties {
|
|
100
|
+
@include mixins.button-focus('.mat-exp-fab.mat-mdc-fab-base');
|
|
101
|
+
@media (prefers-reduced-motion: reduce) {
|
|
102
|
+
.mat-exp-fab,
|
|
103
|
+
.mat-exp-fab > #{common-selectors.$button-icon-elements} {
|
|
104
|
+
transition: none !important;
|
|
105
|
+
animation: none !important;
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
}
|
|
@@ -14,7 +14,33 @@ $_mat-exp-icon-button-class: 'mat-exp-icon-button';
|
|
|
14
14
|
// mat-exp-icon-button-class: $_mat-exp-icon-button-class,
|
|
15
15
|
)
|
|
16
16
|
) {
|
|
17
|
+
.mat-exp-icon-button {
|
|
18
|
+
@include mat.icon-button-overrides(
|
|
19
|
+
(
|
|
20
|
+
hover-state-layer-opacity: 0.08,
|
|
21
|
+
focus-state-layer-opacity: 0.1,
|
|
22
|
+
pressed-state-layer-opacity: 0.1,
|
|
23
|
+
state-layer-color: currentColor,
|
|
24
|
+
ripple-color: color-mix(in srgb, currentColor 10%, transparent),
|
|
25
|
+
)
|
|
26
|
+
);
|
|
27
|
+
}
|
|
17
28
|
$skip-html-element-styles: map.get($options, skip-html-element-styles);
|
|
29
|
+
// Material snapshots the preference at initialization; keep live changes effective.
|
|
30
|
+
@if not $skip-html-element-styles {
|
|
31
|
+
.mat-exp-icon-button.mat-mdc-icon-button {
|
|
32
|
+
display: inline-flex;
|
|
33
|
+
align-items: center;
|
|
34
|
+
justify-content: center;
|
|
35
|
+
}
|
|
36
|
+
@include mixins.button-focus('.mat-exp-icon-button.mat-mdc-icon-button');
|
|
37
|
+
@media (prefers-reduced-motion: reduce) {
|
|
38
|
+
.mat-exp-icon-button {
|
|
39
|
+
transition: none !important;
|
|
40
|
+
animation: none !important;
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
}
|
|
18
44
|
// $mat-exp-icon-button-class: '.' + map.get($options, mat-exp-icon-button-class);
|
|
19
45
|
$mat-exp-icon-button-class: '.' + $_mat-exp-icon-button-class;
|
|
20
46
|
|
|
@@ -85,6 +111,9 @@ $_mat-exp-icon-button-class: 'mat-exp-icon-button';
|
|
|
85
111
|
@if map.has-key($item, state) {
|
|
86
112
|
$state: map.get($item, state);
|
|
87
113
|
$pseudo-selector: functions.get-state-pseudo($state);
|
|
114
|
+
@if $state == 'pressed' {
|
|
115
|
+
$pseudo-selector: ":is(:active, .mat-exp-menu-trigger[data-menu-open='true'])";
|
|
116
|
+
}
|
|
88
117
|
|
|
89
118
|
// Generate styles with data attribute selector
|
|
90
119
|
#{$selector}[data-state='#{$state}'] {
|
|
@@ -41,7 +41,7 @@ $config: (
|
|
|
41
41
|
size: 'xl',
|
|
42
42
|
shape: 'square',
|
|
43
43
|
toggle: 'selected',
|
|
44
|
-
tokens: tokens.$
|
|
44
|
+
tokens: tokens.$xl-shape-square-toggle-selected-tokens,
|
|
45
45
|
),
|
|
46
46
|
(
|
|
47
47
|
size: 'xl',
|
|
@@ -54,7 +54,7 @@ $config: (
|
|
|
54
54
|
size: 'xl',
|
|
55
55
|
shape: 'round',
|
|
56
56
|
toggle: 'selected',
|
|
57
|
-
tokens: tokens.$
|
|
57
|
+
tokens: tokens.$xl-shape-round-toggle-selected-tokens,
|
|
58
58
|
properties: tokens.$l-shape-round-toggle-selected-properties,
|
|
59
59
|
),
|
|
60
60
|
(
|
|
@@ -67,7 +67,7 @@ $shape-square-toggle-selected-tokens: button-functions.icon-button-shape-tokens(
|
|
|
67
67
|
|
|
68
68
|
$shape-square-toggle-selected-state-pressed-tokens: button-functions.icon-button-shape-tokens(16);
|
|
69
69
|
|
|
70
|
-
$shape-round-toggle-selected-tokens: button-functions.icon-button-shape-tokens(
|
|
70
|
+
$shape-round-toggle-selected-tokens: button-functions.icon-button-shape-tokens(28);
|
|
71
71
|
$shape-round-toggle-selected-properties: common-tokens.$icon-button-shapes-round-toggle-selected-properties;
|
|
72
72
|
|
|
73
73
|
$shape-round-toggle-selected-state-pressed-tokens: button-functions.icon-button-shape-tokens(16);
|
|
@@ -64,7 +64,7 @@ $shape-square-toggle-selected-tokens: button-functions.icon-button-shape-tokens(
|
|
|
64
64
|
|
|
65
65
|
$shape-square-toggle-selected-state-pressed-tokens: button-functions.icon-button-shape-tokens(12);
|
|
66
66
|
|
|
67
|
-
$shape-round-toggle-selected-tokens: button-functions.icon-button-shape-tokens(
|
|
67
|
+
$shape-round-toggle-selected-tokens: button-functions.icon-button-shape-tokens(16);
|
|
68
68
|
$shape-round-toggle-selected-properties: common-tokens.$icon-button-shapes-round-toggle-selected-properties;
|
|
69
69
|
|
|
70
70
|
$shape-round-toggle-selected-state-pressed-tokens: button-functions.icon-button-shape-tokens(12);
|
|
@@ -1,59 +1,17 @@
|
|
|
1
|
-
@use '
|
|
2
|
-
@use '../utils/functions' as button-functions;
|
|
3
|
-
@use '../../../utils/functions' as utils-functions;
|
|
4
|
-
@use '../common-selectors';
|
|
1
|
+
@use '../utils/connected-corners';
|
|
5
2
|
|
|
6
|
-
@mixin mat-exp-split-button-connected-l-corners($host-selector) {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
);
|
|
21
|
-
|
|
22
|
-
&[data-appearance='outlined']:active {
|
|
23
|
-
@each $selector in common-selectors.$icon-button-only-ripple-selectors {
|
|
24
|
-
#{$selector} {
|
|
25
|
-
border-radius: inherit;
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
> :last-child {
|
|
32
|
-
@include mat.button-overrides(
|
|
33
|
-
button-functions.button-shape-tokens-raw(
|
|
34
|
-
utils-functions.rem(8) utils-functions.rem(48) utils-functions.rem(48)
|
|
35
|
-
utils-functions.rem(8)
|
|
36
|
-
)
|
|
37
|
-
);
|
|
38
|
-
@include mat.icon-button-overrides(
|
|
39
|
-
button-functions.icon-button-shape-tokens-raw(
|
|
40
|
-
utils-functions.rem(8) utils-functions.rem(48) utils-functions.rem(48)
|
|
41
|
-
utils-functions.rem(8)
|
|
42
|
-
)
|
|
43
|
-
);
|
|
44
|
-
|
|
45
|
-
&[data-appearance='outlined']:active {
|
|
46
|
-
@each $selector in common-selectors.$icon-button-only-ripple-selectors {
|
|
47
|
-
#{$selector} {
|
|
48
|
-
border-radius: inherit;
|
|
49
|
-
}
|
|
50
|
-
}
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
> :last-child[data-menu-open='true'] {
|
|
55
|
-
@include mat.button-overrides(button-functions.button-shape-tokens(48));
|
|
56
|
-
@include mat.icon-button-overrides(button-functions.icon-button-shape-tokens(48));
|
|
57
|
-
}
|
|
58
|
-
}
|
|
3
|
+
@mixin mat-exp-split-button-connected-l-corners($host-selector, $skip-properties: false) {
|
|
4
|
+
@include connected-corners.split(
|
|
5
|
+
$host-selector,
|
|
6
|
+
'l',
|
|
7
|
+
96,
|
|
8
|
+
8,
|
|
9
|
+
20,
|
|
10
|
+
38,
|
|
11
|
+
96,
|
|
12
|
+
3,
|
|
13
|
+
48,
|
|
14
|
+
48,
|
|
15
|
+
$skip-properties
|
|
16
|
+
);
|
|
59
17
|
}
|
|
@@ -1,59 +1,17 @@
|
|
|
1
|
-
@use '
|
|
2
|
-
@use '../utils/functions' as button-functions;
|
|
3
|
-
@use '../../../utils/functions' as utils-functions;
|
|
4
|
-
@use '../common-selectors';
|
|
1
|
+
@use '../utils/connected-corners';
|
|
5
2
|
|
|
6
|
-
@mixin mat-exp-split-button-connected-m-corners($host-selector) {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
);
|
|
21
|
-
|
|
22
|
-
&[data-appearance='outlined']:active {
|
|
23
|
-
@each $selector in common-selectors.$icon-button-only-ripple-selectors {
|
|
24
|
-
#{$selector} {
|
|
25
|
-
border-radius: inherit;
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
> :last-child {
|
|
32
|
-
@include mat.button-overrides(
|
|
33
|
-
button-functions.button-shape-tokens-raw(
|
|
34
|
-
utils-functions.rem(4) utils-functions.rem(28) utils-functions.rem(28)
|
|
35
|
-
utils-functions.rem(4)
|
|
36
|
-
)
|
|
37
|
-
);
|
|
38
|
-
@include mat.icon-button-overrides(
|
|
39
|
-
button-functions.icon-button-shape-tokens-raw(
|
|
40
|
-
utils-functions.rem(4) utils-functions.rem(28) utils-functions.rem(28)
|
|
41
|
-
utils-functions.rem(4)
|
|
42
|
-
)
|
|
43
|
-
);
|
|
44
|
-
|
|
45
|
-
&[data-appearance='outlined']:active {
|
|
46
|
-
@each $selector in common-selectors.$icon-button-only-ripple-selectors {
|
|
47
|
-
#{$selector} {
|
|
48
|
-
border-radius: inherit;
|
|
49
|
-
}
|
|
50
|
-
}
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
> :last-child[data-menu-open='true'] {
|
|
55
|
-
@include mat.button-overrides(button-functions.button-shape-tokens(28));
|
|
56
|
-
@include mat.icon-button-overrides(button-functions.icon-button-shape-tokens(28));
|
|
57
|
-
}
|
|
58
|
-
}
|
|
3
|
+
@mixin mat-exp-split-button-connected-m-corners($host-selector, $skip-properties: false) {
|
|
4
|
+
@include connected-corners.split(
|
|
5
|
+
$host-selector,
|
|
6
|
+
'm',
|
|
7
|
+
56,
|
|
8
|
+
4,
|
|
9
|
+
12,
|
|
10
|
+
26,
|
|
11
|
+
56,
|
|
12
|
+
2,
|
|
13
|
+
24,
|
|
14
|
+
24,
|
|
15
|
+
$skip-properties
|
|
16
|
+
);
|
|
59
17
|
}
|
|
@@ -1,60 +1,17 @@
|
|
|
1
|
-
@use '
|
|
2
|
-
@use '../utils/functions' as button-functions;
|
|
3
|
-
@use '../../../utils/functions' as utils-functions;
|
|
4
|
-
@use 'sass:map';
|
|
5
|
-
@use '../common-selectors';
|
|
1
|
+
@use '../utils/connected-corners';
|
|
6
2
|
|
|
7
|
-
@mixin mat-exp-split-button-connected-s-corners($host-selector) {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
);
|
|
22
|
-
|
|
23
|
-
&[data-appearance='outlined']:active {
|
|
24
|
-
@each $selector in common-selectors.$icon-button-only-ripple-selectors {
|
|
25
|
-
#{$selector} {
|
|
26
|
-
border-radius: inherit;
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
> :last-child {
|
|
33
|
-
@include mat.button-overrides(
|
|
34
|
-
button-functions.button-shape-tokens-raw(
|
|
35
|
-
utils-functions.rem(4) utils-functions.rem(20) utils-functions.rem(20)
|
|
36
|
-
utils-functions.rem(4)
|
|
37
|
-
)
|
|
38
|
-
);
|
|
39
|
-
@include mat.icon-button-overrides(
|
|
40
|
-
button-functions.icon-button-shape-tokens-raw(
|
|
41
|
-
utils-functions.rem(4) utils-functions.rem(20) utils-functions.rem(20)
|
|
42
|
-
utils-functions.rem(4)
|
|
43
|
-
)
|
|
44
|
-
);
|
|
45
|
-
|
|
46
|
-
&[data-appearance='outlined']:active {
|
|
47
|
-
@each $selector in common-selectors.$icon-button-only-ripple-selectors {
|
|
48
|
-
#{$selector} {
|
|
49
|
-
border-radius: inherit;
|
|
50
|
-
}
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
> :last-child[data-menu-open='true'] {
|
|
56
|
-
@include mat.button-overrides(button-functions.button-shape-tokens(20));
|
|
57
|
-
@include mat.icon-button-overrides(button-functions.icon-button-shape-tokens(20));
|
|
58
|
-
}
|
|
59
|
-
}
|
|
3
|
+
@mixin mat-exp-split-button-connected-s-corners($host-selector, $skip-properties: false) {
|
|
4
|
+
@include connected-corners.split(
|
|
5
|
+
$host-selector,
|
|
6
|
+
's',
|
|
7
|
+
40,
|
|
8
|
+
4,
|
|
9
|
+
12,
|
|
10
|
+
22,
|
|
11
|
+
48,
|
|
12
|
+
1,
|
|
13
|
+
16,
|
|
14
|
+
12,
|
|
15
|
+
$skip-properties
|
|
16
|
+
);
|
|
60
17
|
}
|