@openmrs/esm-styleguide 3.4.1-pre.96 → 4.0.0-pre.1
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/.turbo/turbo-build.log +40 -141
- package/.turbo/turbo-lint.log +2 -0
- package/.turbo/turbo-test.log +32 -0
- package/__mocks__/react-i18next.js +54 -0
- package/dist/022d7839fbf0b01f1279.woff2 +0 -0
- package/dist/02e1d2dbd3774a8f5658.woff2 +0 -0
- package/dist/066f70960ee0bd4c07f5.woff +0 -0
- package/dist/0755d9c25fe86099a1fb.woff2 +0 -0
- package/dist/091d3a63042974d54d8a.woff +0 -0
- package/dist/0befeb0f9f061f052717.woff +0 -0
- package/dist/0c7e37865f4bb741d719.woff2 +0 -0
- package/dist/0e49dbb9071356a97aa7.woff +0 -0
- package/dist/0e5132569fd3eaea21cc.woff +0 -0
- package/dist/0eb6e423b08540bb2757.woff2 +0 -0
- package/dist/1223fdf597c1c7a57096.woff +0 -0
- package/dist/13aa346ec359eaa168e2.woff +0 -0
- package/dist/144035d867f964f2c13d.woff2 +0 -0
- package/dist/160c450b41a6dfc1bebe.woff2 +0 -0
- package/dist/164bc7c64a15028f6b19.woff +0 -0
- package/dist/178f507500fb1dabcf4e.woff +0 -0
- package/dist/189265eddd933218a2c4.woff2 +0 -0
- package/dist/19239848cb5cdf02953e.woff2 +0 -0
- package/dist/1ac9d0b721a47c618f27.woff2 +0 -0
- package/dist/1b3c2f1d45dbb745b4cf.woff +0 -0
- package/dist/2034d12242df27d980b8.woff +0 -0
- package/dist/22f2f7f20d522f25d8ec.woff2 +0 -0
- package/dist/257967d345c4d73a616e.woff +0 -0
- package/dist/27626c129fe4aa22e2e6.woff2 +0 -0
- package/dist/2861a6629748147a32ea.woff2 +0 -0
- package/dist/2b531494817a7008521c.woff +0 -0
- package/dist/2d855afa565d0006f5fa.woff2 +0 -0
- package/dist/2e0b1ce3e5a1765917d0.woff2 +0 -0
- package/dist/3028d912b8189a439418.woff2 +0 -0
- package/dist/32a6fcddf51918f011f5.woff2 +0 -0
- package/dist/332d509af7965c98d5af.woff +0 -0
- package/dist/347e5ea493b441f06459.woff2 +0 -0
- package/dist/34ca7aaefd825bca9d62.woff +0 -0
- package/dist/362a779400aac0be5a12.woff2 +0 -0
- package/dist/3647330588ae297a0bd4.woff +0 -0
- package/dist/390315031483cbc78b20.woff +0 -0
- package/dist/3afa7954e621de8a516a.woff +0 -0
- package/dist/3f0da7edcbb8d01dcb97.woff +0 -0
- package/dist/3f4766bc8c4721b8d7a6.woff +0 -0
- package/dist/3fb99cf388da08c31bd7.woff2 +0 -0
- package/dist/404c0909c893f95ee0dc.woff2 +0 -0
- package/dist/40e1012bdd73a02c83f8.woff +0 -0
- package/dist/422493740da495c4413f.woff2 +0 -0
- package/dist/42423f4a1cfd745854a5.woff +0 -0
- package/dist/42c5469340604f5e79d5.woff2 +0 -0
- package/dist/42df6ba8755c7591afbe.woff2 +0 -0
- package/dist/44c432e4a678791737ca.woff2 +0 -0
- package/dist/452cc78a1baf50168631.woff +0 -0
- package/dist/4882dd164789ce7f44fe.woff2 +0 -0
- package/dist/49290aeb66b58f856f84.woff +0 -0
- package/dist/49b97d3a9224cb6bd5ac.woff +0 -0
- package/dist/4c3ed2a3f44451a96594.woff2 +0 -0
- package/dist/4f0c4a9ba045ef843752.woff +0 -0
- package/dist/4f746f1bbc05d6e9497f.woff2 +0 -0
- package/dist/5192df154d7f8cb9b76c.woff +0 -0
- package/dist/54028f60020ee6ac16c1.woff +0 -0
- package/dist/5687219882cd972495e6.woff +0 -0
- package/dist/56c52b5b71ff7d0decad.woff +0 -0
- package/dist/578aae4082fb12898fe3.woff2 +0 -0
- package/dist/5a07c14cd7519e0fa02d.woff +0 -0
- package/dist/5d3700da8be3c5172b76.woff2 +0 -0
- package/dist/5e1440da12d78046c31a.woff2 +0 -0
- package/dist/608bff2bb28ccfd74ca0.woff +0 -0
- package/dist/62f5f45b32f0702031ad.woff2 +0 -0
- package/dist/62fd670eebf4976bb6df.woff2 +0 -0
- package/dist/6305238484fd3cc045b0.woff2 +0 -0
- package/dist/64e1054a50262b9083ab.woff2 +0 -0
- package/dist/6557a3c33c4218db6066.woff2 +0 -0
- package/dist/66e70aaa5d9c7be2b7d9.woff +0 -0
- package/dist/68c556c669c532459374.woff2 +0 -0
- package/dist/6956fe0f5e625049f7e2.woff2 +0 -0
- package/dist/6bdf3ec568a6634a4aea.woff2 +0 -0
- package/dist/6d9b6411704ee0e26f31.woff2 +0 -0
- package/dist/6dc1395379557355e28d.woff2 +0 -0
- package/dist/6fcf28e2972af1d72ef8.woff +0 -0
- package/dist/723a4b364f38da1e93e0.woff2 +0 -0
- package/dist/729e5174c878b0a30035.woff2 +0 -0
- package/dist/74025371289e2bab9590.woff2 +0 -0
- package/dist/762888d30d179075ea6c.woff +0 -0
- package/dist/784d3444a92b4f1b77bc.woff +0 -0
- package/dist/794699869c58056513c7.woff +0 -0
- package/dist/79752c5c990ac51471f4.woff2 +0 -0
- package/dist/7984062acac19d00de83.woff2 +0 -0
- package/dist/79bc83792898f002dfc0.woff +0 -0
- package/dist/7d46ea83f372f13d40a0.woff +0 -0
- package/dist/7f15c4783287134ac710.woff +0 -0
- package/dist/8000079133e696898c7e.woff2 +0 -0
- package/dist/806a7a7745e7bd864174.woff +0 -0
- package/dist/8212ca4bb829a5d9f858.woff2 +0 -0
- package/dist/86c57595c1697937314b.woff +0 -0
- package/dist/88cb07ee53507d19f992.woff2 +0 -0
- package/dist/8a014da16bb5df1e9830.woff2 +0 -0
- package/dist/8af6b3d1e1a4ac4fdd49.woff2 +0 -0
- package/dist/8bbf2e3b118b1732ea16.woff2 +0 -0
- package/dist/8cd3fae70878b55de45b.woff +0 -0
- package/dist/8e05df04c42299bc9c31.woff +0 -0
- package/dist/9022078be982e16dc192.woff2 +0 -0
- package/dist/907c442ef0bf7886cbbc.woff2 +0 -0
- package/dist/90822629c9f43acb1cf8.woff2 +0 -0
- package/dist/92086fc1b9953ba20acd.woff +0 -0
- package/dist/92f1cafa16c646cffd37.woff2 +0 -0
- package/dist/9326d3d6ca3411249fd4.woff2 +0 -0
- package/dist/9340a047e2c400a8eff4.woff +0 -0
- package/dist/951b1b92a4b8315c27a1.woff +0 -0
- package/dist/957995d81ad3284f963f.woff2 +0 -0
- package/dist/95b38dc2556a6c46dc6c.woff2 +0 -0
- package/dist/95db32b85d6efe3f0c92.woff2 +0 -0
- package/dist/962cfb135eb81a80c239.woff +0 -0
- package/dist/96a9036ba12617504616.woff +0 -0
- package/dist/983c50a737da66c0bd02.woff2 +0 -0
- package/dist/987d18f198bd7d9fa265.woff2 +0 -0
- package/dist/9924e57202230ba397b0.woff2 +0 -0
- package/dist/9b6742916c10378bb045.woff +0 -0
- package/dist/9df11ababf0dd515e6a3.woff +0 -0
- package/dist/9e3f7d82b48ac62c7cb5.woff2 +0 -0
- package/dist/a07b795a96fa2b6691d1.woff +0 -0
- package/dist/a1c1f2f0c32534ae4785.woff2 +0 -0
- package/dist/a1f7181f7c86baf1c351.woff2 +0 -0
- package/dist/a32f901b42b9ddcc6e85.woff +0 -0
- package/dist/a34802c95c44f5903e18.woff2 +0 -0
- package/dist/a7c1ee99b038bc0777e0.woff +0 -0
- package/dist/a81d5c10cd640839a4b8.woff2 +0 -0
- package/dist/aa343b4fcab1658acc56.woff2 +0 -0
- package/dist/ab33fa58a6e7146d03f0.woff +0 -0
- package/dist/abeb6d68a7f128eaa1cd.woff +0 -0
- package/dist/aec9738277936824e421.woff +0 -0
- package/dist/b02a06390388409ab8cd.woff +0 -0
- package/dist/b0afed71b45a7f38e794.woff +0 -0
- package/dist/b0ec1af29941e0f52305.woff2 +0 -0
- package/dist/b3bbe4705c54760ade6b.woff +0 -0
- package/dist/b55f8f00b5929160ed27.woff +0 -0
- package/dist/b649469b999b248dbb70.woff +0 -0
- package/dist/b691d8c0c5110ea3659e.woff +0 -0
- package/dist/b729b57f022eb1d859fc.woff +0 -0
- package/dist/b8020bf5b1afb9556569.woff +0 -0
- package/dist/bb730844c9185c864437.woff2 +0 -0
- package/dist/bbae2f8ceda944a1ecd5.woff +0 -0
- package/dist/bfefc1c5dd4c689b4f0f.woff2 +0 -0
- package/dist/c204ba906a18b66bed05.woff +0 -0
- package/dist/c25bc2c3e5c0f0b089a2.woff +0 -0
- package/dist/c26797e2920f701bf68f.woff2 +0 -0
- package/dist/c32b0c98c77e458414dc.woff +0 -0
- package/dist/c3a84513ace37e633e6c.woff +0 -0
- package/dist/c6dd22ce106021638df7.woff2 +0 -0
- package/dist/c781dd3e68cf4db696e2.woff2 +0 -0
- package/dist/c81d3db94f7270abbebf.woff +0 -0
- package/dist/c8298f275f960d821949.woff +0 -0
- package/dist/c89e876b0e1fd2a0c661.woff2 +0 -0
- package/dist/c8cf918de7d9deffd15c.woff2 +0 -0
- package/dist/cacfd1d7dbd14067b970.woff2 +0 -0
- package/dist/cc33f663568d938071a0.woff +0 -0
- package/dist/cc628a3da5e5810acebe.woff +0 -0
- package/dist/cd9a0204454ff0e22880.woff2 +0 -0
- package/dist/cdb54c58914c803c9ed6.woff +0 -0
- package/dist/cf8cdfc9a1ead9d332f5.woff2 +0 -0
- package/dist/d55e14dce62503dcad5f.woff +0 -0
- package/dist/d69d5111a1f16e74d2fb.woff2 +0 -0
- package/dist/d6f3290223965413af92.woff +0 -0
- package/dist/d96e5a614e96c351c453.woff +0 -0
- package/dist/dacaf9bef27fac67fb17.woff2 +0 -0
- package/dist/dd406a41dc851acc7615.woff +0 -0
- package/dist/e0d279d30dd9df7831ce.woff2 +0 -0
- package/dist/e26dfdb6948e56dcf16c.woff +0 -0
- package/dist/e5317022888823405337.woff2 +0 -0
- package/dist/e589f9b7ff20e7e011ee.woff2 +0 -0
- package/dist/e5b7f5835bf8b91304bf.woff +0 -0
- package/dist/e655f59b8f3ed3b7c9fe.woff2 +0 -0
- package/dist/e7c487ed0bd3af889f66.woff2 +0 -0
- package/dist/eb36767a3caa8dfc71e8.woff2 +0 -0
- package/dist/efbc47072be0090327f8.woff +0 -0
- package/dist/f064c7d4889d1db43518.woff +0 -0
- package/dist/f31b6425f37c2b71c3fc.woff2 +0 -0
- package/dist/f3938458fa6048e8a833.woff +0 -0
- package/dist/f4031df8380579c41ed7.woff +0 -0
- package/dist/f432bafd941d9016122c.woff +0 -0
- package/dist/f4367aaef942e4cbea24.woff +0 -0
- package/dist/f5b2fe58c9057281ea3f.woff +0 -0
- package/dist/f5be008474d38b4cf15a.woff +0 -0
- package/dist/f968050d6a8297e66619.woff2 +0 -0
- package/dist/fdef8ecc502e23149bcc.woff +0 -0
- package/dist/openmrs-esm-styleguide.css +1 -1
- package/dist/openmrs-esm-styleguide.css.map +1 -1
- package/dist/openmrs-esm-styleguide.js +2 -1
- package/dist/openmrs-esm-styleguide.js.LICENSE.txt +1 -0
- package/dist/openmrs-esm-styleguide.js.map +1 -1
- package/jest.config.js +9 -0
- package/jest.config.json +33 -0
- package/package.json +17 -19
- package/setupTests.ts +13 -0
- package/src/_all.scss +1 -2
- package/src/_overrides.scss +150 -114
- package/src/_vars.scss +5 -3
- package/src/breakpoints/index.ts +28 -5
- package/src/components/_general.scss +1 -1
- package/src/components/_main-content.scss +3 -3
- package/src/error-state/error-state.component.tsx +36 -0
- package/src/error-state/error-state.module.scss +50 -0
- package/src/error-state/error-state.test.tsx +32 -0
- package/src/error-state/index.ts +1 -0
- package/src/index.ts +1 -0
- package/src/left-nav/index.tsx +21 -13
- package/src/left-nav/left-nav.module.scss +15 -15
- package/src/modals/index.tsx +2 -2
- package/src/notifications/index.tsx +3 -4
- package/src/notifications/notification.component.tsx +1 -1
- package/src/public.ts +1 -0
- package/src/spinner/_spinner.scss +1 -1
- package/src/toasts/index.tsx +3 -2
- package/src/toasts/toast.component.tsx +1 -1
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,152 +1,51 @@
|
|
|
1
|
-
[35m@openmrs/esm-styleguide:build: [0mcache hit, replaying output [
|
|
1
|
+
[35m@openmrs/esm-styleguide:build: [0mcache hit, replaying output [2mfeb06937adcb1a9a[0m
|
|
2
2
|
[35m@openmrs/esm-styleguide:build: [0m$ webpack --mode=production
|
|
3
|
-
[35m@openmrs/esm-styleguide:build: [
|
|
4
|
-
[35m@openmrs/esm-styleguide:build: [
|
|
5
|
-
[35m@openmrs/esm-styleguide:build: [
|
|
6
|
-
[35m@openmrs/esm-styleguide:build: [
|
|
7
|
-
[35m@openmrs/esm-styleguide:build: [
|
|
8
|
-
[35m@openmrs/esm-styleguide:build: [
|
|
9
|
-
[35m@openmrs/esm-styleguide:build: [0m
|
|
10
|
-
[35m@openmrs/esm-styleguide:build: [0m
|
|
11
|
-
[35m@openmrs/esm-styleguide:build: [0m
|
|
12
|
-
[35m@openmrs/esm-styleguide:build: [0m
|
|
13
|
-
[35m@openmrs/esm-styleguide:build: [0m
|
|
14
|
-
[35m@openmrs/esm-styleguide:build: [0m
|
|
15
|
-
[35m@openmrs/esm-styleguide:build: [
|
|
16
|
-
[35m@openmrs/esm-styleguide:build: [0m
|
|
17
|
-
[35m@openmrs/esm-styleguide:build: [0m
|
|
18
|
-
[35m@openmrs/esm-styleguide:build: [
|
|
19
|
-
[35m@openmrs/esm-styleguide:build: [
|
|
20
|
-
[35m@openmrs/esm-styleguide:build: [
|
|
3
|
+
[35m@openmrs/esm-styleguide:build: [0massets by info 2.4 MiB [immutable]
|
|
4
|
+
[35m@openmrs/esm-styleguide:build: [0m assets by path *.woff 1.35 MiB
|
|
5
|
+
[35m@openmrs/esm-styleguide:build: [0m asset d96e5a614e96c351c453.woff 24.5 KiB [emitted] [immutable] [from: ../../../node_modules/@ibm/plex/IBM-Plex-Serif/fonts/split/woff/IBMPlexSerif-SemiBoldItalic-Cyrillic.woff] (auxiliary name: main)
|
|
6
|
+
[35m@openmrs/esm-styleguide:build: [0m asset b691d8c0c5110ea3659e.woff 24 KiB [emitted] [immutable] [from: ../../../node_modules/@ibm/plex/IBM-Plex-Serif/fonts/split/woff/IBMPlexSerif-SemiBoldItalic-Latin1.woff] (auxiliary name: main)
|
|
7
|
+
[35m@openmrs/esm-styleguide:build: [0m asset 452cc78a1baf50168631.woff 23.9 KiB [emitted] [immutable] [from: ../../../node_modules/@ibm/plex/IBM-Plex-Serif/fonts/split/woff/IBMPlexSerif-Italic-Cyrillic.woff] (auxiliary name: main)
|
|
8
|
+
[35m@openmrs/esm-styleguide:build: [0m + 87 assets
|
|
9
|
+
[35m@openmrs/esm-styleguide:build: [0m assets by path *.woff2 1.04 MiB
|
|
10
|
+
[35m@openmrs/esm-styleguide:build: [0m asset 2861a6629748147a32ea.woff2 19.6 KiB [emitted] [immutable] [from: ../../../node_modules/@ibm/plex/IBM-Plex-Serif/fonts/split/woff2/IBMPlexSerif-SemiBoldItalic-Cyrillic.woff2] (auxiliary name: main)
|
|
11
|
+
[35m@openmrs/esm-styleguide:build: [0m asset 6305238484fd3cc045b0.woff2 19.3 KiB [emitted] [immutable] [from: ../../../node_modules/@ibm/plex/IBM-Plex-Serif/fonts/split/woff2/IBMPlexSerif-SemiBoldItalic-Latin1.woff2] (auxiliary name: main)
|
|
12
|
+
[35m@openmrs/esm-styleguide:build: [0m asset 44c432e4a678791737ca.woff2 19.2 KiB [emitted] [immutable] [from: ../../../node_modules/@ibm/plex/IBM-Plex-Serif/fonts/split/woff2/IBMPlexSerif-Italic-Cyrillic.woff2] (auxiliary name: main)
|
|
13
|
+
[35m@openmrs/esm-styleguide:build: [0m asset e0d279d30dd9df7831ce.woff2 19 KiB [emitted] [immutable] [from: ../../../node_modules/@ibm/plex/IBM-Plex-Serif/fonts/split/woff2/IBMPlexSerif-LightItalic-Cyrillic.woff2] (auxiliary name: main)
|
|
14
|
+
[35m@openmrs/esm-styleguide:build: [0m + 86 assets
|
|
15
|
+
[35m@openmrs/esm-styleguide:build: [0massets by status 1.37 MiB [big]
|
|
16
|
+
[35m@openmrs/esm-styleguide:build: [0m asset openmrs-esm-styleguide.js 949 KiB [emitted] [minimized] [big] (name: main) 2 related assets
|
|
17
|
+
[35m@openmrs/esm-styleguide:build: [0m asset openmrs-esm-styleguide.css 453 KiB [emitted] [minimized] [big] (name: main) 1 related asset
|
|
18
|
+
[35m@openmrs/esm-styleguide:build: [0mEntrypoint main [big] 1.37 MiB (5.51 MiB) = openmrs-esm-styleguide.css 453 KiB openmrs-esm-styleguide.js 949 KiB 182 auxiliary assets
|
|
19
|
+
[35m@openmrs/esm-styleguide:build: [0morphan modules 6.19 MiB (javascript) 2.4 MiB (asset) 2.85 KiB (runtime) [orphan] 661 modules
|
|
20
|
+
[35m@openmrs/esm-styleguide:build: [0mruntime modules 1.49 KiB 5 modules
|
|
21
|
+
[35m@openmrs/esm-styleguide:build: [0mbuilt modules 2.66 MiB (javascript) 467 KiB (css/mini-extract) [built]
|
|
22
|
+
[35m@openmrs/esm-styleguide:build: [0m modules by path ./src/ 93.3 KiB (javascript) 467 KiB (css/mini-extract) 32 modules
|
|
23
|
+
[35m@openmrs/esm-styleguide:build: [0m modules by path ../ 2.57 MiB
|
|
24
|
+
[35m@openmrs/esm-styleguide:build: [0m modules by path ../../../node_modules/ 3.87 KiB 4 modules
|
|
25
|
+
[35m@openmrs/esm-styleguide:build: [0m ../esm-config/dist/openmrs-esm-module-config.js 62.9 KiB [built] [code generated]
|
|
26
|
+
[35m@openmrs/esm-styleguide:build: [0m ../esm-framework/dist/openmrs-esm-framework.js 2.5 MiB [built] [code generated]
|
|
27
|
+
[35m@openmrs/esm-styleguide:build: [0m modules by path external "@openmrs/ 126 bytes
|
|
28
|
+
[35m@openmrs/esm-styleguide:build: [0m external "@openmrs/esm-extensions" 42 bytes [built] [code generated]
|
|
29
|
+
[35m@openmrs/esm-styleguide:build: [0m external "@openmrs/esm-state" 42 bytes [built] [code generated]
|
|
30
|
+
[35m@openmrs/esm-styleguide:build: [0m external "@openmrs/esm-react-utils" 42 bytes [built] [code generated]
|
|
31
|
+
[35m@openmrs/esm-styleguide:build: [0m external "react" 42 bytes [built] [code generated]
|
|
32
|
+
[35m@openmrs/esm-styleguide:build: [0m external "rxjs" 42 bytes [built] [code generated]
|
|
33
|
+
[35m@openmrs/esm-styleguide:build: [0m external "react-dom" 42 bytes [built] [code generated]
|
|
21
34
|
[35m@openmrs/esm-styleguide:build: [0m
|
|
22
|
-
[35m@openmrs/esm-styleguide:build: [
|
|
23
|
-
[35m@openmrs/esm-styleguide:build: [0m<w> [1m[33mDeprecation Using / for division outside of calc() is deprecated and will be removed in Dart Sass 2.0.0.[39m[22m
|
|
24
|
-
[35m@openmrs/esm-styleguide:build: [0m<w> [1m[33m[39m[22m
|
|
25
|
-
[35m@openmrs/esm-styleguide:build: [0m<w> [1m[33mRecommendation: math.div($px, $carbon--base-font-size) or calc($px / $carbon--base-font-size)[39m[22m
|
|
26
|
-
[35m@openmrs/esm-styleguide:build: [0m<w> [1m[33m[39m[22m
|
|
27
|
-
[35m@openmrs/esm-styleguide:build: [0m<w> [1m[33mMore info and automated migrator: https://sass-lang.com/d/slash-div[39m[22m
|
|
28
|
-
[35m@openmrs/esm-styleguide:build: [0m<w> [1m[33m[39m[22m
|
|
29
|
-
[35m@openmrs/esm-styleguide:build: [0m<w> [1m[33m../../../node_modules/carbon-components/scss/globals/scss/vendor/@carbon/elements/scss/layout/_convert.scss 25:12 carbon--rem()[39m[22m
|
|
30
|
-
[35m@openmrs/esm-styleguide:build: [0m<w> [1m[33m../../../node_modules/carbon-components/scss/globals/scss/vendor/@carbon/elements/scss/layout/_breakpoint.scss 16:23 @import[39m[22m
|
|
31
|
-
[35m@openmrs/esm-styleguide:build: [0m<w> [1m[33m../../../node_modules/carbon-components/scss/globals/scss/vendor/@carbon/elements/scss/type/_styles.scss 8:9 @import[39m[22m
|
|
32
|
-
[35m@openmrs/esm-styleguide:build: [0m<w> [1m[33m../../../node_modules/carbon-components/scss/globals/scss/vendor/@carbon/elements/scss/type/_reset.scss 10:9 @import[39m[22m
|
|
33
|
-
[35m@openmrs/esm-styleguide:build: [0m<w> [1m[33m../../../node_modules/carbon-components/scss/globals/scss/_css--reset.scss 9:9 @import[39m[22m
|
|
34
|
-
[35m@openmrs/esm-styleguide:build: [0m<w> [1m[33m../../../node_modules/carbon-components/scss/globals/scss/_helper-mixins.scss 23:9 @import[39m[22m
|
|
35
|
-
[35m@openmrs/esm-styleguide:build: [0m<w> [1m[33m../../../node_modules/carbon-components/scss/globals/scss/_theme.scss 8:9 @import[39m[22m
|
|
36
|
-
[35m@openmrs/esm-styleguide:build: [0m<w> [1m[33m../../../node_modules/carbon-components/scss/globals/scss/styles.scss 67:9 @import[39m[22m
|
|
37
|
-
[35m@openmrs/esm-styleguide:build: [0m<w> [1m[33msrc/_all.scss 2:9 root stylesheet[39m[22m
|
|
38
|
-
[35m@openmrs/esm-styleguide:build: [0m<w> [1m[33m[39m[22m
|
|
39
|
-
[35m@openmrs/esm-styleguide:build: [0m<w> [1m[33mDeprecation Using / for division outside of calc() is deprecated and will be removed in Dart Sass 2.0.0.[39m[22m
|
|
40
|
-
[35m@openmrs/esm-styleguide:build: [0m<w> [1m[33m[39m[22m
|
|
41
|
-
[35m@openmrs/esm-styleguide:build: [0m<w> [1m[33mRecommendation: math.div($step - 2, 4) or calc(($step - 2) / 4)[39m[22m
|
|
42
|
-
[35m@openmrs/esm-styleguide:build: [0m<w> [1m[33m[39m[22m
|
|
43
|
-
[35m@openmrs/esm-styleguide:build: [0m<w> [1m[33mMore info and automated migrator: https://sass-lang.com/d/slash-div[39m[22m
|
|
44
|
-
[35m@openmrs/esm-styleguide:build: [0m<w> [1m[33m[39m[22m
|
|
45
|
-
[35m@openmrs/esm-styleguide:build: [0m<w> [1m[33m../../../node_modules/carbon-components/scss/globals/scss/vendor/@carbon/elements/scss/type/_scale.scss 20:53 carbon--get-type-size()[39m[22m
|
|
46
|
-
[35m@openmrs/esm-styleguide:build: [0m<w> [1m[33m../../../node_modules/carbon-components/scss/globals/scss/vendor/@carbon/elements/scss/type/_scale.scss 31:17 @import[39m[22m
|
|
47
|
-
[35m@openmrs/esm-styleguide:build: [0m<w> [1m[33m../../../node_modules/carbon-components/scss/globals/scss/vendor/@carbon/elements/scss/type/_styles.scss 10:9 @import[39m[22m
|
|
48
|
-
[35m@openmrs/esm-styleguide:build: [0m<w> [1m[33m../../../node_modules/carbon-components/scss/globals/scss/vendor/@carbon/elements/scss/type/_reset.scss 10:9 @import[39m[22m
|
|
49
|
-
[35m@openmrs/esm-styleguide:build: [0m<w> [1m[33m../../../node_modules/carbon-components/scss/globals/scss/_css--reset.scss 9:9 @import[39m[22m
|
|
50
|
-
[35m@openmrs/esm-styleguide:build: [0m<w> [1m[33m../../../node_modules/carbon-components/scss/globals/scss/_helper-mixins.scss 23:9 @import[39m[22m
|
|
51
|
-
[35m@openmrs/esm-styleguide:build: [0m<w> [1m[33m../../../node_modules/carbon-components/scss/globals/scss/_theme.scss 8:9 @import[39m[22m
|
|
52
|
-
[35m@openmrs/esm-styleguide:build: [0m<w> [1m[33m../../../node_modules/carbon-components/scss/globals/scss/styles.scss 67:9 @import[39m[22m
|
|
53
|
-
[35m@openmrs/esm-styleguide:build: [0m<w> [1m[33msrc/_all.scss 2:9 root stylesheet[39m[22m
|
|
54
|
-
[35m@openmrs/esm-styleguide:build: [0m<w> [1m[33m[39m[22m
|
|
55
|
-
[35m@openmrs/esm-styleguide:build: [0m<w> [1m[33mDeprecation Using / for division outside of calc() is deprecated and will be removed in Dart Sass 2.0.0.[39m[22m
|
|
56
|
-
[35m@openmrs/esm-styleguide:build: [0m<w> [1m[33m[39m[22m
|
|
57
|
-
[35m@openmrs/esm-styleguide:build: [0m<w> [1m[33mRecommendation: math.div($width - (2 * $margin), $columns) or calc(($width - (2 * $margin)) / $columns)[39m[22m
|
|
58
|
-
[35m@openmrs/esm-styleguide:build: [0m<w> [1m[33m[39m[22m
|
|
59
|
-
[35m@openmrs/esm-styleguide:build: [0m<w> [1m[33mMore info and automated migrator: https://sass-lang.com/d/slash-div[39m[22m
|
|
60
|
-
[35m@openmrs/esm-styleguide:build: [0m<w> [1m[33m[39m[22m
|
|
61
|
-
[35m@openmrs/esm-styleguide:build: [0m<w> [1m[33m../../../node_modules/carbon-components/scss/globals/scss/vendor/@carbon/elements/scss/layout/_key-height.scss 27:13 carbon--get-column-width()[39m[22m
|
|
62
|
-
[35m@openmrs/esm-styleguide:build: [0m<w> [1m[33m../../../node_modules/carbon-components/scss/globals/scss/vendor/@carbon/elements/scss/layout/_key-height.scss 38:5 @import[39m[22m
|
|
63
|
-
[35m@openmrs/esm-styleguide:build: [0m<w> [1m[33m../../../node_modules/carbon-components/scss/globals/scss/vendor/@carbon/elements/scss/layout/layout.scss 12:9 @import[39m[22m
|
|
64
|
-
[35m@openmrs/esm-styleguide:build: [0m<w> [1m[33m../../../node_modules/carbon-components/scss/globals/scss/_layout.scss 9:9 @import[39m[22m
|
|
65
|
-
[35m@openmrs/esm-styleguide:build: [0m<w> [1m[33m../../../node_modules/carbon-components/scss/globals/scss/styles.scss 69:9 @import[39m[22m
|
|
66
|
-
[35m@openmrs/esm-styleguide:build: [0m<w> [1m[33msrc/_all.scss 2:9 root stylesheet[39m[22m
|
|
67
|
-
[35m@openmrs/esm-styleguide:build: [0m<w> [1m[33m[39m[22m
|
|
68
|
-
[35m@openmrs/esm-styleguide:build: [0m<w> [1m[33mDeprecation Using / for division outside of calc() is deprecated and will be removed in Dart Sass 2.0.0.[39m[22m
|
|
69
|
-
[35m@openmrs/esm-styleguide:build: [0m<w> [1m[33m[39m[22m
|
|
70
|
-
[35m@openmrs/esm-styleguide:build: [0m<w> [1m[33mRecommendation: math.div($carbon--grid-gutter, 2) or calc($carbon--grid-gutter / 2)[39m[22m
|
|
71
|
-
[35m@openmrs/esm-styleguide:build: [0m<w> [1m[33m[39m[22m
|
|
72
|
-
[35m@openmrs/esm-styleguide:build: [0m<w> [1m[33mMore info and automated migrator: https://sass-lang.com/d/slash-div[39m[22m
|
|
73
|
-
[35m@openmrs/esm-styleguide:build: [0m<w> [1m[33m[39m[22m
|
|
74
|
-
[35m@openmrs/esm-styleguide:build: [0m<w> [1m[33m../../../node_modules/carbon-components/scss/globals/scss/vendor/@carbon/elements/scss/grid/_mixins.scss 328:27 @content[39m[22m
|
|
75
|
-
[35m@openmrs/esm-styleguide:build: [0m<w> [1m[33m../../../node_modules/carbon-components/scss/globals/scss/vendor/@carbon/elements/scss/layout/_breakpoint.scss 236:5 @content[39m[22m
|
|
76
|
-
[35m@openmrs/esm-styleguide:build: [0m<w> [1m[33m../../../node_modules/carbon-components/scss/globals/scss/vendor/@carbon/elements/scss/layout/_breakpoint.scss 143:7 carbon--breakpoint-up()[39m[22m
|
|
77
|
-
[35m@openmrs/esm-styleguide:build: [0m<w> [1m[33m../../../node_modules/carbon-components/scss/globals/scss/vendor/@carbon/elements/scss/layout/_breakpoint.scss 235:3 carbon--breakpoint()[39m[22m
|
|
78
|
-
[35m@openmrs/esm-styleguide:build: [0m<w> [1m[33m../../../node_modules/carbon-components/scss/globals/scss/vendor/@carbon/elements/scss/grid/_mixins.scss 327:7 carbon--make-container()[39m[22m
|
|
79
|
-
[35m@openmrs/esm-styleguide:build: [0m<w> [1m[33m../../../node_modules/carbon-components/scss/globals/scss/vendor/@carbon/elements/scss/grid/_mixins.scss 371:5 carbon--grid()[39m[22m
|
|
80
|
-
[35m@openmrs/esm-styleguide:build: [0m<w> [1m[33m../../../node_modules/carbon-components/scss/globals/grid/_grid.scss 43:5 grid()[39m[22m
|
|
81
|
-
[35m@openmrs/esm-styleguide:build: [0m<w> [1m[33m../../../node_modules/carbon-components/scss/globals/grid/_grid.scss 48:3 @content[39m[22m
|
|
82
|
-
[35m@openmrs/esm-styleguide:build: [0m<w> [1m[33m../../../node_modules/carbon-components/scss/globals/scss/vendor/@carbon/elements/scss/import-once/import-once.scss 23:5 exports()[39m[22m
|
|
83
|
-
[35m@openmrs/esm-styleguide:build: [0m<w> [1m[33m../../../node_modules/carbon-components/scss/globals/grid/_grid.scss 47:1 @import[39m[22m
|
|
84
|
-
[35m@openmrs/esm-styleguide:build: [0m<w> [1m[33m../../../node_modules/carbon-components/scss/globals/scss/styles.scss 78:9 @import[39m[22m
|
|
85
|
-
[35m@openmrs/esm-styleguide:build: [0m<w> [1m[33msrc/_all.scss 2:9 root stylesheet[39m[22m
|
|
86
|
-
[35m@openmrs/esm-styleguide:build: [0m<w> [1m[33m[39m[22m
|
|
87
|
-
[35m@openmrs/esm-styleguide:build: [0m<w> [1m[33mDeprecation Using / for division outside of calc() is deprecated and will be removed in Dart Sass 2.0.0.[39m[22m
|
|
88
|
-
[35m@openmrs/esm-styleguide:build: [0m<w> [1m[33m[39m[22m
|
|
89
|
-
[35m@openmrs/esm-styleguide:build: [0m<w> [1m[33mRecommendation: math.div($carbon--grid-gutter, 2) or calc($carbon--grid-gutter / 2)[39m[22m
|
|
90
|
-
[35m@openmrs/esm-styleguide:build: [0m<w> [1m[33m[39m[22m
|
|
91
|
-
[35m@openmrs/esm-styleguide:build: [0m<w> [1m[33mMore info and automated migrator: https://sass-lang.com/d/slash-div[39m[22m
|
|
92
|
-
[35m@openmrs/esm-styleguide:build: [0m<w> [1m[33m[39m[22m
|
|
93
|
-
[35m@openmrs/esm-styleguide:build: [0m<w> [1m[33m../../../node_modules/carbon-components/scss/globals/scss/vendor/@carbon/elements/scss/grid/_mixins.scss 329:26 @content[39m[22m
|
|
94
|
-
[35m@openmrs/esm-styleguide:build: [0m<w> [1m[33m../../../node_modules/carbon-components/scss/globals/scss/vendor/@carbon/elements/scss/layout/_breakpoint.scss 236:5 @content[39m[22m
|
|
95
|
-
[35m@openmrs/esm-styleguide:build: [0m<w> [1m[33m../../../node_modules/carbon-components/scss/globals/scss/vendor/@carbon/elements/scss/layout/_breakpoint.scss 143:7 carbon--breakpoint-up()[39m[22m
|
|
96
|
-
[35m@openmrs/esm-styleguide:build: [0m<w> [1m[33m../../../node_modules/carbon-components/scss/globals/scss/vendor/@carbon/elements/scss/layout/_breakpoint.scss 235:3 carbon--breakpoint()[39m[22m
|
|
97
|
-
[35m@openmrs/esm-styleguide:build: [0m<w> [1m[33m../../../node_modules/carbon-components/scss/globals/scss/vendor/@carbon/elements/scss/grid/_mixins.scss 327:7 carbon--make-container()[39m[22m
|
|
98
|
-
[35m@openmrs/esm-styleguide:build: [0m<w> [1m[33m../../../node_modules/carbon-components/scss/globals/scss/vendor/@carbon/elements/scss/grid/_mixins.scss 371:5 carbon--grid()[39m[22m
|
|
99
|
-
[35m@openmrs/esm-styleguide:build: [0m<w> [1m[33m../../../node_modules/carbon-components/scss/globals/grid/_grid.scss 43:5 grid()[39m[22m
|
|
100
|
-
[35m@openmrs/esm-styleguide:build: [0m<w> [1m[33m../../../node_modules/carbon-components/scss/globals/grid/_grid.scss 48:3 @content[39m[22m
|
|
101
|
-
[35m@openmrs/esm-styleguide:build: [0m<w> [1m[33m../../../node_modules/carbon-components/scss/globals/scss/vendor/@carbon/elements/scss/import-once/import-once.scss 23:5 exports()[39m[22m
|
|
102
|
-
[35m@openmrs/esm-styleguide:build: [0m<w> [1m[33m../../../node_modules/carbon-components/scss/globals/grid/_grid.scss 47:1 @import[39m[22m
|
|
103
|
-
[35m@openmrs/esm-styleguide:build: [0m<w> [1m[33m../../../node_modules/carbon-components/scss/globals/scss/styles.scss 78:9 @import[39m[22m
|
|
104
|
-
[35m@openmrs/esm-styleguide:build: [0m<w> [1m[33msrc/_all.scss 2:9 root stylesheet[39m[22m
|
|
105
|
-
[35m@openmrs/esm-styleguide:build: [0m<w> [1m[33m[39m[22m
|
|
106
|
-
[35m@openmrs/esm-styleguide:build: [0m<w> [1m[33m38 repetitive deprecation warnings omitted.[39m[22m
|
|
107
|
-
[35m@openmrs/esm-styleguide:build: [0m<w> [1m[33m[39m[22m
|
|
108
|
-
[35m@openmrs/esm-styleguide:build: [0m<w> [1m[33mnull[39m[22m
|
|
109
|
-
[35m@openmrs/esm-styleguide:build: [0m
|
|
110
|
-
[35m@openmrs/esm-styleguide:build: [0m[1mLOG from ../../../node_modules/sass-loader/dist/cjs.js sass-loader ../../../node_modules/css-loader/dist/cjs.js!../../../node_modules/postcss-loader/dist/cjs.js!../../../node_modules/sass-loader/dist/cjs.js!./src/left-nav/left-nav.module.scss[39m[22m
|
|
111
|
-
[35m@openmrs/esm-styleguide:build: [0m<w> [1m[33mDeprecation Using / for division outside of calc() is deprecated and will be removed in Dart Sass 2.0.0.[39m[22m
|
|
112
|
-
[35m@openmrs/esm-styleguide:build: [0m<w> [1m[33m[39m[22m
|
|
113
|
-
[35m@openmrs/esm-styleguide:build: [0m<w> [1m[33mRecommendation: math.div($px, $carbon--base-font-size) or calc($px / $carbon--base-font-size)[39m[22m
|
|
114
|
-
[35m@openmrs/esm-styleguide:build: [0m<w> [1m[33m[39m[22m
|
|
115
|
-
[35m@openmrs/esm-styleguide:build: [0m<w> [1m[33mMore info and automated migrator: https://sass-lang.com/d/slash-div[39m[22m
|
|
116
|
-
[35m@openmrs/esm-styleguide:build: [0m<w> [1m[33m[39m[22m
|
|
117
|
-
[35m@openmrs/esm-styleguide:build: [0m<w> [1m[33m../../../node_modules/carbon-components/scss/globals/scss/vendor/@carbon/elements/scss/layout/_convert.scss 25:12 carbon--rem()[39m[22m
|
|
118
|
-
[35m@openmrs/esm-styleguide:build: [0m<w> [1m[33m../../../node_modules/carbon-components/scss/globals/scss/vendor/@carbon/elements/scss/layout/_breakpoint.scss 16:23 @import[39m[22m
|
|
119
|
-
[35m@openmrs/esm-styleguide:build: [0m<w> [1m[33m../../../node_modules/carbon-components/scss/globals/scss/vendor/@carbon/elements/scss/type/_styles.scss 8:9 @import[39m[22m
|
|
120
|
-
[35m@openmrs/esm-styleguide:build: [0m<w> [1m[33m../../../node_modules/carbon-components/scss/globals/scss/_typography.scss 51:9 @import[39m[22m
|
|
121
|
-
[35m@openmrs/esm-styleguide:build: [0m<w> [1m[33msrc/left-nav/left-nav.module.scss 2:9 root stylesheet[39m[22m
|
|
122
|
-
[35m@openmrs/esm-styleguide:build: [0m<w> [1m[33m[39m[22m
|
|
123
|
-
[35m@openmrs/esm-styleguide:build: [0m<w> [1m[33mDeprecation Using / for division outside of calc() is deprecated and will be removed in Dart Sass 2.0.0.[39m[22m
|
|
124
|
-
[35m@openmrs/esm-styleguide:build: [0m<w> [1m[33m[39m[22m
|
|
125
|
-
[35m@openmrs/esm-styleguide:build: [0m<w> [1m[33mRecommendation: math.div($step - 2, 4) or calc(($step - 2) / 4)[39m[22m
|
|
126
|
-
[35m@openmrs/esm-styleguide:build: [0m<w> [1m[33m[39m[22m
|
|
127
|
-
[35m@openmrs/esm-styleguide:build: [0m<w> [1m[33mMore info and automated migrator: https://sass-lang.com/d/slash-div[39m[22m
|
|
128
|
-
[35m@openmrs/esm-styleguide:build: [0m<w> [1m[33m[39m[22m
|
|
129
|
-
[35m@openmrs/esm-styleguide:build: [0m<w> [1m[33m../../../node_modules/carbon-components/scss/globals/scss/vendor/@carbon/elements/scss/type/_scale.scss 20:53 carbon--get-type-size()[39m[22m
|
|
130
|
-
[35m@openmrs/esm-styleguide:build: [0m<w> [1m[33m../../../node_modules/carbon-components/scss/globals/scss/vendor/@carbon/elements/scss/type/_scale.scss 31:17 @import[39m[22m
|
|
131
|
-
[35m@openmrs/esm-styleguide:build: [0m<w> [1m[33m../../../node_modules/carbon-components/scss/globals/scss/vendor/@carbon/elements/scss/type/_styles.scss 10:9 @import[39m[22m
|
|
132
|
-
[35m@openmrs/esm-styleguide:build: [0m<w> [1m[33m../../../node_modules/carbon-components/scss/globals/scss/_typography.scss 51:9 @import[39m[22m
|
|
133
|
-
[35m@openmrs/esm-styleguide:build: [0m<w> [1m[33msrc/left-nav/left-nav.module.scss 2:9 root stylesheet[39m[22m
|
|
134
|
-
[35m@openmrs/esm-styleguide:build: [0m<w> [1m[33m[39m[22m
|
|
135
|
-
[35m@openmrs/esm-styleguide:build: [0m
|
|
136
|
-
[35m@openmrs/esm-styleguide:build: [0m[1m[33mWARNING[39m[22m in [1masset size limit: The following asset(s) exceed the recommended size limit (244 KiB).
|
|
35
|
+
[35m@openmrs/esm-styleguide:build: [0mWARNING in asset size limit: The following asset(s) exceed the recommended size limit (244 KiB).
|
|
137
36
|
[35m@openmrs/esm-styleguide:build: [0mThis can impact web performance.
|
|
138
37
|
[35m@openmrs/esm-styleguide:build: [0mAssets:
|
|
139
|
-
[35m@openmrs/esm-styleguide:build: [0m openmrs-esm-styleguide.css (
|
|
38
|
+
[35m@openmrs/esm-styleguide:build: [0m openmrs-esm-styleguide.css (453 KiB)
|
|
39
|
+
[35m@openmrs/esm-styleguide:build: [0m openmrs-esm-styleguide.js (949 KiB)
|
|
140
40
|
[35m@openmrs/esm-styleguide:build: [0m
|
|
141
|
-
[35m@openmrs/esm-styleguide:build: [
|
|
41
|
+
[35m@openmrs/esm-styleguide:build: [0mWARNING in entrypoint size limit: The following entrypoint(s) combined asset size exceeds the recommended limit (244 KiB). This can impact web performance.
|
|
142
42
|
[35m@openmrs/esm-styleguide:build: [0mEntrypoints:
|
|
143
|
-
[35m@openmrs/esm-styleguide:build: [0m main (
|
|
43
|
+
[35m@openmrs/esm-styleguide:build: [0m main (1.37 MiB)
|
|
144
44
|
[35m@openmrs/esm-styleguide:build: [0m openmrs-esm-styleguide.css
|
|
145
45
|
[35m@openmrs/esm-styleguide:build: [0m openmrs-esm-styleguide.js
|
|
146
|
-
[35m@openmrs/esm-styleguide:build: [0m[39m[22m
|
|
147
46
|
[35m@openmrs/esm-styleguide:build: [0m
|
|
148
|
-
[35m@openmrs/esm-styleguide:build: [
|
|
47
|
+
[35m@openmrs/esm-styleguide:build: [0mWARNING in webpack performance recommendations:
|
|
149
48
|
[35m@openmrs/esm-styleguide:build: [0mYou can limit the size of your bundles by using import() or require.ensure to lazy load some parts of your application.
|
|
150
|
-
[35m@openmrs/esm-styleguide:build: [0mFor more info visit https://webpack.js.org/guides/code-splitting
|
|
49
|
+
[35m@openmrs/esm-styleguide:build: [0mFor more info visit https://webpack.js.org/guides/code-splitting/
|
|
151
50
|
[35m@openmrs/esm-styleguide:build: [0m
|
|
152
|
-
[35m@openmrs/esm-styleguide:build: [0mwebpack 5.70.0 compiled with
|
|
51
|
+
[35m@openmrs/esm-styleguide:build: [0mwebpack 5.70.0 compiled with 3 warnings in 61454 ms
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
[35m@openmrs/esm-styleguide:test: [0mcache hit, replaying output [2m6fa9425637eb8d59[0m
|
|
2
|
+
[35m@openmrs/esm-styleguide:test: [0m$ jest --config jest.config.json --passWithNoTests
|
|
3
|
+
[35m@openmrs/esm-styleguide:test: [0mPASS src/icons/svgs.test.js (12.617 s)
|
|
4
|
+
[35m@openmrs/esm-styleguide:test: [0mPASS src/error-state/error-state.test.tsx (20.356 s)
|
|
5
|
+
[35m@openmrs/esm-styleguide:test: [0m ● Console
|
|
6
|
+
[35m@openmrs/esm-styleguide:test: [0m
|
|
7
|
+
[35m@openmrs/esm-styleguide:test: [0m console.warn
|
|
8
|
+
[35m@openmrs/esm-styleguide:test: [0m Warning: The `light` prop for `Tile` is no longer needed and has been deprecated. It will be removed in the next major release. Use the Layer component instead.
|
|
9
|
+
[35m@openmrs/esm-styleguide:test: [0m
|
|
10
|
+
[35m@openmrs/esm-styleguide:test: [0m 18 |
|
|
11
|
+
[35m@openmrs/esm-styleguide:test: [0m 19 | return (
|
|
12
|
+
[35m@openmrs/esm-styleguide:test: [0m > 20 | <Tile light className={styles.tile}>
|
|
13
|
+
[35m@openmrs/esm-styleguide:test: [0m | ^
|
|
14
|
+
[35m@openmrs/esm-styleguide:test: [0m 21 | <div className={isTablet ? styles.tabletHeading : styles.desktopHeading}>
|
|
15
|
+
[35m@openmrs/esm-styleguide:test: [0m 22 | <h4>{headerTitle}</h4>
|
|
16
|
+
[35m@openmrs/esm-styleguide:test: [0m 23 | </div>
|
|
17
|
+
[35m@openmrs/esm-styleguide:test: [0m
|
|
18
|
+
[35m@openmrs/esm-styleguide:test: [0m at Object.warning (../../../node_modules/@carbon/react/lib/internal/warning.js:28:13)
|
|
19
|
+
[35m@openmrs/esm-styleguide:test: [0m at Object.checker [as light] (../../../node_modules/@carbon/react/lib/prop-types/deprecate.js:24:55)
|
|
20
|
+
[35m@openmrs/esm-styleguide:test: [0m at checkPropTypes (../../../node_modules/react/cjs/react.development.js:2053:44)
|
|
21
|
+
[35m@openmrs/esm-styleguide:test: [0m at validatePropTypes (../../../node_modules/react/cjs/react.development.js:2273:7)
|
|
22
|
+
[35m@openmrs/esm-styleguide:test: [0m at Object.createElementWithValidation [as createElement] (../../../node_modules/react/cjs/react.development.js:2377:5)
|
|
23
|
+
[35m@openmrs/esm-styleguide:test: [0m at ErrorState (src/error-state/error-state.component.tsx:20:5)
|
|
24
|
+
[35m@openmrs/esm-styleguide:test: [0m at renderWithHooks (../../../node_modules/react-dom/cjs/react-dom.development.js:16175:18)
|
|
25
|
+
[35m@openmrs/esm-styleguide:test: [0m at mountIndeterminateComponent (../../../node_modules/react-dom/cjs/react-dom.development.js:20913:13)
|
|
26
|
+
[35m@openmrs/esm-styleguide:test: [0m
|
|
27
|
+
[35m@openmrs/esm-styleguide:test: [0m
|
|
28
|
+
[35m@openmrs/esm-styleguide:test: [0mTest Suites: 2 passed, 2 total
|
|
29
|
+
[35m@openmrs/esm-styleguide:test: [0mTests: 5 passed, 5 total
|
|
30
|
+
[35m@openmrs/esm-styleguide:test: [0mSnapshots: 0 total
|
|
31
|
+
[35m@openmrs/esm-styleguide:test: [0mTime: 30.253 s
|
|
32
|
+
[35m@openmrs/esm-styleguide:test: [0mRan all test suites.
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
const React = require("react");
|
|
2
|
+
const reactI18next = require("react-i18next");
|
|
3
|
+
|
|
4
|
+
const hasChildren = (node) =>
|
|
5
|
+
node && (node.children || (node.props && node.props.children));
|
|
6
|
+
|
|
7
|
+
const getChildren = (node) =>
|
|
8
|
+
node && node.children ? node.children : node.props && node.props.children;
|
|
9
|
+
|
|
10
|
+
const renderNodes = (reactNodes) => {
|
|
11
|
+
if (typeof reactNodes === "string") {
|
|
12
|
+
return reactNodes;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
return Object.keys(reactNodes).map((key, i) => {
|
|
16
|
+
const child = reactNodes[key];
|
|
17
|
+
const isElement = React.isValidElement(child);
|
|
18
|
+
|
|
19
|
+
if (typeof child === "string") {
|
|
20
|
+
return child;
|
|
21
|
+
}
|
|
22
|
+
if (hasChildren(child)) {
|
|
23
|
+
const inner = renderNodes(getChildren(child));
|
|
24
|
+
return React.cloneElement(child, { ...child.props, key: i }, inner);
|
|
25
|
+
}
|
|
26
|
+
if (typeof child === "object" && !isElement) {
|
|
27
|
+
return Object.keys(child).reduce(
|
|
28
|
+
(str, childKey) => `${str}${child[childKey]}`,
|
|
29
|
+
""
|
|
30
|
+
);
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
return child;
|
|
34
|
+
});
|
|
35
|
+
};
|
|
36
|
+
|
|
37
|
+
const useMock = [(k) => k, {}];
|
|
38
|
+
useMock.t = (k, o) => (o && o.defaultValue) || (typeof o === "string" ? o : k);
|
|
39
|
+
useMock.i18n = { language: "en_US" };
|
|
40
|
+
|
|
41
|
+
module.exports = {
|
|
42
|
+
// this mock makes sure any components using the translate HoC receive the t function as a prop
|
|
43
|
+
Trans: ({ children }) => renderNodes(children),
|
|
44
|
+
Translation: ({ children }) => children((k) => k, { i18n: {} }),
|
|
45
|
+
useTranslation: () => useMock,
|
|
46
|
+
|
|
47
|
+
// mock if needed
|
|
48
|
+
I18nextProvider: reactI18next.I18nextProvider,
|
|
49
|
+
initReactI18next: reactI18next.initReactI18next,
|
|
50
|
+
setDefaults: reactI18next.setDefaults,
|
|
51
|
+
getDefaults: reactI18next.getDefaults,
|
|
52
|
+
setI18n: reactI18next.setI18n,
|
|
53
|
+
getI18n: reactI18next.getI18n,
|
|
54
|
+
};
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|