@factorialco/f0-react 1.323.0 → 1.325.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/experimental.d.ts +36 -7
- package/dist/experimental.js +6787 -6730
- package/dist/f0.d.ts +11 -6
- package/dist/f0.js +2 -2
- package/dist/{hooks-D-ClnmaM.js → hooks-CB8FAjtY.js} +20467 -20413
- package/dist/i18n-provider-defaults.d.ts +5 -5
- package/dist/styles.css +1 -1
- package/package.json +1 -1
package/dist/experimental.d.ts
CHANGED
|
@@ -2971,6 +2971,23 @@ export declare const F0Callout: ForwardRefExoticComponent<CalloutInternalProps &
|
|
|
2971
2971
|
|
|
2972
2972
|
export declare type F0CalloutProps = CalloutInternalProps;
|
|
2973
2973
|
|
|
2974
|
+
export declare function F0CollapsibleMenu({ title, items, className, activeItem, collapsible, showChildrenCounter, barsAlign, size, popupAlign, }: F0CollapsibleMenuProps): JSX_2.Element;
|
|
2975
|
+
|
|
2976
|
+
export declare interface F0CollapsibleMenuProps extends Omit<TOCProps, "sortable" | "onReorder" | "showSearchBox" | "title" | "hideChildrenCounter"> {
|
|
2977
|
+
/** Optional title displayed at the top of the menu popup */
|
|
2978
|
+
title?: string;
|
|
2979
|
+
/** Alignment of the collapsed bars (left or right) */
|
|
2980
|
+
barsAlign?: "left" | "right";
|
|
2981
|
+
/** Whether sections can be collapsed/expanded */
|
|
2982
|
+
collapsible?: boolean;
|
|
2983
|
+
/** Show the count of children items next to parent items */
|
|
2984
|
+
showChildrenCounter?: boolean;
|
|
2985
|
+
/** Maximum height of the popup: sm (max 240px), md (max 400px), lg (max 600px). Content auto-adjusts within limit. */
|
|
2986
|
+
size?: PopupSize;
|
|
2987
|
+
/** Alignment of the popup content */
|
|
2988
|
+
popupAlign?: "center" | "start" | "end";
|
|
2989
|
+
}
|
|
2990
|
+
|
|
2974
2991
|
declare interface F0IconProps extends SVGProps<SVGSVGElement>, VariantProps<typeof iconVariants> {
|
|
2975
2992
|
icon: IconType;
|
|
2976
2993
|
size?: "lg" | "md" | "sm" | "xs";
|
|
@@ -2996,6 +3013,11 @@ declare type F0SelectBaseProps<T extends string, R = unknown> = {
|
|
|
2996
3013
|
actions?: Action[];
|
|
2997
3014
|
/** Container element to render the portal content into */
|
|
2998
3015
|
portalContainer?: HTMLElement | null;
|
|
3016
|
+
/**
|
|
3017
|
+
* When true, renders the select as a static list without the input trigger.
|
|
3018
|
+
* Only displays the dropdown content with max height, border and scroll.
|
|
3019
|
+
*/
|
|
3020
|
+
asList?: boolean;
|
|
2999
3021
|
};
|
|
3000
3022
|
|
|
3001
3023
|
declare type F0SelectItemObject<T, R = unknown> = {
|
|
@@ -4800,6 +4822,8 @@ export declare const PieChartWidget: ForwardRefExoticComponent<Omit<WidgetProps_
|
|
|
4800
4822
|
chart: PieChartProps;
|
|
4801
4823
|
} & RefAttributes<HTMLDivElement>, "ref"> & RefAttributes<HTMLElement | SVGElement>>;
|
|
4802
4824
|
|
|
4825
|
+
export declare type PopupSize = "sm" | "md" | "lg";
|
|
4826
|
+
|
|
4803
4827
|
declare type PostDescriptionProps = {
|
|
4804
4828
|
content: HTMLString;
|
|
4805
4829
|
collapsed?: boolean;
|
|
@@ -5827,9 +5851,11 @@ declare const THEMES: {
|
|
|
5827
5851
|
readonly dark: ".dark";
|
|
5828
5852
|
};
|
|
5829
5853
|
|
|
5830
|
-
|
|
5854
|
+
declare type TOCItem<Depth extends 1 | 2 | 3 | 4 = 1> = BaseTOCItem & {
|
|
5831
5855
|
children?: NextDepth<Depth> extends never ? never : TOCItem<NextDepth<Depth>>[];
|
|
5832
5856
|
};
|
|
5857
|
+
export { TOCItem as CollapsibleMenuItem }
|
|
5858
|
+
export { TOCItem }
|
|
5833
5859
|
|
|
5834
5860
|
export declare type TOCItemAction = {
|
|
5835
5861
|
label: string;
|
|
@@ -5862,7 +5888,8 @@ declare interface TOCItemSectionHeaderProps {
|
|
|
5862
5888
|
}
|
|
5863
5889
|
|
|
5864
5890
|
export declare interface TOCProps {
|
|
5865
|
-
title
|
|
5891
|
+
/** Optional title displayed at the top of the menu */
|
|
5892
|
+
title?: string;
|
|
5866
5893
|
items: TOCItem[];
|
|
5867
5894
|
className?: string;
|
|
5868
5895
|
activeItem?: string;
|
|
@@ -5872,6 +5899,8 @@ export declare interface TOCProps {
|
|
|
5872
5899
|
showSearchBox?: boolean;
|
|
5873
5900
|
searchPlaceholder?: string;
|
|
5874
5901
|
hideChildrenCounter?: boolean;
|
|
5902
|
+
/** Enable vertical scrolling when content overflows (default: true) */
|
|
5903
|
+
scrollable?: boolean;
|
|
5875
5904
|
}
|
|
5876
5905
|
|
|
5877
5906
|
declare type toggleActionType = {
|
|
@@ -6451,11 +6480,6 @@ declare module "@tiptap/core" {
|
|
|
6451
6480
|
}
|
|
6452
6481
|
|
|
6453
6482
|
|
|
6454
|
-
declare namespace Calendar {
|
|
6455
|
-
var displayName: string;
|
|
6456
|
-
}
|
|
6457
|
-
|
|
6458
|
-
|
|
6459
6483
|
declare module "@tiptap/core" {
|
|
6460
6484
|
interface Commands<ReturnType> {
|
|
6461
6485
|
moodTracker: {
|
|
@@ -6463,3 +6487,8 @@ declare module "@tiptap/core" {
|
|
|
6463
6487
|
};
|
|
6464
6488
|
}
|
|
6465
6489
|
}
|
|
6490
|
+
|
|
6491
|
+
|
|
6492
|
+
declare namespace Calendar {
|
|
6493
|
+
var displayName: string;
|
|
6494
|
+
}
|