@caqophony/ui 0.9.8 → 0.9.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.
- package/dist/index.d.mts +0 -11
- package/dist/index.js +8 -5
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -428,19 +428,8 @@ interface ConfirmDialogProps {
|
|
|
428
428
|
}
|
|
429
429
|
declare function ConfirmDialog({ title, message, confirmLabel, onConfirm, onCancel, isLoading, confirmTestId, cancelTestId, dialogTestId, cancelLabel, confirmVariant, className, error, }: ConfirmDialogProps): react_jsx_runtime.JSX.Element;
|
|
430
430
|
|
|
431
|
-
/**
|
|
432
|
-
* DiceBear avatars drawn in the app, with no request to a third-party host
|
|
433
|
-
* (#7507).
|
|
434
|
-
*
|
|
435
|
-
* Each style is its own package, loaded only when an avatar of that style is
|
|
436
|
-
* drawn, so a page that draws none loads none. `@dicebear/core` builds the
|
|
437
|
-
* SVG from the seed; the same seed and style always give the same image.
|
|
438
|
-
*
|
|
439
|
-
* Authored by Caqophony
|
|
440
|
-
*/
|
|
441
431
|
/** Supported DiceBear avatar styles */
|
|
442
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';
|
|
443
|
-
|
|
444
433
|
declare const avatarVariants: (props?: ({
|
|
445
434
|
size?: "xs" | "sm" | "md" | "lg" | "xl" | "2xl" | null | undefined;
|
|
446
435
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
package/dist/index.js
CHANGED
|
@@ -1312,7 +1312,8 @@ var DiceBearAvatar = React7.forwardRef(
|
|
|
1312
1312
|
let live = true;
|
|
1313
1313
|
setSrc(null);
|
|
1314
1314
|
setHasError(false);
|
|
1315
|
-
|
|
1315
|
+
const style = avatarStyle;
|
|
1316
|
+
diceBearDataUri(seed, style).then(
|
|
1316
1317
|
(uri) => {
|
|
1317
1318
|
if (live) setSrc(uri);
|
|
1318
1319
|
},
|
|
@@ -1633,8 +1634,8 @@ var StackedListItem = React8.forwardRef(
|
|
|
1633
1634
|
...props,
|
|
1634
1635
|
children: [
|
|
1635
1636
|
avatar && /* @__PURE__ */ jsx19("div", { className: "col-start-1 mr-4", children: avatar }),
|
|
1636
|
-
/* @__PURE__ */ jsxs13("div", { className: "col-start-2 flex min-w-0 flex-wrap items-center gap-x-4 gap-y-1", children: [
|
|
1637
|
-
/* @__PURE__ */ jsxs13("div", { className: "min-w-0 grow basis-40", children: [
|
|
1637
|
+
/* @__PURE__ */ jsxs13("div", { className: "col-start-2 flex min-w-0 flex-wrap items-center gap-x-4 gap-y-1 [container-type:inline-size]", children: [
|
|
1638
|
+
/* @__PURE__ */ jsxs13("div", { className: "min-w-0 grow basis-full [@container(min-width:28rem)]:basis-40", children: [
|
|
1638
1639
|
/* @__PURE__ */ jsx19(
|
|
1639
1640
|
"p",
|
|
1640
1641
|
{
|
|
@@ -1656,8 +1657,10 @@ var StackedListItem = React8.forwardRef(
|
|
|
1656
1657
|
}
|
|
1657
1658
|
)
|
|
1658
1659
|
] }),
|
|
1659
|
-
meta && /* @__PURE__ */
|
|
1660
|
-
|
|
1660
|
+
(meta || action) && /* @__PURE__ */ jsxs13("div", { className: "flex min-w-0 max-w-full flex-wrap items-center gap-x-4 gap-y-1", children: [
|
|
1661
|
+
meta && /* @__PURE__ */ jsx19("span", { className: "min-w-0 max-w-full break-words text-sm text-muted-foreground", children: meta }),
|
|
1662
|
+
action && /* @__PURE__ */ jsx19("div", { className: "flex-shrink-0", children: action })
|
|
1663
|
+
] })
|
|
1661
1664
|
] })
|
|
1662
1665
|
]
|
|
1663
1666
|
}
|