@carto/ps-react-ui 4.4.0-chat-ui.6 → 4.4.0-chat-ui.7
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.
- package/dist/category-DwaeYjpX.js +656 -0
- package/dist/category-DwaeYjpX.js.map +1 -0
- package/dist/change-column-Cidl_M-4.js +1110 -0
- package/dist/change-column-Cidl_M-4.js.map +1 -0
- package/dist/chat.js +621 -672
- package/dist/chat.js.map +1 -1
- package/dist/components.js.map +1 -1
- package/dist/data-zoom-layout-DVYB8mIx.js +29 -0
- package/dist/data-zoom-layout-DVYB8mIx.js.map +1 -0
- package/dist/download-config-C7hf33ip.js +58 -0
- package/dist/download-config-C7hf33ip.js.map +1 -0
- package/dist/echart-CU0KmClP.js +176 -0
- package/dist/echart-CU0KmClP.js.map +1 -0
- package/dist/exports-Cr43OCul.js.map +1 -1
- package/dist/exports-Cx-f6m6U.js +63 -0
- package/dist/exports-Cx-f6m6U.js.map +1 -0
- package/dist/formatter-B9Bxn1k7.js +6 -0
- package/dist/formatter-B9Bxn1k7.js.map +1 -0
- package/dist/formula-DuC0NQLH.js +79 -0
- package/dist/formula-DuC0NQLH.js.map +1 -0
- package/dist/lasso-tool-BYbxrJ-7.js.map +1 -1
- package/dist/markdown-BD1jcknS.js +8326 -0
- package/dist/markdown-BD1jcknS.js.map +1 -0
- package/dist/option-builders-F-c9ELi1.js +122 -0
- package/dist/option-builders-F-c9ELi1.js.map +1 -0
- package/dist/options-CthfUJDz.js +46 -0
- package/dist/options-CthfUJDz.js.map +1 -0
- package/dist/png-item-CS4z1iSH.js +45 -0
- package/dist/png-item-CS4z1iSH.js.map +1 -0
- package/dist/range-l4fNHLEg.js +213 -0
- package/dist/range-l4fNHLEg.js.map +1 -0
- package/dist/resolve-theme-color-BdojIw0K.js +47 -0
- package/dist/resolve-theme-color-BdojIw0K.js.map +1 -0
- package/dist/row-DZSP99LW.js +34 -0
- package/dist/row-DZSP99LW.js.map +1 -0
- package/dist/series-DLNHDWs0.js +90 -0
- package/dist/series-DLNHDWs0.js.map +1 -0
- package/dist/shared-resize-observer-98b1SK1e.js +17 -0
- package/dist/shared-resize-observer-98b1SK1e.js.map +1 -0
- package/dist/smart-tooltip-D4vwQpFf.js.map +1 -1
- package/dist/spread-CngWB5KF.js +68 -0
- package/dist/spread-CngWB5KF.js.map +1 -0
- package/dist/style-DVnT6HC1.js +131 -0
- package/dist/style-DVnT6HC1.js.map +1 -0
- package/dist/styles-cohnxh9F.js +23 -0
- package/dist/styles-cohnxh9F.js.map +1 -0
- package/dist/table-CQCAnDLb.js +388 -0
- package/dist/table-CQCAnDLb.js.map +1 -0
- package/dist/tooltip-BDnrRKrp.js.map +1 -1
- package/dist/transforms-Cdx4fkU5.js +106 -0
- package/dist/transforms-Cdx4fkU5.js.map +1 -0
- package/dist/types/chat/containers/chat-content.d.ts +2 -2
- package/dist/types/chat/containers/styles.d.ts +9 -26
- package/dist/types/chat/feedback/chat-tool-code-area.d.ts +1 -3
- package/dist/types/chat/index.d.ts +1 -1
- package/dist/types/chat/types.d.ts +35 -3
- package/dist/types/components/basemaps/basemaps.d.ts +20 -0
- package/dist/types/components/geolocation-controls/geolocation-controls.d.ts +11 -0
- package/dist/types/components/lasso-tool/lasso-tool-inline.d.ts +17 -0
- package/dist/types/components/lasso-tool/lasso-tool.d.ts +21 -0
- package/dist/types/components/list-data/list-data.d.ts +16 -0
- package/dist/types/components/measurement-tools/measurement-tools.d.ts +20 -0
- package/dist/types/components/smart-tooltip/smart-tooltip.d.ts +17 -0
- package/dist/types/components/tooltip/tooltip.d.ts +13 -0
- package/dist/types/components/zoom-controls/zoom-controls.d.ts +16 -0
- package/dist/types/hooks/index.d.ts +0 -1
- package/dist/types/hooks/use-widget-ref.d.ts +9 -6
- package/dist/types/widgets/actions/brush-toggle/brush-overlay.d.ts +24 -0
- package/dist/types/widgets/actions/brush-toggle/brush-toggle.d.ts +29 -0
- package/dist/types/widgets/actions/brush-toggle/hit-test.d.ts +19 -0
- package/dist/types/widgets/actions/brush-toggle/hit-test.test.d.ts +1 -0
- package/dist/types/widgets/actions/brush-toggle/style.d.ts +21 -0
- package/dist/types/widgets/actions/brush-toggle/types.d.ts +73 -0
- package/dist/types/widgets/actions/download/download.d.ts +11 -0
- package/dist/types/widgets/actions/download/exports.d.ts +15 -0
- package/dist/types/widgets/actions/fullscreen/fullscreen.d.ts +13 -0
- package/dist/types/widgets/actions/index.d.ts +7 -5
- package/dist/types/widgets/actions/lock-selection/types.d.ts +2 -0
- package/dist/types/widgets/actions/relative-data/relative-data.d.ts +8 -2
- package/dist/types/widgets/actions/relative-data/types.d.ts +2 -0
- package/dist/types/widgets/actions/zoom-toggle/zoom-toggle.d.ts +4 -0
- package/dist/types/widgets/bar/config.d.ts +8 -4
- package/dist/types/widgets/category/category-ui.d.ts +3 -0
- package/dist/types/widgets/category/components/category-bar.d.ts +3 -0
- package/dist/types/widgets/category/components/category-legend.d.ts +3 -0
- package/dist/types/widgets/category/components/category-row-multi.d.ts +5 -1
- package/dist/types/widgets/category/components/category-row-other.d.ts +3 -0
- package/dist/types/widgets/category/components/category-row-single.d.ts +5 -1
- package/dist/types/widgets/category/config.d.ts +11 -0
- package/dist/types/widgets/category/index.d.ts +10 -2
- package/dist/types/widgets/category/style.d.ts +1 -0
- package/dist/types/widgets/category/types.d.ts +1 -0
- package/dist/types/widgets/echart/echart-ui.d.ts +7 -0
- package/dist/types/widgets/echart/echart.d.ts +6 -0
- package/dist/types/widgets/echart/options.d.ts +7 -0
- package/dist/types/widgets/echart/shared-resize-observer.d.ts +12 -0
- package/dist/types/widgets/echart/types.d.ts +5 -1
- package/dist/types/widgets/echart/utils.d.ts +54 -7
- package/dist/types/widgets/echart/utils.test.d.ts +1 -0
- package/dist/types/widgets/error/error.d.ts +10 -0
- package/dist/types/widgets/formula/components/item.d.ts +3 -0
- package/dist/types/widgets/formula/components/prefix.d.ts +3 -0
- package/dist/types/widgets/formula/components/row.d.ts +3 -0
- package/dist/types/widgets/formula/components/series.d.ts +3 -0
- package/dist/types/widgets/formula/components/suffix.d.ts +3 -0
- package/dist/types/widgets/formula/components/value.d.ts +3 -0
- package/dist/types/widgets/formula/config.d.ts +11 -0
- package/dist/types/widgets/formula/config.test.d.ts +1 -0
- package/dist/types/widgets/formula/formula-ui.d.ts +3 -0
- package/dist/types/widgets/histogram/config.d.ts +18 -2
- package/dist/types/widgets/histogram/index.d.ts +2 -1
- package/dist/types/widgets/histogram/types.d.ts +6 -3
- package/dist/types/widgets/loader/loader.d.ts +22 -0
- package/dist/types/widgets/loader/utils.d.ts +26 -3
- package/dist/types/widgets/markdown/config.d.ts +10 -0
- package/dist/types/widgets/markdown/markdown-ui.d.ts +7 -0
- package/dist/types/widgets/markdown/markdown.d.ts +3 -0
- package/dist/types/widgets/no-data/no-data.d.ts +3 -2
- package/dist/types/widgets/no-data/types.d.ts +5 -1
- package/dist/types/widgets/note/note.d.ts +10 -0
- package/dist/types/widgets/pie/config.d.ts +8 -4
- package/dist/types/widgets/range/components/range-item.d.ts +3 -0
- package/dist/types/widgets/range/config.d.ts +5 -0
- package/dist/types/widgets/range/range-ui.d.ts +3 -0
- package/dist/types/widgets/scatterplot/config.d.ts +7 -3
- package/dist/types/widgets/selection-summary/selection-summary.d.ts +11 -0
- package/dist/types/widgets/skeleton-loader/skeleton-loader.d.ts +10 -0
- package/dist/types/widgets/spread/components/max-value.d.ts +3 -0
- package/dist/types/widgets/spread/components/min-value.d.ts +3 -0
- package/dist/types/widgets/spread/components/separator.d.ts +3 -0
- package/dist/types/widgets/spread/config.d.ts +11 -0
- package/dist/types/widgets/spread/spread-ui.d.ts +3 -0
- package/dist/types/widgets/stores/index.d.ts +3 -2
- package/dist/types/widgets/stores/types.d.ts +12 -10
- package/dist/types/widgets/stores/use-widget-selector.d.ts +35 -0
- package/dist/types/widgets/stores/widget-store-branches.test.d.ts +1 -0
- package/dist/types/widgets/stores/widget-store-performance.test.d.ts +1 -0
- package/dist/types/widgets/stores/widget-store.d.ts +48 -27
- package/dist/types/widgets/subheader/subheader.d.ts +11 -0
- package/dist/types/widgets/table/config.d.ts +8 -3
- package/dist/types/widgets/table/config.test.d.ts +1 -0
- package/dist/types/widgets/table/hooks/use-pagination.d.ts +11 -3
- package/dist/types/widgets/table/hooks/use-selection.d.ts +11 -2
- package/dist/types/widgets/table/hooks/use-sort.d.ts +11 -3
- package/dist/types/widgets/table/index.d.ts +6 -2
- package/dist/types/widgets/table/types.d.ts +1 -1
- package/dist/types/widgets/timeseries/config.d.ts +8 -4
- package/dist/types/widgets/utils/chart-config/download-config.d.ts +3 -0
- package/dist/types/widgets/{_shared → utils}/chart-config/index.d.ts +3 -1
- package/dist/types/widgets/{_shared → utils}/chart-config/option-builders.d.ts +41 -9
- package/dist/types/widgets/utils/chart-config/option-builders.test.d.ts +1 -0
- package/dist/types/widgets/utils/formatter.d.ts +2 -0
- package/dist/types/widgets/utils/index.d.ts +7 -0
- package/dist/types/widgets/wrapper/components/actions.d.ts +3 -0
- package/dist/types/widgets/wrapper/components/options.d.ts +3 -0
- package/dist/types/widgets/wrapper/components/title.d.ts +3 -0
- package/dist/types/widgets/wrapper/wrapper-ui.d.ts +14 -0
- package/dist/types/widgets/wrapper/wrapper.d.ts +14 -0
- package/dist/types/widgets-v2/actions/brush-toggle/brush-toggle.d.ts +56 -0
- package/dist/types/widgets-v2/actions/brush-toggle/index.d.ts +3 -0
- package/dist/types/widgets-v2/actions/brush-toggle/labels.d.ts +5 -0
- package/dist/types/widgets-v2/actions/brush-toggle/style.d.ts +12 -0
- package/dist/types/widgets-v2/actions/brush-toggle/transforms.d.ts +11 -0
- package/dist/types/widgets-v2/actions/change-column/change-column-icon.d.ts +2 -0
- package/dist/types/widgets-v2/actions/change-column/change-column.d.ts +29 -0
- package/dist/types/widgets-v2/actions/change-column/index.d.ts +3 -0
- package/dist/types/widgets-v2/actions/change-column/labels.d.ts +5 -0
- package/dist/types/widgets-v2/actions/change-column/sortable-column-item.d.ts +14 -0
- package/dist/types/widgets-v2/actions/change-column/style.d.ts +33 -0
- package/dist/types/widgets-v2/actions/change-column/types.d.ts +10 -0
- package/dist/types/widgets-v2/actions/download/download.d.ts +18 -0
- package/dist/types/widgets-v2/actions/download/exports.d.ts +37 -0
- package/dist/types/widgets-v2/actions/download/icons.d.ts +12 -0
- package/dist/types/widgets-v2/actions/download/index.d.ts +6 -0
- package/dist/types/widgets-v2/actions/download/labels.d.ts +11 -0
- package/dist/types/widgets-v2/actions/download/png-item.d.ts +24 -0
- package/dist/types/widgets-v2/actions/download/style.d.ts +1 -0
- package/dist/types/widgets-v2/actions/download/types.d.ts +35 -0
- package/dist/types/widgets-v2/actions/fullscreen/fullscreen.d.ts +59 -0
- package/dist/types/widgets-v2/actions/fullscreen/index.d.ts +3 -0
- package/dist/types/widgets-v2/actions/fullscreen/labels.d.ts +5 -0
- package/dist/types/widgets-v2/actions/fullscreen/style.d.ts +48 -0
- package/dist/types/widgets-v2/actions/fullscreen/types.d.ts +14 -0
- package/dist/types/widgets-v2/actions/index.d.ts +9 -0
- package/dist/types/widgets-v2/actions/lock-selection/index.d.ts +3 -0
- package/dist/types/widgets-v2/actions/lock-selection/labels.d.ts +6 -0
- package/dist/types/widgets-v2/actions/lock-selection/lock-selection.d.ts +36 -0
- package/dist/types/widgets-v2/actions/lock-selection/style.d.ts +12 -0
- package/dist/types/widgets-v2/actions/lock-selection/transforms.d.ts +6 -0
- package/dist/types/widgets-v2/actions/relative-data/index.d.ts +3 -0
- package/dist/types/widgets-v2/actions/relative-data/labels.d.ts +5 -0
- package/dist/types/widgets-v2/actions/relative-data/relative-data.d.ts +39 -0
- package/dist/types/widgets-v2/actions/relative-data/style.d.ts +12 -0
- package/dist/types/widgets-v2/actions/relative-data/transforms.d.ts +30 -0
- package/dist/types/widgets-v2/actions/relative-data/transforms.test.d.ts +1 -0
- package/dist/types/widgets-v2/actions/searcher/filter.d.ts +6 -0
- package/dist/types/widgets-v2/actions/searcher/index.d.ts +4 -0
- package/dist/types/widgets-v2/actions/searcher/labels.d.ts +7 -0
- package/dist/types/widgets-v2/actions/searcher/searcher-toggle.d.ts +23 -0
- package/dist/types/widgets-v2/actions/searcher/searcher.d.ts +11 -0
- package/dist/types/widgets-v2/actions/searcher/style.d.ts +16 -0
- package/dist/types/widgets-v2/actions/stack-toggle/index.d.ts +3 -0
- package/dist/types/widgets-v2/actions/stack-toggle/labels.d.ts +5 -0
- package/dist/types/widgets-v2/actions/stack-toggle/stack-toggle.d.ts +10 -0
- package/dist/types/widgets-v2/actions/stack-toggle/style.d.ts +12 -0
- package/dist/types/widgets-v2/actions/stack-toggle/transforms.d.ts +13 -0
- package/dist/types/widgets-v2/actions/stack-toggle/transforms.test.d.ts +1 -0
- package/dist/types/widgets-v2/actions/zoom-toggle/index.d.ts +3 -0
- package/dist/types/widgets-v2/actions/zoom-toggle/labels.d.ts +5 -0
- package/dist/types/widgets-v2/actions/zoom-toggle/style.d.ts +12 -0
- package/dist/types/widgets-v2/actions/zoom-toggle/transforms.d.ts +51 -0
- package/dist/types/widgets-v2/actions/zoom-toggle/transforms.test.d.ts +1 -0
- package/dist/types/widgets-v2/actions/zoom-toggle/zoom-toggle.d.ts +35 -0
- package/dist/types/widgets-v2/bar/download.d.ts +24 -0
- package/dist/types/widgets-v2/bar/index.d.ts +4 -0
- package/dist/types/widgets-v2/bar/options.d.ts +43 -0
- package/dist/types/widgets-v2/bar/options.test.d.ts +1 -0
- package/dist/types/widgets-v2/bar/skeleton.d.ts +6 -0
- package/dist/types/widgets-v2/bar/types.d.ts +46 -0
- package/dist/types/widgets-v2/category/category-ui.d.ts +81 -0
- package/dist/types/widgets-v2/category/category.d.ts +48 -0
- package/dist/types/widgets-v2/category/components/category-bar-stacked.d.ts +28 -0
- package/dist/types/widgets-v2/category/components/category-bar.d.ts +23 -0
- package/dist/types/widgets-v2/category/components/category-legend.d.ts +18 -0
- package/dist/types/widgets-v2/category/components/category-row-multi.d.ts +31 -0
- package/dist/types/widgets-v2/category/components/category-row-other.d.ts +13 -0
- package/dist/types/widgets-v2/category/components/category-row-single.d.ts +28 -0
- package/dist/types/widgets-v2/category/components/category-row-stacked.d.ts +38 -0
- package/dist/types/widgets-v2/category/download.d.ts +16 -0
- package/dist/types/widgets-v2/category/download.test.d.ts +1 -0
- package/dist/types/widgets-v2/category/index.d.ts +10 -0
- package/dist/types/widgets-v2/category/skeleton.d.ts +11 -0
- package/dist/types/widgets-v2/category/style.d.ts +166 -0
- package/dist/types/widgets-v2/category/types.d.ts +53 -0
- package/dist/types/widgets-v2/echart/echart-ui.d.ts +44 -0
- package/dist/types/widgets-v2/echart/echart.d.ts +75 -0
- package/dist/types/widgets-v2/echart/index.d.ts +4 -0
- package/dist/types/widgets-v2/echart/shared-resize-observer.d.ts +5 -0
- package/dist/types/widgets-v2/echart/shared-resize-observer.test.d.ts +1 -0
- package/dist/types/widgets-v2/echart/style.d.ts +6 -0
- package/dist/types/widgets-v2/echart/use-chart-selection.d.ts +51 -0
- package/dist/types/widgets-v2/formula/delta.d.ts +22 -0
- package/dist/types/widgets-v2/formula/download.d.ts +20 -0
- package/dist/types/widgets-v2/formula/formula-ui.d.ts +20 -0
- package/dist/types/widgets-v2/formula/formula.d.ts +8 -0
- package/dist/types/widgets-v2/formula/index.d.ts +11 -0
- package/dist/types/widgets-v2/formula/note.d.ts +11 -0
- package/dist/types/widgets-v2/formula/prefix.d.ts +12 -0
- package/dist/types/widgets-v2/formula/series.d.ts +16 -0
- package/dist/types/widgets-v2/formula/skeleton.d.ts +4 -0
- package/dist/types/widgets-v2/formula/style.d.ts +29 -0
- package/dist/types/widgets-v2/formula/suffix.d.ts +12 -0
- package/dist/types/widgets-v2/formula/types.d.ts +43 -0
- package/dist/types/widgets-v2/formula/value.d.ts +14 -0
- package/dist/types/widgets-v2/histogram/download.d.ts +17 -0
- package/dist/types/widgets-v2/histogram/download.test.d.ts +1 -0
- package/dist/types/widgets-v2/histogram/index.d.ts +5 -0
- package/dist/types/widgets-v2/histogram/options.d.ts +42 -0
- package/dist/types/widgets-v2/histogram/options.test.d.ts +1 -0
- package/dist/types/widgets-v2/histogram/skeleton.d.ts +9 -0
- package/dist/types/widgets-v2/histogram/transforms.d.ts +17 -0
- package/dist/types/widgets-v2/histogram/transforms.test.d.ts +1 -0
- package/dist/types/widgets-v2/histogram/types.d.ts +51 -0
- package/dist/types/widgets-v2/index.d.ts +108 -0
- package/dist/types/widgets-v2/markdown/download.d.ts +16 -0
- package/dist/types/widgets-v2/markdown/download.test.d.ts +1 -0
- package/dist/types/widgets-v2/markdown/index.d.ts +6 -0
- package/dist/types/widgets-v2/markdown/markdown-content.d.ts +34 -0
- package/dist/types/widgets-v2/markdown/markdown-ui.d.ts +12 -0
- package/dist/types/widgets-v2/markdown/markdown.d.ts +6 -0
- package/dist/types/widgets-v2/markdown/skeleton.d.ts +4 -0
- package/dist/types/widgets-v2/markdown/style.d.ts +61 -0
- package/dist/types/widgets-v2/markdown/types.d.ts +4 -0
- package/dist/types/widgets-v2/note/labels.d.ts +5 -0
- package/dist/types/widgets-v2/note/style.d.ts +26 -0
- package/dist/types/widgets-v2/note/widget-note.d.ts +46 -0
- package/dist/types/widgets-v2/pie/download.d.ts +17 -0
- package/dist/types/widgets-v2/pie/download.test.d.ts +1 -0
- package/dist/types/widgets-v2/pie/index.d.ts +4 -0
- package/dist/types/widgets-v2/pie/options.d.ts +35 -0
- package/dist/types/widgets-v2/pie/options.test.d.ts +1 -0
- package/dist/types/widgets-v2/pie/skeleton.d.ts +4 -0
- package/dist/types/widgets-v2/pie/types.d.ts +57 -0
- package/dist/types/widgets-v2/provider/widget-provider.d.ts +32 -0
- package/dist/types/widgets-v2/range/index.d.ts +4 -0
- package/dist/types/widgets-v2/range/range-ui.d.ts +27 -0
- package/dist/types/widgets-v2/range/range.d.ts +24 -0
- package/dist/types/widgets-v2/range/skeleton.d.ts +9 -0
- package/dist/types/widgets-v2/range/style.d.ts +40 -0
- package/dist/types/widgets-v2/range/types.d.ts +37 -0
- package/dist/types/widgets-v2/scatterplot/download.d.ts +16 -0
- package/dist/types/widgets-v2/scatterplot/download.test.d.ts +1 -0
- package/dist/types/widgets-v2/scatterplot/index.d.ts +5 -0
- package/dist/types/widgets-v2/scatterplot/options.d.ts +42 -0
- package/dist/types/widgets-v2/scatterplot/options.test.d.ts +1 -0
- package/dist/types/widgets-v2/scatterplot/skeleton.d.ts +12 -0
- package/dist/types/widgets-v2/scatterplot/transforms.d.ts +17 -0
- package/dist/types/widgets-v2/scatterplot/transforms.test.d.ts +1 -0
- package/dist/types/widgets-v2/scatterplot/types.d.ts +54 -0
- package/dist/types/widgets-v2/selection-summary/labels.d.ts +6 -0
- package/dist/types/widgets-v2/selection-summary/selection-summary.d.ts +22 -0
- package/dist/types/widgets-v2/selection-summary/style.d.ts +23 -0
- package/dist/types/widgets-v2/spread/download.d.ts +15 -0
- package/dist/types/widgets-v2/spread/download.test.d.ts +1 -0
- package/dist/types/widgets-v2/spread/index.d.ts +6 -0
- package/dist/types/widgets-v2/spread/separator.d.ts +7 -0
- package/dist/types/widgets-v2/spread/skeleton.d.ts +9 -0
- package/dist/types/widgets-v2/spread/spread-ui.d.ts +18 -0
- package/dist/types/widgets-v2/spread/spread.d.ts +5 -0
- package/dist/types/widgets-v2/spread/types.d.ts +25 -0
- package/dist/types/widgets-v2/state/labels.d.ts +7 -0
- package/dist/types/widgets-v2/state/labels.test.d.ts +1 -0
- package/dist/types/widgets-v2/state/style.d.ts +19 -0
- package/dist/types/widgets-v2/state/widget-state.d.ts +19 -0
- package/dist/types/widgets-v2/stores/index.d.ts +8 -0
- package/dist/types/widgets-v2/stores/pipeline-middleware.d.ts +5 -0
- package/dist/types/widgets-v2/stores/pipeline-middleware.test.d.ts +1 -0
- package/dist/types/widgets-v2/stores/transforms.d.ts +4 -0
- package/dist/types/widgets-v2/stores/transforms.test.d.ts +1 -0
- package/dist/types/widgets-v2/stores/types.d.ts +55 -0
- package/dist/types/widgets-v2/stores/use-echart-instance.d.ts +15 -0
- package/dist/types/widgets-v2/stores/use-transform-enabled.d.ts +17 -0
- package/dist/types/widgets-v2/stores/use-transform.d.ts +12 -0
- package/dist/types/widgets-v2/stores/widget-context.d.ts +2 -0
- package/dist/types/widgets-v2/stores/widget-store-registry.d.ts +74 -0
- package/dist/types/widgets-v2/stores/widget-store-registry.test.d.ts +1 -0
- package/dist/types/widgets-v2/subheader/style.d.ts +10 -0
- package/dist/types/widgets-v2/subheader/subheader.d.ts +11 -0
- package/dist/types/widgets-v2/table/download.d.ts +18 -0
- package/dist/types/widgets-v2/table/download.test.d.ts +1 -0
- package/dist/types/widgets-v2/table/helpers.d.ts +32 -0
- package/dist/types/widgets-v2/table/helpers.test.d.ts +1 -0
- package/dist/types/widgets-v2/table/index.d.ts +7 -0
- package/dist/types/widgets-v2/table/labels.d.ts +22 -0
- package/dist/types/widgets-v2/table/skeleton.d.ts +22 -0
- package/dist/types/widgets-v2/table/style.d.ts +40 -0
- package/dist/types/widgets-v2/table/table-ui.d.ts +44 -0
- package/dist/types/widgets-v2/table/table.d.ts +50 -0
- package/dist/types/widgets-v2/table/types.d.ts +48 -0
- package/dist/types/widgets-v2/test-utils.d.ts +52 -0
- package/dist/types/widgets-v2/timeseries/download.d.ts +17 -0
- package/dist/types/widgets-v2/timeseries/download.test.d.ts +1 -0
- package/dist/types/widgets-v2/timeseries/index.d.ts +4 -0
- package/dist/types/widgets-v2/timeseries/options.d.ts +39 -0
- package/dist/types/widgets-v2/timeseries/options.test.d.ts +1 -0
- package/dist/types/widgets-v2/timeseries/skeleton.d.ts +8 -0
- package/dist/types/widgets-v2/timeseries/types.d.ts +60 -0
- package/dist/types/widgets-v2/toolbox/labels.d.ts +5 -0
- package/dist/types/widgets-v2/toolbox/style.d.ts +30 -0
- package/dist/types/widgets-v2/toolbox/toolbox.d.ts +49 -0
- package/dist/types/widgets-v2/types.d.ts +25 -0
- package/dist/types/widgets-v2/utils/data-zoom-layout.d.ts +11 -0
- package/dist/types/widgets-v2/utils/index.d.ts +3 -0
- package/dist/types/widgets-v2/utils/merge-options.d.ts +12 -0
- package/dist/types/widgets-v2/utils/merge-options.test.d.ts +1 -0
- package/dist/types/widgets-v2/utils/resolve-theme-color.d.ts +18 -0
- package/dist/types/widgets-v2/utils/resolve-theme-color.test.d.ts +1 -0
- package/dist/types/widgets-v2/wrapper/index.d.ts +4 -0
- package/dist/types/widgets-v2/wrapper/labels.d.ts +6 -0
- package/dist/types/widgets-v2/wrapper/style.d.ts +111 -0
- package/dist/types/widgets-v2/wrapper/widget-actions.d.ts +22 -0
- package/dist/types/widgets-v2/wrapper/widget-content.d.ts +12 -0
- package/dist/types/widgets-v2/wrapper/widget-wrapper.d.ts +51 -0
- package/dist/use-transform-DXPN3nY7.js +110 -0
- package/dist/use-transform-DXPN3nY7.js.map +1 -0
- package/dist/use-widget-ref-Ddr_SlJJ.js +22 -0
- package/dist/use-widget-ref-Ddr_SlJJ.js.map +1 -0
- package/dist/use-widget-selector-DFl2hW0R.js +12 -0
- package/dist/use-widget-selector-DFl2hW0R.js.map +1 -0
- package/dist/{utils-idmvq0Oa.js → utils-BOhInag6.js} +95 -70
- package/dist/utils-BOhInag6.js.map +1 -0
- package/dist/widget-context-DTGO0Yta.js +13 -0
- package/dist/widget-context-DTGO0Yta.js.map +1 -0
- package/dist/widget-store-Bw5zRUGg.js +261 -0
- package/dist/widget-store-Bw5zRUGg.js.map +1 -0
- package/dist/widget-store-registry-_W4Z4xp-.js +178 -0
- package/dist/widget-store-registry-_W4Z4xp-.js.map +1 -0
- package/dist/widgets/actions.js +1120 -760
- package/dist/widgets/actions.js.map +1 -1
- package/dist/widgets/bar.js +87 -97
- package/dist/widgets/bar.js.map +1 -1
- package/dist/widgets/category.js +247 -236
- package/dist/widgets/category.js.map +1 -1
- package/dist/widgets/echart.js +100 -99
- package/dist/widgets/echart.js.map +1 -1
- package/dist/widgets/error.js +37 -2
- package/dist/widgets/error.js.map +1 -1
- package/dist/widgets/formula.js +78 -67
- package/dist/widgets/formula.js.map +1 -1
- package/dist/widgets/histogram.js +116 -92
- package/dist/widgets/histogram.js.map +1 -1
- package/dist/widgets/loader.js +53 -60
- package/dist/widgets/loader.js.map +1 -1
- package/dist/widgets/markdown.js +55 -53
- package/dist/widgets/markdown.js.map +1 -1
- package/dist/widgets/no-data.js +58 -2
- package/dist/widgets/no-data.js.map +1 -1
- package/dist/widgets/note.js +121 -2
- package/dist/widgets/note.js.map +1 -1
- package/dist/widgets/pie.js +148 -112
- package/dist/widgets/pie.js.map +1 -1
- package/dist/widgets/range.js +147 -144
- package/dist/widgets/range.js.map +1 -1
- package/dist/widgets/scatterplot.js +52 -65
- package/dist/widgets/scatterplot.js.map +1 -1
- package/dist/widgets/selection-summary.js.map +1 -1
- package/dist/widgets/skeleton-loader.js +18 -17
- package/dist/widgets/skeleton-loader.js.map +1 -1
- package/dist/widgets/spread.js +108 -90
- package/dist/widgets/spread.js.map +1 -1
- package/dist/widgets/stores.js +5 -2
- package/dist/widgets/stores.js.map +1 -1
- package/dist/widgets/subheader.js +29 -29
- package/dist/widgets/subheader.js.map +1 -1
- package/dist/widgets/table.js +429 -440
- package/dist/widgets/table.js.map +1 -1
- package/dist/widgets/timeseries.js +56 -69
- package/dist/widgets/timeseries.js.map +1 -1
- package/dist/widgets/toolbar-actions.js +50 -50
- package/dist/widgets/utils.js +34 -0
- package/dist/widgets/utils.js.map +1 -0
- package/dist/widgets/wrapper.js +156 -158
- package/dist/widgets/wrapper.js.map +1 -1
- package/dist/widgets-v2/actions.js +43 -0
- package/dist/widgets-v2/actions.js.map +1 -0
- package/dist/widgets-v2/bar.js +331 -0
- package/dist/widgets-v2/bar.js.map +1 -0
- package/dist/widgets-v2/category.js +105 -0
- package/dist/widgets-v2/category.js.map +1 -0
- package/dist/widgets-v2/echart.js +57 -0
- package/dist/widgets-v2/echart.js.map +1 -0
- package/dist/widgets-v2/formula.js +75 -0
- package/dist/widgets-v2/formula.js.map +1 -0
- package/dist/widgets-v2/histogram.js +354 -0
- package/dist/widgets-v2/histogram.js.map +1 -0
- package/dist/widgets-v2/markdown.js +69 -0
- package/dist/widgets-v2/markdown.js.map +1 -0
- package/dist/widgets-v2/pie.js +388 -0
- package/dist/widgets-v2/pie.js.map +1 -0
- package/dist/widgets-v2/range.js +52 -0
- package/dist/widgets-v2/range.js.map +1 -0
- package/dist/widgets-v2/scatterplot.js +412 -0
- package/dist/widgets-v2/scatterplot.js.map +1 -0
- package/dist/widgets-v2/spread.js +73 -0
- package/dist/widgets-v2/spread.js.map +1 -0
- package/dist/widgets-v2/stores.js +42 -0
- package/dist/widgets-v2/stores.js.map +1 -0
- package/dist/widgets-v2/table.js +79 -0
- package/dist/widgets-v2/table.js.map +1 -0
- package/dist/widgets-v2/timeseries.js +359 -0
- package/dist/widgets-v2/timeseries.js.map +1 -0
- package/dist/widgets-v2/utils.js +8 -0
- package/dist/widgets-v2/utils.js.map +1 -0
- package/dist/widgets-v2.js +954 -0
- package/dist/widgets-v2.js.map +1 -0
- package/package.json +82 -11
- package/src/chat/containers/chat-content.test.tsx +260 -6
- package/src/chat/containers/chat-content.tsx +137 -27
- package/src/chat/containers/chat-starter.tsx +2 -2
- package/src/chat/containers/styles.ts +9 -30
- package/src/chat/feedback/chat-tool-code-area.tsx +1 -1
- package/src/chat/feedback/chat-tool-group.tsx +1 -1
- package/src/chat/feedback/chat-tool-trace.tsx +6 -1
- package/src/chat/index.ts +1 -1
- package/src/chat/types.ts +36 -4
- package/src/components/basemaps/basemaps.tsx +20 -0
- package/src/components/geolocation-controls/geolocation-controls.tsx +11 -0
- package/src/components/lasso-tool/chip.test.tsx +176 -0
- package/src/components/lasso-tool/lasso-tool-inline.test.tsx +171 -0
- package/src/components/lasso-tool/lasso-tool-inline.tsx +17 -0
- package/src/components/lasso-tool/lasso-tool.test.tsx +198 -0
- package/src/components/lasso-tool/lasso-tool.tsx +21 -0
- package/src/components/list-data/list-data.test.tsx +73 -0
- package/src/components/list-data/list-data.tsx +16 -0
- package/src/components/measurement-tools/measurement-tools.tsx +20 -0
- package/src/components/no-data-alert/no-data-alert.test.tsx +38 -0
- package/src/components/responsive-drawer/responsive-drawer.test.tsx +68 -0
- package/src/components/smart-tooltip/smart-tooltip.tsx +17 -0
- package/src/components/tooltip/tooltip.tsx +13 -0
- package/src/components/zoom-controls/zoom-controls.tsx +16 -0
- package/src/hooks/index.ts +0 -1
- package/src/hooks/use-widget-ref.ts +10 -10
- package/src/widgets/README.md +13 -13
- package/src/widgets/actions/brush-toggle/brush-overlay.test.tsx +465 -0
- package/src/widgets/actions/brush-toggle/brush-overlay.tsx +408 -0
- package/src/widgets/actions/brush-toggle/brush-toggle.test.tsx +208 -0
- package/src/widgets/actions/brush-toggle/brush-toggle.tsx +133 -0
- package/src/widgets/actions/brush-toggle/hit-test.test.ts +65 -0
- package/src/widgets/actions/brush-toggle/hit-test.ts +45 -0
- package/src/widgets/actions/brush-toggle/style.ts +46 -0
- package/src/widgets/actions/brush-toggle/types.ts +78 -0
- package/src/widgets/actions/change-column/change-column-dnd.test.tsx +193 -0
- package/src/widgets/actions/change-column/change-column.test.tsx +1 -1
- package/src/widgets/actions/change-column/change-column.tsx +15 -15
- package/src/widgets/actions/change-column/sortable-column-item.test.tsx +124 -0
- package/src/widgets/actions/change-column/sortable-column-item.tsx +3 -1
- package/src/widgets/actions/download/download.test.tsx +1 -1
- package/src/widgets/actions/download/download.tsx +15 -3
- package/src/widgets/actions/download/exports.tsx +15 -0
- package/src/widgets/actions/fullscreen/fullscreen.tsx +20 -11
- package/src/widgets/actions/index.ts +21 -2
- package/src/widgets/actions/lock-selection/lock-selection.test.tsx +14 -0
- package/src/widgets/actions/lock-selection/lock-selection.tsx +26 -31
- package/src/widgets/actions/lock-selection/types.ts +2 -0
- package/src/widgets/actions/relative-data/relative-data.test.tsx +276 -1
- package/src/widgets/actions/relative-data/relative-data.tsx +113 -54
- package/src/widgets/actions/relative-data/types.ts +2 -0
- package/src/widgets/actions/searcher/searcher-toggle.tsx +11 -12
- package/src/widgets/actions/searcher/searcher.tsx +39 -42
- package/src/widgets/actions/stack-toggle/stack-toggle.test.tsx +4 -4
- package/src/widgets/actions/stack-toggle/stack-toggle.tsx +24 -32
- package/src/widgets/actions/zoom-toggle/zoom-toggle.test.tsx +322 -0
- package/src/widgets/actions/zoom-toggle/zoom-toggle.tsx +62 -80
- package/src/widgets/bar/config.ts +39 -34
- package/src/widgets/bar/style.ts +1 -1
- package/src/widgets/category/category-ui.tsx +41 -34
- package/src/widgets/category/components/category-bar.tsx +3 -0
- package/src/widgets/category/components/category-legend.tsx +3 -0
- package/src/widgets/category/components/category-row-multi.tsx +9 -2
- package/src/widgets/category/components/category-row-other.tsx +3 -0
- package/src/widgets/category/components/category-row-single.tsx +8 -1
- package/src/widgets/category/components/category-rows.test.tsx +213 -0
- package/src/widgets/category/config.ts +11 -0
- package/src/widgets/category/index.ts +13 -14
- package/src/widgets/category/style.ts +1 -0
- package/src/widgets/category/types.ts +1 -0
- package/src/widgets/echart/echart-ui.test.tsx +20 -16
- package/src/widgets/echart/echart-ui.tsx +18 -14
- package/src/widgets/echart/echart.tsx +19 -27
- package/src/widgets/echart/options.ts +8 -4
- package/src/widgets/echart/shared-resize-observer.ts +45 -0
- package/src/widgets/echart/types.ts +5 -1
- package/src/widgets/echart/utils.test.ts +277 -0
- package/src/widgets/echart/utils.ts +94 -21
- package/src/widgets/error/error.tsx +17 -9
- package/src/widgets/formula/components/item.tsx +3 -0
- package/src/widgets/formula/components/prefix.tsx +7 -6
- package/src/widgets/formula/components/row.tsx +7 -4
- package/src/widgets/formula/components/series.tsx +7 -6
- package/src/widgets/formula/components/suffix.tsx +7 -6
- package/src/widgets/formula/components/value.tsx +13 -18
- package/src/widgets/formula/config.test.ts +37 -0
- package/src/widgets/formula/config.ts +11 -0
- package/src/widgets/formula/formula-ui.tsx +4 -1
- package/src/widgets/histogram/config.ts +99 -24
- package/src/widgets/histogram/index.ts +6 -1
- package/src/widgets/histogram/style.ts +1 -1
- package/src/widgets/histogram/types.ts +9 -3
- package/src/widgets/loader/loader.tsx +53 -44
- package/src/widgets/loader/utils.ts +26 -3
- package/src/widgets/markdown/config.ts +10 -0
- package/src/widgets/markdown/markdown-ui.tsx +7 -0
- package/src/widgets/markdown/markdown.tsx +7 -7
- package/src/widgets/no-data/no-data.test.tsx +90 -40
- package/src/widgets/no-data/no-data.tsx +12 -13
- package/src/widgets/no-data/types.ts +5 -1
- package/src/widgets/note/note.tsx +10 -0
- package/src/widgets/pie/config.ts +102 -33
- package/src/widgets/pie/style.ts +1 -1
- package/src/widgets/range/components/range-item.test.tsx +243 -0
- package/src/widgets/range/components/range-item.tsx +25 -20
- package/src/widgets/range/config.ts +5 -0
- package/src/widgets/range/range-ui.tsx +3 -0
- package/src/widgets/scatterplot/config.ts +21 -23
- package/src/widgets/scatterplot/style.ts +1 -1
- package/src/widgets/selection-summary/selection-summary.tsx +11 -0
- package/src/widgets/skeleton-loader/skeleton-loader.tsx +12 -5
- package/src/widgets/spread/components/max-value.tsx +18 -18
- package/src/widgets/spread/components/min-value.tsx +18 -18
- package/src/widgets/spread/components/separator.tsx +3 -0
- package/src/widgets/spread/config.ts +11 -0
- package/src/widgets/spread/spread-ui.tsx +4 -1
- package/src/widgets/stores/index.ts +4 -1
- package/src/widgets/stores/types.ts +12 -18
- package/src/widgets/stores/use-widget-selector.ts +47 -0
- package/src/widgets/stores/widget-store-branches.test.ts +275 -0
- package/src/widgets/stores/widget-store-performance.test.ts +750 -0
- package/src/widgets/stores/widget-store.test.ts +213 -13
- package/src/widgets/stores/widget-store.ts +240 -65
- package/src/widgets/subheader/subheader.tsx +22 -3
- package/src/widgets/table/config.test.ts +65 -0
- package/src/widgets/table/config.ts +8 -4
- package/src/widgets/table/hooks/use-pagination.ts +39 -55
- package/src/widgets/table/hooks/use-selection.ts +31 -26
- package/src/widgets/table/hooks/use-sort.ts +33 -42
- package/src/widgets/table/index.ts +6 -4
- package/src/widgets/table/table-ui.tsx +1 -1
- package/src/widgets/table/types.ts +1 -1
- package/src/widgets/timeseries/config.ts +34 -33
- package/src/widgets/timeseries/style.ts +1 -1
- package/src/widgets/utils/chart-config/download-config.ts +22 -0
- package/src/widgets/{_shared → utils}/chart-config/index.ts +6 -0
- package/src/widgets/utils/chart-config/option-builders.test.ts +332 -0
- package/src/widgets/{_shared → utils}/chart-config/option-builders.ts +79 -13
- package/src/widgets/utils/formatter.ts +2 -0
- package/src/widgets/utils/index.ts +26 -0
- package/src/widgets/wrapper/components/actions.tsx +3 -0
- package/src/widgets/wrapper/components/options.tsx +3 -0
- package/src/widgets/wrapper/components/title.tsx +3 -0
- package/src/widgets/wrapper/wrapper-ui.tsx +26 -13
- package/src/widgets/wrapper/wrapper.tsx +18 -6
- package/src/widgets-v2/PERFORMANCE.md +189 -0
- package/src/widgets-v2/actions/brush-toggle/brush-toggle.test.tsx +180 -0
- package/src/widgets-v2/actions/brush-toggle/brush-toggle.tsx +154 -0
- package/src/widgets-v2/actions/brush-toggle/index.ts +3 -0
- package/src/widgets-v2/actions/brush-toggle/labels.ts +9 -0
- package/src/widgets-v2/actions/brush-toggle/style.ts +11 -0
- package/src/widgets-v2/actions/brush-toggle/transforms.test.ts +47 -0
- package/src/widgets-v2/actions/brush-toggle/transforms.ts +31 -0
- package/src/widgets-v2/actions/change-column/change-column-icon.tsx +14 -0
- package/src/widgets-v2/actions/change-column/change-column.test.tsx +59 -0
- package/src/widgets-v2/actions/change-column/change-column.tsx +180 -0
- package/src/widgets-v2/actions/change-column/index.ts +7 -0
- package/src/widgets-v2/actions/change-column/labels.ts +9 -0
- package/src/widgets-v2/actions/change-column/sortable-column-item.tsx +56 -0
- package/src/widgets-v2/actions/change-column/style.ts +32 -0
- package/src/widgets-v2/actions/change-column/types.ts +11 -0
- package/src/widgets-v2/actions/download/download.test.tsx +327 -0
- package/src/widgets-v2/actions/download/download.tsx +144 -0
- package/src/widgets-v2/actions/download/exports.test.tsx +198 -0
- package/src/widgets-v2/actions/download/exports.ts +115 -0
- package/src/widgets-v2/actions/download/icons.tsx +26 -0
- package/src/widgets-v2/actions/download/index.ts +13 -0
- package/src/widgets-v2/actions/download/labels.ts +16 -0
- package/src/widgets-v2/actions/download/png-item.test.tsx +72 -0
- package/src/widgets-v2/actions/download/png-item.tsx +52 -0
- package/src/widgets-v2/actions/download/style.ts +3 -0
- package/src/widgets-v2/actions/download/types.ts +32 -0
- package/src/widgets-v2/actions/fullscreen/fullscreen.test.tsx +150 -0
- package/src/widgets-v2/actions/fullscreen/fullscreen.tsx +230 -0
- package/src/widgets-v2/actions/fullscreen/index.ts +7 -0
- package/src/widgets-v2/actions/fullscreen/labels.ts +9 -0
- package/src/widgets-v2/actions/fullscreen/style.ts +59 -0
- package/src/widgets-v2/actions/fullscreen/types.ts +15 -0
- package/src/widgets-v2/actions/index.ts +82 -0
- package/src/widgets-v2/actions/lock-selection/index.ts +10 -0
- package/src/widgets-v2/actions/lock-selection/labels.ts +11 -0
- package/src/widgets-v2/actions/lock-selection/lock-selection.test.tsx +187 -0
- package/src/widgets-v2/actions/lock-selection/lock-selection.tsx +130 -0
- package/src/widgets-v2/actions/lock-selection/style.ts +11 -0
- package/src/widgets-v2/actions/lock-selection/transforms.ts +27 -0
- package/src/widgets-v2/actions/relative-data/index.ts +3 -0
- package/src/widgets-v2/actions/relative-data/labels.ts +9 -0
- package/src/widgets-v2/actions/relative-data/relative-data.test.tsx +71 -0
- package/src/widgets-v2/actions/relative-data/relative-data.tsx +107 -0
- package/src/widgets-v2/actions/relative-data/style.ts +11 -0
- package/src/widgets-v2/actions/relative-data/transforms.test.ts +151 -0
- package/src/widgets-v2/actions/relative-data/transforms.ts +70 -0
- package/src/widgets-v2/actions/searcher/filter.ts +28 -0
- package/src/widgets-v2/actions/searcher/index.ts +8 -0
- package/src/widgets-v2/actions/searcher/labels.ts +13 -0
- package/src/widgets-v2/actions/searcher/searcher-toggle.tsx +91 -0
- package/src/widgets-v2/actions/searcher/searcher.test.tsx +92 -0
- package/src/widgets-v2/actions/searcher/searcher.tsx +112 -0
- package/src/widgets-v2/actions/searcher/style.ts +15 -0
- package/src/widgets-v2/actions/stack-toggle/index.ts +3 -0
- package/src/widgets-v2/actions/stack-toggle/labels.ts +9 -0
- package/src/widgets-v2/actions/stack-toggle/stack-toggle.test.tsx +61 -0
- package/src/widgets-v2/actions/stack-toggle/stack-toggle.tsx +54 -0
- package/src/widgets-v2/actions/stack-toggle/style.ts +11 -0
- package/src/widgets-v2/actions/stack-toggle/transforms.test.ts +43 -0
- package/src/widgets-v2/actions/stack-toggle/transforms.ts +25 -0
- package/src/widgets-v2/actions/zoom-toggle/index.ts +9 -0
- package/src/widgets-v2/actions/zoom-toggle/labels.ts +9 -0
- package/src/widgets-v2/actions/zoom-toggle/style.ts +11 -0
- package/src/widgets-v2/actions/zoom-toggle/transforms.test.ts +148 -0
- package/src/widgets-v2/actions/zoom-toggle/transforms.ts +171 -0
- package/src/widgets-v2/actions/zoom-toggle/zoom-toggle.test.tsx +107 -0
- package/src/widgets-v2/actions/zoom-toggle/zoom-toggle.tsx +106 -0
- package/src/widgets-v2/bar/download.test.tsx +91 -0
- package/src/widgets-v2/bar/download.tsx +66 -0
- package/src/widgets-v2/bar/index.ts +10 -0
- package/src/widgets-v2/bar/options.test.ts +334 -0
- package/src/widgets-v2/bar/options.ts +332 -0
- package/src/widgets-v2/bar/skeleton.test.tsx +19 -0
- package/src/widgets-v2/bar/skeleton.tsx +69 -0
- package/src/widgets-v2/bar/types.ts +51 -0
- package/src/widgets-v2/category/category-ui.test.tsx +746 -0
- package/src/widgets-v2/category/category-ui.tsx +389 -0
- package/src/widgets-v2/category/category.relative-data.test.tsx +107 -0
- package/src/widgets-v2/category/category.stack-toggle.test.tsx +85 -0
- package/src/widgets-v2/category/category.test.tsx +305 -0
- package/src/widgets-v2/category/category.tsx +121 -0
- package/src/widgets-v2/category/components/category-bar-stacked.test.tsx +121 -0
- package/src/widgets-v2/category/components/category-bar-stacked.tsx +73 -0
- package/src/widgets-v2/category/components/category-bar.test.tsx +64 -0
- package/src/widgets-v2/category/components/category-bar.tsx +49 -0
- package/src/widgets-v2/category/components/category-legend.test.tsx +51 -0
- package/src/widgets-v2/category/components/category-legend.tsx +39 -0
- package/src/widgets-v2/category/components/category-row-multi.tsx +86 -0
- package/src/widgets-v2/category/components/category-row-other.test.tsx +28 -0
- package/src/widgets-v2/category/components/category-row-other.tsx +33 -0
- package/src/widgets-v2/category/components/category-row-single.tsx +76 -0
- package/src/widgets-v2/category/components/category-row-stacked.test.tsx +244 -0
- package/src/widgets-v2/category/components/category-row-stacked.tsx +99 -0
- package/src/widgets-v2/category/download.test.ts +71 -0
- package/src/widgets-v2/category/download.ts +54 -0
- package/src/widgets-v2/category/index.ts +32 -0
- package/src/widgets-v2/category/skeleton.test.tsx +26 -0
- package/src/widgets-v2/category/skeleton.tsx +74 -0
- package/src/widgets-v2/category/style.ts +290 -0
- package/src/widgets-v2/category/types.ts +59 -0
- package/src/widgets-v2/echart/echart-ui.test.tsx +232 -0
- package/src/widgets-v2/echart/echart-ui.tsx +184 -0
- package/src/widgets-v2/echart/echart.test.tsx +229 -0
- package/src/widgets-v2/echart/echart.tsx +199 -0
- package/src/widgets-v2/echart/index.ts +22 -0
- package/src/widgets-v2/echart/shared-resize-observer.test.ts +91 -0
- package/src/widgets-v2/echart/shared-resize-observer.ts +56 -0
- package/src/widgets-v2/echart/style.ts +8 -0
- package/src/widgets-v2/echart/use-chart-selection.test.tsx +118 -0
- package/src/widgets-v2/echart/use-chart-selection.ts +115 -0
- package/src/widgets-v2/formula/delta.tsx +61 -0
- package/src/widgets-v2/formula/download.test.tsx +65 -0
- package/src/widgets-v2/formula/download.tsx +69 -0
- package/src/widgets-v2/formula/formula-ui.test.tsx +91 -0
- package/src/widgets-v2/formula/formula-ui.tsx +66 -0
- package/src/widgets-v2/formula/formula.test.tsx +50 -0
- package/src/widgets-v2/formula/formula.tsx +34 -0
- package/src/widgets-v2/formula/index.ts +17 -0
- package/src/widgets-v2/formula/note.tsx +25 -0
- package/src/widgets-v2/formula/prefix.tsx +25 -0
- package/src/widgets-v2/formula/series.tsx +67 -0
- package/src/widgets-v2/formula/skeleton.test.tsx +21 -0
- package/src/widgets-v2/formula/skeleton.tsx +27 -0
- package/src/widgets-v2/formula/style.ts +31 -0
- package/src/widgets-v2/formula/subcomponents.test.tsx +107 -0
- package/src/widgets-v2/formula/suffix.tsx +25 -0
- package/src/widgets-v2/formula/types.ts +48 -0
- package/src/widgets-v2/formula/value.tsx +31 -0
- package/src/widgets-v2/histogram/download.test.ts +94 -0
- package/src/widgets-v2/histogram/download.ts +60 -0
- package/src/widgets-v2/histogram/index.ts +10 -0
- package/src/widgets-v2/histogram/options.test.ts +318 -0
- package/src/widgets-v2/histogram/options.ts +338 -0
- package/src/widgets-v2/histogram/skeleton.test.tsx +16 -0
- package/src/widgets-v2/histogram/skeleton.tsx +70 -0
- package/src/widgets-v2/histogram/transforms.test.ts +46 -0
- package/src/widgets-v2/histogram/transforms.ts +30 -0
- package/src/widgets-v2/histogram/types.ts +55 -0
- package/src/widgets-v2/index.ts +204 -0
- package/src/widgets-v2/markdown/download.test.ts +66 -0
- package/src/widgets-v2/markdown/download.ts +53 -0
- package/src/widgets-v2/markdown/index.ts +6 -0
- package/src/widgets-v2/markdown/markdown-content.test.tsx +155 -0
- package/src/widgets-v2/markdown/markdown-content.tsx +72 -0
- package/src/widgets-v2/markdown/markdown-ui.test.tsx +75 -0
- package/src/widgets-v2/markdown/markdown-ui.tsx +55 -0
- package/src/widgets-v2/markdown/markdown.test.tsx +39 -0
- package/src/widgets-v2/markdown/markdown.tsx +17 -0
- package/src/widgets-v2/markdown/skeleton.test.tsx +15 -0
- package/src/widgets-v2/markdown/skeleton.tsx +32 -0
- package/src/widgets-v2/markdown/style.ts +53 -0
- package/src/widgets-v2/markdown/types.ts +4 -0
- package/src/widgets-v2/note/labels.ts +9 -0
- package/src/widgets-v2/note/style.ts +26 -0
- package/src/widgets-v2/note/widget-note.test.tsx +158 -0
- package/src/widgets-v2/note/widget-note.tsx +172 -0
- package/src/widgets-v2/pie/download.test.ts +78 -0
- package/src/widgets-v2/pie/download.ts +55 -0
- package/src/widgets-v2/pie/index.ts +10 -0
- package/src/widgets-v2/pie/options.test.ts +601 -0
- package/src/widgets-v2/pie/options.ts +513 -0
- package/src/widgets-v2/pie/skeleton.test.tsx +17 -0
- package/src/widgets-v2/pie/skeleton.tsx +32 -0
- package/src/widgets-v2/pie/types.ts +62 -0
- package/src/widgets-v2/provider/widget-provider.test.tsx +119 -0
- package/src/widgets-v2/provider/widget-provider.tsx +111 -0
- package/src/widgets-v2/range/index.ts +4 -0
- package/src/widgets-v2/range/range-ui.test.tsx +136 -0
- package/src/widgets-v2/range/range-ui.tsx +278 -0
- package/src/widgets-v2/range/range.test.tsx +68 -0
- package/src/widgets-v2/range/range.tsx +52 -0
- package/src/widgets-v2/range/skeleton.test.tsx +17 -0
- package/src/widgets-v2/range/skeleton.tsx +47 -0
- package/src/widgets-v2/range/style.ts +41 -0
- package/src/widgets-v2/range/types.ts +37 -0
- package/src/widgets-v2/scatterplot/download.test.ts +71 -0
- package/src/widgets-v2/scatterplot/download.ts +54 -0
- package/src/widgets-v2/scatterplot/index.ts +11 -0
- package/src/widgets-v2/scatterplot/options.test.ts +411 -0
- package/src/widgets-v2/scatterplot/options.ts +425 -0
- package/src/widgets-v2/scatterplot/skeleton.test.tsx +17 -0
- package/src/widgets-v2/scatterplot/skeleton.tsx +84 -0
- package/src/widgets-v2/scatterplot/transforms.test.ts +97 -0
- package/src/widgets-v2/scatterplot/transforms.ts +38 -0
- package/src/widgets-v2/scatterplot/types.ts +59 -0
- package/src/widgets-v2/selection-summary/labels.ts +11 -0
- package/src/widgets-v2/selection-summary/selection-summary.test.tsx +53 -0
- package/src/widgets-v2/selection-summary/selection-summary.tsx +62 -0
- package/src/widgets-v2/selection-summary/style.ts +23 -0
- package/src/widgets-v2/spread/download.test.ts +64 -0
- package/src/widgets-v2/spread/download.ts +59 -0
- package/src/widgets-v2/spread/index.ts +6 -0
- package/src/widgets-v2/spread/separator.tsx +11 -0
- package/src/widgets-v2/spread/skeleton.test.tsx +17 -0
- package/src/widgets-v2/spread/skeleton.tsx +38 -0
- package/src/widgets-v2/spread/spread-ui.test.tsx +108 -0
- package/src/widgets-v2/spread/spread-ui.tsx +52 -0
- package/src/widgets-v2/spread/spread.test.tsx +50 -0
- package/src/widgets-v2/spread/spread.tsx +31 -0
- package/src/widgets-v2/spread/types.ts +27 -0
- package/src/widgets-v2/state/labels.test.ts +33 -0
- package/src/widgets-v2/state/labels.ts +20 -0
- package/src/widgets-v2/state/style.ts +25 -0
- package/src/widgets-v2/state/widget-state.test.tsx +294 -0
- package/src/widgets-v2/state/widget-state.tsx +184 -0
- package/src/widgets-v2/stores/index.ts +49 -0
- package/src/widgets-v2/stores/pipeline-middleware.test.ts +187 -0
- package/src/widgets-v2/stores/pipeline-middleware.ts +91 -0
- package/src/widgets-v2/stores/transforms.test.ts +162 -0
- package/src/widgets-v2/stores/transforms.ts +70 -0
- package/src/widgets-v2/stores/types.ts +64 -0
- package/src/widgets-v2/stores/use-echart-instance.test.tsx +91 -0
- package/src/widgets-v2/stores/use-echart-instance.ts +29 -0
- package/src/widgets-v2/stores/use-transform-enabled.test.tsx +127 -0
- package/src/widgets-v2/stores/use-transform-enabled.ts +25 -0
- package/src/widgets-v2/stores/use-transform.test.tsx +262 -0
- package/src/widgets-v2/stores/use-transform.ts +158 -0
- package/src/widgets-v2/stores/widget-context.test.tsx +58 -0
- package/src/widgets-v2/stores/widget-context.ts +15 -0
- package/src/widgets-v2/stores/widget-store-registry.test.ts +292 -0
- package/src/widgets-v2/stores/widget-store-registry.ts +248 -0
- package/src/widgets-v2/subheader/style.ts +12 -0
- package/src/widgets-v2/subheader/subheader.test.tsx +30 -0
- package/src/widgets-v2/subheader/subheader.tsx +16 -0
- package/src/widgets-v2/table/download.test.ts +75 -0
- package/src/widgets-v2/table/download.ts +47 -0
- package/src/widgets-v2/table/helpers.test.ts +214 -0
- package/src/widgets-v2/table/helpers.ts +136 -0
- package/src/widgets-v2/table/index.ts +23 -0
- package/src/widgets-v2/table/labels.tsx +41 -0
- package/src/widgets-v2/table/skeleton.test.tsx +26 -0
- package/src/widgets-v2/table/skeleton.tsx +65 -0
- package/src/widgets-v2/table/style.ts +43 -0
- package/src/widgets-v2/table/table-ui.test.tsx +200 -0
- package/src/widgets-v2/table/table-ui.tsx +364 -0
- package/src/widgets-v2/table/table.test.tsx +119 -0
- package/src/widgets-v2/table/table.tsx +179 -0
- package/src/widgets-v2/table/types.ts +55 -0
- package/src/widgets-v2/test-utils.ts +107 -0
- package/src/widgets-v2/timeseries/download.test.ts +95 -0
- package/src/widgets-v2/timeseries/download.ts +86 -0
- package/src/widgets-v2/timeseries/index.ts +10 -0
- package/src/widgets-v2/timeseries/options.test.ts +394 -0
- package/src/widgets-v2/timeseries/options.ts +348 -0
- package/src/widgets-v2/timeseries/skeleton.test.tsx +13 -0
- package/src/widgets-v2/timeseries/skeleton.tsx +76 -0
- package/src/widgets-v2/timeseries/types.ts +65 -0
- package/src/widgets-v2/toolbox/labels.ts +9 -0
- package/src/widgets-v2/toolbox/style.ts +33 -0
- package/src/widgets-v2/toolbox/toolbox.test.tsx +200 -0
- package/src/widgets-v2/toolbox/toolbox.tsx +309 -0
- package/src/widgets-v2/types.ts +25 -0
- package/src/widgets-v2/utils/data-zoom-layout.ts +26 -0
- package/src/widgets-v2/utils/index.ts +3 -0
- package/src/widgets-v2/utils/merge-options.test.ts +52 -0
- package/src/widgets-v2/utils/merge-options.ts +50 -0
- package/src/widgets-v2/utils/resolve-theme-color.test.ts +43 -0
- package/src/widgets-v2/utils/resolve-theme-color.ts +34 -0
- package/src/widgets-v2/wrapper/index.ts +14 -0
- package/src/widgets-v2/wrapper/labels.ts +11 -0
- package/src/widgets-v2/wrapper/style.ts +134 -0
- package/src/widgets-v2/wrapper/widget-actions.test.tsx +52 -0
- package/src/widgets-v2/wrapper/widget-actions.tsx +43 -0
- package/src/widgets-v2/wrapper/widget-content.test.tsx +27 -0
- package/src/widgets-v2/wrapper/widget-content.tsx +29 -0
- package/src/widgets-v2/wrapper/widget-wrapper.test.tsx +159 -0
- package/src/widgets-v2/wrapper/widget-wrapper.tsx +178 -0
- package/dist/error-CEkRPccv.js +0 -39
- package/dist/error-CEkRPccv.js.map +0 -1
- package/dist/index-BnyeR7Qx.js +0 -6601
- package/dist/index-BnyeR7Qx.js.map +0 -1
- package/dist/no-data-hR3KcJ-_.js +0 -60
- package/dist/no-data-hR3KcJ-_.js.map +0 -1
- package/dist/note-t51drNe0.js +0 -124
- package/dist/note-t51drNe0.js.map +0 -1
- package/dist/options-D9wflre6.js +0 -49
- package/dist/options-D9wflre6.js.map +0 -1
- package/dist/row-DTCV0Ocm.js +0 -35
- package/dist/row-DTCV0Ocm.js.map +0 -1
- package/dist/series-CYNOu2Ju.js +0 -91
- package/dist/series-CYNOu2Ju.js.map +0 -1
- package/dist/styles-CAroD5Rc.js +0 -123
- package/dist/styles-CAroD5Rc.js.map +0 -1
- package/dist/types/hooks/use-debounce.d.ts +0 -19
- package/dist/types/widgets/category/components/index.d.ts +0 -10
- package/dist/types/widgets/index.d.ts +0 -9
- package/dist/types/widgets/table/hooks/index.d.ts +0 -6
- package/dist/use-widget-ref-P-2i0MJG.js +0 -19
- package/dist/use-widget-ref-P-2i0MJG.js.map +0 -1
- package/dist/utils-idmvq0Oa.js.map +0 -1
- package/dist/widget-store-CzDt8oSK.js +0 -163
- package/dist/widget-store-CzDt8oSK.js.map +0 -1
- package/dist/widgets.js +0 -13
- package/dist/widgets.js.map +0 -1
- package/src/hooks/use-debounce.ts +0 -55
- package/src/widgets/_shared/chart-config/option-builders.test.ts +0 -40
- package/src/widgets/category/components/index.ts +0 -14
- package/src/widgets/index.ts +0 -25
- package/src/widgets/table/hooks/index.ts +0 -7
- /package/dist/types/widgets/{_shared → utils}/chart-config/config-factory.d.ts +0 -0
- /package/dist/types/widgets/{_shared → utils}/chart-config/csv-modifiers.d.ts +0 -0
- /package/dist/types/widgets/{_shared → utils}/skeleton/index.d.ts +0 -0
- /package/dist/types/widgets/{_shared → utils}/skeleton/styles.d.ts +0 -0
- /package/dist/types/{widgets/_shared/chart-config/option-builders.test.d.ts → widgets-v2/actions/brush-toggle/transforms.test.d.ts} +0 -0
- /package/src/widgets/{_shared → utils}/chart-config/config-factory.ts +0 -0
- /package/src/widgets/{_shared → utils}/chart-config/csv-modifiers.ts +0 -0
- /package/src/widgets/{_shared → utils}/skeleton/index.ts +0 -0
- /package/src/widgets/{_shared → utils}/skeleton/styles.ts +0 -0
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { TypographyProps } from '@mui/material';
|
|
2
|
+
import { ReactNode } from 'react';
|
|
3
|
+
export interface NoteProps {
|
|
4
|
+
children: ReactNode;
|
|
5
|
+
TypographyProps?: TypographyProps;
|
|
6
|
+
}
|
|
7
|
+
/**
|
|
8
|
+
* Small subdued caption rendered below a Formula value. Use for short
|
|
9
|
+
* descriptive text (e.g. "Last 7 days", "Excludes refunds").
|
|
10
|
+
*/
|
|
11
|
+
export declare function Note({ children, TypographyProps }: NoteProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { TypographyProps } from '@mui/material';
|
|
2
|
+
import { ReactNode } from 'react';
|
|
3
|
+
export interface PrefixProps {
|
|
4
|
+
children: ReactNode;
|
|
5
|
+
TypographyProps?: TypographyProps;
|
|
6
|
+
}
|
|
7
|
+
/**
|
|
8
|
+
* Prefix slot for a Formula KPI — large, bold, muted (`text.secondary`).
|
|
9
|
+
* Composable building block for custom formula layouts; the canonical
|
|
10
|
+
* {@link FormulaUI} renders one of these per item when `prefix` is set.
|
|
11
|
+
*/
|
|
12
|
+
export declare function Prefix({ children, TypographyProps }: PrefixProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { AvatarProps } from '@mui/material';
|
|
2
|
+
export interface SeriesProps {
|
|
3
|
+
/** Used for the avatar's first-letter glyph and as accessible label. */
|
|
4
|
+
name: string;
|
|
5
|
+
/** Avatar background colour (any MUI palette path or CSS colour). */
|
|
6
|
+
color?: string;
|
|
7
|
+
/** Diameter in px. Default `24`. */
|
|
8
|
+
size?: number;
|
|
9
|
+
AvatarProps?: AvatarProps;
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* Series indicator — circular avatar showing the first letter of `name`.
|
|
13
|
+
* Background colour is `color` (consumer-supplied) or a neutral disabled
|
|
14
|
+
* colour, with text colour computed for contrast against it.
|
|
15
|
+
*/
|
|
16
|
+
export declare function Series({ name, color, size, AvatarProps: avatarProps, }: SeriesProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
export declare const styles: {
|
|
2
|
+
root: {
|
|
3
|
+
display: "flex";
|
|
4
|
+
flexDirection: "column";
|
|
5
|
+
gap: number;
|
|
6
|
+
alignItems: "stretch";
|
|
7
|
+
};
|
|
8
|
+
row: {
|
|
9
|
+
display: "flex";
|
|
10
|
+
alignItems: "flex-start";
|
|
11
|
+
gap: number;
|
|
12
|
+
};
|
|
13
|
+
body: {
|
|
14
|
+
flex: number;
|
|
15
|
+
minWidth: number;
|
|
16
|
+
display: "flex";
|
|
17
|
+
flexDirection: "column";
|
|
18
|
+
gap: number;
|
|
19
|
+
};
|
|
20
|
+
valueRow: {
|
|
21
|
+
display: "inline-flex";
|
|
22
|
+
alignItems: "baseline";
|
|
23
|
+
gap: number;
|
|
24
|
+
};
|
|
25
|
+
delta: {
|
|
26
|
+
alignSelf: "center";
|
|
27
|
+
flexShrink: number;
|
|
28
|
+
};
|
|
29
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { TypographyProps } from '@mui/material';
|
|
2
|
+
import { ReactNode } from 'react';
|
|
3
|
+
export interface SuffixProps {
|
|
4
|
+
children: ReactNode;
|
|
5
|
+
TypographyProps?: TypographyProps;
|
|
6
|
+
}
|
|
7
|
+
/**
|
|
8
|
+
* Suffix slot for a Formula KPI — large, bold, muted (`text.secondary`).
|
|
9
|
+
* Composable building block for custom formula layouts; the canonical
|
|
10
|
+
* {@link FormulaUI} renders one of these per item when `suffix` is set.
|
|
11
|
+
*/
|
|
12
|
+
export declare function Suffix({ children, TypographyProps }: SuffixProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { WidgetSeries } from '../types';
|
|
2
|
+
/**
|
|
3
|
+
* Series metadata rendered as a coloured avatar at the start of a row.
|
|
4
|
+
*
|
|
5
|
+
* Type alias of the cross-widget {@link WidgetSeries} shape so the same
|
|
6
|
+
* `{ name, color? }` object can drive Formula avatars, Spread avatars,
|
|
7
|
+
* Category legends, and echart-widget legends with no per-widget shape
|
|
8
|
+
* gymnastics. Kept as a named export for backwards compatibility.
|
|
9
|
+
*/
|
|
10
|
+
export type FormulaSeries = WidgetSeries;
|
|
11
|
+
export type DeltaSeverity = 'positive' | 'negative' | 'neutral';
|
|
12
|
+
/** Comparative delta rendered as a coloured chip on the right of a row. */
|
|
13
|
+
export interface FormulaDelta {
|
|
14
|
+
/** Numeric magnitude. Default formatting renders as a percent (e.g. `-12,3 %`). */
|
|
15
|
+
value: number;
|
|
16
|
+
/** Pre-formatted label override (skips the default percent formatter). */
|
|
17
|
+
label?: string;
|
|
18
|
+
/**
|
|
19
|
+
* Visual treatment override. When omitted it's derived from `value`'s sign:
|
|
20
|
+
* `>0 → 'positive'`, `<0 → 'negative'`, `=0 → 'neutral'`.
|
|
21
|
+
*/
|
|
22
|
+
severity?: DeltaSeverity;
|
|
23
|
+
}
|
|
24
|
+
/** A single KPI value rendered by the Formula widget. */
|
|
25
|
+
export interface FormulaDataItem {
|
|
26
|
+
value: number;
|
|
27
|
+
prefix?: string;
|
|
28
|
+
suffix?: string;
|
|
29
|
+
/** Override the value's text colour (e.g. `'success.main'`). */
|
|
30
|
+
color?: string;
|
|
31
|
+
/** Optional series indicator — coloured avatar with first letter of `name`. */
|
|
32
|
+
series?: FormulaSeries;
|
|
33
|
+
/** Optional caption rendered below the value. */
|
|
34
|
+
note?: string;
|
|
35
|
+
/** Optional comparative delta chip rendered to the right of the row. */
|
|
36
|
+
delta?: FormulaDelta;
|
|
37
|
+
}
|
|
38
|
+
/**
|
|
39
|
+
* Formula widget data — an array of KPI items rendered top-to-bottom. A common
|
|
40
|
+
* "single big number" widget is just `[{ value: 123 }]`. Multi-series usage
|
|
41
|
+
* sets `series`, `note`, and/or `delta` per item.
|
|
42
|
+
*/
|
|
43
|
+
export type FormulaWidgetData = readonly FormulaDataItem[];
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { TypographyProps } from '@mui/material';
|
|
2
|
+
import { ReactNode } from 'react';
|
|
3
|
+
export interface ValueProps {
|
|
4
|
+
children: ReactNode;
|
|
5
|
+
/** Override the default `text.primary` color — useful for sparkline tints. */
|
|
6
|
+
color?: string;
|
|
7
|
+
TypographyProps?: TypographyProps;
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Value slot for a Formula KPI — large, bold, primary text color. Composable
|
|
11
|
+
* building block for custom formula layouts; the canonical {@link FormulaUI}
|
|
12
|
+
* renders one of these per item.
|
|
13
|
+
*/
|
|
14
|
+
export declare function Value({ children, color, TypographyProps }: ValueProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { DownloadItem } from '../actions/download';
|
|
2
|
+
import { HistogramWidgetData } from './types';
|
|
3
|
+
/**
|
|
4
|
+
* Download menu items for histograms. Always includes a CSV item with
|
|
5
|
+
* `bin_low, bin_high, series_1_count, series_2_count, …` columns (one row
|
|
6
|
+
* per bin). When `getCaptureEl` is supplied, prepends a PNG item that
|
|
7
|
+
* rasterises the captured element via `html2canvas`.
|
|
8
|
+
*/
|
|
9
|
+
export declare function createHistogramDownloadConfig(args: {
|
|
10
|
+
filename: string;
|
|
11
|
+
getData: () => HistogramWidgetData;
|
|
12
|
+
getTicks: () => readonly number[];
|
|
13
|
+
seriesNames?: readonly string[];
|
|
14
|
+
getCaptureEl?: () => HTMLElement | null;
|
|
15
|
+
pngPixelRatio?: number;
|
|
16
|
+
pngBackgroundColor?: string | null;
|
|
17
|
+
}): DownloadItem[];
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export { histogramOptions, createHistogramOptionFactory } from './options';
|
|
2
|
+
export { HistogramSkeleton, type HistogramSkeletonProps } from './skeleton';
|
|
3
|
+
export { createHistogramDownloadConfig } from './download';
|
|
4
|
+
export { toRelativeHistogramData } from './transforms';
|
|
5
|
+
export type { HistogramWidgetData, HistogramOptionsInput, HistogramOptionFactoryInput, HistogramEChartsOption, } from './types';
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { OptionFactory } from '../echart';
|
|
2
|
+
import { HistogramEChartsOption, HistogramOptionFactoryInput, HistogramOptionsInput } from './types';
|
|
3
|
+
/**
|
|
4
|
+
* Builds the **structural** ECharts option for a histogram widget — axes,
|
|
5
|
+
* grid, tooltip, value-axis label formatter, themed legend. Mirrors
|
|
6
|
+
* {@link import('../bar/options').barOptions} so the two widgets share v1
|
|
7
|
+
* look-and-feel: themed dark tooltip with positioner, CARTO color palette,
|
|
8
|
+
* structural legend (`show` toggled by the merger based on series count),
|
|
9
|
+
* y-axis labels rendered inside the plot via the `niceNum` closure pattern.
|
|
10
|
+
*
|
|
11
|
+
* Intentional deviations from bar (histogram-specific):
|
|
12
|
+
* - **No `xAxis.axisLabel.formatter`.** Bin labels are pre-formatted in
|
|
13
|
+
* the merger via `formatNumber(lo)–formatNumber(hi)` and optionally
|
|
14
|
+
* the consumer's `labelFormatter`. The strings on the axis are
|
|
15
|
+
* already display-ready, so there's nothing to post-format here.
|
|
16
|
+
* - **Tooltip formatter reads the array-tuple row shape.** The dataset
|
|
17
|
+
* uses positional `encode: { x: 0, y: 1 }`, so `item.value` comes in
|
|
18
|
+
* as `[binLabel, count]` rather than bar's `{ name, value }` object.
|
|
19
|
+
*
|
|
20
|
+
* Intentionally data-agnostic: no series, no dataset, no x-axis category
|
|
21
|
+
* data (those depend on data + ticks and are added by the option factory's
|
|
22
|
+
* merge phase via {@link createHistogramOptionFactory}).
|
|
23
|
+
*/
|
|
24
|
+
export declare function histogramOptions({ theme, formatter, }: HistogramOptionsInput): HistogramEChartsOption;
|
|
25
|
+
/**
|
|
26
|
+
* Returns the histogram widget's {@link OptionFactory} — one closure that
|
|
27
|
+
* owns BOTH phases of option construction:
|
|
28
|
+
*
|
|
29
|
+
* - **Structural phase** (`option == null`) — builds the theme-aware
|
|
30
|
+
* structural option via {@link histogramOptions}, optionally merging
|
|
31
|
+
* the consumer-supplied `optionsOverride`. Called once by Provider to
|
|
32
|
+
* seed `rawOptions` in the store.
|
|
33
|
+
* - **Merge phase** (`option != null`) — fuses post-pipeline `state.data`
|
|
34
|
+
* (`HistogramWidgetData` — `number[][]`) into the option via the
|
|
35
|
+
* dataset API. Each series gets its own dataset of `[binLabel, count]`
|
|
36
|
+
* pairs derived from `ticks`; series reference their dataset by
|
|
37
|
+
* `datasetIndex` and are encoded by column position. Reactive
|
|
38
|
+
* `ctx.formatter` (driven by RelativeData → `%`) plus `niceMin`/`niceMax`
|
|
39
|
+
* are re-derived here so the y-axis label formatter and the tooltip
|
|
40
|
+
* pick up live store values, mirroring bar.
|
|
41
|
+
*/
|
|
42
|
+
export declare function createHistogramOptionFactory(options: HistogramOptionFactoryInput): OptionFactory;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export interface HistogramSkeletonProps {
|
|
2
|
+
bins?: number;
|
|
3
|
+
}
|
|
4
|
+
/**
|
|
5
|
+
* Loading state for the Histogram widget. Mirrors Bar's skeleton structure
|
|
6
|
+
* — a grid of bars (bin-shaped silhouette, anchored to the bottom) plus a
|
|
7
|
+
* legend stub — so the placeholder reads consistently with Bar.
|
|
8
|
+
*/
|
|
9
|
+
export declare function HistogramSkeleton({ bins }: HistogramSkeletonProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Histogram-specific `RelativeData` transform. Histogram data is
|
|
3
|
+
* `number[][]` — each series is a flat list of bin counts. This
|
|
4
|
+
* rewrites each count to its share of the series total (0–100), so
|
|
5
|
+
* pairing with `createPercentFormatter` renders the y-axis as
|
|
6
|
+
* percentages.
|
|
7
|
+
*
|
|
8
|
+
* Pass to `<Widget.RelativeData transform={toRelativeHistogramData} />`.
|
|
9
|
+
*
|
|
10
|
+
* The denominator is the sum of |value| across the series so mixed-sign
|
|
11
|
+
* inputs produce sane signed shares-of-magnitude. A series whose total
|
|
12
|
+
* magnitude is zero (all-zero or empty input) is returned unchanged so
|
|
13
|
+
* a stalled or empty data set doesn't show misleading 0% values. Inputs
|
|
14
|
+
* whose shape isn't `number[][]` fall through untouched (same defensive
|
|
15
|
+
* shape-check pattern as the default transform).
|
|
16
|
+
*/
|
|
17
|
+
export declare const toRelativeHistogramData: (input: unknown) => unknown;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { Theme } from '@mui/material';
|
|
2
|
+
import { EChartsOption } from 'echarts';
|
|
3
|
+
import { WidgetSeries } from '../types';
|
|
4
|
+
/**
|
|
5
|
+
* Histogram widget data — array of series, each a flat array of bin counts.
|
|
6
|
+
* The option factory's merge phase (see {@link createHistogramOptionFactory})
|
|
7
|
+
* combines this with `ticks` to produce a 2-column dataset (`[binLabel, count]`)
|
|
8
|
+
* for ECharts.
|
|
9
|
+
*/
|
|
10
|
+
export type HistogramWidgetData = readonly (readonly number[])[];
|
|
11
|
+
/** Inputs to the structural-only {@link histogramOptions} builder. */
|
|
12
|
+
export interface HistogramOptionsInput {
|
|
13
|
+
theme: Theme;
|
|
14
|
+
formatter?: (value: number) => string;
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* Combined inputs for the histogram option factory creator. Carries
|
|
18
|
+
* everything the widget needs across BOTH phases — the structural-build
|
|
19
|
+
* (`theme`, `formatter`, `optionsOverride`) AND the data merge (`ticks`,
|
|
20
|
+
* `series`, `labelFormatter`, `selection`).
|
|
21
|
+
*/
|
|
22
|
+
export interface HistogramOptionFactoryInput {
|
|
23
|
+
theme: Theme;
|
|
24
|
+
formatter?: (value: number) => string;
|
|
25
|
+
/** Bin boundaries — length = bins + 1. */
|
|
26
|
+
ticks: readonly number[];
|
|
27
|
+
/**
|
|
28
|
+
* Per-series metadata — drives the legend, `series[i].name`, and
|
|
29
|
+
* (when `color` is set) a per-series colour override on the bars.
|
|
30
|
+
*/
|
|
31
|
+
series?: readonly WidgetSeries[];
|
|
32
|
+
/**
|
|
33
|
+
* Bin-range label transform (e.g. `"0–10"` → `"[0–10)"`). Distinct from
|
|
34
|
+
* the standard `OptionFactoryContext.labelFormatter` (which operates on
|
|
35
|
+
* categories): this one is histogram-specific and runs only on the
|
|
36
|
+
* generated bin-range strings before they hit the x-axis.
|
|
37
|
+
*/
|
|
38
|
+
labelFormatter?: (label: string) => string;
|
|
39
|
+
/**
|
|
40
|
+
* Selected bin indices. Bins not in this list render dimmed
|
|
41
|
+
* (`itemStyle.opacity: 0.15`). `null`/empty means no selection.
|
|
42
|
+
*/
|
|
43
|
+
selection?: readonly number[] | null;
|
|
44
|
+
/**
|
|
45
|
+
* Consumer-supplied partial option merged into the structural option at
|
|
46
|
+
* structural-build time. Lets stories override pieces of the theme-aware
|
|
47
|
+
* base without forking the structural builder.
|
|
48
|
+
*/
|
|
49
|
+
optionsOverride?: Partial<EChartsOption>;
|
|
50
|
+
}
|
|
51
|
+
export type HistogramEChartsOption = EChartsOption;
|
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
import { Provider } from './provider/widget-provider';
|
|
2
|
+
import { Wrapper, Actions, Options, Content, Footer, DEFAULT_WRAPPER_LABELS } from './wrapper';
|
|
3
|
+
import { Subheader } from './subheader/subheader';
|
|
4
|
+
import { State } from './state/widget-state';
|
|
5
|
+
import { DEFAULT_STATE_LABELS } from './state/labels';
|
|
6
|
+
import { SelectionSummary } from './selection-summary/selection-summary';
|
|
7
|
+
import { DEFAULT_SELECTION_SUMMARY_LABELS } from './selection-summary/labels';
|
|
8
|
+
import { Toolbox } from './toolbox/toolbox';
|
|
9
|
+
import { DEFAULT_TOOLBOX_LABELS } from './toolbox/labels';
|
|
10
|
+
import { Echart, EchartUI, DEFAULT_INIT_OPTS } from './echart';
|
|
11
|
+
import { DEFAULT_NOTE_LABELS } from './note/labels';
|
|
12
|
+
import { Searcher, SearcherToggle, StackToggle, ZoomToggle, BrushToggle, RelativeData, Download, LockSelection, ChangeColumn } from './actions';
|
|
13
|
+
import { Formula, FormulaUI } from './formula';
|
|
14
|
+
import { Markdown, MarkdownUI } from './markdown';
|
|
15
|
+
import { Spread, SpreadUI } from './spread';
|
|
16
|
+
import { Range, RangeUI } from './range';
|
|
17
|
+
import { Category, CategoryUI } from './category';
|
|
18
|
+
import { Table, TableUI } from './table';
|
|
19
|
+
/**
|
|
20
|
+
* Curated namespace export — the only way to reach v2 widget components.
|
|
21
|
+
* Consumers import the const and access components via property access:
|
|
22
|
+
*
|
|
23
|
+
* ```tsx
|
|
24
|
+
* import { Widget } from '@carto/ps-react-ui/widgets-v2'
|
|
25
|
+
*
|
|
26
|
+
* <Widget.Provider id={id} data={data}>
|
|
27
|
+
* <Widget.Wrapper title='Sales'>
|
|
28
|
+
* <Widget.Content>
|
|
29
|
+
* <Widget.State skeleton={<BarSkeleton />}>
|
|
30
|
+
* <Widget.Echart optionFactory={optionFactory} />
|
|
31
|
+
* </Widget.State>
|
|
32
|
+
* </Widget.Content>
|
|
33
|
+
* </Widget.Wrapper>
|
|
34
|
+
* </Widget.Provider>
|
|
35
|
+
* ```
|
|
36
|
+
*
|
|
37
|
+
* Component identifiers are not surfaced as separate named exports — Types
|
|
38
|
+
* (props, data shapes, label types, default-label consts) and per-widget
|
|
39
|
+
* subpath entries (`@carto/ps-react-ui/widgets-v2/bar`, `…/category`,
|
|
40
|
+
* `…/table`, `…/actions`, `…/stores`, `…/utils`, etc.) remain available for
|
|
41
|
+
* direct import where needed.
|
|
42
|
+
*/
|
|
43
|
+
export declare const Widget: {
|
|
44
|
+
readonly Provider: typeof Provider;
|
|
45
|
+
readonly Wrapper: typeof Wrapper;
|
|
46
|
+
readonly Actions: typeof Actions;
|
|
47
|
+
readonly Options: typeof Options;
|
|
48
|
+
readonly Content: typeof Content;
|
|
49
|
+
readonly Footer: typeof Footer;
|
|
50
|
+
readonly Subheader: typeof Subheader;
|
|
51
|
+
readonly State: typeof State;
|
|
52
|
+
readonly SelectionSummary: typeof SelectionSummary;
|
|
53
|
+
readonly Toolbox: typeof Toolbox;
|
|
54
|
+
readonly Note: (({ lineClamp, labels, children }: import('.').NoteProps) => import("react/jsx-runtime").JSX.Element) & {
|
|
55
|
+
Markdown: ({ content, lineClamp, labels }: import('.').NoteMarkdownProps) => import("react/jsx-runtime").JSX.Element;
|
|
56
|
+
};
|
|
57
|
+
readonly Echart: typeof Echart;
|
|
58
|
+
readonly EchartUI: typeof EchartUI;
|
|
59
|
+
readonly Searcher: typeof Searcher;
|
|
60
|
+
readonly SearcherToggle: typeof SearcherToggle;
|
|
61
|
+
readonly StackToggle: typeof StackToggle;
|
|
62
|
+
readonly ZoomToggle: typeof ZoomToggle;
|
|
63
|
+
readonly BrushToggle: typeof BrushToggle;
|
|
64
|
+
readonly RelativeData: typeof RelativeData;
|
|
65
|
+
readonly Download: typeof Download;
|
|
66
|
+
readonly FullScreen: {
|
|
67
|
+
Trigger: ({ labels, enterIcon: EnterIcon, exitIcon: ExitIcon, iconProps, }: import('./actions').FullScreenTriggerProps) => import("react/jsx-runtime").JSX.Element;
|
|
68
|
+
Slot: ({ children, title, labels, closeIcon: CloseSvg, iconProps, }: import('./actions').FullScreenSlotProps) => import("react/jsx-runtime").JSX.Element;
|
|
69
|
+
};
|
|
70
|
+
readonly LockSelection: typeof LockSelection;
|
|
71
|
+
readonly ChangeColumn: typeof ChangeColumn;
|
|
72
|
+
readonly Formula: typeof Formula;
|
|
73
|
+
readonly FormulaUI: typeof FormulaUI;
|
|
74
|
+
readonly Markdown: typeof Markdown;
|
|
75
|
+
readonly MarkdownUI: typeof MarkdownUI;
|
|
76
|
+
readonly Spread: typeof Spread;
|
|
77
|
+
readonly SpreadUI: typeof SpreadUI;
|
|
78
|
+
readonly Range: typeof Range;
|
|
79
|
+
readonly RangeUI: typeof RangeUI;
|
|
80
|
+
readonly Category: typeof Category;
|
|
81
|
+
readonly CategoryUI: typeof CategoryUI;
|
|
82
|
+
readonly Table: typeof Table;
|
|
83
|
+
readonly TableUI: typeof TableUI;
|
|
84
|
+
};
|
|
85
|
+
export { DEFAULT_WRAPPER_LABELS, DEFAULT_STATE_LABELS, DEFAULT_SELECTION_SUMMARY_LABELS, DEFAULT_TOOLBOX_LABELS, DEFAULT_NOTE_LABELS, DEFAULT_INIT_OPTS, };
|
|
86
|
+
export type { ProviderProps } from './provider/widget-provider';
|
|
87
|
+
export type { WrapperProps, ActionsProps, OptionsProps, ContentProps, FooterProps, WrapperLabels, } from './wrapper';
|
|
88
|
+
export type { SubheaderProps } from './subheader/subheader';
|
|
89
|
+
export type { StateProps } from './state/widget-state';
|
|
90
|
+
export type { StateLabels } from './state/labels';
|
|
91
|
+
export type { SelectionSummaryProps } from './selection-summary/selection-summary';
|
|
92
|
+
export type { SelectionSummaryLabels } from './selection-summary/labels';
|
|
93
|
+
export type { ToolboxProps } from './toolbox/toolbox';
|
|
94
|
+
export type { ToolboxLabels } from './toolbox/labels';
|
|
95
|
+
export type { EchartProps, EchartUIProps, EchartsEventHandler } from './echart';
|
|
96
|
+
export type { NoteProps, NoteMarkdownProps } from './note/widget-note';
|
|
97
|
+
export type { NoteLabels } from './note/labels';
|
|
98
|
+
export type { SearcherProps, SearcherToggleProps, StackToggleProps, ZoomToggleProps, BrushToggleProps, RelativeDataProps, DownloadProps, DownloadItem, FullScreenTriggerProps, FullScreenSlotProps, LockSelectionProps, LockSelectionKey, ChangeColumnProps, ChangeColumnItem, } from './actions';
|
|
99
|
+
export type { FormulaUIProps, FormulaDataItem, FormulaWidgetData, } from './formula';
|
|
100
|
+
export type { MarkdownUIProps, MarkdownWidgetData } from './markdown';
|
|
101
|
+
export type { PieDatum, PieWidgetData } from './pie';
|
|
102
|
+
export type { TimeseriesDatum, TimeseriesWidgetData } from './timeseries';
|
|
103
|
+
export type { ScatterplotDatum, ScatterplotWidgetData } from './scatterplot';
|
|
104
|
+
export type { SpreadUIProps, SpreadDataItem, SpreadWidgetData } from './spread';
|
|
105
|
+
export type { RangeProps, RangeUIProps, RangeDataItem, RangeWidgetData, RangeItemValue, } from './range';
|
|
106
|
+
export type { CategoryProps, CategoryUIProps, CategoryDataItem, CategoryWidgetData, CategoryKey, CategorySeriesConfig, CategoryLabels, } from './category';
|
|
107
|
+
export type { TableProps, TableUIProps, TableColumn, TableRow, TableWidgetData, TableWidgetState, TableSortDirection, TableSortState, } from './table';
|
|
108
|
+
export type { WidgetSeries } from './types';
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { toCsvString, triggerLinkDownload, DownloadItem } from '../actions/download';
|
|
2
|
+
import { MarkdownWidgetData } from './types';
|
|
3
|
+
/**
|
|
4
|
+
* Download menu items for the Markdown widget. Always includes a `.md`
|
|
5
|
+
* item that saves the markdown source verbatim. When `getCaptureEl` is
|
|
6
|
+
* supplied, prepends a PNG item that rasterises the captured element via
|
|
7
|
+
* `html2canvas`.
|
|
8
|
+
*/
|
|
9
|
+
export declare function createMarkdownDownloadConfig(args: {
|
|
10
|
+
filename: string;
|
|
11
|
+
getData: () => MarkdownWidgetData;
|
|
12
|
+
getCaptureEl?: () => HTMLElement | null;
|
|
13
|
+
pngPixelRatio?: number;
|
|
14
|
+
pngBackgroundColor?: string | null;
|
|
15
|
+
}): DownloadItem[];
|
|
16
|
+
export { toCsvString, triggerLinkDownload };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export { Markdown } from './markdown';
|
|
2
|
+
export { MarkdownUI, type MarkdownUIProps } from './markdown-ui';
|
|
3
|
+
export { MarkdownContent, type MarkdownContentProps } from './markdown-content';
|
|
4
|
+
export { MarkdownSkeleton, type MarkdownSkeletonProps } from './skeleton';
|
|
5
|
+
export { createMarkdownDownloadConfig } from './download';
|
|
6
|
+
export type { MarkdownWidgetData } from './types';
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { Components } from 'react-markdown';
|
|
2
|
+
export interface MarkdownContentProps {
|
|
3
|
+
/** Markdown source. */
|
|
4
|
+
content: string;
|
|
5
|
+
/**
|
|
6
|
+
* Element overrides. Consumers (`MarkdownUI`, `Note`, …) supply their own
|
|
7
|
+
* typography / link styling here; the engine itself stays opinion-free.
|
|
8
|
+
*/
|
|
9
|
+
components?: Components;
|
|
10
|
+
/**
|
|
11
|
+
* When `true`, raw HTML in the source is rendered. Defaults to `false` so
|
|
12
|
+
* caption slots like `Note` stay safe-by-default; the document-style
|
|
13
|
+
* Markdown widget opts in.
|
|
14
|
+
*/
|
|
15
|
+
allowHtml?: boolean;
|
|
16
|
+
/**
|
|
17
|
+
* When `true`, `<img>` / `` markdown produces an `<img>` tag.
|
|
18
|
+
* Defaults to `false` so caption slots stay text-only by default.
|
|
19
|
+
*/
|
|
20
|
+
allowImages?: boolean;
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* Low-level Markdown rendering primitive. Wraps `react-markdown` with two
|
|
24
|
+
* opt-in capabilities (`allowHtml`, `allowImages`) and a consumer-supplied
|
|
25
|
+
* component map for typography. Both default OFF — Note-style consumers
|
|
26
|
+
* are safe-by-default; MarkdownUI opts both ON to render rich content.
|
|
27
|
+
*
|
|
28
|
+
* `allowHtml` plugs in `rehype-raw` so raw HTML nodes in the source are
|
|
29
|
+
* actually parsed, then `rehype-sanitize` with the default schema strips
|
|
30
|
+
* `<script>`, event handlers, and dangerous URL schemes from the parsed
|
|
31
|
+
* tree. `safeUrlTransform` is always applied as a second layer for markdown
|
|
32
|
+
* links/images on the `allowHtml=false` path.
|
|
33
|
+
*/
|
|
34
|
+
export declare function MarkdownContent({ content, components, allowHtml, allowImages, }: MarkdownContentProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export interface MarkdownUIProps {
|
|
2
|
+
content: string;
|
|
3
|
+
}
|
|
4
|
+
/**
|
|
5
|
+
* Pure presentational component for the Markdown widget. Delegates the
|
|
6
|
+
* `react-markdown` engine to {@link MarkdownContent} and supplies a
|
|
7
|
+
* document-style MUI element mapping (body2 paragraphs, real heading
|
|
8
|
+
* typography). Opts INTO raw HTML and inline images — the Markdown widget is
|
|
9
|
+
* the one slot in the library where authors can ship rich content. Caption
|
|
10
|
+
* slots like `Note` keep the conservative defaults.
|
|
11
|
+
*/
|
|
12
|
+
export declare function MarkdownUI({ content }: MarkdownUIProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Stateful Markdown bridge — reads `data.content` (post-pipeline) from the
|
|
3
|
+
* per-widget store and forwards it to the pure {@link MarkdownUI}. Sits
|
|
4
|
+
* inside `<Widget.Provider>`.
|
|
5
|
+
*/
|
|
6
|
+
export declare function Markdown(): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
export declare const styles: {
|
|
2
|
+
root: {
|
|
3
|
+
color: "text.primary";
|
|
4
|
+
'& a': {
|
|
5
|
+
color: "primary.main";
|
|
6
|
+
};
|
|
7
|
+
'& code': {
|
|
8
|
+
bgcolor: "action.hover";
|
|
9
|
+
px: number;
|
|
10
|
+
borderRadius: number;
|
|
11
|
+
fontFamily: "monospace";
|
|
12
|
+
fontSize: string;
|
|
13
|
+
};
|
|
14
|
+
'& pre': {
|
|
15
|
+
bgcolor: "action.hover";
|
|
16
|
+
p: number;
|
|
17
|
+
borderRadius: number;
|
|
18
|
+
overflowX: "auto";
|
|
19
|
+
};
|
|
20
|
+
'& blockquote': {
|
|
21
|
+
borderLeft: string;
|
|
22
|
+
borderColor: "divider";
|
|
23
|
+
pl: number;
|
|
24
|
+
ml: number;
|
|
25
|
+
color: "text.secondary";
|
|
26
|
+
fontStyle: "italic";
|
|
27
|
+
};
|
|
28
|
+
'& ul, & ol': {
|
|
29
|
+
pl: number;
|
|
30
|
+
my: number;
|
|
31
|
+
};
|
|
32
|
+
'& li': {
|
|
33
|
+
my: number;
|
|
34
|
+
};
|
|
35
|
+
'& hr': {
|
|
36
|
+
border: "none";
|
|
37
|
+
borderTop: string;
|
|
38
|
+
borderColor: "divider";
|
|
39
|
+
my: number;
|
|
40
|
+
};
|
|
41
|
+
'& table': {
|
|
42
|
+
borderCollapse: "collapse";
|
|
43
|
+
width: string;
|
|
44
|
+
};
|
|
45
|
+
'& th, & td': {
|
|
46
|
+
border: "1px solid";
|
|
47
|
+
borderColor: "divider";
|
|
48
|
+
px: number;
|
|
49
|
+
py: number;
|
|
50
|
+
textAlign: "left";
|
|
51
|
+
};
|
|
52
|
+
};
|
|
53
|
+
paragraph: {
|
|
54
|
+
my: number;
|
|
55
|
+
};
|
|
56
|
+
heading: {
|
|
57
|
+
mt: number;
|
|
58
|
+
mb: number;
|
|
59
|
+
fontWeight: number;
|
|
60
|
+
};
|
|
61
|
+
};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
export declare const styles: {
|
|
2
|
+
root: {
|
|
3
|
+
display: "flex";
|
|
4
|
+
flexDirection: "column";
|
|
5
|
+
gap: number;
|
|
6
|
+
};
|
|
7
|
+
text: {
|
|
8
|
+
color: "text.secondary";
|
|
9
|
+
overflow: "hidden";
|
|
10
|
+
overflowWrap: "anywhere";
|
|
11
|
+
};
|
|
12
|
+
clamped: {
|
|
13
|
+
display: "-webkit-box";
|
|
14
|
+
WebkitBoxOrient: "vertical";
|
|
15
|
+
WebkitLineClamp: number;
|
|
16
|
+
};
|
|
17
|
+
toggle: {
|
|
18
|
+
alignSelf: "flex-start";
|
|
19
|
+
color: "primary.main";
|
|
20
|
+
fontWeight: number;
|
|
21
|
+
cursor: "pointer";
|
|
22
|
+
'&:hover': {
|
|
23
|
+
textDecoration: string;
|
|
24
|
+
};
|
|
25
|
+
};
|
|
26
|
+
};
|