@dust-tt/sparkle 0.2.147 → 0.2.148

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.
@@ -6,10 +6,7 @@ interface TemplateItemProps {
6
6
  href: string | UrlObject;
7
7
  id: string;
8
8
  name: string;
9
- visual: {
10
- backgroundColor: string;
11
- emoji: string;
12
- };
9
+ visual: string;
13
10
  }
14
11
  export declare function TemplateItem({ description, href, name, visual, }: TemplateItemProps): React.JSX.Element;
15
12
  export {};
package/dist/cjs/index.js CHANGED
@@ -97646,9 +97646,8 @@ function Popup(_a) {
97646
97646
 
97647
97647
  function TemplateItem(_a) {
97648
97648
  var description = _a.description, href = _a.href, name = _a.name, visual = _a.visual;
97649
- var backgroundColor = visual.backgroundColor, emoji = visual.emoji;
97650
97649
  return (React.createElement(CardButton, { className: "s-flex s-max-h-32 s-max-w-lg s-flex-row s-gap-5 s-p-4", href: href, variant: "tertiary", target: "_self", replace: true, shallow: true },
97651
- React.createElement(Avatar, { emoji: emoji, size: "lg", isRounded: true, backgroundColor: backgroundColor }),
97650
+ React.createElement(Avatar, { isRounded: true, size: "lg", visual: visual }),
97652
97651
  React.createElement("div", { className: "s-flex s-flex-col s-gap-2" },
97653
97652
  React.createElement("span", { className: "s-text-bold s-text-lg s-font-medium s-text-element-900" }, name),
97654
97653
  React.createElement("p", { className: "s-line-clamp-2 s-w-full s-text-base s-font-normal s-text-element-800" }, description))));