@vaneui/ui 0.9.0-alpha.20260108153335.d1109b4 → 0.9.0-alpha.20260109124513.4547e77
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 +13 -10
- package/dist/components/ui/props/propDescriptions.d.ts +1 -1
- package/dist/index.esm.js +1 -1
- package/dist/index.js +1 -1
- package/dist/ui.css +0 -3
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -151,19 +151,22 @@ return (
|
|
|
151
151
|
);
|
|
152
152
|
```
|
|
153
153
|
|
|
154
|
-
You can
|
|
154
|
+
You can modify component themes programmatically by providing `themeOverride` in ThemeProvider:
|
|
155
155
|
|
|
156
156
|
```tsx
|
|
157
157
|
const overrideFunc = (theme: ThemeProps) => {
|
|
158
|
-
|
|
159
|
-
theme.button.
|
|
160
|
-
|
|
158
|
+
// Add classes to button's base (always applied)
|
|
159
|
+
theme.button.base += ' uppercase tracking-wide';
|
|
160
|
+
|
|
161
|
+
// Change default props for a component
|
|
162
|
+
theme.button.defaults = { ...theme.button.defaults, semibold: true };
|
|
163
|
+
|
|
161
164
|
return theme;
|
|
162
165
|
};
|
|
163
166
|
|
|
164
167
|
return (
|
|
165
168
|
<ThemeProvider themeOverride={overrideFunc}>
|
|
166
|
-
<Button>This button
|
|
169
|
+
<Button>This button is uppercase with tracking</Button>
|
|
167
170
|
</ThemeProvider>
|
|
168
171
|
);
|
|
169
172
|
```
|
|
@@ -207,7 +210,7 @@ export function App() {
|
|
|
207
210
|
|
|
208
211
|
Each component exposes optional boolean props generated from category keys. Common examples:
|
|
209
212
|
- Size: `xs`, `sm`, `md`, `lg`, `xl`
|
|
210
|
-
- Appearance: `
|
|
213
|
+
- Appearance: `primary`, `brand`, `accent`, `secondary`, `tertiary`, `success`, `danger`, `warning`, `info`, `link`
|
|
211
214
|
- Variant: `filled`, `outline`
|
|
212
215
|
- Shape: `pill`, `rounded`, `sharp`
|
|
213
216
|
- Typography: `sans`, `serif`, `mono`, `thin`…`black`, `italic`/`notItalic`, `underline`/`lineThrough`/`overline`, `uppercase`/`lowercase`/`capitalize`
|
|
@@ -218,16 +221,16 @@ Only the categories relevant to a component are used. The theme maps these boole
|
|
|
218
221
|
## Available Components
|
|
219
222
|
|
|
220
223
|
From the main entry import:
|
|
221
|
-
- Interactive: Button, Badge, Chip, Code, Checkbox, Label
|
|
222
|
-
- Layout: Section, Container, Row, Col, Stack, Grid3, Grid4, Card, Divider
|
|
224
|
+
- Interactive: Button, Badge, Chip, Code, Input, Checkbox, Label
|
|
225
|
+
- Layout: Section, Container, Row, Col, Stack, Grid2, Grid3, Grid4, Grid5, Grid6, Card, Divider
|
|
223
226
|
- Typography: Text, Title, Link, List, ListItem, SectionTitle, PageTitle
|
|
224
227
|
- Media: Img
|
|
225
228
|
|
|
226
229
|
```ts
|
|
227
230
|
import {
|
|
228
231
|
Button, Badge, Chip, Code,
|
|
229
|
-
Checkbox, Label, Img,
|
|
230
|
-
Section, Container, Row, Col, Stack, Grid3, Grid4, Card, Divider,
|
|
232
|
+
Input, Checkbox, Label, Img,
|
|
233
|
+
Section, Container, Row, Col, Stack, Grid2, Grid3, Grid4, Grid5, Grid6, Card, Divider,
|
|
231
234
|
Text, Title, Link, List, ListItem, SectionTitle, PageTitle,
|
|
232
235
|
} from '@vaneui/ui';
|
|
233
236
|
```
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Auto-generated prop descriptions from JSDoc comments.
|
|
3
3
|
* DO NOT EDIT MANUALLY - Run 'npm run props:generate' to regenerate.
|
|
4
4
|
*
|
|
5
|
-
* Generated on: 2026-01-
|
|
5
|
+
* Generated on: 2026-01-09T12:45:14.752Z
|
|
6
6
|
*/
|
|
7
7
|
export interface PropDescription {
|
|
8
8
|
description: string;
|
package/dist/index.esm.js
CHANGED
|
@@ -237,7 +237,7 @@ const ComponentCategories = {
|
|
|
237
237
|
* Auto-generated prop descriptions from JSDoc comments.
|
|
238
238
|
* DO NOT EDIT MANUALLY - Run 'npm run props:generate' to regenerate.
|
|
239
239
|
*
|
|
240
|
-
* Generated on: 2026-01-
|
|
240
|
+
* Generated on: 2026-01-09T12:45:14.752Z
|
|
241
241
|
*/
|
|
242
242
|
const PropDescriptions = {
|
|
243
243
|
"appearance": {
|
package/dist/index.js
CHANGED
|
@@ -239,7 +239,7 @@ const ComponentCategories = {
|
|
|
239
239
|
* Auto-generated prop descriptions from JSDoc comments.
|
|
240
240
|
* DO NOT EDIT MANUALLY - Run 'npm run props:generate' to regenerate.
|
|
241
241
|
*
|
|
242
|
-
* Generated on: 2026-01-
|
|
242
|
+
* Generated on: 2026-01-09T12:45:14.752Z
|
|
243
243
|
*/
|
|
244
244
|
const PropDescriptions = {
|
|
245
245
|
"appearance": {
|
package/dist/ui.css
CHANGED
package/package.json
CHANGED