feat: add typed WRN declarations
This commit is contained in:
@@ -1,16 +1,16 @@
|
||||
component DateInput {
|
||||
props {
|
||||
id = ""
|
||||
name = ""
|
||||
label = "Date"
|
||||
value = ""
|
||||
placeholder = ""
|
||||
help = ""
|
||||
error = ""
|
||||
required = false
|
||||
disabled = false
|
||||
readonly = false
|
||||
autocomplete = ""
|
||||
id: string = ""
|
||||
name: string = ""
|
||||
label: string = "Date"
|
||||
value: string = ""
|
||||
placeholder: string = ""
|
||||
help: string = ""
|
||||
error: string = ""
|
||||
required: boolean = false
|
||||
disabled: boolean = false
|
||||
readonly: boolean = false
|
||||
autocomplete: string = ""
|
||||
}
|
||||
view {
|
||||
<div class="space-y-2">
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
component DatePicker {
|
||||
props {
|
||||
id = "date"
|
||||
name = "date"
|
||||
label = "Date"
|
||||
value = ""
|
||||
min = ""
|
||||
max = ""
|
||||
required = false
|
||||
id: string = "date"
|
||||
name: string = "date"
|
||||
label: string = "Date"
|
||||
value: string = ""
|
||||
min: string = ""
|
||||
max: string = ""
|
||||
required: boolean = false
|
||||
}
|
||||
view {
|
||||
<DateInput id="{id}" name="{name}" label="{label}" value="{value}" required="{required}" />
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@wrnexus/ui",
|
||||
"version": "0.2.58",
|
||||
"version": "0.2.59",
|
||||
"type": "module",
|
||||
"description": "@wrnexus/ui — part of the WrNexus framework.",
|
||||
"license": "MIT",
|
||||
@@ -25,7 +25,7 @@
|
||||
"./ui.css": "./ui.css"
|
||||
},
|
||||
"dependencies": {
|
||||
"@wrnexus/core": "^0.2.58"
|
||||
"@wrnexus/core": "^0.2.59"
|
||||
},
|
||||
"files": [
|
||||
"dist",
|
||||
|
||||
Reference in New Issue
Block a user