@vtx-ui/react 0.0.1-beta.1 → 0.0.1-beta.4

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 (98) hide show
  1. package/dist/hoc/withParsedClasses.d.ts +4 -0
  2. package/dist/index.cjs.js +1 -1
  3. package/dist/index.cjs.js.map +1 -1
  4. package/dist/index.esm.js +1 -1
  5. package/dist/index.esm.js.map +1 -1
  6. package/dist/types/components/AdminHeader/AdminHeader.d.ts +176 -0
  7. package/dist/types/components/AdminHeader/AdminHeader.examples.d.ts +44 -0
  8. package/dist/types/components/AdminHeader/AdminHeader.stories.d.ts +53 -0
  9. package/dist/types/components/AdminHeader/AdminHeader.widgets.stories.d.ts +86 -0
  10. package/dist/types/components/AdminHeader/index.d.ts +2 -0
  11. package/dist/types/components/Alert/Alert.d.ts +2 -53
  12. package/dist/types/components/Avatar/Avatar.d.ts +2 -2
  13. package/dist/types/components/Badge/Badge.d.ts +2 -32
  14. package/dist/types/components/Button/Button.d.ts +2 -42
  15. package/dist/types/components/Card/Card.d.ts +2 -63
  16. package/dist/types/components/Checkbox/Checkbox.d.ts +2 -59
  17. package/dist/types/components/CheckboxGroup/CheckboxGroup.d.ts +2 -53
  18. package/dist/types/components/Chip/Chip.d.ts +2 -32
  19. package/dist/types/components/Divider/Divider.d.ts +2 -72
  20. package/dist/types/components/Flex/Flex.d.ts +2 -26
  21. package/dist/types/components/Grid/Grid.d.ts +2 -77
  22. package/dist/types/components/Header/Header.d.ts +2 -33
  23. package/dist/types/components/Input/Input.d.ts +2 -52
  24. package/dist/types/components/Menu/Menu.d.ts +2 -32
  25. package/dist/types/components/Modal/Modal.d.ts +4 -73
  26. package/dist/types/components/MultiSelect/MultiSelect.d.ts +2 -41
  27. package/dist/types/components/Radio/Radio.d.ts +2 -55
  28. package/dist/types/components/RadioGroup/RadioGroup.d.ts +2 -57
  29. package/dist/types/components/Select/Select.d.ts +2 -58
  30. package/dist/types/components/SideMenu/SideMenu.d.ts +139 -38
  31. package/dist/types/components/SideMenu/SideMenu.examples.d.ts +17 -0
  32. package/dist/types/components/SideMenu/index.d.ts +2 -4
  33. package/dist/types/components/Table/Table.d.ts +2 -58
  34. package/dist/types/components/Text/Text.d.ts +2 -51
  35. package/dist/types/components/Timeline/Timeline.d.ts +34 -0
  36. package/dist/types/components/Timeline/index.d.ts +2 -0
  37. package/dist/types/components/Toast/Toast.d.ts +2 -51
  38. package/dist/types/hoc/withParsedClasses.d.ts +4 -0
  39. package/dist/types/icons/IconComponents.d.ts +50 -0
  40. package/dist/types/icons/index.d.ts +1 -0
  41. package/dist/types/index.d.ts +19 -1
  42. package/dist/types/stories/components/Accordion.stories.d.ts +11 -0
  43. package/dist/types/stories/components/Alert.stories.d.ts +9 -0
  44. package/dist/types/stories/components/Avatar.stories.d.ts +13 -0
  45. package/dist/types/stories/components/Badge.stories.d.ts +8 -0
  46. package/dist/types/stories/components/Button.stories.d.ts +9 -0
  47. package/dist/types/stories/components/Card.stories.d.ts +8 -0
  48. package/dist/types/stories/components/Checkbox.stories.d.ts +17 -0
  49. package/dist/types/stories/components/CheckboxGroup.stories.d.ts +13 -0
  50. package/dist/types/stories/components/Chip.stories.d.ts +22 -0
  51. package/dist/types/stories/components/Divider.stories.d.ts +15 -0
  52. package/dist/types/stories/components/Flex.stories.d.ts +14 -0
  53. package/dist/types/stories/components/Grid.stories.d.ts +11 -0
  54. package/dist/types/stories/components/Header.stories.d.ts +14 -0
  55. package/dist/types/stories/components/Input.stories.d.ts +9 -0
  56. package/dist/types/stories/components/Menu.stories.d.ts +13 -0
  57. package/dist/types/stories/components/Modal.stories.d.ts +12 -0
  58. package/dist/types/stories/components/MultiSelect.stories.d.ts +19 -0
  59. package/dist/types/stories/components/Radio.stories.d.ts +16 -0
  60. package/dist/types/stories/components/RadioGroup.stories.d.ts +15 -0
  61. package/dist/types/stories/components/Select.stories.d.ts +17 -0
  62. package/dist/types/stories/components/SideMenu.stories.d.ts +131 -0
  63. package/dist/types/stories/components/Table.stories.d.ts +18 -0
  64. package/dist/types/stories/components/Text.stories.d.ts +18 -0
  65. package/dist/types/stories/components/Timeline.stories.d.ts +20 -0
  66. package/dist/types/stories/components/Toast.stories.d.ts +17 -0
  67. package/dist/types/stories/components/Tooltip.stories.d.ts +20 -0
  68. package/dist/types/stories/widgets/InfoCard.stories.d.ts +12 -0
  69. package/dist/types/stories/widgets/InfoListCard.stories.d.ts +19 -0
  70. package/dist/types/stories/widgets/InfoText.stories.d.ts +30 -0
  71. package/dist/types/stories/widgets/OrderCard.stories.d.ts +13 -0
  72. package/dist/types/stories/widgets/OrderConfirmation.stories.d.ts +36 -0
  73. package/dist/types/stories/widgets/OrderDetails.stories.d.ts +11 -0
  74. package/dist/types/stories/widgets/ProductCard.stories.d.ts +25 -0
  75. package/dist/types/utils/parseClass.d.ts +1 -0
  76. package/dist/types/widgets/Header/Header.d.ts +252 -0
  77. package/dist/types/widgets/Header/Header.examples.d.ts +17 -0
  78. package/dist/types/widgets/Header/Header.megamenu.examples.d.ts +22 -0
  79. package/dist/types/widgets/Header/Header.stories.d.ts +30 -0
  80. package/dist/types/widgets/Header/index.d.ts +2 -0
  81. package/dist/types/widgets/InfoCard/InfoCard.d.ts +40 -0
  82. package/dist/types/widgets/InfoCard/index.d.ts +1 -0
  83. package/dist/types/widgets/InfoListCard/InfoListCard.d.ts +40 -0
  84. package/dist/types/widgets/InfoListCard/index.d.ts +2 -0
  85. package/dist/types/widgets/InfoText/InfoText.d.ts +144 -0
  86. package/dist/types/widgets/InfoText/InfoText.examples.d.ts +33 -0
  87. package/dist/types/widgets/InfoText/index.d.ts +1 -0
  88. package/dist/types/widgets/OrderCard/OrderCard.d.ts +68 -0
  89. package/dist/types/widgets/OrderCard/index.d.ts +2 -0
  90. package/dist/types/widgets/OrderConfirmation/OrderConfirmation.d.ts +82 -0
  91. package/dist/types/widgets/OrderConfirmation/index.d.ts +3 -0
  92. package/dist/types/widgets/OrderDetails/OrderDetails.d.ts +88 -0
  93. package/dist/types/widgets/OrderDetails/index.d.ts +3 -0
  94. package/dist/types/widgets/ProductCard/ProductCard.d.ts +42 -0
  95. package/dist/types/widgets/ProductCard/index.d.ts +1 -0
  96. package/dist/types/widgets/product-card-old/ProductCard.d.ts +12 -0
  97. package/dist/utils/parseClass.d.ts +1 -0
  98. package/package.json +72 -59
@@ -0,0 +1,176 @@
1
+ import React from 'react';
2
+ import './AdminHeader.css';
3
+ export interface NotificationItem {
4
+ /** Unique notification ID */
5
+ id: string;
6
+ /** Notification title/message */
7
+ title: string;
8
+ /** Optional description or body */
9
+ description?: string;
10
+ /** Timestamp (e.g., "2 min ago", "Today at 3:00 PM") */
11
+ time: string;
12
+ /** Whether notification has been read */
13
+ read?: boolean;
14
+ /** Icon element to display */
15
+ icon?: React.ReactNode;
16
+ /** Click handler for the notification */
17
+ onClick?: () => void;
18
+ /** Notification type for styling */
19
+ type?: 'info' | 'success' | 'warning' | 'error';
20
+ /** Avatar image for the notification */
21
+ avatar?: string;
22
+ /** Link URL if notification is clickable */
23
+ href?: string;
24
+ }
25
+ export interface UserMenuItem {
26
+ /** Menu item label */
27
+ label: string;
28
+ /** Icon element */
29
+ icon?: React.ReactNode;
30
+ /** Click handler */
31
+ onClick?: () => void;
32
+ /** Visual variant */
33
+ variant?: 'default' | 'danger' | 'success';
34
+ /** Show divider after item */
35
+ divider?: boolean;
36
+ /** Keyboard shortcut hint */
37
+ shortcut?: string;
38
+ /** Badge content */
39
+ badge?: React.ReactNode;
40
+ /** Whether item is disabled */
41
+ disabled?: boolean;
42
+ /** Link URL */
43
+ href?: string;
44
+ }
45
+ export interface QuickAction {
46
+ /** Action ID */
47
+ id: string;
48
+ /** Action label */
49
+ label: string;
50
+ /** Icon element */
51
+ icon?: React.ReactNode;
52
+ /** Click handler */
53
+ onClick?: () => void;
54
+ /** Tooltip text */
55
+ tooltip?: string;
56
+ /** Badge content */
57
+ badge?: React.ReactNode;
58
+ /** Whether action is disabled */
59
+ disabled?: boolean;
60
+ }
61
+ export interface SearchSuggestion {
62
+ /** Suggestion ID */
63
+ id: string;
64
+ /** Suggestion text */
65
+ label: string;
66
+ /** Optional icon */
67
+ icon?: React.ReactNode;
68
+ /** Category/group */
69
+ category?: string;
70
+ /** Click handler */
71
+ onClick?: () => void;
72
+ /** Link URL */
73
+ href?: string;
74
+ }
75
+ export interface AdminHeaderProps {
76
+ /** Logo element (image, SVG, component) */
77
+ logo?: React.ReactNode;
78
+ /** Application/brand title */
79
+ title?: string;
80
+ /** Subtitle or tagline */
81
+ subtitle?: string;
82
+ /** Logo click handler */
83
+ onLogoClick?: () => void;
84
+ /** Toggle button click handler (opens mobile sidebar) */
85
+ onToggleSidebar?: () => void;
86
+ /** Whether to show toggle button */
87
+ showToggleButton?: boolean;
88
+ /** Custom toggle icon */
89
+ toggleIcon?: React.ReactNode;
90
+ /** Enable search functionality */
91
+ showSearch?: boolean;
92
+ /** Search placeholder text */
93
+ searchPlaceholder?: string;
94
+ /** Search value (controlled) */
95
+ searchValue?: string;
96
+ /** Search change handler */
97
+ onSearchChange?: (value: string) => void;
98
+ /** Search submit handler */
99
+ onSearchSubmit?: (value: string) => void;
100
+ /** Search focus handler */
101
+ onSearchFocus?: () => void;
102
+ /** Search suggestions/results */
103
+ searchSuggestions?: SearchSuggestion[];
104
+ /** Show search loading state */
105
+ searchLoading?: boolean;
106
+ /** Custom search icon */
107
+ searchIcon?: React.ReactNode;
108
+ /** Notifications list */
109
+ notifications?: NotificationItem[];
110
+ /** Notification click handler */
111
+ onNotificationClick?: (notification: NotificationItem) => void;
112
+ /** Mark all notifications as read */
113
+ onMarkAllAsRead?: () => void;
114
+ /** Clear all notifications */
115
+ onClearAllNotifications?: () => void;
116
+ /** View all notifications handler */
117
+ onViewAllNotifications?: () => void;
118
+ /** Show notifications bell */
119
+ showNotifications?: boolean;
120
+ /** Custom notification icon */
121
+ notificationIcon?: React.ReactNode;
122
+ /** Quick action buttons */
123
+ quickActions?: QuickAction[];
124
+ /** User's display name */
125
+ userName?: string;
126
+ /** User's role, email, or subtitle */
127
+ userRole?: string;
128
+ /** User avatar image URL */
129
+ userAvatar?: string;
130
+ /** User avatar fallback (initials) */
131
+ userAvatarFallback?: string;
132
+ /** User menu dropdown items */
133
+ userMenuItems?: UserMenuItem[];
134
+ /** Show user menu */
135
+ showUserMenu?: boolean;
136
+ /** User avatar click handler (if no menu) */
137
+ onUserAvatarClick?: () => void;
138
+ /** Custom actions/content before user section */
139
+ actions?: React.ReactNode;
140
+ /** Custom content in left section (after logo) */
141
+ leftContent?: React.ReactNode;
142
+ /** Custom content in center section */
143
+ centerContent?: React.ReactNode;
144
+ /** Custom content in right section (before user) */
145
+ rightContent?: React.ReactNode;
146
+ /** Custom className */
147
+ className?: string;
148
+ /** Custom inline styles */
149
+ style?: React.CSSProperties;
150
+ /** Visual variant */
151
+ variant?: 'default' | 'elevated' | 'bordered' | 'minimal' | 'transparent';
152
+ /** Color theme */
153
+ theme?: 'light' | 'dark' | 'primary' | 'gradient';
154
+ /** Whether header is sticky */
155
+ sticky?: boolean;
156
+ /** Header height */
157
+ height?: string | number;
158
+ /** Whether header has blur effect */
159
+ blur?: boolean;
160
+ /** Maximum notification count to display */
161
+ maxNotifications?: number;
162
+ /** Whether to auto-hide search on blur */
163
+ autoHideSearch?: boolean;
164
+ /** Whether to show breadcrumbs space */
165
+ showBreadcrumbs?: boolean;
166
+ /** Breadcrumb items */
167
+ breadcrumbs?: Array<{
168
+ label: string;
169
+ href?: string;
170
+ onClick?: () => void;
171
+ }>;
172
+ }
173
+ declare const AdminHeaderWithParsedClasses: (props: AdminHeaderProps & React.RefAttributes<HTMLElement>) => import("react/jsx-runtime").JSX.Element;
174
+ export { AdminHeaderWithParsedClasses as AdminHeader };
175
+ declare const _default: React.FC<AdminHeaderProps & React.RefAttributes<HTMLElement>>;
176
+ export default _default;
@@ -0,0 +1,44 @@
1
+ /**
2
+ * Widget 1: Complete Admin Dashboard Header
3
+ * Full-featured header with all components
4
+ */
5
+ export declare const CompleteDashboardHeader: () => import("react/jsx-runtime").JSX.Element;
6
+ /**
7
+ * Widget 2: Dark Theme Dashboard Header
8
+ * Professional dark mode header
9
+ */
10
+ export declare const DarkThemeHeader: () => import("react/jsx-runtime").JSX.Element;
11
+ /**
12
+ * Widget 3: Minimal Clean Header
13
+ * Simple, clean header for focused interfaces
14
+ */
15
+ export declare const MinimalHeader: () => import("react/jsx-runtime").JSX.Element;
16
+ /**
17
+ * Widget 4: E-commerce Admin Header
18
+ * Header optimized for e-commerce admin panels
19
+ */
20
+ export declare const EcommerceAdminHeader: () => import("react/jsx-runtime").JSX.Element;
21
+ /**
22
+ * Widget 5: Gradient Header
23
+ * Eye-catching gradient header for modern apps
24
+ */
25
+ export declare const GradientHeader: () => import("react/jsx-runtime").JSX.Element;
26
+ /**
27
+ * Widget 6: SaaS Application Header
28
+ * Professional SaaS application header
29
+ */
30
+ export declare const SaasApplicationHeader: () => import("react/jsx-runtime").JSX.Element;
31
+ /**
32
+ * Widget 7: Compact Mobile-First Header
33
+ * Optimized for mobile devices
34
+ */
35
+ export declare const CompactMobileHeader: () => import("react/jsx-runtime").JSX.Element;
36
+ /**
37
+ * Widget 8: Primary Theme Corporate Header
38
+ * Professional corporate style
39
+ */
40
+ export declare const CorporateHeader: () => import("react/jsx-runtime").JSX.Element;
41
+ /**
42
+ * Complete Demo Page
43
+ */
44
+ export declare const AdminHeaderShowcase: () => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,53 @@
1
+ import type { Meta, StoryObj } from '@storybook/react';
2
+ import { AdminHeader } from './AdminHeader';
3
+ declare const meta: Meta<typeof AdminHeader>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof AdminHeader>;
6
+ /**
7
+ * Default admin header with all features enabled
8
+ */
9
+ export declare const Default: Story;
10
+ /**
11
+ * Interactive example with search functionality
12
+ */
13
+ export declare const WithSearch: Story;
14
+ /**
15
+ * Header with dark theme
16
+ */
17
+ export declare const DarkTheme: Story;
18
+ /**
19
+ * Header with primary color theme
20
+ */
21
+ export declare const PrimaryTheme: Story;
22
+ /**
23
+ * Header with gradient theme
24
+ */
25
+ export declare const GradientTheme: Story;
26
+ /**
27
+ * Minimal header without extra features
28
+ */
29
+ export declare const Minimal: Story;
30
+ /**
31
+ * Header with breadcrumbs
32
+ */
33
+ export declare const WithBreadcrumbs: Story;
34
+ /**
35
+ * Header without avatar (showing fallback)
36
+ */
37
+ export declare const WithoutAvatar: Story;
38
+ /**
39
+ * Header with custom quick actions
40
+ */
41
+ export declare const WithQuickActions: Story;
42
+ /**
43
+ * Header with transparent variant and blur
44
+ */
45
+ export declare const TransparentWithBlur: Story;
46
+ /**
47
+ * Interactive example with notification management
48
+ */
49
+ export declare const InteractiveNotifications: Story;
50
+ /**
51
+ * Mobile optimized header
52
+ */
53
+ export declare const MobileOptimized: Story;
@@ -0,0 +1,86 @@
1
+ import type { Meta, StoryObj } from '@storybook/react';
2
+ import { AdminHeader } from './AdminHeader';
3
+ declare const meta: Meta<typeof AdminHeader>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof AdminHeader>;
6
+ /**
7
+ * Complete Dashboard Header
8
+ *
9
+ * Full-featured admin header with all elements:
10
+ * - Logo and branding
11
+ * - Search with suggestions
12
+ * - Quick action buttons
13
+ * - Notifications panel
14
+ * - User menu with avatar
15
+ */
16
+ export declare const CompleteDashboard: Story;
17
+ /**
18
+ * Dark Theme Header
19
+ *
20
+ * Modern dark mode interface perfect for:
21
+ * - Developer tools
22
+ * - Late-night admin work
23
+ * - Reduced eye strain
24
+ * - Modern aesthetic
25
+ */
26
+ export declare const DarkTheme: Story;
27
+ /**
28
+ * Minimal Header
29
+ *
30
+ * Clean, distraction-free header for:
31
+ * - Simple admin panels
32
+ * - Internal tools
33
+ * - Minimal interfaces
34
+ * - Focus-first design
35
+ */
36
+ export declare const Minimal: Story;
37
+ /**
38
+ * E-Commerce Admin Header
39
+ *
40
+ * Optimized for online store management with:
41
+ * - Order notifications
42
+ * - Product quick actions
43
+ * - Customer insights
44
+ * - Sales analytics
45
+ */
46
+ export declare const EcommerceAdmin: Story;
47
+ /**
48
+ * Gradient Theme Header
49
+ *
50
+ * Eye-catching gradient design for:
51
+ * - Modern dashboards
52
+ * - Creative tools
53
+ * - Brand-focused interfaces
54
+ * - Marketing platforms
55
+ */
56
+ export declare const GradientHeader: Story;
57
+ /**
58
+ * SaaS Application Header
59
+ *
60
+ * Perfect for Software-as-a-Service platforms with:
61
+ * - Multi-tenant support
62
+ * - Workspace switcher
63
+ * - Breadcrumb navigation
64
+ * - Team collaboration features
65
+ */
66
+ export declare const SaasApplication: Story;
67
+ /**
68
+ * Compact Mobile Header
69
+ *
70
+ * Optimized for mobile devices with:
71
+ * - Compact layout
72
+ * - Essential features only
73
+ * - Touch-friendly buttons
74
+ * - Responsive design
75
+ */
76
+ export declare const CompactMobile: Story;
77
+ /**
78
+ * Corporate Enterprise Header
79
+ *
80
+ * Professional design for enterprise applications:
81
+ * - Formal aesthetic
82
+ * - Comprehensive features
83
+ * - Multi-level navigation
84
+ * - Business intelligence focus
85
+ */
86
+ export declare const CorporateHeader: Story;
@@ -0,0 +1,2 @@
1
+ export { AdminHeader, default } from './AdminHeader';
2
+ export type { AdminHeaderProps, NotificationItem, UserMenuItem, QuickAction, SearchSuggestion, } from './AdminHeader';
@@ -62,58 +62,7 @@ export interface AlertProps {
62
62
  */
63
63
  role?: string;
64
64
  }
65
- /**
66
- * Alert component - Displays important messages and notifications
67
- *
68
- * A flexible alert component supporting multiple variants, styles, and interactive features.
69
- * Can display simple messages or complex content with titles, actions, and custom icons.
70
- *
71
- * @example
72
- * Simple alert with children
73
- * ```tsx
74
- * <Alert variant="success">
75
- * Your changes have been saved!
76
- * </Alert>
77
- * ```
78
- *
79
- * @example
80
- * Alert with title and description
81
- * ```tsx
82
- * <Alert
83
- * variant="error"
84
- * title="Error occurred"
85
- * description="Unable to connect to the server."
86
- * dismissible
87
- * onClose={() => console.log('closed')}
88
- * />
89
- * ```
90
- *
91
- * @example
92
- * Alert with action button
93
- * ```tsx
94
- * <Alert
95
- * variant="warning"
96
- * title="Update available"
97
- * style="left-accent"
98
- * action={<Button size="small">Update Now</Button>}
99
- * >
100
- * A new version is available. Update to get the latest features.
101
- * </Alert>
102
- * ```
103
- *
104
- * @example
105
- * Alert with custom icon
106
- * ```tsx
107
- * <Alert
108
- * variant="info"
109
- * icon={<CustomIcon />}
110
- * title="Custom notification"
111
- * >
112
- * This alert uses a custom icon.
113
- * </Alert>
114
- * ```
115
- */
116
- declare const Alert: React.ForwardRefExoticComponent<AlertProps & React.RefAttributes<HTMLDivElement>>;
65
+ declare const AlertWithParsedClasses: (props: AlertProps & React.RefAttributes<HTMLDivElement>) => import("react/jsx-runtime").JSX.Element;
117
66
  declare const _default: React.FC<AlertProps & React.RefAttributes<HTMLDivElement>>;
118
67
  export default _default;
119
- export { Alert };
68
+ export { AlertWithParsedClasses as Alert };
@@ -57,7 +57,7 @@ export interface AvatarProps extends Omit<HTMLAttributes<HTMLDivElement>, 'child
57
57
  statusIndicator?: React.ReactNode;
58
58
  statusPosition?: 'top-left' | 'top-right' | 'bottom-left' | 'bottom-right';
59
59
  }
60
- declare const Avatar: React.ForwardRefExoticComponent<AvatarProps & React.RefAttributes<HTMLDivElement>>;
60
+ declare const AvatarWithParsedClasses: (props: AvatarProps & React.RefAttributes<HTMLDivElement>) => import("react/jsx-runtime").JSX.Element;
61
61
  declare const _default: React.FC<AvatarProps & React.RefAttributes<HTMLDivElement>>;
62
62
  export default _default;
63
- export { Avatar };
63
+ export { AvatarWithParsedClasses as Avatar };
@@ -45,37 +45,7 @@ export interface BadgeProps extends HTMLAttributes<HTMLSpanElement> {
45
45
  */
46
46
  onRemove?: (event: React.MouseEvent<HTMLButtonElement>) => void;
47
47
  }
48
- /**
49
- * Badge component - Small labels and indicators for status, counts, or categories
50
- *
51
- * A versatile badge component that can display status indicators, counts, tags, or any short text
52
- * with various visual styles and customization options.
53
- *
54
- * @example
55
- * Basic status badges
56
- * ```tsx
57
- * <Badge variant="success">Active</Badge>
58
- * <Badge variant="error" dot>Error</Badge>
59
- * <Badge variant="primary" pill>NEW</Badge>
60
- * ```
61
- *
62
- * @example
63
- * With icon and outline
64
- * ```tsx
65
- * <Badge variant="info" icon={<InfoIcon />} outline>
66
- * Information
67
- * </Badge>
68
- * ```
69
- *
70
- * @example
71
- * Removable badge
72
- * ```tsx
73
- * <Badge variant="primary" onRemove={(e) => handleRemove()}>
74
- * Tag 1
75
- * </Badge>
76
- * ```
77
- */
78
- declare const Badge: React.ForwardRefExoticComponent<BadgeProps & React.RefAttributes<HTMLSpanElement>>;
48
+ declare const BadgeWithParsedClasses: (props: BadgeProps & React.RefAttributes<HTMLSpanElement>) => import("react/jsx-runtime").JSX.Element;
79
49
  declare const _default: React.FC<BadgeProps & React.RefAttributes<HTMLSpanElement>>;
80
50
  export default _default;
81
- export { Badge };
51
+ export { BadgeWithParsedClasses as Badge };
@@ -71,47 +71,7 @@ export interface ButtonProps extends ButtonHTMLAttributes<HTMLButtonElement> {
71
71
  darkText?: boolean;
72
72
  children?: React.ReactNode;
73
73
  }
74
- /**
75
- * Button component - Primary interactive element for user actions
76
- *
77
- * A comprehensive button component with multiple variants, sizes, loading states,
78
- * and icon support. Can also render as a link with button styling.
79
- *
80
- * @example
81
- * Basic usage
82
- * ```tsx
83
- * <Button variant="primary" size="medium" onClick={() => console.log('clicked')}>
84
- * Click me
85
- * </Button>
86
- * ```
87
- *
88
- * @example
89
- * With icons
90
- * ```tsx
91
- * <Button variant="primary" leftIcon={<SaveIcon />}>
92
- * Save Changes
93
- * </Button>
94
- * <Button variant="secondary" rightIcon={<ArrowIcon />}>
95
- * Next
96
- * </Button>
97
- * ```
98
- *
99
- * @example
100
- * Loading state
101
- * ```tsx
102
- * <Button loading loadingText="Saving...">
103
- * Save
104
- * </Button>
105
- * ```
106
- *
107
- * @example
108
- * As link
109
- * ```tsx
110
- * <Button asLink href="/dashboard" variant="primary">
111
- * Go to Dashboard
112
- * </Button>
113
- * ```
114
- */
115
- export declare const Button: React.ForwardRefExoticComponent<ButtonProps & React.RefAttributes<HTMLButtonElement | HTMLAnchorElement>>;
74
+ declare const ButtonWithParsedClasses: (props: ButtonProps & React.RefAttributes<HTMLButtonElement | HTMLAnchorElement>) => import("react/jsx-runtime").JSX.Element;
116
75
  declare const _default: React.FC<ButtonProps & React.RefAttributes<HTMLButtonElement | HTMLAnchorElement>>;
117
76
  export default _default;
77
+ export { ButtonWithParsedClasses as Button };
@@ -53,68 +53,7 @@ export interface CardProps extends React.HTMLAttributes<HTMLDivElement> {
53
53
  */
54
54
  divider?: boolean;
55
55
  }
56
- /**
57
- * Card component - Container for grouping related content
58
- *
59
- * A versatile card component with support for variants, padding control,
60
- * headers, footers, and interactive states.
61
- *
62
- * @example
63
- * Basic card
64
- * ```tsx
65
- * <Card>
66
- * <h3>Card Title</h3>
67
- * <p>Card content goes here</p>
68
- * </Card>
69
- * ```
70
- *
71
- * @example
72
- * Card without padding
73
- * ```tsx
74
- * <Card noPadding>
75
- * <img src="image.jpg" alt="Full bleed image" />
76
- * </Card>
77
- * ```
78
- *
79
- * @example
80
- * Card with custom padding
81
- * ```tsx
82
- * <Card padding="32px">
83
- * <p>Card with custom padding</p>
84
- * </Card>
85
- * ```
86
- *
87
- * @example
88
- * Card with header and footer
89
- * ```tsx
90
- * <Card
91
- * header={<h3>Card Header</h3>}
92
- * footer={<button>Action</button>}
93
- * divider
94
- * >
95
- * <p>Card content</p>
96
- * </Card>
97
- * ```
98
- *
99
- * @example
100
- * Interactive card
101
- * ```tsx
102
- * <Card hoverable clickable onClick={() => console.log('clicked')}>
103
- * <p>Click me!</p>
104
- * </Card>
105
- * ```
106
- *
107
- * @example
108
- * Customize appearance with CSS
109
- * ```css
110
- * .vtx-card {
111
- * --vtx-card-bg: #ffffff;
112
- * --vtx-card-border-radius: 8px;
113
- * --vtx-card-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
114
- * --vtx-card-padding: 16px;
115
- * }
116
- * ```
117
- */
118
- export declare const Card: React.ForwardRefExoticComponent<CardProps & React.RefAttributes<HTMLDivElement>>;
56
+ declare const CardWithParsedClasses: (props: CardProps & React.RefAttributes<HTMLDivElement>) => import("react/jsx-runtime").JSX.Element;
119
57
  declare const _default: React.FC<CardProps & React.RefAttributes<HTMLDivElement>>;
120
58
  export default _default;
59
+ export { CardWithParsedClasses as Card };
@@ -51,64 +51,7 @@ export interface CheckboxProps extends Omit<React.InputHTMLAttributes<HTMLInputE
51
51
  */
52
52
  inputClassName?: string;
53
53
  }
54
- /**
55
- * Checkbox component - Allows users to select one or more items from a set
56
- *
57
- * The Checkbox component provides a customizable checkbox input with support
58
- * for labels, error states, indeterminate state, and three sizes.
59
- *
60
- * ## CSS Customization
61
- *
62
- * You can customize the checkbox appearance using CSS custom properties:
63
- *
64
- * ```css
65
- * :root {
66
- * --vtx-checkbox-color: #1976d2;
67
- * --vtx-checkbox-size: 20px;
68
- * --vtx-checkbox-border-width: 2px;
69
- * --vtx-checkbox-border-radius: 4px;
70
- * }
71
- * ```
72
- *
73
- * @example
74
- * Basic checkbox
75
- * ```tsx
76
- * <Checkbox label="Accept terms and conditions" />
77
- * ```
78
- *
79
- * @example
80
- * Controlled checkbox with size
81
- * ```tsx
82
- * const [checked, setChecked] = useState(false);
83
- * <Checkbox
84
- * checked={checked}
85
- * onChange={(e) => setChecked(e.target.checked)}
86
- * label="Subscribe to newsletter"
87
- * size="lg"
88
- * variant="secondary"
89
- * />
90
- * ```
91
- *
92
- * @example
93
- * With error state
94
- * ```tsx
95
- * <Checkbox
96
- * label="I agree"
97
- * error
98
- * helperText="You must agree to continue"
99
- * />
100
- * ```
101
- *
102
- * @example
103
- * Indeterminate state
104
- * ```tsx
105
- * <Checkbox
106
- * label="Select all"
107
- * indeterminate
108
- * />
109
- * ```
110
- */
111
- declare const Checkbox: React.ForwardRefExoticComponent<CheckboxProps & React.RefAttributes<HTMLInputElement>>;
54
+ declare const CheckboxWithParsedClasses: (props: CheckboxProps & React.RefAttributes<HTMLInputElement>) => import("react/jsx-runtime").JSX.Element;
112
55
  declare const _default: React.FC<CheckboxProps & React.RefAttributes<HTMLInputElement>>;
113
56
  export default _default;
114
- export { Checkbox };
57
+ export { CheckboxWithParsedClasses as Checkbox };