@photoroom/ui 0.1.719 → 0.1.721
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/content/ColumnHeader/ColumnHeader.d.ts +3 -1
- package/components/content/ColumnHeader/ColumnHeader.d.ts.map +1 -1
- package/components/content/ProductListItem/ProductListItem.d.ts +6 -1
- package/components/content/ProductListItem/ProductListItem.d.ts.map +1 -1
- package/index.css +1 -1
- package/index.mjs +29 -29
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -33787,10 +33787,10 @@ var qW = W("group/checkbox-indicator rounded-200 relative flex h-5 w-5 shrink-0
|
|
|
33787
33787
|
QW.displayName = "CheckboxPullDown";
|
|
33788
33788
|
//#endregion
|
|
33789
33789
|
//#region src/components/content/ColumnHeader/ColumnHeader.tsx
|
|
33790
|
-
var $W = ({ selection: e, reserveSelection: t, productLabel: n, imagesLabel: r, statusLabel: i,
|
|
33791
|
-
let
|
|
33790
|
+
var $W = ({ selection: e, reserveSelection: t, productLabel: n, imagesLabel: r, statusLabel: i, showStatus: a = !0, listingScoreLabel: o, className: s }) => {
|
|
33791
|
+
let c = !e && t ? "min-w-[308px]" : "min-w-60";
|
|
33792
33792
|
return /* @__PURE__ */ L("div", {
|
|
33793
|
-
className: U("bg-surface-primary-elevated flex flex-col gap-2 pt-2",
|
|
33793
|
+
className: U("bg-surface-primary-elevated flex flex-col gap-2 pt-2", s),
|
|
33794
33794
|
children: [/* @__PURE__ */ L("div", {
|
|
33795
33795
|
className: "flex items-center px-4",
|
|
33796
33796
|
children: [e && /* @__PURE__ */ I(QW, {
|
|
@@ -33804,7 +33804,7 @@ var $W = ({ selection: e, reserveSelection: t, productLabel: n, imagesLabel: r,
|
|
|
33804
33804
|
className: H("flex min-w-0 flex-1 items-center", e && "ps-3"),
|
|
33805
33805
|
children: [
|
|
33806
33806
|
/* @__PURE__ */ I(eG, {
|
|
33807
|
-
className: H("flex-1",
|
|
33807
|
+
className: H("flex-1", c),
|
|
33808
33808
|
first: !0,
|
|
33809
33809
|
children: n
|
|
33810
33810
|
}),
|
|
@@ -33812,13 +33812,13 @@ var $W = ({ selection: e, reserveSelection: t, productLabel: n, imagesLabel: r,
|
|
|
33812
33812
|
className: "w-[245px] min-w-40",
|
|
33813
33813
|
children: r
|
|
33814
33814
|
}),
|
|
33815
|
-
/* @__PURE__ */ I(eG, {
|
|
33815
|
+
a && /* @__PURE__ */ I(eG, {
|
|
33816
33816
|
className: "w-[245px] min-w-40",
|
|
33817
33817
|
children: i
|
|
33818
33818
|
}),
|
|
33819
33819
|
/* @__PURE__ */ I(eG, {
|
|
33820
33820
|
className: "w-[245px] min-w-40",
|
|
33821
|
-
children:
|
|
33821
|
+
children: o
|
|
33822
33822
|
})
|
|
33823
33823
|
]
|
|
33824
33824
|
})]
|
|
@@ -34987,38 +34987,38 @@ var $G = W("rounded-300 component-semi-strong-300 inline-flex h-5 w-fit items-ce
|
|
|
34987
34987
|
children: t
|
|
34988
34988
|
})]
|
|
34989
34989
|
});
|
|
34990
|
-
}, sK = ({ title: e, imageUrl: t, imageCountLabel: n, status: r, statusLabel: i,
|
|
34991
|
-
let
|
|
34992
|
-
|
|
34993
|
-
},
|
|
34990
|
+
}, sK = ({ title: e, imageUrl: t, imageCountLabel: n, status: r, statusLabel: i, showStatus: a = !0, unpublishedChangesLabel: o, sellScore: s, noListingScoreLabel: c, selection: l, onClick: u, className: d }) => {
|
|
34991
|
+
let f = !!u, p = (e) => {
|
|
34992
|
+
f && e.target === e.currentTarget && (e.key === "Enter" || e.key === " ") && (e.preventDefault(), u?.());
|
|
34993
|
+
}, m = (e) => {
|
|
34994
34994
|
e.stopPropagation();
|
|
34995
34995
|
};
|
|
34996
34996
|
return /* @__PURE__ */ L("div", {
|
|
34997
|
-
className: U("bg-surface-primary-elevated flex flex-col gap-3",
|
|
34998
|
-
"hover:bg-background-subdued-down cursor-pointer",
|
|
34997
|
+
className: U("bg-surface-primary-elevated flex flex-col gap-3", f && [
|
|
34998
|
+
"hover:bg-background-borderless-subdued-hover active:bg-background-borderless-subdued-down cursor-pointer",
|
|
34999
34999
|
"outline-hidden transition-colors",
|
|
35000
35000
|
"focus-visible:ring-misc-focus-indicator focus-visible:misc-border-size-focus-ring"
|
|
35001
|
-
],
|
|
35002
|
-
role:
|
|
35003
|
-
tabIndex:
|
|
35004
|
-
onClick:
|
|
35005
|
-
onKeyDown:
|
|
35001
|
+
], d),
|
|
35002
|
+
role: f ? "button" : void 0,
|
|
35003
|
+
tabIndex: f ? 0 : void 0,
|
|
35004
|
+
onClick: u,
|
|
35005
|
+
onKeyDown: p,
|
|
35006
35006
|
children: [/* @__PURE__ */ L("div", {
|
|
35007
35007
|
className: "flex items-center px-4 pt-3",
|
|
35008
|
-
children: [
|
|
35008
|
+
children: [l && /* @__PURE__ */ I("span", {
|
|
35009
35009
|
className: "flex h-10 w-9 shrink-0 items-center justify-center",
|
|
35010
|
-
onClick:
|
|
35011
|
-
onKeyDown:
|
|
35010
|
+
onClick: m,
|
|
35011
|
+
onKeyDown: m,
|
|
35012
35012
|
children: /* @__PURE__ */ I(WG, {
|
|
35013
|
-
checked:
|
|
35014
|
-
onCheckedChange: (e) =>
|
|
35015
|
-
"aria-label":
|
|
35013
|
+
checked: l.selected,
|
|
35014
|
+
onCheckedChange: (e) => l.onSelectedChange(e === !0),
|
|
35015
|
+
"aria-label": l.selectionLabel
|
|
35016
35016
|
})
|
|
35017
35017
|
}), /* @__PURE__ */ L("div", {
|
|
35018
35018
|
className: "flex min-w-0 flex-1 items-center",
|
|
35019
35019
|
children: [
|
|
35020
35020
|
/* @__PURE__ */ L("div", {
|
|
35021
|
-
className: H("flex flex-1 items-center gap-4",
|
|
35021
|
+
className: H("flex flex-1 items-center gap-4", l ? "min-w-68 ps-2" : "min-w-60 ps-3"),
|
|
35022
35022
|
children: [/* @__PURE__ */ I(iK, {
|
|
35023
35023
|
size: "small",
|
|
35024
35024
|
bordered: !0,
|
|
@@ -35029,9 +35029,9 @@ var $G = W("rounded-300 component-semi-strong-300 inline-flex h-5 w-fit items-ce
|
|
|
35029
35029
|
children: [/* @__PURE__ */ I("p", {
|
|
35030
35030
|
className: "component-500 text-content-primary line-clamp-2 max-w-full wrap-anywhere",
|
|
35031
35031
|
children: e
|
|
35032
|
-
}),
|
|
35032
|
+
}), o != null && /* @__PURE__ */ I(eK, {
|
|
35033
35033
|
background: !1,
|
|
35034
|
-
children:
|
|
35034
|
+
children: o
|
|
35035
35035
|
})]
|
|
35036
35036
|
})]
|
|
35037
35037
|
}),
|
|
@@ -35039,15 +35039,15 @@ var $G = W("rounded-300 component-semi-strong-300 inline-flex h-5 w-fit items-ce
|
|
|
35039
35039
|
className: "component-500 text-content-tertiary w-[245px] min-w-40 truncate ps-3",
|
|
35040
35040
|
children: n
|
|
35041
35041
|
}),
|
|
35042
|
-
/* @__PURE__ */ I(oK, {
|
|
35042
|
+
a && /* @__PURE__ */ I(oK, {
|
|
35043
35043
|
status: r,
|
|
35044
35044
|
label: i
|
|
35045
35045
|
}),
|
|
35046
35046
|
/* @__PURE__ */ I("div", {
|
|
35047
35047
|
className: "w-[245px] min-w-40 ps-3",
|
|
35048
|
-
children:
|
|
35048
|
+
children: s ? /* @__PURE__ */ I(QG, { ...s }) : /* @__PURE__ */ I("span", {
|
|
35049
35049
|
className: "component-500 text-content-tertiary",
|
|
35050
|
-
"aria-label":
|
|
35050
|
+
"aria-label": c,
|
|
35051
35051
|
children: "-"
|
|
35052
35052
|
})
|
|
35053
35053
|
})
|