@factorialco/f0-react 1.324.0 → 1.326.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 +26 -2
- package/dist/experimental.js +7267 -7193
- package/dist/f0.js +2 -2
- package/dist/{hooks-B1ZF_2lS.js → hooks-CB8FAjtY.js} +55 -52
- 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";
|
|
@@ -4805,6 +4822,8 @@ export declare const PieChartWidget: ForwardRefExoticComponent<Omit<WidgetProps_
|
|
|
4805
4822
|
chart: PieChartProps;
|
|
4806
4823
|
} & RefAttributes<HTMLDivElement>, "ref"> & RefAttributes<HTMLElement | SVGElement>>;
|
|
4807
4824
|
|
|
4825
|
+
export declare type PopupSize = "sm" | "md" | "lg";
|
|
4826
|
+
|
|
4808
4827
|
declare type PostDescriptionProps = {
|
|
4809
4828
|
content: HTMLString;
|
|
4810
4829
|
collapsed?: boolean;
|
|
@@ -5832,9 +5851,11 @@ declare const THEMES: {
|
|
|
5832
5851
|
readonly dark: ".dark";
|
|
5833
5852
|
};
|
|
5834
5853
|
|
|
5835
|
-
|
|
5854
|
+
declare type TOCItem<Depth extends 1 | 2 | 3 | 4 = 1> = BaseTOCItem & {
|
|
5836
5855
|
children?: NextDepth<Depth> extends never ? never : TOCItem<NextDepth<Depth>>[];
|
|
5837
5856
|
};
|
|
5857
|
+
export { TOCItem as CollapsibleMenuItem }
|
|
5858
|
+
export { TOCItem }
|
|
5838
5859
|
|
|
5839
5860
|
export declare type TOCItemAction = {
|
|
5840
5861
|
label: string;
|
|
@@ -5867,7 +5888,8 @@ declare interface TOCItemSectionHeaderProps {
|
|
|
5867
5888
|
}
|
|
5868
5889
|
|
|
5869
5890
|
export declare interface TOCProps {
|
|
5870
|
-
title
|
|
5891
|
+
/** Optional title displayed at the top of the menu */
|
|
5892
|
+
title?: string;
|
|
5871
5893
|
items: TOCItem[];
|
|
5872
5894
|
className?: string;
|
|
5873
5895
|
activeItem?: string;
|
|
@@ -5877,6 +5899,8 @@ export declare interface TOCProps {
|
|
|
5877
5899
|
showSearchBox?: boolean;
|
|
5878
5900
|
searchPlaceholder?: string;
|
|
5879
5901
|
hideChildrenCounter?: boolean;
|
|
5902
|
+
/** Enable vertical scrolling when content overflows (default: true) */
|
|
5903
|
+
scrollable?: boolean;
|
|
5880
5904
|
}
|
|
5881
5905
|
|
|
5882
5906
|
declare type toggleActionType = {
|