@onemrvapublic/design-system-theme 0.0.0-semantically-released

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.
Files changed (48) hide show
  1. package/README.md +1 -0
  2. package/assets/img/no-result.svg +124 -0
  3. package/fesm2022/onemrvapublic-design-system-theme.mjs +43 -0
  4. package/fesm2022/onemrvapublic-design-system-theme.mjs.map +1 -0
  5. package/index.d.ts +9 -0
  6. package/index.scss +212 -0
  7. package/overrides/_button-toggle.scss +14 -0
  8. package/overrides/_button.scss +128 -0
  9. package/overrides/_cards.scss +11 -0
  10. package/overrides/_carousel.scss +13 -0
  11. package/overrides/_checkbox.scss +46 -0
  12. package/overrides/_chips.scss +42 -0
  13. package/overrides/_dialogs.scss +130 -0
  14. package/overrides/_divider.scss +9 -0
  15. package/overrides/_drag-and-drop.scss +74 -0
  16. package/overrides/_expansion.scss +40 -0
  17. package/overrides/_fab.scss +45 -0
  18. package/overrides/_form-field.scss +40 -0
  19. package/overrides/_icon-button.scss +18 -0
  20. package/overrides/_icon.scss +97 -0
  21. package/overrides/_input.scss +237 -0
  22. package/overrides/_layout.scss +35 -0
  23. package/overrides/_menu.scss +25 -0
  24. package/overrides/_panel.scss +66 -0
  25. package/overrides/_progress-bar.scss +29 -0
  26. package/overrides/_radio.scss +17 -0
  27. package/overrides/_select.scss +75 -0
  28. package/overrides/_slide-toggle.scss +23 -0
  29. package/overrides/_stepper.scss +196 -0
  30. package/overrides/_stickers.scss +13 -0
  31. package/overrides/_table.scss +111 -0
  32. package/overrides/_tabs.scss +24 -0
  33. package/overrides/_toast.scss +16 -0
  34. package/overrides/_toc.scss +26 -0
  35. package/overrides/_toolbar.scss +18 -0
  36. package/overrides/_tooltip.scss +17 -0
  37. package/package.json +23 -0
  38. package/palettes/_palette.scss +188 -0
  39. package/utilities/_animations.scss +54 -0
  40. package/utilities/_container.scss +42 -0
  41. package/utilities/_fonts.scss +158 -0
  42. package/utilities/_grid.scss +75 -0
  43. package/utilities/_media.scss +33 -0
  44. package/utilities/_palettes.scss +119 -0
  45. package/utilities/_spacing.scss +86 -0
  46. package/utilities/_tokens.scss +85 -0
  47. package/utilities/_utilities.scss +333 -0
  48. package/utilities/_variables.scss +51 -0
@@ -0,0 +1,42 @@
1
+ @use '@angular/material' as mat;
2
+ @use '../utilities/variables' as variables;
3
+
4
+ @mixin override() {
5
+ @include mat.chips-overrides(
6
+ (
7
+ container-shape-radius: var(--button-border-radius),
8
+ outline-color: var(--mat-sys-primary),
9
+ elevated-container-color: var(--mat-sys-primary-container),
10
+ container-height: 38px,
11
+ label-text-color: var(--mat-sys-primary),
12
+ label-text-font: var(--mat-sys-label-large-font),
13
+ label-text-size: var(--mat-sys-label-large-size),
14
+ label-text-line-height: var(--mat-sys-label-large-height),
15
+ )
16
+ );
17
+ mat-chip-option,
18
+ mat-chip {
19
+ &.mat-accent {
20
+ background: var(--background-gradient);
21
+ @include mat.chips-overrides(
22
+ (
23
+ outline-color: var(--mat-sys-secondary),
24
+ )
25
+ );
26
+ .mat-mdc-chip-action-label {
27
+ color: var(--on-background-gradient);
28
+ }
29
+ }
30
+ &.mat-error {
31
+ background: var(--mat-sys-error-container);
32
+ @include mat.chips-overrides(
33
+ (
34
+ outline-color: var(--mat-sys-on-error-container),
35
+ )
36
+ );
37
+ .mat-mdc-chip-action-label {
38
+ color: var(--mat-sys-primary);
39
+ }
40
+ }
41
+ }
42
+ }
@@ -0,0 +1,130 @@
1
+ @use '@angular/material' as mat;
2
+
3
+ @mixin override() {
4
+ @include mat.dialog-overrides(
5
+ (
6
+ container-shape: var(--half-border-radius),
7
+ subhead-color: var(--mat-sys-primary),
8
+ subhead-font: var(--),
9
+ )
10
+ );
11
+
12
+ .close-dialog {
13
+ position: absolute;
14
+ top: var(--double-spacer);
15
+ right: var(--double-spacer);
16
+ mat-icon {
17
+ font-size: 1.5rem;
18
+ }
19
+ &:hover {
20
+ cursor: pointer;
21
+ }
22
+ }
23
+
24
+ //
25
+ //.mdc-dialog__title::before {
26
+ // height: auto;
27
+ //}
28
+ //
29
+ //.mat-mdc-dialog-container {
30
+ // border-radius: 8px;
31
+ //
32
+ // .mat-mdc-dialog-surface {
33
+ // padding: 0;
34
+ // }
35
+ //
36
+ // .mat-toolbar.mat-accent {
37
+ // background: variables.$onemrva-accent-gradient;
38
+ // color: white;
39
+ // }
40
+ //
41
+ // .mat-mdc-dialog-title {
42
+ // //styleName: Title/H4/Default;
43
+ // font-family: mat.get-theme-typography($theme, 'headline-1', font-family);
44
+ // font-size: 18px;
45
+ // font-weight: 700;
46
+ // letter-spacing: 0;
47
+ // text-align: left;
48
+ // line-height: 26px;
49
+ // padding: 3 * $spacer 6 * $spacer $spacer 3 * $spacer;
50
+ // button.close-dialog {
51
+ // margin-top: -12px;
52
+ // }
53
+ // }
54
+ //
55
+ // .mat-mdc-dialog-content {
56
+ // padding: $spacer 3 * $spacer $spacer;
57
+ // color: µ.grayscale($theme, 900);
58
+ // }
59
+ //
60
+ // .mat-mdc-dialog-actions {
61
+ // padding: $spacer 3 * $spacer 3 * $spacer;
62
+ // align-items: end;
63
+ // justify-content: end;
64
+ // }
65
+ //}
66
+ //.xlarge {
67
+ // .mat-mdc-dialog-container {
68
+ // width: 996px;
69
+ // }
70
+ //}
71
+ //.large {
72
+ // .mat-mdc-dialog-container {
73
+ // width: 812px;
74
+ // }
75
+ //}
76
+ //.medium {
77
+ // .mat-mdc-dialog-container {
78
+ // width: 628px;
79
+ // }
80
+ //}
81
+ //.small {
82
+ // .mat-mdc-dialog-container {
83
+ // width: 444px;
84
+ // }
85
+ //}
86
+ //.mat-success,
87
+ //.mat-error,
88
+ //.mat-warn {
89
+ // .mat-mdc-dialog-title {
90
+ // &:before {
91
+ // display: inline;
92
+ // //noinspection CssNoGenericFontName
93
+ // font-family: 'Material Icons';
94
+ // font-variation-settings:
95
+ // 'FILL' 1,
96
+ // 'wght' 700,
97
+ // 'GRAD' 0,
98
+ // 'opsz' 20;
99
+ // font-size: 24px;
100
+ // top: 5px;
101
+ // margin: 0 8px 0 0;
102
+ // position: relative;
103
+ // }
104
+ // }
105
+ //}
106
+ //.mat-error {
107
+ // .mat-mdc-dialog-title {
108
+ // color: µ.error($theme);
109
+ // &:before {
110
+ // content: '\e000';
111
+ // }
112
+ // }
113
+ //}
114
+ //.mat-success {
115
+ // .mat-mdc-dialog-title {
116
+ // color: µ.success($theme, 600);
117
+ // &:before {
118
+ // content: '\e86c';
119
+ // }
120
+ // }
121
+ //}
122
+ //.mat-warn {
123
+ // .mat-mdc-dialog-title {
124
+ // color: µ.warn($theme, 600);
125
+ // &:before {
126
+ // content: '\e002';
127
+ // }
128
+ // }
129
+ //}
130
+ }
@@ -0,0 +1,9 @@
1
+ @use '@angular/material' as mat;
2
+
3
+ @mixin override() {
4
+ @include mat.divider-overrides(
5
+ (
6
+ color: var(--mat-sys-outline-variant),
7
+ )
8
+ );
9
+ }
@@ -0,0 +1,74 @@
1
+ @use '@angular/material' as mat;
2
+ @use 'sass:map';
3
+
4
+ @mixin override() {
5
+ .cdk-drag-placeholder {
6
+ background: var(--mat-sys-primary-container);
7
+ border: 2px dotted var(--mat-sys-primary);
8
+ min-height: 3.5rem;
9
+ border-radius: var(--half-border-radius);
10
+ margin-bottom: var(--spacer);
11
+ transition: transform 200ms cubic-bezier(0, 0, 0.2, 1);
12
+ }
13
+ .cdk-drag-preview {
14
+ box-shadow:
15
+ 0 5px 5px -3px rgba(0, 0, 0, 0.2),
16
+ 0 8px 10px 1px rgba(0, 0, 0, 0.14),
17
+ 0 3px 14px 2px rgba(0, 0, 0, 0.12);
18
+ background: var(--mat-sys-primary-container);
19
+ }
20
+ .cdk-drop-list-dragging {
21
+ cursor: grabbing;
22
+ .cdk-drag:not(.mat-mdc-chip) {
23
+ cursor: inherit !important;
24
+ }
25
+ }
26
+
27
+ .cdk-drag:not(.mat-mdc-chip):not(tr):not(mat-row) {
28
+ position: relative;
29
+ display: flex;
30
+ cursor: grab;
31
+ // transition: transform 100ms cubic-bezier(0, 0, 0.2, 1);
32
+ background-color: var(--mat-sys-surface-container);
33
+ padding: var(--double-spacer) var(--double-spacer) var(--double-spacer)
34
+ calc(var(--spacer) * 7);
35
+ border-radius: var(--half-border-radius);
36
+ margin-bottom: var(--spacer);
37
+
38
+ &:before {
39
+ border-radius: var(--half-border-radius) 0 0 var(--half-border-radius);
40
+ position: absolute;
41
+ top: 0;
42
+ left: 0;
43
+ bottom: 0;
44
+ font-family: var(--icon-font);
45
+ content: '\e945';
46
+ align-items: center;
47
+ display: inline-flex;
48
+ padding: var(--double-spacer) var(--spacer);
49
+ //padding: 15px 10px 15px 14px; // THe icon is slightly narrower than in the DS so it's shifted to the left so as to be centered
50
+ color: var(--mat-sys-primary);
51
+ background-color: var(--mat-sys-surface-container);
52
+ width: 1.5rem;
53
+ font-size: 2rem;
54
+ }
55
+ }
56
+
57
+ trn mat-row {
58
+ &.cdk-drag-preview {
59
+ display: flex;
60
+ justify-content: space-between;
61
+ align-items: center;
62
+ width: 100%;
63
+ //padding: 0 0 var(--double-spacer) 0;
64
+ overflow: hidden;
65
+ border-radius: var(--half-border-radius);
66
+ }
67
+ .cdk-drag-preview {
68
+ height: 2.8rem;
69
+ }
70
+ &.cdk-drag-placeholder {
71
+ opacity: 0.2;
72
+ }
73
+ }
74
+ }
@@ -0,0 +1,40 @@
1
+ @use '@angular/material' as mat;
2
+
3
+ @mixin override() {
4
+ @include mat.expansion-overrides(
5
+ (
6
+ container-shape: none,
7
+ header-text-font: var(--mat-sys-title-small-font),
8
+ header-text-size: var(--mat-sys-title-small-size),
9
+ container-text-size: var(--mat-sys-title-small-size),
10
+ header-hover-state-layer-color: transparent,
11
+ )
12
+ );
13
+
14
+ .mat-expansion-panel {
15
+ &:not([class*='mat-elevation-z']) {
16
+ box-shadow: none;
17
+ }
18
+ .mat-expansion-panel-header-title {
19
+ align-items: center;
20
+ display: flex;
21
+ gap: var(--spacer);
22
+
23
+ h1,
24
+ h2,
25
+ h3,
26
+ h4,
27
+ h5,
28
+ h6 {
29
+ margin: 0;
30
+ }
31
+ &:after {
32
+ content: '';
33
+ width: 130px;
34
+ height: 1px;
35
+ background: var(--mat-sys-outline-variant);
36
+ flex: 1000000 0 10px;
37
+ }
38
+ }
39
+ }
40
+ }
@@ -0,0 +1,45 @@
1
+ @use '@angular/material' as mat;
2
+
3
+ @mixin override() {
4
+ @include mat.fab-overrides(
5
+ (
6
+ container-shape: var(--button-border-radius),
7
+ small-container-shape: var(--button-border-radius),
8
+ )
9
+ );
10
+ button {
11
+ &.mat-mdc-fab-base {
12
+ &.mat-accent {
13
+ background: var(--background-gradient);
14
+ color: var(--on-background-gradient);
15
+ }
16
+ &.mat-primary,
17
+ &.mat-secondary,
18
+ &.mat-tertiary,
19
+ &.mat-success,
20
+ &.mat-info,
21
+ &.mat-error,
22
+ &.mat-warn {
23
+ @include mat.fab-overrides(
24
+ (
25
+ container-color: var(--mat-sys-primary),
26
+ small-container-color: var(--mat-sys-primary),
27
+ foreground-color: var(--mat-sys-on-primary),
28
+ small-foreground-color: var(--mat-sys-on-primary),
29
+ )
30
+ );
31
+ }
32
+ &.mat-neutral,
33
+ &.mat-grayscale {
34
+ @include mat.fab-overrides(
35
+ (
36
+ container-color: var(--mat-sys-primary-container),
37
+ small-container-color: var(--mat-sys-primary-container),
38
+ foreground-color: var(--mat-sys-on-primary-container),
39
+ small-foreground-color: var(--mat-sys-on-primary-container),
40
+ )
41
+ );
42
+ }
43
+ }
44
+ }
45
+ }
@@ -0,0 +1,40 @@
1
+ @use '@angular/material' as mat;
2
+ @use 'sass:map';
3
+
4
+ @mixin override() {
5
+ @include mat.form-field-overrides(
6
+ (
7
+ outlined-label-text-color: var(--mat-sys-on-surface),
8
+ outlined-focus-label-text-color: var(--mat-sys-on-surface),
9
+ outlined-hover-label-text-color: var(--mat-sys-on-surface),
10
+ container-height: var(--input-height),
11
+ container-vertical-padding: var(--spacer-and-half),
12
+ outlined-label-text-weight: bold,
13
+ outlined-outline-color: var(--mat-sys-outline-variant),
14
+ outlined-focus-outline-color: var(--mat-sys-on-surface),
15
+ outlined-hover-outline-color: var(--mat-sys-on-surface),
16
+ outlined-outline-width: 1px,
17
+ outlined-focus-outline-width: 2px,
18
+ )
19
+ );
20
+
21
+ mat-form-field {
22
+ .mat-mdc-text-field-wrapper.mdc-text-field--outlined {
23
+ .mdc-notched-outline--upgraded {
24
+ .mdc-floating-label--float-above {
25
+ --mat-form-field-container-height: 44px;
26
+ --mat-mdc-form-field-floating-label-scale: 0.75;
27
+ --mat-mdc-form-field-label-transform: translateY(
28
+ calc(
29
+ calc(
30
+ 6.75px + var(--mat-form-field-container-height, 56px) / 2
31
+ ) *
32
+ -1.1
33
+ )
34
+ )
35
+ scale(var(--mat-mdc-form-field-floating-label-scale, 0.75));
36
+ }
37
+ }
38
+ }
39
+ }
40
+ }
@@ -0,0 +1,18 @@
1
+ @use '@angular/material' as mat;
2
+ @use '../utilities/variables' as variables;
3
+
4
+ @mixin override() {
5
+ button {
6
+ &.mdc-icon-button {
7
+ &.small {
8
+ --mdc-icon-button-state-layer-size: calc(var(--icon-size-small) * 1.5);
9
+ --mdc-icon-button-icon-size: var(--icon-size-small);
10
+ mat-icon {
11
+ height: var(--icon-size-small);
12
+ font-size: var(--icon-size-small);
13
+ width: var(--icon-size-small);
14
+ }
15
+ }
16
+ }
17
+ }
18
+ }
@@ -0,0 +1,97 @@
1
+ @mixin override() {
2
+ mat-icon {
3
+ font-variation-settings:
4
+ 'FILL' 0,
5
+ 'wght' 300,
6
+ 'GRAD' 0,
7
+ 'opsz' 24;
8
+
9
+ &.xsmall {
10
+ font-size: var(--icon-size-xsmall);
11
+ line-height: var(--icon-size-xsmall);
12
+ height: var(--icon-size-xsmall);
13
+ width: var(--icon-size-xsmall);
14
+ font-variation-settings:
15
+ 'FILL' 0,
16
+ 'wght' 400,
17
+ 'GRAD' 0,
18
+ 'opsz' 12;
19
+ }
20
+
21
+ &.small {
22
+ font-size: var(--icon-size-small);
23
+ line-height: var(--icon-size-small);
24
+ height: var(--icon-size-small);
25
+ width: var(--icon-size-small);
26
+ font-variation-settings:
27
+ 'FILL' 0,
28
+ 'wght' 400,
29
+ 'GRAD' 0,
30
+ 'opsz' 16;
31
+ }
32
+
33
+ &.medium {
34
+ height: var(--icon-size-medium);
35
+ width: var(--icon-size-medium);
36
+ line-height: var(--icon-size-medium);
37
+ font-variation-settings:
38
+ 'FILL' 0,
39
+ 'wght' 400,
40
+ 'GRAD' 0,
41
+ 'opsz' 20;
42
+ }
43
+
44
+ &.large {
45
+ font-size: var(--icon-size-large);
46
+ line-height: var(--icon-size-large);
47
+ height: var(--icon-size-large);
48
+ width: var(--icon-size-large);
49
+ font-variation-settings:
50
+ 'FILL' 0,
51
+ 'wght' 400,
52
+ 'GRAD' 0,
53
+ 'opsz' 24;
54
+ }
55
+
56
+ &.xlarge {
57
+ font-size: var(--icon-size-xlarge);
58
+ line-height: var(--icon-size-xlarge);
59
+ height: var(--icon-size-xlarge);
60
+ width: var(--icon-size-xlarge);
61
+ font-variation-settings:
62
+ 'FILL' 0,
63
+ 'wght' 300,
64
+ 'GRAD' 0,
65
+ 'opsz' 62;
66
+ }
67
+
68
+ &.xxlarge {
69
+ font-size: var(--icon-size-xxlarge);
70
+ line-height: var(--icon-size-xxlarge);
71
+ height: var(--icon-size-xxlarge);
72
+ width: var(--icon-size-xxlarge);
73
+ font-variation-settings:
74
+ 'FILL' 0,
75
+ 'wght' 300,
76
+ 'GRAD' 0,
77
+ 'opsz' 40;
78
+ }
79
+
80
+ &.mat-primary,
81
+ &.mat-secondary,
82
+ &.mat-tertiary,
83
+ &.mat-success,
84
+ &.mat-info,
85
+ &.mat-error,
86
+ &.mat-warn,
87
+ &.mat-neutral,
88
+ &.mat-grayscale,
89
+ &.mat-accent {
90
+ color: var(--mat-sys-primary);
91
+ }
92
+
93
+ &.filled {
94
+ font-variation-settings: 'FILL' 1;
95
+ }
96
+ }
97
+ }