@photoroom/ui 0.1.831 → 0.1.833

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
@@ -12787,17 +12787,34 @@ var Kg = ({ href: e, title: t, size: n = "default", icon: r, iconElement: i, cla
12787
12787
  "icon-size-800": n === "default",
12788
12788
  "icon-size-600": n === "small"
12789
12789
  }) }) : i
12790
- }), qg = G(U("inline-flex max-w-full min-w-24 flex-col items-center justify-center gap-0.5 px-1 py-2.5", "rounded-500 appearance-none outline-hidden", "focus-visible:misc-border-size-focus-ring", "disabled:pointer-events-none disabled:opacity-30", "interaction-transition transition-all"), {
12791
- variants: { variant: Od },
12792
- defaultVariants: { variant: "accent" }
12793
- }), Jg = ({ icon: e, variant: t, type: n = "button", className: r, children: i, ref: a, ...o }) => /* @__PURE__ */ R("button", {
12794
- ...o,
12795
- ref: a,
12796
- type: n,
12797
- className: W(qg({ variant: t }), r),
12798
- children: [wd(e) ? /* @__PURE__ */ L(Yg, { as: e }) : e, /* @__PURE__ */ L("span", {
12799
- className: "component-400 max-w-full truncate",
12800
- children: i
12790
+ }), qg = G(U("relative inline-flex max-w-full min-w-24 flex-col items-center justify-center gap-0.5 px-1 py-2.5", "rounded-500 appearance-none outline-hidden", "focus-visible:misc-border-size-focus-ring", "disabled:pointer-events-none", "interaction-transition transition-all"), {
12791
+ variants: {
12792
+ variant: Od,
12793
+ loading: {
12794
+ true: "",
12795
+ false: "disabled:opacity-30"
12796
+ }
12797
+ },
12798
+ defaultVariants: {
12799
+ variant: "accent",
12800
+ loading: !1
12801
+ }
12802
+ }), Jg = ({ icon: t, variant: n, loading: r = !1, type: i = "button", className: a, children: o, ref: s, ...c }) => /* @__PURE__ */ R("button", {
12803
+ "aria-busy": r,
12804
+ ...c,
12805
+ ref: s,
12806
+ type: i,
12807
+ className: W(qg({
12808
+ variant: n,
12809
+ loading: r
12810
+ }), a),
12811
+ disabled: r || c.disabled,
12812
+ children: [r && /* @__PURE__ */ L(e, { className: "icon-size-500 absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2" }), /* @__PURE__ */ R("span", {
12813
+ className: U("contents", r && "*:opacity-0"),
12814
+ children: [wd(t) ? /* @__PURE__ */ L(Yg, { as: t }) : t, /* @__PURE__ */ L("span", {
12815
+ className: "component-400 max-w-full truncate",
12816
+ children: o
12817
+ })]
12801
12818
  })]
12802
12819
  });
12803
12820
  Jg.displayName = "StackButton";
@@ -33564,7 +33581,7 @@ var NU = ({ triggerProps: e, children: t, className: n, withPortal: r, open: i,
33564
33581
  collisionPadding: a,
33565
33582
  onClick: (e) => e.stopPropagation(),
33566
33583
  children: p ? /* @__PURE__ */ R(Hl.div, {
33567
- className: W("flex flex-col overflow-hidden", "bg-surface-primary-elevated shadow-700 misc-dropdown-rounding misc-outer-border outline-hidden", "max-h-[inherit] max-w-[100vw]"),
33584
+ className: U("flex flex-col overflow-hidden", "bg-surface-primary-elevated shadow-700 misc-dropdown-rounding misc-outer-border outline-hidden", "max-h-[inherit] max-w-[100vw]"),
33568
33585
  ...PU,
33569
33586
  children: [
33570
33587
  /* @__PURE__ */ L(TU, {
@@ -36881,7 +36898,7 @@ function jq({ messages: e, totalExpectedDuration: t, generationStartedAt: n, loa
36881
36898
  return /* @__PURE__ */ R("div", {
36882
36899
  className: W("rounded-b-400 absolute inset-x-0 bottom-0 z-6 h-[148px] overflow-hidden", i),
36883
36900
  children: [/* @__PURE__ */ L("div", {
36884
- className: W("rounded-b-400 absolute inset-0", !r && "backdrop-blur-[10px]"),
36901
+ className: U("rounded-b-400 absolute inset-0", !r && "backdrop-blur-[10px]"),
36885
36902
  style: {
36886
36903
  backgroundImage: "linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.05) 15.9%, rgba(0,0,0,0.1) 34.1%, rgba(0,0,0,0.5) 100%)",
36887
36904
  maskImage: r ? void 0 : "linear-gradient(to top, black 50%, transparent 100%)"
@@ -36894,7 +36911,7 @@ function jq({ messages: e, totalExpectedDuration: t, generationStartedAt: n, loa
36894
36911
  children: g.map((e, t) => {
36895
36912
  let n = t === g.length - 1;
36896
36913
  return /* @__PURE__ */ L("p", {
36897
- className: W("truncate", {
36914
+ className: U("truncate", {
36898
36915
  "progress-timer-shimmer text-content-white-primary": n,
36899
36916
  "text-white-alpha-500": t === g.length - 2,
36900
36917
  "text-white-alpha-300": t < g.length - 2
@@ -36944,7 +36961,7 @@ function Mq({ contentStyle: e, label: t, showLabel: n, sizeLabel: r, children: i
36944
36961
  }) : void 0),
36945
36962
  children: [
36946
36963
  /* @__PURE__ */ L("div", {
36947
- className: W("absolute inset-0", y && c && "blur-[10px]"),
36964
+ className: U("absolute inset-0", y && c && "blur-[10px]"),
36948
36965
  children: i
36949
36966
  }),
36950
36967
  !y && g && /* @__PURE__ */ L("div", {
@@ -38113,7 +38130,7 @@ var tY = ({ open: e, defaultOpen: t, onOpenChange: n, trigger: r, title: i, side
38113
38130
  children: s
38114
38131
  }) : null,
38115
38132
  o ? /* @__PURE__ */ L("div", {
38116
- className: W("pointer-events-none absolute flex items-center justify-center", t === "default" ? "left-1/2 -translate-x-1/2" : "top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2"),
38133
+ className: U("pointer-events-none absolute flex items-center justify-center", t === "default" ? "left-1/2 -translate-x-1/2" : "top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2"),
38117
38134
  style: t === "default" ? {
38118
38135
  width: d,
38119
38136
  height: d,
@@ -58517,6 +58534,7 @@ var _7 = {
58517
58534
  density: "spacious",
58518
58535
  icon: t || P,
58519
58536
  onClick: h,
58537
+ disabled: i,
58520
58538
  children: n?.cta || "Select a picture"
58521
58539
  })]
58522
58540
  }),
@@ -58644,7 +58662,7 @@ var Jwe = ({ title: e, date: t, className: n }) => /* @__PURE__ */ R("div", {
58644
58662
  animate: { opacity: 1 },
58645
58663
  transition: { duration: .3 },
58646
58664
  className: "pointer-events-none absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2",
58647
- children: /* @__PURE__ */ L(e, { className: "icon-size-800 text-white" })
58665
+ children: /* @__PURE__ */ L(e, { className: "icon-size-800 text-content-primary" })
58648
58666
  }) })]
58649
58667
  }) }), Zwe = (e) => /* @__PURE__ */ R("svg", {
58650
58668
  width: "40",
@@ -58783,7 +58801,7 @@ var Jwe = ({ title: e, date: t, className: n }) => /* @__PURE__ */ R("div", {
58783
58801
  className: "mx-auto flex w-full max-w-[1200px] flex-col items-center",
58784
58802
  children: [
58785
58803
  !!e && /* @__PURE__ */ L("div", {
58786
- className: W("w-full", t.length > 1 ? "pb-i500" : "pb-i600"),
58804
+ className: U("w-full", t.length > 1 ? "pb-i500" : "pb-i600"),
58787
58805
  children: e
58788
58806
  }),
58789
58807
  t.length > 1 && /* @__PURE__ */ L("div", {
@@ -58802,14 +58820,14 @@ var Jwe = ({ title: e, date: t, className: n }) => /* @__PURE__ */ R("div", {
58802
58820
  })
58803
58821
  }),
58804
58822
  /* @__PURE__ */ L("div", {
58805
- className: W("w-full", n ? "flex flex-col gap-12" : "grid grid-cols-1 grid-rows-1 overflow-x-clip"),
58823
+ className: U("w-full", n ? "flex flex-col gap-12" : "grid grid-cols-1 grid-rows-1 overflow-x-clip"),
58806
58824
  children: t.map((e, t) => {
58807
58825
  let r = t === s, i = _e.toArray(e.cards);
58808
58826
  return /* @__PURE__ */ R("div", {
58809
58827
  "aria-hidden": !n && !r,
58810
58828
  inert: !n && !r,
58811
58829
  style: n ? void 0 : { transform: `translateX(${(t - s) * 1}rem)` },
58812
- className: W("flex flex-col gap-6", n ? "opacity-100" : [
58830
+ className: U("flex flex-col gap-6", n ? "opacity-100" : [
58813
58831
  "col-start-1 row-start-1",
58814
58832
  "transition-[opacity,transform] duration-200 ease-out motion-reduce:transition-none",
58815
58833
  r ? "opacity-100" : "opacity-0"
@@ -62164,7 +62182,7 @@ var hDe = ({ titleBlock: e, children: t, className: n, ...r }) => {
62164
62182
  className: "body-light-600 sm:body-light-700 w-full max-w-[560px]",
62165
62183
  children: e
62166
62184
  }), !!t && /* @__PURE__ */ L("div", {
62167
- className: W("body-light-500 mt-6 w-full max-w-[560px]", wDe),
62185
+ className: U("body-light-500 mt-6 w-full max-w-[560px]", wDe),
62168
62186
  children: t
62169
62187
  })]
62170
62188
  }), o9 = 24, EDe = ({ title: e, children: t, background: n = "neutral-50", className: r, ...i }) => {
@@ -63316,7 +63334,7 @@ function W9({ children: e, className: t, label: n = "Main" }) {
63316
63334
  }), /* @__PURE__ */ L(fOe, {
63317
63335
  ref: f,
63318
63336
  style: { insetInlineStart: _Oe },
63319
- className: W("bg-surface-primary shadow-700 rounded-500 ring-misc-border-default absolute top-full z-50 mt-3 ring-[0.5px]", "h-[var(--radix-navigation-menu-viewport-height,0px)] w-[var(--radix-navigation-menu-viewport-width,0px)]", "max-w-[calc(100vw-2rem)] origin-top overflow-hidden", "duration-500 ease-[cubic-bezier(0.16,1,0.3,1)]", a ? "transition-[opacity,transform,width,height,inset-inline-start]" : "transition-[opacity,transform]", l ? "translate-y-0 opacity-100" : "-translate-y-3 opacity-0", "data-[state=closed]:animate-nav-content-fade-out")
63337
+ className: U("bg-surface-primary shadow-700 rounded-500 ring-misc-border-default absolute top-full z-50 mt-3 ring-[0.5px]", "h-[var(--radix-navigation-menu-viewport-height,0px)] w-[var(--radix-navigation-menu-viewport-width,0px)]", "max-w-[calc(100vw-2rem)] origin-top overflow-hidden", "duration-500 ease-[cubic-bezier(0.16,1,0.3,1)]", a ? "transition-[opacity,transform,width,height,inset-inline-start]" : "transition-[opacity,transform]", l ? "translate-y-0 opacity-100" : "-translate-y-3 opacity-0", "data-[state=closed]:animate-nav-content-fade-out")
63320
63338
  })]
63321
63339
  }) : /* @__PURE__ */ L("nav", {
63322
63340
  "aria-label": n,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@photoroom/ui",
3
- "version": "0.1.831",
3
+ "version": "0.1.833",
4
4
  "private": false,
5
5
  "description": "Photoroom design system components",
6
6
  "sideEffects": [