@factorialco/f0-react 1.257.0 → 1.259.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/experimental.d.ts +8 -1
- package/dist/experimental.js +5038 -5018
- package/dist/f0.d.ts +7 -1
- package/dist/f0.js +30 -24
- package/dist/{hooks-Bj3h_byv.js → hooks-nJDkwAyV.js} +18 -16
- package/package.json +1 -1
package/dist/f0.d.ts
CHANGED
|
@@ -1375,6 +1375,12 @@ export declare const defaultTranslations: {
|
|
|
1375
1375
|
readonly previous: "Previous";
|
|
1376
1376
|
readonly next: "Next";
|
|
1377
1377
|
};
|
|
1378
|
+
readonly inputs: {
|
|
1379
|
+
readonly password: {
|
|
1380
|
+
readonly show: "Show password";
|
|
1381
|
+
readonly hide: "Hide password";
|
|
1382
|
+
};
|
|
1383
|
+
};
|
|
1378
1384
|
readonly actions: {
|
|
1379
1385
|
readonly add: "Add";
|
|
1380
1386
|
readonly edit: "Edit";
|
|
@@ -1953,7 +1959,7 @@ export declare interface F0ButtonToggleProps {
|
|
|
1953
1959
|
/**
|
|
1954
1960
|
* The accessible label for the button.
|
|
1955
1961
|
*/
|
|
1956
|
-
label: string;
|
|
1962
|
+
label: string | [string, string];
|
|
1957
1963
|
/**
|
|
1958
1964
|
* Whether the button is disabled.
|
|
1959
1965
|
*/
|
package/dist/f0.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { S as xe, a as mt, f as ne, L as K, b as ht, A as vt, i as J, c as yt, d as Te, E as bt, g as X, e as gt, h as xt, C as wt, j as Pt, k as $, l as Fe, u as St, G as Ct, m as Nt, n as we, o as At, p as Ie, q as Ot, B as _e, X as Ee, Y as le, r as kt, s as je, t as Lt, v as Dt, w as Tt, x as Ft, y as It, z as _t, D as Et, F as jt, H as Pe, I as $t, J as W, K as oe, M as Bt, N as Mt, O as Rt, P as $e, Q as E, R as I, T as zt, U as Kt, V as Wt, W as qt, Z as Gt, _ as Vt, $ as Yt, a0 as Be, a1 as
|
|
2
|
-
import { bp as tn, br as an, bA as rn, aP as nn, aQ as on, aR as sn, aS as ln, aT as cn, aU as un, aV as dn, aW as fn, aY as pn, aZ as mn, a_ as hn, a$ as vn, b0 as yn, b1 as bn, bw as gn, b3 as xn, b5 as wn, b6 as Pn, b7 as Sn, b8 as Cn, bb as Nn, bc as An, bd as On, bf as kn, b4 as Ln, be as Dn, ba as Tn, bx as Fn, bq as In, bk as _n, bn as En, bj as jn, bB as $n, bi as Bn, bh as Mn, aX as Rn, b2 as zn, b9 as Kn, bg as Wn, bl as qn, bs as Gn, bt as Vn, bu as Yn, bC as
|
|
1
|
+
import { S as xe, a as mt, f as ne, L as K, b as ht, A as vt, i as J, c as yt, d as Te, E as bt, g as X, e as gt, h as xt, C as wt, j as Pt, k as $, l as Fe, u as St, G as Ct, m as Nt, n as we, o as At, p as Ie, q as Ot, B as _e, X as Ee, Y as le, r as kt, s as je, t as Lt, v as Dt, w as Tt, x as Ft, y as It, z as _t, D as Et, F as jt, H as Pe, I as $t, J as W, K as oe, M as Bt, N as Mt, O as Rt, P as $e, Q as E, R as I, T as zt, U as Kt, V as Wt, W as qt, Z as Gt, _ as Vt, $ as Yt, a0 as Be, a1 as Ht, a2 as Z, a3 as Me, a4 as Re, a5 as Ut, a6 as ze, a7 as Ke, a8 as We, a9 as qe, aa as Jt, ab as Ge, ac as Xt, ad as Zt, ae as Qt, af as Se, ag as ie, ah as ea, ai as ta, aj as Ve, ak as aa, al as ra, am as Ye, an as na, ao as oa, ap as ia, aq as sa, ar as la, as as ca, at as ua, au as da, av as He, aw as M, ax as Ue, ay as fa, az as pa, aA as Ce, aB as ma, aC as Je, aD as ha, aE as va, aF as ya, aG as ba, aH as ga, aI as xa, aJ as wa, aK as Pa, aL as Sa, aM as Ca, aN as Na, aO as Aa } from "./hooks-nJDkwAyV.js";
|
|
2
|
+
import { bp as tn, br as an, bA as rn, aP as nn, aQ as on, aR as sn, aS as ln, aT as cn, aU as un, aV as dn, aW as fn, aY as pn, aZ as mn, a_ as hn, a$ as vn, b0 as yn, b1 as bn, bw as gn, b3 as xn, b5 as wn, b6 as Pn, b7 as Sn, b8 as Cn, bb as Nn, bc as An, bd as On, bf as kn, b4 as Ln, be as Dn, ba as Tn, bx as Fn, bq as In, bk as _n, bn as En, bj as jn, bB as $n, bi as Bn, bh as Mn, aX as Rn, b2 as zn, b9 as Kn, bg as Wn, bl as qn, bs as Gn, bt as Vn, bu as Yn, bC as Hn, bm as Un, bv as Jn, bz as Xn, bo as Zn, by as Qn } from "./hooks-nJDkwAyV.js";
|
|
3
3
|
import { jsx as n, jsxs as C, Fragment as ae } from "react/jsx-runtime";
|
|
4
4
|
import * as fe from "react";
|
|
5
5
|
import k, { PureComponent as Oa, useState as D, forwardRef as V, useEffect as B, useMemo as se, useCallback as Ne, useRef as pe, useImperativeHandle as ka, Children as La, createContext as Da } from "react";
|
|
@@ -22,6 +22,12 @@ const Ar = {
|
|
|
22
22
|
previous: "Previous",
|
|
23
23
|
next: "Next"
|
|
24
24
|
},
|
|
25
|
+
inputs: {
|
|
26
|
+
password: {
|
|
27
|
+
show: "Show password",
|
|
28
|
+
hide: "Hide password"
|
|
29
|
+
}
|
|
30
|
+
},
|
|
25
31
|
actions: {
|
|
26
32
|
add: "Add",
|
|
27
33
|
edit: "Edit",
|
|
@@ -459,7 +465,7 @@ function ee(e) {
|
|
|
459
465
|
return r.__proto__ || Object.getPrototypeOf(r);
|
|
460
466
|
}, ee(e);
|
|
461
467
|
}
|
|
462
|
-
function
|
|
468
|
+
function Ha(e, t) {
|
|
463
469
|
if (typeof t != "function" && t !== null)
|
|
464
470
|
throw new TypeError("Super expression must either be null or a function");
|
|
465
471
|
e.prototype = Object.create(t && t.prototype, { constructor: { value: e, writable: !0, configurable: !0 } }), Object.defineProperty(e, "prototype", { writable: !1 }), t && ue(e, t);
|
|
@@ -473,10 +479,10 @@ function j(e, t, r) {
|
|
|
473
479
|
return t = tt(t), t in e ? Object.defineProperty(e, t, { value: r, enumerable: !0, configurable: !0, writable: !0 }) : e[t] = r, e;
|
|
474
480
|
}
|
|
475
481
|
function tt(e) {
|
|
476
|
-
var t =
|
|
482
|
+
var t = Ua(e, "string");
|
|
477
483
|
return z(t) == "symbol" ? t : t + "";
|
|
478
484
|
}
|
|
479
|
-
function
|
|
485
|
+
function Ua(e, t) {
|
|
480
486
|
if (z(e) != "object" || !e) return e;
|
|
481
487
|
var r = e[Symbol.toPrimitive];
|
|
482
488
|
if (r !== void 0) {
|
|
@@ -504,7 +510,7 @@ var Y = /* @__PURE__ */ function(e) {
|
|
|
504
510
|
});
|
|
505
511
|
}), j(r, "id", St("recharts-scatter-")), r;
|
|
506
512
|
}
|
|
507
|
-
return
|
|
513
|
+
return Ha(t, e), qa(t, [{
|
|
508
514
|
key: "renderSymbolsStatically",
|
|
509
515
|
value: function(a) {
|
|
510
516
|
var o = this, s = this.props, l = s.shape, d = s.activeShape, i = s.activeIndex, m = ne(this.props, !1);
|
|
@@ -810,8 +816,8 @@ const Xa = (e) => {
|
|
|
810
816
|
label: p.activeLabel,
|
|
811
817
|
values: {}
|
|
812
818
|
};
|
|
813
|
-
for (const
|
|
814
|
-
S.values[
|
|
819
|
+
for (const H of p.activePayload)
|
|
820
|
+
S.values[H.name] = H.value;
|
|
815
821
|
u(S);
|
|
816
822
|
},
|
|
817
823
|
children: [!s && n(Ft, {
|
|
@@ -848,9 +854,9 @@ const Xa = (e) => {
|
|
|
848
854
|
hide: r == null ? void 0 : r.hide,
|
|
849
855
|
tick: m ? (p) => {
|
|
850
856
|
var be, ge;
|
|
851
|
-
const { x: S, y:
|
|
857
|
+
const { x: S, y: H, payload: ve } = p, ye = ((be = t.find((pt) => pt.label === ve.value)) == null ? void 0 : be.values) || "", U = Object.keys(ye).length === 1 ? (ge = Object.values(ye)) == null ? void 0 : ge[0] : void 0, ft = U !== void 0 && a.tickFormatter ? a.tickFormatter(`${U}`) : U.toLocaleString();
|
|
852
858
|
return C("g", {
|
|
853
|
-
transform: `translate(${S},${
|
|
859
|
+
transform: `translate(${S},${H})`,
|
|
854
860
|
children: [n("text", {
|
|
855
861
|
x: 0,
|
|
856
862
|
y: 0,
|
|
@@ -858,7 +864,7 @@ const Xa = (e) => {
|
|
|
858
864
|
textAnchor: "middle",
|
|
859
865
|
className: "text-sm font-medium !text-f1-foreground-secondary",
|
|
860
866
|
children: ve.value
|
|
861
|
-
}), !!
|
|
867
|
+
}), !!U && n("text", {
|
|
862
868
|
x: 0,
|
|
863
869
|
y: 0,
|
|
864
870
|
dy: 28,
|
|
@@ -1063,7 +1069,7 @@ const sr = ({ value: e, max: t = 100, label: r, color: a }, o) => {
|
|
|
1063
1069
|
type: "info"
|
|
1064
1070
|
},
|
|
1065
1071
|
Qa
|
|
1066
|
-
), $r = Yt, Br = Be, Mr = ["default", "outline", "neutral"], Rr = Be, zr = ["sm", "md", "lg"], Kr =
|
|
1072
|
+
), $r = Yt, Br = Be, Mr = ["default", "outline", "neutral"], Rr = Be, zr = ["sm", "md", "lg"], Kr = Ht, de = ({ count: e, list: t }) => {
|
|
1067
1073
|
const [r, a] = D(!1), o = n(Z, {
|
|
1068
1074
|
label: `+${e}`
|
|
1069
1075
|
});
|
|
@@ -1073,7 +1079,7 @@ const sr = ({ value: e, max: t = 100, label: r, color: a }, o) => {
|
|
|
1073
1079
|
children: [n(Re, {
|
|
1074
1080
|
asChild: !0,
|
|
1075
1081
|
children: n("button", {
|
|
1076
|
-
className:
|
|
1082
|
+
className: Ut("inline-flex flex-shrink-0 items-center"),
|
|
1077
1083
|
children: o
|
|
1078
1084
|
})
|
|
1079
1085
|
}), n(ze, {
|
|
@@ -1327,7 +1333,7 @@ const Vr = I({
|
|
|
1327
1333
|
}, ut), Yr = I({
|
|
1328
1334
|
name: "TwoColumnLayout",
|
|
1329
1335
|
type: "layout"
|
|
1330
|
-
}, fr),
|
|
1336
|
+
}, fr), Hr = I({
|
|
1331
1337
|
name: "HomeLayout",
|
|
1332
1338
|
type: "layout"
|
|
1333
1339
|
}, dr), hr = ({ benefits: e }) => n("div", {
|
|
@@ -1414,7 +1420,7 @@ function yr({ isOpen: e, onClose: t, title: r, children: a, module: o, portalCon
|
|
|
1414
1420
|
}), r]
|
|
1415
1421
|
}), n(da, {
|
|
1416
1422
|
variant: "outline",
|
|
1417
|
-
icon:
|
|
1423
|
+
icon: He,
|
|
1418
1424
|
onClick: t,
|
|
1419
1425
|
label: "Close modal",
|
|
1420
1426
|
hideLabel: !0
|
|
@@ -1429,7 +1435,7 @@ function yr({ isOpen: e, onClose: t, title: r, children: a, module: o, portalCon
|
|
|
1429
1435
|
})
|
|
1430
1436
|
});
|
|
1431
1437
|
}
|
|
1432
|
-
function
|
|
1438
|
+
function Ur({ isOpen: e, onClose: t, title: r, image: a, benefits: o, errorMessage: s, successMessage: l, loadingState: d, nextSteps: i, closeLabel: m, primaryAction: c, modalTitle: f, modalModule: h, secondaryAction: u, portalContainer: g, tag: N, promoTag: A, showResponseDialog: O = !0 }) {
|
|
1433
1439
|
const [x, b] = D(e), [w, P] = D(null), [y, v] = D(!1), L = async () => {
|
|
1434
1440
|
if (c != null && c.onClick) {
|
|
1435
1441
|
v(!0);
|
|
@@ -1479,7 +1485,7 @@ function Hr({ isOpen: e, onClose: t, title: r, image: a, benefits: o, errorMessa
|
|
|
1479
1485
|
})
|
|
1480
1486
|
})
|
|
1481
1487
|
})
|
|
1482
|
-
}), w && O && n(
|
|
1488
|
+
}), w && O && n(Ue, {
|
|
1483
1489
|
open: !0,
|
|
1484
1490
|
onClose: () => {
|
|
1485
1491
|
T(), P(null);
|
|
@@ -1512,7 +1518,7 @@ function br({ mediaUrl: e, title: t, description: r, onClose: a, dismissible: o,
|
|
|
1512
1518
|
className: "absolute right-2 top-2 z-10",
|
|
1513
1519
|
children: n(M, {
|
|
1514
1520
|
variant: "ghost",
|
|
1515
|
-
icon:
|
|
1521
|
+
icon: He,
|
|
1516
1522
|
size: "sm",
|
|
1517
1523
|
hideLabel: !0,
|
|
1518
1524
|
onClick: f,
|
|
@@ -1642,7 +1648,7 @@ function Jr({ isOpen: e, setIsOpen: t, label: r, variant: a = "promote", size: o
|
|
|
1642
1648
|
showConfirmation: !1
|
|
1643
1649
|
})
|
|
1644
1650
|
})]
|
|
1645
|
-
}), (P == null ? void 0 : P.type) === "upsell" && P.showConfirmation && b && n(
|
|
1651
|
+
}), (P == null ? void 0 : P.type) === "upsell" && P.showConfirmation && b && n(Ue, {
|
|
1646
1652
|
open: !0,
|
|
1647
1653
|
onClose: T,
|
|
1648
1654
|
success: b === "success",
|
|
@@ -1751,20 +1757,20 @@ export {
|
|
|
1751
1757
|
oa as F0TagStatus,
|
|
1752
1758
|
On as F0TagTeam,
|
|
1753
1759
|
kn as GROUP_ID_SYMBOL,
|
|
1754
|
-
|
|
1760
|
+
Hr as HomeLayout,
|
|
1755
1761
|
Fr as LineChart,
|
|
1756
1762
|
Ln as OneFilterPicker,
|
|
1757
1763
|
Ir as PieChart,
|
|
1758
1764
|
Pa as PrivacyModeProvider,
|
|
1759
1765
|
dt as ProductBlankslate,
|
|
1760
1766
|
Dn as ProductCard,
|
|
1761
|
-
|
|
1767
|
+
Ur as ProductModal,
|
|
1762
1768
|
br as ProductWidget,
|
|
1763
1769
|
Er as ProgressBarChart,
|
|
1764
1770
|
Vr as StandardLayout,
|
|
1765
1771
|
Tn as TagCounter,
|
|
1766
1772
|
Yr as TwoColumnLayout,
|
|
1767
|
-
|
|
1773
|
+
Ue as UpsellRequestResponseDialog,
|
|
1768
1774
|
gr as UpsellingBanner,
|
|
1769
1775
|
Je as UpsellingButton,
|
|
1770
1776
|
Jr as UpsellingPopover,
|
|
@@ -1796,8 +1802,8 @@ export {
|
|
|
1796
1802
|
Gn as useDndEvents,
|
|
1797
1803
|
Vn as useDraggable,
|
|
1798
1804
|
Yn as useDroppableList,
|
|
1799
|
-
|
|
1800
|
-
|
|
1805
|
+
Hn as useEmojiConfetti,
|
|
1806
|
+
Un as useGroups,
|
|
1801
1807
|
Jn as usePrivacyMode,
|
|
1802
1808
|
Xn as useReducedMotion,
|
|
1803
1809
|
Zn as useSelectable,
|
|
@@ -51257,11 +51257,11 @@ ZX.displayName = QTe;
|
|
|
51257
51257
|
var JTe = ZX;
|
|
51258
51258
|
const eHe = re(({ onSelectedChange: e = () => {
|
|
51259
51259
|
}, selected: t = !1, label: n, disabled: r = !1, icon: a, size: i = "md", ...o }, s) => {
|
|
51260
|
-
const l = !Array.isArray(a), [u, d] = l ? [a, a] : a, f = {
|
|
51260
|
+
const l = !Array.isArray(a), [u, d] = l ? [a, a] : a, f = !Array.isArray(n), [m, g] = f ? [n, n] : n, C = {
|
|
51261
51261
|
sm: "h-6",
|
|
51262
51262
|
md: "h-8",
|
|
51263
51263
|
lg: "h-10"
|
|
51264
|
-
},
|
|
51264
|
+
}, v = We(() => l ? void 0 : {
|
|
51265
51265
|
initial: {
|
|
51266
51266
|
opacity: 0,
|
|
51267
51267
|
scale: 0.8
|
|
@@ -51278,36 +51278,38 @@ const eHe = re(({ onSelectedChange: e = () => {
|
|
|
51278
51278
|
duration: 0.25,
|
|
51279
51279
|
ease: "easeOut"
|
|
51280
51280
|
}
|
|
51281
|
-
}, [l]), [
|
|
51282
|
-
|
|
51281
|
+
}, [l]), [y, b] = Pe(t), w = (L) => {
|
|
51282
|
+
b(L), e == null || e(L);
|
|
51283
51283
|
};
|
|
51284
|
-
|
|
51285
|
-
|
|
51286
|
-
}, [t])
|
|
51284
|
+
Ae(() => {
|
|
51285
|
+
y !== t && b(t);
|
|
51286
|
+
}, [t]);
|
|
51287
|
+
const x = y ? g : m;
|
|
51288
|
+
return c(JTe, {
|
|
51287
51289
|
ref: s,
|
|
51288
|
-
pressed:
|
|
51289
|
-
onPressedChange:
|
|
51290
|
+
pressed: y,
|
|
51291
|
+
onPressedChange: w,
|
|
51290
51292
|
disabled: r,
|
|
51291
|
-
"aria-label":
|
|
51292
|
-
title:
|
|
51293
|
+
"aria-label": x,
|
|
51294
|
+
title: x,
|
|
51293
51295
|
className: oe("aspect-square px-0", "flex items-center justify-center", ir(), SM({
|
|
51294
51296
|
size: i
|
|
51295
51297
|
}), EM({
|
|
51296
|
-
variant:
|
|
51297
|
-
}),
|
|
51298
|
+
variant: y ? "selected" : "ghost"
|
|
51299
|
+
}), C[i]),
|
|
51298
51300
|
...o,
|
|
51299
51301
|
children: c(Yr, {
|
|
51300
51302
|
initial: !1,
|
|
51301
|
-
children:
|
|
51303
|
+
children: y ? c(Rn.div, {
|
|
51302
51304
|
className: "absolute flex items-center justify-center",
|
|
51303
|
-
...
|
|
51305
|
+
...v,
|
|
51304
51306
|
children: c(ft, {
|
|
51305
51307
|
icon: d,
|
|
51306
51308
|
size: i
|
|
51307
51309
|
})
|
|
51308
51310
|
}, "icon-on") : c(Rn.div, {
|
|
51309
51311
|
className: "absolute flex items-center justify-center",
|
|
51310
|
-
...
|
|
51312
|
+
...v,
|
|
51311
51313
|
children: c(ft, {
|
|
51312
51314
|
icon: u,
|
|
51313
51315
|
size: i
|