@factorialco/f0-react 12.22.0 → 13.0.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.
- package/dist/{ArchiveThumbnail-DjGqm8M-.js → ArchiveThumbnail-Bz26vD3k.js} +1 -1
- package/dist/{ArchiveViewer-BJJfbi_U.js → ArchiveViewer-Br_UrMQq.js} +2 -2
- package/dist/{ChatPostComposerDialog-D7SGJJAs.js → ChatPostComposerDialog-D6aHVIXd.js} +2 -2
- package/dist/{CoachmarkProvider-CoAVh7dJ.js → CoachmarkProvider-BzKJ-Ta0.js} +19987 -20026
- package/dist/{CodeThumbnail-CPLxU3Ih.js → CodeThumbnail-gCUveng3.js} +1 -1
- package/dist/{CodeViewer-rQ7Em-Gy.js → CodeViewer-DIWvig04.js} +4 -4
- package/dist/{DocumentToolbar-Ds1E9q0M.js → DocumentToolbar-KSR6JvwX.js} +4 -4
- package/dist/{DocxViewer-C0T0z8Vs.js → DocxViewer-BaJCyWOv.js} +1 -1
- package/dist/{F0AiProcessingOverlay-BFpxgMh2.js → F0AiProcessingOverlay-BOFAcdmY.js} +367 -380
- package/dist/{F0Alert-Bjvtxn3H.js → F0Alert-BkFPrwRK.js} +3 -3
- package/dist/F0AudioPlayer-Dq4-9QDJ.js +2 -0
- package/dist/{F0Button-d91IgOnc.js → F0Button-C1-0hRRA.js} +1334 -1363
- package/dist/{F0CanvasPanel-CKf9KGYf.js → F0CanvasPanel-DUZAHcRh.js} +6573 -6614
- package/dist/{F0DocumentViewer-keL5XY86.js → F0DocumentViewer-D4NVYpen.js} +1 -1
- package/dist/{F0DocumentViewer-Db7Df7NG.js → F0DocumentViewer-DaymVJJ7.js} +2 -2
- package/dist/{F0Map-C7tyIliG.js → F0Map-CWspTgyA.js} +5 -5
- package/dist/{F0Select-CvMv06GW.js → F0Select-DDqZWGSC.js} +1559 -1569
- package/dist/{F0Text-CXHuzMbj.js → F0Text-KD9_ThWl.js} +1 -1
- package/dist/F0VideoPlayer-D3U1y8RL.js +1 -0
- package/dist/{F0VideoPlayer-CNjhk2KG.js → F0VideoPlayer-_ThwtIuS.js} +2 -2
- package/dist/{HtmlThumbnail-BJuJkuvu.js → HtmlThumbnail-CGNpFG13.js} +1 -1
- package/dist/{HtmlViewer-DLFZ5Ssa.js → HtmlViewer-Bqei9VAg.js} +6 -6
- package/dist/{LayoutGroup-BGb5jMxE.js → LayoutGroup-88jf2Qrz.js} +1 -1
- package/dist/{Map-BBymB_r3.js → Map-Co_dgN5b.js} +7 -7
- package/dist/{PdfThumbnail-COj6Xf_h.js → PdfThumbnail-B20soGGL.js} +1 -1
- package/dist/{PdfViewer-BFlZkPXF.js → PdfViewer-06FXAmNj.js} +9 -9
- package/dist/{SandboxedHtmlFrame-B95lWsIP.js → SandboxedHtmlFrame-B29PHJ6m.js} +1 -1
- package/dist/{SheetViewer-BiG8XWoD.js → SheetViewer-C3Phf24V.js} +3 -3
- package/dist/{TextViewer-d55mf95-.js → TextViewer-DCVutuqX.js} +2 -2
- package/dist/ai.d.ts +2 -2
- package/dist/ai.js +2 -2
- package/dist/component-status.js +1 -1
- package/dist/{dist-DtILhk4w.js → dist-CBheMQQo.js} +1 -1
- package/dist/experimental.d.ts +3 -3
- package/dist/experimental.js +3914 -3914
- package/dist/{exports-uEdbdS0t.d.ts → exports-BPCb_V_l.d.ts} +2 -9
- package/dist/f0.d.ts +18 -14
- package/dist/f0.js +1640 -1646
- package/dist/{highlight-Dsp6kNdi.js → highlight-BfB_NSI3.js} +1 -1
- package/dist/{index-CeS2Wdhj.d.ts → index-BrWCSgfc.d.ts} +216 -176
- package/dist/{maplibre-BP9M6gr5.js → maplibre-CQIf84Qp.js} +1 -1
- package/dist/{pdfWorker-CWeWN68D.js → pdfWorker-BhhAlqi1.js} +1 -1
- package/dist/{scrollarea-cxaFAWG5.js → scrollarea-BbCUnpY7.js} +1 -1
- package/dist/{toolbarStyles-lTj_42zD.js → toolbarStyles-BffylLUB.js} +1 -1
- package/dist/{types-BtO3HMh4.d.ts → types-DTokfjgM.d.ts} +201 -47
- package/dist/{useData-BYkiGUHX.js → useData-DikJqoNa.js} +2 -2
- package/package.json +1 -1
- package/dist/F0AudioPlayer-0tGyuoCw.js +0 -2
- package/dist/F0VideoPlayer-BRfsQaLa.js +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Bt as e, jt as t, zt as n } from "./F0CanvasPanel-
|
|
1
|
+
import { Bt as e, jt as t, zt as n } from "./F0CanvasPanel-DUZAHcRh.js";
|
|
2
2
|
import { t as r } from "./purify.es-ZpfdAuNV.js";
|
|
3
3
|
import { t as i } from "./ownValue-D4uSXt0d.js";
|
|
4
4
|
//#region src/addons/documents/lib/codeLanguages.ts
|
|
@@ -6,7 +6,7 @@ import { baseColors } from "@factorialco/f0-core";
|
|
|
6
6
|
import * as AvatarPrimitive from "@radix-ui/react-avatar";
|
|
7
7
|
import "react-pdf";
|
|
8
8
|
import { PDFDocumentProxy } from "pdfjs-dist";
|
|
9
|
-
import
|
|
9
|
+
import "@base-ui/react/tooltip";
|
|
10
10
|
//#region src/elements/lib/data-testid/data-testid.d.ts
|
|
11
11
|
interface WithDataTestIdProps {
|
|
12
12
|
dataTestId?: string;
|
|
@@ -1821,67 +1821,62 @@ declare const buttonVariants: ("critical" | "default" | "ghost" | "neutral" | "o
|
|
|
1821
1821
|
type ButtonVariant = Exclude<(typeof actionButtonVariants)[number], "ai">;
|
|
1822
1822
|
declare const buttonSizes: readonly ["sm", "md", "lg"];
|
|
1823
1823
|
type ButtonSize = (typeof buttonSizes)[number];
|
|
1824
|
-
|
|
1825
|
-
|
|
1826
|
-
|
|
1824
|
+
/**
|
|
1825
|
+
* Navigation shape, shared by `ButtonInternalProps` and the public
|
|
1826
|
+
* `F0ButtonProps`. `Pick` and `Omit` over a union collapse its cases, so both
|
|
1827
|
+
* types reference this declaration instead of deriving one from the other.
|
|
1828
|
+
*/
|
|
1829
|
+
type ButtonNavProps = {
|
|
1830
|
+
/** The URL to navigate to when the button is clicked. */
|
|
1831
|
+
href: string;
|
|
1832
|
+
/** The target to navigate to when the button is clicked. */
|
|
1833
|
+
target?: NavTarget;
|
|
1834
|
+
type?: never;
|
|
1835
|
+
} | {
|
|
1836
|
+
href?: never;
|
|
1837
|
+
target?: never;
|
|
1827
1838
|
/** Native button behavior. */
|
|
1828
1839
|
type?: ButtonType;
|
|
1829
|
-
|
|
1830
|
-
|
|
1831
|
-
|
|
1832
|
-
|
|
1833
|
-
|
|
1834
|
-
|
|
1835
|
-
|
|
1836
|
-
|
|
1837
|
-
|
|
1838
|
-
|
|
1839
|
-
|
|
1840
|
-
|
|
1841
|
-
|
|
1842
|
-
/**
|
|
1843
|
-
* Describes the type of popup opened by the button.
|
|
1844
|
-
*/
|
|
1845
|
-
"aria-haspopup"?: React.AriaAttributes["aria-haspopup"];
|
|
1846
|
-
/**
|
|
1847
|
-
* Forwarded to the underlying button. Use `-1` to take the button out of the
|
|
1848
|
-
* tab order (e.g. when a parent manages focus via roving tabindex).
|
|
1849
|
-
*/
|
|
1850
|
-
tabIndex?: number;
|
|
1851
|
-
/**
|
|
1852
|
-
* The variant of the button.
|
|
1853
|
-
*/
|
|
1854
|
-
variant?: ActionButtonVariant;
|
|
1855
|
-
/**
|
|
1856
|
-
* A count shown in a neutral counter to the right of the label.
|
|
1857
|
-
*/
|
|
1858
|
-
counterValue?: number;
|
|
1859
|
-
/**
|
|
1860
|
-
* Callback fired when the button is clicked. Supports async functions for loading state.
|
|
1861
|
-
*/
|
|
1862
|
-
onClick?: (event: React.MouseEvent<HTMLElement>) => void | Promise<unknown>;
|
|
1863
|
-
/**
|
|
1864
|
-
* The title of the button.
|
|
1865
|
-
*/
|
|
1840
|
+
};
|
|
1841
|
+
//#endregion
|
|
1842
|
+
//#region src/elements/F0Button/F0Button.d.ts
|
|
1843
|
+
/**
|
|
1844
|
+
* The button's public surface, written out in full rather than derived from
|
|
1845
|
+
* `ButtonInternalProps`. A prop reaches callers only by being listed here, so
|
|
1846
|
+
* adding one to the internal component cannot widen the public API by
|
|
1847
|
+
* accident.
|
|
1848
|
+
*/
|
|
1849
|
+
type F0ButtonProps = {
|
|
1850
|
+
/** The visible label for the button. Required for accessibility. */
|
|
1851
|
+
label: string;
|
|
1852
|
+
/** The title of the button. */
|
|
1866
1853
|
title?: string;
|
|
1867
1854
|
/**
|
|
1868
|
-
*
|
|
1855
|
+
* Callback fired when the button is clicked. Supports async functions for
|
|
1856
|
+
* loading state.
|
|
1869
1857
|
*/
|
|
1870
|
-
|
|
1858
|
+
onClick?: (event: React.MouseEvent<HTMLElement>) => void | Promise<unknown>;
|
|
1859
|
+
/** The variant of the button. */
|
|
1860
|
+
variant?: ButtonVariant;
|
|
1871
1861
|
/**
|
|
1872
|
-
*
|
|
1862
|
+
* Sets the button size. 'lg' for mobile, 'md' for desktop, 'sm' for
|
|
1863
|
+
* compact/secondary actions.
|
|
1873
1864
|
*/
|
|
1874
|
-
|
|
1865
|
+
size?: ButtonSize;
|
|
1866
|
+
/** Overrides the label's font size, which otherwise follows `size`. */
|
|
1867
|
+
fontSize?: ActionProps["fontSize"];
|
|
1875
1868
|
/**
|
|
1876
|
-
* Adds an icon to the button, combined with the label for better clarity and
|
|
1869
|
+
* Adds an icon to the button, combined with the label for better clarity and
|
|
1870
|
+
* recognition.
|
|
1877
1871
|
*/
|
|
1878
1872
|
icon?: IconType;
|
|
1879
|
-
/**
|
|
1880
|
-
* Sets the side of the label the icon is placed on. Defaults to "left".
|
|
1881
|
-
*/
|
|
1873
|
+
/** Sets the side of the label the icon is placed on. Defaults to "left". */
|
|
1882
1874
|
iconPosition?: "left" | "right";
|
|
1875
|
+
/** If true, the button rotates the icon while the button is hovered. */
|
|
1876
|
+
iconRotate?: boolean;
|
|
1883
1877
|
/**
|
|
1884
|
-
* Adds an emoji to the button, can be used as a special case of icon-only
|
|
1878
|
+
* Adds an emoji to the button, can be used as a special case of icon-only
|
|
1879
|
+
* button.
|
|
1885
1880
|
*/
|
|
1886
1881
|
emoji?: string;
|
|
1887
1882
|
/**
|
|
@@ -1890,83 +1885,47 @@ type ButtonInternalProps = Pick<ActionProps, "size" | "disabled" | "className" |
|
|
|
1890
1885
|
*/
|
|
1891
1886
|
emojiMode?: EmojiRenderMode;
|
|
1892
1887
|
/**
|
|
1893
|
-
* Hides the label visually (for icon-only or emoji-only buttons), but keeps
|
|
1888
|
+
* Hides the label visually (for icon-only or emoji-only buttons), but keeps
|
|
1889
|
+
* it accessible for screen readers.
|
|
1894
1890
|
*/
|
|
1895
1891
|
hideLabel?: boolean;
|
|
1892
|
+
/** A count shown in a neutral counter to the right of the label. */
|
|
1893
|
+
counterValue?: number;
|
|
1894
|
+
/** Tooltip shown on hover. Pass `false` to suppress the automatic one. */
|
|
1895
|
+
tooltip?: ActionProps["tooltip"];
|
|
1896
1896
|
/**
|
|
1897
|
-
*
|
|
1898
|
-
|
|
1899
|
-
size?: ButtonSize;
|
|
1900
|
-
/**
|
|
1901
|
-
* @private
|
|
1902
|
-
* Appends a React node after the button content (for custom UI extensions).
|
|
1903
|
-
*/
|
|
1904
|
-
append?: React.ReactNode;
|
|
1905
|
-
/**
|
|
1906
|
-
* If true, the button is inactive and does not respond to user interaction.
|
|
1897
|
+
* Indicates that an action is in progress. Shows a loading spinner and blocks
|
|
1898
|
+
* interaction.
|
|
1907
1899
|
*/
|
|
1900
|
+
loading?: boolean;
|
|
1901
|
+
/** If true, the button is inactive and does not respond to user interaction. */
|
|
1908
1902
|
disabled?: boolean;
|
|
1909
1903
|
/**
|
|
1910
|
-
* If true and disabled is also true, the button retains its normal visual
|
|
1911
|
-
* (no reduced opacity or not-allowed cursor) while still being
|
|
1904
|
+
* If true and disabled is also true, the button retains its normal visual
|
|
1905
|
+
* appearance (no reduced opacity or not-allowed cursor) while still being
|
|
1906
|
+
* non-interactive.
|
|
1912
1907
|
*/
|
|
1913
1908
|
withoutDisabledAppearance?: boolean;
|
|
1914
1909
|
/**
|
|
1915
|
-
*
|
|
1916
|
-
*
|
|
1917
|
-
*/
|
|
1918
|
-
pressed?: boolean;
|
|
1919
|
-
/**
|
|
1920
|
-
* @private
|
|
1921
|
-
* If true, the button adds no automatic tooltip — neither the one derived
|
|
1922
|
-
* from `hideLabel` + `label`, nor the one the label shows when it is too
|
|
1923
|
-
* long and gets clipped to an ellipsis.
|
|
1924
|
-
*/
|
|
1925
|
-
noAutoTooltip?: boolean;
|
|
1926
|
-
/**
|
|
1927
|
-
* @private
|
|
1928
|
-
* If true, the button will not automatically add a title based label
|
|
1929
|
-
*/
|
|
1930
|
-
noTitle?: boolean;
|
|
1931
|
-
/**
|
|
1932
|
-
* @private
|
|
1933
|
-
* If true, the button will rotate the icon when the button is hovered.
|
|
1934
|
-
*/
|
|
1935
|
-
iconRotate?: boolean;
|
|
1936
|
-
/**
|
|
1937
|
-
* @private
|
|
1938
|
-
* The style of the button.
|
|
1939
|
-
*/
|
|
1940
|
-
style?: React.CSSProperties;
|
|
1941
|
-
/**
|
|
1942
|
-
* @private
|
|
1943
|
-
* If true, the button will stretch to the full width of its container.
|
|
1910
|
+
* Forwarded to the underlying button. Use `-1` to take the button out of the
|
|
1911
|
+
* tab order (e.g. when a parent manages focus via roving tabindex).
|
|
1944
1912
|
*/
|
|
1945
|
-
|
|
1946
|
-
} & ({
|
|
1913
|
+
tabIndex?: number;
|
|
1947
1914
|
/**
|
|
1948
|
-
* The
|
|
1915
|
+
* The aria-label of the button if not provided title or label will be used.
|
|
1949
1916
|
*/
|
|
1950
|
-
|
|
1917
|
+
"aria-label"?: string;
|
|
1951
1918
|
/**
|
|
1952
|
-
*
|
|
1919
|
+
* Forwarded to the underlying button. Useful for buttons that toggle an
|
|
1920
|
+
* expandable region (e.g. a tree/graph expander).
|
|
1953
1921
|
*/
|
|
1954
|
-
|
|
1955
|
-
|
|
1956
|
-
|
|
1957
|
-
|
|
1958
|
-
|
|
1959
|
-
|
|
1960
|
-
|
|
1961
|
-
//#endregion
|
|
1962
|
-
//#region src/elements/F0Button/F0Button.d.ts
|
|
1963
|
-
declare const privateProps$3: readonly ["append", "className", "pressed", "compact", "noTitle", "noAutoTooltip", "style", "block"];
|
|
1964
|
-
type F0ButtonProps = Omit<ButtonInternalProps, (typeof privateProps$3)[number] | "variant"> & {
|
|
1965
|
-
variant?: Exclude<ButtonInternalProps["variant"], "ai">;
|
|
1966
|
-
};
|
|
1967
|
-
declare const F0Button: WithDataTestIdReturnType<import("react").ForwardRefExoticComponent<Omit<ButtonInternalProps, "append" | "block" | "className" | "compact" | "noAutoTooltip" | "noTitle" | "pressed" | "style" | "variant"> & {
|
|
1968
|
-
variant?: Exclude<ButtonInternalProps["variant"], "ai">;
|
|
1969
|
-
} & import("react").RefAttributes<HTMLAnchorElement | HTMLButtonElement>>>;
|
|
1922
|
+
"aria-expanded"?: boolean;
|
|
1923
|
+
/** Identifies the expandable region controlled by the button. */
|
|
1924
|
+
"aria-controls"?: string;
|
|
1925
|
+
/** Describes the type of popup opened by the button. */
|
|
1926
|
+
"aria-haspopup"?: React.AriaAttributes["aria-haspopup"];
|
|
1927
|
+
} & DataAttributes & ButtonNavProps;
|
|
1928
|
+
declare const F0Button: WithDataTestIdReturnType<import("react").ForwardRefExoticComponent<F0ButtonProps & import("react").RefAttributes<HTMLAnchorElement | HTMLButtonElement>>>;
|
|
1970
1929
|
//#endregion
|
|
1971
1930
|
//#region src/elements/lib/linkHandler.d.ts
|
|
1972
1931
|
interface LinkContextValue {
|
|
@@ -2581,22 +2540,6 @@ interface HourDistributionCellValue {
|
|
|
2581
2540
|
}
|
|
2582
2541
|
declare const HourDistributionCell: (args: HourDistributionCellValue, meta: ValueDisplayRendererContext) => import("react").JSX.Element;
|
|
2583
2542
|
//#endregion
|
|
2584
|
-
//#region src/elements/primitives/tooltip.d.ts
|
|
2585
|
-
interface TooltipPopupProps$1 extends Omit<TooltipPopupProps, "className" | "render"> {
|
|
2586
|
-
className?: string;
|
|
2587
|
-
side?: TooltipPositionerProps["side"];
|
|
2588
|
-
align?: TooltipPositionerProps["align"];
|
|
2589
|
-
sideOffset?: TooltipPositionerProps["sideOffset"];
|
|
2590
|
-
alignOffset?: TooltipPositionerProps["alignOffset"];
|
|
2591
|
-
collisionPadding?: TooltipPositionerProps["collisionPadding"];
|
|
2592
|
-
/**
|
|
2593
|
-
* Classes for the positioner — the box the bubble sits in. It is a hit
|
|
2594
|
-
* target of its own, so anything about pointer events belongs here rather
|
|
2595
|
-
* than on the bubble.
|
|
2596
|
-
*/
|
|
2597
|
-
positionerClassName?: string;
|
|
2598
|
-
}
|
|
2599
|
-
//#endregion
|
|
2600
2543
|
//#region src/elements/Shortcut/Shortcut.d.ts
|
|
2601
2544
|
declare const shortcutVariants: (props?: ({
|
|
2602
2545
|
variant?: "default" | "inverse" | undefined;
|
|
@@ -2672,60 +2615,31 @@ interface TooltipGroupProps {
|
|
|
2672
2615
|
* tooltips rather than a name they each repeat.
|
|
2673
2616
|
*/
|
|
2674
2617
|
declare const TooltipGroup: ({ children, delay, closeDelay, timeout }: TooltipGroupProps) => import("react").JSX.Element;
|
|
2675
|
-
|
|
2618
|
+
/**
|
|
2619
|
+
* The tooltip's public surface, written out in full rather than derived from
|
|
2620
|
+
* `TooltipInternalProps`. A prop reaches callers only by being listed here, so
|
|
2621
|
+
* adding one to the internal component cannot widen the public API by
|
|
2622
|
+
* accident. Placement (`side`, `align`, `sideOffset`), timing (`delay`,
|
|
2623
|
+
* `closeDelay`) and `onOpen`, `closeOnPress`, `forceOpen` and
|
|
2624
|
+
* `shortcutVariant` stay internal.
|
|
2625
|
+
*/
|
|
2626
|
+
type TooltipProps = {
|
|
2676
2627
|
children: ReactNode;
|
|
2677
2628
|
shortcut?: ComponentProps<typeof Shortcut>["keys"];
|
|
2678
|
-
/**
|
|
2679
|
-
* The wait before the bubble opens on hover. Inside a `TooltipGroup` the
|
|
2680
|
-
* group's own value applies unless this is set.
|
|
2681
|
-
*/
|
|
2682
|
-
delay?: number;
|
|
2683
|
-
/**
|
|
2684
|
-
* How long the bubble stays after the pointer leaves the trigger. Inside a
|
|
2685
|
-
* `TooltipGroup` the group's own value applies unless this is set.
|
|
2686
|
-
*/
|
|
2687
|
-
closeDelay?: number;
|
|
2629
|
+
/** Opens on 100ms instead of the default wait. */
|
|
2688
2630
|
instant?: boolean;
|
|
2689
2631
|
/**
|
|
2690
2632
|
* Opens the bubble from the pointer instead of leaving the hover to Base UI,
|
|
2691
2633
|
* for a trigger that emits no mouse event of its own — a natively `disabled`
|
|
2692
|
-
* button.
|
|
2634
|
+
* button.
|
|
2693
2635
|
*/
|
|
2694
2636
|
openOnPointer?: boolean;
|
|
2695
|
-
onOpen?: () => void;
|
|
2696
2637
|
/**
|
|
2697
2638
|
* Whether the bubble itself can be hovered. A tooltip that follows a column
|
|
2698
|
-
* of targets must not
|
|
2699
|
-
* next item, which takes the hover off the trigger and closes the bubble,
|
|
2700
|
-
* which puts the pointer back on the trigger — on and off for as long as the
|
|
2701
|
-
* cursor keeps moving.
|
|
2639
|
+
* of targets must not.
|
|
2702
2640
|
*/
|
|
2703
2641
|
hoverable?: boolean;
|
|
2704
|
-
/**
|
|
2705
|
-
* Whether pressing the trigger puts the bubble away. It does by default —
|
|
2706
|
-
* a press is an answer, and the label has done its job. A navigation rail
|
|
2707
|
-
* says no: pressing a module changes the page under a pointer that has not
|
|
2708
|
-
* moved, and a label that vanishes at that moment reads as the pointer
|
|
2709
|
-
* having lost the thing it is still on.
|
|
2710
|
-
*/
|
|
2711
|
-
closeOnPress?: boolean;
|
|
2712
|
-
/**
|
|
2713
|
-
* Holds the bubble open from outside, e.g. while the control it names has
|
|
2714
|
-
* keyboard focus but is not itself the trigger.
|
|
2715
|
-
*/
|
|
2716
|
-
forceOpen?: boolean;
|
|
2717
|
-
side?: TooltipPopupProps$1["side"];
|
|
2718
|
-
align?: TooltipPopupProps$1["align"];
|
|
2719
|
-
sideOffset?: number;
|
|
2720
|
-
/**
|
|
2721
|
-
* The shortcut chip's treatment. "inverse" is the outlined one the bubble
|
|
2722
|
-
* has always used; "default" is the filled, lighter chip the search box
|
|
2723
|
-
* itself shows, for tooltips naming the same key.
|
|
2724
|
-
*/
|
|
2725
|
-
shortcutVariant?: ComponentProps<typeof Shortcut>["variant"];
|
|
2726
2642
|
} & TooltipCopyProps;
|
|
2727
|
-
declare const privateProps$2: readonly ["delay", "closeDelay", "onOpen", "closeOnPress", "forceOpen", "side", "align", "sideOffset", "shortcutVariant"];
|
|
2728
|
-
type TooltipProps = Omit<TooltipInternalProps, (typeof privateProps$2)[number]>;
|
|
2729
2643
|
declare const _Tooltip: (props: TooltipProps) => import("react").JSX.Element;
|
|
2730
2644
|
/**
|
|
2731
2645
|
* @experimental This is an experimental component use it at your own risk
|
|
@@ -3537,8 +3451,84 @@ interface CardInternalProps {
|
|
|
3537
3451
|
}
|
|
3538
3452
|
//#endregion
|
|
3539
3453
|
//#region src/elements/F0Card/F0Card.d.ts
|
|
3540
|
-
|
|
3541
|
-
|
|
3454
|
+
/**
|
|
3455
|
+
* The card's public surface, written out in full rather than derived from
|
|
3456
|
+
* `CardInternalProps`. A prop reaches callers only by being listed here, so
|
|
3457
|
+
* adding one to the internal component cannot widen the public API by
|
|
3458
|
+
* accident. `forceVerticalMetadata`, `disableOverlayLink` and `flash` stay
|
|
3459
|
+
* internal — the kanban card is the only thing that sets them.
|
|
3460
|
+
*/
|
|
3461
|
+
interface F0CardProps {
|
|
3462
|
+
/** The title of the card */
|
|
3463
|
+
title?: string;
|
|
3464
|
+
/** The description of the card */
|
|
3465
|
+
description?: string;
|
|
3466
|
+
/** The children to display in the card */
|
|
3467
|
+
children?: ReactNode;
|
|
3468
|
+
/** Whether the card has a compact layout */
|
|
3469
|
+
compact?: boolean;
|
|
3470
|
+
/** The avatar to display in the card */
|
|
3471
|
+
avatar?: CardInternalProps["avatar"];
|
|
3472
|
+
/** Whether the card has an image */
|
|
3473
|
+
image?: string;
|
|
3474
|
+
/**
|
|
3475
|
+
* How the image should be displayed/fitted within its container
|
|
3476
|
+
* @default "fit-width"
|
|
3477
|
+
*/
|
|
3478
|
+
imageFit?: CardImageFit;
|
|
3479
|
+
/**
|
|
3480
|
+
* Size of the image container
|
|
3481
|
+
* @default "sm"
|
|
3482
|
+
*/
|
|
3483
|
+
imageSize?: CardImageSize;
|
|
3484
|
+
/**
|
|
3485
|
+
* Constrain the image container to a fixed aspect ratio instead of a fixed
|
|
3486
|
+
* height. When set, `imageSize` is ignored for height.
|
|
3487
|
+
*/
|
|
3488
|
+
imageAspectRatio?: CardImageAspectRatio;
|
|
3489
|
+
/**
|
|
3490
|
+
* Whether to show a blurred background image when the image doesn't fill the
|
|
3491
|
+
* container
|
|
3492
|
+
* @default true
|
|
3493
|
+
*/
|
|
3494
|
+
blurredBackground?: boolean;
|
|
3495
|
+
/** Metadata items to display in the card */
|
|
3496
|
+
metadata?: CardInternalProps["metadata"];
|
|
3497
|
+
/** The link to navigate to when the card is clicked */
|
|
3498
|
+
link?: string;
|
|
3499
|
+
/** The primary action that displays a primary button in the card footer */
|
|
3500
|
+
primaryAction?: CardInternalProps["primaryAction"];
|
|
3501
|
+
/** The secondary actions - either an array of button actions or a single link */
|
|
3502
|
+
secondaryActions?: CardInternalProps["secondaryActions"];
|
|
3503
|
+
/** Actions to display in the dropdown menu inside the card content */
|
|
3504
|
+
otherActions?: CardInternalProps["otherActions"];
|
|
3505
|
+
/**
|
|
3506
|
+
* Bookmark (save) toggle rendered as an icon button in the card's options
|
|
3507
|
+
* overlay.
|
|
3508
|
+
*/
|
|
3509
|
+
bookmark?: CardInternalProps["bookmark"];
|
|
3510
|
+
/** Whether the card is selectable */
|
|
3511
|
+
selectable?: boolean;
|
|
3512
|
+
/** Whether the card is selected */
|
|
3513
|
+
selected?: boolean;
|
|
3514
|
+
/** The callback to handle the selection of the card */
|
|
3515
|
+
onSelect?: (selected: boolean) => void;
|
|
3516
|
+
/** The callback to handle the click of the card */
|
|
3517
|
+
onClick?: () => void;
|
|
3518
|
+
/** Whether the card should have a full height */
|
|
3519
|
+
fullHeight?: boolean;
|
|
3520
|
+
/**
|
|
3521
|
+
* Use a softer/lighter border (`border-f1-border-secondary`) instead of the
|
|
3522
|
+
* default `border-f1-border`.
|
|
3523
|
+
* @default false
|
|
3524
|
+
*/
|
|
3525
|
+
subtleBorder?: boolean;
|
|
3526
|
+
/**
|
|
3527
|
+
* Alert banner displayed above the card with a coloured header strip and
|
|
3528
|
+
* matching border.
|
|
3529
|
+
*/
|
|
3530
|
+
alert?: CardInternalProps["alert"];
|
|
3531
|
+
}
|
|
3542
3532
|
declare const F0CardSkeleton: ({ compact }: {
|
|
3543
3533
|
compact?: boolean;
|
|
3544
3534
|
}) => import("react").JSX.Element;
|
|
@@ -5320,11 +5310,61 @@ declare function useFormCardValueFormatter(formName: string): ((key: string, val
|
|
|
5320
5310
|
declare function useSetFormCardValueFormatter(): SetFormCardValueFormatter;
|
|
5321
5311
|
//#endregion
|
|
5322
5312
|
//#region src/elements/Dropdown/Dropdown.d.ts
|
|
5323
|
-
|
|
5324
|
-
|
|
5313
|
+
/**
|
|
5314
|
+
* The dropdown's public surface, written out in full rather than derived from
|
|
5315
|
+
* `DropdownInternalProps`. A prop reaches callers only by being listed here,
|
|
5316
|
+
* so adding one to the internal component cannot widen the public API by
|
|
5317
|
+
* accident. `alignOffset` and `disableExitAnimation` stay internal.
|
|
5318
|
+
*/
|
|
5319
|
+
interface DropdownProps extends DataAttributes, WithDataTestIdProps {
|
|
5320
|
+
items: DropdownItem[];
|
|
5321
|
+
children?: React.ReactNode;
|
|
5322
|
+
icon?: DropdownInternalProps["icon"];
|
|
5323
|
+
size?: DropdownInternalProps["size"];
|
|
5324
|
+
label?: string;
|
|
5325
|
+
/** @default "end" */
|
|
5326
|
+
align?: DropdownInternalProps["align"];
|
|
5327
|
+
/** Edge the menu opens from. @default "bottom" */
|
|
5328
|
+
side?: DropdownInternalProps["side"];
|
|
5329
|
+
/** Gap between the trigger and the menu, in px. @default 4 */
|
|
5330
|
+
sideOffset?: number;
|
|
5331
|
+
/**
|
|
5332
|
+
* Floor for the menu's width, in px. The menu is still never narrower than
|
|
5333
|
+
* its trigger.
|
|
5334
|
+
*/
|
|
5335
|
+
minWidth?: number;
|
|
5325
5336
|
open?: boolean;
|
|
5326
5337
|
onOpenChange?: (open: boolean) => void;
|
|
5327
|
-
|
|
5338
|
+
/**
|
|
5339
|
+
* Whether the dropdown trigger is disabled. When true, the menu cannot be
|
|
5340
|
+
* opened via click, keyboard, or focus and the trigger receives
|
|
5341
|
+
* `aria-disabled="true"`. With a custom trigger via `children`, `disabled` is
|
|
5342
|
+
* forwarded to it through `cloneElement` when it is a single React element;
|
|
5343
|
+
* a `disabled` or `aria-disabled` the consumer set always wins.
|
|
5344
|
+
* @default false
|
|
5345
|
+
*/
|
|
5346
|
+
disabled?: boolean;
|
|
5347
|
+
/**
|
|
5348
|
+
* Where the menu is portalled. Defaults to the document body; pass the
|
|
5349
|
+
* element of a surrounding modal layer so that layer's focus trap CONTAINS
|
|
5350
|
+
* the menu instead of fighting it.
|
|
5351
|
+
*/
|
|
5352
|
+
container?: HTMLElement | null;
|
|
5353
|
+
/**
|
|
5354
|
+
* Caps the width of the menu content.
|
|
5355
|
+
* @default "expanded"
|
|
5356
|
+
*/
|
|
5357
|
+
contentVariant?: DropdownInternalProps["contentVariant"];
|
|
5358
|
+
/**
|
|
5359
|
+
* Whether the open menu locks page scroll and blocks pointer events outside
|
|
5360
|
+
* it. Pass `false` when a row can open a dialog while the menu stays up — a
|
|
5361
|
+
* switch row, say: Radix does not close a lower layer when a higher one
|
|
5362
|
+
* opens, so a modal menu left under a dialog keeps `body` locked after the
|
|
5363
|
+
* dialog is gone.
|
|
5364
|
+
* @default true
|
|
5365
|
+
*/
|
|
5366
|
+
modal?: boolean;
|
|
5367
|
+
}
|
|
5328
5368
|
declare const DropdownWrapperInternal: (props: DropdownProps) => import("react").JSX.Element;
|
|
5329
5369
|
/**
|
|
5330
5370
|
* @experimental This is an experimental component use it at your own risk
|
|
@@ -5496,4 +5536,4 @@ declare function useI18n(): TranslationsType & {
|
|
|
5496
5536
|
};
|
|
5497
5537
|
declare const buildTranslations: (translations: TranslationsType) => TranslationsType;
|
|
5498
5538
|
//#endregion
|
|
5499
|
-
export { AiChatCredits as $,
|
|
5539
|
+
export { AiChatCredits as $, avatarVariants as $i, F0Button as $n, ChatDashboardScatterChartConfig as $r, F0TagTeam as $t, Weekdays as A, DataTestIdWrapper as Aa, F0PdfViewerToolbarPlacement as Ai, AvatarListSize as An, CanvasActions as Ar, CustomEntityRefCard as At, RenderableTurn as B, F0AvatarModule as Bi, F0Link as Bn, ChatDashboardConfig as Br, cardImageAspectRatios as Bt, FileItemSize as C, NewColor as Ca, F0VideoPlayerProps as Ci, TooltipProps as Cn, F0PersonCardAction as Cr, WelcomeScreenSuggestionItem as Ct, TagCounterItem as D, F0Icon as Da, F0PdfViewer as Di, ChartColorToken as Dn, AutofillTimesheetCanvasContent as Dr, SidePanelContextValue as Dt, TagCounter as E, DistributiveOmit as Ea, F0DocumentViewer as Ei, HourDistributionDataPoint as En, AggregationType as Er, SidePanelContent as Et, F0AiMessagesContainerProps as F, F0DocumentViewerProps as Fi, CardAvatarVariant as Fn, ChatDashboardBarChartConfig as Fr, F0Card as Ft, F0AiChatProps as G, ColorAvatarVariant as Gi, DropdownItemLabel as Gn, ChatDashboardHeatmapChartConfig as Gr, CardAlertVariant as Gt, MarkdownTagRenderers as H, AvatarAction as Hi, DropdownContentVariant as Hn, ChatDashboardFilterDefinition as Hr, cardImageSizes as Ht, WelcomeScreenCta as I, F0DocumentViewerToolbarPlacement as Ii, AlertAvatarProps as In, ChatDashboardChartConfig as Ir, F0CardProps as It, AiChatComposerActionItem as J, FileAvatarVariant as Ji, DropdownItemSeparator as Jn, ChatDashboardMetricFormat as Jr, ValueDisplayRendererDefinition as Jt, F0AiChatProvider as K, ColorListAvatarVariant as Ki, DropdownItemObject as Kn, ChatDashboardItem as Kr, CardMetadata as Kt, FeedbackConfig as L, F0PdfScale as Li, F0AvatarAlert as Ln, ChatDashboardChartItem as Lr, CardImageAspectRatio as Lt, useAiChatTranslations as M, WithDataTestIdPropsOf as Ma, F0DocumentHtmlSandbox as Mi, F0TagAlert as Mn, CanvasContentBase as Mr, EntityRefs as Mt, useAiChat as N, WithDataTestIdReturnType as Na, F0DocumentKind as Ni, Level as Nn, CanvasEntityDefinition as Nr, EntityResolvers as Nt, F0TagRaw as O, F0IconProps as Oa, F0PdfViewerAction as Oi, chartColorTokens as On, AutofillTimesheetShift as Or, SidePanelLayout as Ot, F0AiMessagesContainer as P, withDataTestId as Pa, F0DocumentViewerAction as Pi, Props$1 as Pn, ChartComputation as Pr, EntityUrlBuilders as Pt, AiChatCreditWarning as Q, TeamAvatarVariant as Qi, LinkContextValue as Qn, ChatDashboardRadarChartConfig as Qr, TagVariant as Qt, UserReaction as R, pdfScales as Ri, alertAvatarTypes as Rn, ChatDashboardCollectionItem as Rr, CardImageFit as Rt, FileItemProps as S, modules as Sa, F0VideoPlayer as Si, TooltipGroupProps as Sn, F0PersonCard as Sr, WelcomeScreenSuggestion as St, F0TagList as T, tagDotColors as Ta, Localized as Ti, HourDistributionCellValue as Tn, F0Avatar as Tr, aiTranslations as Tt, markdownRenderers as U, AvatarVariant$1 as Ui, DropdownInternalProps as Un, ChatDashboardFunnelChartConfig as Ur, CardAlertAction as Ut, ThinkingProps as V, F0AvatarModuleProps as Vi, F0LinkProps as Vn, ChatDashboardDateNavigationGranularity as Vr, cardImageFits as Vt, F0AiChat as W, AvatarVariants as Wi, DropdownItem as Wn, ChatDashboardGaugeChartConfig as Wr, CardAlertProps as Wt, AiChatComposerActionSubmenu as X, IconAvatarVariant as Xi, DropdownItemSwitch as Xn, ChatDashboardNavigationFilterDefinition as Xr, TagType as Xt, AiChatComposerActionSeparator as Y, FlagAvatarVariant as Yi, DropdownItemSubmenu as Yn, ChatDashboardMetricItem as Yr, F0TagListProps as Yt, AiChatComposerActionToggle as Z, PersonAvatarVariant as Zi, NavigationItem as Zn, ChatDashboardPieChartConfig as Zr, Tag as Zt, F0FileItem as _, AvatarBadge as _a, AiChatFileKind as _i, F0ProgressSeriesSize as _n, StatusVariant as _r, PendingContext as _t, F0CardHorizontal as a, CountryCode as aa, DataDownloadCanvasContent as ai, F0TagCompanyProps as an, buttonVariants as ar, AiChatTrackingOptions as at, FileAction as b, BadgeProps as ba, AiChatShowFilesItem as bi, Tooltip as bn, CandidateProfile as br, UploadedFile as bt, MobileDropdown as c, FileDef as ca, FormCanvasContent as ci, F0TagBalanceProps as cn, EmojiRenderMode as cr, AiChatUsageLimits as ct, useFormCardValueFormatter as d, BaseAvatar as da, HeatmapComputation as di, RelaxedNumericWithFormatter as dn, ActionButtonVariant as dr, AppendToolCall as dt, F0AvatarTeam as ea, CollectionComputation as ei, F0TagTeamProps as en, F0ButtonProps as er, AiChatDisclaimer as et, useSetFormCardValueFormatter as f, F0AvatarCompanyProps as fa, MetricComputation as fi, F0ProgressSeries as fn, ExpenseProfile as fr, CreditsUsage as ft, F0FileAction as g, F0AvatarColorProps as ga, AiChatFile as gi, F0ProgressSeriesProps as gn, F0TagStatusProps as gr, F0ToolCall as gt, DetailsItemType as h, F0AvatarColor as ha, ScatterComputation as hi, F0ProgressSeriesOptions as hn, F0TagStatus as hr, F0Message as ht, useI18n as i, F0AvatarIconProps as ia, DashboardMetadata as ii, F0TagCompany as in, buttonSizes as ir, AiChatProviderProps as it, AiChatTranslationsProvider as j, WithDataTestIdProps as ja, F0DocumentHtmlExecution as ji, F0AvatarListProps as jn, CanvasContent as jr, CustomEntityRefConfig as jt, F0TagDot as k, IconType as ka, F0PdfViewerProps as ki, BarSeriesStyle as kn, BulkResolveInconsistenciesCanvasContent as kr, SidePanelViewDefinition as kt, FormCardValueFormatterEntry as l, F0AvatarEmoji as la, FormatPreset as li, Numeric as ln, getEmojiLabel as lr, AiChatUsageLimitsSection as lt, DetailsItemContent as m, F0AvatarColorListProps as ma, RadarComputation as mi, F0ProgressSeriesColor as mn, RequisitionProfile as mr, F0AiChatWelcomeCard as mt, I18nProviderProps as n, F0AvatarPersonProps as na, DashboardCanvasContent as ni, F0TagPerson as nn, ButtonSize as nr, AiChatFileAttachmentConfig as nt, F0CardHorizontalProps as o, F0AvatarFile as oa, DataDownloadDataset as oi, F0TagBalance as on, EmojiImage as or, AiChatTranslations as ot, DetailsItem as p, F0AvatarColorList as pa, PieComputation as pi, F0ProgressSeriesBar as pn, VacancyProfile as pr, F0AIMessage as pt, AiChatComposerAction as q, CompanyAvatarVariant as qi, DropdownItemPanel as qn, ChatDashboardLineChartConfig as qr, cardAlertVariants as qt, buildTranslations as r, F0AvatarIcon as ra, DashboardFetchSpec as ri, F0TagPersonProps as rn, ButtonVariant as rr, AiChatMode as rt, Dropdown as s, F0AvatarFileProps as sa, FileCanvasContent as si, BalanceStatus as sn, EmojiImageProps as sr, AiChatTranslationsProviderProps as st, I18nProvider as t, F0AvatarTeamProps as ta, DashboardCanvasActions as ti, F0TagRawProps as tn, ButtonNavProps as tr, AiChatEmployeeCredits as tt, FormCardValueFormatterProvider as u, F0AvatarEmojiProps as ua, GaugeComputation as ui, NumericWithFormatter as un, useEmojiConfetti as ur, AppendMessage as ut, F0FileItemProps as v, BaseAvatarProps as va, AiChatFilePreviewConfig as vi, f0ProgressSeriesColors as vn, Variant as vr, PendingQuote as vt, f0FileItemSizes as w, Props$2 as wa, VideoPlayerContent as wi, Shortcut as wn, F0PersonCardProps as wr, WelcomeSuggestionClickEvent as wt, FileItem as x, ModuleId as xa, AttachmentDocumentKind as xi, TooltipGroup as xn, PersonProfile as xr, VisualizationMode as xt, F0FileItemSize as y, Badge as ya, AiChatFileUrlResolver as yi, f0ProgressSeriesSizes as yn, JobPostingProfile as yr, TranscribeFn as yt, useToolCallId as z, DataAttributes as zi, CardSecondaryAction as zn, ChatDashboardColumn as zr, CardImageSize as zt };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { o as e } from "./rolldown-runtime-BItFwnF5.js";
|
|
2
2
|
import { t } from "./dist-Cuwaibqg.js";
|
|
3
|
-
import { s as n } from "./F0Map-
|
|
3
|
+
import { s as n } from "./F0Map-CWspTgyA.js";
|
|
4
4
|
import './maplibre-gl.css';import './maplibre.css';/* empty css */
|
|
5
5
|
import { t as r } from "./maplibre-gl-DVldSYfz.js";
|
|
6
6
|
//#region ../../node_modules/.pnpm/@mapbox+mapbox-gl-rtl-text@0.2.3_mapbox-gl@1.13.3/node_modules/@mapbox/mapbox-gl-rtl-text/mapbox-gl-rtl-text.js?url
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { i as __require, o as __toESM, t as __commonJSMin } from "./rolldown-runtime-BItFwnF5.js";
|
|
2
2
|
import { z as clsx } from "./tooltip-BX4dSfeL.js";
|
|
3
|
-
import { sa as invariant } from "./F0CanvasPanel-
|
|
3
|
+
import { sa as invariant } from "./F0CanvasPanel-DUZAHcRh.js";
|
|
4
4
|
import { t as dequal } from "./dist-Dt-cTb6D.js";
|
|
5
5
|
import { n as pdfWorkerOverride, r as registerPdfWorkerApplier } from "./pdfWorkerConfig-BwllKt1K.js";
|
|
6
6
|
import { createContext, forwardRef, useCallback, useContext, useEffect, useImperativeHandle, useLayoutEffect, useMemo, useReducer, useRef } from "react";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { L as e } from "./tooltip-BX4dSfeL.js";
|
|
2
|
-
import { i as t, r as n } from "./F0Button-
|
|
2
|
+
import { i as t, r as n } from "./F0Button-C1-0hRRA.js";
|
|
3
3
|
import { o as r } from "./F0Icon-DmCBV0gK.js";
|
|
4
4
|
import { E as i, O as a, T as o, b as s, p as c, w as l, y as u } from "./popover-ics24JxK.js";
|
|
5
5
|
import * as d from "react";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { L as e } from "./tooltip-BX4dSfeL.js";
|
|
2
|
-
import { t } from "./F0Button-
|
|
2
|
+
import { t } from "./F0Button-C1-0hRRA.js";
|
|
3
3
|
import { jsx as n } from "react/jsx-runtime";
|
|
4
4
|
//#region src/addons/documents/F0DocumentViewer/pdfActions.ts
|
|
5
5
|
var r = async (e) => {
|