@openmrs/esm-offline-tools-app 6.2.1-pre.2830 → 6.2.1-pre.2836

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 (60) hide show
  1. package/.turbo/turbo-build.log +17 -17
  2. package/dist/254.js +2 -0
  3. package/dist/254.js.map +1 -0
  4. package/dist/645.js +1 -1
  5. package/dist/645.js.map +1 -1
  6. package/dist/657.js +1 -1
  7. package/dist/657.js.map +1 -1
  8. package/dist/720.js +2 -0
  9. package/dist/{601.js.LICENSE.txt → 720.js.LICENSE.txt} +5 -0
  10. package/dist/720.js.map +1 -0
  11. package/dist/818.js +1 -0
  12. package/dist/818.js.map +1 -0
  13. package/dist/88.js +2 -0
  14. package/dist/{703.js.LICENSE.txt → 88.js.LICENSE.txt} +2 -2
  15. package/dist/88.js.map +1 -0
  16. package/dist/889.js +1 -1
  17. package/dist/889.js.map +1 -1
  18. package/dist/main.js +1 -1
  19. package/dist/main.js.LICENSE.txt +2 -2
  20. package/dist/main.js.map +1 -1
  21. package/dist/openmrs-esm-offline-tools-app.js +1 -1
  22. package/dist/openmrs-esm-offline-tools-app.js.buildmanifest.json +120 -120
  23. package/dist/openmrs-esm-offline-tools-app.js.map +1 -1
  24. package/dist/routes.json +1 -1
  25. package/package.json +5 -5
  26. package/src/components/headered-quick-info.component.tsx +1 -2
  27. package/src/components/headered-quick-info.styles.scss +11 -1
  28. package/src/components/overview-card.styles.scss +10 -6
  29. package/src/components/shared-page-layout.styles.scss +8 -3
  30. package/src/home/cards-container.styles.scss +4 -5
  31. package/src/home/home.styles.scss +3 -4
  32. package/src/nav/desktop-side-nav.component.tsx +2 -2
  33. package/src/nav/desktop-side-nav.styles.scss +24 -19
  34. package/src/offline-actions/no-actions-empty-state.styles.scss +8 -4
  35. package/src/offline-actions/offline-actions-mode-button.scss +3 -3
  36. package/src/offline-actions/offline-actions-page.component.tsx +1 -1
  37. package/src/offline-actions/offline-actions-page.styles.scss +6 -6
  38. package/src/offline-actions/offline-actions-patient-chart-widget.styles.scss +6 -7
  39. package/src/offline-actions/offline-actions-table.component.tsx +1 -1
  40. package/src/offline-actions/offline-actions-table.styles.scss +3 -3
  41. package/src/offline-actions/synchronizing-notification.styles.scss +3 -3
  42. package/src/offline-actions/synchronizing-notification.tsx +2 -2
  43. package/src/offline-patients/empty-state.scss +9 -9
  44. package/src/offline-patients/last-updated-table-cell.scss +3 -4
  45. package/src/offline-patients/offline-patient-sync-details.styles.scss +22 -9
  46. package/src/offline-patients/offline-patient-table.scss +5 -6
  47. package/src/offline-patients/offline-patients.styles.scss +3 -3
  48. package/src/offline-patients/patient-name-table-cell.scss +3 -3
  49. package/src/root.component.tsx +2 -2
  50. package/src/root.styles.scss +1 -1
  51. package/dist/601.js +0 -2
  52. package/dist/601.js.map +0 -1
  53. package/dist/642.js +0 -1
  54. package/dist/642.js.map +0 -1
  55. package/dist/703.js +0 -2
  56. package/dist/703.js.map +0 -1
  57. package/dist/947.js +0 -2
  58. package/dist/947.js.map +0 -1
  59. package/src/root.scss +0 -31
  60. /package/dist/{947.js.LICENSE.txt → 254.js.LICENSE.txt} +0 -0
@@ -1,11 +1,16 @@
1
- @use '@carbon/styles/scss/spacing';
2
- @import '../root.scss';
1
+ @use '@carbon/layout';
2
+ @use '@carbon/type';
3
+ @use '@openmrs/esm-styleguide/src/vars' as *;
4
+
5
+ .productiveHeading03 {
6
+ @include type.type-style('heading-03');
7
+ }
3
8
 
4
9
  .pageHeaderContainer {
5
10
  display: flex;
6
11
  justify-content: space-between;
7
12
  align-items: center;
8
- padding: spacing.$spacing-05;
13
+ padding: layout.$spacing-05;
9
14
  background-color: #ededed;
10
15
 
11
16
  .pageHeader {
@@ -1,12 +1,11 @@
1
- @use '@carbon/styles/scss/spacing';
2
- @import '../root.scss';
1
+ @use '@carbon/layout';
3
2
 
4
3
  .overviewCardContainer {
5
4
  display: grid;
6
5
  grid-template-columns: repeat(2, 1fr);
7
- gap: spacing.$spacing-05;
8
- padding: spacing.$spacing-05;
9
- padding-top: 0rem;
6
+ gap: layout.$spacing-05;
7
+ padding: layout.$spacing-05;
8
+ padding-top: 0;
10
9
  background-color: #ededed;
11
10
  }
12
11
 
@@ -1,8 +1,7 @@
1
- @use '@carbon/styles/scss/spacing';
2
- @import '~@openmrs/esm-styleguide/src/vars';
3
- @import '../root.scss';
1
+ @use '@carbon/layout';
2
+ @use '@openmrs/esm-styleguide/src/vars' as *;
4
3
 
5
4
  .offlinePatientsTableContainer {
6
5
  border-top: 1px solid $ui-03;
7
- padding: spacing.$spacing-05;
6
+ padding: layout.$spacing-05;
8
7
  }
@@ -1,6 +1,6 @@
1
- import { attach, detach, ExtensionSlot, isDesktop, useLayoutType } from '@openmrs/esm-framework';
2
- import { SideNav } from '@carbon/react';
3
1
  import React, { useEffect } from 'react';
2
+ import { SideNav } from '@carbon/react';
3
+ import { attach, detach, ExtensionSlot, isDesktop, useLayoutType } from '@openmrs/esm-framework';
4
4
  import styles from './desktop-side-nav.styles.scss';
5
5
 
6
6
  const DesktopSideNav: React.FC = () => {
@@ -1,33 +1,38 @@
1
- @import '~@openmrs/esm-styleguide/src/vars';
2
- @import '../root.scss';
1
+ @use '@carbon/layout';
2
+ @use '@carbon/type';
3
+ @use '@openmrs/esm-styleguide/src/vars' as *;
4
+
5
+ .productiveHeading01 {
6
+ @include type.type-style('heading-compact-01');
7
+ }
3
8
 
4
9
  .link > div a:nth-child(1) {
5
- height: 3rem;
6
- padding: 1.5rem 0 1.5rem 1.2rem;
10
+ height: layout.$spacing-09;
11
+ padding: layout.$spacing-06 0 layout.$spacing-06 1.2rem;
7
12
  color: $ui-04;
8
13
  @extend .productiveHeading01;
9
- border-left: 0.25rem solid transparent;
10
- }
14
+ border-left: layout.$spacing-02 solid transparent;
11
15
 
12
- .link > div a:nth-child(1):hover {
13
- background-color: $ui-03;
14
- color: $ui-05;
15
- @include brand-01(border-left-color);
16
- }
16
+ &:hover {
17
+ background-color: $ui-03;
18
+ color: $ui-05;
19
+ @include brand-01(border-left-color);
20
+ }
17
21
 
18
- .link > div a:nth-child(1):focus {
19
- background-color: $ui-03;
20
- outline: none;
21
- color: $ui-05;
22
- @include brand-01(border-left-color);
22
+ &:focus {
23
+ background-color: $ui-03;
24
+ outline: none;
25
+ color: $ui-05;
26
+ @include brand-01(border-left-color);
27
+ }
23
28
  }
24
29
 
25
30
  :global(.omrs-breakpoint-gt-tablet) .link > div {
26
- padding-top: 1rem;
31
+ padding-top: layout.$spacing-05;
27
32
  }
28
33
 
29
34
  :global(.omrs-breakpoint-gt-tablet) .link > div a:nth-child(1) {
30
- height: 2rem;
35
+ height: layout.$spacing-07;
31
36
  color: $ui-04;
32
- padding: 0 0 0 1rem;
37
+ padding: 0 0 0 layout.$spacing-05;
33
38
  }
@@ -1,9 +1,13 @@
1
- @use '@carbon/styles/scss/spacing';
2
- @use '@carbon/styles/scss/type';
3
- @import '../root.scss';
1
+ @use '@carbon/layout';
2
+ @use '@carbon/type';
3
+ @use '@openmrs/esm-styleguide/src/vars' as *;
4
+
5
+ .productiveHeading01 {
6
+ @include type.type-style('heading-compact-01');
7
+ }
4
8
 
5
9
  .layer {
6
- margin: spacing.$spacing-06;
10
+ margin: layout.$spacing-06;
7
11
  }
8
12
 
9
13
  .emptyStateContainer {
@@ -1,5 +1,5 @@
1
- @import '~@openmrs/esm-styleguide/src/vars';
2
- @import '../root.scss';
1
+ @use '@carbon/layout';
2
+ @use '@openmrs/esm-styleguide/src/vars' as *;
3
3
 
4
4
  .panelItemContainer a {
5
5
  display: flex;
@@ -13,7 +13,7 @@
13
13
  :global(.cds--toggle) {
14
14
  /* setting the width prevents the toggle from changing size when the text changes */
15
15
  width: 76px;
16
- margin: 0 1rem;
16
+ margin: 0 layout.$spacing-05;
17
17
  }
18
18
 
19
19
  :global(.cds--toggle__text) {
@@ -11,8 +11,8 @@ import { Button } from '@carbon/react';
11
11
  import { Renew } from '@carbon/react/icons';
12
12
  import { useTranslation } from 'react-i18next';
13
13
  import { usePendingSyncItems } from '../hooks/offline-actions';
14
- import SharedPageLayout from '../components/shared-page-layout.component';
15
14
  import OfflineActions from './offline-actions.component';
15
+ import SharedPageLayout from '../components/shared-page-layout.component';
16
16
  import styles from './offline-actions-page.styles.scss';
17
17
 
18
18
  const OfflineActionsPage: React.FC = () => {
@@ -1,14 +1,14 @@
1
- @use '@carbon/styles/scss/spacing';
2
- @import '../root.scss';
1
+ @use '@carbon/layout';
2
+ @use '@openmrs/esm-styleguide/src/vars' as *;
3
3
 
4
4
  .buttonInlineIcon {
5
- margin-right: spacing.$spacing-05;
5
+ margin-right: layout.$spacing-05;
6
6
  }
7
7
 
8
8
  :global(.omrs-breakpoint-lt-small-desktop) .primaryActionButton {
9
9
  position: fixed;
10
- bottom: spacing.$spacing-05;
11
- right: spacing.$spacing-05;
10
+ bottom: layout.$spacing-05;
11
+ right: layout.$spacing-05;
12
12
  border-radius: 100vh;
13
- padding-right: spacing.$spacing-05;
13
+ padding-right: layout.$spacing-05;
14
14
  }
@@ -1,7 +1,6 @@
1
- @use '@carbon/styles/scss/spacing';
2
- @use '@carbon/styles/scss/type';
3
- @import '~@openmrs/esm-styleguide/src/vars';
4
- @import '../root.scss';
1
+ @use '@carbon/layout';
2
+ @use '@carbon/type';
3
+ @use '@openmrs/esm-styleguide/src/vars' as *;
5
4
 
6
5
  .widgetCard {
7
6
  background-color: $ui-background;
@@ -14,7 +13,7 @@
14
13
  display: flex;
15
14
  justify-content: space-between;
16
15
  align-items: center;
17
- padding: spacing.$spacing-04 0 spacing.$spacing-04 spacing.$spacing-05;
16
+ padding: layout.$spacing-04 0 layout.$spacing-04 layout.$spacing-05;
18
17
  background-color: $ui-background;
19
18
 
20
19
  h4 {
@@ -23,7 +22,7 @@
23
22
  &:after {
24
23
  content: '';
25
24
  display: block;
26
- width: 2rem;
25
+ width: layout.$spacing-07;
27
26
  padding-top: 0.188rem;
28
27
  border-bottom: 0.375rem solid var(--brand-03);
29
28
  }
@@ -31,7 +30,7 @@
31
30
  }
32
31
 
33
32
  .desktopHeader {
34
- height: 3rem;
33
+ height: layout.$spacing-09;
35
34
 
36
35
  h4 {
37
36
  @include type.type-style('heading-compact-02');
@@ -19,7 +19,6 @@ import {
19
19
  TableSelectAll,
20
20
  TableSelectRow,
21
21
  } from '@carbon/react';
22
- import type { SyncItem } from '@openmrs/esm-framework';
23
22
  import {
24
23
  beginEditSynchronizationItem,
25
24
  canBeginEditSynchronizationItemsOfType,
@@ -28,6 +27,7 @@ import {
28
27
  navigate,
29
28
  useLayoutType,
30
29
  usePagination,
30
+ type SyncItem,
31
31
  } from '@openmrs/esm-framework';
32
32
  import styles from './offline-actions-table.styles.scss';
33
33
 
@@ -1,5 +1,5 @@
1
- @use '@carbon/styles/scss/spacing';
2
- @import '../root.scss';
1
+ @use '@carbon/layout';
2
+ @use '@openmrs/esm-styleguide/src/vars' as *;
3
3
 
4
4
  .tableContainer {
5
5
  background-color: transparent;
@@ -9,7 +9,7 @@
9
9
  display: grid;
10
10
  grid-template-rows: auto auto;
11
11
  grid-template-columns: 1fr 1fr auto;
12
- padding-top: spacing.$spacing-05;
12
+ padding-top: layout.$spacing-05;
13
13
 
14
14
  .tableSearch {
15
15
  grid-row: 2;
@@ -1,9 +1,9 @@
1
- @use '@carbon/styles/scss/spacing';
2
- @import '../root.scss';
1
+ @use '@carbon/layout';
2
+ @use '@openmrs/esm-styleguide/src/vars' as *;
3
3
 
4
4
  .notificationLoadingContainer {
5
5
  display: flex;
6
- gap: spacing.$spacing-03;
6
+ gap: layout.$spacing-03;
7
7
  justify-content: space-between;
8
8
  align-items: center;
9
9
  }
@@ -1,8 +1,8 @@
1
1
  import React, { useEffect, useState } from 'react';
2
+ import { Loading, NotificationActionButton } from '@carbon/react';
3
+ import { getI18n, useTranslation } from 'react-i18next';
2
4
  import type { OfflineSynchronizationStore } from '@openmrs/esm-framework/src/internal';
3
5
  import { getOfflineSynchronizationStore, showNotification, useStore } from '@openmrs/esm-framework/src/internal';
4
- import { getI18n, useTranslation } from 'react-i18next';
5
- import { Loading, NotificationActionButton } from '@carbon/react';
6
6
  import styles from './synchronizing-notification.styles.scss';
7
7
 
8
8
  let showNewModalOnNextSynchronization = true;
@@ -1,16 +1,16 @@
1
- @use '@carbon/styles/scss/spacing';
2
- @use '@carbon/styles/scss/type';
3
- @import '../root.scss';
1
+ @use '@carbon/layout';
2
+ @use '@carbon/type';
3
+ @use '@openmrs/esm-styleguide/src/vars' as *;
4
4
 
5
5
  .action {
6
- margin-bottom: spacing.$spacing-03;
6
+ margin-bottom: layout.$spacing-03;
7
7
  }
8
8
 
9
9
  .content {
10
10
  @include type.type-style('heading-compact-01');
11
11
  color: $text-02;
12
- margin-top: spacing.$spacing-05;
13
- margin-bottom: spacing.$spacing-03;
12
+ margin-top: layout.$spacing-05;
13
+ margin-bottom: layout.$spacing-03;
14
14
  }
15
15
 
16
16
  .desktopHeading {
@@ -31,12 +31,12 @@
31
31
  .tabletHeading {
32
32
  text-align: left;
33
33
  text-transform: capitalize;
34
- margin-bottom: spacing.$spacing-05;
34
+ margin-bottom: layout.$spacing-05;
35
35
 
36
36
  h4:after {
37
37
  content: '';
38
38
  display: block;
39
- width: 2rem;
39
+ width: layout.$spacing-07;
40
40
  padding-top: 0.188rem;
41
41
  border-bottom: 0.375rem solid var(--brand-03);
42
42
  }
@@ -45,7 +45,7 @@
45
45
  .heading:after {
46
46
  content: '';
47
47
  display: block;
48
- width: 2rem;
48
+ width: layout.$spacing-07;
49
49
  padding-top: 0.188rem;
50
50
  border-bottom: 0.375rem solid var(--brand-03);
51
51
  }
@@ -1,6 +1,5 @@
1
- @use '@carbon/styles/scss/spacing';
2
- @import '~@openmrs/esm-styleguide/src/vars';
3
- @import '../root.scss';
1
+ @use '@carbon/layout';
2
+ @use '@openmrs/esm-styleguide/src/vars' as *;
4
3
 
5
4
  .errorIcon {
6
5
  color: $danger;
@@ -13,5 +12,5 @@
13
12
  .cellContainer {
14
13
  display: flex;
15
14
  align-items: center;
16
- gap: spacing.$spacing-02;
15
+ gap: layout.$spacing-02;
17
16
  }
@@ -1,17 +1,30 @@
1
- @use '@carbon/styles/scss/spacing';
2
- @import '~@openmrs/esm-styleguide/src/vars';
3
- @import '../root.scss';
1
+ @use '@carbon/layout';
2
+ @use '@carbon/type';
3
+ @use '@openmrs/esm-styleguide/src/vars' as *;
4
+
5
+ .productiveHeading02 {
6
+ @include type.type-style('heading-compact-02');
7
+ }
8
+
9
+ .bodyShort01 {
10
+ @include type.type-style('body-compact-01');
11
+ }
12
+
13
+ .label01 {
14
+ @include type.type-style('label-01');
15
+ color: $text-02;
16
+ }
4
17
 
5
18
  .contentContainer {
6
- padding: 0 spacing.$spacing-05;
19
+ padding: 0 layout.$spacing-05;
7
20
  max-width: 800px;
8
21
  }
9
22
 
10
23
  .headeredTileSection {
11
- margin-bottom: spacing.$spacing-09;
24
+ margin-bottom: layout.$spacing-09;
12
25
 
13
26
  .productiveHeading02 {
14
- margin-bottom: spacing.$spacing-03;
27
+ margin-bottom: layout.$spacing-03;
15
28
  }
16
29
  }
17
30
 
@@ -19,16 +32,16 @@
19
32
  display: flex;
20
33
  justify-content: space-between;
21
34
  align-items: center;
22
- margin-bottom: spacing.$spacing-03;
35
+ margin-bottom: layout.$spacing-03;
23
36
  }
24
37
 
25
38
  .failedTile {
26
- margin-bottom: spacing.$spacing-03;
39
+ margin-bottom: layout.$spacing-03;
27
40
  display: grid;
28
41
  grid-template-rows: 1fr 1fr;
29
42
  grid-template-columns: 1fr auto;
30
43
  align-items: center;
31
- row-gap: spacing.$spacing-05;
44
+ row-gap: layout.$spacing-05;
32
45
  }
33
46
 
34
47
  .failedTileErrorMessage {
@@ -1,7 +1,6 @@
1
- @use '@carbon/styles/scss/spacing';
2
- @use '@carbon/styles/scss/type';
3
- @import '~@openmrs/esm-styleguide/src/vars';
4
- @import '../root.scss';
1
+ @use '@carbon/layout';
2
+ @use '@carbon/type';
3
+ @use '@openmrs/esm-styleguide/src/vars' as *;
5
4
 
6
5
  .tableContainer {
7
6
  background-color: transparent;
@@ -15,7 +14,7 @@
15
14
  .tableHeader {
16
15
  @include type.type-style('heading-compact-02');
17
16
  color: $text-02;
18
- padding: spacing.$spacing-04 0 spacing.$spacing-04 spacing.$spacing-04;
17
+ padding: layout.$spacing-04 0 layout.$spacing-04 layout.$spacing-04;
19
18
  grid-row: 1;
20
19
  grid-column: 1 / span 4;
21
20
  }
@@ -44,7 +43,7 @@
44
43
 
45
44
  .tableHeader {
46
45
  grid-column: 1;
47
- padding: spacing.$spacing-04 0 spacing.$spacing-02 spacing.$spacing-04;
46
+ padding: layout.$spacing-04 0 layout.$spacing-02 layout.$spacing-04;
48
47
  }
49
48
 
50
49
  .tableSearch {
@@ -1,6 +1,6 @@
1
- @use '@carbon/styles/scss/spacing';
2
- @import '../root.scss';
1
+ @use '@carbon/layout';
2
+ @use '@openmrs/esm-styleguide/src/vars' as *;
3
3
 
4
4
  .contentContainer {
5
- padding: 0 spacing.$spacing-05;
5
+ padding: 0 layout.$spacing-05;
6
6
  }
@@ -1,8 +1,8 @@
1
- @use '@carbon/styles/scss/spacing';
2
- @import '../root.scss';
1
+ @use '@carbon/layout';
2
+ @use '@openmrs/esm-styleguide/src/vars' as *;
3
3
 
4
4
  .cellContainer {
5
5
  display: flex;
6
6
  align-items: center;
7
- column-gap: spacing.$spacing-03;
7
+ column-gap: layout.$spacing-03;
8
8
  }
@@ -1,8 +1,8 @@
1
1
  import React from 'react';
2
- import classNames from 'classnames';
3
2
  import { BrowserRouter, Route, Routes } from 'react-router-dom';
4
- import Home from './home/home.component';
3
+ import classNames from 'classnames';
5
4
  import DesktopSideNav from './nav/desktop-side-nav.component';
5
+ import Home from './home/home.component';
6
6
  import OfflineToolsPage from './offline-tools-page/offline-tools-page.component';
7
7
  import styles from './root.styles.scss';
8
8
 
@@ -1,4 +1,4 @@
1
- @import './root.scss';
1
+ @use '@openmrs/esm-styleguide/src/vars' as *;
2
2
 
3
3
  :global(.omrs-breakpoint-gt-tablet) .mainContentContainer {
4
4
  margin-left: var(--omrs-sidenav-width);