@dxos/shell 0.7.5-main.2567c87 → 0.7.5-main.5ae2ba8

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 (372) hide show
  1. package/dist/bundle/{shell.mjs → shell.js} +20862 -21881
  2. package/dist/bundle/shell.js.map +1 -0
  3. package/dist/bundle/shell.umd.cjs +1045 -0
  4. package/dist/bundle/shell.umd.cjs.map +1 -0
  5. package/dist/bundle/style.css +1 -1
  6. package/dist/lib/browser/meta.json +1 -1
  7. package/dist/lib/browser/react.mjs +556 -804
  8. package/dist/lib/browser/react.mjs.map +4 -4
  9. package/dist/lib/node/meta.json +1 -1
  10. package/dist/lib/node/react.cjs +656 -904
  11. package/dist/lib/node/react.cjs.map +4 -4
  12. package/dist/lib/node-esm/meta.json +1 -1
  13. package/dist/lib/node-esm/react.mjs +556 -804
  14. package/dist/lib/node-esm/react.mjs.map +4 -4
  15. package/dist/types/src/components/AgentConfig.d.ts +1 -2
  16. package/dist/types/src/components/AgentConfig.d.ts.map +1 -1
  17. package/dist/types/src/components/AgentConfig.js +20 -50
  18. package/dist/types/src/components/AgentConfig.js.map +1 -1
  19. package/dist/types/src/components/AuthCode.d.ts +2 -2
  20. package/dist/types/src/components/AuthCode.d.ts.map +1 -1
  21. package/dist/types/src/components/AuthCode.js +6 -44
  22. package/dist/types/src/components/AuthCode.js.map +1 -1
  23. package/dist/types/src/components/CompoundButton/CompoundButton.d.ts +2 -2
  24. package/dist/types/src/components/CompoundButton/CompoundButton.d.ts.map +1 -1
  25. package/dist/types/src/components/CompoundButton/CompoundButton.js +9 -24
  26. package/dist/types/src/components/CompoundButton/CompoundButton.js.map +1 -1
  27. package/dist/types/src/components/CompoundButton/CompoundButton.stories.d.ts +8 -9
  28. package/dist/types/src/components/CompoundButton/CompoundButton.stories.d.ts.map +1 -1
  29. package/dist/types/src/components/CompoundButton/CompoundButton.stories.js +17 -25
  30. package/dist/types/src/components/CompoundButton/CompoundButton.stories.js.map +1 -1
  31. package/dist/types/src/components/CompoundButton/index.js +1 -17
  32. package/dist/types/src/components/CompoundButton/index.js.map +1 -1
  33. package/dist/types/src/components/DeviceList/DeviceList.d.ts +1 -2
  34. package/dist/types/src/components/DeviceList/DeviceList.d.ts.map +1 -1
  35. package/dist/types/src/components/DeviceList/DeviceList.js +10 -24
  36. package/dist/types/src/components/DeviceList/DeviceList.js.map +1 -1
  37. package/dist/types/src/components/DeviceList/DeviceListItem.d.ts +1 -1
  38. package/dist/types/src/components/DeviceList/DeviceListItem.js +18 -73
  39. package/dist/types/src/components/DeviceList/DeviceListItem.js.map +1 -1
  40. package/dist/types/src/components/DeviceList/DeviceListProps.js +0 -2
  41. package/dist/types/src/components/DeviceList/DeviceListProps.js.map +1 -1
  42. package/dist/types/src/components/DeviceList/index.js +2 -18
  43. package/dist/types/src/components/DeviceList/index.js.map +1 -1
  44. package/dist/types/src/components/IdentityList/IdentityListItem.d.ts +1 -1
  45. package/dist/types/src/components/IdentityList/IdentityListItem.js +12 -51
  46. package/dist/types/src/components/IdentityList/IdentityListItem.js.map +1 -1
  47. package/dist/types/src/components/IdentityList/SpaceMemberList.d.ts +2 -3
  48. package/dist/types/src/components/IdentityList/SpaceMemberList.d.ts.map +1 -1
  49. package/dist/types/src/components/IdentityList/SpaceMemberList.js +17 -55
  50. package/dist/types/src/components/IdentityList/SpaceMemberList.js.map +1 -1
  51. package/dist/types/src/components/IdentityList/SpaceMemberList.stories.d.ts +3 -4
  52. package/dist/types/src/components/IdentityList/SpaceMemberList.stories.d.ts.map +1 -1
  53. package/dist/types/src/components/IdentityList/SpaceMemberList.stories.js +10 -17
  54. package/dist/types/src/components/IdentityList/SpaceMemberList.stories.js.map +1 -1
  55. package/dist/types/src/components/IdentityList/index.js +2 -18
  56. package/dist/types/src/components/IdentityList/index.js.map +1 -1
  57. package/dist/types/src/components/InvitationList/InvitationList.d.ts +2 -2
  58. package/dist/types/src/components/InvitationList/InvitationList.d.ts.map +1 -1
  59. package/dist/types/src/components/InvitationList/InvitationList.js +10 -20
  60. package/dist/types/src/components/InvitationList/InvitationList.js.map +1 -1
  61. package/dist/types/src/components/InvitationList/InvitationList.stories.d.ts +3 -4
  62. package/dist/types/src/components/InvitationList/InvitationList.stories.d.ts.map +1 -1
  63. package/dist/types/src/components/InvitationList/InvitationList.stories.js +20 -27
  64. package/dist/types/src/components/InvitationList/InvitationList.stories.js.map +1 -1
  65. package/dist/types/src/components/InvitationList/InvitationListContainer.d.ts +1 -2
  66. package/dist/types/src/components/InvitationList/InvitationListContainer.d.ts.map +1 -1
  67. package/dist/types/src/components/InvitationList/InvitationListContainer.js +9 -45
  68. package/dist/types/src/components/InvitationList/InvitationListContainer.js.map +1 -1
  69. package/dist/types/src/components/InvitationList/InvitationListItem.d.ts +3 -3
  70. package/dist/types/src/components/InvitationList/InvitationListItem.d.ts.map +1 -1
  71. package/dist/types/src/components/InvitationList/InvitationListItem.js +32 -99
  72. package/dist/types/src/components/InvitationList/InvitationListItem.js.map +1 -1
  73. package/dist/types/src/components/InvitationList/InvitationListProps.js +0 -2
  74. package/dist/types/src/components/InvitationList/index.js +3 -19
  75. package/dist/types/src/components/InvitationList/index.js.map +1 -1
  76. package/dist/types/src/components/Panel/Action.js +15 -68
  77. package/dist/types/src/components/Panel/Action.js.map +1 -1
  78. package/dist/types/src/components/Panel/Actions.js +6 -41
  79. package/dist/types/src/components/Panel/Actions.js.map +1 -1
  80. package/dist/types/src/components/Panel/CloseButton.d.ts +1 -2
  81. package/dist/types/src/components/Panel/CloseButton.d.ts.map +1 -1
  82. package/dist/types/src/components/Panel/CloseButton.js +7 -16
  83. package/dist/types/src/components/Panel/CloseButton.js.map +1 -1
  84. package/dist/types/src/components/Panel/Emoji.d.ts +3 -3
  85. package/dist/types/src/components/Panel/Emoji.d.ts.map +1 -1
  86. package/dist/types/src/components/Panel/Emoji.js +6 -19
  87. package/dist/types/src/components/Panel/Emoji.js.map +1 -1
  88. package/dist/types/src/components/Panel/Heading.js +5 -44
  89. package/dist/types/src/components/Panel/Heading.js.map +1 -1
  90. package/dist/types/src/components/Panel/Input.d.ts +2 -2
  91. package/dist/types/src/components/Panel/Input.d.ts.map +1 -1
  92. package/dist/types/src/components/Panel/Input.js +4 -17
  93. package/dist/types/src/components/Panel/Input.js.map +1 -1
  94. package/dist/types/src/components/Panel/Label.d.ts +2 -2
  95. package/dist/types/src/components/Panel/Label.d.ts.map +1 -1
  96. package/dist/types/src/components/Panel/Label.js +4 -14
  97. package/dist/types/src/components/Panel/Label.js.map +1 -1
  98. package/dist/types/src/components/Panel/Panel.stories.d.ts +4 -5
  99. package/dist/types/src/components/Panel/Panel.stories.d.ts.map +1 -1
  100. package/dist/types/src/components/Panel/Panel.stories.js +15 -35
  101. package/dist/types/src/components/Panel/Panel.stories.js.map +1 -1
  102. package/dist/types/src/components/Panel/StepHeading.js +5 -40
  103. package/dist/types/src/components/Panel/StepHeading.js.map +1 -1
  104. package/dist/types/src/components/Panel/index.js +8 -24
  105. package/dist/types/src/components/Panel/index.js.map +1 -1
  106. package/dist/types/src/components/SpaceListItem.js +10 -49
  107. package/dist/types/src/components/SpaceListItem.js.map +1 -1
  108. package/dist/types/src/components/StorybookDialog.d.ts +2 -2
  109. package/dist/types/src/components/StorybookDialog.d.ts.map +1 -1
  110. package/dist/types/src/components/StorybookDialog.js +5 -18
  111. package/dist/types/src/components/StorybookDialog.js.map +1 -1
  112. package/dist/types/src/components/Viewport/Viewport.d.ts +2 -2
  113. package/dist/types/src/components/Viewport/Viewport.js +18 -55
  114. package/dist/types/src/components/Viewport/Viewport.js.map +1 -1
  115. package/dist/types/src/components/Viewport/Viewport.stories.d.ts +2 -3
  116. package/dist/types/src/components/Viewport/Viewport.stories.d.ts.map +1 -1
  117. package/dist/types/src/components/Viewport/Viewport.stories.js +12 -37
  118. package/dist/types/src/components/Viewport/Viewport.stories.js.map +1 -1
  119. package/dist/types/src/components/Viewport/index.js +1 -17
  120. package/dist/types/src/components/Viewport/index.js.map +1 -1
  121. package/dist/types/src/components/index.d.ts +0 -2
  122. package/dist/types/src/components/index.d.ts.map +1 -1
  123. package/dist/types/src/components/index.js +9 -27
  124. package/dist/types/src/components/index.js.map +1 -1
  125. package/dist/types/src/composites/IdentityDialog/IdentityDialog.d.ts +1 -2
  126. package/dist/types/src/composites/IdentityDialog/IdentityDialog.d.ts.map +1 -1
  127. package/dist/types/src/composites/IdentityDialog/IdentityDialog.js +7 -22
  128. package/dist/types/src/composites/IdentityDialog/IdentityDialog.js.map +1 -1
  129. package/dist/types/src/composites/IdentityDialog/index.js +1 -17
  130. package/dist/types/src/composites/IdentityDialog/index.js.map +1 -1
  131. package/dist/types/src/composites/JoinDialog/JoinDialog.d.ts +1 -2
  132. package/dist/types/src/composites/JoinDialog/JoinDialog.d.ts.map +1 -1
  133. package/dist/types/src/composites/JoinDialog/JoinDialog.js +9 -23
  134. package/dist/types/src/composites/JoinDialog/JoinDialog.js.map +1 -1
  135. package/dist/types/src/composites/JoinDialog/index.js +1 -17
  136. package/dist/types/src/composites/JoinDialog/index.js.map +1 -1
  137. package/dist/types/src/composites/Shell/Shell.d.ts +1 -2
  138. package/dist/types/src/composites/Shell/Shell.d.ts.map +1 -1
  139. package/dist/types/src/composites/Shell/Shell.js +54 -90
  140. package/dist/types/src/composites/Shell/Shell.js.map +1 -1
  141. package/dist/types/src/composites/Shell/ShellContext.d.ts +2 -2
  142. package/dist/types/src/composites/Shell/ShellContext.d.ts.map +1 -1
  143. package/dist/types/src/composites/Shell/ShellContext.js +32 -72
  144. package/dist/types/src/composites/Shell/ShellContext.js.map +1 -1
  145. package/dist/types/src/composites/Shell/index.js +3 -19
  146. package/dist/types/src/composites/Shell/index.js.map +1 -1
  147. package/dist/types/src/composites/Shell/memory-shell-runtime.js +7 -11
  148. package/dist/types/src/composites/Shell/memory-shell-runtime.js.map +1 -1
  149. package/dist/types/src/composites/Shell/run-shell.js +18 -67
  150. package/dist/types/src/composites/Shell/run-shell.js.map +1 -1
  151. package/dist/types/src/composites/Shell/shell-runtime.js +13 -17
  152. package/dist/types/src/composites/Shell/shell-runtime.js.map +1 -1
  153. package/dist/types/src/composites/SpaceDialog/SpaceDialog.d.ts +1 -2
  154. package/dist/types/src/composites/SpaceDialog/SpaceDialog.d.ts.map +1 -1
  155. package/dist/types/src/composites/SpaceDialog/SpaceDialog.js +7 -22
  156. package/dist/types/src/composites/SpaceDialog/SpaceDialog.js.map +1 -1
  157. package/dist/types/src/composites/SpaceDialog/index.js +1 -17
  158. package/dist/types/src/composites/SpaceDialog/index.js.map +1 -1
  159. package/dist/types/src/composites/StatusDialog/StatusDialog.d.ts +1 -2
  160. package/dist/types/src/composites/StatusDialog/StatusDialog.d.ts.map +1 -1
  161. package/dist/types/src/composites/StatusDialog/StatusDialog.js +6 -20
  162. package/dist/types/src/composites/StatusDialog/StatusDialog.js.map +1 -1
  163. package/dist/types/src/composites/StatusDialog/index.js +1 -17
  164. package/dist/types/src/composites/StatusDialog/index.js.map +1 -1
  165. package/dist/types/src/composites/index.js +4 -20
  166. package/dist/types/src/composites/index.js.map +1 -1
  167. package/dist/types/src/index.js +2 -6
  168. package/dist/types/src/index.js.map +1 -1
  169. package/dist/types/src/panels/IdentityPanel/IdentityPanel.d.ts +2 -3
  170. package/dist/types/src/panels/IdentityPanel/IdentityPanel.d.ts.map +1 -1
  171. package/dist/types/src/panels/IdentityPanel/IdentityPanel.js +63 -137
  172. package/dist/types/src/panels/IdentityPanel/IdentityPanel.js.map +1 -1
  173. package/dist/types/src/panels/IdentityPanel/IdentityPanel.stories.d.ts +11 -12
  174. package/dist/types/src/panels/IdentityPanel/IdentityPanel.stories.d.ts.map +1 -1
  175. package/dist/types/src/panels/IdentityPanel/IdentityPanel.stories.js +39 -54
  176. package/dist/types/src/panels/IdentityPanel/IdentityPanel.stories.js.map +1 -1
  177. package/dist/types/src/panels/IdentityPanel/IdentityPanelProps.d.ts +2 -1
  178. package/dist/types/src/panels/IdentityPanel/IdentityPanelProps.d.ts.map +1 -1
  179. package/dist/types/src/panels/IdentityPanel/IdentityPanelProps.js +0 -2
  180. package/dist/types/src/panels/IdentityPanel/IdentityPanelProps.js.map +1 -1
  181. package/dist/types/src/panels/IdentityPanel/identityMachine.js +10 -14
  182. package/dist/types/src/panels/IdentityPanel/identityMachine.js.map +1 -1
  183. package/dist/types/src/panels/IdentityPanel/index.js +2 -18
  184. package/dist/types/src/panels/IdentityPanel/index.js.map +1 -1
  185. package/dist/types/src/panels/IdentityPanel/steps/IdentityActionChooser.d.ts +2 -3
  186. package/dist/types/src/panels/IdentityPanel/steps/IdentityActionChooser.d.ts.map +1 -1
  187. package/dist/types/src/panels/IdentityPanel/steps/IdentityActionChooser.js +16 -29
  188. package/dist/types/src/panels/IdentityPanel/steps/IdentityActionChooser.js.map +1 -1
  189. package/dist/types/src/panels/IdentityPanel/steps/ProfileForm.d.ts +1 -2
  190. package/dist/types/src/panels/IdentityPanel/steps/ProfileForm.d.ts.map +1 -1
  191. package/dist/types/src/panels/IdentityPanel/steps/ProfileForm.js +27 -72
  192. package/dist/types/src/panels/IdentityPanel/steps/ProfileForm.js.map +1 -1
  193. package/dist/types/src/panels/IdentityPanel/steps/index.js +2 -18
  194. package/dist/types/src/panels/IdentityPanel/steps/index.js.map +1 -1
  195. package/dist/types/src/panels/IdentityPanel/useAgentHandlers.js +7 -11
  196. package/dist/types/src/panels/IdentityPanel/useAgentHandlers.js.map +1 -1
  197. package/dist/types/src/panels/IdentityPanel/useEdgeAgentsHandlers.js +19 -23
  198. package/dist/types/src/panels/IdentityPanel/useEdgeAgentsHandlers.js.map +1 -1
  199. package/dist/types/src/panels/IdentityPanel/useKubeAgentHandlers.js +19 -23
  200. package/dist/types/src/panels/IdentityPanel/useKubeAgentHandlers.js.map +1 -1
  201. package/dist/types/src/panels/JoinPanel/JoinHeading.js +11 -48
  202. package/dist/types/src/panels/JoinPanel/JoinHeading.js.map +1 -1
  203. package/dist/types/src/panels/JoinPanel/JoinPanel.d.ts +2 -3
  204. package/dist/types/src/panels/JoinPanel/JoinPanel.d.ts.map +1 -1
  205. package/dist/types/src/panels/JoinPanel/JoinPanel.js +38 -100
  206. package/dist/types/src/panels/JoinPanel/JoinPanel.js.map +1 -1
  207. package/dist/types/src/panels/JoinPanel/JoinPanel.stories.d.ts +15 -16
  208. package/dist/types/src/panels/JoinPanel/JoinPanel.stories.d.ts.map +1 -1
  209. package/dist/types/src/panels/JoinPanel/JoinPanel.stories.js +25 -45
  210. package/dist/types/src/panels/JoinPanel/JoinPanel.stories.js.map +1 -1
  211. package/dist/types/src/panels/JoinPanel/JoinPanelProps.js +0 -2
  212. package/dist/types/src/panels/JoinPanel/JoinPanelProps.js.map +1 -1
  213. package/dist/types/src/panels/JoinPanel/index.js +2 -18
  214. package/dist/types/src/panels/JoinPanel/index.js.map +1 -1
  215. package/dist/types/src/panels/JoinPanel/joinMachine.js +49 -54
  216. package/dist/types/src/panels/JoinPanel/joinMachine.js.map +1 -1
  217. package/dist/types/src/panels/JoinPanel/steps/AdditionMethodChooser.d.ts +1 -2
  218. package/dist/types/src/panels/JoinPanel/steps/AdditionMethodChooser.d.ts.map +1 -1
  219. package/dist/types/src/panels/JoinPanel/steps/AdditionMethodChooser.js +9 -21
  220. package/dist/types/src/panels/JoinPanel/steps/AdditionMethodChooser.js.map +1 -1
  221. package/dist/types/src/panels/JoinPanel/steps/IdentityAdded.d.ts +1 -2
  222. package/dist/types/src/panels/JoinPanel/steps/IdentityAdded.d.ts.map +1 -1
  223. package/dist/types/src/panels/JoinPanel/steps/IdentityAdded.js +14 -58
  224. package/dist/types/src/panels/JoinPanel/steps/IdentityAdded.js.map +1 -1
  225. package/dist/types/src/panels/JoinPanel/steps/IdentityInput.d.ts +2 -3
  226. package/dist/types/src/panels/JoinPanel/steps/IdentityInput.d.ts.map +1 -1
  227. package/dist/types/src/panels/JoinPanel/steps/IdentityInput.js +20 -61
  228. package/dist/types/src/panels/JoinPanel/steps/IdentityInput.js.map +1 -1
  229. package/dist/types/src/panels/JoinPanel/steps/InvitationAccepted.d.ts +2 -2
  230. package/dist/types/src/panels/JoinPanel/steps/InvitationAccepted.d.ts.map +1 -1
  231. package/dist/types/src/panels/JoinPanel/steps/InvitationAccepted.js +8 -47
  232. package/dist/types/src/panels/JoinPanel/steps/InvitationAccepted.js.map +1 -1
  233. package/dist/types/src/panels/JoinPanel/steps/InvitationAuthenticator.d.ts +1 -2
  234. package/dist/types/src/panels/JoinPanel/steps/InvitationAuthenticator.d.ts.map +1 -1
  235. package/dist/types/src/panels/JoinPanel/steps/InvitationAuthenticator.js +22 -73
  236. package/dist/types/src/panels/JoinPanel/steps/InvitationAuthenticator.js.map +1 -1
  237. package/dist/types/src/panels/JoinPanel/steps/InvitationInput.d.ts +1 -2
  238. package/dist/types/src/panels/JoinPanel/steps/InvitationInput.d.ts.map +1 -1
  239. package/dist/types/src/panels/JoinPanel/steps/InvitationInput.js +18 -59
  240. package/dist/types/src/panels/JoinPanel/steps/InvitationInput.js.map +1 -1
  241. package/dist/types/src/panels/JoinPanel/steps/InvitationRescuer.d.ts +1 -2
  242. package/dist/types/src/panels/JoinPanel/steps/InvitationRescuer.d.ts.map +1 -1
  243. package/dist/types/src/panels/JoinPanel/steps/InvitationRescuer.js +14 -37
  244. package/dist/types/src/panels/JoinPanel/steps/InvitationRescuer.js.map +1 -1
  245. package/dist/types/src/panels/JoinPanel/steps/index.js +7 -23
  246. package/dist/types/src/panels/JoinPanel/steps/index.js.map +1 -1
  247. package/dist/types/src/panels/Panels.stories.d.ts +4 -4
  248. package/dist/types/src/panels/Panels.stories.d.ts.map +1 -1
  249. package/dist/types/src/panels/Panels.stories.js +13 -58
  250. package/dist/types/src/panels/Panels.stories.js.map +1 -1
  251. package/dist/types/src/panels/SpacePanel/SpacePanel.d.ts +2 -3
  252. package/dist/types/src/panels/SpacePanel/SpacePanel.d.ts.map +1 -1
  253. package/dist/types/src/panels/SpacePanel/SpacePanel.js +25 -72
  254. package/dist/types/src/panels/SpacePanel/SpacePanel.js.map +1 -1
  255. package/dist/types/src/panels/SpacePanel/SpacePanel.stories.d.ts +18 -19
  256. package/dist/types/src/panels/SpacePanel/SpacePanel.stories.d.ts.map +1 -1
  257. package/dist/types/src/panels/SpacePanel/SpacePanel.stories.js +96 -121
  258. package/dist/types/src/panels/SpacePanel/SpacePanel.stories.js.map +1 -1
  259. package/dist/types/src/panels/SpacePanel/SpacePanelProps.js +0 -2
  260. package/dist/types/src/panels/SpacePanel/SpacePanelProps.js.map +1 -1
  261. package/dist/types/src/panels/SpacePanel/index.js +2 -18
  262. package/dist/types/src/panels/SpacePanel/index.js.map +1 -1
  263. package/dist/types/src/panels/SpacePanel/spaceMachine.js +9 -13
  264. package/dist/types/src/panels/SpacePanel/spaceMachine.js.map +1 -1
  265. package/dist/types/src/panels/SpacePanel/steps/SpaceManager.d.ts +3 -3
  266. package/dist/types/src/panels/SpacePanel/steps/SpaceManager.d.ts.map +1 -1
  267. package/dist/types/src/panels/SpacePanel/steps/SpaceManager.js +33 -81
  268. package/dist/types/src/panels/SpacePanel/steps/SpaceManager.js.map +1 -1
  269. package/dist/types/src/panels/SpacePanel/steps/index.js +1 -17
  270. package/dist/types/src/panels/SpacePanel/steps/index.js.map +1 -1
  271. package/dist/types/src/panels/StatusPanel/StatusPanel.d.ts +1 -2
  272. package/dist/types/src/panels/StatusPanel/StatusPanel.d.ts.map +1 -1
  273. package/dist/types/src/panels/StatusPanel/StatusPanel.js +5 -17
  274. package/dist/types/src/panels/StatusPanel/StatusPanel.js.map +1 -1
  275. package/dist/types/src/panels/StatusPanel/index.js +1 -17
  276. package/dist/types/src/panels/StatusPanel/index.js.map +1 -1
  277. package/dist/types/src/panels/index.js +4 -20
  278. package/dist/types/src/panels/index.js.map +1 -1
  279. package/dist/types/src/playwright/invitations-manager.js +11 -15
  280. package/dist/types/src/playwright/invitations-manager.js.map +1 -1
  281. package/dist/types/src/playwright/invitations.spec.js +64 -66
  282. package/dist/types/src/playwright/invitations.spec.js.map +1 -1
  283. package/dist/types/src/react.js +6 -22
  284. package/dist/types/src/react.js.map +1 -1
  285. package/dist/types/src/steps/ConfirmReset.d.ts +2 -3
  286. package/dist/types/src/steps/ConfirmReset.d.ts.map +1 -1
  287. package/dist/types/src/steps/ConfirmReset.js +23 -70
  288. package/dist/types/src/steps/ConfirmReset.js.map +1 -1
  289. package/dist/types/src/steps/InvitationManager.d.ts +1 -2
  290. package/dist/types/src/steps/InvitationManager.d.ts.map +1 -1
  291. package/dist/types/src/steps/InvitationManager.js +17 -71
  292. package/dist/types/src/steps/InvitationManager.js.map +1 -1
  293. package/dist/types/src/steps/StepProps.js +0 -2
  294. package/dist/types/src/steps/StepProps.js.map +1 -1
  295. package/dist/types/src/steps/index.js +3 -19
  296. package/dist/types/src/steps/index.js.map +1 -1
  297. package/dist/types/src/stories/Invitations.e2e-stories.d.ts +2 -3
  298. package/dist/types/src/stories/Invitations.e2e-stories.d.ts.map +1 -1
  299. package/dist/types/src/stories/Invitations.e2e-stories.js +50 -113
  300. package/dist/types/src/stories/Invitations.e2e-stories.js.map +1 -1
  301. package/dist/types/src/styles/index.js +2 -18
  302. package/dist/types/src/styles/index.js.map +1 -1
  303. package/dist/types/src/styles/invitationStatusStyles.js +31 -37
  304. package/dist/types/src/styles/invitationStatusStyles.js.map +1 -1
  305. package/dist/types/src/styles/panelStyles.js +1 -4
  306. package/dist/types/src/styles/panelStyles.js.map +1 -1
  307. package/dist/types/src/testing/fixtures/identities.d.ts.map +1 -1
  308. package/dist/types/src/testing/fixtures/identities.js +8 -9
  309. package/dist/types/src/testing/fixtures/identities.js.map +1 -1
  310. package/dist/types/src/testing/fixtures/index.js +2 -18
  311. package/dist/types/src/testing/fixtures/index.js.map +1 -1
  312. package/dist/types/src/testing/fixtures/invitations.js +8 -12
  313. package/dist/types/src/testing/fixtures/invitations.js.map +1 -1
  314. package/dist/types/src/testing/index.js +2 -18
  315. package/dist/types/src/testing/index.js.map +1 -1
  316. package/dist/types/src/testing/scoped-shell-manager.js +1 -5
  317. package/dist/types/src/testing/scoped-shell-manager.js.map +1 -1
  318. package/dist/types/src/testing/shell-manager.js +11 -15
  319. package/dist/types/src/testing/shell-manager.js.map +1 -1
  320. package/dist/types/src/translations/index.js +2 -38
  321. package/dist/types/src/translations/index.js.map +1 -1
  322. package/dist/types/src/translations/locales/en-US.d.ts +5 -1
  323. package/dist/types/src/translations/locales/en-US.d.ts.map +1 -1
  324. package/dist/types/src/translations/locales/en-US.js +9 -7
  325. package/dist/types/src/translations/locales/en-US.js.map +1 -1
  326. package/dist/types/src/types/FailReason.js +0 -2
  327. package/dist/types/src/types/FailReason.js.map +1 -1
  328. package/dist/types/src/types/IInvitation.js +0 -2
  329. package/dist/types/src/types/IInvitation.js.map +1 -1
  330. package/dist/types/src/types/index.js +2 -18
  331. package/dist/types/src/types/index.js.map +1 -1
  332. package/dist/types/src/util/index.js +1 -17
  333. package/dist/types/src/util/index.js.map +1 -1
  334. package/dist/types/src/util/invitationStatusValue.js +11 -14
  335. package/dist/types/src/util/invitationStatusValue.js.map +1 -1
  336. package/package.json +36 -31
  337. package/src/components/AgentConfig.tsx +1 -1
  338. package/src/components/DeviceList/DeviceList.tsx +1 -1
  339. package/src/components/index.ts +0 -2
  340. package/src/panels/IdentityPanel/IdentityPanel.stories.tsx +3 -0
  341. package/src/panels/IdentityPanel/IdentityPanel.tsx +50 -33
  342. package/src/panels/IdentityPanel/IdentityPanelProps.ts +8 -1
  343. package/src/panels/IdentityPanel/steps/ProfileForm.tsx +3 -7
  344. package/src/panels/JoinPanel/steps/IdentityInput.tsx +1 -1
  345. package/src/panels/SpacePanel/SpacePanel.stories.tsx +6 -1
  346. package/src/testing/fixtures/identities.ts +2 -0
  347. package/src/translations/locales/en-US.ts +10 -3
  348. package/dist/bundle/shell.mjs.map +0 -1
  349. package/dist/bundle/shell.umd.js +0 -1043
  350. package/dist/bundle/shell.umd.js.map +0 -1
  351. package/dist/lib/browser/react.css +0 -7
  352. package/dist/lib/browser/react.css.map +0 -7
  353. package/dist/lib/node/react.css +0 -7
  354. package/dist/lib/node/react.css.map +0 -7
  355. package/dist/lib/node-esm/react.css +0 -7
  356. package/dist/lib/node-esm/react.css.map +0 -7
  357. package/dist/types/src/components/EmojiPicker.d.ts +0 -19
  358. package/dist/types/src/components/EmojiPicker.d.ts.map +0 -1
  359. package/dist/types/src/components/EmojiPicker.js +0 -146
  360. package/dist/types/src/components/EmojiPicker.js.map +0 -1
  361. package/dist/types/src/components/HuePicker.d.ts +0 -18
  362. package/dist/types/src/components/HuePicker.d.ts.map +0 -1
  363. package/dist/types/src/components/HuePicker.js +0 -133
  364. package/dist/types/src/components/HuePicker.js.map +0 -1
  365. package/dist/types/src/playwright/playwright.config.d.ts +0 -3
  366. package/dist/types/src/playwright/playwright.config.d.ts.map +0 -1
  367. package/dist/types/src/playwright/playwright.config.js +0 -18
  368. package/dist/types/src/playwright/playwright.config.js.map +0 -1
  369. package/src/components/EmojiPicker.tsx +0 -187
  370. package/src/components/HuePicker.tsx +0 -182
  371. package/src/components/emoji.css +0 -25
  372. /package/src/playwright/{playwright.config.ts → playwright.config.cts} +0 -0
@@ -1,46 +1,11 @@
1
- "use strict";
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
2
  //
3
3
  // Copyright 2023 DXOS.org
4
4
  //
5
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
- if (k2 === undefined) k2 = k;
7
- var desc = Object.getOwnPropertyDescriptor(m, k);
8
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
- desc = { enumerable: true, get: function() { return m[k]; } };
10
- }
11
- Object.defineProperty(o, k2, desc);
12
- }) : (function(o, m, k, k2) {
13
- if (k2 === undefined) k2 = k;
14
- o[k2] = m[k];
15
- }));
16
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
- Object.defineProperty(o, "default", { enumerable: true, value: v });
18
- }) : function(o, v) {
19
- o["default"] = v;
5
+ import { forwardRef } from 'react';
6
+ import { mx } from '@dxos/react-ui-theme';
7
+ const Actions = forwardRef(({ classNames, children, ...props }, forwardedRef) => {
8
+ return (_jsx("div", { ...props, className: mx('flex flex-col gap-2 mbs-2', Array.isArray(children) && children.length > 1 ? 'justify-between' : 'justify-center', classNames), ref: forwardedRef, children: children }));
20
9
  });
21
- var __importStar = (this && this.__importStar) || (function () {
22
- var ownKeys = function(o) {
23
- ownKeys = Object.getOwnPropertyNames || function (o) {
24
- var ar = [];
25
- for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
26
- return ar;
27
- };
28
- return ownKeys(o);
29
- };
30
- return function (mod) {
31
- if (mod && mod.__esModule) return mod;
32
- var result = {};
33
- if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
34
- __setModuleDefault(result, mod);
35
- return result;
36
- };
37
- })();
38
- Object.defineProperty(exports, "__esModule", { value: true });
39
- exports.Actions = void 0;
40
- const react_1 = __importStar(require("react"));
41
- const react_ui_theme_1 = require("@dxos/react-ui-theme");
42
- const Actions = (0, react_1.forwardRef)(({ classNames, children, ...props }, forwardedRef) => {
43
- return (react_1.default.createElement("div", { ...props, className: (0, react_ui_theme_1.mx)('flex flex-col gap-2 mbs-2', Array.isArray(children) && children.length > 1 ? 'justify-between' : 'justify-center', classNames), ref: forwardedRef }, children));
44
- });
45
- exports.Actions = Actions;
10
+ export { Actions };
46
11
  //# sourceMappingURL=Actions.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Actions.js","sourceRoot":"","sources":["../../../../../src/components/Panel/Actions.tsx"],"names":[],"mappings":";AAAA,EAAE;AACF,0BAA0B;AAC1B,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEF,+CAAyF;AAGzF,yDAA0C;AAM1C,MAAM,OAAO,GAAG,IAAA,kBAAU,EAA+B,CAAC,EAAE,UAAU,EAAE,QAAQ,EAAE,GAAG,KAAK,EAAE,EAAE,YAAY,EAAE,EAAE;IAC5G,OAAO,CACL,0CACM,KAAK,EACT,SAAS,EAAE,IAAA,mBAAE,EACX,2BAA2B,EAC3B,KAAK,CAAC,OAAO,CAAC,QAAQ,CAAC,IAAI,QAAQ,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,iBAAiB,CAAC,CAAC,CAAC,gBAAgB,EACrF,UAAU,CACX,EACD,GAAG,EAAE,YAAY,IAEhB,QAAQ,CACL,CACP,CAAC;AACJ,CAAC,CAAC,CAAC;AAEM,0BAAO"}
1
+ {"version":3,"file":"Actions.js","sourceRoot":"","sources":["../../../../../src/components/Panel/Actions.tsx"],"names":[],"mappings":";AAAA,EAAE;AACF,0BAA0B;AAC1B,EAAE;AAEF,OAAc,EAAiC,UAAU,EAAkB,MAAM,OAAO,CAAC;AAGzF,OAAO,EAAE,EAAE,EAAE,MAAM,sBAAsB,CAAC;AAM1C,MAAM,OAAO,GAAG,UAAU,CAA+B,CAAC,EAAE,UAAU,EAAE,QAAQ,EAAE,GAAG,KAAK,EAAE,EAAE,YAAY,EAAE,EAAE;IAC5G,OAAO,CACL,iBACM,KAAK,EACT,SAAS,EAAE,EAAE,CACX,2BAA2B,EAC3B,KAAK,CAAC,OAAO,CAAC,QAAQ,CAAC,IAAI,QAAQ,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,iBAAiB,CAAC,CAAC,CAAC,gBAAgB,EACrF,UAAU,CACX,EACD,GAAG,EAAE,YAAY,YAEhB,QAAQ,GACL,CACP,CAAC;AACJ,CAAC,CAAC,CAAC;AAEH,OAAO,EAAE,OAAO,EAAE,CAAC"}
@@ -1,6 +1,5 @@
1
- import React from 'react';
2
1
  import { type ButtonProps } from '@dxos/react-ui';
3
2
  export declare const CloseButton: ({ onDone, ...props }: Omit<ButtonProps, "onClick"> & {
4
3
  onDone?: () => void;
5
- }) => React.JSX.Element;
4
+ }) => import("react/jsx-runtime").JSX.Element;
6
5
  //# sourceMappingURL=CloseButton.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"CloseButton.d.ts","sourceRoot":"","sources":["../../../../../src/components/Panel/CloseButton.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAU,KAAK,WAAW,EAAkB,MAAM,gBAAgB,CAAC;AAG1E,eAAO,MAAM,WAAW,yBAA0B,IAAI,CAAC,WAAW,EAAE,SAAS,CAAC,GAAG;IAAE,MAAM,CAAC,EAAE,MAAM,IAAI,CAAA;CAAE,sBAavG,CAAC"}
1
+ {"version":3,"file":"CloseButton.d.ts","sourceRoot":"","sources":["../../../../../src/components/Panel/CloseButton.tsx"],"names":[],"mappings":"AAOA,OAAO,EAAU,KAAK,WAAW,EAAkB,MAAM,gBAAgB,CAAC;AAG1E,eAAO,MAAM,WAAW,yBAA0B,IAAI,CAAC,WAAW,EAAE,SAAS,CAAC,GAAG;IAAE,MAAM,CAAC,EAAE,MAAM,IAAI,CAAA;CAAE,4CAavG,CAAC"}
@@ -1,21 +1,12 @@
1
- "use strict";
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  //
3
3
  // Copyright 2023 DXOS.org
4
4
  //
5
- var __importDefault = (this && this.__importDefault) || function (mod) {
6
- return (mod && mod.__esModule) ? mod : { "default": mod };
5
+ import { X } from '@phosphor-icons/react';
6
+ import { Button, useTranslation } from '@dxos/react-ui';
7
+ import { getSize, mx } from '@dxos/react-ui-theme';
8
+ export const CloseButton = ({ onDone, ...props }) => {
9
+ const { t } = useTranslation('os');
10
+ return (_jsxs(Button, { variant: 'ghost', classNames: mx('plb-0 pli-2 absolute block-start-0 inline-end-0 z-[1]'), onClick: () => onDone === null || onDone === void 0 ? void 0 : onDone(), ...props, children: [_jsx(X, { weight: 'bold', className: getSize(4) }), _jsx("span", { className: 'sr-only', children: t('exit label') })] }));
7
11
  };
8
- Object.defineProperty(exports, "__esModule", { value: true });
9
- exports.CloseButton = void 0;
10
- const react_1 = require("@phosphor-icons/react");
11
- const react_2 = __importDefault(require("react"));
12
- const react_ui_1 = require("@dxos/react-ui");
13
- const react_ui_theme_1 = require("@dxos/react-ui-theme");
14
- const CloseButton = ({ onDone, ...props }) => {
15
- const { t } = (0, react_ui_1.useTranslation)('os');
16
- return (react_2.default.createElement(react_ui_1.Button, { variant: 'ghost', classNames: (0, react_ui_theme_1.mx)('plb-0 pli-2 absolute block-start-0 inline-end-0 z-[1]'), onClick: () => onDone === null || onDone === void 0 ? void 0 : onDone(), ...props },
17
- react_2.default.createElement(react_1.X, { weight: 'bold', className: (0, react_ui_theme_1.getSize)(4) }),
18
- react_2.default.createElement("span", { className: 'sr-only' }, t('exit label'))));
19
- };
20
- exports.CloseButton = CloseButton;
21
12
  //# sourceMappingURL=CloseButton.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"CloseButton.js","sourceRoot":"","sources":["../../../../../src/components/Panel/CloseButton.tsx"],"names":[],"mappings":";AAAA,EAAE;AACF,0BAA0B;AAC1B,EAAE;;;;;;AAEF,iDAA0C;AAC1C,kDAA0B;AAE1B,6CAA0E;AAC1E,yDAAmD;AAE5C,MAAM,WAAW,GAAG,CAAC,EAAE,MAAM,EAAE,GAAG,KAAK,EAA0D,EAAE,EAAE;IAC1G,MAAM,EAAE,CAAC,EAAE,GAAG,IAAA,yBAAc,EAAC,IAAI,CAAC,CAAC;IACnC,OAAO,CACL,8BAAC,iBAAM,IACL,OAAO,EAAC,OAAO,EACf,UAAU,EAAE,IAAA,mBAAE,EAAC,uDAAuD,CAAC,EACvE,OAAO,EAAE,GAAG,EAAE,CAAC,MAAM,aAAN,MAAM,uBAAN,MAAM,EAAI,KACrB,KAAK;QAET,8BAAC,SAAC,IAAC,MAAM,EAAC,MAAM,EAAC,SAAS,EAAE,IAAA,wBAAO,EAAC,CAAC,CAAC,GAAI;QAC1C,wCAAM,SAAS,EAAC,SAAS,IAAE,CAAC,CAAC,YAAY,CAAC,CAAQ,CAC3C,CACV,CAAC;AACJ,CAAC,CAAC;AAbW,QAAA,WAAW,eAatB"}
1
+ {"version":3,"file":"CloseButton.js","sourceRoot":"","sources":["../../../../../src/components/Panel/CloseButton.tsx"],"names":[],"mappings":";AAAA,EAAE;AACF,0BAA0B;AAC1B,EAAE;AAEF,OAAO,EAAE,CAAC,EAAE,MAAM,uBAAuB,CAAC;AAG1C,OAAO,EAAE,MAAM,EAAoB,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAC1E,OAAO,EAAE,OAAO,EAAE,EAAE,EAAE,MAAM,sBAAsB,CAAC;AAEnD,MAAM,CAAC,MAAM,WAAW,GAAG,CAAC,EAAE,MAAM,EAAE,GAAG,KAAK,EAA0D,EAAE,EAAE;IAC1G,MAAM,EAAE,CAAC,EAAE,GAAG,cAAc,CAAC,IAAI,CAAC,CAAC;IACnC,OAAO,CACL,MAAC,MAAM,IACL,OAAO,EAAC,OAAO,EACf,UAAU,EAAE,EAAE,CAAC,uDAAuD,CAAC,EACvE,OAAO,EAAE,GAAG,EAAE,CAAC,MAAM,aAAN,MAAM,uBAAN,MAAM,EAAI,KACrB,KAAK,aAET,KAAC,CAAC,IAAC,MAAM,EAAC,MAAM,EAAC,SAAS,EAAE,OAAO,CAAC,CAAC,CAAC,GAAI,EAC1C,eAAM,SAAS,EAAC,SAAS,YAAE,CAAC,CAAC,YAAY,CAAC,GAAQ,IAC3C,CACV,CAAC;AACJ,CAAC,CAAC"}
@@ -1,7 +1,7 @@
1
- import React, { type PropsWithChildren } from 'react';
1
+ import { type PropsWithChildren } from 'react';
2
2
  export declare const Emoji: ({ text, className }: {
3
3
  text?: string;
4
4
  className?: string;
5
- }) => React.JSX.Element;
6
- export declare const Centered: (props: PropsWithChildren) => React.JSX.Element;
5
+ }) => import("react/jsx-runtime").JSX.Element;
6
+ export declare const Centered: (props: PropsWithChildren) => import("react/jsx-runtime").JSX.Element;
7
7
  //# sourceMappingURL=Emoji.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Emoji.d.ts","sourceRoot":"","sources":["../../../../../src/components/Panel/Emoji.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,EAAE,KAAK,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAItD,eAAO,MAAM,KAAK,wBAAyB;IAAE,IAAI,CAAC,EAAE,MAAM,CAAC;IAAC,SAAS,CAAC,EAAE,MAAM,CAAA;CAAE,sBAkB/E,CAAC;AAEF,eAAO,MAAM,QAAQ,UAAW,iBAAiB,sBAOhD,CAAC"}
1
+ {"version":3,"file":"Emoji.d.ts","sourceRoot":"","sources":["../../../../../src/components/Panel/Emoji.tsx"],"names":[],"mappings":"AAIA,OAAc,EAAE,KAAK,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAItD,eAAO,MAAM,KAAK,wBAAyB;IAAE,IAAI,CAAC,EAAE,MAAM,CAAC;IAAC,SAAS,CAAC,EAAE,MAAM,CAAA;CAAE,4CAkB/E,CAAC;AAEF,eAAO,MAAM,QAAQ,UAAW,iBAAiB,4CAOhD,CAAC"}
@@ -1,24 +1,11 @@
1
- "use strict";
2
- //
3
- // Copyright 2023 DXOS.org
4
- //
5
- var __importDefault = (this && this.__importDefault) || function (mod) {
6
- return (mod && mod.__esModule) ? mod : { "default": mod };
7
- };
8
- Object.defineProperty(exports, "__esModule", { value: true });
9
- exports.Centered = exports.Emoji = void 0;
10
- const react_1 = __importDefault(require("react"));
11
- const react_ui_theme_1 = require("@dxos/react-ui-theme");
12
- const Emoji = ({ text, className }) => {
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { mx, getSize } from '@dxos/react-ui-theme';
3
+ export const Emoji = ({ text, className }) => {
13
4
  const size = 14;
14
- return (react_1.default.createElement("div", { role: 'none', className: (0, react_ui_theme_1.mx)((0, react_ui_theme_1.getSize)(size), 'rounded relative pointer-events-none', className) },
15
- react_1.default.createElement("svg", { viewBox: `0 0 ${size * 4} ${size * 4}`, width: size * 4, height: size * 4 },
16
- react_1.default.createElement("text", { x: '50%', y: '50%', textAnchor: 'middle', dominantBaseline: 'middle', baselineShift: '-0.25rem', fontSize: '2.25rem' }, text))));
5
+ return (_jsx("div", { role: 'none', className: mx(getSize(size), 'rounded relative pointer-events-none', className), children: _jsx("svg", { viewBox: `0 0 ${size * 4} ${size * 4}`, width: size * 4, height: size * 4, children: _jsx("text", { x: '50%', y: '50%', textAnchor: 'middle', dominantBaseline: 'middle', baselineShift: '-0.25rem', fontSize: '2.25rem', children: text }) }) }));
17
6
  };
18
- exports.Emoji = Emoji;
19
- const Centered = (props) => {
7
+ export const Centered = (props) => {
20
8
  const { children } = props;
21
- return (react_1.default.createElement("div", { role: 'none', className: 'absolute inset-0 flex items-center justify-center' }, children));
9
+ return (_jsx("div", { role: 'none', className: 'absolute inset-0 flex items-center justify-center', children: children }));
22
10
  };
23
- exports.Centered = Centered;
24
11
  //# sourceMappingURL=Emoji.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Emoji.js","sourceRoot":"","sources":["../../../../../src/components/Panel/Emoji.tsx"],"names":[],"mappings":";AAAA,EAAE;AACF,0BAA0B;AAC1B,EAAE;;;;;;AAEF,kDAAsD;AAEtD,yDAAmD;AAE5C,MAAM,KAAK,GAAG,CAAC,EAAE,IAAI,EAAE,SAAS,EAAyC,EAAE,EAAE;IAClF,MAAM,IAAI,GAAG,EAAE,CAAC;IAChB,OAAO,CACL,uCAAK,IAAI,EAAC,MAAM,EAAC,SAAS,EAAE,IAAA,mBAAE,EAAC,IAAA,wBAAO,EAAC,IAAI,CAAC,EAAE,sCAAsC,EAAE,SAAS,CAAC;QAC9F,uCAAK,OAAO,EAAE,OAAO,IAAI,GAAG,CAAC,IAAI,IAAI,GAAG,CAAC,EAAE,EAAE,KAAK,EAAE,IAAI,GAAG,CAAC,EAAE,MAAM,EAAE,IAAI,GAAG,CAAC;YAC5E,wCACE,CAAC,EAAC,KAAK,EACP,CAAC,EAAC,KAAK,EACP,UAAU,EAAC,QAAQ,EACnB,gBAAgB,EAAC,QAAQ,EACzB,aAAa,EAAE,UAAU,EACzB,QAAQ,EAAE,SAAS,IAElB,IAAI,CACA,CACH,CACF,CACP,CAAC;AACJ,CAAC,CAAC;AAlBW,QAAA,KAAK,SAkBhB;AAEK,MAAM,QAAQ,GAAG,CAAC,KAAwB,EAAE,EAAE;IACnD,MAAM,EAAE,QAAQ,EAAE,GAAG,KAAK,CAAC;IAC3B,OAAO,CACL,uCAAK,IAAI,EAAC,MAAM,EAAC,SAAS,EAAC,mDAAmD,IAC3E,QAAQ,CACL,CACP,CAAC;AACJ,CAAC,CAAC;AAPW,QAAA,QAAQ,YAOnB"}
1
+ {"version":3,"file":"Emoji.js","sourceRoot":"","sources":["../../../../../src/components/Panel/Emoji.tsx"],"names":[],"mappings":";AAMA,OAAO,EAAE,EAAE,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAC;AAEnD,MAAM,CAAC,MAAM,KAAK,GAAG,CAAC,EAAE,IAAI,EAAE,SAAS,EAAyC,EAAE,EAAE;IAClF,MAAM,IAAI,GAAG,EAAE,CAAC;IAChB,OAAO,CACL,cAAK,IAAI,EAAC,MAAM,EAAC,SAAS,EAAE,EAAE,CAAC,OAAO,CAAC,IAAI,CAAC,EAAE,sCAAsC,EAAE,SAAS,CAAC,YAC9F,cAAK,OAAO,EAAE,OAAO,IAAI,GAAG,CAAC,IAAI,IAAI,GAAG,CAAC,EAAE,EAAE,KAAK,EAAE,IAAI,GAAG,CAAC,EAAE,MAAM,EAAE,IAAI,GAAG,CAAC,YAC5E,eACE,CAAC,EAAC,KAAK,EACP,CAAC,EAAC,KAAK,EACP,UAAU,EAAC,QAAQ,EACnB,gBAAgB,EAAC,QAAQ,EACzB,aAAa,EAAE,UAAU,EACzB,QAAQ,EAAE,SAAS,YAElB,IAAI,GACA,GACH,GACF,CACP,CAAC;AACJ,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,QAAQ,GAAG,CAAC,KAAwB,EAAE,EAAE;IACnD,MAAM,EAAE,QAAQ,EAAE,GAAG,KAAK,CAAC;IAC3B,OAAO,CACL,cAAK,IAAI,EAAC,MAAM,EAAC,SAAS,EAAC,mDAAmD,YAC3E,QAAQ,GACL,CACP,CAAC;AACJ,CAAC,CAAC"}
@@ -1,49 +1,10 @@
1
- "use strict";
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  //
3
3
  // Copyright 2023 DXOS.org
4
4
  //
5
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
- if (k2 === undefined) k2 = k;
7
- var desc = Object.getOwnPropertyDescriptor(m, k);
8
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
- desc = { enumerable: true, get: function() { return m[k]; } };
10
- }
11
- Object.defineProperty(o, k2, desc);
12
- }) : (function(o, m, k, k2) {
13
- if (k2 === undefined) k2 = k;
14
- o[k2] = m[k];
15
- }));
16
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
- Object.defineProperty(o, "default", { enumerable: true, value: v });
18
- }) : function(o, v) {
19
- o["default"] = v;
20
- });
21
- var __importStar = (this && this.__importStar) || (function () {
22
- var ownKeys = function(o) {
23
- ownKeys = Object.getOwnPropertyNames || function (o) {
24
- var ar = [];
25
- for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
26
- return ar;
27
- };
28
- return ownKeys(o);
29
- };
30
- return function (mod) {
31
- if (mod && mod.__esModule) return mod;
32
- var result = {};
33
- if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
34
- __setModuleDefault(result, mod);
35
- return result;
36
- };
37
- })();
38
- Object.defineProperty(exports, "__esModule", { value: true });
39
- exports.Heading = void 0;
40
- const react_1 = __importStar(require("react"));
41
- const react_ui_theme_1 = require("@dxos/react-ui-theme");
42
- exports.Heading = (0, react_1.forwardRef)(({ titleId, title, titleSrOnly, children, corner }, forwardedRef) => {
43
- return (react_1.default.createElement("div", { role: 'none', className: 'pbe-2 relative', ref: forwardedRef },
44
- corner,
45
- react_1.default.createElement("h1", { ...(!titleSrOnly && { id: titleId }), className: (0, react_ui_theme_1.mx)(react_ui_theme_1.descriptionText, 'text-center mlb-2', titleSrOnly && 'invisible') }, title),
46
- titleSrOnly && react_1.default.createElement("span", { id: titleId }, title),
47
- children));
5
+ import { forwardRef } from 'react';
6
+ import { descriptionText, mx } from '@dxos/react-ui-theme';
7
+ export const Heading = forwardRef(({ titleId, title, titleSrOnly, children, corner }, forwardedRef) => {
8
+ return (_jsxs("div", { role: 'none', className: 'pbe-2 relative', ref: forwardedRef, children: [corner, _jsx("h1", { ...(!titleSrOnly && { id: titleId }), className: mx(descriptionText, 'text-center mlb-2', titleSrOnly && 'invisible'), children: title }), titleSrOnly && _jsx("span", { id: titleId, children: title }), children] }));
48
9
  });
49
10
  //# sourceMappingURL=Heading.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Heading.js","sourceRoot":"","sources":["../../../../../src/components/Panel/Heading.tsx"],"names":[],"mappings":";AAAA,EAAE;AACF,0BAA0B;AAC1B,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEF,+CAAkF;AAElF,yDAA2D;AAS9C,QAAA,OAAO,GAAG,IAAA,kBAAU,EAC/B,CAAC,EAAE,OAAO,EAAE,KAAK,EAAE,WAAW,EAAE,QAAQ,EAAE,MAAM,EAAE,EAAE,YAAY,EAAE,EAAE;IAClE,OAAO,CACL,uCAAK,IAAI,EAAC,MAAM,EAAC,SAAS,EAAC,gBAAgB,EAAC,GAAG,EAAE,YAAY;QAC1D,MAAM;QACP,yCACM,CAAC,CAAC,WAAW,IAAI,EAAE,EAAE,EAAE,OAAO,EAAE,CAAC,EACrC,SAAS,EAAE,IAAA,mBAAE,EAAC,gCAAe,EAAE,mBAAmB,EAAE,WAAW,IAAI,WAAW,CAAC,IAE9E,KAAK,CACH;QACJ,WAAW,IAAI,wCAAM,EAAE,EAAE,OAAO,IAAG,KAAK,CAAQ;QAChD,QAAQ,CACL,CACP,CAAC;AACJ,CAAC,CACF,CAAC"}
1
+ {"version":3,"file":"Heading.js","sourceRoot":"","sources":["../../../../../src/components/Panel/Heading.tsx"],"names":[],"mappings":";AAAA,EAAE;AACF,0BAA0B;AAC1B,EAAE;AAEF,OAAc,EAAE,UAAU,EAA0C,MAAM,OAAO,CAAC;AAElF,OAAO,EAAE,eAAe,EAAE,EAAE,EAAE,MAAM,sBAAsB,CAAC;AAS3D,MAAM,CAAC,MAAM,OAAO,GAAG,UAAU,CAC/B,CAAC,EAAE,OAAO,EAAE,KAAK,EAAE,WAAW,EAAE,QAAQ,EAAE,MAAM,EAAE,EAAE,YAAY,EAAE,EAAE;IAClE,OAAO,CACL,eAAK,IAAI,EAAC,MAAM,EAAC,SAAS,EAAC,gBAAgB,EAAC,GAAG,EAAE,YAAY,aAC1D,MAAM,EACP,gBACM,CAAC,CAAC,WAAW,IAAI,EAAE,EAAE,EAAE,OAAO,EAAE,CAAC,EACrC,SAAS,EAAE,EAAE,CAAC,eAAe,EAAE,mBAAmB,EAAE,WAAW,IAAI,WAAW,CAAC,YAE9E,KAAK,GACH,EACJ,WAAW,IAAI,eAAM,EAAE,EAAE,OAAO,YAAG,KAAK,GAAQ,EAChD,QAAQ,IACL,CACP,CAAC;AACJ,CAAC,CACF,CAAC"}
@@ -1,4 +1,4 @@
1
- import React, { type ChangeEventHandler, type ReactNode } from 'react';
1
+ import { type ChangeEventHandler, type ReactNode } from 'react';
2
2
  import { type TextInputProps } from '@dxos/react-ui';
3
3
  export type LargeInputProps = TextInputProps & {
4
4
  validationMessage?: string;
@@ -7,5 +7,5 @@ export type LargeInputProps = TextInputProps & {
7
7
  placeholder?: string;
8
8
  onChange?: ChangeEventHandler<HTMLInputElement>;
9
9
  };
10
- export declare const Input: ({ validationMessage, label, ...props }: LargeInputProps) => React.JSX.Element;
10
+ export declare const Input: ({ validationMessage, label, ...props }: LargeInputProps) => import("react/jsx-runtime").JSX.Element;
11
11
  //# sourceMappingURL=Input.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Input.d.ts","sourceRoot":"","sources":["../../../../../src/components/Panel/Input.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,EAAE,KAAK,kBAAkB,EAAE,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvE,OAAO,EAAoB,KAAK,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAEvE,MAAM,MAAM,eAAe,GAAG,cAAc,GAAG;IAC7C,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,EAAE,kBAAkB,CAAC,gBAAgB,CAAC,CAAC;CACjD,CAAC;AAEF,eAAO,MAAM,KAAK,2CAA4C,eAAe,sBAU5E,CAAC"}
1
+ {"version":3,"file":"Input.d.ts","sourceRoot":"","sources":["../../../../../src/components/Panel/Input.tsx"],"names":[],"mappings":"AAIA,OAAc,EAAE,KAAK,kBAAkB,EAAE,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvE,OAAO,EAAoB,KAAK,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAEvE,MAAM,MAAM,eAAe,GAAG,cAAc,GAAG;IAC7C,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,EAAE,kBAAkB,CAAC,gBAAgB,CAAC,CAAC;CACjD,CAAC;AAEF,eAAO,MAAM,KAAK,2CAA4C,eAAe,4CAU5E,CAAC"}
@@ -1,19 +1,6 @@
1
- "use strict";
2
- //
3
- // Copyright 2023 DXOS.org
4
- //
5
- var __importDefault = (this && this.__importDefault) || function (mod) {
6
- return (mod && mod.__esModule) ? mod : { "default": mod };
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { Input as UiInput } from '@dxos/react-ui';
3
+ export const Input = ({ validationMessage, label, ...props }) => {
4
+ return (_jsxs(UiInput.Root, { children: [_jsx(UiInput.Label, { children: label }), _jsx(UiInput.TextInput, { ...props, classNames: 'plb-3 mbs-2 text-center' }), _jsx(UiInput.DescriptionAndValidation, { children: validationMessage && _jsx(UiInput.Validation, { children: validationMessage }) })] }));
7
5
  };
8
- Object.defineProperty(exports, "__esModule", { value: true });
9
- exports.Input = void 0;
10
- const react_1 = __importDefault(require("react"));
11
- const react_ui_1 = require("@dxos/react-ui");
12
- const Input = ({ validationMessage, label, ...props }) => {
13
- return (react_1.default.createElement(react_ui_1.Input.Root, null,
14
- react_1.default.createElement(react_ui_1.Input.Label, null, label),
15
- react_1.default.createElement(react_ui_1.Input.TextInput, { ...props, classNames: 'plb-3 mbs-2 text-center' }),
16
- react_1.default.createElement(react_ui_1.Input.DescriptionAndValidation, null, validationMessage && react_1.default.createElement(react_ui_1.Input.Validation, null, validationMessage))));
17
- };
18
- exports.Input = Input;
19
6
  //# sourceMappingURL=Input.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Input.js","sourceRoot":"","sources":["../../../../../src/components/Panel/Input.tsx"],"names":[],"mappings":";AAAA,EAAE;AACF,0BAA0B;AAC1B,EAAE;;;;;;AAEF,kDAAuE;AAEvE,6CAAuE;AAUhE,MAAM,KAAK,GAAG,CAAC,EAAE,iBAAiB,EAAE,KAAK,EAAE,GAAG,KAAK,EAAmB,EAAE,EAAE;IAC/E,OAAO,CACL,8BAAC,gBAAO,CAAC,IAAI;QACX,8BAAC,gBAAO,CAAC,KAAK,QAAE,KAAK,CAAiB;QACtC,8BAAC,gBAAO,CAAC,SAAS,OAAK,KAAK,EAAE,UAAU,EAAC,yBAAyB,GAAG;QACrE,8BAAC,gBAAO,CAAC,wBAAwB,QAC9B,iBAAiB,IAAI,8BAAC,gBAAO,CAAC,UAAU,QAAE,iBAAiB,CAAsB,CACjD,CACtB,CAChB,CAAC;AACJ,CAAC,CAAC;AAVW,QAAA,KAAK,SAUhB"}
1
+ {"version":3,"file":"Input.js","sourceRoot":"","sources":["../../../../../src/components/Panel/Input.tsx"],"names":[],"mappings":";AAMA,OAAO,EAAE,KAAK,IAAI,OAAO,EAAuB,MAAM,gBAAgB,CAAC;AAUvE,MAAM,CAAC,MAAM,KAAK,GAAG,CAAC,EAAE,iBAAiB,EAAE,KAAK,EAAE,GAAG,KAAK,EAAmB,EAAE,EAAE;IAC/E,OAAO,CACL,MAAC,OAAO,CAAC,IAAI,eACX,KAAC,OAAO,CAAC,KAAK,cAAE,KAAK,GAAiB,EACtC,KAAC,OAAO,CAAC,SAAS,OAAK,KAAK,EAAE,UAAU,EAAC,yBAAyB,GAAG,EACrE,KAAC,OAAO,CAAC,wBAAwB,cAC9B,iBAAiB,IAAI,KAAC,OAAO,CAAC,UAAU,cAAE,iBAAiB,GAAsB,GACjD,IACtB,CAChB,CAAC;AACJ,CAAC,CAAC"}
@@ -1,4 +1,4 @@
1
- import React, { type PropsWithChildren } from 'react';
1
+ import { type PropsWithChildren } from 'react';
2
2
  export type LabelProps = PropsWithChildren<{}>;
3
- export declare const Label: (props: LabelProps) => React.JSX.Element;
3
+ export declare const Label: (props: LabelProps) => import("react/jsx-runtime").JSX.Element;
4
4
  //# sourceMappingURL=Label.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Label.d.ts","sourceRoot":"","sources":["../../../../../src/components/Panel/Label.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,EAAE,KAAK,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAItD,MAAM,MAAM,UAAU,GAAG,iBAAiB,CAAC,EAAE,CAAC,CAAC;AAE/C,eAAO,MAAM,KAAK,UAAW,UAAU,sBAGtC,CAAC"}
1
+ {"version":3,"file":"Label.d.ts","sourceRoot":"","sources":["../../../../../src/components/Panel/Label.tsx"],"names":[],"mappings":"AAIA,OAAc,EAAE,KAAK,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAItD,MAAM,MAAM,UAAU,GAAG,iBAAiB,CAAC,EAAE,CAAC,CAAC;AAE/C,eAAO,MAAM,KAAK,UAAW,UAAU,4CAGtC,CAAC"}
@@ -1,17 +1,7 @@
1
- "use strict";
2
- //
3
- // Copyright 2023 DXOS.org
4
- //
5
- var __importDefault = (this && this.__importDefault) || function (mod) {
6
- return (mod && mod.__esModule) ? mod : { "default": mod };
7
- };
8
- Object.defineProperty(exports, "__esModule", { value: true });
9
- exports.Label = void 0;
10
- const react_1 = __importDefault(require("react"));
11
- const react_ui_theme_1 = require("@dxos/react-ui-theme");
12
- const Label = (props) => {
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { descriptionText, mx } from '@dxos/react-ui-theme';
3
+ export const Label = (props) => {
13
4
  const { children } = props;
14
- return react_1.default.createElement("span", { className: (0, react_ui_theme_1.mx)(react_ui_theme_1.descriptionText, 'text-center mli-6 whitespace-normal') }, children);
5
+ return _jsx("span", { className: mx(descriptionText, 'text-center mli-6 whitespace-normal'), children: children });
15
6
  };
16
- exports.Label = Label;
17
7
  //# sourceMappingURL=Label.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Label.js","sourceRoot":"","sources":["../../../../../src/components/Panel/Label.tsx"],"names":[],"mappings":";AAAA,EAAE;AACF,0BAA0B;AAC1B,EAAE;;;;;;AAEF,kDAAsD;AAEtD,yDAA2D;AAIpD,MAAM,KAAK,GAAG,CAAC,KAAiB,EAAE,EAAE;IACzC,MAAM,EAAE,QAAQ,EAAE,GAAG,KAAK,CAAC;IAC3B,OAAO,wCAAM,SAAS,EAAE,IAAA,mBAAE,EAAC,gCAAe,EAAE,qCAAqC,CAAC,IAAG,QAAQ,CAAQ,CAAC;AACxG,CAAC,CAAC;AAHW,QAAA,KAAK,SAGhB"}
1
+ {"version":3,"file":"Label.js","sourceRoot":"","sources":["../../../../../src/components/Panel/Label.tsx"],"names":[],"mappings":";AAMA,OAAO,EAAE,eAAe,EAAE,EAAE,EAAE,MAAM,sBAAsB,CAAC;AAI3D,MAAM,CAAC,MAAM,KAAK,GAAG,CAAC,KAAiB,EAAE,EAAE;IACzC,MAAM,EAAE,QAAQ,EAAE,GAAG,KAAK,CAAC;IAC3B,OAAO,eAAM,SAAS,EAAE,EAAE,CAAC,eAAe,EAAE,qCAAqC,CAAC,YAAG,QAAQ,GAAQ,CAAC;AACxG,CAAC,CAAC"}
@@ -1,11 +1,10 @@
1
1
  import '@dxos-theme';
2
- import React from 'react';
3
2
  declare const _default: {
4
3
  title: string;
5
- component: (props: import("../StorybookDialog").StorybookDialogProps) => React.JSX.Element;
6
- decorators: import("@storybook/react/*").Decorator[];
4
+ component: (props: import("../StorybookDialog").StorybookDialogProps) => import("react/jsx-runtime").JSX.Element;
5
+ decorators: import("@storybook/react").Decorator[];
7
6
  };
8
7
  export default _default;
9
- export declare const Normal: (props: any) => React.JSX.Element;
10
- export declare const Primary: (props: any) => React.JSX.Element;
8
+ export declare const Normal: (props: any) => import("react/jsx-runtime").JSX.Element;
9
+ export declare const Primary: (props: any) => import("react/jsx-runtime").JSX.Element;
11
10
  //# sourceMappingURL=Panel.stories.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Panel.stories.d.ts","sourceRoot":"","sources":["../../../../../src/components/Panel/Panel.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,aAAa,CAAC;AAErB,OAAO,KAAK,MAAM,OAAO,CAAC;;;;;;AAU1B,wBAIE;AAEF,eAAO,MAAM,MAAM,UAAW,GAAG,sBAahC,CAAC;AAEF,eAAO,MAAM,OAAO,UAAW,GAAG,sBAajC,CAAC"}
1
+ {"version":3,"file":"Panel.stories.d.ts","sourceRoot":"","sources":["../../../../../src/components/Panel/Panel.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,aAAa,CAAC;;;;;;AAYrB,wBAIE;AAEF,eAAO,MAAM,MAAM,UAAW,GAAG,4CAahC,CAAC;AAEF,eAAO,MAAM,OAAO,UAAW,GAAG,4CAajC,CAAC"}
@@ -1,43 +1,23 @@
1
- "use strict";
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  //
3
3
  // Copyright 2023 DXOS.org
4
4
  //
5
- var __importDefault = (this && this.__importDefault) || function (mod) {
6
- return (mod && mod.__esModule) ? mod : { "default": mod };
7
- };
8
- Object.defineProperty(exports, "__esModule", { value: true });
9
- exports.Primary = exports.Normal = void 0;
10
- require("@dxos-theme");
11
- const react_1 = __importDefault(require("react"));
12
- const storybook_utils_1 = require("@dxos/storybook-utils");
13
- const Action_1 = require("./Action");
14
- const Actions_1 = require("./Actions");
15
- const Heading_1 = require("./Heading");
16
- const Label_1 = require("./Label");
17
- const StorybookDialog_1 = require("../StorybookDialog");
18
- exports.default = {
5
+ import '@dxos-theme';
6
+ import { withTheme } from '@dxos/storybook-utils';
7
+ import { Action } from './Action';
8
+ import { Actions } from './Actions';
9
+ import { Heading } from './Heading';
10
+ import { Label } from './Label';
11
+ import { StorybookDialog } from '../StorybookDialog';
12
+ export default {
19
13
  title: 'sdk/shell/StorybookDialog',
20
- component: StorybookDialog_1.StorybookDialog,
21
- decorators: [storybook_utils_1.withTheme],
14
+ component: StorybookDialog,
15
+ decorators: [withTheme],
22
16
  };
23
- const Normal = (props) => {
24
- return (react_1.default.createElement(StorybookDialog_1.StorybookDialog, { ...props },
25
- react_1.default.createElement(Heading_1.Heading, { title: 'Panel heading', titleId: 'panel-heading' }),
26
- react_1.default.createElement("div", { className: 'p-3 text-center' },
27
- react_1.default.createElement(Label_1.Label, null, "Lorem ipsum"),
28
- react_1.default.createElement(Actions_1.Actions, null,
29
- react_1.default.createElement(Action_1.Action, { variant: 'ghost' }, "Ghost"),
30
- react_1.default.createElement(Action_1.Action, null, "Normal")))));
17
+ export const Normal = (props) => {
18
+ return (_jsxs(StorybookDialog, { ...props, children: [_jsx(Heading, { title: 'Panel heading', titleId: 'panel-heading' }), _jsxs("div", { className: 'p-3 text-center', children: [_jsx(Label, { children: "Lorem ipsum" }), _jsxs(Actions, { children: [_jsx(Action, { variant: 'ghost', children: "Ghost" }), _jsx(Action, { children: "Normal" })] })] })] }));
31
19
  };
32
- exports.Normal = Normal;
33
- const Primary = (props) => {
34
- return (react_1.default.createElement(StorybookDialog_1.StorybookDialog, { ...props },
35
- react_1.default.createElement(Heading_1.Heading, { title: 'Panel heading', titleId: 'panel-heading' }),
36
- react_1.default.createElement("div", { className: 'p-3 text-center' },
37
- react_1.default.createElement(Label_1.Label, null, "Lorem ipsum"),
38
- react_1.default.createElement(Actions_1.Actions, null,
39
- react_1.default.createElement(Action_1.Action, { variant: 'ghost' }, "Ghost"),
40
- react_1.default.createElement(Action_1.Action, { variant: 'primary' }, "Primary")))));
20
+ export const Primary = (props) => {
21
+ return (_jsxs(StorybookDialog, { ...props, children: [_jsx(Heading, { title: 'Panel heading', titleId: 'panel-heading' }), _jsxs("div", { className: 'p-3 text-center', children: [_jsx(Label, { children: "Lorem ipsum" }), _jsxs(Actions, { children: [_jsx(Action, { variant: 'ghost', children: "Ghost" }), _jsx(Action, { variant: 'primary', children: "Primary" })] })] })] }));
41
22
  };
42
- exports.Primary = Primary;
43
23
  //# sourceMappingURL=Panel.stories.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Panel.stories.js","sourceRoot":"","sources":["../../../../../src/components/Panel/Panel.stories.tsx"],"names":[],"mappings":";AAAA,EAAE;AACF,0BAA0B;AAC1B,EAAE;;;;;;AAEF,uBAAqB;AAErB,kDAA0B;AAE1B,2DAAkD;AAElD,qCAAkC;AAClC,uCAAoC;AACpC,uCAAoC;AACpC,mCAAgC;AAChC,wDAAqD;AAErD,kBAAe;IACb,KAAK,EAAE,2BAA2B;IAClC,SAAS,EAAE,iCAAe;IAC1B,UAAU,EAAE,CAAC,2BAAS,CAAC;CACxB,CAAC;AAEK,MAAM,MAAM,GAAG,CAAC,KAAU,EAAE,EAAE;IACnC,OAAO,CACL,8BAAC,iCAAe,OAAK,KAAK;QACxB,8BAAC,iBAAO,IAAC,KAAK,EAAC,eAAe,EAAC,OAAO,EAAC,eAAe,GAAW;QACjE,uCAAK,SAAS,EAAC,iBAAiB;YAC9B,8BAAC,aAAK,sBAAoB;YAC1B,8BAAC,iBAAO;gBACN,8BAAC,eAAM,IAAC,OAAO,EAAC,OAAO,YAAe;gBACtC,8BAAC,eAAM,iBAAgB,CACf,CACN,CACU,CACnB,CAAC;AACJ,CAAC,CAAC;AAbW,QAAA,MAAM,UAajB;AAEK,MAAM,OAAO,GAAG,CAAC,KAAU,EAAE,EAAE;IACpC,OAAO,CACL,8BAAC,iCAAe,OAAK,KAAK;QACxB,8BAAC,iBAAO,IAAC,KAAK,EAAC,eAAe,EAAC,OAAO,EAAC,eAAe,GAAW;QACjE,uCAAK,SAAS,EAAC,iBAAiB;YAC9B,8BAAC,aAAK,sBAAoB;YAC1B,8BAAC,iBAAO;gBACN,8BAAC,eAAM,IAAC,OAAO,EAAC,OAAO,YAAe;gBACtC,8BAAC,eAAM,IAAC,OAAO,EAAC,SAAS,cAAiB,CAClC,CACN,CACU,CACnB,CAAC;AACJ,CAAC,CAAC;AAbW,QAAA,OAAO,WAalB"}
1
+ {"version":3,"file":"Panel.stories.js","sourceRoot":"","sources":["../../../../../src/components/Panel/Panel.stories.tsx"],"names":[],"mappings":";AAAA,EAAE;AACF,0BAA0B;AAC1B,EAAE;AAEF,OAAO,aAAa,CAAC;AAIrB,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAElD,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAClC,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAErD,eAAe;IACb,KAAK,EAAE,2BAA2B;IAClC,SAAS,EAAE,eAAe;IAC1B,UAAU,EAAE,CAAC,SAAS,CAAC;CACxB,CAAC;AAEF,MAAM,CAAC,MAAM,MAAM,GAAG,CAAC,KAAU,EAAE,EAAE;IACnC,OAAO,CACL,MAAC,eAAe,OAAK,KAAK,aACxB,KAAC,OAAO,IAAC,KAAK,EAAC,eAAe,EAAC,OAAO,EAAC,eAAe,GAAW,EACjE,eAAK,SAAS,EAAC,iBAAiB,aAC9B,KAAC,KAAK,8BAAoB,EAC1B,MAAC,OAAO,eACN,KAAC,MAAM,IAAC,OAAO,EAAC,OAAO,sBAAe,EACtC,KAAC,MAAM,yBAAgB,IACf,IACN,IACU,CACnB,CAAC;AACJ,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,OAAO,GAAG,CAAC,KAAU,EAAE,EAAE;IACpC,OAAO,CACL,MAAC,eAAe,OAAK,KAAK,aACxB,KAAC,OAAO,IAAC,KAAK,EAAC,eAAe,EAAC,OAAO,EAAC,eAAe,GAAW,EACjE,eAAK,SAAS,EAAC,iBAAiB,aAC9B,KAAC,KAAK,8BAAoB,EAC1B,MAAC,OAAO,eACN,KAAC,MAAM,IAAC,OAAO,EAAC,OAAO,sBAAe,EACtC,KAAC,MAAM,IAAC,OAAO,EAAC,SAAS,wBAAiB,IAClC,IACN,IACU,CACnB,CAAC;AACJ,CAAC,CAAC"}
@@ -1,45 +1,10 @@
1
- "use strict";
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
2
  //
3
3
  // Copyright 2023 DXOS.org
4
4
  //
5
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
- if (k2 === undefined) k2 = k;
7
- var desc = Object.getOwnPropertyDescriptor(m, k);
8
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
- desc = { enumerable: true, get: function() { return m[k]; } };
10
- }
11
- Object.defineProperty(o, k2, desc);
12
- }) : (function(o, m, k, k2) {
13
- if (k2 === undefined) k2 = k;
14
- o[k2] = m[k];
15
- }));
16
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
- Object.defineProperty(o, "default", { enumerable: true, value: v });
18
- }) : function(o, v) {
19
- o["default"] = v;
20
- });
21
- var __importStar = (this && this.__importStar) || (function () {
22
- var ownKeys = function(o) {
23
- ownKeys = Object.getOwnPropertyNames || function (o) {
24
- var ar = [];
25
- for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
26
- return ar;
27
- };
28
- return ownKeys(o);
29
- };
30
- return function (mod) {
31
- if (mod && mod.__esModule) return mod;
32
- var result = {};
33
- if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
34
- __setModuleDefault(result, mod);
35
- return result;
36
- };
37
- })();
38
- Object.defineProperty(exports, "__esModule", { value: true });
39
- exports.StepHeading = void 0;
40
- const react_1 = __importStar(require("react"));
41
- const react_ui_theme_1 = require("@dxos/react-ui-theme");
42
- exports.StepHeading = (0, react_1.forwardRef)(({ children, className, ...props }, forwardedRef) => {
43
- return (react_1.default.createElement("h2", { ...props, className: (0, react_ui_theme_1.mx)('font-normal text-sm mbe-4 mli-1 text-center', className), ref: forwardedRef }, children));
5
+ import { forwardRef } from 'react';
6
+ import { mx } from '@dxos/react-ui-theme';
7
+ export const StepHeading = forwardRef(({ children, className, ...props }, forwardedRef) => {
8
+ return (_jsx("h2", { ...props, className: mx('font-normal text-sm mbe-4 mli-1 text-center', className), ref: forwardedRef, children: children }));
44
9
  });
45
10
  //# sourceMappingURL=StepHeading.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"StepHeading.js","sourceRoot":"","sources":["../../../../../src/components/Panel/StepHeading.tsx"],"names":[],"mappings":";AAAA,EAAE;AACF,0BAA0B;AAC1B,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEF,+CAAsE;AAEtE,yDAA0C;AAE7B,QAAA,WAAW,GAAG,IAAA,kBAAU,EACnC,CAAC,EAAE,QAAQ,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,YAAY,EAAE,EAAE;IAClD,OAAO,CACL,yCAAQ,KAAK,EAAE,SAAS,EAAE,IAAA,mBAAE,EAAC,6CAA6C,EAAE,SAAS,CAAC,EAAE,GAAG,EAAE,YAAY,IACtG,QAAQ,CACN,CACN,CAAC;AACJ,CAAC,CACF,CAAC"}
1
+ {"version":3,"file":"StepHeading.js","sourceRoot":"","sources":["../../../../../src/components/Panel/StepHeading.tsx"],"names":[],"mappings":";AAAA,EAAE;AACF,0BAA0B;AAC1B,EAAE;AAEF,OAAc,EAA8B,UAAU,EAAE,MAAM,OAAO,CAAC;AAEtE,OAAO,EAAE,EAAE,EAAE,MAAM,sBAAsB,CAAC;AAE1C,MAAM,CAAC,MAAM,WAAW,GAAG,UAAU,CACnC,CAAC,EAAE,QAAQ,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,YAAY,EAAE,EAAE;IAClD,OAAO,CACL,gBAAQ,KAAK,EAAE,SAAS,EAAE,EAAE,CAAC,6CAA6C,EAAE,SAAS,CAAC,EAAE,GAAG,EAAE,YAAY,YACtG,QAAQ,GACN,CACN,CAAC;AACJ,CAAC,CACF,CAAC"}
@@ -1,28 +1,12 @@
1
- "use strict";
2
1
  //
3
2
  // Copyright 2023 DXOS.org
4
3
  //
5
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
- if (k2 === undefined) k2 = k;
7
- var desc = Object.getOwnPropertyDescriptor(m, k);
8
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
- desc = { enumerable: true, get: function() { return m[k]; } };
10
- }
11
- Object.defineProperty(o, k2, desc);
12
- }) : (function(o, m, k, k2) {
13
- if (k2 === undefined) k2 = k;
14
- o[k2] = m[k];
15
- }));
16
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
17
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
18
- };
19
- Object.defineProperty(exports, "__esModule", { value: true });
20
- __exportStar(require("./Action"), exports);
21
- __exportStar(require("./Actions"), exports);
22
- __exportStar(require("./CloseButton"), exports);
23
- __exportStar(require("./Emoji"), exports);
24
- __exportStar(require("./Heading"), exports);
25
- __exportStar(require("./Label"), exports);
26
- __exportStar(require("./Input"), exports);
27
- __exportStar(require("./StepHeading"), exports);
4
+ export * from './Action';
5
+ export * from './Actions';
6
+ export * from './CloseButton';
7
+ export * from './Emoji';
8
+ export * from './Heading';
9
+ export * from './Label';
10
+ export * from './Input';
11
+ export * from './StepHeading';
28
12
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/components/Panel/index.ts"],"names":[],"mappings":";AAAA,EAAE;AACF,0BAA0B;AAC1B,EAAE;;;;;;;;;;;;;;;;AAEF,2CAAyB;AACzB,4CAA0B;AAC1B,gDAA8B;AAC9B,0CAAwB;AACxB,4CAA0B;AAC1B,0CAAwB;AACxB,0CAAwB;AACxB,gDAA8B"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/components/Panel/index.ts"],"names":[],"mappings":"AAAA,EAAE;AACF,0BAA0B;AAC1B,EAAE;AAEF,cAAc,UAAU,CAAC;AACzB,cAAc,WAAW,CAAC;AAC1B,cAAc,eAAe,CAAC;AAC9B,cAAc,SAAS,CAAC;AACxB,cAAc,WAAW,CAAC;AAC1B,cAAc,SAAS,CAAC;AACxB,cAAc,SAAS,CAAC;AACxB,cAAc,eAAe,CAAC"}
@@ -1,55 +1,16 @@
1
- "use strict";
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  //
3
3
  // Copyright 2023 DXOS.org
4
4
  //
5
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
- if (k2 === undefined) k2 = k;
7
- var desc = Object.getOwnPropertyDescriptor(m, k);
8
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
- desc = { enumerable: true, get: function() { return m[k]; } };
10
- }
11
- Object.defineProperty(o, k2, desc);
12
- }) : (function(o, m, k, k2) {
13
- if (k2 === undefined) k2 = k;
14
- o[k2] = m[k];
15
- }));
16
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
- Object.defineProperty(o, "default", { enumerable: true, value: v });
18
- }) : function(o, v) {
19
- o["default"] = v;
20
- });
21
- var __importStar = (this && this.__importStar) || (function () {
22
- var ownKeys = function(o) {
23
- ownKeys = Object.getOwnPropertyNames || function (o) {
24
- var ar = [];
25
- for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
26
- return ar;
27
- };
28
- return ownKeys(o);
29
- };
30
- return function (mod) {
31
- if (mod && mod.__esModule) return mod;
32
- var result = {};
33
- if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
34
- __setModuleDefault(result, mod);
35
- return result;
36
- };
37
- })();
38
- Object.defineProperty(exports, "__esModule", { value: true });
39
- exports.SpaceListItem = void 0;
40
- const react_1 = __importStar(require("react"));
41
- const react_ui_1 = require("@dxos/react-ui");
42
- const react_ui_theme_1 = require("@dxos/react-ui-theme");
43
- const util_1 = require("@dxos/util");
44
- exports.SpaceListItem = (0, react_1.forwardRef)(({ space, onClick }, ref) => {
5
+ import { forwardRef } from 'react';
6
+ import { Avatar, useId } from '@dxos/react-ui';
7
+ import { mx } from '@dxos/react-ui-theme';
8
+ import { humanize, keyToEmoji } from '@dxos/util';
9
+ export const SpaceListItem = forwardRef(({ space, onClick }, ref) => {
45
10
  var _a;
46
- const fallbackValue = (0, util_1.keyToEmoji)(space.key);
47
- const labelId = (0, react_ui_1.useId)('identityListItem__label');
48
- const displayName = (_a = space.properties.name) !== null && _a !== void 0 ? _a : (0, util_1.humanize)(space.key.toHex());
49
- return (react_1.default.createElement("li", { className: (0, react_ui_theme_1.mx)('flex gap-2 items-center mbe-2', onClick && 'cursor-pointer'), onClick: () => onClick === null || onClick === void 0 ? void 0 : onClick(), ref: ref, "data-testid": 'space-list-item' },
50
- react_1.default.createElement(react_ui_1.Avatar.Root, { labelId: labelId },
51
- react_1.default.createElement(react_ui_1.Avatar.Frame, null,
52
- react_1.default.createElement(react_ui_1.Avatar.Fallback, { text: fallbackValue })),
53
- react_1.default.createElement(react_ui_1.Avatar.Label, { classNames: 'text-sm truncate' }, displayName))));
11
+ const fallbackValue = keyToEmoji(space.key);
12
+ const labelId = useId('identityListItem__label');
13
+ const displayName = (_a = space.properties.name) !== null && _a !== void 0 ? _a : humanize(space.key.toHex());
14
+ return (_jsx("li", { className: mx('flex gap-2 items-center mbe-2', onClick && 'cursor-pointer'), onClick: () => onClick === null || onClick === void 0 ? void 0 : onClick(), ref: ref, "data-testid": 'space-list-item', children: _jsxs(Avatar.Root, { labelId: labelId, children: [_jsx(Avatar.Frame, { children: _jsx(Avatar.Fallback, { text: fallbackValue }) }), _jsx(Avatar.Label, { classNames: 'text-sm truncate', children: displayName })] }) }));
54
15
  });
55
16
  //# sourceMappingURL=SpaceListItem.js.map