@factorialco/f0-react 1.240.3 → 1.241.1
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 +11 -7
- package/dist/experimental.js +8037 -7998
- package/dist/f0.d.ts +9 -2
- package/dist/f0.js +2 -2
- package/dist/{hooks-fkUFAzc1.js → hooks-BrsvJQsa.js} +7 -6
- package/dist/styles.css +1 -1
- package/package.json +1 -1
package/dist/f0.d.ts
CHANGED
|
@@ -409,11 +409,18 @@ declare type BulkActionDefinition = {
|
|
|
409
409
|
icon?: IconType;
|
|
410
410
|
id: string;
|
|
411
411
|
keepSelection?: boolean;
|
|
412
|
+
critical?: boolean;
|
|
413
|
+
description?: string;
|
|
414
|
+
disabled?: boolean;
|
|
412
415
|
};
|
|
413
416
|
|
|
414
417
|
declare type BulkActionsDefinition<R extends RecordType, Filters extends FiltersDefinition> = (selectedItems: Parameters<OnBulkActionCallback<R, Filters>>[1]) => {
|
|
415
|
-
primary
|
|
416
|
-
|
|
418
|
+
primary?: (BulkActionDefinition | {
|
|
419
|
+
type: "separator";
|
|
420
|
+
})[];
|
|
421
|
+
secondary?: (BulkActionDefinition | {
|
|
422
|
+
type: "separator";
|
|
423
|
+
})[];
|
|
417
424
|
} | {
|
|
418
425
|
warningMessage: string;
|
|
419
426
|
};
|
package/dist/f0.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { C as p, L as ge, c as ve, P as H, a as b, f as be, g as A, A as xe, B as Ce, b as ye, d as we, e as Ne, V as Pe, h as D, i as U, j as J, k as Le, l as Y, S as X, m as K, n as Se, O as Fe, o as Q, p as ke, q as Me, F as Z, r as De, s as Te, t as Ie, D as Be, u as Re, v as Oe, w as $e, x as ee, y as w, U as ae, z as Ee, E as _e, G as V, H as je, I as re, 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 Mr, ar as Dr, a8 as Tr, ai as Ir, aq as Br, av as Rr, 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 p, L as ge, c as ve, P as H, a as b, f as be, g as A, A as xe, B as Ce, b as ye, d as we, e as Ne, V as Pe, h as D, i as U, j as J, k as Le, l as Y, S as X, m as K, n as Se, O as Fe, o as Q, p as ke, q as Me, F as Z, r as De, s as Te, t as Ie, D as Be, u as Re, v as Oe, w as $e, x as ee, y as w, U as ae, z as Ee, E as _e, G as V, H as je, I as re, 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-BrsvJQsa.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 Mr, ar as Dr, a8 as Tr, ai as Ir, aq as Br, av as Rr, 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-BrsvJQsa.js";
|
|
3
3
|
import { jsx as e, jsxs as c, Fragment as E } from "react/jsx-runtime";
|
|
4
4
|
import * as _ from "react";
|
|
5
5
|
import Qe, { useState as v, forwardRef as I, useRef as se, useImperativeHandle as Ze, Children as ea, useEffect as te, createContext as aa } from "react";
|
|
@@ -93612,7 +93612,7 @@ const Myt = ({ text: e }) => l("div", {
|
|
|
93612
93612
|
"aria-hidden": "true",
|
|
93613
93613
|
children: b
|
|
93614
93614
|
}), (P || A || q || v) && _("div", {
|
|
93615
|
-
className: le("flex h-fit items-center gap-1.5 self-center pr-
|
|
93615
|
+
className: le("flex h-fit items-center gap-1.5 self-center pr-[3px]", h === "md" && "pr-[7px]", "relative"),
|
|
93616
93616
|
children: [P && !re && l(i2, {
|
|
93617
93617
|
initial: !x(ie),
|
|
93618
93618
|
children: !x(ie) && l(Xn.button, {
|
|
@@ -93628,29 +93628,30 @@ const Myt = ({ text: e }) => l("div", {
|
|
|
93628
93628
|
transition: {
|
|
93629
93629
|
duration: 0.2
|
|
93630
93630
|
},
|
|
93631
|
-
className: le("
|
|
93631
|
+
className: le("flex h-5 w-5 shrink-0 cursor-pointer items-center justify-center rounded-full p-0", fr()),
|
|
93632
|
+
type: "button",
|
|
93632
93633
|
tabIndex: 0,
|
|
93633
93634
|
onClick: (Ae) => {
|
|
93634
93635
|
Ae.stopPropagation(), Ce();
|
|
93635
93636
|
},
|
|
93636
93637
|
children: l(Pt, {
|
|
93637
93638
|
icon: cF,
|
|
93638
|
-
color: "
|
|
93639
|
+
color: "default",
|
|
93639
93640
|
size: "md"
|
|
93640
93641
|
})
|
|
93641
93642
|
})
|
|
93642
93643
|
}), (A || q) && _("div", {
|
|
93643
|
-
className:
|
|
93644
|
+
className: "flex min-h-6 min-w-6 items-center justify-center self-center",
|
|
93644
93645
|
children: [A, q && l(Myt, {
|
|
93645
93646
|
text: q
|
|
93646
93647
|
})]
|
|
93647
93648
|
}), l(i2, {
|
|
93648
93649
|
children: v && l("div", {
|
|
93649
|
-
className: le("pointer-events-none flex h-6 w-6 items-center justify-center", (y == null ? void 0 : y.asOverlay) && le("absolute bottom-0 right-2 top-0", "bg-gradient-to-l from-[#FFFFFF] from-0% dark:from-[#192231]", "via-[#FFFFFF] via-60% dark:via-[#192231]", "to-transparent to-100%", h === "md" && "right-3
|
|
93650
|
+
className: le("pointer-events-none flex h-6 w-6 items-center justify-center", (y == null ? void 0 : y.asOverlay) && le("absolute bottom-0 right-2 top-0", "bg-gradient-to-l from-[#FFFFFF] from-0% dark:from-[#192231]", "via-[#FFFFFF] via-60% dark:via-[#192231]", "to-transparent to-100%", h === "md" && "right-3"), bp({
|
|
93650
93651
|
size: h
|
|
93651
93652
|
})),
|
|
93652
93653
|
style: {
|
|
93653
|
-
right: y == null ? void 0 : y.offset
|
|
93654
|
+
right: typeof (y == null ? void 0 : y.offset) == "number" ? (y == null ? void 0 : y.offset) + (h === "md" ? 6 : 0) : void 0
|
|
93654
93655
|
},
|
|
93655
93656
|
children: l(sX, {
|
|
93656
93657
|
size: "small",
|