@luscii-healthtech/web-ui 2.56.3 → 2.57.0

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,5 +1,6 @@
1
+ import React from "react";
1
2
  export interface NavMenuLayoutProps {
2
- menu: JSX.Element;
3
+ menu: React.ReactNode;
3
4
  children: JSX.Element | JSX.Element[];
4
5
  patientSidebar?: JSX.Element;
5
6
  isNavDisabled?: boolean;
@@ -1,43 +1,22 @@
1
+ import React from "react";
2
+ import { StepsProps } from "../Steps/Steps";
3
+ import { ButtonProps } from "../Button/Button.types";
4
+ declare type CRUDPageButtonProps = Pick<ButtonProps, "onClick" | "text">;
5
+ declare type CRUDPageProps = {
6
+ dataTestId?: string;
7
+ title: string;
8
+ submitButtonProps?: CRUDPageButtonProps;
9
+ deleteButtonProps?: CRUDPageButtonProps;
10
+ cancelButtonProps?: CRUDPageButtonProps;
11
+ icon?: string;
12
+ className?: string;
13
+ isLoading?: boolean;
14
+ isSubmitting?: boolean;
15
+ navMenuComponent?: React.ReactNode;
16
+ stepTitles?: StepsProps["orderedStepTitles"];
17
+ currentStep?: StepsProps["currentStep"];
18
+ localization?: StepsProps["localization"];
19
+ children?: React.ReactNode;
20
+ };
21
+ declare const CRUDPage: React.FC<CRUDPageProps>;
1
22
  export default CRUDPage;
2
- declare function CRUDPage({ dataTestId, title, stepTitles, currentStep, submitButtonProps, deleteButtonProps, cancelButtonProps, icon, className, children, isLoading, isSubmitting, navMenuComponent, localization, }: {
3
- dataTestId?: string | undefined;
4
- title: any;
5
- stepTitles: any;
6
- currentStep?: number | undefined;
7
- submitButtonProps: any;
8
- deleteButtonProps: any;
9
- cancelButtonProps: any;
10
- icon: any;
11
- className: any;
12
- children: any;
13
- isLoading: any;
14
- isSubmitting: any;
15
- navMenuComponent: any;
16
- localization: any;
17
- }): JSX.Element;
18
- declare namespace CRUDPage {
19
- namespace propTypes {
20
- const isLoading: PropTypes.Requireable<boolean>;
21
- const title: PropTypes.Validator<string>;
22
- const stepTitles: PropTypes.Requireable<any[]>;
23
- const currentStep: PropTypes.Requireable<number>;
24
- const submitButtonProps: PropTypes.Requireable<PropTypes.InferProps<{
25
- name: PropTypes.Requireable<string>;
26
- handler: PropTypes.Requireable<(...args: any[]) => any>;
27
- }>>;
28
- const deleteButtonProps: PropTypes.Requireable<PropTypes.InferProps<{
29
- name: PropTypes.Requireable<string>;
30
- handler: PropTypes.Requireable<(...args: any[]) => any>;
31
- }>>;
32
- const cancelButtonProps: PropTypes.Requireable<PropTypes.InferProps<{
33
- name: PropTypes.Requireable<string>;
34
- handler: PropTypes.Requireable<(...args: any[]) => any>;
35
- }>>;
36
- const className: PropTypes.Requireable<string>;
37
- const icon: PropTypes.Requireable<string>;
38
- const isSubmitting: PropTypes.Requireable<boolean>;
39
- const navMenuComponent: PropTypes.Requireable<PropTypes.ReactComponentLike>;
40
- const localization: PropTypes.Requireable<object>;
41
- }
42
- }
43
- import PropTypes from "prop-types";
@@ -1,4 +1,4 @@
1
- interface StepsProps {
1
+ export interface StepsProps {
2
2
  orderedStepTitles: Array<string>;
3
3
  currentStep: number;
4
4
  className?: string;
@@ -7,4 +7,3 @@ interface StepsProps {
7
7
  };
8
8
  }
9
9
  export declare const Steps: ({ orderedStepTitles, currentStep, className, localization, }: StepsProps) => JSX.Element;
10
- export {};
@@ -1422,6 +1422,10 @@ video {
1422
1422
  margin: 0.5rem;
1423
1423
  }
1424
1424
 
1425
+ .m-auto {
1426
+ margin: auto;
1427
+ }
1428
+
1425
1429
  .my-0 {
1426
1430
  margin-top: 0;
1427
1431
  margin-bottom: 0;
@@ -1452,6 +1456,10 @@ video {
1452
1456
  margin-right: -0.25rem;
1453
1457
  }
1454
1458
 
1459
+ .mb-0 {
1460
+ margin-bottom: 0;
1461
+ }
1462
+
1455
1463
  .ml-0 {
1456
1464
  margin-left: 0;
1457
1465
  }
@@ -1528,6 +1536,10 @@ video {
1528
1536
  margin-bottom: 1.5rem;
1529
1537
  }
1530
1538
 
1539
+ .mt-8 {
1540
+ margin-top: 2rem;
1541
+ }
1542
+
1531
1543
  .ml-10 {
1532
1544
  margin-left: 2.5rem;
1533
1545
  }
@@ -1775,6 +1787,10 @@ video {
1775
1787
  padding-bottom: 0.25rem;
1776
1788
  }
1777
1789
 
1790
+ .pt-4 {
1791
+ padding-top: 1rem;
1792
+ }
1793
+
1778
1794
  .pl-4 {
1779
1795
  padding-left: 1rem;
1780
1796
  }