gooee 0.51.0 → 0.51.1
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 +17 -4
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Gooee UI
|
|
2
2
|
|
|
3
|
-
React components where every part grows from the spot you touch. A button becomes its panel, a pill becomes a card, a card becomes its page: the edges move and the words stay still. Black, white and grey with one blue accent, and copied into your app so the code is yours.
|
|
3
|
+
React and Vue components where every part grows from the spot you touch. A button becomes its panel, a pill becomes a card, a card becomes its page: the edges move and the words stay still. Black, white and grey with one blue accent, and copied into your app so the code is yours.
|
|
4
4
|
|
|
5
5
|
<picture>
|
|
6
6
|
<source media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/hilmanhaikal/gooee-ui/main/.github/assets/home-dark-0.37.png">
|
|
@@ -34,7 +34,19 @@ import { Button } from './ui/components/Button'
|
|
|
34
34
|
<Button onClick={save}>Save</Button>
|
|
35
35
|
```
|
|
36
36
|
|
|
37
|
-
Using
|
|
37
|
+
Using Vue? Add `--vue` (`npx gooee@latest add button --vue`) and import the `.vue` file:
|
|
38
|
+
|
|
39
|
+
```vue
|
|
40
|
+
<script setup lang="ts">
|
|
41
|
+
import Button from './ui/components/Button/Button.vue'
|
|
42
|
+
</script>
|
|
43
|
+
|
|
44
|
+
<template>
|
|
45
|
+
<Button @click="save">Save</Button>
|
|
46
|
+
</template>
|
|
47
|
+
```
|
|
48
|
+
|
|
49
|
+
Using Next.js, React Router or Nuxt? The [installation guide](https://gooee.dev/installation) has the steps for each.
|
|
38
50
|
|
|
39
51
|
### With the shadcn CLI
|
|
40
52
|
|
|
@@ -56,6 +68,7 @@ It writes the same files as `npx gooee add button`, into `src/ui`, with `tokens.
|
|
|
56
68
|
|
|
57
69
|
| Option | What it does |
|
|
58
70
|
| --- | --- |
|
|
71
|
+
| `--vue` | `add`: copy the Vue 3.5 version of each part instead of React |
|
|
59
72
|
| `--to <folder>` | Where the files go. Default: the folder in `gooee.json`, else `src/ui` |
|
|
60
73
|
| `--dry-run` | Print what would happen, write nothing |
|
|
61
74
|
| `--overwrite` | `add`: replace files that are already there. Without it, they are skipped and listed |
|
|
@@ -84,8 +97,8 @@ Setup for other tools: [MCP server](https://gooee.dev/mcp).
|
|
|
84
97
|
- **One look, set by tokens.** Every colour, size and timing comes from one file, `tokens.css`. Colour appears only to mean something: good, caution or bad.
|
|
85
98
|
- **Light and dark.** Dark follows the system, or set `data-theme="dark"` on `<html>`.
|
|
86
99
|
- **Accessible.** Keyboard support per the WAI-ARIA patterns, visible focus, screen reader labels, and reduced motion. On touch screens every control gives at least a 44px target, even the small sizes; only the six PIN boxes and the seven calendar days get narrower when the row has no room, about 36px wide on a 320px phone. CalendarHeatmap's days are small by design, since a year must fit on screen; its month table gives the same numbers at full size.
|
|
87
|
-
- **Small.** React 19 and CSS Modules. No other runtime packages: no animation library, no icon package.
|
|
88
|
-
- **Works in** Vite, Next.js (App Router)
|
|
100
|
+
- **Small.** React 19 or Vue 3.5, and CSS Modules. No other runtime packages: no animation library, no icon package.
|
|
101
|
+
- **Works in** Vite, Next.js (App Router), React Router and Nuxt.
|
|
89
102
|
|
|
90
103
|
## Pro
|
|
91
104
|
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "gooee",
|
|
3
|
-
"version": "0.51.
|
|
4
|
-
"description": "React components in black, white and grey with one blue accent. Copy them into your app with npx gooee add <name>.",
|
|
3
|
+
"version": "0.51.1",
|
|
4
|
+
"description": "React and Vue components in black, white and grey with one blue accent. Copy them into your app with npx gooee add <name>.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"homepage": "https://gooee.dev",
|
|
7
7
|
"repository": {
|