@luscii-healthtech/web-ui 2.11.1 → 2.12.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.
@@ -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;
@@ -1231,6 +1237,14 @@ video {
1231
1237
  height: 3.25rem;
1232
1238
  }
1233
1239
 
1240
+ .h-22 {
1241
+ height: 5.5rem;
1242
+ }
1243
+
1244
+ .h-44 {
1245
+ height: 11rem;
1246
+ }
1247
+
1234
1248
  .h-56 {
1235
1249
  height: 14rem;
1236
1250
  }
@@ -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
  }