taibul-ui 1.0.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.
Files changed (53) hide show
  1. package/README.md +48 -0
  2. package/dist/example/App.d.ts +1 -0
  3. package/dist/example/main.d.ts +0 -0
  4. package/dist/index.d.ts +2 -0
  5. package/dist/src/components/Avatar.d.ts +15 -0
  6. package/dist/src/components/Button.d.ts +11 -0
  7. package/dist/src/components/Calendar.d.ts +12 -0
  8. package/dist/src/components/Card.d.ts +23 -0
  9. package/dist/src/components/Checkbox.d.ts +11 -0
  10. package/dist/src/components/CodeReveal.d.ts +9 -0
  11. package/dist/src/components/Collapse.d.ts +20 -0
  12. package/dist/src/components/ColorPicker.d.ts +9 -0
  13. package/dist/src/components/Combobox.d.ts +19 -0
  14. package/dist/src/components/Confirm.d.ts +14 -0
  15. package/dist/src/components/ContentEditable.d.ts +10 -0
  16. package/dist/src/components/CopyToClipboard.d.ts +9 -0
  17. package/dist/src/components/DatePicker.d.ts +18 -0
  18. package/dist/src/components/Divider.d.ts +23 -0
  19. package/dist/src/components/FileUploader.d.ts +13 -0
  20. package/dist/src/components/FontPicker.d.ts +1 -0
  21. package/dist/src/components/FontProvider.d.ts +19 -0
  22. package/dist/src/components/Grid.d.ts +29 -0
  23. package/dist/src/components/Icon.d.ts +103 -0
  24. package/dist/src/components/Input.d.ts +12 -0
  25. package/dist/src/components/KeyboardShortcut.d.ts +7 -0
  26. package/dist/src/components/Layout.d.ts +18 -0
  27. package/dist/src/components/MarkdownRenderer.d.ts +7 -0
  28. package/dist/src/components/Menu.d.ts +23 -0
  29. package/dist/src/components/Modal.d.ts +21 -0
  30. package/dist/src/components/Progress.d.ts +11 -0
  31. package/dist/src/components/RadioGroup.d.ts +13 -0
  32. package/dist/src/components/Select.d.ts +11 -0
  33. package/dist/src/components/Slider.d.ts +15 -0
  34. package/dist/src/components/Space.d.ts +10 -0
  35. package/dist/src/components/Spinner.d.ts +8 -0
  36. package/dist/src/components/Switch.d.ts +9 -0
  37. package/dist/src/components/SyntaxHighlighter.d.ts +9 -0
  38. package/dist/src/components/Table.d.ts +21 -0
  39. package/dist/src/components/Tabs.d.ts +35 -0
  40. package/dist/src/components/Tag.d.ts +13 -0
  41. package/dist/src/components/TextArea.d.ts +13 -0
  42. package/dist/src/components/TextEllipsis.d.ts +10 -0
  43. package/dist/src/components/ThemeProvider.d.ts +89 -0
  44. package/dist/src/components/TimePicker.d.ts +8 -0
  45. package/dist/src/components/Toast.d.ts +11 -0
  46. package/dist/src/components/Tooltip.d.ts +11 -0
  47. package/dist/src/components/Typography.d.ts +14 -0
  48. package/dist/src/hooks/useScrollSpy.d.ts +5 -0
  49. package/dist/src/index.d.ts +44 -0
  50. package/dist/style.css +1 -0
  51. package/dist/taibul-ui.es.js +37770 -0
  52. package/dist/taibul-ui.umd.js +630 -0
  53. package/package.json +51 -0
package/README.md ADDED
@@ -0,0 +1,48 @@
1
+ # taibul-ui
2
+
3
+ A modern, simple design system and UI library.
4
+
5
+ ![Screenshot](./preview.png)
6
+
7
+ ## Getting Started
8
+
9
+ ### Installation
10
+
11
+ ```bash
12
+ (npm|yarn|pnpm|bun) install taibul-ui
13
+ ```
14
+
15
+ ### Development
16
+
17
+ Start the local dev server:
18
+
19
+ ```bash
20
+ bun dev
21
+ ```
22
+
23
+ Build for production:
24
+
25
+ ```bash
26
+ bun run build
27
+ ```
28
+
29
+ Preview build:
30
+
31
+ ```bash
32
+ bun run preview
33
+ ```
34
+
35
+ ## Structure
36
+
37
+ - `/src` - Core components, styles, and logic
38
+ - `/public` - Static assets
39
+
40
+ ## Deployment
41
+
42
+ To deploy the example style guide to Vercel:
43
+
44
+ 1. Connect your repository to Vercel.
45
+ 2. In the "Build & Development Settings", override the settings with:
46
+ - **Build Command**: `npm run build:example`
47
+ - **Output Directory**: `dist-example`
48
+ 3. Deploy!
@@ -0,0 +1 @@
1
+ export default function StyleGuide(): import("react/jsx-runtime").JSX.Element;
File without changes
@@ -0,0 +1,2 @@
1
+ export * from './src/index'
2
+ export {}
@@ -0,0 +1,15 @@
1
+ import { default as React } from 'react';
2
+ interface AvatarProps {
3
+ /** The image source URL */
4
+ src?: string;
5
+ /** The name of the user, used for the initial if no image is provided */
6
+ name?: string;
7
+ /** The size of the avatar */
8
+ size?: 'sm' | 'md' | 'lg';
9
+ /** Alt text for the image */
10
+ alt?: string;
11
+ /** Custom class name */
12
+ className?: string;
13
+ }
14
+ export declare const Avatar: React.ForwardRefExoticComponent<AvatarProps & React.RefAttributes<HTMLDivElement>>;
15
+ export {};
@@ -0,0 +1,11 @@
1
+ import { default as React } from 'react';
2
+ import { LucideIcon } from 'lucide-react';
3
+ interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
4
+ variant?: "primary" | "secondary" | "outline" | "ghost";
5
+ size?: "sm" | "md" | "lg";
6
+ leftIcon?: LucideIcon;
7
+ rightIcon?: LucideIcon;
8
+ isLoading?: boolean;
9
+ }
10
+ export declare const Button: React.ForwardRefExoticComponent<ButtonProps & React.RefAttributes<HTMLButtonElement>>;
11
+ export {};
@@ -0,0 +1,12 @@
1
+ import { default as React } from 'react';
2
+ interface CalendarProps {
3
+ selected?: Date | {
4
+ from: Date;
5
+ to?: Date;
6
+ };
7
+ onSelect?: (date: Date) => void;
8
+ className?: string;
9
+ range?: boolean;
10
+ }
11
+ export declare const Calendar: React.ForwardRefExoticComponent<CalendarProps & Omit<React.HTMLAttributes<HTMLDivElement>, "onSelect"> & React.RefAttributes<HTMLDivElement>>;
12
+ export {};
@@ -0,0 +1,23 @@
1
+ import { default as React } from 'react';
2
+ interface CardProps {
3
+ children: React.ReactNode;
4
+ className?: string;
5
+ }
6
+ declare const Header: ({ children, className }: {
7
+ children: React.ReactNode;
8
+ className?: string;
9
+ }) => import("react/jsx-runtime").JSX.Element;
10
+ declare const Content: ({ children, className }: {
11
+ children: React.ReactNode;
12
+ className?: string;
13
+ }) => import("react/jsx-runtime").JSX.Element;
14
+ declare const Footer: ({ children, className }: {
15
+ children: React.ReactNode;
16
+ className?: string;
17
+ }) => import("react/jsx-runtime").JSX.Element;
18
+ declare const CardCompound: React.ForwardRefExoticComponent<CardProps & React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>> & {
19
+ Header: typeof Header;
20
+ Content: typeof Content;
21
+ Footer: typeof Footer;
22
+ };
23
+ export { CardCompound as Card };
@@ -0,0 +1,11 @@
1
+ import { default as React } from 'react';
2
+ interface CheckboxProps extends Omit<React.InputHTMLAttributes<HTMLInputElement>, 'onChange'> {
3
+ checked?: boolean;
4
+ defaultChecked?: boolean;
5
+ onChange?: (checked: boolean, e: React.ChangeEvent<HTMLInputElement>) => void;
6
+ label?: string;
7
+ className?: string;
8
+ [key: string]: any;
9
+ }
10
+ export declare const Checkbox: React.ForwardRefExoticComponent<Omit<CheckboxProps, "ref"> & React.RefAttributes<HTMLInputElement>>;
11
+ export {};
@@ -0,0 +1,9 @@
1
+ import { default as React } from 'react';
2
+ interface CodeRevealProps {
3
+ code: string;
4
+ language?: string;
5
+ title?: string;
6
+ className?: string;
7
+ }
8
+ export declare const CodeReveal: React.ForwardRefExoticComponent<CodeRevealProps & React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
9
+ export {};
@@ -0,0 +1,20 @@
1
+ import { default as React } from 'react';
2
+ interface CollapseProps {
3
+ accordion?: boolean;
4
+ defaultActiveKey?: string | string[];
5
+ children: React.ReactNode;
6
+ className?: string;
7
+ bordered?: boolean;
8
+ }
9
+ interface PanelProps {
10
+ id: string;
11
+ header: React.ReactNode;
12
+ children: React.ReactNode;
13
+ className?: string;
14
+ disabled?: boolean;
15
+ }
16
+ declare const Panel: ({ id, header, children, className, disabled }: PanelProps) => import("react/jsx-runtime").JSX.Element;
17
+ declare const CollapseCompound: React.ForwardRefExoticComponent<CollapseProps & React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>> & {
18
+ Panel: typeof Panel;
19
+ };
20
+ export { CollapseCompound as Collapse };
@@ -0,0 +1,9 @@
1
+ import { default as React } from 'react';
2
+ interface ColorPickerProps {
3
+ value: string;
4
+ onChange: (color: string) => void;
5
+ className?: string;
6
+ label?: string;
7
+ }
8
+ export declare const ColorPicker: React.FC<ColorPickerProps>;
9
+ export {};
@@ -0,0 +1,19 @@
1
+ import { default as React } from 'react';
2
+ interface Option {
3
+ label: string;
4
+ value: string;
5
+ }
6
+ interface ComboboxProps extends Omit<React.HTMLAttributes<HTMLDivElement>, 'onChange' | 'defaultValue'> {
7
+ options: Option[];
8
+ value?: string | string[];
9
+ defaultValue?: string | string[];
10
+ onChange?: (value: string | string[], e?: React.SyntheticEvent) => void;
11
+ label?: string;
12
+ placeholder?: string;
13
+ error?: string;
14
+ className?: string;
15
+ required?: boolean;
16
+ multi?: boolean;
17
+ }
18
+ export declare const Combobox: React.ForwardRefExoticComponent<ComboboxProps & React.RefAttributes<HTMLDivElement>>;
19
+ export {};
@@ -0,0 +1,14 @@
1
+ import { default as React } from 'react';
2
+ interface ConfirmProps extends Omit<React.HTMLAttributes<HTMLDivElement>, 'title' | 'onCancel'> {
3
+ isOpen: boolean;
4
+ title: string;
5
+ prompt: string;
6
+ okText?: string;
7
+ cancelText?: string;
8
+ onConfirm: () => void;
9
+ onCancel: () => void;
10
+ width?: string | number;
11
+ confirmTextInput?: string;
12
+ }
13
+ export declare const Confirm: React.ForwardRefExoticComponent<ConfirmProps & React.RefAttributes<HTMLDivElement>>;
14
+ export {};
@@ -0,0 +1,10 @@
1
+ import { default as React } from 'react';
2
+ interface ContentEditableProps extends Omit<React.HTMLAttributes<HTMLDivElement>, 'onChange'> {
3
+ value: string;
4
+ onChange: (value: string) => void;
5
+ className?: string;
6
+ placeholder?: string;
7
+ disabled?: boolean;
8
+ }
9
+ export declare const ContentEditable: React.ForwardRefExoticComponent<ContentEditableProps & React.RefAttributes<HTMLDivElement>>;
10
+ export {};
@@ -0,0 +1,9 @@
1
+ import { default as React } from 'react';
2
+ interface CopyToClipboardProps extends React.HTMLAttributes<HTMLDivElement | HTMLButtonElement> {
3
+ text: string;
4
+ duration?: number;
5
+ children?: React.ReactNode;
6
+ showTooltip?: boolean;
7
+ }
8
+ export declare const CopyToClipboard: React.ForwardRefExoticComponent<CopyToClipboardProps & React.RefAttributes<HTMLDivElement | HTMLButtonElement>>;
9
+ export {};
@@ -0,0 +1,18 @@
1
+ import { default as React } from 'react';
2
+ export type DateValue = Date | {
3
+ from: Date;
4
+ to?: Date;
5
+ } | undefined;
6
+ interface DatePickerProps extends Omit<React.HTMLAttributes<HTMLDivElement>, 'onChange' | 'defaultValue'> {
7
+ mode?: 'date' | 'time' | 'datetime' | 'range';
8
+ value?: DateValue;
9
+ defaultValue?: DateValue;
10
+ onChange?: (value: DateValue, e?: React.SyntheticEvent) => void;
11
+ label?: string;
12
+ placeholder?: string;
13
+ error?: string;
14
+ className?: string;
15
+ required?: boolean;
16
+ }
17
+ export declare const DatePicker: React.ForwardRefExoticComponent<DatePickerProps & React.RefAttributes<HTMLDivElement>>;
18
+ export {};
@@ -0,0 +1,23 @@
1
+ import { default as React } from 'react';
2
+ interface DividerProps extends React.HTMLAttributes<HTMLDivElement> {
3
+ /**
4
+ * The visual style of the divider line.
5
+ * @default 'solid'
6
+ */
7
+ variant?: 'solid' | 'dashed' | 'dotted';
8
+ /**
9
+ * The orientation of the divider.
10
+ * @default 'horizontal'
11
+ */
12
+ orientation?: 'horizontal' | 'vertical';
13
+ /**
14
+ * Optional text to display in the middle of a horizontal divider.
15
+ */
16
+ children?: React.ReactNode;
17
+ /**
18
+ * Additional CSS classes.
19
+ */
20
+ className?: string;
21
+ }
22
+ export declare const Divider: React.ForwardRefExoticComponent<DividerProps & React.RefAttributes<HTMLDivElement>>;
23
+ export {};
@@ -0,0 +1,13 @@
1
+ import { default as React } from 'react';
2
+ interface FileUploaderProps extends Omit<React.HTMLAttributes<HTMLDivElement>, 'onChange'> {
3
+ variant?: 'button' | 'dropzone';
4
+ multiple?: boolean;
5
+ accept?: string;
6
+ label?: string;
7
+ description?: string;
8
+ onChange?: (files: File[]) => void;
9
+ maxSize?: number;
10
+ className?: string;
11
+ }
12
+ export declare const FileUploader: React.ForwardRefExoticComponent<FileUploaderProps & React.RefAttributes<HTMLDivElement>>;
13
+ export {};
@@ -0,0 +1 @@
1
+ export declare const FontPicker: () => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,19 @@
1
+ import { default as React, ReactNode } from 'react';
2
+ export interface FontOption {
3
+ name: string;
4
+ value: string;
5
+ category: 'sans-serif' | 'serif' | 'monospace';
6
+ }
7
+ export declare const FONT_OPTIONS: FontOption[];
8
+ interface FontContextType {
9
+ headingFont: string;
10
+ setHeadingFont: (font: string) => void;
11
+ bodyFont: string;
12
+ setBodyFont: (font: string) => void;
13
+ availableFonts: FontOption[];
14
+ }
15
+ export declare const FontProvider: React.FC<{
16
+ children: ReactNode;
17
+ }>;
18
+ export declare const useFont: () => FontContextType;
19
+ export {};
@@ -0,0 +1,29 @@
1
+ import { default as React } from 'react';
2
+ type Justify = 'start' | 'end' | 'center' | 'between' | 'around' | 'evenly';
3
+ type Align = 'top' | 'middle' | 'bottom' | 'stretch';
4
+ type Gutter = number;
5
+ type ColSpan = 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 'auto';
6
+ interface GridProps extends React.HTMLAttributes<HTMLDivElement> {
7
+ fluid?: boolean;
8
+ }
9
+ interface RowProps extends React.HTMLAttributes<HTMLDivElement> {
10
+ justify?: Justify;
11
+ align?: Align;
12
+ gutter?: Gutter | [Gutter, Gutter];
13
+ }
14
+ interface ColProps extends React.HTMLAttributes<HTMLDivElement> {
15
+ span?: ColSpan;
16
+ offset?: ColSpan;
17
+ xs?: ColSpan;
18
+ sm?: ColSpan;
19
+ md?: ColSpan;
20
+ lg?: ColSpan;
21
+ xl?: ColSpan;
22
+ "2xl"?: ColSpan;
23
+ flex?: string | number;
24
+ }
25
+ export declare const Grid: React.ForwardRefExoticComponent<GridProps & React.RefAttributes<HTMLDivElement>> & {
26
+ Row: React.ForwardRefExoticComponent<RowProps & React.RefAttributes<HTMLDivElement>>;
27
+ Col: React.ForwardRefExoticComponent<ColProps & React.RefAttributes<HTMLDivElement>>;
28
+ };
29
+ export {};
@@ -0,0 +1,103 @@
1
+ import { default as React } from 'react';
2
+ import { LucideProps } from 'lucide-react';
3
+ export declare const StandardIcons: {
4
+ readonly user: React.ForwardRefExoticComponent<Omit<LucideProps, "ref"> & React.RefAttributes<SVGSVGElement>>;
5
+ readonly settings: React.ForwardRefExoticComponent<Omit<LucideProps, "ref"> & React.RefAttributes<SVGSVGElement>>;
6
+ readonly bell: React.ForwardRefExoticComponent<Omit<LucideProps, "ref"> & React.RefAttributes<SVGSVGElement>>;
7
+ readonly search: React.ForwardRefExoticComponent<Omit<LucideProps, "ref"> & React.RefAttributes<SVGSVGElement>>;
8
+ readonly mail: React.ForwardRefExoticComponent<Omit<LucideProps, "ref"> & React.RefAttributes<SVGSVGElement>>;
9
+ readonly 'check-circle': React.ForwardRefExoticComponent<Omit<LucideProps, "ref"> & React.RefAttributes<SVGSVGElement>>;
10
+ readonly 'alert-circle': React.ForwardRefExoticComponent<Omit<LucideProps, "ref"> & React.RefAttributes<SVGSVGElement>>;
11
+ readonly info: React.ForwardRefExoticComponent<Omit<LucideProps, "ref"> & React.RefAttributes<SVGSVGElement>>;
12
+ readonly plus: React.ForwardRefExoticComponent<Omit<LucideProps, "ref"> & React.RefAttributes<SVGSVGElement>>;
13
+ readonly minus: React.ForwardRefExoticComponent<Omit<LucideProps, "ref"> & React.RefAttributes<SVGSVGElement>>;
14
+ readonly close: React.ForwardRefExoticComponent<Omit<LucideProps, "ref"> & React.RefAttributes<SVGSVGElement>>;
15
+ readonly menu: React.ForwardRefExoticComponent<Omit<LucideProps, "ref"> & React.RefAttributes<SVGSVGElement>>;
16
+ readonly maximize: React.ForwardRefExoticComponent<Omit<LucideProps, "ref"> & React.RefAttributes<SVGSVGElement>>;
17
+ readonly 'chevron-right': React.ForwardRefExoticComponent<Omit<LucideProps, "ref"> & React.RefAttributes<SVGSVGElement>>;
18
+ readonly 'chevron-left': React.ForwardRefExoticComponent<Omit<LucideProps, "ref"> & React.RefAttributes<SVGSVGElement>>;
19
+ readonly 'chevron-down': React.ForwardRefExoticComponent<Omit<LucideProps, "ref"> & React.RefAttributes<SVGSVGElement>>;
20
+ readonly 'chevron-up': React.ForwardRefExoticComponent<Omit<LucideProps, "ref"> & React.RefAttributes<SVGSVGElement>>;
21
+ readonly home: React.ForwardRefExoticComponent<Omit<LucideProps, "ref"> & React.RefAttributes<SVGSVGElement>>;
22
+ readonly trash: React.ForwardRefExoticComponent<Omit<LucideProps, "ref"> & React.RefAttributes<SVGSVGElement>>;
23
+ readonly edit: React.ForwardRefExoticComponent<Omit<LucideProps, "ref"> & React.RefAttributes<SVGSVGElement>>;
24
+ readonly save: React.ForwardRefExoticComponent<Omit<LucideProps, "ref"> & React.RefAttributes<SVGSVGElement>>;
25
+ readonly download: React.ForwardRefExoticComponent<Omit<LucideProps, "ref"> & React.RefAttributes<SVGSVGElement>>;
26
+ readonly upload: React.ForwardRefExoticComponent<Omit<LucideProps, "ref"> & React.RefAttributes<SVGSVGElement>>;
27
+ readonly 'external-link': React.ForwardRefExoticComponent<Omit<LucideProps, "ref"> & React.RefAttributes<SVGSVGElement>>;
28
+ readonly lock: React.ForwardRefExoticComponent<Omit<LucideProps, "ref"> & React.RefAttributes<SVGSVGElement>>;
29
+ readonly unlock: React.ForwardRefExoticComponent<Omit<LucideProps, "ref"> & React.RefAttributes<SVGSVGElement>>;
30
+ readonly eye: React.ForwardRefExoticComponent<Omit<LucideProps, "ref"> & React.RefAttributes<SVGSVGElement>>;
31
+ readonly 'eye-off': React.ForwardRefExoticComponent<Omit<LucideProps, "ref"> & React.RefAttributes<SVGSVGElement>>;
32
+ readonly calendar: React.ForwardRefExoticComponent<Omit<LucideProps, "ref"> & React.RefAttributes<SVGSVGElement>>;
33
+ readonly clock: React.ForwardRefExoticComponent<Omit<LucideProps, "ref"> & React.RefAttributes<SVGSVGElement>>;
34
+ readonly 'map-pin': React.ForwardRefExoticComponent<Omit<LucideProps, "ref"> & React.RefAttributes<SVGSVGElement>>;
35
+ readonly phone: React.ForwardRefExoticComponent<Omit<LucideProps, "ref"> & React.RefAttributes<SVGSVGElement>>;
36
+ readonly layout: React.ForwardRefExoticComponent<Omit<LucideProps, "ref"> & React.RefAttributes<SVGSVGElement>>;
37
+ readonly type: React.ForwardRefExoticComponent<Omit<LucideProps, "ref"> & React.RefAttributes<SVGSVGElement>>;
38
+ readonly palette: React.ForwardRefExoticComponent<Omit<LucideProps, "ref"> & React.RefAttributes<SVGSVGElement>>;
39
+ readonly cursor: React.ForwardRefExoticComponent<Omit<LucideProps, "ref"> & React.RefAttributes<SVGSVGElement>>;
40
+ readonly input: React.ForwardRefExoticComponent<Omit<LucideProps, "ref"> & React.RefAttributes<SVGSVGElement>>;
41
+ readonly 'credit-card': React.ForwardRefExoticComponent<Omit<LucideProps, "ref"> & React.RefAttributes<SVGSVGElement>>;
42
+ readonly split: React.ForwardRefExoticComponent<Omit<LucideProps, "ref"> & React.RefAttributes<SVGSVGElement>>;
43
+ readonly text: React.ForwardRefExoticComponent<Omit<LucideProps, "ref"> & React.RefAttributes<SVGSVGElement>>;
44
+ readonly 'check-square': React.ForwardRefExoticComponent<Omit<LucideProps, "ref"> & React.RefAttributes<SVGSVGElement>>;
45
+ readonly table: React.ForwardRefExoticComponent<Omit<LucideProps, "ref"> & React.RefAttributes<SVGSVGElement>>;
46
+ readonly code: React.ForwardRefExoticComponent<Omit<LucideProps, "ref"> & React.RefAttributes<SVGSVGElement>>;
47
+ readonly activity: React.ForwardRefExoticComponent<Omit<LucideProps, "ref"> & React.RefAttributes<SVGSVGElement>>;
48
+ readonly message: React.ForwardRefExoticComponent<Omit<LucideProps, "ref"> & React.RefAttributes<SVGSVGElement>>;
49
+ readonly 'message-square': React.ForwardRefExoticComponent<Omit<LucideProps, "ref"> & React.RefAttributes<SVGSVGElement>>;
50
+ readonly filter: React.ForwardRefExoticComponent<Omit<LucideProps, "ref"> & React.RefAttributes<SVGSVGElement>>;
51
+ readonly sun: React.ForwardRefExoticComponent<Omit<LucideProps, "ref"> & React.RefAttributes<SVGSVGElement>>;
52
+ readonly moon: React.ForwardRefExoticComponent<Omit<LucideProps, "ref"> & React.RefAttributes<SVGSVGElement>>;
53
+ readonly tag: React.ForwardRefExoticComponent<Omit<LucideProps, "ref"> & React.RefAttributes<SVGSVGElement>>;
54
+ readonly dashboard: React.ForwardRefExoticComponent<Omit<LucideProps, "ref"> & React.RefAttributes<SVGSVGElement>>;
55
+ readonly analytics: React.ForwardRefExoticComponent<Omit<LucideProps, "ref"> & React.RefAttributes<SVGSVGElement>>;
56
+ readonly users: React.ForwardRefExoticComponent<Omit<LucideProps, "ref"> & React.RefAttributes<SVGSVGElement>>;
57
+ readonly file: React.ForwardRefExoticComponent<Omit<LucideProps, "ref"> & React.RefAttributes<SVGSVGElement>>;
58
+ readonly folder: React.ForwardRefExoticComponent<Omit<LucideProps, "ref"> & React.RefAttributes<SVGSVGElement>>;
59
+ readonly image: React.ForwardRefExoticComponent<Omit<LucideProps, "ref"> & React.RefAttributes<SVGSVGElement>>;
60
+ readonly video: React.ForwardRefExoticComponent<Omit<LucideProps, "ref"> & React.RefAttributes<SVGSVGElement>>;
61
+ readonly cloud: React.ForwardRefExoticComponent<Omit<LucideProps, "ref"> & React.RefAttributes<SVGSVGElement>>;
62
+ readonly database: React.ForwardRefExoticComponent<Omit<LucideProps, "ref"> & React.RefAttributes<SVGSVGElement>>;
63
+ readonly server: React.ForwardRefExoticComponent<Omit<LucideProps, "ref"> & React.RefAttributes<SVGSVGElement>>;
64
+ readonly wifi: React.ForwardRefExoticComponent<Omit<LucideProps, "ref"> & React.RefAttributes<SVGSVGElement>>;
65
+ readonly bluetooth: React.ForwardRefExoticComponent<Omit<LucideProps, "ref"> & React.RefAttributes<SVGSVGElement>>;
66
+ readonly battery: React.ForwardRefExoticComponent<Omit<LucideProps, "ref"> & React.RefAttributes<SVGSVGElement>>;
67
+ readonly power: React.ForwardRefExoticComponent<Omit<LucideProps, "ref"> & React.RefAttributes<SVGSVGElement>>;
68
+ readonly bookmark: React.ForwardRefExoticComponent<Omit<LucideProps, "ref"> & React.RefAttributes<SVGSVGElement>>;
69
+ readonly star: React.ForwardRefExoticComponent<Omit<LucideProps, "ref"> & React.RefAttributes<SVGSVGElement>>;
70
+ readonly heart: React.ForwardRefExoticComponent<Omit<LucideProps, "ref"> & React.RefAttributes<SVGSVGElement>>;
71
+ readonly 'thumbs-up': React.ForwardRefExoticComponent<Omit<LucideProps, "ref"> & React.RefAttributes<SVGSVGElement>>;
72
+ readonly 'thumbs-down': React.ForwardRefExoticComponent<Omit<LucideProps, "ref"> & React.RefAttributes<SVGSVGElement>>;
73
+ readonly share: React.ForwardRefExoticComponent<Omit<LucideProps, "ref"> & React.RefAttributes<SVGSVGElement>>;
74
+ readonly link: React.ForwardRefExoticComponent<Omit<LucideProps, "ref"> & React.RefAttributes<SVGSVGElement>>;
75
+ readonly globe: React.ForwardRefExoticComponent<Omit<LucideProps, "ref"> & React.RefAttributes<SVGSVGElement>>;
76
+ readonly cart: React.ForwardRefExoticComponent<Omit<LucideProps, "ref"> & React.RefAttributes<SVGSVGElement>>;
77
+ readonly dollar: React.ForwardRefExoticComponent<Omit<LucideProps, "ref"> & React.RefAttributes<SVGSVGElement>>;
78
+ readonly percent: React.ForwardRefExoticComponent<Omit<LucideProps, "ref"> & React.RefAttributes<SVGSVGElement>>;
79
+ readonly list: React.ForwardRefExoticComponent<Omit<LucideProps, "ref"> & React.RefAttributes<SVGSVGElement>>;
80
+ readonly grid: React.ForwardRefExoticComponent<Omit<LucideProps, "ref"> & React.RefAttributes<SVGSVGElement>>;
81
+ readonly 'more-horizontal': React.ForwardRefExoticComponent<Omit<LucideProps, "ref"> & React.RefAttributes<SVGSVGElement>>;
82
+ readonly 'more-vertical': React.ForwardRefExoticComponent<Omit<LucideProps, "ref"> & React.RefAttributes<SVGSVGElement>>;
83
+ readonly 'arrow-right': React.ForwardRefExoticComponent<Omit<LucideProps, "ref"> & React.RefAttributes<SVGSVGElement>>;
84
+ readonly 'arrow-left': React.ForwardRefExoticComponent<Omit<LucideProps, "ref"> & React.RefAttributes<SVGSVGElement>>;
85
+ readonly 'arrow-up': React.ForwardRefExoticComponent<Omit<LucideProps, "ref"> & React.RefAttributes<SVGSVGElement>>;
86
+ readonly 'arrow-down': React.ForwardRefExoticComponent<Omit<LucideProps, "ref"> & React.RefAttributes<SVGSVGElement>>;
87
+ readonly refresh: React.ForwardRefExoticComponent<Omit<LucideProps, "ref"> & React.RefAttributes<SVGSVGElement>>;
88
+ readonly login: React.ForwardRefExoticComponent<Omit<LucideProps, "ref"> & React.RefAttributes<SVGSVGElement>>;
89
+ readonly shapes: React.ForwardRefExoticComponent<Omit<LucideProps, "ref"> & React.RefAttributes<SVGSVGElement>>;
90
+ readonly layers: React.ForwardRefExoticComponent<Omit<LucideProps, "ref"> & React.RefAttributes<SVGSVGElement>>;
91
+ readonly 'rectangle-horizontal': React.ForwardRefExoticComponent<Omit<LucideProps, "ref"> & React.RefAttributes<SVGSVGElement>>;
92
+ readonly 'picture-in-picture-2': React.ForwardRefExoticComponent<Omit<LucideProps, "ref"> & React.RefAttributes<SVGSVGElement>>;
93
+ readonly 'panel-top-dashed': React.ForwardRefExoticComponent<Omit<LucideProps, "ref"> & React.RefAttributes<SVGSVGElement>>;
94
+ readonly 'clock-fading': React.ForwardRefExoticComponent<Omit<LucideProps, "ref"> & React.RefAttributes<SVGSVGElement>>;
95
+ readonly command: React.ForwardRefExoticComponent<Omit<LucideProps, "ref"> & React.RefAttributes<SVGSVGElement>>;
96
+ };
97
+ export type IconName = keyof typeof StandardIcons;
98
+ interface IconProps extends Omit<LucideProps, 'ref'> {
99
+ name?: IconName;
100
+ customIcon?: React.ElementType;
101
+ }
102
+ export declare const Icon: React.ForwardRefExoticComponent<IconProps & React.RefAttributes<SVGSVGElement>>;
103
+ export {};
@@ -0,0 +1,12 @@
1
+ import { default as React } from 'react';
2
+ interface InputProps extends Omit<React.InputHTMLAttributes<HTMLInputElement>, 'onChange'> {
3
+ label?: string;
4
+ error?: string;
5
+ format?: string;
6
+ defaultValue?: string;
7
+ value?: string;
8
+ onChange?: (value: string, e: React.ChangeEvent<HTMLInputElement>) => void;
9
+ [key: string]: any;
10
+ }
11
+ export declare const Input: React.ForwardRefExoticComponent<Omit<InputProps, "ref"> & React.RefAttributes<HTMLInputElement>>;
12
+ export {};
@@ -0,0 +1,7 @@
1
+ import { default as React } from 'react';
2
+ interface KeyboardShortcutProps extends React.HTMLAttributes<HTMLDivElement> {
3
+ keys: string[];
4
+ className?: string;
5
+ }
6
+ export declare const KeyboardShortcut: React.ForwardRefExoticComponent<KeyboardShortcutProps & React.RefAttributes<HTMLDivElement>>;
7
+ export {};
@@ -0,0 +1,18 @@
1
+ import { default as React } from 'react';
2
+ import { NavigationItem } from './Menu';
3
+ interface LayoutProps extends React.HTMLAttributes<HTMLDivElement> {
4
+ }
5
+ interface SiderProps extends React.HTMLAttributes<HTMLDivElement> {
6
+ width?: string;
7
+ collapsed?: boolean;
8
+ collapsedWidth?: string;
9
+ navigation?: NavigationItem[];
10
+ onCollapse?: (collapsed: boolean) => void;
11
+ }
12
+ export declare const Layout: React.ForwardRefExoticComponent<LayoutProps & React.RefAttributes<HTMLDivElement>> & {
13
+ Header: React.ForwardRefExoticComponent<LayoutProps & React.RefAttributes<HTMLDivElement>>;
14
+ Footer: React.ForwardRefExoticComponent<LayoutProps & React.RefAttributes<HTMLDivElement>>;
15
+ Sider: React.ForwardRefExoticComponent<SiderProps & React.RefAttributes<HTMLDivElement>>;
16
+ Content: React.ForwardRefExoticComponent<LayoutProps & React.RefAttributes<HTMLDivElement>>;
17
+ };
18
+ export {};
@@ -0,0 +1,7 @@
1
+ import { default as React } from 'react';
2
+ interface MarkdownRendererProps extends React.HTMLAttributes<HTMLDivElement> {
3
+ content: string;
4
+ className?: string;
5
+ }
6
+ export declare const MarkdownRenderer: React.ForwardRefExoticComponent<MarkdownRendererProps & React.RefAttributes<HTMLDivElement>>;
7
+ export {};
@@ -0,0 +1,23 @@
1
+ import { default as React } from 'react';
2
+ import { LucideIcon } from 'lucide-react';
3
+ import { IconName } from './Icon';
4
+ export type NavigationItem = {
5
+ header: string;
6
+ } | {
7
+ divider: true;
8
+ } | {
9
+ label: string;
10
+ icon?: LucideIcon;
11
+ iconName?: IconName;
12
+ iconColor?: string;
13
+ href?: string;
14
+ onClick?: () => void;
15
+ isActive?: boolean;
16
+ id?: string;
17
+ };
18
+ export interface MenuProps extends React.HTMLAttributes<HTMLDivElement> {
19
+ items: NavigationItem[];
20
+ collapsed?: boolean;
21
+ className?: string;
22
+ }
23
+ export declare const Menu: React.ForwardRefExoticComponent<MenuProps & React.RefAttributes<HTMLDivElement>>;
@@ -0,0 +1,21 @@
1
+ import { default as React } from 'react';
2
+ interface ModalProps extends Omit<React.HTMLAttributes<HTMLDivElement>, 'width' | 'children'> {
3
+ isOpen: boolean;
4
+ onClose: () => void;
5
+ children: React.ReactNode;
6
+ width?: string | number;
7
+ }
8
+ export declare const Modal: React.ForwardRefExoticComponent<ModalProps & React.RefAttributes<HTMLDivElement>> & {
9
+ Header: ({ children, onClose }: {
10
+ children: React.ReactNode;
11
+ onClose?: () => void;
12
+ }) => import("react/jsx-runtime").JSX.Element;
13
+ Content: ({ children }: {
14
+ children: React.ReactNode;
15
+ }) => import("react/jsx-runtime").JSX.Element;
16
+ Footer: ({ children, onClose }: {
17
+ children: React.ReactNode;
18
+ onClose?: () => void;
19
+ }) => import("react/jsx-runtime").JSX.Element;
20
+ };
21
+ export {};
@@ -0,0 +1,11 @@
1
+ import { default as React } from 'react';
2
+ interface ProgressProps extends React.HTMLAttributes<HTMLDivElement> {
3
+ value: number;
4
+ max?: number;
5
+ className?: string;
6
+ variant?: 'primary' | 'success' | 'warning' | 'error';
7
+ size?: 'sm' | 'md' | 'lg';
8
+ showValue?: boolean;
9
+ }
10
+ export declare const Progress: React.ForwardRefExoticComponent<ProgressProps & React.RefAttributes<HTMLDivElement>>;
11
+ export {};
@@ -0,0 +1,13 @@
1
+ import { default as React } from 'react';
2
+ export interface RadioGroupProps extends Omit<React.HTMLAttributes<HTMLDivElement>, 'onChange' | 'defaultValue'> {
3
+ name: string;
4
+ options: {
5
+ label: string;
6
+ value: string;
7
+ }[];
8
+ value?: string;
9
+ defaultValue?: string;
10
+ onChange?: (value: string, e?: React.ChangeEvent<HTMLInputElement>) => void;
11
+ className?: string;
12
+ }
13
+ export declare const RadioGroup: React.ForwardRefExoticComponent<RadioGroupProps & React.RefAttributes<HTMLDivElement>>;
@@ -0,0 +1,11 @@
1
+ import { default as React } from 'react';
2
+ interface SelectProps extends React.SelectHTMLAttributes<HTMLSelectElement> {
3
+ label?: string;
4
+ options: {
5
+ label: string;
6
+ value: string;
7
+ }[];
8
+ error?: string;
9
+ }
10
+ export declare const Select: React.ForwardRefExoticComponent<SelectProps & React.RefAttributes<HTMLSelectElement>>;
11
+ export {};
@@ -0,0 +1,15 @@
1
+ import { default as React } from 'react';
2
+ interface SliderProps extends Omit<React.HTMLAttributes<HTMLDivElement>, 'onChange' | 'defaultValue'> {
3
+ label?: string;
4
+ min?: number;
5
+ max?: number;
6
+ step?: number;
7
+ value?: number | [number, number];
8
+ defaultValue?: number | [number, number];
9
+ onChange?: (value: number | [number, number], e?: React.ChangeEvent<HTMLInputElement>) => void;
10
+ className?: string;
11
+ showValue?: boolean;
12
+ unit?: string;
13
+ }
14
+ export declare const Slider: React.ForwardRefExoticComponent<SliderProps & React.RefAttributes<HTMLDivElement>>;
15
+ export {};
@@ -0,0 +1,10 @@
1
+ import { default as React } from 'react';
2
+ interface SpaceProps extends React.HTMLAttributes<HTMLDivElement> {
3
+ gap?: number;
4
+ direction?: 'horizontal' | 'vertical';
5
+ align?: 'start' | 'end' | 'center' | 'baseline' | 'stretch';
6
+ justify?: 'start' | 'end' | 'center' | 'between' | 'around' | 'evenly';
7
+ wrap?: boolean;
8
+ }
9
+ declare const Space: React.ForwardRefExoticComponent<SpaceProps & React.RefAttributes<HTMLDivElement>>;
10
+ export { Space };
@@ -0,0 +1,8 @@
1
+ import { default as React } from 'react';
2
+ interface SpinnerProps extends React.HTMLAttributes<HTMLDivElement> {
3
+ size?: 'sm' | 'md' | 'lg' | number;
4
+ className?: string;
5
+ variant?: 'primary' | 'muted' | 'white';
6
+ }
7
+ export declare const Spinner: React.ForwardRefExoticComponent<SpinnerProps & React.RefAttributes<HTMLDivElement>>;
8
+ export {};