@lctafrica/ui 1.2.8 → 1.2.9
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.
|
@@ -5,5 +5,6 @@ export type ModalFooterProps = {
|
|
|
5
5
|
confirmButtonLabel?: string;
|
|
6
6
|
cancelButtonLabel?: string;
|
|
7
7
|
variant?: ModalThemeVariantsProps["variant"];
|
|
8
|
+
isConfirmButtonDisabled?: boolean;
|
|
8
9
|
};
|
|
9
|
-
export declare function ModalFooter({ onCancel, cancelButtonLabel, onConfirm, confirmButtonLabel, variant, }: ModalFooterProps): import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
export declare function ModalFooter({ onCancel, cancelButtonLabel, onConfirm, confirmButtonLabel, variant, isConfirmButtonDisabled, }: ModalFooterProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -2,4 +2,4 @@ import { ModalProps } from '../modal/Modal';
|
|
|
2
2
|
import { ModalThemeVariantsProps } from '../modal/modal-theme-variants';
|
|
3
3
|
import { ModalFooterProps } from '../ModalFooter';
|
|
4
4
|
export type ConfirmModalProps = ModalProps & ModalFooterProps & ModalThemeVariantsProps;
|
|
5
|
-
export declare function ConfirmModal({ onCancel, onConfirm, confirmButtonLabel, cancelButtonLabel, children, headerLeft, titleClassName, descriptionClassName, className, variant, ...rest }: ConfirmModalProps): import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
export declare function ConfirmModal({ onCancel, onConfirm, confirmButtonLabel, cancelButtonLabel, children, headerLeft, titleClassName, descriptionClassName, className, isConfirmButtonDisabled, variant, ...rest }: ConfirmModalProps): import("react/jsx-runtime").JSX.Element;
|
package/dist/index.js
CHANGED
|
@@ -12098,7 +12098,8 @@ function wp({
|
|
|
12098
12098
|
cancelButtonLabel: t,
|
|
12099
12099
|
onConfirm: r,
|
|
12100
12100
|
confirmButtonLabel: o,
|
|
12101
|
-
variant: n
|
|
12101
|
+
variant: n,
|
|
12102
|
+
isConfirmButtonDisabled: i
|
|
12102
12103
|
}) {
|
|
12103
12104
|
return /* @__PURE__ */ fe(ok, { className: "mt-4 gap-15", children: [
|
|
12104
12105
|
/* @__PURE__ */ v(ek, { asChild: !0, children: /* @__PURE__ */ v(br, { onClick: e, variant: "outline", type: "button", children: t }) }),
|
|
@@ -12107,6 +12108,7 @@ function wp({
|
|
|
12107
12108
|
{
|
|
12108
12109
|
variant: n === "destructive" ? "primary-destructive" : n == "success" ? "primary-success" : "primary",
|
|
12109
12110
|
onClick: r,
|
|
12111
|
+
disabled: i,
|
|
12110
12112
|
children: o
|
|
12111
12113
|
}
|
|
12112
12114
|
)
|
|
@@ -12136,20 +12138,21 @@ function rM({
|
|
|
12136
12138
|
titleClassName: a,
|
|
12137
12139
|
descriptionClassName: s,
|
|
12138
12140
|
className: l,
|
|
12139
|
-
|
|
12140
|
-
|
|
12141
|
+
isConfirmButtonDisabled: c,
|
|
12142
|
+
variant: u = "informative",
|
|
12143
|
+
...d
|
|
12141
12144
|
}) {
|
|
12142
12145
|
return /* @__PURE__ */ fe(
|
|
12143
12146
|
qc,
|
|
12144
12147
|
{
|
|
12145
|
-
headerLeft: i || /* @__PURE__ */ v(sk, { variant:
|
|
12148
|
+
headerLeft: i || /* @__PURE__ */ v(sk, { variant: u }),
|
|
12146
12149
|
className: T("min-w-175 pr-10", l),
|
|
12147
12150
|
titleClassName: T("text-gray-600 font-normal", a),
|
|
12148
12151
|
descriptionClassName: T(
|
|
12149
12152
|
"text-lct-medium-text text-base",
|
|
12150
12153
|
s
|
|
12151
12154
|
),
|
|
12152
|
-
...
|
|
12155
|
+
...d,
|
|
12153
12156
|
children: [
|
|
12154
12157
|
n,
|
|
12155
12158
|
/* @__PURE__ */ v(
|
|
@@ -12159,7 +12162,8 @@ function rM({
|
|
|
12159
12162
|
onConfirm: t,
|
|
12160
12163
|
confirmButtonLabel: r,
|
|
12161
12164
|
cancelButtonLabel: o,
|
|
12162
|
-
variant:
|
|
12165
|
+
variant: u,
|
|
12166
|
+
isConfirmButtonDisabled: c
|
|
12163
12167
|
}
|
|
12164
12168
|
)
|
|
12165
12169
|
]
|