@dxos/react-ui-list 0.8.4-main.03d5cd7b56 → 0.8.4-main.05e74ebcff
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.
- package/LICENSE +102 -5
- package/dist/lib/browser/index.mjs +8 -9
- package/dist/lib/browser/index.mjs.map +3 -3
- package/dist/lib/browser/meta.json +1 -1
- package/dist/lib/node-esm/index.mjs +8 -9
- package/dist/lib/node-esm/index.mjs.map +3 -3
- package/dist/lib/node-esm/meta.json +1 -1
- package/dist/types/src/components/RowList/RowList.d.ts.map +1 -1
- package/dist/types/src/components/Tree/Tree.d.ts +1 -1
- package/dist/types/src/components/Tree/Tree.stories.d.ts +1 -1
- package/dist/types/tsconfig.tsbuildinfo +1 -1
- package/package.json +17 -17
- package/src/components/RowList/RowList.tsx +3 -6
- package/src/components/Tree/Tree.tsx +1 -1
- package/src/components/Tree/TreeItem.tsx +1 -1
- package/src/components/Tree/TreeItemHeading.tsx +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dxos/react-ui-list",
|
|
3
|
-
"version": "0.8.4-main.
|
|
3
|
+
"version": "0.8.4-main.05e74ebcff",
|
|
4
4
|
"description": "A list component.",
|
|
5
5
|
"homepage": "https://dxos.org",
|
|
6
6
|
"bugs": "https://github.com/dxos/dxos/issues",
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
"type": "git",
|
|
9
9
|
"url": "https://github.com/dxos/dxos"
|
|
10
10
|
},
|
|
11
|
-
"license": "
|
|
11
|
+
"license": "FSL-1.1-Apache-2.0",
|
|
12
12
|
"author": "DXOS.org",
|
|
13
13
|
"type": "module",
|
|
14
14
|
"exports": {
|
|
@@ -33,16 +33,16 @@
|
|
|
33
33
|
"@radix-ui/react-context": "1.1.1",
|
|
34
34
|
"@radix-ui/react-slot": "1.1.2",
|
|
35
35
|
"@radix-ui/react-use-controllable-state": "1.1.0",
|
|
36
|
-
"@dxos/debug": "0.8.4-main.
|
|
37
|
-
"@dxos/
|
|
38
|
-
"@dxos/
|
|
39
|
-
"@dxos/log": "0.8.4-main.
|
|
40
|
-
"@dxos/react-
|
|
41
|
-
"@dxos/react-ui
|
|
42
|
-
"@dxos/ui-
|
|
43
|
-
"@dxos/
|
|
44
|
-
"@dxos/util": "0.8.4-main.
|
|
45
|
-
"@dxos/ui-
|
|
36
|
+
"@dxos/debug": "0.8.4-main.05e74ebcff",
|
|
37
|
+
"@dxos/invariant": "0.8.4-main.05e74ebcff",
|
|
38
|
+
"@dxos/echo": "0.8.4-main.05e74ebcff",
|
|
39
|
+
"@dxos/log": "0.8.4-main.05e74ebcff",
|
|
40
|
+
"@dxos/react-list": "0.8.4-main.05e74ebcff",
|
|
41
|
+
"@dxos/react-ui": "0.8.4-main.05e74ebcff",
|
|
42
|
+
"@dxos/ui-theme": "0.8.4-main.05e74ebcff",
|
|
43
|
+
"@dxos/ui-types": "0.8.4-main.05e74ebcff",
|
|
44
|
+
"@dxos/util": "0.8.4-main.05e74ebcff",
|
|
45
|
+
"@dxos/react-ui-text-tooltip": "0.8.4-main.05e74ebcff"
|
|
46
46
|
},
|
|
47
47
|
"devDependencies": {
|
|
48
48
|
"@types/react": "~19.2.7",
|
|
@@ -50,16 +50,16 @@
|
|
|
50
50
|
"effect": "3.20.0",
|
|
51
51
|
"react": "~19.2.3",
|
|
52
52
|
"react-dom": "~19.2.3",
|
|
53
|
-
"vite": "^8.0.
|
|
54
|
-
"@dxos/random": "0.8.4-main.
|
|
55
|
-
"@dxos/storybook-utils": "0.8.4-main.
|
|
53
|
+
"vite": "^8.0.13",
|
|
54
|
+
"@dxos/random": "0.8.4-main.05e74ebcff",
|
|
55
|
+
"@dxos/storybook-utils": "0.8.4-main.05e74ebcff"
|
|
56
56
|
},
|
|
57
57
|
"peerDependencies": {
|
|
58
58
|
"effect": "3.20.0",
|
|
59
59
|
"react": "~19.2.3",
|
|
60
60
|
"react-dom": "~19.2.3",
|
|
61
|
-
"@dxos/
|
|
62
|
-
"@dxos/ui
|
|
61
|
+
"@dxos/ui-theme": "0.8.4-main.05e74ebcff",
|
|
62
|
+
"@dxos/react-ui": "0.8.4-main.05e74ebcff"
|
|
63
63
|
},
|
|
64
64
|
"publishConfig": {
|
|
65
65
|
"access": "public"
|
|
@@ -162,14 +162,11 @@ const Viewport = composable<HTMLDivElement, ViewportProps>((props, forwardedRef)
|
|
|
162
162
|
const { thin, padding, centered, children, ...rest } = props as PropsWithChildren<
|
|
163
163
|
ViewportProps & Record<string, unknown>
|
|
164
164
|
>;
|
|
165
|
-
const composed = composableProps<HTMLDivElement>(rest, { classNames: 'dx-container' });
|
|
166
165
|
return (
|
|
167
166
|
<ScrollArea.Root
|
|
167
|
+
{...composableProps<HTMLDivElement>(rest, { classNames: 'dx-container' })}
|
|
168
|
+
{...{ thin, padding, centered }}
|
|
168
169
|
orientation='vertical'
|
|
169
|
-
thin={thin}
|
|
170
|
-
padding={padding}
|
|
171
|
-
centered={centered}
|
|
172
|
-
{...composed}
|
|
173
170
|
ref={forwardedRef}
|
|
174
171
|
>
|
|
175
172
|
<ScrollArea.Viewport>{children}</ScrollArea.Viewport>
|
|
@@ -266,7 +263,7 @@ type RowProps = PropsWithChildren<{
|
|
|
266
263
|
|
|
267
264
|
// `dx-selected` pairs with `aria-selected="true"` (set per-option below);
|
|
268
265
|
// see `ui-theme/src/css/components/selected.md`.
|
|
269
|
-
const ROW_BASE = 'dx-hover dx-selected px-3 py-2 cursor-pointer outline-none border-b border-separator last:border-b-0';
|
|
266
|
+
const ROW_BASE = 'dx-hover dx-selected px-3 py-2 cursor-pointer outline-none'; // border-b border-separator last:border-b-0';
|
|
270
267
|
|
|
271
268
|
const Row = composable<HTMLLIElement, RowProps>((props, forwardedRef) => {
|
|
272
269
|
const { id, disabled, onClick, onFocus, children, ...rest } = props as RowProps & Record<string, unknown>;
|
|
@@ -29,13 +29,13 @@ export type TreeProps<T extends { id: string } = any> = {
|
|
|
29
29
|
>;
|
|
30
30
|
|
|
31
31
|
export const Tree = <T extends { id: string } = any>({
|
|
32
|
+
classNames,
|
|
32
33
|
model,
|
|
33
34
|
rootId,
|
|
34
35
|
path,
|
|
35
36
|
id,
|
|
36
37
|
draggable = false,
|
|
37
38
|
gridTemplateColumns = '[tree-row-start] 1fr min-content [tree-row-end]',
|
|
38
|
-
classNames,
|
|
39
39
|
levelOffset,
|
|
40
40
|
renderColumns,
|
|
41
41
|
blockInstruction,
|
|
@@ -313,7 +313,7 @@ const RawTreeItem = <T extends { id: string } = any>({
|
|
|
313
313
|
// https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Attributes/aria-current#description
|
|
314
314
|
aria-current={current ? ('' as 'page') : undefined}
|
|
315
315
|
classNames={mx(
|
|
316
|
-
'grid grid-cols-subgrid col-[tree-row] mt-0.5 is-current:bg-
|
|
316
|
+
'grid grid-cols-subgrid col-[tree-row] mt-0.5 is-current:bg-current-surface',
|
|
317
317
|
hoverableControls,
|
|
318
318
|
hoverableFocusedKeyboardControls,
|
|
319
319
|
hoverableFocusedWithinControls,
|
|
@@ -67,7 +67,7 @@ export const TreeItemHeading = memo(
|
|
|
67
67
|
{...(current && { 'aria-current': 'location' })}
|
|
68
68
|
>
|
|
69
69
|
{icon && (
|
|
70
|
-
<Icon size={5} icon={icon ?? 'ph--placeholder--regular'} classNames={['my-1', styles?.
|
|
70
|
+
<Icon size={5} icon={icon ?? 'ph--placeholder--regular'} classNames={['my-1', styles?.foreground]} />
|
|
71
71
|
)}
|
|
72
72
|
<span className='flex-1 w-0 truncate text-start font-normal' data-tooltip>
|
|
73
73
|
{toLocalizedString(label, t)}
|