@reshape-biotech/design-system 2.7.13 → 2.7.15
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>
|
|
@@ -217,6 +217,8 @@ export const sizing = [
|
|
|
217
217
|
'h-16',
|
|
218
218
|
'h-28',
|
|
219
219
|
'h-screen',
|
|
220
|
+
'h-full',
|
|
221
|
+
'!h-full',
|
|
220
222
|
'w-0.5',
|
|
221
223
|
'w-4',
|
|
222
224
|
'w-5',
|
|
@@ -233,7 +235,16 @@ export const sizing = [
|
|
|
233
235
|
'sm:w-[460px]',
|
|
234
236
|
];
|
|
235
237
|
|
|
236
|
-
export const positioning = [
|
|
238
|
+
export const positioning = [
|
|
239
|
+
'absolute',
|
|
240
|
+
'relative',
|
|
241
|
+
'top-20',
|
|
242
|
+
'left-18',
|
|
243
|
+
'z-10',
|
|
244
|
+
'z-50',
|
|
245
|
+
'z-[1]',
|
|
246
|
+
'w-[var(--bits-select-anchor-width)]',
|
|
247
|
+
];
|
|
237
248
|
|
|
238
249
|
export const cursors = ['cursor-pointer', 'cursor-wait', 'cursor-default'];
|
|
239
250
|
|
|
@@ -244,6 +255,9 @@ export const misc = [
|
|
|
244
255
|
'active:red',
|
|
245
256
|
'active:bg-neutral',
|
|
246
257
|
'active:bg-neutral-inverse',
|
|
258
|
+
'[&>*]:flex-1',
|
|
259
|
+
'[&>*]:flex-none',
|
|
260
|
+
'[&>*]:!rounded-md',
|
|
247
261
|
'[&>*>.control-button]:flex-col',
|
|
248
262
|
'[&>svg]:w-4',
|
|
249
263
|
'[&>svg]:h-4',
|