@onsvisual/svelte-components 1.0.22 → 1.0.23
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.
|
@@ -33,20 +33,18 @@
|
|
|
33
33
|
</script>
|
|
34
34
|
|
|
35
35
|
<div {id} class="ons-accordion {cls}" bind:this={el}>
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
36
|
+
<button
|
|
37
|
+
type="button"
|
|
38
|
+
class="ons-btn ons-accordion__toggle-all ons-u-mb-s ons-u-d-no ons-btn--secondary ons-btn--small"
|
|
39
|
+
class:hide-toggle={!showToggle}
|
|
40
|
+
data-close-all="Hide all"
|
|
41
|
+
data-group={id}
|
|
42
|
+
bind:this={buttonEl}
|
|
43
|
+
>
|
|
44
|
+
<span class="ons-btn__inner ons-accordion__toggle-all-inner"
|
|
45
|
+
><span class="ons-btn__text">Show all</span></span
|
|
44
46
|
>
|
|
45
|
-
|
|
46
|
-
><span class="ons-btn__text">Show all</span></span
|
|
47
|
-
>
|
|
48
|
-
</button>
|
|
49
|
-
{/if}
|
|
47
|
+
</button>
|
|
50
48
|
<slot />
|
|
51
49
|
</div>
|
|
52
50
|
|