@factorialco/f0-react 1.317.2 → 1.318.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.
- package/dist/experimental.d.ts +4 -67
- package/dist/experimental.js +19580 -20695
- package/dist/f0.d.ts +166 -4
- package/dist/f0.js +1199 -1143
- package/dist/{hooks-CUFsqUWT.js → hooks-B4dLKVTc.js} +26940 -25804
- package/dist/i18n-provider-defaults.d.ts +4 -4
- package/dist/styles.css +1 -1
- package/package.json +1 -1
package/dist/experimental.d.ts
CHANGED
|
@@ -4037,14 +4037,6 @@ declare interface MetadataProps {
|
|
|
4037
4037
|
|
|
4038
4038
|
export declare const MobileDropdown: ({ items, children }: DropdownProps) => JSX_2.Element;
|
|
4039
4039
|
|
|
4040
|
-
declare type ModalPosition = (typeof modalPositions)[number];
|
|
4041
|
-
|
|
4042
|
-
declare const modalPositions: readonly ["center", "left", "right", "fullscreen"];
|
|
4043
|
-
|
|
4044
|
-
declare type ModalWidth = (typeof modalWidths)[number];
|
|
4045
|
-
|
|
4046
|
-
declare const modalWidths: readonly ["sm", "md", "lg"];
|
|
4047
|
-
|
|
4048
4040
|
declare const moduleAvatarVariants: (props?: ({
|
|
4049
4041
|
size?: "lg" | "md" | "sm" | "xs" | "xxs" | undefined;
|
|
4050
4042
|
} & ({
|
|
@@ -4561,61 +4553,6 @@ declare interface OneIconProps extends SVGProps<SVGSVGElement> {
|
|
|
4561
4553
|
size?: "xs" | "sm" | "md" | "lg";
|
|
4562
4554
|
}
|
|
4563
4555
|
|
|
4564
|
-
export declare const OneModal: OneModalComponent;
|
|
4565
|
-
|
|
4566
|
-
declare const OneModal_2: FC<OneModalProps>;
|
|
4567
|
-
|
|
4568
|
-
declare type OneModalComponent = typeof OneModal_2 & {
|
|
4569
|
-
Header: typeof OneModalHeader;
|
|
4570
|
-
Content: typeof OneModalContent;
|
|
4571
|
-
Footer: typeof OneModalFooter;
|
|
4572
|
-
};
|
|
4573
|
-
|
|
4574
|
-
declare const OneModalContent: ({ tabs, activeTabId, setActiveTabId, withPadding, children, }: OneModalContentProps) => JSX_2.Element;
|
|
4575
|
-
|
|
4576
|
-
declare type OneModalContentProps = {
|
|
4577
|
-
children: React.ReactNode;
|
|
4578
|
-
withPadding?: boolean;
|
|
4579
|
-
} & Partial<Pick<TabsProps, "tabs" | "activeTabId" | "setActiveTabId">>;
|
|
4580
|
-
|
|
4581
|
-
declare const OneModalFooter: ({ children }: OneModalFooterProps) => JSX_2.Element;
|
|
4582
|
-
|
|
4583
|
-
declare type OneModalFooterProps = {
|
|
4584
|
-
children: React.ReactNode;
|
|
4585
|
-
};
|
|
4586
|
-
|
|
4587
|
-
declare const OneModalHeader: ({ title, description, module, otherActions, }: OneModalHeaderProps) => JSX_2.Element;
|
|
4588
|
-
|
|
4589
|
-
declare type OneModalHeaderProps = {
|
|
4590
|
-
title?: string;
|
|
4591
|
-
description?: string;
|
|
4592
|
-
/**
|
|
4593
|
-
* Module configuration for the header. Only works when modal position is set to "right".
|
|
4594
|
-
* Displays module icon and name in the header.
|
|
4595
|
-
*/
|
|
4596
|
-
module?: {
|
|
4597
|
-
id: ModuleId;
|
|
4598
|
-
label: string;
|
|
4599
|
-
href: string;
|
|
4600
|
-
};
|
|
4601
|
-
otherActions?: DropdownInternalProps["items"];
|
|
4602
|
-
};
|
|
4603
|
-
|
|
4604
|
-
declare type OneModalProps = {
|
|
4605
|
-
/** Whether the modal is open */
|
|
4606
|
-
isOpen: boolean;
|
|
4607
|
-
/** Callback when modal is closed */
|
|
4608
|
-
onClose: () => void;
|
|
4609
|
-
/** Whether to render the modal as a bottom sheet on mobile */
|
|
4610
|
-
asBottomSheetInMobile?: boolean;
|
|
4611
|
-
/** The position of the modal */
|
|
4612
|
-
position?: ModalPosition;
|
|
4613
|
-
/** The width of the modal. Only applies to center position but we can NOT use narrowing as position undefined is valid */
|
|
4614
|
-
width?: ModalWidth;
|
|
4615
|
-
/** Custom content to render in the modal. Only accepts OneModal.Header and OneModal.Content components */
|
|
4616
|
-
children: ReactElement<ComponentProps<typeof OneModalHeader> | ComponentProps<typeof OneModalContent>> | ReactElement<ComponentProps<typeof OneModalHeader> | ComponentProps<typeof OneModalContent>>[];
|
|
4617
|
-
} & Partial<Pick<TabsProps, "tabs" | "activeTabId" | "setActiveTabId">>;
|
|
4618
|
-
|
|
4619
4556
|
export declare function OnePagination({ totalPages, currentPage, onPageChange, showControls, ariaLabel, visibleRange, hasNextPage, disabled, }: OnePaginationProps): JSX_2.Element;
|
|
4620
4557
|
|
|
4621
4558
|
declare interface OnePaginationProps {
|
|
@@ -6469,8 +6406,8 @@ declare global {
|
|
|
6469
6406
|
|
|
6470
6407
|
declare module "@tiptap/core" {
|
|
6471
6408
|
interface Commands<ReturnType> {
|
|
6472
|
-
|
|
6473
|
-
|
|
6409
|
+
aiBlock: {
|
|
6410
|
+
insertAIBlock: (data: AIBlockData, config: AIBlockConfigWithLabels) => ReturnType;
|
|
6474
6411
|
};
|
|
6475
6412
|
}
|
|
6476
6413
|
}
|
|
@@ -6478,8 +6415,8 @@ declare module "@tiptap/core" {
|
|
|
6478
6415
|
|
|
6479
6416
|
declare module "@tiptap/core" {
|
|
6480
6417
|
interface Commands<ReturnType> {
|
|
6481
|
-
|
|
6482
|
-
|
|
6418
|
+
liveCompanion: {
|
|
6419
|
+
insertLiveCompanion: (data: LiveCompanionData, config?: LiveCompanionConfig) => ReturnType;
|
|
6483
6420
|
};
|
|
6484
6421
|
}
|
|
6485
6422
|
}
|