@danxbot/ui 15.20.0 → 15.22.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 +2333 -2274
- package/dist/index.js.map +1 -1
- package/dist/types/components/Dialog.d.ts +11 -1
- package/dist/types/icons/data.d.ts +26 -0
- 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 {};
|
|
@@ -370,6 +370,32 @@ export declare const coreIcons: {
|
|
|
370
370
|
}], readonly ["path", {
|
|
371
371
|
readonly d: "M12 17h.01";
|
|
372
372
|
}]];
|
|
373
|
+
readonly archive: readonly [readonly ["rect", {
|
|
374
|
+
readonly width: "20";
|
|
375
|
+
readonly height: "5";
|
|
376
|
+
readonly x: "2";
|
|
377
|
+
readonly y: "3";
|
|
378
|
+
readonly rx: "1";
|
|
379
|
+
}], readonly ["path", {
|
|
380
|
+
readonly d: "M4 8v11a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8";
|
|
381
|
+
}], readonly ["path", {
|
|
382
|
+
readonly d: "M10 12h4";
|
|
383
|
+
}]];
|
|
384
|
+
readonly "archive-restore": readonly [readonly ["rect", {
|
|
385
|
+
readonly width: "20";
|
|
386
|
+
readonly height: "5";
|
|
387
|
+
readonly x: "2";
|
|
388
|
+
readonly y: "3";
|
|
389
|
+
readonly rx: "1";
|
|
390
|
+
}], readonly ["path", {
|
|
391
|
+
readonly d: "M4 8v11a2 2 0 0 0 2 2h2";
|
|
392
|
+
}], readonly ["path", {
|
|
393
|
+
readonly d: "M20 8v11a2 2 0 0 1-2 2h-2";
|
|
394
|
+
}], readonly ["path", {
|
|
395
|
+
readonly d: "m9 15 3-3 3 3";
|
|
396
|
+
}], readonly ["path", {
|
|
397
|
+
readonly d: "M12 12v9";
|
|
398
|
+
}]];
|
|
373
399
|
readonly bell: readonly [readonly ["path", {
|
|
374
400
|
readonly d: "M10.268 21a2 2 0 0 0 3.464 0";
|
|
375
401
|
}], readonly ["path", {
|