@openmrs/esm-styleguide 8.0.1-pre.3585 → 8.0.1-pre.3592

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 (59) hide show
  1. package/.turbo/turbo-build.log +4 -4
  2. package/dist/empty-card/empty-card.component.d.ts +13 -0
  3. package/dist/empty-card/index.d.ts +1 -0
  4. package/dist/error-card/error-card.component.d.ts +11 -0
  5. package/dist/error-card/index.d.ts +1 -0
  6. package/dist/internal.d.ts +4 -0
  7. package/dist/openmrs-esm-styleguide.css +1 -1
  8. package/dist/openmrs-esm-styleguide.css.map +1 -1
  9. package/dist/openmrs-esm-styleguide.js +2 -2
  10. package/dist/openmrs-esm-styleguide.js.map +1 -1
  11. package/dist/pagination/index.d.ts +1 -0
  12. package/dist/pagination/pagination.component.d.ts +22 -0
  13. package/dist/public.d.ts +20 -18
  14. package/dist/snackbars/index.d.ts +1 -0
  15. package/dist/toasts/index.d.ts +1 -0
  16. package/package.json +12 -12
  17. package/src/cards/card-header.component.tsx +30 -0
  18. package/src/cards/card-header.module.scss +45 -0
  19. package/src/cards/index.ts +1 -0
  20. package/src/declarations.d.ts +14 -2
  21. package/src/empty-card/empty-card-registration.ts +6 -0
  22. package/src/empty-card/empty-card.component.tsx +55 -0
  23. package/src/empty-card/empty-card.module.scss +27 -0
  24. package/src/empty-card/empty-card.test.tsx +58 -0
  25. package/src/empty-card/empty-data-illustration.svg +32 -0
  26. package/src/empty-card/index.ts +1 -0
  27. package/src/error-card/error-card.component.tsx +35 -0
  28. package/src/error-card/error-card.module.scss +21 -0
  29. package/src/error-card/error-card.test.tsx +25 -0
  30. package/src/error-card/index.ts +1 -0
  31. package/src/index.ts +5 -3
  32. package/src/internal.ts +4 -0
  33. package/src/pagination/index.ts +1 -0
  34. package/src/pagination/pagination.component.tsx +77 -0
  35. package/src/pagination/pagination.module.scss +66 -0
  36. package/src/pagination/pagination.test.tsx +72 -0
  37. package/src/public.ts +20 -18
  38. package/src/snackbars/index.tsx +2 -0
  39. package/src/toasts/index.tsx +2 -0
  40. package/dist/brand.d.ts +0 -1
  41. package/dist/breakpoints/index.d.ts +0 -11
  42. package/dist/config-schema.d.ts +0 -23
  43. package/dist/custom-overflow-menu/custom-overflow-menu.component.d.ts +0 -8
  44. package/dist/custom-overflow-menu/index.d.ts +0 -1
  45. package/dist/datepicker/DatePickerIcon.d.ts +0 -6
  46. package/dist/datepicker/DatePickerInput.d.ts +0 -11
  47. package/dist/datepicker/MonthYear.d.ts +0 -10
  48. package/dist/datepicker/locale-context.d.ts +0 -2
  49. package/dist/datepicker/utils.d.ts +0 -15
  50. package/dist/icons/icon-registration.d.ts +0 -1
  51. package/dist/icons/icons.d.ts +0 -329
  52. package/dist/icons/index.d.ts +0 -1
  53. package/dist/index.d.ts +0 -1
  54. package/dist/logo/index.d.ts +0 -1
  55. package/dist/pictograms/pictogram-registration.d.ts +0 -1
  56. package/dist/pictograms/pictograms.d.ts +0 -64
  57. package/dist/svg-utils.d.ts +0 -1
  58. package/dist/utils.d.ts +0 -6
  59. package/dist/workspaces2/workspace2-close-prompt.modal.d.ts +0 -11
@@ -3,12 +3,12 @@
3
3
  [0] Why you should do it regularly: https://github.com/browserslist/update-db#readme
4
4
  [0] WARNING in ⚠ asset size limit: The following asset(s) exceed the recommended size limit (244.141 KiB). This can impact web performance.
5
5
  [0] │ Assets:
6
- [0] │ openmrs-esm-styleguide.js (248.469 KiB)
7
- [0] │ openmrs-esm-styleguide.css (3.262 MiB)
6
+ [0] │ openmrs-esm-styleguide.js (249.951 KiB)
7
+ [0] │ openmrs-esm-styleguide.css (3.266 MiB)
8
8
  [0]
9
9
  [0] WARNING in ⚠ entrypoint size limit: The following entrypoint(s) combined asset size exceeds the recommended limit (244.141 KiB). This can impact web performance.
10
10
  [0] │ Entrypoints:
11
- [0] │ main (3.505 MiB)
11
+ [0] │ main (3.510 MiB)
12
12
  [0] │ openmrs-esm-styleguide.css
13
13
  [0] │ openmrs-esm-styleguide.js
14
14
  [0]
@@ -16,6 +16,6 @@
16
16
  [0] │ You can limit the size of your bundles by using import() to lazy load some parts of your application.
17
17
  [0] │ For more info visit https://www.rspack.dev/guide/optimization/code-splitting
18
18
  [0]
19
- [0] Rspack compiled with 3 warnings in 10.22 s
19
+ [0] Rspack compiled with 3 warnings in 10.40 s
20
20
  [0] rspack --mode=production exited with code 0
21
21
  [1] tsc --project tsconfig.build.json exited with code 0
@@ -0,0 +1,13 @@
1
+ import React from 'react';
2
+ export interface EmptyCardProps {
3
+ /** The name of the type of item that would be displayed here if not empty. This must be a pre-translated string. */
4
+ displayText: string;
5
+ /** The title to use for this empty component. This must be a pre-translated string. */
6
+ headerTitle: string;
7
+ /** A callback to invoke when the user tries to record a new item. */
8
+ launchForm?(): void;
9
+ }
10
+ /**
11
+ * Re-usable card for displaying an empty state
12
+ */
13
+ export declare const EmptyCard: React.FC<EmptyCardProps>;
@@ -0,0 +1 @@
1
+ export { EmptyCard, type EmptyCardProps } from './empty-card.component';
@@ -0,0 +1,11 @@
1
+ import React from 'react';
2
+ export interface ErrorCardProps {
3
+ /** This is the error that triggered rendering the card. It is expected to be the error returned from `openmrsFetch()` */
4
+ error: any;
5
+ /** The title for this card. This must be a pre-translated string. */
6
+ headerTitle: string;
7
+ }
8
+ /**
9
+ * Re-usable card for displaying a fetch error
10
+ */
11
+ export declare const ErrorCard: React.FC<ErrorCardProps>;
@@ -0,0 +1 @@
1
+ export { ErrorCard, type ErrorCardProps } from './error-card.component';
@@ -1,9 +1,12 @@
1
1
  export * from './breakpoints';
2
+ export * from './cards';
2
3
  export * from './config-schema';
3
4
  export * from './custom-overflow-menu';
4
5
  export * from './dashboard-extension';
5
6
  export * from './datepicker';
6
7
  export * from './diagnosis-tags';
8
+ export * from './empty-card';
9
+ export * from './error-card';
7
10
  export * from './error-state';
8
11
  export * from './icons/icons';
9
12
  export * from './left-nav';
@@ -13,6 +16,7 @@ export * from './notifications';
13
16
  export * from './notifications/actionable-notification.component';
14
17
  export * from './notifications/notification.component';
15
18
  export * from './page-header';
19
+ export * from './pagination';
16
20
  export * from './patient-banner';
17
21
  export * from './patient-photo';
18
22
  export * from './pictograms/pictograms';