@factorialco/f0-react 1.299.1 → 1.299.3
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 +0 -5
- package/dist/experimental.js +1391 -1378
- package/dist/f0.d.ts +0 -5
- package/dist/f0.js +2 -2
- package/dist/{hooks-BIlZureX.js → hooks-lOrixyHX.js} +7 -6
- package/dist/i18n-provider-defaults.d.ts +0 -5
- package/dist/i18n-provider-defaults.js +0 -5
- package/package.json +1 -1
package/dist/f0.d.ts
CHANGED
|
@@ -1869,11 +1869,6 @@ export declare const defaultTranslations: {
|
|
|
1869
1869
|
readonly actions: "Actions";
|
|
1870
1870
|
readonly sectionTitlePlaceholder: "Section title";
|
|
1871
1871
|
};
|
|
1872
|
-
readonly defaults: {
|
|
1873
|
-
readonly newSection: "New Section";
|
|
1874
|
-
readonly newQuestion: "New Question";
|
|
1875
|
-
readonly newQuestionDescription: "New question description";
|
|
1876
|
-
};
|
|
1877
1872
|
};
|
|
1878
1873
|
};
|
|
1879
1874
|
|
package/dist/f0.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { S as Be, a as At, f as Ee, L as J, b as Tt, A as Lt, i as ae, c as Ye, d as Xe, E as Mt, g as he, e as Ht, h as Bt, C as Ft, j as Wt, k as V, l as Je, u as It, G as Gt, m as Ut, n as Fe, o as $t, p as Ze, q as jt, B as Qe, X as et, Y as Ne, r as Kt, s as tt, t as Vt, v as qt, w as Yt, x as Xt, y as Jt, z as Zt, D as Qt, F as ei, H as We, I as ti, J as Z, K as Ce, M as ii, N as si, P as ri, O as F, Q as ni, R as oi, T as ai, U as li, V as hi, W as di, Z as ci, _ as it, $ as ui, a0 as de, a1 as st, a2 as rt, a3 as fi, a4 as nt, a5 as ot, a6 as at, a7 as lt, a8 as gi, a9 as pi, aa as ht, ab as mi, ac as B, ad as vi, ae as dt, af as yi, ag as ct, ah as bi, ai as _i, aj as xi, ak as wi, al as Ei, am as Ci, an as Ri, ao as Ni, ap as ut, aq as q, ar as ft, as as zi, at as Di, au as Ie, av as Si, aw as gt, ax as Pi, ay as ki, az as Oi, aA as Ai, aB as Ti, aC as Li, aD as Mi, aE as Hi, aF as Bi, aG as Fi, aH as Wi, aI as Ii } from "./hooks-
|
|
2
|
-
import { bb as yr, bo as br, bx as _r, aJ as xr, aK as wr, aL as Er, aM as Cr, aN as Rr, aO as Nr, aP as zr, aQ as Dr, aS as Sr, aT as Pr, aU as kr, aV as Or, aW as Ar, aX as Tr, aY as Lr, bt as Mr, a_ as Hr, a$ as Br, b2 as Fr, b3 as Wr, b4 as Ir, b5 as Gr, b8 as Ur, b9 as $r, ba as jr, bd as Kr, b1 as Vr, bc as qr, b7 as Yr, bu as Xr, bn as Jr, bi as Zr, bl as Qr, bh as en, by as tn, bg as sn, bf as rn, aR as nn, aZ as on, b0 as an, b6 as ln, be as hn, bj as dn, bp as cn, bq as un, br as fn, bz as gn, bk as pn, bs as mn, bw as vn, bm as yn, bv as bn } from "./hooks-
|
|
1
|
+
import { S as Be, a as At, f as Ee, L as J, b as Tt, A as Lt, i as ae, c as Ye, d as Xe, E as Mt, g as he, e as Ht, h as Bt, C as Ft, j as Wt, k as V, l as Je, u as It, G as Gt, m as Ut, n as Fe, o as $t, p as Ze, q as jt, B as Qe, X as et, Y as Ne, r as Kt, s as tt, t as Vt, v as qt, w as Yt, x as Xt, y as Jt, z as Zt, D as Qt, F as ei, H as We, I as ti, J as Z, K as Ce, M as ii, N as si, P as ri, O as F, Q as ni, R as oi, T as ai, U as li, V as hi, W as di, Z as ci, _ as it, $ as ui, a0 as de, a1 as st, a2 as rt, a3 as fi, a4 as nt, a5 as ot, a6 as at, a7 as lt, a8 as gi, a9 as pi, aa as ht, ab as mi, ac as B, ad as vi, ae as dt, af as yi, ag as ct, ah as bi, ai as _i, aj as xi, ak as wi, al as Ei, am as Ci, an as Ri, ao as Ni, ap as ut, aq as q, ar as ft, as as zi, at as Di, au as Ie, av as Si, aw as gt, ax as Pi, ay as ki, az as Oi, aA as Ai, aB as Ti, aC as Li, aD as Mi, aE as Hi, aF as Bi, aG as Fi, aH as Wi, aI as Ii } from "./hooks-lOrixyHX.js";
|
|
2
|
+
import { bb as yr, bo as br, bx as _r, aJ as xr, aK as wr, aL as Er, aM as Cr, aN as Rr, aO as Nr, aP as zr, aQ as Dr, aS as Sr, aT as Pr, aU as kr, aV as Or, aW as Ar, aX as Tr, aY as Lr, bt as Mr, a_ as Hr, a$ as Br, b2 as Fr, b3 as Wr, b4 as Ir, b5 as Gr, b8 as Ur, b9 as $r, ba as jr, bd as Kr, b1 as Vr, bc as qr, b7 as Yr, bu as Xr, bn as Jr, bi as Zr, bl as Qr, bh as en, by as tn, bg as sn, bf as rn, aR as nn, aZ as on, b0 as an, b6 as ln, be as hn, bj as dn, bp as cn, bq as un, br as fn, bz as gn, bk as pn, bs as mn, bw as vn, bm as yn, bv as bn } from "./hooks-lOrixyHX.js";
|
|
3
3
|
import { jsx as g, jsxs as N, Fragment as be } from "react/jsx-runtime";
|
|
4
4
|
import S, { PureComponent as Gi, useState as L, forwardRef as $, createElement as Ge, useRef as Q, useImperativeHandle as pt, Children as Ui, createContext as _e, useContext as mt, useCallback as K, useEffect as ce, useLayoutEffect as Ue, useMemo as vt } from "react";
|
|
5
5
|
import { createPortal as $i } from "react-dom";
|
|
@@ -55119,6 +55119,7 @@ Defaulting to \`null\`.`;
|
|
|
55119
55119
|
var mG = dG, TW2 = CG;
|
|
55120
55120
|
const pG = _.forwardRef(({ className: e, value: t, ...n }, r) => i(mG, {
|
|
55121
55121
|
ref: r,
|
|
55122
|
+
value: t,
|
|
55122
55123
|
className: s2("relative h-2 w-full overflow-hidden rounded-full bg-f1-background-secondary", e),
|
|
55123
55124
|
...n,
|
|
55124
55125
|
children: i(TW2, {
|
|
@@ -68542,21 +68543,21 @@ const IY2 = (e) => i("div", {
|
|
|
68542
68543
|
"data-cell-type": "progressBar",
|
|
68543
68544
|
children: n
|
|
68544
68545
|
});
|
|
68545
|
-
const a = n, o = typeof e == "object" && "max" in e ? e.max ?? 100 : 100, s = typeof e == "object" && "label" in e ? e.label : void 0, l = typeof e == "object" && "color" in e ? e.color : void 0,
|
|
68546
|
+
const a = n, o = typeof e == "object" && "max" in e ? e.max ?? 100 : 100, s = typeof e == "object" && "label" in e ? e.label : void 0, l = typeof e == "object" && "hideLabel" in e ? e.hideLabel : void 0, c = typeof e == "object" && "color" in e ? e.color : void 0, u = m4(c || "categorical-1"), d = a / o * 100;
|
|
68546
68547
|
return H("div", {
|
|
68547
68548
|
className: "flex w-full items-center gap-2",
|
|
68548
68549
|
"data-cell-type": "progressBar",
|
|
68549
68550
|
children: [i("div", {
|
|
68550
68551
|
className: "min-w-16 flex-grow",
|
|
68551
68552
|
children: i(pG, {
|
|
68552
|
-
color:
|
|
68553
|
-
value:
|
|
68553
|
+
color: u,
|
|
68554
|
+
value: d,
|
|
68554
68555
|
max: 100,
|
|
68555
|
-
getValueLabel: (
|
|
68556
|
-
"aria-label": s
|
|
68556
|
+
getValueLabel: (f) => `${(f ?? 0).toFixed(1)}% ${s}`,
|
|
68557
|
+
"aria-label": s,
|
|
68557
68558
|
className: "w-full"
|
|
68558
68559
|
})
|
|
68559
|
-
}),
|
|
68560
|
+
}), !l && i("div", {
|
|
68560
68561
|
className: "flex-shrink-0 text-sm font-medium text-f1-foreground",
|
|
68561
68562
|
children: s
|
|
68562
68563
|
})]
|
|
@@ -419,11 +419,6 @@ export declare const defaultTranslations: {
|
|
|
419
419
|
readonly actions: "Actions";
|
|
420
420
|
readonly sectionTitlePlaceholder: "Section title";
|
|
421
421
|
};
|
|
422
|
-
readonly defaults: {
|
|
423
|
-
readonly newSection: "New Section";
|
|
424
|
-
readonly newQuestion: "New Question";
|
|
425
|
-
readonly newQuestionDescription: "New question description";
|
|
426
|
-
};
|
|
427
422
|
};
|
|
428
423
|
};
|
|
429
424
|
|
|
@@ -418,11 +418,6 @@ const e = {
|
|
|
418
418
|
questionOptions: "Question options",
|
|
419
419
|
actions: "Actions",
|
|
420
420
|
sectionTitlePlaceholder: "Section title"
|
|
421
|
-
},
|
|
422
|
-
defaults: {
|
|
423
|
-
newSection: "New Section",
|
|
424
|
-
newQuestion: "New Question",
|
|
425
|
-
newQuestionDescription: "New question description"
|
|
426
421
|
}
|
|
427
422
|
}
|
|
428
423
|
};
|