@akohn/dashql-react 0.0.0-stage → 0.0.20-dev.661.gda3ac9a7e

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 (342) hide show
  1. package/LICENSE +373 -0
  2. package/NOTICE +66 -0
  3. package/README.md +46 -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 +38 -0
  30. package/dist/components/data_table/data_table.js +378 -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 +21 -0
  35. package/dist/components/data_table/data_table_cell_data.js +99 -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 +31 -0
  39. package/dist/components/data_table/data_table_cell_header_plots.js +122 -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_sticky_views.d.ts +34 -0
  53. package/dist/components/data_table/data_table_sticky_views.js +161 -0
  54. package/dist/components/data_table/data_table_window.d.ts +18 -0
  55. package/dist/components/data_table/data_table_window.js +118 -0
  56. package/dist/components/data_table/format_peek.d.ts +2 -0
  57. package/dist/components/data_table/format_peek.js +17 -0
  58. package/dist/components/data_table/histogram_bars.d.ts +36 -0
  59. package/dist/components/data_table/histogram_bars.js +100 -0
  60. package/dist/components/data_table/histogram_brush.d.ts +23 -0
  61. package/dist/components/data_table/histogram_brush.js +107 -0
  62. package/dist/components/data_table/histogram_cell.d.ts +19 -0
  63. package/dist/components/data_table/histogram_cell.js +325 -0
  64. package/dist/components/data_table/histogram_cell.module.js +9 -0
  65. package/dist/components/data_table/histogram_label.d.ts +1 -0
  66. package/dist/components/data_table/histogram_label.js +7 -0
  67. package/dist/components/data_table/memo_props.d.ts +1 -0
  68. package/dist/components/data_table/memo_props.js +17 -0
  69. package/dist/components/data_table/mostfrequent_cell.d.ts +17 -0
  70. package/dist/components/data_table/mostfrequent_cell.js +316 -0
  71. package/dist/components/data_table/mostfrequent_cell.module.js +10 -0
  72. package/dist/components/data_table/use_cross_filters.d.ts +14 -0
  73. package/dist/components/data_table/use_cross_filters.js +47 -0
  74. package/dist/components/deferred.d.ts +11 -0
  75. package/dist/components/deferred.js +41 -0
  76. package/dist/components/deferred.module.js +5 -0
  77. package/dist/components/error_boundary.d.ts +18 -0
  78. package/dist/components/error_boundary.js +15 -0
  79. package/dist/components/graph.module.js +15 -0
  80. package/dist/components/graph_port.d.ts +10 -0
  81. package/dist/components/graph_port.js +34 -0
  82. package/dist/components/inspector_overlay.d.ts +32 -0
  83. package/dist/components/inspector_overlay.js +72 -0
  84. package/dist/components/inspector_overlay.module.js +18 -0
  85. package/dist/components/json/json_arrow_symbol.d.ts +4 -0
  86. package/dist/components/json/json_arrow_symbol.js +25 -0
  87. package/dist/components/json/json_copy_button.d.ts +11 -0
  88. package/dist/components/json/json_copy_button.js +61 -0
  89. package/dist/components/json/json_ellipsis_symbol.d.ts +7 -0
  90. package/dist/components/json/json_ellipsis_symbol.js +11 -0
  91. package/dist/components/json/json_item_count.d.ts +5 -0
  92. package/dist/components/json/json_item_count.js +12 -0
  93. package/dist/components/json/json_key_name.d.ts +6 -0
  94. package/dist/components/json/json_key_name.js +40 -0
  95. package/dist/components/json/json_key_values.d.ts +12 -0
  96. package/dist/components/json/json_key_values.js +99 -0
  97. package/dist/components/json/json_literal.d.ts +8 -0
  98. package/dist/components/json/json_literal.js +140 -0
  99. package/dist/components/json/json_nested_close.d.ts +11 -0
  100. package/dist/components/json/json_nested_close.js +31 -0
  101. package/dist/components/json/json_nested_open.d.ts +18 -0
  102. package/dist/components/json/json_nested_open.js +150 -0
  103. package/dist/components/json/json_nested_state.d.ts +14 -0
  104. package/dist/components/json/json_nested_state.js +28 -0
  105. package/dist/components/json/json_tool_state.d.ts +18 -0
  106. package/dist/components/json/json_tool_state.js +46 -0
  107. package/dist/components/json/json_value.d.ts +10 -0
  108. package/dist/components/json/json_value.js +46 -0
  109. package/dist/components/json/json_view.d.ts +14 -0
  110. package/dist/components/json/json_view.js +37 -0
  111. package/dist/components/json/json_view.module.js +41 -0
  112. package/dist/components/json/json_view_state.d.ts +14 -0
  113. package/dist/components/json/json_view_state.js +32 -0
  114. package/dist/components/json/unique_key.d.ts +1 -0
  115. package/dist/components/json/unique_key.js +8 -0
  116. package/dist/components/keyvalue_list.d.ts +25 -0
  117. package/dist/components/keyvalue_list.js +106 -0
  118. package/dist/components/keyvalue_list.module.js +15 -0
  119. package/dist/components/name_input.d.ts +11 -0
  120. package/dist/components/name_input.js +51 -0
  121. package/dist/components/overlay.d.ts +53 -0
  122. package/dist/components/overlay.js +183 -0
  123. package/dist/components/overlay.module.js +32 -0
  124. package/dist/components/panel_resize_handle.d.ts +12 -0
  125. package/dist/components/panel_resize_handle.js +39 -0
  126. package/dist/components/portal.d.ts +8 -0
  127. package/dist/components/portal.js +53 -0
  128. package/dist/components/progress_bar.d.ts +7 -0
  129. package/dist/components/progress_bar.js +21 -0
  130. package/dist/components/progress_bar.module.js +3 -0
  131. package/dist/components/query_history_viewer.d.ts +33 -0
  132. package/dist/components/query_history_viewer.js +268 -0
  133. package/dist/components/query_history_viewer.module.js +7 -0
  134. package/dist/components/query_profile/engine_profile_view.d.ts +19 -0
  135. package/dist/components/query_profile/engine_profile_view.js +94 -0
  136. package/dist/components/query_profile/numeric_limits.d.ts +1 -0
  137. package/dist/components/query_profile/numeric_limits.js +2 -0
  138. package/dist/components/query_profile/profile_execution_controller.d.ts +14 -0
  139. package/dist/components/query_profile/profile_execution_controller.js +56 -0
  140. package/dist/components/query_profile/profile_fit.d.ts +24 -0
  141. package/dist/components/query_profile/profile_fit.js +22 -0
  142. package/dist/components/query_profile/profile_navigation.d.ts +3 -0
  143. package/dist/components/query_profile/profile_navigation.js +34 -0
  144. package/dist/components/query_profile/profile_scene.d.ts +64 -0
  145. package/dist/components/query_profile/profile_scene.js +422 -0
  146. package/dist/components/query_profile/query_profile_view.d.ts +44 -0
  147. package/dist/components/query_profile/query_profile_view.js +961 -0
  148. package/dist/components/query_profile/query_profile_view.module.js +23 -0
  149. package/dist/components/query_progress/query_profile_overlay.d.ts +7 -0
  150. package/dist/components/query_progress/query_profile_overlay.js +67 -0
  151. package/dist/components/query_progress/query_profile_overlay.module.js +6 -0
  152. package/dist/components/query_progress/query_progress_panel.d.ts +14 -0
  153. package/dist/components/query_progress/query_progress_panel.js +255 -0
  154. package/dist/components/query_progress/query_progress_panel.module.js +10 -0
  155. package/dist/components/query_result/cell_detail_overlay.d.ts +34 -0
  156. package/dist/components/query_result/cell_detail_overlay.js +277 -0
  157. package/dist/components/query_result/cell_detail_overlay.module.js +21 -0
  158. package/dist/components/query_result/query_result_action_menu.d.ts +12 -0
  159. package/dist/components/query_result/query_result_action_menu.js +62 -0
  160. package/dist/components/query_result/query_result_action_menu.module.js +2 -0
  161. package/dist/components/query_result/query_result_details.d.ts +17 -0
  162. package/dist/components/query_result/query_result_details.js +46 -0
  163. package/dist/components/query_result/query_result_details.module.js +5 -0
  164. package/dist/components/query_result/query_result_download_button.d.ts +8 -0
  165. package/dist/components/query_result/query_result_download_button.js +38 -0
  166. package/dist/components/query_result/query_result_header.d.ts +21 -0
  167. package/dist/components/query_result/query_result_header.js +71 -0
  168. package/dist/components/query_result/query_result_header.module.js +3 -0
  169. package/dist/components/query_result/query_result_search_controls.d.ts +12 -0
  170. package/dist/components/query_result/query_result_search_controls.js +141 -0
  171. package/dist/components/query_result/query_result_search_controls.module.js +7 -0
  172. package/dist/components/query_result/query_result_toolbar.d.ts +21 -0
  173. package/dist/components/query_result/query_result_toolbar.js +74 -0
  174. package/dist/components/query_result/result_table_overlay.d.ts +9 -0
  175. package/dist/components/query_result/result_table_overlay.js +73 -0
  176. package/dist/components/query_result/result_table_overlay.module.js +6 -0
  177. package/dist/components/query_result/use_query_result_search.d.ts +8 -0
  178. package/dist/components/query_result/use_query_result_search.js +28 -0
  179. package/dist/components/segmented_control.d.ts +58 -0
  180. package/dist/components/segmented_control.js +116 -0
  181. package/dist/components/segmented_control.module.js +17 -0
  182. package/dist/components/separator.d.ts +21 -0
  183. package/dist/components/separator.js +79 -0
  184. package/dist/components/separator.module.js +7 -0
  185. package/dist/components/size_observer.d.ts +7 -0
  186. package/dist/components/size_observer.js +57 -0
  187. package/dist/components/skeleton.d.ts +2 -0
  188. package/dist/components/skeleton.js +14 -0
  189. package/dist/components/skeleton.module.js +2 -0
  190. package/dist/components/spinners.d.ts +8 -0
  191. package/dist/components/spinners.js +33 -0
  192. package/dist/components/spinners.module.js +8 -0
  193. package/dist/components/status_indicator.d.ts +36 -0
  194. package/dist/components/status_indicator.js +182 -0
  195. package/dist/components/status_indicator.module.js +3 -0
  196. package/dist/components/symbol_icon.d.ts +65 -0
  197. package/dist/components/symbol_icon.js +213 -0
  198. package/dist/components/tab_header.d.ts +11 -0
  199. package/dist/components/tab_header.js +55 -0
  200. package/dist/components/tab_header.module.js +7 -0
  201. package/dist/components/tag.d.ts +10 -0
  202. package/dist/components/tag.js +17 -0
  203. package/dist/components/tag.module.js +4 -0
  204. package/dist/components/text_field.d.ts +44 -0
  205. package/dist/components/text_field.js +159 -0
  206. package/dist/components/text_field.module.js +15 -0
  207. package/dist/components/text_input.d.ts +25 -0
  208. package/dist/components/text_input.js +90 -0
  209. package/dist/components/text_input.module.js +13 -0
  210. package/dist/components/text_input_action.d.ts +19 -0
  211. package/dist/components/text_input_action.js +33 -0
  212. package/dist/components/text_input_action.module.js +2 -0
  213. package/dist/components/toggle_switch.d.ts +7 -0
  214. package/dist/components/toggle_switch.js +22 -0
  215. package/dist/components/toggle_switch.module.js +6 -0
  216. package/dist/components/tooltip.d.ts +22 -0
  217. package/dist/components/tooltip.js +139 -0
  218. package/dist/components/tooltip.module.js +2 -0
  219. package/dist/components/tree_entry.d.ts +17 -0
  220. package/dist/components/tree_entry.js +48 -0
  221. package/dist/components/tree_entry.module.js +9 -0
  222. package/dist/components/value_list.d.ts +17 -0
  223. package/dist/components/value_list.js +70 -0
  224. package/dist/components/value_list.module.js +8 -0
  225. package/dist/components/vegalite_chart.d.ts +18 -0
  226. package/dist/components/vegalite_chart.js +151 -0
  227. package/dist/components/vegalite_chart.module.js +3 -0
  228. package/dist/components/vegalite_view.d.ts +27 -0
  229. package/dist/components/vegalite_view.js +248 -0
  230. package/dist/components/vegalite_view.module.js +5 -0
  231. package/dist/components/vertical_scroll_shadows.d.ts +14 -0
  232. package/dist/components/vertical_scroll_shadows.js +55 -0
  233. package/dist/components/vertical_scroll_shadows.module.js +5 -0
  234. package/dist/components/vertical_split.d.ts +15 -0
  235. package/dist/components/vertical_split.js +112 -0
  236. package/dist/components/vertical_split.module.js +5 -0
  237. package/dist/components/vertical_tabs.d.ts +36 -0
  238. package/dist/components/vertical_tabs.js +169 -0
  239. package/dist/components/vertical_tabs.module.js +23 -0
  240. package/dist/components/visualization/capped_rows.d.ts +9 -0
  241. package/dist/components/visualization/capped_rows.js +23 -0
  242. package/dist/components/visualization/capped_rows.module.js +3 -0
  243. package/dist/components/visualization/chart_download_button.d.ts +12 -0
  244. package/dist/components/visualization/chart_download_button.js +41 -0
  245. package/dist/components/visualization/kpi_view.d.ts +10 -0
  246. package/dist/components/visualization/kpi_view.js +215 -0
  247. package/dist/components/visualization/kpi_view.module.js +17 -0
  248. package/dist/components/visualization/markdown_view.d.ts +17 -0
  249. package/dist/components/visualization/markdown_view.js +154 -0
  250. package/dist/components/visualization/markdown_view.module.js +4 -0
  251. package/dist/components/visualization/result_rows.d.ts +17 -0
  252. package/dist/components/visualization/result_rows.js +82 -0
  253. package/dist/components/visualization/vegalite_preview.d.ts +8 -0
  254. package/dist/components/visualization/vegalite_preview.js +17 -0
  255. package/dist/components/visualization/vegalite_preview.module.js +2 -0
  256. package/dist/components/visualization/visualization_dispatch.d.ts +14 -0
  257. package/dist/components/visualization/visualization_dispatch.js +41 -0
  258. package/dist/components/visualization/visualization_panel.d.ts +10 -0
  259. package/dist/components/visualization/visualization_panel.js +37 -0
  260. package/dist/components/visualization/visualization_panel.module.js +3 -0
  261. package/dist/dom/anchored_position.d.ts +42 -0
  262. package/dist/dom/anchored_position.js +255 -0
  263. package/dist/dom/app_host.d.ts +6 -0
  264. package/dist/dom/app_host.js +13 -0
  265. package/dist/dom/calm_frames.d.ts +24 -0
  266. package/dist/dom/calm_frames.js +96 -0
  267. package/dist/dom/classnames.d.ts +8 -0
  268. package/dist/dom/classnames.js +20 -0
  269. package/dist/dom/download_file.d.ts +1 -0
  270. package/dist/dom/download_file.js +12 -0
  271. package/dist/dom/focus.d.ts +29 -0
  272. package/dist/dom/focus.js +84 -0
  273. package/dist/dom/graph_edges.d.ts +53 -0
  274. package/dist/dom/graph_edges.js +450 -0
  275. package/dist/dom/key_events.d.ts +9 -0
  276. package/dist/dom/key_events.js +33 -0
  277. package/dist/dom/media_query.d.ts +2 -0
  278. package/dist/dom/media_query.js +15 -0
  279. package/dist/dom/outside_click.d.ts +8 -0
  280. package/dist/dom/outside_click.js +32 -0
  281. package/dist/dom/rerender_ref.d.ts +2 -0
  282. package/dist/dom/rerender_ref.js +11 -0
  283. package/dist/dom/row_context_menu.d.ts +7 -0
  284. package/dist/dom/row_context_menu.js +32 -0
  285. package/dist/dom/scrollbar.d.ts +3 -0
  286. package/dist/dom/scrollbar.js +23 -0
  287. package/dist/format/format.d.ts +11 -0
  288. package/dist/format/format.js +72 -0
  289. package/dist/format/query_progress_format.d.ts +17 -0
  290. package/dist/format/query_progress_format.js +69 -0
  291. package/dist/format/time_format.d.ts +5 -0
  292. package/dist/format/time_format.js +45 -0
  293. package/dist/hooks.d.ts +71 -0
  294. package/dist/hooks.js +302 -0
  295. package/dist/host.d.ts +10 -0
  296. package/dist/host.js +12 -0
  297. package/dist/logger.d.ts +4 -0
  298. package/dist/logger.js +6 -0
  299. package/dist/models/computation_model.d.ts +14 -0
  300. package/dist/models/computation_model.js +27 -0
  301. package/dist/models/query_model.d.ts +12 -0
  302. package/dist/models/query_model.js +27 -0
  303. package/dist/models/script_model.d.ts +17 -0
  304. package/dist/models/script_model.js +69 -0
  305. package/dist/style.css +4226 -0
  306. package/dist/svg_symbols.d.ts +2 -0
  307. package/dist/svg_symbols.js +2 -0
  308. package/dist/symbols.svg +1197 -0
  309. package/dist/theme/color_scheme.d.ts +4 -0
  310. package/dist/theme/color_scheme.js +28 -0
  311. package/dist/theme/xcode_palette.d.ts +22 -0
  312. package/dist/theme/xcode_palette.js +4 -0
  313. package/dist/theme/xcode_palettes.js +41 -0
  314. package/dist/utils/plan_engine.d.ts +2 -0
  315. package/dist/utils/plan_engine.js +13 -0
  316. package/dist/vegalite/vegalite_check.d.ts +1 -0
  317. package/dist/vegalite/vegalite_check.js +7 -0
  318. package/dist/vegalite/vegalite_crossfilter.d.ts +54 -0
  319. package/dist/vegalite/vegalite_crossfilter.js +187 -0
  320. package/dist/vegalite/vegalite_image.d.ts +16 -0
  321. package/dist/vegalite/vegalite_image.js +28 -0
  322. package/dist/vegalite/vegalite_loader.d.ts +7 -0
  323. package/dist/vegalite/vegalite_loader.js +15 -0
  324. package/dist/vegalite/vegalite_rows.d.ts +3 -0
  325. package/dist/vegalite/vegalite_rows.js +17 -0
  326. package/dist/vegalite/vegalite_theme.d.ts +11 -0
  327. package/dist/vegalite/vegalite_theme.js +125 -0
  328. package/fonts/InstrumentSans-Bold.ttf +0 -0
  329. package/fonts/InstrumentSans-Medium.ttf +0 -0
  330. package/fonts/InstrumentSans-OFL.txt +93 -0
  331. package/fonts/InstrumentSans-Regular.ttf +0 -0
  332. package/fonts/InstrumentSans-SemiBold.ttf +0 -0
  333. package/fonts/JetBrainsMono-Bold.ttf +0 -0
  334. package/fonts/JetBrainsMono-Medium.ttf +0 -0
  335. package/fonts/JetBrainsMono-OFL.txt +93 -0
  336. package/fonts/JetBrainsMono-Regular.ttf +0 -0
  337. package/fonts/JetBrainsMono-SemiBold.ttf +0 -0
  338. package/fonts/fonts.css +61 -0
  339. package/package.json +43 -4
  340. package/styles/colors.css +110 -0
  341. package/styles/flavors/dbcom.css +48 -0
  342. package/styles/tokens.css +192 -0
@@ -0,0 +1,55 @@
1
+ import { tab_header, tab_header_actions, tab_header_clickable_inner, tab_header_title } from "./tab_header.module.js";
2
+ import { ButtonSize, ButtonVariant, IconButton } from "./button.js";
3
+ import { ScreenFullIcon } from "./symbol_icon.js";
4
+ import { classNames } from "../dom/classnames.js";
5
+ import "react";
6
+ import { jsx, jsxs } from "react/jsx-runtime";
7
+ var TabHeader = ({ title, detail, onClick, detailIsLink, actions }) => {
8
+ if (onClick != null) return /* @__PURE__ */ jsxs("div", {
9
+ className: tab_header,
10
+ children: [/* @__PURE__ */ jsxs("button", {
11
+ type: "button",
12
+ className: tab_header_clickable_inner,
13
+ onClick,
14
+ children: [/* @__PURE__ */ jsx("span", {
15
+ className: tab_header_title,
16
+ children: title
17
+ }), detail && /* @__PURE__ */ jsx("span", {
18
+ className: classNames("dashql_tab_header_detail_C_oOeH", { ["dashql_tab_header_detail_link_iEZ2zC"]: detailIsLink }),
19
+ children: detail
20
+ })]
21
+ }), /* @__PURE__ */ jsxs("div", {
22
+ className: tab_header_actions,
23
+ children: [actions, /* @__PURE__ */ jsx(IconButton, {
24
+ variant: ButtonVariant.Invisible,
25
+ size: ButtonSize.Small,
26
+ "aria-label": `Expand ${title}`,
27
+ "data-testid": "tab-header-expand",
28
+ onClick,
29
+ children: /* @__PURE__ */ jsx(ScreenFullIcon, { size: 16 })
30
+ })]
31
+ })]
32
+ });
33
+ return /* @__PURE__ */ jsxs("div", {
34
+ className: tab_header,
35
+ children: [
36
+ /* @__PURE__ */ jsx("span", {
37
+ className: tab_header_title,
38
+ children: title
39
+ }),
40
+ detail && /* @__PURE__ */ jsx("span", {
41
+ className: "dashql_tab_header_detail_C_oOeH",
42
+ children: detail
43
+ }),
44
+ actions && /* @__PURE__ */ jsx("div", {
45
+ className: "dashql_tab_header_actions_FU0Yz5",
46
+ children: actions
47
+ })
48
+ ]
49
+ });
50
+ };
51
+ function formatRowCountDetail(totalRows) {
52
+ if (totalRows == null) return null;
53
+ return `${totalRows} ${totalRows === 1 ? "row" : "rows"}`;
54
+ }
55
+ export { TabHeader, formatRowCountDetail };
@@ -0,0 +1,7 @@
1
+ var tab_header = "dashql_tab_header_XAtmRQ";
2
+ var tab_header_clickable_inner = "dashql_tab_header_clickable_inner_r9AoER";
3
+ var tab_header_title = "dashql_tab_header_title_Awg1O_";
4
+ var tab_header_detail = "dashql_tab_header_detail_C_oOeH";
5
+ var tab_header_detail_link = "dashql_tab_header_detail_link_iEZ2zC";
6
+ var tab_header_actions = "dashql_tab_header_actions_FU0Yz5";
7
+ export { tab_header, tab_header_actions, tab_header_clickable_inner, tab_header_detail, tab_header_detail_link, tab_header_title };
@@ -0,0 +1,10 @@
1
+ import * as React from 'react';
2
+ export declare enum TagVariant {
3
+ Muted = 0,
4
+ Outline = 1
5
+ }
6
+ interface TagProps extends React.HTMLAttributes<HTMLSpanElement> {
7
+ variant?: TagVariant;
8
+ }
9
+ export declare function Tag(props: TagProps): React.ReactElement;
10
+ export {};
@@ -0,0 +1,17 @@
1
+ import { muted, outline, tag } from "./tag.module.js";
2
+ import { classNames } from "../dom/classnames.js";
3
+ import "react";
4
+ import { jsx } from "react/jsx-runtime";
5
+ var TagVariant = /* @__PURE__ */ function(TagVariant) {
6
+ TagVariant[TagVariant["Muted"] = 0] = "Muted";
7
+ TagVariant[TagVariant["Outline"] = 1] = "Outline";
8
+ return TagVariant;
9
+ }({});
10
+ function Tag(props) {
11
+ const { variant = TagVariant.Muted, className, ...rest } = props;
12
+ return /* @__PURE__ */ jsx("span", {
13
+ ...rest,
14
+ className: classNames(tag, variant === TagVariant.Outline ? outline : muted, className)
15
+ });
16
+ }
17
+ export { Tag, TagVariant };
@@ -0,0 +1,4 @@
1
+ var tag = "dashql_tag_zTZR_F";
2
+ var muted = "dashql_muted_hjHBWb";
3
+ var outline = "dashql_outline_cvW6Ju";
4
+ export { muted, outline, tag };
@@ -0,0 +1,44 @@
1
+ import * as React from 'react';
2
+ import { VariantKind } from '@akohn/dashql/platform/utils/variant';
3
+ export declare const VALIDATION_UNKNOWN: unique symbol;
4
+ export declare const VALIDATION_OK: unique symbol;
5
+ export declare const VALIDATION_WARNING: unique symbol;
6
+ export declare const VALIDATION_ERROR: unique symbol;
7
+ export type TextFieldValidationStatus = VariantKind<typeof VALIDATION_UNKNOWN, null> | VariantKind<typeof VALIDATION_OK, null> | VariantKind<typeof VALIDATION_WARNING, string> | VariantKind<typeof VALIDATION_ERROR, string>;
8
+ export declare function TextField(props: {
9
+ inputRef?: React.Ref<HTMLInputElement>;
10
+ className?: string;
11
+ name?: string;
12
+ caption?: string;
13
+ value: string;
14
+ placeholder?: string;
15
+ leadingVisual?: React.ElementType;
16
+ onChange?: React.ChangeEventHandler<HTMLInputElement>;
17
+ disabled?: boolean;
18
+ concealed?: boolean;
19
+ readOnly?: boolean;
20
+ validation?: TextFieldValidationStatus;
21
+ logContext: string;
22
+ autoComplete?: boolean;
23
+ style?: React.CSSProperties;
24
+ 'data-testid'?: string;
25
+ }): React.JSX.Element;
26
+ export declare function KeyValueTextField(props: {
27
+ className?: string;
28
+ name: string;
29
+ caption?: string;
30
+ k: string;
31
+ v: string;
32
+ keyPlaceholder: string;
33
+ valuePlaceholder: string;
34
+ keyIcon?: React.ElementType;
35
+ valueIcon?: React.ElementType;
36
+ onChangeKey?: React.ChangeEventHandler<HTMLInputElement>;
37
+ onChangeValue?: React.ChangeEventHandler<HTMLInputElement>;
38
+ disabled?: boolean;
39
+ readOnly?: boolean;
40
+ validation?: TextFieldValidationStatus;
41
+ keyAriaLabel: string;
42
+ valueAriaLabel: string;
43
+ logContext: string;
44
+ }): React.JSX.Element;
@@ -0,0 +1,159 @@
1
+ import { classNames } from "../dom/classnames.js";
2
+ import { TextInput, TextInputValidationStatus } from "./text_input.js";
3
+ import { CopyToClipboardAction } from "./text_input_action.js";
4
+ import { kv_field, kv_field_input_key, kv_field_input_value, kv_field_name, text_field, text_field_disabled, text_field_input, text_field_validation_error, text_field_validation_icon, text_field_validation_text, text_field_validation_warning } from "./text_field.module.js";
5
+ import * as React from "react";
6
+ import { jsx, jsxs } from "react/jsx-runtime";
7
+ import symbols from "../svg_symbols.js";
8
+ var VALIDATION_UNKNOWN = Symbol("VALIDATION_UNKNOWN");
9
+ var VALIDATION_OK = Symbol("VALIDATION_OK");
10
+ var VALIDATION_WARNING = Symbol("VALIDATION_WARNING");
11
+ var VALIDATION_ERROR = Symbol("VALIDATION_ERROR");
12
+ function TextFieldValidation(props) {
13
+ if (!props.validation) return;
14
+ switch (props.validation.type) {
15
+ case VALIDATION_OK:
16
+ case VALIDATION_UNKNOWN: return;
17
+ case VALIDATION_WARNING: return /* @__PURE__ */ jsxs("div", {
18
+ id: props.id,
19
+ className: text_field_validation_warning,
20
+ children: [/* @__PURE__ */ jsx("svg", {
21
+ className: text_field_validation_icon,
22
+ width: "12px",
23
+ height: "12px",
24
+ children: /* @__PURE__ */ jsx("use", { xlinkHref: `${symbols}#alert_fill_12` })
25
+ }), /* @__PURE__ */ jsx("span", {
26
+ className: text_field_validation_text,
27
+ children: props.validation.value
28
+ })]
29
+ });
30
+ case VALIDATION_ERROR: return /* @__PURE__ */ jsxs("div", {
31
+ id: props.id,
32
+ className: text_field_validation_error,
33
+ children: [/* @__PURE__ */ jsx("svg", {
34
+ className: text_field_validation_icon,
35
+ width: "12px",
36
+ height: "12px",
37
+ children: /* @__PURE__ */ jsx("use", { xlinkHref: `${symbols}#alert_fill_12` })
38
+ }), /* @__PURE__ */ jsx("span", {
39
+ className: text_field_validation_text,
40
+ children: props.validation.value
41
+ })]
42
+ });
43
+ }
44
+ }
45
+ function TextField(props) {
46
+ const validationId = React.useId();
47
+ let validationStatus = void 0;
48
+ if (props.validation?.type === VALIDATION_OK) validationStatus = TextInputValidationStatus.Success;
49
+ else if (props.validation?.type === VALIDATION_WARNING) validationStatus = TextInputValidationStatus.Warning;
50
+ else if (props.validation?.type === VALIDATION_ERROR) validationStatus = TextInputValidationStatus.Error;
51
+ const hasValidationMessage = props.validation?.type === VALIDATION_WARNING || props.validation?.type === VALIDATION_ERROR;
52
+ return /* @__PURE__ */ jsxs("div", {
53
+ className: classNames(text_field, props.className),
54
+ style: props.style,
55
+ children: [
56
+ props.name && /* @__PURE__ */ jsx("div", {
57
+ className: "dashql_text_field_name_MaNO9y",
58
+ children: props.name
59
+ }),
60
+ props.caption && /* @__PURE__ */ jsx("div", {
61
+ className: "dashql_text_field_caption_XZurkE",
62
+ children: props.caption
63
+ }),
64
+ /* @__PURE__ */ jsx(TextInput, {
65
+ ref: props.inputRef,
66
+ className: classNames(text_field_input, { [text_field_disabled]: props.disabled }),
67
+ block: true,
68
+ placeholder: props.placeholder,
69
+ leadingVisual: props.leadingVisual,
70
+ trailingAction: /* @__PURE__ */ jsx(CopyToClipboardAction, {
71
+ value: props.value,
72
+ logContext: props.logContext,
73
+ ariaLabel: `Copy ${props.name}`
74
+ }),
75
+ type: props.concealed ? "password" : void 0,
76
+ value: props.value,
77
+ onChange: props.onChange,
78
+ disabled: props.disabled,
79
+ readOnly: props.readOnly,
80
+ "aria-label": props.name,
81
+ "aria-invalid": validationStatus === TextInputValidationStatus.Error,
82
+ "aria-describedby": hasValidationMessage ? validationId : void 0,
83
+ autoComplete: props.autoComplete,
84
+ validationStatus,
85
+ "data-testid": props["data-testid"]
86
+ }),
87
+ /* @__PURE__ */ jsx(TextFieldValidation, {
88
+ id: validationId,
89
+ validation: props.validation
90
+ })
91
+ ]
92
+ });
93
+ }
94
+ function KeyValueTextField(props) {
95
+ const validationId = React.useId();
96
+ let validationStatus = void 0;
97
+ if (props.validation?.type === VALIDATION_OK) validationStatus = TextInputValidationStatus.Success;
98
+ else if (props.validation?.type === VALIDATION_WARNING) validationStatus = TextInputValidationStatus.Warning;
99
+ else if (props.validation?.type === VALIDATION_ERROR) validationStatus = TextInputValidationStatus.Error;
100
+ const hasValidationMessage = props.validation?.type === VALIDATION_WARNING || props.validation?.type === VALIDATION_ERROR;
101
+ return /* @__PURE__ */ jsxs("div", {
102
+ className: classNames(kv_field, props.className),
103
+ children: [
104
+ /* @__PURE__ */ jsx("div", {
105
+ className: kv_field_name,
106
+ children: props.name
107
+ }),
108
+ props.caption && /* @__PURE__ */ jsx("div", {
109
+ className: "dashql_kv_field_caption_fVHV-q",
110
+ children: props.caption
111
+ }),
112
+ /* @__PURE__ */ jsx(TextInput, {
113
+ className: kv_field_input_key,
114
+ block: true,
115
+ value: props.k,
116
+ placeholder: props.keyPlaceholder,
117
+ leadingVisual: props.keyIcon,
118
+ trailingAction: /* @__PURE__ */ jsx(CopyToClipboardAction, {
119
+ value: props.k,
120
+ logContext: props.logContext,
121
+ ariaLabel: `Copy ${props.keyAriaLabel}`
122
+ }),
123
+ onChange: props.onChangeKey,
124
+ readOnly: props.readOnly,
125
+ disabled: props.disabled,
126
+ "aria-label": props.keyAriaLabel,
127
+ "aria-invalid": validationStatus === TextInputValidationStatus.Error,
128
+ "aria-describedby": hasValidationMessage ? validationId : void 0,
129
+ validationStatus
130
+ }),
131
+ /* @__PURE__ */ jsx("div", {
132
+ className: kv_field_input_value,
133
+ children: /* @__PURE__ */ jsx(TextInput, {
134
+ block: true,
135
+ value: props.v,
136
+ placeholder: props.valuePlaceholder,
137
+ leadingVisual: props.valueIcon,
138
+ trailingAction: /* @__PURE__ */ jsx(CopyToClipboardAction, {
139
+ value: props.v,
140
+ logContext: props.logContext,
141
+ ariaLabel: `Copy ${props.valueAriaLabel}`
142
+ }),
143
+ onChange: props.onChangeValue,
144
+ readOnly: props.readOnly,
145
+ disabled: props.disabled,
146
+ "aria-label": props.valueAriaLabel,
147
+ "aria-invalid": validationStatus === TextInputValidationStatus.Error,
148
+ "aria-describedby": hasValidationMessage ? validationId : void 0,
149
+ validationStatus
150
+ })
151
+ }),
152
+ /* @__PURE__ */ jsx(TextFieldValidation, {
153
+ id: validationId,
154
+ validation: props.validation
155
+ })
156
+ ]
157
+ });
158
+ }
159
+ export { KeyValueTextField, TextField, VALIDATION_ERROR, VALIDATION_OK, VALIDATION_UNKNOWN, VALIDATION_WARNING };
@@ -0,0 +1,15 @@
1
+ var text_field = "dashql_text_field_IgD6_m";
2
+ var text_field_name = "dashql_text_field_name_MaNO9y";
3
+ var text_field_caption = "dashql_text_field_caption_XZurkE";
4
+ var text_field_input = "dashql_text_field_input_-rjf1L";
5
+ var text_field_disabled = "dashql_text_field_disabled_IkLyP7";
6
+ var text_field_validation_error = "dashql_text_field_validation_error_FpLiZx";
7
+ var text_field_validation_warning = "dashql_text_field_validation_warning_srW5v5";
8
+ var text_field_validation_icon = "dashql_text_field_validation_icon_bUkjIH";
9
+ var text_field_validation_text = "dashql_text_field_validation_text_pvqh0T";
10
+ var kv_field = "dashql_kv_field_LyneUR";
11
+ var kv_field_name = "dashql_kv_field_name_JKsuua";
12
+ var kv_field_caption = "dashql_kv_field_caption_fVHV-q";
13
+ var kv_field_input_key = "dashql_kv_field_input_key_Kz3ySO";
14
+ var kv_field_input_value = "dashql_kv_field_input_value_K_bfaN";
15
+ export { kv_field, kv_field_caption, kv_field_input_key, kv_field_input_value, kv_field_name, text_field, text_field_caption, text_field_disabled, text_field_input, text_field_name, text_field_validation_error, text_field_validation_icon, text_field_validation_text, text_field_validation_warning };
@@ -0,0 +1,25 @@
1
+ import * as React from 'react';
2
+ export declare enum TextInputValidationStatus {
3
+ Success = 1,
4
+ Warning = 2,
5
+ Error = 3
6
+ }
7
+ interface TextInputFrameProps {
8
+ className?: string;
9
+ leadingVisual?: React.ElementType;
10
+ leadingAction?: React.ReactElement<React.HTMLProps<HTMLButtonElement>>;
11
+ trailingVisual?: React.ElementType;
12
+ trailingAction?: React.ReactElement<React.HTMLProps<HTMLButtonElement>>;
13
+ block?: boolean;
14
+ validationStatus?: TextInputValidationStatus;
15
+ disabled?: boolean;
16
+ }
17
+ interface TextInputProps extends TextInputFrameProps, Omit<React.InputHTMLAttributes<HTMLInputElement>, 'className' | 'size' | 'autoComplete'> {
18
+ autoComplete?: boolean | string;
19
+ }
20
+ export declare const TextInput: React.ForwardRefExoticComponent<TextInputProps & React.RefAttributes<HTMLInputElement>>;
21
+ interface TextAreaProps extends TextInputFrameProps, Omit<React.TextareaHTMLAttributes<HTMLTextAreaElement>, 'className' | 'autoComplete'> {
22
+ autoComplete?: boolean | string;
23
+ }
24
+ export declare const TextArea: React.ForwardRefExoticComponent<TextAreaProps & React.RefAttributes<HTMLTextAreaElement>>;
25
+ export {};
@@ -0,0 +1,90 @@
1
+ import { input_container, root, root_block, root_disabled, root_multiline, root_validation_error, root_validation_success, root_validation_warning } from "./text_input.module.js";
2
+ import { classNames } from "../dom/classnames.js";
3
+ import * as React from "react";
4
+ import { jsx, jsxs } from "react/jsx-runtime";
5
+ var TextInputValidationStatus = /* @__PURE__ */ function(TextInputValidationStatus) {
6
+ TextInputValidationStatus[TextInputValidationStatus["Success"] = 1] = "Success";
7
+ TextInputValidationStatus[TextInputValidationStatus["Warning"] = 2] = "Warning";
8
+ TextInputValidationStatus[TextInputValidationStatus["Error"] = 3] = "Error";
9
+ return TextInputValidationStatus;
10
+ }({});
11
+ function TextInputFrame(props) {
12
+ const { leadingVisual: LeadingVisual, trailingVisual: TrailingVisual } = props;
13
+ return /* @__PURE__ */ jsxs("span", {
14
+ className: classNames(root, props.className, {
15
+ [root_disabled]: props.disabled,
16
+ [root_block]: props.block,
17
+ [root_multiline]: props.multiline,
18
+ [root_validation_success]: props.validationStatus == TextInputValidationStatus.Success,
19
+ [root_validation_warning]: props.validationStatus == TextInputValidationStatus.Warning,
20
+ [root_validation_error]: props.validationStatus == TextInputValidationStatus.Error
21
+ }),
22
+ children: [
23
+ props.leadingAction && /* @__PURE__ */ jsx("span", {
24
+ className: "dashql_leading_action_container_EtRoKa",
25
+ children: props.leadingAction
26
+ }),
27
+ LeadingVisual && /* @__PURE__ */ jsx("span", {
28
+ className: "dashql_leading_visual_container_VzfDSp",
29
+ children: /* @__PURE__ */ jsx(LeadingVisual, {})
30
+ }),
31
+ props.children,
32
+ TrailingVisual && /* @__PURE__ */ jsx("span", {
33
+ className: "dashql_trailing_visual_container_B2_ClV",
34
+ children: /* @__PURE__ */ jsx(TrailingVisual, {})
35
+ }),
36
+ props.trailingAction && /* @__PURE__ */ jsx("span", {
37
+ className: "dashql_trailing_action_container_iWw-aX",
38
+ children: props.trailingAction
39
+ })
40
+ ]
41
+ });
42
+ }
43
+ var TextInput = React.forwardRef((props, ref) => {
44
+ const { autoComplete, block, className, disabled, leadingVisual, leadingAction, trailingAction, trailingVisual, validationStatus, ...inputProps } = props;
45
+ return /* @__PURE__ */ jsx(TextInputFrame, {
46
+ block,
47
+ className,
48
+ disabled,
49
+ leadingVisual,
50
+ leadingAction,
51
+ trailingAction,
52
+ trailingVisual,
53
+ validationStatus,
54
+ children: /* @__PURE__ */ jsx("input", {
55
+ ...inputProps,
56
+ ref,
57
+ className: input_container,
58
+ disabled,
59
+ autoComplete: typeof autoComplete === "string" ? autoComplete : autoComplete ? "on" : "off",
60
+ autoCorrect: "off",
61
+ autoCapitalize: "off"
62
+ })
63
+ });
64
+ });
65
+ var TextArea = React.forwardRef((props, ref) => {
66
+ const { autoComplete, block, className, disabled, leadingVisual, leadingAction, trailingAction, trailingVisual, validationStatus, ...textAreaProps } = props;
67
+ return /* @__PURE__ */ jsx(TextInputFrame, {
68
+ multiline: true,
69
+ block,
70
+ className,
71
+ disabled,
72
+ leadingVisual,
73
+ leadingAction,
74
+ trailingAction,
75
+ trailingVisual,
76
+ validationStatus,
77
+ children: /* @__PURE__ */ jsx("textarea", {
78
+ wrap: "off",
79
+ ...textAreaProps,
80
+ ref,
81
+ className: input_container,
82
+ disabled,
83
+ autoComplete: typeof autoComplete === "string" ? autoComplete : autoComplete ? "on" : "off",
84
+ autoCorrect: "off",
85
+ autoCapitalize: "off",
86
+ spellCheck: false
87
+ })
88
+ });
89
+ });
90
+ export { TextArea, TextInput, TextInputValidationStatus };
@@ -0,0 +1,13 @@
1
+ var root = "dashql_root_uPlRMM";
2
+ var root_disabled = "dashql_root_disabled_XC90tf";
3
+ var root_validation_success = "dashql_root_validation_success_iRnoHf";
4
+ var root_validation_warning = "dashql_root_validation_warning_Ou5Txc";
5
+ var root_validation_error = "dashql_root_validation_error_WE9CnK";
6
+ var root_block = "dashql_root_block_CVzQcE";
7
+ var leading_visual_container = "dashql_leading_visual_container_VzfDSp";
8
+ var input_container = "dashql_input_container_uHNd8W";
9
+ var root_multiline = "dashql_root_multiline_1sgG4z";
10
+ var trailing_visual_container = "dashql_trailing_visual_container_B2_ClV";
11
+ var leading_action_container = "dashql_leading_action_container_EtRoKa";
12
+ var trailing_action_container = "dashql_trailing_action_container_iWw-aX";
13
+ export { input_container, leading_action_container, leading_visual_container, root, root_block, root_disabled, root_multiline, root_validation_error, root_validation_success, root_validation_warning, trailing_action_container, trailing_visual_container };
@@ -0,0 +1,19 @@
1
+ import * as React from 'react';
2
+ interface TextInputActionProps {
3
+ children?: React.ReactElement;
4
+ ['aria-label']: string;
5
+ ['aria-labelledby']: string;
6
+ tooltipDirection?: 'n' | 'ne' | 'e' | 'se' | 's' | 'sw' | 'w' | 'nw';
7
+ ['data-testid']?: string;
8
+ }
9
+ type Props = TextInputActionProps & React.ButtonHTMLAttributes<HTMLButtonElement>;
10
+ export declare function TextInputAction(props: Props): React.JSX.Element;
11
+ interface CopyToClipboardActionProps {
12
+ value: string;
13
+ timeoutMs?: number;
14
+ logContext: string;
15
+ ariaLabel: string;
16
+ testId?: string;
17
+ }
18
+ export declare function CopyToClipboardAction(props: CopyToClipboardActionProps): React.ReactElement;
19
+ export {};
@@ -0,0 +1,33 @@
1
+ import { input_action } from "./text_input_action.module.js";
2
+ import { CopyToClipboardButton } from "./clipboard.js";
3
+ import { ButtonSize, ButtonVariant, IconButton } from "./button.js";
4
+ import "react";
5
+ import { jsx } from "react/jsx-runtime";
6
+ function TextInputAction(props) {
7
+ const ariaLabel = props["aria-label"];
8
+ const ariaLabelledBy = props["aria-labelledby"];
9
+ return /* @__PURE__ */ jsx(IconButton, {
10
+ className: input_action,
11
+ variant: ButtonVariant.Invisible,
12
+ size: ButtonSize.Small,
13
+ "aria-labelledby": ariaLabelledBy,
14
+ "aria-label": ariaLabel,
15
+ "data-testid": props["data-testid"],
16
+ onClick: props.onClick,
17
+ children: props.children
18
+ });
19
+ }
20
+ function CopyToClipboardAction(props) {
21
+ return /* @__PURE__ */ jsx(CopyToClipboardButton, {
22
+ className: input_action,
23
+ "aria-label": props.ariaLabel,
24
+ "aria-labelledby": "",
25
+ timeoutMs: props.timeoutMs,
26
+ logContext: props.logContext,
27
+ value: props.value,
28
+ variant: ButtonVariant.Invisible,
29
+ size: ButtonSize.Small,
30
+ "data-testid": props.testId
31
+ });
32
+ }
33
+ export { CopyToClipboardAction, TextInputAction };
@@ -0,0 +1,2 @@
1
+ var input_action = "dashql_input_action_G9kmFY";
2
+ export { input_action };
@@ -0,0 +1,7 @@
1
+ import * as React from 'react';
2
+ interface ToggleSwitchProps extends Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, 'onChange'> {
3
+ checked: boolean;
4
+ size?: 'small' | 'medium';
5
+ }
6
+ export declare const ToggleSwitch: React.ForwardRefExoticComponent<ToggleSwitchProps & React.RefAttributes<HTMLButtonElement>>;
7
+ export {};
@@ -0,0 +1,22 @@
1
+ import { checked, disabled, handle, root, small } from "./toggle_switch.module.js";
2
+ import { classNames } from "../dom/classnames.js";
3
+ import * as React from "react";
4
+ import { jsx } from "react/jsx-runtime";
5
+ var ToggleSwitch = React.forwardRef((props, ref) => {
6
+ const { checked: checked$1, className, disabled: disabled$1, size = "medium", type, ...rest } = props;
7
+ return /* @__PURE__ */ jsx("button", {
8
+ ...rest,
9
+ ref,
10
+ type: type ?? "button",
11
+ role: "switch",
12
+ "aria-checked": checked$1,
13
+ disabled: disabled$1,
14
+ className: classNames(root, {
15
+ [checked]: checked$1,
16
+ [disabled]: disabled$1,
17
+ [small]: size === "small"
18
+ }, className),
19
+ children: /* @__PURE__ */ jsx("span", { className: handle })
20
+ });
21
+ });
22
+ export { ToggleSwitch };
@@ -0,0 +1,6 @@
1
+ var root = "dashql_root_OnecZm";
2
+ var small = "dashql_small_VcnWof";
3
+ var checked = "dashql_checked_P_Bi9A";
4
+ var disabled = "dashql_disabled_N54qas";
5
+ var handle = "dashql_handle_MlpqlO";
6
+ export { checked, disabled, handle, root, small };
@@ -0,0 +1,22 @@
1
+ import * as React from 'react';
2
+ export type TriggerPropsType = {
3
+ 'aria-describedby'?: string;
4
+ 'aria-labelledby'?: string;
5
+ 'aria-label'?: string;
6
+ onBlur?: React.FocusEventHandler;
7
+ onFocus?: React.FocusEventHandler;
8
+ onMouseEnter?: React.MouseEventHandler;
9
+ onMouseLeave?: React.MouseEventHandler;
10
+ ref?: React.Ref<HTMLElement | null>;
11
+ };
12
+ export type TooltipDirection = 'nw' | 'n' | 'ne' | 'e' | 'se' | 's' | 'sw' | 'w';
13
+ export interface TooltipProps {
14
+ direction?: TooltipDirection;
15
+ text: string;
16
+ type?: 'label' | 'description';
17
+ children?: React.ReactElement<TriggerPropsType | null>;
18
+ }
19
+ export declare const TooltipContext: React.Context<{
20
+ tooltipId?: string;
21
+ }>;
22
+ export declare function Tooltip(props: TooltipProps): React.ReactElement;