@smitag/angular-shared-ui 19.2.10 → 19.2.12

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 CHANGED
@@ -82,3 +82,18 @@ The table below lists the CSS classes emitted and the native elements styled:
82
82
  | .mat-label-large | label-large | none |
83
83
  | .mat-label-medium | label-medium | none |
84
84
  | .mat-label-small | label-small | none |
85
+
86
+ ## Applying elevation
87
+
88
+ Material Design provides six levels of elevation that can be used to provide a sense of depth and organization to an application's UI. Learn more at Material Design's [Elevation](https://m3.material.io/styles/elevation/overview) guide.
89
+
90
+ These levels are defined as CSS box-shadow values that can be styled to an element.
91
+
92
+ | CSS class | Native Element |
93
+ | ------------ | --------------- |
94
+ | .level0 | none |
95
+ | .level1 | .second-toolbar, .mat-mdc-card |
96
+ | .level2 | none |
97
+ | .level3 | .mat-mdc-mini-fab, .mat-mdc-fab |
98
+ | .level4 | none |
99
+ | .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": "19.2.10",
4
+ "version": "19.2.12",
5
5
  "license": "MIT",
6
6
  "description": "Styling elements and methods shared by all frontends",
7
7
  "man": "README.md",
@@ -0,0 +1,24 @@
1
+ .level0 {
2
+ box-shadow: var(--mat-sys-level0) !important;
3
+ }
4
+
5
+ .level1 {
6
+ box-shadow: 0 1px 1px 0 rgba(60, 64, 67, 0.08),
7
+ 0 1px 3px 0 rgba(60, 64, 67, 0.16) !important;
8
+ }
9
+
10
+ .level2 {
11
+ box-shadow: var(--mat-sys-level2) !important;
12
+ }
13
+
14
+ .level3 {
15
+ box-shadow: var(--mat-sys-level3) !important;
16
+ }
17
+
18
+ .level4 {
19
+ box-shadow: var(--mat-sys-level4) !important;
20
+ }
21
+
22
+ .level5 {
23
+ box-shadow: var(--mat-sys-level5) !important;
24
+ }
@@ -2,6 +2,7 @@
2
2
  @use './components/header';
3
3
  @use './components/card';
4
4
  @use './components/colors';
5
+ @use './components/elevation';
5
6
  @use './components/form';
6
7
  @use './components/tab';
7
8
  @use './components/toolbar';
@@ -127,14 +128,6 @@ a:hover {
127
128
  text-decoration: underline;
128
129
  }
129
130
 
130
- .error {
131
- color: #cc0000;
132
- }
133
-
134
- .success {
135
- color: green;
136
- }
137
-
138
131
  .mat-mdc-snack-bar-container.success {
139
132
  --mdc-snackbar-container-color: #058514;
140
133
  color: #fff;
@@ -159,6 +159,7 @@ html {
159
159
  @include mat.all-component-themes($light-theme);
160
160
  @include mat.system-level-colors($light-theme);
161
161
  @include mat.system-level-typography($light-theme);
162
+ @include mat.system-level-elevation($light-theme);
162
163
  @include mat.typography-hierarchy($light-theme);
163
164
  @include helper.customComponents(
164
165
  mat.get-theme-color($light-theme, primary, 40),
@@ -159,6 +159,7 @@ html {
159
159
  @include mat.all-component-themes($light-theme);
160
160
  @include mat.system-level-colors($light-theme);
161
161
  @include mat.system-level-typography($light-theme);
162
+ @include mat.system-level-elevation($light-theme);
162
163
  @include mat.typography-hierarchy($light-theme);
163
164
  @include helper.customComponents(
164
165
  mat.get-theme-color($light-theme, primary, 40),