@luscii-healthtech/web-ui 27.0.1 → 27.1.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.
@@ -30,18 +30,18 @@ export interface AccordionListProps extends Omit<AccordionProps, "items"> {
30
30
  export type AccordionListItemProps<T = ListItemProps> = Omit<AccordionItemProps, "title" | "content"> & {
31
31
  listItems: T[];
32
32
  draggableListType?: "default";
33
- title: string;
33
+ title: React.ReactNode;
34
34
  };
35
35
  export type DraggableAccordionListItemProps = Omit<AccordionItemProps, "title" | "content"> & {
36
36
  draggableListType: "draggable";
37
37
  listItems: DraggableListProps["items"];
38
- title: string;
38
+ title: React.ReactNode;
39
39
  };
40
40
  export type SortableAccordionListItemProps = Omit<AccordionItemProps, "title" | "content"> & {
41
41
  draggableListType: "sortable";
42
42
  draggableIdentifier: string;
43
43
  listItems: SortableListProps["items"];
44
- title: string;
44
+ title: React.ReactNode;
45
45
  };
46
46
  export type AccordionItem = AccordionListItemProps | DraggableAccordionListItemProps | SortableAccordionListItemProps;
47
47
  interface StaticComponents {
@@ -5,7 +5,7 @@ import { IconProps } from "../Icons/types/IconProps.type";
5
5
  import { TitleProps } from "../Title/Title";
6
6
  export type BaseListItemProps = {
7
7
  itemId: string | number;
8
- title: string;
8
+ title: React.ReactNode;
9
9
  subtitle?: string;
10
10
  icon?: React.FunctionComponent<IconProps> | string;
11
11
  accessories?: JSX.Element[];
@@ -3,6 +3,8 @@ import { BUTTON_ROLES, ButtonProps } from "./Button.types";
3
3
  /**
4
4
  * TODO: We have to probably use [ButtonV2.tsx](../../components/ButtonV2/ButtonV2.tsx)
5
5
  * to replace this component at some point.
6
+ *
7
+ * @deprecated use PrimaryButton, SecondaryButton or TertiaryButton instead
6
8
  */
7
9
  declare function Button(props: ButtonProps): JSX.Element;
8
10
  export default Button;
@@ -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,5 +1,6 @@
1
1
  export * from "./special-icons";
2
2
  export { default as AlarmClockIcon } from "./AlarmClockIcon";
3
+ export { default as AmberAlertIcon } from "./AmberAlertIcon";
3
4
  export { default as BellIconSlashed } from "./BellIconSlashed";
4
5
  export { default as BellIcon } from "./BellIcon";
5
6
  export { default as BluetoothIcon } from "./BluetoothIcon";
@@ -65,6 +66,7 @@ export { default as PieChartIcon } from "./PieChartIcon";
65
66
  export { default as PinIcon } from "./PinIcon";
66
67
  export { default as PlusIcon } from "./PlusIcon";
67
68
  export { default as PrinterIcon } from "./PrinterIcon";
69
+ export { default as RedAlertIcon } from "./RedAlertIcon";
68
70
  export { default as RobotIcon } from "./RobotIcon";
69
71
  export { default as RocketIcon } from "./RocketIcon";
70
72
  export { default as SearchIcon } from "./SearchIcon";
@@ -6,7 +6,7 @@ export declare const StyledInput: React.ForwardRefExoticComponent<Omit<Omit<Reac
6
6
  type?: AllowedTextInputTypes | undefined;
7
7
  suffix?: string | undefined;
8
8
  prefix?: string | undefined;
9
- icon?: "AlarmClockIcon" | "BellIconSlashed" | "BellIcon" | "BluetoothIcon" | "BrushIcon" | "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" | "ForwardIcon" | "GroupIcon" | "GroupOfThreeIcon" | "HamburgerIcon" | "HandshakeIcon" | "HeartIcon" | "HomeIcon" | "ImageIcon" | "InfoIcon" | "LifebuoyIcon" | "LightBulbIcon" | "LinkIcon" | "ListIcon" | "LockIcon" | "LogInIcon" | "LogOutIcon" | "MessageWithArrowIcon" | "MoreIcon" | "MouseIcon" | "NoteIcon" | "PageViewIcon" | "PatientIcon" | "PencilIcon" | "PhoneIcon" | "PieChartIcon" | "PinIcon" | "PlusIcon" | "PrinterIcon" | "RobotIcon" | "RocketIcon" | "SearchIcon" | "ShareIcon" | "SmallCircleIcon" | "SmallDiamondIcon" | "SmallSquareIcon" | "StarIcon" | "TrashBinIcon" | "TreeIcon" | "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;
9
+ icon?: "AlarmClockIcon" | "AmberAlertIcon" | "BellIconSlashed" | "BellIcon" | "BluetoothIcon" | "BrushIcon" | "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" | "ForwardIcon" | "GroupIcon" | "GroupOfThreeIcon" | "HamburgerIcon" | "HandshakeIcon" | "HeartIcon" | "HomeIcon" | "ImageIcon" | "InfoIcon" | "LifebuoyIcon" | "LightBulbIcon" | "LinkIcon" | "ListIcon" | "LockIcon" | "LogInIcon" | "LogOutIcon" | "MessageWithArrowIcon" | "MoreIcon" | "MouseIcon" | "NoteIcon" | "PageViewIcon" | "PatientIcon" | "PencilIcon" | "PhoneIcon" | "PieChartIcon" | "PinIcon" | "PlusIcon" | "PrinterIcon" | "RedAlertIcon" | "RobotIcon" | "RocketIcon" | "SearchIcon" | "ShareIcon" | "SmallCircleIcon" | "SmallDiamondIcon" | "SmallSquareIcon" | "StarIcon" | "TrashBinIcon" | "TreeIcon" | "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;
10
10
  width?: FormFieldWidth | undefined;
11
11
  isError?: boolean | undefined;
12
12
  isClearIconVisible?: boolean | undefined;
@@ -21,9 +21,9 @@ export declare const allowedColors: {
21
21
  readonly base: "ui-text-slate-800";
22
22
  readonly "slate-500": "ui-text-slate-500";
23
23
  readonly "slate-200": "ui-text-slate-200";
24
- readonly red: "ui-text-red-700";
25
- readonly green: "ui-text-green-700";
26
- readonly amber: "ui-text-yellow-700";
24
+ readonly red: "ui-text-red-800";
25
+ readonly green: "ui-text-green-800";
26
+ readonly amber: "ui-text-yellow-800";
27
27
  readonly white: "ui-text-white";
28
28
  readonly "blue-800": "ui-text-primary";
29
29
  readonly current: "ui-text-current";
@@ -199,6 +199,13 @@ const SvgAlarmClockIcon = (props) => React__namespace.default.createElement(
199
199
  );
200
200
  var AlarmClockIcon = IconWrapper(SvgAlarmClockIcon);
201
201
 
202
+ const SvgAmberAlertIcon = (props) => React__namespace.default.createElement(
203
+ "svg",
204
+ Object.assign({ xmlns: "http://www.w3.org/2000/svg", width: 24, height: 24, fill: "none", viewBox: "0 0 12 12" }, props),
205
+ React__namespace.default.createElement("rect", { width: 10, height: 10, x: 1, y: 1, stroke: "currentColor", strokeWidth: 2, rx: 5 })
206
+ );
207
+ var AmberAlertIcon = IconWrapper(SvgAmberAlertIcon);
208
+
202
209
  const SvgBellIconSlashed = (props) => React__namespace.default.createElement(
203
210
  "svg",
204
211
  Object.assign({ xmlns: "http://www.w3.org/2000/svg", width: 24, height: 24, fill: "none", viewBox: "0 0 24 24" }, props),
@@ -657,6 +664,13 @@ const SvgPrinterIcon = (props) => React__namespace.default.createElement(
657
664
  );
658
665
  var PrintIcon = IconWrapper(SvgPrinterIcon);
659
666
 
667
+ const SvgRedAlertIcon = (props) => React__namespace.default.createElement(
668
+ "svg",
669
+ Object.assign({ xmlns: "http://www.w3.org/2000/svg", width: 24, height: 24, fill: "none", viewBox: "0 0 12 12" }, props),
670
+ React__namespace.default.createElement("rect", { width: 12, height: 12, fill: "currentColor", rx: 3 })
671
+ );
672
+ var RedAlertIcon = IconWrapper(SvgRedAlertIcon);
673
+
660
674
  const SvgRobotIcon = (props) => React__namespace.default.createElement(
661
675
  "svg",
662
676
  Object.assign({ xmlns: "http://www.w3.org/2000/svg", width: 24, height: 24, fill: "none", viewBox: "0 0 24 24" }, props),
@@ -735,6 +749,7 @@ var Icons = /*#__PURE__*/Object.freeze({
735
749
  AddIcon: AddIcon,
736
750
  AlarmClockIcon: AlarmClockIcon,
737
751
  AlertsIcon: BellIcon,
752
+ AmberAlertIcon: AmberAlertIcon,
738
753
  BellIcon: BellIcon,
739
754
  BellIconSlashed: BellIconSlashed,
740
755
  BluetoothIcon: BluetoothIcon,
@@ -816,6 +831,7 @@ var Icons = /*#__PURE__*/Object.freeze({
816
831
  PlusIcon: AddIcon,
817
832
  PrintIcon: PrintIcon,
818
833
  PrinterIcon: PrintIcon,
834
+ RedAlertIcon: RedAlertIcon,
819
835
  RightArrowIcon: RightArrowIcon,
820
836
  RobotIcon: RobotIcon,
821
837
  RocketIcon: RocketIcon,
@@ -877,9 +893,9 @@ const allowedColors = {
877
893
  base: "ui-text-slate-800",
878
894
  "slate-500": "ui-text-slate-500",
879
895
  "slate-200": "ui-text-slate-200",
880
- red: "ui-text-red-700",
881
- green: "ui-text-green-700",
882
- amber: "ui-text-yellow-700",
896
+ red: "ui-text-red-800",
897
+ green: "ui-text-green-800",
898
+ amber: "ui-text-yellow-800",
883
899
  white: "ui-text-white",
884
900
  "blue-800": "ui-text-primary",
885
901
  current: "ui-text-current"
@@ -1236,7 +1252,7 @@ const BaseListItem = React__namespace.default.forwardRef(({ itemId, title, toolt
1236
1252
  React__namespace.default.createElement(
1237
1253
  "div",
1238
1254
  { className: "ui-py-4" },
1239
- React__namespace.default.createElement(Text, { type: isSelected ? "strong" : "base", text: title }),
1255
+ typeof title === "string" ? React__namespace.default.createElement(Text, { type: isSelected ? "strong" : "base" }, title) : title,
1240
1256
  subtitle && React__namespace.default.createElement(Text, { text: subtitle, type: "sm", color: "slate-500" })
1241
1257
  ),
1242
1258
  React__namespace.default.createElement("div", { className: "ui-flex-grow" }),
@@ -6031,6 +6047,7 @@ exports.AccordionTemporary = Accordion;
6031
6047
  exports.AddIcon = AddIcon;
6032
6048
  exports.AlarmClockIcon = AlarmClockIcon;
6033
6049
  exports.AlertsIcon = BellIcon;
6050
+ exports.AmberAlertIcon = AmberAlertIcon;
6034
6051
  exports.Avatar = Avatar;
6035
6052
  exports.Badge = Badge;
6036
6053
  exports.BellIcon = BellIcon;
@@ -6164,6 +6181,7 @@ exports.Radio = Radio;
6164
6181
  exports.RadioGroup = RadioGroup;
6165
6182
  exports.RadioGroupV2 = RadioGroupV2;
6166
6183
  exports.RadioV2 = RadioV2;
6184
+ exports.RedAlertIcon = RedAlertIcon;
6167
6185
  exports.RightArrowIcon = RightArrowIcon;
6168
6186
  exports.RobotIcon = RobotIcon;
6169
6187
  exports.RocketIcon = RocketIcon;