@factorialco/f0-react 1.235.1 → 1.235.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 +2 -2
- package/dist/experimental.js +2714 -2713
- package/dist/f0.js +2 -2
- package/dist/{hooks-DAhD9whu.js → hooks-CALHYYfS.js} +102 -93
- package/package.json +1 -1
package/dist/f0.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { C as g, L as ge, c as ve, P as G, a as b, f as be, g as z, A as xe, B as Ce, b as ye, d as we, e as Ne, V as Pe, h as M, i as H, j as U, k as Le, l as J, S as Y, m as X, n as Se, O as Fe, o as K, p as ke, q as De, F as Q, r as Me, s as Te, t as Ie, D as Re, u as Be, v as Oe, w as $e, x as Z, y as w, U as ee, z as Ee, E as _e, G as A, H as je, I as ae, J as ze, K as Ae, M as Ve, N as qe, Q as We, R as Ge, X as He, T as Ue, W as Je, Y as Ye, Z as Xe, _ as Ke } from "./hooks-
|
|
2
|
-
import { az as Ja, $ as Ya, aB as Xa, aK as Ka, a0 as Qa, a1 as Za, a2 as er, a3 as ar, a4 as rr, a5 as sr, a6 as tr, a7 as lr, a9 as or, aa as nr, ab as ir, ac as dr, aG as cr, ae as ur, af as fr, ag as mr, ah as hr, ak as pr, al as gr, am as vr, an as br, ap as xr, ad as Cr, ao as yr, aj as wr, aH as Nr, aA as Pr, au as Lr, ax as Sr, at as Fr, aL as kr, as as Dr, ar as Mr, a8 as Tr, ai as Ir, aq as Rr, av as Br, aC as Or, aD as $r, aE as Er, aM as _r, aw as jr, aF as zr, aJ as Ar, ay as Vr, aI as qr } from "./hooks-
|
|
1
|
+
import { C as g, L as ge, c as ve, P as G, a as b, f as be, g as z, A as xe, B as Ce, b as ye, d as we, e as Ne, V as Pe, h as M, i as H, j as U, k as Le, l as J, S as Y, m as X, n as Se, O as Fe, o as K, p as ke, q as De, F as Q, r as Me, s as Te, t as Ie, D as Re, u as Be, v as Oe, w as $e, x as Z, y as w, U as ee, z as Ee, E as _e, G as A, H as je, I as ae, J as ze, K as Ae, M as Ve, N as qe, Q as We, R as Ge, X as He, T as Ue, W as Je, Y as Ye, Z as Xe, _ as Ke } from "./hooks-CALHYYfS.js";
|
|
2
|
+
import { az as Ja, $ as Ya, aB as Xa, aK as Ka, a0 as Qa, a1 as Za, a2 as er, a3 as ar, a4 as rr, a5 as sr, a6 as tr, a7 as lr, a9 as or, aa as nr, ab as ir, ac as dr, aG as cr, ae as ur, af as fr, ag as mr, ah as hr, ak as pr, al as gr, am as vr, an as br, ap as xr, ad as Cr, ao as yr, aj as wr, aH as Nr, aA as Pr, au as Lr, ax as Sr, at as Fr, aL as kr, as as Dr, ar as Mr, a8 as Tr, ai as Ir, aq as Rr, av as Br, aC as Or, aD as $r, aE as Er, aM as _r, aw as jr, aF as zr, aJ as Ar, ay as Vr, aI as qr } from "./hooks-CALHYYfS.js";
|
|
3
3
|
import { jsx as e, jsxs as c, Fragment as $ } from "react/jsx-runtime";
|
|
4
4
|
import * as E from "react";
|
|
5
5
|
import Qe, { useState as v, forwardRef as I, useRef as re, useImperativeHandle as Ze, Children as ea, useEffect as se, createContext as aa } from "react";
|
|
@@ -94292,102 +94292,111 @@ function Wyt({ filters: e, value: t, onChange: n, isOpen: r, onOpenChange: a, hi
|
|
|
94292
94292
|
const W = H1(H.type);
|
|
94293
94293
|
return Math.max(E, (W == null ? void 0 : W.formHeight) || PO);
|
|
94294
94294
|
}, 0), [e]), M = V1();
|
|
94295
|
-
|
|
94296
|
-
|
|
94297
|
-
|
|
94298
|
-
|
|
94299
|
-
|
|
94300
|
-
|
|
94301
|
-
|
|
94302
|
-
|
|
94303
|
-
|
|
94304
|
-
|
|
94305
|
-
|
|
94306
|
-
|
|
94307
|
-
|
|
94308
|
-
|
|
94309
|
-
|
|
94310
|
-
|
|
94311
|
-
|
|
94312
|
-
}
|
|
94313
|
-
|
|
94314
|
-
|
|
94315
|
-
|
|
94316
|
-
|
|
94317
|
-
|
|
94318
|
-
|
|
94319
|
-
|
|
94320
|
-
|
|
94321
|
-
|
|
94322
|
-
|
|
94323
|
-
|
|
94324
|
-
|
|
94325
|
-
|
|
94326
|
-
|
|
94327
|
-
|
|
94328
|
-
|
|
94329
|
-
|
|
94330
|
-
|
|
94331
|
-
|
|
94332
|
-
|
|
94333
|
-
|
|
94334
|
-
|
|
94335
|
-
|
|
94336
|
-
|
|
94337
|
-
|
|
94338
|
-
|
|
94339
|
-
|
|
94340
|
-
animate: {
|
|
94341
|
-
opacity: 1
|
|
94342
|
-
},
|
|
94343
|
-
exit: {
|
|
94344
|
-
opacity: 0
|
|
94345
|
-
},
|
|
94346
|
-
transition: {
|
|
94347
|
-
duration: 0.2
|
|
94348
|
-
},
|
|
94349
|
-
className: "h-full w-full bg-f1-background",
|
|
94350
|
-
children: l(wO, {
|
|
94351
|
-
selectedFilterKey: s,
|
|
94352
|
-
definition: e,
|
|
94353
|
-
tempFilters: C,
|
|
94354
|
-
onFilterChange: y,
|
|
94355
|
-
isCompactMode: !0
|
|
94295
|
+
if (o === "compact") {
|
|
94296
|
+
const k = !!Object.values(C).length;
|
|
94297
|
+
return V("div", {
|
|
94298
|
+
className: "flex items-center gap-2",
|
|
94299
|
+
children: [V("div", {
|
|
94300
|
+
className: "relative",
|
|
94301
|
+
children: [l(rn, {
|
|
94302
|
+
variant: "outline",
|
|
94303
|
+
label: h.filters.label,
|
|
94304
|
+
icon: Dx,
|
|
94305
|
+
pressed: m,
|
|
94306
|
+
onClick: () => g(!m),
|
|
94307
|
+
"aria-controls": m ? M : void 0,
|
|
94308
|
+
hideLabel: !0,
|
|
94309
|
+
round: !0
|
|
94310
|
+
}), k && l("div", {
|
|
94311
|
+
className: "absolute right-0 top-0 aspect-square w-2 rounded-full border border-solid border-f1-background bg-f1-background-selected-bold"
|
|
94312
|
+
})]
|
|
94313
|
+
}), l(i2, {
|
|
94314
|
+
mode: "popLayout",
|
|
94315
|
+
propagate: !1,
|
|
94316
|
+
children: m && l(Xn.div, {
|
|
94317
|
+
initial: {
|
|
94318
|
+
opacity: 0
|
|
94319
|
+
},
|
|
94320
|
+
animate: {
|
|
94321
|
+
opacity: 1
|
|
94322
|
+
},
|
|
94323
|
+
exit: {
|
|
94324
|
+
opacity: 0
|
|
94325
|
+
},
|
|
94326
|
+
transition: {
|
|
94327
|
+
duration: 0.1
|
|
94328
|
+
},
|
|
94329
|
+
className: "absolute bottom-0 left-0 right-0 top-0 z-20 bg-f1-background",
|
|
94330
|
+
children: V("div", {
|
|
94331
|
+
className: "flex h-full flex-col transition-all",
|
|
94332
|
+
children: [l("div", {
|
|
94333
|
+
className: "pl-1.5 pt-1.5",
|
|
94334
|
+
children: l(rn, {
|
|
94335
|
+
label: "Back",
|
|
94336
|
+
icon: iF,
|
|
94337
|
+
variant: "ghost",
|
|
94338
|
+
size: "sm",
|
|
94339
|
+
onClick: P
|
|
94356
94340
|
})
|
|
94357
|
-
},
|
|
94358
|
-
|
|
94359
|
-
|
|
94360
|
-
|
|
94361
|
-
|
|
94362
|
-
|
|
94363
|
-
|
|
94364
|
-
|
|
94365
|
-
|
|
94366
|
-
|
|
94367
|
-
|
|
94368
|
-
|
|
94369
|
-
|
|
94370
|
-
|
|
94371
|
-
|
|
94372
|
-
|
|
94373
|
-
|
|
94374
|
-
|
|
94375
|
-
|
|
94376
|
-
|
|
94377
|
-
|
|
94341
|
+
}), l("div", {
|
|
94342
|
+
className: "flex flex-1",
|
|
94343
|
+
children: s ? l(Xn.div, {
|
|
94344
|
+
initial: {
|
|
94345
|
+
opacity: 0
|
|
94346
|
+
},
|
|
94347
|
+
animate: {
|
|
94348
|
+
opacity: 1
|
|
94349
|
+
},
|
|
94350
|
+
exit: {
|
|
94351
|
+
opacity: 0
|
|
94352
|
+
},
|
|
94353
|
+
transition: {
|
|
94354
|
+
duration: 0.2
|
|
94355
|
+
},
|
|
94356
|
+
className: "h-full w-full bg-f1-background",
|
|
94357
|
+
children: l(wO, {
|
|
94358
|
+
selectedFilterKey: s,
|
|
94359
|
+
definition: e,
|
|
94360
|
+
tempFilters: C,
|
|
94361
|
+
onFilterChange: y,
|
|
94362
|
+
isCompactMode: !0
|
|
94363
|
+
})
|
|
94364
|
+
}, "filter-content") : l(Xn.div, {
|
|
94365
|
+
initial: {
|
|
94366
|
+
opacity: 0
|
|
94367
|
+
},
|
|
94368
|
+
animate: {
|
|
94369
|
+
opacity: 1
|
|
94370
|
+
},
|
|
94371
|
+
exit: {
|
|
94372
|
+
opacity: 0
|
|
94373
|
+
},
|
|
94374
|
+
transition: {
|
|
94375
|
+
duration: 0.2
|
|
94376
|
+
},
|
|
94377
|
+
className: "h-full w-full bg-f1-background",
|
|
94378
|
+
children: l(MO, {
|
|
94379
|
+
definition: e,
|
|
94380
|
+
tempFilters: C,
|
|
94381
|
+
selectedFilterKey: s,
|
|
94382
|
+
onFilterSelect: (E) => c(E),
|
|
94383
|
+
onClickApplyFilters: b,
|
|
94384
|
+
isCompactMode: !0
|
|
94385
|
+
})
|
|
94386
|
+
}, "filter-list")
|
|
94387
|
+
}), s && l("div", {
|
|
94388
|
+
className: "sticky bottom-0 left-0 right-0 z-30 flex items-center justify-end gap-2 border border-solid border-transparent border-t-f1-border-secondary bg-f1-background p-2",
|
|
94389
|
+
children: l(rn, {
|
|
94390
|
+
onClick: x,
|
|
94391
|
+
label: h.filters.applySelection
|
|
94378
94392
|
})
|
|
94379
|
-
}
|
|
94380
|
-
})
|
|
94381
|
-
className: "sticky bottom-0 left-0 right-0 z-30 flex items-center justify-end gap-2 border border-solid border-transparent border-t-f1-border-secondary bg-f1-background p-2",
|
|
94382
|
-
children: l(rn, {
|
|
94383
|
-
onClick: x,
|
|
94384
|
-
label: h.filters.applySelection
|
|
94385
|
-
})
|
|
94386
|
-
})]
|
|
94393
|
+
})]
|
|
94394
|
+
})
|
|
94387
94395
|
})
|
|
94388
|
-
})
|
|
94389
|
-
})
|
|
94390
|
-
}
|
|
94396
|
+
})]
|
|
94397
|
+
});
|
|
94398
|
+
}
|
|
94399
|
+
return l("div", {
|
|
94391
94400
|
className: "flex items-center gap-2",
|
|
94392
94401
|
children: V($y, {
|
|
94393
94402
|
open: m,
|