@machinemetrics/mm-react-components 0.2.3-1 → 0.2.3-3

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 (72) hide show
  1. package/README.md +51 -14
  2. package/dist/App.d.ts.map +1 -1
  3. package/dist/README.md +51 -14
  4. package/dist/components/ui/alert-dialog.d.ts +15 -0
  5. package/dist/components/ui/alert-dialog.d.ts.map +1 -0
  6. package/dist/components/ui/alert.d.ts +10 -0
  7. package/dist/components/ui/alert.d.ts.map +1 -0
  8. package/dist/components/ui/avatar.d.ts +7 -0
  9. package/dist/components/ui/avatar.d.ts.map +1 -0
  10. package/dist/components/ui/breadcrumb.d.ts +12 -0
  11. package/dist/components/ui/breadcrumb.d.ts.map +1 -0
  12. package/dist/components/ui/button.d.ts +1 -1
  13. package/dist/components/ui/button.d.ts.map +1 -1
  14. package/dist/components/ui/card.d.ts +10 -0
  15. package/dist/components/ui/card.d.ts.map +1 -0
  16. package/dist/components/ui/chart.d.ts +41 -0
  17. package/dist/components/ui/chart.d.ts.map +1 -0
  18. package/dist/components/ui/form.d.ts +25 -0
  19. package/dist/components/ui/form.d.ts.map +1 -0
  20. package/dist/components/ui/separator.d.ts +5 -0
  21. package/dist/components/ui/separator.d.ts.map +1 -0
  22. package/dist/components/ui/sonner.d.ts +4 -0
  23. package/dist/components/ui/sonner.d.ts.map +1 -0
  24. package/dist/components/ui/textarea.d.ts +4 -0
  25. package/dist/components/ui/textarea.d.ts.map +1 -0
  26. package/dist/docs/GETTING_STARTED.md +285 -0
  27. package/dist/index.css +20 -29
  28. package/dist/index.d.ts +13 -2
  29. package/dist/index.d.ts.map +1 -1
  30. package/dist/main.d.ts +2 -2
  31. package/dist/main.d.ts.map +1 -1
  32. package/dist/mm-react-components.es.js +10964 -927
  33. package/dist/mm-react-components.es.js.map +1 -1
  34. package/dist/mm-react-components.umd.js +27 -9
  35. package/dist/mm-react-components.umd.js.map +1 -1
  36. package/dist/preview/AlertDialogPreview.d.ts +2 -0
  37. package/dist/preview/AlertDialogPreview.d.ts.map +1 -0
  38. package/dist/preview/AlertPreview.d.ts +2 -0
  39. package/dist/preview/AlertPreview.d.ts.map +1 -0
  40. package/dist/preview/AvatarPreview.d.ts +2 -0
  41. package/dist/preview/AvatarPreview.d.ts.map +1 -0
  42. package/dist/preview/BreadcrumbPreview.d.ts +2 -0
  43. package/dist/preview/BreadcrumbPreview.d.ts.map +1 -0
  44. package/dist/preview/CardPreview.d.ts +2 -0
  45. package/dist/preview/CardPreview.d.ts.map +1 -0
  46. package/dist/preview/ChartPreview.d.ts +2 -0
  47. package/dist/preview/ChartPreview.d.ts.map +1 -0
  48. package/dist/preview/CheckboxPreview.d.ts.map +1 -1
  49. package/dist/preview/DataTablePreview.d.ts.map +1 -1
  50. package/dist/preview/FormPreview.d.ts +2 -0
  51. package/dist/preview/FormPreview.d.ts.map +1 -0
  52. package/dist/preview/InputPreview.d.ts.map +1 -1
  53. package/dist/preview/LabelPreview.d.ts.map +1 -1
  54. package/dist/preview/RadioGroupPreview.d.ts.map +1 -1
  55. package/dist/preview/SeparatorPreview.d.ts +2 -0
  56. package/dist/preview/SeparatorPreview.d.ts.map +1 -0
  57. package/dist/preview/SonnerPreview.d.ts +2 -0
  58. package/dist/preview/SonnerPreview.d.ts.map +1 -0
  59. package/dist/preview/TabsPreview.d.ts.map +1 -1
  60. package/dist/preview/TextareaPreview.d.ts +2 -0
  61. package/dist/preview/TextareaPreview.d.ts.map +1 -0
  62. package/dist/preview/data-table/data-table-preview_column-content.d.ts +1 -1
  63. package/dist/preview/data-table/data-table-preview_column-content.d.ts.map +1 -1
  64. package/dist/preview/page-header/PageHeaderPreview.d.ts.map +1 -1
  65. package/dist/themes/base.css +536 -0
  66. package/dist/themes/complete.css +2 -2
  67. package/package.json +30 -3
  68. package/src/index.css +20 -29
  69. package/src/themes/base.css +536 -0
  70. package/src/themes/complete.css +2 -2
  71. package/dist/tailwind.config.export.js +0 -153
  72. package/tailwind.config.export.js +0 -153
package/README.md CHANGED
@@ -19,28 +19,62 @@ npm install @machinemetrics/mm-react-components
19
19
 
20
20
  ## Quick Start
21
21
 
22
- ### 1. Install Dependencies
22
+ ### 🚀 Automated Setup (Recommended)
23
+
24
+ The fastest way to get started:
23
25
 
24
26
  ```bash
25
- npm install @machinemetrics/mm-react-components tailwindcss postcss autoprefixer
27
+ # Install the package
28
+ npm install @machinemetrics/mm-react-components
29
+
30
+ # Run the automated setup
31
+ npx @machinemetrics/mm-react-components/setup
26
32
  ```
27
33
 
28
- ### 2. Configure Tailwind CSS
34
+ This will automatically:
35
+
36
+ - ✅ Copy Tailwind configuration
37
+ - ✅ Create PostCSS configuration
38
+ - ✅ Set up the complete theme
39
+ - ✅ Create an example component
40
+ - ✅ Generate all necessary files
29
41
 
30
- Copy the Tailwind configuration to your project:
42
+ ### 📋 Manual Setup
43
+
44
+ If you prefer manual setup:
45
+
46
+ #### 1. Install Dependencies
47
+
48
+ ```bash
49
+ npm install @machinemetrics/mm-react-components tailwindcss postcss autoprefixer
50
+ ```
51
+
52
+ #### 2. Configure Tailwind CSS
31
53
 
32
54
  ```bash
33
55
  cp node_modules/@machinemetrics/mm-react-components/tailwind.config.export.js tailwind.config.js
34
56
  ```
35
57
 
36
- ### 3. Import Complete Theme (Recommended)
58
+ Note: The exported config is the main config (no preview-only utilities). The preview app in this repo uses a separate `tailwind.preview.config.js` that imports the main config and adds preview utilities.
59
+
60
+ #### 3. Import Theme (Recommended: JS imports)
61
+
62
+ Use app-level JavaScript/TypeScript imports so bundlers resolve package subpaths consistently and you can toggle themes at runtime:
63
+
64
+ ```ts
65
+ // In your main entry (e.g., src/main.tsx)
66
+ import '@machinemetrics/mm-react-components/styles';
67
+ import '@machinemetrics/mm-react-components/themes/carbide';
68
+ document.documentElement.classList.add('carbide');
69
+ ```
70
+
71
+ Alternatively, you can import the complete theme in CSS:
37
72
 
38
73
  ```css
39
- /* In your main CSS file - one import gets everything! */
40
74
  @import '@machinemetrics/mm-react-components/themes/complete';
41
75
  ```
42
76
 
43
- **That's it!** This single import includes:
77
+ **What's included:**
44
78
 
45
79
  - ✅ Tailwind CSS reset
46
80
  - ✅ Base theme variables (OKLCH color system)
@@ -49,7 +83,7 @@ cp node_modules/@machinemetrics/mm-react-components/tailwind.config.export.js ta
49
83
  - ✅ Dark mode support
50
84
  - ✅ Animations and utilities
51
85
 
52
- ### 4. Use Components
86
+ #### 4. Use Components
53
87
 
54
88
  ```tsx
55
89
  import { Button, Input } from '@machinemetrics/mm-react-components';
@@ -64,9 +98,11 @@ function App() {
64
98
  }
65
99
  ```
66
100
 
67
- ### 5. Complete Setup Guide
101
+ ### 📚 Documentation
68
102
 
69
- For detailed setup instructions and alternative import methods, see the [Tailwind Setup Guide](./docs/TAILWIND_SETUP.md).
103
+ - [Getting Started Guide](./docs/GETTING_STARTED.md) - Complete setup guide
104
+ - [Tailwind Setup Guide](./docs/TAILWIND_SETUP.md) - Detailed configuration
105
+ - [Quick Start Template](./templates/quick-start.html) - Live demo
70
106
 
71
107
  ## Theme System
72
108
 
@@ -88,11 +124,12 @@ The component library includes a comprehensive theme system with two main themes
88
124
 
89
125
  ### Using Themes
90
126
 
91
- #### Option 1: Complete Theme (Recommended)
127
+ #### Option 1: JS Imports (Recommended)
92
128
 
93
- ```css
94
- /* One import gets everything - easiest setup */
95
- @import '@machinemetrics/mm-react-components/themes/complete';
129
+ ```ts
130
+ import '@machinemetrics/mm-react-components/styles';
131
+ import '@machinemetrics/mm-react-components/themes/carbide';
132
+ document.documentElement.classList.add('carbide');
96
133
  ```
97
134
 
98
135
  #### Option 2: Manual Theme Import
package/dist/App.d.ts.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"App.d.ts","sourceRoot":"","sources":["../src/App.tsx"],"names":[],"mappings":"AAwEA,iBAAS,GAAG,4CAmPX;AAED,eAAe,GAAG,CAAC"}
1
+ {"version":3,"file":"App.d.ts","sourceRoot":"","sources":["../src/App.tsx"],"names":[],"mappings":"AAsEA,iBAAS,GAAG,4CAmPX;AAED,eAAe,GAAG,CAAC"}
package/dist/README.md CHANGED
@@ -19,28 +19,62 @@ npm install @machinemetrics/mm-react-components
19
19
 
20
20
  ## Quick Start
21
21
 
22
- ### 1. Install Dependencies
22
+ ### 🚀 Automated Setup (Recommended)
23
+
24
+ The fastest way to get started:
23
25
 
24
26
  ```bash
25
- npm install @machinemetrics/mm-react-components tailwindcss postcss autoprefixer
27
+ # Install the package
28
+ npm install @machinemetrics/mm-react-components
29
+
30
+ # Run the automated setup
31
+ npx @machinemetrics/mm-react-components/setup
26
32
  ```
27
33
 
28
- ### 2. Configure Tailwind CSS
34
+ This will automatically:
35
+
36
+ - ✅ Copy Tailwind configuration
37
+ - ✅ Create PostCSS configuration
38
+ - ✅ Set up the complete theme
39
+ - ✅ Create an example component
40
+ - ✅ Generate all necessary files
29
41
 
30
- Copy the Tailwind configuration to your project:
42
+ ### 📋 Manual Setup
43
+
44
+ If you prefer manual setup:
45
+
46
+ #### 1. Install Dependencies
47
+
48
+ ```bash
49
+ npm install @machinemetrics/mm-react-components tailwindcss postcss autoprefixer
50
+ ```
51
+
52
+ #### 2. Configure Tailwind CSS
31
53
 
32
54
  ```bash
33
55
  cp node_modules/@machinemetrics/mm-react-components/tailwind.config.export.js tailwind.config.js
34
56
  ```
35
57
 
36
- ### 3. Import Complete Theme (Recommended)
58
+ Note: The exported config is the main config (no preview-only utilities). The preview app in this repo uses a separate `tailwind.preview.config.js` that imports the main config and adds preview utilities.
59
+
60
+ #### 3. Import Theme (Recommended: JS imports)
61
+
62
+ Use app-level JavaScript/TypeScript imports so bundlers resolve package subpaths consistently and you can toggle themes at runtime:
63
+
64
+ ```ts
65
+ // In your main entry (e.g., src/main.tsx)
66
+ import '@machinemetrics/mm-react-components/styles';
67
+ import '@machinemetrics/mm-react-components/themes/carbide';
68
+ document.documentElement.classList.add('carbide');
69
+ ```
70
+
71
+ Alternatively, you can import the complete theme in CSS:
37
72
 
38
73
  ```css
39
- /* In your main CSS file - one import gets everything! */
40
74
  @import '@machinemetrics/mm-react-components/themes/complete';
41
75
  ```
42
76
 
43
- **That's it!** This single import includes:
77
+ **What's included:**
44
78
 
45
79
  - ✅ Tailwind CSS reset
46
80
  - ✅ Base theme variables (OKLCH color system)
@@ -49,7 +83,7 @@ cp node_modules/@machinemetrics/mm-react-components/tailwind.config.export.js ta
49
83
  - ✅ Dark mode support
50
84
  - ✅ Animations and utilities
51
85
 
52
- ### 4. Use Components
86
+ #### 4. Use Components
53
87
 
54
88
  ```tsx
55
89
  import { Button, Input } from '@machinemetrics/mm-react-components';
@@ -64,9 +98,11 @@ function App() {
64
98
  }
65
99
  ```
66
100
 
67
- ### 5. Complete Setup Guide
101
+ ### 📚 Documentation
68
102
 
69
- For detailed setup instructions and alternative import methods, see the [Tailwind Setup Guide](./docs/TAILWIND_SETUP.md).
103
+ - [Getting Started Guide](./docs/GETTING_STARTED.md) - Complete setup guide
104
+ - [Tailwind Setup Guide](./docs/TAILWIND_SETUP.md) - Detailed configuration
105
+ - [Quick Start Template](./templates/quick-start.html) - Live demo
70
106
 
71
107
  ## Theme System
72
108
 
@@ -88,11 +124,12 @@ The component library includes a comprehensive theme system with two main themes
88
124
 
89
125
  ### Using Themes
90
126
 
91
- #### Option 1: Complete Theme (Recommended)
127
+ #### Option 1: JS Imports (Recommended)
92
128
 
93
- ```css
94
- /* One import gets everything - easiest setup */
95
- @import '@machinemetrics/mm-react-components/themes/complete';
129
+ ```ts
130
+ import '@machinemetrics/mm-react-components/styles';
131
+ import '@machinemetrics/mm-react-components/themes/carbide';
132
+ document.documentElement.classList.add('carbide');
96
133
  ```
97
134
 
98
135
  #### Option 2: Manual Theme Import
@@ -0,0 +1,15 @@
1
+ import * as React from 'react';
2
+ import * as AlertDialogPrimitive from '@radix-ui/react-alert-dialog';
3
+ declare function AlertDialog({ ...props }: React.ComponentProps<typeof AlertDialogPrimitive.Root>): import("react/jsx-runtime").JSX.Element;
4
+ declare function AlertDialogTrigger({ ...props }: React.ComponentProps<typeof AlertDialogPrimitive.Trigger>): import("react/jsx-runtime").JSX.Element;
5
+ declare function AlertDialogPortal({ ...props }: React.ComponentProps<typeof AlertDialogPrimitive.Portal>): import("react/jsx-runtime").JSX.Element;
6
+ declare function AlertDialogOverlay({ className, ...props }: React.ComponentProps<typeof AlertDialogPrimitive.Overlay>): import("react/jsx-runtime").JSX.Element;
7
+ declare function AlertDialogContent({ className, ...props }: React.ComponentProps<typeof AlertDialogPrimitive.Content>): import("react/jsx-runtime").JSX.Element;
8
+ declare function AlertDialogHeader({ className, ...props }: React.ComponentProps<'div'>): import("react/jsx-runtime").JSX.Element;
9
+ declare function AlertDialogFooter({ className, ...props }: React.ComponentProps<'div'>): import("react/jsx-runtime").JSX.Element;
10
+ declare function AlertDialogTitle({ className, ...props }: React.ComponentProps<typeof AlertDialogPrimitive.Title>): import("react/jsx-runtime").JSX.Element;
11
+ declare function AlertDialogDescription({ className, ...props }: React.ComponentProps<typeof AlertDialogPrimitive.Description>): import("react/jsx-runtime").JSX.Element;
12
+ declare function AlertDialogAction({ className, ...props }: React.ComponentProps<typeof AlertDialogPrimitive.Action>): import("react/jsx-runtime").JSX.Element;
13
+ declare function AlertDialogCancel({ className, ...props }: React.ComponentProps<typeof AlertDialogPrimitive.Cancel>): import("react/jsx-runtime").JSX.Element;
14
+ export { AlertDialog, AlertDialogPortal, AlertDialogOverlay, AlertDialogTrigger, AlertDialogContent, AlertDialogHeader, AlertDialogFooter, AlertDialogTitle, AlertDialogDescription, AlertDialogAction, AlertDialogCancel, };
15
+ //# sourceMappingURL=alert-dialog.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"alert-dialog.d.ts","sourceRoot":"","sources":["../../../src/components/ui/alert-dialog.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,oBAAoB,MAAM,8BAA8B,CAAC;AAKrE,iBAAS,WAAW,CAAC,EACnB,GAAG,KAAK,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SAAS,EACT,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,oBAAoB,CAAC,MAAM,CAAC,2CAO1D;AAED,OAAO,EACL,WAAW,EACX,iBAAiB,EACjB,kBAAkB,EAClB,kBAAkB,EAClB,kBAAkB,EAClB,iBAAiB,EACjB,iBAAiB,EACjB,gBAAgB,EAChB,sBAAsB,EACtB,iBAAiB,EACjB,iBAAiB,GAClB,CAAC"}
@@ -0,0 +1,10 @@
1
+ import * as React from 'react';
2
+ import { type VariantProps } from 'class-variance-authority';
3
+ declare const alertVariants: (props?: ({
4
+ variant?: "default" | "destructive" | null | undefined;
5
+ } & import("class-variance-authority/types").ClassProp) | undefined) => string;
6
+ declare function Alert({ className, variant, ...props }: React.ComponentProps<'div'> & VariantProps<typeof alertVariants>): import("react/jsx-runtime").JSX.Element;
7
+ declare function AlertTitle({ className, ...props }: React.ComponentProps<'div'>): import("react/jsx-runtime").JSX.Element;
8
+ declare function AlertDescription({ className, ...props }: React.ComponentProps<'div'>): import("react/jsx-runtime").JSX.Element;
9
+ export { Alert, AlertTitle, AlertDescription };
10
+ //# sourceMappingURL=alert.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"alert.d.ts","sourceRoot":"","sources":["../../../src/components/ui/alert.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAIlE,QAAA,MAAM,aAAa;;8EAclB,CAAC;AAEF,iBAAS,KAAK,CAAC,EACb,SAAS,EACT,OAAO,EACP,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,GAAG,YAAY,CAAC,OAAO,aAAa,CAAC,2CASlE;AAED,iBAAS,UAAU,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,2CAWvE;AAED,iBAAS,gBAAgB,CAAC,EACxB,SAAS,EACT,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,2CAW7B;AAED,OAAO,EAAE,KAAK,EAAE,UAAU,EAAE,gBAAgB,EAAE,CAAC"}
@@ -0,0 +1,7 @@
1
+ import * as React from 'react';
2
+ import * as AvatarPrimitive from '@radix-ui/react-avatar';
3
+ declare function Avatar({ className, ...props }: React.ComponentProps<typeof AvatarPrimitive.Root>): import("react/jsx-runtime").JSX.Element;
4
+ declare function AvatarImage({ className, ...props }: React.ComponentProps<typeof AvatarPrimitive.Image>): import("react/jsx-runtime").JSX.Element;
5
+ declare function AvatarFallback({ className, ...props }: React.ComponentProps<typeof AvatarPrimitive.Fallback>): import("react/jsx-runtime").JSX.Element;
6
+ export { Avatar, AvatarImage, AvatarFallback };
7
+ //# sourceMappingURL=avatar.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"avatar.d.ts","sourceRoot":"","sources":["../../../src/components/ui/avatar.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,eAAe,MAAM,wBAAwB,CAAC;AAI1D,iBAAS,MAAM,CAAC,EACd,SAAS,EACT,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,eAAe,CAAC,IAAI,CAAC,2CAWnD;AAED,iBAAS,WAAW,CAAC,EACnB,SAAS,EACT,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,eAAe,CAAC,KAAK,CAAC,2CAQpD;AAED,iBAAS,cAAc,CAAC,EACtB,SAAS,EACT,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,eAAe,CAAC,QAAQ,CAAC,2CAWvD;AAED,OAAO,EAAE,MAAM,EAAE,WAAW,EAAE,cAAc,EAAE,CAAC"}
@@ -0,0 +1,12 @@
1
+ import * as React from 'react';
2
+ declare function Breadcrumb({ ...props }: React.ComponentProps<'nav'>): import("react/jsx-runtime").JSX.Element;
3
+ declare function BreadcrumbList({ className, ...props }: React.ComponentProps<'ol'>): import("react/jsx-runtime").JSX.Element;
4
+ declare function BreadcrumbItem({ className, ...props }: React.ComponentProps<'li'>): import("react/jsx-runtime").JSX.Element;
5
+ declare function BreadcrumbLink({ asChild, className, ...props }: React.ComponentProps<'a'> & {
6
+ asChild?: boolean;
7
+ }): import("react/jsx-runtime").JSX.Element;
8
+ declare function BreadcrumbPage({ className, ...props }: React.ComponentProps<'span'>): import("react/jsx-runtime").JSX.Element;
9
+ declare function BreadcrumbSeparator({ children, className, ...props }: React.ComponentProps<'li'>): import("react/jsx-runtime").JSX.Element;
10
+ declare function BreadcrumbEllipsis({ className, ...props }: React.ComponentProps<'span'>): import("react/jsx-runtime").JSX.Element;
11
+ export { Breadcrumb, BreadcrumbList, BreadcrumbItem, BreadcrumbLink, BreadcrumbPage, BreadcrumbSeparator, BreadcrumbEllipsis, };
12
+ //# sourceMappingURL=breadcrumb.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"breadcrumb.d.ts","sourceRoot":"","sources":["../../../src/components/ui/breadcrumb.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAM/B,iBAAS,UAAU,CAAC,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,2CAE5D;AAED,iBAAS,cAAc,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,IAAI,CAAC,2CAW1E;AAED,iBAAS,cAAc,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,IAAI,CAAC,2CAQ1E;AAED,iBAAS,cAAc,CAAC,EACtB,OAAO,EACP,SAAS,EACT,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,GAAG,CAAC,GAAG;IAC7B,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB,2CAUA;AAED,iBAAS,cAAc,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,MAAM,CAAC,2CAW5E;AAED,iBAAS,mBAAmB,CAAC,EAC3B,QAAQ,EACR,SAAS,EACT,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,IAAI,CAAC,2CAY5B;AAED,iBAAS,kBAAkB,CAAC,EAC1B,SAAS,EACT,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,MAAM,CAAC,2CAa9B;AAED,OAAO,EACL,UAAU,EACV,cAAc,EACd,cAAc,EACd,cAAc,EACd,cAAc,EACd,mBAAmB,EACnB,kBAAkB,GACnB,CAAC"}
@@ -1,7 +1,7 @@
1
1
  import * as React from 'react';
2
2
  import { type VariantProps } from 'class-variance-authority';
3
3
  declare const buttonVariants: (props?: ({
4
- variant?: "link" | "default" | "destructive" | "outline" | "secondary" | "ghost" | null | undefined;
4
+ variant?: "default" | "destructive" | "outline" | "secondary" | "ghost" | "link" | null | undefined;
5
5
  size?: "default" | "sm" | "lg" | "icon" | "icon-sm" | "icon-lg" | null | undefined;
6
6
  } & import("class-variance-authority/types").ClassProp) | undefined) => string;
7
7
  declare function Button({ className, variant, size, asChild, ...props }: React.ComponentProps<'button'> & VariantProps<typeof buttonVariants> & {
@@ -1 +1 @@
1
- {"version":3,"file":"button.d.ts","sourceRoot":"","sources":["../../../src/components/ui/button.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAIlE,QAAA,MAAM,cAAc;;;8EAgCnB,CAAC;AAEF,iBAAS,MAAM,CAAC,EACd,SAAS,EACT,OAAO,EACP,IAAI,EACJ,OAAe,EACf,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,QAAQ,CAAC,GAC/B,YAAY,CAAC,OAAO,cAAc,CAAC,GAAG;IACpC,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB,2CAYF;AAED,OAAO,EAAE,MAAM,EAAE,cAAc,EAAE,CAAC"}
1
+ {"version":3,"file":"button.d.ts","sourceRoot":"","sources":["../../../src/components/ui/button.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAIlE,QAAA,MAAM,cAAc;;;8EA8BnB,CAAC;AAEF,iBAAS,MAAM,CAAC,EACd,SAAS,EACT,OAAO,EACP,IAAI,EACJ,OAAe,EACf,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,QAAQ,CAAC,GAC/B,YAAY,CAAC,OAAO,cAAc,CAAC,GAAG;IACpC,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB,2CAUF;AAED,OAAO,EAAE,MAAM,EAAE,cAAc,EAAE,CAAC"}
@@ -0,0 +1,10 @@
1
+ import * as React from 'react';
2
+ declare function Card({ className, ...props }: React.ComponentProps<'div'>): import("react/jsx-runtime").JSX.Element;
3
+ declare function CardHeader({ className, ...props }: React.ComponentProps<'div'>): import("react/jsx-runtime").JSX.Element;
4
+ declare function CardTitle({ className, ...props }: React.ComponentProps<'div'>): import("react/jsx-runtime").JSX.Element;
5
+ declare function CardDescription({ className, ...props }: React.ComponentProps<'div'>): import("react/jsx-runtime").JSX.Element;
6
+ declare function CardAction({ className, ...props }: React.ComponentProps<'div'>): import("react/jsx-runtime").JSX.Element;
7
+ declare function CardContent({ className, ...props }: React.ComponentProps<'div'>): import("react/jsx-runtime").JSX.Element;
8
+ declare function CardFooter({ className, ...props }: React.ComponentProps<'div'>): import("react/jsx-runtime").JSX.Element;
9
+ export { Card, CardHeader, CardFooter, CardTitle, CardAction, CardDescription, CardContent, };
10
+ //# sourceMappingURL=card.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"card.d.ts","sourceRoot":"","sources":["../../../src/components/ui/card.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAI/B,iBAAS,IAAI,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,2CAWjE;AAED,iBAAS,UAAU,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,2CAWvE;AAED,iBAAS,SAAS,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,2CAQtE;AAED,iBAAS,eAAe,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,2CAQ5E;AAED,iBAAS,UAAU,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,2CAWvE;AAED,iBAAS,WAAW,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,2CAQxE;AAED,iBAAS,UAAU,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,2CAQvE;AAED,OAAO,EACL,IAAI,EACJ,UAAU,EACV,UAAU,EACV,SAAS,EACT,UAAU,EACV,eAAe,EACf,WAAW,GACZ,CAAC"}
@@ -0,0 +1,41 @@
1
+ import * as React from 'react';
2
+ import * as RechartsPrimitive from 'recharts';
3
+ declare const THEMES: {
4
+ readonly light: "";
5
+ readonly dark: ".dark";
6
+ };
7
+ export type ChartConfig = {
8
+ [k in string]: {
9
+ label?: React.ReactNode;
10
+ icon?: React.ComponentType;
11
+ } & ({
12
+ color?: string;
13
+ theme?: never;
14
+ } | {
15
+ color?: never;
16
+ theme: Record<keyof typeof THEMES, string>;
17
+ });
18
+ };
19
+ declare function ChartContainer({ id, className, children, config, ...props }: React.ComponentProps<'div'> & {
20
+ config: ChartConfig;
21
+ children: React.ComponentProps<typeof RechartsPrimitive.ResponsiveContainer>['children'];
22
+ }): import("react/jsx-runtime").JSX.Element;
23
+ declare const ChartStyle: ({ id, config }: {
24
+ id: string;
25
+ config: ChartConfig;
26
+ }) => import("react/jsx-runtime").JSX.Element | null;
27
+ declare const ChartTooltip: typeof RechartsPrimitive.Tooltip;
28
+ declare function ChartTooltipContent({ active, payload, className, indicator, hideLabel, hideIndicator, label, labelFormatter, labelClassName, formatter, color, nameKey, labelKey, }: React.ComponentProps<typeof RechartsPrimitive.Tooltip> & React.ComponentProps<'div'> & {
29
+ hideLabel?: boolean;
30
+ hideIndicator?: boolean;
31
+ indicator?: 'line' | 'dot' | 'dashed';
32
+ nameKey?: string;
33
+ labelKey?: string;
34
+ }): import("react/jsx-runtime").JSX.Element | null;
35
+ declare const ChartLegend: typeof RechartsPrimitive.Legend;
36
+ declare function ChartLegendContent({ className, hideIcon, payload, verticalAlign, nameKey, }: React.ComponentProps<'div'> & Pick<RechartsPrimitive.LegendProps, 'payload' | 'verticalAlign'> & {
37
+ hideIcon?: boolean;
38
+ nameKey?: string;
39
+ }): import("react/jsx-runtime").JSX.Element | null;
40
+ export { ChartContainer, ChartTooltip, ChartTooltipContent, ChartLegend, ChartLegendContent, ChartStyle, };
41
+ //# sourceMappingURL=chart.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"chart.d.ts","sourceRoot":"","sources":["../../../src/components/ui/chart.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,iBAAiB,MAAM,UAAU,CAAC;AAK9C,QAAA,MAAM,MAAM;;;CAAwC,CAAC;AAErD,MAAM,MAAM,WAAW,GAAG;KACvB,CAAC,IAAI,MAA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C,EAAE,MAAM,CAAC;IACjB,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB,kDA2HF;AAED,QAAA,MAAM,WAAW,iCAA2B,CAAC;AAE7C,iBAAS,kBAAkB,CAAC,EAC1B,SAAS,EACT,QAAgB,EAChB,OAAO,EACP,aAAwB,EACxB,OAAO,GACR,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,GAC5B,IAAI,CAAC,iBAAiB,CAAC,WAAW,EAAE,SAAS,GAAG,eAAe,CAAC,GAAG;IACjE,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB,kDA4CF;AAyCD,OAAO,EACL,cAAc,EACd,YAAY,EACZ,mBAAmB,EACnB,WAAW,EACX,kBAAkB,EAClB,UAAU,GACX,CAAC"}
@@ -0,0 +1,25 @@
1
+ import * as React from 'react';
2
+ import * as LabelPrimitive from '@radix-ui/react-label';
3
+ import { Slot } from '@radix-ui/react-slot';
4
+ import { type ControllerProps, type FieldPath, type FieldValues } from 'react-hook-form';
5
+ declare const Form: <TFieldValues extends FieldValues, TContext = any, TTransformedValues = TFieldValues>(props: import("react-hook-form").FormProviderProps<TFieldValues, TContext, TTransformedValues>) => React.JSX.Element;
6
+ declare const FormField: <TFieldValues extends FieldValues = FieldValues, TName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>>({ ...props }: ControllerProps<TFieldValues, TName>) => import("react/jsx-runtime").JSX.Element;
7
+ declare const useFormField: () => {
8
+ invalid: boolean;
9
+ isDirty: boolean;
10
+ isTouched: boolean;
11
+ isValidating: boolean;
12
+ error?: import("react-hook-form").FieldError;
13
+ id: string;
14
+ name: string;
15
+ formItemId: string;
16
+ formDescriptionId: string;
17
+ formMessageId: string;
18
+ };
19
+ declare function FormItem({ className, ...props }: React.ComponentProps<'div'>): import("react/jsx-runtime").JSX.Element;
20
+ declare function FormLabel({ className, ...props }: React.ComponentProps<typeof LabelPrimitive.Root>): import("react/jsx-runtime").JSX.Element;
21
+ declare function FormControl({ ...props }: React.ComponentProps<typeof Slot>): import("react/jsx-runtime").JSX.Element;
22
+ declare function FormDescription({ className, ...props }: React.ComponentProps<'p'>): import("react/jsx-runtime").JSX.Element;
23
+ declare function FormMessage({ className, ...props }: React.ComponentProps<'p'>): import("react/jsx-runtime").JSX.Element | null;
24
+ export { useFormField, Form, FormItem, FormLabel, FormControl, FormDescription, FormMessage, FormField, };
25
+ //# sourceMappingURL=form.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"form.d.ts","sourceRoot":"","sources":["../../../src/components/ui/form.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,cAAc,MAAM,uBAAuB,CAAC;AACxD,OAAO,EAAE,IAAI,EAAE,MAAM,sBAAsB,CAAC;AAC5C,OAAO,EAKL,KAAK,eAAe,EACpB,KAAK,SAAS,EACd,KAAK,WAAW,EACjB,MAAM,iBAAiB,CAAC;AAKzB,QAAA,MAAM,IAAI,4MAAe,CAAC;AAa1B,QAAA,MAAM,SAAS,GACb,YAAY,SAAS,WAAW,GAAG,WAAW,EAC9C,KAAK,SAAS,SAAS,CAAC,YAAY,CAAC,GAAG,SAAS,CAAC,YAAY,CAAC,EAC/D,cAEC,eAAe,CAAC,YAAY,EAAE,KAAK,CAAC,4CAMtC,CAAC;AAEF,QAAA,MAAM,YAAY;;;;;;;;;;;CAqBjB,CAAC;AAUF,iBAAS,QAAQ,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,2CAYrE;AAED,iBAAS,SAAS,CAAC,EACjB,SAAS,EACT,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,cAAc,CAAC,IAAI,CAAC,2CAYlD;AAED,iBAAS,WAAW,CAAC,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,IAAI,CAAC,2CAiBnE;AAED,iBAAS,eAAe,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,GAAG,CAAC,2CAW1E;AAED,iBAAS,WAAW,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,GAAG,CAAC,kDAkBtE;AAED,OAAO,EACL,YAAY,EACZ,IAAI,EACJ,QAAQ,EACR,SAAS,EACT,WAAW,EACX,eAAe,EACf,WAAW,EACX,SAAS,GACV,CAAC"}
@@ -0,0 +1,5 @@
1
+ import * as React from 'react';
2
+ import * as SeparatorPrimitive from '@radix-ui/react-separator';
3
+ declare function Separator({ className, orientation, decorative, ...props }: React.ComponentProps<typeof SeparatorPrimitive.Root>): import("react/jsx-runtime").JSX.Element;
4
+ export { Separator };
5
+ //# sourceMappingURL=separator.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"separator.d.ts","sourceRoot":"","sources":["../../../src/components/ui/separator.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,kBAAkB,MAAM,2BAA2B,CAAC;AAIhE,iBAAS,SAAS,CAAC,EACjB,SAAS,EACT,WAA0B,EAC1B,UAAiB,EACjB,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,kBAAkB,CAAC,IAAI,CAAC,2CAatD;AAED,OAAO,EAAE,SAAS,EAAE,CAAC"}
@@ -0,0 +1,4 @@
1
+ import { ToasterProps } from 'sonner';
2
+ declare const Toaster: ({ ...props }: ToasterProps) => import("react/jsx-runtime").JSX.Element;
3
+ export { Toaster };
4
+ //# sourceMappingURL=sonner.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sonner.d.ts","sourceRoot":"","sources":["../../../src/components/ui/sonner.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAqB,YAAY,EAAE,MAAM,QAAQ,CAAC;AAEzD,QAAA,MAAM,OAAO,GAAI,cAAc,YAAY,4CAiB1C,CAAC;AAEF,OAAO,EAAE,OAAO,EAAE,CAAC"}
@@ -0,0 +1,4 @@
1
+ import * as React from 'react';
2
+ declare function Textarea({ className, ...props }: React.ComponentProps<'textarea'>): import("react/jsx-runtime").JSX.Element;
3
+ export { Textarea };
4
+ //# sourceMappingURL=textarea.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"textarea.d.ts","sourceRoot":"","sources":["../../../src/components/ui/textarea.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAI/B,iBAAS,QAAQ,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,UAAU,CAAC,2CAW1E;AAED,OAAO,EAAE,QAAQ,EAAE,CAAC"}