@luscii-healthtech/web-ui 0.1.18 → 0.1.21
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/ButtonV2/SecondaryButton.d.ts +1 -0
- package/dist/components/ButtonV2/TertiaryButton.d.ts +1 -0
- package/dist/components/Dropdown/Dropdown.d.ts +1 -1
- package/dist/components/Radio/Radio.d.ts +1 -1
- package/dist/components/RadioGroup/RadioGroup.d.ts +3 -2
- package/dist/components/Select/LegacySelect.d.ts +3 -2
- package/dist/index.d.ts +10 -11
- package/dist/web-ui.cjs.development.js +158 -157
- 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.css +22 -22
- package/dist/web-ui.esm.js +159 -157
- package/dist/web-ui.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/components/ButtonV2/ButtonV2.tsx +6 -1
- package/src/components/ButtonV2/PrimaryButton.tsx +6 -15
- package/src/components/ButtonV2/SecondaryButton.tsx +4 -4
- package/src/components/ButtonV2/TertiaryButton.tsx +4 -4
- package/src/index.tsx +45 -13
package/package.json
CHANGED
|
@@ -35,12 +35,13 @@ export const ButtonV2 = (props: ButtonV2Props): JSX.Element => {
|
|
|
35
35
|
[
|
|
36
36
|
"h-11",
|
|
37
37
|
"relative flex flex-row justify-center items-center",
|
|
38
|
+
"border",
|
|
38
39
|
"transition-outline transition-colors duration-300 ease-in-out",
|
|
39
40
|
"rounded-full",
|
|
40
41
|
"leading-none",
|
|
41
42
|
"shadow-sm",
|
|
42
43
|
"cursor-pointer",
|
|
43
|
-
"focus:outline-
|
|
44
|
+
"focus:outline-primary",
|
|
44
45
|
],
|
|
45
46
|
{
|
|
46
47
|
"w-11": !props.text && props.icon,
|
|
@@ -48,6 +49,10 @@ export const ButtonV2 = (props: ButtonV2Props): JSX.Element => {
|
|
|
48
49
|
"py-2": props.text && props.icon,
|
|
49
50
|
"py-3": props.text && !props.icon,
|
|
50
51
|
},
|
|
52
|
+
{
|
|
53
|
+
"opacity-50": props.isDisabled,
|
|
54
|
+
"pointer-events-none": props.isDisabled || props.isPending,
|
|
55
|
+
},
|
|
51
56
|
props.className
|
|
52
57
|
);
|
|
53
58
|
|
|
@@ -17,21 +17,12 @@ export interface PrimaryButtonProps {
|
|
|
17
17
|
export const PrimaryButton = (props: PrimaryButtonProps): JSX.Element => {
|
|
18
18
|
return (
|
|
19
19
|
<ButtonV2
|
|
20
|
-
className={classNames(
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
"border-primary-transparent",
|
|
27
|
-
"hover:bg-primary-dark",
|
|
28
|
-
"focus:outline-primary",
|
|
29
|
-
],
|
|
30
|
-
{
|
|
31
|
-
"opacity-50": props.isDisabled,
|
|
32
|
-
"pointer-events-none": props.isDisabled || props.isPending,
|
|
33
|
-
}
|
|
34
|
-
)}
|
|
20
|
+
className={classNames([
|
|
21
|
+
"text-white",
|
|
22
|
+
"bg-blue-800",
|
|
23
|
+
"border-transparent",
|
|
24
|
+
"hover:bg-blue-900",
|
|
25
|
+
])}
|
|
35
26
|
onClick={props.onClick}
|
|
36
27
|
type={props.type}
|
|
37
28
|
text={props.text}
|
|
@@ -9,23 +9,23 @@ export interface SecondaryButtonProps {
|
|
|
9
9
|
onClick: (event: React.MouseEvent<HTMLButtonElement>) => void;
|
|
10
10
|
text?: string;
|
|
11
11
|
icon?: React.FunctionComponent<IconProps>;
|
|
12
|
+
isDisabled?: boolean;
|
|
12
13
|
}
|
|
13
14
|
|
|
14
15
|
export const SecondaryButton = (props: SecondaryButtonProps): JSX.Element => {
|
|
15
16
|
return (
|
|
16
17
|
<ButtonV2
|
|
17
18
|
className={classNames([
|
|
18
|
-
"text-
|
|
19
|
+
"text-blue-800",
|
|
19
20
|
"bg-white",
|
|
20
|
-
"border",
|
|
21
21
|
"border-slate-300",
|
|
22
|
-
"hover:text-
|
|
22
|
+
"hover:text-blue-900",
|
|
23
23
|
"hover:border-slate-400",
|
|
24
|
-
"focus:outline-primary",
|
|
25
24
|
])}
|
|
26
25
|
onClick={props.onClick}
|
|
27
26
|
text={props.text}
|
|
28
27
|
icon={props.icon}
|
|
28
|
+
isDisabled={props.isDisabled}
|
|
29
29
|
/>
|
|
30
30
|
);
|
|
31
31
|
};
|
|
@@ -9,23 +9,23 @@ export interface TertiaryButtonProps {
|
|
|
9
9
|
onClick: (event: React.MouseEvent<HTMLButtonElement>) => void;
|
|
10
10
|
text?: string;
|
|
11
11
|
icon?: React.FunctionComponent<IconProps>;
|
|
12
|
+
isDisabled?: boolean;
|
|
12
13
|
}
|
|
13
14
|
|
|
14
15
|
export const TertiaryButton = (props: TertiaryButtonProps): JSX.Element => {
|
|
15
16
|
return (
|
|
16
17
|
<ButtonV2
|
|
17
18
|
className={classNames([
|
|
18
|
-
"text-
|
|
19
|
+
"text-blue-800",
|
|
19
20
|
"bg-transparent",
|
|
20
|
-
"border",
|
|
21
21
|
"border-transparent",
|
|
22
|
+
"hover:text-blue-900",
|
|
22
23
|
"shadow-none",
|
|
23
|
-
"hover:text-primary-dark",
|
|
24
|
-
"focus:outline-primary",
|
|
25
24
|
])}
|
|
26
25
|
onClick={props.onClick}
|
|
27
26
|
text={props.text}
|
|
28
27
|
icon={props.icon}
|
|
28
|
+
isDisabled={props.isDisabled}
|
|
29
29
|
/>
|
|
30
30
|
);
|
|
31
31
|
};
|
package/src/index.tsx
CHANGED
|
@@ -1,12 +1,28 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export {
|
|
2
|
+
default as Acknowledgement,
|
|
3
|
+
ACKNOWLEDGEMENT_TYPE_OPTIONS,
|
|
4
|
+
} from "./components/Acknowledgement/Acknowledgement";
|
|
2
5
|
export { default as Avatar } from "./components/Avatar/Avatar";
|
|
3
6
|
export { default as Badge } from "./components/Badge/Badge";
|
|
4
|
-
export {
|
|
5
|
-
|
|
7
|
+
export {
|
|
8
|
+
BUTTON_ROLES,
|
|
9
|
+
ButtonProps,
|
|
10
|
+
BUTTON_TYPE,
|
|
11
|
+
ButtonType,
|
|
12
|
+
} from "./components/Button/Button.types";
|
|
6
13
|
export { ButtonIcon } from "./components/Button/ButtonIcon";
|
|
7
|
-
export {
|
|
8
|
-
|
|
9
|
-
|
|
14
|
+
export {
|
|
15
|
+
PrimaryButton,
|
|
16
|
+
PrimaryButtonProps,
|
|
17
|
+
} from "./components/ButtonV2/PrimaryButton";
|
|
18
|
+
export {
|
|
19
|
+
SecondaryButton,
|
|
20
|
+
SecondaryButtonProps,
|
|
21
|
+
} from "./components/ButtonV2/SecondaryButton";
|
|
22
|
+
export {
|
|
23
|
+
TertiaryButton,
|
|
24
|
+
TertiaryButtonProps,
|
|
25
|
+
} from "./components/ButtonV2/TertiaryButton";
|
|
10
26
|
export { default as Carousel } from "./components/Carousel/Carousel";
|
|
11
27
|
export { default as CenteredHero } from "./components/CenteredHero/CenteredHero";
|
|
12
28
|
export { default as Checkbox } from "./components/Checkbox/Checkbox";
|
|
@@ -19,14 +35,29 @@ export { default as InfoBlock } from "./components/InfoBlock/InfoBlock";
|
|
|
19
35
|
export { InfoField } from "./components/InfoField/InfoField";
|
|
20
36
|
export { INPUT_TYPES, default as Input } from "./components/Input/Input";
|
|
21
37
|
export { default as Line } from "./components/Line/Line";
|
|
22
|
-
export {
|
|
23
|
-
|
|
24
|
-
|
|
38
|
+
export {
|
|
39
|
+
default as ListItem,
|
|
40
|
+
ListItemProps,
|
|
41
|
+
} from "./components/ListItem/ListItem";
|
|
42
|
+
export {
|
|
43
|
+
ListTable,
|
|
44
|
+
ListTableProps,
|
|
45
|
+
ListTablePropsConfiguration,
|
|
46
|
+
ListTablePropsConfigurationField,
|
|
47
|
+
} from "./components/ListTable/ListTable";
|
|
48
|
+
export {
|
|
49
|
+
LoadingIndicator,
|
|
50
|
+
LoadingIndicatorProps,
|
|
51
|
+
} from "./components/LoadingIndicator/LoadingIndicator";
|
|
25
52
|
export { default as Menu } from "./components/Menu/Menu";
|
|
26
53
|
export { MultiSelect } from "./components/MultiSelect/MultiSelect";
|
|
27
54
|
export { NavLayout, NavMenuLayoutProps } from "./components/NavMenu/NavLayout";
|
|
28
55
|
export { NavMenu } from "./components/NavMenu/NavMenu";
|
|
29
|
-
export {
|
|
56
|
+
export {
|
|
57
|
+
NotificationBanner,
|
|
58
|
+
NotificationBannerColor,
|
|
59
|
+
NotificationBannerLinkProps,
|
|
60
|
+
} from "./components/NotificationBanner/NotificationBanner";
|
|
30
61
|
export { default as Page } from "./components/Page/Page";
|
|
31
62
|
export { default as CRUDPage } from "./components/Page/CRUDPage";
|
|
32
63
|
export { default as PaginationMenu } from "./components/PaginationMenu/PaginationMenu";
|
|
@@ -35,7 +66,10 @@ export { default as Radio } from "./components/Radio/Radio";
|
|
|
35
66
|
export { default as RadioGroup } from "./components/RadioGroup/RadioGroup";
|
|
36
67
|
export { default as Section } from "./components/Section/Section";
|
|
37
68
|
//export { default as Select } from "./components/Select/Select";
|
|
38
|
-
export {
|
|
69
|
+
export {
|
|
70
|
+
SettingsMenuButton,
|
|
71
|
+
SettingsMenuButtonProps,
|
|
72
|
+
} from "./components/SettingsMenuButton/SettingsMenuButton";
|
|
39
73
|
export { Spinner } from "./components/Spinner/Spinner";
|
|
40
74
|
export { Steps } from "./components/Steps/Steps";
|
|
41
75
|
export { default as Switcher } from "./components/Switcher/Switcher";
|
|
@@ -51,6 +85,4 @@ export { default as TextListItem } from "./components/TextListItem/TextListItem"
|
|
|
51
85
|
export { Title, TitleStyle } from "./components/Title/Title";
|
|
52
86
|
export { ViewItem, ViewItemProps } from "./components/ViewItem/ViewItem";
|
|
53
87
|
|
|
54
|
-
|
|
55
|
-
|
|
56
88
|
export { default as Text } from "./components/Text/Text";
|