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",
|
||||
"private": true,
|
||||
"type": "module",
|
||||
"main": "src/index.ts",
|
||||
|
||||
Reference in New Issue
Block a user