@camtomlabs/malix-design-system 0.1.2 → 0.1.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/LICENSE +19 -5
- package/README.md +141 -10
- package/dist/index.cjs +2456 -0
- package/dist/index.d.cts +562 -0
- package/dist/index.d.ts +562 -0
- package/dist/index.js +2367 -0
- package/package.json +21 -8
- package/src/styles.css +186 -0
- package/src/components/Accordion.tsx +0 -52
- package/src/components/Avatar.tsx +0 -18
- package/src/components/Badge.tsx +0 -27
- package/src/components/Banner.tsx +0 -75
- package/src/components/Breadcrumb.tsx +0 -58
- package/src/components/Button.tsx +0 -47
- package/src/components/Card.tsx +0 -34
- package/src/components/ChatInput.tsx +0 -53
- package/src/components/Checkbox.tsx +0 -85
- package/src/components/CreditsIndicator.tsx +0 -41
- package/src/components/DataTable.tsx +0 -75
- package/src/components/DateInput.tsx +0 -57
- package/src/components/Divider.tsx +0 -12
- package/src/components/Dropzone.tsx +0 -94
- package/src/components/EmptyState.tsx +0 -65
- package/src/components/FileCard.tsx +0 -78
- package/src/components/FilterTabs.tsx +0 -49
- package/src/components/FlyoutMenu.tsx +0 -36
- package/src/components/GlassPopover.tsx +0 -38
- package/src/components/Header.tsx +0 -22
- package/src/components/Input.tsx +0 -18
- package/src/components/InputGroup.tsx +0 -37
- package/src/components/LanguageSelector.tsx +0 -81
- package/src/components/Modal.tsx +0 -104
- package/src/components/OnboardingPopover.tsx +0 -61
- package/src/components/OperationStatus.tsx +0 -73
- package/src/components/Overlay.tsx +0 -66
- package/src/components/Pagination.tsx +0 -89
- package/src/components/Pill.tsx +0 -19
- package/src/components/PricingCard.tsx +0 -74
- package/src/components/ProgressBar.tsx +0 -47
- package/src/components/Radio.tsx +0 -56
- package/src/components/SectionHeader.tsx +0 -32
- package/src/components/SegmentedControl.tsx +0 -42
- package/src/components/Select.tsx +0 -62
- package/src/components/SelectGroup.tsx +0 -32
- package/src/components/SelectionCard.tsx +0 -47
- package/src/components/SidebarItem.tsx +0 -27
- package/src/components/SidebarPanel.tsx +0 -84
- package/src/components/SplitPane.tsx +0 -85
- package/src/components/StatCard.tsx +0 -64
- package/src/components/StatusDot.tsx +0 -26
- package/src/components/Stepper.tsx +0 -40
- package/src/components/TabBar.tsx +0 -45
- package/src/components/Textarea.tsx +0 -43
- package/src/components/Toggle.tsx +0 -50
- package/src/components/Tooltip.tsx +0 -33
- package/src/components/UserProfilePopover.tsx +0 -100
- package/src/components/ValidationAlert.tsx +0 -72
- package/src/index.ts +0 -177
package/LICENSE
CHANGED
|
@@ -1,7 +1,21 @@
|
|
|
1
|
-
|
|
1
|
+
MIT License
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Copyright (c) 2026 Camtom Labs
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -1,38 +1,169 @@
|
|
|
1
1
|
# @camtomlabs/malix-design-system
|
|
2
2
|
|
|
3
|
-
Malix Design System
|
|
3
|
+
Malix Design System — a React component library by [Camtom Labs](https://camtomx.com). Ships pre-built with full TypeScript types, design tokens, and ready-to-use CSS.
|
|
4
4
|
|
|
5
|
-
##
|
|
5
|
+
## Installation
|
|
6
6
|
|
|
7
7
|
```bash
|
|
8
8
|
npm install @camtomlabs/malix-design-system
|
|
9
|
+
# or
|
|
10
|
+
pnpm add @camtomlabs/malix-design-system
|
|
11
|
+
# or
|
|
12
|
+
yarn add @camtomlabs/malix-design-system
|
|
9
13
|
```
|
|
10
14
|
|
|
11
|
-
|
|
15
|
+
**Peer dependencies** — make sure your project has these installed:
|
|
16
|
+
|
|
17
|
+
```bash
|
|
18
|
+
npm install react react-dom
|
|
19
|
+
```
|
|
12
20
|
|
|
13
|
-
|
|
21
|
+
## Setup
|
|
22
|
+
|
|
23
|
+
Import the bundled stylesheet once in your app's entry point (e.g. `main.tsx`, `layout.tsx`, or `_app.tsx`):
|
|
14
24
|
|
|
15
25
|
```ts
|
|
16
26
|
import '@camtomlabs/malix-design-system/styles.css';
|
|
17
27
|
```
|
|
18
28
|
|
|
19
|
-
|
|
29
|
+
That's it. All components are styled and ready to use.
|
|
30
|
+
|
|
31
|
+
## Usage
|
|
20
32
|
|
|
21
33
|
```tsx
|
|
22
34
|
import { Button, Input, Card } from '@camtomlabs/malix-design-system';
|
|
35
|
+
|
|
36
|
+
export function MyPage() {
|
|
37
|
+
return (
|
|
38
|
+
<Card>
|
|
39
|
+
<Input placeholder="Enter your email" />
|
|
40
|
+
<Button hierarchy="primary">Continue</Button>
|
|
41
|
+
</Card>
|
|
42
|
+
);
|
|
43
|
+
}
|
|
23
44
|
```
|
|
24
45
|
|
|
25
|
-
|
|
46
|
+
## Design Tokens
|
|
47
|
+
|
|
48
|
+
Malix uses a CSS custom-property token system for colors, spacing, typography, and radius. You can also import the tokens stylesheet separately:
|
|
49
|
+
|
|
50
|
+
```ts
|
|
51
|
+
import '@camtomlabs/malix-design-system/tokens.css';
|
|
52
|
+
```
|
|
53
|
+
|
|
54
|
+
Or access the token registry programmatically:
|
|
26
55
|
|
|
27
56
|
```ts
|
|
28
57
|
import { tokenRegistry } from '@camtomlabs/malix-design-system';
|
|
29
58
|
```
|
|
30
59
|
|
|
31
|
-
##
|
|
60
|
+
## Components
|
|
61
|
+
|
|
62
|
+
### Atoms
|
|
63
|
+
| Component | Description |
|
|
64
|
+
|-----------|-------------|
|
|
65
|
+
| `Avatar` | User avatar with image or initials fallback |
|
|
66
|
+
| `Badge` | Status or count indicator |
|
|
67
|
+
| `Divider` | Horizontal or vertical separator |
|
|
68
|
+
| `Pill` | Compact label/tag element |
|
|
69
|
+
| `StatusDot` | Small colored status indicator |
|
|
70
|
+
|
|
71
|
+
### Buttons
|
|
72
|
+
| Component | Description |
|
|
73
|
+
|-----------|-------------|
|
|
74
|
+
| `Button` | Primary action button with hierarchy and variant props |
|
|
75
|
+
|
|
76
|
+
### Form Inputs
|
|
77
|
+
| Component | Description |
|
|
78
|
+
|-----------|-------------|
|
|
79
|
+
| `Checkbox` | Checkbox input with label |
|
|
80
|
+
| `DateInput` | Date picker input |
|
|
81
|
+
| `Input` | Text input field |
|
|
82
|
+
| `InputGroup` | Grouped inputs with shared label/error |
|
|
83
|
+
| `Radio` | Radio button input |
|
|
84
|
+
| `SearchInput` | Input with built-in search icon |
|
|
85
|
+
| `Select` | Dropdown select |
|
|
86
|
+
| `SelectGroup` | Grouped select options |
|
|
87
|
+
| `Textarea` | Multi-line text input |
|
|
88
|
+
| `Toggle` | On/off toggle switch |
|
|
89
|
+
|
|
90
|
+
### Navigation
|
|
91
|
+
| Component | Description |
|
|
92
|
+
|-----------|-------------|
|
|
93
|
+
| `Breadcrumb` | Breadcrumb trail navigation |
|
|
94
|
+
| `FilterTabs` | Horizontal tab filters |
|
|
95
|
+
| `FlyoutMenu` | Flyout dropdown navigation menu |
|
|
96
|
+
| `Header` | Top-level app header |
|
|
97
|
+
| `SidebarItem` | Individual sidebar navigation item |
|
|
98
|
+
| `SidebarPanel` | Full sidebar navigation panel |
|
|
99
|
+
| `TabBar` | Tab bar with multiple items |
|
|
100
|
+
|
|
101
|
+
### Layout
|
|
102
|
+
| Component | Description |
|
|
103
|
+
|-----------|-------------|
|
|
104
|
+
| `Card` | Surface container with elevation levels |
|
|
105
|
+
| `SectionHeader` | Page section heading with optional action |
|
|
106
|
+
| `SplitPane` | Resizable two-panel layout |
|
|
107
|
+
|
|
108
|
+
### Data Display
|
|
109
|
+
| Component | Description |
|
|
110
|
+
|-----------|-------------|
|
|
111
|
+
| `DataTable` | Sortable data table with columns/rows |
|
|
112
|
+
| `FileCard` | File attachment preview card |
|
|
113
|
+
| `Pagination` | Page navigation controls |
|
|
114
|
+
| `StatCard` | Metric card with change indicator |
|
|
115
|
+
| `Stepper` | Multi-step progress tracker |
|
|
116
|
+
|
|
117
|
+
### Feedback
|
|
118
|
+
| Component | Description |
|
|
119
|
+
|-----------|-------------|
|
|
120
|
+
| `Banner` | Full-width informational banner |
|
|
121
|
+
| `EmptyState` | Placeholder for empty content areas |
|
|
122
|
+
| `OperationStatus` | Async operation status display |
|
|
123
|
+
| `ProgressBar` | Linear progress indicator |
|
|
124
|
+
| `Tooltip` | Contextual hover tooltip |
|
|
125
|
+
| `ValidationAlert` | Inline form validation message |
|
|
126
|
+
|
|
127
|
+
### Overlays
|
|
128
|
+
| Component | Description |
|
|
129
|
+
|-----------|-------------|
|
|
130
|
+
| `GlassPopover` | Glassmorphism-styled popover |
|
|
131
|
+
| `Modal` | Full-screen modal dialog |
|
|
132
|
+
| `OnboardingPopover` | Guided onboarding popover |
|
|
133
|
+
| `Overlay` | Backdrop overlay layer |
|
|
134
|
+
|
|
135
|
+
### Interactive / Composite
|
|
136
|
+
| Component | Description |
|
|
137
|
+
|-----------|-------------|
|
|
138
|
+
| `Accordion` | Collapsible content sections |
|
|
139
|
+
| `ChatInput` | Rich chat message input |
|
|
140
|
+
| `CreditsIndicator` | Usage credits display |
|
|
141
|
+
| `Dropzone` | File drag-and-drop upload area |
|
|
142
|
+
| `LanguageSelector` | Locale/language switcher |
|
|
143
|
+
| `PricingCard` | Subscription plan pricing card |
|
|
144
|
+
| `SegmentedControl` | Multi-option segmented selector |
|
|
145
|
+
| `SelectionCard` | Selectable card option |
|
|
146
|
+
| `UserProfilePopover` | User profile menu popover |
|
|
147
|
+
| `ChatBubble` | AI/user message bubble for chat UIs |
|
|
148
|
+
| `AIAssistantPanel` | Full AI chat panel with messages and input |
|
|
149
|
+
|
|
150
|
+
## TypeScript
|
|
151
|
+
|
|
152
|
+
All components ship with TypeScript declarations. Named types are also exported for use in your own code:
|
|
153
|
+
|
|
154
|
+
```ts
|
|
155
|
+
import type { ButtonProps, ButtonHierarchy, ButtonVariant } from '@camtomlabs/malix-design-system';
|
|
156
|
+
```
|
|
157
|
+
|
|
158
|
+
## Package Exports
|
|
32
159
|
|
|
33
|
-
|
|
34
|
-
|
|
160
|
+
| Import path | Description |
|
|
161
|
+
|-------------|-------------|
|
|
162
|
+
| `@camtomlabs/malix-design-system` | All components and types |
|
|
163
|
+
| `@camtomlabs/malix-design-system/styles.css` | Full component stylesheet |
|
|
164
|
+
| `@camtomlabs/malix-design-system/tokens.css` | Design tokens only |
|
|
165
|
+
| `@camtomlabs/malix-design-system/tokens.registry.json` | Token registry JSON |
|
|
35
166
|
|
|
36
167
|
## License
|
|
37
168
|
|
|
38
|
-
|
|
169
|
+
MIT © [Camtom Labs](https://camtomx.com)
|