@photoroom/ui 0.1.690 → 0.1.691
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/ProductListItem/ProductListItem.d.ts.map +1 -1
- package/components/content/ProductListItem/ProductListItemStatus.d.ts +5 -3
- package/components/content/ProductListItem/ProductListItemStatus.d.ts.map +1 -1
- package/components/content/ProductListItem/ProductListNewItem.d.ts +7 -1
- package/components/content/ProductListItem/ProductListNewItem.d.ts.map +1 -1
- package/index.css +1 -1
- package/index.mjs +54 -60
- package/package.json +1 -2
package/index.mjs
CHANGED
|
@@ -34871,7 +34871,8 @@ var tK = W("rounded-300 component-semi-strong-300 inline-flex h-5 w-fit items-ce
|
|
|
34871
34871
|
draft: "bg-content-camera-accent",
|
|
34872
34872
|
active: "bg-content-positive",
|
|
34873
34873
|
archived: "bg-misc-stack-layer-1",
|
|
34874
|
-
unlisted: "bg-misc-ai-image"
|
|
34874
|
+
unlisted: "bg-misc-ai-image",
|
|
34875
|
+
unpublished: "misc-border-size-default border-content-tertiary"
|
|
34875
34876
|
}, cK = ({ status: e, label: t }) => {
|
|
34876
34877
|
let n = e === "none";
|
|
34877
34878
|
return /* @__PURE__ */ L("div", {
|
|
@@ -34902,71 +34903,64 @@ var tK = W("rounded-300 component-semi-strong-300 inline-flex h-5 w-fit items-ce
|
|
|
34902
34903
|
onKeyDown: f,
|
|
34903
34904
|
children: [/* @__PURE__ */ L("div", {
|
|
34904
34905
|
className: "flex items-center px-4 pt-3",
|
|
34905
|
-
children: [
|
|
34906
|
-
|
|
34907
|
-
|
|
34908
|
-
|
|
34909
|
-
|
|
34910
|
-
|
|
34911
|
-
|
|
34912
|
-
|
|
34913
|
-
|
|
34914
|
-
|
|
34915
|
-
|
|
34916
|
-
|
|
34917
|
-
|
|
34918
|
-
|
|
34919
|
-
|
|
34920
|
-
|
|
34921
|
-
|
|
34922
|
-
|
|
34923
|
-
|
|
34924
|
-
|
|
34925
|
-
|
|
34926
|
-
|
|
34927
|
-
|
|
34928
|
-
|
|
34929
|
-
|
|
34930
|
-
|
|
34931
|
-
|
|
34932
|
-
children: [/* @__PURE__ */ I("p", {
|
|
34933
|
-
className: "component-500 font-600 text-content-primary line-clamp-2 max-w-full wrap-anywhere",
|
|
34934
|
-
children: e
|
|
34935
|
-
}), a != null && /* @__PURE__ */ I(nK, {
|
|
34936
|
-
background: !1,
|
|
34937
|
-
children: a
|
|
34938
|
-
})]
|
|
34906
|
+
children: [c && /* @__PURE__ */ I("span", {
|
|
34907
|
+
className: "flex h-10 w-9 shrink-0 items-center justify-center",
|
|
34908
|
+
onClick: p,
|
|
34909
|
+
onKeyDown: p,
|
|
34910
|
+
children: /* @__PURE__ */ I(KG, {
|
|
34911
|
+
checked: c.selected,
|
|
34912
|
+
onCheckedChange: (e) => c.onSelectedChange(e === !0),
|
|
34913
|
+
"aria-label": c.selectionLabel
|
|
34914
|
+
})
|
|
34915
|
+
}), /* @__PURE__ */ L("div", {
|
|
34916
|
+
className: "flex min-w-0 flex-1 items-center",
|
|
34917
|
+
children: [
|
|
34918
|
+
/* @__PURE__ */ L("div", {
|
|
34919
|
+
className: H("flex flex-1 items-center gap-4", c ? "min-w-68 ps-2" : "min-w-60 ps-3"),
|
|
34920
|
+
children: [/* @__PURE__ */ I(oK, {
|
|
34921
|
+
size: "small",
|
|
34922
|
+
bordered: !0,
|
|
34923
|
+
imageUrl: t,
|
|
34924
|
+
alt: e
|
|
34925
|
+
}), /* @__PURE__ */ L("div", {
|
|
34926
|
+
className: "flex min-w-0 flex-col items-start justify-center",
|
|
34927
|
+
children: [/* @__PURE__ */ I("p", {
|
|
34928
|
+
className: "component-500 text-content-primary line-clamp-2 max-w-full wrap-anywhere",
|
|
34929
|
+
children: e
|
|
34930
|
+
}), a != null && /* @__PURE__ */ I(nK, {
|
|
34931
|
+
background: !1,
|
|
34932
|
+
children: a
|
|
34939
34933
|
})]
|
|
34940
|
-
})
|
|
34941
|
-
|
|
34942
|
-
|
|
34943
|
-
|
|
34944
|
-
|
|
34945
|
-
|
|
34946
|
-
|
|
34947
|
-
|
|
34948
|
-
|
|
34949
|
-
|
|
34950
|
-
|
|
34951
|
-
|
|
34952
|
-
|
|
34953
|
-
|
|
34954
|
-
|
|
34955
|
-
|
|
34934
|
+
})]
|
|
34935
|
+
}),
|
|
34936
|
+
/* @__PURE__ */ I("span", {
|
|
34937
|
+
className: "component-500 text-content-tertiary w-[245px] min-w-40 truncate ps-3",
|
|
34938
|
+
children: n
|
|
34939
|
+
}),
|
|
34940
|
+
/* @__PURE__ */ I(cK, {
|
|
34941
|
+
status: r,
|
|
34942
|
+
label: i
|
|
34943
|
+
}),
|
|
34944
|
+
/* @__PURE__ */ I("div", {
|
|
34945
|
+
className: "w-[245px] min-w-40 ps-3",
|
|
34946
|
+
children: o ? /* @__PURE__ */ I(eK, { ...o }) : /* @__PURE__ */ I("span", {
|
|
34947
|
+
className: "component-500 text-content-tertiary",
|
|
34948
|
+
"aria-label": s,
|
|
34949
|
+
children: "-"
|
|
34956
34950
|
})
|
|
34957
|
-
|
|
34958
|
-
|
|
34959
|
-
]
|
|
34951
|
+
})
|
|
34952
|
+
]
|
|
34953
|
+
})]
|
|
34960
34954
|
}), /* @__PURE__ */ I(ZH, {})]
|
|
34961
34955
|
});
|
|
34962
|
-
}, uK = ({ label: e,
|
|
34956
|
+
}, uK = ({ label: e, reserveSelection: n, onClick: r, className: i, ref: a, ...o }) => /* @__PURE__ */ I("button", {
|
|
34963
34957
|
type: "button",
|
|
34964
|
-
onClick:
|
|
34965
|
-
...
|
|
34966
|
-
ref:
|
|
34967
|
-
className: U("group bg-surface-primary-elevated flex w-full items-center py-3 ps-4 text-start", "border-b border-transparent", "cursor-pointer outline-hidden transition-colors", "hover:bg-background-borderless-subdued-hover focus-visible:bg-background-borderless-subdued-hover", "active:bg-background-borderless-subdued-down", "focus-visible:ring-misc-focus-indicator focus-visible:misc-border-size-focus-ring", "disabled:pointer-events-none disabled:opacity-30",
|
|
34958
|
+
onClick: r,
|
|
34959
|
+
...o,
|
|
34960
|
+
ref: a,
|
|
34961
|
+
className: U("group bg-surface-primary-elevated flex w-full items-center py-3 ps-4 text-start", "border-b border-transparent", "cursor-pointer outline-hidden transition-colors", "hover:bg-background-borderless-subdued-hover focus-visible:bg-background-borderless-subdued-hover", "active:bg-background-borderless-subdued-down", "focus-visible:ring-misc-focus-indicator focus-visible:misc-border-size-focus-ring", "disabled:pointer-events-none disabled:opacity-30", i),
|
|
34968
34962
|
children: /* @__PURE__ */ L("span", {
|
|
34969
|
-
className: "flex items-center gap-4 ps-3",
|
|
34963
|
+
className: H("flex items-center gap-4", n ? "ps-11" : "ps-3"),
|
|
34970
34964
|
children: [/* @__PURE__ */ I("span", {
|
|
34971
34965
|
className: H("rounded-300 flex size-16 shrink-0 items-center justify-center transition-colors", "bg-background-subdued group-hover:bg-background-subdued-hover group-focus-visible:bg-background-subdued-hover", "group-active:bg-background-subdued-down"),
|
|
34972
34966
|
children: /* @__PURE__ */ I(t, { className: "icon-size-600 text-content-tertiary" })
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@photoroom/ui",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.691",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Photoroom design system components",
|
|
6
6
|
"sideEffects": [
|
|
@@ -46,7 +46,6 @@
|
|
|
46
46
|
"@radix-ui/react-dialog": "1.1.23",
|
|
47
47
|
"@radix-ui/react-direction": "1.1.4",
|
|
48
48
|
"@radix-ui/react-dropdown-menu": "2.1.24",
|
|
49
|
-
"@radix-ui/react-menu": "2.1.24",
|
|
50
49
|
"@radix-ui/react-navigation-menu": "1.2.22",
|
|
51
50
|
"@radix-ui/react-popover": "1.1.23",
|
|
52
51
|
"@radix-ui/react-progress": "1.1.16",
|