@platned/ui 0.8.0 → 0.8.1
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/index.cjs +2 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +9 -1
- package/dist/index.d.ts +9 -1
- package/dist/index.js +2 -0
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -2056,6 +2056,14 @@ interface ConfirmDialogProps {
|
|
|
2056
2056
|
isConfirming?: boolean;
|
|
2057
2057
|
/** Label shown on the confirm button while `isConfirming`. */
|
|
2058
2058
|
confirmingLabel?: string;
|
|
2059
|
+
/**
|
|
2060
|
+
* The action can't go ahead yet — something still depends on the record, a check is
|
|
2061
|
+
* pending. Disables only the confirm button; Cancel, Escape, outside press and the close
|
|
2062
|
+
* button still dismiss, so the dialog can explain why and let the person leave. Not a
|
|
2063
|
+
* substitute for `isConfirming`, which also locks the dialog while a request is in flight.
|
|
2064
|
+
* New in 0.8.1.
|
|
2065
|
+
*/
|
|
2066
|
+
confirmDisabled?: boolean;
|
|
2059
2067
|
/** Optional body — a warning callout, a consequences list, or a failed-attempt error. */
|
|
2060
2068
|
children?: ReactNode;
|
|
2061
2069
|
className?: string;
|
|
@@ -2076,7 +2084,7 @@ interface ConfirmDialogProps {
|
|
|
2076
2084
|
* pattern recommends. Through 0.6 it opened on the close button, one Tab away from
|
|
2077
2085
|
* "Delete".
|
|
2078
2086
|
*/
|
|
2079
|
-
declare function ConfirmDialog({ open, title, subtitle, tone, size, confirmLabel, cancelLabel, confirmVariant, isConfirming, confirmingLabel, children, className, onConfirm, onOpenChange, }: ConfirmDialogProps): react.JSX.Element;
|
|
2087
|
+
declare function ConfirmDialog({ open, title, subtitle, tone, size, confirmLabel, cancelLabel, confirmVariant, isConfirming, confirmingLabel, confirmDisabled, children, className, onConfirm, onOpenChange, }: ConfirmDialogProps): react.JSX.Element;
|
|
2080
2088
|
|
|
2081
2089
|
interface NoteConfirmModalProps {
|
|
2082
2090
|
open: boolean;
|
package/dist/index.d.ts
CHANGED
|
@@ -2056,6 +2056,14 @@ interface ConfirmDialogProps {
|
|
|
2056
2056
|
isConfirming?: boolean;
|
|
2057
2057
|
/** Label shown on the confirm button while `isConfirming`. */
|
|
2058
2058
|
confirmingLabel?: string;
|
|
2059
|
+
/**
|
|
2060
|
+
* The action can't go ahead yet — something still depends on the record, a check is
|
|
2061
|
+
* pending. Disables only the confirm button; Cancel, Escape, outside press and the close
|
|
2062
|
+
* button still dismiss, so the dialog can explain why and let the person leave. Not a
|
|
2063
|
+
* substitute for `isConfirming`, which also locks the dialog while a request is in flight.
|
|
2064
|
+
* New in 0.8.1.
|
|
2065
|
+
*/
|
|
2066
|
+
confirmDisabled?: boolean;
|
|
2059
2067
|
/** Optional body — a warning callout, a consequences list, or a failed-attempt error. */
|
|
2060
2068
|
children?: ReactNode;
|
|
2061
2069
|
className?: string;
|
|
@@ -2076,7 +2084,7 @@ interface ConfirmDialogProps {
|
|
|
2076
2084
|
* pattern recommends. Through 0.6 it opened on the close button, one Tab away from
|
|
2077
2085
|
* "Delete".
|
|
2078
2086
|
*/
|
|
2079
|
-
declare function ConfirmDialog({ open, title, subtitle, tone, size, confirmLabel, cancelLabel, confirmVariant, isConfirming, confirmingLabel, children, className, onConfirm, onOpenChange, }: ConfirmDialogProps): react.JSX.Element;
|
|
2087
|
+
declare function ConfirmDialog({ open, title, subtitle, tone, size, confirmLabel, cancelLabel, confirmVariant, isConfirming, confirmingLabel, confirmDisabled, children, className, onConfirm, onOpenChange, }: ConfirmDialogProps): react.JSX.Element;
|
|
2080
2088
|
|
|
2081
2089
|
interface NoteConfirmModalProps {
|
|
2082
2090
|
open: boolean;
|
package/dist/index.js
CHANGED
|
@@ -6183,6 +6183,7 @@ function ConfirmDialog({
|
|
|
6183
6183
|
confirmVariant = "primary",
|
|
6184
6184
|
isConfirming = false,
|
|
6185
6185
|
confirmingLabel = "Working\u2026",
|
|
6186
|
+
confirmDisabled = false,
|
|
6186
6187
|
children,
|
|
6187
6188
|
className,
|
|
6188
6189
|
onConfirm,
|
|
@@ -6231,6 +6232,7 @@ function ConfirmDialog({
|
|
|
6231
6232
|
size: "md",
|
|
6232
6233
|
loading: isConfirming,
|
|
6233
6234
|
loadingLabel: confirmingLabel,
|
|
6235
|
+
disabled: confirmDisabled,
|
|
6234
6236
|
onClick: onConfirm,
|
|
6235
6237
|
children: isConfirming ? confirmingLabel : confirmLabel
|
|
6236
6238
|
}
|