@smitag/angular-shared-ui 19.2.22 → 20.0.0
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 +7 -6
- package/package.json +4 -4
- package/src/lib/styles/styles.scss +2 -3
package/README.md
CHANGED
|
@@ -4,8 +4,8 @@ This repository contains themes for [Angular Material](https://github.com/angula
|
|
|
4
4
|
|
|
5
5
|
## Requirements
|
|
6
6
|
|
|
7
|
-
* Angular >=
|
|
8
|
-
* Angular material >=
|
|
7
|
+
* Angular >= 20
|
|
8
|
+
* Angular material >= 20
|
|
9
9
|
|
|
10
10
|
## Installation
|
|
11
11
|
|
|
@@ -16,6 +16,7 @@ This repository contains themes for [Angular Material](https://github.com/angula
|
|
|
16
16
|
```scss
|
|
17
17
|
@use '@smitag/angular-shared-ui/src/lib/styles/styles';
|
|
18
18
|
@use '@smitag/angular-shared-ui/src/lib/styles/themes/default';
|
|
19
|
+
@use '@smitag/angular-shared-ui/src/lib/styles/components/layout'; // optional
|
|
19
20
|
```
|
|
20
21
|
## Applying the theme color
|
|
21
22
|
|
|
@@ -31,7 +32,7 @@ The system-level-colors generates a set of CSS classes based on color role that
|
|
|
31
32
|
* **Variant** – Roles ending with this term offer a lower emphasis alternative to its non-variant pair. For example, outline variant is a less emphasized version of the outline color.
|
|
32
33
|
* **Surface** – A role used for backgrounds and large, low-emphasis areas of the screen.
|
|
33
34
|
|
|
34
|
-
Name | background-color | color |
|
|
35
|
+
Name | background-color | color |
|
|
35
36
|
| --------------------------- | -------------------------- | ----------------------- |
|
|
36
37
|
| Primary | .primary | .on-primary |
|
|
37
38
|
| Primary fixed | - | .on-primary-fixed |
|
|
@@ -94,10 +95,10 @@ Material Design provides six levels of elevation that can be used to provide a s
|
|
|
94
95
|
These levels are defined as CSS box-shadow values that can be styled to an element.
|
|
95
96
|
|
|
96
97
|
| CSS class | Native Element |
|
|
97
|
-
| ------------ | --------------- |
|
|
98
|
-
| .level0 | none |
|
|
98
|
+
| ------------ | --------------- |
|
|
99
|
+
| .level0 | none |
|
|
99
100
|
| .level1 | .second-toolbar, .mat-mdc-card |
|
|
100
101
|
| .level2 | none |
|
|
101
|
-
| .level3 | .mat-mdc-mini-fab, .mat-mdc-fab |
|
|
102
|
+
| .level3 | .mat-mdc-mini-fab, .mat-mdc-fab |
|
|
102
103
|
| .level4 | none |
|
|
103
104
|
| .level5 | none |
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@smitag/angular-shared-ui",
|
|
3
3
|
"email": "benjamin.speidel@smartinsurtech.de",
|
|
4
|
-
"version": "
|
|
4
|
+
"version": "20.0.0",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"description": "Styling elements and methods shared by all frontends",
|
|
7
7
|
"man": "README.md",
|
|
@@ -16,11 +16,11 @@
|
|
|
16
16
|
"name": "Benjamin Speidel"
|
|
17
17
|
},
|
|
18
18
|
"peerDependencies": {
|
|
19
|
-
"@angular/material": ">=
|
|
19
|
+
"@angular/material": ">=20"
|
|
20
20
|
},
|
|
21
21
|
"devDependencies": {
|
|
22
|
-
"@angular/cdk": ">=
|
|
23
|
-
"@angular/material": ">=
|
|
22
|
+
"@angular/cdk": ">=20",
|
|
23
|
+
"@angular/material": ">=20"
|
|
24
24
|
},
|
|
25
25
|
"sideEffects": false
|
|
26
26
|
}
|
|
@@ -9,7 +9,6 @@
|
|
|
9
9
|
@use './components/dialog';
|
|
10
10
|
@use './components/drawer';
|
|
11
11
|
@use './fonts/typo';
|
|
12
|
-
@use './components/layout';
|
|
13
12
|
|
|
14
13
|
html,
|
|
15
14
|
body {
|
|
@@ -152,12 +151,12 @@ a:hover {
|
|
|
152
151
|
}
|
|
153
152
|
|
|
154
153
|
.mat-mdc-snack-bar-container.success {
|
|
155
|
-
--
|
|
154
|
+
--mat-snackbar-container-color: #058514;
|
|
156
155
|
color: #fff;
|
|
157
156
|
}
|
|
158
157
|
|
|
159
158
|
.mat-mdc-snack-bar-container.error {
|
|
160
|
-
--
|
|
159
|
+
--mat-snackbar-container-color: #cc0000;
|
|
161
160
|
color: white;
|
|
162
161
|
}
|
|
163
162
|
|