@luscii-healthtech/web-ui 2.11.1 → 2.12.2

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,10 @@
1
+ import React, { MouseEventHandler } from "react";
2
+ interface ImageProps {
3
+ src: string;
4
+ className: string;
5
+ children?: React.ReactNode;
6
+ onClick?: MouseEventHandler<HTMLSpanElement>;
7
+ showIconOnFailure?: boolean;
8
+ }
9
+ declare const Image: React.VFC<ImageProps>;
10
+ export default Image;
@@ -0,0 +1,14 @@
1
+ import React from "react";
2
+ export interface CategoryProps {
3
+ folder: string;
4
+ key: string;
5
+ }
6
+ interface ImageCategoryProps {
7
+ category: CategoryProps;
8
+ images: string[];
9
+ highlightedImage: string | null;
10
+ handleImageClick: (event: React.FormEvent<HTMLInputElement>) => void;
11
+ isTypeCompact: boolean;
12
+ }
13
+ export declare const ImageCategory: (props: ImageCategoryProps) => JSX.Element;
14
+ export {};
@@ -0,0 +1,24 @@
1
+ import React from "react";
2
+ import { CategoryProps } from "./ImageCategory";
3
+ interface TargetProps {
4
+ target: {
5
+ name: string | null | undefined;
6
+ value: string | null | undefined;
7
+ file?: string;
8
+ };
9
+ }
10
+ export interface ImagePickerProps {
11
+ name: string;
12
+ images: string[];
13
+ categories: CategoryProps[];
14
+ preselectedImage?: string;
15
+ clearImageIndex?: number;
16
+ type: "normal" | "compact";
17
+ isDisabled: boolean;
18
+ handleChange: (target: TargetProps) => void;
19
+ isUploadButtonVisible?: boolean;
20
+ isClearButtonVisible?: boolean;
21
+ localisation: Record<"openModalButton" | "selectButton" | "error" | "uploadImage" | "clearSelection" | "cancel" | "search" | "modalTitle", string>;
22
+ }
23
+ export declare const ImagePicker: React.VFC<ImagePickerProps>;
24
+ export {};
@@ -4,3 +4,4 @@
4
4
  * @param {boolean} caseSensitive
5
5
  */
6
6
  export declare const isSubstring: (string: string | unknown, searchTerm: string, caseSensitive?: boolean) => boolean;
7
+ export declare const getBase64: (file: File) => Promise<string>;
@@ -755,6 +755,12 @@ video {
755
755
  background-color: rgba(0, 116, 221, var(--bg-opacity));
756
756
  }
757
757
 
758
+ .bg-secondary {
759
+ --bg-opacity: 1;
760
+ background-color: #F3F4F6;
761
+ background-color: rgba(243, 244, 246, var(--bg-opacity));
762
+ }
763
+
758
764
  .bg-negative {
759
765
  --bg-opacity: 1;
760
766
  background-color: #FFF1F1;
@@ -1179,6 +1185,10 @@ video {
1179
1185
  flex-grow: 1;
1180
1186
  }
1181
1187
 
1188
+ .flex-shrink-0 {
1189
+ flex-shrink: 0;
1190
+ }
1191
+
1182
1192
  .order-1 {
1183
1193
  order: 1;
1184
1194
  }
@@ -1227,8 +1237,12 @@ video {
1227
1237
  height: 3rem;
1228
1238
  }
1229
1239
 
1230
- .h-13 {
1231
- height: 3.25rem;
1240
+ .h-22 {
1241
+ height: 5.5rem;
1242
+ }
1243
+
1244
+ .h-44 {
1245
+ height: 11rem;
1232
1246
  }
1233
1247
 
1234
1248
  .h-56 {
@@ -1473,6 +1487,10 @@ video {
1473
1487
  max-height: 19.5rem;
1474
1488
  }
1475
1489
 
1490
+ .max-h-120 {
1491
+ max-height: 30rem;
1492
+ }
1493
+
1476
1494
  .max-h-screen {
1477
1495
  max-height: 100vh;
1478
1496
  }
@@ -1150,7 +1150,7 @@ var ButtonV2 = function ButtonV2(_ref) {
1150
1150
  return /*#__PURE__*/React__default.createElement("span", null, "Invalid props passed to this component.");
1151
1151
  }
1152
1152
 
1153
- var buttonClassName = classNames(["h-11", "relative flex flex-row justify-center items-center", "border", "transition-outline transition-colors duration-300 ease-in-out", "rounded-full", "leading-none", "shadow-sm", "cursor-pointer", "focus:outline-primary", "group"], {
1153
+ var buttonClassName = classNames(["h-11", "relative flex flex-row justify-center items-center", "border", "transition-outline transition-colors duration-300 ease-in-out", "rounded-full", "leading-none", "shadow-sm", "cursor-pointer", "focus:outline-primary", "group", "flex-shrink-0"], {
1154
1154
  "w-11": !text && icon,
1155
1155
  "pl-4 pr-6": text && icon,
1156
1156
  "px-4": text && !icon
@@ -4051,7 +4051,7 @@ var NotificationBanner = function NotificationBanner(props) {
4051
4051
  stretch = _props$stretch === void 0 ? true : _props$stretch,
4052
4052
  _props$centerContent = props.centerContent,
4053
4053
  centerContent = _props$centerContent === void 0 ? false : _props$centerContent;
4054
- var classes = classNames("px-6 py-4 h-13 flex flex-row items-center border border-solid rounded", props.className, {
4054
+ var classes = classNames("px-6 py-4 min-h-13 flex flex-row items-center border border-solid rounded", props.className, {
4055
4055
  "bg-slate-100 border-slate-300 text-slate-700": props.color === "base",
4056
4056
  "bg-blue-50 border-blue-700 text-blue-800": props.color === "blue",
4057
4057
  "bg-red-50 border-red-700 text-red-700": props.color === "red",