@camaradesuk/m3e-angular 0.2.0-alpha.1 → 0.2.0-alpha.10
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 +2733 -163
- 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/components/dialog/_index.scss +6 -1
- 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 +2142 -324
- package/src/styles/styles.css.map +1 -1
- package/types/camaradesuk-m3e-angular.d.ts +632 -15
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@camaradesuk/m3e-angular",
|
|
3
|
-
"version": "0.2.0-alpha.
|
|
3
|
+
"version": "0.2.0-alpha.10",
|
|
4
4
|
"description": "Angular Material Expressive is a library that provides a set of components and styles for Angular Material based on the latest Material Design 3 Expressive Design System.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"angular",
|
|
@@ -29,13 +29,14 @@
|
|
|
29
29
|
},
|
|
30
30
|
"homepage": "https://github.com/camaradesuk/m3e-angular",
|
|
31
31
|
"peerDependencies": {
|
|
32
|
-
"@angular/cdk": "^22.
|
|
32
|
+
"@angular/cdk": "^22.2.4",
|
|
33
33
|
"@angular/common": "^22.0.0",
|
|
34
34
|
"@angular/core": "^22.0.0",
|
|
35
35
|
"@angular/forms": "^22.0.0",
|
|
36
|
-
"@angular/material": "^22.
|
|
36
|
+
"@angular/material": "^22.2.4",
|
|
37
37
|
"gsap": "^3.13.0",
|
|
38
|
-
"rxjs": "^7.8.0"
|
|
38
|
+
"rxjs": "^7.8.0",
|
|
39
|
+
"@angular/aria": "^22.2.4"
|
|
39
40
|
},
|
|
40
41
|
"dependencies": {
|
|
41
42
|
"tslib": "^2.3.0"
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
@forward './components/all-buttons';
|
|
2
2
|
@forward './components/all-buttons/button/';
|
|
3
|
+
@forward './components/all-buttons/fab/';
|
|
3
4
|
@forward './components/all-buttons/icon-button/';
|
|
4
5
|
@forward './components/all-buttons/button-group/';
|
|
5
6
|
@forward './components/all-buttons/split-button/';
|
|
@@ -10,3 +11,4 @@
|
|
|
10
11
|
|
|
11
12
|
@forward './components/toolbars';
|
|
12
13
|
@forward './components/lists';
|
|
14
|
+
@forward './components/autocomplete';
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
@use './components/dialog';
|
|
3
3
|
@use './components/toolbars';
|
|
4
4
|
@use './components/lists';
|
|
5
|
+
@use './components/autocomplete';
|
|
5
6
|
|
|
6
7
|
@mixin mat-exp-all-styles(
|
|
7
8
|
$options: (
|
|
@@ -15,4 +16,5 @@
|
|
|
15
16
|
@include dialog.mat-exp-dialog-styles($options);
|
|
16
17
|
@include toolbars.mat-exp-toolbar-styles($options);
|
|
17
18
|
@include lists.mat-exp-list-styles($options);
|
|
19
|
+
@include autocomplete.mat-exp-autocomplete-styles();
|
|
18
20
|
}
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
+
$button-icon-elements: ':is(.mat-icon, .material-icons, .material-symbols-outlined, .material-symbols-rounded, .material-symbols-sharp, [matButtonIcon])';
|
|
1
2
|
$button-icon-selectors: (
|
|
2
|
-
'.mat-mdc-button
|
|
3
|
-
'.mat-mdc-unelevated-button
|
|
4
|
-
'.mat-mdc-raised-button
|
|
5
|
-
'.mat-mdc-outlined-button
|
|
6
|
-
'.mat-tonal-button
|
|
3
|
+
'.mat-mdc-button>#{$button-icon-elements}',
|
|
4
|
+
'.mat-mdc-unelevated-button>#{$button-icon-elements}',
|
|
5
|
+
'.mat-mdc-raised-button>#{$button-icon-elements}',
|
|
6
|
+
'.mat-mdc-outlined-button>#{$button-icon-elements}',
|
|
7
|
+
'.mat-tonal-button>#{$button-icon-elements}'
|
|
7
8
|
);
|
|
8
9
|
$button-shape-selectors: (
|
|
9
10
|
'.mdc-button',
|
|
@@ -11,7 +12,7 @@ $button-shape-selectors: (
|
|
|
11
12
|
'.mat-mdc-raised-button .mdc-button__ripple'
|
|
12
13
|
);
|
|
13
14
|
$button-line-height-selectors: ('.mdc-button');
|
|
14
|
-
$icon-button-icon-selectors: ('.mat-mdc-icon-button
|
|
15
|
+
$icon-button-icon-selectors: ('.mat-mdc-icon-button #{$button-icon-elements}');
|
|
15
16
|
$icon-button-shape-selectors: ('.mat-mdc-icon-button');
|
|
16
17
|
$icon-button-appearance-selectors: ('.mat-mdc-icon-button');
|
|
17
18
|
$icon-button-width-selectors: ('.mat-mdc-icon-button');
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
@use './config';
|
|
2
|
+
@use '../fab';
|
|
2
3
|
@use '../../../utils/functions';
|
|
3
4
|
@use '../../../utils/mixins';
|
|
4
5
|
@use '@angular/material' as mat;
|
|
@@ -13,7 +14,18 @@ $_mat-exp-button-class: 'mat-exp-button';
|
|
|
13
14
|
// mat-exp-button-class: $_mat-exp-button-class,
|
|
14
15
|
)
|
|
15
16
|
) {
|
|
17
|
+
@include fab.mat-exp-fab-styles($options);
|
|
16
18
|
$skip-html-element-styles: map.get($options, skip-html-element-styles);
|
|
19
|
+
// Material snapshots the preference at initialization; keep live changes effective.
|
|
20
|
+
@if not $skip-html-element-styles {
|
|
21
|
+
@include mixins.button-focus('.mat-exp-button.mat-mdc-button-base');
|
|
22
|
+
@media (prefers-reduced-motion: reduce) {
|
|
23
|
+
.mat-exp-button {
|
|
24
|
+
transition: none !important;
|
|
25
|
+
animation: none !important;
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
}
|
|
17
29
|
// $mat-exp-button-class: '.' + map.get($options, mat-exp-button-class);
|
|
18
30
|
$mat-exp-button-class: '.' + $_mat-exp-button-class;
|
|
19
31
|
|
|
@@ -70,6 +82,9 @@ $_mat-exp-button-class: 'mat-exp-button';
|
|
|
70
82
|
@if map.has-key($item, state) {
|
|
71
83
|
$state: map.get($item, state);
|
|
72
84
|
$pseudo-selector: functions.get-state-pseudo($state);
|
|
85
|
+
@if $state == 'pressed' {
|
|
86
|
+
$pseudo-selector: ":is(:active, .mat-exp-menu-trigger[data-menu-open='true'])";
|
|
87
|
+
}
|
|
73
88
|
|
|
74
89
|
// Generate styles with data attribute selector
|
|
75
90
|
#{$selector}[data-state='#{$state}'] {
|
|
@@ -19,6 +19,24 @@ $button-common-tokens: (
|
|
|
19
19
|
outlined-outline-color: var(--mat-sys-outline-variant),
|
|
20
20
|
);
|
|
21
21
|
|
|
22
|
+
@each $appearance in (filled, protected, tonal, outlined, text) {
|
|
23
|
+
$button-common-tokens: map.merge(
|
|
24
|
+
$button-common-tokens,
|
|
25
|
+
(
|
|
26
|
+
#{$appearance}-hover-state-layer-opacity: 0.08,
|
|
27
|
+
#{$appearance}-focus-state-layer-opacity: 0.1,
|
|
28
|
+
#{$appearance}-pressed-state-layer-opacity: 0.1,
|
|
29
|
+
#{$appearance}-ripple-color: color-mix(in srgb, currentColor 10%, transparent)
|
|
30
|
+
)
|
|
31
|
+
);
|
|
32
|
+
}
|
|
33
|
+
$button-common-tokens: map.merge(
|
|
34
|
+
$button-common-tokens,
|
|
35
|
+
(
|
|
36
|
+
tonal-disabled-container-color: color-mix(in srgb, var(--mat-sys-on-surface) 10%, transparent),
|
|
37
|
+
)
|
|
38
|
+
);
|
|
39
|
+
|
|
22
40
|
$button-common-properties: (
|
|
23
41
|
// #region Disabled state for text button
|
|
24
42
|
'.mat-mdc-button[disabled]': (
|
|
@@ -44,6 +44,7 @@ $tokens: map.merge(
|
|
|
44
44
|
outlined-icon-spacing: functions.rem(12),
|
|
45
45
|
text-container-height: functions.rem(96),
|
|
46
46
|
text-horizontal-padding: functions.rem(48),
|
|
47
|
+
text-with-icon-horizontal-padding: functions.rem(48),
|
|
47
48
|
text-label-text-tracking: var(--mat-sys-headline-small-tracking),
|
|
48
49
|
text-label-text-font: var(--mat-sys-headline-small-font),
|
|
49
50
|
text-label-text-size: var(--mat-sys-headline-small-size),
|
|
@@ -60,6 +61,30 @@ $properties: map.deep-merge(
|
|
|
60
61
|
);
|
|
61
62
|
@each $selector in common-selectors.$button-icon-selectors {
|
|
62
63
|
$properties: map.set($properties, $selector, button-functions.icon-size(32));
|
|
64
|
+
$properties: map.set(
|
|
65
|
+
$properties,
|
|
66
|
+
$selector + ':not([iconPositionEnd])',
|
|
67
|
+
(
|
|
68
|
+
margin-inline-start: (
|
|
69
|
+
value: 0,
|
|
70
|
+
),
|
|
71
|
+
margin-inline-end: (
|
|
72
|
+
value: functions.rem(12),
|
|
73
|
+
),
|
|
74
|
+
)
|
|
75
|
+
);
|
|
76
|
+
$properties: map.set(
|
|
77
|
+
$properties,
|
|
78
|
+
$selector + '[iconPositionEnd]',
|
|
79
|
+
(
|
|
80
|
+
margin-inline-start: (
|
|
81
|
+
value: functions.rem(12),
|
|
82
|
+
),
|
|
83
|
+
margin-inline-end: (
|
|
84
|
+
value: 0,
|
|
85
|
+
),
|
|
86
|
+
)
|
|
87
|
+
);
|
|
63
88
|
}
|
|
64
89
|
$state-pressed-tokens: button-functions.button-shape-tokens(16);
|
|
65
90
|
|
|
@@ -44,6 +44,7 @@ $tokens: map.merge(
|
|
|
44
44
|
outlined-icon-spacing: functions.rem(8),
|
|
45
45
|
text-container-height: functions.rem(56),
|
|
46
46
|
text-horizontal-padding: functions.rem(24),
|
|
47
|
+
text-with-icon-horizontal-padding: functions.rem(24),
|
|
47
48
|
text-label-text-tracking: var(--mat-sys-title-medium-tracking),
|
|
48
49
|
text-label-text-font: var(--mat-sys-title-medium-font),
|
|
49
50
|
text-label-text-size: var(--mat-sys-title-medium-size),
|
|
@@ -60,6 +61,30 @@ $properties: map.deep-merge(
|
|
|
60
61
|
);
|
|
61
62
|
@each $selector in common-selectors.$button-icon-selectors {
|
|
62
63
|
$properties: map.set($properties, $selector, button-functions.icon-size(24));
|
|
64
|
+
$properties: map.set(
|
|
65
|
+
$properties,
|
|
66
|
+
$selector + ':not([iconPositionEnd])',
|
|
67
|
+
(
|
|
68
|
+
margin-inline-start: (
|
|
69
|
+
value: 0,
|
|
70
|
+
),
|
|
71
|
+
margin-inline-end: (
|
|
72
|
+
value: functions.rem(8),
|
|
73
|
+
),
|
|
74
|
+
)
|
|
75
|
+
);
|
|
76
|
+
$properties: map.set(
|
|
77
|
+
$properties,
|
|
78
|
+
$selector + '[iconPositionEnd]',
|
|
79
|
+
(
|
|
80
|
+
margin-inline-start: (
|
|
81
|
+
value: functions.rem(8),
|
|
82
|
+
),
|
|
83
|
+
margin-inline-end: (
|
|
84
|
+
value: 0,
|
|
85
|
+
),
|
|
86
|
+
)
|
|
87
|
+
);
|
|
63
88
|
}
|
|
64
89
|
$state-pressed-tokens: button-functions.button-shape-tokens(12);
|
|
65
90
|
|
|
@@ -44,6 +44,7 @@ $tokens: map.merge(
|
|
|
44
44
|
outlined-icon-spacing: functions.rem(8),
|
|
45
45
|
text-container-height: functions.rem(40),
|
|
46
46
|
text-horizontal-padding: functions.rem(16),
|
|
47
|
+
text-with-icon-horizontal-padding: functions.rem(16),
|
|
47
48
|
text-label-text-tracking: var(--mat-sys-label-large-tracking),
|
|
48
49
|
text-label-text-font: var(--mat-sys-label-large-font),
|
|
49
50
|
text-label-text-size: var(--mat-sys-label-large-size),
|
|
@@ -60,6 +61,30 @@ $properties: map.deep-merge(
|
|
|
60
61
|
);
|
|
61
62
|
@each $selector in common-selectors.$button-icon-selectors {
|
|
62
63
|
$properties: map.set($properties, $selector, button-functions.icon-size(20));
|
|
64
|
+
$properties: map.set(
|
|
65
|
+
$properties,
|
|
66
|
+
$selector + ':not([iconPositionEnd])',
|
|
67
|
+
(
|
|
68
|
+
margin-inline-start: (
|
|
69
|
+
value: 0,
|
|
70
|
+
),
|
|
71
|
+
margin-inline-end: (
|
|
72
|
+
value: functions.rem(8),
|
|
73
|
+
),
|
|
74
|
+
)
|
|
75
|
+
);
|
|
76
|
+
$properties: map.set(
|
|
77
|
+
$properties,
|
|
78
|
+
$selector + '[iconPositionEnd]',
|
|
79
|
+
(
|
|
80
|
+
margin-inline-start: (
|
|
81
|
+
value: functions.rem(8),
|
|
82
|
+
),
|
|
83
|
+
margin-inline-end: (
|
|
84
|
+
value: 0,
|
|
85
|
+
),
|
|
86
|
+
)
|
|
87
|
+
);
|
|
63
88
|
}
|
|
64
89
|
$state-pressed-tokens: button-functions.button-shape-tokens(8);
|
|
65
90
|
|
|
@@ -44,6 +44,7 @@ $tokens: map.merge(
|
|
|
44
44
|
outlined-icon-spacing: functions.rem(16),
|
|
45
45
|
text-container-height: functions.rem(136),
|
|
46
46
|
text-horizontal-padding: functions.rem(64),
|
|
47
|
+
text-with-icon-horizontal-padding: functions.rem(64),
|
|
47
48
|
text-label-text-tracking: var(--mat-sys-headline-large-tracking),
|
|
48
49
|
text-label-text-font: var(--mat-sys-headline-large-font),
|
|
49
50
|
text-label-text-size: var(--mat-sys-headline-large-size),
|
|
@@ -60,6 +61,30 @@ $properties: map.deep-merge(
|
|
|
60
61
|
);
|
|
61
62
|
@each $selector in common-selectors.$button-icon-selectors {
|
|
62
63
|
$properties: map.set($properties, $selector, button-functions.icon-size(40));
|
|
64
|
+
$properties: map.set(
|
|
65
|
+
$properties,
|
|
66
|
+
$selector + ':not([iconPositionEnd])',
|
|
67
|
+
(
|
|
68
|
+
margin-inline-start: (
|
|
69
|
+
value: 0,
|
|
70
|
+
),
|
|
71
|
+
margin-inline-end: (
|
|
72
|
+
value: functions.rem(16),
|
|
73
|
+
),
|
|
74
|
+
)
|
|
75
|
+
);
|
|
76
|
+
$properties: map.set(
|
|
77
|
+
$properties,
|
|
78
|
+
$selector + '[iconPositionEnd]',
|
|
79
|
+
(
|
|
80
|
+
margin-inline-start: (
|
|
81
|
+
value: functions.rem(16),
|
|
82
|
+
),
|
|
83
|
+
margin-inline-end: (
|
|
84
|
+
value: 0,
|
|
85
|
+
),
|
|
86
|
+
)
|
|
87
|
+
);
|
|
63
88
|
}
|
|
64
89
|
$state-pressed-tokens: button-functions.button-shape-tokens(16);
|
|
65
90
|
|
|
@@ -16,7 +16,7 @@ $tokens: map.merge(
|
|
|
16
16
|
tonal-label-text-size: var(--mat-sys-label-large-size),
|
|
17
17
|
tonal-label-text-weight: var(--mat-sys-label-large-weight),
|
|
18
18
|
tonal-icon-offset: 0,
|
|
19
|
-
tonal-icon-spacing: functions.rem(
|
|
19
|
+
tonal-icon-spacing: functions.rem(4),
|
|
20
20
|
protected-container-height: functions.rem(32),
|
|
21
21
|
protected-horizontal-padding: functions.rem(12),
|
|
22
22
|
protected-label-text-tracking: var(--mat-sys-label-large-tracking),
|
|
@@ -24,7 +24,7 @@ $tokens: map.merge(
|
|
|
24
24
|
protected-label-text-size: var(--mat-sys-label-large-size),
|
|
25
25
|
protected-label-text-weight: var(--mat-sys-label-large-weight),
|
|
26
26
|
protected-icon-offset: 0,
|
|
27
|
-
protected-icon-spacing: functions.rem(
|
|
27
|
+
protected-icon-spacing: functions.rem(4),
|
|
28
28
|
filled-container-height: functions.rem(32),
|
|
29
29
|
filled-horizontal-padding: functions.rem(12),
|
|
30
30
|
filled-label-text-tracking: var(--mat-sys-label-large-tracking),
|
|
@@ -32,7 +32,7 @@ $tokens: map.merge(
|
|
|
32
32
|
filled-label-text-size: var(--mat-sys-label-large-size),
|
|
33
33
|
filled-label-text-weight: var(--mat-sys-label-large-weight),
|
|
34
34
|
filled-icon-offset: 0,
|
|
35
|
-
filled-icon-spacing: functions.rem(
|
|
35
|
+
filled-icon-spacing: functions.rem(4),
|
|
36
36
|
outlined-container-height: functions.rem(32),
|
|
37
37
|
outlined-horizontal-padding: functions.rem(12),
|
|
38
38
|
outlined-label-text-tracking: var(--mat-sys-label-large-tracking),
|
|
@@ -41,15 +41,16 @@ $tokens: map.merge(
|
|
|
41
41
|
outlined-label-text-weight: var(--mat-sys-label-large-weight),
|
|
42
42
|
outlined-outline-width: functions.rem(1),
|
|
43
43
|
outlined-icon-offset: 0,
|
|
44
|
-
outlined-icon-spacing: functions.rem(
|
|
44
|
+
outlined-icon-spacing: functions.rem(4),
|
|
45
45
|
text-container-height: functions.rem(32),
|
|
46
46
|
text-horizontal-padding: functions.rem(12),
|
|
47
|
+
text-with-icon-horizontal-padding: functions.rem(12),
|
|
47
48
|
text-label-text-tracking: var(--mat-sys-label-large-tracking),
|
|
48
49
|
text-label-text-font: var(--mat-sys-label-large-font),
|
|
49
50
|
text-label-text-size: var(--mat-sys-label-large-size),
|
|
50
51
|
text-label-text-weight: var(--mat-sys-label-large-weight),
|
|
51
52
|
text-icon-offset: 0,
|
|
52
|
-
text-icon-spacing: functions.rem(
|
|
53
|
+
text-icon-spacing: functions.rem(4),
|
|
53
54
|
)
|
|
54
55
|
),
|
|
55
56
|
button-functions.button-shape-tokens(16)
|
|
@@ -60,6 +61,30 @@ $properties: map.deep-merge(
|
|
|
60
61
|
);
|
|
61
62
|
@each $selector in common-selectors.$button-icon-selectors {
|
|
62
63
|
$properties: map.set($properties, $selector, button-functions.icon-size(20));
|
|
64
|
+
$properties: map.set(
|
|
65
|
+
$properties,
|
|
66
|
+
$selector + ':not([iconPositionEnd])',
|
|
67
|
+
(
|
|
68
|
+
margin-inline-start: (
|
|
69
|
+
value: 0,
|
|
70
|
+
),
|
|
71
|
+
margin-inline-end: (
|
|
72
|
+
value: functions.rem(4),
|
|
73
|
+
),
|
|
74
|
+
)
|
|
75
|
+
);
|
|
76
|
+
$properties: map.set(
|
|
77
|
+
$properties,
|
|
78
|
+
$selector + '[iconPositionEnd]',
|
|
79
|
+
(
|
|
80
|
+
margin-inline-start: (
|
|
81
|
+
value: functions.rem(4),
|
|
82
|
+
),
|
|
83
|
+
margin-inline-end: (
|
|
84
|
+
value: 0,
|
|
85
|
+
),
|
|
86
|
+
)
|
|
87
|
+
);
|
|
63
88
|
}
|
|
64
89
|
$state-pressed-tokens: button-functions.button-shape-tokens(8);
|
|
65
90
|
|
|
@@ -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-l-corners($host-selector) {
|
|
7
|
-
|
|
8
|
-
> :first-child {
|
|
9
|
-
@include mat.button-overrides(
|
|
10
|
-
button-functions.button-shape-tokens-raw(
|
|
11
|
-
utils-functions.rem(48) utils-functions.rem(16) utils-functions.rem(16)
|
|
12
|
-
utils-functions.rem(48)
|
|
13
|
-
)
|
|
14
|
-
);
|
|
15
|
-
@include mat.icon-button-overrides(
|
|
16
|
-
button-functions.icon-button-shape-tokens-raw(
|
|
17
|
-
utils-functions.rem(48) utils-functions.rem(16) utils-functions.rem(16)
|
|
18
|
-
utils-functions.rem(48)
|
|
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(16) utils-functions.rem(48) utils-functions.rem(48)
|
|
34
|
-
utils-functions.rem(16)
|
|
35
|
-
)
|
|
36
|
-
);
|
|
37
|
-
@include mat.icon-button-overrides(
|
|
38
|
-
button-functions.icon-button-shape-tokens-raw(
|
|
39
|
-
utils-functions.rem(16) utils-functions.rem(48) utils-functions.rem(48)
|
|
40
|
-
utils-functions.rem(16)
|
|
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(16))
|
|
56
|
-
);
|
|
57
|
-
@include mat.icon-button-overrides(
|
|
58
|
-
button-functions.icon-button-shape-tokens-raw(utils-functions.rem(16))
|
|
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='l'][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(16));
|
|
78
|
-
@include mat.icon-button-overrides(button-functions.icon-button-shape-tokens(16));
|
|
79
|
-
}
|
|
80
|
-
}
|
|
4
|
+
@include connected-corners.group($host-selector, 'l', 96, 16, 12);
|
|
81
5
|
}
|
|
@@ -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-m-corners($host-selector) {
|
|
7
|
-
|
|
8
|
-
> :first-child {
|
|
9
|
-
@include mat.button-overrides(
|
|
10
|
-
button-functions.button-shape-tokens-raw(
|
|
11
|
-
utils-functions.rem(28) utils-functions.rem(8) utils-functions.rem(8)
|
|
12
|
-
utils-functions.rem(28)
|
|
13
|
-
)
|
|
14
|
-
);
|
|
15
|
-
@include mat.icon-button-overrides(
|
|
16
|
-
button-functions.icon-button-shape-tokens-raw(
|
|
17
|
-
utils-functions.rem(28) utils-functions.rem(8) utils-functions.rem(8)
|
|
18
|
-
utils-functions.rem(28)
|
|
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(8) utils-functions.rem(28) utils-functions.rem(28)
|
|
34
|
-
utils-functions.rem(8)
|
|
35
|
-
)
|
|
36
|
-
);
|
|
37
|
-
@include mat.icon-button-overrides(
|
|
38
|
-
button-functions.icon-button-shape-tokens-raw(
|
|
39
|
-
utils-functions.rem(8) utils-functions.rem(28) utils-functions.rem(28)
|
|
40
|
-
utils-functions.rem(8)
|
|
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(8))
|
|
56
|
-
);
|
|
57
|
-
@include mat.icon-button-overrides(
|
|
58
|
-
button-functions.icon-button-shape-tokens-raw(utils-functions.rem(8))
|
|
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(28))
|
|
66
|
-
);
|
|
67
|
-
@include mat.icon-button-overrides(
|
|
68
|
-
button-functions.icon-button-shape-tokens-raw(utils-functions.rem(28))
|
|
69
|
-
);
|
|
70
|
-
}
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
#{$host-selector}[data-variant='connected'][data-size='m'][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(8));
|
|
78
|
-
@include mat.icon-button-overrides(button-functions.icon-button-shape-tokens(8));
|
|
79
|
-
}
|
|
80
|
-
}
|
|
4
|
+
@include connected-corners.group($host-selector, 'm', 56, 8, 4);
|
|
81
5
|
}
|
|
@@ -1,83 +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-s-corners($host-selector) {
|
|
7
|
-
|
|
8
|
-
> :first-child {
|
|
9
|
-
@include mat.button-overrides(
|
|
10
|
-
button-functions.button-shape-tokens-raw(
|
|
11
|
-
utils-functions.rem(20) utils-functions.rem(8) utils-functions.rem(8)
|
|
12
|
-
utils-functions.rem(20)
|
|
13
|
-
)
|
|
14
|
-
);
|
|
15
|
-
@include mat.icon-button-overrides(
|
|
16
|
-
button-functions.icon-button-shape-tokens-raw(
|
|
17
|
-
utils-functions.rem(20) utils-functions.rem(8) utils-functions.rem(8)
|
|
18
|
-
utils-functions.rem(20)
|
|
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(20) utils-functions.rem(20)
|
|
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(20) utils-functions.rem(20)
|
|
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
|
-
> .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(8))
|
|
58
|
-
);
|
|
59
|
-
@include mat.icon-button-overrides(
|
|
60
|
-
button-functions.icon-button-shape-tokens-raw(utils-functions.rem(8))
|
|
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(20))
|
|
68
|
-
);
|
|
69
|
-
@include mat.icon-button-overrides(
|
|
70
|
-
button-functions.icon-button-shape-tokens-raw(utils-functions.rem(20))
|
|
71
|
-
);
|
|
72
|
-
}
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
#{$host-selector}[data-variant='connected'][data-size='s'][data-shape='square'] {
|
|
76
|
-
> :first-child:not([data-toggle='selected']),
|
|
77
|
-
> :last-child:not([data-toggle='selected']),
|
|
78
|
-
> * {
|
|
79
|
-
@include mat.button-overrides(button-functions.button-shape-tokens(8));
|
|
80
|
-
@include mat.icon-button-overrides(button-functions.icon-button-shape-tokens(8));
|
|
81
|
-
}
|
|
82
|
-
}
|
|
4
|
+
@include connected-corners.group($host-selector, 's', 40, 8, 4);
|
|
83
5
|
}
|