@validationcloud/fractal-ui 1.1.0 → 1.2.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.
@@ -0,0 +1,15 @@
1
+ import { default as React } from 'react';
2
+ /**
3
+ * Button component with various variants including ghost and text.
4
+ * The ghost variant behaves like text in layout, using negative margins to optically
5
+ * align itself against siblings while maintaining the padding in active and hover states.
6
+ * The text variant is specifically for underlined text buttons, with no background on hover
7
+ * and underline color changes on interaction.
8
+ */
9
+ export declare const Button: React.ForwardRefExoticComponent<{
10
+ className?: string;
11
+ variant?: "primary" | "warning" | "info" | "gradient" | "secondary" | "ghost" | "text";
12
+ size?: "large" | "medium" | "small" | "xsmall";
13
+ } & Omit<React.DetailedHTMLProps<React.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref"> & {
14
+ asChild?: boolean;
15
+ } & React.RefAttributes<HTMLButtonElement>>;
@@ -0,0 +1,26 @@
1
+ import { StoryObj } from '@storybook/react';
2
+ declare const meta: {
3
+ component: import('react').ForwardRefExoticComponent<{
4
+ className?: string;
5
+ variant?: "primary" | "warning" | "info" | "gradient" | "secondary" | "ghost" | "text";
6
+ size?: "large" | "medium" | "small" | "xsmall";
7
+ } & Omit<import('react').DetailedHTMLProps<import('react').ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref"> & {
8
+ asChild?: boolean;
9
+ } & import('react').RefAttributes<HTMLButtonElement>>;
10
+ args: {
11
+ disabled: false;
12
+ };
13
+ };
14
+ export default meta;
15
+ type Story = StoryObj<typeof meta>;
16
+ export declare const Primary: Story;
17
+ export declare const Secondary: Story;
18
+ export declare const Gradient: Story;
19
+ export declare const Warning: Story;
20
+ export declare const Info: Story;
21
+ export declare const Ghost: Story;
22
+ export declare const GhostButtonInTextLayout: Story;
23
+ export declare const AllSizes: Story;
24
+ export declare const AllVariants: Story;
25
+ export declare const ButtonLink: Story;
26
+ export declare const LoadingState: Story;
@@ -1 +1,2 @@
1
+ export * from './index'
1
2
  export {}