@skeletonlabs/skeleton 2.5.1-dev.d65b1ca8 → 2.5.1-dev.d9e107cc

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.
@@ -34,7 +34,13 @@ function setActive(event) {
34
34
  }
35
35
  function onToggle(event) {
36
36
  const currentOpenState = autocollapse ? $active === id : open;
37
- dispatch("toggle", { event, id: `accordion-control-${id}`, open: currentOpenState, autocollapse });
37
+ dispatch("toggle", {
38
+ event,
39
+ id,
40
+ panelId: `accordion-panel-${id}`,
41
+ open: currentOpenState,
42
+ autocollapse
43
+ });
38
44
  }
39
45
  if (autocollapse && open)
40
46
  setActive();
@@ -62,7 +68,7 @@ $:
62
68
  <button
63
69
  type="button"
64
70
  class="accordion-control {classesControl}"
65
- id="accordion-control-{id}"
71
+ {id}
66
72
  on:click={setActive}
67
73
  on:click
68
74
  on:keydown
@@ -101,7 +107,7 @@ $:
101
107
  out:dynamicTransition|local={{ transition: transitionOut, params: transitionOutParams, enabled: transitions }}
102
108
  role="region"
103
109
  aria-hidden={!openState}
104
- aria-labelledby="accordion-control-{id}"
110
+ aria-labelledby={id}
105
111
  >
106
112
  <slot name="content">(content)</slot>
107
113
  </div>
@@ -49,6 +49,7 @@ declare class __sveltets_Render<TransitionIn extends Transition, TransitionOut e
49
49
  toggle: CustomEvent<{
50
50
  event?: Event | undefined;
51
51
  id: string;
52
+ panelId: string;
52
53
  open: boolean;
53
54
  autocollapse: boolean;
54
55
  }>;
@@ -32,7 +32,7 @@ $:
32
32
  aria-valuemax={max - min}
33
33
  >
34
34
  <!-- Meter -->
35
- <div class="progress-bar-meter {classesMeter} {classesMeter}" style:width="{indeterminate ? 100 : fillPercent}%" />
35
+ <div class="progress-bar-meter {classesMeter}" style:width="{indeterminate ? 100 : fillPercent}%" />
36
36
  </div>
37
37
 
38
38
  <style>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@skeletonlabs/skeleton",
3
- "version": "2.5.1-dev.d65b1ca8",
3
+ "version": "2.5.1-dev.d9e107cc",
4
4
  "description": "A SvelteKit component library.",
5
5
  "author": "endigo9740 <chris@skeletonlabs.dev>",
6
6
  "repository": {