@luscii-healthtech/web-ui 42.0.0 → 42.2.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.
@@ -13,10 +13,22 @@ type CRUDPageTitle = {
13
13
  type CRUDPageHeader = Omit<PageHeaderProps, "navigation" | "isPolling" | "accessories">;
14
14
  type CRUDPagePropsWithoutHeaderOrTitle = {
15
15
  dataTestId?: string;
16
+ /**
17
+ * @deprecated use accessory instead
18
+ */
16
19
  submitButtonProps?: CRUDPageButtonProps;
20
+ /**
21
+ * @deprecated use accessory instead
22
+ */
17
23
  cancelButtonProps?: CRUDPageButtonProps;
18
24
  className?: string;
19
25
  isLoading?: boolean;
26
+ /**
27
+ * @deprecated Instead, show the loading indicator in the submit button directly
28
+ * if you want to show a loading state in the submit button.
29
+ *
30
+ * @example submitButton={<PrimaryButton isPending={true}>Submit</PrimaryButton>}
31
+ */
20
32
  isSubmitting?: boolean;
21
33
  children?: React.ReactNode;
22
34
  steps?: {
@@ -43,6 +55,14 @@ type CRUDPagePropsWithoutHeaderOrTitle = {
43
55
  * The header - with page title and breadcrumbs will be rendered above this component.
44
56
  */
45
57
  belowHeader?: React.ReactNode;
58
+ /**
59
+ * Rendered directly below the children of this component.
60
+ * Used for e.g. submit and cancel buttons.
61
+ *
62
+ * Will override the deprecated submitButtonProps and cancelButtonProps if provided, so
63
+ * please make sure to include them.
64
+ */
65
+ accessory?: React.ReactNode;
46
66
  };
47
67
  export type CRUDPageProps = (CRUDPagePropsWithoutHeaderOrTitle & {
48
68
  title: CRUDPageTitle;