@functionalcms/svelte-components 4.32.0 → 4.35.1

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.
@@ -1,5 +1,6 @@
1
1
  <script lang="ts">
2
2
  import type { Snippet } from 'svelte';
3
+ import Icon from "@iconify/svelte";
3
4
 
4
5
  interface AccordionProps {
5
6
  children: Snippet;
@@ -27,7 +28,12 @@
27
28
  <header onclick={toggleAccordion} role="button" tabindex="0" onkeydown={(e) => e.key === 'Enter' && toggleAccordion()}>
28
29
  {title}
29
30
  <span class="toggle-icon">{isOpen ? '−' : '+'}</span>
30
- </header>
31
+ {#if isOpen}
32
+ <Icon icon="mdi:chevron-up" width="1rem" />
33
+ {:else}
34
+ <Icon icon="mdi:chevron-down" width="1rem" />
35
+ {/if}
36
+ </header>
31
37
  <div
32
38
  bind:this={contentElement}
33
39
  class="content"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@functionalcms/svelte-components",
3
- "version": "4.32.0",
3
+ "version": "4.35.1",
4
4
  "license": "MIT",
5
5
  "watch": {
6
6
  "build": {