@photoroom/ui 0.1.556 → 0.1.557
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/colors.css +8 -4
- package/index.css +1 -1
- package/index.mjs +22 -22
- package/package.json +1 -1
- package/theme.css +4 -4
package/index.mjs
CHANGED
|
@@ -6906,7 +6906,7 @@ var dd = W("focus-visible:misc-border-size-focus-ring relative inline-flex w-fit
|
|
|
6906
6906
|
accent: "bg-content-accent hover:bg-accent-400 focus-visible:bg-accent-400 focus-visible:ring-misc-focus-indicator active:bg-accent-600 text-white",
|
|
6907
6907
|
"secondary-accent": "bg-accent-alpha-100 text-content-accent hover:bg-accent-alpha-200 focus-visible:bg-accent-alpha-300 focus-visible:ring-misc-focus-indicator active:bg-accent-alpha-300",
|
|
6908
6908
|
"borderless-accent": "text-content-accent hover:bg-accent-alpha-200 focus-visible:bg-accent-alpha-300 focus-visible:ring-misc-focus-indicator active:bg-accent-alpha-300 bg-transparent",
|
|
6909
|
-
primary: "bg-background-default text-content-white-primary
|
|
6909
|
+
primary: "bg-background-default text-content-white-inverted-primary hover:bg-background-hover focus-visible:bg-background-hover focus-visible:ring-misc-focus-indicator active:bg-background-down",
|
|
6910
6910
|
secondary: "bg-background-subdued text-content-primary hover:bg-background-subdued-hover focus-visible:bg-background-subdued-hover focus-visible:ring-misc-focus-indicator active:bg-background-subdued-down",
|
|
6911
6911
|
borderless: "text-content-primary hover:bg-background-borderless-subdued-hover focus-visible:bg-background-borderless-subdued-hover focus-visible:ring-misc-focus-indicator active:bg-background-borderless-subdued-down",
|
|
6912
6912
|
"secondary-outline": "border-misc-border misc-border-size-default text-content-primary hover:bg-background-borderless-subdued-hover focus-visible:bg-background-borderless-subdued-hover focus-visible:ring-misc-focus-indicator active:bg-background-borderless-subdued-down bg-transparent",
|
|
@@ -7152,7 +7152,7 @@ var Bre = ({ open: e, onClose: t, closeLabel: n, text: r, inlineAction: i, child
|
|
|
7152
7152
|
}) }), vd = (({ as: e = "button", icon: t, label: n, className: r, ref: i, ...a }) => /* @__PURE__ */ L(e, {
|
|
7153
7153
|
ref: i,
|
|
7154
7154
|
...a,
|
|
7155
|
-
className: H("inline-flex items-center justify-center gap-1.5", "size-h-500 shrink-0 ps-2.5 pe-3", "rounded-500 border-misc-border misc-border-size-default", "bg-background-default hover:bg-background-hover focus-visible:bg-background-hover active:bg-background-down", "focus-visible:ring-misc-focus-indicator focus-visible:misc-border-size-focus-ring focus-visible:outline-hidden", "component-500 text-content-white-primary
|
|
7155
|
+
className: H("inline-flex items-center justify-center gap-1.5", "size-h-500 shrink-0 ps-2.5 pe-3", "rounded-500 border-misc-border misc-border-size-default", "bg-background-default hover:bg-background-hover focus-visible:bg-background-hover active:bg-background-down", "focus-visible:ring-misc-focus-indicator focus-visible:misc-border-size-focus-ring focus-visible:outline-hidden", "component-500 text-content-white-inverted-primary", "interaction-transition transition-colors", r),
|
|
7156
7156
|
children: [/* @__PURE__ */ I(t, { className: "icon-size-400" }), n]
|
|
7157
7157
|
}));
|
|
7158
7158
|
vd.displayName = "AppButton";
|
|
@@ -7202,7 +7202,7 @@ var Vre = ({ as: e }) => e ? /* @__PURE__ */ I(e, {
|
|
|
7202
7202
|
"hover:bg-background-hover",
|
|
7203
7203
|
"focus-visible:bg-background-hover",
|
|
7204
7204
|
"active:bg-background-down",
|
|
7205
|
-
"text-content-white-primary
|
|
7205
|
+
"text-content-white-inverted-primary"
|
|
7206
7206
|
],
|
|
7207
7207
|
secondary: [
|
|
7208
7208
|
"bg-background-subdued",
|
|
@@ -7320,7 +7320,7 @@ var Cd = ({ className: e, ...t }) => /* @__PURE__ */ I("button", {
|
|
|
7320
7320
|
className: H("bg-content-primary flex shrink-0 items-center justify-center rounded-full", s ? "h-4 w-4" : "h-5 w-5"),
|
|
7321
7321
|
children: /* @__PURE__ */ I("span", {
|
|
7322
7322
|
"data-testid": n,
|
|
7323
|
-
className: "component-400 text-content-white-primary
|
|
7323
|
+
className: "component-400 text-content-white-inverted-primary font-semibold",
|
|
7324
7324
|
children: t
|
|
7325
7325
|
})
|
|
7326
7326
|
}) : void 0,
|
|
@@ -11255,7 +11255,7 @@ var Jh = W([
|
|
|
11255
11255
|
alt: a || ""
|
|
11256
11256
|
}),
|
|
11257
11257
|
/* @__PURE__ */ I(Uh, {
|
|
11258
|
-
className: "text-content-white-primary
|
|
11258
|
+
className: "text-content-white-inverted-primary relative z-1 flex h-full w-full items-center justify-center rounded-[inherit]",
|
|
11259
11259
|
delayMs: i ? 400 : 0,
|
|
11260
11260
|
children: d ? /* @__PURE__ */ I("span", {
|
|
11261
11261
|
className: Yh({ size: n }),
|
|
@@ -11319,7 +11319,7 @@ var tg = (({ as: t = "button", type: n = "button", className: r, variant: a = "a
|
|
|
11319
11319
|
"bg-content-accent bg-background-pro hover:bg-background-pro-hover focus-visible:ring-misc-focus-indicator focus-visible:bg-background-pro-hover active:bg-background-pro-down": a === "pro",
|
|
11320
11320
|
"bg-background-flash hover:bg-background-flash-hover focus-visible:bg-background-flash-hover active:bg-background-flash-down": a === "flash",
|
|
11321
11321
|
"text-content-white-primary": ["accent", "pro"].includes(a),
|
|
11322
|
-
"text-content-white-primary
|
|
11322
|
+
"text-content-white-inverted-primary": a === "primary",
|
|
11323
11323
|
"text-content-black-primary": ["on-dark", "flash"].includes(a),
|
|
11324
11324
|
"focus-visible:ring-misc-focus-indicator": [
|
|
11325
11325
|
"accent",
|
|
@@ -12165,7 +12165,7 @@ var Zg = /* @__PURE__ */ function(e) {
|
|
|
12165
12165
|
[Zg.Apple]: ["bg-background-subdued text-content-primary hover:bg-background-subdued-hover focus-visible:bg-background-subdued-hover active:bg-background-subdued-down"],
|
|
12166
12166
|
[Zg.Facebook]: ["bg-background-subdued text-content-primary hover:bg-background-subdued-hover focus-visible:bg-background-subdued-hover active:bg-background-subdued-down"],
|
|
12167
12167
|
[Zg.Email]: ["bg-background-subdued text-content-primary hover:bg-background-subdued-hover focus-visible:bg-background-subdued-hover active:bg-background-subdued-down"],
|
|
12168
|
-
[Zg.Google]: ["bg-background-default text-content-white-primary
|
|
12168
|
+
[Zg.Google]: ["bg-background-default text-content-white-inverted-primary hover:bg-background-hover focus-visible:bg-background-hover active:bg-background-down"]
|
|
12169
12169
|
},
|
|
12170
12170
|
size: {
|
|
12171
12171
|
default: ["grid min-h-[48px] w-full grid-cols-[48px_auto_48px] items-center"],
|
|
@@ -12285,7 +12285,7 @@ var n_ = W("group flex w-full flex-col items-center justify-center gap-0.5 outli
|
|
|
12285
12285
|
}
|
|
12286
12286
|
}), i_ = W("icon-size-500", {
|
|
12287
12287
|
variants: { toggled: {
|
|
12288
|
-
true: "text-content-white-primary
|
|
12288
|
+
true: "text-content-white-inverted-primary",
|
|
12289
12289
|
false: "text-content-primary"
|
|
12290
12290
|
} },
|
|
12291
12291
|
defaultVariants: { toggled: !1 }
|
|
@@ -32488,7 +32488,7 @@ var NW = ({ className: e, title: t, description: n, image: r, badge: i, ...a })
|
|
|
32488
32488
|
className: U("rounded-500 flex w-full cursor-pointer items-center gap-3 p-3", "bg-background-subdued hover:bg-background-subdued-hover focus-visible:bg-background-subdued active:bg-background-subdued-down", "focus:ring-misc-focus-indicator focus:misc-border-size-focus-ring transition-all", e),
|
|
32489
32489
|
children: [
|
|
32490
32490
|
/* @__PURE__ */ I("figure", {
|
|
32491
|
-
className: "bg-
|
|
32491
|
+
className: "bg-background-accent-subdued rounded-200 relative h-12 w-12 shrink-0 overflow-hidden",
|
|
32492
32492
|
children: r
|
|
32493
32493
|
}),
|
|
32494
32494
|
/* @__PURE__ */ L("div", {
|
|
@@ -32668,7 +32668,7 @@ var GW = ({ indeterminate: e, defaultIndeterminate: t, onIndeterminateChange: n,
|
|
|
32668
32668
|
className: "pointer-events-none relative h-0.5 w-2.5 rounded-[2px] bg-white"
|
|
32669
32669
|
}) : /* @__PURE__ */ I(xP, {
|
|
32670
32670
|
"aria-hidden": "true",
|
|
32671
|
-
className: H("shadow-500 pointer-events-none absolute inline-block rounded-full ring-0", d ? "inset-s-px h-3.5 w-3.5" : "inset-s-[2px] h-4 w-4", u ? "bg-content-white-primary
|
|
32671
|
+
className: H("shadow-500 pointer-events-none absolute inline-block rounded-full ring-0", d ? "inset-s-px h-3.5 w-3.5" : "inset-s-[2px] h-4 w-4", u ? "bg-content-white-inverted-primary" : "bg-white", "transition-transform duration-200 ease-in-out", {
|
|
32672
32672
|
"group-radix-state-checked/switch:translate-x-[10px] group-radix-state-checked/switch:rtl:translate-x-[-10px]": d,
|
|
32673
32673
|
"group-radix-state-checked/switch:translate-x-3 group-radix-state-checked/switch:rtl:-translate-x-3": !d
|
|
32674
32674
|
})
|
|
@@ -33951,7 +33951,7 @@ var LK = (({ as: e = "button", layout: t = "fixedHeight128", aspectRatio: n = "1
|
|
|
33951
33951
|
type: e === "button" ? "button" : void 0,
|
|
33952
33952
|
...g,
|
|
33953
33953
|
children: [/* @__PURE__ */ L("div", {
|
|
33954
|
-
className: U("relative isolate overflow-hidden", "rounded-400 bg-surface-default", "group-focus-visible/tile:ring-misc-focus-indicator group-focus-visible/tile:misc-border-size-focus-ring", "interaction-transition transition-shadow", "before:pointer-events-none before:absolute before:inset-0 before:z-8 before:content-['']", "before:interaction-transition before:transition-colors", "after:pointer-events-none after:absolute after:inset-0 after:z-9 after:content-['']", "after:border-misc-border after:misc-border-size-default after:rounded-[inherit]", "after:interaction-transition after:transition-all", "group-data-[checked=true]/tile:after:border-content-accent group-data-[checked=true]/tile:after:misc-border-size-selection", "group-data-[checked=true]/tile:after:shadow-[inset_0_0_0_1px_var(--color-content-white-primary
|
|
33954
|
+
className: U("relative isolate overflow-hidden", "rounded-400 bg-surface-default", "group-focus-visible/tile:ring-misc-focus-indicator group-focus-visible/tile:misc-border-size-focus-ring", "interaction-transition transition-shadow", "before:pointer-events-none before:absolute before:inset-0 before:z-8 before:content-['']", "before:interaction-transition before:transition-colors", "after:pointer-events-none after:absolute after:inset-0 after:z-9 after:content-['']", "after:border-misc-border after:misc-border-size-default after:rounded-[inherit]", "after:interaction-transition after:transition-all", "group-data-[checked=true]/tile:after:border-content-accent group-data-[checked=true]/tile:after:misc-border-size-selection", "group-data-[checked=true]/tile:after:shadow-[inset_0_0_0_1px_var(--color-content-white-inverted-primary)]", {
|
|
33955
33955
|
"w-full min-w-21": t === "fluidWidth",
|
|
33956
33956
|
"h-32": t === "fixedHeight128",
|
|
33957
33957
|
"group-hover/tile:before:bg-misc-visual-hover": u,
|
|
@@ -34502,7 +34502,7 @@ var Oq = ({ children: e, className: t }) => /* @__PURE__ */ I("div", {
|
|
|
34502
34502
|
"aria-label": "close dialog",
|
|
34503
34503
|
"data-testid": "dialog-close-button",
|
|
34504
34504
|
...n,
|
|
34505
|
-
children: /* @__PURE__ */ I(h, { className: "text-content-white-primary
|
|
34505
|
+
children: /* @__PURE__ */ I(h, { className: "text-content-white-inverted-primary h-4 w-4" })
|
|
34506
34506
|
});
|
|
34507
34507
|
jq.displayName = "DialogCloseButton";
|
|
34508
34508
|
//#endregion
|
|
@@ -36745,7 +36745,7 @@ var eX = W([
|
|
|
36745
36745
|
"focus-visible:bg-background-borderless-subdued-hover"
|
|
36746
36746
|
],
|
|
36747
36747
|
true: [
|
|
36748
|
-
"bg-background-default text-content-white-primary
|
|
36748
|
+
"bg-background-default text-content-white-inverted-primary",
|
|
36749
36749
|
"hover:bg-background-hover",
|
|
36750
36750
|
"active:bg-background-down",
|
|
36751
36751
|
"focus-visible:bg-background-hover"
|
|
@@ -47734,7 +47734,7 @@ var e3 = (e, t) => (n) => 100 * (n - e) / (t - e), t3 = [
|
|
|
47734
47734
|
type: "button",
|
|
47735
47735
|
"aria-pressed": t,
|
|
47736
47736
|
onClick: n,
|
|
47737
|
-
className: H("component-400 flex h-6 items-center justify-center rounded-[6px] px-2 pb-px whitespace-nowrap", "focus-visible:ring-misc-focus-indicator focus-visible:misc-border-size-focus-ring focus-visible:outline-hidden", t ? "bg-background-default text-content-white-primary
|
|
47737
|
+
className: H("component-400 flex h-6 items-center justify-center rounded-[6px] px-2 pb-px whitespace-nowrap", "focus-visible:ring-misc-focus-indicator focus-visible:misc-border-size-focus-ring focus-visible:outline-hidden", t ? "bg-background-default text-content-white-inverted-primary" : "border-misc-border-default text-content-secondary hover:bg-background-borderless-subdued-hover focus-visible:bg-background-borderless-subdued-hover active:bg-background-borderless-subdued-down border"),
|
|
47738
47738
|
children: e
|
|
47739
47739
|
}), nge = ({ label: e, valueLabel: t, enabled: n, onEnabledChange: r, value: i, min: a = 0, max: o = 100, step: s = 1, onValueChange: c, onPointerDown: l, onPointerUp: u, onValueCommit: d, tags: f, selectedTagValue: p, onTagSelect: m, className: h, "data-testid": g }) => {
|
|
47740
47740
|
let _ = ke(), v = ke();
|
|
@@ -48194,7 +48194,7 @@ var g3 = ({ icon: e, className: t, ref: n, ...r }) => /* @__PURE__ */ I("button"
|
|
|
48194
48194
|
ref: n,
|
|
48195
48195
|
type: "button",
|
|
48196
48196
|
...r,
|
|
48197
|
-
className: U("flex h-6 w-6 items-center justify-center", "bg-background-default text-content-white-primary
|
|
48197
|
+
className: U("flex h-6 w-6 items-center justify-center", "bg-background-default text-content-white-inverted-primary rounded-full", "interaction-transition outline-hidden transition-all", "hover:bg-background-hover active:bg-background-down", "focus-visible:ring-misc-focus-indicator focus-visible:misc-border-size-focus-ring", t),
|
|
48198
48198
|
children: /* @__PURE__ */ I(e, { className: "icon-size-300" })
|
|
48199
48199
|
});
|
|
48200
48200
|
g3.displayName = "ImageWidgetButton";
|
|
@@ -48959,7 +48959,7 @@ var L3 = ({ value: e, onChange: t, placeholder: n, options: r = [], leadingSlot:
|
|
|
48959
48959
|
disabled: s,
|
|
48960
48960
|
"aria-label": "Submit",
|
|
48961
48961
|
"data-testid": "panel-standard-input-submit",
|
|
48962
|
-
className: "[&>button]:bg-background-default [&>button]:text-content-white-primary
|
|
48962
|
+
className: "[&>button]:bg-background-default [&>button]:text-content-white-inverted-primary active:[&>button]:bg-background-default hover:[&>button]:bg-neutral-800"
|
|
48963
48963
|
})]
|
|
48964
48964
|
})]
|
|
48965
48965
|
});
|
|
@@ -50951,7 +50951,7 @@ var P_e = ({ label: e, description: t, avatar: n, trailingElement: r, className:
|
|
|
50951
50951
|
title: t,
|
|
50952
50952
|
className: "h-auto gap-1.5",
|
|
50953
50953
|
leading: /* @__PURE__ */ I("span", {
|
|
50954
|
-
className: "component-semi-strong-300 bg-content-primary text-content-white-primary
|
|
50954
|
+
className: "component-semi-strong-300 bg-content-primary text-content-white-inverted-primary flex h-4 min-w-4 shrink-0 items-center justify-center rounded-full px-0.5 pb-px",
|
|
50955
50955
|
children: e
|
|
50956
50956
|
})
|
|
50957
50957
|
}), n && /* @__PURE__ */ I("p", {
|
|
@@ -52065,7 +52065,7 @@ var aye = W([
|
|
|
52065
52065
|
"disabled:opacity-30"
|
|
52066
52066
|
], {
|
|
52067
52067
|
variants: { isSelected: {
|
|
52068
|
-
true: ["bg-background-default text-content-white-primary
|
|
52068
|
+
true: ["bg-background-default text-content-white-inverted-primary"],
|
|
52069
52069
|
false: [
|
|
52070
52070
|
"bg-background-subdued text-content-primary",
|
|
52071
52071
|
"hover:bg-background-subdued-hover focus-visible:bg-background-subdued-hover",
|
|
@@ -52185,7 +52185,7 @@ var $8 = (({ selected: e, children: t, className: n, as: r = "button", ref: i, .
|
|
|
52185
52185
|
"hover:bg-background-subdued-hover focus-visible:bg-background-subdued-hover active:bg-background-subdued-down": !e
|
|
52186
52186
|
}, {
|
|
52187
52187
|
"text-content-secondary": !e,
|
|
52188
|
-
"text-content-white-primary
|
|
52188
|
+
"text-content-white-inverted-primary": e
|
|
52189
52189
|
}, "interaction-transition transition-[color,background-color,box-shadow]", n),
|
|
52190
52190
|
...a,
|
|
52191
52191
|
children: t
|
|
@@ -52843,7 +52843,7 @@ var hye = W("flex size-300 shrink-0 items-center justify-center rounded-full", {
|
|
|
52843
52843
|
className: hye({ type: t }),
|
|
52844
52844
|
children: /* @__PURE__ */ I(n, {
|
|
52845
52845
|
"aria-hidden": "true",
|
|
52846
|
-
className: "text-content-white-primary
|
|
52846
|
+
className: "text-content-white-inverted-primary icon-size-400"
|
|
52847
52847
|
})
|
|
52848
52848
|
});
|
|
52849
52849
|
}, _ye = (e) => /* @__PURE__ */ I("span", {
|
|
@@ -53608,13 +53608,13 @@ function O5({ label: e, status: t = "pending", stepNumber: n, value: r, classNam
|
|
|
53608
53608
|
O5.displayName = "ProgressStep";
|
|
53609
53609
|
//#endregion
|
|
53610
53610
|
//#region src/components/status/ToastProgress/ToastProgress.tsx
|
|
53611
|
-
var k5 = H("absolute inset-0 z-1", "flex h-full items-center gap-1.5 p-1 ps-5", "transition-all duration-200 ease-[cubic-bezier(0.2,0.82,0.61,1)]"), A5 = "min-w-0 grow overflow-hidden text-ellipsis whitespace-nowrap text-start", j5 = H("shrink-0 appearance-none outline-hidden", "flex h-full items-center px-4", "hover:bg-black-alpha-200 rounded-full", "focus-visible:bg-black-alpha-200 active:bg-black-alpha-300", "text-content-white-primary
|
|
53611
|
+
var k5 = H("absolute inset-0 z-1", "flex h-full items-center gap-1.5 p-1 ps-5", "transition-all duration-200 ease-[cubic-bezier(0.2,0.82,0.61,1)]"), A5 = "min-w-0 grow overflow-hidden text-ellipsis whitespace-nowrap text-start", j5 = H("shrink-0 appearance-none outline-hidden", "flex h-full items-center px-4", "hover:bg-black-alpha-200 rounded-full", "focus-visible:bg-black-alpha-200 active:bg-black-alpha-300", "text-content-white-inverted-primary", "transition-colors duration-200");
|
|
53612
53612
|
function qye({ className: e, inProgressLabel: t, completedLabel: n, actionLabel: r, cancelLabel: i, onAction: a, onCancel: s, ...c }) {
|
|
53613
53613
|
let l = Math.min(100, Math.max(0, c.value ?? 0)), u = l === 100, d = ke();
|
|
53614
53614
|
return /* @__PURE__ */ L(DK, {
|
|
53615
53615
|
...c,
|
|
53616
53616
|
"aria-labelledby": d,
|
|
53617
|
-
className: U("relative overflow-hidden", "h-12 w-full min-w-0", "shadow-400 rounded-full bg-neutral-800", "component-500 text-content-white-primary
|
|
53617
|
+
className: U("relative overflow-hidden", "h-12 w-full min-w-0", "shadow-400 rounded-full bg-neutral-800", "component-500 text-content-white-inverted-primary", e),
|
|
53618
53618
|
children: [
|
|
53619
53619
|
/* @__PURE__ */ I(OK, {
|
|
53620
53620
|
className: "bg-background-default pointer-events-none h-full -translate-x-(--progress-offset) transition-transform rtl:translate-x-(--progress-offset)",
|
package/package.json
CHANGED
package/theme.css
CHANGED
|
@@ -203,10 +203,10 @@
|
|
|
203
203
|
--color-content-white-secondary: var(--color-content-white-secondary);
|
|
204
204
|
--color-content-black-primary: var(--color-content-black-primary);
|
|
205
205
|
--color-content-black-secondary: var(--color-content-black-secondary);
|
|
206
|
-
--color-content-white-primary
|
|
207
|
-
--color-content-white-
|
|
208
|
-
|
|
209
|
-
);
|
|
206
|
+
--color-content-white-inverted-primary: var(--color-content-white-inverted-primary);
|
|
207
|
+
--color-content-white-inverted-secondary: var(--color-content-white-inverted-secondary);
|
|
208
|
+
--color-content-black-inverted-primary: var(--color-content-black-inverted-primary);
|
|
209
|
+
--color-content-black-inverted-secondary: var(--color-content-black-inverted-secondary);
|
|
210
210
|
|
|
211
211
|
/* Structure */
|
|
212
212
|
--color-misc-divider: var(--color-misc-divider);
|