build docs and normalize order of blur and focus

This commit is contained in:
Nick Wing 2024-03-15 09:24:58 -05:00
commit bd0444ce52
4 changed files with 5 additions and 2 deletions

View file

@ -488,6 +488,7 @@ None.
| mouseleave | forwarded | -- | | mouseleave | forwarded | -- |
| change | forwarded | -- | | change | forwarded | -- |
| blur | forwarded | -- | | blur | forwarded | -- |
| focus | forwarded | -- |
## `CheckboxSkeleton` ## `CheckboxSkeleton`

View file

@ -926,7 +926,8 @@
"element": "CheckboxSkeleton" "element": "CheckboxSkeleton"
}, },
{ "type": "forwarded", "name": "change", "element": "input" }, { "type": "forwarded", "name": "change", "element": "input" },
{ "type": "forwarded", "name": "blur", "element": "input" } { "type": "forwarded", "name": "blur", "element": "input" },
{ "type": "forwarded", "name": "focus", "element": "input" }
], ],
"typedefs": [], "typedefs": [],
"rest_props": { "type": "Element", "name": "div" } "rest_props": { "type": "Element", "name": "div" }

View file

@ -29,8 +29,8 @@
{...$$restProps} {...$$restProps}
aria-checked="{indeterminate ? undefined : checked}" aria-checked="{indeterminate ? undefined : checked}"
on:change on:change
on:focus
on:blur on:blur
on:focus
/> />
<label <label
for="{id}" for="{id}"

View file

@ -101,6 +101,7 @@ export default class Checkbox extends SvelteComponentTyped<
mouseleave: WindowEventMap["mouseleave"]; mouseleave: WindowEventMap["mouseleave"];
change: WindowEventMap["change"]; change: WindowEventMap["change"];
blur: WindowEventMap["blur"]; blur: WindowEventMap["blur"];
focus: WindowEventMap["focus"];
}, },
{ labelText: {} } { labelText: {} }
> {} > {}