@campxdev/react-blueprint 2.1.1 → 2.1.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.
- package/README.md +158 -99
- package/dist/README.md +158 -99
- package/dist/cjs/index.js +1 -1
- package/dist/cjs/types/src/assets/images/svg/ResourceNotFound.d.ts +1 -0
- package/dist/cjs/types/src/assets/images/svg/index.d.ts +1 -0
- package/dist/cjs/types/src/components/Assets/ErrorPages/ResourceNotFound.d.ts +1 -0
- package/dist/cjs/types/src/components/Assets/export.d.ts +1 -0
- package/dist/cjs/types/src/components/Input/export.d.ts +1 -2
- package/dist/esm/index.js +2 -2
- package/dist/esm/types/src/assets/images/svg/ResourceNotFound.d.ts +1 -0
- package/dist/esm/types/src/assets/images/svg/index.d.ts +1 -0
- package/dist/esm/types/src/components/Assets/ErrorPages/ResourceNotFound.d.ts +1 -0
- package/dist/esm/types/src/components/Assets/export.d.ts +1 -0
- package/dist/esm/types/src/components/Input/export.d.ts +1 -2
- package/dist/index.d.ts +18 -59
- package/package.json +1 -1
- package/dist/cjs/types/src/components/Input/MultiSelect/MultiSelect.d.ts +0 -47
- package/dist/cjs/types/src/components/Input/MultiSelect/components/MenuFooter.d.ts +0 -3
- package/dist/cjs/types/src/components/Input/MultiSelect/components/MultiFilter.d.ts +0 -19
- package/dist/cjs/types/src/components/Input/MultiSelect/components/MultiInput.d.ts +0 -19
- package/dist/cjs/types/src/components/Input/MultiSelect/components/OptionsLoader.d.ts +0 -3
- package/dist/cjs/types/src/components/Input/MultiSelect/multiSelectReducer.d.ts +0 -42
- package/dist/cjs/types/src/stories/Input/MultiSelect.stories.d.ts +0 -16
- package/dist/esm/types/src/components/Input/MultiSelect/MultiSelect.d.ts +0 -47
- package/dist/esm/types/src/components/Input/MultiSelect/components/MenuFooter.d.ts +0 -3
- package/dist/esm/types/src/components/Input/MultiSelect/components/MultiFilter.d.ts +0 -19
- package/dist/esm/types/src/components/Input/MultiSelect/components/MultiInput.d.ts +0 -19
- package/dist/esm/types/src/components/Input/MultiSelect/components/OptionsLoader.d.ts +0 -3
- package/dist/esm/types/src/components/Input/MultiSelect/multiSelectReducer.d.ts +0 -42
- package/dist/esm/types/src/stories/Input/MultiSelect.stories.d.ts +0 -16
package/README.md
CHANGED
|
@@ -1,100 +1,159 @@
|
|
|
1
|
-
#
|
|
2
|
-
|
|
3
|
-
This project was bootstrapped with [Create React App](https://github.com/facebook/create-react-app).
|
|
4
|
-
|
|
5
|
-
## Available Scripts
|
|
6
|
-
|
|
7
|
-
In the project directory, you can run:
|
|
8
|
-
|
|
9
|
-
### `yarn start`
|
|
10
|
-
|
|
11
|
-
Runs the app in the development mode.\
|
|
12
|
-
Open [http://localhost:3000](http://localhost:3000) to view it in the browser.
|
|
13
|
-
|
|
14
|
-
The page will reload if you make edits.\
|
|
15
|
-
You will also see any lint errors in the console.
|
|
16
|
-
|
|
17
|
-
### `yarn test`
|
|
18
|
-
|
|
19
|
-
Launches the test runner in the interactive watch mode.\
|
|
20
|
-
See the section about [running tests](https://facebook.github.io/create-react-app/docs/running-tests) for more information.
|
|
21
|
-
|
|
22
|
-
### `yarn build`
|
|
23
|
-
|
|
24
|
-
Builds the app for production to the `build` folder.\
|
|
25
|
-
It correctly bundles React in production mode and optimizes the build for the best performance.
|
|
26
|
-
|
|
27
|
-
The build is minified and the filenames include the hashes.\
|
|
28
|
-
Your app is ready to be deployed!
|
|
29
|
-
|
|
30
|
-
See the section about [deployment](https://facebook.github.io/create-react-app/docs/deployment) for more information.
|
|
31
|
-
|
|
32
|
-
### `yarn eject`
|
|
33
|
-
|
|
34
|
-
**Note: this is a one-way operation. Once you `eject`, you can’t go back!**
|
|
35
|
-
|
|
36
|
-
If you aren’t satisfied with the build tool and configuration choices, you can `eject` at any time. This command will remove the single build dependency from your project.
|
|
37
|
-
|
|
38
|
-
Instead, it will copy all the configuration files and the transitive dependencies (webpack, Babel, ESLint, etc) right into your project so you have full control over them. All of the commands except `eject` will still work, but they will point to the copied scripts so you can tweak them. At this point you’re on your own.
|
|
39
|
-
|
|
40
|
-
You don’t have to ever use `eject`. The curated feature set is suitable for small and middle deployments, and you shouldn’t feel obligated to use this feature. However we understand that this tool wouldn’t be useful if you couldn’t customize it when you are ready for it.
|
|
41
|
-
|
|
42
|
-
## Learn More
|
|
43
|
-
|
|
44
|
-
You can learn more in the [Create React App documentation](https://facebook.github.io/create-react-app/docs/getting-started).
|
|
45
|
-
|
|
46
|
-
To learn React, check out the [React documentation](https://reactjs.org/).
|
|
47
|
-
|
|
48
|
-
## Component Library
|
|
49
|
-
|
|
50
|
-
Below is a table of components available in our library, categorized by their function:
|
|
51
|
-
|
|
52
|
-
| Name | Category |
|
|
53
|
-
|---------------------|---------------|
|
|
54
|
-
| App Layout | Layout |
|
|
55
|
-
| Main Layout | Layout |
|
|
56
|
-
| Page Sidebar | Layout |
|
|
57
|
-
| Page Container | Layout |
|
|
58
|
-
| Page Header | Layout |
|
|
59
|
-
| Text Field | Input |
|
|
60
|
-
| Single Select | Input |
|
|
61
|
-
| Multi Select | Input |
|
|
62
|
-
| CheckBox | Input |
|
|
63
|
-
| Radio | Input |
|
|
64
|
-
| Date Picker | Input |
|
|
65
|
-
| Time Picker | Input |
|
|
66
|
-
| Date Time Picker | Input |
|
|
67
|
-
| Date Range Picker | Input |
|
|
68
|
-
| File Upload | Input |
|
|
69
|
-
| Import Dialog | Input |
|
|
70
|
-
| Text Editor | Input |
|
|
71
|
-
| Rating | Input |
|
|
72
|
-
| Switch | Input |
|
|
73
|
-
| Slider | Input |
|
|
74
|
-
| Tag Editor | Input |
|
|
75
|
-
| SearchBar | Input |
|
|
76
|
-
| OTP Input | Input |
|
|
77
|
-
| ActionButton | Navigation |
|
|
78
|
-
| DialogButton | Navigation |
|
|
79
|
-
| DropdownMenu | Navigation |
|
|
80
|
-
| BreadCrumbs | Navigation |
|
|
81
|
-
| AppBar | Navigation |
|
|
82
|
-
| Tabs | Navigation |
|
|
83
|
-
| Toast | Feedback |
|
|
84
|
-
| Alert | Feedback |
|
|
85
|
-
| Confirmation Dialog | Feedback |
|
|
86
|
-
| ErrorDialog | Feedback |
|
|
87
|
-
| Spinner | Feedback |
|
|
88
|
-
| Chips | Data Display |
|
|
89
|
-
| Cards | Data Display |
|
|
90
|
-
| Data Table | Data Display |
|
|
91
|
-
| Accordians | Data Display |
|
|
92
|
-
| Data Tree | Data Display |
|
|
93
|
-
| Avatar | Data Display |
|
|
94
|
-
| Divider | Data Display |
|
|
95
|
-
| Timeline | Data Display |
|
|
96
|
-
| Calendar | Data Display |
|
|
97
|
-
| Tooltip | Data Display |
|
|
98
|
-
| Progress Bar | Data Display |
|
|
99
|
-
| Stepper | Data Display |
|
|
1
|
+
# CampX React Blueprint
|
|
100
2
|
|
|
3
|
+
A comprehensive React component library built with TypeScript and Material-UI for building modern web applications with consistent design patterns and functionality.
|
|
4
|
+
|
|
5
|
+
## Overview
|
|
6
|
+
|
|
7
|
+
CampX React Blueprint provides a complete set of reusable components organized into logical categories. The library is built on top of Material-UI v7 and provides additional functionality, styling, and patterns specific to CampX applications.
|
|
8
|
+
|
|
9
|
+
**Key Features:**
|
|
10
|
+
- 🎨 **67+ Production-Ready Components** - Comprehensive component library covering all common UI patterns
|
|
11
|
+
- 🎯 **TypeScript First** - Full type safety and excellent developer experience
|
|
12
|
+
- 🎨 **Material-UI Foundation** - Built on top of MUI v7 with consistent theming
|
|
13
|
+
- 📖 **Storybook Documentation** - Interactive component documentation and testing
|
|
14
|
+
- 🌓 **Dark/Light Theme** - Complete theming system with dark and light mode support
|
|
15
|
+
- ♿ **Accessibility** - WCAG compliant components with proper ARIA support
|
|
16
|
+
- 📱 **Responsive Design** - Mobile-first responsive components
|
|
17
|
+
|
|
18
|
+
## Installation
|
|
19
|
+
|
|
20
|
+
```bash
|
|
21
|
+
npm install @campxdev/react-blueprint
|
|
22
|
+
# or
|
|
23
|
+
yarn add @campxdev/react-blueprint
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
## Quick Start
|
|
27
|
+
|
|
28
|
+
```tsx
|
|
29
|
+
import { MuiThemeProvider, Button, DataTable } from '@campxdev/react-blueprint';
|
|
30
|
+
import { lightTheme } from '@campxdev/react-blueprint';
|
|
31
|
+
|
|
32
|
+
function App() {
|
|
33
|
+
return (
|
|
34
|
+
<MuiThemeProvider theme={lightTheme}>
|
|
35
|
+
<Button variant="contained" color="primary">
|
|
36
|
+
Hello CampX!
|
|
37
|
+
</Button>
|
|
38
|
+
</MuiThemeProvider>
|
|
39
|
+
);
|
|
40
|
+
}
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
## Component Categories
|
|
44
|
+
|
|
45
|
+
The library includes 67+ components organized into 7 categories:
|
|
46
|
+
|
|
47
|
+
- **Layout (5 components)** - Application structure and page layout
|
|
48
|
+
- **Input (21 components)** - Form controls and user input elements
|
|
49
|
+
- **Navigation (15 components)** - Navigation and user interaction flows
|
|
50
|
+
- **Feedback (6 components)** - User feedback and status information
|
|
51
|
+
- **Data Display (13 components)** - Data presentation and organization
|
|
52
|
+
- **Assets (7 components)** - Static assets including error pages and icons
|
|
53
|
+
- **Charts (5 components)** - Data visualization with Recharts integration
|
|
54
|
+
|
|
55
|
+
## Documentation
|
|
56
|
+
|
|
57
|
+
### For Developers
|
|
58
|
+
- **[Component API Reference](./agents.md)** - Detailed component documentation
|
|
59
|
+
|
|
60
|
+
### For AI Agents
|
|
61
|
+
- **[AI Agent Documentation](./agents.md)** - Comprehensive component reference designed specifically for AI agents to understand and work with the component system
|
|
62
|
+
|
|
63
|
+
The `agents.md` file provides detailed information about all components, their purposes, props, usage patterns, and relationships - specifically formatted for AI systems to parse and understand the component library structure.
|
|
64
|
+
|
|
65
|
+
## Development Scripts
|
|
66
|
+
|
|
67
|
+
### Development
|
|
68
|
+
```bash
|
|
69
|
+
yarn start # Start development server
|
|
70
|
+
yarn storybook # Launch Storybook documentation
|
|
71
|
+
```
|
|
72
|
+
|
|
73
|
+
### Building
|
|
74
|
+
```bash
|
|
75
|
+
yarn build # Build library for production
|
|
76
|
+
yarn build-storybook # Build Storybook for deployment
|
|
77
|
+
```
|
|
78
|
+
|
|
79
|
+
### Testing
|
|
80
|
+
```bash
|
|
81
|
+
yarn test # Run test suite
|
|
82
|
+
```
|
|
83
|
+
|
|
84
|
+
## Component Architecture
|
|
85
|
+
|
|
86
|
+
### Theme System
|
|
87
|
+
All components are built with a consistent theming system supporting both light and dark modes:
|
|
88
|
+
|
|
89
|
+
```tsx
|
|
90
|
+
import { MuiThemeProvider, lightTheme, darkTheme } from '@campxdev/react-blueprint';
|
|
91
|
+
|
|
92
|
+
// Use light theme
|
|
93
|
+
<MuiThemeProvider theme={lightTheme}>
|
|
94
|
+
<YourApp />
|
|
95
|
+
</MuiThemeProvider>
|
|
96
|
+
|
|
97
|
+
// Use dark theme
|
|
98
|
+
<MuiThemeProvider theme={darkTheme}>
|
|
99
|
+
<YourApp />
|
|
100
|
+
</MuiThemeProvider>
|
|
101
|
+
```
|
|
102
|
+
|
|
103
|
+
### Form Integration
|
|
104
|
+
Components work seamlessly together for form building:
|
|
105
|
+
|
|
106
|
+
```tsx
|
|
107
|
+
import {
|
|
108
|
+
FormWrapper,
|
|
109
|
+
TextField,
|
|
110
|
+
Button,
|
|
111
|
+
FormActions
|
|
112
|
+
} from '@campxdev/react-blueprint';
|
|
113
|
+
|
|
114
|
+
<FormWrapper onSubmit={handleSubmit}>
|
|
115
|
+
<TextField label="Name" name="name" required />
|
|
116
|
+
<TextField label="Email" name="email" type="email" required />
|
|
117
|
+
<FormActions>
|
|
118
|
+
<Button type="submit" variant="contained">Submit</Button>
|
|
119
|
+
<Button variant="outlined">Cancel</Button>
|
|
120
|
+
</FormActions>
|
|
121
|
+
</FormWrapper>
|
|
122
|
+
```
|
|
123
|
+
|
|
124
|
+
### Layout Structure
|
|
125
|
+
Build consistent application layouts:
|
|
126
|
+
|
|
127
|
+
```tsx
|
|
128
|
+
import {
|
|
129
|
+
AppHeader,
|
|
130
|
+
Sidebar,
|
|
131
|
+
PageContent,
|
|
132
|
+
PageHeader
|
|
133
|
+
} from '@campxdev/react-blueprint';
|
|
134
|
+
|
|
135
|
+
<div className="app">
|
|
136
|
+
<AppHeader
|
|
137
|
+
userFullName="John Doe"
|
|
138
|
+
clientName="CampX"
|
|
139
|
+
collapsed={sidebarCollapsed}
|
|
140
|
+
/>
|
|
141
|
+
<div className="app-body">
|
|
142
|
+
<Sidebar />
|
|
143
|
+
<main>
|
|
144
|
+
<PageHeader title="Dashboard" />
|
|
145
|
+
<PageContent>
|
|
146
|
+
{/* Your page content */}
|
|
147
|
+
</PageContent>
|
|
148
|
+
</main>
|
|
149
|
+
</div>
|
|
150
|
+
</div>
|
|
151
|
+
```
|
|
152
|
+
|
|
153
|
+
## Contributing
|
|
154
|
+
|
|
155
|
+
This is a private CampX component library. For internal development guidelines and contribution processes, please refer to the internal CampX documentation.
|
|
156
|
+
|
|
157
|
+
## License
|
|
158
|
+
|
|
159
|
+
Private - CampX Internal Use Only
|
package/dist/README.md
CHANGED
|
@@ -1,100 +1,159 @@
|
|
|
1
|
-
#
|
|
2
|
-
|
|
3
|
-
This project was bootstrapped with [Create React App](https://github.com/facebook/create-react-app).
|
|
4
|
-
|
|
5
|
-
## Available Scripts
|
|
6
|
-
|
|
7
|
-
In the project directory, you can run:
|
|
8
|
-
|
|
9
|
-
### `yarn start`
|
|
10
|
-
|
|
11
|
-
Runs the app in the development mode.\
|
|
12
|
-
Open [http://localhost:3000](http://localhost:3000) to view it in the browser.
|
|
13
|
-
|
|
14
|
-
The page will reload if you make edits.\
|
|
15
|
-
You will also see any lint errors in the console.
|
|
16
|
-
|
|
17
|
-
### `yarn test`
|
|
18
|
-
|
|
19
|
-
Launches the test runner in the interactive watch mode.\
|
|
20
|
-
See the section about [running tests](https://facebook.github.io/create-react-app/docs/running-tests) for more information.
|
|
21
|
-
|
|
22
|
-
### `yarn build`
|
|
23
|
-
|
|
24
|
-
Builds the app for production to the `build` folder.\
|
|
25
|
-
It correctly bundles React in production mode and optimizes the build for the best performance.
|
|
26
|
-
|
|
27
|
-
The build is minified and the filenames include the hashes.\
|
|
28
|
-
Your app is ready to be deployed!
|
|
29
|
-
|
|
30
|
-
See the section about [deployment](https://facebook.github.io/create-react-app/docs/deployment) for more information.
|
|
31
|
-
|
|
32
|
-
### `yarn eject`
|
|
33
|
-
|
|
34
|
-
**Note: this is a one-way operation. Once you `eject`, you can’t go back!**
|
|
35
|
-
|
|
36
|
-
If you aren’t satisfied with the build tool and configuration choices, you can `eject` at any time. This command will remove the single build dependency from your project.
|
|
37
|
-
|
|
38
|
-
Instead, it will copy all the configuration files and the transitive dependencies (webpack, Babel, ESLint, etc) right into your project so you have full control over them. All of the commands except `eject` will still work, but they will point to the copied scripts so you can tweak them. At this point you’re on your own.
|
|
39
|
-
|
|
40
|
-
You don’t have to ever use `eject`. The curated feature set is suitable for small and middle deployments, and you shouldn’t feel obligated to use this feature. However we understand that this tool wouldn’t be useful if you couldn’t customize it when you are ready for it.
|
|
41
|
-
|
|
42
|
-
## Learn More
|
|
43
|
-
|
|
44
|
-
You can learn more in the [Create React App documentation](https://facebook.github.io/create-react-app/docs/getting-started).
|
|
45
|
-
|
|
46
|
-
To learn React, check out the [React documentation](https://reactjs.org/).
|
|
47
|
-
|
|
48
|
-
## Component Library
|
|
49
|
-
|
|
50
|
-
Below is a table of components available in our library, categorized by their function:
|
|
51
|
-
|
|
52
|
-
| Name | Category |
|
|
53
|
-
|---------------------|---------------|
|
|
54
|
-
| App Layout | Layout |
|
|
55
|
-
| Main Layout | Layout |
|
|
56
|
-
| Page Sidebar | Layout |
|
|
57
|
-
| Page Container | Layout |
|
|
58
|
-
| Page Header | Layout |
|
|
59
|
-
| Text Field | Input |
|
|
60
|
-
| Single Select | Input |
|
|
61
|
-
| Multi Select | Input |
|
|
62
|
-
| CheckBox | Input |
|
|
63
|
-
| Radio | Input |
|
|
64
|
-
| Date Picker | Input |
|
|
65
|
-
| Time Picker | Input |
|
|
66
|
-
| Date Time Picker | Input |
|
|
67
|
-
| Date Range Picker | Input |
|
|
68
|
-
| File Upload | Input |
|
|
69
|
-
| Import Dialog | Input |
|
|
70
|
-
| Text Editor | Input |
|
|
71
|
-
| Rating | Input |
|
|
72
|
-
| Switch | Input |
|
|
73
|
-
| Slider | Input |
|
|
74
|
-
| Tag Editor | Input |
|
|
75
|
-
| SearchBar | Input |
|
|
76
|
-
| OTP Input | Input |
|
|
77
|
-
| ActionButton | Navigation |
|
|
78
|
-
| DialogButton | Navigation |
|
|
79
|
-
| DropdownMenu | Navigation |
|
|
80
|
-
| BreadCrumbs | Navigation |
|
|
81
|
-
| AppBar | Navigation |
|
|
82
|
-
| Tabs | Navigation |
|
|
83
|
-
| Toast | Feedback |
|
|
84
|
-
| Alert | Feedback |
|
|
85
|
-
| Confirmation Dialog | Feedback |
|
|
86
|
-
| ErrorDialog | Feedback |
|
|
87
|
-
| Spinner | Feedback |
|
|
88
|
-
| Chips | Data Display |
|
|
89
|
-
| Cards | Data Display |
|
|
90
|
-
| Data Table | Data Display |
|
|
91
|
-
| Accordians | Data Display |
|
|
92
|
-
| Data Tree | Data Display |
|
|
93
|
-
| Avatar | Data Display |
|
|
94
|
-
| Divider | Data Display |
|
|
95
|
-
| Timeline | Data Display |
|
|
96
|
-
| Calendar | Data Display |
|
|
97
|
-
| Tooltip | Data Display |
|
|
98
|
-
| Progress Bar | Data Display |
|
|
99
|
-
| Stepper | Data Display |
|
|
1
|
+
# CampX React Blueprint
|
|
100
2
|
|
|
3
|
+
A comprehensive React component library built with TypeScript and Material-UI for building modern web applications with consistent design patterns and functionality.
|
|
4
|
+
|
|
5
|
+
## Overview
|
|
6
|
+
|
|
7
|
+
CampX React Blueprint provides a complete set of reusable components organized into logical categories. The library is built on top of Material-UI v7 and provides additional functionality, styling, and patterns specific to CampX applications.
|
|
8
|
+
|
|
9
|
+
**Key Features:**
|
|
10
|
+
- 🎨 **67+ Production-Ready Components** - Comprehensive component library covering all common UI patterns
|
|
11
|
+
- 🎯 **TypeScript First** - Full type safety and excellent developer experience
|
|
12
|
+
- 🎨 **Material-UI Foundation** - Built on top of MUI v7 with consistent theming
|
|
13
|
+
- 📖 **Storybook Documentation** - Interactive component documentation and testing
|
|
14
|
+
- 🌓 **Dark/Light Theme** - Complete theming system with dark and light mode support
|
|
15
|
+
- ♿ **Accessibility** - WCAG compliant components with proper ARIA support
|
|
16
|
+
- 📱 **Responsive Design** - Mobile-first responsive components
|
|
17
|
+
|
|
18
|
+
## Installation
|
|
19
|
+
|
|
20
|
+
```bash
|
|
21
|
+
npm install @campxdev/react-blueprint
|
|
22
|
+
# or
|
|
23
|
+
yarn add @campxdev/react-blueprint
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
## Quick Start
|
|
27
|
+
|
|
28
|
+
```tsx
|
|
29
|
+
import { MuiThemeProvider, Button, DataTable } from '@campxdev/react-blueprint';
|
|
30
|
+
import { lightTheme } from '@campxdev/react-blueprint';
|
|
31
|
+
|
|
32
|
+
function App() {
|
|
33
|
+
return (
|
|
34
|
+
<MuiThemeProvider theme={lightTheme}>
|
|
35
|
+
<Button variant="contained" color="primary">
|
|
36
|
+
Hello CampX!
|
|
37
|
+
</Button>
|
|
38
|
+
</MuiThemeProvider>
|
|
39
|
+
);
|
|
40
|
+
}
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
## Component Categories
|
|
44
|
+
|
|
45
|
+
The library includes 67+ components organized into 7 categories:
|
|
46
|
+
|
|
47
|
+
- **Layout (5 components)** - Application structure and page layout
|
|
48
|
+
- **Input (21 components)** - Form controls and user input elements
|
|
49
|
+
- **Navigation (15 components)** - Navigation and user interaction flows
|
|
50
|
+
- **Feedback (6 components)** - User feedback and status information
|
|
51
|
+
- **Data Display (13 components)** - Data presentation and organization
|
|
52
|
+
- **Assets (7 components)** - Static assets including error pages and icons
|
|
53
|
+
- **Charts (5 components)** - Data visualization with Recharts integration
|
|
54
|
+
|
|
55
|
+
## Documentation
|
|
56
|
+
|
|
57
|
+
### For Developers
|
|
58
|
+
- **[Component API Reference](./agents.md)** - Detailed component documentation
|
|
59
|
+
|
|
60
|
+
### For AI Agents
|
|
61
|
+
- **[AI Agent Documentation](./agents.md)** - Comprehensive component reference designed specifically for AI agents to understand and work with the component system
|
|
62
|
+
|
|
63
|
+
The `agents.md` file provides detailed information about all components, their purposes, props, usage patterns, and relationships - specifically formatted for AI systems to parse and understand the component library structure.
|
|
64
|
+
|
|
65
|
+
## Development Scripts
|
|
66
|
+
|
|
67
|
+
### Development
|
|
68
|
+
```bash
|
|
69
|
+
yarn start # Start development server
|
|
70
|
+
yarn storybook # Launch Storybook documentation
|
|
71
|
+
```
|
|
72
|
+
|
|
73
|
+
### Building
|
|
74
|
+
```bash
|
|
75
|
+
yarn build # Build library for production
|
|
76
|
+
yarn build-storybook # Build Storybook for deployment
|
|
77
|
+
```
|
|
78
|
+
|
|
79
|
+
### Testing
|
|
80
|
+
```bash
|
|
81
|
+
yarn test # Run test suite
|
|
82
|
+
```
|
|
83
|
+
|
|
84
|
+
## Component Architecture
|
|
85
|
+
|
|
86
|
+
### Theme System
|
|
87
|
+
All components are built with a consistent theming system supporting both light and dark modes:
|
|
88
|
+
|
|
89
|
+
```tsx
|
|
90
|
+
import { MuiThemeProvider, lightTheme, darkTheme } from '@campxdev/react-blueprint';
|
|
91
|
+
|
|
92
|
+
// Use light theme
|
|
93
|
+
<MuiThemeProvider theme={lightTheme}>
|
|
94
|
+
<YourApp />
|
|
95
|
+
</MuiThemeProvider>
|
|
96
|
+
|
|
97
|
+
// Use dark theme
|
|
98
|
+
<MuiThemeProvider theme={darkTheme}>
|
|
99
|
+
<YourApp />
|
|
100
|
+
</MuiThemeProvider>
|
|
101
|
+
```
|
|
102
|
+
|
|
103
|
+
### Form Integration
|
|
104
|
+
Components work seamlessly together for form building:
|
|
105
|
+
|
|
106
|
+
```tsx
|
|
107
|
+
import {
|
|
108
|
+
FormWrapper,
|
|
109
|
+
TextField,
|
|
110
|
+
Button,
|
|
111
|
+
FormActions
|
|
112
|
+
} from '@campxdev/react-blueprint';
|
|
113
|
+
|
|
114
|
+
<FormWrapper onSubmit={handleSubmit}>
|
|
115
|
+
<TextField label="Name" name="name" required />
|
|
116
|
+
<TextField label="Email" name="email" type="email" required />
|
|
117
|
+
<FormActions>
|
|
118
|
+
<Button type="submit" variant="contained">Submit</Button>
|
|
119
|
+
<Button variant="outlined">Cancel</Button>
|
|
120
|
+
</FormActions>
|
|
121
|
+
</FormWrapper>
|
|
122
|
+
```
|
|
123
|
+
|
|
124
|
+
### Layout Structure
|
|
125
|
+
Build consistent application layouts:
|
|
126
|
+
|
|
127
|
+
```tsx
|
|
128
|
+
import {
|
|
129
|
+
AppHeader,
|
|
130
|
+
Sidebar,
|
|
131
|
+
PageContent,
|
|
132
|
+
PageHeader
|
|
133
|
+
} from '@campxdev/react-blueprint';
|
|
134
|
+
|
|
135
|
+
<div className="app">
|
|
136
|
+
<AppHeader
|
|
137
|
+
userFullName="John Doe"
|
|
138
|
+
clientName="CampX"
|
|
139
|
+
collapsed={sidebarCollapsed}
|
|
140
|
+
/>
|
|
141
|
+
<div className="app-body">
|
|
142
|
+
<Sidebar />
|
|
143
|
+
<main>
|
|
144
|
+
<PageHeader title="Dashboard" />
|
|
145
|
+
<PageContent>
|
|
146
|
+
{/* Your page content */}
|
|
147
|
+
</PageContent>
|
|
148
|
+
</main>
|
|
149
|
+
</div>
|
|
150
|
+
</div>
|
|
151
|
+
```
|
|
152
|
+
|
|
153
|
+
## Contributing
|
|
154
|
+
|
|
155
|
+
This is a private CampX component library. For internal development guidelines and contribution processes, please refer to the internal CampX documentation.
|
|
156
|
+
|
|
157
|
+
## License
|
|
158
|
+
|
|
159
|
+
Private - CampX Internal Use Only
|