@dxos/react-ui 0.8.4-main.c1de068 → 0.8.4-main.fd6878d

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 (145) hide show
  1. package/dist/lib/browser/{chunk-2COVUP44.mjs → chunk-BKNGMGOK.mjs} +16 -16
  2. package/dist/lib/browser/chunk-BKNGMGOK.mjs.map +7 -0
  3. package/dist/lib/browser/index.mjs +1 -1
  4. package/dist/lib/browser/meta.json +1 -1
  5. package/dist/lib/browser/testing/index.mjs +2 -2
  6. package/dist/lib/browser/testing/index.mjs.map +3 -3
  7. package/dist/lib/node-esm/{chunk-GHXHND5V.mjs → chunk-D2HZS6F4.mjs} +16 -16
  8. package/dist/lib/node-esm/chunk-D2HZS6F4.mjs.map +7 -0
  9. package/dist/lib/node-esm/index.mjs +1 -1
  10. package/dist/lib/node-esm/meta.json +1 -1
  11. package/dist/lib/node-esm/testing/index.mjs +2 -2
  12. package/dist/lib/node-esm/testing/index.mjs.map +3 -3
  13. package/dist/types/src/components/Avatars/Avatar.d.ts +1 -1
  14. package/dist/types/src/components/Avatars/Avatar.d.ts.map +1 -1
  15. package/dist/types/src/components/Avatars/Avatar.stories.d.ts +1 -1
  16. package/dist/types/src/components/Avatars/Avatar.stories.d.ts.map +1 -1
  17. package/dist/types/src/components/Avatars/AvatarGroup.stories.d.ts.map +1 -1
  18. package/dist/types/src/components/Breadcrumb/Breadcrumb.d.ts +1 -1
  19. package/dist/types/src/components/Breadcrumb/Breadcrumb.d.ts.map +1 -1
  20. package/dist/types/src/components/Breadcrumb/Breadcrumb.stories.d.ts.map +1 -1
  21. package/dist/types/src/components/Buttons/Button.stories.d.ts +1 -1
  22. package/dist/types/src/components/Buttons/Button.stories.d.ts.map +1 -1
  23. package/dist/types/src/components/Buttons/IconButton.d.ts +1 -1
  24. package/dist/types/src/components/Buttons/IconButton.d.ts.map +1 -1
  25. package/dist/types/src/components/Buttons/IconButton.stories.d.ts.map +1 -1
  26. package/dist/types/src/components/Buttons/Toggle.stories.d.ts.map +1 -1
  27. package/dist/types/src/components/Buttons/ToggleGroup.d.ts +1 -1
  28. package/dist/types/src/components/Buttons/ToggleGroup.d.ts.map +1 -1
  29. package/dist/types/src/components/Buttons/ToggleGroup.stories.d.ts.map +1 -1
  30. package/dist/types/src/components/Clipboard/ClipboardProvider.d.ts.map +1 -1
  31. package/dist/types/src/components/Clipboard/CopyButton.d.ts.map +1 -1
  32. package/dist/types/src/components/DensityProvider/DensityProvider.d.ts.map +1 -1
  33. package/dist/types/src/components/Dialogs/AlertDialog.d.ts +1 -1
  34. package/dist/types/src/components/Dialogs/AlertDialog.d.ts.map +1 -1
  35. package/dist/types/src/components/Dialogs/AlertDialog.stories.d.ts.map +1 -1
  36. package/dist/types/src/components/Dialogs/Dialog.d.ts +1 -1
  37. package/dist/types/src/components/Dialogs/Dialog.d.ts.map +1 -1
  38. package/dist/types/src/components/Dialogs/Dialog.stories.d.ts.map +1 -1
  39. package/dist/types/src/components/ElevationProvider/ElevationProvider.d.ts.map +1 -1
  40. package/dist/types/src/components/Input/Input.d.ts +2 -2
  41. package/dist/types/src/components/Input/Input.d.ts.map +1 -1
  42. package/dist/types/src/components/Input/Input.stories.d.ts +2 -2
  43. package/dist/types/src/components/Input/Input.stories.d.ts.map +1 -1
  44. package/dist/types/src/components/Link/Link.stories.d.ts.map +1 -1
  45. package/dist/types/src/components/Lists/List.d.ts +2 -2
  46. package/dist/types/src/components/Lists/List.d.ts.map +1 -1
  47. package/dist/types/src/components/Lists/List.stories.d.ts.map +1 -1
  48. package/dist/types/src/components/Lists/Tree.d.ts +1 -1
  49. package/dist/types/src/components/Lists/Tree.d.ts.map +1 -1
  50. package/dist/types/src/components/Lists/Tree.stories.d.ts.map +1 -1
  51. package/dist/types/src/components/Lists/Treegrid.d.ts +1 -1
  52. package/dist/types/src/components/Lists/Treegrid.d.ts.map +1 -1
  53. package/dist/types/src/components/Lists/Treegrid.stories.d.ts.map +1 -1
  54. package/dist/types/src/components/Main/Main.d.ts +1 -1
  55. package/dist/types/src/components/Main/Main.d.ts.map +1 -1
  56. package/dist/types/src/components/Main/Main.stories.d.ts.map +1 -1
  57. package/dist/types/src/components/Menus/ContextMenu.stories.d.ts.map +1 -1
  58. package/dist/types/src/components/Menus/DropdownMenu.d.ts +1 -1
  59. package/dist/types/src/components/Menus/DropdownMenu.d.ts.map +1 -1
  60. package/dist/types/src/components/Menus/DropdownMenu.stories.d.ts.map +1 -1
  61. package/dist/types/src/components/Message/Message.d.ts +1 -1
  62. package/dist/types/src/components/Message/Message.d.ts.map +1 -1
  63. package/dist/types/src/components/Message/Message.stories.d.ts.map +1 -1
  64. package/dist/types/src/components/Popover/Popover.d.ts +1 -1
  65. package/dist/types/src/components/Popover/Popover.d.ts.map +1 -1
  66. package/dist/types/src/components/Popover/Popover.stories.d.ts.map +1 -1
  67. package/dist/types/src/components/ScrollArea/ScrollArea.d.ts +1 -1
  68. package/dist/types/src/components/ScrollArea/ScrollArea.d.ts.map +1 -1
  69. package/dist/types/src/components/ScrollArea/ScrollArea.stories.d.ts.map +1 -1
  70. package/dist/types/src/components/Select/Select.stories.d.ts.map +1 -1
  71. package/dist/types/src/components/Status/Status.stories.d.ts.map +1 -1
  72. package/dist/types/src/components/Tag/Tag.stories.d.ts.map +1 -1
  73. package/dist/types/src/components/ThemeProvider/ThemeProvider.d.ts +1 -1
  74. package/dist/types/src/components/ThemeProvider/ThemeProvider.d.ts.map +1 -1
  75. package/dist/types/src/components/ThemeProvider/TranslationsProvider.d.ts +1 -1
  76. package/dist/types/src/components/ThemeProvider/TranslationsProvider.d.ts.map +1 -1
  77. package/dist/types/src/components/Toast/Toast.d.ts +1 -1
  78. package/dist/types/src/components/Toast/Toast.d.ts.map +1 -1
  79. package/dist/types/src/components/Toast/Toast.stories.d.ts.map +1 -1
  80. package/dist/types/src/components/Toolbar/Toolbar.d.ts +1 -1
  81. package/dist/types/src/components/Toolbar/Toolbar.d.ts.map +1 -1
  82. package/dist/types/src/components/Toolbar/Toolbar.stories.d.ts.map +1 -1
  83. package/dist/types/src/components/Tooltip/Tooltip.d.ts +1 -1
  84. package/dist/types/src/components/Tooltip/Tooltip.d.ts.map +1 -1
  85. package/dist/types/src/components/Tooltip/Tooltip.stories.d.ts.map +1 -1
  86. package/dist/types/src/playground/Custom.stories.d.ts +1 -1
  87. package/dist/types/src/playground/Custom.stories.d.ts.map +1 -1
  88. package/dist/types/tsconfig.tsbuildinfo +1 -1
  89. package/package.json +15 -13
  90. package/src/components/Avatars/Avatar.stories.tsx +2 -1
  91. package/src/components/Avatars/Avatar.tsx +3 -3
  92. package/src/components/Avatars/AvatarGroup.stories.tsx +2 -1
  93. package/src/components/Breadcrumb/Breadcrumb.stories.tsx +2 -1
  94. package/src/components/Breadcrumb/Breadcrumb.tsx +1 -1
  95. package/src/components/Buttons/Button.stories.tsx +3 -2
  96. package/src/components/Buttons/IconButton.stories.tsx +2 -1
  97. package/src/components/Buttons/IconButton.tsx +2 -1
  98. package/src/components/Buttons/Toggle.stories.tsx +2 -1
  99. package/src/components/Buttons/ToggleGroup.stories.tsx +2 -1
  100. package/src/components/Buttons/ToggleGroup.tsx +3 -3
  101. package/src/components/Clipboard/ClipboardProvider.tsx +1 -1
  102. package/src/components/Clipboard/CopyButton.tsx +2 -1
  103. package/src/components/DensityProvider/DensityProvider.tsx +1 -1
  104. package/src/components/Dialogs/AlertDialog.stories.tsx +2 -1
  105. package/src/components/Dialogs/AlertDialog.tsx +13 -13
  106. package/src/components/Dialogs/Dialog.stories.tsx +2 -1
  107. package/src/components/Dialogs/Dialog.tsx +13 -13
  108. package/src/components/ElevationProvider/ElevationProvider.tsx +1 -1
  109. package/src/components/Input/Input.stories.tsx +5 -4
  110. package/src/components/Input/Input.tsx +13 -13
  111. package/src/components/Link/Link.stories.tsx +2 -1
  112. package/src/components/Lists/List.stories.tsx +3 -2
  113. package/src/components/Lists/List.tsx +11 -10
  114. package/src/components/Lists/Tree.stories.tsx +2 -1
  115. package/src/components/Lists/Tree.tsx +4 -3
  116. package/src/components/Lists/TreeDropIndicator.tsx +1 -1
  117. package/src/components/Lists/Treegrid.stories.tsx +2 -1
  118. package/src/components/Lists/Treegrid.tsx +2 -2
  119. package/src/components/Main/Main.stories.tsx +2 -1
  120. package/src/components/Main/Main.tsx +7 -6
  121. package/src/components/Menus/ContextMenu.stories.tsx +2 -1
  122. package/src/components/Menus/DropdownMenu.stories.tsx +2 -1
  123. package/src/components/Menus/DropdownMenu.tsx +8 -8
  124. package/src/components/Message/Message.stories.tsx +2 -1
  125. package/src/components/Message/Message.tsx +1 -1
  126. package/src/components/Popover/Popover.stories.tsx +2 -1
  127. package/src/components/Popover/Popover.tsx +7 -7
  128. package/src/components/ScrollArea/ScrollArea.stories.tsx +2 -1
  129. package/src/components/ScrollArea/ScrollArea.tsx +4 -4
  130. package/src/components/Select/Select.stories.tsx +2 -1
  131. package/src/components/Status/Status.stories.tsx +2 -1
  132. package/src/components/Tag/Tag.stories.tsx +2 -1
  133. package/src/components/ThemeProvider/ThemeProvider.tsx +3 -2
  134. package/src/components/ThemeProvider/TranslationsProvider.tsx +3 -3
  135. package/src/components/Toast/Toast.stories.tsx +2 -1
  136. package/src/components/Toast/Toast.tsx +9 -9
  137. package/src/components/Toolbar/Toolbar.stories.tsx +2 -1
  138. package/src/components/Toolbar/Toolbar.tsx +2 -2
  139. package/src/components/Tooltip/Tooltip.stories.tsx +2 -1
  140. package/src/components/Tooltip/Tooltip.tsx +3 -3
  141. package/src/playground/Controls.stories.tsx +1 -1
  142. package/src/playground/Custom.stories.tsx +2 -2
  143. package/src/testing/decorators/withTheme.ts +1 -1
  144. package/dist/lib/browser/chunk-2COVUP44.mjs.map +0 -7
  145. package/dist/lib/node-esm/chunk-GHXHND5V.mjs.map +0 -7
@@ -3,32 +3,33 @@
3
3
  //
4
4
 
5
5
  import { createContext } from '@radix-ui/react-context';
6
- import { Root as DialogRoot, DialogContent, DialogTitle } from '@radix-ui/react-dialog';
6
+ import { DialogContent, Root as DialogRoot, DialogTitle } from '@radix-ui/react-dialog';
7
7
  import { Primitive } from '@radix-ui/react-primitive';
8
8
  import { Slot } from '@radix-ui/react-slot';
9
9
  import { useControllableState } from '@radix-ui/react-use-controllable-state';
10
10
  import React, {
11
11
  type ComponentPropsWithRef,
12
+ type ComponentPropsWithoutRef,
12
13
  type Dispatch,
13
- forwardRef,
14
+ type KeyboardEvent,
14
15
  type PropsWithChildren,
15
16
  type SetStateAction,
17
+ forwardRef,
16
18
  useCallback,
17
19
  useEffect,
18
20
  useRef,
19
21
  useState,
20
- type KeyboardEvent,
21
- type ComponentPropsWithoutRef,
22
22
  } from 'react';
23
23
 
24
24
  import { log } from '@dxos/log';
25
- import { useMediaQuery, useForwardedRef } from '@dxos/react-hooks';
25
+ import { useForwardedRef, useMediaQuery } from '@dxos/react-hooks';
26
26
 
27
- import { useSwipeToDismiss } from './useSwipeToDismiss';
28
27
  import { useThemeContext } from '../../hooks';
29
28
  import { type ThemedClassName } from '../../util';
30
29
  import { type Label, toLocalizedString, useTranslation } from '../ThemeProvider';
31
30
 
31
+ import { useSwipeToDismiss } from './useSwipeToDismiss';
32
+
32
33
  const MAIN_ROOT_NAME = 'MainRoot';
33
34
  const NAVIGATION_SIDEBAR_NAME = 'NavigationSidebar';
34
35
  const COMPLEMENTARY_SIDEBAR_NAME = 'ComplementarySidebar';
@@ -6,9 +6,10 @@ import '@dxos-theme';
6
6
 
7
7
  import React from 'react';
8
8
 
9
- import { ContextMenu } from './ContextMenu';
10
9
  import { withTheme } from '../../testing';
11
10
 
11
+ import { ContextMenu } from './ContextMenu';
12
+
12
13
  const DefaultStory = () => {
13
14
  // NOTE(thure): Since long-tap will select text in some OSs, apply `select-none` to `ContextMenu.Trigger` where possible.
14
15
  return (
@@ -6,10 +6,11 @@ import '@dxos-theme';
6
6
 
7
7
  import React, { useRef, useState } from 'react';
8
8
 
9
- import { DropdownMenu } from './DropdownMenu';
10
9
  import { withTheme } from '../../testing';
11
10
  import { Button } from '../Buttons';
12
11
 
12
+ import { DropdownMenu } from './DropdownMenu';
13
+
13
14
  const DefaultStory = () => {
14
15
  return (
15
16
  <DropdownMenu.Root defaultOpen>
@@ -15,17 +15,17 @@ import { Primitive } from '@radix-ui/react-primitive';
15
15
  import { Slot } from '@radix-ui/react-slot';
16
16
  import { useControllableState } from '@radix-ui/react-use-controllable-state';
17
17
  import React, {
18
- type ReactNode,
19
- type FC,
20
- useRef,
21
- type ElementRef,
22
- useCallback,
23
- type ComponentPropsWithoutRef,
24
- forwardRef,
25
18
  type ComponentPropsWithRef,
26
- useEffect,
19
+ type ComponentPropsWithoutRef,
20
+ type ElementRef,
21
+ type FC,
27
22
  type MutableRefObject,
23
+ type ReactNode,
28
24
  type RefObject,
25
+ forwardRef,
26
+ useCallback,
27
+ useEffect,
28
+ useRef,
29
29
  } from 'react';
30
30
 
31
31
  import { useElevationContext, useThemeContext } from '../../hooks';
@@ -8,9 +8,10 @@ import React from 'react';
8
8
 
9
9
  import { type MessageValence } from '@dxos/react-ui-types';
10
10
 
11
- import { Callout } from './Message';
12
11
  import { withTheme } from '../../testing';
13
12
 
13
+ import { Callout } from './Message';
14
+
14
15
  type StoryProps = {
15
16
  valence: MessageValence;
16
17
  title: string;
@@ -8,7 +8,7 @@ import { Slot } from '@radix-ui/react-slot';
8
8
  import React, { type ComponentPropsWithRef, forwardRef } from 'react';
9
9
 
10
10
  import { useId } from '@dxos/react-hooks';
11
- import { type MessageValence, type Elevation } from '@dxos/react-ui-types';
11
+ import { type Elevation, type MessageValence } from '@dxos/react-ui-types';
12
12
 
13
13
  import { useElevationContext, useThemeContext } from '../../hooks';
14
14
  import { type ThemedClassName } from '../../util';
@@ -8,10 +8,11 @@ import React, { type PropsWithChildren, type ReactNode, useRef, useState } from
8
8
 
9
9
  import { faker } from '@dxos/random';
10
10
 
11
- import { Popover } from './Popover';
12
11
  import { withTheme } from '../../testing';
13
12
  import { Button } from '../Buttons';
14
13
 
14
+ import { Popover } from './Popover';
15
+
15
16
  faker.seed(1234);
16
17
 
17
18
  const DefaultStory = ({ openTrigger, children }: PropsWithChildren<{ openTrigger: ReactNode }>) => {
@@ -22,17 +22,17 @@ import { useControllableState } from '@radix-ui/react-use-controllable-state';
22
22
  import { hideOthers } from 'aria-hidden';
23
23
  import React, {
24
24
  type ComponentPropsWithRef,
25
- forwardRef,
25
+ type ComponentPropsWithoutRef,
26
26
  type ElementRef,
27
- type RefObject,
27
+ type FC,
28
+ type MutableRefObject,
28
29
  type ReactNode,
29
- useRef,
30
+ type RefObject,
31
+ forwardRef,
30
32
  useCallback,
31
- type ComponentPropsWithoutRef,
32
- type FC,
33
- useState,
34
33
  useEffect,
35
- type MutableRefObject,
34
+ useRef,
35
+ useState,
36
36
  } from 'react';
37
37
  import { RemoveScroll } from 'react-remove-scroll';
38
38
 
@@ -9,9 +9,10 @@ import React, { type PropsWithChildren } from 'react';
9
9
  import { faker } from '@dxos/random';
10
10
  import { activeSurface, surfaceShadow } from '@dxos/react-ui-theme';
11
11
 
12
- import { ScrollArea } from './ScrollArea';
13
12
  import { withTheme } from '../../testing';
14
13
 
14
+ import { ScrollArea } from './ScrollArea';
15
+
15
16
  faker.seed(1234);
16
17
 
17
18
  const DefaultStory = ({ children }: PropsWithChildren<{}>) => {
@@ -3,16 +3,16 @@
3
3
  //
4
4
 
5
5
  import {
6
+ Corner as ScrollAreaPrimitiveCorner,
7
+ type ScrollAreaCornerProps as ScrollAreaPrimitiveCornerProps,
6
8
  Root as ScrollAreaPrimitiveRoot,
7
9
  type ScrollAreaProps as ScrollAreaPrimitiveRootProps,
8
- Viewport as ScrollAreaPrimitiveViewport,
9
- type ScrollAreaViewportProps as ScrollAreaPrimitiveViewportProps,
10
10
  Scrollbar as ScrollAreaPrimitiveScrollbar,
11
11
  type ScrollAreaScrollbarProps as ScrollAreaPrimitiveScrollbarProps,
12
12
  Thumb as ScrollAreaPrimitiveThumb,
13
13
  type ScrollAreaThumbProps as ScrollAreaPrimitiveThumbProps,
14
- Corner as ScrollAreaPrimitiveCorner,
15
- type ScrollAreaCornerProps as ScrollAreaPrimitiveCornerProps,
14
+ Viewport as ScrollAreaPrimitiveViewport,
15
+ type ScrollAreaViewportProps as ScrollAreaPrimitiveViewportProps,
16
16
  } from '@radix-ui/react-scroll-area';
17
17
  import React, { forwardRef } from 'react';
18
18
 
@@ -9,9 +9,10 @@ import React, { useState } from 'react';
9
9
 
10
10
  import { faker } from '@dxos/random';
11
11
 
12
- import { Select } from './Select';
13
12
  import { withSurfaceVariantsLayout, withTheme } from '../../testing';
14
13
 
14
+ import { Select } from './Select';
15
+
15
16
  faker.seed(1234);
16
17
 
17
18
  type ItemProps = { id: string; text: string };
@@ -6,9 +6,10 @@ import '@dxos-theme';
6
6
 
7
7
  import React from 'react';
8
8
 
9
- import { Status } from './Status';
10
9
  import { withTheme } from '../../testing';
11
10
 
11
+ import { Status } from './Status';
12
+
12
13
  export default {
13
14
  title: 'ui/react-ui-core/Status',
14
15
  component: Status,
@@ -7,9 +7,10 @@ import { hues } from '@dxos/react-ui-theme';
7
7
  import '@dxos-theme';
8
8
  import { type ChromaticPalette, type MessageValence } from '@dxos/react-ui-types';
9
9
 
10
- import { Tag } from './Tag';
11
10
  import { withTheme } from '../../testing';
12
11
 
12
+ import { Tag } from './Tag';
13
+
13
14
  const palettes = ['neutral', 'success', 'info', 'warning', 'error', ...hues] as (ChromaticPalette | MessageValence)[];
14
15
 
15
16
  export default {
@@ -3,16 +3,17 @@
3
3
  //
4
4
 
5
5
  import { createKeyborg } from 'keyborg';
6
- import React, { createContext, type PropsWithChildren, useEffect, useMemo } from 'react';
6
+ import React, { type PropsWithChildren, createContext, useEffect, useMemo } from 'react';
7
7
 
8
8
  import { type Density, type Elevation, type ThemeFunction } from '@dxos/react-ui-types';
9
9
 
10
- import { TranslationsProvider, type TranslationsProviderProps } from './TranslationsProvider';
11
10
  import { type SafeAreaPadding, useSafeArea } from '../../hooks';
12
11
  import { hasIosKeyboard } from '../../util';
13
12
  import { DensityProvider } from '../DensityProvider';
14
13
  import { ElevationProvider } from '../ElevationProvider';
15
14
 
15
+ import { TranslationsProvider, type TranslationsProviderProps } from './TranslationsProvider';
16
+
16
17
  export type ThemeMode = 'dark' | 'light';
17
18
 
18
19
  export type ThemeContextValue = {
@@ -2,9 +2,9 @@
2
2
  // Copyright 2022 DXOS.org
3
3
  //
4
4
 
5
- import { enUS as dtLocaleEnUs, type Locale } from 'date-fns/locale';
6
- import i18Next, { type TFunction, type Resource } from 'i18next';
7
- import React, { type ReactNode, useEffect, createContext, useState, Suspense, useContext } from 'react';
5
+ import { type Locale, enUS as dtLocaleEnUs } from 'date-fns/locale';
6
+ import i18Next, { type Resource, type TFunction } from 'i18next';
7
+ import React, { type ReactNode, Suspense, createContext, useContext, useEffect, useState } from 'react';
8
8
  import { initReactI18next, useTranslation as useI18NextTranslation } from 'react-i18next';
9
9
 
10
10
  const initialLng = 'en-US';
@@ -6,10 +6,11 @@ import '@dxos-theme';
6
6
 
7
7
  import React, { type ReactNode, useState } from 'react';
8
8
 
9
- import { Toast } from './Toast';
10
9
  import { withTheme } from '../../testing';
11
10
  import { Button } from '../Buttons';
12
11
 
12
+ import { Toast } from './Toast';
13
+
13
14
  type ActionTriggerProps = { altText: string; trigger: ReactNode };
14
15
 
15
16
  type StorybookToastProps = Partial<{
@@ -5,22 +5,22 @@
5
5
  import { Primitive } from '@radix-ui/react-primitive';
6
6
  import { Slot } from '@radix-ui/react-slot';
7
7
  import {
8
+ ToastAction as ToastActionPrimitive,
9
+ type ToastActionProps as ToastActionPrimitiveProps,
10
+ ToastClose as ToastClosePrimitive,
11
+ type ToastCloseProps as ToastClosePrimitiveProps,
12
+ ToastDescription as ToastDescriptionPrimitive,
13
+ type ToastDescriptionProps as ToastDescriptionPrimitiveProps,
8
14
  ToastProvider as ToastProviderPrimitive,
9
15
  type ToastProviderProps as ToastProviderPrimitiveProps,
10
- ToastViewport as ToastViewportPrimitive,
11
- type ToastViewportProps as ToastViewportPrimitiveProps,
12
16
  Root as ToastRootPrimitive,
13
17
  type ToastProps as ToastRootPrimitiveProps,
14
18
  ToastTitle as ToastTitlePrimitive,
15
19
  type ToastTitleProps as ToastTitlePrimitiveProps,
16
- ToastDescription as ToastDescriptionPrimitive,
17
- type ToastDescriptionProps as ToastDescriptionPrimitiveProps,
18
- ToastAction as ToastActionPrimitive,
19
- type ToastActionProps as ToastActionPrimitiveProps,
20
- ToastClose as ToastClosePrimitive,
21
- type ToastCloseProps as ToastClosePrimitiveProps,
20
+ ToastViewport as ToastViewportPrimitive,
21
+ type ToastViewportProps as ToastViewportPrimitiveProps,
22
22
  } from '@radix-ui/react-toast';
23
- import React, { type ComponentPropsWithRef, forwardRef, type FunctionComponent } from 'react';
23
+ import React, { type ComponentPropsWithRef, type FunctionComponent, forwardRef } from 'react';
24
24
 
25
25
  import { useThemeContext } from '../../hooks';
26
26
  import { type ThemedClassName } from '../../util';
@@ -6,12 +6,13 @@ import '@dxos-theme';
6
6
 
7
7
  import React from 'react';
8
8
 
9
- import { Toolbar } from './Toolbar';
10
9
  import { withTheme } from '../../testing';
11
10
  import { Toggle } from '../Buttons';
12
11
  import { Icon } from '../Icon';
13
12
  import { Select } from '../Select';
14
13
 
14
+ import { Toolbar } from './Toolbar';
15
+
15
16
  type StorybookToolbarProps = {};
16
17
 
17
18
  const DefaultStory = (props: StorybookToolbarProps) => {
@@ -13,11 +13,11 @@ import {
13
13
  ButtonGroup,
14
14
  type ButtonGroupProps,
15
15
  type ButtonProps,
16
+ IconButton,
17
+ type IconButtonProps,
16
18
  Toggle,
17
19
  type ToggleGroupItemProps,
18
20
  type ToggleProps,
19
- IconButton,
20
- type IconButtonProps,
21
21
  } from '../Buttons';
22
22
  import { Link, type LinkProps } from '../Link';
23
23
  import { Separator, type SeparatorProps } from '../Separator';
@@ -7,10 +7,11 @@ import React from 'react';
7
7
 
8
8
  import { faker } from '@dxos/random';
9
9
 
10
- import { Tooltip } from './Tooltip';
11
10
  import { withTheme } from '../../testing';
12
11
  import { Button } from '../Buttons';
13
12
 
13
+ import { Tooltip } from './Tooltip';
14
+
14
15
  type StoryProps = {
15
16
  tooltips: { label: string; content: string }[];
16
17
  defaultOpen?: boolean;
@@ -11,7 +11,7 @@ import type { Scope } from '@radix-ui/react-context';
11
11
  import { DismissableLayer } from '@radix-ui/react-dismissable-layer';
12
12
  import { useId } from '@radix-ui/react-id';
13
13
  import * as PopperPrimitive from '@radix-ui/react-popper';
14
- import { createPopperScope, type PopperAnchorProps } from '@radix-ui/react-popper';
14
+ import { type PopperAnchorProps, createPopperScope } from '@radix-ui/react-popper';
15
15
  import { Portal as PortalPrimitive } from '@radix-ui/react-portal';
16
16
  import { Presence } from '@radix-ui/react-presence';
17
17
  import { Primitive } from '@radix-ui/react-primitive';
@@ -23,10 +23,10 @@ import React, {
23
23
  type ComponentPropsWithoutRef,
24
24
  type ElementRef,
25
25
  type FC,
26
- type SyntheticEvent,
27
- forwardRef,
28
26
  type MutableRefObject,
29
27
  type ReactNode,
28
+ type SyntheticEvent,
29
+ forwardRef,
30
30
  useCallback,
31
31
  useEffect,
32
32
  useMemo,
@@ -7,7 +7,7 @@ import '@dxos-theme';
7
7
  import React, { useState } from 'react';
8
8
 
9
9
  import { Icon, Input, Select, Toggle, Toolbar } from '../components';
10
- import { withTheme, withSurfaceVariantsLayout } from '../testing';
10
+ import { withSurfaceVariantsLayout, withTheme } from '../testing';
11
11
 
12
12
  const DefaultStory = () => {
13
13
  const [checked, setChecked] = useState<boolean>(false);
@@ -4,10 +4,10 @@
4
4
 
5
5
  import '@dxos-theme';
6
6
 
7
- import { type StoryObj, type Meta } from '@storybook/react-vite';
7
+ import { type Meta, type StoryObj } from '@storybook/react-vite';
8
8
  import React from 'react';
9
9
 
10
- import { Button, IconButton, type ButtonProps, Tooltip } from '../components';
10
+ import { Button, type ButtonProps, IconButton, Tooltip } from '../components';
11
11
  import { withTheme } from '../testing';
12
12
 
13
13
  // TODO(burdon): Change density to 3 or 4 sizes: (large, medium, small; or 22, 28, 32, 40)
@@ -3,7 +3,7 @@
3
3
  //
4
4
 
5
5
  import { type Decorator, type StoryContext, type StoryFn } from '@storybook/react';
6
- import { useEffect, createElement } from 'react';
6
+ import { createElement, useEffect } from 'react';
7
7
 
8
8
  import { defaultTx } from '@dxos/react-ui-theme';
9
9