@dxos/react-ui 0.8.4-main.406dc2a → 0.8.4-main.52d7546f51

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 (323) hide show
  1. package/dist/lib/browser/chunk-6DTBPJE4.mjs +774 -0
  2. package/dist/lib/browser/chunk-6DTBPJE4.mjs.map +7 -0
  3. package/dist/lib/browser/index.mjs +3200 -64
  4. package/dist/lib/browser/index.mjs.map +4 -4
  5. package/dist/lib/browser/meta.json +1 -1
  6. package/dist/lib/browser/testing/index.mjs +37 -48
  7. package/dist/lib/browser/testing/index.mjs.map +4 -4
  8. package/dist/lib/node-esm/chunk-JKHQSGNU.mjs +776 -0
  9. package/dist/lib/node-esm/chunk-JKHQSGNU.mjs.map +7 -0
  10. package/dist/lib/node-esm/index.mjs +3200 -64
  11. package/dist/lib/node-esm/index.mjs.map +4 -4
  12. package/dist/lib/node-esm/meta.json +1 -1
  13. package/dist/lib/node-esm/testing/index.mjs +37 -48
  14. package/dist/lib/node-esm/testing/index.mjs.map +4 -4
  15. package/dist/types/src/components/AnchoredOverflow/AnchoredOverflow.d.ts +7 -0
  16. package/dist/types/src/components/AnchoredOverflow/AnchoredOverflow.d.ts.map +1 -1
  17. package/dist/types/src/components/Avatars/Avatar.d.ts.map +1 -1
  18. package/dist/types/src/components/Breadcrumb/Breadcrumb.d.ts.map +1 -1
  19. package/dist/types/src/components/{Buttons → Button}/Button.d.ts +1 -1
  20. package/dist/types/src/components/Button/Button.d.ts.map +1 -0
  21. package/dist/types/src/components/Button/Button.stories.d.ts.map +1 -0
  22. package/dist/types/src/components/{Buttons → Button}/IconButton.d.ts +2 -2
  23. package/dist/types/src/components/Button/IconButton.d.ts.map +1 -0
  24. package/dist/types/src/components/Button/IconButton.stories.d.ts.map +1 -0
  25. package/dist/types/src/components/Button/Toggle.d.ts.map +1 -0
  26. package/dist/types/src/components/Button/Toggle.stories.d.ts +16 -0
  27. package/dist/types/src/components/Button/Toggle.stories.d.ts.map +1 -0
  28. package/dist/types/src/components/{Buttons → Button}/ToggleGroup.d.ts +4 -4
  29. package/dist/types/src/components/Button/ToggleGroup.d.ts.map +1 -0
  30. package/dist/types/src/components/{Buttons → Button}/ToggleGroup.stories.d.ts +4 -4
  31. package/dist/types/src/components/Button/ToggleGroup.stories.d.ts.map +1 -0
  32. package/dist/types/src/components/Button/index.d.ts.map +1 -0
  33. package/dist/types/src/components/Clipboard/CopyButton.d.ts +1 -1
  34. package/dist/types/src/components/Clipboard/CopyButton.d.ts.map +1 -1
  35. package/dist/types/src/components/DensityProvider/DensityProvider.d.ts +1 -1
  36. package/dist/types/src/components/DensityProvider/DensityProvider.d.ts.map +1 -1
  37. package/dist/types/src/components/Dialog/AlertDialog.d.ts.map +1 -0
  38. package/dist/types/src/components/Dialog/AlertDialog.stories.d.ts.map +1 -0
  39. package/dist/types/src/components/Dialog/Dialog.d.ts +46 -0
  40. package/dist/types/src/components/Dialog/Dialog.d.ts.map +1 -0
  41. package/dist/types/src/components/{Dialogs → Dialog}/Dialog.stories.d.ts +7 -5
  42. package/dist/types/src/components/Dialog/Dialog.stories.d.ts.map +1 -0
  43. package/dist/types/src/components/Dialog/index.d.ts.map +1 -0
  44. package/dist/types/src/components/ElevationProvider/ElevationProvider.d.ts +1 -1
  45. package/dist/types/src/components/ElevationProvider/ElevationProvider.d.ts.map +1 -1
  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 +5 -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 +2 -2
  53. package/dist/types/src/components/Input/Input.stories.d.ts.map +1 -1
  54. package/dist/types/src/components/{Lists → List}/List.d.ts +1 -1
  55. package/dist/types/src/components/List/List.d.ts.map +1 -0
  56. package/dist/types/src/components/List/List.stories.d.ts.map +1 -0
  57. package/dist/types/src/components/List/ListDropIndicator.d.ts.map +1 -0
  58. package/dist/types/src/components/List/Tree.d.ts.map +1 -0
  59. package/dist/types/src/components/List/Tree.stories.d.ts.map +1 -0
  60. package/dist/types/src/components/List/TreeDropIndicator.d.ts.map +1 -0
  61. package/dist/types/src/components/List/Treegrid.d.ts.map +1 -0
  62. package/dist/types/src/components/List/Treegrid.stories.d.ts.map +1 -0
  63. package/dist/types/src/components/List/index.d.ts.map +1 -0
  64. package/dist/types/src/components/Main/Main.d.ts +16 -17
  65. package/dist/types/src/components/Main/Main.d.ts.map +1 -1
  66. package/dist/types/src/components/Main/Main.stories.d.ts.map +1 -1
  67. package/dist/types/src/components/{Menus → Menu}/ContextMenu.d.ts +6 -6
  68. package/dist/types/src/components/Menu/ContextMenu.d.ts.map +1 -0
  69. package/dist/types/src/components/Menu/ContextMenu.stories.d.ts.map +1 -0
  70. package/dist/types/src/components/{Menus → Menu}/DropdownMenu.d.ts +3 -4
  71. package/dist/types/src/components/Menu/DropdownMenu.d.ts.map +1 -0
  72. package/dist/types/src/components/Menu/DropdownMenu.stories.d.ts.map +1 -0
  73. package/dist/types/src/components/Menu/index.d.ts.map +1 -0
  74. package/dist/types/src/components/Message/Message.d.ts +1 -1
  75. package/dist/types/src/components/Message/Message.d.ts.map +1 -1
  76. package/dist/types/src/components/Message/Message.stories.d.ts +1 -1
  77. package/dist/types/src/components/Message/Message.stories.d.ts.map +1 -1
  78. package/dist/types/src/components/Popover/Popover.d.ts +1 -1
  79. package/dist/types/src/components/Popover/Popover.d.ts.map +1 -1
  80. package/dist/types/src/components/ScrollArea/ScrollArea.d.ts +25 -26
  81. package/dist/types/src/components/ScrollArea/ScrollArea.d.ts.map +1 -1
  82. package/dist/types/src/components/ScrollArea/ScrollArea.stories.d.ts +46 -8
  83. package/dist/types/src/components/ScrollArea/ScrollArea.stories.d.ts.map +1 -1
  84. package/dist/types/src/components/ScrollContainer/ScrollContainer.d.ts +39 -0
  85. package/dist/types/src/components/ScrollContainer/ScrollContainer.d.ts.map +1 -0
  86. package/dist/types/src/components/ScrollContainer/ScrollContainer.stories.d.ts +19 -0
  87. package/dist/types/src/components/ScrollContainer/ScrollContainer.stories.d.ts.map +1 -0
  88. package/dist/types/src/components/ScrollContainer/index.d.ts +2 -0
  89. package/dist/types/src/components/ScrollContainer/index.d.ts.map +1 -0
  90. package/dist/types/src/components/Select/Select.d.ts +10 -10
  91. package/dist/types/src/components/Select/Select.d.ts.map +1 -1
  92. package/dist/types/src/components/Separator/Separator.d.ts +1 -1
  93. package/dist/types/src/components/Skeleton/Skeleton.d.ts +12 -0
  94. package/dist/types/src/components/Skeleton/Skeleton.d.ts.map +1 -0
  95. package/dist/types/src/components/Skeleton/Skeleton.stories.d.ts +17 -0
  96. package/dist/types/src/components/Skeleton/Skeleton.stories.d.ts.map +1 -0
  97. package/dist/types/src/components/Skeleton/index.d.ts +2 -0
  98. package/dist/types/src/components/Skeleton/index.d.ts.map +1 -0
  99. package/dist/types/src/components/Splitter/Splitter.d.ts +26 -0
  100. package/dist/types/src/components/Splitter/Splitter.d.ts.map +1 -0
  101. package/dist/types/src/components/Splitter/Splitter.stories.d.ts +7 -0
  102. package/dist/types/src/components/Splitter/Splitter.stories.d.ts.map +1 -0
  103. package/dist/types/src/components/Splitter/index.d.ts +2 -0
  104. package/dist/types/src/components/Splitter/index.d.ts.map +1 -0
  105. package/dist/types/src/components/Tag/Tag.d.ts +1 -1
  106. package/dist/types/src/components/Tag/Tag.d.ts.map +1 -1
  107. package/dist/types/src/components/ThemeProvider/ThemeProvider.d.ts +2 -2
  108. package/dist/types/src/components/ThemeProvider/ThemeProvider.d.ts.map +1 -1
  109. package/dist/types/src/components/ThemeProvider/TranslationsProvider.d.ts +1 -8
  110. package/dist/types/src/components/ThemeProvider/TranslationsProvider.d.ts.map +1 -1
  111. package/dist/types/src/components/ThemeProvider/index.d.ts +2 -1
  112. package/dist/types/src/components/ThemeProvider/index.d.ts.map +1 -1
  113. package/dist/types/src/components/Toast/Toast.d.ts +4 -4
  114. package/dist/types/src/components/Toast/Toast.d.ts.map +1 -1
  115. package/dist/types/src/components/Toolbar/Toolbar.d.ts +14 -11
  116. package/dist/types/src/components/Toolbar/Toolbar.d.ts.map +1 -1
  117. package/dist/types/src/components/Toolbar/Toolbar.stories.d.ts.map +1 -1
  118. package/dist/types/src/components/Tooltip/Tooltip.d.ts.map +1 -1
  119. package/dist/types/src/components/index.d.ts +7 -4
  120. package/dist/types/src/components/index.d.ts.map +1 -1
  121. package/dist/types/src/exemplars/generics.stories.d.ts +17 -0
  122. package/dist/types/src/exemplars/generics.stories.d.ts.map +1 -0
  123. package/dist/types/src/exemplars/slot.stories.d.ts +14 -0
  124. package/dist/types/src/exemplars/slot.stories.d.ts.map +1 -0
  125. package/dist/types/src/exemplars/tabster.stories.d.ts +8 -0
  126. package/dist/types/src/exemplars/tabster.stories.d.ts.map +1 -0
  127. package/dist/types/src/hooks/useDensityContext.d.ts +1 -1
  128. package/dist/types/src/hooks/useDensityContext.d.ts.map +1 -1
  129. package/dist/types/src/hooks/useElevationContext.d.ts +1 -1
  130. package/dist/types/src/hooks/useElevationContext.d.ts.map +1 -1
  131. package/dist/types/src/index.d.ts +2 -1
  132. package/dist/types/src/index.d.ts.map +1 -1
  133. package/dist/types/src/playground/Controls.stories.d.ts.map +1 -1
  134. package/dist/types/src/playground/Custom.stories.d.ts.map +1 -1
  135. package/dist/types/src/primitives/Container/Container.d.ts +23 -0
  136. package/dist/types/src/primitives/Container/Container.d.ts.map +1 -0
  137. package/dist/types/src/primitives/Container/Container.stories.d.ts +11 -0
  138. package/dist/types/src/primitives/Container/Container.stories.d.ts.map +1 -0
  139. package/dist/types/src/primitives/Container/Layout.d.ts +18 -0
  140. package/dist/types/src/primitives/Container/Layout.d.ts.map +1 -0
  141. package/dist/types/src/primitives/Container/Layout.stories.d.ts +10 -0
  142. package/dist/types/src/primitives/Container/Layout.stories.d.ts.map +1 -0
  143. package/dist/types/src/primitives/Container/index.d.ts +3 -0
  144. package/dist/types/src/primitives/Container/index.d.ts.map +1 -0
  145. package/dist/types/src/primitives/Flex/Flex.d.ts +8 -0
  146. package/dist/types/src/primitives/Flex/Flex.d.ts.map +1 -0
  147. package/dist/types/src/primitives/Flex/index.d.ts +2 -0
  148. package/dist/types/src/primitives/Flex/index.d.ts.map +1 -0
  149. package/dist/types/src/primitives/index.d.ts +3 -0
  150. package/dist/types/src/primitives/index.d.ts.map +1 -0
  151. package/dist/types/src/testing/decorators/index.d.ts +1 -1
  152. package/dist/types/src/testing/decorators/index.d.ts.map +1 -1
  153. package/dist/types/src/testing/decorators/withLayout.d.ts +3 -3
  154. package/dist/types/src/testing/decorators/withLayout.d.ts.map +1 -1
  155. package/dist/types/src/testing/decorators/withLayoutVariants.d.ts +12 -0
  156. package/dist/types/src/testing/decorators/withLayoutVariants.d.ts.map +1 -0
  157. package/dist/types/src/testing/decorators/withTheme.d.ts +3 -2
  158. package/dist/types/src/testing/decorators/withTheme.d.ts.map +1 -1
  159. package/dist/types/src/util/index.d.ts +1 -2
  160. package/dist/types/src/util/index.d.ts.map +1 -1
  161. package/dist/types/tsconfig.tsbuildinfo +1 -1
  162. package/package.json +38 -30
  163. package/src/components/AnchoredOverflow/AnchoredOverflow.tsx +10 -12
  164. package/src/components/Avatars/Avatar.stories.tsx +4 -4
  165. package/src/components/Avatars/Avatar.tsx +3 -10
  166. package/src/components/Avatars/AvatarGroup.stories.tsx +2 -2
  167. package/src/components/Breadcrumb/Breadcrumb.stories.tsx +3 -3
  168. package/src/components/Breadcrumb/Breadcrumb.tsx +5 -31
  169. package/src/components/{Buttons → Button}/Button.stories.tsx +3 -3
  170. package/src/components/{Buttons → Button}/Button.tsx +2 -8
  171. package/src/components/{Buttons → Button}/IconButton.stories.tsx +2 -2
  172. package/src/components/{Buttons → Button}/IconButton.tsx +20 -14
  173. package/src/components/{Buttons → Button}/Toggle.stories.tsx +7 -6
  174. package/src/components/{Buttons → Button}/ToggleGroup.stories.tsx +2 -2
  175. package/src/components/Clipboard/CopyButton.tsx +4 -4
  176. package/src/components/DensityProvider/DensityProvider.tsx +1 -1
  177. package/src/components/{Dialogs → Dialog}/AlertDialog.stories.tsx +3 -3
  178. package/src/components/{Dialogs → Dialog}/AlertDialog.tsx +3 -8
  179. package/src/components/Dialog/Dialog.stories.tsx +101 -0
  180. package/src/components/{Dialogs → Dialog}/Dialog.tsx +171 -46
  181. package/src/components/ElevationProvider/ElevationProvider.tsx +1 -1
  182. package/src/components/Icon/Icon.stories.tsx +113 -0
  183. package/src/components/Icon/Icon.tsx +3 -3
  184. package/src/components/Input/Input.stories.tsx +12 -11
  185. package/src/components/Input/Input.tsx +23 -29
  186. package/src/components/Link/Link.stories.tsx +2 -2
  187. package/src/components/Link/Link.tsx +1 -1
  188. package/src/components/{Lists → List}/List.stories.tsx +19 -15
  189. package/src/components/{Lists → List}/List.tsx +8 -14
  190. package/src/components/{Lists → List}/ListDropIndicator.tsx +1 -1
  191. package/src/components/{Lists → List}/Tree.stories.tsx +2 -2
  192. package/src/components/{Lists → List}/Treegrid.stories.tsx +2 -2
  193. package/src/components/{Lists → List}/Treegrid.tsx +4 -9
  194. package/src/components/Main/Main.stories.tsx +41 -20
  195. package/src/components/Main/Main.tsx +139 -82
  196. package/src/components/{Menus → Menu}/ContextMenu.stories.tsx +2 -2
  197. package/src/components/{Menus → Menu}/ContextMenu.tsx +7 -31
  198. package/src/components/{Menus → Menu}/DropdownMenu.stories.tsx +3 -3
  199. package/src/components/{Menus → Menu}/DropdownMenu.tsx +87 -66
  200. package/src/components/Message/Message.stories.tsx +3 -3
  201. package/src/components/Message/Message.tsx +34 -23
  202. package/src/components/Popover/Popover.stories.tsx +3 -3
  203. package/src/components/Popover/Popover.tsx +55 -36
  204. package/src/components/ScrollArea/ScrollArea.stories.tsx +166 -40
  205. package/src/components/ScrollArea/ScrollArea.tsx +80 -82
  206. package/src/components/ScrollArea/index.ts +1 -1
  207. package/src/components/ScrollContainer/ScrollContainer.stories.tsx +70 -0
  208. package/src/components/ScrollContainer/ScrollContainer.tsx +238 -0
  209. package/src/components/ScrollContainer/index.ts +5 -0
  210. package/src/components/Select/Select.stories.tsx +3 -3
  211. package/src/components/Select/Select.tsx +13 -29
  212. package/src/components/Separator/Separator.tsx +1 -1
  213. package/src/components/Skeleton/Skeleton.stories.tsx +52 -0
  214. package/src/components/Skeleton/Skeleton.tsx +26 -0
  215. package/src/components/Skeleton/index.ts +5 -0
  216. package/src/components/Splitter/Splitter.stories.tsx +73 -0
  217. package/src/components/Splitter/Splitter.tsx +123 -0
  218. package/src/components/Splitter/index.ts +5 -0
  219. package/src/components/Status/Status.stories.tsx +2 -2
  220. package/src/components/Status/Status.tsx +2 -2
  221. package/src/components/Tag/Tag.stories.tsx +4 -4
  222. package/src/components/Tag/Tag.tsx +2 -7
  223. package/src/components/ThemeProvider/ThemeProvider.tsx +3 -4
  224. package/src/components/ThemeProvider/TranslationsProvider.tsx +1 -16
  225. package/src/components/ThemeProvider/index.ts +3 -3
  226. package/src/components/Toast/Toast.stories.tsx +3 -3
  227. package/src/components/Toast/Toast.tsx +6 -10
  228. package/src/components/Toolbar/Toolbar.stories.tsx +4 -6
  229. package/src/components/Toolbar/Toolbar.tsx +32 -12
  230. package/src/components/Tooltip/Tooltip.stories.tsx +3 -3
  231. package/src/components/Tooltip/Tooltip.tsx +24 -22
  232. package/src/components/index.ts +7 -4
  233. package/src/exemplars/generics.stories.tsx +44 -0
  234. package/src/exemplars/slot.stories.tsx +108 -0
  235. package/src/exemplars/tabster.stories.tsx +127 -0
  236. package/src/hooks/useDensityContext.ts +1 -1
  237. package/src/hooks/useElevationContext.ts +1 -1
  238. package/src/index.ts +2 -1
  239. package/src/playground/Controls.stories.tsx +3 -4
  240. package/src/playground/Custom.stories.tsx +8 -10
  241. package/src/playground/Typography.stories.tsx +2 -2
  242. package/src/primitives/Container/Container.stories.tsx +67 -0
  243. package/src/primitives/Container/Container.tsx +79 -0
  244. package/src/primitives/Container/Layout.stories.tsx +57 -0
  245. package/src/primitives/Container/Layout.tsx +61 -0
  246. package/src/primitives/Container/index.ts +6 -0
  247. package/src/primitives/Flex/Flex.tsx +26 -0
  248. package/src/primitives/Flex/index.ts +5 -0
  249. package/src/primitives/index.ts +6 -0
  250. package/src/testing/decorators/index.ts +1 -1
  251. package/src/testing/decorators/withLayout.tsx +22 -15
  252. package/src/testing/decorators/{withSurfaceVariantsLayout.tsx → withLayoutVariants.tsx} +5 -5
  253. package/src/testing/decorators/withTheme.tsx +21 -18
  254. package/src/util/index.ts +2 -2
  255. package/dist/lib/browser/chunk-KX5JDELJ.mjs +0 -4521
  256. package/dist/lib/browser/chunk-KX5JDELJ.mjs.map +0 -7
  257. package/dist/lib/node-esm/chunk-3HDQYL5S.mjs +0 -4523
  258. package/dist/lib/node-esm/chunk-3HDQYL5S.mjs.map +0 -7
  259. package/dist/types/src/components/Buttons/Button.d.ts.map +0 -1
  260. package/dist/types/src/components/Buttons/Button.stories.d.ts.map +0 -1
  261. package/dist/types/src/components/Buttons/IconButton.d.ts.map +0 -1
  262. package/dist/types/src/components/Buttons/IconButton.stories.d.ts.map +0 -1
  263. package/dist/types/src/components/Buttons/Toggle.d.ts.map +0 -1
  264. package/dist/types/src/components/Buttons/Toggle.stories.d.ts +0 -13
  265. package/dist/types/src/components/Buttons/Toggle.stories.d.ts.map +0 -1
  266. package/dist/types/src/components/Buttons/ToggleGroup.d.ts.map +0 -1
  267. package/dist/types/src/components/Buttons/ToggleGroup.stories.d.ts.map +0 -1
  268. package/dist/types/src/components/Buttons/index.d.ts.map +0 -1
  269. package/dist/types/src/components/Dialogs/AlertDialog.d.ts.map +0 -1
  270. package/dist/types/src/components/Dialogs/AlertDialog.stories.d.ts.map +0 -1
  271. package/dist/types/src/components/Dialogs/Dialog.d.ts +0 -31
  272. package/dist/types/src/components/Dialogs/Dialog.d.ts.map +0 -1
  273. package/dist/types/src/components/Dialogs/Dialog.stories.d.ts.map +0 -1
  274. package/dist/types/src/components/Dialogs/index.d.ts.map +0 -1
  275. package/dist/types/src/components/Lists/List.d.ts.map +0 -1
  276. package/dist/types/src/components/Lists/List.stories.d.ts.map +0 -1
  277. package/dist/types/src/components/Lists/ListDropIndicator.d.ts.map +0 -1
  278. package/dist/types/src/components/Lists/Tree.d.ts.map +0 -1
  279. package/dist/types/src/components/Lists/Tree.stories.d.ts.map +0 -1
  280. package/dist/types/src/components/Lists/TreeDropIndicator.d.ts.map +0 -1
  281. package/dist/types/src/components/Lists/Treegrid.d.ts.map +0 -1
  282. package/dist/types/src/components/Lists/Treegrid.stories.d.ts.map +0 -1
  283. package/dist/types/src/components/Lists/index.d.ts.map +0 -1
  284. package/dist/types/src/components/Menus/ContextMenu.d.ts.map +0 -1
  285. package/dist/types/src/components/Menus/ContextMenu.stories.d.ts.map +0 -1
  286. package/dist/types/src/components/Menus/DropdownMenu.d.ts.map +0 -1
  287. package/dist/types/src/components/Menus/DropdownMenu.stories.d.ts.map +0 -1
  288. package/dist/types/src/components/Menus/index.d.ts.map +0 -1
  289. package/dist/types/src/testing/decorators/withSurfaceVariantsLayout.d.ts +0 -12
  290. package/dist/types/src/testing/decorators/withSurfaceVariantsLayout.d.ts.map +0 -1
  291. package/dist/types/src/util/ThemedClassName.d.ts +0 -5
  292. package/dist/types/src/util/ThemedClassName.d.ts.map +0 -1
  293. package/dist/types/src/util/domino.d.ts +0 -18
  294. package/dist/types/src/util/domino.d.ts.map +0 -1
  295. package/src/components/Dialogs/Dialog.stories.tsx +0 -67
  296. package/src/util/ThemedClassName.ts +0 -7
  297. package/src/util/domino.ts +0 -53
  298. /package/dist/types/src/components/{Buttons → Button}/Button.stories.d.ts +0 -0
  299. /package/dist/types/src/components/{Buttons → Button}/IconButton.stories.d.ts +0 -0
  300. /package/dist/types/src/components/{Buttons → Button}/Toggle.d.ts +0 -0
  301. /package/dist/types/src/components/{Buttons → Button}/index.d.ts +0 -0
  302. /package/dist/types/src/components/{Dialogs → Dialog}/AlertDialog.d.ts +0 -0
  303. /package/dist/types/src/components/{Dialogs → Dialog}/AlertDialog.stories.d.ts +0 -0
  304. /package/dist/types/src/components/{Dialogs → Dialog}/index.d.ts +0 -0
  305. /package/dist/types/src/components/{Lists → List}/List.stories.d.ts +0 -0
  306. /package/dist/types/src/components/{Lists → List}/ListDropIndicator.d.ts +0 -0
  307. /package/dist/types/src/components/{Lists → List}/Tree.d.ts +0 -0
  308. /package/dist/types/src/components/{Lists → List}/Tree.stories.d.ts +0 -0
  309. /package/dist/types/src/components/{Lists → List}/TreeDropIndicator.d.ts +0 -0
  310. /package/dist/types/src/components/{Lists → List}/Treegrid.d.ts +0 -0
  311. /package/dist/types/src/components/{Lists → List}/Treegrid.stories.d.ts +0 -0
  312. /package/dist/types/src/components/{Lists → List}/index.d.ts +0 -0
  313. /package/dist/types/src/components/{Menus → Menu}/ContextMenu.stories.d.ts +0 -0
  314. /package/dist/types/src/components/{Menus → Menu}/DropdownMenu.stories.d.ts +0 -0
  315. /package/dist/types/src/components/{Menus → Menu}/index.d.ts +0 -0
  316. /package/src/components/{Buttons → Button}/Toggle.tsx +0 -0
  317. /package/src/components/{Buttons → Button}/ToggleGroup.tsx +0 -0
  318. /package/src/components/{Buttons → Button}/index.ts +0 -0
  319. /package/src/components/{Dialogs → Dialog}/index.ts +0 -0
  320. /package/src/components/{Lists → List}/Tree.tsx +0 -0
  321. /package/src/components/{Lists → List}/TreeDropIndicator.tsx +0 -0
  322. /package/src/components/{Lists → List}/index.ts +0 -0
  323. /package/src/components/{Menus → Menu}/index.ts +0 -0
@@ -1,28 +1,29 @@
1
1
  import { DialogContent } from '@radix-ui/react-dialog';
2
2
  import { Primitive } from '@radix-ui/react-primitive';
3
3
  import React, { type ComponentPropsWithRef, type ComponentPropsWithoutRef, type Dispatch, type KeyboardEvent, type PropsWithChildren, type SetStateAction } from 'react';
4
+ import { type MainStyleProps } from '@dxos/ui-theme';
4
5
  import { type ThemedClassName } from '../../util';
5
6
  import { type Label } from '../ThemeProvider';
6
- type SidebarState = 'expanded' | 'collapsed' | 'closed';
7
- type MainContextValue = {
8
- resizing: boolean;
9
- navigationSidebarState: SidebarState;
10
- setNavigationSidebarState: Dispatch<SetStateAction<SidebarState | undefined>>;
11
- complementarySidebarState: SidebarState;
12
- setComplementarySidebarState: Dispatch<SetStateAction<SidebarState | undefined>>;
13
- };
14
7
  /**
15
8
  * Facilitates moving focus between landmarks.
16
9
  * Ref https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Roles/landmark_role
17
10
  */
18
11
  declare const useLandmarkMover: (propsOnKeyDown: ComponentPropsWithoutRef<"div">["onKeyDown"], landmark: string) => {
19
12
  "data-tabster": string | undefined;
20
- onKeyDown: (event: KeyboardEvent<HTMLDivElement>) => void;
21
13
  "data-main-landmark": string;
22
14
  tabIndex: number;
15
+ onKeyDown: (event: KeyboardEvent<HTMLDivElement>) => void;
16
+ };
17
+ type SidebarState = 'expanded' | 'collapsed' | 'closed';
18
+ type MainContextValue = {
19
+ resizing: boolean;
20
+ navigationSidebarState: SidebarState;
21
+ setNavigationSidebarState: Dispatch<SetStateAction<SidebarState | undefined>>;
22
+ complementarySidebarState: SidebarState;
23
+ setComplementarySidebarState: Dispatch<SetStateAction<SidebarState | undefined>>;
23
24
  };
24
25
  declare const useMainContext: (consumerName: string) => MainContextValue;
25
- declare const useSidebars: (consumerName?: string) => {
26
+ declare const useSidebars: (consumerName: string) => {
26
27
  navigationSidebarState: SidebarState;
27
28
  setNavigationSidebarState: React.Dispatch<React.SetStateAction<SidebarState | undefined>>;
28
29
  toggleNavigationSidebar: () => void;
@@ -44,6 +45,7 @@ type MainRootProps = PropsWithChildren<{
44
45
  defaultComplementarySidebarState?: SidebarState;
45
46
  onComplementarySidebarStateChange?: (nextState: SidebarState) => void;
46
47
  }>;
48
+ type MainOverlayProps = ThemedClassName<Omit<ComponentPropsWithRef<typeof Primitive.div>, 'children' | 'onClick'>>;
47
49
  type MainSidebarProps = ThemedClassName<ComponentPropsWithRef<typeof DialogContent>> & {
48
50
  swipeToDismiss?: boolean;
49
51
  state?: SidebarState;
@@ -54,22 +56,19 @@ type MainSidebarProps = ThemedClassName<ComponentPropsWithRef<typeof DialogConte
54
56
  };
55
57
  type MainNavigationSidebarProps = Omit<MainSidebarProps, 'expanded' | 'side'>;
56
58
  type MainComplementarySidebarProps = Omit<MainSidebarProps, 'expanded' | 'side'>;
57
- type MainProps = ThemedClassName<ComponentPropsWithRef<typeof Primitive.div>> & {
59
+ type MainContentProps = ThemedClassName<ComponentPropsWithRef<typeof Primitive.div> & MainStyleProps & {
58
60
  asChild?: boolean;
59
- bounce?: boolean;
60
- handlesFocus?: boolean;
61
- };
62
- type MainOverlayProps = ThemedClassName<Omit<ComponentPropsWithRef<typeof Primitive.div>, 'children'>>;
61
+ }>;
63
62
  export declare const Main: {
64
63
  Root: {
65
64
  ({ navigationSidebarState: propsNavigationSidebarState, defaultNavigationSidebarState, onNavigationSidebarStateChange, complementarySidebarState: propsComplementarySidebarState, defaultComplementarySidebarState, onComplementarySidebarStateChange, children, ...props }: MainRootProps): React.JSX.Element;
66
65
  displayName: string;
67
66
  };
68
- Content: React.ForwardRefExoticComponent<Omit<MainProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
69
67
  Overlay: React.ForwardRefExoticComponent<Omit<MainOverlayProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
68
+ Content: React.ForwardRefExoticComponent<Omit<MainContentProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
70
69
  NavigationSidebar: React.ForwardRefExoticComponent<Omit<MainNavigationSidebarProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
71
70
  ComplementarySidebar: React.ForwardRefExoticComponent<Omit<MainComplementarySidebarProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
72
71
  };
73
72
  export { useMainContext, useSidebars, useLandmarkMover };
74
- export type { MainRootProps, MainProps, MainOverlayProps, MainNavigationSidebarProps, SidebarState };
73
+ export type { MainRootProps, MainOverlayProps, MainContentProps, MainNavigationSidebarProps, SidebarState };
75
74
  //# sourceMappingURL=Main.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Main.d.ts","sourceRoot":"","sources":["../../../../../src/components/Main/Main.tsx"],"names":[],"mappings":"AAMA,OAAO,EAAE,aAAa,EAAmC,MAAM,wBAAwB,CAAC;AACxF,OAAO,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAC;AAGtD,OAAO,KAAK,EAAE,EACZ,KAAK,qBAAqB,EAC1B,KAAK,wBAAwB,EAC7B,KAAK,QAAQ,EACb,KAAK,aAAa,EAClB,KAAK,iBAAiB,EACtB,KAAK,cAAc,EAMpB,MAAM,OAAO,CAAC;AAMf,OAAO,EAAE,KAAK,eAAe,EAAE,MAAM,YAAY,CAAC;AAClD,OAAO,EAAE,KAAK,KAAK,EAAqC,MAAM,kBAAkB,CAAC;AAUjF,KAAK,YAAY,GAAG,UAAU,GAAG,WAAW,GAAG,QAAQ,CAAC;AAExD,KAAK,gBAAgB,GAAG;IACtB,QAAQ,EAAE,OAAO,CAAC;IAClB,sBAAsB,EAAE,YAAY,CAAC;IACrC,yBAAyB,EAAE,QAAQ,CAAC,cAAc,CAAC,YAAY,GAAG,SAAS,CAAC,CAAC,CAAC;IAC9E,yBAAyB,EAAE,YAAY,CAAC;IACxC,4BAA4B,EAAE,QAAQ,CAAC,cAAc,CAAC,YAAY,GAAG,SAAS,CAAC,CAAC,CAAC;CAClF,CAAC;AAIF;;;GAGG;AACH,QAAA,MAAM,gBAAgB,GAAI,gBAAgB,wBAAwB,CAAC,KAAK,CAAC,CAAC,WAAW,CAAC,EAAE,UAAU,MAAM;;uBAE5F,aAAa,CAAC,cAAc,CAAC;;;CA2BxC,CAAC;AAEF,QAAA,MAAqB,cAAc,4CAYjC,CAAC;AAEH,QAAA,MAAM,WAAW,GAAI,qBAAoC;;;;;;;;;;;;;CAwBxD,CAAC;AAEF,KAAK,aAAa,GAAG,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CAAC;CACnB,CACJ,CAAC;AAgCF,eAAO,MAAM,IAAI;;qRArPd,aAAa;;;;;;;CA2Pf,CAAC;AAEF,OAAO,EAAE,cAAc,EAAE,WAAW,EAAE,gBAAgB,EAAE,CAAC;AAEzD,YAAY,EAAE,aAAa,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,0BAA0B,EAAE,YAAY,EAAE,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"Main.stories.d.ts","sourceRoot":"","sources":["../../../../../src/components/Main/Main.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAa,KAAK,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AACjE,OAAO,KAAK,MAAM,OAAO,CAAC;AAO1B,KAAK,aAAa,GAAG,EAAE,CAAC;AAmCxB,QAAA,MAAM,IAAI;;;;;;oBAvBmB,aAAa;;;;;;;;CAkCL,CAAC;AAEtC,eAAe,IAAI,CAAC;AAEpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAEnC,eAAO,MAAM,OAAO,EAAE,KAErB,CAAC"}
1
+ {"version":3,"file":"Main.stories.d.ts","sourceRoot":"","sources":["../../../../../src/components/Main/Main.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAa,KAAK,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AACjE,OAAO,KAAK,MAAM,OAAO,CAAC;AAQ1B,KAAK,aAAa,GAAG,EAAE,CAAC;AAuDxB,QAAA,MAAM,IAAI;;;;;;oBA7BmB,aAAa;;;;;;;;CAwCL,CAAC;AAEtC,eAAe,IAAI,CAAC;AAEpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAEnC,eAAO,MAAM,OAAO,EAAE,KAErB,CAAC"}
@@ -23,27 +23,27 @@ export declare const ContextMenu: {
23
23
  Trigger: React.ForwardRefExoticComponent<ContextMenuPrimitive.ContextMenuTriggerProps & React.RefAttributes<HTMLSpanElement>>;
24
24
  Portal: React.FC<ContextMenuPrimitive.ContextMenuPortalProps>;
25
25
  Content: React.ForwardRefExoticComponent<Omit<ContextMenuPrimitive.ContextMenuContentProps, "className"> & {
26
- classNames?: import("@dxos/react-ui-types").ClassNameValue;
26
+ classNames?: import("@dxos/ui-types").ClassNameValue;
27
27
  } & {
28
28
  constrainBlockSize?: boolean;
29
29
  } & React.RefAttributes<HTMLDivElement>>;
30
30
  Viewport: React.ForwardRefExoticComponent<Omit<ContextMenuViewportProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
31
31
  Arrow: React.ForwardRefExoticComponent<Omit<ContextMenuPrimitive.ContextMenuArrowProps, "className"> & {
32
- classNames?: import("@dxos/react-ui-types").ClassNameValue;
32
+ classNames?: import("@dxos/ui-types").ClassNameValue;
33
33
  } & React.RefAttributes<SVGSVGElement>>;
34
34
  Group: React.ForwardRefExoticComponent<ContextMenuPrimitive.ContextMenuGroupProps & React.RefAttributes<HTMLDivElement>>;
35
35
  Item: React.ForwardRefExoticComponent<Omit<ContextMenuPrimitive.ContextMenuItemProps, "className"> & {
36
- classNames?: import("@dxos/react-ui-types").ClassNameValue;
36
+ classNames?: import("@dxos/ui-types").ClassNameValue;
37
37
  } & React.RefAttributes<HTMLDivElement>>;
38
38
  CheckboxItem: React.ForwardRefExoticComponent<Omit<ContextMenuPrimitive.ContextMenuCheckboxItemProps, "className"> & {
39
- classNames?: import("@dxos/react-ui-types").ClassNameValue;
39
+ classNames?: import("@dxos/ui-types").ClassNameValue;
40
40
  } & React.RefAttributes<HTMLDivElement>>;
41
41
  ItemIndicator: React.ForwardRefExoticComponent<ContextMenuPrimitive.ContextMenuItemIndicatorProps & React.RefAttributes<HTMLSpanElement>>;
42
42
  Separator: React.ForwardRefExoticComponent<Omit<ContextMenuPrimitive.ContextMenuSeparatorProps, "className"> & {
43
- classNames?: import("@dxos/react-ui-types").ClassNameValue;
43
+ classNames?: import("@dxos/ui-types").ClassNameValue;
44
44
  } & React.RefAttributes<HTMLDivElement>>;
45
45
  GroupLabel: React.ForwardRefExoticComponent<Omit<ContextMenuPrimitive.ContextMenuLabelProps, "className"> & {
46
- classNames?: import("@dxos/react-ui-types").ClassNameValue;
46
+ classNames?: import("@dxos/ui-types").ClassNameValue;
47
47
  } & React.RefAttributes<HTMLDivElement>>;
48
48
  };
49
49
  export type { ContextMenuRootProps, ContextMenuTriggerProps, ContextMenuPortalProps, ContextMenuContentProps, ContextMenuViewportProps, ContextMenuArrowProps, ContextMenuGroupProps, ContextMenuItemProps, ContextMenuCheckboxItemProps, ContextMenuItemIndicatorProps, ContextMenuSeparatorProps, ContextMenuGroupLabelProps, };
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ContextMenu.d.ts","sourceRoot":"","sources":["../../../../../src/components/Menu/ContextMenu.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,oBAAoB,MAAM,8BAA8B,CAAC;AACrE,OAAO,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAC;AAEtD,OAAO,KAAK,EAAE,EAAE,KAAK,qBAAqB,EAAc,MAAM,OAAO,CAAC;AAItE,OAAO,EAAE,KAAK,eAAe,EAAE,MAAM,YAAY,CAAC;AAElD,KAAK,oBAAoB,GAAG,oBAAoB,CAAC,gBAAgB,CAAC;AAIlE,KAAK,uBAAuB,GAAG,oBAAoB,CAAC,uBAAuB,CAAC;AAI5E,KAAK,sBAAsB,GAAG,oBAAoB,CAAC,sBAAsB,CAAC;AAI1E,KAAK,uBAAuB,GAAG,eAAe,CAAC,oBAAoB,CAAC,uBAAuB,CAAC,GAAG;IAC7F,kBAAkB,CAAC,EAAE,OAAO,CAAC;CAC9B,CAAC;AAqBF,KAAK,wBAAwB,GAAG,eAAe,CAAC,qBAAqB,CAAC,OAAO,SAAS,CAAC,GAAG,CAAC,CAAC,GAAG;IAC7F,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB,CAAC;AAcF,KAAK,qBAAqB,GAAG,eAAe,CAAC,oBAAoB,CAAC,qBAAqB,CAAC,CAAC;AAOzF,KAAK,qBAAqB,GAAG,oBAAoB,CAAC,qBAAqB,CAAC;AAIxE,KAAK,6BAA6B,GAAG,oBAAoB,CAAC,6BAA6B,CAAC;AAIxF,KAAK,oBAAoB,GAAG,eAAe,CAAC,oBAAoB,CAAC,oBAAoB,CAAC,CAAC;AASvF,KAAK,4BAA4B,GAAG,eAAe,CAAC,oBAAoB,CAAC,4BAA4B,CAAC,CAAC;AAWvG,KAAK,yBAAyB,GAAG,eAAe,CAAC,oBAAoB,CAAC,yBAAyB,CAAC,CAAC;AAWjG,KAAK,0BAA0B,GAAG,eAAe,CAAC,oBAAoB,CAAC,qBAAqB,CAAC,CAAC;AAW9F,eAAO,MAAM,WAAW;;;;;;;6BA/FD,OAAO;;;;;;;;;;;;;;;;;;;;CA4G7B,CAAC;AAEF,YAAY,EACV,oBAAoB,EACpB,uBAAuB,EACvB,sBAAsB,EACtB,uBAAuB,EACvB,wBAAwB,EACxB,qBAAqB,EACrB,qBAAqB,EACrB,oBAAoB,EACpB,4BAA4B,EAC5B,6BAA6B,EAC7B,yBAAyB,EACzB,0BAA0B,GAC3B,CAAC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ContextMenu.stories.d.ts","sourceRoot":"","sources":["../../../../../src/components/Menu/ContextMenu.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAa,KAAK,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AACjE,OAAO,KAAK,MAAM,OAAO,CAAC;AAwF1B,QAAA,MAAM,IAAI;;eAEuB,GAAG;;;CAGC,CAAC;AAEtC,eAAe,IAAI,CAAC;AAEpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAEnC,eAAO,MAAM,OAAO,EAAE,KAKrB,CAAC"}
@@ -96,7 +96,7 @@ export declare const DropdownMenu: {
96
96
  CheckboxItem: React.ForwardRefExoticComponent<DropdownMenuCheckboxItemProps & React.RefAttributes<HTMLDivElement>>;
97
97
  RadioGroup: React.ForwardRefExoticComponent<DropdownMenuRadioGroupProps & React.RefAttributes<HTMLDivElement>>;
98
98
  RadioItem: React.ForwardRefExoticComponent<Omit<Omit<MenuPrimitive.MenuRadioItemProps & React.RefAttributes<HTMLDivElement>, "ref">, "className"> & {
99
- classNames?: import("@dxos/react-ui-types").ClassNameValue;
99
+ classNames?: import("@dxos/ui-types").ClassNameValue;
100
100
  } & React.RefAttributes<HTMLDivElement>>;
101
101
  ItemIndicator: React.ForwardRefExoticComponent<DropdownMenuItemIndicatorProps & React.RefAttributes<HTMLSpanElement>>;
102
102
  Separator: React.ForwardRefExoticComponent<DropdownMenuSeparatorProps & React.RefAttributes<HTMLDivElement>>;
@@ -105,9 +105,8 @@ export declare const DropdownMenu: {
105
105
  SubTrigger: React.ForwardRefExoticComponent<DropdownMenuSubTriggerProps & React.RefAttributes<HTMLDivElement>>;
106
106
  SubContent: React.ForwardRefExoticComponent<DropdownMenuSubContentProps & React.RefAttributes<HTMLDivElement>>;
107
107
  };
108
- declare const useDropdownMenuMenuScope: (scope: Scope) => {
109
- [__scopeProp: string]: Scope;
110
- };
108
+ type DropdownMenuScope = Scope;
109
+ declare const useDropdownMenuMenuScope: (scope?: DropdownMenuScope) => any;
111
110
  export { createDropdownMenuScope, useDropdownMenuContext, useDropdownMenuMenuScope };
112
111
  export type { DropdownMenuRootProps, DropdownMenuTriggerProps, DropdownMenuVirtualTriggerProps, DropdownMenuPortalProps, DropdownMenuContentProps, DropdownMenuViewportProps, DropdownMenuGroupProps, DropdownMenuLabelProps, DropdownMenuItemProps, DropdownMenuCheckboxItemProps, DropdownMenuRadioGroupProps, DropdownMenuRadioItemProps, DropdownMenuItemIndicatorProps, DropdownMenuSeparatorProps, DropdownMenuArrowProps, DropdownMenuSubProps, DropdownMenuSubTriggerProps, DropdownMenuSubContentProps, };
113
112
  //# sourceMappingURL=DropdownMenu.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DropdownMenu.d.ts","sourceRoot":"","sources":["../../../../../src/components/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AAK,CAAC;AAE/B,QAAA,MAAM,wBAAwB,EAAE,CAAC,KAAK,CAAC,EAAE,iBAAiB,KAAK,GAAkB,CAAC;AAElF,OAAO,EAAE,uBAAuB,EAAE,sBAAsB,EAAE,wBAAwB,EAAE,CAAC;AAErF,YAAY,EACV,qBAAqB,EACrB,wBAAwB,EACxB,+BAA+B,EAC/B,uBAAuB,EACvB,wBAAwB,EACxB,yBAAyB,EACzB,sBAAsB,EACtB,sBAAsB,EACtB,qBAAqB,EACrB,6BAA6B,EAC7B,2BAA2B,EAC3B,0BAA0B,EAC1B,8BAA8B,EAC9B,0BAA0B,EAC1B,sBAAsB,EACtB,oBAAoB,EACpB,2BAA2B,EAC3B,2BAA2B,GAC5B,CAAC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DropdownMenu.stories.d.ts","sourceRoot":"","sources":["../../../../../src/components/Menu/DropdownMenu.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAa,KAAK,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AACjE,OAAO,KAA2B,MAAM,OAAO,CAAC;AAwFhD,QAAA,MAAM,IAAI;;;;;CAK2B,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;;CAqC1B,CAAC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/Menu/index.ts"],"names":[],"mappings":"AAIA,cAAc,eAAe,CAAC;AAC9B,cAAc,gBAAgB,CAAC"}
@@ -1,6 +1,6 @@
1
1
  import { Primitive } from '@radix-ui/react-primitive';
2
2
  import React, { type ComponentPropsWithRef } from 'react';
3
- import { type Elevation, type MessageValence } from '@dxos/react-ui-types';
3
+ import { type Elevation, type MessageValence } from '@dxos/ui-types';
4
4
  import { type ThemedClassName } from '../../util';
5
5
  declare const messageIcons: Record<MessageValence, string>;
6
6
  type MessageRootProps = ThemedClassName<ComponentPropsWithRef<typeof Primitive.div>> & {
@@ -1 +1 @@
1
- {"version":3,"file":"Message.d.ts","sourceRoot":"","sources":["../../../../../src/components/Message/Message.tsx"],"names":[],"mappings":"AAKA,OAAO,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAC;AAEtD,OAAO,KAAK,EAAE,EAAE,KAAK,qBAAqB,EAAc,MAAM,OAAO,CAAC;AAGtE,OAAO,EAAE,KAAK,SAAS,EAAE,KAAK,cAAc,EAAE,MAAM,sBAAsB,CAAC;AAG3E,OAAO,EAAE,KAAK,eAAe,EAAE,MAAM,YAAY,CAAC;AAGlD,QAAA,MAAM,YAAY,EAAE,MAAM,CAAC,cAAc,EAAE,MAAM,CAMhD,CAAC;AAEF,KAAK,gBAAgB,GAAG,eAAe,CAAC,qBAAqB,CAAC,OAAO,SAAS,CAAC,GAAG,CAAC,CAAC,GAAG;IACrF,OAAO,CAAC,EAAE,cAAc,CAAC;IACzB,SAAS,CAAC,EAAE,SAAS,CAAC;IACtB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB,CAAC;AA4CF,KAAK,iBAAiB,GAAG,IAAI,CAAC,eAAe,CAAC,qBAAqB,CAAC,OAAO,SAAS,CAAC,EAAE,CAAC,CAAC,EAAE,IAAI,CAAC,GAAG;IACjG,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,IAAI,CAAC,EAAE,MAAM,CAAC;CACf,CAAC;AA+BF,KAAK,mBAAmB,GAAG,IAAI,CAAC,eAAe,CAAC,qBAAqB,CAAC,OAAO,SAAS,CAAC,EAAE,CAAC,CAAC,EAAE,IAAI,CAAC,GAAG;IACnG,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB,CAAC;AAwBF,eAAO,MAAM,OAAO;;;;CAAsE,CAAC;AAC3F,eAAO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,OAAO;;;;CAInB,CAAC;AAEF,eAAO,MAAM,OAAO;;;;CAAU,CAAC;AAE/B,YAAY,EAAE,gBAAgB,EAAE,iBAAiB,EAAE,mBAAmB,EAAE,CAAC;AAEzE,OAAO,EAAE,YAAY,EAAE,CAAC"}
@@ -1,6 +1,6 @@
1
1
  import { type StoryObj } from '@storybook/react-vite';
2
2
  import React from 'react';
3
- import { type MessageValence } from '@dxos/react-ui-types';
3
+ import { type MessageValence } from '@dxos/ui-types';
4
4
  type StoryProps = {
5
5
  valence: MessageValence;
6
6
  title: string;
@@ -1 +1 @@
1
- {"version":3,"file":"Message.stories.d.ts","sourceRoot":"","sources":["../../../../../src/components/Message/Message.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAa,KAAK,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AACjE,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,KAAK,cAAc,EAAE,MAAM,sBAAsB,CAAC;AAM3D,KAAK,UAAU,GAAG;IAChB,OAAO,EAAE,cAAc,CAAC;IACxB,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;CACd,CAAC;AASF,QAAA,MAAM,IAAI;;eAEmB,GAAG;uCATgB,UAAU;;;;;;;;;;;;;CAmBrB,CAAC;AAEtC,eAAe,IAAI,CAAC;AAEpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAEnC,eAAO,MAAM,OAAO,EAAE,KAMrB,CAAC"}
1
+ {"version":3,"file":"Message.stories.d.ts","sourceRoot":"","sources":["../../../../../src/components/Message/Message.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAa,KAAK,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AACjE,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,KAAK,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAMrD,KAAK,UAAU,GAAG;IAChB,OAAO,EAAE,cAAc,CAAC;IACxB,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;CACd,CAAC;AASF,QAAA,MAAM,IAAI;;eAEmB,GAAG;uCATgB,UAAU;;;;;;;;;;;;;CAmBrB,CAAC;AAEtC,eAAe,IAAI,CAAC;AAEpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAEnC,eAAO,MAAM,OAAO,EAAE,KAMrB,CAAC"}
@@ -90,7 +90,7 @@ export declare const Popover: {
90
90
  };
91
91
  Portal: React.FC<PopoverPortalProps>;
92
92
  Content: React.ForwardRefExoticComponent<Omit<PopoverContentTypeProps, "className"> & {
93
- classNames?: import("@dxos/react-ui-types").ClassNameValue;
93
+ classNames?: import("@dxos/ui-types").ClassNameValue;
94
94
  } & {
95
95
  /**
96
96
  * Used to force mounting when more control is needed. Useful when
@@ -1 +1 @@
1
- {"version":3,"file":"Popover.d.ts","sourceRoot":"","sources":["../../../../../src/components/Popover/Popover.tsx"],"names":[],"mappings":"AASA,OAAO,EAAE,KAAK,KAAK,EAAE,MAAM,yBAAyB,CAAC;AACrD,OAAO,EAAE,gBAAgB,EAAE,MAAM,mCAAmC,CAAC;AAErE,OAAO,EAAE,UAAU,EAAE,MAAM,6BAA6B,CAAC;AAEzD,OAAO,KAAK,eAAe,MAAM,wBAAwB,CAAC;AAE1D,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,wBAAwB,CAAC;AAEnE,OAAO,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAC;AAItD,OAAO,KAAK,EAAE,EACZ,KAAK,qBAAqB,EAC1B,KAAK,wBAAwB,EAC7B,KAAK,UAAU,EAGf,KAAK,SAAS,EACd,KAAK,SAAS,EAMf,MAAM,OAAO,CAAC;AAKf,OAAO,EAAE,KAAK,eAAe,EAAE,MAAM,YAAY,CAAC;AAQlD,KAAK,WAAW,CAAC,CAAC,IAAI,CAAC,GAAG;IAAE,cAAc,CAAC,EAAE,KAAK,CA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CAAC,EAAE,eAAe,CAAC,oBAAoB,CAAC,CAAC;CAC1D;AA8FD,UAAU,iBAAkB,SAAQ,oBAAoB;CAAG;AA0B3D,KAAK,gBAAgB,GAAG,eAAe,CAAC,wBAAwB,CAAC,OAAO,eAAe,CAAC,KAAK,CAAC,CAAC,CAAC;AAChG,UAAU,iBAAkB,SAAQ,gBAAgB;CAAG;AAwBvD,KAAK,oBAAoB,GAAG,eAAe,CAAC,qBAAqB,CAAC,OAAO,SAAS,CAAC,GAAG,CAAC,CAAC,GAAG;IACzF,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,cAAc,CAAC,EAAE,OAAO,CAAC;CAC1B,CAAC;AAoBF,KAAK,kCAAkC,GAAG,UAAU,CAAC,WAAW,CAAC,mBAAmB,CAAC,mBAAmB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;AAM/G,eAAO,MAAM,OAAO;;;;;gBAnZkB,WAAW,CAAC,0BAA0B,CAAC;;;;;;;QA8D3E;;;WAGG;qBACU,OAAO;;;;;CA2VrB,CAAC;AAEF,OAAO,EAAE,kBAAkB,EAAE,CAAC;AAE9B,YAAY,EACV,gBAAgB,EAChB,kBAAkB,EAClB,mBAAmB,EACnB,0BAA0B,EAC1B,kBAAkB,EAClB,mBAAmB,EACnB,iBAAiB,EACjB,iBAAiB,EACjB,oBAAoB,EACpB,kCAAkC,GACnC,CAAC"}
@@ -1,32 +1,31 @@
1
- import { type ScrollAreaCornerProps as ScrollAreaPrimitiveCornerProps, type ScrollAreaProps as ScrollAreaPrimitiveRootProps, type ScrollAreaScrollbarProps as ScrollAreaPrimitiveScrollbarProps, type ScrollAreaThumbProps as ScrollAreaPrimitiveThumbProps, type ScrollAreaViewportProps as ScrollAreaPrimitiveViewportProps } from '@radix-ui/react-scroll-area';
2
- import React from 'react';
3
- import { type ThemedClassName } from '../../util';
4
- type ScrollAreaVariant = 'coarse' | 'fine';
5
- type ScrollAreaRootProps = ThemedClassName<ScrollAreaPrimitiveRootProps>;
6
- type ScrollAreaViewportProps = ThemedClassName<ScrollAreaPrimitiveViewportProps>;
7
- type ScrollAreaScrollbarProps = ThemedClassName<ScrollAreaPrimitiveScrollbarProps> & {
8
- variant?: ScrollAreaVariant;
1
+ import React, { type HTMLAttributes } from 'react';
2
+ import { type AllowedAxis, type SlottableProps, type ThemedClassName } from '@dxos/ui-types';
3
+ type ScrollAreaContextType = {
4
+ /** Orientation of scrollbars. */
5
+ orientation: AllowedAxis;
6
+ /** Hide scrollbars when not scrolling. */
7
+ autoHide: boolean;
8
+ /** Apply padding to opposite side of scrollbar. */
9
+ margin?: boolean;
10
+ /** Apply padding. */
11
+ padding: boolean;
12
+ /** Use thin scrollbars. */
13
+ thin: boolean;
14
+ /** Enable snap scrolling. */
15
+ snap: boolean;
9
16
  };
10
- type ScrollAreaThumbProps = ThemedClassName<ScrollAreaPrimitiveThumbProps>;
11
- type ScrollAreaCornerProps = ThemedClassName<ScrollAreaPrimitiveCornerProps>;
17
+ type ScrollAreaRootProps = SlottableProps<HTMLDivElement> & Partial<ScrollAreaContextType>;
18
+ type ScrollAreaViewportProps = ThemedClassName<HTMLAttributes<HTMLDivElement>>;
12
19
  export declare const ScrollArea: {
13
- Root: React.ForwardRefExoticComponent<Omit<ScrollAreaPrimitiveRootProps, "className"> & {
14
- classNames?: import("@dxos/react-ui-types").ClassNameValue;
15
- } & React.RefAttributes<HTMLDivElement>>;
16
- Viewport: React.ForwardRefExoticComponent<Omit<ScrollAreaPrimitiveViewportProps, "className"> & {
17
- classNames?: import("@dxos/react-ui-types").ClassNameValue;
18
- } & React.RefAttributes<HTMLDivElement>>;
19
- Scrollbar: React.ForwardRefExoticComponent<Omit<ScrollAreaPrimitiveScrollbarProps, "className"> & {
20
- classNames?: import("@dxos/react-ui-types").ClassNameValue;
20
+ Root: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & {
21
+ asChild?: boolean;
21
22
  } & {
22
- variant?: ScrollAreaVariant;
23
- } & React.RefAttributes<HTMLDivElement>>;
24
- Thumb: React.ForwardRefExoticComponent<Omit<ScrollAreaPrimitiveThumbProps, "className"> & {
25
- classNames?: import("@dxos/react-ui-types").ClassNameValue;
26
- } & React.RefAttributes<HTMLDivElement>>;
27
- Corner: React.ForwardRefExoticComponent<Omit<ScrollAreaPrimitiveCornerProps, "className"> & {
28
- classNames?: import("@dxos/react-ui-types").ClassNameValue;
23
+ className?: string;
24
+ classNames?: import("@dxos/ui-types").ClassNameValue;
25
+ } & Partial<ScrollAreaContextType> & React.RefAttributes<HTMLDivElement>>;
26
+ Viewport: React.ForwardRefExoticComponent<Omit<React.HTMLAttributes<HTMLDivElement>, "className"> & {
27
+ classNames?: import("@dxos/ui-types").ClassNameValue;
29
28
  } & React.RefAttributes<HTMLDivElement>>;
30
29
  };
31
- export type { ScrollAreaRootProps, ScrollAreaViewportProps, ScrollAreaScrollbarProps, ScrollAreaThumbProps, ScrollAreaCornerProps, };
30
+ export type { ScrollAreaRootProps, ScrollAreaViewportProps };
32
31
  //# sourceMappingURL=ScrollArea.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ScrollArea.d.ts","sourceRoot":"","sources":["../../../../../src/components/ScrollArea/ScrollArea.tsx"],"names":[],"mappings":"AAIA,OAAO,EAEL,KAAK,qBAAqB,IAAI,8BAA8B,EAE5D,KAAK,eAAe,IAAI,4BAA4B,EAEpD,KAAK,wBAAwB,IAAI,iCAAiC,EAElE,KAAK,oBAAoB,IAAI,6BAA6B,EAE1D,KAAK,uBAAuB,IAAI,gCAAgC,EACjE,MAAM,6BAA6B,CAAC;AACrC,OAAO,KAAqB,MAAM,OAAO,CAAC;AAG1C,OAAO,EAAE,KAAK,eAAe,EAAE,MAAM,YAAY,CAAC;AAElD,KAAK,iBAAiB,GAAG,QAAQ,GAAG,MAAM,CAAC;AAE3C,KAAK,mBAAmB,GAAG,eAAe,CAAC,4BAA4B,CAAC,CAAC;AAgBzE,KA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GtB,CAAC;AAEF,YAAY,EAAE,mBAAmB,EAAE,uBAAuB,EAAE,CAAC"}
@@ -1,12 +1,50 @@
1
- import { type StoryObj } from '@storybook/react-vite';
2
- import React, { type PropsWithChildren } from 'react';
3
- declare const meta: {
1
+ import React from 'react';
2
+ declare const _default: {
4
3
  title: string;
5
- component: any;
6
- render: ({ children }: PropsWithChildren<{}>) => React.JSX.Element;
4
+ component: {
5
+ Root: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & {
6
+ asChild?: boolean;
7
+ } & {
8
+ className?: string;
9
+ classNames?: import("@dxos/ui-types").ClassNameValue;
10
+ } & Partial<{
11
+ orientation: import("@dxos/ui-types").AllowedAxis;
12
+ autoHide: boolean;
13
+ margin?: boolean;
14
+ padding: boolean;
15
+ thin: boolean;
16
+ snap: boolean;
17
+ }> & React.RefAttributes<HTMLDivElement>>;
18
+ Viewport: React.ForwardRefExoticComponent<Omit<React.HTMLAttributes<HTMLDivElement>, "className"> & {
19
+ classNames?: import("@dxos/ui-types").ClassNameValue;
20
+ } & React.RefAttributes<HTMLDivElement>>;
21
+ };
7
22
  decorators: import("@storybook/react").Decorator[];
23
+ parameters: {
24
+ layout: string;
25
+ };
26
+ };
27
+ export default _default;
28
+ export declare const Vertical: {
29
+ render: () => React.JSX.Element;
30
+ };
31
+ export declare const VerticalThin: {
32
+ render: () => React.JSX.Element;
33
+ };
34
+ export declare const Horizontal: {
35
+ render: () => React.JSX.Element;
36
+ };
37
+ export declare const HorizontalThin: {
38
+ render: () => React.JSX.Element;
39
+ };
40
+ export declare const Both: {
41
+ render: () => React.JSX.Element;
42
+ };
43
+ export declare const NestedScrollAreas: {
44
+ decorators: import("@storybook/react").Decorator[];
45
+ render: () => React.JSX.Element;
46
+ };
47
+ export declare const NativeScroll: {
48
+ render: () => React.JSX.Element;
8
49
  };
9
- export default meta;
10
- type Story = StoryObj<typeof meta>;
11
- export declare const Default: Story;
12
50
  //# 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,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"}
1
+ {"version":3,"file":"ScrollArea.stories.d.ts","sourceRoot":"","sources":["../../../../../src/components/ScrollArea/ScrollArea.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAkB,MAAM,OAAO,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;AAWvC,wBAOE;AAyBF,eAAO,MAAM,QAAQ;;CAUpB,CAAC;AAEF,eAAO,MAAM,YAAY;;CAUxB,CAAC;AAEF,eAAO,MAAM,UAAU;;CAUtB,CAAC;AAEF,eAAO,MAAM,cAAc;;CAU1B,CAAC;AAEF,eAAO,MAAM,IAAI;;CAuBhB,CAAC;AAEF,eAAO,MAAM,iBAAiB;;;CAqC7B,CAAC;AAEF,eAAO,MAAM,YAAY;;CAiBxB,CAAC"}
@@ -0,0 +1,39 @@
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
+ behavior?: ScrollBehavior;
18
+ }>>;
19
+ type ViewportProps = ThemedClassName<PropsWithChildren<Omit<HTMLAttributes<HTMLDivElement>, 'className'>>>;
20
+ type ScrollDownButtonProps = ThemedClassName;
21
+ export { useScrollContainerContext };
22
+ export declare const ScrollContainer: {
23
+ Root: React.ForwardRefExoticComponent<Omit<React.PropsWithChildren<{
24
+ pin?: boolean;
25
+ fade?: boolean;
26
+ behavior?: ScrollBehavior;
27
+ }>, "className"> & {
28
+ classNames?: import("@dxos/ui-types").ClassNameValue;
29
+ } & React.RefAttributes<ScrollController>>;
30
+ Viewport: React.ForwardRefExoticComponent<Omit<React.PropsWithChildren<Omit<React.HTMLAttributes<HTMLDivElement>, "className">>, "className"> & {
31
+ classNames?: import("@dxos/ui-types").ClassNameValue;
32
+ } & React.RefAttributes<HTMLDivElement>>;
33
+ ScrollDownButton: {
34
+ ({ classNames }: ScrollDownButtonProps): React.JSX.Element;
35
+ displayName: string;
36
+ };
37
+ };
38
+ export type { RootProps as ScrollContainerRootProps, ViewportProps as ScrollContainerViewportProps, ScrollDownButtonProps as ScrollContainerScrollDownButtonProps, };
39
+ //# sourceMappingURL=ScrollContainer.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ScrollContainer.d.ts","sourceRoot":"","sources":["../../../../../src/components/ScrollContainer/ScrollContainer.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,EACZ,KAAK,cAAc,EACnB,KAAK,iBAAiB,EAQvB,MAAM,OAAO,CAAC;AAQf,OAAO,EAAE,KAAK,eAAe,EAAE,MAAM,YAAY,CAAC;AAQlD,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;IACf,QAAQ,CAAC,EAAE,cAAc,CAAC;CAC3B,CAAC,CACH,CAAC;AAsGF,KAAK,aAAa,GAAG,eAAe,CAAC,iBAAiB,CAAC,IAAI,CAAC,cAAc,CAAC,cAAc,CAAC,EAAE,WAAW,CAAC,CAAC,CAAC,CAAC;AAmC3G,KAAK,qBAAqB,GAAG,eAAe,CAAC;AAgC7C,OAAO,EAAE,yBAAyB,EAAE,CAAC;AAErC,eAAO,MAAM,eAAe;;cA/KlB,OAAO;eACN,OAAO;mBACH,cAAc;;;;;;;;yBA6Ia,qBAAqB;;;CAoC9D,CAAC;AAEF,YAAY,EACV,SAAS,IAAI,wBAAwB,EACrC,aAAa,IAAI,4BAA4B,EAC7C,qBAAqB,IAAI,oCAAoC,GAC9D,CAAC"}
@@ -0,0 +1,19 @@
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
+ behavior?: ScrollBehavior;
10
+ }>, "className"> & {
11
+ classNames?: import("@dxos/ui-types").ClassNameValue;
12
+ } & React.RefAttributes<ScrollController>>;
13
+ render: (props: ScrollContainerRootProps) => React.JSX.Element;
14
+ decorators: import("@storybook/react").Decorator[];
15
+ };
16
+ export default meta;
17
+ type Story = StoryObj<typeof meta>;
18
+ export declare const Default: Story;
19
+ //# 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;AAwC1G,QAAA,MAAM,IAAI;;;;;;;;;oBAtCmB,wBAAwB;;CA2ChB,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;
@@ -28,34 +28,34 @@ export declare const Select: {
28
28
  Icon: React.ForwardRefExoticComponent<SelectPrimitive.SelectIconProps & React.RefAttributes<HTMLSpanElement>>;
29
29
  Portal: React.FC<SelectPrimitive.SelectPortalProps>;
30
30
  Content: React.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectContentProps, "className"> & {
31
- classNames?: import("@dxos/react-ui-types").ClassNameValue;
31
+ classNames?: import("@dxos/ui-types").ClassNameValue;
32
32
  } & React.RefAttributes<HTMLDivElement>>;
33
33
  ScrollUpButton: React.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectScrollUpButtonProps, "className"> & {
34
- classNames?: import("@dxos/react-ui-types").ClassNameValue;
34
+ classNames?: import("@dxos/ui-types").ClassNameValue;
35
35
  } & React.RefAttributes<HTMLDivElement>>;
36
36
  ScrollDownButton: React.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectScrollDownButtonProps, "className"> & {
37
- classNames?: import("@dxos/react-ui-types").ClassNameValue;
37
+ classNames?: import("@dxos/ui-types").ClassNameValue;
38
38
  } & React.RefAttributes<HTMLDivElement>>;
39
39
  Viewport: React.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectViewportProps, "className"> & {
40
- classNames?: import("@dxos/react-ui-types").ClassNameValue;
40
+ classNames?: import("@dxos/ui-types").ClassNameValue;
41
41
  } & React.RefAttributes<HTMLDivElement>>;
42
42
  Item: React.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectItemProps, "className"> & {
43
- classNames?: import("@dxos/react-ui-types").ClassNameValue;
43
+ classNames?: import("@dxos/ui-types").ClassNameValue;
44
44
  } & React.RefAttributes<HTMLDivElement>>;
45
45
  ItemText: React.ForwardRefExoticComponent<SelectPrimitive.SelectItemTextProps & React.RefAttributes<HTMLSpanElement>>;
46
46
  ItemIndicator: React.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectItemIndicatorProps, "className"> & {
47
- classNames?: import("@dxos/react-ui-types").ClassNameValue;
47
+ classNames?: import("@dxos/ui-types").ClassNameValue;
48
48
  } & React.RefAttributes<HTMLDivElement>>;
49
49
  Option: React.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectItemProps, "className"> & {
50
- classNames?: import("@dxos/react-ui-types").ClassNameValue;
50
+ classNames?: import("@dxos/ui-types").ClassNameValue;
51
51
  } & React.RefAttributes<HTMLDivElement>>;
52
52
  Group: React.ForwardRefExoticComponent<SelectPrimitive.SelectGroupProps & React.RefAttributes<HTMLDivElement>>;
53
53
  Label: React.ForwardRefExoticComponent<SelectPrimitive.SelectLabelProps & React.RefAttributes<HTMLDivElement>>;
54
54
  Separator: React.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectSeparatorProps, "className"> & {
55
- classNames?: import("@dxos/react-ui-types").ClassNameValue;
55
+ classNames?: import("@dxos/ui-types").ClassNameValue;
56
56
  } & React.RefAttributes<HTMLDivElement>>;
57
57
  Arrow: React.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectArrowProps, "className"> & {
58
- classNames?: import("@dxos/react-ui-types").ClassNameValue;
58
+ classNames?: import("@dxos/ui-types").ClassNameValue;
59
59
  } & React.RefAttributes<SVGSVGElement>>;
60
60
  };
61
61
  export type { SelectRootProps, SelectTriggerProps, SelectTriggerButtonProps, SelectValueProps, SelectIconProps, SelectPortalProps, SelectContentProps, SelectScrollUpButtonProps, SelectScrollDownButtonProps, SelectViewportProps, SelectItemProps, SelectItemTextProps, SelectItemIndicatorProps, SelectOptionProps, SelectGroupProps, SelectLabelProps, SelectSeparatorProps, SelectArrowProps, };
@@ -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,C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OxE,KAAK,mBAAmB,GAAG,eAAe,CAAC,mBAAmB,CAAC;AAI/D,KAAK,wBAAwB,GAAG,eAAe,CAAC,eAAe,CAAC,wBAAwB,CAAC,CAAC;AAiB1F,KAAK,iBAAiB,GAAG,eAAe,CAAC;AAgBzC,KAAK,gBAAgB,GAAG,eAAe,CAAC,gBAAgB,CAAC;AAIzD,KAAK,gBAAgB,GAAG,eAAe,CAAC,gBAAgB,CAAC;AAIzD,KAAK,oBAAoB,GAAG,eAAe,CAAC,eAAe,CAAC,oBAAoB,CAAC,CAAC;AAOlF,KAAK,gBAAgB,GAAG,eAAe,CAAC,eAAe,CAAC,gBAAgB,CAAC,CAAC;AAO1E,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAmBlB,CAAC;AAEF,YAAY,EACV,eAAe,EACf,kBAAkB,EAClB,wBAAwB,EACxB,gBAAgB,EAChB,eAAe,EACf,iBAAiB,EACjB,kBAAkB,EAClB,yBAAyB,EACzB,2BAA2B,EAC3B,mBAAmB,EACnB,eAAe,EACf,mBAAmB,EACnB,wBAAwB,EACxB,iBAAiB,EACjB,gBAAgB,EAChB,gBAAgB,EAChB,oBAAoB,EACpB,gBAAgB,GACjB,CAAC"}
@@ -5,7 +5,7 @@ type SeparatorProps = ThemedClassName<SeparatorPrimitiveProps> & {
5
5
  subdued?: boolean;
6
6
  };
7
7
  declare const Separator: React.ForwardRefExoticComponent<Omit<SeparatorPrimitiveProps, "className"> & {
8
- classNames?: import("@dxos/react-ui-types").ClassNameValue;
8
+ classNames?: import("@dxos/ui-types").ClassNameValue;
9
9
  } & {
10
10
  subdued?: boolean;
11
11
  } & React.RefAttributes<HTMLDivElement>>;
@@ -0,0 +1,12 @@
1
+ import React, { type ComponentPropsWithRef } from 'react';
2
+ import { type ThemedClassName } from '../../util';
3
+ type SkeletonProps = ThemedClassName<ComponentPropsWithRef<'div'>> & {
4
+ variant?: 'default' | 'circle' | 'text';
5
+ };
6
+ /**
7
+ * A skeleton loading component that displays a placeholder while content is loading.
8
+ */
9
+ declare const Skeleton: React.ForwardRefExoticComponent<Omit<SkeletonProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
10
+ export { Skeleton };
11
+ export type { SkeletonProps };
12
+ //# sourceMappingURL=Skeleton.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Skeleton.d.ts","sourceRoot":"","sources":["../../../../../src/components/Skeleton/Skeleton.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,EAAE,KAAK,qBAAqB,EAAc,MAAM,OAAO,CAAC;AAGtE,OAAO,EAAE,KAAK,eAAe,EAAE,MAAM,YAAY,CAAC;AAElD,KAAK,aAAa,GAAG,eAAe,CAAC,qBAAqB,CAAC,KAAK,CAAC,CAAC,GAAG;IACnE,OAAO,CAAC,EAAE,SAAS,GAAG,QAAQ,GAAG,MAAM,CAAC;CACzC,CAAC;AAEF;;GAEG;AACH,QAAA,MAAM,QAAQ,mGAKb,CAAC;AAEF,OAAO,EAAE,QAAQ,EAAE,CAAC;AAEpB,YAAY,EAAE,aAAa,EAAE,CAAC"}
@@ -0,0 +1,17 @@
1
+ import React from 'react';
2
+ declare const _default: {
3
+ title: string;
4
+ component: React.ForwardRefExoticComponent<Omit<import("./Skeleton").SkeletonProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
5
+ decorators: import("@storybook/react").Decorator[];
6
+ parameters: {
7
+ layout: string;
8
+ };
9
+ };
10
+ export default _default;
11
+ export declare const Default: {
12
+ render: () => React.JSX.Element;
13
+ };
14
+ export declare const Card: {
15
+ render: () => React.JSX.Element;
16
+ };
17
+ //# sourceMappingURL=Skeleton.stories.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Skeleton.stories.d.ts","sourceRoot":"","sources":["../../../../../src/components/Skeleton/Skeleton.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,OAAO,CAAC;;;;;;;;;AAM1B,wBAOE;AAEF,eAAO,MAAM,OAAO;;CAYnB,CAAC;AAEF,eAAO,MAAM,IAAI;;CAkBhB,CAAC"}
@@ -0,0 +1,2 @@
1
+ export * from './Skeleton';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/Skeleton/index.ts"],"names":[],"mappings":"AAIA,cAAc,YAAY,CAAC"}