brd-ui-kit 0.0.1
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/README.md +73 -0
- package/dist/components/ui/badge/badge.d.ts +13 -0
- package/dist/components/ui/badge/badge.stories.d.ts +29 -0
- package/dist/components/ui/badge/badge.styles.d.ts +8 -0
- package/dist/components/ui/badge/index.d.ts +3 -0
- package/dist/components/ui/button/button.d.ts +12 -0
- package/dist/components/ui/button/button.stories.d.ts +29 -0
- package/dist/components/ui/button/button.styles.d.ts +4 -0
- package/dist/components/ui/button/index.d.ts +3 -0
- package/dist/components/ui/card/card.d.ts +43 -0
- package/dist/components/ui/card/card.stories.d.ts +38 -0
- package/dist/components/ui/card/card.styles.d.ts +9 -0
- package/dist/components/ui/card/index.d.ts +1 -0
- package/dist/components/ui/checkbox/checkbox.d.ts +11 -0
- package/dist/components/ui/checkbox/checkbox.stories.d.ts +29 -0
- package/dist/components/ui/checkbox/checkbox.styles.d.ts +2 -0
- package/dist/components/ui/checkbox/index.d.ts +1 -0
- package/dist/components/ui/combobox/combobox.d.ts +31 -0
- package/dist/components/ui/combobox/combobox.stories.d.ts +10 -0
- package/dist/components/ui/combobox/combobox.styles.d.ts +21 -0
- package/dist/components/ui/combobox/index.d.ts +1 -0
- package/dist/components/ui/dialog/dialog.d.ts +37 -0
- package/dist/components/ui/dialog/dialog.stories.d.ts +46 -0
- package/dist/components/ui/dialog/dialog.styles.d.ts +7 -0
- package/dist/components/ui/dialog/index.d.ts +1 -0
- package/dist/components/ui/field/field.d.ts +22 -0
- package/dist/components/ui/field/field.stories.d.ts +45 -0
- package/dist/components/ui/field/field.styles.d.ts +15 -0
- package/dist/components/ui/field/index.d.ts +1 -0
- package/dist/components/ui/icon/icon-dictionary.d.ts +33 -0
- package/dist/components/ui/icon/icon.d.ts +10 -0
- package/dist/components/ui/icon/icon.stories.d.ts +34 -0
- package/dist/components/ui/icon/index.d.ts +1 -0
- package/dist/components/ui/icon/overrides.d.ts +9 -0
- package/dist/components/ui/input/index.d.ts +1 -0
- package/dist/components/ui/input/input.d.ts +8 -0
- package/dist/components/ui/input/input.stories.d.ts +40 -0
- package/dist/components/ui/input/input.styles.d.ts +4 -0
- package/dist/components/ui/input-group/index.d.ts +1 -0
- package/dist/components/ui/input-group/input-group.d.ts +11 -0
- package/dist/components/ui/input-group/input-group.stories.d.ts +46 -0
- package/dist/components/ui/input-group/input-group.styles.d.ts +6 -0
- package/dist/components/ui/label/index.d.ts +1 -0
- package/dist/components/ui/label/label.d.ts +13 -0
- package/dist/components/ui/label/label.stories.d.ts +26 -0
- package/dist/components/ui/navigation-item/index.d.ts +1 -0
- package/dist/components/ui/navigation-item/navigation-item.d.ts +20 -0
- package/dist/components/ui/navigation-item/navigation-item.stories.d.ts +57 -0
- package/dist/components/ui/navigation-item/navigation-item.styles.d.ts +5 -0
- package/dist/components/ui/navigation-menu/index.d.ts +1 -0
- package/dist/components/ui/navigation-menu/navigation-menu.d.ts +7 -0
- package/dist/components/ui/navigation-menu/navigation-menu.stories.d.ts +34 -0
- package/dist/components/ui/navigation-menu/navigation-menu.styles.d.ts +4 -0
- package/dist/components/ui/pagination/index.d.ts +1 -0
- package/dist/components/ui/pagination/pagination.d.ts +36 -0
- package/dist/components/ui/pagination/pagination.stories.d.ts +37 -0
- package/dist/components/ui/progress/index.d.ts +1 -0
- package/dist/components/ui/progress/progress.d.ts +11 -0
- package/dist/components/ui/progress/progress.stories.d.ts +34 -0
- package/dist/components/ui/radio-group/index.d.ts +1 -0
- package/dist/components/ui/radio-group/radio-group.d.ts +19 -0
- package/dist/components/ui/radio-group/radio-group.stories.d.ts +27 -0
- package/dist/components/ui/radio-group/radio-group.styles.d.ts +4 -0
- package/dist/components/ui/separator/index.d.ts +1 -0
- package/dist/components/ui/separator/separator.d.ts +11 -0
- package/dist/components/ui/separator/separator.stories.d.ts +27 -0
- package/dist/components/ui/switch/index.d.ts +1 -0
- package/dist/components/ui/switch/switch.d.ts +11 -0
- package/dist/components/ui/switch/switch.stories.d.ts +23 -0
- package/dist/components/ui/switch/switch.styles.d.ts +2 -0
- package/dist/components/ui/table/index.d.ts +1 -0
- package/dist/components/ui/table/table.d.ts +50 -0
- package/dist/components/ui/table/table.stories.d.ts +68 -0
- package/dist/components/ui/tabs/index.d.ts +1 -0
- package/dist/components/ui/tabs/tabs.d.ts +26 -0
- package/dist/components/ui/tabs/tabs.stories.d.ts +32 -0
- package/dist/components/ui/tabs/tabs.styles.d.ts +6 -0
- package/dist/components/ui/textarea/index.d.ts +1 -0
- package/dist/components/ui/textarea/textarea.d.ts +7 -0
- package/dist/components/ui/textarea/textarea.stories.d.ts +28 -0
- package/dist/components/ui/textarea/textarea.styles.d.ts +1 -0
- package/dist/components/ui/tooltip/index.d.ts +1 -0
- package/dist/components/ui/tooltip/tooltip.d.ts +15 -0
- package/dist/components/ui/tooltip/tooltip.stories.d.ts +42 -0
- package/dist/components/ui/tooltip/tooltip.styles.d.ts +1 -0
- package/dist/components/ui/typography/index.d.ts +4 -0
- package/dist/components/ui/typography/typography.d.ts +9 -0
- package/dist/components/ui/typography/typography.stories.d.ts +24 -0
- package/dist/components/ui/typography/typography.styles.d.ts +9 -0
- package/dist/index.cjs +162 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.ts +27 -0
- package/dist/index.js +15590 -0
- package/dist/index.js.map +1 -0
- package/dist/lib/utils.d.ts +2 -0
- package/dist/types/types.d.ts +3 -0
- package/dist/vite.svg +1 -0
- package/package.json +94 -0
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { Check, CircleCheck } from './overrides';
|
|
2
|
+
export declare const dictionary: {
|
|
3
|
+
settings: import('react').ForwardRefExoticComponent<Omit<import('lucide-react').LucideProps, "ref"> & import('react').RefAttributes<SVGSVGElement>>;
|
|
4
|
+
plus: import('react').ForwardRefExoticComponent<Omit<import('lucide-react').LucideProps, "ref"> & import('react').RefAttributes<SVGSVGElement>>;
|
|
5
|
+
wrench: import('react').ForwardRefExoticComponent<Omit<import('lucide-react').LucideProps, "ref"> & import('react').RefAttributes<SVGSVGElement>>;
|
|
6
|
+
phone: import('react').ForwardRefExoticComponent<Omit<import('lucide-react').LucideProps, "ref"> & import('react').RefAttributes<SVGSVGElement>>;
|
|
7
|
+
palette: import('react').ForwardRefExoticComponent<Omit<import('lucide-react').LucideProps, "ref"> & import('react').RefAttributes<SVGSVGElement>>;
|
|
8
|
+
building: import('react').ForwardRefExoticComponent<Omit<import('lucide-react').LucideProps, "ref"> & import('react').RefAttributes<SVGSVGElement>>;
|
|
9
|
+
close: import('react').ForwardRefExoticComponent<Omit<import('lucide-react').LucideProps, "ref"> & import('react').RefAttributes<SVGSVGElement>>;
|
|
10
|
+
done: typeof Check;
|
|
11
|
+
check: typeof CircleCheck;
|
|
12
|
+
users: import('react').ForwardRefExoticComponent<Omit<import('lucide-react').LucideProps, "ref"> & import('react').RefAttributes<SVGSVGElement>>;
|
|
13
|
+
"layout-grid": import('react').ForwardRefExoticComponent<Omit<import('lucide-react').LucideProps, "ref"> & import('react').RefAttributes<SVGSVGElement>>;
|
|
14
|
+
bell: import('react').ForwardRefExoticComponent<Omit<import('lucide-react').LucideProps, "ref"> & import('react').RefAttributes<SVGSVGElement>>;
|
|
15
|
+
"book-user": import('react').ForwardRefExoticComponent<Omit<import('lucide-react').LucideProps, "ref"> & import('react').RefAttributes<SVGSVGElement>>;
|
|
16
|
+
"user-gear": import('react').ForwardRefExoticComponent<Omit<import('lucide-react').LucideProps, "ref"> & import('react').RefAttributes<SVGSVGElement>>;
|
|
17
|
+
folder: import('react').ForwardRefExoticComponent<Omit<import('lucide-react').LucideProps, "ref"> & import('react').RefAttributes<SVGSVGElement>>;
|
|
18
|
+
"briefcase-business": import('react').ForwardRefExoticComponent<Omit<import('lucide-react').LucideProps, "ref"> & import('react').RefAttributes<SVGSVGElement>>;
|
|
19
|
+
calendar: import('react').ForwardRefExoticComponent<Omit<import('lucide-react').LucideProps, "ref"> & import('react').RefAttributes<SVGSVGElement>>;
|
|
20
|
+
"chart-line": import('react').ForwardRefExoticComponent<Omit<import('lucide-react').LucideProps, "ref"> & import('react').RefAttributes<SVGSVGElement>>;
|
|
21
|
+
message: import('react').ForwardRefExoticComponent<Omit<import('lucide-react').LucideProps, "ref"> & import('react').RefAttributes<SVGSVGElement>>;
|
|
22
|
+
search: import('react').ForwardRefExoticComponent<Omit<import('lucide-react').LucideProps, "ref"> & import('react').RefAttributes<SVGSVGElement>>;
|
|
23
|
+
"list-filter": import('react').ForwardRefExoticComponent<Omit<import('lucide-react').LucideProps, "ref"> & import('react').RefAttributes<SVGSVGElement>>;
|
|
24
|
+
funnel: import('react').ForwardRefExoticComponent<Omit<import('lucide-react').LucideProps, "ref"> & import('react').RefAttributes<SVGSVGElement>>;
|
|
25
|
+
dots: import('react').ForwardRefExoticComponent<Omit<import('lucide-react').LucideProps, "ref"> & import('react').RefAttributes<SVGSVGElement>>;
|
|
26
|
+
"check-list": import('react').ForwardRefExoticComponent<Omit<import('lucide-react').LucideProps, "ref"> & import('react').RefAttributes<SVGSVGElement>>;
|
|
27
|
+
tag: import('react').ForwardRefExoticComponent<Omit<import('lucide-react').LucideProps, "ref"> & import('react').RefAttributes<SVGSVGElement>>;
|
|
28
|
+
chevron: import('react').ForwardRefExoticComponent<Omit<import('lucide-react').LucideProps, "ref"> & import('react').RefAttributes<SVGSVGElement>>;
|
|
29
|
+
chevrons: import('react').ForwardRefExoticComponent<Omit<import('lucide-react').LucideProps, "ref"> & import('react').RefAttributes<SVGSVGElement>>;
|
|
30
|
+
"rotate-ccw": import('react').ForwardRefExoticComponent<Omit<import('lucide-react').LucideProps, "ref"> & import('react').RefAttributes<SVGSVGElement>>;
|
|
31
|
+
question: import('react').ForwardRefExoticComponent<Omit<import('lucide-react').LucideProps, "ref"> & import('react').RefAttributes<SVGSVGElement>>;
|
|
32
|
+
clock: import('react').ForwardRefExoticComponent<Omit<import('lucide-react').LucideProps, "ref"> & import('react').RefAttributes<SVGSVGElement>>;
|
|
33
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { IconTypes, Size } from '../../../types/types';
|
|
2
|
+
type Props = React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement> & {
|
|
3
|
+
type: IconTypes;
|
|
4
|
+
className?: string;
|
|
5
|
+
size?: Size;
|
|
6
|
+
viewBox?: string;
|
|
7
|
+
strokeWidth?: number;
|
|
8
|
+
};
|
|
9
|
+
export declare const Icon: ({ type, size, viewBox, strokeWidth, className, ...rest }: Props) => import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { StoryObj } from '@storybook/react-vite';
|
|
2
|
+
import { IconTypes, Size } from '../../../types/types';
|
|
3
|
+
declare const meta: {
|
|
4
|
+
title: string;
|
|
5
|
+
component: ({ type, size, viewBox, strokeWidth, className, ...rest }: import('react').ClassAttributes<HTMLDivElement> & import('react').HTMLAttributes<HTMLDivElement> & {
|
|
6
|
+
type: IconTypes;
|
|
7
|
+
className?: string;
|
|
8
|
+
size?: Size;
|
|
9
|
+
viewBox?: string;
|
|
10
|
+
strokeWidth?: number;
|
|
11
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
args: {
|
|
13
|
+
type: "settings";
|
|
14
|
+
size: "md";
|
|
15
|
+
className: string;
|
|
16
|
+
};
|
|
17
|
+
argTypes: {
|
|
18
|
+
type: {
|
|
19
|
+
control: "select";
|
|
20
|
+
options: ("close" | "search" | "done" | "settings" | "plus" | "wrench" | "phone" | "palette" | "building" | "check" | "users" | "layout-grid" | "bell" | "book-user" | "user-gear" | "folder" | "briefcase-business" | "calendar" | "chart-line" | "message" | "list-filter" | "funnel" | "dots" | "check-list" | "tag" | "chevron" | "chevrons" | "rotate-ccw" | "question" | "clock")[];
|
|
21
|
+
};
|
|
22
|
+
size: {
|
|
23
|
+
control: "select";
|
|
24
|
+
options: Size[];
|
|
25
|
+
};
|
|
26
|
+
className: {
|
|
27
|
+
control: "text";
|
|
28
|
+
};
|
|
29
|
+
};
|
|
30
|
+
};
|
|
31
|
+
export default meta;
|
|
32
|
+
type Story = StoryObj<typeof meta>;
|
|
33
|
+
export declare const Overview: Story;
|
|
34
|
+
export declare const Playground: Story;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Icon } from './icon';
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { LucideProps } from 'lucide-react';
|
|
2
|
+
export declare function Check({ ref, className, color, size, ...props }: LucideProps): import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
export declare namespace Check {
|
|
4
|
+
var displayName: string;
|
|
5
|
+
}
|
|
6
|
+
export declare function CircleCheck({ ref, className, color, size, ...props }: LucideProps): import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export declare namespace CircleCheck {
|
|
8
|
+
var displayName: string;
|
|
9
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Input } from './input';
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { VariantProps } from 'class-variance-authority';
|
|
2
|
+
import { inputVariants } from './input.styles';
|
|
3
|
+
import * as React from "react";
|
|
4
|
+
type InputProps = React.InputHTMLAttributes<HTMLInputElement> & VariantProps<typeof inputVariants> & {
|
|
5
|
+
ref?: React.Ref<HTMLInputElement>;
|
|
6
|
+
};
|
|
7
|
+
declare const Input: ({ className, type, variant, sizeInput, ref, ...props }: InputProps) => import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export { Input };
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { StoryObj } from '@storybook/react-vite';
|
|
2
|
+
declare const meta: {
|
|
3
|
+
title: string;
|
|
4
|
+
component: ({ className, type, variant, sizeInput, ref, ...props }: import('react').InputHTMLAttributes<HTMLInputElement> & import('class-variance-authority').VariantProps<(props?: ({
|
|
5
|
+
variant?: "primary" | null | undefined;
|
|
6
|
+
sizeInput?: "lg" | "md" | "sm" | "xs" | null | undefined;
|
|
7
|
+
} & import('class-variance-authority/types').ClassProp) | undefined) => string> & {
|
|
8
|
+
ref?: React.Ref<HTMLInputElement>;
|
|
9
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
args: {
|
|
11
|
+
variant: "primary";
|
|
12
|
+
sizeInput: "md";
|
|
13
|
+
placeholder: string;
|
|
14
|
+
disabled: false;
|
|
15
|
+
value: string;
|
|
16
|
+
};
|
|
17
|
+
argTypes: {
|
|
18
|
+
variant: {
|
|
19
|
+
control: "select";
|
|
20
|
+
options: string[];
|
|
21
|
+
};
|
|
22
|
+
sizeInput: {
|
|
23
|
+
control: "select";
|
|
24
|
+
options: string[];
|
|
25
|
+
};
|
|
26
|
+
placeholder: {
|
|
27
|
+
control: "text";
|
|
28
|
+
};
|
|
29
|
+
disabled: {
|
|
30
|
+
control: "boolean";
|
|
31
|
+
};
|
|
32
|
+
value: {
|
|
33
|
+
control: "text";
|
|
34
|
+
};
|
|
35
|
+
};
|
|
36
|
+
};
|
|
37
|
+
export default meta;
|
|
38
|
+
type Story = StoryObj<typeof meta>;
|
|
39
|
+
export declare const Overview: Story;
|
|
40
|
+
export declare const Playground: Story;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { InputGroup, InputGroupAddon, InputGroupButton, InputGroupInput, InputGroupText, InputGroupTextarea, } from './input-group';
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { VariantProps } from 'class-variance-authority';
|
|
2
|
+
import { Button } from '../button';
|
|
3
|
+
import { inputGroupAddonVariants, inputGroupButtonVariants } from './input-group.styles';
|
|
4
|
+
import * as React from "react";
|
|
5
|
+
declare function InputGroup({ className, ...props }: React.ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
declare function InputGroupAddon({ className, align, ...props }: React.ComponentProps<"div"> & VariantProps<typeof inputGroupAddonVariants>): import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
declare function InputGroupButton({ className, type, variant, size, ...props }: Omit<React.ComponentProps<typeof Button>, "size"> & VariantProps<typeof inputGroupButtonVariants>): import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
declare function InputGroupText({ className, ...props }: React.ComponentProps<"span">): import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
declare function InputGroupInput({ className, ...props }: React.ComponentProps<"input">): import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
declare function InputGroupTextarea({ className, ...props }: React.ComponentProps<"textarea">): import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
export { InputGroup, InputGroupAddon, InputGroupButton, InputGroupInput, InputGroupText, InputGroupTextarea };
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { StoryObj } from '@storybook/react-vite';
|
|
2
|
+
type InputGroupPreviewLayout = "search" | "password" | "prefix" | "actions" | "textarea";
|
|
3
|
+
type InputGroupPreviewProps = {
|
|
4
|
+
layout?: InputGroupPreviewLayout;
|
|
5
|
+
placeholder?: string;
|
|
6
|
+
value?: string;
|
|
7
|
+
disabled?: boolean;
|
|
8
|
+
state?: "default" | "hover" | "focus" | "error" | "success";
|
|
9
|
+
interactive?: boolean;
|
|
10
|
+
onValueChange?: (value: string) => void;
|
|
11
|
+
};
|
|
12
|
+
declare function InputGroupPreview({ layout, placeholder, value, disabled, state, interactive, onValueChange, }: InputGroupPreviewProps): import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
declare const meta: {
|
|
14
|
+
title: string;
|
|
15
|
+
component: typeof InputGroupPreview;
|
|
16
|
+
args: {
|
|
17
|
+
layout: "search";
|
|
18
|
+
placeholder: string;
|
|
19
|
+
value: string;
|
|
20
|
+
disabled: false;
|
|
21
|
+
state: "default";
|
|
22
|
+
};
|
|
23
|
+
argTypes: {
|
|
24
|
+
layout: {
|
|
25
|
+
control: "select";
|
|
26
|
+
options: string[];
|
|
27
|
+
};
|
|
28
|
+
placeholder: {
|
|
29
|
+
control: "text";
|
|
30
|
+
};
|
|
31
|
+
value: {
|
|
32
|
+
control: "text";
|
|
33
|
+
};
|
|
34
|
+
disabled: {
|
|
35
|
+
control: "boolean";
|
|
36
|
+
};
|
|
37
|
+
state: {
|
|
38
|
+
control: "select";
|
|
39
|
+
options: string[];
|
|
40
|
+
};
|
|
41
|
+
};
|
|
42
|
+
};
|
|
43
|
+
export default meta;
|
|
44
|
+
type Story = StoryObj<typeof meta>;
|
|
45
|
+
export declare const Overview: Story;
|
|
46
|
+
export declare const Playground: Story;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export declare const inputGroupAddonVariants: (props?: ({
|
|
2
|
+
align?: "inline-start" | "inline-end" | "block-start" | "block-end" | null | undefined;
|
|
3
|
+
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
4
|
+
export declare const inputGroupButtonVariants: (props?: ({
|
|
5
|
+
size?: "sm" | "xs" | "icon-xs" | "icon-sm" | null | undefined;
|
|
6
|
+
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Label } from './label';
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { VariantProps } from 'class-variance-authority';
|
|
2
|
+
import * as React from "react";
|
|
3
|
+
import * as LabelPrimitive from "@radix-ui/react-label";
|
|
4
|
+
declare const labelVariants: (props?: import('class-variance-authority/types').ClassProp | undefined) => string;
|
|
5
|
+
type LabelRef = React.ComponentRef<typeof LabelPrimitive.Root>;
|
|
6
|
+
type LabelProps = React.ComponentPropsWithoutRef<typeof LabelPrimitive.Root> & VariantProps<typeof labelVariants> & {
|
|
7
|
+
ref?: React.Ref<LabelRef>;
|
|
8
|
+
};
|
|
9
|
+
declare const Label: {
|
|
10
|
+
({ className, ref, ...props }: LabelProps): import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
displayName: string | undefined;
|
|
12
|
+
};
|
|
13
|
+
export { Label };
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { StoryObj } from '@storybook/react-vite';
|
|
2
|
+
declare const meta: {
|
|
3
|
+
title: string;
|
|
4
|
+
component: {
|
|
5
|
+
({ className, ref, ...props }: Omit<import('@radix-ui/react-label').LabelProps & import('react').RefAttributes<HTMLLabelElement>, "ref"> & import('class-variance-authority').VariantProps<(props?: import('class-variance-authority/types').ClassProp | undefined) => string> & {
|
|
6
|
+
ref?: React.Ref<HTMLLabelElement>;
|
|
7
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
displayName: string | undefined;
|
|
9
|
+
};
|
|
10
|
+
args: {
|
|
11
|
+
children: string;
|
|
12
|
+
className: string;
|
|
13
|
+
};
|
|
14
|
+
argTypes: {
|
|
15
|
+
children: {
|
|
16
|
+
control: "text";
|
|
17
|
+
};
|
|
18
|
+
className: {
|
|
19
|
+
control: "text";
|
|
20
|
+
};
|
|
21
|
+
};
|
|
22
|
+
};
|
|
23
|
+
export default meta;
|
|
24
|
+
type Story = StoryObj<typeof meta>;
|
|
25
|
+
export declare const Overview: Story;
|
|
26
|
+
export declare const Playground: Story;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { NavigationItem } from './navigation-item';
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
type CommonProps = {
|
|
2
|
+
icon: React.ReactNode;
|
|
3
|
+
label?: React.ReactNode;
|
|
4
|
+
badge?: React.ReactNode;
|
|
5
|
+
active?: boolean;
|
|
6
|
+
collapsed?: boolean;
|
|
7
|
+
disabled?: boolean;
|
|
8
|
+
onAction?: () => void;
|
|
9
|
+
className?: string;
|
|
10
|
+
};
|
|
11
|
+
type ButtonProps = Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, "children" | "className" | "disabled" | "onClick" | "type"> & {
|
|
12
|
+
href?: undefined;
|
|
13
|
+
type?: "button" | "submit" | "reset";
|
|
14
|
+
};
|
|
15
|
+
type LinkProps = Omit<React.AnchorHTMLAttributes<HTMLAnchorElement>, "children" | "className" | "href" | "onClick"> & {
|
|
16
|
+
href: string;
|
|
17
|
+
};
|
|
18
|
+
type Props = CommonProps & (ButtonProps | LinkProps);
|
|
19
|
+
declare const NavigationItem: ({ icon, label, badge, active, collapsed, disabled, onAction, className, ...rest }: Props) => import("react/jsx-runtime").JSX.Element;
|
|
20
|
+
export { NavigationItem };
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import { StoryObj } from '@storybook/react-vite';
|
|
2
|
+
declare const meta: {
|
|
3
|
+
title: string;
|
|
4
|
+
component: ({ icon, label, badge, active, collapsed, disabled, onAction, className, ...rest }: {
|
|
5
|
+
icon: React.ReactNode;
|
|
6
|
+
label?: React.ReactNode;
|
|
7
|
+
badge?: React.ReactNode;
|
|
8
|
+
active?: boolean;
|
|
9
|
+
collapsed?: boolean;
|
|
10
|
+
disabled?: boolean;
|
|
11
|
+
onAction?: () => void;
|
|
12
|
+
className?: string;
|
|
13
|
+
} & ((Omit<import('react').ButtonHTMLAttributes<HTMLButtonElement>, "className" | "children" | "onClick" | "disabled" | "type"> & {
|
|
14
|
+
href?: undefined;
|
|
15
|
+
type?: "button" | "submit" | "reset";
|
|
16
|
+
}) | (Omit<import('react').AnchorHTMLAttributes<HTMLAnchorElement>, "className" | "children" | "onClick" | "href"> & {
|
|
17
|
+
href: string;
|
|
18
|
+
}))) => import("react/jsx-runtime").JSX.Element;
|
|
19
|
+
args: {
|
|
20
|
+
label: string;
|
|
21
|
+
icon: import("react/jsx-runtime").JSX.Element;
|
|
22
|
+
active: false;
|
|
23
|
+
collapsed: false;
|
|
24
|
+
disabled: false;
|
|
25
|
+
};
|
|
26
|
+
argTypes: {
|
|
27
|
+
active: {
|
|
28
|
+
control: "boolean";
|
|
29
|
+
};
|
|
30
|
+
collapsed: {
|
|
31
|
+
control: "boolean";
|
|
32
|
+
};
|
|
33
|
+
disabled: {
|
|
34
|
+
control: "boolean";
|
|
35
|
+
};
|
|
36
|
+
};
|
|
37
|
+
render: (args: {
|
|
38
|
+
icon: React.ReactNode;
|
|
39
|
+
label?: React.ReactNode;
|
|
40
|
+
badge?: React.ReactNode;
|
|
41
|
+
active?: boolean;
|
|
42
|
+
collapsed?: boolean;
|
|
43
|
+
disabled?: boolean;
|
|
44
|
+
onAction?: () => void;
|
|
45
|
+
className?: string;
|
|
46
|
+
} & ((Omit<import('react').ButtonHTMLAttributes<HTMLButtonElement>, "className" | "children" | "onClick" | "disabled" | "type"> & {
|
|
47
|
+
href?: undefined;
|
|
48
|
+
type?: "button" | "submit" | "reset";
|
|
49
|
+
}) | (Omit<import('react').AnchorHTMLAttributes<HTMLAnchorElement>, "className" | "children" | "onClick" | "href"> & {
|
|
50
|
+
href: string;
|
|
51
|
+
}))) => import("react/jsx-runtime").JSX.Element;
|
|
52
|
+
};
|
|
53
|
+
export default meta;
|
|
54
|
+
type Story = StoryObj<typeof meta>;
|
|
55
|
+
export declare const Playground: Story;
|
|
56
|
+
export declare const States: Story;
|
|
57
|
+
export declare const Link: Story;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export declare const navigationItemVariants: (props?: ({
|
|
2
|
+
collapsed?: boolean | null | undefined;
|
|
3
|
+
active?: boolean | null | undefined;
|
|
4
|
+
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
5
|
+
export declare const navigationItemLabelClassName: string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { NavigationMenu } from './navigation-menu';
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
type Props = React.HTMLAttributes<HTMLElement> & {
|
|
2
|
+
title?: React.ReactNode;
|
|
3
|
+
divider?: boolean;
|
|
4
|
+
collapsed?: boolean;
|
|
5
|
+
};
|
|
6
|
+
declare const NavigationMenu: ({ title, divider, collapsed, className, children, ...props }: Props) => import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export { NavigationMenu };
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { StoryObj } from '@storybook/react-vite';
|
|
2
|
+
declare const meta: {
|
|
3
|
+
title: string;
|
|
4
|
+
component: ({ title, divider, collapsed, className, children, ...props }: import('react').HTMLAttributes<HTMLElement> & {
|
|
5
|
+
title?: React.ReactNode;
|
|
6
|
+
divider?: boolean;
|
|
7
|
+
collapsed?: boolean;
|
|
8
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
args: {
|
|
10
|
+
title: string;
|
|
11
|
+
divider: true;
|
|
12
|
+
collapsed: false;
|
|
13
|
+
};
|
|
14
|
+
argTypes: {
|
|
15
|
+
divider: {
|
|
16
|
+
control: "boolean";
|
|
17
|
+
};
|
|
18
|
+
collapsed: {
|
|
19
|
+
control: "boolean";
|
|
20
|
+
};
|
|
21
|
+
title: {
|
|
22
|
+
control: "text";
|
|
23
|
+
};
|
|
24
|
+
};
|
|
25
|
+
render: (args: import('react').HTMLAttributes<HTMLElement> & {
|
|
26
|
+
title?: React.ReactNode;
|
|
27
|
+
divider?: boolean;
|
|
28
|
+
collapsed?: boolean;
|
|
29
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
30
|
+
};
|
|
31
|
+
export default meta;
|
|
32
|
+
type Story = StoryObj<typeof meta>;
|
|
33
|
+
export declare const Playground: Story;
|
|
34
|
+
export declare const Collapsed: Story;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Pagination, PaginationContent, PaginationEllipsis, PaginationItem, PaginationLink, PaginationNext, PaginationPrevious, } from './pagination';
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { ButtonProps } from '../button';
|
|
2
|
+
import * as React from "react";
|
|
3
|
+
declare const Pagination: {
|
|
4
|
+
({ className, ...props }: React.ComponentProps<"nav">): import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
displayName: string;
|
|
6
|
+
};
|
|
7
|
+
type PaginationContentProps = React.ComponentPropsWithRef<"ul">;
|
|
8
|
+
type PaginationItemProps = React.ComponentPropsWithRef<"li">;
|
|
9
|
+
declare const PaginationContent: {
|
|
10
|
+
({ className, ref, ...props }: PaginationContentProps): import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
displayName: string;
|
|
12
|
+
};
|
|
13
|
+
declare const PaginationItem: {
|
|
14
|
+
({ className, ref, ...props }: PaginationItemProps): import("react/jsx-runtime").JSX.Element;
|
|
15
|
+
displayName: string;
|
|
16
|
+
};
|
|
17
|
+
type PaginationLinkProps = {
|
|
18
|
+
isActive?: boolean;
|
|
19
|
+
} & Pick<ButtonProps, "size"> & React.ComponentProps<"a">;
|
|
20
|
+
declare const PaginationLink: {
|
|
21
|
+
({ className, isActive, size, ...props }: PaginationLinkProps): import("react/jsx-runtime").JSX.Element;
|
|
22
|
+
displayName: string;
|
|
23
|
+
};
|
|
24
|
+
declare const PaginationPrevious: {
|
|
25
|
+
({ className, ...props }: React.ComponentProps<typeof PaginationLink>): import("react/jsx-runtime").JSX.Element;
|
|
26
|
+
displayName: string;
|
|
27
|
+
};
|
|
28
|
+
declare const PaginationNext: {
|
|
29
|
+
({ className, ...props }: React.ComponentProps<typeof PaginationLink>): import("react/jsx-runtime").JSX.Element;
|
|
30
|
+
displayName: string;
|
|
31
|
+
};
|
|
32
|
+
declare const PaginationEllipsis: {
|
|
33
|
+
({ className, ...props }: React.ComponentProps<"span">): import("react/jsx-runtime").JSX.Element;
|
|
34
|
+
displayName: string;
|
|
35
|
+
};
|
|
36
|
+
export { Pagination, PaginationContent, PaginationEllipsis, PaginationItem, PaginationLink, PaginationNext, PaginationPrevious };
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { StoryObj } from '@storybook/react-vite';
|
|
2
|
+
type PaginationPreviewProps = {
|
|
3
|
+
currentPage: number;
|
|
4
|
+
totalPages: number;
|
|
5
|
+
showEdgeLabels?: boolean;
|
|
6
|
+
};
|
|
7
|
+
declare function PaginationPreview({ currentPage, totalPages, showEdgeLabels, }: PaginationPreviewProps): import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
declare const meta: {
|
|
9
|
+
title: string;
|
|
10
|
+
component: typeof PaginationPreview;
|
|
11
|
+
args: {
|
|
12
|
+
currentPage: number;
|
|
13
|
+
totalPages: number;
|
|
14
|
+
showEdgeLabels: false;
|
|
15
|
+
};
|
|
16
|
+
argTypes: {
|
|
17
|
+
currentPage: {
|
|
18
|
+
control: {
|
|
19
|
+
type: "number";
|
|
20
|
+
min: number;
|
|
21
|
+
};
|
|
22
|
+
};
|
|
23
|
+
totalPages: {
|
|
24
|
+
control: {
|
|
25
|
+
type: "number";
|
|
26
|
+
min: number;
|
|
27
|
+
};
|
|
28
|
+
};
|
|
29
|
+
showEdgeLabels: {
|
|
30
|
+
control: "boolean";
|
|
31
|
+
};
|
|
32
|
+
};
|
|
33
|
+
};
|
|
34
|
+
export default meta;
|
|
35
|
+
type Story = StoryObj<typeof meta>;
|
|
36
|
+
export declare const Overview: Story;
|
|
37
|
+
export declare const Playground: Story;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Progress } from './progress';
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import * as ProgressPrimitive from "@radix-ui/react-progress";
|
|
2
|
+
import * as React from "react";
|
|
3
|
+
type ProgressRef = React.ComponentRef<typeof ProgressPrimitive.Root>;
|
|
4
|
+
type ProgressProps = React.ComponentPropsWithoutRef<typeof ProgressPrimitive.Root> & {
|
|
5
|
+
ref?: React.Ref<ProgressRef>;
|
|
6
|
+
};
|
|
7
|
+
declare const Progress: {
|
|
8
|
+
({ className, value, max, ref, ...props }: ProgressProps): import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
displayName: string | undefined;
|
|
10
|
+
};
|
|
11
|
+
export { Progress };
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { StoryObj } from '@storybook/react-vite';
|
|
2
|
+
declare const meta: {
|
|
3
|
+
title: string;
|
|
4
|
+
component: {
|
|
5
|
+
({ className, value, max, ref, ...props }: Omit<import('@radix-ui/react-progress').ProgressProps & import('react').RefAttributes<HTMLDivElement>, "ref"> & {
|
|
6
|
+
ref?: React.Ref<HTMLDivElement>;
|
|
7
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
displayName: string | undefined;
|
|
9
|
+
};
|
|
10
|
+
args: {
|
|
11
|
+
value: number;
|
|
12
|
+
max: number;
|
|
13
|
+
};
|
|
14
|
+
argTypes: {
|
|
15
|
+
value: {
|
|
16
|
+
control: {
|
|
17
|
+
type: "range";
|
|
18
|
+
min: number;
|
|
19
|
+
max: number;
|
|
20
|
+
step: number;
|
|
21
|
+
};
|
|
22
|
+
};
|
|
23
|
+
max: {
|
|
24
|
+
control: {
|
|
25
|
+
type: "number";
|
|
26
|
+
min: number;
|
|
27
|
+
};
|
|
28
|
+
};
|
|
29
|
+
};
|
|
30
|
+
};
|
|
31
|
+
export default meta;
|
|
32
|
+
type Story = StoryObj<typeof meta>;
|
|
33
|
+
export declare const Overview: Story;
|
|
34
|
+
export declare const Playground: Story;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { RadioGroup, RadioGroupItem } from './radio-group';
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import * as RadioGroupPrimitive from "@radix-ui/react-radio-group";
|
|
2
|
+
import * as React from "react";
|
|
3
|
+
type RadioGroupRef = React.ComponentRef<typeof RadioGroupPrimitive.Root>;
|
|
4
|
+
type RadioGroupProps = React.ComponentPropsWithoutRef<typeof RadioGroupPrimitive.Root> & {
|
|
5
|
+
ref?: React.Ref<RadioGroupRef>;
|
|
6
|
+
};
|
|
7
|
+
type RadioGroupItemRef = React.ComponentRef<typeof RadioGroupPrimitive.Item>;
|
|
8
|
+
type RadioGroupItemProps = React.ComponentPropsWithoutRef<typeof RadioGroupPrimitive.Item> & {
|
|
9
|
+
ref?: React.Ref<RadioGroupItemRef>;
|
|
10
|
+
};
|
|
11
|
+
declare const RadioGroup: {
|
|
12
|
+
({ className, ref, ...props }: RadioGroupProps): import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
displayName: string | undefined;
|
|
14
|
+
};
|
|
15
|
+
declare const RadioGroupItem: {
|
|
16
|
+
({ className, ref, ...props }: RadioGroupItemProps): import("react/jsx-runtime").JSX.Element;
|
|
17
|
+
displayName: string | undefined;
|
|
18
|
+
};
|
|
19
|
+
export { RadioGroup, RadioGroupItem };
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { StoryObj } from '@storybook/react-vite';
|
|
2
|
+
declare const meta: {
|
|
3
|
+
title: string;
|
|
4
|
+
component: {
|
|
5
|
+
({ className, ref, ...props }: Omit<import('@radix-ui/react-radio-group').RadioGroupProps & import('react').RefAttributes<HTMLDivElement>, "ref"> & {
|
|
6
|
+
ref?: React.Ref<HTMLDivElement>;
|
|
7
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
displayName: string | undefined;
|
|
9
|
+
};
|
|
10
|
+
args: {
|
|
11
|
+
value: string;
|
|
12
|
+
disabled: false;
|
|
13
|
+
};
|
|
14
|
+
argTypes: {
|
|
15
|
+
value: {
|
|
16
|
+
control: "inline-radio";
|
|
17
|
+
options: string[];
|
|
18
|
+
};
|
|
19
|
+
disabled: {
|
|
20
|
+
control: "boolean";
|
|
21
|
+
};
|
|
22
|
+
};
|
|
23
|
+
};
|
|
24
|
+
export default meta;
|
|
25
|
+
type Story = StoryObj<typeof meta>;
|
|
26
|
+
export declare const Overview: Story;
|
|
27
|
+
export declare const Playground: Story;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export declare const radioGroupRootClassNames: readonly ["grid gap-2"];
|
|
2
|
+
export declare const radioGroupItemClassNames: readonly ["group size-5 cursor-pointer place-content-center rounded-full border transition-colors duration-200", "border-inp-hover-border bg-primary-bg", "data-[state=checked]:border-primary-text", "enabled:hover:border-inp-hover-border enabled:hover:bg-tertiary-bg", "enabled:hover:data-[state=checked]:border-inp-hover-border enabled:hover:data-[state=checked]:bg-tertiary-bg", "disabled:cursor-not-allowed disabled:border-disabled-border disabled:bg-disabled-bg", "disabled:data-[state=checked]:border-disabled-border disabled:data-[state=checked]:bg-disabled-bg", "focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-inp-focus-border"];
|
|
3
|
+
export declare const radioGroupIndicatorClassNames: readonly ["flex items-center justify-center"];
|
|
4
|
+
export declare const radioGroupIndicatorDotClassNames: readonly ["size-2.5 rounded-full bg-primary-text transition-colors duration-200", "group-hover:bg-secondary-text", "group-disabled:bg-disabled-text"];
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Separator } from './separator';
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import * as SeparatorPrimitive from "@radix-ui/react-separator";
|
|
2
|
+
import * as React from "react";
|
|
3
|
+
type SeparatorRef = React.ComponentRef<typeof SeparatorPrimitive.Root>;
|
|
4
|
+
type SeparatorProps = React.ComponentPropsWithoutRef<typeof SeparatorPrimitive.Root> & {
|
|
5
|
+
ref?: React.Ref<SeparatorRef>;
|
|
6
|
+
};
|
|
7
|
+
declare const Separator: {
|
|
8
|
+
({ className, orientation, decorative, ref, ...props }: SeparatorProps): import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
displayName: string | undefined;
|
|
10
|
+
};
|
|
11
|
+
export { Separator };
|