@luscii-healthtech/web-ui 2.15.2 → 2.16.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/ConfirmationDialog/ConfirmationDialog.d.ts +3 -15
- package/dist/components/ConfirmationDialog/ConfirmationDialogChoices.d.ts +5 -0
- package/dist/components/ConfirmationDialog/ConfirmationDialogTitle.d.ts +3 -0
- package/dist/components/ConfirmationDialog/types/ConfirmationDialog.types.d.ts +40 -0
- package/dist/index.d.ts +1 -0
- package/dist/web-ui-tailwind.css +5 -0
- package/dist/web-ui.cjs.development.js +274 -219
- 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 +274 -219
- package/dist/web-ui.esm.js.map +1 -1
- package/package.json +1 -1
|
@@ -1,15 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
confirmLabel: string;
|
|
5
|
-
cancelLabel: string;
|
|
6
|
-
}
|
|
7
|
-
interface ConfirmationDialogProps {
|
|
8
|
-
texts: ConfirmationDialogTexts;
|
|
9
|
-
isOpen: boolean;
|
|
10
|
-
onCancel: () => void;
|
|
11
|
-
onConfirm: () => void;
|
|
12
|
-
isProcessing?: boolean;
|
|
13
|
-
}
|
|
14
|
-
export declare const ConfirmationDialog: (props: ConfirmationDialogProps) => JSX.Element;
|
|
15
|
-
export {};
|
|
1
|
+
import React from "react";
|
|
2
|
+
import type { ConfirmationDialogProps } from "./types/ConfirmationDialog.types";
|
|
3
|
+
export declare const ConfirmationDialog: React.FC<ConfirmationDialogProps>;
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { IconProps } from "../../Icons/types/IconProps.type";
|
|
3
|
+
import type { NotificationBannerColor } from "../../NotificationBanner/NotificationBanner";
|
|
4
|
+
interface ConfirmationDialogTexts {
|
|
5
|
+
message: string;
|
|
6
|
+
confirmLabel: string;
|
|
7
|
+
cancelLabel: string;
|
|
8
|
+
}
|
|
9
|
+
export interface ConfirmationDialogChoice<T extends string = string> {
|
|
10
|
+
text: string;
|
|
11
|
+
value: T;
|
|
12
|
+
description?: string;
|
|
13
|
+
displaysInfo?: {
|
|
14
|
+
level: NotificationBannerColor;
|
|
15
|
+
text: string;
|
|
16
|
+
};
|
|
17
|
+
}
|
|
18
|
+
export interface ConfirmationDialogProps {
|
|
19
|
+
texts: ConfirmationDialogTexts;
|
|
20
|
+
isOpen: boolean;
|
|
21
|
+
onCancel: () => void;
|
|
22
|
+
onConfirm: () => void;
|
|
23
|
+
isProcessing?: boolean;
|
|
24
|
+
withTitle?: {
|
|
25
|
+
title: string;
|
|
26
|
+
icon?: React.FC<IconProps>;
|
|
27
|
+
};
|
|
28
|
+
choices?: {
|
|
29
|
+
defaultChoice?: ConfirmationDialogChoice["value"];
|
|
30
|
+
onChoiceChange: (choice: ConfirmationDialogChoice) => void;
|
|
31
|
+
options: {
|
|
32
|
+
0: ConfirmationDialogChoice;
|
|
33
|
+
1: ConfirmationDialogChoice;
|
|
34
|
+
} & ConfirmationDialogChoice[];
|
|
35
|
+
};
|
|
36
|
+
}
|
|
37
|
+
export interface ConfirmationDialogTitleProps {
|
|
38
|
+
title: ConfirmationDialogProps["withTitle"];
|
|
39
|
+
}
|
|
40
|
+
export {};
|
package/dist/index.d.ts
CHANGED
|
@@ -14,6 +14,7 @@ export { default as Carousel } from "./components/Carousel/Carousel";
|
|
|
14
14
|
export { default as CenteredHero } from "./components/CenteredHero/CenteredHero";
|
|
15
15
|
export { default as Checkbox } from "./components/Checkbox/Checkbox";
|
|
16
16
|
export { ConfirmationDialog } from "./components/ConfirmationDialog/ConfirmationDialog";
|
|
17
|
+
export type { ConfirmationDialogChoice, ConfirmationDialogProps, ConfirmationDialogTitleProps, } from "./components/ConfirmationDialog/types/ConfirmationDialog.types";
|
|
17
18
|
export { default as DatePicker } from "./components/Datepicker/Datepicker";
|
|
18
19
|
export { default as Dropdown } from "./components/Dropdown/Dropdown";
|
|
19
20
|
export { EmptyListMessage } from "./components/EmptyListMessage/EmptyListMessage";
|
package/dist/web-ui-tailwind.css
CHANGED
|
@@ -2172,6 +2172,11 @@ video {
|
|
|
2172
2172
|
transform: translateX(var(--transform-translate-x)) translateY(var(--transform-translate-y)) rotate(var(--transform-rotate)) skewX(var(--transform-skew-x)) skewY(var(--transform-skew-y)) scaleX(var(--transform-scale-x)) scaleY(var(--transform-scale-y));
|
|
2173
2173
|
}
|
|
2174
2174
|
|
|
2175
|
+
.scale-150 {
|
|
2176
|
+
--transform-scale-x: 1.5;
|
|
2177
|
+
--transform-scale-y: 1.5;
|
|
2178
|
+
}
|
|
2179
|
+
|
|
2175
2180
|
.-translate-x-1\/2 {
|
|
2176
2181
|
--transform-translate-x: -50%;
|
|
2177
2182
|
}
|