@akohn/dashql-react 0.0.0-stage → 0.0.20-dev.1001.g5e5121808

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 (356) hide show
  1. package/LICENSE +373 -0
  2. package/NOTICE +118 -0
  3. package/README.md +133 -2
  4. package/dist/_virtual/_vite/preload-helper.js +100 -0
  5. package/dist/brand/brand.d.ts +13 -0
  6. package/dist/brand/brand.js +14 -0
  7. package/dist/brand/landing_backdrop.d.ts +56 -0
  8. package/dist/brand/landing_backdrop.js +1019 -0
  9. package/dist/brand/wobble_morph.d.ts +54 -0
  10. package/dist/brand/wobble_morph.js +439 -0
  11. package/dist/components/action_list.d.ts +31 -0
  12. package/dist/components/action_list.js +63 -0
  13. package/dist/components/action_list.module.js +11 -0
  14. package/dist/components/anchored_overlay.d.ts +28 -0
  15. package/dist/components/anchored_overlay.js +93 -0
  16. package/dist/components/button.d.ts +42 -0
  17. package/dist/components/button.js +97 -0
  18. package/dist/components/button.module.js +20 -0
  19. package/dist/components/button_group.d.ts +7 -0
  20. package/dist/components/button_group.js +18 -0
  21. package/dist/components/button_group.module.js +3 -0
  22. package/dist/components/card_placeholder.d.ts +9 -0
  23. package/dist/components/card_placeholder.js +39 -0
  24. package/dist/components/card_placeholder.module.js +6 -0
  25. package/dist/components/clipboard.d.ts +19 -0
  26. package/dist/components/clipboard.js +54 -0
  27. package/dist/components/data_table/computation_tables.d.ts +12 -0
  28. package/dist/components/data_table/computation_tables.js +42 -0
  29. package/dist/components/data_table/data_table.d.ts +39 -0
  30. package/dist/components/data_table/data_table.js +415 -0
  31. package/dist/components/data_table/data_table.module.js +41 -0
  32. package/dist/components/data_table/data_table_cell.d.ts +7 -0
  33. package/dist/components/data_table/data_table_cell.js +9 -0
  34. package/dist/components/data_table/data_table_cell_data.d.ts +22 -0
  35. package/dist/components/data_table/data_table_cell_data.js +103 -0
  36. package/dist/components/data_table/data_table_cell_header_name.d.ts +17 -0
  37. package/dist/components/data_table/data_table_cell_header_name.js +73 -0
  38. package/dist/components/data_table/data_table_cell_header_plots.d.ts +29 -0
  39. package/dist/components/data_table/data_table_cell_header_plots.js +120 -0
  40. package/dist/components/data_table/data_table_colors.d.ts +19 -0
  41. package/dist/components/data_table/data_table_colors.js +27 -0
  42. package/dist/components/data_table/data_table_column_resize.d.ts +21 -0
  43. package/dist/components/data_table/data_table_column_resize.js +121 -0
  44. package/dist/components/data_table/data_table_focus.d.ts +15 -0
  45. package/dist/components/data_table/data_table_focus.js +53 -0
  46. package/dist/components/data_table/data_table_layout.d.ts +18 -0
  47. package/dist/components/data_table/data_table_layout.js +103 -0
  48. package/dist/components/data_table/data_table_ordering.d.ts +9 -0
  49. package/dist/components/data_table/data_table_ordering.js +39 -0
  50. package/dist/components/data_table/data_table_portals.d.ts +9 -0
  51. package/dist/components/data_table/data_table_portals.js +29 -0
  52. package/dist/components/data_table/data_table_row_detail.d.ts +22 -0
  53. package/dist/components/data_table/data_table_row_detail.js +68 -0
  54. package/dist/components/data_table/data_table_row_detail.module.js +7 -0
  55. package/dist/components/data_table/data_table_sticky_views.d.ts +35 -0
  56. package/dist/components/data_table/data_table_sticky_views.js +161 -0
  57. package/dist/components/data_table/data_table_window.d.ts +18 -0
  58. package/dist/components/data_table/data_table_window.js +118 -0
  59. package/dist/components/data_table/format_peek.d.ts +2 -0
  60. package/dist/components/data_table/format_peek.js +17 -0
  61. package/dist/components/data_table/histogram_bars.d.ts +36 -0
  62. package/dist/components/data_table/histogram_bars.js +100 -0
  63. package/dist/components/data_table/histogram_brush.d.ts +22 -0
  64. package/dist/components/data_table/histogram_brush.js +105 -0
  65. package/dist/components/data_table/histogram_cell.d.ts +17 -0
  66. package/dist/components/data_table/histogram_cell.js +324 -0
  67. package/dist/components/data_table/histogram_cell.module.js +9 -0
  68. package/dist/components/data_table/histogram_label.d.ts +1 -0
  69. package/dist/components/data_table/histogram_label.js +7 -0
  70. package/dist/components/data_table/memo_props.d.ts +1 -0
  71. package/dist/components/data_table/memo_props.js +17 -0
  72. package/dist/components/data_table/mostfrequent_cell.d.ts +17 -0
  73. package/dist/components/data_table/mostfrequent_cell.js +316 -0
  74. package/dist/components/data_table/mostfrequent_cell.module.js +10 -0
  75. package/dist/components/data_table/use_cross_filters.d.ts +14 -0
  76. package/dist/components/data_table/use_cross_filters.js +47 -0
  77. package/dist/components/deferred.d.ts +11 -0
  78. package/dist/components/deferred.js +41 -0
  79. package/dist/components/deferred.module.js +5 -0
  80. package/dist/components/error_boundary.d.ts +18 -0
  81. package/dist/components/error_boundary.js +15 -0
  82. package/dist/components/graph.module.js +15 -0
  83. package/dist/components/graph_port.d.ts +10 -0
  84. package/dist/components/graph_port.js +34 -0
  85. package/dist/components/inspector_overlay.d.ts +32 -0
  86. package/dist/components/inspector_overlay.js +72 -0
  87. package/dist/components/inspector_overlay.module.js +18 -0
  88. package/dist/components/json/json_arrow_symbol.d.ts +4 -0
  89. package/dist/components/json/json_arrow_symbol.js +25 -0
  90. package/dist/components/json/json_copy_button.d.ts +11 -0
  91. package/dist/components/json/json_copy_button.js +61 -0
  92. package/dist/components/json/json_ellipsis_symbol.d.ts +7 -0
  93. package/dist/components/json/json_ellipsis_symbol.js +11 -0
  94. package/dist/components/json/json_item_count.d.ts +5 -0
  95. package/dist/components/json/json_item_count.js +12 -0
  96. package/dist/components/json/json_key_name.d.ts +6 -0
  97. package/dist/components/json/json_key_name.js +40 -0
  98. package/dist/components/json/json_key_values.d.ts +12 -0
  99. package/dist/components/json/json_key_values.js +99 -0
  100. package/dist/components/json/json_literal.d.ts +8 -0
  101. package/dist/components/json/json_literal.js +140 -0
  102. package/dist/components/json/json_nested_close.d.ts +11 -0
  103. package/dist/components/json/json_nested_close.js +31 -0
  104. package/dist/components/json/json_nested_open.d.ts +18 -0
  105. package/dist/components/json/json_nested_open.js +150 -0
  106. package/dist/components/json/json_nested_state.d.ts +14 -0
  107. package/dist/components/json/json_nested_state.js +28 -0
  108. package/dist/components/json/json_tool_state.d.ts +18 -0
  109. package/dist/components/json/json_tool_state.js +46 -0
  110. package/dist/components/json/json_value.d.ts +10 -0
  111. package/dist/components/json/json_value.js +46 -0
  112. package/dist/components/json/json_view.d.ts +14 -0
  113. package/dist/components/json/json_view.js +37 -0
  114. package/dist/components/json/json_view.module.js +41 -0
  115. package/dist/components/json/json_view_state.d.ts +14 -0
  116. package/dist/components/json/json_view_state.js +32 -0
  117. package/dist/components/json/unique_key.d.ts +1 -0
  118. package/dist/components/json/unique_key.js +8 -0
  119. package/dist/components/keyvalue_list.d.ts +25 -0
  120. package/dist/components/keyvalue_list.js +106 -0
  121. package/dist/components/keyvalue_list.module.js +15 -0
  122. package/dist/components/name_input.d.ts +12 -0
  123. package/dist/components/name_input.js +63 -0
  124. package/dist/components/overlay.d.ts +53 -0
  125. package/dist/components/overlay.js +183 -0
  126. package/dist/components/overlay.module.js +32 -0
  127. package/dist/components/panel_resize_handle.d.ts +12 -0
  128. package/dist/components/panel_resize_handle.js +39 -0
  129. package/dist/components/portal.d.ts +8 -0
  130. package/dist/components/portal.js +53 -0
  131. package/dist/components/progress_bar.d.ts +7 -0
  132. package/dist/components/progress_bar.js +21 -0
  133. package/dist/components/progress_bar.module.js +3 -0
  134. package/dist/components/query_history_viewer.d.ts +31 -0
  135. package/dist/components/query_history_viewer.js +271 -0
  136. package/dist/components/query_history_viewer.module.js +7 -0
  137. package/dist/components/query_profile/engine_profile_view.d.ts +19 -0
  138. package/dist/components/query_profile/engine_profile_view.js +94 -0
  139. package/dist/components/query_profile/numeric_limits.d.ts +1 -0
  140. package/dist/components/query_profile/numeric_limits.js +2 -0
  141. package/dist/components/query_profile/profile_execution_controller.d.ts +12 -0
  142. package/dist/components/query_profile/profile_execution_controller.js +44 -0
  143. package/dist/components/query_profile/profile_fit.d.ts +24 -0
  144. package/dist/components/query_profile/profile_fit.js +22 -0
  145. package/dist/components/query_profile/profile_navigation.d.ts +3 -0
  146. package/dist/components/query_profile/profile_navigation.js +34 -0
  147. package/dist/components/query_profile/profile_scene.d.ts +64 -0
  148. package/dist/components/query_profile/profile_scene.js +422 -0
  149. package/dist/components/query_profile/query_profile_view.d.ts +36 -0
  150. package/dist/components/query_profile/query_profile_view.js +953 -0
  151. package/dist/components/query_profile/query_profile_view.module.js +23 -0
  152. package/dist/components/query_progress/query_profile_overlay.d.ts +7 -0
  153. package/dist/components/query_progress/query_profile_overlay.js +67 -0
  154. package/dist/components/query_progress/query_profile_overlay.module.js +6 -0
  155. package/dist/components/query_progress/query_progress_panel.d.ts +14 -0
  156. package/dist/components/query_progress/query_progress_panel.js +255 -0
  157. package/dist/components/query_progress/query_progress_panel.module.js +10 -0
  158. package/dist/components/query_result/cell_detail_overlay.d.ts +34 -0
  159. package/dist/components/query_result/cell_detail_overlay.js +277 -0
  160. package/dist/components/query_result/cell_detail_overlay.module.js +21 -0
  161. package/dist/components/query_result/query_result_action_menu.d.ts +12 -0
  162. package/dist/components/query_result/query_result_action_menu.js +62 -0
  163. package/dist/components/query_result/query_result_action_menu.module.js +2 -0
  164. package/dist/components/query_result/query_result_details.d.ts +17 -0
  165. package/dist/components/query_result/query_result_details.js +46 -0
  166. package/dist/components/query_result/query_result_details.module.js +5 -0
  167. package/dist/components/query_result/query_result_download_button.d.ts +8 -0
  168. package/dist/components/query_result/query_result_download_button.js +38 -0
  169. package/dist/components/query_result/query_result_header.d.ts +21 -0
  170. package/dist/components/query_result/query_result_header.js +72 -0
  171. package/dist/components/query_result/query_result_header.module.js +3 -0
  172. package/dist/components/query_result/query_result_search_controls.d.ts +12 -0
  173. package/dist/components/query_result/query_result_search_controls.js +141 -0
  174. package/dist/components/query_result/query_result_search_controls.module.js +7 -0
  175. package/dist/components/query_result/query_result_toolbar.d.ts +21 -0
  176. package/dist/components/query_result/query_result_toolbar.js +74 -0
  177. package/dist/components/query_result/result_table_overlay.d.ts +9 -0
  178. package/dist/components/query_result/result_table_overlay.js +73 -0
  179. package/dist/components/query_result/result_table_overlay.module.js +6 -0
  180. package/dist/components/query_result/use_query_result_search.d.ts +8 -0
  181. package/dist/components/query_result/use_query_result_search.js +28 -0
  182. package/dist/components/segmented_control.d.ts +58 -0
  183. package/dist/components/segmented_control.js +116 -0
  184. package/dist/components/segmented_control.module.js +17 -0
  185. package/dist/components/separator.d.ts +21 -0
  186. package/dist/components/separator.js +79 -0
  187. package/dist/components/separator.module.js +7 -0
  188. package/dist/components/sheet.d.ts +11 -0
  189. package/dist/components/sheet.js +65 -0
  190. package/dist/components/sheet.module.js +7 -0
  191. package/dist/components/size_observer.d.ts +7 -0
  192. package/dist/components/size_observer.js +57 -0
  193. package/dist/components/skeleton.d.ts +2 -0
  194. package/dist/components/skeleton.js +14 -0
  195. package/dist/components/skeleton.module.js +2 -0
  196. package/dist/components/spinners.d.ts +8 -0
  197. package/dist/components/spinners.js +33 -0
  198. package/dist/components/spinners.module.js +8 -0
  199. package/dist/components/status_indicator.d.ts +36 -0
  200. package/dist/components/status_indicator.js +182 -0
  201. package/dist/components/status_indicator.module.js +3 -0
  202. package/dist/components/symbol_icon.d.ts +65 -0
  203. package/dist/components/symbol_icon.js +213 -0
  204. package/dist/components/tab_header.d.ts +11 -0
  205. package/dist/components/tab_header.js +55 -0
  206. package/dist/components/tab_header.module.js +7 -0
  207. package/dist/components/tag.d.ts +10 -0
  208. package/dist/components/tag.js +17 -0
  209. package/dist/components/tag.module.js +4 -0
  210. package/dist/components/text_field.d.ts +44 -0
  211. package/dist/components/text_field.js +159 -0
  212. package/dist/components/text_field.module.js +15 -0
  213. package/dist/components/text_input.d.ts +25 -0
  214. package/dist/components/text_input.js +90 -0
  215. package/dist/components/text_input.module.js +13 -0
  216. package/dist/components/text_input_action.d.ts +19 -0
  217. package/dist/components/text_input_action.js +33 -0
  218. package/dist/components/text_input_action.module.js +2 -0
  219. package/dist/components/toggle_switch.d.ts +7 -0
  220. package/dist/components/toggle_switch.js +22 -0
  221. package/dist/components/toggle_switch.module.js +6 -0
  222. package/dist/components/tooltip.d.ts +22 -0
  223. package/dist/components/tooltip.js +139 -0
  224. package/dist/components/tooltip.module.js +2 -0
  225. package/dist/components/tree_entry.d.ts +17 -0
  226. package/dist/components/tree_entry.js +48 -0
  227. package/dist/components/tree_entry.module.js +9 -0
  228. package/dist/components/value_list.d.ts +17 -0
  229. package/dist/components/value_list.js +70 -0
  230. package/dist/components/value_list.module.js +8 -0
  231. package/dist/components/vegalite_chart.d.ts +16 -0
  232. package/dist/components/vegalite_chart.js +149 -0
  233. package/dist/components/vegalite_chart.module.js +3 -0
  234. package/dist/components/vegalite_view.d.ts +26 -0
  235. package/dist/components/vegalite_view.js +239 -0
  236. package/dist/components/vegalite_view.module.js +5 -0
  237. package/dist/components/vertical_scroll_shadows.d.ts +14 -0
  238. package/dist/components/vertical_scroll_shadows.js +55 -0
  239. package/dist/components/vertical_scroll_shadows.module.js +5 -0
  240. package/dist/components/vertical_split.d.ts +15 -0
  241. package/dist/components/vertical_split.js +112 -0
  242. package/dist/components/vertical_split.module.js +5 -0
  243. package/dist/components/vertical_tabs.d.ts +36 -0
  244. package/dist/components/vertical_tabs.js +169 -0
  245. package/dist/components/vertical_tabs.module.js +23 -0
  246. package/dist/components/visualization/capped_rows.d.ts +9 -0
  247. package/dist/components/visualization/capped_rows.js +23 -0
  248. package/dist/components/visualization/capped_rows.module.js +3 -0
  249. package/dist/components/visualization/chart_download_button.d.ts +12 -0
  250. package/dist/components/visualization/chart_download_button.js +41 -0
  251. package/dist/components/visualization/kpi_view.d.ts +10 -0
  252. package/dist/components/visualization/kpi_view.js +215 -0
  253. package/dist/components/visualization/kpi_view.module.js +17 -0
  254. package/dist/components/visualization/markdown_view.d.ts +17 -0
  255. package/dist/components/visualization/markdown_view.js +154 -0
  256. package/dist/components/visualization/markdown_view.module.js +4 -0
  257. package/dist/components/visualization/result_rows.d.ts +17 -0
  258. package/dist/components/visualization/result_rows.js +82 -0
  259. package/dist/components/visualization/vegalite_preview.d.ts +8 -0
  260. package/dist/components/visualization/vegalite_preview.js +17 -0
  261. package/dist/components/visualization/vegalite_preview.module.js +2 -0
  262. package/dist/components/visualization/visualization_dispatch.d.ts +13 -0
  263. package/dist/components/visualization/visualization_dispatch.js +40 -0
  264. package/dist/components/visualization/visualization_panel.d.ts +10 -0
  265. package/dist/components/visualization/visualization_panel.js +36 -0
  266. package/dist/components/visualization/visualization_panel.module.js +3 -0
  267. package/dist/dom/anchored_position.d.ts +42 -0
  268. package/dist/dom/anchored_position.js +255 -0
  269. package/dist/dom/app_host.d.ts +2 -0
  270. package/dist/dom/app_host.js +7 -0
  271. package/dist/dom/calm_frames.d.ts +29 -0
  272. package/dist/dom/calm_frames.js +120 -0
  273. package/dist/dom/classnames.d.ts +8 -0
  274. package/dist/dom/classnames.js +20 -0
  275. package/dist/dom/download_file.d.ts +1 -0
  276. package/dist/dom/download_file.js +12 -0
  277. package/dist/dom/focus.d.ts +29 -0
  278. package/dist/dom/focus.js +84 -0
  279. package/dist/dom/graph_edges.d.ts +53 -0
  280. package/dist/dom/graph_edges.js +450 -0
  281. package/dist/dom/key_events.d.ts +9 -0
  282. package/dist/dom/key_events.js +33 -0
  283. package/dist/dom/media_query.d.ts +5 -0
  284. package/dist/dom/media_query.js +18 -0
  285. package/dist/dom/outside_click.d.ts +8 -0
  286. package/dist/dom/outside_click.js +32 -0
  287. package/dist/dom/rerender_ref.d.ts +2 -0
  288. package/dist/dom/rerender_ref.js +11 -0
  289. package/dist/dom/row_context_menu.d.ts +7 -0
  290. package/dist/dom/row_context_menu.js +32 -0
  291. package/dist/dom/scrollbar.d.ts +3 -0
  292. package/dist/dom/scrollbar.js +23 -0
  293. package/dist/format/format.d.ts +11 -0
  294. package/dist/format/format.js +72 -0
  295. package/dist/format/query_progress_format.d.ts +17 -0
  296. package/dist/format/query_progress_format.js +69 -0
  297. package/dist/format/time_format.d.ts +5 -0
  298. package/dist/format/time_format.js +45 -0
  299. package/dist/hooks.d.ts +72 -0
  300. package/dist/hooks.js +305 -0
  301. package/dist/host.d.ts +10 -0
  302. package/dist/host.js +12 -0
  303. package/dist/logger.d.ts +4 -0
  304. package/dist/logger.js +13 -0
  305. package/dist/models/computation_model.d.ts +14 -0
  306. package/dist/models/computation_model.js +27 -0
  307. package/dist/models/query_model.d.ts +12 -0
  308. package/dist/models/query_model.js +27 -0
  309. package/dist/models/script_model.d.ts +17 -0
  310. package/dist/models/script_model.js +59 -0
  311. package/dist/platform/content_length.d.ts +1 -0
  312. package/dist/platform/content_length.js +7 -0
  313. package/dist/platform/core_provider.d.ts +18 -0
  314. package/dist/platform/core_provider.js +106 -0
  315. package/dist/platform/embedded_database_provider.d.ts +19 -0
  316. package/dist/platform/embedded_database_provider.js +53 -0
  317. package/dist/platform/page_runtime.d.ts +3 -0
  318. package/dist/platform/page_runtime.js +29 -0
  319. package/dist/style.css +4386 -0
  320. package/dist/svg_symbols.d.ts +2 -0
  321. package/dist/svg_symbols.js +2 -0
  322. package/dist/symbols.svg +1197 -0
  323. package/dist/theme/color_scheme.d.ts +4 -0
  324. package/dist/theme/color_scheme.js +28 -0
  325. package/dist/theme/xcode_palette.d.ts +22 -0
  326. package/dist/theme/xcode_palette.js +4 -0
  327. package/dist/theme/xcode_palettes.js +41 -0
  328. package/dist/utils/plan_engine.d.ts +2 -0
  329. package/dist/utils/plan_engine.js +13 -0
  330. package/dist/vegalite/vegalite_check.d.ts +1 -0
  331. package/dist/vegalite/vegalite_check.js +7 -0
  332. package/dist/vegalite/vegalite_crossfilter.d.ts +54 -0
  333. package/dist/vegalite/vegalite_crossfilter.js +187 -0
  334. package/dist/vegalite/vegalite_image.d.ts +14 -0
  335. package/dist/vegalite/vegalite_image.js +28 -0
  336. package/dist/vegalite/vegalite_loader.d.ts +7 -0
  337. package/dist/vegalite/vegalite_loader.js +15 -0
  338. package/dist/vegalite/vegalite_rows.d.ts +3 -0
  339. package/dist/vegalite/vegalite_rows.js +23 -0
  340. package/dist/vegalite/vegalite_theme.d.ts +13 -0
  341. package/dist/vegalite/vegalite_theme.js +141 -0
  342. package/fonts/InstrumentSans-Bold.ttf +0 -0
  343. package/fonts/InstrumentSans-Medium.ttf +0 -0
  344. package/fonts/InstrumentSans-OFL.txt +93 -0
  345. package/fonts/InstrumentSans-Regular.ttf +0 -0
  346. package/fonts/InstrumentSans-SemiBold.ttf +0 -0
  347. package/fonts/JetBrainsMono-Bold.ttf +0 -0
  348. package/fonts/JetBrainsMono-Medium.ttf +0 -0
  349. package/fonts/JetBrainsMono-OFL.txt +93 -0
  350. package/fonts/JetBrainsMono-Regular.ttf +0 -0
  351. package/fonts/JetBrainsMono-SemiBold.ttf +0 -0
  352. package/fonts/fonts.css +61 -0
  353. package/package.json +403 -4
  354. package/styles/colors.css +110 -0
  355. package/styles/flavors/dbcom.css +48 -0
  356. package/styles/tokens.css +192 -0
@@ -0,0 +1,7 @@
1
+ var separator_x = "dashql_separator_x_T3hKqX";
2
+ var separator_y = "dashql_separator_y_OIvW5q";
3
+ var handle = "dashql_handle_aHk__5";
4
+ var dragging = "dashql_dragging_6RztzK";
5
+ var resizing_x = "dashql_resizing_x_cGmaA3";
6
+ var resizing_y = "dashql_resizing_y_68NKDB";
7
+ export { dragging, handle, resizing_x, resizing_y, separator_x, separator_y };
@@ -0,0 +1,11 @@
1
+ import * as React from 'react';
2
+ export interface SheetProps {
3
+ title: React.ReactNode;
4
+ 'aria-label'?: string;
5
+ onClose: () => void;
6
+ actions?: React.ReactNode;
7
+ returnFocusRef?: React.RefObject<HTMLElement | null>;
8
+ 'data-testid'?: string;
9
+ children?: React.ReactNode;
10
+ }
11
+ export declare function Sheet(props: SheetProps): React.ReactElement;
@@ -0,0 +1,65 @@
1
+ import { backdrop, body, grabber, header, sheet, title } from "./sheet.module.js";
2
+ import { ButtonSize, ButtonVariant, IconButton } from "./button.js";
3
+ import { Portal } from "./portal.js";
4
+ import { useOverlay } from "./overlay.js";
5
+ import { XIcon } from "./symbol_icon.js";
6
+ import { useFocusTrap } from "../dom/focus.js";
7
+ import * as React from "react";
8
+ import { Fragment, jsx, jsxs } from "react/jsx-runtime";
9
+ function Sheet(props) {
10
+ const closeRef = React.useRef(null);
11
+ const titleId = React.useId();
12
+ const overlayRef = useOverlay({
13
+ onEscape: props.onClose,
14
+ onClickOutside: props.onClose,
15
+ returnFocusRef: props.returnFocusRef,
16
+ initialFocusRef: closeRef
17
+ });
18
+ useFocusTrap({
19
+ containerRef: overlayRef,
20
+ initialFocusRef: closeRef
21
+ });
22
+ return /* @__PURE__ */ jsx(Portal, { children: /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsx("div", {
23
+ className: backdrop,
24
+ "aria-hidden": "true"
25
+ }), /* @__PURE__ */ jsxs("section", {
26
+ ref: overlayRef,
27
+ className: sheet,
28
+ role: "dialog",
29
+ "aria-modal": "true",
30
+ "aria-label": props["aria-label"],
31
+ "aria-labelledby": props["aria-label"] == null ? titleId : void 0,
32
+ "data-testid": props["data-testid"],
33
+ children: [
34
+ /* @__PURE__ */ jsx("div", {
35
+ className: grabber,
36
+ "aria-hidden": "true"
37
+ }),
38
+ /* @__PURE__ */ jsxs("header", {
39
+ className: header,
40
+ children: [
41
+ /* @__PURE__ */ jsx("h2", {
42
+ id: titleId,
43
+ className: title,
44
+ children: props.title
45
+ }),
46
+ props.actions,
47
+ /* @__PURE__ */ jsx(IconButton, {
48
+ ref: closeRef,
49
+ size: ButtonSize.Small,
50
+ variant: ButtonVariant.Invisible,
51
+ "aria-label": "Close",
52
+ "data-testid": "sheet-close",
53
+ onClick: props.onClose,
54
+ children: /* @__PURE__ */ jsx(XIcon, { size: 16 })
55
+ })
56
+ ]
57
+ }),
58
+ /* @__PURE__ */ jsx("div", {
59
+ className: body,
60
+ children: props.children
61
+ })
62
+ ]
63
+ })] }) });
64
+ }
65
+ export { Sheet };
@@ -0,0 +1,7 @@
1
+ var backdrop = "dashql_backdrop_xwtinJ";
2
+ var sheet = "dashql_sheet_8NBFjE";
3
+ var grabber = "dashql_grabber_yGY3Hp";
4
+ var header = "dashql_header_ukD2PQ";
5
+ var title = "dashql_title_W6n0mX";
6
+ var body = "dashql_body_52dHaX";
7
+ export { backdrop, body, grabber, header, sheet, title };
@@ -0,0 +1,7 @@
1
+ import * as React from 'react';
2
+ export interface ObservedSize {
3
+ width: number;
4
+ height: number;
5
+ }
6
+ export declare const useObservedSize: (target: React.RefObject<HTMLElement | null>, enabled?: boolean) => ObservedSize | null;
7
+ export declare function useSettledHeight(element: HTMLElement | null, onHeight: ((height: number) => void) | undefined): void;
@@ -0,0 +1,57 @@
1
+ import { transitionsEnd } from "../dom/calm_frames.js";
2
+ import * as React from "react";
3
+ function keepSameSize(prev, next) {
4
+ if (prev !== null && next !== null && prev.width === next.width && prev.height === next.height) return prev;
5
+ return next;
6
+ }
7
+ var useObservedSize = (target, enabled = true) => {
8
+ const [size, setSize] = React.useState(null);
9
+ const [element, setElement] = React.useState(null);
10
+ React.useLayoutEffect(() => {
11
+ const current = target.current;
12
+ if (current === element) return;
13
+ setElement(current);
14
+ const next = current?.getBoundingClientRect() ?? null;
15
+ setSize((prev) => keepSameSize(prev, next));
16
+ });
17
+ React.useLayoutEffect(() => {
18
+ if (!enabled || element === null || typeof ResizeObserver === "undefined") return;
19
+ const observer = new ResizeObserver((entries) => {
20
+ const entry = entries[entries.length - 1];
21
+ if (entry !== void 0) setSize((prev) => keepSameSize(prev, entry.contentRect));
22
+ });
23
+ observer.observe(element);
24
+ return () => observer.disconnect();
25
+ }, [element, enabled]);
26
+ return size;
27
+ };
28
+ function useSettledHeight(element, onHeight) {
29
+ React.useEffect(() => {
30
+ if (element == null || onHeight == null) return;
31
+ let reported = null;
32
+ let waiting = false;
33
+ let stopped = false;
34
+ const report = () => {
35
+ const height = Math.ceil(element.getBoundingClientRect().height);
36
+ if (height === reported) return;
37
+ reported = height;
38
+ onHeight(height);
39
+ };
40
+ report();
41
+ if (typeof ResizeObserver === "undefined") return;
42
+ const observer = new ResizeObserver(() => {
43
+ if (waiting) return;
44
+ waiting = true;
45
+ transitionsEnd(element).then(() => {
46
+ waiting = false;
47
+ if (!stopped) report();
48
+ });
49
+ });
50
+ observer.observe(element);
51
+ return () => {
52
+ stopped = true;
53
+ observer.disconnect();
54
+ };
55
+ }, [element, onHeight]);
56
+ }
57
+ export { useObservedSize, useSettledHeight };
@@ -0,0 +1,2 @@
1
+ import * as React from 'react';
2
+ export declare function Skeleton(): React.ReactElement;
@@ -0,0 +1,14 @@
1
+ import { root } from "./skeleton.module.js";
2
+ import { CardPlaceholder } from "./card_placeholder.js";
3
+ import "react";
4
+ import { jsx } from "react/jsx-runtime";
5
+ function Skeleton() {
6
+ return /* @__PURE__ */ jsx("div", {
7
+ className: root,
8
+ "data-testid": "skeleton",
9
+ "aria-busy": "true",
10
+ "aria-label": "Loading",
11
+ children: /* @__PURE__ */ jsx(CardPlaceholder, {})
12
+ });
13
+ }
14
+ export { Skeleton };
@@ -0,0 +1,2 @@
1
+ var root = "dashql_root_hj37cF";
2
+ export { root };
@@ -0,0 +1,8 @@
1
+ import * as React from 'react';
2
+ interface RectangleWaveSpinnerProps {
3
+ className?: string;
4
+ color?: string;
5
+ active: boolean;
6
+ }
7
+ export declare const RectangleWaveSpinner: React.FC<RectangleWaveSpinnerProps>;
8
+ export {};
@@ -0,0 +1,33 @@
1
+ import { rw, rw_rect_1, rw_rect_2, rw_rect_3, rw_rect_4, rw_rect_5, rw_rect_active } from "./spinners.module.js";
2
+ import { classNames } from "../dom/classnames.js";
3
+ import "react";
4
+ import { jsx, jsxs } from "react/jsx-runtime";
5
+ var RectangleWaveSpinner = (props) => {
6
+ const s = { backgroundColor: props.color || "var(--color_fg)" };
7
+ return /* @__PURE__ */ jsxs("div", {
8
+ className: classNames(props.className, rw),
9
+ children: [
10
+ /* @__PURE__ */ jsx("div", {
11
+ className: classNames(rw_rect_1, { [rw_rect_active]: props.active }),
12
+ style: s
13
+ }),
14
+ /* @__PURE__ */ jsx("div", {
15
+ className: classNames(rw_rect_2, { [rw_rect_active]: props.active }),
16
+ style: s
17
+ }),
18
+ /* @__PURE__ */ jsx("div", {
19
+ className: classNames(rw_rect_3, { [rw_rect_active]: props.active }),
20
+ style: s
21
+ }),
22
+ /* @__PURE__ */ jsx("div", {
23
+ className: classNames(rw_rect_4, { [rw_rect_active]: props.active }),
24
+ style: s
25
+ }),
26
+ /* @__PURE__ */ jsx("div", {
27
+ className: classNames(rw_rect_5, { [rw_rect_active]: props.active }),
28
+ style: s
29
+ })
30
+ ]
31
+ });
32
+ };
33
+ export { RectangleWaveSpinner };
@@ -0,0 +1,8 @@
1
+ var rw = "dashql_rw_bfXVvW";
2
+ var rw_rect_active = "dashql_rw_rect_active_WZbDxc";
3
+ var rw_rect_1 = "dashql_rw_rect_1_PUOars";
4
+ var rw_rect_2 = "dashql_rw_rect_2_rknw22";
5
+ var rw_rect_3 = "dashql_rw_rect_3_R9xLXm";
6
+ var rw_rect_4 = "dashql_rw_rect_4_2Bhbyo";
7
+ var rw_rect_5 = "dashql_rw_rect_5_fH8DEa";
8
+ export { rw, rw_rect_1, rw_rect_2, rw_rect_3, rw_rect_4, rw_rect_5, rw_rect_active };
@@ -0,0 +1,36 @@
1
+ import * as React from 'react';
2
+ export declare enum IndicatorStatus {
3
+ None = 0,
4
+ Running = 1,
5
+ Failed = 2,
6
+ Succeeded = 3,
7
+ Blocked = 4,
8
+ Skip = 5
9
+ }
10
+ export declare const STATUS_COLOR_IN_PROGRESS = "var(--color_attention_fg)";
11
+ export declare const STATUS_COLOR_SUCCESS = "var(--color_success_fg)";
12
+ export declare const STATUS_COLOR_FAILED = "var(--color_danger_fg)";
13
+ export declare const STATUS_COLOR_OTHER = "var(--color_neutral_fg)";
14
+ interface ProgressCounts {
15
+ readonly started: number;
16
+ readonly succeeded: number;
17
+ readonly skipped: number;
18
+ readonly failed: number;
19
+ readonly total: number | null;
20
+ }
21
+ export declare function getStatusFromProgressCounter(counter: ProgressCounts | undefined): IndicatorStatus;
22
+ export interface StatusIndicatorProps {
23
+ className?: string;
24
+ status: IndicatorStatus;
25
+ width?: string;
26
+ height?: string;
27
+ fill?: string;
28
+ }
29
+ export declare const StatusIndicator: React.FC<StatusIndicatorProps>;
30
+ export interface StatusDotProps {
31
+ className?: string;
32
+ status: IndicatorStatus;
33
+ size?: number;
34
+ }
35
+ export declare const StatusDot: React.FC<StatusDotProps>;
36
+ export {};
@@ -0,0 +1,182 @@
1
+ import { classNames } from "../dom/classnames.js";
2
+ import { status_dot, status_running_spinner } from "./status_indicator.module.js";
3
+ import "react";
4
+ import { jsx, jsxs } from "react/jsx-runtime";
5
+ var IndicatorStatus = /* @__PURE__ */ function(IndicatorStatus) {
6
+ IndicatorStatus[IndicatorStatus["None"] = 0] = "None";
7
+ IndicatorStatus[IndicatorStatus["Running"] = 1] = "Running";
8
+ IndicatorStatus[IndicatorStatus["Failed"] = 2] = "Failed";
9
+ IndicatorStatus[IndicatorStatus["Succeeded"] = 3] = "Succeeded";
10
+ IndicatorStatus[IndicatorStatus["Blocked"] = 4] = "Blocked";
11
+ IndicatorStatus[IndicatorStatus["Skip"] = 5] = "Skip";
12
+ return IndicatorStatus;
13
+ }({});
14
+ var STATUS_COLOR_IN_PROGRESS = "var(--color_attention_fg)";
15
+ var STATUS_COLOR_SUCCESS = "var(--color_success_fg)";
16
+ var STATUS_COLOR_FAILED = "var(--color_danger_fg)";
17
+ var STATUS_COLOR_OTHER = "var(--color_neutral_fg)";
18
+ function getIndicatorColor(status) {
19
+ switch (status) {
20
+ case IndicatorStatus.Running: return STATUS_COLOR_IN_PROGRESS;
21
+ case IndicatorStatus.Succeeded: return STATUS_COLOR_SUCCESS;
22
+ case IndicatorStatus.Failed: return STATUS_COLOR_FAILED;
23
+ default: return STATUS_COLOR_OTHER;
24
+ }
25
+ }
26
+ function getStatusFromProgressCounter(counter) {
27
+ if (counter?.total == null) return IndicatorStatus.None;
28
+ if (counter.total == 0) return IndicatorStatus.Skip;
29
+ if (counter.started == 0) return IndicatorStatus.None;
30
+ if (counter.failed + counter.skipped + counter.succeeded >= counter.total) {
31
+ const status = [
32
+ [IndicatorStatus.Failed, counter.failed],
33
+ [IndicatorStatus.Succeeded, counter.succeeded],
34
+ [IndicatorStatus.Skip, counter.skipped]
35
+ ];
36
+ status.sort((l, r) => l[1] - r[1]);
37
+ return status[2][0];
38
+ }
39
+ return IndicatorStatus.Running;
40
+ }
41
+ var StatusIndicator = (props) => {
42
+ const fill = props.fill || getIndicatorColor(props.status);
43
+ let element = /* @__PURE__ */ jsx("div", {});
44
+ switch (props.status) {
45
+ case IndicatorStatus.Running:
46
+ element = /* @__PURE__ */ jsx("svg", {
47
+ className: classNames(props.className),
48
+ style: { color: fill },
49
+ width: props.width || "24px",
50
+ height: props.height || "24px",
51
+ viewBox: "-8 -8 16 16",
52
+ fill: "none",
53
+ stroke: "currentColor",
54
+ strokeWidth: "2",
55
+ children: /* @__PURE__ */ jsxs("g", {
56
+ fill: "none",
57
+ fillRule: "evenodd",
58
+ children: [
59
+ /* @__PURE__ */ jsx("circle", {
60
+ cx: "0",
61
+ cy: "0",
62
+ r: "7",
63
+ opacity: ".5"
64
+ }),
65
+ /* @__PURE__ */ jsx("circle", {
66
+ cx: "0",
67
+ cy: "0",
68
+ r: "4",
69
+ strokeWidth: "0",
70
+ fill: "currentColor"
71
+ }),
72
+ /* @__PURE__ */ jsx("circle", {
73
+ cx: "0",
74
+ cy: "0",
75
+ r: "7",
76
+ strokeDasharray: "12, 88",
77
+ className: status_running_spinner
78
+ })
79
+ ]
80
+ })
81
+ });
82
+ break;
83
+ case IndicatorStatus.Blocked:
84
+ case IndicatorStatus.None:
85
+ element = /* @__PURE__ */ jsx("svg", {
86
+ className: classNames(props.className),
87
+ style: { color: fill },
88
+ width: props.width || "24px",
89
+ height: props.height || "24px",
90
+ viewBox: "-8 -8 16 16",
91
+ fill: "none",
92
+ stroke: "currentColor",
93
+ strokeWidth: "2",
94
+ children: /* @__PURE__ */ jsx("g", {
95
+ fill: "none",
96
+ fillRule: "evenodd",
97
+ children: /* @__PURE__ */ jsx("circle", {
98
+ cx: "0",
99
+ cy: "0",
100
+ r: "4",
101
+ opacity: ".5",
102
+ strokeWidth: "0",
103
+ fill: "currentColor"
104
+ })
105
+ })
106
+ });
107
+ break;
108
+ case IndicatorStatus.Failed:
109
+ element = /* @__PURE__ */ jsx("svg", {
110
+ className: classNames(props.className),
111
+ style: { color: fill },
112
+ width: props.width || "24px",
113
+ height: props.height || "24px",
114
+ viewBox: "-0.5 -0.5 17 17",
115
+ fill: "none",
116
+ strokeWidth: "2",
117
+ children: /* @__PURE__ */ jsx("g", {
118
+ fill: "none",
119
+ fillRule: "evenodd",
120
+ children: /* @__PURE__ */ jsx("path", {
121
+ fill: "currentColor",
122
+ fillRule: "evenodd",
123
+ d: "M2.343 13.657A8 8 0 1113.657 2.343 8 8 0 012.343 13.657zM6.03 4.97a.75.75 0 00-1.06 1.06L6.94 8 4.97 9.97a.75.75 0 101.06 1.06L8 9.06l1.97 1.97a.75.75 0 101.06-1.06L9.06 8l1.97-1.97a.75.75 0 10-1.06-1.06L8 6.94 6.03 4.97z"
124
+ })
125
+ })
126
+ });
127
+ break;
128
+ case IndicatorStatus.Succeeded:
129
+ element = /* @__PURE__ */ jsx("svg", {
130
+ className: classNames(props.className),
131
+ style: { color: fill },
132
+ width: props.width || "24px",
133
+ height: props.height || "24px",
134
+ viewBox: "-0.5 -0.5 17 17",
135
+ fill: "none",
136
+ strokeWidth: "2",
137
+ children: /* @__PURE__ */ jsx("g", {
138
+ fill: "none",
139
+ fillRule: "evenodd",
140
+ children: /* @__PURE__ */ jsx("path", {
141
+ fill: "currentColor",
142
+ fillRule: "evenodd",
143
+ d: "M8 16A8 8 0 108 0a8 8 0 000 16zm3.78-9.72a.75.75 0 00-1.06-1.06L6.75 9.19 5.28 7.72a.75.75 0 00-1.06 1.06l2 2a.75.75 0 001.06 0l4.5-4.5z"
144
+ })
145
+ })
146
+ });
147
+ break;
148
+ case IndicatorStatus.Skip: element = /* @__PURE__ */ jsx("svg", {
149
+ className: classNames(props.className),
150
+ style: { color: fill },
151
+ width: props.width || "24px",
152
+ height: props.height || "24px",
153
+ viewBox: "-0.5 -0.5 17 17",
154
+ fill: "none",
155
+ strokeWidth: "2",
156
+ children: /* @__PURE__ */ jsx("g", {
157
+ fill: "none",
158
+ fillRule: "evenodd",
159
+ children: /* @__PURE__ */ jsx("path", {
160
+ fill: "currentColor",
161
+ fillRule: "evenodd",
162
+ d: "M0 8a8 8 0 1 1 16 0A8 8 0 0 1 0 8Zm11.333-2.167a.825.825 0 0 0-1.166-1.166l-5.5 5.5a.825.825 0 0 0 1.166 1.166Z"
163
+ })
164
+ })
165
+ });
166
+ }
167
+ return element;
168
+ };
169
+ var StatusDot = (props) => {
170
+ const size = props.size ?? 7;
171
+ return /* @__PURE__ */ jsx("span", {
172
+ className: classNames(status_dot, props.className),
173
+ style: {
174
+ width: size,
175
+ height: size,
176
+ backgroundColor: getIndicatorColor(props.status)
177
+ },
178
+ "data-status": IndicatorStatus[props.status].toLowerCase(),
179
+ "aria-hidden": "true"
180
+ });
181
+ };
182
+ export { IndicatorStatus, STATUS_COLOR_FAILED, STATUS_COLOR_IN_PROGRESS, STATUS_COLOR_OTHER, STATUS_COLOR_SUCCESS, StatusDot, StatusIndicator, getStatusFromProgressCounter };
@@ -0,0 +1,3 @@
1
+ var status_running_spinner = "dashql_status_running_spinner_FWefme";
2
+ var status_dot = "dashql_status_dot_Q9P4Cn";
3
+ export { status_dot, status_running_spinner };
@@ -0,0 +1,65 @@
1
+ import * as React from 'react';
2
+ export type IconSize = number | 'small' | 'medium' | 'large';
3
+ export interface IconProps extends Omit<React.SVGProps<SVGSVGElement>, 'size' | 'title'> {
4
+ size?: IconSize;
5
+ title?: string;
6
+ verticalAlign?: React.CSSProperties['verticalAlign'];
7
+ }
8
+ export type Icon = React.FC<IconProps>;
9
+ export declare function SymbolIcon(symbol: string): Icon;
10
+ export declare const AlertIcon: Icon;
11
+ export declare const BracesIcon: Icon;
12
+ export declare const BookIcon: Icon;
13
+ export declare const BroomIcon: Icon;
14
+ export declare const CheckIcon: Icon;
15
+ export declare const ChecklistIcon: Icon;
16
+ export declare const ChevronDownIcon: Icon;
17
+ export declare const ChevronRightIcon: Icon;
18
+ export declare const ChevronUpIcon: Icon;
19
+ export declare const CodeIcon: Icon;
20
+ export declare const CopyIcon: Icon;
21
+ export declare const CpuIcon: Icon;
22
+ export declare const DatabaseIcon: Icon;
23
+ export declare const DownloadIcon: Icon;
24
+ export declare const EyeIcon: Icon;
25
+ export declare const EyeClosedIcon: Icon;
26
+ export declare const FileBadgeIcon: Icon;
27
+ export declare const FileDirectoryFillIcon: Icon;
28
+ export declare const FileDirectoryIcon: Icon;
29
+ export declare const FileDirectoryOpenFillIcon: Icon;
30
+ export declare const FileDirectoryPlusIcon: Icon;
31
+ export declare const FileIcon: Icon;
32
+ export declare const GraphIcon: Icon;
33
+ export declare const HeartIcon: Icon;
34
+ export declare const HistoryIcon: Icon;
35
+ export declare const KeyIcon: Icon;
36
+ export declare const LibraryIcon: Icon;
37
+ export declare const LinkIcon: Icon;
38
+ export declare const ListUnorderedIcon: Icon;
39
+ export declare const LockIcon: Icon;
40
+ export declare const PaperAirplaneIcon: Icon;
41
+ export declare const PaperclipIcon: Icon;
42
+ export declare const PencilIcon: Icon;
43
+ export declare const PersonIcon: Icon;
44
+ export declare const PlugIcon: Icon;
45
+ export declare const PlusIcon: Icon;
46
+ export declare const ProjectIcon: Icon;
47
+ export declare const RowsIcon: Icon;
48
+ export declare const SearchIcon: Icon;
49
+ export declare const ScreenFullIcon: Icon;
50
+ export declare const ScreenNormalIcon: Icon;
51
+ export declare const StackIcon: Icon;
52
+ export declare const StackPlusIcon: Icon;
53
+ export declare const SquareFillIcon: Icon;
54
+ export declare const SyncIcon: Icon;
55
+ export declare const TableIcon: Icon;
56
+ export declare const ThreeBarsIcon: Icon;
57
+ export declare const ToolsIcon: Icon;
58
+ export declare const TrashIcon: Icon;
59
+ export declare const TriangleDownIcon: Icon;
60
+ export declare const UnlinkIcon: Icon;
61
+ export declare const UploadIcon: Icon;
62
+ export declare const XCircleFillIcon: Icon;
63
+ export declare const XIcon: Icon;
64
+ export declare const ZoomInIcon: Icon;
65
+ export declare const ZoomOutIcon: Icon;