@factorialco/f0-react 16.35.0 → 16.36.0

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/dist/f0.d.ts CHANGED
@@ -3204,8 +3204,15 @@ export interface UpsellingAlertProps {
3204
3204
  * unmounting the component while it should stay hidden.
3205
3205
  */
3206
3206
  onDismiss?: () => void;
3207
+ /**
3208
+ * `auto` puts the action beside the text once the alert is at least 24rem
3209
+ * wide. `stacked` always puts it below the text, for narrow panels where the
3210
+ * side-by-side layout squeezes the copy.
3211
+ * @default "auto"
3212
+ */
3213
+ layout?: "auto" | "stacked";
3207
3214
  }
3208
- declare function _UpsellingAlert({ icon, title, description, action, onDismiss }: UpsellingAlertProps): import("react").JSX.Element;
3215
+ declare function _UpsellingAlert({ icon, title, description, action, onDismiss, layout }: UpsellingAlertProps): import("react").JSX.Element;
3209
3216
  export declare const UpsellingAlert: WithDataTestIdReturnType<typeof _UpsellingAlert>;
3210
3217
  //#endregion
3211
3218
  //#region src/domains/growth/upselling/UpsellingKit/UpsellingBanner/UpsellingBanner.d.ts
package/dist/f0.js CHANGED
@@ -9207,7 +9207,8 @@ var dh = L(uh), fh = ({ onDismiss: e }) => {
9207
9207
  type: "button"
9208
9208
  });
9209
9209
  };
9210
- function ph({ icon: e, title: t, description: n, action: r, onDismiss: i }) {
9210
+ function ph({ icon: e, title: t, description: n, action: r, onDismiss: i, layout: a = "auto" }) {
9211
+ let o = a === "auto";
9211
9212
  return /* @__PURE__ */ X("div", {
9212
9213
  className: "@container",
9213
9214
  children: /* @__PURE__ */ X("div", {
@@ -9216,7 +9217,7 @@ function ph({ icon: e, title: t, description: n, action: r, onDismiss: i }) {
9216
9217
  children: /* @__PURE__ */ Z("div", {
9217
9218
  className: "flex flex-row gap-2",
9218
9219
  children: [/* @__PURE__ */ Z("div", {
9219
- className: B("flex flex-1 flex-col items-start gap-3 @xs:flex-row @xs:justify-between", n ? "@xs:items-start" : "@xs:items-center"),
9220
+ className: B("flex flex-1 flex-col items-start gap-3", o && "@xs:flex-row @xs:justify-between", o && (n ? "@xs:items-start" : "@xs:items-center")),
9220
9221
  children: [/* @__PURE__ */ Z("div", {
9221
9222
  className: B("flex flex-row gap-2", n ? "items-start" : "items-center"),
9222
9223
  children: [e ? /* @__PURE__ */ X("div", {
@@ -9236,7 +9237,7 @@ function ph({ icon: e, title: t, description: n, action: r, onDismiss: i }) {
9236
9237
  }) : null]
9237
9238
  })]
9238
9239
  }), /* @__PURE__ */ X("div", {
9239
- className: B("flex flex-shrink-0 @xs:pl-0", e && "pl-8"),
9240
+ className: B("flex flex-shrink-0", o && "@xs:pl-0", e && "pl-8"),
9240
9241
  children: /* @__PURE__ */ X(D, {
9241
9242
  label: r.label,
9242
9243
  onRequest: r.onRequest,
@@ -9251,7 +9252,7 @@ function ph({ icon: e, title: t, description: n, action: r, onDismiss: i }) {
9251
9252
  })
9252
9253
  })]
9253
9254
  }), i ? /* @__PURE__ */ X("div", {
9254
- className: B("flex-shrink-0 self-start", !n && "@xs:self-center"),
9255
+ className: B("flex-shrink-0 self-start", !n && o && "@xs:self-center"),
9255
9256
  children: /* @__PURE__ */ X(fh, { onDismiss: i })
9256
9257
  }) : null]
9257
9258
  })
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@factorialco/f0-react",
3
- "version": "16.35.0",
3
+ "version": "16.36.0",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/factorialco/f0.git",