@byyuurin/ui 0.0.0 → 0.0.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 +35 -1
- package/dist/internal/styler.mjs +1 -2
- package/dist/unocss-preset.d.ts +1 -1
- package/dist/unocss-preset.mjs +1 -1
- package/dist/utils/unocss.d.ts +1 -1
- package/package.json +16 -11
package/README.md
CHANGED
|
@@ -8,12 +8,46 @@ A collection of Vue.js components for my projects.
|
|
|
8
8
|
[![JSDocs][jsdocs-src]][jsdocs-href]
|
|
9
9
|
[![License][license-src]][license-href]
|
|
10
10
|
|
|
11
|
-
##
|
|
11
|
+
## Preview
|
|
12
|
+
|
|
13
|
+
https://byyuurin-ui.netlify.app/
|
|
14
|
+
|
|
15
|
+
## Installation
|
|
12
16
|
|
|
13
17
|
```ssh
|
|
14
18
|
pnpm i @byyuurin/ui
|
|
15
19
|
```
|
|
16
20
|
|
|
21
|
+
## UnoCSS
|
|
22
|
+
|
|
23
|
+
```ts
|
|
24
|
+
// uno.config.ts
|
|
25
|
+
import ui from '@byyuurin/ui/unocss-preset'
|
|
26
|
+
import { defineConfig, presetIcons, presetUno } from 'unocss'
|
|
27
|
+
|
|
28
|
+
export default defineConfig({
|
|
29
|
+
presets: [
|
|
30
|
+
presetUno(),
|
|
31
|
+
presetIcons(),
|
|
32
|
+
ui(),
|
|
33
|
+
],
|
|
34
|
+
content: {
|
|
35
|
+
pipeline: {
|
|
36
|
+
include: [
|
|
37
|
+
/\.(vue|svelte|[jt]sx|mdx?|astro|elm|php|phtml|html)($|\?)/,
|
|
38
|
+
/\/(?:theme).*\.(ts|m?js)($|\?)/,
|
|
39
|
+
],
|
|
40
|
+
},
|
|
41
|
+
},
|
|
42
|
+
})
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
## Credits
|
|
46
|
+
|
|
47
|
+
- [UnoCSS](https://github.com/unocss/unocss)
|
|
48
|
+
- [daisyui](https://github.com/saadeghi/daisyui)
|
|
49
|
+
- [@nuxt/ui](https://github.com/nuxt/ui)
|
|
50
|
+
|
|
17
51
|
## License
|
|
18
52
|
|
|
19
53
|
[MIT](./LICENSE) License © 2024-PRESENT [Yuurin](https://github.com/byyurin)
|
package/dist/internal/styler.mjs
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { cv } from "@byyuurin/ui-kit";
|
|
2
|
-
import { mergeConfigs, toArray } from "@unocss/core";
|
|
3
2
|
import { h, isCSSMathFn, parseColor, splitShorthand } from "@unocss/preset-mini/utils";
|
|
4
|
-
import { presetUno } from "
|
|
3
|
+
import { mergeConfigs, presetUno, toArray } from "unocss";
|
|
5
4
|
import presetUI, { cssVarsAll, cssVarsPrefix } from "../unocss-preset.mjs";
|
|
6
5
|
const theme = mergeConfigs([
|
|
7
6
|
presetUno(),
|
package/dist/unocss-preset.d.ts
CHANGED
|
@@ -33,5 +33,5 @@ export declare const cssVarsPrefix = "ui";
|
|
|
33
33
|
export declare const cssVarsBase: string[];
|
|
34
34
|
export declare const cssVarsDynamic: string[];
|
|
35
35
|
export declare const cssVarsAll: string[];
|
|
36
|
-
declare const _default: import("
|
|
36
|
+
declare const _default: import("unocss/index").PresetFactory<Theme, PresetOptions>;
|
|
37
37
|
export default _default;
|
package/dist/unocss-preset.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { definePreset } from "@unocss/core";
|
|
2
1
|
import { parseColor, parseCssColor } from "@unocss/preset-mini/utils";
|
|
2
|
+
import { definePreset } from "unocss";
|
|
3
3
|
export const cssVarsPrefix = "ui";
|
|
4
4
|
export const cssVarsBase = ["cb", "c1", "c2", "c3"];
|
|
5
5
|
export const cssVarsDynamic = ["fill", "content"];
|
package/dist/utils/unocss.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@byyuurin/ui",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.1",
|
|
5
5
|
"description": "",
|
|
6
6
|
"author": "Yuurin <byyuurin@gmail.com>",
|
|
7
7
|
"license": "MIT",
|
|
@@ -46,28 +46,33 @@
|
|
|
46
46
|
"dist"
|
|
47
47
|
],
|
|
48
48
|
"peerDependencies": {
|
|
49
|
+
"nuxt": "^3.13.1",
|
|
50
|
+
"unocss": "^65.4.3",
|
|
49
51
|
"vue": "^3.5.13"
|
|
50
52
|
},
|
|
53
|
+
"peerDependenciesMeta": {
|
|
54
|
+
"nuxt": {
|
|
55
|
+
"optional": true
|
|
56
|
+
}
|
|
57
|
+
},
|
|
51
58
|
"dependencies": {
|
|
52
59
|
"@byyuurin/ui-kit": "^0.3.3",
|
|
53
|
-
"@
|
|
60
|
+
"@nuxt/kit": "^3.15.4",
|
|
54
61
|
"@unocss/preset-mini": "^65.4.3",
|
|
55
|
-
"@unocss/preset-uno": "^65.4.3",
|
|
56
62
|
"@vueuse/core": "^12.5.0",
|
|
57
63
|
"defu": "^6.1.4",
|
|
58
|
-
"nuxt": "^3.15.3",
|
|
59
64
|
"ohash": "^1.1.4",
|
|
60
65
|
"reka-ui": "1.0.0-alpha.8",
|
|
61
|
-
"
|
|
66
|
+
"unocss": "^65.4.3",
|
|
67
|
+
"vaul-vue": "^0.2.1",
|
|
62
68
|
"vue-component-type-helpers": "^2.2.0"
|
|
63
69
|
},
|
|
64
70
|
"devDependencies": {
|
|
65
|
-
"@antfu/ni": "^23.3.
|
|
71
|
+
"@antfu/ni": "^23.3.1",
|
|
66
72
|
"@byyuurin/eslint-config": "^1.7.0",
|
|
67
|
-
"@nuxt/
|
|
68
|
-
"@
|
|
69
|
-
"
|
|
70
|
-
"bumpp": "^9.11.1",
|
|
73
|
+
"@nuxt/schema": "^3.15.4",
|
|
74
|
+
"@types/node": "^22.13.0",
|
|
75
|
+
"bumpp": "^10.0.1",
|
|
71
76
|
"eslint": "^9.19.0",
|
|
72
77
|
"eslint-plugin-format": "1.0.1",
|
|
73
78
|
"esno": "^4.8.0",
|
|
@@ -76,7 +81,7 @@
|
|
|
76
81
|
"typescript": "^5.7.3",
|
|
77
82
|
"unbuild": "^3.3.1",
|
|
78
83
|
"unplugin-vue-components": "^28.0.0",
|
|
79
|
-
"vitest": "^
|
|
84
|
+
"vitest": "^3.0.4",
|
|
80
85
|
"vue": "^3.5.13",
|
|
81
86
|
"vue-tsc": "^2.2.0"
|
|
82
87
|
},
|