@luscii-healthtech/web-ui 2.56.4 → 2.58.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.
- package/dist/components/CheckboxList/CheckboxGroup.d.ts +1 -1
- package/dist/components/CheckboxList/CheckboxList.types.d.ts +13 -4
- package/dist/components/Form/form.types.d.ts +1 -1
- package/dist/components/NavMenu/NavLayout.d.ts +2 -1
- package/dist/components/Page/CRUDPage.d.ts +21 -42
- package/dist/components/Steps/Steps.d.ts +1 -2
- package/dist/web-ui-tailwind.css +20 -0
- package/dist/web-ui.cjs.development.js +103 -180
- package/dist/web-ui.cjs.development.js.map +1 -1
- package/dist/web-ui.cjs.production.min.js +1 -1
- package/dist/web-ui.cjs.production.min.js.map +1 -1
- package/dist/web-ui.esm.js +103 -180
- package/dist/web-ui.esm.js.map +1 -1
- package/package.json +1 -1
- package/dist/components/Title/LegacyTitle.d.ts +0 -22
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { CheckboxGroupProps } from "./CheckboxList.types";
|
|
2
|
-
export declare const CheckboxGroup: ({ title, items, onChange, className, hasDividers, isCollapsed, }: CheckboxGroupProps) => JSX.Element;
|
|
2
|
+
export declare const CheckboxGroup: ({ title, items, onChange, className, hasDividers, isCollapsed, collapsible, }: CheckboxGroupProps) => JSX.Element;
|
|
@@ -9,14 +9,22 @@ export interface CheckboxListProps {
|
|
|
9
9
|
hasDividers?: boolean;
|
|
10
10
|
className?: string;
|
|
11
11
|
}
|
|
12
|
-
|
|
12
|
+
declare type WithCollapsible = {
|
|
13
|
+
/**
|
|
14
|
+
* When `false`, will prevent the checkbox list from being collapsed (also disabling clicking to expand/collapse)
|
|
15
|
+
* in the component and it will be displayed expanded by default.
|
|
16
|
+
* @default true
|
|
17
|
+
*/
|
|
18
|
+
collapsible?: boolean;
|
|
19
|
+
};
|
|
20
|
+
export declare type CheckboxGroupProps = {
|
|
13
21
|
title?: string;
|
|
14
22
|
items: CheckboxListItem[];
|
|
15
23
|
onChange: (event: CheckboxChangeEvent) => void;
|
|
16
24
|
hasDividers?: boolean;
|
|
17
25
|
className?: string;
|
|
18
26
|
isCollapsed?: boolean;
|
|
19
|
-
}
|
|
27
|
+
} & WithCollapsible;
|
|
20
28
|
export interface CheckboxGroupItemProps {
|
|
21
29
|
id: string;
|
|
22
30
|
label: string;
|
|
@@ -32,12 +40,13 @@ export interface CheckboxListItem {
|
|
|
32
40
|
isDisabled?: boolean;
|
|
33
41
|
className?: string;
|
|
34
42
|
}
|
|
35
|
-
export
|
|
43
|
+
export declare type CheckboxGroup = {
|
|
36
44
|
title?: string;
|
|
37
45
|
items: CheckboxListItem[];
|
|
38
46
|
isCollapsed?: boolean;
|
|
39
|
-
}
|
|
47
|
+
} & WithCollapsible;
|
|
40
48
|
export interface CheckboxChangeEvent {
|
|
41
49
|
id: string;
|
|
42
50
|
newCheckedValue: boolean;
|
|
43
51
|
}
|
|
52
|
+
export {};
|
|
@@ -66,7 +66,7 @@ export interface FieldCheckboxConfiguration extends FormFieldBaseConfiguration<O
|
|
|
66
66
|
* Omiting `groups` and `onChange` here because these will be handled by
|
|
67
67
|
* the `Control` component from react-hook-form.
|
|
68
68
|
*/
|
|
69
|
-
export interface FieldCheckboxListConfiguration extends FormFieldBaseConfiguration<
|
|
69
|
+
export interface FieldCheckboxListConfiguration extends FormFieldBaseConfiguration<Pick<CheckboxListProps, "hasDividers" | "className">> {
|
|
70
70
|
type: "checkboxlist";
|
|
71
71
|
}
|
|
72
72
|
/**
|
|
@@ -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 {};
|
package/dist/web-ui-tailwind.css
CHANGED
|
@@ -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
|
}
|
|
@@ -1520,6 +1528,10 @@ video {
|
|
|
1520
1528
|
margin-top: 1.25rem;
|
|
1521
1529
|
}
|
|
1522
1530
|
|
|
1531
|
+
.ml-5 {
|
|
1532
|
+
margin-left: 1.25rem;
|
|
1533
|
+
}
|
|
1534
|
+
|
|
1523
1535
|
.mt-6 {
|
|
1524
1536
|
margin-top: 1.5rem;
|
|
1525
1537
|
}
|
|
@@ -1528,6 +1540,10 @@ video {
|
|
|
1528
1540
|
margin-bottom: 1.5rem;
|
|
1529
1541
|
}
|
|
1530
1542
|
|
|
1543
|
+
.mt-8 {
|
|
1544
|
+
margin-top: 2rem;
|
|
1545
|
+
}
|
|
1546
|
+
|
|
1531
1547
|
.ml-10 {
|
|
1532
1548
|
margin-left: 2.5rem;
|
|
1533
1549
|
}
|
|
@@ -1775,6 +1791,10 @@ video {
|
|
|
1775
1791
|
padding-bottom: 0.25rem;
|
|
1776
1792
|
}
|
|
1777
1793
|
|
|
1794
|
+
.pt-4 {
|
|
1795
|
+
padding-top: 1rem;
|
|
1796
|
+
}
|
|
1797
|
+
|
|
1778
1798
|
.pl-4 {
|
|
1779
1799
|
padding-left: 1rem;
|
|
1780
1800
|
}
|