@photoroom/ui 0.1.554 → 0.1.555
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 = ({
|
|
26813
|
-
...
|
|
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
|
-
|
|
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:
|
|
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:
|
|
26824
|
+
children: /* @__PURE__ */ I(DP, { children: e.active })
|
|
26832
26825
|
})]
|
|
26833
|
-
}), !!
|
|
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:
|
|
26830
|
+
children: t.inactive
|
|
26838
26831
|
}), /* @__PURE__ */ I("span", {
|
|
26839
26832
|
className: "group-radix-state-unchecked:hidden",
|
|
26840
|
-
children:
|
|
26833
|
+
children: t.active
|
|
26841
26834
|
})]
|
|
26842
26835
|
})]
|
|
26843
26836
|
});
|
|
@@ -36670,7 +36663,6 @@ var ZY = ({ label: e, labelTestId: t, subtitle: n, isHidden: r, defaultIsHidden:
|
|
|
36670
36663
|
})]
|
|
36671
36664
|
}),
|
|
36672
36665
|
v && /* @__PURE__ */ I(EP, {
|
|
36673
|
-
variant: "borderless-subtle",
|
|
36674
36666
|
checked: g,
|
|
36675
36667
|
onCheckedChange: _,
|
|
36676
36668
|
disabled: d?.disabled,
|