@dxos/react-ui 0.8.4-main.28f8d3d → 0.8.4-main.2c6827d

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 (253) hide show
  1. package/dist/lib/browser/{chunk-BKNGMGOK.mjs → chunk-N5GDJTT2.mjs} +640 -306
  2. package/dist/lib/browser/chunk-N5GDJTT2.mjs.map +7 -0
  3. package/dist/lib/browser/index.mjs +12 -1
  4. package/dist/lib/browser/index.mjs.map +2 -2
  5. package/dist/lib/browser/meta.json +1 -1
  6. package/dist/lib/browser/testing/index.mjs +57 -29
  7. package/dist/lib/browser/testing/index.mjs.map +4 -4
  8. package/dist/lib/node-esm/{chunk-D2HZS6F4.mjs → chunk-SP7VQH72.mjs} +640 -306
  9. package/dist/lib/node-esm/chunk-SP7VQH72.mjs.map +7 -0
  10. package/dist/lib/node-esm/index.mjs +12 -1
  11. package/dist/lib/node-esm/index.mjs.map +2 -2
  12. package/dist/lib/node-esm/meta.json +1 -1
  13. package/dist/lib/node-esm/testing/index.mjs +57 -29
  14. package/dist/lib/node-esm/testing/index.mjs.map +4 -4
  15. package/dist/types/src/components/Avatars/Avatar.stories.d.ts +5 -31
  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 +5 -11
  18. package/dist/types/src/components/Avatars/AvatarGroup.stories.d.ts.map +1 -1
  19. package/dist/types/src/components/Breadcrumb/Breadcrumb.stories.d.ts +8 -20
  20. package/dist/types/src/components/Breadcrumb/Breadcrumb.stories.d.ts.map +1 -1
  21. package/dist/types/src/components/{Buttons → Button}/Button.d.ts +1 -1
  22. package/dist/types/src/components/Button/Button.d.ts.map +1 -0
  23. package/dist/types/src/components/Button/Button.stories.d.ts +17 -0
  24. package/dist/types/src/components/Button/Button.stories.d.ts.map +1 -0
  25. package/dist/types/src/components/{Buttons → Button}/IconButton.d.ts +1 -2
  26. package/dist/types/src/components/Button/IconButton.d.ts.map +1 -0
  27. package/dist/types/src/components/Button/IconButton.stories.d.ts +13 -0
  28. package/dist/types/src/components/Button/IconButton.stories.d.ts.map +1 -0
  29. package/dist/types/src/components/Button/Toggle.d.ts.map +1 -0
  30. package/dist/types/src/components/Button/Toggle.stories.d.ts +16 -0
  31. package/dist/types/src/components/Button/Toggle.stories.d.ts.map +1 -0
  32. package/dist/types/src/components/{Buttons → Button}/ToggleGroup.d.ts +6 -7
  33. package/dist/types/src/components/Button/ToggleGroup.d.ts.map +1 -0
  34. package/dist/types/src/components/Button/ToggleGroup.stories.d.ts +27 -0
  35. package/dist/types/src/components/Button/ToggleGroup.stories.d.ts.map +1 -0
  36. package/dist/types/src/components/Button/index.d.ts.map +1 -0
  37. package/dist/types/src/components/Clipboard/CopyButton.d.ts +1 -1
  38. package/dist/types/src/components/Clipboard/CopyButton.d.ts.map +1 -1
  39. package/dist/types/src/components/Dialog/AlertDialog.d.ts.map +1 -0
  40. package/dist/types/src/components/Dialog/AlertDialog.stories.d.ts +11 -0
  41. package/dist/types/src/components/Dialog/AlertDialog.stories.d.ts.map +1 -0
  42. package/dist/types/src/components/Dialog/Dialog.d.ts.map +1 -0
  43. package/dist/types/src/components/Dialog/Dialog.stories.d.ts +25 -0
  44. package/dist/types/src/components/Dialog/Dialog.stories.d.ts.map +1 -0
  45. package/dist/types/src/components/Dialog/index.d.ts.map +1 -0
  46. package/dist/types/src/components/Icon/Icon.d.ts +1 -1
  47. package/dist/types/src/components/Icon/Icon.d.ts.map +1 -1
  48. package/dist/types/src/components/Icon/Icon.stories.d.ts +17 -0
  49. package/dist/types/src/components/Icon/Icon.stories.d.ts.map +1 -0
  50. package/dist/types/src/components/Input/Input.d.ts +0 -2
  51. package/dist/types/src/components/Input/Input.d.ts.map +1 -1
  52. package/dist/types/src/components/Input/Input.stories.d.ts +9 -10
  53. package/dist/types/src/components/Input/Input.stories.d.ts.map +1 -1
  54. package/dist/types/src/components/Link/Link.stories.d.ts +8 -8
  55. package/dist/types/src/components/Link/Link.stories.d.ts.map +1 -1
  56. package/dist/types/src/components/List/List.d.ts.map +1 -0
  57. package/dist/types/src/components/List/List.stories.d.ts +14 -0
  58. package/dist/types/src/components/List/List.stories.d.ts.map +1 -0
  59. package/dist/types/src/components/List/ListDropIndicator.d.ts.map +1 -0
  60. package/dist/types/src/components/List/Tree.d.ts.map +1 -0
  61. package/dist/types/src/components/List/Tree.stories.d.ts +15 -0
  62. package/dist/types/src/components/List/Tree.stories.d.ts.map +1 -0
  63. package/dist/types/src/components/List/TreeDropIndicator.d.ts.map +1 -0
  64. package/dist/types/src/components/{Lists → List}/Treegrid.d.ts.map +1 -1
  65. package/dist/types/src/components/List/Treegrid.stories.d.ts +12 -0
  66. package/dist/types/src/components/List/Treegrid.stories.d.ts.map +1 -0
  67. package/dist/types/src/components/List/index.d.ts.map +1 -0
  68. package/dist/types/src/components/Main/Main.d.ts +9 -18
  69. package/dist/types/src/components/Main/Main.d.ts.map +1 -1
  70. package/dist/types/src/components/Main/Main.stories.d.ts +6 -7
  71. package/dist/types/src/components/Main/Main.stories.d.ts.map +1 -1
  72. package/dist/types/src/components/Menus/ContextMenu.d.ts.map +1 -1
  73. package/dist/types/src/components/Menus/ContextMenu.stories.d.ts +6 -44
  74. package/dist/types/src/components/Menus/ContextMenu.stories.d.ts.map +1 -1
  75. package/dist/types/src/components/Menus/DropdownMenu.d.ts +7 -7
  76. package/dist/types/src/components/Menus/DropdownMenu.d.ts.map +1 -1
  77. package/dist/types/src/components/Menus/DropdownMenu.stories.d.ts +6 -41
  78. package/dist/types/src/components/Menus/DropdownMenu.stories.d.ts.map +1 -1
  79. package/dist/types/src/components/Message/Message.stories.d.ts +7 -16
  80. package/dist/types/src/components/Message/Message.stories.d.ts.map +1 -1
  81. package/dist/types/src/components/Popover/Popover.d.ts +1 -1
  82. package/dist/types/src/components/Popover/Popover.d.ts.map +1 -1
  83. package/dist/types/src/components/Popover/Popover.stories.d.ts +6 -34
  84. package/dist/types/src/components/Popover/Popover.stories.d.ts.map +1 -1
  85. package/dist/types/src/components/ScrollArea/ScrollArea.stories.d.ts +6 -32
  86. package/dist/types/src/components/ScrollArea/ScrollArea.stories.d.ts.map +1 -1
  87. package/dist/types/src/components/ScrollContainer/ScrollContainer.d.ts +37 -0
  88. package/dist/types/src/components/ScrollContainer/ScrollContainer.d.ts.map +1 -0
  89. package/dist/types/src/components/ScrollContainer/ScrollContainer.stories.d.ts +18 -0
  90. package/dist/types/src/components/ScrollContainer/ScrollContainer.stories.d.ts.map +1 -0
  91. package/dist/types/src/components/ScrollContainer/index.d.ts +2 -0
  92. package/dist/types/src/components/ScrollContainer/index.d.ts.map +1 -0
  93. package/dist/types/src/components/Select/Select.d.ts +1 -1
  94. package/dist/types/src/components/Select/Select.d.ts.map +1 -1
  95. package/dist/types/src/components/Select/Select.stories.d.ts +4 -9
  96. package/dist/types/src/components/Select/Select.stories.d.ts.map +1 -1
  97. package/dist/types/src/components/Status/Status.stories.d.ts +2 -8
  98. package/dist/types/src/components/Status/Status.stories.d.ts.map +1 -1
  99. package/dist/types/src/components/Tag/Tag.stories.d.ts +12 -12
  100. package/dist/types/src/components/Tag/Tag.stories.d.ts.map +1 -1
  101. package/dist/types/src/components/Toast/Toast.stories.d.ts +6 -44
  102. package/dist/types/src/components/Toast/Toast.stories.d.ts.map +1 -1
  103. package/dist/types/src/components/Toolbar/Toolbar.d.ts +12 -12
  104. package/dist/types/src/components/Toolbar/Toolbar.d.ts.map +1 -1
  105. package/dist/types/src/components/Toolbar/Toolbar.stories.d.ts +6 -50
  106. package/dist/types/src/components/Toolbar/Toolbar.stories.d.ts.map +1 -1
  107. package/dist/types/src/components/Tooltip/Tooltip.d.ts +1 -3
  108. package/dist/types/src/components/Tooltip/Tooltip.d.ts.map +1 -1
  109. package/dist/types/src/components/Tooltip/Tooltip.stories.d.ts +8 -61
  110. package/dist/types/src/components/Tooltip/Tooltip.stories.d.ts.map +1 -1
  111. package/dist/types/src/components/index.d.ts +4 -3
  112. package/dist/types/src/components/index.d.ts.map +1 -1
  113. package/dist/types/src/hooks/useSafeArea.d.ts.map +1 -1
  114. package/dist/types/src/hooks/useVisualViewport.d.ts +2 -2
  115. package/dist/types/src/hooks/useVisualViewport.d.ts.map +1 -1
  116. package/dist/types/src/index.d.ts +1 -1
  117. package/dist/types/src/index.d.ts.map +1 -1
  118. package/dist/types/src/playground/Controls.stories.d.ts +5 -9
  119. package/dist/types/src/playground/Controls.stories.d.ts.map +1 -1
  120. package/dist/types/src/playground/Custom.stories.d.ts +12 -4
  121. package/dist/types/src/playground/Custom.stories.d.ts.map +1 -1
  122. package/dist/types/src/playground/Typography.stories.d.ts +5 -11
  123. package/dist/types/src/playground/Typography.stories.d.ts.map +1 -1
  124. package/dist/types/src/testing/decorators/index.d.ts +2 -1
  125. package/dist/types/src/testing/decorators/index.d.ts.map +1 -1
  126. package/dist/types/src/testing/decorators/withLayout.d.ts +15 -0
  127. package/dist/types/src/testing/decorators/withLayout.d.ts.map +1 -0
  128. package/dist/types/src/testing/decorators/{withSurfaceVariantsLayout.d.ts → withLayoutVariants.d.ts} +2 -2
  129. package/dist/types/src/testing/decorators/withLayoutVariants.d.ts.map +1 -0
  130. package/dist/types/src/testing/decorators/withTheme.d.ts +3 -0
  131. package/dist/types/src/testing/decorators/withTheme.d.ts.map +1 -1
  132. package/dist/types/src/util/domino.d.ts +18 -0
  133. package/dist/types/src/util/domino.d.ts.map +1 -0
  134. package/dist/types/src/util/index.d.ts +2 -0
  135. package/dist/types/src/util/index.d.ts.map +1 -1
  136. package/dist/types/src/util/usePx.d.ts +8 -0
  137. package/dist/types/src/util/usePx.d.ts.map +1 -0
  138. package/dist/types/tsconfig.tsbuildinfo +1 -1
  139. package/package.json +24 -23
  140. package/src/components/Avatars/Avatar.stories.tsx +17 -9
  141. package/src/components/Avatars/AvatarGroup.stories.tsx +8 -5
  142. package/src/components/Breadcrumb/Breadcrumb.stories.tsx +16 -12
  143. package/src/components/{Buttons → Button}/Button.stories.tsx +5 -7
  144. package/src/components/{Buttons → Button}/IconButton.stories.tsx +9 -7
  145. package/src/components/{Buttons → Button}/IconButton.tsx +14 -13
  146. package/src/components/{Buttons → Button}/Toggle.stories.tsx +13 -10
  147. package/src/components/{Buttons → Button}/ToggleGroup.stories.tsx +8 -6
  148. package/src/components/{Buttons → Button}/ToggleGroup.tsx +14 -1
  149. package/src/components/Clipboard/CopyButton.tsx +1 -1
  150. package/src/components/{Dialogs → Dialog}/AlertDialog.stories.tsx +13 -11
  151. package/src/components/{Dialogs → Dialog}/Dialog.stories.tsx +15 -14
  152. package/src/components/Icon/Icon.stories.tsx +113 -0
  153. package/src/components/Icon/Icon.tsx +1 -1
  154. package/src/components/Input/Input.stories.tsx +8 -11
  155. package/src/components/Input/Input.tsx +3 -3
  156. package/src/components/Link/Link.stories.tsx +8 -5
  157. package/src/components/{Lists → List}/List.stories.tsx +13 -12
  158. package/src/components/{Lists → List}/List.tsx +5 -2
  159. package/src/components/{Lists → List}/ListDropIndicator.tsx +1 -1
  160. package/src/components/{Lists → List}/Tree.stories.tsx +9 -7
  161. package/src/components/{Lists → List}/Treegrid.stories.tsx +10 -5
  162. package/src/components/{Lists → List}/Treegrid.tsx +57 -16
  163. package/src/components/Main/Main.stories.tsx +15 -8
  164. package/src/components/Main/Main.tsx +36 -22
  165. package/src/components/Menus/ContextMenu.stories.tsx +9 -7
  166. package/src/components/Menus/ContextMenu.tsx +1 -0
  167. package/src/components/Menus/DropdownMenu.stories.tsx +10 -8
  168. package/src/components/Menus/DropdownMenu.tsx +37 -8
  169. package/src/components/Message/Message.stories.tsx +9 -6
  170. package/src/components/Popover/Popover.stories.tsx +10 -8
  171. package/src/components/Popover/Popover.tsx +22 -5
  172. package/src/components/ScrollArea/ScrollArea.stories.tsx +10 -8
  173. package/src/components/ScrollContainer/ScrollContainer.stories.tsx +69 -0
  174. package/src/components/ScrollContainer/ScrollContainer.tsx +231 -0
  175. package/src/components/ScrollContainer/index.ts +5 -0
  176. package/src/components/Select/Select.stories.tsx +14 -12
  177. package/src/components/Select/Select.tsx +9 -8
  178. package/src/components/Status/Status.stories.tsx +7 -5
  179. package/src/components/Tag/Tag.stories.tsx +16 -8
  180. package/src/components/Toast/Toast.stories.tsx +10 -8
  181. package/src/components/Toolbar/Toolbar.stories.tsx +12 -11
  182. package/src/components/Toolbar/Toolbar.tsx +18 -6
  183. package/src/components/Tooltip/Tooltip.stories.tsx +14 -11
  184. package/src/components/Tooltip/Tooltip.tsx +2 -1
  185. package/src/components/index.ts +4 -3
  186. package/src/hooks/useSafeArea.ts +3 -2
  187. package/src/hooks/useVisualViewport.ts +4 -4
  188. package/src/index.ts +1 -1
  189. package/src/playground/Controls.stories.tsx +12 -8
  190. package/src/playground/Custom.stories.tsx +11 -22
  191. package/src/playground/Typography.stories.tsx +8 -6
  192. package/src/testing/decorators/index.ts +2 -1
  193. package/src/testing/decorators/withLayout.tsx +56 -0
  194. package/src/testing/decorators/{withSurfaceVariantsLayout.tsx → withLayoutVariants.tsx} +2 -2
  195. package/src/testing/decorators/withTheme.tsx +31 -0
  196. package/src/util/domino.ts +53 -0
  197. package/src/util/index.ts +2 -0
  198. package/src/util/usePx.ts +61 -0
  199. package/dist/lib/browser/chunk-BKNGMGOK.mjs.map +0 -7
  200. package/dist/lib/node-esm/chunk-D2HZS6F4.mjs.map +0 -7
  201. package/dist/types/src/components/Buttons/Button.d.ts.map +0 -1
  202. package/dist/types/src/components/Buttons/Button.stories.d.ts +0 -12
  203. package/dist/types/src/components/Buttons/Button.stories.d.ts.map +0 -1
  204. package/dist/types/src/components/Buttons/IconButton.d.ts.map +0 -1
  205. package/dist/types/src/components/Buttons/IconButton.stories.d.ts +0 -22
  206. package/dist/types/src/components/Buttons/IconButton.stories.d.ts.map +0 -1
  207. package/dist/types/src/components/Buttons/Toggle.d.ts.map +0 -1
  208. package/dist/types/src/components/Buttons/Toggle.stories.d.ts +0 -19
  209. package/dist/types/src/components/Buttons/Toggle.stories.d.ts.map +0 -1
  210. package/dist/types/src/components/Buttons/ToggleGroup.d.ts.map +0 -1
  211. package/dist/types/src/components/Buttons/ToggleGroup.stories.d.ts +0 -39
  212. package/dist/types/src/components/Buttons/ToggleGroup.stories.d.ts.map +0 -1
  213. package/dist/types/src/components/Buttons/index.d.ts.map +0 -1
  214. package/dist/types/src/components/Dialogs/AlertDialog.d.ts.map +0 -1
  215. package/dist/types/src/components/Dialogs/AlertDialog.stories.d.ts +0 -43
  216. package/dist/types/src/components/Dialogs/AlertDialog.stories.d.ts.map +0 -1
  217. package/dist/types/src/components/Dialogs/Dialog.d.ts.map +0 -1
  218. package/dist/types/src/components/Dialogs/Dialog.stories.d.ts +0 -48
  219. package/dist/types/src/components/Dialogs/Dialog.stories.d.ts.map +0 -1
  220. package/dist/types/src/components/Dialogs/index.d.ts.map +0 -1
  221. package/dist/types/src/components/Lists/List.d.ts.map +0 -1
  222. package/dist/types/src/components/Lists/List.stories.d.ts +0 -37
  223. package/dist/types/src/components/Lists/List.stories.d.ts.map +0 -1
  224. package/dist/types/src/components/Lists/ListDropIndicator.d.ts.map +0 -1
  225. package/dist/types/src/components/Lists/Tree.d.ts.map +0 -1
  226. package/dist/types/src/components/Lists/Tree.stories.d.ts +0 -41
  227. package/dist/types/src/components/Lists/Tree.stories.d.ts.map +0 -1
  228. package/dist/types/src/components/Lists/TreeDropIndicator.d.ts.map +0 -1
  229. package/dist/types/src/components/Lists/Treegrid.stories.d.ts +0 -10
  230. package/dist/types/src/components/Lists/Treegrid.stories.d.ts.map +0 -1
  231. package/dist/types/src/components/Lists/index.d.ts.map +0 -1
  232. package/dist/types/src/testing/decorators/withSurfaceVariantsLayout.d.ts.map +0 -1
  233. package/src/testing/decorators/withTheme.ts +0 -25
  234. /package/dist/types/src/components/{Buttons → Button}/Toggle.d.ts +0 -0
  235. /package/dist/types/src/components/{Buttons → Button}/index.d.ts +0 -0
  236. /package/dist/types/src/components/{Dialogs → Dialog}/AlertDialog.d.ts +0 -0
  237. /package/dist/types/src/components/{Dialogs → Dialog}/Dialog.d.ts +0 -0
  238. /package/dist/types/src/components/{Dialogs → Dialog}/index.d.ts +0 -0
  239. /package/dist/types/src/components/{Lists → List}/List.d.ts +0 -0
  240. /package/dist/types/src/components/{Lists → List}/ListDropIndicator.d.ts +0 -0
  241. /package/dist/types/src/components/{Lists → List}/Tree.d.ts +0 -0
  242. /package/dist/types/src/components/{Lists → List}/TreeDropIndicator.d.ts +0 -0
  243. /package/dist/types/src/components/{Lists → List}/Treegrid.d.ts +0 -0
  244. /package/dist/types/src/components/{Lists → List}/index.d.ts +0 -0
  245. /package/src/components/{Buttons → Button}/Button.tsx +0 -0
  246. /package/src/components/{Buttons → Button}/Toggle.tsx +0 -0
  247. /package/src/components/{Buttons → Button}/index.ts +0 -0
  248. /package/src/components/{Dialogs → Dialog}/AlertDialog.tsx +0 -0
  249. /package/src/components/{Dialogs → Dialog}/Dialog.tsx +0 -0
  250. /package/src/components/{Dialogs → Dialog}/index.ts +0 -0
  251. /package/src/components/{Lists → List}/Tree.tsx +0 -0
  252. /package/src/components/{Lists → List}/TreeDropIndicator.tsx +0 -0
  253. /package/src/components/{Lists → List}/index.ts +0 -0
@@ -1 +1 @@
1
- {"version":3,"file":"Popover.stories.d.ts","sourceRoot":"","sources":["../../../../../src/components/Popover/Popover.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,aAAa,CAAC;AAErB,OAAO,KAAK,EAAE,EAAE,KAAK,iBAAiB,EAAE,KAAK,SAAS,EAAoB,MAAM,OAAO,CAAC;;;;;;;;;;;;;;;;;;;;;;;wCAWvC,iBAAiB,CAAC;QAAE,WAAW,EAAE,SAAS,CAAA;KAAE,CAAC;;;;;;;;AAc9F,wBAME;AAEF,eAAO,MAAM,OAAO;;;;;CAKnB,CAAC;AAEF,eAAO,MAAM,cAAc;;CAqB1B,CAAC"}
1
+ {"version":3,"file":"Popover.stories.d.ts","sourceRoot":"","sources":["../../../../../src/components/Popover/Popover.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAa,KAAK,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AACjE,OAAO,KAAK,EAAE,EAAE,KAAK,iBAAiB,EAAE,KAAK,SAAS,EAAoB,MAAM,OAAO,CAAC;AAyBxF,QAAA,MAAM,IAAI;;;wCAduC,iBAAiB,CAAC;QAAE,WAAW,EAAE,SAAS,CAAA;KAAE,CAAC;;CAmBzD,CAAC;AAEtC,eAAe,IAAI,CAAC;AAEpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAEnC,eAAO,MAAM,OAAO,EAAE,KAKrB,CAAC;AAEF,eAAO,MAAM,cAAc;;CAqB1B,CAAC"}
@@ -1,38 +1,12 @@
1
- import '@dxos-theme';
1
+ import { type StoryObj } from '@storybook/react-vite';
2
2
  import React, { type PropsWithChildren } from 'react';
3
- declare const _default: {
3
+ declare const meta: {
4
4
  title: string;
5
- component: {
6
- Root: React.ForwardRefExoticComponent<Omit<import("@radix-ui/react-scroll-area").ScrollAreaProps, "className"> & {
7
- classNames?: import("@dxos/react-ui-types").ClassNameValue;
8
- } & React.RefAttributes<HTMLDivElement>>;
9
- Viewport: React.ForwardRefExoticComponent<Omit<import("@radix-ui/react-scroll-area").ScrollAreaViewportProps, "className"> & {
10
- classNames?: import("@dxos/react-ui-types").ClassNameValue;
11
- } & React.RefAttributes<HTMLDivElement>>;
12
- Scrollbar: React.ForwardRefExoticComponent<Omit<import("@radix-ui/react-scroll-area").ScrollAreaScrollbarProps, "className"> & {
13
- classNames?: import("@dxos/react-ui-types").ClassNameValue;
14
- } & {
15
- variant?: "coarse" | "fine";
16
- } & React.RefAttributes<HTMLDivElement>>;
17
- Thumb: React.ForwardRefExoticComponent<Omit<import("@radix-ui/react-scroll-area").ScrollAreaThumbProps, "className"> & {
18
- classNames?: import("@dxos/react-ui-types").ClassNameValue;
19
- } & React.RefAttributes<HTMLDivElement>>;
20
- Corner: React.ForwardRefExoticComponent<Omit<import("@radix-ui/react-scroll-area").ScrollAreaCornerProps, "className"> & {
21
- classNames?: import("@dxos/react-ui-types").ClassNameValue;
22
- } & React.RefAttributes<HTMLDivElement>>;
23
- };
5
+ component: any;
24
6
  render: ({ children }: PropsWithChildren<{}>) => React.JSX.Element;
25
7
  decorators: import("@storybook/react").Decorator[];
26
- parameters: {
27
- chromatic: {
28
- disableSnapshot: boolean;
29
- };
30
- };
31
- };
32
- export default _default;
33
- export declare const Default: {
34
- args: {
35
- children: string;
36
- };
37
8
  };
9
+ export default meta;
10
+ type Story = StoryObj<typeof meta>;
11
+ export declare const Default: Story;
38
12
  //# sourceMappingURL=ScrollArea.stories.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ScrollArea.stories.d.ts","sourceRoot":"","sources":["../../../../../src/components/ScrollArea/ScrollArea.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,aAAa,CAAC;AAErB,OAAO,KAAK,EAAE,EAAE,KAAK,iBAAiB,EAAE,MAAM,OAAO,CAAC;;;;;;;;;;;;;;;;;;;;;;2BAWlB,iBAAiB,CAAC,EAAE,CAAC;;;;;;;;AAmBzD,wBAME;AAEF,eAAO,MAAM,OAAO;;;;CAInB,CAAC"}
1
+ {"version":3,"file":"ScrollArea.stories.d.ts","sourceRoot":"","sources":["../../../../../src/components/ScrollArea/ScrollArea.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAa,KAAK,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AACjE,OAAO,KAAK,EAAE,EAAE,KAAK,iBAAiB,EAAE,MAAM,OAAO,CAAC;AA8BtD,QAAA,MAAM,IAAI;;eAEiB,GAAG;2BArBM,iBAAiB,CAAC,EAAE,CAAC;;CAwBpB,CAAC;AAEtC,eAAe,IAAI,CAAC;AAEpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAEnC,eAAO,MAAM,OAAO,EAAE,KAIrB,CAAC"}
@@ -0,0 +1,37 @@
1
+ import React, { type HTMLAttributes, type PropsWithChildren } from 'react';
2
+ import { type ThemedClassName } from '../../util';
3
+ export interface ScrollController {
4
+ viewport: HTMLDivElement | null;
5
+ scrollToTop: (behavior?: ScrollBehavior) => void;
6
+ scrollToBottom: (behavior?: ScrollBehavior) => void;
7
+ }
8
+ type ScrollContainerContextValue = {
9
+ scrollToBottom: (behavior?: ScrollBehavior) => void;
10
+ controller?: ScrollController;
11
+ pinned?: boolean;
12
+ };
13
+ declare const useScrollContainerContext: (consumerName: string) => ScrollContainerContextValue;
14
+ type RootProps = ThemedClassName<PropsWithChildren<{
15
+ pin?: boolean;
16
+ fade?: boolean;
17
+ }>>;
18
+ type ViewportProps = ThemedClassName<PropsWithChildren<Omit<HTMLAttributes<HTMLDivElement>, 'className'>>>;
19
+ type ScrollDownButtonProps = ThemedClassName;
20
+ export { useScrollContainerContext };
21
+ export declare const ScrollContainer: {
22
+ Root: React.ForwardRefExoticComponent<Omit<React.PropsWithChildren<{
23
+ pin?: boolean;
24
+ fade?: boolean;
25
+ }>, "className"> & {
26
+ classNames?: import("@dxos/react-ui-types").ClassNameValue;
27
+ } & React.RefAttributes<ScrollController>>;
28
+ Viewport: React.ForwardRefExoticComponent<Omit<React.PropsWithChildren<Omit<React.HTMLAttributes<HTMLDivElement>, "className">>, "className"> & {
29
+ classNames?: import("@dxos/react-ui-types").ClassNameValue;
30
+ } & React.RefAttributes<HTMLDivElement>>;
31
+ ScrollDownButton: {
32
+ ({ classNames }: ScrollDownButtonProps): React.JSX.Element;
33
+ displayName: string;
34
+ };
35
+ };
36
+ export type { RootProps as ScrollContainerRootProps, ViewportProps as ScrollContainerViewportProps, ScrollDownButtonProps as ScrollContainerScrollDownButtonProps, };
37
+ //# sourceMappingURL=ScrollContainer.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ScrollContainer.d.ts","sourceRoot":"","sources":["../../../../../src/components/ScrollContainer/ScrollContainer.tsx"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,EACZ,KAAK,cAAc,EACnB,KAAK,iBAAiB,EAOvB,MAAM,OAAO,CAAC;AAQf,OAAO,EAAE,KAAK,eAAe,EAAE,MAAM,YAAY,CAAC;AAOlD,MAAM,WAAW,gBAAgB;IAC/B,QAAQ,EAAE,cAAc,GAAG,IAAI,CAAC;IAChC,WAAW,EAAE,CAAC,QAAQ,CAAC,EAAE,cAAc,KAAK,IAAI,CAAC;IACjD,cAAc,EAAE,CAAC,QAAQ,CAAC,EAAE,cAAc,KAAK,IAAI,CAAC;CACrD;AAED,KAAK,2BAA2B,GAAG;IACjC,cAAc,EAAE,CAAC,QAAQ,CAAC,EAAE,cAAc,KAAK,IAAI,CAAC;IACpD,UAAU,CAAC,EAAE,gBAAgB,CAAC;IAC9B,MAAM,CAAC,EAAE,OAAO,CAAC;CAClB,CAAC;AAEF,QAAA,MAAgC,yBAAyB,uDACM,CAAC;AAMhE,KAAK,SAAS,GAAG,eAAe,CAC9B,iBAAiB,CAAC;IAChB,GAAG,CAAC,EAAE,OAAO,CAAC;IACd,IAAI,CAAC,EAAE,OAAO,CAAC;CAChB,CAAC,CACH,CAAC;AAkGF,KAAK,aAAa,GAAG,eAAe,CAAC,iBAAiB,CAAC,IAAI,CAAC,cAAc,CAAC,cAAc,CAAC,EAAE,WAAW,CAAC,CAAC,CAAC,CAAC;AAkC3G,KAAK,qBAAqB,GAAG,eAAe,CAAC;AAgC7C,OAAO,EAAE,yBAAyB,EAAE,CAAC;AAErC,eAAO,MAAM,eAAe;;cAzKlB,OAAO;eACN,OAAO;;;;;;;;yBAwIwB,qBAAqB;;;CAoC9D,CAAC;AAEF,YAAY,EACV,SAAS,IAAI,wBAAwB,EACrC,aAAa,IAAI,4BAA4B,EAC7C,qBAAqB,IAAI,oCAAoC,GAC9D,CAAC"}
@@ -0,0 +1,18 @@
1
+ import { type StoryObj } from '@storybook/react-vite';
2
+ import React from 'react';
3
+ import { type ScrollContainerRootProps, type ScrollController } from './ScrollContainer';
4
+ declare const meta: {
5
+ title: string;
6
+ component: React.ForwardRefExoticComponent<Omit<React.PropsWithChildren<{
7
+ pin?: boolean;
8
+ fade?: boolean;
9
+ }>, "className"> & {
10
+ classNames?: import("@dxos/react-ui-types").ClassNameValue;
11
+ } & React.RefAttributes<ScrollController>>;
12
+ render: (props: ScrollContainerRootProps) => React.JSX.Element;
13
+ decorators: import("@storybook/react").Decorator[];
14
+ };
15
+ export default meta;
16
+ type Story = StoryObj<typeof meta>;
17
+ export declare const Default: Story;
18
+ //# sourceMappingURL=ScrollContainer.stories.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ScrollContainer.stories.d.ts","sourceRoot":"","sources":["../../../../../src/components/ScrollContainer/ScrollContainer.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAa,KAAK,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AACjE,OAAO,KAAsC,MAAM,OAAO,CAAC;AAQ3D,OAAO,EAAmB,KAAK,wBAAwB,EAAE,KAAK,gBAAgB,EAAE,MAAM,mBAAmB,CAAC;AAuC1G,QAAA,MAAM,IAAI;;;;;;;;oBArCmB,wBAAwB;;CA0ChB,CAAC;AAEtC,eAAe,IAAI,CAAC;AAEpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAEnC,eAAO,MAAM,OAAO,EAAE,KAKrB,CAAC"}
@@ -0,0 +1,2 @@
1
+ export * from './ScrollContainer';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/ScrollContainer/index.ts"],"names":[],"mappings":"AAIA,cAAc,mBAAmB,CAAC"}
@@ -1,7 +1,7 @@
1
1
  import * as SelectPrimitive from '@radix-ui/react-select';
2
2
  import React from 'react';
3
3
  import { type ThemedClassName } from '../../util';
4
- import { type ButtonProps } from '../Buttons';
4
+ import { type ButtonProps } from '../Button';
5
5
  type SelectRootProps = SelectPrimitive.SelectProps;
6
6
  type SelectTriggerProps = SelectPrimitive.SelectTriggerProps;
7
7
  type SelectValueProps = SelectPrimitive.SelectValueProps;
@@ -1 +1 @@
1
- {"version":3,"file":"Select.d.ts","sourceRoot":"","sources":["../../../../../src/components/Select/Select.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,eAAe,MAAM,wBAAwB,CAAC;AAC1D,OAAO,KAAqB,MAAM,OAAO,CAAC;AAI1C,OAAO,EAAE,KAAK,eAAe,EAAE,MAAM,YAAY,CAAC;AAClD,OAAO,EAAU,KAAK,WAAW,EAAE,MAAM,YAAY,CAAC;AAGtD,KAAK,eAAe,GAAG,eAAe,CAAC,WAAW,CAAC;AAInD,KAAK,kBAAkB,GAAG,eAAe,CAAC,kBAAkB,CAAC;AAI7D,KAAK,gBAAgB,GAAG,eAAe,CAAC,gBAAgB,CAAC;AAIzD,KAAK,eAAe,GAAG,eAAe,CAAC,eAAe,CAAC;AAIvD,KAAK,iBAAiB,GAAG,eAAe,CAAC,iBAAiB,CAAC;AAI3D,KAAK,wBAAwB,GAAG,IAAI,CAAC,WAAW,EAAE,UAAU,CAAC,GAAG,IAAI,CAAC,gBAAgB,EAAE,aAAa,GAAG,UAAU,CAAC,CAAC;AAmBnH,KAAK,kBAAkB,GAAG,eAAe,CAAC,eAAe,CAAC,kBAAkB,CAAC,CAAC;AAqB9E,KAAK,yBAAyB,GAAG,eAAe,CAAC,eAAe,CAAC,yBAAyB,CAAC,CAAC;AAiB5F,KAAK,2BAA2B,GAAG,eAAe,CAAC,eAAe,CAAC,2BAA2B,CAAC,CAAC;AAiBhG,KAAK,mBAAmB,GAAG,eAAe,CAAC,eAAe,CAAC,mBAAmB,CAAC,CAAC;AAiBhF,KAAK,eAAe,GAAG,eAAe,CAAC,eAAe,CAAC,eAAe,CAAC,CAAC;AAOxE,KAAK,mBAAmB,GAAG,eAAe,CAAC,mBAAmB,CAAC;AAI/D,KAAK,wBAAwB,GAAG,eAAe,CAAC,eAAe,CAAC,wBAAwB,CAAC,CAAC;AAiB1F,KAAK,iBAAiB,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1
  import { type StoryObj } from '@storybook/react-vite';
3
2
  import React from 'react';
4
3
  type ItemProps = {
@@ -8,16 +7,12 @@ type ItemProps = {
8
7
  type StoryProps = {
9
8
  items: ItemProps[];
10
9
  };
11
- export declare const Default: StoryObj<StoryProps>;
12
- declare const _default: {
10
+ declare const meta: {
13
11
  title: string;
14
12
  render: ({ items }: StoryProps) => React.JSX.Element;
15
13
  decorators: import("@storybook/react").Decorator[];
16
- parameters: {
17
- chromatic: {
18
- disableSnapshot: boolean;
19
- };
20
- };
21
14
  };
22
- export default _default;
15
+ export default meta;
16
+ type Story = StoryObj<typeof meta>;
17
+ export declare const Default: Story;
23
18
  //# sourceMappingURL=Select.stories.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Select.stories.d.ts","sourceRoot":"","sources":["../../../../../src/components/Select/Select.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,aAAa,CAAC;AAErB,OAAO,EAAE,KAAK,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AACtD,OAAO,KAAmB,MAAM,OAAO,CAAC;AAUxC,KAAK,SAAS,GAAG;IAAE,EAAE,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,CAAA;CAAE,CAAC;AAE9C,KAAK,UAAU,GAAG;IAAE,KAAK,EAAE,SAAS,EAAE,CAAA;CAAE,CAAC;AAyBzC,eAAO,MAAM,OAAO,EAAE,QAAQ,CAAC,UAAU,CAIxC,CAAC;;;wBA3BoC,UAAU;;;;;;;;AA6BhD,wBAKE"}
1
+ {"version":3,"file":"Select.stories.d.ts","sourceRoot":"","sources":["../../../../../src/components/Select/Select.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAa,KAAK,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AACjE,OAAO,KAAmB,MAAM,OAAO,CAAC;AAWxC,KAAK,SAAS,GAAG;IAAE,EAAE,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,CAAA;CAAE,CAAC;AAE9C,KAAK,UAAU,GAAG;IAAE,KAAK,EAAE,SAAS,EAAE,CAAA;CAAE,CAAC;AAyBzC,QAAA,MAAM,IAAI;;wBAvB4B,UAAU;;CA2BX,CAAC;AAEtC,eAAe,IAAI,CAAC;AAEpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAEnC,eAAO,MAAM,OAAO,EAAE,KAIrB,CAAC"}
@@ -1,16 +1,10 @@
1
- import '@dxos-theme';
2
1
  import React from 'react';
3
- declare const _default: {
2
+ declare const meta: {
4
3
  title: string;
5
4
  component: React.ForwardRefExoticComponent<Omit<import("./Status").StatusProps, "ref"> & React.RefAttributes<HTMLSpanElement>>;
6
5
  decorators: import("@storybook/react").Decorator[];
7
- parameters: {
8
- chromatic: {
9
- disableSnapshot: boolean;
10
- };
11
- };
12
6
  };
13
- export default _default;
7
+ export default meta;
14
8
  export declare const Normal: (props: any) => React.JSX.Element;
15
9
  export declare const Indeterminate: (props: any) => React.JSX.Element;
16
10
  //# sourceMappingURL=Status.stories.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Status.stories.d.ts","sourceRoot":"","sources":["../../../../../src/components/Status/Status.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,aAAa,CAAC;AAErB,OAAO,KAAK,MAAM,OAAO,CAAC;;;;;;;;;;;AAM1B,wBAKE;AAEF,eAAO,MAAM,MAAM,GAAI,OAAO,GAAG,sBAShC,CAAC;AAEF,eAAO,MAAM,aAAa,GAAI,OAAO,GAAG,sBAMvC,CAAC"}
1
+ {"version":3,"file":"Status.stories.d.ts","sourceRoot":"","sources":["../../../../../src/components/Status/Status.stories.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,MAAM,OAAO,CAAC;AAM1B,QAAA,MAAM,IAAI;;;;CAIqB,CAAC;AAEhC,eAAe,IAAI,CAAC;AAIpB,eAAO,MAAM,MAAM,GAAI,OAAO,GAAG,sBAShC,CAAC;AAEF,eAAO,MAAM,aAAa,GAAI,OAAO,GAAG,sBAMvC,CAAC"}
@@ -1,17 +1,17 @@
1
+ import { type StoryObj } from '@storybook/react-vite';
1
2
  import React from 'react';
2
- import '@dxos-theme';
3
- declare const _default: {
4
- readonly title: "ui/react-ui-core/Tag";
5
- readonly component: React.ForwardRefExoticComponent<Omit<import("./Tag").TagProps, "ref"> & React.RefAttributes<HTMLSpanElement>>;
6
- readonly decorators: readonly [import("@storybook/react").Decorator];
7
- readonly parameters: {
8
- readonly chromatic: {
9
- readonly disableSnapshot: false;
3
+ declare const meta: {
4
+ title: string;
5
+ component: React.ForwardRefExoticComponent<Omit<import("./Tag").TagProps, "ref"> & React.RefAttributes<HTMLSpanElement>>;
6
+ render: () => React.JSX.Element;
7
+ decorators: import("@storybook/react").Decorator[];
8
+ parameters: {
9
+ chromatic: {
10
+ disableSnapshot: boolean;
10
11
  };
11
12
  };
12
13
  };
13
- export default _default;
14
- export declare const Default: {
15
- render: () => React.JSX.Element;
16
- };
14
+ export default meta;
15
+ type Story = StoryObj<typeof meta>;
16
+ export declare const Default: Story;
17
17
  //# sourceMappingURL=Tag.stories.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Tag.stories.d.ts","sourceRoot":"","sources":["../../../../../src/components/Tag/Tag.stories.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,aAAa,CAAC;;;;;;;;;;;AASrB,wBAKW;AAEX,eAAO,MAAM,OAAO;;CAUnB,CAAC"}
1
+ {"version":3,"file":"Tag.stories.d.ts","sourceRoot":"","sources":["../../../../../src/components/Tag/Tag.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAa,KAAK,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AACjE,OAAO,KAAK,MAAM,OAAO,CAAC;AAW1B,QAAA,MAAM,IAAI;;;;;;;;;;CAkBkB,CAAC;AAE7B,eAAe,IAAI,CAAC;AAEpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAEnC,eAAO,MAAM,OAAO,EAAE,KAAU,CAAC"}
@@ -1,4 +1,4 @@
1
- import '@dxos-theme';
1
+ import { type StoryObj } from '@storybook/react-vite';
2
2
  import React, { type ReactNode } from 'react';
3
3
  type ActionTriggerProps = {
4
4
  altText: string;
@@ -11,51 +11,13 @@ type StorybookToastProps = Partial<{
11
11
  openTrigger: string;
12
12
  closeTrigger: ReactNode;
13
13
  }>;
14
- declare const _default: {
14
+ declare const meta: {
15
15
  title: string;
16
- component: {
17
- Provider: React.FunctionComponent<import("@radix-ui/react-toast").ToastProviderProps>;
18
- Viewport: React.ForwardRefExoticComponent<Omit<import("@radix-ui/react-toast").ToastViewportProps, "className"> & {
19
- classNames?: import("@dxos/react-ui-types").ClassNameValue;
20
- } & React.RefAttributes<HTMLOListElement>>;
21
- Root: React.ForwardRefExoticComponent<Omit<import("@radix-ui/react-toast").ToastProps, "className"> & {
22
- classNames?: import("@dxos/react-ui-types").ClassNameValue;
23
- } & React.RefAttributes<HTMLLIElement>>;
24
- Body: React.ForwardRefExoticComponent<Omit<import("./Toast").ToastBodyProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
25
- Title: React.ForwardRefExoticComponent<Omit<import("@radix-ui/react-toast").ToastTitleProps, "className"> & {
26
- classNames?: import("@dxos/react-ui-types").ClassNameValue;
27
- } & React.RefAttributes<HTMLHeadingElement>>;
28
- Description: React.ForwardRefExoticComponent<Omit<import("@radix-ui/react-toast").ToastDescriptionProps, "className"> & {
29
- classNames?: import("@dxos/react-ui-types").ClassNameValue;
30
- } & React.RefAttributes<HTMLParagraphElement>>;
31
- Actions: React.ForwardRefExoticComponent<Omit<import("./Toast").ToastActionsProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
32
- Action: React.FunctionComponent<import("@radix-ui/react-toast").ToastActionProps>;
33
- Close: React.FunctionComponent<import("@radix-ui/react-toast").ToastCloseProps>;
34
- };
16
+ component: any;
35
17
  render: ({ title, description, actionTriggers, openTrigger, closeTrigger }: StorybookToastProps) => React.JSX.Element;
36
18
  decorators: import("@storybook/react").Decorator[];
37
- parameters: {
38
- chromatic: {
39
- disableSnapshot: boolean;
40
- };
41
- };
42
- };
43
- export default _default;
44
- export declare const Default: {
45
- args: {
46
- openTrigger: string;
47
- title: string;
48
- description: string;
49
- actionTriggers: {
50
- altText: string;
51
- trigger: React.JSX.Element;
52
- }[];
53
- closeTrigger: React.JSX.Element;
54
- };
55
- parameters: {
56
- chromatic: {
57
- delay: number;
58
- };
59
- };
60
19
  };
20
+ export default meta;
21
+ type Story = StoryObj<typeof meta>;
22
+ export declare const Default: Story;
61
23
  //# sourceMappingURL=Toast.stories.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Toast.stories.d.ts","sourceRoot":"","sources":["../../../../../src/components/Toast/Toast.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,aAAa,CAAC;AAErB,OAAO,KAAK,EAAE,EAAE,KAAK,SAAS,EAAY,MAAM,OAAO,CAAC;AAOxD,KAAK,kBAAkB,GAAG;IAAE,OAAO,EAAE,MAAM,CAAC;IAAC,OAAO,EAAE,SAAS,CAAA;CAAE,CAAC;AAElE,KAAK,mBAAmB,GAAG,OAAO,CAAC;IACjC,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,EAAE,MAAM,CAAC;IACpB,cAAc,EAAE,kBAAkB,EAAE,CAAC;IACrC,WAAW,EAAE,MAAM,CAAC;IACpB,YAAY,EAAE,SAAS,CAAC;CACzB,CAAC,CAAC;;;;;;;;;;;;;;;;;;;;;;gFAEsF,mBAAmB;;;;;;;;AAwB5G,wBAME;AAEF,eAAO,MAAM,OAAO;;;;;;;;;;;;;;;;CAgBnB,CAAC"}
1
+ {"version":3,"file":"Toast.stories.d.ts","sourceRoot":"","sources":["../../../../../src/components/Toast/Toast.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAa,KAAK,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AACjE,OAAO,KAAK,EAAE,EAAE,KAAK,SAAS,EAAY,MAAM,OAAO,CAAC;AAOxD,KAAK,kBAAkB,GAAG;IAAE,OAAO,EAAE,MAAM,CAAC;IAAC,OAAO,EAAE,SAAS,CAAA;CAAE,CAAC;AAElE,KAAK,mBAAmB,GAAG,OAAO,CAAC;IACjC,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,EAAE,MAAM,CAAC;IACpB,cAAc,EAAE,kBAAkB,EAAE,CAAC;IACrC,WAAW,EAAE,MAAM,CAAC;IACpB,YAAY,EAAE,SAAS,CAAC;CACzB,CAAC,CAAC;AA0BH,QAAA,MAAM,IAAI;;eAEY,GAAG;gFA1BgE,mBAAmB;;CA6BvE,CAAC;AAEtC,eAAe,IAAI,CAAC;AAEpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAEnC,eAAO,MAAM,OAAO,EAAE,KAgBrB,CAAC"}
@@ -2,12 +2,14 @@ import type { ToggleGroupItemProps as ToggleGroupItemPrimitiveProps } from '@rad
2
2
  import * as ToolbarPrimitive from '@radix-ui/react-toolbar';
3
3
  import React from 'react';
4
4
  import { type ThemedClassName } from '../../util';
5
- import { type ButtonGroupProps, type ButtonProps, type IconButtonProps, type ToggleGroupItemProps, type ToggleProps } from '../Buttons';
5
+ import { type ButtonGroupProps, type ButtonProps, type IconButtonProps, type ToggleGroupItemProps, type ToggleProps } from '../Button';
6
6
  import { type LinkProps } from '../Link';
7
7
  import { type SeparatorProps } from '../Separator';
8
- type ToolbarRootProps = ThemedClassName<ToolbarPrimitive.ToolbarProps> & {
8
+ type ToolbarRootProps = ThemedClassName<ToolbarPrimitive.ToolbarProps & {
9
+ textBlockWidth?: boolean;
9
10
  layoutManaged?: boolean;
10
- };
11
+ disabled?: boolean;
12
+ }>;
11
13
  type ToolbarButtonProps = ButtonProps;
12
14
  type ToolbarIconButtonProps = IconButtonProps;
13
15
  type ToolbarToggleProps = ToggleProps;
@@ -19,27 +21,25 @@ type ToolbarSeparatorProps = SeparatorProps & {
19
21
  variant?: 'gap' | 'line';
20
22
  };
21
23
  export declare const Toolbar: {
22
- Root: React.ForwardRefExoticComponent<Omit<ToolbarPrimitive.ToolbarProps, "className"> & {
23
- classNames?: import("@dxos/react-ui-types").ClassNameValue;
24
- } & {
24
+ Root: React.ForwardRefExoticComponent<Omit<ToolbarPrimitive.ToolbarProps & {
25
+ textBlockWidth?: boolean;
25
26
  layoutManaged?: boolean;
27
+ disabled?: boolean;
28
+ }, "className"> & {
29
+ classNames?: import("@dxos/react-ui-types").ClassNameValue;
26
30
  } & React.RefAttributes<HTMLDivElement>>;
27
31
  Button: React.ForwardRefExoticComponent<Omit<ButtonProps, "ref"> & React.RefAttributes<HTMLButtonElement>>;
28
32
  IconButton: React.ForwardRefExoticComponent<Omit<IconButtonProps, "ref"> & React.RefAttributes<HTMLButtonElement>>;
29
33
  Link: React.ForwardRefExoticComponent<Omit<LinkProps, "ref"> & React.RefAttributes<HTMLAnchorElement>>;
30
34
  Toggle: React.ForwardRefExoticComponent<Omit<ToggleProps, "ref"> & React.RefAttributes<HTMLButtonElement>>;
31
- ToggleGroup: React.ForwardRefExoticComponent<(Omit<Omit<ToolbarPrimitive.ToolbarToggleGroupSingleProps, "className"> & Omit<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
32
- ref?: ((instance: HTMLDivElement | null) => void | React.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof React.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | React.RefObject<HTMLDivElement> | null | undefined;
33
- } & {
35
+ ToggleGroup: React.ForwardRefExoticComponent<(Omit<Omit<ToolbarPrimitive.ToolbarToggleGroupSingleProps, "className"> & Omit<React.ClassAttributes<HTMLDivElement> & React.HTMLAttributes<HTMLDivElement> & {
34
36
  asChild?: boolean;
35
37
  }, "className"> & {
36
38
  classNames?: import("@dxos/react-ui-types").ClassNameValue;
37
39
  } & {
38
40
  elevation?: import("@dxos/react-ui-types").Elevation;
39
41
  asChild?: boolean;
40
- }, "ref"> | Omit<Omit<ToolbarPrimitive.ToolbarToggleGroupMultipleProps, "className"> & Omit<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
41
- ref?: ((instance: HTMLDivElement | null) => void | React.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof React.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | React.RefObject<HTMLDivElement> | null | undefined;
42
- } & {
42
+ }, "ref"> | Omit<Omit<ToolbarPrimitive.ToolbarToggleGroupMultipleProps, "className"> & Omit<React.ClassAttributes<HTMLDivElement> & React.HTMLAttributes<HTMLDivElement> & {
43
43
  asChild?: boolean;
44
44
  }, "className"> & {
45
45
  classNames?: import("@dxos/react-ui-types").ClassNameValue;
@@ -1 +1 @@
1
- {"version":3,"file":"Toolbar.d.ts","sourceRoot":"","sources":["../../../../../src/components/Toolbar/Toolbar.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,oBAAoB,IAAI,6BAA6B,EAAE,MAAM,8BAA8B,CAAC;AAC1G,OAAO,KAAK,gBAAgB,MAAM,yBAAyB,CAAC;AAC5D,OAAO,KAAqB,MAAM,OAAO,CAAC;AAG1C,OAAO,EAAE,KAAK,eAAe,EAAE,MAAM,YAAY,CAAC;AAClD,OAAO,EAGL,KAAK,gBAAgB,EACrB,KAAK,WAAW,EAEhB,KAAK,eAAe,EAEpB,KAAK,oBAAoB,EACzB,KAAK,WAAW,EACjB,MAAM,YAAY,CAAC;AACpB,OAAO,EAAQ,KAAK,SAAS,EAAE,MAAM,SAAS,CAAC;AAC/C,OAAO,EAAa,KAAK,cAAc,EAAE,MAAM,cAAc,CAAC;AAE9D,KAAK,gBAAgB,GAAG,eAAe,CAAC,gBAAgB,CAAC,YAAY,CAAC,GAAG;IAAE,aA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AqB,GACtB,CAAC"}
@@ -1,57 +1,13 @@
1
- import '@dxos-theme';
1
+ import { type StoryObj } from '@storybook/react-vite';
2
2
  import React from 'react';
3
3
  type StorybookToolbarProps = {};
4
- declare const _default: {
4
+ declare const meta: {
5
5
  title: string;
6
- component: {
7
- Root: React.ForwardRefExoticComponent<Omit<import("@radix-ui/react-toolbar").ToolbarProps, "className"> & {
8
- classNames?: import("@dxos/react-ui-types").ClassNameValue;
9
- } & {
10
- layoutManaged?: boolean;
11
- } & React.RefAttributes<HTMLDivElement>>;
12
- Button: React.ForwardRefExoticComponent<Omit<import("..").ButtonProps, "ref"> & React.RefAttributes<HTMLButtonElement>>;
13
- IconButton: React.ForwardRefExoticComponent<Omit<import("..").IconButtonProps, "ref"> & React.RefAttributes<HTMLButtonElement>>;
14
- Link: React.ForwardRefExoticComponent<Omit<import("..").LinkProps, "ref"> & React.RefAttributes<HTMLAnchorElement>>;
15
- Toggle: React.ForwardRefExoticComponent<Omit<import("..").ToggleProps, "ref"> & React.RefAttributes<HTMLButtonElement>>;
16
- ToggleGroup: React.ForwardRefExoticComponent<(Omit<Omit<import("@radix-ui/react-toolbar").ToolbarToggleGroupSingleProps, "className"> & Omit<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
17
- ref?: ((instance: HTMLDivElement | null) => void | React.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof React.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | React.RefObject<HTMLDivElement> | null | undefined;
18
- } & {
19
- asChild?: boolean;
20
- }, "className"> & {
21
- classNames?: import("@dxos/react-ui-types").ClassNameValue;
22
- } & {
23
- elevation?: import("@dxos/react-ui-types").Elevation;
24
- asChild?: boolean;
25
- }, "ref"> | Omit<Omit<import("@radix-ui/react-toolbar").ToolbarToggleGroupMultipleProps, "className"> & Omit<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
26
- ref?: ((instance: HTMLDivElement | null) => void | React.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof React.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | React.RefObject<HTMLDivElement> | null | undefined;
27
- } & {
28
- asChild?: boolean;
29
- }, "className"> & {
30
- classNames?: import("@dxos/react-ui-types").ClassNameValue;
31
- } & {
32
- elevation?: import("@dxos/react-ui-types").Elevation;
33
- asChild?: boolean;
34
- }, "ref">) & React.RefAttributes<HTMLDivElement>>;
35
- ToggleGroupItem: React.ForwardRefExoticComponent<Omit<import("..").ToggleGroupItemProps, "ref"> & React.RefAttributes<HTMLButtonElement>>;
36
- ToggleGroupIconItem: React.ForwardRefExoticComponent<Omit<import("./Toolbar").ToolbarToggleGroupIconItemProps, "ref"> & React.RefAttributes<HTMLButtonElement>>;
37
- Separator: React.ForwardRefExoticComponent<Omit<import("@radix-ui/react-separator").SeparatorProps, "className"> & {
38
- classNames?: import("@dxos/react-ui-types").ClassNameValue;
39
- } & {
40
- subdued?: boolean;
41
- } & {
42
- variant?: "gap" | "line";
43
- } & React.RefAttributes<HTMLDivElement>>;
44
- };
6
+ component: any;
45
7
  render: (props: StorybookToolbarProps) => React.JSX.Element;
46
8
  decorators: import("@storybook/react").Decorator[];
47
- parameters: {
48
- chromatic: {
49
- disableSnapshot: boolean;
50
- };
51
- };
52
- };
53
- export default _default;
54
- export declare const Default: {
55
- args: {};
56
9
  };
10
+ export default meta;
11
+ type Story = StoryObj<typeof meta>;
12
+ export declare const Default: Story;
57
13
  //# sourceMappingURL=Toolbar.stories.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Toolbar.stories.d.ts","sourceRoot":"","sources":["../../../../../src/components/Toolbar/Toolbar.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,aAAa,CAAC;AAErB,OAAO,KAAK,MAAM,OAAO,CAAC;AAS1B,KAAK,qBAAqB,GAAG,EAAE,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oBAEH,qBAAqB;;;;;;;;AAuDlD,wBAME;AAEF,eAAO,MAAM,OAAO;;CAEnB,CAAC"}
1
+ {"version":3,"file":"Toolbar.stories.d.ts","sourceRoot":"","sources":["../../../../../src/components/Toolbar/Toolbar.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAa,KAAK,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AACjE,OAAO,KAAK,MAAM,OAAO,CAAC;AAS1B,KAAK,qBAAqB,GAAG,EAAE,CAAC;AAwDhC,QAAA,MAAM,IAAI;;eAEc,GAAG;oBAxDE,qBAAqB;;CA2Db,CAAC;AAEtC,eAAe,IAAI,CAAC;AAEpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAEnC,eAAO,MAAM,OAAO,EAAE,KAErB,CAAC"}
@@ -80,9 +80,7 @@ interface TooltipContentImplProps extends Omit<PopperContentProps, 'onPlaced'> {
80
80
  type TooltipSide = NonNullable<TooltipContentProps['side']>;
81
81
  export declare const Tooltip: {
82
82
  Provider: React.FC<TooltipProviderProps>;
83
- Trigger: React.ForwardRefExoticComponent<Omit<Omit<React.DetailedHTMLProps<React.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref"> & {
84
- ref?: ((instance: HTMLButtonElement | null) => void | React.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof React.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | React.RefObject<HTMLButtonElement> | null | undefined;
85
- } & {
83
+ Trigger: React.ForwardRefExoticComponent<Omit<React.ClassAttributes<HTMLButtonElement> & React.ButtonHTMLAttributes<HTMLButtonElement> & {
86
84
  asChild?: boolean;
87
85
  }, "ref"> & Pick<TooltipProps, "delayDuration"> & {
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,GAAG,wBAAwB,CAAC,OAAO,gBAAgB,CAAC,CAAC;AAC/E,KAAK,kBAAkB,GAAG,wBAAwB,CAAC,OAAO,eAAe,CAAC,OAAO,CAAC,CAAC;AACnF,UAAU,uBAAwB,SAAQ,IAAI,CAAC,kBAAkB,EAAE,UAAU,CAAC;IAC5E;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IAEtB;;;OAGG;IACH,eAAe,CAAC,EAAE,qBAAqB,CAAC,iBAAiB,CAAC,CAAC;IAC3D;;;OAGG;IACH,oBAAoB,CAAC,EAAE,qBAAqB,CAAC,sBAAsB,CAAC,CAAC;CACtE;AAuGD,KAAK,WAAW,GAAG,WAAW,CAAC,mBAAmB,CAAC,MAAM,CAAC,CAAC,CAAC;AA0J5D,eAAO,MAAM,OAAO;;;;;kBAzfN,MAAM;eACT,WAAW;qBACL,CAAC,KAAK,EAAE,cAAc,KAAK,IAAI;;CA0f/C,CAAC;AAEF,OAAO,EAAE,kBAAkB,EAAE,iBAAiB,EAAE,CAAC;AAEjD,YAAY,EAAE,oBAAoB,EAAE,mBAAmB,EAAE,kBAAkB,EAAE,WAAW,EAAE,CAAC"}
@@ -1,4 +1,4 @@
1
- import '@dxos-theme';
1
+ import { type StoryObj } from '@storybook/react-vite';
2
2
  import React from 'react';
3
3
  type StoryProps = {
4
4
  tooltips: {
@@ -7,68 +7,15 @@ type StoryProps = {
7
7
  }[];
8
8
  defaultOpen?: boolean;
9
9
  };
10
- declare const _default: {
10
+ declare const meta: {
11
11
  title: string;
12
- component: {
13
- Provider: React.FC<import("./Tooltip").TooltipProviderProps>;
14
- Trigger: React.ForwardRefExoticComponent<Omit<Omit<React.DetailedHTMLProps<React.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref"> & {
15
- ref?: ((instance: HTMLButtonElement | null) => void | React.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof React.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | React.RefObject<HTMLButtonElement> | null | undefined;
16
- } & {
17
- asChild?: boolean;
18
- }, "ref"> & Pick<import("@radix-ui/react-tooltip").TooltipProps, "delayDuration"> & {
19
- content?: string;
20
- side?: import("./Tooltip").TooltipSide;
21
- onInteract?: (event: React.SyntheticEvent) => void;
22
- } & React.RefAttributes<HTMLButtonElement>>;
23
- };
12
+ component: any;
24
13
  render: ({ tooltips, defaultOpen }: StoryProps) => React.JSX.Element;
25
14
  decorators: import("@storybook/react").Decorator[];
26
- parameters: {
27
- chromatic: {
28
- disableSnapshot: boolean;
29
- };
30
- };
31
- };
32
- export default _default;
33
- export declare const Default: {
34
- args: {
35
- tooltips: {
36
- label: string;
37
- content: string;
38
- }[];
39
- };
40
- parameters: {
41
- chromatic: {
42
- delay: number;
43
- };
44
- };
45
- };
46
- export declare const DefaultOpen: {
47
- args: {
48
- defaultOption: boolean;
49
- tooltips: {
50
- label: string;
51
- content: string;
52
- }[];
53
- };
54
- parameters: {
55
- chromatic: {
56
- delay: number;
57
- };
58
- };
59
- };
60
- export declare const StressTest: {
61
- args: {
62
- defaultOption: boolean;
63
- tooltips: {
64
- label: string;
65
- content: string;
66
- }[];
67
- };
68
- parameters: {
69
- chromatic: {
70
- disableSnapshot: boolean;
71
- };
72
- };
73
15
  };
16
+ export default meta;
17
+ type Story = StoryObj<typeof meta>;
18
+ export declare const Default: Story;
19
+ export declare const DefaultOpen: Story;
20
+ export declare const StressTest: Story;
74
21
  //# sourceMappingURL=Tooltip.stories.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Tooltip.stories.d.ts","sourceRoot":"","sources":["../../../../../src/components/Tooltip/Tooltip.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,aAAa,CAAC;AACrB,OAAO,KAAK,MAAM,OAAO,CAAC;AAS1B,KAAK,UAAU,GAAG;IAChB,QAAQ,EAAE;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,MAAM,CAAA;KAAE,EAAE,CAAC;IAC/C,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB,CAAC;;;;;;;;;;;;;;;wCAE+C,UAAU;;;;;;;;AAY3D,wBAME;AAEF,eAAO,MAAM,OAAO;;;;;;;;;;;;CAYnB,CAAC;AAEF,eAAO,MAAM,WAAW;;;;;;;;;;;;;CAavB,CAAC;AAEF,eAAO,MAAM,UAAU;;;;;;;;;;;;;CActB,CAAC"}
1
+ {"version":3,"file":"Tooltip.stories.d.ts","sourceRoot":"","sources":["../../../../../src/components/Tooltip/Tooltip.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAa,KAAK,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AACjE,OAAO,KAAK,MAAM,OAAO,CAAC;AAS1B,KAAK,UAAU,GAAG;IAChB,QAAQ,EAAE;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,MAAM,CAAA;KAAE,EAAE,CAAC;IAC/C,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB,CAAC;AAcF,QAAA,MAAM,IAAI;;eAEc,GAAG;wCAdsB,UAAU;;CAiBtB,CAAC;AAEtC,eAAe,IAAI,CAAC;AAEpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAEnC,eAAO,MAAM,OAAO,EAAE,KAYrB,CAAC;AAEF,eAAO,MAAM,WAAW,EAAE,KAazB,CAAC;AAEF,eAAO,MAAM,UAAU,EAAE,KAcxB,CAAC"}
@@ -1,19 +1,20 @@
1
1
  export * from './AnchoredOverflow';
2
2
  export * from './Avatars';
3
3
  export * from './Breadcrumb';
4
- export * from './Buttons';
4
+ export * from './Button';
5
5
  export * from './Clipboard';
6
- export * from './Dialogs';
6
+ export * from './Dialog';
7
7
  export * from './Icon';
8
8
  export * from './Input';
9
9
  export * from './Link';
10
- export * from './Lists';
10
+ export * from './List';
11
11
  export * from './Main';
12
12
  export * from './Menus';
13
13
  export * from './Message';
14
14
  export * from './Popover';
15
15
  export * from './Status';
16
16
  export * from './ScrollArea';
17
+ export * from './ScrollContainer';
17
18
  export * from './Select';
18
19
  export * from './Separator';
19
20
  export * from './Tag';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/index.ts"],"names":[],"mappings":"AAIA,cAAc,oBAAoB,CAAC;AACnC,cAAc,WAAW,CAAC;AAC1B,cAAc,cAAc,CAAC;AAC7B,cAAc,WAAW,CAAC;AAC1B,cAAc,aAAa,CAAC;AAC5B,cAAc,WAAW,CAAC;AAC1B,cAAc,QAAQ,CAAC;AACvB,cAAc,SAAS,CAAC;AACxB,cAAc,QAAQ,CAAC;AACvB,cAAc,SAAS,CAAC;AACxB,cAAc,QAAQ,CAAC;AACvB,cAAc,SAAS,CAAC;AACxB,cAAc,WAAW,CAAC;AAC1B,cAAc,WAAW,CAAC;AAC1B,cAAc,UAAU,CAAC;AACzB,cAAc,cAAc,CAAC;AAC7B,cAAc,UAAU,CAAC;AACzB,cAAc,aAAa,CAAC;AAC5B,cAAc,OAAO,CAAC;AACtB,cAAc,SAAS,CAAC;AACxB,cAAc,WAAW,CAAC;AAC1B,cAAc,WAAW,CAAC;AAE1B,cAAc,mBAAmB,CAAC;AAClC,cAAc,qBAAqB,CAAC;AACpC,cAAc,iBAAiB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/index.ts"],"names":[],"mappings":"AAIA,cAAc,oBAAoB,CAAC;AACnC,cAAc,WAAW,CAAC;AAC1B,cAAc,cAAc,CAAC;AAC7B,cAAc,UAAU,CAAC;AACzB,cAAc,aAAa,CAAC;AAC5B,cAAc,UAAU,CAAC;AACzB,cAAc,QAAQ,CAAC;AACvB,cAAc,SAAS,CAAC;AACxB,cAAc,QAAQ,CAAC;AACvB,cAAc,QAAQ,CAAC;AACvB,cAAc,QAAQ,CAAC;AACvB,cAAc,SAAS,CAAC;AACxB,cAAc,WAAW,CAAC;AAC1B,cAAc,WAAW,CAAC;AAC1B,cAAc,UAAU,CAAC;AACzB,cAAc,cAAc,CAAC;AAC7B,cAAc,mBAAmB,CAAC;AAClC,cAAc,UAAU,CAAC;AACzB,cAAc,aAAa,CAAC;AAC5B,cAAc,OAAO,CAAC;AACtB,cAAc,SAAS,CAAC;AACxB,cAAc,WAAW,CAAC;AAC1B,cAAc,WAAW,CAAC;AAE1B,cAAc,mBAAmB,CAAC;AAClC,cAAc,qBAAqB,CAAC;AACpC,cAAc,iBAAiB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"useSafeArea.d.ts","sourceRoot":"","sources":["../../../../src/hooks/useSafeArea.ts"],"names":[],"mappings":"AAQA,MAAM,MAAM,eAAe,GAAG,MAAM,CAAC,KAAK,GAAG,OAAO,GAAG,QAAQ,GAAG,MAAM,EAAE,MAAM,CAAC,CAAC;AAElF,eAAO,MAAM,eAAe;;;;;CAAmD,CAAC;AAEhF,eAAO,MAAM,WAAW,QAAO,eAY9B,CAAC"}
1
+ {"version":3,"file":"useSafeArea.d.ts","sourceRoot":"","sources":["../../../../src/hooks/useSafeArea.ts"],"names":[],"mappings":"AAQA,MAAM,MAAM,eAAe,GAAG,MAAM,CAAC,KAAK,GAAG,OAAO,GAAG,QAAQ,GAAG,MAAM,EAAE,MAAM,CAAC,CAAC;AAElF,eAAO,MAAM,eAAe;;;;;CAAmD,CAAC;AAEhF,eAAO,MAAM,WAAW,QAAO,eAa9B,CAAC"}
@@ -1,5 +1,5 @@
1
- import { type useEffect } from 'react';
2
- export declare const useVisualViewport: (deps?: Parameters<typeof useEffect>[1]) => {
1
+ import { useViewportResize } from '@dxos/react-hooks';
2
+ export declare const useVisualViewport: (deps?: Parameters<typeof useViewportResize>[1]) => {
3
3
  width: number | null;
4
4
  height: number | null;
5
5
  };