@factorialco/f0-react 1.318.0 → 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 +20 -83
- package/dist/experimental.js +19796 -20911
- package/dist/f0.d.ts +94 -20
- package/dist/f0.js +46 -42
- package/dist/{hooks-DAsEPAIb.js → hooks-B4dLKVTc.js} +26911 -25790
- package/dist/i18n-provider-defaults.d.ts +20 -20
- 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 {
|
|
@@ -6466,23 +6403,6 @@ declare global {
|
|
|
6466
6403
|
}
|
|
6467
6404
|
}
|
|
6468
6405
|
|
|
6469
|
-
declare module "gridstack" {
|
|
6470
|
-
interface GridStackWidget {
|
|
6471
|
-
id?: string;
|
|
6472
|
-
allowedSizes?: Array<{
|
|
6473
|
-
w: number;
|
|
6474
|
-
h: number;
|
|
6475
|
-
}>;
|
|
6476
|
-
meta?: Record<string, unknown>;
|
|
6477
|
-
}
|
|
6478
|
-
interface GridStackNode {
|
|
6479
|
-
allowedSizes?: Array<{
|
|
6480
|
-
w: number;
|
|
6481
|
-
h: number;
|
|
6482
|
-
}>;
|
|
6483
|
-
}
|
|
6484
|
-
}
|
|
6485
|
-
|
|
6486
6406
|
|
|
6487
6407
|
declare module "@tiptap/core" {
|
|
6488
6408
|
interface Commands<ReturnType> {
|
|
@@ -6510,9 +6430,21 @@ declare module "@tiptap/core" {
|
|
|
6510
6430
|
}
|
|
6511
6431
|
}
|
|
6512
6432
|
|
|
6513
|
-
|
|
6514
|
-
|
|
6515
|
-
|
|
6433
|
+
declare module "gridstack" {
|
|
6434
|
+
interface GridStackWidget {
|
|
6435
|
+
id?: string;
|
|
6436
|
+
allowedSizes?: Array<{
|
|
6437
|
+
w: number;
|
|
6438
|
+
h: number;
|
|
6439
|
+
}>;
|
|
6440
|
+
meta?: Record<string, unknown>;
|
|
6441
|
+
}
|
|
6442
|
+
interface GridStackNode {
|
|
6443
|
+
allowedSizes?: Array<{
|
|
6444
|
+
w: number;
|
|
6445
|
+
h: number;
|
|
6446
|
+
}>;
|
|
6447
|
+
}
|
|
6516
6448
|
}
|
|
6517
6449
|
|
|
6518
6450
|
|
|
@@ -6523,3 +6455,8 @@ declare module "@tiptap/core" {
|
|
|
6523
6455
|
};
|
|
6524
6456
|
}
|
|
6525
6457
|
}
|
|
6458
|
+
|
|
6459
|
+
|
|
6460
|
+
declare namespace Calendar {
|
|
6461
|
+
var displayName: string;
|
|
6462
|
+
}
|