@factorialco/f0-react 2.8.2 → 2.14.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.
@@ -563,6 +563,9 @@ export declare const defaultTranslations: {
563
563
  readonly noResults: "No results found";
564
564
  readonly loadingMore: "Loading...";
565
565
  readonly applySelection: "Apply selection";
566
+ readonly create: "Create";
567
+ readonly createWithValue: "Create \"{{value}}\"";
568
+ readonly createEmptyMessage: "Try another search or create a new item";
566
569
  };
567
570
  readonly numberInput: {
568
571
  readonly between: "It should be between {{min}} and {{max}}";
@@ -638,6 +641,7 @@ export declare const defaultTranslations: {
638
641
  readonly sectionDescriptionPlaceholder: "Describe the section in a few words";
639
642
  readonly required: "Required";
640
643
  readonly allowMultiSelection: "Allow multi-selection";
644
+ readonly allowCreate: "Allow creation";
641
645
  readonly singleSelection: "Single selection";
642
646
  readonly multiSelection: "Multi selection";
643
647
  readonly questionType: "Question type";
@@ -562,7 +562,10 @@ const e = {
562
562
  select: {
563
563
  noResults: "No results found",
564
564
  loadingMore: "Loading...",
565
- applySelection: "Apply selection"
565
+ applySelection: "Apply selection",
566
+ create: "Create",
567
+ createWithValue: 'Create "{{value}}"',
568
+ createEmptyMessage: "Try another search or create a new item"
566
569
  },
567
570
  numberInput: {
568
571
  between: "It should be between {{min}} and {{max}}",
@@ -638,6 +641,7 @@ const e = {
638
641
  sectionDescriptionPlaceholder: "Describe the section in a few words",
639
642
  required: "Required",
640
643
  allowMultiSelection: "Allow multi-selection",
644
+ allowCreate: "Allow creation",
641
645
  singleSelection: "Single selection",
642
646
  multiSelection: "Multi selection",
643
647
  questionType: "Question type",
@@ -1,7 +1,7 @@
1
1
  import { jsxs as A, jsx as g, Fragment as tn } from "react/jsx-runtime";
2
2
  import * as U from "react";
3
3
  import C, { useRef as Ct, useState as ue, useCallback as Ye, useEffect as it, useLayoutEffect as mc, PureComponent as Wn, useMemo as Ps, forwardRef as Pt, useId as gc, useImperativeHandle as yc } from "react";
4
- import { Q as Tn, a5 as cf, t as G, X as uf, cD as df, cE as ff, w as Ds, ad as Ne, ae as bc, cF as Sn, cG as hf, cH as pf, cI as Na, cJ as Pa, cK as Da, cL as Ma, cM as Ia, cN as mf, cO as gf, cP as yf, cQ as bf, cR as vc, cS as wc, ao as Nn, cT as Ee, cU as W, cV as Ie, cW as xc, cX as vf, cY as Sc, cZ as Ms, c_ as wf, c$ as ge, d0 as Ki, d1 as ie, d2 as kc, d3 as Gi, d4 as Is, d5 as Ls, d6 as Rs, d7 as he, d8 as De, d9 as Ho, da as Yi, db as xf, dc as Ce, dd as qi, de as Pe, df as hn, dg as $s, dh as Xi, di as ui, dj as Ji, bI as js, dk as Sf, dl as Zr, dm as Si, dn as kf, dp as Af, dq as Cf, dr as Ef, ds as Of, dt as _f, du as Ac, dv as Cc, dw as Ec, dx as Oc, dy as _c, dz as Tf, dA as ki, dB as Nf, dC as Pf, dD as Lr, dE as Wt, dF as _t, dG as Fs, dH as Rr, dI as Tc, dJ as Nc, dK as Df, dL as Mf, dM as If, dN as Lf, br as Rf, dO as $f, dP as Oe, dQ as _e, T as jf, x as Ff, y as zf, E as Bf, dR as Vf, dS as Pc, A as Hf, dT as Wf, bq as mt, N as on, aV as Uf, W as ce, a3 as zs, dU as Kf, cg as ke, dV as So, dW as Qe, dX as gt, dY as $e, dZ as Gf, d_ as di, d$ as nt, e0 as Dc, e1 as qe, e2 as Bs, e3 as Ze, e4 as La, e5 as Yf, e6 as Mc, e7 as ye, e8 as Ve, e9 as yr, ea as Ai, eb as Ic, ec as qf, ed as pn, ee as Xf, ef as Jf, eg as Zf, Y as j, aj as Lc, a_ as Qf, ak as Rc, eh as $r, ei as jr, ej as Vs, ek as eh, el as $c, em as jc, en as Fc, eo as th, ep as zc, eq as Bc, er as Vc, es as Hc, et as Wc, eu as Uc, ev as nh, ew as rh, u as Un, ac as ih, bh as Zi, K as oh, v as Qr, aU as sh, aC as ah, aX as lh, ex as ch, ey as uh, ez as dh, eA as fh, eB as hh, eC as ph, a8 as Kc, a9 as Hs, aa as Ws, eD as Ra, eE as mh, eF as gh, eG as yh, eH as bh, eI as vh, eJ as wh, eK as xh, eL as Sh, eM as kh, eN as Ah, eO as Ch, eP as Eh, eQ as Oh, eR as _h, eS as Th, eT as Nh, eU as Ph, ap as Dh, eV as Mh, eW as Ih, eX as Lh, eY as Rh, eZ as $h, e_ as jh, e$ as Fh, f0 as zh, ay as $a, aq as Gc, f1 as Bh, bG as Yc, f2 as Vh, ax as Hh, f3 as Wh, f4 as Uh, f5 as Kh, f6 as Gh, f7 as Yh, f8 as qh, f9 as Xh, fa as Jh, fb as Zh } from "./useDataCollectionSource-sTX19XjT.js";
4
+ import { Q as Tn, a5 as cf, t as G, X as uf, cH as df, cI as ff, w as Ds, ad as Ne, ae as bc, cJ as Sn, cK as hf, cL as pf, cM as Na, cN as Pa, cO as Da, cP as Ma, cQ as Ia, cR as mf, cS as gf, cT as yf, cU as bf, cV as vc, cW as wc, ar as Nn, cX as Ee, cY as W, cZ as Ie, c_ as xc, c$ as vf, d0 as Sc, d1 as Ms, d2 as wf, d3 as ge, d4 as Ki, d5 as ie, d6 as kc, d7 as Gi, d8 as Is, d9 as Ls, da as Rs, db as he, dc as De, dd as Ho, de as Yi, df as xf, dg as Ce, dh as qi, di as Pe, dj as hn, dk as $s, dl as Xi, dm as ui, dn as Ji, bL as js, dp as Sf, dq as Zr, dr as Si, ds as kf, dt as Af, du as Cf, dv as Ef, dw as Of, dx as _f, dy as Ac, dz as Cc, dA as Ec, dB as Oc, dC as _c, dD as Tf, dE as ki, dF as Nf, dG as Pf, dH as Lr, dI as Wt, dJ as _t, dK as Fs, dL as Rr, dM as Tc, dN as Nc, dO as Df, dP as Mf, dQ as If, dR as Lf, bu as Rf, dS as $f, dT as Oe, dU as _e, T as jf, x as Ff, y as zf, E as Bf, dV as Vf, dW as Pc, A as Hf, dX as Wf, bt as mt, N as on, aY as Uf, W as ce, a3 as zs, dY as Kf, ck as ke, dZ as So, d_ as Qe, d$ as gt, e0 as $e, e1 as Gf, e2 as di, e3 as nt, e4 as Dc, e5 as qe, e6 as Bs, e7 as Ze, e8 as La, e9 as Yf, ea as Mc, eb as ye, ec as Ve, ed as yr, ee as Ai, ef as Ic, eg as qf, eh as pn, ei as Xf, ej as Jf, ek as Zf, Y as j, am as Lc, b1 as Qf, an as Rc, el as $r, em as jr, en as Vs, eo as eh, ep as $c, eq as jc, er as Fc, es as th, et as zc, eu as Bc, ev as Vc, ew as Hc, ex as Wc, ey as Uc, ez as nh, eA as rh, u as Un, ac as ih, bk as Zi, K as oh, v as Qr, aX as sh, aF as ah, a_ as lh, eB as ch, eC as uh, eD as dh, eE as fh, eF as hh, eG as ph, a8 as Kc, a9 as Hs, aa as Ws, eH as Ra, eI as mh, eJ as gh, eK as yh, eL as bh, eM as vh, eN as wh, eO as xh, eP as Sh, eQ as kh, eR as Ah, eS as Ch, eT as Eh, eU as Oh, eV as _h, eW as Th, eX as Nh, eY as Ph, as as Dh, eZ as Mh, e_ as Ih, e$ as Lh, f0 as Rh, f1 as $h, f2 as jh, f3 as Fh, f4 as zh, aB as $a, at as Gc, f5 as Bh, bJ as Yc, f6 as Vh, aA as Hh, f7 as Wh, f8 as Uh, f9 as Kh, fa as Gh, fb as Yh, fc as qh, fd as Xh, fe as Jh, ff as Zh } from "./useDataCollectionSource-D5d-5KM1.js";
5
5
  import './index.css';const Qh = {
6
6
  active: !0,
7
7
  breakpoints: {},
@@ -6662,7 +6662,7 @@ const Wy = (t) => {
6662
6662
  mt({ name: "ComboChart", type: "info" }, My)
6663
6663
  ), iS = Ne(
6664
6664
  mt({ name: "RadarChart", type: "info" }, Vy)
6665
- ), No = [
6665
+ ), oS = ["sm", "md", "lg"], sS = ["compact", "expanded"], No = [
6666
6666
  {
6667
6667
  id: "bottom",
6668
6668
  path: "M11.9948 17.5244C14.2802 17.5244 16.5188 18.2872 18.2805 19.7631C16.5189 21.1914 14.2801 22 11.9948 22C9.61453 21.9999 7.42426 21.1436 5.71037 19.7631C7.47193 18.3348 9.70955 17.5245 11.9948 17.5244Z"
@@ -6784,7 +6784,7 @@ function Xy({
6784
6784
  }
6785
6785
  ) }) }) });
6786
6786
  }
6787
- const oS = Ne(Xy), sS = Kf, aS = {
6787
+ const aS = Ne(Xy), lS = Kf, cS = {
6788
6788
  today: {
6789
6789
  label: "Today",
6790
6790
  granularity: "day",
@@ -18675,7 +18675,7 @@ const N1 = (t, e) => {
18675
18675
  ]
18676
18676
  }
18677
18677
  ) }) : null;
18678
- }), uS = ({
18678
+ }), fS = ({
18679
18679
  withHeader: t = !1,
18680
18680
  withTitle: e = !0,
18681
18681
  withToolbar: n = !0
@@ -18730,7 +18730,7 @@ const N1 = (t, e) => {
18730
18730
  ] })
18731
18731
  ]
18732
18732
  }
18733
- ), dS = j1, Xd = Pt(
18733
+ ), hS = j1, Xd = Pt(
18734
18734
  ({ header: t, actions: e, open: n, onClose: r }, i) => {
18735
18735
  const [o, s] = ue(!1), a = Ye(() => {
18736
18736
  s(!0);
@@ -18781,7 +18781,7 @@ const N1 = (t, e) => {
18781
18781
  }
18782
18782
  );
18783
18783
  Xd.displayName = "Dialog";
18784
- const fS = Ne(
18784
+ const pS = Ne(
18785
18785
  mt(
18786
18786
  { name: "Dialog", type: "info" },
18787
18787
  bc("Dialog", Xd)
@@ -18914,11 +18914,12 @@ export {
18914
18914
  Ey as A,
18915
18915
  _y as B,
18916
18916
  W1 as C,
18917
- fS as D,
18917
+ pS as D,
18918
+ Ko as E,
18918
18919
  q1 as F,
18919
18920
  Ly as L,
18920
- uS as N,
18921
- oS as P,
18921
+ fS as N,
18922
+ aS as P,
18922
18923
  iS as R,
18923
18924
  Ky as V,
18924
18925
  Fv as a,
@@ -18930,20 +18931,21 @@ export {
18930
18931
  G1 as g,
18931
18932
  yy as h,
18932
18933
  Dt as i,
18933
- z1 as j,
18934
- Fu as k,
18935
- X1 as l,
18936
- J1 as m,
18937
- Z1 as n,
18938
- Q1 as o,
18939
- eS as p,
18940
- tS as q,
18941
- nS as r,
18942
- rS as s,
18943
- sS as t,
18944
- aS as u,
18945
- dS as v,
18946
- _1 as w,
18947
- T1 as x,
18948
- Ko as y
18934
+ oS as j,
18935
+ sS as k,
18936
+ z1 as l,
18937
+ Fu as m,
18938
+ X1 as n,
18939
+ J1 as o,
18940
+ Z1 as p,
18941
+ Q1 as q,
18942
+ eS as r,
18943
+ tS as s,
18944
+ nS as t,
18945
+ rS as u,
18946
+ lS as v,
18947
+ cS as w,
18948
+ hS as x,
18949
+ _1 as y,
18950
+ T1 as z
18949
18951
  };