ui-thing 0.1.23 → 0.1.25
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/CHANGELOG.md +26 -0
- package/dist/index.js +25 -25
- package/dist/index.js.map +1 -1
- package/package.json +10 -10
- package/src/comps.ts +1 -1
- package/src/utils/constants.ts +2 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ui-thing",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.25",
|
|
4
4
|
"description": "CLI used to add Nuxt 3 components to a project",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"cli",
|
|
@@ -38,10 +38,10 @@
|
|
|
38
38
|
"test": "vitest"
|
|
39
39
|
},
|
|
40
40
|
"dependencies": {
|
|
41
|
-
"axios": "^1.7.
|
|
41
|
+
"axios": "^1.7.7",
|
|
42
42
|
"boxen": "^8.0.1",
|
|
43
43
|
"build": "^0.1.4",
|
|
44
|
-
"c12": "^1.11.
|
|
44
|
+
"c12": "^1.11.2",
|
|
45
45
|
"commander": "^12.1.0",
|
|
46
46
|
"defu": "^6.1.4",
|
|
47
47
|
"execa": "^9.3.1",
|
|
@@ -49,8 +49,8 @@
|
|
|
49
49
|
"fs-extra": "^11.2.0",
|
|
50
50
|
"kleur": "^4.1.5",
|
|
51
51
|
"lodash": "^4.17.21",
|
|
52
|
-
"nypm": "^0.3.
|
|
53
|
-
"ora": "^8.0
|
|
52
|
+
"nypm": "^0.3.11",
|
|
53
|
+
"ora": "^8.1.0",
|
|
54
54
|
"prompts": "^2.4.2"
|
|
55
55
|
},
|
|
56
56
|
"devDependencies": {
|
|
@@ -59,13 +59,13 @@
|
|
|
59
59
|
"@types/figlet": "^1.5.8",
|
|
60
60
|
"@types/fs-extra": "^11.0.4",
|
|
61
61
|
"@types/lodash": "^4.17.7",
|
|
62
|
-
"@types/node": "^22.
|
|
62
|
+
"@types/node": "^22.5.5",
|
|
63
63
|
"@types/prompts": "^2.4.9",
|
|
64
|
-
"@vitest/coverage-v8": "^2.
|
|
65
|
-
"magicast": "^0.3.
|
|
64
|
+
"@vitest/coverage-v8": "^2.1.1",
|
|
65
|
+
"magicast": "^0.3.5",
|
|
66
66
|
"tsup": "^8.2.4",
|
|
67
|
-
"typescript": "^5.
|
|
68
|
-
"vitest": "^2.
|
|
67
|
+
"typescript": "^5.6.2",
|
|
68
|
+
"vitest": "^2.1.1"
|
|
69
69
|
},
|
|
70
70
|
"publishConfig": {
|
|
71
71
|
"access": "public"
|
package/src/comps.ts
CHANGED
|
@@ -1199,7 +1199,7 @@ export default [
|
|
|
1199
1199
|
fileName: "Input.vue",
|
|
1200
1200
|
dirPath: "components/UI",
|
|
1201
1201
|
fileContent:
|
|
1202
|
-
'<template>\n <!-- eslint-disable-next-line vue/html-self-closing -->\n <input v-bind="props" v-model="localModel" :class="styles({ class: props.class })" />\n</template>\n\n<script lang="ts" setup>\n const props = withDefaults(\n defineProps<{\n class?: any;\n id?: string;\n name?: string;\n placeholder?: string;\n disabled?: boolean;\n required?: boolean;\n type?: string;\n modelValue?: any;\n }>(),\n { type: "text" }\n );\n const emits = defineEmits<{\n "update:modelValue": [value: any];\n }>();\n const localModel = useVModel(props, "modelValue", emits);\n\n const styles = tv({\n base: "form-input h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-base ring-offset-background file:border-0 file:bg-transparent file:px-1 file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground file:hover:cursor-pointer focus:border-input focus:ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 sm:text-sm",\n });\n</script>\n',
|
|
1202
|
+
'<template>\n <!-- eslint-disable-next-line vue/html-self-closing -->\n <input v-bind="props" v-model="localModel" :class="styles({ class: props.class })" />\n</template>\n\n<script lang="ts" setup>\n const props = withDefaults(\n defineProps<{\n class?: any;\n id?: string;\n name?: string;\n placeholder?: string;\n disabled?: boolean;\n required?: boolean;\n type?: string;\n modelValue?: any;\n }>(),\n { type: "text" }\n );\n const emits = defineEmits<{\n "update:modelValue": [value: any];\n }>();\n const localModel = useVModel(props, "modelValue", emits);\n\n const styles = tv({\n base: "form-input h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-base ring-offset-background file:border-0 file:bg-transparent file:px-1 file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground file:hover:cursor-pointer focus:border-input focus:ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 dark:[color-scheme:dark] sm:text-sm",\n });\n</script>\n',
|
|
1203
1203
|
},
|
|
1204
1204
|
],
|
|
1205
1205
|
utils: [],
|
package/src/utils/constants.ts
CHANGED
|
@@ -2,7 +2,7 @@ export const INIT_DEPS = ["radix-vue", "tailwind-variants"];
|
|
|
2
2
|
export const INIT_DEV_DEPS = [
|
|
3
3
|
"typescript",
|
|
4
4
|
"tailwindcss-animate",
|
|
5
|
-
"nuxt
|
|
5
|
+
"@nuxt/icon",
|
|
6
6
|
"prettier-plugin-tailwindcss",
|
|
7
7
|
"prettier",
|
|
8
8
|
"@nuxtjs/tailwindcss",
|
|
@@ -16,7 +16,7 @@ export const INIT_MODULES = [
|
|
|
16
16
|
"@nuxtjs/tailwindcss",
|
|
17
17
|
"@nuxtjs/color-mode",
|
|
18
18
|
"@vueuse/nuxt",
|
|
19
|
-
"nuxt
|
|
19
|
+
"@nuxt/icon",
|
|
20
20
|
];
|
|
21
21
|
|
|
22
22
|
export const CSS_THEME_OPTIONS = [
|