@dxos/react-ui 0.1.30-next.7c60cd3 → 0.1.30

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.
Files changed (34) hide show
  1. package/dist/lib/browser/index.mjs +30 -27
  2. package/dist/lib/browser/index.mjs.map +3 -3
  3. package/dist/lib/browser/meta.json +1 -1
  4. package/dist/types/src/composites/Shell/Shell.d.ts +1 -1
  5. package/dist/types/src/composites/Shell/Shell.d.ts.map +1 -1
  6. package/dist/types/src/composites/Shell/Shell.stories.d.ts.map +1 -1
  7. package/dist/types/src/composites/Shell/ShellContext.d.ts +2 -1
  8. package/dist/types/src/composites/Shell/ShellContext.d.ts.map +1 -1
  9. package/dist/types/src/panels/DevicesPanel/DevicesPanel.d.ts.map +1 -1
  10. package/dist/types/src/panels/IdentityPanel/IdentityPanel.d.ts.map +1 -1
  11. package/dist/types/src/playwright/invitations-manager.d.ts +1 -1
  12. package/dist/types/src/playwright/invitations-manager.d.ts.map +1 -1
  13. package/package.json +19 -19
  14. package/src/components/InvitationList/InvitationList.stories.tsx +1 -1
  15. package/src/components/InvitationList/InvitationListItem.tsx +1 -1
  16. package/src/composites/JoinDialog/JoinDialog.stories.tsx +1 -1
  17. package/src/composites/Shell/Shell.stories.tsx +34 -17
  18. package/src/composites/Shell/Shell.tsx +1 -1
  19. package/src/composites/Shell/ShellContext.tsx +1 -1
  20. package/src/panels/DevicesPanel/DevicesPanel.tsx +17 -5
  21. package/src/panels/IdentityPanel/IdentityPanel.tsx +15 -13
  22. package/src/panels/JoinPanel/JoinHeading.tsx +1 -1
  23. package/src/panels/JoinPanel/view-states/AdditionMethodSelector.tsx +1 -1
  24. package/src/panels/JoinPanel/view-states/IdentityAdded.tsx +1 -1
  25. package/src/panels/JoinPanel/view-states/IdentityInput.tsx +1 -1
  26. package/src/panels/JoinPanel/view-states/IdentitySelector.tsx +1 -1
  27. package/src/panels/JoinPanel/view-states/InvitationAccepted.tsx +1 -1
  28. package/src/panels/JoinPanel/view-states/InvitationAuthenticator.tsx +1 -1
  29. package/src/panels/JoinPanel/view-states/InvitationInput.tsx +1 -1
  30. package/src/panels/JoinPanel/view-states/InvitationRescuer.tsx +1 -1
  31. package/src/panels/JoinPanel/view-states/ViewState.tsx +1 -1
  32. package/src/panels/SpacePanel/SpacePanel.tsx +1 -1
  33. package/src/playwright/invitations-manager.ts +1 -1
  34. package/src/stories/Invitations.stories.tsx +1 -1
@@ -2,11 +2,20 @@
2
2
  // Copyright 2023 DXOS.org
3
3
  //
4
4
 
5
- import { UserPlus, X } from 'phosphor-react';
5
+ import { UserPlus, X } from '@phosphor-icons/react';
6
6
  import React, { cloneElement, useReducer } from 'react';
7
7
 
8
8
  import { useClient, useDevices, useHaloInvitations, useIdentity } from '@dxos/react-client';
9
- import { Button, DensityProvider, getSize, mx, Tooltip, useTranslation } from '@dxos/react-components';
9
+ import {
10
+ Button,
11
+ DensityProvider,
12
+ getSize,
13
+ mx,
14
+ TooltipContent,
15
+ TooltipRoot,
16
+ TooltipTrigger,
17
+ useTranslation
18
+ } from '@dxos/react-components';
10
19
 
11
20
  import { DeviceList, InvitationList, PanelSeparator } from '../../components';
12
21
  import { defaultSurface, subduedSurface } from '../../styles';
@@ -45,9 +54,12 @@ const DeviceListView = ({ createInvitationUrl, titleId, onDone, doneActionParent
45
54
  <h2 id={titleId} className={mx('grow font-system-medium', !displayName && 'font-mono')}>
46
55
  {displayName ?? identity.identityKey.truncate()}
47
56
  </h2>
48
- <Tooltip content={t('close label')} zIndex='z-50'>
49
- {doneActionParent ? cloneElement(doneActionParent, {}, doneButton) : doneButton}
50
- </Tooltip>
57
+ <TooltipRoot>
58
+ <TooltipContent className='z-50'>{t('close label')}</TooltipContent>
59
+ <TooltipTrigger asChild>
60
+ {doneActionParent ? cloneElement(doneActionParent, {}, doneButton) : doneButton}
61
+ </TooltipTrigger>
62
+ </TooltipRoot>
51
63
  </div>
52
64
  <div role='region' className={mx(defaultSurface, 'rounded-be-md p-2')}>
53
65
  <InvitationList
@@ -5,7 +5,7 @@ import React from 'react';
5
5
 
6
6
  import type { Identity } from '@dxos/client';
7
7
  import { useClient } from '@dxos/react-client';
8
- import { Avatar, Button, ThemeContext, useTranslation } from '@dxos/react-components';
8
+ import { Avatar, Button, DensityProvider, ThemeContext, useTranslation } from '@dxos/react-components';
9
9
 
10
10
  export const IdentityPanel = ({
11
11
  identity,
@@ -22,18 +22,20 @@ export const IdentityPanel = ({
22
22
  tab?.focus();
23
23
  };
24
24
  return (
25
- <ThemeContext.Provider value={{ themeVariant: 'os', rootDensity: 'fine' }}>
26
- <div className='flex flex-col gap-2 justify-center items-center'>
27
- <Avatar
28
- size={16}
29
- variant='circle'
30
- fallbackValue={identity.identityKey.toHex()}
31
- label={identity.profile?.displayName ?? ''}
32
- />
33
- <Button onClick={onClickManageProfile ?? defaultManageProfile} className='is-full'>
34
- {t('manage profile label')}
35
- </Button>
36
- </div>
25
+ <ThemeContext.Provider value={{ themeVariant: 'os' }}>
26
+ <DensityProvider density='fine'>
27
+ <div className='flex flex-col gap-2 justify-center items-center'>
28
+ <Avatar
29
+ size={16}
30
+ variant='circle'
31
+ fallbackValue={identity.identityKey.toHex()}
32
+ label={identity.profile?.displayName ?? ''}
33
+ />
34
+ <Button onClick={onClickManageProfile ?? defaultManageProfile} className='is-full'>
35
+ {t('manage profile label')}
36
+ </Button>
37
+ </div>
38
+ </DensityProvider>
37
39
  </ThemeContext.Provider>
38
40
  );
39
41
  };
@@ -1,7 +1,7 @@
1
1
  //
2
2
  // Copyright 2023 DXOS.org
3
3
  //
4
- import { ProhibitInset } from 'phosphor-react';
4
+ import { ProhibitInset } from '@phosphor-icons/react';
5
5
  import React, { cloneElement, ForwardedRef, forwardRef } from 'react';
6
6
 
7
7
  import { AuthenticatingInvitationObservable } from '@dxos/client';
@@ -2,7 +2,7 @@
2
2
  // Copyright 2023 DXOS.org
3
3
  //
4
4
 
5
- import { CaretLeft, CaretRight, Plus, QrCode, Textbox } from 'phosphor-react';
5
+ import { CaretLeft, CaretRight, Plus, QrCode, Textbox } from '@phosphor-icons/react';
6
6
  import React from 'react';
7
7
 
8
8
  import type { Identity } from '@dxos/client';
@@ -2,7 +2,7 @@
2
2
  // Copyright 2023 DXOS.org
3
3
  //
4
4
 
5
- import { CaretLeft, CaretRight, Check } from 'phosphor-react';
5
+ import { CaretLeft, CaretRight, Check } from '@phosphor-icons/react';
6
6
  import React, { cloneElement } from 'react';
7
7
 
8
8
  import type { Identity } from '@dxos/client';
@@ -2,7 +2,7 @@
2
2
  // Copyright 2023 DXOS.org
3
3
  //
4
4
 
5
- import { CaretLeft, CaretRight } from 'phosphor-react';
5
+ import { CaretLeft, CaretRight } from '@phosphor-icons/react';
6
6
  import React, { ComponentPropsWithoutRef, useState } from 'react';
7
7
 
8
8
  import { useClient } from '@dxos/react-client';
@@ -2,8 +2,8 @@
2
2
  // Copyright 2023 DXOS.org
3
3
  //
4
4
 
5
+ import { CaretLeft, CaretRight, UserPlus } from '@phosphor-icons/react';
5
6
  import * as RadioGroup from '@radix-ui/react-radio-group';
6
- import { CaretLeft, CaretRight, UserPlus } from 'phosphor-react';
7
7
  import React, { useCallback, useState } from 'react';
8
8
 
9
9
  import type { Identity } from '@dxos/client';
@@ -2,7 +2,7 @@
2
2
  // Copyright 2023 DXOS.org
3
3
  //
4
4
 
5
- import { CaretLeft, Check } from 'phosphor-react';
5
+ import { CaretLeft, Check } from '@phosphor-icons/react';
6
6
  import React, { cloneElement } from 'react';
7
7
 
8
8
  import { AuthenticatingInvitationObservable } from '@dxos/client';
@@ -2,7 +2,7 @@
2
2
  // Copyright 2023 DXOS.org
3
3
  //
4
4
 
5
- import { CaretLeft, CaretRight } from 'phosphor-react';
5
+ import { CaretLeft, CaretRight } from '@phosphor-icons/react';
6
6
  import React, { ChangeEvent, ComponentProps, ComponentPropsWithoutRef, useCallback, useState } from 'react';
7
7
 
8
8
  import { AuthenticatingInvitationObservable } from '@dxos/client';
@@ -2,7 +2,7 @@
2
2
  // Copyright 2023 DXOS.org
3
3
  //
4
4
 
5
- import { CaretLeft, CaretRight } from 'phosphor-react';
5
+ import { CaretLeft, CaretRight } from '@phosphor-icons/react';
6
6
  import React, { ComponentPropsWithoutRef, useState } from 'react';
7
7
 
8
8
  import { InvitationEncoder } from '@dxos/client';
@@ -2,7 +2,7 @@
2
2
  // Copyright 2023 DXOS.org
3
3
  //
4
4
 
5
- import { ArrowsClockwise, CaretLeft, CaretRight } from 'phosphor-react';
5
+ import { ArrowsClockwise, CaretLeft, CaretRight } from '@phosphor-icons/react';
6
6
  import React from 'react';
7
7
 
8
8
  import { AuthenticatingInvitationObservable, Invitation } from '@dxos/client';
@@ -2,7 +2,7 @@
2
2
  // Copyright 2023 DXOS.org
3
3
  //
4
4
 
5
- import { CheckCircle, HourglassSimple, X } from 'phosphor-react';
5
+ import { CheckCircle, HourglassSimple, X } from '@phosphor-icons/react';
6
6
  import React, { ComponentProps, ComponentPropsWithoutRef, ReactNode, useMemo } from 'react';
7
7
 
8
8
  import type { AuthenticatingInvitationObservable, Identity } from '@dxos/client';
@@ -2,7 +2,7 @@
2
2
  // Copyright 2023 DXOS.org
3
3
  //
4
4
 
5
- import { UserPlus } from 'phosphor-react';
5
+ import { UserPlus } from '@phosphor-icons/react';
6
6
  import React, { cloneElement, useReducer } from 'react';
7
7
 
8
8
  import { Space } from '@dxos/client';
@@ -7,7 +7,7 @@ import type { Browser, ConsoleMessage, Page } from 'playwright';
7
7
  import waitForExpect from 'wait-for-expect';
8
8
 
9
9
  import { Trigger } from '@dxos/async';
10
- import type { InvitationsOptions } from '@dxos/client-services';
10
+ import type { InvitationsOptions } from '@dxos/client';
11
11
  import { ConnectionState } from '@dxos/protocols/proto/dxos/client/services';
12
12
  import { setupPage } from '@dxos/test/playwright';
13
13
 
@@ -4,7 +4,7 @@
4
4
 
5
5
  import '@dxosTheme';
6
6
  import { faker } from '@faker-js/faker';
7
- import { Intersect, Laptop, Planet, Plus, PlusCircle, QrCode } from 'phosphor-react';
7
+ import { Intersect, Laptop, Planet, Plus, PlusCircle, QrCode } from '@phosphor-icons/react';
8
8
  import React, { useMemo, useState } from 'react';
9
9
 
10
10
  import { Space, SpaceProxy, useClient, useIdentity, useSpaces } from '@dxos/react-client';