@validationcloud/fractal-ui 1.2.0 → 1.4.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/box/box.d.ts +10 -0
- package/dist/components/box/box.stories.d.ts +19 -0
- package/dist/components/icon/icon-ids.d.ts +1 -0
- package/dist/components/icon/icon-showcase.stories.d.ts +13 -0
- package/dist/components/icon/icon.d.ts +8 -0
- package/dist/components/icon/icon.stories.d.ts +8 -0
- package/dist/fractal-ui.js +444 -439
- package/dist/internal/mount-svg-sprite.d.ts +6 -0
- package/package.json +1 -1
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
export declare const Box: React.ForwardRefExoticComponent<{
|
|
3
|
+
header?: React.ReactNode;
|
|
4
|
+
borderRadius?: "rounded-xl" | "rounded-lg";
|
|
5
|
+
padding?: "p-r6" | "p-r4" | "p-0";
|
|
6
|
+
background?: "bg-neutral-60" | "bg-neutral-70" | "bg-neutral-80" | "bg-gradient-box" | "transparent";
|
|
7
|
+
borderColor?: "border-secondary-40";
|
|
8
|
+
} & Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
9
|
+
asChild?: boolean;
|
|
10
|
+
} & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { StoryObj } from '@storybook/react';
|
|
2
|
+
declare const meta: {
|
|
3
|
+
component: import('react').ForwardRefExoticComponent<{
|
|
4
|
+
header?: React.ReactNode;
|
|
5
|
+
borderRadius?: "rounded-xl" | "rounded-lg";
|
|
6
|
+
padding?: "p-r6" | "p-r4" | "p-0";
|
|
7
|
+
background?: "bg-neutral-60" | "bg-neutral-70" | "bg-neutral-80" | "bg-gradient-box" | "transparent";
|
|
8
|
+
borderColor?: "border-secondary-40";
|
|
9
|
+
} & Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
10
|
+
asChild?: boolean;
|
|
11
|
+
} & import('react').RefAttributes<HTMLDivElement>>;
|
|
12
|
+
};
|
|
13
|
+
export default meta;
|
|
14
|
+
type Story = StoryObj<typeof meta>;
|
|
15
|
+
export declare const EmptyBox: Story;
|
|
16
|
+
export declare const BoxWithHeader: Story;
|
|
17
|
+
export declare const BoxWithoutHeader: Story;
|
|
18
|
+
export declare const GradientBox: Story;
|
|
19
|
+
export declare const RenderedAsDifferentElement: Story;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const iconIds: readonly ["arrow-narrow", "arrow", "banknote", "billing", "bracket", "check", "chevron-vertical", "chevron", "circle-fill", "circle-stroke", "clock", "close", "cog", "copy", "documents", "enter", "exclamation", "faucet", "filter", "help-center", "home", "info", "intercom", "link", "more", "minus", "node", "patch", "plus", "processing", "radio-empty", "radio-full", "resize", "search", "step-indicator", "subgraphs", "sync-problem", "thumb", "wallet", "wallet-connected", "wallet-disconnected", "wrench"];
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { StoryObj } from '@storybook/react';
|
|
2
|
+
type IconShowcaseProps = {
|
|
3
|
+
backgroundColor: string;
|
|
4
|
+
roundBackground: boolean;
|
|
5
|
+
className: string;
|
|
6
|
+
};
|
|
7
|
+
declare function IconShowcase({ backgroundColor, roundBackground, className }: IconShowcaseProps): import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
declare const meta: {
|
|
9
|
+
component: typeof IconShowcase;
|
|
10
|
+
};
|
|
11
|
+
export default meta;
|
|
12
|
+
type Story = StoryObj<typeof meta>;
|
|
13
|
+
export declare const IconShowcaseStory: Story;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { iconIds } from './icon-ids';
|
|
3
|
+
export type IconID = (typeof iconIds)[number];
|
|
4
|
+
type IconProps = {
|
|
5
|
+
icon: IconID;
|
|
6
|
+
} & React.ComponentPropsWithoutRef<'svg'>;
|
|
7
|
+
export declare function Icon({ icon, ...props }: IconProps): import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export {};
|