@skeletonlabs/skeleton 2.4.0-dev.504f3920 → 2.4.0-dev.6807996
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -30,12 +30,9 @@ $:
|
|
|
30
30
|
function onKeyDown(event) {
|
|
31
31
|
if (["Enter", "Space"].includes(event.code)) {
|
|
32
32
|
event.preventDefault();
|
|
33
|
-
|
|
33
|
+
elemInput.click();
|
|
34
34
|
}
|
|
35
35
|
}
|
|
36
|
-
function selectElemInput() {
|
|
37
|
-
elemInput.click();
|
|
38
|
-
}
|
|
39
36
|
function prunedRestProps() {
|
|
40
37
|
delete $$restProps.class;
|
|
41
38
|
return $$restProps;
|
|
@@ -44,9 +41,7 @@ function prunedRestProps() {
|
|
|
44
41
|
|
|
45
42
|
<label class="app-rail-tile {classesBase}" data-testid="app-rail-tile" {title} on:mouseover on:mouseleave on:focus on:blur>
|
|
46
43
|
<!-- A11y attributes are not allowed on <label> -->
|
|
47
|
-
|
|
48
|
-
<!-- svelte-ignore a11y-no-static-element-interactions -->
|
|
49
|
-
<button class="app-rail-wrapper {classesWrapper}" tabindex="0" on:click={selectElemInput} on:keydown={onKeyDown} on:keyup on:keypress>
|
|
44
|
+
<button class="app-rail-wrapper {classesWrapper}" tabindex="0" on:keydown={onKeyDown} on:keyup on:keypress>
|
|
50
45
|
<!-- NOTE: Don't use `hidden` as it prevents `required` from operating -->
|
|
51
46
|
<div class="h-0 w-0 overflow-hidden">
|
|
52
47
|
<input bind:this={elemInput} type="radio" bind:group {name} {value} {...prunedRestProps()} tabindex="-1" on:click on:change />
|
|
@@ -60,9 +60,10 @@ $:
|
|
|
60
60
|
>
|
|
61
61
|
{#each row as cell, cellIndex}
|
|
62
62
|
<!-- Cell -->
|
|
63
|
+
<!-- prettier-ignore -->
|
|
63
64
|
<td
|
|
64
65
|
class="{regionCell}"
|
|
65
|
-
role="gridcell"
|
|
66
|
+
role={interactive ? "gridcell" : "cell"}
|
|
66
67
|
aria-colindex={cellIndex + 1}
|
|
67
68
|
tabindex={cellIndex === 0 && interactive ? 0 : -1}
|
|
68
69
|
>
|
|
@@ -6,7 +6,6 @@ import { focusTrap } from "../../actions/FocusTrap/focusTrap.js";
|
|
|
6
6
|
import { getDrawerStore } from "./stores.js";
|
|
7
7
|
import { fade, fly } from "svelte/transition";
|
|
8
8
|
import { dynamicTransition } from "../../internal/transitions.js";
|
|
9
|
-
import { cubicIn } from "svelte/easing";
|
|
10
9
|
export let position = "left";
|
|
11
10
|
export let bgDrawer = "bg-surface-100-800-token";
|
|
12
11
|
export let border = "";
|
|
@@ -171,7 +170,7 @@ $:
|
|
|
171
170
|
}}
|
|
172
171
|
out:dynamicTransition|local={{
|
|
173
172
|
transition: fly,
|
|
174
|
-
params: { x: anim.x, y: anim.y, duration, opacity: opacityTransition ? undefined : 1
|
|
173
|
+
params: { x: anim.x, y: anim.y, duration, opacity: opacityTransition ? undefined : 1 },
|
|
175
174
|
enabled: transitions
|
|
176
175
|
}}
|
|
177
176
|
>
|