@onemrvapublic/design-system 22.5.0-develop.3 → 22.5.0-develop.4

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.
@@ -1,5 +1,5 @@
1
1
  // Auto-generated — do not edit
2
- const VERSION = '22.5.0-develop.3';
2
+ const VERSION = '22.5.0-develop.4';
3
3
 
4
4
  const ɵɵtsModuleIndicatorApiExtractorWorkaround = true;
5
5
 
@@ -1 +1 @@
1
- {"version":3,"file":"onemrvapublic-design-system.mjs","sources":["../../../../projects/onemrva/design-system/version.ts","../../../../projects/onemrva/design-system/index.ts","../../../../projects/onemrva/design-system/onemrvapublic-design-system.ts"],"sourcesContent":["// Auto-generated — do not edit\nexport const VERSION = '22.5.0-develop.3';\n","export { VERSION } from './version';\n\nexport const ɵɵtsModuleIndicatorApiExtractorWorkaround = true;\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":"AAAA;AACO,MAAM,OAAO,GAAG;;ACChB,MAAM,yCAAyC,GAAG;;ACFzD;;AAEG;;;;"}
1
+ {"version":3,"file":"onemrvapublic-design-system.mjs","sources":["../../../../projects/onemrva/design-system/version.ts","../../../../projects/onemrva/design-system/index.ts","../../../../projects/onemrva/design-system/onemrvapublic-design-system.ts"],"sourcesContent":["// Auto-generated — do not edit\nexport const VERSION = '22.5.0-develop.4';\n","export { VERSION } from './version';\n\nexport const ɵɵtsModuleIndicatorApiExtractorWorkaround = true;\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":"AAAA;AACO,MAAM,OAAO,GAAG;;ACChB,MAAM,yCAAyC,GAAG;;ACFzD;;AAEG;;;;"}
@@ -1,5 +1,8 @@
1
1
  @use '@angular/material' as mat;
2
2
 
3
+ // Sized and spaced like mat-chip (see theme/overrides/_chips.scss): same
4
+ // container height, 12px horizontal padding, and an 18px leading checkmark
5
+ // with an 8px gap when selected, like a selected mat-chip-option.
3
6
  .onemrva-theme onemrva-mat-choice-chip {
4
7
  @include mat.checkbox-overrides(
5
8
  (
@@ -7,43 +10,54 @@
7
10
  )
8
11
  );
9
12
 
10
- .mat-mdc-checkbox:not(.mat-mdc-checkbox-checked)
11
- .mat-internal-form-field
12
- > label {
13
- padding-left: 14px;
14
- }
13
+ display: inline-block;
14
+ vertical-align: middle;
15
15
 
16
16
  mat-checkbox.onemrva-choice-chip {
17
+ display: inline-flex;
18
+ box-sizing: border-box;
19
+ height: var(--mat-chip-container-height, 38px);
17
20
  user-select: none;
18
21
  border: 1px solid var(--mat-sys-primary);
19
22
  border-radius: var(--chip-border-radius);
20
23
  background: var(--mat-sys-primary-container);
21
24
  padding: 0;
22
25
 
23
- label {
24
- color: var(--mat-sys-primary);
25
- font-family: var(--mat-sys-label-large-font);
26
- font-size: var(--mat-sys-label-large-size);
27
- font-weight: var(--mat-sys-label-large-weight);
28
- line-height: var(--mat-sys-label-large-line-height);
29
- }
26
+ .mdc-form-field {
27
+ display: flex;
28
+ align-items: center;
29
+ height: 100%;
30
30
 
31
- &.mat-mdc-checkbox-checked {
32
- background-color: var(--mat-sys-primary);
33
- color: var(--mat-sys-on-primary);
31
+ .mdc-checkbox {
32
+ flex: 0 0 auto;
33
+ width: 0;
34
+ height: 18px;
35
+ padding: 0;
36
+ margin: 0;
37
+ visibility: hidden;
38
+ transition:
39
+ width 400ms,
40
+ margin-left 400ms;
34
41
 
35
- .mdc-checkbox__background {
36
- background-color: var(--mat-sys-primary);
37
- background: none !important;
38
- border: none !important;
39
- top: -6px;
40
- left: 10px;
42
+ .mdc-checkbox__ripple,
43
+ input {
44
+ display: none;
45
+ }
46
+
47
+ .mdc-checkbox__background {
48
+ top: 0;
49
+ left: 0;
50
+ }
41
51
  }
42
52
 
43
- label {
44
- line-height: var(--mdc-chip-container-height);
45
- padding: 5px 14px 5px;
46
- color: var(--mat-sys-on-primary);
53
+ > label {
54
+ padding: 0 12px;
55
+ color: var(--mat-sys-primary);
56
+ font-family: var(--mat-sys-label-large-font);
57
+ font-size: var(--mat-sys-label-large-size);
58
+ font-weight: var(--mat-sys-label-large-weight);
59
+ line-height: var(--mat-sys-label-large-line-height);
60
+ white-space: nowrap;
47
61
  }
48
62
  }
49
63
 
@@ -51,29 +65,25 @@
51
65
  display: none;
52
66
  }
53
67
 
54
- .mdc-form-field {
55
- display: inline-block;
68
+ &.mat-mdc-checkbox-checked {
69
+ background-color: var(--mat-sys-primary);
56
70
 
57
- .mdc-checkbox {
58
- padding: 0;
59
- margin: 0;
60
- transition: width 400ms;
71
+ .mdc-form-field {
72
+ .mdc-checkbox {
73
+ width: 18px;
74
+ margin-left: 8px;
75
+ visibility: visible;
76
+ }
61
77
 
62
- .mdc-checkbox__ripple,
63
- input {
64
- display: none;
78
+ .mdc-checkbox__background {
79
+ background: none !important;
80
+ border: none !important;
65
81
  }
66
- }
67
- }
68
82
 
69
- &:not(.mat-mdc-checkbox-checked) {
70
- label {
71
- line-height: var(--mdc-chip-container-height);
72
- padding: 5px 14px;
73
- }
74
- .mdc-checkbox {
75
- visibility: hidden;
76
- width: 0;
83
+ > label {
84
+ padding-left: 8px;
85
+ color: var(--mat-sys-on-primary);
86
+ }
77
87
  }
78
88
  }
79
89
 
@@ -86,7 +96,8 @@
86
96
  color: var(--mat-sys-primary-fixed-dim);
87
97
  }
88
98
  }
89
- label {
99
+
100
+ .mdc-form-field > label {
90
101
  color: var(--mat-sys-on-surface);
91
102
  }
92
103
  }
@@ -2,33 +2,40 @@
2
2
  display: inline-block;
3
3
  width: 100%;
4
4
 
5
+ // Small chip (22px per Figma): same colors and outline as mat-chip, with a
6
+ // tighter radius, vertically centred on the select trigger.
5
7
  .mat-select-counter {
6
- top: var(--spacer);
8
+ top: 50%;
7
9
  right: var(--triple-spacer);
8
- display: block;
9
- padding: var(--quarter-spacer) var(--half-spacer) var(--quarter-spacer)
10
- var(--spacer);
11
- background: var(--mat-sys-primary-container);
12
- color: var(--mat-sys-on-primary-container);
10
+ transform: translateY(-50%);
11
+ display: inline-flex;
12
+ align-items: center;
13
+ gap: var(--quarter-spacer);
14
+ box-sizing: border-box;
15
+ height: 22px;
13
16
  min-width: var(--triple-spacer);
14
- font-family: var(--brand-font);
17
+ padding: 0 var(--half-spacer) 0 var(--spacer);
18
+ background: var(--mat-sys-primary-container);
19
+ color: var(--mat-sys-primary);
15
20
 
16
21
  border: 1px solid var(--mat-sys-primary);
17
- border-radius: var(--button-border-radius);
22
+ border-radius: var(--small-border-radius);
18
23
 
19
24
  span.text {
20
- font-family: var(--sys-label-large-font);
25
+ font-family: var(--mat-sys-label-large-font);
21
26
  font-style: normal;
22
- font-weight: 500;
27
+ font-weight: var(--mat-sys-label-large-weight);
23
28
  font-size: 0.75rem;
24
- line-height: 1.25rem;
29
+ line-height: 1rem;
25
30
  }
26
31
  mat-icon {
27
- font-size: 0.75rem;
28
- height: 0.75rem;
29
- width: 0.75rem;
30
- line-height: 1rem;
31
- padding: 0 var(--quarter-spacer) 0 var(--quarter-spacer);
32
+ display: flex;
33
+ align-items: center;
34
+ justify-content: center;
35
+ font-size: 0.875rem;
36
+ height: 0.875rem;
37
+ width: 0.875rem;
38
+ color: var(--mat-sys-primary);
32
39
  cursor: pointer;
33
40
  }
34
41
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@onemrvapublic/design-system",
3
- "version": "22.5.0-develop.3",
3
+ "version": "22.5.0-develop.4",
4
4
  "description": "Design System Onem/Rva without theme included",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -1,4 +1,4 @@
1
- declare const VERSION = "22.5.0-develop.3";
1
+ declare const VERSION = "22.5.0-develop.4";
2
2
 
3
3
  declare const ɵɵtsModuleIndicatorApiExtractorWorkaround = true;
4
4