@reshape-biotech/design-system 2.7.12 → 2.7.14

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.
@@ -4,6 +4,7 @@
4
4
  import { Icon } from '../../icons/index.js';
5
5
  import { Select as SelectPrimitive } from 'bits-ui';
6
6
  import type { ContentProps } from '../types';
7
+ import { twMerge } from 'tailwind-merge';
7
8
 
8
9
  import type { Snippet } from 'svelte';
9
10
 
@@ -16,20 +17,21 @@
16
17
  let { class: className = '', sideOffset = 4, children, ...restProps }: Props = $props();
17
18
  </script>
18
19
 
19
- <SelectPrimitive.Portal>
20
- <SelectPrimitive.Content
21
- {...restProps}
22
- {sideOffset}
23
- class="relative z-50 w-[var(--bits-select-anchor-width)] min-w-[8rem] overflow-hidden rounded-lg bg-surface text-primary shadow-menu {className}"
24
- >
25
- <SelectPrimitive.ScrollUpButton class="flex justify-center">
26
- <Icon color="tertiary" icon={CaretUp} />
27
- </SelectPrimitive.ScrollUpButton>
28
- <SelectPrimitive.Viewport class="p-1 ">
29
- {@render children()}
30
- </SelectPrimitive.Viewport>
31
- <SelectPrimitive.ScrollDownButton class="flex justify-center">
32
- <Icon color="tertiary" icon={CaretDown} />
33
- </SelectPrimitive.ScrollDownButton>
34
- </SelectPrimitive.Content>
35
- </SelectPrimitive.Portal>
20
+ <SelectPrimitive.Content
21
+ {...restProps}
22
+ {sideOffset}
23
+ class={twMerge(
24
+ 'relative z-50 w-[var(--bits-select-anchor-width)] min-w-[8rem] overflow-hidden rounded-lg bg-surface text-primary shadow-menu',
25
+ className
26
+ )}
27
+ >
28
+ <SelectPrimitive.ScrollUpButton class="flex justify-center">
29
+ <Icon color="tertiary" icon={CaretUp} />
30
+ </SelectPrimitive.ScrollUpButton>
31
+ <SelectPrimitive.Viewport class="p-1 ">
32
+ {@render children()}
33
+ </SelectPrimitive.Viewport>
34
+ <SelectPrimitive.ScrollDownButton class="flex justify-center">
35
+ <Icon color="tertiary" icon={CaretDown} />
36
+ </SelectPrimitive.ScrollDownButton>
37
+ </SelectPrimitive.Content>
@@ -233,7 +233,16 @@ export const sizing = [
233
233
  'sm:w-[460px]',
234
234
  ];
235
235
 
236
- export const positioning = ['absolute', 'relative', 'top-20', 'left-18', 'z-10', 'z-[1]'];
236
+ export const positioning = [
237
+ 'absolute',
238
+ 'relative',
239
+ 'top-20',
240
+ 'left-18',
241
+ 'z-10',
242
+ 'z-50',
243
+ 'z-[1]',
244
+ 'w-[var(--bits-select-anchor-width)]',
245
+ ];
237
246
 
238
247
  export const cursors = ['cursor-pointer', 'cursor-wait', 'cursor-default'];
239
248
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@reshape-biotech/design-system",
3
- "version": "2.7.12",
3
+ "version": "2.7.14",
4
4
  "scripts": {
5
5
  "dev": "vite dev",
6
6
  "build": "vite build",