@openmrs/esm-styleguide 9.0.3-pre.4321 → 9.0.3-pre.4342

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,3 +1,3 @@
1
- [0] Successfully compiled: 123 files, copied 163 files with swc (259.34ms)
1
+ [0] Successfully compiled: 123 files, copied 163 files with swc (224.21ms)
2
2
  [0] swc --strip-leading-paths --copy-files src -d dist && svgo -rf dist --quiet exited with code 0
3
3
  [1] tsc --project tsconfig.build.json exited with code 0
@@ -34,37 +34,22 @@
34
34
  display: block;
35
35
  width: 100%;
36
36
  height: 100%;
37
- padding: layout.$spacing-03 layout.$spacing-05;
37
+ padding-top: 0.4375rem;
38
+ padding-bottom: 0.375rem;
39
+ padding-left: layout.$spacing-05;
40
+ padding-right: layout.$spacing-05;
38
41
  }
39
42
 
40
43
  .cell.critically-high,
41
44
  .cell.critically-low {
42
45
  background-color: colors.$red-20 !important;
43
46
  border-top: 1px solid colors.$red-20-hover !important;
44
-
45
- p {
46
- @include type.type-style('heading-compact-01');
47
- color: $ui-05;
48
- }
49
47
  }
50
48
 
51
49
  .cell.high,
52
50
  .cell.low {
53
51
  background-color: colors.$orange-10 !important;
54
52
  border-top: 1px solid colors.$orange-20 !important;
55
-
56
- p {
57
- @include type.type-style('heading-compact-01');
58
- color: $ui-05;
59
- }
60
- }
61
-
62
- .cell.off-scale-low,
63
- .cell.off-scale-high {
64
- p {
65
- @include type.type-style('heading-compact-01');
66
- color: $ui-05;
67
- }
68
53
  }
69
54
 
70
55
  .label-container {
package/mock-jest.tsx CHANGED
@@ -207,6 +207,13 @@ export const Workspace2 = jest.fn(({ title, children }) => (
207
207
  </div>
208
208
  ));
209
209
 
210
+ export const NumericObservation = jest.fn(({ value, unit, label }) => (
211
+ <span>
212
+ {label && <span>{label}</span>}
213
+ {value} {unit}
214
+ </span>
215
+ ));
216
+
210
217
  export const TableBatchActions = jest.fn(({ children }) => <>{children}</>);
211
218
 
212
219
  export const showModal = jest.fn();
package/mock.tsx CHANGED
@@ -208,6 +208,13 @@ export const Workspace2 = vi.fn(({ title, children }) => (
208
208
  </div>
209
209
  ));
210
210
 
211
+ export const NumericObservation = vi.fn(({ value, unit, label }) => (
212
+ <span>
213
+ {label && <span>{label}</span>}
214
+ {value} {unit}
215
+ </span>
216
+ ));
217
+
211
218
  export const TableBatchActions = vi.fn(({ children }) => <>{children}</>);
212
219
 
213
220
  // eslint-disable-next-line @typescript-eslint/consistent-type-imports
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openmrs/esm-styleguide",
3
- "version": "9.0.3-pre.4321",
3
+ "version": "9.0.3-pre.4342",
4
4
  "license": "MPL-2.0",
5
5
  "description": "The styleguide for OpenMRS SPA",
6
6
  "module": "dist/internal.js",
@@ -96,17 +96,17 @@
96
96
  "swr": "2.x"
97
97
  },
98
98
  "devDependencies": {
99
- "@openmrs/esm-api": "9.0.3-pre.4321",
100
- "@openmrs/esm-config": "9.0.3-pre.4321",
101
- "@openmrs/esm-emr-api": "9.0.3-pre.4321",
102
- "@openmrs/esm-error-handling": "9.0.3-pre.4321",
103
- "@openmrs/esm-extensions": "9.0.3-pre.4321",
104
- "@openmrs/esm-globals": "9.0.3-pre.4321",
105
- "@openmrs/esm-navigation": "9.0.3-pre.4321",
106
- "@openmrs/esm-react-utils": "9.0.3-pre.4321",
107
- "@openmrs/esm-state": "9.0.3-pre.4321",
108
- "@openmrs/esm-translations": "9.0.3-pre.4321",
109
- "@openmrs/esm-utils": "9.0.3-pre.4321",
99
+ "@openmrs/esm-api": "9.0.3-pre.4342",
100
+ "@openmrs/esm-config": "9.0.3-pre.4342",
101
+ "@openmrs/esm-emr-api": "9.0.3-pre.4342",
102
+ "@openmrs/esm-error-handling": "9.0.3-pre.4342",
103
+ "@openmrs/esm-extensions": "9.0.3-pre.4342",
104
+ "@openmrs/esm-globals": "9.0.3-pre.4342",
105
+ "@openmrs/esm-navigation": "9.0.3-pre.4342",
106
+ "@openmrs/esm-react-utils": "9.0.3-pre.4342",
107
+ "@openmrs/esm-state": "9.0.3-pre.4342",
108
+ "@openmrs/esm-translations": "9.0.3-pre.4342",
109
+ "@openmrs/esm-utils": "9.0.3-pre.4342",
110
110
  "@swc/cli": "0.8.0",
111
111
  "@swc/core": "1.15.18",
112
112
  "@types/geopattern": "^1.2.9",
@@ -34,37 +34,22 @@
34
34
  display: block;
35
35
  width: 100%;
36
36
  height: 100%;
37
- padding: layout.$spacing-03 layout.$spacing-05;
37
+ padding-top: 0.4375rem;
38
+ padding-bottom: 0.375rem;
39
+ padding-left: layout.$spacing-05;
40
+ padding-right: layout.$spacing-05;
38
41
  }
39
42
 
40
43
  .cell.critically-high,
41
44
  .cell.critically-low {
42
45
  background-color: colors.$red-20 !important;
43
46
  border-top: 1px solid colors.$red-20-hover !important;
44
-
45
- p {
46
- @include type.type-style('heading-compact-01');
47
- color: $ui-05;
48
- }
49
47
  }
50
48
 
51
49
  .cell.high,
52
50
  .cell.low {
53
51
  background-color: colors.$orange-10 !important;
54
52
  border-top: 1px solid colors.$orange-20 !important;
55
-
56
- p {
57
- @include type.type-style('heading-compact-01');
58
- color: $ui-05;
59
- }
60
- }
61
-
62
- .cell.off-scale-low,
63
- .cell.off-scale-high {
64
- p {
65
- @include type.type-style('heading-compact-01');
66
- color: $ui-05;
67
- }
68
53
  }
69
54
 
70
55
  .label-container {