@photoroom/ui 0.1.96 → 0.1.98

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,11 +1,13 @@
1
1
  export type MoreTileProps = {
2
2
  "aria-label": string;
3
3
  variant?: "accent" | "secondary";
4
+ layout?: "fixed" | "fluidWidth";
4
5
  className?: string;
5
6
  } & Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, "children" | "aria-label">;
6
7
  export declare const MoreTile: import("react").ForwardRefExoticComponent<{
7
8
  "aria-label": string;
8
9
  variant?: "accent" | "secondary";
10
+ layout?: "fixed" | "fluidWidth";
9
11
  className?: string;
10
12
  } & Omit<import("react").ButtonHTMLAttributes<HTMLButtonElement>, "aria-label" | "children"> & import("react").RefAttributes<HTMLButtonElement>>;
11
13
  //# sourceMappingURL=MoreTile.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"MoreTile.d.ts","sourceRoot":"","sources":["../../../../src/components/content/MoreTile/MoreTile.tsx"],"names":[],"mappings":"AAmCA,MAAM,MAAM,aAAa,GAAG;IAC1B,YAAY,EAAE,MAAM,CAAC;IACrB,OAAO,CAAC,EAAE,QAAQ,GAAG,WAAW,CAAC;IACjC,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,GAAG,IAAI,CAAC,KAAK,CAAC,oBAAoB,CAAC,iBAAiB,CAAC,EAAE,UAAU,GAAG,YAAY,CAAC,CAAC;AAEnF,eAAO,MAAM,QAAQ;kBALL,MAAM;cACV,QAAQ,GAAG,WAAW;gBACpB,MAAM;gJAgBnB,CAAC"}
1
+ {"version":3,"file":"MoreTile.d.ts","sourceRoot":"","sources":["../../../../src/components/content/MoreTile/MoreTile.tsx"],"names":[],"mappings":"AAwCA,MAAM,MAAM,aAAa,GAAG;IAC1B,YAAY,EAAE,MAAM,CAAC;IACrB,OAAO,CAAC,EAAE,QAAQ,GAAG,WAAW,CAAC;IACjC,MAAM,CAAC,EAAE,OAAO,GAAG,YAAY,CAAC;IAChC,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,GAAG,IAAI,CAAC,KAAK,CAAC,oBAAoB,CAAC,iBAAiB,CAAC,EAAE,UAAU,GAAG,YAAY,CAAC,CAAC;AAEnF,eAAO,MAAM,QAAQ;kBANL,MAAM;cACV,QAAQ,GAAG,WAAW;aACvB,OAAO,GAAG,YAAY;gBACnB,MAAM;gJAmBnB,CAAC"}
package/index.mjs CHANGED
@@ -31674,23 +31674,35 @@ var CW = ({ variant: e = "default", title: t, image: n, cta: r, className: i })
31674
31674
  wW.displayName = "BlogEditorialCard";
31675
31675
  //#endregion
31676
31676
  //#region src/components/content/MoreTile/MoreTile.tsx
31677
- var TW = U("rounded-400 interaction-transition focus-visible:ring-misc-focus-indicator focus-visible:misc-border-size-focus-ring relative flex size-[100px] shrink-0 appearance-none items-center justify-center outline-hidden transition-colors", {
31678
- variants: { variant: {
31679
- accent: "bg-background-accent-subdued hover:bg-background-accent-subdued-hover focus-visible:bg-background-accent-subdued-hover active:bg-background-accent-subdued-down",
31680
- secondary: "bg-background-subdued hover:bg-background-subdued-hover focus-visible:bg-background-subdued-hover active:bg-background-subdued-down"
31681
- } },
31682
- defaultVariants: { variant: "accent" }
31677
+ var TW = U("rounded-400 interaction-transition focus-visible:ring-misc-focus-indicator focus-visible:misc-border-size-focus-ring relative flex appearance-none items-center justify-center outline-hidden transition-colors", {
31678
+ variants: {
31679
+ variant: {
31680
+ accent: "bg-background-accent-subdued hover:bg-background-accent-subdued-hover focus-visible:bg-background-accent-subdued-hover active:bg-background-accent-subdued-down",
31681
+ secondary: "bg-background-subdued hover:bg-background-subdued-hover focus-visible:bg-background-subdued-hover active:bg-background-subdued-down"
31682
+ },
31683
+ layout: {
31684
+ fixed: "size-[100px] shrink-0",
31685
+ fluidWidth: "aspect-square w-full"
31686
+ }
31687
+ },
31688
+ defaultVariants: {
31689
+ variant: "accent",
31690
+ layout: "fixed"
31691
+ }
31683
31692
  }), EW = U("icon-size-600 shrink-0", {
31684
31693
  variants: { variant: {
31685
31694
  accent: "text-content-accent",
31686
31695
  secondary: "text-content-secondary"
31687
31696
  } },
31688
31697
  defaultVariants: { variant: "accent" }
31689
- }), DW = l(({ className: e, type: t = "button", variant: n = "accent", ...r }, i) => /* @__PURE__ */ T("button", {
31690
- ...r,
31698
+ }), DW = l(({ className: e, type: t = "button", variant: n = "accent", layout: r = "fixed", ...i }, a) => /* @__PURE__ */ T("button", {
31699
+ ...i,
31691
31700
  type: t,
31692
- className: H(TW({ variant: n }), e),
31693
- ref: i,
31701
+ className: H(TW({
31702
+ variant: n,
31703
+ layout: r
31704
+ }), e),
31705
+ ref: a,
31694
31706
  children: /* @__PURE__ */ T(O, { className: EW({ variant: n }) })
31695
31707
  }));
31696
31708
  DW.displayName = "MoreTile";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@photoroom/ui",
3
- "version": "0.1.96",
3
+ "version": "0.1.98",
4
4
  "private": false,
5
5
  "description": "Photoroom design system components",
6
6
  "sideEffects": [