@photoroom/ui 0.1.163 → 0.1.164

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/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, ...r }, i) => {
36594
- let a = e && !t, o = !e && t, s = e && t;
36595
- return /* @__PURE__ */ E("button", {
36596
- ...r,
36597
- ref: i,
36598
- 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", a && "size-400", o && "content-to-edge-px-400 size-h-400", s && "content-to-edge-pr-400 icon-to-edge-pl-400 size-h-400 gap-2", n),
36599
- children: [!!e && /* @__PURE__ */ T("span", {
36600
- role: "presentation",
36601
- className: "icon-size-500",
36602
- children: e
36603
- }), !!t && /* @__PURE__ */ T("span", {
36604
- className: "component-500",
36605
- children: t
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";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@photoroom/ui",
3
- "version": "0.1.163",
3
+ "version": "0.1.164",
4
4
  "private": false,
5
5
  "description": "Photoroom design system components",
6
6
  "sideEffects": [