@luscii-healthtech/web-ui 35.11.0 → 35.12.1

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.
@@ -0,0 +1,4 @@
1
+ /// <reference types="react" />
2
+ import { IconProps } from "../types/IconProps.type";
3
+ declare const _default: (props: IconProps) => JSX.Element;
4
+ export default _default;
@@ -0,0 +1,4 @@
1
+ /// <reference types="react" />
2
+ import { IconProps } from "../types/IconProps.type";
3
+ declare const _default: (props: IconProps) => JSX.Element;
4
+ export default _default;
@@ -0,0 +1,4 @@
1
+ /// <reference types="react" />
2
+ import { IconProps } from "../types/IconProps.type";
3
+ declare const _default: (props: IconProps) => JSX.Element;
4
+ export default _default;
@@ -0,0 +1,4 @@
1
+ /// <reference types="react" />
2
+ import { IconProps } from "../types/IconProps.type";
3
+ declare const _default: (props: IconProps) => JSX.Element;
4
+ export default _default;
@@ -0,0 +1,4 @@
1
+ /// <reference types="react" />
2
+ import { IconProps } from "../types/IconProps.type";
3
+ declare const _default: (props: IconProps) => JSX.Element;
4
+ export default _default;
@@ -1,4 +1,9 @@
1
1
  export { default as ChartLineColoredIcon } from "./ChartLineColoredIcon";
2
+ export { default as FlagDeColoredIcon } from "./FlagDeColoredIcon";
3
+ export { default as FlagFrColoredIcon } from "./FlagFrColoredIcon";
4
+ export { default as FlagNlColoredIcon } from "./FlagNlColoredIcon";
5
+ export { default as FlagPtColoredIcon } from "./FlagPtColoredIcon";
6
+ export { default as FlagUkColoredIcon } from "./FlagUkColoredIcon";
2
7
  export { default as GearColoredIcon } from "./GearColoredIcon";
3
8
  export { default as GroupColoredIcon } from "./GroupColoredIcon";
4
9
  export { default as StatusColoredIcon } from "./StatusColoredIcon";
@@ -4,7 +4,7 @@ import { FormFieldSize } from "../../types/general.types";
4
4
  export declare const StyledInput: React.ForwardRefExoticComponent<Omit<Omit<React.DetailedHTMLProps<React.InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "ref">, "width"> & {
5
5
  suffix?: string | undefined;
6
6
  prefix?: string | undefined;
7
- icon?: "AbsentIcon" | "AlarmClockIcon" | "AmberAlertIcon" | "AssignedIcon" | "BellIconSlashed" | "BellIcon" | "BluetoothIcon" | "BrushIcon" | "CakeIcon" | "CalendarDayIcon" | "CalendarMonthIcon" | "CalendarRepeatIcon" | "ChartBarsIcon" | "ChartLineAndBarsIcon" | "ChatBubbleIcon" | "ChatBubbleWithTextIcon" | "CheckIcon" | "ChevronDoubleIcon" | "ChevronDownIcon" | "ChevronLeftIcon" | "ChevronRightIcon" | "ClockIcon" | "CogwheelIcon" | "CopyToClipboardIcon" | "CrossIcon" | "CrossInCircleIcon" | "CrossInFilledCircleIcon" | "DatabaseIcon" | "DownloadIcon" | "DragIndicatorIcon" | "EarthIcon" | "EmailIcon" | "EmptyIcon" | "ExclamationMarkIcon" | "ExportIcon" | "ExternalLinkIcon" | "EyeClosedIcon" | "EyeOpenIcon" | "FilterIcon" | "FireIcon" | "FirstAidKitIcon" | "FlagIcon" | "FolderIcon" | "ForwardIcon" | "GrayAlertIcon" | "GroupIcon" | "GroupOfThreeIcon" | "HamburgerIcon" | "HandshakeIcon" | "HeartIcon" | "HeartMinusIcon" | "HomeIcon" | "IdBadgeIcon" | "ImageIcon" | "InfoIcon" | "LifebuoyIcon" | "LightBulbIcon" | "LinkIcon" | "ListIcon" | "LockIcon" | "LogInIcon" | "LogOutIcon" | "MessageWithArrowIcon" | "MoreIcon" | "MouseIcon" | "NoteIcon" | "PageIcon" | "PageViewIcon" | "PaperclipIcon" | "PatientIcon" | "PencilIcon" | "PersonIcon" | "PhoneIcon" | "PieChartIcon" | "PinIcon" | "PlusIcon" | "PrinterIcon" | "RedAlertIcon" | "RobotIcon" | "RocketIcon" | "SearchIcon" | "ShareIcon" | "SmallArrowDownIcon" | "SmallArrowUpIcon" | "SmallCircleIcon" | "SmallDiamondIcon" | "SmallSquareIcon" | "SmallUpsideDownTriangleIcon" | "StarIcon" | "StopwatchIcon" | "TadaIcon" | "TrashBinIcon" | "TreeIcon" | "UnassignedIcon" | "AddIcon" | "AlertsIcon" | "ChartIcon" | "ChatBoxIcon" | "DeleteIcon" | "DragIcon" | "EditIcon" | "EyeIcon" | "EyeIconSlashed" | "GearIcon" | "MessagesIcon" | "NotesIcon" | "PrintIcon" | "SpaceRocketIcon" | "SettingsIcon" | "RightArrowIcon" | "DownArrowIcon" | "LeftArrowIcon" | "WarningIcon" | "ChartLineColoredIcon" | "GearColoredIcon" | "GroupColoredIcon" | "StatusColoredIcon" | React.FC<IconProps> | undefined;
7
+ icon?: "AbsentIcon" | "AlarmClockIcon" | "AmberAlertIcon" | "AssignedIcon" | "BellIconSlashed" | "BellIcon" | "BluetoothIcon" | "BrushIcon" | "CakeIcon" | "CalendarDayIcon" | "CalendarMonthIcon" | "CalendarRepeatIcon" | "ChartBarsIcon" | "ChartLineAndBarsIcon" | "ChatBubbleIcon" | "ChatBubbleWithTextIcon" | "CheckIcon" | "ChevronDoubleIcon" | "ChevronDownIcon" | "ChevronLeftIcon" | "ChevronRightIcon" | "ClockIcon" | "CogwheelIcon" | "CopyToClipboardIcon" | "CrossIcon" | "CrossInCircleIcon" | "CrossInFilledCircleIcon" | "DatabaseIcon" | "DownloadIcon" | "DragIndicatorIcon" | "EarthIcon" | "EmailIcon" | "EmptyIcon" | "ExclamationMarkIcon" | "ExportIcon" | "ExternalLinkIcon" | "EyeClosedIcon" | "EyeOpenIcon" | "FilterIcon" | "FireIcon" | "FirstAidKitIcon" | "FlagIcon" | "FolderIcon" | "ForwardIcon" | "GrayAlertIcon" | "GroupIcon" | "GroupOfThreeIcon" | "HamburgerIcon" | "HandshakeIcon" | "HeartIcon" | "HeartMinusIcon" | "HomeIcon" | "IdBadgeIcon" | "ImageIcon" | "InfoIcon" | "LifebuoyIcon" | "LightBulbIcon" | "LinkIcon" | "ListIcon" | "LockIcon" | "LogInIcon" | "LogOutIcon" | "MessageWithArrowIcon" | "MoreIcon" | "MouseIcon" | "NoteIcon" | "PageIcon" | "PageViewIcon" | "PaperclipIcon" | "PatientIcon" | "PencilIcon" | "PersonIcon" | "PhoneIcon" | "PieChartIcon" | "PinIcon" | "PlusIcon" | "PrinterIcon" | "RedAlertIcon" | "RobotIcon" | "RocketIcon" | "SearchIcon" | "ShareIcon" | "SmallArrowDownIcon" | "SmallArrowUpIcon" | "SmallCircleIcon" | "SmallDiamondIcon" | "SmallSquareIcon" | "SmallUpsideDownTriangleIcon" | "StarIcon" | "StopwatchIcon" | "TadaIcon" | "TrashBinIcon" | "TreeIcon" | "UnassignedIcon" | "AddIcon" | "AlertsIcon" | "ChartIcon" | "ChatBoxIcon" | "DeleteIcon" | "DragIcon" | "EditIcon" | "EyeIcon" | "EyeIconSlashed" | "GearIcon" | "MessagesIcon" | "NotesIcon" | "PrintIcon" | "SpaceRocketIcon" | "SettingsIcon" | "RightArrowIcon" | "DownArrowIcon" | "LeftArrowIcon" | "WarningIcon" | "ChartLineColoredIcon" | "FlagDeColoredIcon" | "FlagFrColoredIcon" | "FlagNlColoredIcon" | "FlagPtColoredIcon" | "FlagUkColoredIcon" | "GearColoredIcon" | "GroupColoredIcon" | "StatusColoredIcon" | React.FC<IconProps> | undefined;
8
8
  width?: FormFieldSize | [FormFieldSize, (FormFieldSize | undefined)?, (FormFieldSize | undefined)?, (FormFieldSize | undefined)?, (FormFieldSize | undefined)?] | undefined;
9
9
  isError?: boolean | undefined;
10
10
  isClearIconVisible?: boolean | undefined;
@@ -0,0 +1,74 @@
1
+ import React, { ComponentProps, FC } from "react";
2
+ import { Card } from "../Card/Card";
3
+ import { Box } from "../Box/Box";
4
+ import { Stack } from "../Stack/Stack";
5
+ import { TertiaryButton } from "../ButtonV2/TertiaryButton";
6
+ type Size = "s" | "m" | "l";
7
+ type Props = Omit<React.ComponentPropsWithoutRef<"dialog">, "open" | "onClose"> & {
8
+ /**
9
+ * Triggers `showModal` or `close` on the internal `<dialog />` element when set.
10
+ *
11
+ * Note: the user is able to close the modal outside of this props control. This means a two-way binding with the modal needs to be establised.
12
+ *
13
+ * This should be done by implementing the ModalDialog's onClose prop so it updates the `open` prop accordingly.
14
+ *
15
+ * @link https://developer.mozilla.org/en-US/docs/Web/HTML/Element/dialog#creating_a_modal_dialog
16
+ */
17
+ open: boolean;
18
+ /**
19
+ * Called when the internal dialog's `onClose` event is triggered.
20
+ *
21
+ * This callback is mandatory as the implementer should always take into account a `<dialog />` can be closed by the user.
22
+ *
23
+ * This callback should be used to update any application state (open) accordingly.
24
+ */
25
+ onClose: React.DialogHTMLAttributes<HTMLDialogElement>["onClose"];
26
+ /**
27
+ * Determines the max-width of the modal.
28
+ */
29
+ size?: Size;
30
+ };
31
+ type SubComponents = {
32
+ /**
33
+ * Represents the header of the ModalDialog. Applies consistent padding.
34
+ */
35
+ Header: typeof Header;
36
+ /**
37
+ * Default title presentation of the ModalDialog.
38
+ *
39
+ * To be placed inside of the ModalDialog's header.
40
+ */
41
+ Title: typeof Card.Title;
42
+ /**
43
+ * A control represeting the close button of the Dialog using a cross icon.
44
+ *
45
+ * To be placed inside of the ModalDialog's header.
46
+ */
47
+ CloseButton: typeof CloseButton;
48
+ /**
49
+ * Applies consistent padding and manages the scroll overflow of the ModalDialog's content,
50
+ * ensuring the Modal does not overflow the users' viewport vertically.
51
+ *
52
+ * To be placed inside of the ModalDialog's header.
53
+ */
54
+ Body: typeof Body;
55
+ /**
56
+ * Represents the footer of the ModalDialog.
57
+ * Applies consistent padding and a background color of type "background".
58
+ */
59
+ Footer: typeof Footer;
60
+ /**
61
+ * Groups together the primary actions of the Modal.
62
+ * These actions should be placed in the Footer of the Modal.
63
+ *
64
+ * To be placed inside of the ModalDialog's footer.
65
+ */
66
+ Actions: typeof Actions;
67
+ };
68
+ export declare const ModalDialog: FC<Props> & SubComponents;
69
+ export declare const Body: FC<ComponentProps<typeof Box>>;
70
+ export declare const Header: FC<ComponentProps<typeof Box>>;
71
+ export declare const Footer: FC<ComponentProps<typeof Stack>>;
72
+ export declare const CloseButton: FC<ComponentProps<typeof TertiaryButton>>;
73
+ export declare const Actions: FC<ComponentProps<typeof Stack>>;
74
+ export {};
package/dist/index.d.ts CHANGED
@@ -107,3 +107,4 @@ export { HoverIndicatorControl } from "./components/HoverIndicatorControl/HoverI
107
107
  export { Collapse } from "./components/Collapse/Collapse";
108
108
  export { Skeleton } from "./components/Skeleton/Skeleton";
109
109
  export { DetailsDisclosure } from "./components/DetailsDisclosure/DetailsDisclosure";
110
+ export { ModalDialog } from "./components/ModalDialog/ModalDialog";