@nuxt/ui 3.0.0-alpha.6 → 3.0.0-alpha.8
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/.nuxt/ui/accordion.ts +20 -0
- package/.nuxt/ui/alert.ts +242 -0
- package/.nuxt/ui/avatar-group.ts +40 -0
- package/.nuxt/ui/avatar.ts +42 -0
- package/.nuxt/ui/badge.ts +194 -0
- package/.nuxt/ui/breadcrumb.ts +45 -0
- package/.nuxt/ui/button-group.ts +16 -0
- package/.nuxt/ui/button.ts +344 -0
- package/.nuxt/ui/card.ts +8 -0
- package/.nuxt/ui/carousel.ts +41 -0
- package/.nuxt/ui/checkbox.ts +105 -0
- package/.nuxt/ui/chip.ts +67 -0
- package/.nuxt/ui/collapsible.ts +6 -0
- package/.nuxt/ui/command-palette.ts +40 -0
- package/.nuxt/ui/container.ts +3 -0
- package/.nuxt/ui/context-menu.ts +198 -0
- package/.nuxt/ui/drawer.ts +55 -0
- package/.nuxt/ui/dropdown-menu.ts +199 -0
- package/.nuxt/ui/form-field.ts +40 -0
- package/.nuxt/ui/form.ts +3 -0
- package/.nuxt/ui/index.ts +43 -0
- package/.nuxt/ui/input-menu.ts +411 -0
- package/.nuxt/ui/input.ts +263 -0
- package/.nuxt/ui/kbd.ts +19 -0
- package/.nuxt/ui/link.ts +15 -0
- package/.nuxt/ui/modal.ts +28 -0
- package/.nuxt/ui/navigation-menu.ts +390 -0
- package/.nuxt/ui/pagination.ts +8 -0
- package/.nuxt/ui/popover.ts +6 -0
- package/.nuxt/ui/progress.ts +258 -0
- package/.nuxt/ui/radio-group.ts +112 -0
- package/.nuxt/ui/select-menu.ts +321 -0
- package/.nuxt/ui/select.ts +314 -0
- package/.nuxt/ui/separator.ts +143 -0
- package/.nuxt/ui/skeleton.ts +3 -0
- package/.nuxt/ui/slideover.ts +63 -0
- package/.nuxt/ui/slider.ts +148 -0
- package/.nuxt/ui/switch.ts +113 -0
- package/.nuxt/ui/table.ts +128 -0
- package/.nuxt/ui/tabs.ts +227 -0
- package/.nuxt/ui/textarea.ts +263 -0
- package/.nuxt/ui/toast.ts +66 -0
- package/.nuxt/ui/toaster.ts +75 -0
- package/.nuxt/ui/tooltip.ts +9 -0
- package/cli/templates.mjs +1 -1
- package/dist/chunks/component-meta.cjs +73264 -0
- package/dist/chunks/component-meta.mjs +73262 -0
- package/dist/client/devtools/200.html +1 -0
- package/dist/client/devtools/404.html +1 -0
- package/dist/client/devtools/_fonts/rP2Wp2ywxg089UriCZaSExd86J3t9jz86MvyyKK58UfivUw4aw-SK92LTmKP0.woff2 +0 -0
- package/dist/client/devtools/_fonts/rP2Wp2ywxg089UriCZaSExd86J3t9jz86MvyyKy58UfivUw-9uYm8d48E4.woff2 +0 -0
- package/dist/client/devtools/_fonts/rP2Yp2ywxg089UriI5-g4vlH9VoD8Cmcqbu0-K6z9mXg-VNw7NHvqnp.woff2 +0 -0
- package/dist/client/devtools/_fonts/rP2Yp2ywxg089UriI5-g4vlH9VoD8Cmcqbu6-K6z9mXgjU0-EkYdMs3MAX.woff2 +0 -0
- package/dist/client/devtools/_fonts/rP2rp2ywxg089UriCZaSExd86J3t9jz86Mvy4qCRAL19DksVat-7DW3w-R7n06NbhGy.woff +0 -0
- package/dist/client/devtools/_fonts/rP2rp2ywxg089UriCZaSExd86J3t9jz86Mvy4qCRAL19DksVat-JDG3w-leGNfkTmsj.woff +0 -0
- package/dist/client/devtools/_fonts/rP2rp2ywxg089UriCZaSExd86J3t9jz86Mvy4qCRAL19DksVat-JDW3w-ciElMF03ku.woff +0 -0
- package/dist/client/devtools/_fonts/rP2rp2ywxg089UriCZaSExd86J3t9jz86Mvy4qCRAL19DksVat8JCm3w-sB722Uoa0f.woff +0 -0
- package/dist/client/devtools/_fonts/rP2rp2ywxg089UriCZaSExd86J3t9jz86Mvy4qCRAL19DksVat8JDW3w-PBDI1JDjwV.woff +0 -0
- package/dist/client/devtools/_fonts/rP2rp2ywxg089UriCZaSExd86J3t9jz86Mvy4qCRAL19DksVat8gCm3w-0q1hqVn09O.woff +0 -0
- package/dist/client/devtools/_fonts/rP2rp2ywxg089UriCZaSExd86J3t9jz86Mvy4qCRAL19DksVat9XCm3w-ByvzuLy2fa.woff +0 -0
- package/dist/client/devtools/_fonts/rP2rp2ywxg089UriCZaSExd86J3t9jz86Mvy4qCRAL19DksVat9uCm3w-5TKCIs6EEw.woff +0 -0
- package/dist/client/devtools/_fonts/rP2rp2ywxg089UriCZaSExd86J3t9jz86Mvy4qCRAL19DksVat_XDW3w-r2swRDGfn2.woff +0 -0
- package/dist/client/devtools/_fonts/rP2tp2ywxg089UriI5-g4vlH9VoD8CmcqZG40F9JadbnoEwAC5thTQ-ldB60l5U8r.woff +0 -0
- package/dist/client/devtools/_fonts/rP2tp2ywxg089UriI5-g4vlH9VoD8CmcqZG40F9JadbnoEwAIpthTQ-wbFKGFDrgo.woff +0 -0
- package/dist/client/devtools/_fonts/rP2tp2ywxg089UriI5-g4vlH9VoD8CmcqZG40F9JadbnoEwAIpxhTQ-LLUBv5jskj.woff +0 -0
- package/dist/client/devtools/_fonts/rP2tp2ywxg089UriI5-g4vlH9VoD8CmcqZG40F9JadbnoEwARZthTQ-F71RdTRbNg.woff +0 -0
- package/dist/client/devtools/_fonts/rP2tp2ywxg089UriI5-g4vlH9VoD8CmcqZG40F9JadbnoEwA_JxhTQ-6nh65gZkc0.woff +0 -0
- package/dist/client/devtools/_fonts/rP2tp2ywxg089UriI5-g4vlH9VoD8CmcqZG40F9JadbnoEwAfJthTQ-aMoWEJLmTt.woff +0 -0
- package/dist/client/devtools/_fonts/rP2tp2ywxg089UriI5-g4vlH9VoD8CmcqZG40F9JadbnoEwAkJxhTQ-WMBvmLOgKm.woff +0 -0
- package/dist/client/devtools/_fonts/rP2tp2ywxg089UriI5-g4vlH9VoD8CmcqZG40F9JadbnoEwAop1hTQ-utGC2hnWq2.woff +0 -0
- package/dist/client/devtools/_fonts/rP2tp2ywxg089UriI5-g4vlH9VoD8CmcqZG40F9JadbnoEwAopxhTQ-YpyTieVa5B.woff +0 -0
- package/dist/client/devtools/_nuxt/Bj9hdafK.js +1 -0
- package/dist/client/devtools/_nuxt/DM3_wAgz.js +62 -0
- package/dist/client/devtools/_nuxt/builds/latest.json +1 -0
- package/dist/client/devtools/_nuxt/builds/meta/e6b425f7-b919-4014-915b-0ea07c316790.json +1 -0
- package/dist/client/devtools/_nuxt/entry.DaJP-ZMB.css +24 -0
- package/dist/client/devtools/_nuxt/error-404.B0Nmv3fV.css +1 -0
- package/dist/client/devtools/_nuxt/error-500.C8fgTxVz.css +1 -0
- package/dist/client/devtools/_nuxt/hKiujHsR.js +1 -0
- package/dist/client/devtools/favicon.svg +1 -0
- package/dist/client/devtools/index.html +1 -0
- package/dist/devtools/runtime/DevtoolsRenderer.vue +53 -0
- package/dist/devtools/runtime/examples/AvatarGroupExample.vue +7 -0
- package/dist/devtools/runtime/examples/ButtonGroupExample.vue +8 -0
- package/dist/devtools/runtime/examples/CardExample.vue +13 -0
- package/dist/devtools/runtime/examples/CarouselExample.vue +13 -0
- package/dist/devtools/runtime/examples/ChipExample.vue +5 -0
- package/dist/devtools/runtime/examples/CollapsibleExample.vue +8 -0
- package/dist/devtools/runtime/examples/CommandPaletteExample.vue +29 -0
- package/dist/devtools/runtime/examples/ContainerExample.vue +5 -0
- package/dist/devtools/runtime/examples/ContextMenuExample.vue +5 -0
- package/dist/devtools/runtime/examples/DrawerExample.vue +8 -0
- package/dist/devtools/runtime/examples/DropdownMenuExample.vue +5 -0
- package/dist/devtools/runtime/examples/FormExample.vue +30 -0
- package/dist/devtools/runtime/examples/FormFieldExample.vue +5 -0
- package/dist/devtools/runtime/examples/LinkExample.vue +5 -0
- package/dist/devtools/runtime/examples/ModalExample.vue +8 -0
- package/dist/devtools/runtime/examples/PopoverExample.vue +8 -0
- package/dist/devtools/runtime/examples/SkeletonExample.vue +3 -0
- package/dist/devtools/runtime/examples/SlideoverExample.vue +8 -0
- package/dist/devtools/runtime/examples/ToasterExample.vue +11 -0
- package/dist/devtools/runtime/examples/TooltipExample.vue +5 -0
- package/dist/module.cjs +222 -4
- package/dist/module.d.cts +54 -0
- package/dist/module.d.mts +16 -6
- package/dist/module.d.ts +16 -6
- package/dist/module.json +1 -1
- package/dist/module.mjs +157 -2629
- package/dist/runtime/components/Accordion.vue +45 -6
- package/dist/runtime/components/Alert.vue +4 -0
- package/dist/runtime/components/App.vue +8 -0
- package/dist/runtime/components/Avatar.vue +23 -5
- package/dist/runtime/components/AvatarGroup.vue +3 -0
- package/dist/runtime/components/Badge.vue +33 -3
- package/dist/runtime/components/Breadcrumb.vue +39 -7
- package/dist/runtime/components/Button.vue +10 -3
- package/dist/runtime/components/ButtonGroup.vue +4 -1
- package/dist/runtime/components/Card.vue +3 -0
- package/dist/runtime/components/Carousel.vue +13 -8
- package/dist/runtime/components/Checkbox.vue +7 -6
- package/dist/runtime/components/Chip.vue +9 -2
- package/dist/runtime/components/Collapsible.vue +3 -0
- package/dist/runtime/components/CommandPalette.vue +28 -17
- package/dist/runtime/components/Container.vue +3 -0
- package/dist/runtime/components/ContextMenu.vue +95 -10
- package/dist/runtime/components/ContextMenuContent.vue +41 -13
- package/dist/runtime/components/Drawer.vue +3 -0
- package/dist/runtime/components/DropdownMenu.vue +83 -10
- package/dist/runtime/components/DropdownMenuContent.vue +43 -13
- package/dist/runtime/components/Form.vue +6 -1
- package/dist/runtime/components/FormField.vue +3 -0
- package/dist/runtime/components/Input.vue +7 -4
- package/dist/runtime/components/InputMenu.vue +61 -34
- package/dist/runtime/components/Kbd.vue +2 -0
- package/dist/runtime/components/Link.vue +50 -1
- package/dist/runtime/components/LinkBase.vue +4 -2
- package/dist/runtime/components/Modal.vue +3 -0
- package/dist/runtime/components/NavigationMenu.vue +159 -75
- package/dist/runtime/components/Pagination.vue +5 -1
- package/dist/runtime/components/Popover.vue +3 -0
- package/dist/runtime/components/Progress.vue +1 -1
- package/dist/runtime/components/RadioGroup.vue +26 -4
- package/dist/runtime/components/Select.vue +44 -21
- package/dist/runtime/components/SelectMenu.vue +67 -43
- package/dist/runtime/components/Separator.vue +1 -1
- package/dist/runtime/components/Skeleton.vue +3 -0
- package/dist/runtime/components/Slideover.vue +3 -0
- package/dist/runtime/components/Slider.vue +1 -1
- package/dist/runtime/components/Switch.vue +5 -1
- package/dist/runtime/components/Table.vue +241 -0
- package/dist/runtime/components/Tabs.vue +35 -8
- package/dist/runtime/components/Toast.vue +4 -0
- package/dist/runtime/components/Toaster.vue +8 -1
- package/dist/runtime/components/Tooltip.vue +3 -0
- package/dist/runtime/composables/defineShortcuts.js +1 -7
- package/dist/runtime/composables/extendDevtoolsMeta.d.ts +7 -0
- package/dist/runtime/composables/extendDevtoolsMeta.js +2 -0
- package/dist/runtime/composables/useComponentIcons.d.ts +3 -0
- package/dist/runtime/composables/useKbd.d.ts +10 -3
- package/dist/runtime/composables/useKbd.js +14 -8
- package/dist/runtime/composables/useModal.d.ts +1 -1
- package/dist/runtime/composables/useSlideover.d.ts +1 -1
- package/dist/runtime/index.css +1 -1
- package/dist/runtime/keyframes.css +1 -0
- package/dist/runtime/types/form.d.ts +2 -1
- package/dist/runtime/types/index.d.ts +1 -0
- package/dist/runtime/types/index.js +1 -0
- package/dist/runtime/types/utils.d.ts +7 -0
- package/dist/runtime/utils/form.d.ts +3 -0
- package/dist/runtime/utils/form.js +14 -0
- package/dist/runtime/utils/index.d.ts +1 -0
- package/dist/runtime/utils/index.js +3 -0
- package/dist/runtime/utils/link.d.ts +1 -1
- package/dist/runtime/vue/components/Icon.vue +15 -0
- package/dist/runtime/vue/components/Link.vue +195 -0
- package/dist/runtime/vue/plugins/color-mode.d.ts +4 -0
- package/dist/runtime/vue/plugins/color-mode.js +6 -0
- package/dist/runtime/vue/plugins/head.d.ts +4 -0
- package/dist/runtime/vue/plugins/head.js +6 -0
- package/dist/runtime/vue/stubs.d.ts +15 -0
- package/dist/runtime/vue/stubs.js +27 -0
- package/dist/shared/ui.BU7wzH0D.cjs +2872 -0
- package/dist/shared/ui.BufKhDiD.mjs +2865 -0
- package/dist/unplugin.cjs +192 -0
- package/dist/unplugin.d.cts +47 -0
- package/dist/unplugin.d.mts +47 -0
- package/dist/unplugin.d.ts +47 -0
- package/dist/unplugin.mjs +181 -0
- package/dist/vite.cjs +22 -0
- package/dist/vite.d.cts +13 -0
- package/dist/vite.d.mts +13 -0
- package/dist/vite.d.ts +13 -0
- package/dist/vite.mjs +20 -0
- package/package.json +73 -32
- package/vue-plugin.d.ts +5 -0
- package/cli/node_modules/.ignored/citty/LICENSE +0 -36
- package/cli/node_modules/.ignored/citty/README.md +0 -134
- package/cli/node_modules/.ignored/citty/dist/index.cjs +0 -475
- package/cli/node_modules/.ignored/citty/dist/index.d.cts +0 -80
- package/cli/node_modules/.ignored/citty/dist/index.d.mts +0 -80
- package/cli/node_modules/.ignored/citty/dist/index.d.ts +0 -80
- package/cli/node_modules/.ignored/citty/dist/index.mjs +0 -463
- package/cli/node_modules/.ignored/citty/package.json +0 -49
- package/cli/node_modules/.ignored/consola/LICENSE +0 -47
- package/cli/node_modules/.ignored/consola/README.md +0 -318
- package/cli/node_modules/.ignored/consola/core.d.ts +0 -1
- package/cli/node_modules/.ignored/consola/dist/basic.cjs +0 -32
- package/cli/node_modules/.ignored/consola/dist/basic.d.ts +0 -9
- package/cli/node_modules/.ignored/consola/dist/basic.mjs +0 -24
- package/cli/node_modules/.ignored/consola/dist/browser.cjs +0 -80
- package/cli/node_modules/.ignored/consola/dist/browser.d.ts +0 -7
- package/cli/node_modules/.ignored/consola/dist/browser.mjs +0 -72
- package/cli/node_modules/.ignored/consola/dist/chunks/prompt.cjs +0 -436
- package/cli/node_modules/.ignored/consola/dist/chunks/prompt.mjs +0 -429
- package/cli/node_modules/.ignored/consola/dist/core.cjs +0 -415
- package/cli/node_modules/.ignored/consola/dist/core.d.ts +0 -124
- package/cli/node_modules/.ignored/consola/dist/core.mjs +0 -410
- package/cli/node_modules/.ignored/consola/dist/index.cjs +0 -21
- package/cli/node_modules/.ignored/consola/dist/index.d.ts +0 -9
- package/cli/node_modules/.ignored/consola/dist/index.mjs +0 -8
- package/cli/node_modules/.ignored/consola/dist/shared/consola.06ad8a64.mjs +0 -62
- package/cli/node_modules/.ignored/consola/dist/shared/consola.36c0034f.mjs +0 -636
- package/cli/node_modules/.ignored/consola/dist/shared/consola.4bbae468.cjs +0 -645
- package/cli/node_modules/.ignored/consola/dist/shared/consola.deac7d5a.cjs +0 -65
- package/cli/node_modules/.ignored/consola/dist/utils.cjs +0 -308
- package/cli/node_modules/.ignored/consola/dist/utils.d.ts +0 -169
- package/cli/node_modules/.ignored/consola/dist/utils.mjs +0 -284
- package/cli/node_modules/.ignored/consola/lib/index.cjs +0 -9
- package/cli/node_modules/.ignored/consola/package.json +0 -101
- package/cli/node_modules/.ignored/consola/utils.d.ts +0 -1
- package/cli/node_modules/.ignored/pathe/LICENSE +0 -44
- package/cli/node_modules/.ignored/pathe/README.md +0 -69
- package/cli/node_modules/.ignored/pathe/dist/index.cjs +0 -23
- package/cli/node_modules/.ignored/pathe/dist/index.d.cts +0 -36
- package/cli/node_modules/.ignored/pathe/dist/index.d.mts +0 -36
- package/cli/node_modules/.ignored/pathe/dist/index.d.ts +0 -36
- package/cli/node_modules/.ignored/pathe/dist/index.mjs +0 -1
- package/cli/node_modules/.ignored/pathe/dist/shared/pathe.1f0a373c.cjs +0 -238
- package/cli/node_modules/.ignored/pathe/dist/shared/pathe.ff20891b.mjs +0 -221
- package/cli/node_modules/.ignored/pathe/dist/utils.cjs +0 -58
- package/cli/node_modules/.ignored/pathe/dist/utils.d.cts +0 -5
- package/cli/node_modules/.ignored/pathe/dist/utils.d.mts +0 -5
- package/cli/node_modules/.ignored/pathe/dist/utils.d.ts +0 -5
- package/cli/node_modules/.ignored/pathe/dist/utils.mjs +0 -54
- package/cli/node_modules/.ignored/pathe/package.json +0 -48
- package/cli/node_modules/.ignored/pathe/utils.d.ts +0 -1
- package/cli/node_modules/.ignored/scule/LICENSE +0 -21
- package/cli/node_modules/.ignored/scule/README.md +0 -149
- package/cli/node_modules/.ignored/scule/dist/index.cjs +0 -92
- package/cli/node_modules/.ignored/scule/dist/index.d.cts +0 -57
- package/cli/node_modules/.ignored/scule/dist/index.d.mts +0 -57
- package/cli/node_modules/.ignored/scule/dist/index.d.ts +0 -57
- package/cli/node_modules/.ignored/scule/dist/index.mjs +0 -80
- package/cli/node_modules/.ignored/scule/package.json +0 -43
- package/cli/node_modules/.package-lock.json +0 -33
- package/dist/runtime/types/component.d.ts +0 -17
- package/dist/runtime/types/component.js +0 -0
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nuxt/ui",
|
|
3
3
|
"description": "A UI Library for Modern Web Apps, powered by Vue & Tailwind CSS.",
|
|
4
|
-
"version": "3.0.0-alpha.
|
|
5
|
-
"packageManager": "pnpm@9.12.
|
|
4
|
+
"version": "3.0.0-alpha.8",
|
|
5
|
+
"packageManager": "pnpm@9.12.3",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
|
8
8
|
"url": "git+https://github.com/nuxt/ui.git"
|
|
@@ -17,8 +17,24 @@
|
|
|
17
17
|
"require": "./dist/module.cjs",
|
|
18
18
|
"style": "./dist/runtime/index.css"
|
|
19
19
|
},
|
|
20
|
+
"./unplugin": {
|
|
21
|
+
"types": "./dist/unplugin.d.ts",
|
|
22
|
+
"import": "./dist/unplugin.mjs",
|
|
23
|
+
"require": "./dist/unplugin.cjs"
|
|
24
|
+
},
|
|
25
|
+
"./vite": {
|
|
26
|
+
"types": "./dist/vite.d.ts",
|
|
27
|
+
"import": "./dist/vite.mjs",
|
|
28
|
+
"require": "./dist/vite.cjs"
|
|
29
|
+
},
|
|
30
|
+
"./vue-plugin": {
|
|
31
|
+
"types": "./vue-plugin.d.ts"
|
|
32
|
+
},
|
|
20
33
|
"./runtime/*": "./dist/runtime/*"
|
|
21
34
|
},
|
|
35
|
+
"imports": {
|
|
36
|
+
"#build/ui/*": "./.nuxt/ui/*.ts"
|
|
37
|
+
},
|
|
22
38
|
"bin": {
|
|
23
39
|
"nuxt-ui": "./cli/index.mjs"
|
|
24
40
|
},
|
|
@@ -26,67 +42,92 @@
|
|
|
26
42
|
"main": "./dist/module.cjs",
|
|
27
43
|
"types": "./dist/types.d.ts",
|
|
28
44
|
"files": [
|
|
45
|
+
".nuxt/ui",
|
|
29
46
|
"dist",
|
|
30
|
-
"cli"
|
|
47
|
+
"cli",
|
|
48
|
+
"vue-plugin.d.ts"
|
|
31
49
|
],
|
|
32
50
|
"scripts": {
|
|
33
|
-
"build": "nuxt-module-build build",
|
|
51
|
+
"build": "nuxt-module-build build && pnpm devtools:build",
|
|
34
52
|
"prepack": "pnpm build",
|
|
35
53
|
"dev": "DEV=true nuxi dev playground",
|
|
36
54
|
"dev:build": "nuxi build playground",
|
|
37
|
-
"dev:prepare": "nuxt-module-build build --stub && nuxt-module-build prepare && nuxi prepare playground && nuxi prepare docs",
|
|
55
|
+
"dev:prepare": "nuxt-module-build build --stub && nuxt-module-build prepare && nuxi prepare playground && nuxi prepare docs && nuxi prepare devtools && vite build playground-vue",
|
|
56
|
+
"devtools": "NUXT_UI_DEVTOOLS_LOCAL=true nuxi dev playground",
|
|
57
|
+
"devtools:build": "nuxi generate devtools",
|
|
58
|
+
"devtools:prepare": "nuxt-component-meta playground --outputDir ../src/devtools/.component-meta/",
|
|
38
59
|
"docs": "DEV=true nuxi dev docs",
|
|
39
60
|
"docs:build": "nuxi build docs",
|
|
40
61
|
"docs:prepare": "nuxt-component-meta docs",
|
|
41
62
|
"lint": "eslint .",
|
|
42
63
|
"lint:fix": "eslint . --fix",
|
|
43
|
-
"typecheck": "vue-tsc --noEmit && nuxi typecheck playground && nuxi typecheck docs",
|
|
64
|
+
"typecheck": "vue-tsc --noEmit && nuxi typecheck playground && nuxi typecheck docs && nuxi typecheck devtools && cd playground-vue && vue-tsc --noEmit",
|
|
44
65
|
"test": "vitest",
|
|
66
|
+
"test:vue": "vitest -c vitest.vue.config.ts",
|
|
45
67
|
"release": "release-it --preRelease=alpha --npm.tag=next"
|
|
46
68
|
},
|
|
47
69
|
"dependencies": {
|
|
48
|
-
"@
|
|
49
|
-
"@nuxt/
|
|
50
|
-
"@nuxt/
|
|
51
|
-
"@nuxt/
|
|
52
|
-
"@
|
|
53
|
-
"@
|
|
54
|
-
"@
|
|
55
|
-
"@
|
|
56
|
-
"@
|
|
70
|
+
"@iconify/vue": "^4.1.2",
|
|
71
|
+
"@nuxt/devtools-kit": "^1.6.0",
|
|
72
|
+
"@nuxt/fonts": "^0.10.2",
|
|
73
|
+
"@nuxt/icon": "^1.6.1",
|
|
74
|
+
"@nuxt/kit": "^3.14.159",
|
|
75
|
+
"@nuxt/schema": "^3.14.159",
|
|
76
|
+
"@nuxtjs/color-mode": "^3.5.2",
|
|
77
|
+
"@tailwindcss/postcss": "4.0.0-alpha.30",
|
|
78
|
+
"@tailwindcss/vite": "4.0.0-alpha.30",
|
|
79
|
+
"@tanstack/vue-table": "^8.20.5",
|
|
80
|
+
"@unhead/vue": "^1.11.11",
|
|
81
|
+
"@vueuse/core": "^11.2.0",
|
|
82
|
+
"@vueuse/integrations": "^11.2.0",
|
|
83
|
+
"consola": "^3.2.3",
|
|
57
84
|
"defu": "^6.1.4",
|
|
58
|
-
"embla-carousel-auto-height": "^8.3.
|
|
59
|
-
"embla-carousel-auto-scroll": "^8.3.
|
|
60
|
-
"embla-carousel-autoplay": "^8.3.
|
|
61
|
-
"embla-carousel-class-names": "^8.3.
|
|
62
|
-
"embla-carousel-fade": "^8.3.
|
|
63
|
-
"embla-carousel-vue": "^8.3.
|
|
85
|
+
"embla-carousel-auto-height": "^8.3.1",
|
|
86
|
+
"embla-carousel-auto-scroll": "^8.3.1",
|
|
87
|
+
"embla-carousel-autoplay": "^8.3.1",
|
|
88
|
+
"embla-carousel-class-names": "^8.3.1",
|
|
89
|
+
"embla-carousel-fade": "^8.3.1",
|
|
90
|
+
"embla-carousel-vue": "^8.3.1",
|
|
64
91
|
"embla-carousel-wheel-gestures": "^8.0.1",
|
|
92
|
+
"fast-deep-equal": "^3.1.3",
|
|
65
93
|
"fuse.js": "^7.0.0",
|
|
94
|
+
"get-port-please": "^3.1.2",
|
|
95
|
+
"knitwork": "^1.1.0",
|
|
96
|
+
"magic-string": "^0.30.12",
|
|
97
|
+
"mlly": "^1.7.2",
|
|
66
98
|
"ohash": "^1.1.4",
|
|
67
|
-
"
|
|
99
|
+
"pathe": "^1.1.2",
|
|
100
|
+
"radix-vue": "^1.9.8",
|
|
68
101
|
"scule": "^1.3.0",
|
|
102
|
+
"sirv": "^3.0.0",
|
|
69
103
|
"tailwind-variants": "^0.2.1",
|
|
70
|
-
"tailwindcss": "4.0.0-alpha.
|
|
104
|
+
"tailwindcss": "4.0.0-alpha.30",
|
|
105
|
+
"tinyglobby": "^0.2.10",
|
|
106
|
+
"unplugin": "^1.15.0",
|
|
107
|
+
"unplugin-auto-import": "^0.18.3",
|
|
108
|
+
"unplugin-vue-components": "^0.27.4",
|
|
71
109
|
"vaul-vue": "^0.2.0"
|
|
72
110
|
},
|
|
73
111
|
"devDependencies": {
|
|
74
|
-
"@nuxt/eslint-config": "^0.
|
|
112
|
+
"@nuxt/eslint-config": "^0.6.1",
|
|
75
113
|
"@nuxt/module-builder": "^0.8.4",
|
|
76
|
-
"@nuxt/test-utils": "^3.14.
|
|
77
|
-
"@release-it/conventional-changelog": "^
|
|
114
|
+
"@nuxt/test-utils": "^3.14.4",
|
|
115
|
+
"@release-it/conventional-changelog": "^9.0.2",
|
|
78
116
|
"@standard-schema/spec": "1.0.0-beta.1",
|
|
79
117
|
"@vue/test-utils": "^2.4.6",
|
|
80
|
-
"embla-carousel": "^8.3.
|
|
81
|
-
"eslint": "^9.
|
|
118
|
+
"embla-carousel": "^8.3.1",
|
|
119
|
+
"eslint": "^9.14.0",
|
|
82
120
|
"happy-dom": "^15.7.4",
|
|
83
121
|
"joi": "^17.13.3",
|
|
84
|
-
"
|
|
85
|
-
"
|
|
122
|
+
"knitwork": "^1.1.0",
|
|
123
|
+
"nuxt": "^3.14.159",
|
|
124
|
+
"nuxt-component-meta": "^0.9.0",
|
|
125
|
+
"release-it": "^17.10.0",
|
|
126
|
+
"superstruct": "^2.0.2",
|
|
86
127
|
"valibot": "^0.42.1",
|
|
87
|
-
"vitest": "^2.1.
|
|
128
|
+
"vitest": "^2.1.4",
|
|
88
129
|
"vitest-environment-nuxt": "^1.0.1",
|
|
89
|
-
"vue-tsc": "^2.1.
|
|
130
|
+
"vue-tsc": "^2.1.10",
|
|
90
131
|
"yup": "^1.4.0",
|
|
91
132
|
"zod": "^3.23.8"
|
|
92
133
|
},
|
package/vue-plugin.d.ts
ADDED
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
MIT License
|
|
2
|
-
|
|
3
|
-
Copyright (c) Pooya Parsa <pooya@pi0.io>
|
|
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.
|
|
22
|
-
|
|
23
|
-
---
|
|
24
|
-
|
|
25
|
-
Parser is based on https://github.com/lukeed/mri
|
|
26
|
-
|
|
27
|
-
The MIT License (MIT)
|
|
28
|
-
|
|
29
|
-
Copyright (c) Luke Edwards luke.edwards05@gmail.com (lukeed.com)
|
|
30
|
-
|
|
31
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
|
32
|
-
|
|
33
|
-
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
|
34
|
-
|
|
35
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
36
|
-
|
|
@@ -1,134 +0,0 @@
|
|
|
1
|
-
# 🌆 citty
|
|
2
|
-
|
|
3
|
-
[![npm version][npm-version-src]][npm-version-href]
|
|
4
|
-
[![npm downloads][npm-downloads-src]][npm-downloads-href]
|
|
5
|
-
[![bundle][bundle-src]][bundle-href]
|
|
6
|
-
[![Codecov][codecov-src]][codecov-href]
|
|
7
|
-
[![License][license-src]][license-href]
|
|
8
|
-
|
|
9
|
-
> Elegant CLI Builder
|
|
10
|
-
|
|
11
|
-
- Fast and lightweight argument parser based on [mri](https://github.com/lukeed/mri)
|
|
12
|
-
- Smart value parsing with typecast, boolean shortcuts and unknown flag handling
|
|
13
|
-
- Nested sub-commands
|
|
14
|
-
- Lazy and Async commands
|
|
15
|
-
- Plugable and composable API
|
|
16
|
-
- Auto generated usage and help
|
|
17
|
-
|
|
18
|
-
🚧 This project is under heavy development. More features are coming soon!
|
|
19
|
-
|
|
20
|
-
## Usage
|
|
21
|
-
|
|
22
|
-
Install package:
|
|
23
|
-
|
|
24
|
-
```sh
|
|
25
|
-
# npm
|
|
26
|
-
npm install citty
|
|
27
|
-
|
|
28
|
-
# yarn
|
|
29
|
-
yarn add citty
|
|
30
|
-
|
|
31
|
-
# pnpm
|
|
32
|
-
pnpm install citty
|
|
33
|
-
```
|
|
34
|
-
|
|
35
|
-
Import:
|
|
36
|
-
|
|
37
|
-
```js
|
|
38
|
-
// ESM
|
|
39
|
-
import { defineCommand, runMain } from "citty";
|
|
40
|
-
|
|
41
|
-
// CommonJS
|
|
42
|
-
const { defineCommand, runMain } = require("citty");
|
|
43
|
-
```
|
|
44
|
-
|
|
45
|
-
Define main command to run:
|
|
46
|
-
|
|
47
|
-
```ts
|
|
48
|
-
import { defineCommand, runMain } from "citty";
|
|
49
|
-
|
|
50
|
-
const main = defineCommand({
|
|
51
|
-
meta: {
|
|
52
|
-
name: "hello",
|
|
53
|
-
version: "1.0.0",
|
|
54
|
-
description: "My Awesome CLI App",
|
|
55
|
-
},
|
|
56
|
-
args: {
|
|
57
|
-
name: {
|
|
58
|
-
type: "positional",
|
|
59
|
-
description: "Your name",
|
|
60
|
-
required: true,
|
|
61
|
-
},
|
|
62
|
-
friendly: {
|
|
63
|
-
type: "boolean",
|
|
64
|
-
description: "Use friendly greeting",
|
|
65
|
-
},
|
|
66
|
-
},
|
|
67
|
-
run({ args }) {
|
|
68
|
-
console.log(`${args.friendly ? "Hi" : "Greetings"} ${args.name}!`);
|
|
69
|
-
},
|
|
70
|
-
});
|
|
71
|
-
|
|
72
|
-
runMain(main);
|
|
73
|
-
```
|
|
74
|
-
|
|
75
|
-
## Utils
|
|
76
|
-
|
|
77
|
-
### `defineCommand`
|
|
78
|
-
|
|
79
|
-
`defineCommand` is a type helper for defining commands.
|
|
80
|
-
|
|
81
|
-
### `runMain`
|
|
82
|
-
|
|
83
|
-
Runs a command with usage support and graceful error handling.
|
|
84
|
-
|
|
85
|
-
### `createMain`
|
|
86
|
-
|
|
87
|
-
Create a wrapper around command that calls `runMain` when called.
|
|
88
|
-
|
|
89
|
-
### `runCommand`
|
|
90
|
-
|
|
91
|
-
Parses input args and runs command and sub-commands (unsupervised). You can access `result` key from returnd/awaited value to access command's result.
|
|
92
|
-
|
|
93
|
-
### `parseArgs`
|
|
94
|
-
|
|
95
|
-
Parses input arguments and applies defaults.
|
|
96
|
-
|
|
97
|
-
### `renderUsage`
|
|
98
|
-
|
|
99
|
-
Renders command usage to a string value.
|
|
100
|
-
|
|
101
|
-
### `showUsage`
|
|
102
|
-
|
|
103
|
-
Renders usage and prints to the console
|
|
104
|
-
|
|
105
|
-
## Development
|
|
106
|
-
|
|
107
|
-
- Clone this repository
|
|
108
|
-
- Install latest LTS version of [Node.js](https://nodejs.org/en/)
|
|
109
|
-
- Enable [Corepack](https://github.com/nodejs/corepack) using `corepack enable`
|
|
110
|
-
- Install dependencies using `pnpm install`
|
|
111
|
-
- Run interactive tests using `pnpm dev`
|
|
112
|
-
|
|
113
|
-
## License
|
|
114
|
-
|
|
115
|
-
Made with 💛 Published under [MIT License](./LICENSE).
|
|
116
|
-
|
|
117
|
-
Argument parser is based on [lukeed/mri](https://github.com/lukeed/mri) by Luke Edwards ([@lukeed](https://github.com/lukeed)).
|
|
118
|
-
|
|
119
|
-
<!-- Badges -->
|
|
120
|
-
|
|
121
|
-
<!-- Badges -->
|
|
122
|
-
|
|
123
|
-
[npm-version-src]: https://img.shields.io/npm/v/citty?style=flat&colorA=18181B&colorB=F0DB4F
|
|
124
|
-
[npm-version-href]: https://npmjs.com/package/citty
|
|
125
|
-
[npm-downloads-src]: https://img.shields.io/npm/dm/citty?style=flat&colorA=18181B&colorB=F0DB4F
|
|
126
|
-
[npm-downloads-href]: https://npmjs.com/package/citty
|
|
127
|
-
[codecov-src]: https://img.shields.io/codecov/c/gh/unjs/citty/main?style=flat&colorA=18181B&colorB=F0DB4F
|
|
128
|
-
[codecov-href]: https://codecov.io/gh/unjs/citty
|
|
129
|
-
[bundle-src]: https://img.shields.io/bundlephobia/minzip/citty?style=flat&colorA=18181B&colorB=F0DB4F
|
|
130
|
-
[bundle-href]: https://bundlephobia.com/result?p=citty
|
|
131
|
-
[license-src]: https://img.shields.io/github/license/unjs/citty.svg?style=flat&colorA=18181B&colorB=F0DB4F
|
|
132
|
-
[license-href]: https://github.com/unjs/citty/blob/main/LICENSE
|
|
133
|
-
[jsdocs-src]: https://img.shields.io/badge/jsDocs.io-reference-18181B?style=flat&colorA=18181B&colorB=F0DB4F
|
|
134
|
-
[jsdocs-href]: https://www.jsdocs.io/package/citty
|