@reshape-biotech/design-system 2.7.28 → 2.7.29

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.
@@ -2,17 +2,23 @@
2
2
  import { DropdownMenu } from 'bits-ui';
3
3
  import type { DropdownItemProps } from '../types';
4
4
 
5
- let { children, child: userChild, class: className = '', onSelect, ...restProps }: DropdownItemProps = $props();
5
+ let {
6
+ children,
7
+ child: userChild,
8
+ class: className = '',
9
+ onSelect,
10
+ ...restProps
11
+ }: DropdownItemProps = $props();
6
12
  </script>
7
13
 
8
- <DropdownMenu.Item onSelect={onSelect} {...restProps}>
14
+ <DropdownMenu.Item {onSelect} {...restProps}>
9
15
  {#snippet child({ props }: { props: Record<string, any> })}
10
16
  {#if userChild}
11
17
  {@render userChild({ props })}
12
18
  {:else}
13
19
  <div
14
20
  {...props}
15
- class="h-8 cursor-pointer rounded-lg px-2 py-1.5 text-sm outline-none transition-colors hover:bg-neutral-hover focus:bg-neutral-hover data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_a]:no-underline {className}"
21
+ class="hover:bg-neutral-hover focus:bg-neutral-hover h-9 cursor-pointer rounded-lg px-2 py-1.5 text-sm transition-colors outline-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_a]:no-underline {className}"
16
22
  >
17
23
  {@render children?.()}
18
24
  </div>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@reshape-biotech/design-system",
3
- "version": "2.7.28",
3
+ "version": "2.7.29",
4
4
  "scripts": {
5
5
  "dev": "vite dev",
6
6
  "build": "vite build",