@luscii-healthtech/web-ui 2.10.2 → 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,17 @@
1
+ import React from "react";
2
+ import { AccordionProps } from "../Accordion/Accordion";
3
+ import { ListItemProps } from "../List/List.types";
4
+ import { AccordionItemProps } from "../Accordion/AccordionItem";
5
+ import { BaseButtonProps } from "../ButtonV2/ButtonProps.type";
6
+ export interface AccordionListProps extends Omit<AccordionProps, "items"> {
7
+ title: string;
8
+ searchPlaceholder: string;
9
+ emptyListText: string;
10
+ buttonProps?: BaseButtonProps;
11
+ accordionItems: AccordionListItemProps[];
12
+ }
13
+ export interface AccordionListItemProps extends Omit<AccordionItemProps, "content"> {
14
+ listItems: ListItemProps[];
15
+ }
16
+ export declare const AccordionList: React.VFC<AccordionListProps>;
17
+ export default AccordionList;
@@ -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 {};
package/dist/index.d.ts CHANGED
@@ -3,6 +3,7 @@ export { FlexRow } from "./components/Container/FlexRow";
3
3
  export type { FlexContainerProps } from "./components/Container/types/FlexContainerProps.type";
4
4
  export { default as Toaster, TOASTER_TYPE_OPTIONS, } from "./components/Toaster/Toaster";
5
5
  export { toast } from "./components/Toaster/toast";
6
+ export { AccordionList, AccordionListItemProps, AccordionListProps, } from "./components/AccordionList/AccordionList";
6
7
  export { default as Avatar } from "./components/Avatar/Avatar";
7
8
  export { default as Badge } from "./components/Badge/Badge";
8
9
  export { BaseButtonProps as NonPrimaryButtonProps, ButtonWithPendingStateProps as PrimaryButtonProps, ButtonDefinition, } from "./components/ButtonV2/ButtonProps.type";
@@ -0,0 +1,7 @@
1
+ /**
2
+ * @param {string} string
3
+ * @param {string} searchTerm
4
+ * @param {boolean} caseSensitive
5
+ */
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;
@@ -1079,6 +1085,10 @@ video {
1079
1085
  border-right-width: 1px;
1080
1086
  }
1081
1087
 
1088
+ .box-border {
1089
+ box-sizing: border-box;
1090
+ }
1091
+
1082
1092
  .cursor-default {
1083
1093
  cursor: default;
1084
1094
  }
@@ -1227,6 +1237,14 @@ video {
1227
1237
  height: 3.25rem;
1228
1238
  }
1229
1239
 
1240
+ .h-22 {
1241
+ height: 5.5rem;
1242
+ }
1243
+
1244
+ .h-44 {
1245
+ height: 11rem;
1246
+ }
1247
+
1230
1248
  .h-56 {
1231
1249
  height: 14rem;
1232
1250
  }
@@ -1469,6 +1487,10 @@ video {
1469
1487
  max-height: 19.5rem;
1470
1488
  }
1471
1489
 
1490
+ .max-h-120 {
1491
+ max-height: 30rem;
1492
+ }
1493
+
1472
1494
  .max-h-screen {
1473
1495
  max-height: 100vh;
1474
1496
  }
@@ -1529,6 +1551,10 @@ video {
1529
1551
  outline-offset: 0;
1530
1552
  }
1531
1553
 
1554
+ .overflow-auto {
1555
+ overflow: auto;
1556
+ }
1557
+
1532
1558
  .overflow-hidden {
1533
1559
  overflow: hidden;
1534
1560
  }