Skip to content

Commit 52028c2

Browse files
committed
feat: support null value for all form components
1 parent a94cbc3 commit 52028c2

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

47 files changed

+141
-112
lines changed

docs/content/meta/AccordionRoot.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
{
2525
'name': 'defaultValue',
2626
'description': '<p>The default active value of the item(s).</p>\n<p>Use when you do not need to control the state of the item(s).</p>\n',
27-
'type': 'AcceptableValue | AcceptableValue[]',
27+
'type': 'string | string[]',
2828
'required': false
2929
},
3030
{
@@ -43,7 +43,7 @@
4343
{
4444
'name': 'modelValue',
4545
'description': '<p>The controlled value of the active item(s).</p>\n<p>Use this when you need to control the state of the items. Can be binded with <code>v-model</code></p>\n',
46-
'type': 'AcceptableValue | AcceptableValue[]',
46+
'type': 'string | string[]',
4747
'required': false
4848
},
4949
{
@@ -55,7 +55,7 @@
5555
},
5656
{
5757
'name': 'type',
58-
'description': '<p>Determines whether a &quot;single&quot; or &quot;multiple&quot; items can be pressed at a time.</p>\n<p>This prop will be ignored if any of <code>v-model</code> or <code>defaultValue</code> is defined, as the type will be inferred from the value.</p>\n',
58+
'description': '<p>Determines whether a &quot;single&quot; or &quot;multiple&quot; items can be selected at a time.</p>\n<p>This prop will overwrite the inferred type from <code>modelValue</code> and <code>defaultValue</code>.</p>\n',
5959
'type': '\'single\' | \'multiple\'',
6060
'required': false
6161
},

docs/content/meta/CalendarRoot.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,5 +30,10 @@
3030
'name': 'fixedWeeks',
3131
'description': '<p>Whether or not to always display 6 weeks in the calendar</p>\n',
3232
'type': 'boolean'
33+
},
34+
{
35+
'name': 'modelValue',
36+
'description': '<p>The current date of the calendar</p>\n',
37+
'type': 'CalendarDate | CalendarDateTime | ZonedDateTime'
3338
}
3439
]" />

docs/content/meta/CheckboxRoot.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
{
3636
'name': 'modelValue',
3737
'description': '<p>The controlled value of the checkbox. Can be binded with v-model.</p>\n',
38-
'type': 'boolean | \'indeterminate\'',
38+
'type': 'boolean | \'indeterminate\' | null',
3939
'required': false
4040
},
4141
{

docs/content/meta/ComboboxVirtualizer.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,12 +31,12 @@
3131
{
3232
'name': 'option',
3333
'description': '',
34-
'type': 'string | number | Record<string, any>'
34+
'type': 'null | string | number | Record<string, any>'
3535
},
3636
{
3737
'name': 'virtualizer',
3838
'description': '',
39-
'type': 'Virtualizer<Element | Window, Element>'
39+
'type': 'Virtualizer<HTMLElement, Element>'
4040
},
4141
{
4242
'name': 'virtualItem',

docs/content/meta/DateFieldRoot.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@
9090
{
9191
'name': 'modelValue',
9292
'description': '<p>The controlled checked state of the calendar. Can be bound as <code>v-model</code>.</p>\n',
93-
'type': 'DateValue',
93+
'type': 'DateValue | null',
9494
'required': false
9595
},
9696
{

docs/content/meta/DatePickerRoot.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@
118118
{
119119
'name': 'modelValue',
120120
'description': '<p>The controlled checked state of the calendar. Can be bound as <code>v-model</code>.</p>\n',
121-
'type': 'DateValue',
121+
'type': 'DateValue | null',
122122
'required': false
123123
},
124124
{

docs/content/meta/DateRangeFieldRoot.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@
9090
{
9191
'name': 'modelValue',
9292
'description': '<p>The controlled checked state of the calendar. Can be bound as <code>v-model</code>.</p>\n',
93-
'type': 'DateRange',
93+
'type': 'DateRange | null',
9494
'required': false
9595
},
9696
{
@@ -137,7 +137,7 @@
137137
{
138138
'name': 'modelValue',
139139
'description': '',
140-
'type': 'DateRange'
140+
'type': 'DateRange | null'
141141
},
142142
{
143143
'name': 'segments',

docs/content/meta/DateRangePickerField.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,6 @@
99
{
1010
'name': 'modelValue',
1111
'description': '',
12-
'type': 'DateRange'
12+
'type': 'DateRange | null'
1313
}
1414
]" />

docs/content/meta/DateRangePickerRoot.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@
126126
{
127127
'name': 'modelValue',
128128
'description': '<p>The controlled checked state of the calendar. Can be bound as <code>v-model</code>.</p>\n',
129-
'type': 'DateRange',
129+
'type': 'DateRange | null',
130130
'required': false
131131
},
132132
{

docs/content/meta/EditableRoot.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@
6262
{
6363
'name': 'modelValue',
6464
'description': '<p>The value of the editable field</p>\n',
65-
'type': 'string',
65+
'type': 'string | null',
6666
'required': false
6767
},
6868
{
@@ -117,7 +117,7 @@
117117
{
118118
'name': 'submit',
119119
'description': '<p>Event handler called when a value is submitted</p>\n',
120-
'type': '[value: string]'
120+
'type': '[value: string | null]'
121121
},
122122
{
123123
'name': 'update:modelValue',
@@ -140,7 +140,7 @@
140140
{
141141
'name': 'modelValue',
142142
'description': '<p>The value of the editable field</p>\n',
143-
'type': 'string | undefined'
143+
'type': 'string | null | undefined'
144144
},
145145
{
146146
'name': 'isEmpty',

0 commit comments

Comments
 (0)