windly-ui 1.0.2 → 1.0.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/{ui-library/dist → dist}/module.json +2 -2
- package/dist/module.mjs +26 -0
- package/dist/runtime/components/Accordion.d.vue.ts +39 -0
- package/dist/runtime/components/Accordion.vue +92 -0
- package/dist/runtime/components/Accordion.vue.d.ts +39 -0
- package/dist/runtime/components/Avatar.d.vue.ts +141 -0
- package/dist/runtime/components/Avatar.vue +72 -0
- package/dist/runtime/components/Avatar.vue.d.ts +141 -0
- package/dist/runtime/components/Badge.d.vue.ts +133 -0
- package/dist/runtime/components/Badge.vue +99 -0
- package/dist/runtime/components/Badge.vue.d.ts +133 -0
- package/dist/runtime/components/Breadcrumbs.d.vue.ts +83 -0
- package/dist/runtime/components/Breadcrumbs.vue +116 -0
- package/dist/runtime/components/Breadcrumbs.vue.d.ts +83 -0
- package/dist/runtime/components/Button.d.vue.ts +199 -0
- package/dist/runtime/components/Button.vue +125 -0
- package/dist/runtime/components/Button.vue.d.ts +199 -0
- package/dist/runtime/components/Card.d.vue.ts +83 -0
- package/dist/runtime/components/Card.vue +71 -0
- package/dist/runtime/components/Card.vue.d.ts +83 -0
- package/dist/runtime/components/Checkbox.d.vue.ts +190 -0
- package/dist/runtime/components/Checkbox.vue +125 -0
- package/dist/runtime/components/Checkbox.vue.d.ts +190 -0
- package/dist/runtime/components/CodeBlock.d.vue.ts +16 -0
- package/dist/runtime/components/CodeBlock.vue +75 -0
- package/dist/runtime/components/CodeBlock.vue.d.ts +16 -0
- package/dist/runtime/components/ColorPicker.d.vue.ts +91 -0
- package/dist/runtime/components/ColorPicker.vue +244 -0
- package/dist/runtime/components/ColorPicker.vue.d.ts +91 -0
- package/dist/runtime/components/Date.d.vue.ts +137 -0
- package/dist/runtime/components/Date.vue +201 -0
- package/dist/runtime/components/Date.vue.d.ts +137 -0
- package/dist/runtime/components/Dialog.d.vue.ts +103 -0
- package/dist/runtime/components/Dialog.vue +152 -0
- package/dist/runtime/components/Dialog.vue.d.ts +103 -0
- package/dist/runtime/components/Divider.d.vue.ts +51 -0
- package/dist/runtime/components/Divider.vue +52 -0
- package/dist/runtime/components/Divider.vue.d.ts +51 -0
- package/dist/runtime/components/Drawer.d.vue.ts +30 -0
- package/dist/runtime/components/Drawer.vue +43 -0
- package/dist/runtime/components/Drawer.vue.d.ts +30 -0
- package/dist/runtime/components/Dropdown.d.vue.ts +34 -0
- package/dist/runtime/components/Dropdown.vue +127 -0
- package/dist/runtime/components/Dropdown.vue.d.ts +34 -0
- package/dist/runtime/components/FileUploader.d.vue.ts +58 -0
- package/dist/runtime/components/FileUploader.vue +202 -0
- package/dist/runtime/components/FileUploader.vue.d.ts +58 -0
- package/dist/runtime/components/Icon.d.vue.ts +41 -0
- package/dist/runtime/components/Icon.vue +66 -0
- package/dist/runtime/components/Icon.vue.d.ts +41 -0
- package/dist/runtime/components/Image.d.vue.ts +77 -0
- package/dist/runtime/components/Image.vue +61 -0
- package/dist/runtime/components/Image.vue.d.ts +77 -0
- package/dist/runtime/components/Input.d.vue.ts +66 -0
- package/dist/runtime/components/Input.vue +233 -0
- package/dist/runtime/components/Input.vue.d.ts +66 -0
- package/dist/runtime/components/Radio.d.vue.ts +41 -0
- package/dist/runtime/components/Radio.vue +222 -0
- package/dist/runtime/components/Radio.vue.d.ts +41 -0
- package/dist/runtime/components/ScrollArea.d.vue.ts +79 -0
- package/dist/runtime/components/ScrollArea.vue +36 -0
- package/dist/runtime/components/ScrollArea.vue.d.ts +79 -0
- package/dist/runtime/components/Select.d.vue.ts +43 -0
- package/dist/runtime/components/Select.vue +200 -0
- package/dist/runtime/components/Select.vue.d.ts +43 -0
- package/dist/runtime/components/Stepper.d.vue.ts +46 -0
- package/dist/runtime/components/Stepper.vue +218 -0
- package/dist/runtime/components/Stepper.vue.d.ts +46 -0
- package/dist/runtime/components/TabPanel.d.vue.ts +17 -0
- package/dist/runtime/components/TabPanel.vue +21 -0
- package/dist/runtime/components/TabPanel.vue.d.ts +17 -0
- package/dist/runtime/components/Table.d.vue.ts +40 -0
- package/dist/runtime/components/Table.vue +92 -0
- package/dist/runtime/components/Table.vue.d.ts +40 -0
- package/dist/runtime/components/Tabs.d.vue.ts +20 -0
- package/dist/runtime/components/Tabs.vue +62 -0
- package/dist/runtime/components/Tabs.vue.d.ts +20 -0
- package/dist/runtime/components/Textarea.d.vue.ts +208 -0
- package/dist/runtime/components/Textarea.vue +185 -0
- package/dist/runtime/components/Textarea.vue.d.ts +208 -0
- package/dist/runtime/components/Toggle.d.vue.ts +36 -0
- package/dist/runtime/components/Toggle.vue +173 -0
- package/dist/runtime/components/Toggle.vue.d.ts +36 -0
- package/dist/runtime/components/Tooltip.d.vue.ts +63 -0
- package/dist/runtime/components/Tooltip.vue +144 -0
- package/dist/runtime/components/Tooltip.vue.d.ts +63 -0
- package/dist/runtime/components/uiProps.d.ts +38 -0
- package/dist/runtime/components/uiProps.js +11 -0
- package/dist/runtime/components/useUiClasses.d.ts +43 -0
- package/dist/runtime/components/useUiClasses.js +124 -0
- package/dist/runtime/composables/plugin.d.ts +2 -0
- package/dist/runtime/composables/plugin.js +3 -0
- package/dist/runtime/tailwind-color.d.ts +2 -0
- package/dist/runtime/tailwind-color.js +5859 -0
- package/package.json +12 -46
- package/LICENSE +0 -21
- package/README.md +0 -232
- package/ui-library/dist/module.mjs +0 -22
- /package/{ui-library/dist → dist}/module.d.mts +0 -0
- /package/{ui-library/dist → dist}/types.d.mts +0 -0
package/package.json
CHANGED
|
@@ -1,59 +1,25 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "windly-ui",
|
|
3
|
-
"version": "1.0.
|
|
4
|
-
"description": "A Nuxt 4 module providing a small Tailwind-based UI component library",
|
|
3
|
+
"version": "1.0.3",
|
|
5
4
|
"type": "module",
|
|
6
|
-
"main": "./
|
|
5
|
+
"main": "./dist/module.mjs",
|
|
7
6
|
"exports": {
|
|
8
|
-
".": "./
|
|
7
|
+
".": "./dist/module.mjs"
|
|
9
8
|
},
|
|
10
9
|
"files": [
|
|
11
|
-
"
|
|
12
|
-
"README.md",
|
|
13
|
-
"LICENSE"
|
|
10
|
+
"dist"
|
|
14
11
|
],
|
|
15
12
|
"scripts": {
|
|
16
|
-
|
|
17
|
-
"
|
|
18
|
-
"prepublishOnly": "npm run build",
|
|
19
|
-
"pack": "npm pack",
|
|
20
|
-
"pack:local": "npm run build && npm pack --pack-destination ./pack",
|
|
21
|
-
"lint": "echo \"no lint configured\" && exit 0"
|
|
13
|
+
"build": "nuxt-module-build build",
|
|
14
|
+
"prepublishOnly": "npm run build"
|
|
22
15
|
},
|
|
23
|
-
"repository": {
|
|
24
|
-
"type": "git",
|
|
25
|
-
"url": "git+https://github.com/your-username/windly-ui.git"
|
|
26
|
-
},
|
|
27
|
-
"keywords": [
|
|
28
|
-
"nuxt-module",
|
|
29
|
-
"nuxt",
|
|
30
|
-
"vue",
|
|
31
|
-
"tailwind",
|
|
32
|
-
"ui-library"
|
|
33
|
-
],
|
|
34
|
-
"author": "Your Name <you@example.com>",
|
|
35
|
-
"license": "MIT",
|
|
36
|
-
"bugs": {
|
|
37
|
-
"url": "https://github.com/your-username/windly-ui/issues"
|
|
38
|
-
},
|
|
39
|
-
"homepage": "https://github.com/your-username/windly-ui#readme",
|
|
40
16
|
"peerDependencies": {
|
|
41
|
-
"nuxt": "^4.
|
|
42
|
-
"vue": "^3.5.26"
|
|
17
|
+
"nuxt": "^4.0.0"
|
|
43
18
|
},
|
|
44
19
|
"devDependencies": {
|
|
45
|
-
"@nuxt/module-builder": "^
|
|
46
|
-
"@
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
"*": {
|
|
50
|
-
"*": ["./ui-library/dist/*"]
|
|
51
|
-
}
|
|
52
|
-
},
|
|
53
|
-
"engines": {
|
|
54
|
-
"node": ">=16"
|
|
55
|
-
},
|
|
56
|
-
"publishConfig": {
|
|
57
|
-
"access": "public"
|
|
20
|
+
"@nuxt/module-builder": "^1.0.0",
|
|
21
|
+
"@nuxt/kit": "^4.0.0",
|
|
22
|
+
"typescript": "^5.8.0",
|
|
23
|
+
"vue-tsc": "^2.2.0"
|
|
58
24
|
}
|
|
59
|
-
}
|
|
25
|
+
}
|
package/LICENSE
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
MIT License
|
|
2
|
-
|
|
3
|
-
Copyright (c) 2026 Your Name
|
|
4
|
-
|
|
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
DELETED
|
@@ -1,232 +0,0 @@
|
|
|
1
|
-
# Tailwind-Based UI Library for Nuxt 4
|
|
2
|
-
|
|
3
|
-
A lightweight, modular UI component library built specifically for Nuxt 4 applications, powered by Tailwind CSS.
|
|
4
|
-
|
|
5
|
-
---
|
|
6
|
-
|
|
7
|
-
## Overview
|
|
8
|
-
|
|
9
|
-
This UI library is designed to accelerate frontend development by providing reusable, customizable, and auto-imported components. It focuses on simplicity, flexibility, and a smooth developer experience while staying fully aligned with Tailwind CSS principles.
|
|
10
|
-
|
|
11
|
-
---
|
|
12
|
-
|
|
13
|
-
## Key Features
|
|
14
|
-
|
|
15
|
-
### Tailwind-First Design
|
|
16
|
-
|
|
17
|
-
All components accept Tailwind utility classes directly via:
|
|
18
|
-
|
|
19
|
-
* `class`
|
|
20
|
-
* `:class`
|
|
21
|
-
|
|
22
|
-
This gives full control over styling without requiring overrides or complex theming systems.
|
|
23
|
-
|
|
24
|
-
---
|
|
25
|
-
|
|
26
|
-
### Auto Import (Nuxt 4 Native)
|
|
27
|
-
|
|
28
|
-
Components are automatically available across your application.
|
|
29
|
-
|
|
30
|
-
Example:
|
|
31
|
-
|
|
32
|
-
```vue
|
|
33
|
-
<UIButton label="Click Me" />
|
|
34
|
-
```
|
|
35
|
-
|
|
36
|
-
---
|
|
37
|
-
|
|
38
|
-
### Fully Reactive Components
|
|
39
|
-
|
|
40
|
-
Built using the Vue 3 Composition API:
|
|
41
|
-
|
|
42
|
-
* `ref`
|
|
43
|
-
* `computed`
|
|
44
|
-
* `watch`
|
|
45
|
-
* `provide / inject`
|
|
46
|
-
|
|
47
|
-
---
|
|
48
|
-
|
|
49
|
-
### Consistent API Design
|
|
50
|
-
|
|
51
|
-
All components follow predictable and consistent patterns:
|
|
52
|
-
|
|
53
|
-
* `v-model` support where applicable
|
|
54
|
-
* Props for variants such as color, size, and state
|
|
55
|
-
* Slots for flexible customization
|
|
56
|
-
|
|
57
|
-
---
|
|
58
|
-
|
|
59
|
-
## Component Categories
|
|
60
|
-
|
|
61
|
-
### Form Controls
|
|
62
|
-
|
|
63
|
-
* UIInput
|
|
64
|
-
* UITextarea
|
|
65
|
-
* UIButton
|
|
66
|
-
* UIToggle
|
|
67
|
-
* UICheckbox
|
|
68
|
-
* UIRadio
|
|
69
|
-
* UIDropdown
|
|
70
|
-
* UIChip
|
|
71
|
-
|
|
72
|
-
---
|
|
73
|
-
|
|
74
|
-
### Navigation
|
|
75
|
-
|
|
76
|
-
* UIBreadcrumbs
|
|
77
|
-
* UITabs + UITabPanel
|
|
78
|
-
* UIAccordion
|
|
79
|
-
|
|
80
|
-
---
|
|
81
|
-
|
|
82
|
-
### Feedback and Popups
|
|
83
|
-
|
|
84
|
-
* UITooltip
|
|
85
|
-
* UIDialog
|
|
86
|
-
|
|
87
|
-
---
|
|
88
|
-
|
|
89
|
-
### Data Display
|
|
90
|
-
|
|
91
|
-
* UICard
|
|
92
|
-
* UIAvatar
|
|
93
|
-
* UIBadge
|
|
94
|
-
|
|
95
|
-
---
|
|
96
|
-
|
|
97
|
-
### Planned Components
|
|
98
|
-
|
|
99
|
-
* UIList
|
|
100
|
-
* UITable
|
|
101
|
-
* UIScrollArea
|
|
102
|
-
* UIImage
|
|
103
|
-
* UIIcon
|
|
104
|
-
* UIDivider
|
|
105
|
-
|
|
106
|
-
---
|
|
107
|
-
|
|
108
|
-
## Design Philosophy
|
|
109
|
-
|
|
110
|
-
### Minimal but Powerful
|
|
111
|
-
|
|
112
|
-
Components are intentionally lightweight while still supporting complex use cases through composition.
|
|
113
|
-
|
|
114
|
-
---
|
|
115
|
-
|
|
116
|
-
### Developer Control First
|
|
117
|
-
|
|
118
|
-
There is no rigid styling system. Tailwind utilities are used directly for full flexibility.
|
|
119
|
-
|
|
120
|
-
---
|
|
121
|
-
|
|
122
|
-
### Composition over Configuration
|
|
123
|
-
|
|
124
|
-
Instead of relying on large sets of props, the library encourages:
|
|
125
|
-
|
|
126
|
-
* Slots
|
|
127
|
-
* Composition patterns
|
|
128
|
-
* Vue reactivity
|
|
129
|
-
|
|
130
|
-
---
|
|
131
|
-
|
|
132
|
-
### Framework-Native Experience
|
|
133
|
-
|
|
134
|
-
Built specifically for:
|
|
135
|
-
|
|
136
|
-
* Nuxt 4
|
|
137
|
-
* Vue 3
|
|
138
|
-
|
|
139
|
-
No unnecessary abstractions or overhead.
|
|
140
|
-
|
|
141
|
-
---
|
|
142
|
-
|
|
143
|
-
## Example Usage
|
|
144
|
-
|
|
145
|
-
```vue
|
|
146
|
-
<template>
|
|
147
|
-
<UICard bordered>
|
|
148
|
-
<template #header>
|
|
149
|
-
<h3 class="text-lg font-semibold">Welcome</h3>
|
|
150
|
-
</template>
|
|
151
|
-
|
|
152
|
-
<p>This is a simple card using the UI library.</p>
|
|
153
|
-
# Tailwind-Based UI Library for Nuxt 4
|
|
154
|
-
|
|
155
|
-
A lightweight, modular UI component library built specifically for Nuxt 4 applications, powered by Tailwind CSS.
|
|
156
|
-
|
|
157
|
-
## Overview
|
|
158
|
-
|
|
159
|
-
This UI library is designed to accelerate frontend development by providing reusable, customizable, and auto-imported components.
|
|
160
|
-
|
|
161
|
-
## Key Features
|
|
162
|
-
|
|
163
|
-
- Tailwind-first design: components accept Tailwind utility classes directly.
|
|
164
|
-
- Auto-imported components via Nuxt 4's component system.
|
|
165
|
-
- Lightweight, framework-native Vue 3 components.
|
|
166
|
-
|
|
167
|
-
## Example Usage
|
|
168
|
-
|
|
169
|
-
```vue
|
|
170
|
-
<template>
|
|
171
|
-
<UICard bordered>
|
|
172
|
-
<template #header>
|
|
173
|
-
<h3 class="text-lg font-semibold">Welcome</h3>
|
|
174
|
-
</template>
|
|
175
|
-
|
|
176
|
-
<p>This is a simple card using the UI library.</p>
|
|
177
|
-
|
|
178
|
-
<template #footer>
|
|
179
|
-
<UIButton label="Action" />
|
|
180
|
-
</template>
|
|
181
|
-
</UICard>
|
|
182
|
-
</template>
|
|
183
|
-
```
|
|
184
|
-
|
|
185
|
-
## Local test and packaging
|
|
186
|
-
|
|
187
|
-
1. Build the module (the `prepare` script runs this automatically on `npm pack` and `npm publish`):
|
|
188
|
-
|
|
189
|
-
```bash
|
|
190
|
-
npm run build
|
|
191
|
-
```
|
|
192
|
-
|
|
193
|
-
2. Create a local tarball for testing:
|
|
194
|
-
|
|
195
|
-
```bash
|
|
196
|
-
npm pack
|
|
197
|
-
```
|
|
198
|
-
|
|
199
|
-
3. In another project, install the generated tarball (replace the filename with the one produced by `npm pack`):
|
|
200
|
-
|
|
201
|
-
```bash
|
|
202
|
-
npm install /path/to/windly-ui-1.0.2.tgz
|
|
203
|
-
```
|
|
204
|
-
|
|
205
|
-
4. Add the module to `nuxt.config` in the consuming project:
|
|
206
|
-
|
|
207
|
-
```ts
|
|
208
|
-
export default defineNuxtConfig({
|
|
209
|
-
modules: [
|
|
210
|
-
'windly-ui'
|
|
211
|
-
]
|
|
212
|
-
})
|
|
213
|
-
```
|
|
214
|
-
|
|
215
|
-
## Publish
|
|
216
|
-
|
|
217
|
-
1. Bump the version in `package.json`.
|
|
218
|
-
2. Ensure you are logged into npm: `npm login`.
|
|
219
|
-
3. Publish:
|
|
220
|
-
|
|
221
|
-
```bash
|
|
222
|
-
npm publish --access public
|
|
223
|
-
```
|
|
224
|
-
|
|
225
|
-
## Notes
|
|
226
|
-
|
|
227
|
-
- The package auto-registers components under the `UI` prefix (for example `UIButton`, `UICard`).
|
|
228
|
-
- The `plugin.ts` also registers the most common components explicitly.
|
|
229
|
-
|
|
230
|
-
## License
|
|
231
|
-
|
|
232
|
-
MIT
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { defineNuxtModule, createResolver, addComponentsDir } from '@nuxt/kit';
|
|
2
|
-
|
|
3
|
-
const module$1 = defineNuxtModule({
|
|
4
|
-
meta: {
|
|
5
|
-
name: "ui-library",
|
|
6
|
-
configKey: "uiLibrary"
|
|
7
|
-
},
|
|
8
|
-
setup(_, nuxt) {
|
|
9
|
-
const resolver = createResolver(import.meta.url);
|
|
10
|
-
addComponentsDir({
|
|
11
|
-
path: resolver.resolve("./components"),
|
|
12
|
-
prefix: "UI",
|
|
13
|
-
// This will prefix components with <UIButton />, <UICard /> etc.
|
|
14
|
-
pathPrefix: false,
|
|
15
|
-
// Don't include folder names as prefix
|
|
16
|
-
extensions: ["vue"],
|
|
17
|
-
watch: nuxt.options.dev
|
|
18
|
-
});
|
|
19
|
-
}
|
|
20
|
-
});
|
|
21
|
-
|
|
22
|
-
export { module$1 as default };
|
|
File without changes
|
|
File without changes
|