@rafal.lemieszewski/tide-ui 0.1.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 (59) hide show
  1. package/README.md +141 -0
  2. package/dist/avatars/acme.png +0 -0
  3. package/dist/avatars/rl.png +0 -0
  4. package/dist/avatars/sea.png +0 -0
  5. package/dist/components/index.d.ts +48 -0
  6. package/dist/components/product/app-frame.d.ts +10 -0
  7. package/dist/components/ui/accordion.d.ts +7 -0
  8. package/dist/components/ui/alert-dialog.d.ts +22 -0
  9. package/dist/components/ui/alert.d.ts +15 -0
  10. package/dist/components/ui/aspect-ratio.d.ts +3 -0
  11. package/dist/components/ui/avatar.d.ts +21 -0
  12. package/dist/components/ui/badge.d.ts +11 -0
  13. package/dist/components/ui/breadcrumb.d.ts +21 -0
  14. package/dist/components/ui/button.d.ts +18 -0
  15. package/dist/components/ui/calendar.d.ts +7 -0
  16. package/dist/components/ui/card.d.ts +8 -0
  17. package/dist/components/ui/chart.d.ts +33 -0
  18. package/dist/components/ui/checkbox.d.ts +10 -0
  19. package/dist/components/ui/collapsible.d.ts +5 -0
  20. package/dist/components/ui/combobox.d.ts +32 -0
  21. package/dist/components/ui/command.d.ts +82 -0
  22. package/dist/components/ui/country-dropdown.d.ts +26 -0
  23. package/dist/components/ui/custom-icons.d.ts +17 -0
  24. package/dist/components/ui/dialog.d.ts +19 -0
  25. package/dist/components/ui/drop-drawer.d.ts +28 -0
  26. package/dist/components/ui/dropdown-menu.d.ts +28 -0
  27. package/dist/components/ui/form-field.d.ts +19 -0
  28. package/dist/components/ui/form.d.ts +37 -0
  29. package/dist/components/ui/hover-card.d.ts +6 -0
  30. package/dist/components/ui/icon.d.ts +39 -0
  31. package/dist/components/ui/input.d.ts +10 -0
  32. package/dist/components/ui/kbd.d.ts +10 -0
  33. package/dist/components/ui/label.d.ts +7 -0
  34. package/dist/components/ui/linked-chart.d.ts +21 -0
  35. package/dist/components/ui/pagination.d.ts +13 -0
  36. package/dist/components/ui/popover.d.ts +6 -0
  37. package/dist/components/ui/radio-group.d.ts +14 -0
  38. package/dist/components/ui/select.d.ts +24 -0
  39. package/dist/components/ui/separator.d.ts +8 -0
  40. package/dist/components/ui/sheet.d.ts +26 -0
  41. package/dist/components/ui/sidebar.d.ts +67 -0
  42. package/dist/components/ui/skeleton.d.ts +41 -0
  43. package/dist/components/ui/slider.d.ts +4 -0
  44. package/dist/components/ui/switch.d.ts +4 -0
  45. package/dist/components/ui/table.d.ts +46 -0
  46. package/dist/components/ui/tabs.d.ts +25 -0
  47. package/dist/components/ui/text-link.d.ts +17 -0
  48. package/dist/components/ui/textarea.d.ts +10 -0
  49. package/dist/components/ui/toast.d.ts +5 -0
  50. package/dist/components/ui/toggle-group.d.ts +12 -0
  51. package/dist/components/ui/toggle.d.ts +11 -0
  52. package/dist/components/ui/tooltip.d.ts +7 -0
  53. package/dist/index.cjs.js +8168 -0
  54. package/dist/index.cjs.js.map +1 -0
  55. package/dist/index.d.ts +2 -0
  56. package/dist/index.es.js +35984 -0
  57. package/dist/index.es.js.map +1 -0
  58. package/dist/lib/utils.d.ts +6 -0
  59. package/package.json +119 -0
package/README.md ADDED
@@ -0,0 +1,141 @@
1
+ # Tide UI
2
+
3
+ A comprehensive React component library built with Tailwind CSS and Radix UI primitives, designed for internal company use with a focus on design consistency and developer experience.
4
+
5
+ ## Features
6
+
7
+ - 🎨 **Design System First** - Built with semantic design tokens and CSS variables
8
+ - ⚡ **Modern Stack** - React 18+, TypeScript, Tailwind CSS v4, Radix UI primitives
9
+ - 📦 **Tree Shakeable** - Import only the components you need
10
+ - 🔧 **Developer Experience** - Full TypeScript support with comprehensive type definitions
11
+ - 📚 **Interactive Documentation** - Storybook playground for all components
12
+ - ♿ **Accessible** - Built on Radix UI primitives with accessibility in mind
13
+
14
+ ## Installation
15
+
16
+ ```bash
17
+ npm install @rafal.lemieszewski/tide-ui
18
+ ```
19
+
20
+ ### Peer Dependencies
21
+
22
+ Make sure you have React 18+ installed:
23
+
24
+ ```bash
25
+ npm install react@>=18.0.0 react-dom@>=18.0.0
26
+ ```
27
+
28
+ ### Setup Tailwind CSS
29
+
30
+ This library requires Tailwind CSS. Add the preset to your `tailwind.config.js`:
31
+
32
+ ```javascript
33
+ module.exports = {
34
+ presets: [
35
+ // Add Tide UI preset here when available
36
+ ],
37
+ content: [
38
+ "./src/**/*.{js,ts,jsx,tsx}",
39
+ "./node_modules/@rafal.lemieszewski/tide-ui/**/*.{js,ts,jsx,tsx}",
40
+ ],
41
+ // ... rest of your config
42
+ }
43
+ ```
44
+
45
+ ## Quick Start
46
+
47
+ ```typescript
48
+ import { Button, Card, CardContent, Badge } from '@rafal.lemieszewski/tide-ui'
49
+
50
+ function App() {
51
+ return (
52
+ <Card>
53
+ <CardContent>
54
+ <div className="flex items-center gap-4">
55
+ <Button>Get Started</Button>
56
+ <Badge intent="success">v0.1.0</Badge>
57
+ </div>
58
+ </CardContent>
59
+ </Card>
60
+ )
61
+ }
62
+ ```
63
+
64
+ ## Available Components
65
+
66
+ ### Core Components
67
+
68
+ - **Button** - Versatile button component with multiple variants
69
+ - **Badge** - Status indicators with intent-based styling
70
+ - **Card** - Container component for content organization
71
+ - **Input** - Form input with consistent styling
72
+ - **Label** - Accessible form labels
73
+ - **Switch** - Toggle switch component
74
+ - **Tabs** - Tab navigation with multiple sizes
75
+ - **Toggle** - Toggle button component
76
+
77
+ ### Design Tokens
78
+
79
+ Access design tokens for consistent theming:
80
+
81
+ ```typescript
82
+ import { designTokens } from '@rafal.lemieszewski/tide-ui'
83
+
84
+ // Use design tokens in your components
85
+ const customStyles = {
86
+ backgroundColor: designTokens.colors.backgroundBrand,
87
+ padding: designTokens.spacing.md,
88
+ borderRadius: designTokens.sizing.sm,
89
+ }
90
+ ```
91
+
92
+ ## Development
93
+
94
+ This library is built using:
95
+
96
+ - **Vite** - Fast build tool and development server
97
+ - **Storybook** - Component documentation and playground
98
+ - **TypeScript** - Type safety and better DX
99
+ - **Tailwind CSS** - Utility-first CSS framework
100
+ - **Radix UI** - Headless UI components
101
+
102
+ ### Available Scripts
103
+
104
+ ```bash
105
+ # Development
106
+ npm run dev # Start development server
107
+ npm run storybook # Start Storybook
108
+
109
+ # Building
110
+ npm run build:lib # Build library for npm
111
+ npm run build-storybook # Build Storybook for deployment
112
+
113
+ # Quality
114
+ npm run lint # Run ESLint
115
+ ```
116
+
117
+ ## Documentation
118
+
119
+ - **Storybook**: [Component playground and documentation](https://tide-ui-storybook.vercel.app)
120
+ - **Repository**: [GitHub repository](https://github.com/rafal-lemieszewski/tide-ui)
121
+
122
+ ## Browser Support
123
+
124
+ Tide UI supports all modern browsers:
125
+
126
+ - Chrome (latest)
127
+ - Firefox (latest)
128
+ - Safari (latest)
129
+ - Edge (latest)
130
+
131
+ ## License
132
+
133
+ MIT License - see [LICENSE](LICENSE) for details.
134
+
135
+ ## Contributing
136
+
137
+ This is an internal library. For bugs and feature requests, please create an issue in the repository.
138
+
139
+ ---
140
+
141
+ Built with ❤️ for internal company projects.
Binary file
Binary file
Binary file
@@ -0,0 +1,48 @@
1
+ export { Avatar, AvatarImage, AvatarFallback, avatarVariants, avatarFallbackVariants } from './ui/avatar';
2
+ export type { AvatarProps, AvatarFallbackProps } from './ui/avatar';
3
+ export { Badge } from './ui/badge';
4
+ export type { BadgeProps } from './ui/badge';
5
+ export { Button } from './ui/button';
6
+ export type { ButtonProps } from './ui/button';
7
+ export { Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle } from './ui/card';
8
+ export { Checkbox, checkboxVariants } from './ui/checkbox';
9
+ export { Input } from './ui/input';
10
+ export type { InputProps } from './ui/input';
11
+ export { Label } from './ui/label';
12
+ export type { LabelProps } from './ui/label';
13
+ export { Separator } from './ui/separator';
14
+ export { Skeleton, SkeletonAvatar, SkeletonButton, SkeletonCard, SkeletonTable, skeletonVariants } from './ui/skeleton';
15
+ export { Switch } from './ui/switch';
16
+ export { Tabs, TabsList, TabsTrigger, TabsContent, TabsGroupLabel } from './ui/tabs';
17
+ export type { TabsProps, TabsListProps, TabsTriggerProps, TabsGroupLabelProps } from './ui/tabs';
18
+ export { Toggle } from './ui/toggle';
19
+ export type { ToggleProps } from './ui/toggle';
20
+ export { cn } from '../lib/utils';
21
+ export declare const designTokens: {
22
+ readonly colors: {
23
+ readonly primary: "var(--color-surface-primary)";
24
+ readonly secondary: "var(--color-surface-secondary)";
25
+ readonly textPrimary: "var(--color-text-primary)";
26
+ readonly textSecondary: "var(--color-text-secondary)";
27
+ readonly textBrand: "var(--color-text-brand)";
28
+ readonly backgroundBrand: "var(--color-background-brand)";
29
+ readonly backgroundBrandSelected: "var(--color-background-brand-selected)";
30
+ readonly borderPrimary: "var(--color-border-primary-subtle)";
31
+ readonly borderBrand: "var(--color-border-brand)";
32
+ readonly borderFocus: "var(--color-border-focus)";
33
+ };
34
+ readonly spacing: {
35
+ readonly xsm: "var(--space-xsm)";
36
+ readonly sm: "var(--space-sm)";
37
+ readonly md: "var(--space-md)";
38
+ readonly lg: "var(--space-lg)";
39
+ readonly xlg: "var(--space-xlg)";
40
+ };
41
+ readonly sizing: {
42
+ readonly xsm: "var(--size-xsm)";
43
+ readonly sm: "var(--size-sm)";
44
+ readonly md: "var(--size-md)";
45
+ readonly lg: "var(--size-lg)";
46
+ readonly xlg: "var(--size-xlg)";
47
+ };
48
+ };
@@ -0,0 +1,10 @@
1
+ import * as React from "react";
2
+ interface AppFrameProps {
3
+ children: React.ReactNode;
4
+ breadcrumbs?: Array<{
5
+ label: string;
6
+ href?: string;
7
+ }>;
8
+ }
9
+ export declare function AppFrame({ children, breadcrumbs }: AppFrameProps): import("react/jsx-runtime").JSX.Element;
10
+ export {};
@@ -0,0 +1,7 @@
1
+ import * as React from "react";
2
+ import * as AccordionPrimitive from "@radix-ui/react-accordion";
3
+ declare const Accordion: React.ForwardRefExoticComponent<(AccordionPrimitive.AccordionSingleProps | AccordionPrimitive.AccordionMultipleProps) & React.RefAttributes<HTMLDivElement>>;
4
+ declare const AccordionItem: React.ForwardRefExoticComponent<Omit<AccordionPrimitive.AccordionItemProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
5
+ declare const AccordionTrigger: React.ForwardRefExoticComponent<Omit<AccordionPrimitive.AccordionTriggerProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
6
+ declare const AccordionContent: React.ForwardRefExoticComponent<Omit<AccordionPrimitive.AccordionContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
7
+ export { Accordion, AccordionItem, AccordionTrigger, AccordionContent };
@@ -0,0 +1,22 @@
1
+ import * as React from "react";
2
+ import * as AlertDialogPrimitive from "@radix-ui/react-alert-dialog";
3
+ declare const AlertDialog: React.FC<AlertDialogPrimitive.AlertDialogProps>;
4
+ declare const AlertDialogTrigger: React.ForwardRefExoticComponent<AlertDialogPrimitive.AlertDialogTriggerProps & React.RefAttributes<HTMLButtonElement>>;
5
+ declare const AlertDialogPortal: React.FC<AlertDialogPrimitive.AlertDialogPortalProps>;
6
+ declare const AlertDialogOverlay: React.ForwardRefExoticComponent<Omit<AlertDialogPrimitive.AlertDialogOverlayProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
7
+ declare const AlertDialogContent: React.ForwardRefExoticComponent<Omit<AlertDialogPrimitive.AlertDialogContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
8
+ declare const AlertDialogHeader: {
9
+ ({ className, ...props }: React.HTMLAttributes<HTMLDivElement>): import("react/jsx-runtime").JSX.Element;
10
+ displayName: string;
11
+ };
12
+ declare const AlertDialogFooter: {
13
+ ({ className, ...props }: React.HTMLAttributes<HTMLDivElement>): import("react/jsx-runtime").JSX.Element;
14
+ displayName: string;
15
+ };
16
+ declare const AlertDialogTitle: React.ForwardRefExoticComponent<Omit<AlertDialogPrimitive.AlertDialogTitleProps & React.RefAttributes<HTMLHeadingElement>, "ref"> & React.RefAttributes<HTMLHeadingElement>>;
17
+ declare const AlertDialogDescription: React.ForwardRefExoticComponent<Omit<AlertDialogPrimitive.AlertDialogDescriptionProps & React.RefAttributes<HTMLParagraphElement>, "ref"> & React.RefAttributes<HTMLParagraphElement>>;
18
+ declare const AlertDialogAction: React.ForwardRefExoticComponent<Omit<AlertDialogPrimitive.AlertDialogActionProps & React.RefAttributes<HTMLButtonElement>, "ref"> & {
19
+ variant?: "default" | "destructive";
20
+ } & React.RefAttributes<HTMLButtonElement>>;
21
+ declare const AlertDialogCancel: React.ForwardRefExoticComponent<Omit<AlertDialogPrimitive.AlertDialogCancelProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
22
+ export { AlertDialog, AlertDialogPortal, AlertDialogOverlay, AlertDialogTrigger, AlertDialogContent, AlertDialogHeader, AlertDialogFooter, AlertDialogTitle, AlertDialogDescription, AlertDialogAction, AlertDialogCancel, };
@@ -0,0 +1,15 @@
1
+ import { VariantProps } from 'class-variance-authority';
2
+ import * as React from "react";
3
+ declare const alertVariants: (props?: ({
4
+ variant?: "success" | "warning" | "default" | "destructive" | "info" | null | undefined;
5
+ } & import('class-variance-authority/types').ClassProp) | undefined) => string;
6
+ export interface AlertProps extends React.HTMLAttributes<HTMLDivElement>, VariantProps<typeof alertVariants> {
7
+ }
8
+ declare const Alert: React.ForwardRefExoticComponent<AlertProps & React.RefAttributes<HTMLDivElement>>;
9
+ export interface AlertTitleProps extends React.HTMLAttributes<HTMLHeadingElement> {
10
+ }
11
+ declare const AlertTitle: React.ForwardRefExoticComponent<AlertTitleProps & React.RefAttributes<HTMLHeadingElement>>;
12
+ export interface AlertDescriptionProps extends React.HTMLAttributes<HTMLDivElement> {
13
+ }
14
+ declare const AlertDescription: React.ForwardRefExoticComponent<AlertDescriptionProps & React.RefAttributes<HTMLDivElement>>;
15
+ export { Alert, AlertTitle, AlertDescription, alertVariants };
@@ -0,0 +1,3 @@
1
+ import * as AspectRatioPrimitive from "@radix-ui/react-aspect-ratio";
2
+ declare const AspectRatio: import('react').ForwardRefExoticComponent<AspectRatioPrimitive.AspectRatioProps & import('react').RefAttributes<HTMLDivElement>>;
3
+ export { AspectRatio };
@@ -0,0 +1,21 @@
1
+ import { VariantProps } from 'class-variance-authority';
2
+ import * as React from "react";
3
+ import * as AvatarPrimitive from "@radix-ui/react-avatar";
4
+ declare const avatarVariants: (props?: ({
5
+ size?: "xs" | "sm" | "md" | "lg" | "xl" | null | undefined;
6
+ shape?: "circle" | "rounded" | "square" | null | undefined;
7
+ } & import('class-variance-authority/types').ClassProp) | undefined) => string;
8
+ declare const avatarFallbackVariants: (props?: ({
9
+ size?: "xs" | "sm" | "md" | "lg" | "xl" | null | undefined;
10
+ shape?: "circle" | "rounded" | "square" | null | undefined;
11
+ variant?: "primary" | "secondary" | "accent" | "success" | "warning" | "error" | null | undefined;
12
+ } & import('class-variance-authority/types').ClassProp) | undefined) => string;
13
+ interface AvatarProps extends React.ComponentPropsWithoutRef<typeof AvatarPrimitive.Root>, VariantProps<typeof avatarVariants> {
14
+ }
15
+ declare const Avatar: React.ForwardRefExoticComponent<AvatarProps & React.RefAttributes<HTMLSpanElement>>;
16
+ declare const AvatarImage: React.ForwardRefExoticComponent<Omit<AvatarPrimitive.AvatarImageProps & React.RefAttributes<HTMLImageElement>, "ref"> & React.RefAttributes<HTMLImageElement>>;
17
+ interface AvatarFallbackProps extends React.ComponentPropsWithoutRef<typeof AvatarPrimitive.Fallback>, VariantProps<typeof avatarFallbackVariants> {
18
+ }
19
+ declare const AvatarFallback: React.ForwardRefExoticComponent<AvatarFallbackProps & React.RefAttributes<HTMLSpanElement>>;
20
+ export { Avatar, AvatarImage, AvatarFallback, avatarVariants, avatarFallbackVariants };
21
+ export type { AvatarProps, AvatarFallbackProps };
@@ -0,0 +1,11 @@
1
+ import { VariantProps } from 'class-variance-authority';
2
+ import * as React from "react";
3
+ declare const badgeVariants: (props?: ({
4
+ intent?: "success" | "warning" | "neutral" | "brand" | "destructive" | null | undefined;
5
+ appearance?: "solid" | "subtle" | "outline" | null | undefined;
6
+ size?: "sm" | "md" | "lg" | null | undefined;
7
+ } & import('class-variance-authority/types').ClassProp) | undefined) => string;
8
+ export interface BadgeProps extends React.HTMLAttributes<HTMLDivElement>, VariantProps<typeof badgeVariants> {
9
+ }
10
+ declare const Badge: React.ForwardRefExoticComponent<BadgeProps & React.RefAttributes<HTMLDivElement>>;
11
+ export { Badge, badgeVariants };
@@ -0,0 +1,21 @@
1
+ import * as React from "react";
2
+ declare const Breadcrumb: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement>, "ref"> & {
3
+ separator?: React.ComponentType<{
4
+ className?: string;
5
+ }>;
6
+ } & React.RefAttributes<HTMLElement>>;
7
+ declare const BreadcrumbList: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.OlHTMLAttributes<HTMLOListElement>, HTMLOListElement>, "ref"> & React.RefAttributes<HTMLOListElement>>;
8
+ declare const BreadcrumbItem: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.LiHTMLAttributes<HTMLLIElement>, HTMLLIElement>, "ref"> & React.RefAttributes<HTMLLIElement>>;
9
+ declare const BreadcrumbLink: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.AnchorHTMLAttributes<HTMLAnchorElement>, HTMLAnchorElement>, "ref"> & {
10
+ asChild?: boolean;
11
+ } & React.RefAttributes<HTMLAnchorElement>>;
12
+ declare const BreadcrumbPage: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "ref"> & React.RefAttributes<HTMLSpanElement>>;
13
+ declare const BreadcrumbSeparator: {
14
+ ({ children, className, ...props }: React.ComponentProps<"li">): import("react/jsx-runtime").JSX.Element;
15
+ displayName: string;
16
+ };
17
+ declare const BreadcrumbEllipsis: {
18
+ ({ className, ...props }: React.ComponentProps<"span">): import("react/jsx-runtime").JSX.Element;
19
+ displayName: string;
20
+ };
21
+ export { Breadcrumb, BreadcrumbList, BreadcrumbItem, BreadcrumbLink, BreadcrumbPage, BreadcrumbSeparator, BreadcrumbEllipsis, };
@@ -0,0 +1,18 @@
1
+ import { default as React } from 'react';
2
+ import { VariantProps } from 'class-variance-authority';
3
+ import { IconType } from './icon';
4
+ declare const buttonVariants: (props?: ({
5
+ variant?: "primary" | "success" | "default" | "destructive" | "ghost" | null | undefined;
6
+ size?: "sm" | "md" | "lg" | null | undefined;
7
+ iconPosition?: "none" | "left" | "right" | "only" | null | undefined;
8
+ } & import('class-variance-authority/types').ClassProp) | undefined) => string;
9
+ export interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof buttonVariants> {
10
+ icon?: IconType;
11
+ dropdown?: boolean;
12
+ /** Whether the dropdown is currently open (for accessibility) */
13
+ dropdownOpen?: boolean;
14
+ /** Loading state - shows spinner and disables interaction */
15
+ loading?: boolean;
16
+ }
17
+ declare const Button: React.ForwardRefExoticComponent<ButtonProps & React.RefAttributes<HTMLButtonElement>>;
18
+ export { Button, buttonVariants };
@@ -0,0 +1,7 @@
1
+ import { DayPickerProps } from 'react-day-picker';
2
+ export type CalendarProps = DayPickerProps;
3
+ declare function Calendar({ className, classNames, showOutsideDays, ...props }: CalendarProps): import("react/jsx-runtime").JSX.Element;
4
+ declare namespace Calendar {
5
+ var displayName: string;
6
+ }
7
+ export { Calendar };
@@ -0,0 +1,8 @@
1
+ import * as React from "react";
2
+ declare const Card: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
3
+ declare const CardHeader: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
4
+ declare const CardTitle: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLHeadingElement> & React.RefAttributes<HTMLParagraphElement>>;
5
+ declare const CardDescription: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLParagraphElement> & React.RefAttributes<HTMLParagraphElement>>;
6
+ declare const CardContent: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
7
+ declare const CardFooter: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
8
+ export { Card, CardHeader, CardFooter, CardTitle, CardDescription, CardContent };
@@ -0,0 +1,33 @@
1
+ export declare const chartColorSchemes: {
2
+ readonly bar: readonly ["#3B82F6", "#1D4ED8", "#1E40AF", "#1E3A8A", "#312E81", "#1E1B4B"];
3
+ readonly line: readonly ["#10B981", "#059669", "#047857", "#065F46", "#064E3B", "#022C22"];
4
+ readonly scatter: readonly ["#8B5CF6", "#7C3AED", "#6D28D9", "#5B21B6", "#4C1D95", "#312E81"];
5
+ };
6
+ export type ChartType = "bar" | "horizontal-bar" | "line" | "scatter";
7
+ export type ChartColorScheme = keyof typeof chartColorSchemes;
8
+ export interface ChartDataPoint {
9
+ [key: string]: string | number;
10
+ }
11
+ export interface ChartConfig {
12
+ [key: string]: {
13
+ label: string;
14
+ color?: string;
15
+ };
16
+ }
17
+ export interface ChartProps {
18
+ type: ChartType;
19
+ data: ChartDataPoint[];
20
+ config: ChartConfig;
21
+ className?: string;
22
+ height?: number;
23
+ width?: number;
24
+ onDataPointClick?: (data: ChartDataPoint, index: number) => void;
25
+ onDataPointHover?: (data: ChartDataPoint | null, index?: number) => void;
26
+ highlightedIndex?: number;
27
+ showGrid?: boolean;
28
+ showLegend?: boolean;
29
+ showTooltip?: boolean;
30
+ }
31
+ export declare function Chart({ type, data, config, className, height, width, onDataPointClick, onDataPointHover, highlightedIndex, showGrid, showLegend, showTooltip, ...props }: ChartProps): import("react/jsx-runtime").JSX.Element;
32
+ export declare const generateChartColors: (count: number, scheme?: ChartColorScheme) => ("#3B82F6" | "#1D4ED8" | "#1E40AF" | "#1E3A8A" | "#312E81" | "#1E1B4B" | "#10B981" | "#059669" | "#047857" | "#065F46" | "#064E3B" | "#022C22" | "#8B5CF6" | "#7C3AED" | "#6D28D9" | "#5B21B6" | "#4C1D95")[];
33
+ export declare const createChartConfig: (keys: string[], labels: string[], colors?: string[]) => ChartConfig;
@@ -0,0 +1,10 @@
1
+ import { VariantProps } from 'class-variance-authority';
2
+ import * as React from "react";
3
+ import * as CheckboxPrimitive from "@radix-ui/react-checkbox";
4
+ declare const checkboxVariants: (props?: ({
5
+ variant?: "error" | "default" | null | undefined;
6
+ } & import('class-variance-authority/types').ClassProp) | undefined) => string;
7
+ export interface CheckboxProps extends React.ComponentPropsWithoutRef<typeof CheckboxPrimitive.Root>, VariantProps<typeof checkboxVariants> {
8
+ }
9
+ declare const Checkbox: React.ForwardRefExoticComponent<CheckboxProps & React.RefAttributes<HTMLButtonElement>>;
10
+ export { Checkbox, checkboxVariants };
@@ -0,0 +1,5 @@
1
+ import * as CollapsiblePrimitive from "@radix-ui/react-collapsible";
2
+ declare const Collapsible: import('react').ForwardRefExoticComponent<CollapsiblePrimitive.CollapsibleProps & import('react').RefAttributes<HTMLDivElement>>;
3
+ declare const CollapsibleTrigger: import('react').ForwardRefExoticComponent<CollapsiblePrimitive.CollapsibleTriggerProps & import('react').RefAttributes<HTMLButtonElement>>;
4
+ declare const CollapsibleContent: import('react').ForwardRefExoticComponent<CollapsiblePrimitive.CollapsibleContentProps & import('react').RefAttributes<HTMLDivElement>>;
5
+ export { Collapsible, CollapsibleTrigger, CollapsibleContent };
@@ -0,0 +1,32 @@
1
+ export interface ComboboxOption {
2
+ value: string;
3
+ label: string;
4
+ disabled?: boolean;
5
+ }
6
+ export interface ComboboxProps {
7
+ options: ComboboxOption[];
8
+ value?: string;
9
+ onValueChange?: (value: string) => void;
10
+ placeholder?: string;
11
+ searchPlaceholder?: string;
12
+ emptyMessage?: string;
13
+ disabled?: boolean;
14
+ className?: string;
15
+ popoverClassName?: string;
16
+ triggerClassName?: string;
17
+ }
18
+ export declare function Combobox({ options, value, onValueChange, placeholder, searchPlaceholder, emptyMessage, disabled, className, popoverClassName, triggerClassName, }: ComboboxProps): import("react/jsx-runtime").JSX.Element;
19
+ export interface MultiComboboxProps {
20
+ options: ComboboxOption[];
21
+ values?: string[];
22
+ onValuesChange?: (values: string[]) => void;
23
+ placeholder?: string;
24
+ searchPlaceholder?: string;
25
+ emptyMessage?: string;
26
+ disabled?: boolean;
27
+ className?: string;
28
+ popoverClassName?: string;
29
+ triggerClassName?: string;
30
+ maxDisplayedItems?: number;
31
+ }
32
+ export declare function MultiCombobox({ options, values, onValuesChange, placeholder, searchPlaceholder, emptyMessage, disabled, className, popoverClassName, triggerClassName, maxDisplayedItems, }: MultiComboboxProps): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,82 @@
1
+ import { DialogProps } from '@radix-ui/react-dialog';
2
+ import * as React from "react";
3
+ declare const Command: React.ForwardRefExoticComponent<Omit<{
4
+ children?: React.ReactNode;
5
+ } & Pick<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React.HTMLAttributes<HTMLDivElement>> & {
6
+ ref?: React.Ref<HTMLDivElement>;
7
+ } & {
8
+ asChild?: boolean;
9
+ }, "key" | "asChild" | keyof React.HTMLAttributes<HTMLDivElement>> & {
10
+ label?: string;
11
+ shouldFilter?: boolean;
12
+ filter?: (value: string, search: string, keywords?: string[]) => number;
13
+ defaultValue?: string;
14
+ value?: string;
15
+ onValueChange?: (value: string) => void;
16
+ loop?: boolean;
17
+ disablePointerSelection?: boolean;
18
+ vimBindings?: boolean;
19
+ } & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
20
+ interface CommandDialogProps extends DialogProps {
21
+ }
22
+ declare const CommandDialog: ({ children, ...props }: CommandDialogProps) => import("react/jsx-runtime").JSX.Element;
23
+ declare const CommandInput: React.ForwardRefExoticComponent<Omit<Omit<Pick<Pick<React.DetailedHTMLProps<React.InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "key" | keyof React.InputHTMLAttributes<HTMLInputElement>> & {
24
+ ref?: React.Ref<HTMLInputElement>;
25
+ } & {
26
+ asChild?: boolean;
27
+ }, "key" | "asChild" | keyof React.InputHTMLAttributes<HTMLInputElement>>, "onChange" | "type" | "value"> & {
28
+ value?: string;
29
+ onValueChange?: (search: string) => void;
30
+ } & React.RefAttributes<HTMLInputElement>, "ref"> & React.RefAttributes<HTMLInputElement>>;
31
+ declare const CommandList: React.ForwardRefExoticComponent<Omit<{
32
+ children?: React.ReactNode;
33
+ } & Pick<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React.HTMLAttributes<HTMLDivElement>> & {
34
+ ref?: React.Ref<HTMLDivElement>;
35
+ } & {
36
+ asChild?: boolean;
37
+ }, "key" | "asChild" | keyof React.HTMLAttributes<HTMLDivElement>> & {
38
+ label?: string;
39
+ } & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
40
+ declare const CommandEmpty: React.ForwardRefExoticComponent<Omit<{
41
+ children?: React.ReactNode;
42
+ } & Pick<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React.HTMLAttributes<HTMLDivElement>> & {
43
+ ref?: React.Ref<HTMLDivElement>;
44
+ } & {
45
+ asChild?: boolean;
46
+ }, "key" | "asChild" | keyof React.HTMLAttributes<HTMLDivElement>> & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
47
+ declare const CommandGroup: React.ForwardRefExoticComponent<Omit<{
48
+ children?: React.ReactNode;
49
+ } & Omit<Pick<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React.HTMLAttributes<HTMLDivElement>> & {
50
+ ref?: React.Ref<HTMLDivElement>;
51
+ } & {
52
+ asChild?: boolean;
53
+ }, "key" | "asChild" | keyof React.HTMLAttributes<HTMLDivElement>>, "heading" | "value"> & {
54
+ heading?: React.ReactNode;
55
+ value?: string;
56
+ forceMount?: boolean;
57
+ } & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
58
+ declare const CommandSeparator: React.ForwardRefExoticComponent<Omit<Pick<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React.HTMLAttributes<HTMLDivElement>> & {
59
+ ref?: React.Ref<HTMLDivElement>;
60
+ } & {
61
+ asChild?: boolean;
62
+ }, "key" | "asChild" | keyof React.HTMLAttributes<HTMLDivElement>> & {
63
+ alwaysRender?: boolean;
64
+ } & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
65
+ declare const CommandItem: React.ForwardRefExoticComponent<Omit<{
66
+ children?: React.ReactNode;
67
+ } & Omit<Pick<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React.HTMLAttributes<HTMLDivElement>> & {
68
+ ref?: React.Ref<HTMLDivElement>;
69
+ } & {
70
+ asChild?: boolean;
71
+ }, "key" | "asChild" | keyof React.HTMLAttributes<HTMLDivElement>>, "onSelect" | "disabled" | "value"> & {
72
+ disabled?: boolean;
73
+ onSelect?: (value: string) => void;
74
+ value?: string;
75
+ keywords?: string[];
76
+ forceMount?: boolean;
77
+ } & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
78
+ declare const CommandShortcut: {
79
+ ({ className, ...props }: React.HTMLAttributes<HTMLSpanElement>): import("react/jsx-runtime").JSX.Element;
80
+ displayName: string;
81
+ };
82
+ export { Command, CommandDialog, CommandInput, CommandList, CommandEmpty, CommandGroup, CommandItem, CommandShortcut, CommandSeparator, };
@@ -0,0 +1,26 @@
1
+ export interface Country {
2
+ name: string;
3
+ alpha2: string;
4
+ alpha3: string;
5
+ numeric: string;
6
+ emoji?: string;
7
+ }
8
+ export interface CountryDropdownProps {
9
+ value?: string;
10
+ onValueChange?: (value: string) => void;
11
+ placeholder?: string;
12
+ searchPlaceholder?: string;
13
+ disabled?: boolean;
14
+ className?: string;
15
+ flagSize?: number;
16
+ showFlag?: boolean;
17
+ showCode?: boolean;
18
+ variant?: "default" | "slim";
19
+ priorityCountries?: string[];
20
+ }
21
+ export declare function CountryDropdown({ value, onValueChange, placeholder, searchPlaceholder, disabled, className, flagSize, showFlag, showCode, variant, priorityCountries, }: CountryDropdownProps): import("react/jsx-runtime").JSX.Element;
22
+ export declare function useCountryData(): {
23
+ countries: Country[];
24
+ getCountryByCode: (code: string) => Country | undefined;
25
+ getCountryByName: (name: string) => Country | undefined;
26
+ };
@@ -0,0 +1,17 @@
1
+ import { default as React } from 'react';
2
+ export declare const customIcons: {
3
+ readonly "chart-bar": import("react/jsx-runtime").JSX.Element;
4
+ readonly "chart-line": import("react/jsx-runtime").JSX.Element;
5
+ readonly "chart-dashline": import("react/jsx-runtime").JSX.Element;
6
+ readonly "chart-dashline-2": import("react/jsx-runtime").JSX.Element;
7
+ readonly "chart-dotline": import("react/jsx-runtime").JSX.Element;
8
+ readonly "chart-dot": import("react/jsx-runtime").JSX.Element;
9
+ readonly dot: import("react/jsx-runtime").JSX.Element;
10
+ readonly "bubble-size": import("react/jsx-runtime").JSX.Element;
11
+ readonly "broken-scale": import("react/jsx-runtime").JSX.Element;
12
+ readonly "ship-unload": import("react/jsx-runtime").JSX.Element;
13
+ readonly "ship-load": import("react/jsx-runtime").JSX.Element;
14
+ readonly "star-full": import("react/jsx-runtime").JSX.Element;
15
+ };
16
+ export type CustomIconName = keyof typeof customIcons;
17
+ export declare function addCustomIcon(name: string, iconElement: React.ReactNode): void;
@@ -0,0 +1,19 @@
1
+ import * as React from "react";
2
+ import * as DialogPrimitive from "@radix-ui/react-dialog";
3
+ declare const Dialog: React.FC<DialogPrimitive.DialogProps>;
4
+ declare const DialogTrigger: React.ForwardRefExoticComponent<DialogPrimitive.DialogTriggerProps & React.RefAttributes<HTMLButtonElement>>;
5
+ declare const DialogPortal: React.FC<DialogPrimitive.DialogPortalProps>;
6
+ declare const DialogClose: React.ForwardRefExoticComponent<DialogPrimitive.DialogCloseProps & React.RefAttributes<HTMLButtonElement>>;
7
+ declare const DialogOverlay: React.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogOverlayProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
8
+ declare const DialogContent: React.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
9
+ declare const DialogHeader: {
10
+ ({ className, ...props }: React.HTMLAttributes<HTMLDivElement>): import("react/jsx-runtime").JSX.Element;
11
+ displayName: string;
12
+ };
13
+ declare const DialogFooter: {
14
+ ({ className, ...props }: React.HTMLAttributes<HTMLDivElement>): import("react/jsx-runtime").JSX.Element;
15
+ displayName: string;
16
+ };
17
+ declare const DialogTitle: React.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogTitleProps & React.RefAttributes<HTMLHeadingElement>, "ref"> & React.RefAttributes<HTMLHeadingElement>>;
18
+ declare const DialogDescription: React.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogDescriptionProps & React.RefAttributes<HTMLParagraphElement>, "ref"> & React.RefAttributes<HTMLParagraphElement>>;
19
+ export { Dialog, DialogPortal, DialogOverlay, DialogClose, DialogTrigger, DialogContent, DialogHeader, DialogFooter, DialogTitle, DialogDescription, };
@@ -0,0 +1,28 @@
1
+ import * as React from "react";
2
+ import * as DropdownMenuPrimitive from "@radix-ui/react-dropdown-menu";
3
+ declare const DropDrawer: React.FC<DropdownMenuPrimitive.DropdownMenuProps>;
4
+ declare const DropDrawerTrigger: React.ForwardRefExoticComponent<DropdownMenuPrimitive.DropdownMenuTriggerProps & React.RefAttributes<HTMLButtonElement>>;
5
+ declare const DropDrawerGroup: React.ForwardRefExoticComponent<DropdownMenuPrimitive.DropdownMenuGroupProps & React.RefAttributes<HTMLDivElement>>;
6
+ declare const DropDrawerPortal: React.FC<DropdownMenuPrimitive.DropdownMenuPortalProps>;
7
+ declare const DropDrawerSub: React.FC<DropdownMenuPrimitive.DropdownMenuSubProps>;
8
+ declare const DropDrawerRadioGroup: React.ForwardRefExoticComponent<DropdownMenuPrimitive.DropdownMenuRadioGroupProps & React.RefAttributes<HTMLDivElement>>;
9
+ declare const DropDrawerSubTrigger: React.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuSubTriggerProps & React.RefAttributes<HTMLDivElement>, "ref"> & {
10
+ inset?: boolean;
11
+ } & React.RefAttributes<HTMLDivElement>>;
12
+ declare const DropDrawerSubContent: React.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuSubContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
13
+ declare const DropDrawerContent: React.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
14
+ declare const DropDrawerItem: React.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuItemProps & React.RefAttributes<HTMLDivElement>, "ref"> & {
15
+ inset?: boolean;
16
+ destructive?: boolean;
17
+ } & React.RefAttributes<HTMLDivElement>>;
18
+ declare const DropDrawerCheckboxItem: React.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuCheckboxItemProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
19
+ declare const DropDrawerRadioItem: React.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuRadioItemProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
20
+ declare const DropDrawerLabel: React.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuLabelProps & React.RefAttributes<HTMLDivElement>, "ref"> & {
21
+ inset?: boolean;
22
+ } & React.RefAttributes<HTMLDivElement>>;
23
+ declare const DropDrawerSeparator: React.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuSeparatorProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
24
+ declare const DropDrawerShortcut: {
25
+ ({ className, ...props }: React.HTMLAttributes<HTMLSpanElement>): import("react/jsx-runtime").JSX.Element;
26
+ displayName: string;
27
+ };
28
+ export { DropDrawer, DropDrawerTrigger, DropDrawerContent, DropDrawerItem, DropDrawerCheckboxItem, DropDrawerRadioItem, DropDrawerLabel, DropDrawerSeparator, DropDrawerShortcut, DropDrawerGroup, DropDrawerPortal, DropDrawerSub, DropDrawerSubContent, DropDrawerSubTrigger, DropDrawerRadioGroup, };