@makolabs/ripple 0.0.1-dev.81 → 0.0.1-dev.82
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.
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
{/if}
|
|
47
47
|
|
|
48
48
|
{#if segments}
|
|
49
|
-
<div class={cn(progressSlot(),
|
|
49
|
+
<div class={cn(progressSlot(), 'pt-2')}>
|
|
50
50
|
<Progress
|
|
51
51
|
value={0}
|
|
52
52
|
{segments}
|
|
@@ -57,7 +57,7 @@
|
|
|
57
57
|
/>
|
|
58
58
|
</div>
|
|
59
59
|
{:else if percent !== undefined}
|
|
60
|
-
<div class={cn(progressSlot(),
|
|
60
|
+
<div class={cn(progressSlot(), 'pt-2')}>
|
|
61
61
|
<Progress value={percent} size={Size.SM} color={Color.SUCCESS} showLabel={false} />
|
|
62
62
|
</div>
|
|
63
63
|
{/if}
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
import type { MenuBar, NavigationItem, SidebarProps, ParentItem, LinkItem } from '../../index.js';
|
|
4
4
|
import clsx from 'clsx';
|
|
5
5
|
import { isRouteActive } from '../../helper/nav.svelte.js';
|
|
6
|
+
import { goto } from '$app/navigation';
|
|
6
7
|
|
|
7
8
|
let { items = [], logo }: SidebarProps = $props();
|
|
8
9
|
let menubar: MenuBar = $state({
|
|
@@ -130,7 +131,7 @@
|
|
|
130
131
|
: ''} {menubar.collapsed ? 'justify-center' : ''}"
|
|
131
132
|
class:text-white={child.active}
|
|
132
133
|
class:text-gray-300={!child.active}
|
|
133
|
-
onclick={() => (
|
|
134
|
+
onclick={() => goto(child.href)}
|
|
134
135
|
title={menubar.collapsed ? child.label : ''}
|
|
135
136
|
>
|
|
136
137
|
{#if child.Icon}
|