@skeletonlabs/skeleton 2.10.1 → 2.10.2-dev.cfb5df35

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.
@@ -25,7 +25,7 @@ function prunedRestProps() {
25
25
  }
26
26
  </script>
27
27
 
28
- <a class="app-rail-anchor {classesBase}" href={$$props.href} {...prunedRestProps()} data-testid="app-rail-anchor">
28
+ <a class="app-rail-anchor {classesBase}" href={$$props.href} {...prunedRestProps()} data-testid="app-rail-anchor" on:click>
29
29
  <div class="app-rail-wrapper {classesWrapper}">
30
30
  {#if $$slots.lead}<div class="app-rail-lead {classesLead}"><slot name="lead" /></div>{/if}
31
31
  <div class="app-rail-label {classesLabel}"><slot /></div>
@@ -14,6 +14,8 @@ declare const __propDef: {
14
14
  aspectRatio?: string | undefined;
15
15
  };
16
16
  events: {
17
+ click: MouseEvent;
18
+ } & {
17
19
  [evt: string]: CustomEvent<any>;
18
20
  };
19
21
  slots: {
@@ -46,7 +46,7 @@ function prunedRestProps() {
46
46
  <!-- A11y attributes are not allowed on <label> -->
47
47
  <!-- FIXME: resolve a11y warnings -->
48
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>
49
+ <button class="app-rail-wrapper {classesWrapper}" tabindex="0" on:click={selectElemInput} on:click on:keydown={onKeyDown} on:keyup on:keypress>
50
50
  <!-- NOTE: Don't use `hidden` as it prevents `required` from operating -->
51
51
  <div class="h-0 w-0 overflow-hidden">
52
52
  <input bind:this={elemInput} type="radio" bind:group {name} {value} {...prunedRestProps()} tabindex="-1" on:click on:change />
@@ -25,9 +25,9 @@ declare const __propDef: {
25
25
  mouseleave: MouseEvent;
26
26
  focus: FocusEvent;
27
27
  blur: FocusEvent;
28
+ click: MouseEvent;
28
29
  keyup: KeyboardEvent;
29
30
  keypress: KeyboardEvent;
30
- click: MouseEvent;
31
31
  change: Event;
32
32
  } & {
33
33
  [evt: string]: CustomEvent<any>;
@@ -128,6 +128,10 @@ export function removeChip(chip) {
128
128
  removeChipCommon(chip);
129
129
  dispatch("removeManually", { chipValue: chip });
130
130
  }
131
+ function prunedRestProps() {
132
+ delete $$restProps.class;
133
+ return $$restProps;
134
+ }
131
135
  $:
132
136
  classesInvalid = inputValid === false ? invalid : "";
133
137
  $:
@@ -167,6 +171,7 @@ $:
167
171
  on:focus
168
172
  on:blur
169
173
  disabled={$$restProps.disabled}
174
+ {...prunedRestProps()}
170
175
  />
171
176
  <!-- Chip List -->
172
177
  {#if chipValues.length}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@skeletonlabs/skeleton",
3
- "version": "2.10.1",
3
+ "version": "2.10.2-dev.cfb5df35",
4
4
  "description": "A SvelteKit component library.",
5
5
  "author": "endigo9740 <chris@skeletonlabs.dev>",
6
6
  "repository": {
@@ -59,7 +59,7 @@
59
59
  "esm-env": "1.0.0"
60
60
  },
61
61
  "peerDependencies": {
62
- "svelte": "^3.56.0 || ^4.0.0"
62
+ "svelte": "^3.56.0 || ^4.0.0 || ^5.0.0"
63
63
  },
64
64
  "types": "./dist/index.d.ts",
65
65
  "exports": {