@photoroom/ui 0.1.261 → 0.1.263
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.
|
@@ -2,9 +2,10 @@ export type LinkCardProps = Readonly<React.ComponentProps<"a"> & {
|
|
|
2
2
|
title: string;
|
|
3
3
|
description: string;
|
|
4
4
|
image: React.ReactNode;
|
|
5
|
+
badge?: React.ReactNode;
|
|
5
6
|
}>;
|
|
6
7
|
export declare const LinkCard: {
|
|
7
|
-
({ className, title, description, image, ...rest }: LinkCardProps): import("react").JSX.Element;
|
|
8
|
+
({ className, title, description, image, badge, ...rest }: LinkCardProps): import("react").JSX.Element;
|
|
8
9
|
displayName: string;
|
|
9
10
|
};
|
|
10
11
|
//# sourceMappingURL=LinkCard.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LinkCard.d.ts","sourceRoot":"","sources":["../../../../src/components/content/LinkCard/LinkCard.tsx"],"names":[],"mappings":"AAIA,MAAM,MAAM,aAAa,GAAG,QAAQ,CAClC,KAAK,CAAC,cAAc,CAAC,GAAG,CAAC,GAAG;IAC1B,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,EAAE,MAAM,CAAC;IACpB,KAAK,EAAE,KAAK,CAAC,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"LinkCard.d.ts","sourceRoot":"","sources":["../../../../src/components/content/LinkCard/LinkCard.tsx"],"names":[],"mappings":"AAIA,MAAM,MAAM,aAAa,GAAG,QAAQ,CAClC,KAAK,CAAC,cAAc,CAAC,GAAG,CAAC,GAAG;IAC1B,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,EAAE,MAAM,CAAC;IACpB,KAAK,EAAE,KAAK,CAAC,SAAS,CAAC;IACvB,KAAK,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CACzB,CACF,CAAC;AAEF,eAAO,MAAM,QAAQ;+DAOlB,aAAa;;CAyCf,CAAC"}
|
package/index.mjs
CHANGED
|
@@ -33340,27 +33340,41 @@ var BW = ({ title: r, subtitle: i, image: a, cta: o, className: s, onClick: c, o
|
|
|
33340
33340
|
BW.displayName = "LightPromoBanner";
|
|
33341
33341
|
//#endregion
|
|
33342
33342
|
//#region src/components/content/LinkCard/LinkCard.tsx
|
|
33343
|
-
var VW = ({ className: e, title: r, description: i, image: a,
|
|
33344
|
-
|
|
33345
|
-
|
|
33346
|
-
|
|
33347
|
-
|
|
33348
|
-
|
|
33349
|
-
|
|
33350
|
-
|
|
33351
|
-
|
|
33352
|
-
|
|
33353
|
-
|
|
33354
|
-
|
|
33355
|
-
|
|
33356
|
-
|
|
33357
|
-
|
|
33358
|
-
|
|
33359
|
-
|
|
33360
|
-
|
|
33361
|
-
|
|
33362
|
-
|
|
33363
|
-
|
|
33343
|
+
var VW = ({ className: e, title: r, description: i, image: a, badge: o, ...s }) => {
|
|
33344
|
+
let c = s.href == null && s.onClick != null, l = (e) => {
|
|
33345
|
+
s.onKeyDown?.(e), c && !e.defaultPrevented && (e.key === "Enter" || e.key === " ") && (e.preventDefault(), e.currentTarget.click());
|
|
33346
|
+
};
|
|
33347
|
+
return /* @__PURE__ */ n("a", {
|
|
33348
|
+
...s,
|
|
33349
|
+
role: s.role ?? (c ? "button" : void 0),
|
|
33350
|
+
tabIndex: s.tabIndex ?? (c ? 0 : void 0),
|
|
33351
|
+
onKeyDown: c ? l : s.onKeyDown,
|
|
33352
|
+
className: U("rounded-500 flex w-full cursor-pointer items-center gap-3 p-3", "bg-background-subdued hover:bg-background-subdued-hover focus-visible:bg-background-subdued active:bg-background-subdued-down", "focus:ring-misc-focus-indicator focus:misc-border-size-focus-ring transition-all", e),
|
|
33353
|
+
children: [
|
|
33354
|
+
/* @__PURE__ */ t("figure", {
|
|
33355
|
+
className: "bg-content-accent-subdued rounded-200 relative h-12 w-12 shrink-0 overflow-hidden",
|
|
33356
|
+
children: a
|
|
33357
|
+
}),
|
|
33358
|
+
/* @__PURE__ */ n("div", {
|
|
33359
|
+
className: "flex flex-1 flex-col justify-center gap-0.5 overflow-hidden",
|
|
33360
|
+
children: [/* @__PURE__ */ n("div", {
|
|
33361
|
+
className: "flex items-center gap-1",
|
|
33362
|
+
children: [/* @__PURE__ */ t("h3", {
|
|
33363
|
+
className: "component-semi-strong-500 text-content-primary min-w-0 truncate",
|
|
33364
|
+
children: r
|
|
33365
|
+
}), o != null && /* @__PURE__ */ t("span", {
|
|
33366
|
+
className: "flex shrink-0 items-center",
|
|
33367
|
+
children: o
|
|
33368
|
+
})]
|
|
33369
|
+
}), /* @__PURE__ */ t("span", {
|
|
33370
|
+
className: "component-400 text-content-secondary line-clamp-2",
|
|
33371
|
+
children: i
|
|
33372
|
+
})]
|
|
33373
|
+
}),
|
|
33374
|
+
/* @__PURE__ */ t(m, { className: "text-content-tertiary h-5 w-5" })
|
|
33375
|
+
]
|
|
33376
|
+
});
|
|
33377
|
+
};
|
|
33364
33378
|
VW.displayName = "LinkCard";
|
|
33365
33379
|
//#endregion
|
|
33366
33380
|
//#region src/components/editor/ColorSwatch/ColorSwatch.tsx
|