@photoroom/ui 0.1.652 → 0.1.653

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
@@ -36741,7 +36741,7 @@ var WJ = ({ "aria-label": e = "Close", ...t }) => /* @__PURE__ */ I(AJ, {
36741
36741
  })]
36742
36742
  }),
36743
36743
  m && /* @__PURE__ */ I("div", {
36744
- className: "-m-1 flex min-h-0 flex-col gap-6 overflow-y-auto p-1",
36744
+ className: "-m-2 flex min-h-0 flex-col gap-6 overflow-y-auto p-2",
36745
36745
  children: m
36746
36746
  }),
36747
36747
  o,
@@ -49546,26 +49546,26 @@ var Wye = ({ status: e }) => {
49546
49546
  Kye(function() {
49547
49547
  e();
49548
49548
  });
49549
- }, C4 = ({ value: e, buttonLabel: t, disabled: n = !1, loading: r = !1, autoFocus: i = !1, placeholder: o, className: s, trailingAction: c, onChange: l, onSubmit: u, onKeyDown: d, onFocus: f, ...p }) => {
49550
- let m = V(null);
49549
+ }, C4 = ({ value: e, buttonLabel: t, disabled: n = !1, loading: r = !1, autoFocus: i = !1, placeholder: o, className: s, trailingAction: c, allowEmptySubmit: l = !1, onChange: u, onSubmit: d, onKeyDown: f, onFocus: p, ...m }) => {
49550
+ let h = V(null);
49551
49551
  return qye(() => {
49552
- i && m.current && setTimeout(() => {
49553
- m.current?.focus();
49552
+ i && h.current && setTimeout(() => {
49553
+ h.current?.focus();
49554
49554
  }, 0);
49555
49555
  }), /* @__PURE__ */ L("div", {
49556
49556
  className: H("rounded-area-500 bg-surface-high box-border flex w-[440px] items-center gap-2 py-2 ps-3 pe-2", "border-misc-border border transition duration-200", "hover:border-misc-border-hover", "focus-within:border-content-accent focus-within:ring-misc-focus-indicator-subdued focus-within:misc-border-size-focus-ring", n && "cursor-not-allowed opacity-30"),
49557
49557
  onClick: () => {
49558
- n || m.current?.focus();
49558
+ n || h.current?.focus();
49559
49559
  },
49560
49560
  children: [
49561
49561
  /* @__PURE__ */ I(PF, {
49562
- ref: m,
49562
+ ref: h,
49563
49563
  value: e,
49564
49564
  disabled: n,
49565
49565
  placeholder: o,
49566
- onChange: l,
49567
- onKeyDown: d,
49568
- onFocus: f,
49566
+ onChange: u,
49567
+ onKeyDown: f,
49568
+ onFocus: p,
49569
49569
  className: H("flex-1 resize-none bg-transparent p-0", "text-content-primary placeholder:text-content-tertiary text-sm", "caret-content-secondary", "overflow-y-auto", s),
49570
49570
  style: {
49571
49571
  border: "none",
@@ -49574,7 +49574,7 @@ var Wye = ({ status: e }) => {
49574
49574
  },
49575
49575
  minRows: 1,
49576
49576
  maxRows: 3,
49577
- ...p
49577
+ ...m
49578
49578
  }),
49579
49579
  c && /* @__PURE__ */ I("div", {
49580
49580
  className: "flex h-10 shrink-0 items-center self-end",
@@ -49582,8 +49582,8 @@ var Wye = ({ status: e }) => {
49582
49582
  children: c
49583
49583
  }),
49584
49584
  /* @__PURE__ */ I(Yu, {
49585
- onClick: u,
49586
- disabled: n || !e.trim(),
49585
+ onClick: d,
49586
+ disabled: n || !l && !e.trim(),
49587
49587
  loading: r,
49588
49588
  className: "h-10 w-10 shrink-0 self-end",
49589
49589
  icon: a,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@photoroom/ui",
3
- "version": "0.1.652",
3
+ "version": "0.1.653",
4
4
  "private": false,
5
5
  "description": "Photoroom design system components",
6
6
  "sideEffects": [