@photoroom/ui 0.1.796 → 0.1.797
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
|
@@ -11624,42 +11624,42 @@ var toe = /* @__PURE__ */ st(((e, t) => {
|
|
|
11624
11624
|
_(i), b(i), y(i), x(i), ne(r) || me(), ee(r);
|
|
11625
11625
|
var R = g(i) || me();
|
|
11626
11626
|
m(i), h(i) || me(), v(i), v(i), T(o), O(o), k(o) || me(), M(r), N(r), te(r), re(r), ie(r), A(o), j(o), se(r), ce(r), I(r), S(i), C(i), le(a), ue(a), L(s), P(r) || fe(s), F(r), w(i), pe(), me(), he(), ge(), de(), fe(s), P(r) && fe(s), E(o), D(o), ae(r), oe(r), e.isMobile = R;
|
|
11627
|
-
})))(), ph = ({ children: e, content: t, isTriggerDisabled: n, className: r, triggerClassName: i, withPortal: a = !0, side: o = "bottom", defaultOpen: s = !1,
|
|
11628
|
-
let
|
|
11629
|
-
|
|
11630
|
-
|
|
11627
|
+
})))(), ph = ({ children: e, content: t, isTriggerDisabled: n, className: r, triggerClassName: i, withPortal: a = !0, side: o = "bottom", defaultOpen: s = !1, open: c, triggerTabIndex: l = 0, sideOffset: u, withArrow: d = !0, disableFocusOpen: f = !1, ...p }) => {
|
|
11628
|
+
let m = ke(), [h, g] = Pe(s), _ = H(!1), v = a ? Xae : ye, y = f ? () => {
|
|
11629
|
+
_.current = !0, queueMicrotask(() => {
|
|
11630
|
+
_.current = !1;
|
|
11631
11631
|
});
|
|
11632
11632
|
} : void 0;
|
|
11633
11633
|
return /* @__PURE__ */ L(Wae, { children: /* @__PURE__ */ R(Kae, {
|
|
11634
11634
|
delayDuration: 0,
|
|
11635
|
-
open:
|
|
11635
|
+
open: c ?? h,
|
|
11636
11636
|
onOpenChange: (e) => {
|
|
11637
|
-
e &&
|
|
11637
|
+
c === void 0 && (e && _.current ? _.current = !1 : g(e));
|
|
11638
11638
|
},
|
|
11639
11639
|
defaultOpen: s,
|
|
11640
11640
|
children: [/* @__PURE__ */ L(qae, {
|
|
11641
11641
|
asChild: !0,
|
|
11642
11642
|
children: n ? /* @__PURE__ */ L("span", {
|
|
11643
11643
|
className: W("inline-block", i),
|
|
11644
|
-
"aria-describedby":
|
|
11645
|
-
tabIndex:
|
|
11646
|
-
onFocusCapture:
|
|
11644
|
+
"aria-describedby": m,
|
|
11645
|
+
tabIndex: l,
|
|
11646
|
+
onFocusCapture: y,
|
|
11647
11647
|
children: e
|
|
11648
11648
|
}) : /* @__PURE__ */ L("span", {
|
|
11649
11649
|
className: W("inline-block", i),
|
|
11650
|
-
"aria-describedby":
|
|
11651
|
-
onFocusCapture:
|
|
11652
|
-
onClick: () => fh.isMobile &&
|
|
11650
|
+
"aria-describedby": m,
|
|
11651
|
+
onFocusCapture: y,
|
|
11652
|
+
onClick: () => fh.isMobile && g(!0),
|
|
11653
11653
|
children: e
|
|
11654
11654
|
})
|
|
11655
|
-
}), t && /* @__PURE__ */ L(
|
|
11655
|
+
}), t && /* @__PURE__ */ L(v, { children: /* @__PURE__ */ R(Zae, {
|
|
11656
11656
|
side: o,
|
|
11657
|
-
sideOffset:
|
|
11658
|
-
className: W("component-400 rounded-250
|
|
11659
|
-
id:
|
|
11660
|
-
...
|
|
11661
|
-
children: [t,
|
|
11662
|
-
className: "fill-
|
|
11657
|
+
sideOffset: u,
|
|
11658
|
+
className: W("component-400 rounded-250 text-content-white-inverted-primary z-50 bg-neutral-800 px-[7px] pt-[3px] pb-[5px] [word-break:break-word]", "max-w-[100vw]", typeof t == "string" && "max-w-[264px]", "[&_strong]:component-400 [&_strong]:bg-white-alpha-300 [&_strong]:rounded-[2px] [&_strong]:px-[2px]", "[&_b]:component-400 [&_b]:bg-white-alpha-300 [&_b]:rounded-[2px] [&_b]:px-[2px]", "[&_a]:underline", o === "bottom" && "animate-tooltip-slide-down", o === "top" && "animate-tooltip-slide-up", o === "left" && "animate-tooltip-slide-left", o === "right" && "animate-tooltip-slide-right", r),
|
|
11659
|
+
id: m,
|
|
11660
|
+
...p,
|
|
11661
|
+
children: [t, d && /* @__PURE__ */ L(eoe, {
|
|
11662
|
+
className: "fill-neutral-800",
|
|
11663
11663
|
asChild: !0,
|
|
11664
11664
|
children: /* @__PURE__ */ L("svg", {
|
|
11665
11665
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -11676,7 +11676,7 @@ var toe = /* @__PURE__ */ st(((e, t) => {
|
|
|
11676
11676
|
}, noe = ({ title: e, className: t, children: n }) => /* @__PURE__ */ R("div", {
|
|
11677
11677
|
className: W("flex flex-col gap-0.5 px-1.5 pb-1.5", t),
|
|
11678
11678
|
children: [!!e && /* @__PURE__ */ L("div", {
|
|
11679
|
-
className: "component-semi-strong-300 text-content-white-secondary py-[7.5px] uppercase",
|
|
11679
|
+
className: "component-semi-strong-300 text-content-white-inverted-secondary py-[7.5px] uppercase",
|
|
11680
11680
|
children: e
|
|
11681
11681
|
}), n]
|
|
11682
11682
|
}), roe = Object.defineProperty, mh = (e, t) => roe(e, "name", {
|
|
@@ -11896,11 +11896,11 @@ var moe = G([
|
|
|
11896
11896
|
})
|
|
11897
11897
|
}),
|
|
11898
11898
|
/* @__PURE__ */ L("div", {
|
|
11899
|
-
className: "text-content-white-primary min-w-0 grow truncate overflow-hidden",
|
|
11899
|
+
className: "text-content-white-inverted-primary min-w-0 grow truncate overflow-hidden",
|
|
11900
11900
|
children: n
|
|
11901
11901
|
}),
|
|
11902
11902
|
/* @__PURE__ */ L("div", {
|
|
11903
|
-
className: "text-content-white-secondary shrink-0 whitespace-nowrap",
|
|
11903
|
+
className: "text-content-white-inverted-secondary shrink-0 whitespace-nowrap",
|
|
11904
11904
|
children: t
|
|
11905
11905
|
})
|
|
11906
11906
|
]
|