ui-thing 0.1.10 → 0.1.12
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 +30 -0
- package/dist/index.js +109 -24
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
- package/src/comps.ts +24 -3
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ui-thing",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.12",
|
|
4
4
|
"description": "CLI used to add Nuxt 3 components to a project",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
@@ -62,7 +62,7 @@
|
|
|
62
62
|
"@types/figlet": "^1.5.8",
|
|
63
63
|
"@types/fs-extra": "^11.0.4",
|
|
64
64
|
"@types/lodash": "^4.17.0",
|
|
65
|
-
"@types/node": "^20.12.
|
|
65
|
+
"@types/node": "^20.12.4",
|
|
66
66
|
"@types/prompts": "^2.4.9",
|
|
67
67
|
"@vitest/coverage-v8": "^1.4.0",
|
|
68
68
|
"magicast": "^0.3.3",
|
package/src/comps.ts
CHANGED
|
@@ -1884,7 +1884,7 @@ export default [
|
|
|
1884
1884
|
fileName: "Splitter/Panel.vue",
|
|
1885
1885
|
dirPath: "components/UI",
|
|
1886
1886
|
fileContent:
|
|
1887
|
-
'<template>\n <SplitterPanel\n v-bind="forwarded"\n v-slot="{ isCollapsed, isExpanded }: { isCollapsed: boolean; isExpanded: boolean }"\n >\n <slot :isCollapsed="isCollapsed" :isExpanded="isExpanded"></slot>\n </SplitterPanel>\n</template>\n\n<script lang="ts" setup>\n import { SplitterPanel, useForwardPropsEmits } from "radix-vue";\n import type { SplitterPanelEmits, SplitterPanelProps } from "radix-vue";\n\n const props = withDefaults(defineProps<SplitterPanelProps>(), {});\n\n const emit = defineEmits<
|
|
1887
|
+
'<template>\n <SplitterPanel\n v-bind="forwarded"\n ref="forwardRef"\n v-slot="{ isCollapsed, isExpanded }: { isCollapsed: boolean; isExpanded: boolean }"\n >\n <slot :isCollapsed="isCollapsed" :isExpanded="isExpanded"></slot>\n </SplitterPanel>\n</template>\n\n<script lang="ts" setup>\n import { SplitterPanel, useForwardExpose, useForwardPropsEmits } from "radix-vue";\n import type { SplitterPanelEmits, SplitterPanelProps } from "radix-vue";\n\n const props = withDefaults(defineProps<SplitterPanelProps>(), {});\n\n const forwardRef = ref<InstanceType<typeof SplitterPanel>>();\n const emit = defineEmits<\n SplitterPanelEmits & {\n ready: [value: InstanceType<typeof SplitterPanel>];\n }\n >();\n\n const forwarded = useForwardPropsEmits(props, emit);\n\n onMounted(async () => {\n await nextTick();\n emit("ready", forwardRef.value!);\n });\n</script>\n',
|
|
1888
1888
|
},
|
|
1889
1889
|
{
|
|
1890
1890
|
fileName: "Splitter/Handle.vue",
|
|
@@ -2178,6 +2178,27 @@ export default [
|
|
|
2178
2178
|
composables: [],
|
|
2179
2179
|
plugins: [],
|
|
2180
2180
|
},
|
|
2181
|
+
{
|
|
2182
|
+
name: "Toggle Group",
|
|
2183
|
+
value: "toggle-group",
|
|
2184
|
+
files: [
|
|
2185
|
+
{
|
|
2186
|
+
fileName: "ToggleGroup/ToggleGroup.vue",
|
|
2187
|
+
dirPath: "components/UI",
|
|
2188
|
+
fileContent:
|
|
2189
|
+
'<template>\n <ToggleGroupRoot\n v-slot="{ modelValue }"\n v-bind="forwarded"\n :class="styles({ class: props.class })"\n >\n <slot :modelValue="modelValue" />\n </ToggleGroupRoot>\n</template>\n\n<script lang="ts" setup>\n import { ToggleGroupRoot, useForwardPropsEmits } from "radix-vue";\n import type { ToggleGroupRootEmits, ToggleGroupRootProps } from "radix-vue";\n\n const props = defineProps<\n ToggleGroupRootProps & {\n /** custom class to add to the parent */\n class?: any;\n }\n >();\n\n const emit = defineEmits<ToggleGroupRootEmits>();\n const forwarded = useForwardPropsEmits(reactiveOmit(props, "class"), emit);\n\n const styles = tv({\n base: "flex items-center justify-center gap-1",\n });\n</script>\n',
|
|
2190
|
+
},
|
|
2191
|
+
{
|
|
2192
|
+
fileName: "ToggleGroup/ToggleGroupItem.vue",
|
|
2193
|
+
dirPath: "components/UI",
|
|
2194
|
+
fileContent:
|
|
2195
|
+
'<template>\n <ToggleGroupItem v-bind="forwarded" :class="styles({ class: props.class, size, variant })">\n <slot>\n <Icon class="size-4" v-if="icon" :name="icon" />\n </slot>\n </ToggleGroupItem>\n</template>\n\n<script lang="ts" setup>\n import { ToggleGroupItem, useForwardProps } from "radix-vue";\n import type { ToggleGroupItemProps, ToggleGroupRootEmits } from "radix-vue";\n\n const props = defineProps<\n ToggleGroupItemProps & {\n /** custom class to add to the toggle */\n class?: any;\n /** icon to display */\n icon?: string;\n /** variant of the toggle */\n variant?: VariantProps<typeof styles>["variant"];\n /** size of the toggle */\n size?: VariantProps<typeof styles>["size"];\n }\n >();\n\n const forwarded = useForwardProps(reactiveOmit(props, "class"));\n\n const styles = tv({\n base: "inline-flex items-center justify-center rounded-md font-medium ring-offset-background transition-colors hover:bg-muted hover:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=on]:bg-accent data-[state=on]:text-accent-foreground sm:text-sm",\n variants: {\n variant: {\n default: "bg-transparent",\n outline: "border border-input bg-transparent hover:bg-accent hover:text-accent-foreground",\n },\n size: {\n default: "h-10 px-3",\n sm: "h-9 px-2.5",\n lg: "h-11 px-5",\n },\n },\n defaultVariants: {\n variant: "default",\n size: "default",\n },\n });\n</script>\n',
|
|
2196
|
+
},
|
|
2197
|
+
],
|
|
2198
|
+
utils: [],
|
|
2199
|
+
composables: [],
|
|
2200
|
+
plugins: [],
|
|
2201
|
+
},
|
|
2181
2202
|
{
|
|
2182
2203
|
name: "Tooltip",
|
|
2183
2204
|
value: "tooltip",
|
|
@@ -2244,11 +2265,11 @@ export default [
|
|
|
2244
2265
|
},
|
|
2245
2266
|
{
|
|
2246
2267
|
name: "VeeCurrencyInput",
|
|
2247
|
-
value: "vee-
|
|
2268
|
+
value: "vee-currency-input",
|
|
2248
2269
|
deps: ["@vee-validate/nuxt", "@morev/vue-transitions"],
|
|
2249
2270
|
askValidator: true,
|
|
2250
2271
|
nuxtModules: ["@vee-validate/nuxt", "@morev/vue-transitions/nuxt"],
|
|
2251
|
-
components: ["
|
|
2272
|
+
components: ["currency-input", "label"],
|
|
2252
2273
|
files: [
|
|
2253
2274
|
{
|
|
2254
2275
|
fileName: "Vee/CurrencyInput.vue",
|