@photoroom/ui 0.1.163 → 0.1.165
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/components/editor/Pill/PillButton.d.ts +1 -0
- package/components/editor/Pill/PillButton.d.ts.map +1 -1
- package/components/editor/Pill/PillButton.figma.d.ts +2 -0
- package/components/editor/Pill/PillButton.figma.d.ts.map +1 -0
- package/components/index.d.ts +1 -0
- package/components/index.d.ts.map +1 -1
- package/components/website/PersonaBlock/PersonaBlock.d.ts +5 -0
- package/components/website/PersonaBlock/PersonaBlock.d.ts.map +1 -0
- package/components/website/PersonaBlock/PersonaCard.d.ts +11 -0
- package/components/website/PersonaBlock/PersonaCard.d.ts.map +1 -0
- package/components/website/PersonaBlock/index.d.ts +3 -0
- package/components/website/PersonaBlock/index.d.ts.map +1 -0
- package/index.css +1 -1
- package/index.mjs +20 -14
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -36590,20 +36590,26 @@ var EY = l(({ label: e, labelTestId: t, subtitle: n, isHidden: r, defaultIsHidde
|
|
|
36590
36590
|
EY.displayName = "ObjectItem";
|
|
36591
36591
|
//#endregion
|
|
36592
36592
|
//#region src/components/editor/Pill/PillButton.tsx
|
|
36593
|
-
var DY = l(({ icon: e, label: t, className: n,
|
|
36594
|
-
let
|
|
36595
|
-
|
|
36596
|
-
|
|
36597
|
-
|
|
36598
|
-
|
|
36599
|
-
|
|
36600
|
-
|
|
36601
|
-
|
|
36602
|
-
|
|
36603
|
-
|
|
36604
|
-
|
|
36605
|
-
|
|
36606
|
-
|
|
36593
|
+
var DY = l(({ icon: e, label: t, className: n, chevron: r = !1, ...i }, a) => {
|
|
36594
|
+
let o = e && !t, s = !e && t, c = e && t, l = /* @__PURE__ */ E(w, { children: [!!e && /* @__PURE__ */ T("span", {
|
|
36595
|
+
role: "presentation",
|
|
36596
|
+
className: "icon-size-500",
|
|
36597
|
+
children: e
|
|
36598
|
+
}), !!t && /* @__PURE__ */ T("span", {
|
|
36599
|
+
className: "component-500",
|
|
36600
|
+
children: t
|
|
36601
|
+
})] });
|
|
36602
|
+
return /* @__PURE__ */ T("button", {
|
|
36603
|
+
...i,
|
|
36604
|
+
ref: a,
|
|
36605
|
+
className: V("group shrink-0 cursor-pointer outline-hidden", "inline-flex items-center justify-center", "rounded-300", "hover:bg-background-subdued-hover", "active:bg-background-subdued-down", "focus-visible:bg-background-subdued-hover", "focus-visible:ring-misc-focus-indicator focus-visible:misc-border-size-focus-ring", "text-content-primary", "disabled:cursor-not-allowed disabled:opacity-30", "interaction-transition transition-all", o && !r && "size-400", o && r && "size-h-400 content-to-edge-pl-250 content-to-edge-pr-150 gap-1", s && !r && "content-to-edge-px-400 size-h-400", s && r && "content-to-edge-pl-400 content-to-edge-pr-250 size-h-400 gap-1", c && !r && "content-to-edge-pr-400 icon-to-edge-pl-400 size-h-400 gap-2", c && r && "icon-to-edge-pl-400 content-to-edge-pr-250 size-h-400 gap-1", n),
|
|
36606
|
+
children: r ? /* @__PURE__ */ E(w, { children: [/* @__PURE__ */ T("span", {
|
|
36607
|
+
className: "flex items-center gap-2",
|
|
36608
|
+
children: l
|
|
36609
|
+
}), /* @__PURE__ */ T(I, {
|
|
36610
|
+
"aria-hidden": !0,
|
|
36611
|
+
className: "icon-size-400"
|
|
36612
|
+
})] }) : l
|
|
36607
36613
|
});
|
|
36608
36614
|
});
|
|
36609
36615
|
DY.displayName = "PillButton";
|