@makolabs/ripple 0.0.1-dev.5 → 0.0.1-dev.7
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,4 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
|
-
import FluentChevronRight16Filled from '../../../icons/FluentChevronRight16Filled.svelte';
|
|
3
2
|
import { getContext } from 'svelte';
|
|
4
3
|
import type { MenuBar, NavGroupProps } from './sidebar.js';
|
|
5
4
|
import { cn } from '../../helper/cls.js';
|
|
@@ -78,7 +77,7 @@
|
|
|
78
77
|
<div>
|
|
79
78
|
<button type="button" class={navGroupClasses} onclick={toggle}>
|
|
80
79
|
{@render labelArea(labelClasses)}
|
|
81
|
-
|
|
80
|
+
{@render Icon(chevronIconClasses, 0.7)}
|
|
82
81
|
</button>
|
|
83
82
|
|
|
84
83
|
{#if isActive}
|
|
@@ -90,7 +89,7 @@
|
|
|
90
89
|
rounded-md bg-slate-800 text-left text-sm/6 text-gray-700"
|
|
91
90
|
onclick={toggle}
|
|
92
91
|
>
|
|
93
|
-
|
|
92
|
+
{@render Icon('size-4 shrink-0 -rotate-180 text-gray-600', 0.7)}
|
|
94
93
|
</button>
|
|
95
94
|
</div>
|
|
96
95
|
<ul class={navUlClasses}>
|
|
@@ -99,3 +98,19 @@
|
|
|
99
98
|
</div>
|
|
100
99
|
{/if}
|
|
101
100
|
</div>
|
|
101
|
+
|
|
102
|
+
|
|
103
|
+
{#snippet Icon(className: string, size: number)}
|
|
104
|
+
<svg
|
|
105
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
106
|
+
width="{size}em"
|
|
107
|
+
height="{size}em"
|
|
108
|
+
viewBox="0 0 16 16"
|
|
109
|
+
class={className}
|
|
110
|
+
>
|
|
111
|
+
<path
|
|
112
|
+
fill="currentColor"
|
|
113
|
+
d="M5.74 3.2a.75.75 0 0 0-.04 1.06L9.227 8L5.7 11.74a.75.75 0 1 0 1.1 1.02l4-4.25a.75.75 0 0 0 0-1.02l-4-4.25a.75.75 0 0 0-1.06-.04"
|
|
114
|
+
/>
|
|
115
|
+
</svg>
|
|
116
|
+
{/snippet}
|