@true-tech-team/react-components 0.0.1 → 0.0.2
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 +103 -1
- package/index.css +1 -1
- package/index.js +1 -1
- package/index.mjs +3546 -2956
- package/lib/assets/icons/index.d.ts +29 -1
- package/lib/components/display/Avatar/Avatar.d.ts +58 -0
- package/lib/components/display/Avatar/index.d.ts +2 -0
- package/lib/components/display/Badge/Badge.d.ts +48 -0
- package/lib/components/display/Badge/index.d.ts +3 -0
- package/lib/components/display/Chip/Chip.d.ts +61 -0
- package/lib/components/display/Chip/index.d.ts +3 -0
- package/lib/components/display/CircularProgress/CircularProgress.d.ts +65 -0
- package/lib/components/display/CircularProgress/index.d.ts +3 -0
- package/lib/components/display/KPI/KPI.d.ts +85 -0
- package/lib/components/display/KPI/index.d.ts +3 -0
- package/lib/components/display/Pill/Pill.d.ts +83 -0
- package/lib/components/display/Pill/index.d.ts +2 -0
- package/lib/components/display/ProgressBar/ProgressBar.d.ts +70 -0
- package/lib/components/display/ProgressBar/index.d.ts +3 -0
- package/lib/components/display/Skeleton/Skeleton.d.ts +51 -0
- package/lib/components/display/Skeleton/index.d.ts +3 -0
- package/lib/components/display/StatusIndicator/StatusIndicator.d.ts +56 -0
- package/lib/components/display/StatusIndicator/index.d.ts +2 -0
- package/lib/components/display/Tag/Tag.d.ts +60 -0
- package/lib/components/display/Tag/index.d.ts +2 -0
- package/lib/components/display/index.d.ts +10 -0
- package/lib/components/index.d.ts +21 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -97,7 +97,109 @@ SVG-based icon system with customizable size and color.
|
|
|
97
97
|
<Icon name="check" size={24} color="var(--theme-primary)" />
|
|
98
98
|
```
|
|
99
99
|
|
|
100
|
-
**Available icons:** chevron-down, chevron-up, chevron-left, chevron-right, close, check, info, warning, error, eye, eye-off
|
|
100
|
+
**Available icons:** chevron-down, chevron-up, chevron-left, chevron-right, close, check, info, warning, error, eye, eye-off, user, users, building, dollar, chart-line, chart-bar, trending-down, and more
|
|
101
|
+
|
|
102
|
+
#### Avatar
|
|
103
|
+
User profile avatars with image, initials, and icon variants.
|
|
104
|
+
|
|
105
|
+
```tsx
|
|
106
|
+
<Avatar src="/path/to/image.jpg" alt="User name" size="md" />
|
|
107
|
+
<Avatar initials="JD" size="lg" />
|
|
108
|
+
<Avatar icon={<Icon name="user" />} variant="secondary" />
|
|
109
|
+
```
|
|
110
|
+
|
|
111
|
+
**Sizes:** xs, sm, md, lg, xl
|
|
112
|
+
**Variants:** primary, secondary, tertiary
|
|
113
|
+
|
|
114
|
+
#### Badge
|
|
115
|
+
Notification badges with count display.
|
|
116
|
+
|
|
117
|
+
```tsx
|
|
118
|
+
<Badge count={5} variant="primary" />
|
|
119
|
+
<Badge count={99} max={99} variant="error" />
|
|
120
|
+
```
|
|
121
|
+
|
|
122
|
+
#### Chip
|
|
123
|
+
Interactive chips for tags and selections.
|
|
124
|
+
|
|
125
|
+
```tsx
|
|
126
|
+
<Chip label="React" onDelete={() => {}} />
|
|
127
|
+
<Chip label="TypeScript" variant="outlined" />
|
|
128
|
+
```
|
|
129
|
+
|
|
130
|
+
#### Pill
|
|
131
|
+
Status and category pills.
|
|
132
|
+
|
|
133
|
+
```tsx
|
|
134
|
+
<Pill label="Active" variant="success" />
|
|
135
|
+
<Pill label="Pending" variant="warning" />
|
|
136
|
+
```
|
|
137
|
+
|
|
138
|
+
#### Tag
|
|
139
|
+
Labeling and categorization tags.
|
|
140
|
+
|
|
141
|
+
```tsx
|
|
142
|
+
<Tag>New</Tag>
|
|
143
|
+
<Tag variant="success">Available</Tag>
|
|
144
|
+
```
|
|
145
|
+
|
|
146
|
+
#### StatusIndicator
|
|
147
|
+
Status indicator dots with labels.
|
|
148
|
+
|
|
149
|
+
```tsx
|
|
150
|
+
<StatusIndicator status="online" label="Online" />
|
|
151
|
+
<StatusIndicator status="offline" label="Offline" />
|
|
152
|
+
```
|
|
153
|
+
|
|
154
|
+
#### ProgressBar
|
|
155
|
+
Linear progress bars with labels and variants.
|
|
156
|
+
|
|
157
|
+
```tsx
|
|
158
|
+
<ProgressBar value={75} max={100} variant="primary" />
|
|
159
|
+
<ProgressBar value={50} label="50%" showLabel />
|
|
160
|
+
```
|
|
161
|
+
|
|
162
|
+
#### CircularProgress
|
|
163
|
+
Circular progress indicators.
|
|
164
|
+
|
|
165
|
+
```tsx
|
|
166
|
+
<CircularProgress value={75} size={64} />
|
|
167
|
+
<CircularProgress indeterminate size={48} />
|
|
168
|
+
```
|
|
169
|
+
|
|
170
|
+
#### Skeleton
|
|
171
|
+
Loading skeleton screens for content placeholders.
|
|
172
|
+
|
|
173
|
+
```tsx
|
|
174
|
+
<Skeleton variant="text" width="100%" />
|
|
175
|
+
<Skeleton variant="circular" width={40} height={40} />
|
|
176
|
+
<Skeleton variant="rectangular" width={200} height={100} />
|
|
177
|
+
```
|
|
178
|
+
|
|
179
|
+
#### KPI
|
|
180
|
+
Key Performance Indicator display component.
|
|
181
|
+
|
|
182
|
+
```tsx
|
|
183
|
+
<KPI
|
|
184
|
+
value="$45,231"
|
|
185
|
+
label="Total Revenue"
|
|
186
|
+
trend={12.5}
|
|
187
|
+
trendDirection="up"
|
|
188
|
+
icon={<Icon name="dollar" />}
|
|
189
|
+
/>
|
|
190
|
+
```
|
|
191
|
+
|
|
192
|
+
#### Stat
|
|
193
|
+
Statistical display component for metrics.
|
|
194
|
+
|
|
195
|
+
```tsx
|
|
196
|
+
<Stat
|
|
197
|
+
label="Total Users"
|
|
198
|
+
value="1,234"
|
|
199
|
+
change="+12.5%"
|
|
200
|
+
changeType="increase"
|
|
201
|
+
/>
|
|
202
|
+
```
|
|
101
203
|
|
|
102
204
|
### Inputs
|
|
103
205
|
|