@danxbot/ui 15.20.0 → 15.21.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/index.js +2330 -2273
- package/dist/index.js.map +1 -1
- package/dist/types/components/Dialog.d.ts +11 -1
- package/package.json +1 -1
|
@@ -118,6 +118,16 @@ interface AlertDialogBaseProps {
|
|
|
118
118
|
cancelLabel?: string;
|
|
119
119
|
loading?: boolean;
|
|
120
120
|
onConfirm?: () => void;
|
|
121
|
+
/**
|
|
122
|
+
* Type-to-confirm (DX-3809). When set, the body shows a labelled text field
|
|
123
|
+
* and the confirm button stays disabled until the typed value equals this
|
|
124
|
+
* string EXACTLY — case-sensitive, no trimming. For the irreversible action
|
|
125
|
+
* where a stray click on a red button is not enough friction ("type the
|
|
126
|
+
* team's name to delete it"). Enter in the field confirms only on a match.
|
|
127
|
+
* Cancel keeps the initial focus. The field starts empty on every open. An
|
|
128
|
+
* empty string is a programming error and throws.
|
|
129
|
+
*/
|
|
130
|
+
confirmText?: string;
|
|
121
131
|
className?: string;
|
|
122
132
|
ref?: Ref<HTMLDivElement>;
|
|
123
133
|
}
|
|
@@ -148,5 +158,5 @@ export type AlertDialogProps = AlertDialogBaseProps & ({
|
|
|
148
158
|
* the pointer travelling in from the panel's content reaches the safe option
|
|
149
159
|
* before the destructive one, and keyboard focus lands on cancel by default.
|
|
150
160
|
*/
|
|
151
|
-
export declare function AlertDialog({ trigger, open, onOpenChange, title, description, confirmLabel, cancelLabel, destructive, tone, loading, onConfirm, className, ref, }: AlertDialogProps): import("react").JSX.Element;
|
|
161
|
+
export declare function AlertDialog({ trigger, open, onOpenChange, title, description, confirmLabel, cancelLabel, destructive, tone, loading, onConfirm, confirmText, className, ref, }: AlertDialogProps): import("react").JSX.Element;
|
|
152
162
|
export {};
|