@factorialco/f0-react 7.0.0 → 7.1.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.
@@ -1,5 +1,5 @@
1
1
  import { jsx as r } from "react/jsx-runtime";
2
- import { D as l, P as d, e as s } from "./pdfWorker-Dhxt7AiH.js";
2
+ import { D as l, P as d, e as s } from "./pdfWorker-C_Y8sfVK.js";
3
3
  s();
4
4
  const f = ({
5
5
  url: n,
@@ -1,8 +1,8 @@
1
1
  import { jsx as c, jsxs as I } from "react/jsx-runtime";
2
2
  import { useRef as M, useState as n, useCallback as v } from "react";
3
- import { F as R } from "./CoachmarkProvider-DnRFYjW-.js";
3
+ import { F as R } from "./CoachmarkProvider-CudC1Eoe.js";
4
4
  import { u as _, m as x } from "./F0CanvasPanel-C57zh5Pt.js";
5
- import { u as B, a as L, s as P } from "./experimental-SmtCrbMW.js";
5
+ import { u as B, a as L, s as P } from "./experimental-BQ0Ww05e.js";
6
6
  const N = 140, O = 1e4, K = ({
7
7
  onClose: d,
8
8
  searchMembers: f
@@ -20418,6 +20418,8 @@ function TQ({
20418
20418
  label: e.label,
20419
20419
  hideLabel: !0,
20420
20420
  transparent: !0,
20421
+ showIcon: c?.showIcon ?? !0,
20422
+ clearable: c?.clearable,
20421
20423
  displayFormat: "default",
20422
20424
  value: d,
20423
20425
  onChange: f,
@@ -20741,8 +20743,9 @@ function rI(e) {
20741
20743
  if (e)
20742
20744
  return e.icon ? e.icon : sd(e.inputType);
20743
20745
  }
20744
- function $Q(e) {
20745
- return e.dateConfig ? sd("date") : rI(e.textConfig);
20746
+ function $Q(e, t) {
20747
+ const n = typeof e.dateConfig == "function" ? e.dateConfig(t) : e.dateConfig;
20748
+ return n ? n.showIcon === !1 ? void 0 : sd("date") : rI(e.textConfig);
20746
20749
  }
20747
20750
  function BQ(e, t, n) {
20748
20751
  if (!e.dateConfig || e.id === void 0)
@@ -20764,7 +20767,7 @@ function oI({
20764
20767
  className: i,
20765
20768
  showFieldAffordances: r = !0
20766
20769
  }) {
20767
- const o = Be(), s = qT(), a = r ? $Q(e) : void 0, l = r && !e.disabledConfig?.hideSelectChevron && !!e.selectConfig, c = e.align === "right", d = BQ(e, t, s), f = e.id !== void 0 ? t[e.id] : void 0, u = Array.isArray(f) ? zQ(e, t, f) : void 0, h = r ? x2(e.numberConfig, t) : void 0, p = e.numberConfig?.unitsPosition === "before", g = h ? /* @__PURE__ */ m("span", { className: "shrink-0 select-none pt-px text-sm", children: h }) : null;
20770
+ const o = Be(), s = qT(), a = r ? $Q(e, t) : void 0, l = r && !e.disabledConfig?.hideSelectChevron && !!e.selectConfig, c = e.align === "right", d = BQ(e, t, s), f = e.id !== void 0 ? t[e.id] : void 0, u = Array.isArray(f) ? zQ(e, t, f) : void 0, h = r ? x2(e.numberConfig, t) : void 0, p = e.numberConfig?.unitsPosition === "before", g = h ? /* @__PURE__ */ m("span", { className: "shrink-0 select-none pt-px text-sm", children: h }) : null;
20768
20771
  return /* @__PURE__ */ P(
20769
20772
  "div",
20770
20773
  {
@@ -1,7 +1,7 @@
1
1
  import { jsxs as i, jsx as o } from "react/jsx-runtime";
2
2
  import { useState as b, useCallback as m, useMemo as p } from "react";
3
3
  import { u as x, i as w, j as k, k as S, l as C } from "./F0CanvasPanel-C57zh5Pt.js";
4
- import { n as g, a as h, f as v, T as n, d as F } from "./index-rtT704Nz.js";
4
+ import { n as g, a as h, f as v, T as n, d as F } from "./index-CDkdzDYo.js";
5
5
  const D = () => {
6
6
  const [r, a] = b(1), t = m(
7
7
  () => a((e) => g(e) ?? e),
@@ -2,7 +2,7 @@ import { jsxs as c, jsx as o } from "react/jsx-runtime";
2
2
  import { r as g } from "./docx-preview-BaRDMyPN.js";
3
3
  import { useRef as b, useState as h, useEffect as w } from "react";
4
4
  import { u as p, S as v } from "./F0CanvasPanel-C57zh5Pt.js";
5
- import { u as x, D as y } from "./DocumentToolbar-BHXNjAJR.js";
5
+ import { u as x, D as y } from "./DocumentToolbar-DSNgMEr6.js";
6
6
  const V = ({
7
7
  url: t,
8
8
  filename: d,
@@ -1,5 +1,5 @@
1
1
  import { jsx as p } from "react/jsx-runtime";
2
- import { m } from "./experimental-SmtCrbMW.js";
2
+ import { m } from "./experimental-BQ0Ww05e.js";
3
3
  import { useRef as l, useEffect as i, useState as b } from "react";
4
4
  const k = "https://tiles.openfreemap.org/styles/positron", y = "https://tiles.openfreemap.org/styles/dark", R = 15, d = (n) => {
5
5
  const [c, s] = b(!1);
@@ -2,7 +2,7 @@ import { jsxs as a, jsx as r, Fragment as N } from "react/jsx-runtime";
2
2
  import { useState as i, useEffect as k } from "react";
3
3
  import { u as v, T as S, h as V, S as R } from "./F0CanvasPanel-C57zh5Pt.js";
4
4
  import { f as z, c as E } from "./sheetPreview-Djc-YyVs.js";
5
- import { u as _, D as j } from "./DocumentToolbar-BHXNjAJR.js";
5
+ import { u as _, D as j } from "./DocumentToolbar-DSNgMEr6.js";
6
6
  const g = 1e3, F = 100, G = ({
7
7
  url: n,
8
8
  filename: y,
@@ -1,7 +1,7 @@
1
1
  import { jsxs as b, jsx as e } from "react/jsx-runtime";
2
2
  import { useState as _, useEffect as h } from "react";
3
3
  import { u as x, S as p, p as w } from "./F0CanvasPanel-C57zh5Pt.js";
4
- import { u as y, D as g } from "./DocumentToolbar-BHXNjAJR.js";
4
+ import { u as y, D as g } from "./DocumentToolbar-DSNgMEr6.js";
5
5
  const k = 2 * 1024 * 1024, v = [
6
6
  "[&_h1]:mb-3 [&_h1]:mt-6 [&_h1]:text-2xl [&_h1]:font-semibold",
7
7
  "[&_h2]:mb-2 [&_h2]:mt-5 [&_h2]:text-xl [&_h2]:font-semibold",