@photoroom/ui 0.1.554 → 0.1.556

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
@@ -26809,35 +26809,28 @@ function TP(e) {
26809
26809
  dP(TP, "getState");
26810
26810
  //#endregion
26811
26811
  //#region src/components/action/ToggleButton/ToggleButton.tsx
26812
- var EP = ({ variant: e = "secondary", icons: t, labels: n, className: r, ref: i, ...a }) => /* @__PURE__ */ L(yP, {
26813
- ...a,
26814
- className: H("group shrink-0 cursor-pointer outline-hidden", "inline-flex flex-col items-center justify-center gap-0.5 p-2.5", "rounded-500", "focus-visible:ring-misc-focus-indicator focus-visible:misc-border-size-focus-ring", "radix-state-unchecked:text-content-primary", "disabled:cursor-not-allowed disabled:opacity-30", "interaction-transition transition-all", {
26815
- "aspect-square": !n,
26816
- "radix-state-unchecked:bg-background-subdued hover:radix-state-unchecked:bg-background-subdued-hover focus-visible:radix-state-unchecked:bg-background-subdued-hover active:radix-state-unchecked:bg-background-subdued-down": e === "secondary",
26817
- "focus-visible:radix-state-unchecked:bg-background-borderless-subdued-hover active:radix-state-unchecked:bg-background-borderless-subdued-down": ["borderless", "borderless-subtle"].includes(e),
26818
- "hover:radix-state-unchecked:bg-background-borderless-subdued-hover": e === "borderless",
26819
- "radix-state-checked:bg-background-accent radix-state-checked:text-content-white-primary hover:radix-state-checked:bg-background-accent-hover focus-visible:radix-state-checked:bg-background-accent-hover active:radix-state-checked:bg-background-accent-down": ["secondary", "borderless"].includes(e),
26820
- "focus-visible:radix-state-checked:bg-background-subdued-hover active:radix-state-checked:bg-background-subdued-down": e === "borderless-subtle"
26821
- }, r),
26822
- ref: i,
26812
+ var EP = ({ icons: e, labels: t, className: n, ref: r, ...i }) => /* @__PURE__ */ L(yP, {
26813
+ ...i,
26814
+ className: H("group shrink-0 cursor-pointer outline-hidden", "inline-flex flex-col items-center justify-center gap-0.5 p-2.5", "rounded-500", "focus-visible:ring-misc-focus-indicator focus-visible:misc-border-size-focus-ring", "radix-state-unchecked:text-content-primary", "disabled:cursor-not-allowed disabled:opacity-30", "interaction-transition transition-all", "focus-visible:radix-state-unchecked:bg-background-borderless-subdued-hover active:radix-state-unchecked:bg-background-borderless-subdued-down", "focus-visible:radix-state-checked:bg-background-subdued-hover active:radix-state-checked:bg-background-subdued-down", { "aspect-square": !t }, n),
26815
+ ref: r,
26823
26816
  children: [/* @__PURE__ */ L("div", {
26824
26817
  role: "presentation",
26825
26818
  className: "icon-size-500",
26826
26819
  children: [/* @__PURE__ */ I("span", {
26827
26820
  className: "group-radix-state-checked:hidden",
26828
- children: /* @__PURE__ */ I(DP, { children: t.inactive })
26821
+ children: /* @__PURE__ */ I(DP, { children: e.inactive })
26829
26822
  }), /* @__PURE__ */ I("span", {
26830
26823
  className: "group-radix-state-unchecked:hidden",
26831
- children: /* @__PURE__ */ I(DP, { children: t.active })
26824
+ children: /* @__PURE__ */ I(DP, { children: e.active })
26832
26825
  })]
26833
- }), !!n && /* @__PURE__ */ L("div", {
26826
+ }), !!t && /* @__PURE__ */ L("div", {
26834
26827
  className: "component-400 min-w-19",
26835
26828
  children: [/* @__PURE__ */ I("span", {
26836
26829
  className: "group-radix-state-checked:hidden",
26837
- children: n.inactive
26830
+ children: t.inactive
26838
26831
  }), /* @__PURE__ */ I("span", {
26839
26832
  className: "group-radix-state-unchecked:hidden",
26840
- children: n.active
26833
+ children: t.active
26841
26834
  })]
26842
26835
  })]
26843
26836
  });
@@ -35041,9 +35034,11 @@ Gq.displayName = "DropdownMenuSingleSelectionItem";
35041
35034
  var Kq = (e) => /* @__PURE__ */ I(zH, {
35042
35035
  className: "border-misc-divider mx-3 my-1 border-t",
35043
35036
  ...e
35044
- }), qq = ({ selected: e, className: t, children: n, ...r }) => /* @__PURE__ */ L(PH, {
35045
- className: U("group component-500 misc-dropdown-inner-rounding relative flex h-10 w-16 cursor-pointer items-center justify-center px-3 outline-none select-none", "text-content-primary", "hover:bg-background-borderless-subdued-hover active:bg-background-borderless-subdued-down", "focus-visible:bg-background-borderless-subdued-hover", "disabled:pointer-events-none disabled:opacity-30 aria-disabled:pointer-events-none aria-disabled:opacity-30", e && "bg-background-borderless-subdued-hover", t),
35037
+ }), qq = ({ selected: e, className: t, children: n, ...r }) => /* @__PURE__ */ L("button", {
35046
35038
  ...r,
35039
+ type: "button",
35040
+ className: U("group component-500 misc-dropdown-inner-rounding relative flex h-10 w-16 cursor-pointer items-center justify-center px-3 outline-none select-none", "text-content-primary", "hover:bg-background-borderless-subdued-hover active:bg-background-borderless-subdued-down", "focus-visible:bg-background-borderless-subdued-hover", "disabled:pointer-events-none disabled:opacity-30", e && "bg-background-borderless-subdued-hover", t),
35041
+ "aria-current": e || void 0,
35047
35042
  children: [n, /* @__PURE__ */ I("div", { className: "border-misc-focus-indicator misc-dropdown-inner-rounding pointer-events-none absolute inset-0 hidden border-[3px] group-focus-visible:block" })]
35048
35043
  });
35049
35044
  qq.displayName = "DropdownMenuNumberItem";
@@ -36670,7 +36665,6 @@ var ZY = ({ label: e, labelTestId: t, subtitle: n, isHidden: r, defaultIsHidden:
36670
36665
  })]
36671
36666
  }),
36672
36667
  v && /* @__PURE__ */ I(EP, {
36673
- variant: "borderless-subtle",
36674
36668
  checked: g,
36675
36669
  onCheckedChange: _,
36676
36670
  disabled: d?.disabled,
@@ -54762,14 +54756,12 @@ var h7 = {
54762
54756
  }, [t]), /* @__PURE__ */ I("ul", {
54763
54757
  ref: r,
54764
54758
  className: "max-h-80 w-[var(--radix-popover-trigger-width)] min-w-[80px] overflow-auto p-1",
54765
- children: e.map((e, r) => /* @__PURE__ */ I("li", {
54766
- className: H("component-500 misc-dropdown-inner-rounding flex h-10 w-full items-center justify-center outline-hidden", "cursor-pointer outline-hidden select-none", "text-content-primary truncate px-2", "hover:bg-background-borderless-subdued-hover", "active:bg-background-borderless-subdued-down", t === r && "bg-background-borderless-subdued-hover"),
54767
- children: /* @__PURE__ */ I("button", {
54768
- className: "h-full flex-1",
54769
- onClick: () => n(e),
54770
- children: e
54771
- })
54772
- }, e))
54759
+ children: e.map((e, r) => /* @__PURE__ */ I("li", { children: /* @__PURE__ */ I(qq, {
54760
+ selected: t === r,
54761
+ onClick: () => n(e),
54762
+ className: "w-full",
54763
+ children: e
54764
+ }) }, e))
54773
54765
  });
54774
54766
  }, Abe = 120, jbe = 200, Mbe = ({ value: e, onChange: n, min: r = -Infinity, max: i = Infinity, step: a = 1, disabled: o, options: s, className: c, size: l = "default", ...u }) => {
54775
54767
  let d = l === "compact", f = V(!1), p = V(null), m = V(null), [h, g] = Pe(e.toString()), _ = V(h), v = V(!1), y = V(null), [b, x] = Pe(null), S = V(null), C = B((e) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@photoroom/ui",
3
- "version": "0.1.554",
3
+ "version": "0.1.556",
4
4
  "private": false,
5
5
  "description": "Photoroom design system components",
6
6
  "sideEffects": [