compote-ui 0.49.3 → 0.49.4

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.
@@ -12,7 +12,7 @@
12
12
  PhMinus,
13
13
  PhX
14
14
  } from '../../icons';
15
- import { Button, Field } from '../..';
15
+ import { Button, Field, ScrollArea } from '../..';
16
16
  import { SvelteSet } from 'svelte/reactivity';
17
17
 
18
18
  import Icon from '@iconify/svelte';
@@ -137,13 +137,24 @@
137
137
  </div>
138
138
  </div>
139
139
 
140
- <div class="flex-1 overflow-x-hidden overflow-y-auto">
141
- <TreeView.Tree class="flex flex-col text-sm">
142
- {#each collection.rootNode.children ?? [] as node, index (node.value)}
143
- {@render renderNode(node as T, [index])}
144
- {/each}
145
- </TreeView.Tree>
146
- </div>
140
+ <ScrollArea.Root class="flex-1">
141
+ <ScrollArea.Viewport>
142
+ <ScrollArea.Content class="p-0">
143
+ <TreeView.Tree class="flex flex-col text-sm">
144
+ {#each collection.rootNode.children ?? [] as node, index (node.value)}
145
+ {@render renderNode(node as T, [index])}
146
+ {/each}
147
+ </TreeView.Tree>
148
+ </ScrollArea.Content>
149
+ </ScrollArea.Viewport>
150
+ <ScrollArea.Scrollbar orientation="vertical">
151
+ <ScrollArea.Thumb />
152
+ </ScrollArea.Scrollbar>
153
+ <ScrollArea.Scrollbar orientation="horizontal">
154
+ <ScrollArea.Thumb />
155
+ </ScrollArea.Scrollbar>
156
+ <ScrollArea.Corner />
157
+ </ScrollArea.Root>
147
158
  </TreeView.Root>
148
159
 
149
160
  {#snippet nodeCheckbox()}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "compote-ui",
3
- "version": "0.49.3",
3
+ "version": "0.49.4",
4
4
  "license": "MIT",
5
5
  "scripts": {
6
6
  "dev": "vite dev --open",