ui-thing 0.1.21 → 0.1.22
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 +16 -0
- package/dist/index.js +105 -13
- package/dist/index.js.map +1 -1
- package/package.json +4 -4
- package/src/comps.ts +51 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ui-thing",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.22",
|
|
4
4
|
"description": "CLI used to add Nuxt 3 components to a project",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"cli",
|
|
@@ -58,14 +58,14 @@
|
|
|
58
58
|
"@ianvs/prettier-plugin-sort-imports": "^4.3.1",
|
|
59
59
|
"@types/figlet": "^1.5.8",
|
|
60
60
|
"@types/fs-extra": "^11.0.4",
|
|
61
|
-
"@types/lodash": "^4.17.
|
|
61
|
+
"@types/lodash": "^4.17.7",
|
|
62
62
|
"@types/node": "^20.14.10",
|
|
63
63
|
"@types/prompts": "^2.4.9",
|
|
64
|
-
"@vitest/coverage-v8": "^2.0.
|
|
64
|
+
"@vitest/coverage-v8": "^2.0.3",
|
|
65
65
|
"magicast": "^0.3.4",
|
|
66
66
|
"tsup": "^8.1.0",
|
|
67
67
|
"typescript": "^5.5.3",
|
|
68
|
-
"vitest": "^2.0.
|
|
68
|
+
"vitest": "^2.0.3"
|
|
69
69
|
},
|
|
70
70
|
"publishConfig": {
|
|
71
71
|
"access": "public"
|
package/src/comps.ts
CHANGED
|
@@ -1022,6 +1022,57 @@ export default [
|
|
|
1022
1022
|
composables: [],
|
|
1023
1023
|
plugins: [],
|
|
1024
1024
|
},
|
|
1025
|
+
{
|
|
1026
|
+
name: "Editable",
|
|
1027
|
+
value: "editable",
|
|
1028
|
+
files: [
|
|
1029
|
+
{
|
|
1030
|
+
fileName: "Editable/Area.vue",
|
|
1031
|
+
dirPath: "components/UI",
|
|
1032
|
+
fileContent:
|
|
1033
|
+
'<template>\n <EditableArea v-bind="props">\n <slot />\n </EditableArea>\n</template>\n\n<script lang="ts" setup>\n import { EditableArea } from "radix-vue";\n import type { EditableAreaProps } from "radix-vue";\n\n const props = defineProps<EditableAreaProps>();\n</script>\n',
|
|
1034
|
+
},
|
|
1035
|
+
{
|
|
1036
|
+
fileName: "Editable/Cancel.vue",
|
|
1037
|
+
dirPath: "components/UI",
|
|
1038
|
+
fileContent:
|
|
1039
|
+
'<template>\n <EditableCancelTrigger v-bind="props">\n <slot />\n </EditableCancelTrigger>\n</template>\n\n<script lang="ts" setup>\n import { EditableCancelTrigger } from "radix-vue";\n import type { EditableCancelTriggerProps } from "radix-vue";\n\n const props = defineProps<EditableCancelTriggerProps>();\n</script>\n',
|
|
1040
|
+
},
|
|
1041
|
+
{
|
|
1042
|
+
fileName: "Editable/Edit.vue",
|
|
1043
|
+
dirPath: "components/UI",
|
|
1044
|
+
fileContent:
|
|
1045
|
+
'<template>\n <EditableEditTrigger v-bind="props">\n <slot />\n </EditableEditTrigger>\n</template>\n\n<script lang="ts" setup>\n import { EditableEditTrigger } from "radix-vue";\n import type { EditableEditTriggerProps } from "radix-vue";\n\n const props = defineProps<EditableEditTriggerProps>();\n</script>\n',
|
|
1046
|
+
},
|
|
1047
|
+
{
|
|
1048
|
+
fileName: "Editable/Editable.vue",
|
|
1049
|
+
dirPath: "components/UI",
|
|
1050
|
+
fileContent:
|
|
1051
|
+
'<template>\n <EditableRoot :ref="forwardRef" v-slot="slotProps" v-bind="forwarded">\n <slot v-bind="slotProps" />\n </EditableRoot>\n</template>\n\n<script lang="ts" setup>\n import { EditableRoot, useForwardExpose, useForwardPropsEmits } from "radix-vue";\n import type { EditableRootEmits, EditableRootProps } from "radix-vue";\n\n const { currentRef, forwardRef } = useForwardExpose();\n const props = defineProps<EditableRootProps>();\n const emit = defineEmits<EditableRootEmits & { ready: [v?: any] }>();\n const forwarded = useForwardPropsEmits(props, emit);\n\n onMounted(() => {\n // Emit the ready event with the current ref value\n emit("ready", currentRef);\n });\n</script>\n',
|
|
1052
|
+
},
|
|
1053
|
+
{
|
|
1054
|
+
fileName: "Editable/Input.vue",
|
|
1055
|
+
dirPath: "components/UI",
|
|
1056
|
+
fileContent:
|
|
1057
|
+
'<template>\n <EditableInput v-bind="props">\n <slot />\n </EditableInput>\n</template>\n\n<script lang="ts" setup>\n import { EditableInput } from "radix-vue";\n import type { EditableInputProps } from "radix-vue";\n\n const props = defineProps<EditableInputProps>();\n</script>\n',
|
|
1058
|
+
},
|
|
1059
|
+
{
|
|
1060
|
+
fileName: "Editable/Preview.vue",
|
|
1061
|
+
dirPath: "components/UI",
|
|
1062
|
+
fileContent:
|
|
1063
|
+
'<template>\n <EditablePreview v-bind="props">\n <slot />\n </EditablePreview>\n</template>\n\n<script lang="ts" setup>\n import { EditablePreview } from "radix-vue";\n import type { EditablePreviewProps } from "radix-vue";\n\n const props = defineProps<EditablePreviewProps>();\n</script>\n',
|
|
1064
|
+
},
|
|
1065
|
+
{
|
|
1066
|
+
fileName: "Editable/Submit.vue",
|
|
1067
|
+
dirPath: "components/UI",
|
|
1068
|
+
fileContent:
|
|
1069
|
+
'<template>\n <EditableSubmitTrigger v-bind="props">\n <slot />\n </EditableSubmitTrigger>\n</template>\n\n<script lang="ts" setup>\n import { EditableSubmitTrigger } from "radix-vue";\n import type { EditableSubmitTriggerProps } from "radix-vue";\n\n const props = defineProps<EditableSubmitTriggerProps>();\n</script>\n',
|
|
1070
|
+
},
|
|
1071
|
+
],
|
|
1072
|
+
utils: [],
|
|
1073
|
+
composables: [],
|
|
1074
|
+
plugins: [],
|
|
1075
|
+
},
|
|
1025
1076
|
{
|
|
1026
1077
|
name: "Fancy Icon",
|
|
1027
1078
|
value: "fancy-icon",
|