@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.
- package/dist/components/CheckBoxListModal/CheckboxListModal.d.ts +32 -0
- package/dist/components/Container/FlexColumn.d.ts +7 -0
- package/dist/components/Container/FlexContainer.d.ts +9 -0
- package/dist/components/Container/FlexRow.d.ts +7 -0
- package/dist/components/Container/types/FlexContainerProps.type.d.ts +15 -0
- package/dist/index.d.ts +4 -0
- package/dist/web-ui-tailwind.css +12 -0
- package/dist/web-ui.cjs.development.js +333 -121
- package/dist/web-ui.cjs.development.js.map +1 -1
- package/dist/web-ui.cjs.production.min.js +1 -1
- package/dist/web-ui.cjs.production.min.js.map +1 -1
- package/dist/web-ui.esm.js +331 -122
- package/dist/web-ui.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/components/CheckBoxListModal/CheckboxListModal.tsx +180 -0
- package/src/components/CheckboxList/CheckboxGroup.tsx +0 -1
- package/src/components/CheckboxList/CheckboxListItem.tsx +45 -41
- package/src/components/Container/FlexColumn.tsx +18 -0
- package/src/components/Container/FlexContainer.tsx +46 -0
- package/src/components/Container/FlexRow.tsx +18 -0
- package/src/components/Container/types/FlexContainerProps.type.ts +18 -0
- package/src/components/List/ListItem.tsx +1 -0
- package/src/components/LoadingIndicator/LoadingIndicator.tsx +1 -0
- package/src/components/Radio/RadioV2.tsx +1 -1
- package/src/index.tsx +9 -0
|
@@ -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";
|
package/dist/web-ui-tailwind.css
CHANGED
|
@@ -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
|
}
|