@caqophony/ui 0.9.6 → 0.9.7
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.d.mts +8 -1
- package/dist/index.js +3 -1
- package/dist/material.d.mts +6 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -418,8 +418,15 @@ interface ConfirmDialogProps {
|
|
|
418
418
|
confirmVariant?: 'default' | 'destructive';
|
|
419
419
|
/** Additional class for the dialog container */
|
|
420
420
|
className?: string;
|
|
421
|
+
/**
|
|
422
|
+
* The confirmed action's failure, drawn inside the panel above the buttons
|
|
423
|
+
* (#7445). The dialog stays open: it closes only when the caller's success
|
|
424
|
+
* handler closes it, so the person sees why nothing happened and can retry or
|
|
425
|
+
* cancel. A failure drawn outside the dialog would sit under its overlay.
|
|
426
|
+
*/
|
|
427
|
+
error?: string | null;
|
|
421
428
|
}
|
|
422
|
-
declare function ConfirmDialog({ title, message, confirmLabel, onConfirm, onCancel, isLoading, confirmTestId, cancelTestId, dialogTestId, cancelLabel, confirmVariant, className, }: ConfirmDialogProps): react_jsx_runtime.JSX.Element;
|
|
429
|
+
declare function ConfirmDialog({ title, message, confirmLabel, onConfirm, onCancel, isLoading, confirmTestId, cancelTestId, dialogTestId, cancelLabel, confirmVariant, className, error, }: ConfirmDialogProps): react_jsx_runtime.JSX.Element;
|
|
423
430
|
|
|
424
431
|
/** Supported DiceBear avatar styles */
|
|
425
432
|
type DiceBearStyle = 'adventurer' | 'adventurer-neutral' | 'avataaars' | 'avataaars-neutral' | 'big-ears' | 'big-ears-neutral' | 'bottts' | 'bottts-neutral' | 'croodles' | 'croodles-neutral' | 'fun-emoji' | 'icons' | 'identicon' | 'initials' | 'lorelei' | 'lorelei-neutral' | 'micah' | 'miniavs' | 'notionists' | 'notionists-neutral' | 'open-peeps' | 'personas' | 'pixel-art' | 'pixel-art-neutral' | 'rings' | 'shapes' | 'thumbs';
|
package/dist/index.js
CHANGED
|
@@ -1162,7 +1162,8 @@ function ConfirmDialog({
|
|
|
1162
1162
|
dialogTestId,
|
|
1163
1163
|
cancelLabel = "Cancel",
|
|
1164
1164
|
confirmVariant = "default",
|
|
1165
|
-
className
|
|
1165
|
+
className,
|
|
1166
|
+
error = null
|
|
1166
1167
|
}) {
|
|
1167
1168
|
const panel = React6.useRef(null);
|
|
1168
1169
|
useModalSurface(true, panel, isLoading ? void 0 : onCancel);
|
|
@@ -1201,6 +1202,7 @@ function ConfirmDialog({
|
|
|
1201
1202
|
children: message
|
|
1202
1203
|
}
|
|
1203
1204
|
),
|
|
1205
|
+
/* @__PURE__ */ jsx10(FormError, { error, className: "mt-4" }),
|
|
1204
1206
|
/* @__PURE__ */ jsxs7("div", { className: "mt-6 flex justify-end gap-3", children: [
|
|
1205
1207
|
/* @__PURE__ */ jsx10(
|
|
1206
1208
|
Button,
|
package/dist/material.d.mts
CHANGED
|
@@ -590,7 +590,12 @@ interface TextProps {
|
|
|
590
590
|
align?: 'start' | 'center';
|
|
591
591
|
/** Cap the line length for reading. */
|
|
592
592
|
measure?: boolean;
|
|
593
|
-
|
|
593
|
+
/**
|
|
594
|
+
* The element. `h3` and `h4` make a small heading on the body face: a
|
|
595
|
+
* feature or card title under a band's `Display` heading, sized by `size`
|
|
596
|
+
* and `weight` like any running text (#6958 item 8).
|
|
597
|
+
*/
|
|
598
|
+
as?: 'p' | 'span' | 'div' | 'h3' | 'h4';
|
|
594
599
|
children: ReactNode;
|
|
595
600
|
}
|
|
596
601
|
/** Running text on the theme's body face. */
|