@onemrvapublic/design-system-theme 20.6.3-develop.4 → 20.7.0-develop.2

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.
@@ -3,9 +3,9 @@ import { NgModule } from '@angular/core';
3
3
  import { MAT_FORM_FIELD_DEFAULT_OPTIONS } from '@angular/material/form-field';
4
4
 
5
5
  class OnemrvaThemeModule {
6
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.7", ngImport: i0, type: OnemrvaThemeModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
7
- static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.1.7", ngImport: i0, type: OnemrvaThemeModule }); }
8
- static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.1.7", ngImport: i0, type: OnemrvaThemeModule, providers: [
6
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.4", ngImport: i0, type: OnemrvaThemeModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
7
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.3.4", ngImport: i0, type: OnemrvaThemeModule }); }
8
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.3.4", ngImport: i0, type: OnemrvaThemeModule, providers: [
9
9
  {
10
10
  provide: MAT_FORM_FIELD_DEFAULT_OPTIONS,
11
11
  useValue: {
@@ -15,7 +15,7 @@ class OnemrvaThemeModule {
15
15
  },
16
16
  ] }); }
17
17
  }
18
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.7", ngImport: i0, type: OnemrvaThemeModule, decorators: [{
18
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.4", ngImport: i0, type: OnemrvaThemeModule, decorators: [{
19
19
  type: NgModule,
20
20
  args: [{
21
21
  providers: [
package/index.scss CHANGED
@@ -27,10 +27,6 @@
27
27
  @forward './overrides/sidenav' as sidenav-*;
28
28
  @forward './overrides/fab' as fab-*;
29
29
 
30
- @forward './utilities/variables' show $onemrva-theme;
31
- @forward './utilities/variables' show $breakpoints;
32
- @forward './utilities/variables' show $onemrva-accent-gradient;
33
-
34
30
  @forward './utilities/spacing' show spacing;
35
31
  @forward './utilities/grid' show grid;
36
32
  @forward './utilities/utilities' show utilities;
@@ -17,25 +17,39 @@
17
17
  filled-horizontal-padding: var(--double-spacer),
18
18
  filled-container-height: 2.25rem,
19
19
  filled-label-text-color: var(--on-background-gradient),
20
+ protected-focus-container-elevation-shadow: -4px -4px 5px 0px
21
+ rgba(200, 200, 200, 0.5),
22
+ protected-hover-container-elevation-shadow: -4px -4px 5px 0px
23
+ rgba(200, 200, 200, 0.5),
24
+ protected-container-shape: square,
25
+ protected-label-text-color: green,
20
26
  )
21
27
  );
22
- button.mdc-button {
28
+ .mdc-button,
29
+ .mdc-icon-button {
23
30
  // transition: all 1s ease; // has issues with WAVE when used in dialod, should be removed ?
24
31
 
25
32
  &:focus-visible:not(:active) {
26
33
  &:not(.mat-mdc-outlined-button) {
27
- @include nsOutline(-1px);
34
+ --shift: -1px;
28
35
  }
29
-
30
36
  &.mat-mdc-outlined-button {
31
- @include nsOutline(-3px);
37
+ --shift: -3px;
32
38
 
33
39
  &.small {
34
- @include nsOutline(-2px);
40
+ --shift: -2px;
35
41
  }
36
42
  }
37
43
  &:after {
38
44
  outline: 5px solid var(--mat-sys-primary-fixed-dim);
45
+ position: absolute;
46
+ content: '';
47
+ top: var(--shift);
48
+ left: var(--shift);
49
+ right: var(--shift);
50
+ bottom: var(--shift);
51
+ border: 1px solid transparent;
52
+ border-radius: 500px;
39
53
  }
40
54
  }
41
55
  &.mat-mdc-unelevated-button:not(:disabled) {
@@ -113,16 +127,3 @@
113
127
  }
114
128
  }
115
129
  }
116
-
117
- @mixin nsOutline($shift) {
118
- &:after {
119
- position: absolute;
120
- content: '';
121
- top: $shift;
122
- left: $shift;
123
- right: $shift;
124
- bottom: $shift;
125
- border: 1px solid transparent;
126
- border-radius: 500px;
127
- }
128
- }
@@ -15,6 +15,7 @@
15
15
  outlined-outline-width: 1px,
16
16
  outlined-focus-outline-width: 2px,
17
17
  outlined-label-text-weight: var(--mat-sys-label-small-weight),
18
+ outlined-input-text-placeholder-color: var(--mat-sys-outline),
18
19
  )
19
20
  );
20
21
 
@@ -2,15 +2,6 @@
2
2
  @use '../utilities/variables' as variables;
3
3
 
4
4
  @mixin override() {
5
- --mat-menu-container-color: var(--mat-sys-surface);
6
- --mat-menu-item-with-icon-leading-spacing: 8px;
7
- --mat-menu-item-with-icon-trailing-spacing: 8px;
8
- --mat-menu-item-label-text-font: Source Sans Pro;
9
-
10
- .mat-mdc-menu-item {
11
- min-height: var(--quad-spacer);
12
- }
13
-
14
5
  button {
15
6
  &.mdc-icon-button {
16
7
  &.small {
@@ -28,21 +19,6 @@
28
19
  .mat-mdc-button-persistent-ripple::before {
29
20
  --mat-icon-button-state-layer-color: var(--mat-sys-surface);
30
21
  }
31
-
32
- &:hover {
33
- box-shadow: 0 3px 3px 0 rgba(49, 47, 59, 0.32);
34
- }
35
-
36
- &:active {
37
- border: 1px solid var(--mat-sys-outline);
38
- }
39
-
40
- &:focus {
41
- border: 1px solid var(--mat-sys-outline);
42
- box-shadow:
43
- 0 0 0 1px #fff,
44
- 0 0 0 5px #d7d5ed;
45
- }
46
22
  }
47
23
  }
48
24
  }
@@ -3,23 +3,13 @@
3
3
  @mixin override() {
4
4
  @include mat.menu-overrides(
5
5
  (
6
- item-label-text-weight: 500,
6
+ container-color: var(--mat-sys-surface),
7
+ item-with-icon-leading-spacing: var(--spacer),
8
+ item-with-icon-trailing-spacing: var
9
+ (
10
+ --spacer,
11
+ ),
12
+ item-label-text-line-height: var(--quad-spacer),
7
13
  )
8
14
  );
9
- .cdk-overlay-container {
10
- .mat-mdc-menu-content {
11
- .menu-header {
12
- font-weight: bold;
13
- font-size: 1.1rem;
14
- color: var(--mat-sys-on-surface);
15
- }
16
- .mat-mdc-menu-item {
17
- &:active,
18
- &.active {
19
- border-left: 4px solid var(--mat-sys-secondary);
20
- font-weight: bold !important;
21
- }
22
- }
23
- }
24
- }
25
15
  }
@@ -13,10 +13,7 @@
13
13
  outlined-focus-outline-color: var(--mat-sys-on-background),
14
14
  outlined-hover-label-text-color: var(--mat-sys-on-background),
15
15
  outlined-hover-outline-color: var(--mat-sys-on-background),
16
- outlined-input-text-color: var(--mat-sys-on-background),
17
- outlined-input-text-placeholder-color: var(
18
- --mat-sys-on-background
19
- ),
16
+ outlined-input-text-placeholder-color: var(--mat-sys-outline),
20
17
  )
21
18
  );
22
19
  @include mat.select-overrides(
@@ -45,9 +42,7 @@
45
42
  outlined-hover-label-text-color: var(--mat-sys-on-background),
46
43
  outlined-hover-outline-color: var(--mat-sys-on-background),
47
44
  outlined-input-text-color: var(--mat-sys-on-background),
48
- outlined-input-text-placeholder-color: var(
49
- --mat-sys-on-background
50
- ),
45
+ outlined-input-text-placeholder-color: var(--mat-sys-outline),
51
46
  )
52
47
  );
53
48
  @include mat.select-overrides(
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@onemrvapublic/design-system-theme",
3
- "version": "v20.6.3-develop.4",
3
+ "version": "v20.7.0-develop.2",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -103,14 +103,14 @@
103
103
  headline-large-line-height: 2.75rem,
104
104
  headline-large-weight: 600,
105
105
 
106
- label-large: 500 1rem/1.3125rem Poppins,
107
- label-large-font: Poppins,
106
+ label-large: 500 1rem/1.3125rem Source Sans Pro,
107
+ label-large-font: Source Sans Pro,
108
108
  label-large-size: 1rem,
109
109
  label-large-line-height: 1.3125rem,
110
110
  label-large-weight: 500,
111
111
 
112
- label-medium: 400 0.875rem/1.3125rem Poppins,
113
- label-medium-font: Poppins,
112
+ label-medium: 400 0.875rem/1.3125rem Source Sans Pro,
113
+ label-medium-font: Source Sans Pro,
114
114
  label-medium-size: 0.875rem,
115
115
  label-medium-line-height: 1.3125rem,
116
116
  label-medium-weight: 400,
@@ -2,15 +2,6 @@
2
2
  @use '@angular/material' as mat;
3
3
  @use './palettes';
4
4
 
5
- $onemrva-accent-gradient: var(--background-gradient);
6
- $onemrva-accent-gradient-vertical: var(--background-gradient);
7
- $onemrva-button-outline-opacity: 0.3;
8
- $box-shadow: 0px 3px 3px #312f3a29;
9
- $gap: 8px;
10
-
11
- $default-font-family: 'Source Sans Pro', sans-serif;
12
- $header-font-family: 'Poppins', sans-serif;
13
-
14
5
  $spacer: 8px !default;
15
6
  $spacers:
16
7
  '-0' 0,