@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.
- package/dist/hoc/withParsedClasses.d.ts +4 -0
- package/dist/index.cjs.js +1 -1
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +1 -1
- package/dist/index.esm.js.map +1 -1
- package/dist/types/components/AdminHeader/AdminHeader.d.ts +176 -0
- package/dist/types/components/AdminHeader/AdminHeader.examples.d.ts +44 -0
- package/dist/types/components/AdminHeader/AdminHeader.stories.d.ts +53 -0
- package/dist/types/components/AdminHeader/AdminHeader.widgets.stories.d.ts +86 -0
- package/dist/types/components/AdminHeader/index.d.ts +2 -0
- package/dist/types/components/Alert/Alert.d.ts +2 -53
- package/dist/types/components/Avatar/Avatar.d.ts +2 -2
- package/dist/types/components/Badge/Badge.d.ts +2 -32
- package/dist/types/components/Button/Button.d.ts +2 -42
- package/dist/types/components/Card/Card.d.ts +2 -63
- package/dist/types/components/Checkbox/Checkbox.d.ts +2 -59
- package/dist/types/components/CheckboxGroup/CheckboxGroup.d.ts +2 -53
- package/dist/types/components/Chip/Chip.d.ts +2 -32
- package/dist/types/components/Divider/Divider.d.ts +2 -72
- package/dist/types/components/Flex/Flex.d.ts +2 -26
- package/dist/types/components/Grid/Grid.d.ts +2 -77
- package/dist/types/components/Header/Header.d.ts +2 -33
- package/dist/types/components/Input/Input.d.ts +2 -52
- package/dist/types/components/Menu/Menu.d.ts +2 -32
- package/dist/types/components/Modal/Modal.d.ts +4 -73
- package/dist/types/components/MultiSelect/MultiSelect.d.ts +2 -41
- package/dist/types/components/Radio/Radio.d.ts +2 -55
- package/dist/types/components/RadioGroup/RadioGroup.d.ts +2 -57
- package/dist/types/components/Select/Select.d.ts +2 -58
- package/dist/types/components/SideMenu/SideMenu.d.ts +139 -38
- package/dist/types/components/SideMenu/SideMenu.examples.d.ts +17 -0
- package/dist/types/components/SideMenu/index.d.ts +2 -4
- package/dist/types/components/Table/Table.d.ts +2 -58
- package/dist/types/components/Text/Text.d.ts +2 -51
- package/dist/types/components/Timeline/Timeline.d.ts +34 -0
- package/dist/types/components/Timeline/index.d.ts +2 -0
- package/dist/types/components/Toast/Toast.d.ts +2 -51
- package/dist/types/hoc/withParsedClasses.d.ts +4 -0
- package/dist/types/icons/IconComponents.d.ts +50 -0
- package/dist/types/icons/index.d.ts +1 -0
- package/dist/types/index.d.ts +19 -1
- package/dist/types/stories/components/Accordion.stories.d.ts +11 -0
- package/dist/types/stories/components/Alert.stories.d.ts +9 -0
- package/dist/types/stories/components/Avatar.stories.d.ts +13 -0
- package/dist/types/stories/components/Badge.stories.d.ts +8 -0
- package/dist/types/stories/components/Button.stories.d.ts +9 -0
- package/dist/types/stories/components/Card.stories.d.ts +8 -0
- package/dist/types/stories/components/Checkbox.stories.d.ts +17 -0
- package/dist/types/stories/components/CheckboxGroup.stories.d.ts +13 -0
- package/dist/types/stories/components/Chip.stories.d.ts +22 -0
- package/dist/types/stories/components/Divider.stories.d.ts +15 -0
- package/dist/types/stories/components/Flex.stories.d.ts +14 -0
- package/dist/types/stories/components/Grid.stories.d.ts +11 -0
- package/dist/types/stories/components/Header.stories.d.ts +14 -0
- package/dist/types/stories/components/Input.stories.d.ts +9 -0
- package/dist/types/stories/components/Menu.stories.d.ts +13 -0
- package/dist/types/stories/components/Modal.stories.d.ts +12 -0
- package/dist/types/stories/components/MultiSelect.stories.d.ts +19 -0
- package/dist/types/stories/components/Radio.stories.d.ts +16 -0
- package/dist/types/stories/components/RadioGroup.stories.d.ts +15 -0
- package/dist/types/stories/components/Select.stories.d.ts +17 -0
- package/dist/types/stories/components/SideMenu.stories.d.ts +131 -0
- package/dist/types/stories/components/Table.stories.d.ts +18 -0
- package/dist/types/stories/components/Text.stories.d.ts +18 -0
- package/dist/types/stories/components/Timeline.stories.d.ts +20 -0
- package/dist/types/stories/components/Toast.stories.d.ts +17 -0
- package/dist/types/stories/components/Tooltip.stories.d.ts +20 -0
- package/dist/types/stories/widgets/InfoCard.stories.d.ts +12 -0
- package/dist/types/stories/widgets/InfoListCard.stories.d.ts +19 -0
- package/dist/types/stories/widgets/InfoText.stories.d.ts +30 -0
- package/dist/types/stories/widgets/OrderCard.stories.d.ts +13 -0
- package/dist/types/stories/widgets/OrderConfirmation.stories.d.ts +36 -0
- package/dist/types/stories/widgets/OrderDetails.stories.d.ts +11 -0
- package/dist/types/stories/widgets/ProductCard.stories.d.ts +25 -0
- package/dist/types/utils/parseClass.d.ts +1 -0
- package/dist/types/widgets/Header/Header.d.ts +252 -0
- package/dist/types/widgets/Header/Header.examples.d.ts +17 -0
- package/dist/types/widgets/Header/Header.megamenu.examples.d.ts +22 -0
- package/dist/types/widgets/Header/Header.stories.d.ts +30 -0
- package/dist/types/widgets/Header/index.d.ts +2 -0
- package/dist/types/widgets/InfoCard/InfoCard.d.ts +40 -0
- package/dist/types/widgets/InfoCard/index.d.ts +1 -0
- package/dist/types/widgets/InfoListCard/InfoListCard.d.ts +40 -0
- package/dist/types/widgets/InfoListCard/index.d.ts +2 -0
- package/dist/types/widgets/InfoText/InfoText.d.ts +144 -0
- package/dist/types/widgets/InfoText/InfoText.examples.d.ts +33 -0
- package/dist/types/widgets/InfoText/index.d.ts +1 -0
- package/dist/types/widgets/OrderCard/OrderCard.d.ts +68 -0
- package/dist/types/widgets/OrderCard/index.d.ts +2 -0
- package/dist/types/widgets/OrderConfirmation/OrderConfirmation.d.ts +82 -0
- package/dist/types/widgets/OrderConfirmation/index.d.ts +3 -0
- package/dist/types/widgets/OrderDetails/OrderDetails.d.ts +88 -0
- package/dist/types/widgets/OrderDetails/index.d.ts +3 -0
- package/dist/types/widgets/ProductCard/ProductCard.d.ts +42 -0
- package/dist/types/widgets/ProductCard/index.d.ts +1 -0
- package/dist/types/widgets/product-card-old/ProductCard.d.ts +12 -0
- package/dist/utils/parseClass.d.ts +1 -0
- package/package.json +72 -59
|
@@ -64,58 +64,7 @@ export interface CheckboxGroupProps extends Omit<React.HTMLAttributes<HTMLDivEle
|
|
|
64
64
|
*/
|
|
65
65
|
className?: string;
|
|
66
66
|
}
|
|
67
|
-
|
|
68
|
-
* CheckboxGroup component - Manages a group of related checkboxes
|
|
69
|
-
*
|
|
70
|
-
* The CheckboxGroup component provides a convenient way to manage multiple
|
|
71
|
-
* checkboxes with shared state, labels, and error handling.
|
|
72
|
-
*
|
|
73
|
-
* @example
|
|
74
|
-
* Basic usage
|
|
75
|
-
* ```tsx
|
|
76
|
-
* <CheckboxGroup
|
|
77
|
-
* label="Select your interests"
|
|
78
|
-
* options={[
|
|
79
|
-
* { value: 'sports', label: 'Sports' },
|
|
80
|
-
* { value: 'music', label: 'Music' },
|
|
81
|
-
* { value: 'travel', label: 'Travel' },
|
|
82
|
-
* ]}
|
|
83
|
-
* />
|
|
84
|
-
* ```
|
|
85
|
-
*
|
|
86
|
-
* @example
|
|
87
|
-
* Controlled mode
|
|
88
|
-
* ```tsx
|
|
89
|
-
* const [selected, setSelected] = useState(['sports']);
|
|
90
|
-
* <CheckboxGroup
|
|
91
|
-
* label="Interests"
|
|
92
|
-
* options={options}
|
|
93
|
-
* value={selected}
|
|
94
|
-
* onChange={setSelected}
|
|
95
|
-
* />
|
|
96
|
-
* ```
|
|
97
|
-
*
|
|
98
|
-
* @example
|
|
99
|
-
* Horizontal layout
|
|
100
|
-
* ```tsx
|
|
101
|
-
* <CheckboxGroup
|
|
102
|
-
* label="Preferences"
|
|
103
|
-
* options={options}
|
|
104
|
-
* orientation="horizontal"
|
|
105
|
-
* />
|
|
106
|
-
* ```
|
|
107
|
-
*
|
|
108
|
-
* @example
|
|
109
|
-
* With error state
|
|
110
|
-
* ```tsx
|
|
111
|
-
* <CheckboxGroup
|
|
112
|
-
* label="Required selection"
|
|
113
|
-
* options={options}
|
|
114
|
-
* error
|
|
115
|
-
* helperText="Please select at least one option"
|
|
116
|
-
* />
|
|
117
|
-
* ```
|
|
118
|
-
*/
|
|
119
|
-
export declare const CheckboxGroup: React.ForwardRefExoticComponent<CheckboxGroupProps & React.RefAttributes<HTMLDivElement>>;
|
|
67
|
+
declare const CheckboxGroupWithParsedClasses: (props: CheckboxGroupProps & React.RefAttributes<HTMLDivElement>) => import("react/jsx-runtime").JSX.Element;
|
|
120
68
|
declare const _default: React.FC<CheckboxGroupProps & React.RefAttributes<HTMLDivElement>>;
|
|
121
69
|
export default _default;
|
|
70
|
+
export { CheckboxGroupWithParsedClasses as CheckboxGroup };
|
|
@@ -55,37 +55,7 @@ export interface ChipProps {
|
|
|
55
55
|
*/
|
|
56
56
|
'data-testid'?: string;
|
|
57
57
|
}
|
|
58
|
-
|
|
59
|
-
* Chip component - Compact element for displaying tags, labels, or selections
|
|
60
|
-
*
|
|
61
|
-
* A versatile chip component for representing small pieces of information like tags,
|
|
62
|
-
* filters, selections, or categories with optional delete functionality.
|
|
63
|
-
*
|
|
64
|
-
* @example
|
|
65
|
-
* Basic usage
|
|
66
|
-
* ```tsx
|
|
67
|
-
* <Chip label="React" />
|
|
68
|
-
* ```
|
|
69
|
-
*
|
|
70
|
-
* @example
|
|
71
|
-
* With delete functionality
|
|
72
|
-
* ```tsx
|
|
73
|
-
* <Chip
|
|
74
|
-
* label="JavaScript"
|
|
75
|
-
* onDelete={() => handleRemove('js')}
|
|
76
|
-
* />
|
|
77
|
-
* ```
|
|
78
|
-
*
|
|
79
|
-
* @example
|
|
80
|
-
* With avatar
|
|
81
|
-
* ```tsx
|
|
82
|
-
* <Chip
|
|
83
|
-
* label="John Doe"
|
|
84
|
-
* avatar="https://avatar.url/john.jpg"
|
|
85
|
-
* variant="outlined"
|
|
86
|
-
* />
|
|
87
|
-
* ```
|
|
88
|
-
*/
|
|
89
|
-
export declare const Chip: React.ForwardRefExoticComponent<ChipProps & React.RefAttributes<HTMLDivElement>>;
|
|
58
|
+
declare const ChipWithParsedClasses: (props: ChipProps & React.RefAttributes<HTMLDivElement>) => import("react/jsx-runtime").JSX.Element;
|
|
90
59
|
declare const _default: React.FC<ChipProps & React.RefAttributes<HTMLDivElement>>;
|
|
91
60
|
export default _default;
|
|
61
|
+
export { ChipWithParsedClasses as Chip };
|
|
@@ -42,77 +42,7 @@ export interface DividerProps extends React.HTMLAttributes<HTMLHRElement | HTMLD
|
|
|
42
42
|
*/
|
|
43
43
|
className?: string;
|
|
44
44
|
}
|
|
45
|
-
|
|
46
|
-
* Divider component - A thin line that groups content in lists and layouts
|
|
47
|
-
*
|
|
48
|
-
* The Divider component provides a thin, unobtrusive line for grouping elements
|
|
49
|
-
* to reinforce visual hierarchy. It supports horizontal and vertical orientations,
|
|
50
|
-
* multiple variants, and can wrap content like text or chips.
|
|
51
|
-
*
|
|
52
|
-
* ## CSS Customization
|
|
53
|
-
*
|
|
54
|
-
* You can customize the divider appearance using CSS custom properties:
|
|
55
|
-
*
|
|
56
|
-
* ```css
|
|
57
|
-
* .custom-divider {
|
|
58
|
-
* --vtx-divider-color: #e91e63;
|
|
59
|
-
* --vtx-divider-color-light: #fce4ec;
|
|
60
|
-
* --vtx-divider-text-color: #c2185b;
|
|
61
|
-
* --vtx-divider-text-color-light: #f48fb1;
|
|
62
|
-
* --vtx-divider-text-size: 14px;
|
|
63
|
-
* --vtx-divider-text-weight: 600;
|
|
64
|
-
* }
|
|
65
|
-
* ```
|
|
66
|
-
*
|
|
67
|
-
* Or set them globally on :root:
|
|
68
|
-
*
|
|
69
|
-
* ```css
|
|
70
|
-
* :root {
|
|
71
|
-
* --vtx-divider-color: #1976d2;
|
|
72
|
-
* --vtx-divider-text-color: #0d47a1;
|
|
73
|
-
* }
|
|
74
|
-
* ```
|
|
75
|
-
*
|
|
76
|
-
* @example
|
|
77
|
-
* Basic horizontal divider
|
|
78
|
-
* ```tsx
|
|
79
|
-
* <Divider />
|
|
80
|
-
* ```
|
|
81
|
-
*
|
|
82
|
-
* @example
|
|
83
|
-
* Vertical divider in flex container
|
|
84
|
-
* ```tsx
|
|
85
|
-
* <Box display="flex" alignItems="center">
|
|
86
|
-
* <Chip label="Item 1" />
|
|
87
|
-
* <Divider orientation="vertical" flexItem />
|
|
88
|
-
* <Chip label="Item 2" />
|
|
89
|
-
* </Box>
|
|
90
|
-
* ```
|
|
91
|
-
*
|
|
92
|
-
* @example
|
|
93
|
-
* With text content
|
|
94
|
-
* ```tsx
|
|
95
|
-
* <div>
|
|
96
|
-
* <p>Content above</p>
|
|
97
|
-
* <Divider>OR</Divider>
|
|
98
|
-
* <p>Content below</p>
|
|
99
|
-
* </div>
|
|
100
|
-
* ```
|
|
101
|
-
*
|
|
102
|
-
* @example
|
|
103
|
-
* With chip and custom alignment
|
|
104
|
-
* ```tsx
|
|
105
|
-
* <Divider textAlign="left">
|
|
106
|
-
* <Chip label="Section" size="small" />
|
|
107
|
-
* </Divider>
|
|
108
|
-
* ```
|
|
109
|
-
*
|
|
110
|
-
* @example
|
|
111
|
-
* Custom colored divider
|
|
112
|
-
* ```tsx
|
|
113
|
-
* <Divider className="custom-divider">Custom</Divider>
|
|
114
|
-
* ```
|
|
115
|
-
*/
|
|
116
|
-
export declare const Divider: React.ForwardRefExoticComponent<DividerProps & React.RefAttributes<HTMLDivElement | HTMLHRElement>>;
|
|
45
|
+
declare const DividerWithParsedClasses: (props: DividerProps & React.RefAttributes<HTMLDivElement | HTMLHRElement>) => import("react/jsx-runtime").JSX.Element;
|
|
117
46
|
declare const _default: React.FC<DividerProps & React.RefAttributes<HTMLHRElement | HTMLDivElement>>;
|
|
118
47
|
export default _default;
|
|
48
|
+
export { DividerWithParsedClasses as Divider };
|
|
@@ -36,31 +36,7 @@ export interface FlexProps {
|
|
|
36
36
|
/** HTML element to render as */
|
|
37
37
|
as?: 'div' | 'section' | 'article' | 'aside' | 'header' | 'footer' | 'nav' | 'main';
|
|
38
38
|
}
|
|
39
|
-
|
|
40
|
-
* Flex component - A flexible container for flexbox layouts
|
|
41
|
-
*
|
|
42
|
-
* @example
|
|
43
|
-
* ```tsx
|
|
44
|
-
* // Basic row with gap
|
|
45
|
-
* <Flex gap={16}>
|
|
46
|
-
* <div>Item 1</div>
|
|
47
|
-
* <div>Item 2</div>
|
|
48
|
-
* </Flex>
|
|
49
|
-
*
|
|
50
|
-
* // Centered column
|
|
51
|
-
* <Flex direction="column" align="center" justify="center">
|
|
52
|
-
* <h1>Title</h1>
|
|
53
|
-
* <p>Content</p>
|
|
54
|
-
* </Flex>
|
|
55
|
-
*
|
|
56
|
-
* // Space between with wrap
|
|
57
|
-
* <Flex justify="between" wrap="wrap" gap={8}>
|
|
58
|
-
* <button>Button 1</button>
|
|
59
|
-
* <button>Button 2</button>
|
|
60
|
-
* <button>Button 3</button>
|
|
61
|
-
* </Flex>
|
|
62
|
-
* ```
|
|
63
|
-
*/
|
|
64
|
-
export declare const Flex: React.ForwardRefExoticComponent<FlexProps & React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
39
|
+
declare const FlexWithParsedClasses: (props: FlexProps & React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>) => import("react/jsx-runtime").JSX.Element;
|
|
65
40
|
declare const _default: React.FC<FlexProps & React.RefAttributes<HTMLDivElement>>;
|
|
66
41
|
export default _default;
|
|
42
|
+
export { FlexWithParsedClasses as Flex };
|
|
@@ -75,82 +75,7 @@ export interface GridProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
|
75
75
|
*/
|
|
76
76
|
children?: React.ReactNode;
|
|
77
77
|
}
|
|
78
|
-
|
|
79
|
-
* Grid component - A responsive grid layout system
|
|
80
|
-
*
|
|
81
|
-
* The Grid component uses a 12-column responsive grid layout inspired by Material-UI.
|
|
82
|
-
* It supports five breakpoints (xs, sm, md, lg, xl) and provides flexible spacing,
|
|
83
|
-
* alignment, and direction options.
|
|
84
|
-
*
|
|
85
|
-
* ## Breakpoints
|
|
86
|
-
* - xs: 0px and up (extra small devices)
|
|
87
|
-
* - sm: 600px and up (small devices)
|
|
88
|
-
* - md: 960px and up (medium devices)
|
|
89
|
-
* - lg: 1280px and up (large devices)
|
|
90
|
-
* - xl: 1920px and up (extra large devices)
|
|
91
|
-
*
|
|
92
|
-
* ## CSS Customization
|
|
93
|
-
*
|
|
94
|
-
* You can customize the grid spacing using CSS custom properties:
|
|
95
|
-
*
|
|
96
|
-
* ```css
|
|
97
|
-
* :root {
|
|
98
|
-
* --vtx-grid-spacing-unit: 8px;
|
|
99
|
-
* }
|
|
100
|
-
* ```
|
|
101
|
-
*
|
|
102
|
-
* @example
|
|
103
|
-
* Basic grid with equal columns
|
|
104
|
-
* ```tsx
|
|
105
|
-
* <Grid container spacing={2}>
|
|
106
|
-
* <Grid item xs={12} sm={6} md={4}>
|
|
107
|
-
* <div>Column 1</div>
|
|
108
|
-
* </Grid>
|
|
109
|
-
* <Grid item xs={12} sm={6} md={4}>
|
|
110
|
-
* <div>Column 2</div>
|
|
111
|
-
* </Grid>
|
|
112
|
-
* <Grid item xs={12} sm={6} md={4}>
|
|
113
|
-
* <div>Column 3</div>
|
|
114
|
-
* </Grid>
|
|
115
|
-
* </Grid>
|
|
116
|
-
* ```
|
|
117
|
-
*
|
|
118
|
-
* @example
|
|
119
|
-
* Responsive layout
|
|
120
|
-
* ```tsx
|
|
121
|
-
* <Grid container spacing={3}>
|
|
122
|
-
* <Grid item xs={12} md={8}>
|
|
123
|
-
* <div>Main content</div>
|
|
124
|
-
* </Grid>
|
|
125
|
-
* <Grid item xs={12} md={4}>
|
|
126
|
-
* <div>Sidebar</div>
|
|
127
|
-
* </Grid>
|
|
128
|
-
* </Grid>
|
|
129
|
-
* ```
|
|
130
|
-
*
|
|
131
|
-
* @example
|
|
132
|
-
* Auto-width columns
|
|
133
|
-
* ```tsx
|
|
134
|
-
* <Grid container spacing={2}>
|
|
135
|
-
* <Grid item xs="auto">
|
|
136
|
-
* <div>Auto width</div>
|
|
137
|
-
* </Grid>
|
|
138
|
-
* <Grid item xs>
|
|
139
|
-
* <div>Fills remaining space</div>
|
|
140
|
-
* </Grid>
|
|
141
|
-
* </Grid>
|
|
142
|
-
* ```
|
|
143
|
-
*
|
|
144
|
-
* @example
|
|
145
|
-
* With alignment
|
|
146
|
-
* ```tsx
|
|
147
|
-
* <Grid container spacing={2} justifyContent="center" alignItems="center">
|
|
148
|
-
* <Grid item xs={6}>
|
|
149
|
-
* <div>Centered content</div>
|
|
150
|
-
* </Grid>
|
|
151
|
-
* </Grid>
|
|
152
|
-
* ```
|
|
153
|
-
*/
|
|
154
|
-
export declare const Grid: React.ForwardRefExoticComponent<GridProps & React.RefAttributes<HTMLDivElement>>;
|
|
78
|
+
declare const GridWithParsedClasses: (props: GridProps & React.RefAttributes<HTMLDivElement>) => import("react/jsx-runtime").JSX.Element;
|
|
155
79
|
declare const _default: React.FC<GridProps & React.RefAttributes<HTMLDivElement>>;
|
|
156
80
|
export default _default;
|
|
81
|
+
export { GridWithParsedClasses as Grid };
|
|
@@ -101,38 +101,7 @@ export interface HeaderProps {
|
|
|
101
101
|
*/
|
|
102
102
|
sticky?: boolean;
|
|
103
103
|
}
|
|
104
|
-
|
|
105
|
-
* Header component - Professional admin panel header with notifications and user menu
|
|
106
|
-
*
|
|
107
|
-
* @example
|
|
108
|
-
* Basic header
|
|
109
|
-
* ```tsx
|
|
110
|
-
* <Header
|
|
111
|
-
* title="Admin Dashboard"
|
|
112
|
-
* userName="John Doe"
|
|
113
|
-
* userSubtitle="Admin"
|
|
114
|
-
* onToggleSidebar={() => setCollapsed(!collapsed)}
|
|
115
|
-
* />
|
|
116
|
-
* ```
|
|
117
|
-
*
|
|
118
|
-
* @example
|
|
119
|
-
* With notifications
|
|
120
|
-
* ```tsx
|
|
121
|
-
* <Header
|
|
122
|
-
* title="Dashboard"
|
|
123
|
-
* notifications={[
|
|
124
|
-
* { id: '1', title: 'New order received', time: '2 min ago', read: false },
|
|
125
|
-
* { id: '2', title: 'User registered', time: '1 hour ago', read: true }
|
|
126
|
-
* ]}
|
|
127
|
-
* userName="John Doe"
|
|
128
|
-
* userMenuItems={[
|
|
129
|
-
* { label: 'Profile', icon: <UserIcon /> },
|
|
130
|
-
* { label: 'Settings', icon: <SettingsIcon /> },
|
|
131
|
-
* { label: 'Logout', icon: <LogoutIcon />, variant: 'danger' }
|
|
132
|
-
* ]}
|
|
133
|
-
* />
|
|
134
|
-
* ```
|
|
135
|
-
*/
|
|
136
|
-
export declare const Header: React.ForwardRefExoticComponent<HeaderProps & React.RefAttributes<HTMLDivElement>>;
|
|
104
|
+
declare const HeaderWithParsedClasses: (props: HeaderProps & React.RefAttributes<HTMLDivElement>) => import("react/jsx-runtime").JSX.Element;
|
|
137
105
|
declare const _default: React.FC<HeaderProps & React.RefAttributes<HTMLElement>>;
|
|
138
106
|
export default _default;
|
|
107
|
+
export { HeaderWithParsedClasses as Header };
|
|
@@ -73,57 +73,7 @@ export interface InputProps extends Omit<InputHTMLAttributes<HTMLInputElement>,
|
|
|
73
73
|
*/
|
|
74
74
|
suffix?: string;
|
|
75
75
|
}
|
|
76
|
-
|
|
77
|
-
* Input component - Text input field with label, helper text, validation states, and rich features
|
|
78
|
-
*
|
|
79
|
-
* A comprehensive input component with support for icons, prefixes, suffixes, character counting,
|
|
80
|
-
* clear functionality, and various validation states.
|
|
81
|
-
*
|
|
82
|
-
* @example
|
|
83
|
-
* Basic usage
|
|
84
|
-
* ```tsx
|
|
85
|
-
* <Input
|
|
86
|
-
* label="Email"
|
|
87
|
-
* type="email"
|
|
88
|
-
* placeholder="Enter your email"
|
|
89
|
-
* helperText="We'll never share your email"
|
|
90
|
-
* />
|
|
91
|
-
* ```
|
|
92
|
-
*
|
|
93
|
-
* @example
|
|
94
|
-
* With error state
|
|
95
|
-
* ```tsx
|
|
96
|
-
* <Input
|
|
97
|
-
* label="Username"
|
|
98
|
-
* error="Username is already taken"
|
|
99
|
-
* value={username}
|
|
100
|
-
* onChange={(e) => setUsername(e.target.value)}
|
|
101
|
-
* />
|
|
102
|
-
* ```
|
|
103
|
-
*
|
|
104
|
-
* @example
|
|
105
|
-
* With icons and clear button
|
|
106
|
-
* ```tsx
|
|
107
|
-
* <Input
|
|
108
|
-
* label="Search"
|
|
109
|
-
* leftIcon={<SearchIcon />}
|
|
110
|
-
* clearable
|
|
111
|
-
* onClear={() => setSearch('')}
|
|
112
|
-
* />
|
|
113
|
-
* ```
|
|
114
|
-
*
|
|
115
|
-
* @example
|
|
116
|
-
* With character counter
|
|
117
|
-
* ```tsx
|
|
118
|
-
* <Input
|
|
119
|
-
* label="Bio"
|
|
120
|
-
* maxLength={100}
|
|
121
|
-
* showCount
|
|
122
|
-
* value={bio}
|
|
123
|
-
* onChange={(e) => setBio(e.target.value)}
|
|
124
|
-
* />
|
|
125
|
-
* ```
|
|
126
|
-
*/
|
|
127
|
-
export declare const Input: React.ForwardRefExoticComponent<InputProps & React.RefAttributes<HTMLInputElement>>;
|
|
76
|
+
declare const InputWithParsedClasses: (props: InputProps & React.RefAttributes<HTMLInputElement>) => import("react/jsx-runtime").JSX.Element;
|
|
128
77
|
declare const _default: React.FC<InputProps & React.RefAttributes<HTMLInputElement>>;
|
|
129
78
|
export default _default;
|
|
79
|
+
export { InputWithParsedClasses as Input };
|
|
@@ -78,37 +78,7 @@ export interface MenuProps {
|
|
|
78
78
|
* MenuItem component - Individual menu item with submenu support
|
|
79
79
|
*/
|
|
80
80
|
export declare const MenuItem: React.ForwardRefExoticComponent<MenuItemProps & React.RefAttributes<HTMLDivElement>>;
|
|
81
|
-
|
|
82
|
-
* Menu component - Navigation or action menu with responsive support
|
|
83
|
-
*
|
|
84
|
-
* @example
|
|
85
|
-
* Basic menu with items array
|
|
86
|
-
* ```tsx
|
|
87
|
-
* <Menu
|
|
88
|
-
* items={[
|
|
89
|
-
* { label: 'Profile', icon: <UserIcon />, onClick: () => {} },
|
|
90
|
-
* { label: 'Settings', icon: <SettingsIcon />, onClick: () => {} },
|
|
91
|
-
* { label: 'Logout', icon: <LogoutIcon />, onClick: () => {}, variant: 'danger' }
|
|
92
|
-
* ]}
|
|
93
|
-
* />
|
|
94
|
-
* ```
|
|
95
|
-
*
|
|
96
|
-
* @example
|
|
97
|
-
* Horizontal menu with custom children
|
|
98
|
-
* ```tsx
|
|
99
|
-
* <Menu orientation="horizontal">
|
|
100
|
-
* <MenuItem label="Home" active />
|
|
101
|
-
* <MenuItem label="Products" />
|
|
102
|
-
* <MenuItem label="About" />
|
|
103
|
-
* </Menu>
|
|
104
|
-
* ```
|
|
105
|
-
*
|
|
106
|
-
* @example
|
|
107
|
-
* Responsive menu (hamburger on mobile)
|
|
108
|
-
* ```tsx
|
|
109
|
-
* <Menu responsive items={menuItems} />
|
|
110
|
-
* ```
|
|
111
|
-
*/
|
|
112
|
-
export declare const Menu: React.ForwardRefExoticComponent<MenuProps & React.RefAttributes<HTMLDivElement>>;
|
|
81
|
+
declare const MenuWithParsedClasses: (props: MenuProps & React.RefAttributes<HTMLDivElement>) => import("react/jsx-runtime").JSX.Element;
|
|
113
82
|
declare const _default: React.FC<MenuProps & React.RefAttributes<HTMLDivElement>>;
|
|
114
83
|
export default _default;
|
|
84
|
+
export { MenuWithParsedClasses as Menu };
|
|
@@ -126,76 +126,7 @@ export interface ModalProps {
|
|
|
126
126
|
*/
|
|
127
127
|
centered?: boolean;
|
|
128
128
|
}
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
* body scroll lock, keyboard navigation, and customizable animations.
|
|
134
|
-
*
|
|
135
|
-
* @example
|
|
136
|
-
* Basic confirmation modal with footerButtons array
|
|
137
|
-
* ```tsx
|
|
138
|
-
* const [isOpen, setIsOpen] = useState(false);
|
|
139
|
-
*
|
|
140
|
-
* <Modal
|
|
141
|
-
* isOpen={isOpen}
|
|
142
|
-
* onClose={() => setIsOpen(false)}
|
|
143
|
-
* title="Confirm Action"
|
|
144
|
-
* description="Are you sure you want to proceed with this action?"
|
|
145
|
-
* footerButtons={[
|
|
146
|
-
* { label: 'Cancel', onClick: () => setIsOpen(false), variant: 'outline' },
|
|
147
|
-
* { label: 'Confirm', onClick: handleConfirm, variant: 'primary' }
|
|
148
|
-
* ]}
|
|
149
|
-
* >
|
|
150
|
-
* <p>This action cannot be undone.</p>
|
|
151
|
-
* </Modal>
|
|
152
|
-
* ```
|
|
153
|
-
*
|
|
154
|
-
* @example
|
|
155
|
-
* Custom footer with ReactNode
|
|
156
|
-
* ```tsx
|
|
157
|
-
* <Modal
|
|
158
|
-
* isOpen={isOpen}
|
|
159
|
-
* onClose={() => setIsOpen(false)}
|
|
160
|
-
* title="Custom Footer"
|
|
161
|
-
* footer={
|
|
162
|
-
* <>
|
|
163
|
-
* <Button onClick={() => setIsOpen(false)}>Cancel</Button>
|
|
164
|
-
* <Button variant="primary">Save</Button>
|
|
165
|
-
* </>
|
|
166
|
-
* }
|
|
167
|
-
* >
|
|
168
|
-
* <p>Custom content here.</p>
|
|
169
|
-
* </Modal>
|
|
170
|
-
* ```
|
|
171
|
-
*
|
|
172
|
-
* @example
|
|
173
|
-
* Form modal with custom header
|
|
174
|
-
* ```tsx
|
|
175
|
-
* <Modal
|
|
176
|
-
* isOpen={isOpen}
|
|
177
|
-
* onClose={() => setIsOpen(false)}
|
|
178
|
-
* size="large"
|
|
179
|
-
* header={<CustomHeader />}
|
|
180
|
-
* scrollable
|
|
181
|
-
* >
|
|
182
|
-
* <FormContent />
|
|
183
|
-
* </Modal>
|
|
184
|
-
* ```
|
|
185
|
-
*
|
|
186
|
-
* @example
|
|
187
|
-
* Fullscreen modal without backdrop close
|
|
188
|
-
* ```tsx
|
|
189
|
-
* <Modal
|
|
190
|
-
* isOpen={isOpen}
|
|
191
|
-
* onClose={() => setIsOpen(false)}
|
|
192
|
-
* size="fullscreen"
|
|
193
|
-
* closeOnBackdropClick={false}
|
|
194
|
-
* animation="slide-up"
|
|
195
|
-
* >
|
|
196
|
-
* <FullscreenContent />
|
|
197
|
-
* </Modal>
|
|
198
|
-
* ```
|
|
199
|
-
*/
|
|
200
|
-
export declare const Modal: React.ForwardRefExoticComponent<ModalProps & React.RefAttributes<HTMLDivElement>>;
|
|
201
|
-
export default Modal;
|
|
129
|
+
declare const ModalWithParsedClasses: (props: ModalProps & React.RefAttributes<HTMLDivElement>) => import("react/jsx-runtime").JSX.Element;
|
|
130
|
+
declare const _default: React.FC<ModalProps>;
|
|
131
|
+
export default _default;
|
|
132
|
+
export { ModalWithParsedClasses as Modal };
|
|
@@ -145,46 +145,7 @@ export interface MultiSelectProps {
|
|
|
145
145
|
*/
|
|
146
146
|
loading?: boolean;
|
|
147
147
|
}
|
|
148
|
-
|
|
149
|
-
* MultiSelect component - Multi-selection dropdown with chips display
|
|
150
|
-
*
|
|
151
|
-
* A professional multi-select component supporting checkbox or checkmark styles,
|
|
152
|
-
* with chips display, search functionality, and group support.
|
|
153
|
-
*
|
|
154
|
-
* @example
|
|
155
|
-
* Basic usage with checkbox style
|
|
156
|
-
* ```tsx
|
|
157
|
-
* <MultiSelect
|
|
158
|
-
* label="Select Technologies"
|
|
159
|
-
* placeholder="Choose technologies"
|
|
160
|
-
* options={technologies}
|
|
161
|
-
* onChange={(values) => console.log(values)}
|
|
162
|
-
* />
|
|
163
|
-
* ```
|
|
164
|
-
*
|
|
165
|
-
* @example
|
|
166
|
-
* With checkmark style
|
|
167
|
-
* ```tsx
|
|
168
|
-
* <MultiSelect
|
|
169
|
-
* label="Select Skills"
|
|
170
|
-
* options={skills}
|
|
171
|
-
* selectionStyle="checkmark"
|
|
172
|
-
* searchable
|
|
173
|
-
* showSelectAll
|
|
174
|
-
* />
|
|
175
|
-
* ```
|
|
176
|
-
*
|
|
177
|
-
* @example
|
|
178
|
-
* Customize loading spinner via CSS
|
|
179
|
-
* ```css
|
|
180
|
-
* .vtx-multiselect-icon-spinner {
|
|
181
|
-
* --vtx-multiselect-loader-color: #10b981;
|
|
182
|
-
* --vtx-multiselect-loader-speed: 1.2s;
|
|
183
|
-
* --vtx-multiselect-loader-track-opacity: 0.15;
|
|
184
|
-
* --vtx-multiselect-loader-path-opacity: 0.85;
|
|
185
|
-
* }
|
|
186
|
-
* ```
|
|
187
|
-
*/
|
|
188
|
-
export declare const MultiSelect: React.ForwardRefExoticComponent<MultiSelectProps & React.RefAttributes<HTMLDivElement>>;
|
|
148
|
+
declare const MultiSelectWithParsedClasses: (props: MultiSelectProps & React.RefAttributes<HTMLDivElement>) => import("react/jsx-runtime").JSX.Element;
|
|
189
149
|
declare const _default: React.FC<MultiSelectProps & React.RefAttributes<HTMLDivElement>>;
|
|
190
150
|
export default _default;
|
|
151
|
+
export { MultiSelectWithParsedClasses as MultiSelect };
|
|
@@ -46,60 +46,7 @@ export interface RadioProps extends Omit<React.InputHTMLAttributes<HTMLInputElem
|
|
|
46
46
|
*/
|
|
47
47
|
inputClassName?: string;
|
|
48
48
|
}
|
|
49
|
-
|
|
50
|
-
* Radio component - Allows users to select a single option from a set
|
|
51
|
-
*
|
|
52
|
-
* The Radio component provides a customizable radio input with support
|
|
53
|
-
* for labels, error states, variants, and three sizes.
|
|
54
|
-
*
|
|
55
|
-
* ## CSS Customization
|
|
56
|
-
*
|
|
57
|
-
* You can customize the radio appearance using CSS custom properties:
|
|
58
|
-
*
|
|
59
|
-
* ```css
|
|
60
|
-
* :root {
|
|
61
|
-
* --vtx-radio-color: #1976d2;
|
|
62
|
-
* --vtx-radio-size: 20px;
|
|
63
|
-
* --vtx-radio-border-width: 2px;
|
|
64
|
-
* }
|
|
65
|
-
* ```
|
|
66
|
-
*
|
|
67
|
-
* @example
|
|
68
|
-
* Basic radio
|
|
69
|
-
* ```tsx
|
|
70
|
-
* <Radio label="Option 1" name="options" value="1" />
|
|
71
|
-
* ```
|
|
72
|
-
*
|
|
73
|
-
* @example
|
|
74
|
-
* Controlled radio
|
|
75
|
-
* ```tsx
|
|
76
|
-
* const [selected, setSelected] = useState('1');
|
|
77
|
-
* <Radio
|
|
78
|
-
* checked={selected === '1'}
|
|
79
|
-
* onChange={(e) => setSelected(e.target.value)}
|
|
80
|
-
* label="Option 1"
|
|
81
|
-
* value="1"
|
|
82
|
-
* />
|
|
83
|
-
* ```
|
|
84
|
-
*
|
|
85
|
-
* @example
|
|
86
|
-
* With error state
|
|
87
|
-
* ```tsx
|
|
88
|
-
* <Radio
|
|
89
|
-
* label="Required option"
|
|
90
|
-
* error
|
|
91
|
-
* helperText="Please select an option"
|
|
92
|
-
* />
|
|
93
|
-
* ```
|
|
94
|
-
*
|
|
95
|
-
* @example
|
|
96
|
-
* Different variants
|
|
97
|
-
* ```tsx
|
|
98
|
-
* <Radio label="Primary" variant="primary" />
|
|
99
|
-
* <Radio label="Success" variant="success" />
|
|
100
|
-
* <Radio label="Error" variant="error" />
|
|
101
|
-
* ```
|
|
102
|
-
*/
|
|
103
|
-
export declare const Radio: React.ForwardRefExoticComponent<RadioProps & React.RefAttributes<HTMLInputElement>>;
|
|
49
|
+
declare const RadioWithParsedClasses: (props: RadioProps & React.RefAttributes<HTMLInputElement>) => import("react/jsx-runtime").JSX.Element;
|
|
104
50
|
declare const _default: React.FC<RadioProps & React.RefAttributes<HTMLInputElement>>;
|
|
105
51
|
export default _default;
|
|
52
|
+
export { RadioWithParsedClasses as Radio };
|