@firestitch/style 18.0.51 → 18.0.52

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@firestitch/style",
3
- "version": "18.0.51",
3
+ "version": "18.0.52",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/Firestitch/ngx-style"
@@ -1,7 +1,15 @@
1
1
  @use '../variables' as variables;
2
2
 
3
3
  @mixin material() {
4
+
5
+ $button-shape: 999px;
6
+ $button-height: 40px;
7
+ $button-horizontal-padding: 24px;
8
+
4
9
  :root {
10
+ /*
11
+ * < Angular 20
12
+ */
5
13
  --mat-app-on-background: #{variables.$body-color};
6
14
  --mat-sidenav-content-text-color: --mat-app-on-background;
7
15
  --mdc-dialog-supporting-text-color: --mat-app-on-background;
@@ -11,25 +19,41 @@
11
19
  --mdc-elevated-card-container-shape: 12px;
12
20
  --mdc-outlined-text-field-outline-color: rgb(127 127 127 / 38%);
13
21
 
22
+ /*
23
+ * Buttons < Angular 20
24
+ */
14
25
  --mat-text-button-touch-target-display: none;
15
- --mdc-text-button-container-shape: 999px;
26
+ --mdc-text-button-container-shape: $button-shape;
16
27
  --mat-text-button-horizontal-padding: 10px;
17
- --mdc-text-button-container-height: 40px;
28
+ --mdc-text-button-container-height: $button-height;
18
29
 
19
30
  --mat-protected-button-touch-target-display: none;
20
- --mdc-protected-button-container-shape: 999px;
21
- --mat-protected-button-horizontal-padding: 24px;
22
- --mdc-protected-button-container-height: 40px;
31
+ --mdc-protected-button-container-shape: $button-shape;
32
+ --mat-protected-button-horizontal-padding: $button-horizontal-padding;
33
+ --mdc-protected-button-container-height: $button-height;
23
34
 
24
35
  --mat-outlined-button-touch-target-display: none;
25
- --mdc-outlined-button-container-shape: 999px;
26
- --mat-outlined-button-horizontal-padding: 24px;
27
- --mdc-outlined-button-container-height: 40px;
36
+ --mdc-outlined-button-container-shape: $button-shape;
37
+ --mat-outlined-button-horizontal-padding: $button-horizontal-padding;
38
+ --mdc-outlined-button-container-height: $button-height;
28
39
 
29
40
  --mat-filled-button-touch-target-display: none;
30
- --mdc-filled-button-container-shape: 999px;
31
- --mat-filled-button-horizontal-padding: 24px;
32
- --mdc-filled-button-container-height: 40px;
41
+ --mdc-filled-button-container-shape: $button-shape;
42
+ --mat-filled-button-horizontal-padding: $button-horizontal-padding;
43
+ --mdc-filled-button-container-height: $button-height;
44
+
45
+
46
+ /*
47
+ * Buttons >= Angular 20
48
+ */
49
+ --mat-button-outlined-container-shape: $button-shape;
50
+ --mat-button-outlined-container-height: $button-height;
51
+ --mat-button-outlined-horizontal-padding: $button-horizontal-padding;
52
+
53
+ --mat-button-filled-container-shape: $button-shape;
54
+ --mat-button-filled-container-height: $button-height;
55
+ --mat-button-filled-horizontal-padding: $button-horizontal-padding;
56
+
33
57
 
34
58
  .mat-mdc-slide-toggle {
35
59
  --mat-switch-with-icon-handle-size: 20px;