@reshape-biotech/design-system 2.7.13 → 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.
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
<
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
</SelectPrimitive.
|
|
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 = [
|
|
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
|
|