@factorialco/f0-react 1.304.0 → 1.305.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 +15 -3
- package/dist/experimental.js +7082 -7007
- package/dist/f0.js +2 -2
- package/dist/{hooks-CSPsU7f1.js → hooks-D3oC4CsE.js} +153 -149
- package/dist/styles.css +1 -1
- package/package.json +2 -2
package/dist/experimental.d.ts
CHANGED
|
@@ -1654,7 +1654,7 @@ declare type Content = (ComponentProps<typeof DataList.Item> & {
|
|
|
1654
1654
|
type: "dot-tag";
|
|
1655
1655
|
});
|
|
1656
1656
|
|
|
1657
|
-
declare type ContentPadding =
|
|
1657
|
+
declare type ContentPadding = (typeof modalContentPaddings)[number];
|
|
1658
1658
|
|
|
1659
1659
|
declare type CopyActionType = {
|
|
1660
1660
|
type: "copy";
|
|
@@ -3979,7 +3979,15 @@ declare interface MetadataProps {
|
|
|
3979
3979
|
|
|
3980
3980
|
export declare const MobileDropdown: ({ items, children }: DropdownProps) => JSX_2.Element;
|
|
3981
3981
|
|
|
3982
|
-
declare
|
|
3982
|
+
declare const modalContentPaddings: readonly ["sm", "md"];
|
|
3983
|
+
|
|
3984
|
+
declare type ModalPosition = (typeof modalPositions)[number];
|
|
3985
|
+
|
|
3986
|
+
declare const modalPositions: readonly ["center", "left", "right", "fullscreen"];
|
|
3987
|
+
|
|
3988
|
+
declare type ModalWidth = (typeof modalWidths)[number];
|
|
3989
|
+
|
|
3990
|
+
declare const modalWidths: readonly ["sm", "md", "lg"];
|
|
3983
3991
|
|
|
3984
3992
|
declare const moduleAvatarVariants: (props?: ({
|
|
3985
3993
|
size?: "lg" | "md" | "sm" | "xs" | "xxs" | undefined;
|
|
@@ -4512,10 +4520,11 @@ declare type OneModalFooterProps = {
|
|
|
4512
4520
|
children: React.ReactNode;
|
|
4513
4521
|
};
|
|
4514
4522
|
|
|
4515
|
-
declare const OneModalHeader: ({ title, module, otherActions, }: OneModalHeaderProps) => JSX_2.Element;
|
|
4523
|
+
declare const OneModalHeader: ({ title, description, module, otherActions, }: OneModalHeaderProps) => JSX_2.Element;
|
|
4516
4524
|
|
|
4517
4525
|
declare type OneModalHeaderProps = {
|
|
4518
4526
|
title?: string;
|
|
4527
|
+
description?: string;
|
|
4519
4528
|
/**
|
|
4520
4529
|
* Module configuration for the header. Only works when modal position is set to "right".
|
|
4521
4530
|
* Displays module icon and name in the header.
|
|
@@ -4537,7 +4546,10 @@ declare type OneModalProps = {
|
|
|
4537
4546
|
asBottomSheetInMobile?: boolean;
|
|
4538
4547
|
/** the padding of internal content areas (header, content, footer) */
|
|
4539
4548
|
contentPadding?: ContentPadding;
|
|
4549
|
+
/** The position of the modal */
|
|
4540
4550
|
position?: ModalPosition;
|
|
4551
|
+
/** The width of the modal. Only applies to center position but we can NOT use narrowing as position undefined is valid */
|
|
4552
|
+
width?: ModalWidth;
|
|
4541
4553
|
/** Custom content to render in the modal. Only accepts OneModal.Header and OneModal.Content components */
|
|
4542
4554
|
children: ReactElement<ComponentProps<typeof OneModalHeader> | ComponentProps<typeof OneModalContent>> | ReactElement<ComponentProps<typeof OneModalHeader> | ComponentProps<typeof OneModalContent>>[];
|
|
4543
4555
|
} & Partial<Pick<TabsProps, "tabs" | "activeTabId" | "setActiveTabId">>;
|