@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.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>
@@ -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 = ['absolute', 'relative', 'top-20', 'left-18', 'z-10', 'z-[1]'];
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',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@reshape-biotech/design-system",
3
- "version": "2.7.13",
3
+ "version": "2.7.15",
4
4
  "scripts": {
5
5
  "dev": "vite dev",
6
6
  "build": "vite build",