@dxos/react-ui-list 0.8.4-main.84f28bd → 0.8.4-main.c1de068

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dxos/react-ui-list",
3
- "version": "0.8.4-main.84f28bd",
3
+ "version": "0.8.4-main.c1de068",
4
4
  "description": "A list component.",
5
5
  "homepage": "https://dxos.org",
6
6
  "bugs": "https://github.com/dxos/dxos/issues",
@@ -29,33 +29,33 @@
29
29
  "@preact/signals-core": "^1.9.0",
30
30
  "@radix-ui/react-accordion": "1.2.3",
31
31
  "@radix-ui/react-context": "1.1.1",
32
- "@dxos/debug": "0.8.4-main.84f28bd",
33
- "@dxos/invariant": "0.8.4-main.84f28bd",
34
- "@dxos/echo-schema": "0.8.4-main.84f28bd",
35
- "@dxos/log": "0.8.4-main.84f28bd",
36
- "@dxos/live-object": "0.8.4-main.84f28bd",
37
- "@dxos/react-ui": "0.8.4-main.84f28bd",
38
- "@dxos/react-ui-text-tooltip": "0.8.4-main.84f28bd",
39
- "@dxos/react-ui-theme": "0.8.4-main.84f28bd",
40
- "@dxos/react-ui-types": "0.8.4-main.84f28bd",
41
- "@dxos/util": "0.8.4-main.84f28bd"
32
+ "@dxos/debug": "0.8.4-main.c1de068",
33
+ "@dxos/echo-schema": "0.8.4-main.c1de068",
34
+ "@dxos/invariant": "0.8.4-main.c1de068",
35
+ "@dxos/live-object": "0.8.4-main.c1de068",
36
+ "@dxos/log": "0.8.4-main.c1de068",
37
+ "@dxos/react-ui": "0.8.4-main.c1de068",
38
+ "@dxos/react-ui-text-tooltip": "0.8.4-main.c1de068",
39
+ "@dxos/react-ui-theme": "0.8.4-main.c1de068",
40
+ "@dxos/react-ui-types": "0.8.4-main.c1de068",
41
+ "@dxos/util": "0.8.4-main.c1de068"
42
42
  },
43
43
  "devDependencies": {
44
44
  "@types/react": "~18.2.0",
45
45
  "@types/react-dom": "~18.2.0",
46
- "effect": "3.16.13",
46
+ "effect": "3.17.0",
47
47
  "react": "~18.2.0",
48
48
  "react-dom": "~18.2.0",
49
49
  "vite": "5.4.7",
50
- "@dxos/random": "0.8.4-main.84f28bd",
51
- "@dxos/storybook-utils": "0.8.4-main.84f28bd"
50
+ "@dxos/random": "0.8.4-main.c1de068",
51
+ "@dxos/storybook-utils": "0.8.4-main.c1de068"
52
52
  },
53
53
  "peerDependencies": {
54
54
  "effect": "^3.13.3",
55
55
  "react": "~18.2.0",
56
56
  "react-dom": "~18.2.0",
57
- "@dxos/react-ui-theme": "0.8.4-main.84f28bd",
58
- "@dxos/react-ui": "0.8.4-main.84f28bd"
57
+ "@dxos/react-ui": "0.8.4-main.c1de068",
58
+ "@dxos/react-ui-theme": "0.8.4-main.c1de068"
59
59
  },
60
60
  "publishConfig": {
61
61
  "access": "public"
@@ -21,7 +21,6 @@ import {
21
21
  hoverableControls,
22
22
  hoverableFocusedKeyboardControls,
23
23
  hoverableFocusedWithinControls,
24
- mx,
25
24
  } from '@dxos/react-ui-theme';
26
25
 
27
26
  import { useTree } from './TreeContext';
@@ -223,7 +222,7 @@ const RawTreeItem = <T extends HasId = any>({
223
222
  id={id}
224
223
  aria-labelledby={`${id}__label`}
225
224
  parentOf={parentOf?.join(Treegrid.PARENT_OF_SEPARATOR)}
226
- classNames={mx(
225
+ classNames={[
227
226
  'grid grid-cols-subgrid col-[tree-row] mbs-0.5 aria-[current]:bg-activeSurface',
228
227
  hoverableControls,
229
228
  hoverableFocusedKeyboardControls,
@@ -231,7 +230,7 @@ const RawTreeItem = <T extends HasId = any>({
231
230
  hoverableDescriptionIcons,
232
231
  ghostHover,
233
232
  className,
234
- )}
233
+ ]}
235
234
  data-itemid={id}
236
235
  data-testid={testId}
237
236
  // NOTE(thure): This is intentionally an empty string to for descendents to select by in the CSS
@@ -6,7 +6,6 @@ import React, { type KeyboardEvent, type MouseEvent, forwardRef, memo, useCallba
6
6
 
7
7
  import { Button, Icon, toLocalizedString, useTranslation, type Label } from '@dxos/react-ui';
8
8
  import { TextTooltip } from '@dxos/react-ui-text-tooltip';
9
- import { mx } from '@dxos/react-ui-theme';
10
9
 
11
10
  // TODO(wittjosiah): Consider whether there should be a separate disabled prop which was visually distinct
12
11
  // rather than just making the item unselectable.
@@ -55,11 +54,11 @@ export const TreeItemHeading = memo(
55
54
  data-testid='treeItem.heading'
56
55
  variant='ghost'
57
56
  density='fine'
58
- classNames={mx(
57
+ classNames={[
59
58
  'grow gap-2 pis-0.5 hover:bg-transparent dark:hover:bg-transparent',
60
59
  'disabled:cursor-default disabled:opacity-100',
61
60
  className,
62
- )}
61
+ ]}
63
62
  disabled={disabled}
64
63
  onClick={handleSelect}
65
64
  onKeyDown={handleButtonKeydown}
@@ -5,7 +5,6 @@
5
5
  import React, { forwardRef, memo } from 'react';
6
6
 
7
7
  import { Button, Icon } from '@dxos/react-ui';
8
- import { mx } from '@dxos/react-ui-theme';
9
8
 
10
9
  export type TreeItemToggleProps = {
11
10
  open?: boolean;
@@ -23,10 +22,10 @@ export const TreeItemToggle = memo(
23
22
  aria-expanded={open}
24
23
  variant='ghost'
25
24
  density='fine'
26
- classNames={mx('is-6 pli-0 dx-focus-ring-inset', hidden ? 'hidden' : !isBranch && 'invisible')}
25
+ classNames={['is-6 pli-0 dx-focus-ring-inset', hidden ? 'hidden' : !isBranch && 'invisible']}
27
26
  onClick={onToggle}
28
27
  >
29
- <Icon icon='ph--caret-right--bold' size={3} classNames={mx('transition duration-200', open && 'rotate-90')} />
28
+ <Icon icon='ph--caret-right--bold' size={3} classNames={['transition duration-200', open && 'rotate-90']} />
30
29
  </Button>
31
30
  );
32
31
  }),