[ui] DomiUi: @domi/ui v1.5.0: Move the chair is Button too (bind:element), so every button is the shared one
This commit is contained in:
@@ -35,6 +35,8 @@
|
||||
force?: string;
|
||||
class?: string;
|
||||
children?: Snippet;
|
||||
/** The <button> element, for focusing it from outside (bind:element), e.g. to return focus after a dialog. */
|
||||
element?: HTMLButtonElement | null;
|
||||
}
|
||||
|
||||
let {
|
||||
@@ -59,6 +61,7 @@
|
||||
// Taken out of rest, so the button can run them before its own (a spread before the attribute would lose them).
|
||||
onkeydown: passedKeydown,
|
||||
onblur: passedBlur,
|
||||
element = $bindable(null),
|
||||
...rest
|
||||
}: Props = $props();
|
||||
|
||||
@@ -117,6 +120,7 @@
|
||||
</script>
|
||||
|
||||
<button
|
||||
bind:this={element}
|
||||
{...rest}
|
||||
{type}
|
||||
{disabled}
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
/* eslint-disable */
|
||||
export const tokens = {
|
||||
"name": "@domi/ui",
|
||||
"version": "1.4.0",
|
||||
"version": "1.5.0",
|
||||
"note": "GENERATED by tools/build-tokens.mjs. Colours are sRGB hex. Use roles, never the hex in a component.",
|
||||
"themes": {
|
||||
"dark": {
|
||||
|
||||
Reference in New Issue
Block a user