@validationcloud/fractal-ui 1.27.0 → 1.28.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/components/client-modal/client-modal.d.ts +12 -0
- package/dist/components/client-modal/client-modal.stories.d.ts +8 -0
- package/dist/components/text-input/text-input.d.ts +2 -1
- package/dist/components/text-input/text-input.stories.d.ts +3 -1
- package/dist/fractal-ui.js +331 -229
- package/dist/index.d.ts +1 -0
- package/dist/internal/modal-header.d.ts +9 -0
- package/dist/internal/modal.d.ts +11 -0
- package/dist/internal/react-portal.d.ts +9 -0
- package/dist/internal/round-button.d.ts +4 -0
- package/package.json +3 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
export { Badge } from './components/badge/badge';
|
|
2
2
|
export { Box } from './components/box/box';
|
|
3
3
|
export { Button } from './components/button/button';
|
|
4
|
+
export { ClientModal } from './components/client-modal/client-modal';
|
|
4
5
|
export { DecoratedIcon } from './components/decorated-icon/decorated-icon';
|
|
5
6
|
export { DropdownMenu, DropdownMenuItem } from './components/dropdown-menu/dropdown-menu';
|
|
6
7
|
export { ScrollArea } from './components/scroll-area/scroll-area';
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
type ModalHeaderProps = {
|
|
3
|
+
title?: React.ReactNode;
|
|
4
|
+
description?: React.ReactNode;
|
|
5
|
+
onClose?: () => void;
|
|
6
|
+
disabled?: boolean;
|
|
7
|
+
} & Omit<React.ComponentPropsWithoutRef<'div'>, 'title'>;
|
|
8
|
+
export declare function ModalHeader({ title, description, onClose, disabled, className, ...props }: ModalHeaderProps): import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
type ModalProps = {
|
|
3
|
+
className?: string;
|
|
4
|
+
isExiting?: boolean;
|
|
5
|
+
children?: React.ReactNode;
|
|
6
|
+
} & React.ComponentPropsWithoutRef<'div'>;
|
|
7
|
+
/**
|
|
8
|
+
* A modal component used both for "page" modals and "client" modals.
|
|
9
|
+
*/
|
|
10
|
+
export declare function Modal({ isExiting, className, children, ...props }: ModalProps): import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
type ReactPortalProps = {
|
|
2
|
+
wrapperId: string;
|
|
3
|
+
children: React.ReactNode;
|
|
4
|
+
};
|
|
5
|
+
/**
|
|
6
|
+
* A wrapper around React's createPortal that allows us to render a component in a different part of the DOM.
|
|
7
|
+
*/
|
|
8
|
+
export declare function ReactPortal({ children, wrapperId }: ReactPortalProps): import('react').ReactPortal | null;
|
|
9
|
+
export {};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
export declare const RoundButton: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref"> & {
|
|
3
|
+
asChild?: boolean;
|
|
4
|
+
} & React.RefAttributes<HTMLButtonElement>>;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@validationcloud/fractal-ui",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "1.
|
|
4
|
+
"version": "1.28.0",
|
|
5
5
|
"module": "./dist/fractal-ui.js",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"files": [
|
|
@@ -37,6 +37,7 @@
|
|
|
37
37
|
"radix-ui": "^1.4.2",
|
|
38
38
|
"react": "^19.1.0",
|
|
39
39
|
"react-dom": "^19.1.0",
|
|
40
|
+
"react-transition-state": "^2.3.1",
|
|
40
41
|
"tailwind-merge": "^3.3.1"
|
|
41
42
|
},
|
|
42
43
|
"devDependencies": {
|
|
@@ -71,6 +72,7 @@
|
|
|
71
72
|
"radix-ui": "^1.4.2",
|
|
72
73
|
"react": "^19.1.0",
|
|
73
74
|
"react-dom": "^19.1.0",
|
|
75
|
+
"react-transition-state": "^2.3.1",
|
|
74
76
|
"tailwind-merge": "^3.3.1"
|
|
75
77
|
}
|
|
76
78
|
}
|