@photoroom/ui 0.1.555 → 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.
@@ -1,7 +1,7 @@
1
- import * as RadixDropdownMenu from "@radix-ui/react-dropdown-menu";
1
+ import { ComponentProps } from "react";
2
2
  export type DropdownMenuNumberItemProps = {
3
3
  selected?: boolean;
4
- } & Omit<RadixDropdownMenu.DropdownMenuItemProps, "asChild" | "textValue">;
4
+ } & Omit<ComponentProps<"button">, "type" | "aria-current">;
5
5
  export declare const DropdownMenuNumberItem: {
6
6
  ({ selected, className, children, ...rest }: DropdownMenuNumberItemProps): import("react").JSX.Element;
7
7
  displayName: string;
@@ -1 +1 @@
1
- {"version":3,"file":"DropdownMenuNumberItem.d.ts","sourceRoot":"","sources":["../../../../src/components/dropdown/DropdownMenuNumberItem/DropdownMenuNumberItem.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,iBAAiB,MAAM,+BAA+B,CAAC;AAInE,MAAM,MAAM,2BAA2B,GAAG;IACxC,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB,GAAG,IAAI,CAAC,iBAAiB,CAAC,qBAAqB,EAAE,SAAS,GAAG,WAAW,CAAC,CAAC;AAE3E,eAAO,MAAM,sBAAsB;iDAKhC,2BAA2B;;CAkB7B,CAAC"}
1
+ {"version":3,"file":"DropdownMenuNumberItem.d.ts","sourceRoot":"","sources":["../../../../src/components/dropdown/DropdownMenuNumberItem/DropdownMenuNumberItem.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAIvC,MAAM,MAAM,2BAA2B,GAAG;IACxC,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB,GAAG,IAAI,CAAC,cAAc,CAAC,QAAQ,CAAC,EAAE,MAAM,GAAG,cAAc,CAAC,CAAC;AAE5D,eAAO,MAAM,sBAAsB;iDAKhC,2BAA2B;;CAoB7B,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"NumberSelectFieldList.d.ts","sourceRoot":"","sources":["../../../../src/components/unsorted/NumberSelectField/NumberSelectFieldList.tsx"],"names":[],"mappings":"AAGA,KAAK,0BAA0B,GAAG;IAChC,MAAM,EAAE,MAAM,EAAE,CAAC;IACjB,aAAa,EAAE,MAAM,GAAG,IAAI,CAAC;IAC7B,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;CACnC,CAAC;AAEF,eAAO,MAAM,qBAAqB,GAAI,sCAInC,0BAA0B,gCAmC5B,CAAC"}
1
+ {"version":3,"file":"NumberSelectFieldList.d.ts","sourceRoot":"","sources":["../../../../src/components/unsorted/NumberSelectField/NumberSelectFieldList.tsx"],"names":[],"mappings":"AAIA,KAAK,0BAA0B,GAAG;IAChC,MAAM,EAAE,MAAM,EAAE,CAAC;IACjB,aAAa,EAAE,MAAM,GAAG,IAAI,CAAC;IAC7B,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;CACnC,CAAC;AAEF,eAAO,MAAM,qBAAqB,GAAI,sCAInC,0BAA0B,gCA6B5B,CAAC"}
package/index.mjs CHANGED
@@ -35034,9 +35034,11 @@ Gq.displayName = "DropdownMenuSingleSelectionItem";
35034
35034
  var Kq = (e) => /* @__PURE__ */ I(zH, {
35035
35035
  className: "border-misc-divider mx-3 my-1 border-t",
35036
35036
  ...e
35037
- }), qq = ({ selected: e, className: t, children: n, ...r }) => /* @__PURE__ */ L(PH, {
35038
- 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", {
35039
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,
35040
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" })]
35041
35043
  });
35042
35044
  qq.displayName = "DropdownMenuNumberItem";
@@ -54754,14 +54756,12 @@ var h7 = {
54754
54756
  }, [t]), /* @__PURE__ */ I("ul", {
54755
54757
  ref: r,
54756
54758
  className: "max-h-80 w-[var(--radix-popover-trigger-width)] min-w-[80px] overflow-auto p-1",
54757
- children: e.map((e, r) => /* @__PURE__ */ I("li", {
54758
- 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"),
54759
- children: /* @__PURE__ */ I("button", {
54760
- className: "h-full flex-1",
54761
- onClick: () => n(e),
54762
- children: e
54763
- })
54764
- }, 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))
54765
54765
  });
54766
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 }) => {
54767
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.555",
3
+ "version": "0.1.556",
4
4
  "private": false,
5
5
  "description": "Photoroom design system components",
6
6
  "sideEffects": [