@luscii-healthtech/web-ui 2.7.0 → 2.9.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,32 @@
1
+ /// <reference types="react" />
2
+ export interface Item {
3
+ id: string;
4
+ label: string;
5
+ isChecked: boolean;
6
+ group?: string;
7
+ isPinned?: boolean;
8
+ }
9
+ export interface Group {
10
+ title?: string;
11
+ items: Item[];
12
+ }
13
+ interface CheckboxListModalTexts {
14
+ title: string;
15
+ confirmLabel: string;
16
+ cancelLabel: string;
17
+ searchPlaceHolder?: string;
18
+ emptyState: string;
19
+ }
20
+ export interface CheckboxListModalProps {
21
+ texts: CheckboxListModalTexts;
22
+ initialItems: Array<Item>;
23
+ isLoadingInitialItems?: boolean;
24
+ isOpen: boolean;
25
+ onSave: (newItems: Item[]) => void;
26
+ onCloseClick: () => void;
27
+ filterItem: (item: Item, searchQuery: string) => boolean;
28
+ className?: string;
29
+ hasSearch: boolean;
30
+ }
31
+ export declare const CheckboxListModal: ({ texts, initialItems, isLoadingInitialItems, isOpen, onSave, onCloseClick, filterItem, className, hasSearch, }: CheckboxListModalProps) => JSX.Element;
32
+ export {};
@@ -0,0 +1,7 @@
1
+ import React from "react";
2
+ import { FlexContainerProps } from "./types/FlexContainerProps.type";
3
+ /**
4
+ * Container to be used for layouting instead of divs around the project.
5
+ * The spacing here has been coded according to our guidelines.
6
+ */
7
+ export declare const FlexColumn: React.FC<FlexContainerProps>;
@@ -0,0 +1,9 @@
1
+ import React from "react";
2
+ import { FlexContainerBaseProps } from "./types/FlexContainerProps.type";
3
+ /**
4
+ * Container to be used for layouting instead of divs around the project.
5
+ * The spacing here has been coded according to our guidelines.
6
+ */
7
+ export declare const FlexContainer: React.FC<FlexContainerBaseProps & {
8
+ type: "column" | "row";
9
+ }>;
@@ -0,0 +1,7 @@
1
+ import React from "react";
2
+ import { FlexContainerProps } from "./types/FlexContainerProps.type";
3
+ /**
4
+ * Container to be used for layouting instead of divs around the project.
5
+ * The spacing here has been coded according to our guidelines.
6
+ */
7
+ export declare const FlexRow: React.FC<FlexContainerProps>;
@@ -0,0 +1,15 @@
1
+ import React from "react";
2
+ declare type FlexContainerBase = {
3
+ alignItems?: "center" | "start" | "end";
4
+ justifyContent?: "center" | "start" | "end" | "between";
5
+ verticallySpaced?: boolean;
6
+ horitontallySpaced?: boolean;
7
+ hasPadding?: boolean;
8
+ };
9
+ export declare type FlexContainerBaseProps = FlexContainerBase & {
10
+ children: React.ReactNode;
11
+ };
12
+ export declare type FlexContainerProps = Omit<FlexContainerBaseProps, "verticallySpaced" | "horitontallySpaced"> & {
13
+ spaced?: boolean;
14
+ };
15
+ export {};
package/dist/index.d.ts CHANGED
@@ -1,3 +1,6 @@
1
+ export { FlexColumn } from "./components/Container/FlexColumn";
2
+ export { FlexRow } from "./components/Container/FlexRow";
3
+ export type { FlexContainerProps } from "./components/Container/types/FlexContainerProps.type";
1
4
  export { default as Toaster, TOASTER_TYPE_OPTIONS, } from "./components/Toaster/Toaster";
2
5
  export { toast } from "./components/Toaster/toast";
3
6
  export { default as Avatar } from "./components/Avatar/Avatar";
@@ -24,6 +27,7 @@ export { LoadingIndicator, LoadingIndicatorProps, } from "./components/LoadingIn
24
27
  export { default as Menu } from "./components/Menu/Menu";
25
28
  export { List, ListProps, ListItemProps, OnAssetLoadErrorPayload, } from "./components/List/List";
26
29
  export { CheckboxList, CheckboxListProps, } from "./components/CheckboxList/CheckboxList";
30
+ export { CheckboxListModal, CheckboxListModalProps, } from "./components/CheckBoxListModal/CheckboxListModal";
27
31
  export { MultiSelect } from "./components/MultiSelect/MultiSelect";
28
32
  export { NavLayout, NavMenuLayoutProps } from "./components/NavMenu/NavLayout";
29
33
  export { NavMenu, NavMenuElement } from "./components/NavMenu/NavMenu";
@@ -1139,6 +1139,10 @@ video {
1139
1139
  align-items: flex-start;
1140
1140
  }
1141
1141
 
1142
+ .items-end {
1143
+ align-items: flex-end;
1144
+ }
1145
+
1142
1146
  .items-center {
1143
1147
  align-items: center;
1144
1148
  }
@@ -1613,6 +1617,10 @@ video {
1613
1617
  padding-left: 0.25rem;
1614
1618
  }
1615
1619
 
1620
+ .pr-4 {
1621
+ padding-right: 1rem;
1622
+ }
1623
+
1616
1624
  .pl-4 {
1617
1625
  padding-left: 1rem;
1618
1626
  }
@@ -2065,6 +2073,10 @@ video {
2065
2073
  width: 26rem;
2066
2074
  }
2067
2075
 
2076
+ .w-130 {
2077
+ width: 32.5rem;
2078
+ }
2079
+
2068
2080
  .w-auto {
2069
2081
  width: auto;
2070
2082
  }