@openmrs/esm-user-onboarding-app 4.0.1-pre.275 → 4.0.1-pre.278

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/dist/routes.json CHANGED
@@ -1 +1 @@
1
- {"$schema":"https://json.openmrs.org/routes.schema.json","backendDependencies":{"fhir2":">=1.2","webservices.rest":">=2.2.0"},"extensions":[{"name":"tutorials","slot":"help-menu-slot","component":"tutorial","online":true,"offline":true}],"modals":[{"name":"tutorial-modal","component":"tutorialModal"}],"pages":[{"component":"root","route":true}],"version":"4.0.1-pre.275"}
1
+ {"$schema":"https://json.openmrs.org/routes.schema.json","backendDependencies":{"fhir2":">=1.2","webservices.rest":">=2.2.0"},"extensions":[{"name":"tutorials","slot":"help-menu-slot","component":"tutorial","online":true,"offline":true}],"modals":[{"name":"tutorial-modal","component":"tutorialModal"}],"pages":[{"component":"root","route":true}],"version":"4.0.1-pre.278"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openmrs/esm-user-onboarding-app",
3
- "version": "4.0.1-pre.275",
3
+ "version": "4.0.1-pre.278",
4
4
  "license": "MPL-2.0",
5
5
  "description": "An OpenMRS microfrontend for user onboarding walkthroughs",
6
6
  "browser": "dist/openmrs-esm-user-onboarding-app.js",
@@ -1,6 +1,3 @@
1
- declare module '@carbon/react';
2
1
  declare module '*.css';
3
2
  declare module '*.scss';
4
3
  declare module '*.png';
5
-
6
- declare type SideNavProps = object;
@@ -31,7 +31,13 @@ const CustomTooltip: React.FC<CustomTooltipProps> = ({
31
31
  <h4 className={styles.tooltiptitle}>{step.title}</h4>
32
32
  <div className={styles.tooltipcontent}>{step.content}</div>
33
33
  </div>
34
- <Button {...skipProps} size="sm" kind="ghost" className={styles.closeButton}>
34
+ <Button
35
+ onClick={skipProps.onClick}
36
+ aria-label={skipProps['aria-label']}
37
+ size="sm"
38
+ kind="ghost"
39
+ className={styles.closeButton}
40
+ >
35
41
  <Close />
36
42
  </Button>
37
43
  </div>
@@ -39,7 +45,13 @@ const CustomTooltip: React.FC<CustomTooltipProps> = ({
39
45
  <span className={styles.tooltipstep}>{`${index + 1} of ${totalSteps}`}</span>
40
46
  <div className={styles.buttonContainer}>
41
47
  {!step.hideBackButton && index > 0 && (
42
- <Button {...backProps} size="sm" kind="ghost" className={styles.buttonback}>
48
+ <Button
49
+ onClick={backProps.onClick}
50
+ aria-label={backProps['aria-label']}
51
+ size="sm"
52
+ kind="ghost"
53
+ className={styles.buttonback}
54
+ >
43
55
  <div className={styles.arrowLeft}>
44
56
  <ArrowLeft />
45
57
  </div>
@@ -47,7 +59,12 @@ const CustomTooltip: React.FC<CustomTooltipProps> = ({
47
59
  </Button>
48
60
  )}
49
61
  {continuous && !step.hideNextButton && (
50
- <Button {...primaryProps} size="sm" className={styles.buttonnext}>
62
+ <Button
63
+ onClick={primaryProps.onClick}
64
+ aria-label={primaryProps['aria-label']}
65
+ size="sm"
66
+ className={styles.buttonnext}
67
+ >
51
68
  {isLastStep ? (
52
69
  <>{t('finish', 'Finish')}</>
53
70
  ) : (