@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(), details.length > 0 ? 'pt-2' : '')}>
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(), details.length > 0 ? 'pt-2' : '')}>
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={() => (window.location.href = child.href)}
134
+ onclick={() => goto(child.href)}
134
135
  title={menubar.collapsed ? child.label : ''}
135
136
  >
136
137
  {#if child.Icon}
@@ -23,7 +23,7 @@
23
23
  tableclass: tableClass = '',
24
24
  theadclass: theadClass = '',
25
25
  tbodyclass: tbodyClass = '',
26
- trclass: trClass = '',
26
+ trclass: trClass = 'bg-white',
27
27
  thclass: thClass = '',
28
28
  tdclass: tdClass = '',
29
29
  footerclass: footerClass = '',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@makolabs/ripple",
3
- "version": "0.0.1-dev.81",
3
+ "version": "0.0.1-dev.82",
4
4
  "description": "Simple Svelte 5 powered component library ✨",
5
5
  "repository": {
6
6
  "type": "git",