@validationcloud/fractal-ui 1.9.1 → 1.11.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/badge/badge.d.ts +19 -0
- package/dist/components/badge/badge.stories.d.ts +17 -0
- package/dist/components/scroll-area/scroll-area.d.ts +20 -0
- package/dist/components/scroll-area/scroll-area.stories.d.ts +8 -0
- package/dist/fractal-ui.js +1610 -846
- package/dist/index.d.ts +3 -1
- package/package.json +1 -1
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
declare const colors: {
|
|
3
|
+
number: string;
|
|
4
|
+
success: string;
|
|
5
|
+
primary: string;
|
|
6
|
+
successInverted: string;
|
|
7
|
+
};
|
|
8
|
+
declare const sizes: {
|
|
9
|
+
tag: string;
|
|
10
|
+
caption: string;
|
|
11
|
+
bodyBold: string;
|
|
12
|
+
};
|
|
13
|
+
export declare const Badge: React.ForwardRefExoticComponent<{
|
|
14
|
+
color?: keyof typeof colors;
|
|
15
|
+
size?: keyof typeof sizes;
|
|
16
|
+
} & Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
17
|
+
asChild?: boolean;
|
|
18
|
+
} & React.RefAttributes<HTMLDivElement>>;
|
|
19
|
+
export {};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { StoryObj } from '@storybook/react';
|
|
2
|
+
declare const meta: {
|
|
3
|
+
component: import('react').ForwardRefExoticComponent<{
|
|
4
|
+
color?: "number" | "success" | "primary" | "successInverted";
|
|
5
|
+
size?: "caption" | "tag" | "bodyBold";
|
|
6
|
+
} & Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
7
|
+
asChild?: boolean;
|
|
8
|
+
} & import('react').RefAttributes<HTMLDivElement>>;
|
|
9
|
+
};
|
|
10
|
+
export default meta;
|
|
11
|
+
type Story = StoryObj<typeof meta>;
|
|
12
|
+
export declare const DefaultExample: Story;
|
|
13
|
+
export declare const Preview: Story;
|
|
14
|
+
export declare const NumberTag: Story;
|
|
15
|
+
export declare const ValueTag: Story;
|
|
16
|
+
export declare const AsLink: Story;
|
|
17
|
+
export declare const AsButton: Story;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { ScrollArea } from 'radix-ui';
|
|
2
|
+
import { default as React } from 'react';
|
|
3
|
+
type ScrollAreaRootProps = {} & React.ComponentPropsWithoutRef<typeof ScrollArea.Root>;
|
|
4
|
+
export declare function Root({ className, ...props }: ScrollAreaRootProps): import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
type ScrollAreaViewportProps = {} & React.ComponentPropsWithoutRef<typeof ScrollArea.Viewport>;
|
|
6
|
+
export declare function Viewport({ className, ...props }: ScrollAreaViewportProps): import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
type ScrollAreaScrollbarProps = {} & React.ComponentPropsWithoutRef<typeof ScrollArea.Scrollbar>;
|
|
8
|
+
export declare function Scrollbar({ className, ...props }: ScrollAreaScrollbarProps): import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
type ScrollAreaThumbProps = {} & React.ComponentPropsWithoutRef<typeof ScrollArea.Thumb>;
|
|
10
|
+
export declare function Thumb({ className, ...props }: ScrollAreaThumbProps): import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
type ScrollAreaCornerProps = {} & React.ComponentPropsWithoutRef<typeof ScrollArea.Corner>;
|
|
12
|
+
export declare function Corner({ className, ...props }: ScrollAreaCornerProps): import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
declare const _default: {
|
|
14
|
+
Root: typeof Root;
|
|
15
|
+
Viewport: typeof Viewport;
|
|
16
|
+
Scrollbar: typeof Scrollbar;
|
|
17
|
+
Thumb: typeof Thumb;
|
|
18
|
+
Corner: typeof Corner;
|
|
19
|
+
};
|
|
20
|
+
export default _default;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Meta, StoryObj } from '@storybook/react';
|
|
2
|
+
import { default as ScrollArea } from './scroll-area';
|
|
3
|
+
declare const meta: Meta<typeof ScrollArea.Root>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof meta>;
|
|
6
|
+
export declare const BasicExample: Story;
|
|
7
|
+
export declare const CustomizedColorAndSize: Story;
|
|
8
|
+
export declare const TrackSpaceExample: Story;
|