@luscii-healthtech/web-ui 2.17.0 → 2.18.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 +1 -1
- package/dist/components/Modal/Modal.d.ts +4 -30
- package/dist/components/Modal/ModalBase.d.ts +14 -0
- package/dist/components/Modal/ModalFooter.d.ts +13 -0
- package/dist/components/Modal/ModalHeader.d.ts +6 -0
- package/dist/index.d.ts +4 -0
- package/dist/web-ui-tailwind.css +40 -10
- package/dist/web-ui.cjs.development.js +204 -260
- 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 +204 -261
- package/dist/web-ui.esm.js.map +1 -1
- package/package.json +1 -1
- package/dist/components/Modal/ModalWithButtons.d.ts +0 -9
|
@@ -28,5 +28,5 @@ export interface CheckboxListModalProps {
|
|
|
28
28
|
className?: string;
|
|
29
29
|
hasSearch: boolean;
|
|
30
30
|
}
|
|
31
|
-
export declare const CheckboxListModal: ({ texts, initialItems, isLoadingInitialItems, isOpen, onSave, onCloseClick, filterItem,
|
|
31
|
+
export declare const CheckboxListModal: ({ texts, initialItems, isLoadingInitialItems, isOpen, onSave, onCloseClick, filterItem, hasSearch, }: CheckboxListModalProps) => JSX.Element;
|
|
32
32
|
export {};
|
|
@@ -1,32 +1,6 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import "./
|
|
3
|
-
export declare
|
|
4
|
-
|
|
5
|
-
readonly WIDE: "wide";
|
|
6
|
-
readonly WIDER: "wider";
|
|
7
|
-
readonly EXTRA_SMALL: "extra-small";
|
|
8
|
-
readonly DIALOG: "dialog";
|
|
2
|
+
import { ModalBaseProps } from "./ModalBase";
|
|
3
|
+
export declare type ModalProps = Omit<ModalBaseProps, "title"> & {
|
|
4
|
+
title: string;
|
|
9
5
|
};
|
|
10
|
-
declare
|
|
11
|
-
export declare type MODAL_SIZES_VALUES = typeof MODAL_SIZES[MODAL_SIZES_NAMES];
|
|
12
|
-
export interface ModalProps {
|
|
13
|
-
children: React.ReactNode;
|
|
14
|
-
type?: MODAL_SIZES_VALUES;
|
|
15
|
-
isOpen?: boolean;
|
|
16
|
-
shouldCloseOnOverlayClick?: boolean;
|
|
17
|
-
showTitleBar?: boolean;
|
|
18
|
-
title?: string;
|
|
19
|
-
onCloseClick?: (event: React.MouseEvent<Element, MouseEvent> | React.KeyboardEvent<Element>) => void;
|
|
20
|
-
backAltText?: string;
|
|
21
|
-
closeAltText?: string;
|
|
22
|
-
className?: string;
|
|
23
|
-
closeButtonId?: string;
|
|
24
|
-
withPadding?: boolean;
|
|
25
|
-
showHeader?: boolean;
|
|
26
|
-
}
|
|
27
|
-
/**
|
|
28
|
-
* Don't use this modal directly if you need to add buttons to it.
|
|
29
|
-
* There's a component called <ModalWithButtons /> you can use instead.
|
|
30
|
-
*/
|
|
31
|
-
declare function Modal({ children, type, isOpen, shouldCloseOnOverlayClick, showTitleBar, title, onCloseClick, closeAltText, className, closeButtonId, withPadding, showHeader, }: ModalProps): JSX.Element;
|
|
32
|
-
export default Modal;
|
|
6
|
+
export declare const Modal: React.FC<ModalProps>;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { ModalHeaderProps } from "./ModalHeader";
|
|
3
|
+
import { ModalFooterProps } from "./ModalFooter";
|
|
4
|
+
export declare type ModalSize = "small" | "medium" | "wide";
|
|
5
|
+
export declare type ModalBaseProps = Omit<ModalHeaderProps, "title"> & {
|
|
6
|
+
children: React.ReactNode;
|
|
7
|
+
size?: ModalSize;
|
|
8
|
+
withExtraMarginTop?: boolean;
|
|
9
|
+
isOpen?: boolean;
|
|
10
|
+
shouldCloseOnOverlayClick?: boolean;
|
|
11
|
+
title?: string;
|
|
12
|
+
onCloseClick: (event: React.MouseEvent<Element, MouseEvent> | React.KeyboardEvent<Element>) => void;
|
|
13
|
+
} & ModalFooterProps;
|
|
14
|
+
export declare const ModalBase: React.FC<ModalBaseProps>;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { NonPrimaryButtonProps, PrimaryButtonProps } from "../..";
|
|
3
|
+
import { BaseButtonProps } from "../ButtonV2/ButtonProps.type";
|
|
4
|
+
export interface ModalFooterTrailingComponents {
|
|
5
|
+
primaryButtonProps: PrimaryButtonProps;
|
|
6
|
+
secondaryButtonProps?: NonPrimaryButtonProps;
|
|
7
|
+
}
|
|
8
|
+
export declare type ModalFooterLeadingComponent = string | BaseButtonProps;
|
|
9
|
+
export declare type ModalFooterProps = {
|
|
10
|
+
footerLeadingComponent?: ModalFooterLeadingComponent;
|
|
11
|
+
footerTrailingComponents: ModalFooterTrailingComponents;
|
|
12
|
+
};
|
|
13
|
+
export declare const ModalFooter: React.FC<ModalFooterProps>;
|
package/dist/index.d.ts
CHANGED
|
@@ -4,6 +4,10 @@ export type { FlexContainerProps } from "./components/Container/types/FlexContai
|
|
|
4
4
|
export { default as Toaster, TOASTER_TYPE_OPTIONS, } from "./components/Toaster/Toaster";
|
|
5
5
|
export { toast } from "./components/Toaster/toast";
|
|
6
6
|
export { AccordionList, AccordionListItemProps, AccordionListProps, } from "./components/AccordionList/AccordionList";
|
|
7
|
+
export { Modal, ModalProps } from "./components/Modal/Modal";
|
|
8
|
+
export { ModalSize, ModalBaseProps } from "./components/Modal/ModalBase";
|
|
9
|
+
export { ModalHeaderProps } from "./components/Modal/ModalHeader";
|
|
10
|
+
export { ModalFooterProps, ModalFooterLeadingComponent, ModalFooterTrailingComponents, } from "./components/Modal/ModalFooter";
|
|
7
11
|
export { default as Avatar } from "./components/Avatar/Avatar";
|
|
8
12
|
export { default as Badge } from "./components/Badge/Badge";
|
|
9
13
|
export { BaseButtonProps as NonPrimaryButtonProps, ButtonWithPendingStateProps as PrimaryButtonProps, ButtonDefinition, } from "./components/ButtonV2/ButtonProps.type";
|
package/dist/web-ui-tailwind.css
CHANGED
|
@@ -803,6 +803,10 @@ video {
|
|
|
803
803
|
background-color: rgba(255, 98, 102, var(--bg-opacity));
|
|
804
804
|
}
|
|
805
805
|
|
|
806
|
+
.bg-overlay {
|
|
807
|
+
background-color: rgba(0, 0, 0, 0.25);
|
|
808
|
+
}
|
|
809
|
+
|
|
806
810
|
.hover\:bg-white:hover {
|
|
807
811
|
--bg-opacity: 1;
|
|
808
812
|
background-color: #fff;
|
|
@@ -941,12 +945,6 @@ video {
|
|
|
941
945
|
border-color: rgba(238, 238, 238, var(--border-opacity));
|
|
942
946
|
}
|
|
943
947
|
|
|
944
|
-
.border-chrome {
|
|
945
|
-
--border-opacity: 1;
|
|
946
|
-
border-color: #f3f3f3;
|
|
947
|
-
border-color: rgba(243, 243, 243, var(--border-opacity));
|
|
948
|
-
}
|
|
949
|
-
|
|
950
948
|
.border-color-border-primary {
|
|
951
949
|
--border-opacity: 1;
|
|
952
950
|
border-color: #cccccc;
|
|
@@ -1034,6 +1032,11 @@ video {
|
|
|
1034
1032
|
border-bottom-left-radius: 0.375rem;
|
|
1035
1033
|
}
|
|
1036
1034
|
|
|
1035
|
+
.rounded-t-lg {
|
|
1036
|
+
border-top-left-radius: 0.5rem;
|
|
1037
|
+
border-top-right-radius: 0.5rem;
|
|
1038
|
+
}
|
|
1039
|
+
|
|
1037
1040
|
.rounded-b-lg {
|
|
1038
1041
|
border-bottom-right-radius: 0.5rem;
|
|
1039
1042
|
border-bottom-left-radius: 0.5rem;
|
|
@@ -1347,6 +1350,11 @@ video {
|
|
|
1347
1350
|
margin: 0.5rem;
|
|
1348
1351
|
}
|
|
1349
1352
|
|
|
1353
|
+
.my-0 {
|
|
1354
|
+
margin-top: 0;
|
|
1355
|
+
margin-bottom: 0;
|
|
1356
|
+
}
|
|
1357
|
+
|
|
1350
1358
|
.mx-0 {
|
|
1351
1359
|
margin-left: 0;
|
|
1352
1360
|
margin-right: 0;
|
|
@@ -1453,6 +1461,10 @@ video {
|
|
|
1453
1461
|
margin-left: 2.5rem;
|
|
1454
1462
|
}
|
|
1455
1463
|
|
|
1464
|
+
.mt-17 {
|
|
1465
|
+
margin-top: 4.25rem;
|
|
1466
|
+
}
|
|
1467
|
+
|
|
1456
1468
|
.mb-20 {
|
|
1457
1469
|
margin-bottom: 5rem;
|
|
1458
1470
|
}
|
|
@@ -1477,10 +1489,6 @@ video {
|
|
|
1477
1489
|
margin-bottom: 0.625rem;
|
|
1478
1490
|
}
|
|
1479
1491
|
|
|
1480
|
-
.ml-2\.5 {
|
|
1481
|
-
margin-left: 0.625rem;
|
|
1482
|
-
}
|
|
1483
|
-
|
|
1484
1492
|
.-mt-px {
|
|
1485
1493
|
margin-top: -1px;
|
|
1486
1494
|
}
|
|
@@ -1549,6 +1557,11 @@ video {
|
|
|
1549
1557
|
opacity: 1;
|
|
1550
1558
|
}
|
|
1551
1559
|
|
|
1560
|
+
.outline-none {
|
|
1561
|
+
outline: 2px solid transparent;
|
|
1562
|
+
outline-offset: 2px;
|
|
1563
|
+
}
|
|
1564
|
+
|
|
1552
1565
|
.outline-primary {
|
|
1553
1566
|
outline: 4px solid rgba(0, 159, 227, 0.3);
|
|
1554
1567
|
outline-offset: 0;
|
|
@@ -1581,6 +1594,10 @@ video {
|
|
|
1581
1594
|
overflow-y: auto;
|
|
1582
1595
|
}
|
|
1583
1596
|
|
|
1597
|
+
.overflow-x-hidden {
|
|
1598
|
+
overflow-x: hidden;
|
|
1599
|
+
}
|
|
1600
|
+
|
|
1584
1601
|
.p-0 {
|
|
1585
1602
|
padding: 0;
|
|
1586
1603
|
}
|
|
@@ -1656,6 +1673,11 @@ video {
|
|
|
1656
1673
|
padding-right: 1.5rem;
|
|
1657
1674
|
}
|
|
1658
1675
|
|
|
1676
|
+
.py-15 {
|
|
1677
|
+
padding-top: 3.75rem;
|
|
1678
|
+
padding-bottom: 3.75rem;
|
|
1679
|
+
}
|
|
1680
|
+
|
|
1659
1681
|
.px-17 {
|
|
1660
1682
|
padding-left: 4.25rem;
|
|
1661
1683
|
padding-right: 4.25rem;
|
|
@@ -2129,6 +2151,14 @@ video {
|
|
|
2129
2151
|
width: 32.5rem;
|
|
2130
2152
|
}
|
|
2131
2153
|
|
|
2154
|
+
.w-132 {
|
|
2155
|
+
width: 33rem;
|
|
2156
|
+
}
|
|
2157
|
+
|
|
2158
|
+
.w-216 {
|
|
2159
|
+
width: 54rem;
|
|
2160
|
+
}
|
|
2161
|
+
|
|
2132
2162
|
.w-auto {
|
|
2133
2163
|
width: auto;
|
|
2134
2164
|
}
|