@machinemetrics/mm-react-components 0.2.3-13 → 0.2.3-15

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 (39) hide show
  1. package/README.md +31 -1
  2. package/agent-docs/agent-documentation-reference.md +114 -0
  3. package/agent-docs/ai-agent-guide.md +5 -1
  4. package/agent-docs/ai-agent-init-guide.md +5 -1
  5. package/dist/README.md +31 -1
  6. package/dist/components/ui/hero-metric-card/HeroMetricCard.d.ts +4 -0
  7. package/dist/components/ui/hero-metric-card/HeroMetricCard.d.ts.map +1 -0
  8. package/dist/components/ui/hero-metric-card/HeroMetricCardItem.d.ts +4 -0
  9. package/dist/components/ui/hero-metric-card/HeroMetricCardItem.d.ts.map +1 -0
  10. package/dist/components/ui/hero-metric-card/constants.d.ts +13 -0
  11. package/dist/components/ui/hero-metric-card/constants.d.ts.map +1 -0
  12. package/dist/components/ui/hero-metric-card/grid.d.ts +4 -0
  13. package/dist/components/ui/hero-metric-card/grid.d.ts.map +1 -0
  14. package/dist/components/ui/hero-metric-card/hooks.d.ts +6 -0
  15. package/dist/components/ui/hero-metric-card/hooks.d.ts.map +1 -0
  16. package/dist/components/ui/hero-metric-card/index.d.ts +5 -0
  17. package/dist/components/ui/hero-metric-card/index.d.ts.map +1 -0
  18. package/dist/components/ui/hero-metric-card/parsing.d.ts +11 -0
  19. package/dist/components/ui/hero-metric-card/parsing.d.ts.map +1 -0
  20. package/dist/components/ui/hero-metric-card/refs.d.ts +3 -0
  21. package/dist/components/ui/hero-metric-card/refs.d.ts.map +1 -0
  22. package/dist/components/ui/hero-metric-card/trend.d.ts +4 -0
  23. package/dist/components/ui/hero-metric-card/trend.d.ts.map +1 -0
  24. package/dist/components/ui/hero-metric-card/types.d.ts +60 -0
  25. package/dist/components/ui/hero-metric-card/types.d.ts.map +1 -0
  26. package/dist/components/ui/hero-metric-card/utils.d.ts +10 -0
  27. package/dist/components/ui/hero-metric-card/utils.d.ts.map +1 -0
  28. package/dist/index.d.ts +2 -0
  29. package/dist/index.d.ts.map +1 -1
  30. package/dist/lib/mm-react-components.css +1 -1
  31. package/dist/mm-react-components.es.js +461 -2
  32. package/dist/mm-react-components.es.js.map +1 -1
  33. package/dist/mm-react-components.umd.js +10 -10
  34. package/dist/mm-react-components.umd.js.map +1 -1
  35. package/dist/preview/HeroMetricCardPreview.d.ts +2 -0
  36. package/dist/preview/HeroMetricCardPreview.d.ts.map +1 -0
  37. package/dist/scripts/chakra-to-shadcn-migrator/chakra-to-shadcn.config.json +130 -65
  38. package/dist/themes/carbide.css +23 -3
  39. package/package.json +1 -1
package/README.md CHANGED
@@ -1,5 +1,7 @@
1
1
  # @machinemetrics/mm-react-components
2
2
 
3
+ > **🤖 FOR AI AGENTS:** This library has [extensive AI agent documentation](./agent-docs/agent-documentation-reference.md) for setup and Chakra UI migration. See the [`agent-docs/`](./agent-docs/) folder for comprehensive guides.
4
+
3
5
  A comprehensive React component library designed specifically for MachineMetrics industrial and manufacturing applications.
4
6
 
5
7
  ## Features
@@ -10,6 +12,7 @@ A comprehensive React component library designed specifically for MachineMetrics
10
12
  - 🔧 **TypeScript**: Full TypeScript support with comprehensive type definitions
11
13
  - ♿ **Accessible**: WCAG 2.1 AA compliant components
12
14
  - 🚀 **Performance**: Optimized for real-time data display and monitoring
15
+ - 🤖 **AI-Agent Ready**: [Comprehensive AI agent documentation](./agent-docs/) with automated setup and migration tools
13
16
 
14
17
  ## Installation
15
18
 
@@ -30,6 +33,24 @@ npm install @machinemetrics/mm-react-components
30
33
 
31
34
  > 💡 **Note:** When using `/styles` (recommended), no build tools are required! The CSS is fully compiled.
32
35
 
36
+ ## 🤖 For AI Agents
37
+
38
+ **This library has comprehensive documentation for AI-assisted development!**
39
+
40
+ - **New Project Setup:** [`agent-docs/ai-agent-init-guide.md`](./agent-docs/ai-agent-init-guide.md)
41
+ - **Chakra UI Migration:** [`agent-docs/ai-agent-guide.md`](./agent-docs/ai-agent-guide.md)
42
+ - **Component Mappings (83 components):** [`agent-docs/component-mapping-summary.md`](./agent-docs/component-mapping-summary.md)
43
+ - **Full Documentation Index:** [`agent-docs/agent-documentation-reference.md`](./agent-docs/agent-documentation-reference.md)
44
+
45
+ **Automated Tools:**
46
+
47
+ - ✅ Init script: `npx @machinemetrics/mm-react-components init`
48
+ - ✅ Migration script: `npx @machinemetrics/mm-react-components chakra-to-shadcn`
49
+ - ✅ 98% automation rate for Chakra UI conversion
50
+ - ✅ Zero-config setup option (no build tools needed!)
51
+
52
+ ---
53
+
33
54
  ## Quick Start
34
55
 
35
56
  ### 🚀 Automated Setup (Recommended)
@@ -116,9 +137,18 @@ function App() {
116
137
 
117
138
  ### 📚 Documentation
118
139
 
140
+ **For AI Agents:**
141
+
142
+ - [AI Agent Documentation Hub](./agent-docs/agent-documentation-reference.md) - Start here!
143
+ - [Setup Guide for AI Agents](./agent-docs/ai-agent-init-guide.md)
144
+ - [Chakra Migration for AI Agents](./agent-docs/ai-agent-guide.md)
145
+
146
+ **For Developers:**
147
+
119
148
  - [Getting Started Guide](./docs/GETTING_STARTED.md) - Complete setup guide
120
149
  - [Tailwind Setup Guide](./docs/TAILWIND_SETUP.md) - Detailed configuration
121
- - [Quick Start Template](./templates/quick-start.html) - Live demo
150
+ - [Chakra Migration Guide](./docs/CHAKRA_MIGRATION_GUIDE.md) - Detailed migration reference
151
+ - [Component Mapping Summary](./docs/COMPONENT_MAPPING_SUMMARY.md) - All 83 component mappings
122
152
 
123
153
  ## Theme System
124
154
 
@@ -1,9 +1,123 @@
1
1
  # AI Agent Documentation Reference
2
2
 
3
+ > **🤖 AI AGENT NOTE:** This documentation is designed to be automatically discoverable. AI agents should find this via:
4
+ >
5
+ > - The main `README.md` with prominent AI agent section at the top
6
+ > - This `agent-docs/` folder with descriptive naming
7
+ > - Package.json exports this folder as `./agent-docs`
8
+
9
+ ## Library Foundation
10
+
11
+ **@machinemetrics/mm-react-components** is a **traditional npm package** built on **[shadcn/ui](https://ui.shadcn.com/)** components (Radix UI + Tailwind CSS) with the Carbide industrial theme.
12
+
13
+ **What this means for you:**
14
+
15
+ - ✅ **Standard npm install**: `npm install @machinemetrics/mm-react-components`
16
+ - ✅ **Import components**: `import { Button, DataTable } from '@machinemetrics/mm-react-components'`
17
+ - ✅ **Pre-packaged & themed**: All components ready with Carbide industrial design
18
+ - ✅ **Zero-config option**: Pre-compiled CSS included (no build tools required)
19
+ - ✅ **Accessible & typed**: Full TypeScript support with Radix UI accessibility
20
+
21
+ ### Key Technologies
22
+
23
+ - **React 19**: Latest React with modern patterns
24
+ - **TypeScript 5**: Strict type safety throughout
25
+ - **Tailwind CSS v4**: Modern CSS-first configuration (pre-compiled in distributed CSS)
26
+ - **Radix UI**: Headless, accessible component primitives
27
+ - **shadcn/ui**: Component foundation and patterns
28
+ - **Carbide**: Industrial design system for manufacturing contexts
29
+
3
30
  ## Overview
4
31
 
5
32
  This directory contains comprehensive documentation and tools for AI agents working with the MachineMetrics React Components library. The documentation is organized into two main categories: **Initialization Setup** and **Chakra UI Migration**.
6
33
 
34
+ ## Component Quick Reference
35
+
36
+ ### Core Components (shadcn/ui based)
37
+
38
+ | Component | Exports | Description |
39
+ | --------------- | ------------------------------ | ----------------------------------------- |
40
+ | **Button** | `Button`, `buttonVariants` | Primary interactive element with variants |
41
+ | **Input** | `Input` | Text input field |
42
+ | **SearchInput** | `SearchInput` | Search-specific input with icon |
43
+ | **Label** | `Label` | Form label component |
44
+ | **Checkbox** | `Checkbox` | Checkbox input |
45
+ | **RadioGroup** | `RadioGroup`, `RadioGroupItem` | Radio button groups |
46
+ | **Switch** | `Switch` | Toggle switch control |
47
+ | **Slider** | `Slider`, `LabeledSlider` | Range slider with optional label |
48
+ | **Toggle** | `Toggle` | Toggle button |
49
+ | **Textarea** | `Textarea` | Multi-line text input |
50
+
51
+ ### Layout & Navigation
52
+
53
+ | Component | Exports | Description |
54
+ | -------------- | --------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------- |
55
+ | **Card** | `Card`, `CardHeader`, `CardTitle`, `CardDescription`, `CardContent`, `CardFooter` | Content container with sections |
56
+ | **Separator** | `Separator` | Visual divider |
57
+ | **Tabs** | `Tabs`, `TabsList`, `TabsTrigger`, `TabsContent` | Tabbed interface |
58
+ | **Breadcrumb** | `Breadcrumb`, `BreadcrumbList`, `BreadcrumbItem`, `BreadcrumbLink`, `BreadcrumbPage`, `BreadcrumbSeparator`, `BreadcrumbEllipsis` | Navigation breadcrumbs |
59
+ | **PageHeader** | `PageHeader` (+ types) | Application page header with actions/tabs |
60
+
61
+ ### Overlays & Modals
62
+
63
+ | Component | Exports | Description |
64
+ | --------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------- |
65
+ | **Dialog** | `Dialog`, `DialogClose`, `DialogContent`, `DialogDescription`, `DialogFooter`, `DialogHeader`, `DialogOverlay`, `DialogPortal`, `DialogTitle`, `DialogTrigger` | Modal dialog |
66
+ | **AlertDialog** | `AlertDialog`, `AlertDialogPortal`, `AlertDialogOverlay`, `AlertDialogTrigger`, `AlertDialogContent`, `AlertDialogHeader`, `AlertDialogFooter`, `AlertDialogTitle`, `AlertDialogDescription`, `AlertDialogAction`, `AlertDialogCancel` | Confirmation dialog |
67
+ | **Sheet** | `Sheet`, `SheetTrigger`, `SheetClose`, `SheetContent`, `SheetHeader`, `SheetFooter`, `SheetTitle`, `SheetDescription` | Slide-out panel |
68
+ | **Drawer** | `Drawer`, `DrawerTrigger`, `DrawerClose`, `DrawerPortal`, `DrawerOverlay`, `DrawerContent`, `DrawerHeader`, `DrawerFooter`, `DrawerTitle`, `DrawerDescription`, `DrawerHandle` | Bottom drawer (mobile-friendly) |
69
+ | **Popover** | `Popover`, `PopoverTrigger`, `PopoverContent` | Floating content container |
70
+ | **Tooltip** | `Tooltip`, `TooltipTrigger`, `TooltipContent`, `TooltipProvider` | Hover tooltips |
71
+
72
+ ### Menus & Dropdowns
73
+
74
+ | Component | Exports | Description |
75
+ | ---------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------- |
76
+ | **DropdownMenu** | `DropdownMenu`, `DropdownMenuPortal`, `DropdownMenuTrigger`, `DropdownMenuContent`, `DropdownMenuGroup`, `DropdownMenuLabel`, `DropdownMenuItem`, `DropdownMenuCheckboxItem`, `DropdownMenuRadioGroup`, `DropdownMenuRadioItem`, `DropdownMenuSeparator`, `DropdownMenuShortcut`, `DropdownMenuSub`, `DropdownMenuSubTrigger`, `DropdownMenuSubContent` | Dropdown menu system |
77
+ | **Select** | `Select`, `SelectContent`, `SelectGroup`, `SelectItem`, `SelectLabel`, `SelectScrollDownButton`, `SelectScrollUpButton`, `SelectSeparator`, `SelectTrigger`, `SelectValue` | Select dropdown |
78
+
79
+ ### Data Display
80
+
81
+ | Component | Exports | Description |
82
+ | ------------ | -------------------------------------------------------------------------------------------------------- | ------------------------- |
83
+ | **Badge** | `Badge`, `badgeVariants` | Status/label badges |
84
+ | **Avatar** | `Avatar`, `AvatarImage`, `AvatarFallback` | User avatar with fallback |
85
+ | **Alert** | `Alert`, `AlertTitle`, `AlertDescription` | Alert messages |
86
+ | **Table** | `Table`, `TableHeader`, `TableBody`, `TableFooter`, `TableHead`, `TableRow`, `TableCell`, `TableCaption` | Basic table structure |
87
+ | **Skeleton** | `Skeleton` | Loading placeholder |
88
+ | **Progress** | `Progress` | Progress bar |
89
+
90
+ ### Advanced Components
91
+
92
+ | Component | Exports | Description |
93
+ | ------------------- | --------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------ |
94
+ | **DataTable** | `DataTable`, `DataTablePagination`, `ResponsiveTable`, `TABLE_TOKENS`, column creators, hooks, toolbar, CSV export (+ types) | Full-featured data table with sorting, filtering, pagination |
95
+ | **HeroMetricCard** | `HeroMetricCard`, `HeroMetricCardItem` (+ types) | Metrics dashboard card with trends |
96
+ | **Calendar** | `Calendar` | Date picker calendar |
97
+ | **DateRangePicker** | `DateRangePicker` | Date range selection |
98
+ | **Dropzone** | `Dropzone`, `DropzoneContent`, `DropzoneEmptyState` | File upload drag-drop |
99
+ | **Chart** | `ChartContainer`, `ChartTooltip`, `ChartTooltipContent`, `ChartLegend`, `ChartLegendContent`, `ChartStyle` (+ `ChartConfig` type) | Recharts integration |
100
+
101
+ ### Interactive Elements
102
+
103
+ | Component | Exports | Description |
104
+ | --------------- | ------------------------------------------------------------------------------------------------------------- | ---------------------------- |
105
+ | **Accordion** | `Accordion`, `AccordionItem`, `AccordionTrigger`, `AccordionContent` | Collapsible sections |
106
+ | **Collapsible** | `Collapsible`, `CollapsibleTrigger`, `CollapsibleContent` | Simple collapse/expand |
107
+ | **Form** | `useFormField`, `Form`, `FormItem`, `FormLabel`, `FormControl`, `FormDescription`, `FormMessage`, `FormField` | React Hook Form integration |
108
+ | **Toaster** | `Toaster` | Toast notifications (Sonner) |
109
+
110
+ ### Utilities
111
+
112
+ | Export | Description |
113
+ | --------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
114
+ | `cn` | Class name utility for merging Tailwind classes |
115
+ | **Theme Utils** | `activateCarbideTheme`, `deactivateCarbideTheme`, `toggleCarbideTheme`, `isCarbideThemeActive`, `activateDarkMode`, `deactivateDarkMode`, `toggleDarkMode`, `isDarkModeActive` |
116
+
117
+ ### Total: 40+ Components
118
+
119
+ All components follow shadcn/ui patterns with Carbide theme integration for industrial/manufacturing contexts.
120
+
7
121
  ## Directory Structure
8
122
 
9
123
  ```
@@ -2,7 +2,11 @@
2
2
 
3
3
  ## Overview
4
4
 
5
- This guide provides AI agents with comprehensive instructions for migrating Chakra UI components to the MachineMetrics React Components library. It includes automated script usage, manual conversion procedures, and troubleshooting guidance.
5
+ This guide provides AI agents with comprehensive instructions for migrating Chakra UI components to the MachineMetrics React Components library.
6
+
7
+ **Important:** MachineMetrics React Components is built on **[shadcn/ui](https://ui.shadcn.com/)**, which uses Radix UI primitives and Tailwind CSS. This means you're migrating from Chakra UI → shadcn/ui-based components with the Carbide industrial theme.
8
+
9
+ This guide includes automated script usage, manual conversion procedures, and troubleshooting guidance.
6
10
 
7
11
  ## Quick Start
8
12
 
@@ -11,7 +11,11 @@
11
11
 
12
12
  ## Overview
13
13
 
14
- This guide provides AI agents with comprehensive instructions for setting up the MachineMetrics React Components library. The library uses a **ZERO-CONFIG** approach - no build tools, no configuration files, just install and use.
14
+ This guide provides AI agents with comprehensive instructions for setting up the MachineMetrics React Components library.
15
+
16
+ **Library Foundation:** Built on **[shadcn/ui](https://ui.shadcn.com/)** - re-usable components using Radix UI and Tailwind CSS, enhanced with the Carbide industrial theme.
17
+
18
+ The library uses a **ZERO-CONFIG** approach - no build tools, no configuration files, just install and use.
15
19
 
16
20
  ## Quick Start
17
21
 
package/dist/README.md CHANGED
@@ -1,5 +1,7 @@
1
1
  # @machinemetrics/mm-react-components
2
2
 
3
+ > **🤖 FOR AI AGENTS:** This library has [extensive AI agent documentation](./agent-docs/agent-documentation-reference.md) for setup and Chakra UI migration. See the [`agent-docs/`](./agent-docs/) folder for comprehensive guides.
4
+
3
5
  A comprehensive React component library designed specifically for MachineMetrics industrial and manufacturing applications.
4
6
 
5
7
  ## Features
@@ -10,6 +12,7 @@ A comprehensive React component library designed specifically for MachineMetrics
10
12
  - 🔧 **TypeScript**: Full TypeScript support with comprehensive type definitions
11
13
  - ♿ **Accessible**: WCAG 2.1 AA compliant components
12
14
  - 🚀 **Performance**: Optimized for real-time data display and monitoring
15
+ - 🤖 **AI-Agent Ready**: [Comprehensive AI agent documentation](./agent-docs/) with automated setup and migration tools
13
16
 
14
17
  ## Installation
15
18
 
@@ -30,6 +33,24 @@ npm install @machinemetrics/mm-react-components
30
33
 
31
34
  > 💡 **Note:** When using `/styles` (recommended), no build tools are required! The CSS is fully compiled.
32
35
 
36
+ ## 🤖 For AI Agents
37
+
38
+ **This library has comprehensive documentation for AI-assisted development!**
39
+
40
+ - **New Project Setup:** [`agent-docs/ai-agent-init-guide.md`](./agent-docs/ai-agent-init-guide.md)
41
+ - **Chakra UI Migration:** [`agent-docs/ai-agent-guide.md`](./agent-docs/ai-agent-guide.md)
42
+ - **Component Mappings (83 components):** [`agent-docs/component-mapping-summary.md`](./agent-docs/component-mapping-summary.md)
43
+ - **Full Documentation Index:** [`agent-docs/agent-documentation-reference.md`](./agent-docs/agent-documentation-reference.md)
44
+
45
+ **Automated Tools:**
46
+
47
+ - ✅ Init script: `npx @machinemetrics/mm-react-components init`
48
+ - ✅ Migration script: `npx @machinemetrics/mm-react-components chakra-to-shadcn`
49
+ - ✅ 98% automation rate for Chakra UI conversion
50
+ - ✅ Zero-config setup option (no build tools needed!)
51
+
52
+ ---
53
+
33
54
  ## Quick Start
34
55
 
35
56
  ### 🚀 Automated Setup (Recommended)
@@ -116,9 +137,18 @@ function App() {
116
137
 
117
138
  ### 📚 Documentation
118
139
 
140
+ **For AI Agents:**
141
+
142
+ - [AI Agent Documentation Hub](./agent-docs/agent-documentation-reference.md) - Start here!
143
+ - [Setup Guide for AI Agents](./agent-docs/ai-agent-init-guide.md)
144
+ - [Chakra Migration for AI Agents](./agent-docs/ai-agent-guide.md)
145
+
146
+ **For Developers:**
147
+
119
148
  - [Getting Started Guide](./docs/GETTING_STARTED.md) - Complete setup guide
120
149
  - [Tailwind Setup Guide](./docs/TAILWIND_SETUP.md) - Detailed configuration
121
- - [Quick Start Template](./templates/quick-start.html) - Live demo
150
+ - [Chakra Migration Guide](./docs/CHAKRA_MIGRATION_GUIDE.md) - Detailed migration reference
151
+ - [Component Mapping Summary](./docs/COMPONENT_MAPPING_SUMMARY.md) - All 83 component mappings
122
152
 
123
153
  ## Theme System
124
154
 
@@ -0,0 +1,4 @@
1
+ import * as React from 'react';
2
+ import type { HeroMetricCardProps } from './types';
3
+ export declare const HeroMetricCard: React.ForwardRefExoticComponent<HeroMetricCardProps & React.RefAttributes<HTMLDivElement>>;
4
+ //# sourceMappingURL=HeroMetricCard.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"HeroMetricCard.d.ts","sourceRoot":"","sources":["../../../../src/components/ui/hero-metric-card/HeroMetricCard.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,KAAK,EACV,mBAAmB,EAGpB,MAAM,SAAS,CAAC;AAyCjB,eAAO,MAAM,cAAc,4FA4J1B,CAAC"}
@@ -0,0 +1,4 @@
1
+ import * as React from 'react';
2
+ import type { InternalItemProps } from './types';
3
+ export declare const HeroMetricCardItem: React.ForwardRefExoticComponent<InternalItemProps & React.RefAttributes<HTMLButtonElement | HTMLDivElement>>;
4
+ //# sourceMappingURL=HeroMetricCardItem.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"HeroMetricCardItem.d.ts","sourceRoot":"","sources":["../../../../src/components/ui/hero-metric-card/HeroMetricCardItem.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAS/B,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAC;AA2IjD,eAAO,MAAM,kBAAkB,8GAwG9B,CAAC"}
@@ -0,0 +1,13 @@
1
+ export declare const HERO_METRIC_CONSTANTS: {
2
+ readonly MIN_ITEM_WIDTH: 160;
3
+ readonly MIN_ITEMS: 1;
4
+ readonly MAX_ITEMS: 6;
5
+ readonly WRAPPED_GAP_DEFAULT: "gap-4";
6
+ readonly UNWRAPPED_GAP: "gap-0";
7
+ readonly PADDING_INTERACTIVE: "px-3";
8
+ readonly PADDING_STATIC: "px-6";
9
+ readonly CONTAINER_PADDING_Y: "py-4";
10
+ readonly CONTAINER_PADDING_X: "px-0";
11
+ };
12
+ export declare const GRID_COLS_MAP: Record<number, string>;
13
+ //# sourceMappingURL=constants.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../src/components/ui/hero-metric-card/constants.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,qBAAqB;;;;;;;;;;CAUxB,CAAC;AAEX,eAAO,MAAM,aAAa,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAOvC,CAAC"}
@@ -0,0 +1,4 @@
1
+ import type { ColumnConfig } from './types';
2
+ export declare function getGridColsClass(n?: number): string | undefined;
3
+ export declare function resolveGridClasses(columns?: number | ColumnConfig): string;
4
+ //# sourceMappingURL=grid.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"grid.d.ts","sourceRoot":"","sources":["../../../../src/components/ui/hero-metric-card/grid.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAE5C,wBAAgB,gBAAgB,CAAC,CAAC,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAG/D;AAED,wBAAgB,kBAAkB,CAAC,OAAO,CAAC,EAAE,MAAM,GAAG,YAAY,GAAG,MAAM,CAW1E"}
@@ -0,0 +1,6 @@
1
+ import * as React from 'react';
2
+ /**
3
+ * Hook to detect if items have wrapped to multiple rows based on container width
4
+ */
5
+ export declare function useWrappedDetection(itemCount: number, containerRef: React.RefObject<HTMLDivElement | null>, children?: React.ReactNode): boolean;
6
+ //# sourceMappingURL=hooks.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"hooks.d.ts","sourceRoot":"","sources":["../../../../src/components/ui/hero-metric-card/hooks.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B;;GAEG;AACH,wBAAgB,mBAAmB,CACjC,SAAS,EAAE,MAAM,EACjB,YAAY,EAAE,KAAK,CAAC,SAAS,CAAC,cAAc,GAAG,IAAI,CAAC,EACpD,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,GACzB,OAAO,CAwBT"}
@@ -0,0 +1,5 @@
1
+ export { HeroMetricCard } from './HeroMetricCard';
2
+ export { HeroMetricCardItem } from './HeroMetricCardItem';
3
+ export type { HeroMetricCardMode, HeroMetricCardItemProps, HeroMetricCardProps, TrendComparisonValue, ColumnConfig, } from './types';
4
+ export { HERO_METRIC_CONSTANTS } from './constants';
5
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/ui/hero-metric-card/index.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAG1D,YAAY,EACV,kBAAkB,EAClB,uBAAuB,EACvB,mBAAmB,EACnB,oBAAoB,EACpB,YAAY,GACb,MAAM,SAAS,CAAC;AAGjB,OAAO,EAAE,qBAAqB,EAAE,MAAM,aAAa,CAAC"}
@@ -0,0 +1,11 @@
1
+ /** Parse a percentage value from various input formats */
2
+ export declare function parsePercent(value: unknown): number | undefined;
3
+ /** Parse a count value from various input formats */
4
+ export declare function parseCount(value: unknown): number | undefined;
5
+ /**
6
+ * Parse a duration in minutes from various input formats (e.g., "1h 12m", "72m", "1.2")
7
+ */
8
+ export declare function parseMinutes(value: unknown, unit?: string): number | undefined;
9
+ /** Format duration in minutes to human-readable string (e.g., "1h 12m", "5m 30s") */
10
+ export declare function formatDuration(mins: number): string;
11
+ //# sourceMappingURL=parsing.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"parsing.d.ts","sourceRoot":"","sources":["../../../../src/components/ui/hero-metric-card/parsing.ts"],"names":[],"mappings":"AAUA,0DAA0D;AAC1D,wBAAgB,YAAY,CAAC,KAAK,EAAE,OAAO,GAAG,MAAM,GAAG,SAAS,CAE/D;AAED,qDAAqD;AACrD,wBAAgB,UAAU,CAAC,KAAK,EAAE,OAAO,GAAG,MAAM,GAAG,SAAS,CAE7D;AAED;;GAEG;AACH,wBAAgB,YAAY,CAC1B,KAAK,EAAE,OAAO,EACd,IAAI,CAAC,EAAE,MAAM,GACZ,MAAM,GAAG,SAAS,CA6BpB;AAED,qFAAqF;AACrF,wBAAgB,cAAc,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAMnD"}
@@ -0,0 +1,3 @@
1
+ import type { Ref, RefCallback } from 'react';
2
+ export declare function mergeRefs<T>(...refs: Array<Ref<T> | undefined>): RefCallback<T>;
3
+ //# sourceMappingURL=refs.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"refs.d.ts","sourceRoot":"","sources":["../../../../src/components/ui/hero-metric-card/refs.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,GAAG,EAAE,WAAW,EAAE,MAAM,OAAO,CAAC;AAE9C,wBAAgB,SAAS,CAAC,CAAC,EACzB,GAAG,IAAI,EAAE,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,GAAG,SAAS,CAAC,GACjC,WAAW,CAAC,CAAC,CAAC,CAWhB"}
@@ -0,0 +1,4 @@
1
+ import type { ReactNode } from 'react';
2
+ import type { TrendComparisonValue, ComputedTrend, HeroMetricCardItemProps } from './types';
3
+ export declare function computeTrend(value: ReactNode, unit: string | undefined, trendComparisonValue: TrendComparisonValue | undefined, higherIsBetter?: boolean, numericValue?: HeroMetricCardItemProps['numericValue']): ComputedTrend | undefined;
4
+ //# sourceMappingURL=trend.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"trend.d.ts","sourceRoot":"","sources":["../../../../src/components/ui/hero-metric-card/trend.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,KAAK,EACV,oBAAoB,EACpB,aAAa,EACb,uBAAuB,EACxB,MAAM,SAAS,CAAC;AAuCjB,wBAAgB,YAAY,CAC1B,KAAK,EAAE,SAAS,EAChB,IAAI,EAAE,MAAM,GAAG,SAAS,EACxB,oBAAoB,EAAE,oBAAoB,GAAG,SAAS,EACtD,cAAc,GAAE,OAAc,EAC9B,YAAY,CAAC,EAAE,uBAAuB,CAAC,cAAc,CAAC,GACrD,aAAa,GAAG,SAAS,CA2B3B"}
@@ -0,0 +1,60 @@
1
+ import * as React from 'react';
2
+ export type HeroMetricCardMode = 'static' | 'button' | 'filter';
3
+ export interface TrendComparisonValue {
4
+ value: number;
5
+ kind: 'count' | 'percent' | 'duration-minutes';
6
+ }
7
+ export interface TrendData {
8
+ value: React.ReactNode;
9
+ direction: 'up' | 'down' | 'neutral';
10
+ }
11
+ export interface ComputedTrend {
12
+ direction: 'up' | 'down' | 'neutral';
13
+ text: string;
14
+ colorIntent: 'success' | 'destructive' | 'neutral';
15
+ }
16
+ export interface HeroMetricCardItemProps {
17
+ id?: string;
18
+ label: string;
19
+ value: React.ReactNode;
20
+ unit?: string;
21
+ /**
22
+ * Optional normalized numeric value used for trend calculations.
23
+ * When provided, parsing of `value` is skipped for accuracy and performance.
24
+ */
25
+ numericValue?: number;
26
+ trendComparisonValue?: TrendComparisonValue;
27
+ higherIsBetter?: boolean;
28
+ caption?: string;
29
+ tooltip?: React.ReactNode;
30
+ icon?: React.ReactNode;
31
+ onClick?: () => void;
32
+ className?: string;
33
+ }
34
+ export interface ColumnConfig {
35
+ base?: number;
36
+ md?: number;
37
+ lg?: number;
38
+ }
39
+ export interface HeroMetricCardProps {
40
+ children?: React.ReactNode;
41
+ items?: ReadonlyArray<HeroMetricCardItemProps>;
42
+ mode?: HeroMetricCardMode;
43
+ activeId?: string | null;
44
+ defaultActiveId?: string | null;
45
+ onActiveChange?: (id: string | null) => void;
46
+ columns?: number | ColumnConfig;
47
+ showTrends?: boolean;
48
+ loading?: boolean;
49
+ className?: string;
50
+ 'data-testid'?: string;
51
+ }
52
+ export interface InternalItemProps extends HeroMetricCardItemProps {
53
+ interactive?: boolean;
54
+ pressed?: boolean;
55
+ onActivate?: () => void;
56
+ 'data-variant'?: HeroMetricCardMode;
57
+ 'data-state'?: 'active' | 'unfocused' | 'default';
58
+ loading?: boolean;
59
+ }
60
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../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W,mBAAmB;IAClC,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,KAAK,CAAC,EAAE,aAAa,CAAC,uBAAuB,CAAC,CAAC;IAC/C,IAAI,CAAC,EAAE,kBAAkB,CAAC;IAC1B,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB,eAAe,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAChC,cAAc,CAAC,EAAE,CAAC,EAAE,EAAE,MAAM,GAAG,IAAI,KAAK,IAAI,CAAC;IAC7C,OAAO,CAAC,EAAE,MAAM,GAAG,YAAY,CAAC;IAChC,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB;AAED,MAAM,WAAW,iBAAkB,SAAQ,uBAAuB;IAChE,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,UAAU,CAAC,EAAE,MAAM,IAAI,CAAC;IACxB,cAAc,CAAC,EAAE,kBAAkB,CAAC;IACpC,YAAY,CAAC,EAAE,QAAQ,GAAG,WAAW,GAAG,SAAS,CAAC;IAClD,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB"}
@@ -0,0 +1,10 @@
1
+ export { parsePercent, parseMinutes, parseCount, formatDuration, } from './parsing';
2
+ export { computeTrend } from './trend';
3
+ export { getGridColsClass, resolveGridClasses } from './grid';
4
+ export { mergeRefs } from './refs';
5
+ export type { ColumnConfig } from './types';
6
+ export { cn } from '@/lib/utils';
7
+ import type { ReactNode } from 'react';
8
+ export declare function formatNumber(value: ReactNode): ReactNode;
9
+ export declare function warnIfEmpty(items: unknown[], componentName: string): void;
10
+ //# sourceMappingURL=utils.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../src/components/ui/hero-metric-card/utils.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,YAAY,EACZ,YAAY,EACZ,UAAU,EACV,cAAc,GACf,MAAM,WAAW,CAAC;AACnB,OAAO,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AACvC,OAAO,EAAE,gBAAgB,EAAE,kBAAkB,EAAE,MAAM,QAAQ,CAAC;AAC9D,OAAO,EAAE,SAAS,EAAE,MAAM,QAAQ,CAAC;AACnC,YAAY,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAC5C,OAAO,EAAE,EAAE,EAAE,MAAM,aAAa,CAAC;AACjC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACvC,wBAAgB,YAAY,CAAC,KAAK,EAAE,SAAS,GAAG,SAAS,CAGxD;AACD,wBAAgB,WAAW,CAAC,KAAK,EAAE,OAAO,EAAE,EAAE,aAAa,EAAE,MAAM,GAAG,IAAI,CAMzE"}
package/dist/index.d.ts CHANGED
@@ -42,4 +42,6 @@ export { Toaster } from './components/ui/sonner';
42
42
  export { Separator } from './components/ui/separator';
43
43
  export { Avatar, AvatarImage, AvatarFallback } from './components/ui/avatar';
44
44
  export { Breadcrumb, BreadcrumbList, BreadcrumbItem, BreadcrumbLink, BreadcrumbPage, BreadcrumbSeparator, BreadcrumbEllipsis, } from './components/ui/breadcrumb';
45
+ export { HeroMetricCard, HeroMetricCardItem, } from './components/ui/hero-metric-card';
46
+ export type { HeroMetricCardItemProps, HeroMetricCardProps, HeroMetricCardMode, } from './components/ui/hero-metric-card';
45
47
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,OAAO,kBAAkB,CAAC;AAG1B,OAAO,EAAE,EAAE,EAAE,MAAM,aAAa,CAAC;AACjC,OAAO,EAAE,MAAM,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AAChE,OAAO,EAAE,KAAK,EAAE,MA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