Skip to content

Commit

Permalink
feat: support nuxtUi
Browse files Browse the repository at this point in the history
  • Loading branch information
Simon-He95 committed Oct 25, 2023
1 parent b6cf7d9 commit 042f756
Show file tree
Hide file tree
Showing 20 changed files with 96 additions and 85 deletions.
16 changes: 8 additions & 8 deletions src/ui/nuxtUi/nuxtUi2/UAvatar.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@
"value": ""
},
"size": {
"type": [
"type": "string",
"default": "config.default.size",
"value": [
"sm",
"3xs",
"2xs",
Expand All @@ -19,9 +21,7 @@
"xl",
"2xl",
"3xl"
],
"default": "config.default.size",
"value": ""
]
},
"icon": {
"type": "string",
Expand All @@ -44,14 +44,14 @@
"value": ""
},
"chipPosition": {
"type": [
"type": "string",
"default": "config.default.chipPosition",
"value": [
"top-right",
"bottom-right",
"top-left",
"bottom-left"
],
"default": "config.default.chipPosition",
"value": ""
]
},
"chipText": {
"type": "string | number",
Expand Down
8 changes: 4 additions & 4 deletions src/ui/nuxtUi/nuxtUi2/UBadge.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,14 @@
"events": [],
"props": {
"size": {
"type": [
"type": "string",
"default": "config.default.size",
"value": [
"sm",
"xs",
"md",
"lg"
],
"default": "config.default.size",
"value": ""
]
},
"ui": {
"type": "any",
Expand Down
8 changes: 4 additions & 4 deletions src/ui/nuxtUi/nuxtUi2/UButton.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,16 @@
"events": [],
"props": {
"size": {
"type": [
"type": "string",
"default": "config.default.size",
"value": [
"sm",
"2xs",
"xs",
"md",
"lg",
"xl"
],
"default": "config.default.size",
"value": ""
]
},
"ui": {
"type": "any",
Expand Down
8 changes: 4 additions & 4 deletions src/ui/nuxtUi/nuxtUi2/UDropdown.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,12 @@
"value": ""
},
"mode": {
"type": [
"type": "string",
"default": "\"click\"",
"value": [
"click",
"hover"
],
"default": "\"click\"",
"value": ""
]
},
"popper": {
"type": "{}",
Expand Down
9 changes: 2 additions & 7 deletions src/ui/nuxtUi/nuxtUi2/UForm.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,7 @@
"required": true
},
"schema": {
"type": [
"ZodType<any, ZodTypeDef, any>",
"ObjectSchema<any, AnyObject, any, >",
"AnySchema<any>",
"ObjectSchemaAsync<any>"
],
"type": "ZodType<any, ZodTypeDef, any> | ObjectSchema<any, AnyObject, any> | AnySchema<any> | ObjectSchemaAsync<any>",
"default": "undefined",
"value": ""
},
Expand All @@ -27,7 +22,7 @@
"validateOn": {
"type": "FormEventType[]",
"default": "[\"blur\", \"input\", \"change\", \"submit\"]",
"value": ""
"value": ["blur", "input", "change", "submit"]
}
},
"link": "https://ui.nuxt.com/elements/form"
Expand Down
8 changes: 4 additions & 4 deletions src/ui/nuxtUi/nuxtUi2/UFormGroup.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,16 @@
"value": ""
},
"size": {
"type": [
"type": "string",
"default": "null",
"value": [
"sm",
"2xs",
"xs",
"md",
"lg",
"xl"
],
"default": "null",
"value": ""
]
},
"ui": {
"type": "any",
Expand Down
16 changes: 8 additions & 8 deletions src/ui/nuxtUi/nuxtUi2/UInput.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,16 @@
"value": ""
},
"size": {
"type": [
"type": "string",
"default": "null",
"value": [
"sm",
"2xs",
"xs",
"md",
"lg",
"xl"
],
"default": "null",
"value": ""
]
},
"ui": {
"type": "any",
Expand Down Expand Up @@ -61,12 +61,12 @@
"value": ""
},
"variant": {
"type": [
"type": "string",
"default": "config.default.variant",
"value": [
"outline",
"none"
],
"default": "config.default.variant",
"value": ""
]
},
"autofocusDelay": {
"type": "number",
Expand Down
8 changes: 4 additions & 4 deletions src/ui/nuxtUi/nuxtUi2/UKbd.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@
"value": ""
},
"size": {
"type": [
"type": "string",
"default": "config.default.size",
"value": [
"sm",
"xs",
"md"
],
"default": "config.default.size",
"value": ""
]
},
"ui": {
"type": "any",
Expand Down
8 changes: 4 additions & 4 deletions src/ui/nuxtUi/nuxtUi2/UPagination.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,16 +16,16 @@
"required": true
},
"size": {
"type": [
"type": "string",
"default": "config.default.size",
"value": [
"sm",
"2xs",
"xs",
"md",
"lg",
"xl"
],
"default": "config.default.size",
"value": ""
]
},
"ui": {
"type": "any",
Expand Down
8 changes: 4 additions & 4 deletions src/ui/nuxtUi/nuxtUi2/UPopover.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,12 @@
"value": ""
},
"mode": {
"type": [
"type": "string",
"default": "\"click\"",
"value": [
"click",
"hover"
],
"default": "\"click\"",
"value": ""
]
},
"popper": {
"type": "{}",
Expand Down
8 changes: 4 additions & 4 deletions src/ui/nuxtUi/nuxtUi2/URange.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@
"value": ""
},
"size": {
"type": [
"type": "string",
"default": "null",
"value": [
"sm",
"md",
"lg"
],
"default": "null",
"value": ""
]
},
"ui": {
"type": "any",
Expand Down
16 changes: 8 additions & 8 deletions src/ui/nuxtUi/nuxtUi2/USelect.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,16 @@
"value": ""
},
"size": {
"type": [
"type": "string",
"default": "null",
"value": [
"sm",
"2xs",
"xs",
"md",
"lg",
"xl"
],
"default": "null",
"value": ""
]
},
"ui": {
"type": "any",
Expand Down Expand Up @@ -56,12 +56,12 @@
"value": ""
},
"variant": {
"type": [
"type": "string",
"default": "config.default.variant",
"value": [
"outline",
"none"
],
"default": "config.default.variant",
"value": ""
]
},
"loadingIcon": {
"type": "string",
Expand Down
8 changes: 4 additions & 4 deletions src/ui/nuxtUi/nuxtUi2/USelectMenu.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,16 @@
"value": ""
},
"size": {
"type": [
"type": "string",
"default": "null",
"value": [
"sm",
"2xs",
"xs",
"md",
"lg",
"xl"
],
"default": "null",
"value": ""
]
},
"ui": {
"type": "any",
Expand Down
13 changes: 13 additions & 0 deletions src/ui/nuxtUi/nuxtUi2/USkeleton.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"name": "USkeleton",
"methods": [],
"events": [],
"props": {
"ui": {
"type": "any",
"default": "undefined",
"value": ""
}
},
"link": "https://ui.nuxt.com/forms/skeleton"
}
8 changes: 4 additions & 4 deletions src/ui/nuxtUi/nuxtUi2/USlideover.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,12 @@
"value": ""
},
"side": {
"type": [
"type": "string",
"default": "\"right\"",
"value": [
"left",
"right"
],
"default": "\"right\"",
"value": ""
]
},
"transition": {
"type": "boolean",
Expand Down
5 changes: 1 addition & 4 deletions src/ui/nuxtUi/nuxtUi2/UTable.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,7 @@
"events": [],
"props": {
"sort": {
"type": [
"{ column: string; direction: asc",
"desc; }"
],
"type": "{ column: string; direction: \"asc\" | \"desc\"; }",
"default": "{}",
"value": ""
},
Expand Down
8 changes: 4 additions & 4 deletions src/ui/nuxtUi/nuxtUi2/UTabs.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@
"events": [],
"props": {
"orientation": {
"type": [
"type": "string",
"default": "\"horizontal\"",
"value": [
"horizontal",
"vertical"
],
"default": "\"horizontal\"",
"value": ""
]
},
"ui": {
"type": "any",
Expand Down
8 changes: 4 additions & 4 deletions src/ui/nuxtUi/nuxtUi2/UTextarea.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,16 @@
"value": ""
},
"size": {
"type": [
"type": "string",
"default": "null",
"value": [
"sm",
"2xs",
"xs",
"md",
"lg",
"xl"
],
"default": "null",
"value": ""
]
},
"ui": {
"type": "any",
Expand Down
Loading

0 comments on commit 042f756

Please sign in to comment.