@skeletonlabs/skeleton 2.4.0-dev.504f3920 → 2.4.0-dev.54c5fba0
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.
- package/dist/components/AppRail/AppRailTile.svelte +2 -7
- package/dist/components/Autocomplete/Autocomplete.svelte +1 -2
- package/dist/components/Autocomplete/Autocomplete.svelte.d.ts +0 -2
- package/dist/components/Table/Table.svelte +4 -3
- package/dist/utilities/Drawer/Drawer.svelte +1 -2
- package/package.json +1 -1
|
@@ -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 />
|
|
@@ -20,7 +20,6 @@ export let regionList = "list-nav";
|
|
|
20
20
|
export let regionItem = "";
|
|
21
21
|
export let regionButton = "w-full";
|
|
22
22
|
export let regionEmpty = "text-center";
|
|
23
|
-
export let filter = filterOptions;
|
|
24
23
|
export let transitions = !$prefersReducedMotionStore;
|
|
25
24
|
export let transitionIn = slide;
|
|
26
25
|
export let transitionInParams = { duration: 200 };
|
|
@@ -57,7 +56,7 @@ function onSelection(option) {
|
|
|
57
56
|
$:
|
|
58
57
|
filterByAllowDeny(allowlist, denylist);
|
|
59
58
|
$:
|
|
60
|
-
optionsFiltered = input ?
|
|
59
|
+
optionsFiltered = input ? filterOptions() : listedOptions;
|
|
61
60
|
$:
|
|
62
61
|
sliceLimit = limit ?? optionsFiltered.length;
|
|
63
62
|
$:
|
|
@@ -28,8 +28,6 @@ declare class __sveltets_Render<Value = unknown, Meta = unknown, TransitionIn ex
|
|
|
28
28
|
regionButton?: string | undefined;
|
|
29
29
|
/** Provide arbitrary classes to empty message.*/
|
|
30
30
|
regionEmpty?: string | undefined;
|
|
31
|
-
/** Provide a custom filter function.*/
|
|
32
|
-
filter?: (() => AutocompleteOption<Value, Meta>[]) | undefined;
|
|
33
31
|
/** Enable/Disable transitions*/
|
|
34
32
|
transitions?: boolean | undefined;
|
|
35
33
|
/** Provide the transition used on entry.*/
|
|
@@ -36,7 +36,7 @@ $:
|
|
|
36
36
|
<table
|
|
37
37
|
class="{classesTable}"
|
|
38
38
|
class:table-interactive={interactive}
|
|
39
|
-
role=
|
|
39
|
+
role="grid"
|
|
40
40
|
use:tableA11y
|
|
41
41
|
>
|
|
42
42
|
<!-- on:keydown={(e) => onTableKeydown(elemTable, e)} -->
|
|
@@ -44,7 +44,7 @@ $:
|
|
|
44
44
|
<thead class="table-head {regionHead}">
|
|
45
45
|
<tr>
|
|
46
46
|
{#each source.head as heading }
|
|
47
|
-
<th class="{regionHeadCell}"
|
|
47
|
+
<th class="{regionHeadCell}">{@html heading}</th>
|
|
48
48
|
{/each}
|
|
49
49
|
</tr>
|
|
50
50
|
</thead>
|
|
@@ -60,11 +60,12 @@ $:
|
|
|
60
60
|
>
|
|
61
61
|
{#each row as cell, cellIndex}
|
|
62
62
|
<!-- Cell -->
|
|
63
|
+
<!-- prettier-ignore -->
|
|
63
64
|
<td
|
|
64
65
|
class="{regionCell}"
|
|
65
66
|
role="gridcell"
|
|
66
67
|
aria-colindex={cellIndex + 1}
|
|
67
|
-
tabindex={cellIndex === 0
|
|
68
|
+
tabindex={cellIndex === 0 ? 0 : -1}
|
|
68
69
|
>
|
|
69
70
|
{@html Number(cell) === 0 ? cell : (cell ? cell : '-')}
|
|
70
71
|
</td>
|
|
@@ -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
|
>
|